=== PetMySite – Interactive Chat Button & Website Pet ===
Tags: chat button, live chat, floating button, website mascot, custom launcher
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress to PetMySite, the hosted service that turns an existing chat launcher into an interactive website pet.

== Description ==

PetMySite for WordPress is a thin connector for the PetMySite hosted service. PetMySite keeps the chat provider you already use and supplies the hosted widget runtime, pet configuration, provider adapter, entitlement, and aggregate analytics services.

The plugin provides a secure PKCE connection flow, server-side connection checks, a connected-only loader for the hosted PetMySite runtime, and an optional inline launcher shortcode.

No PetMySite account password, Google credential, billing credential, or account-wide API token is stored in WordPress. After connection, WordPress retains only a public site key and a revocable site-scoped connector token.

The settings screen's images, styles and fonts ship inside the plugin; it loads nothing from third-party CDNs. It bundles the Maven Pro and Manrope typefaces under the SIL Open Font License 1.1 (see `assets/fonts/OFL.txt`).

== External Service ==

PetMySite is a hosted service provided at https://petmysite.com/.

After a site administrator explicitly connects this plugin to PetMySite, WordPress sends the site's home URL, WordPress site URL, plugin version, PKCE challenge, and a one-time connection exchange to PetMySite. WordPress later uses a site-scoped token for status, verification, and disconnect requests. Connected public pages load the PetMySite widget runtime from PetMySite servers. The runtime retrieves public configuration for the connected hostname and may send privacy-friendly aggregate events such as widget impressions, pet interactions, and chat-open events.

PetMySite does not intentionally collect WordPress usernames, visitor identities, chat content, typed messages, or full page URLs as part of its widget analytics. The customer's existing chat provider has its own independent privacy behavior.

Service: https://petmysite.com/

Privacy: https://petmysite.com/privacy

Terms: https://petmysite.com/terms

== Installation ==

1. Upload the `petmysite` directory to `/wp-content/plugins/`.
2. Activate PetMySite through the Plugins screen in WordPress.
3. Open Settings → PetMySite and select Connect PetMySite.
4. Sign in on PetMySite, select or create the site, and return to WordPress.

== Frequently Asked Questions ==

= Does PetMySite replace my live-chat provider? =

No. PetMySite is designed to open the supported chat service already installed on the website.

= Does this version add anything to the public website? =

Nothing is added until an administrator completes the PetMySite connection. When connected and enabled, WordPress loads only the hosted `pet.js` runtime and the public site key. The secret connector token remains server-side.

= How do I add an inline launcher? =

Add `[petmysite_launcher]` or `[petmysite_launcher label="Chat with us"]` in any editor or builder that renders WordPress shortcodes.

= What happens when I deactivate the plugin? =

Deactivation retains local settings and the site connection so reactivation can resume safely. Deleting the plugin removes its local WordPress options and pending connection state.

== Changelog ==

= 1.0.2 =

* Fix "Last checked" showing "Never" straight after connecting.
* Refresh the status within a minute while the pet waits for its first visit, and suggest a check after previewing the site.
* Keep the website address whole in the settings headline and move the connection steps below the banner.

= 1.0.1 =

* Redesign the settings screen: a live status stage showing your pet, a setup checklist, readable connection details, a copyable launcher shortcode, and a two-step disconnect.
* Open PetMySite pages from the settings screen in a new tab.
* Bundle the settings screen's images, styles and OFL fonts inside the plugin.

= 0.1.0 =

* Add plugin lifecycle and per-site option storage.
* Add strict settings and connection schemas.
* Add public-key and connector-token validation.
* Add short-lived, user-scoped PKCE state helpers.
* Add the administrator connection, status, verification, and disconnect flow.
* Load the hosted runtime only for valid, enabled connections.
* Add the escaped `[petmysite_launcher]` shortcode.

== Upgrade Notice ==

= 1.0.2 =

Fixes the settings screen's last-checked time and refreshes a waiting pet's status sooner.

= 1.0.1 =

A redesigned settings screen with live status, a setup checklist and a safer disconnect.

= 0.1.0 =

Initial PetMySite WordPress connector.
