=== Geemie Chat Widget ===
Contributors: geemie
Tags: chat, widget, customer support, live chat
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight plugin that injects the Geemie Chat widget into your site.

== Description ==

Adds the Geemie Chat widget script to the site front-end automatically.

- Inserts the chat widget loader before `</body>`: `https://service.geemie.chat/widget.js` (deferred).
- Also adds a small helper in the `<head>`: `https://service.geemie.chat/viewport.js` to ensure correct mobile viewport behavior.
- No settings or configuration required.
- The widget script automatically identifies the website by its origin (domain).

== External services ==

This plugin connects to an external service provided by Geemie Chat.

- **Service**: Geemie Chat AI widget and viewport helper, loaded from `https://service.geemie.chat`.
- **What it is used for**:
  - `viewport.js` adjusts the site’s `<meta name="viewport">` for better mobile display.
  - `widget.js` loads the Geemie Chat AI widget so visitors can chat with an AI assistant.
- **What data is sent and when**:
  - Only the text of the visitor’s chat message is sent to Geemie Chat in order to generate an AI response.
  - The plugin does **not** request or collect other personal data (such as name, email, or phone).
  - Note: standard network metadata (e.g., IP address, user agent) is inherently transmitted by the browser with any HTTPS request.
- **Local storage**:
  - The visitor’s browser `localStorage` is used to save the current conversation thread ID and recent chat history.
  - This lets visitors resume their conversation after a page reload.
  - Conversation history is **not** stored in the plugin developer’s own database.
- **Terms of Service (ÁSZF)**: https://www.geemie.chat/aszf
- **Privacy Policy / Data Protection**: https://www.geemie.chat/adatvedelem

== Frequently Asked Questions ==

= Do I need to configure anything? =
No. The widget is domain-based. Once activated, the plugin will automatically insert the code.

= Does this depend on my WordPress theme or page builder? =
No. The widget is rendered inside a shadow DOM, so external CSS/JS from themes or page builders cannot affect it. Appearance and behavior are controlled in the Geemie web admin, not inside WordPress.

= Does the plugin collect personal data? =
No. Only the message text typed by the visitor is sent to the service to generate an AI reply. The plugin does not request name, email, or phone. `localStorage` is used in the visitor’s browser to keep the thread ID and recent chat history.

== Changelog ==

= 1.0.2 =
* Add `viewport.js` in the document head to ensure correct mobile viewport behavior.
* Keep frontend-only enqueue and no output buffering/sessions.

= 1.0.1 =
* Removed output buffering and all HTML rewriting.
* No longer manipulates `<meta name="viewport">` tags server-side.
* Documented the external service (what is used, what data is sent, links to ÁSZF/Privacy).

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.2 =
Adds a small head script (`viewport.js`) for mobile viewport; no configuration required.

= 1.0.1 =
Compliance update: removed output buffering; added external-service disclosure.
