=== Ante Studio Connector ===
Contributors: anteandco
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
Requires plugins: elementor
Stable tag: 0.11.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish Ante Studio Elementor templates directly to this site.

== Description ==

Ante Studio Connector exposes a small REST API that lets Ante Studio create
and update Elementor pages on this site directly — no manual "Templates →
Import" step. The first publish of a page creates it; every publish after
that updates the SAME page in place.

Authentication is WordPress core Application Passwords (Users → Profile →
Application Passwords). No custom auth is implemented by this plugin.

== Installation ==

1. Upload the `ante-studio-connector` folder to `/wp-content/plugins/`.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Generate an Application Password for an Administrator account
   (Users → Profile → Application Passwords) and enter it in Ante Studio's
   "Connect a WordPress site" settings.

== Changelog ==

= 0.11.0 =
* New: `GET /pages` lists this site's published Elementor pages (id, title,
  URL, last-modified) — lets Ante Studio browse and cold-import pages
  directly from a connected site instead of requiring a manually-exported
  kit .zip.

= 0.9.1 =
* Fixed: the 0.9.0 rebrand switched the hover-highlight box and armed-mode
  viewport frame from purple to near-black ink, which all but disappears
  against a dark-background page (like this test site). Both now use the
  gold accent (plus a thin dark ring for definition on light backgrounds),
  visible against page backgrounds either way.

= 0.9.0 =
* Client-comment overlay now carries Ante's actual brand identity (from the
  ANTE wiki's brand guidelines): black/white high-contrast palette, Inter
  typeface, sharp 4px corners instead of soft/pill shapes, and the gold/
  champagne accent reserved for small status badges (e.g. "Team reply").
* Every emoji (💬, ✕, ✓) is replaced with a real Font Awesome icon,
  rendered as inline SVG — no external font/CDN request, keeping the
  widget's zero-dependency, Studio-reachability-independent design.

= 0.8.4 =
* Navigating to a comment from the "Feedback on this page" list now scrolls
  smoothly instead of jumping instantly.
* Clicking the body of a comment row (rather than its Edit/View link) no
  longer opens the edit popover — it just scrolls that comment's marker
  into view and gives it a brief highlight pulse, so a visitor can browse
  through several comments without the panel closing each time.

= 0.8.3 =
* Fixed: opening "Edit"/"View" from the "Feedback on this page" list
  positioned the popover in the bottom-right corner (wherever the click
  landed inside the fixed panel) instead of next to the actual comment
  marker on the page. It's now anchored to the marker itself.
* The whole comment row in that list is now clickable (not just the Edit/
  View link) and automatically scrolls the comment's marker into view
  first — an easy way to jump between every comment on the page.
* On-page markers now also reveal themselves when opening the "Feedback on
  this page" list or any single comment popover, not just while actively
  in "Leave feedback" mode.

= 0.8.2 =
* Visitors can now delete their own feedback comments, right from the same
  popover they already use to edit it. Locked (and blocked) once a team
  reply has landed, matching the existing edit lock. The delete always
  succeeds locally on this site regardless of whether Ante Studio is
  reachable — a best-effort, fire-and-forget call also cleans up Ante
  Studio's copy if one was already pulled in. Also fixes the rate-limit
  error on submitting feedback showing a generic message instead of the
  correct "sending too quickly" one.

= 0.8.1 =
* Client-comment overlay: the "Feedback on this page" panel no longer
  overlaps the button that opens it (its bottom edge is now measured from
  the button's live position instead of a hardcoded offset that happened
  to match the button's own, so the last item in the list was rendering
  underneath it). On-page feedback markers are now hidden until the
  visitor enters commenting mode, and hide again when they finish —
  previously they stayed visible on every page load regardless of mode.

= 0.8.0 =
* Client comments and staff replies now live in a local table on this site
  instead of relaying to Ante Studio at submit time — a visitor can leave
  feedback, and see a team reply, even when Ante Studio itself isn't
  reachable. Ante Studio pulls new comments via GET /comments/pull and
  pushes replies via POST /comments/reply (both admin-authenticated, same
  Application Password as /publish). GET /comment-status and
  GET /comments-feed now read locally too. PATCH /comments (editing) is
  the one piece that still relays to Ante Studio. Fully backward
  compatible: sites that don't update keep working exactly as before.

= 0.7.0 =
* POST /publish's image sideloading now recognizes an already-sideloaded
  image by content hash and reuses the existing media library attachment
  instead of creating a new one. Previously every republish of a page (and
  every other page reusing the same image) uploaded a fresh duplicate
  attachment, orphaning every prior copy in the media library.

= 0.6.0 =
* POST /publish's image sideloading now correctly handles small inline-icon
  SVGs: WordPress core's `wp_upload_bits()` rejects `.svg` by default (not in
  the site's default allowed-upload mime list), which was silently failing
  every icon SVG and leaving pages with an empty icon widget where the
  source had a real glyph. Sideloading now widens the mime allowlist for
  just that one upload (added and removed immediately around it, never left
  registered site-wide) and sanitizes the file via Elementor's own SVG
  sanitizer before it reaches the media library.

= 0.5.0 =
* POST /publish now also registers any font the template needs that
  Elementor's own bundled registry doesn't recognize (e.g. a font newer than
  the registry snapshot), via the `elementor/fonts/additional_fonts` filter
  — so it actually loads from Google Fonts on real page views instead of
  silently falling back to a local font.

= 0.4.0 =
* POST /publish now sideloads any image Ante Studio rehosted under its own
  storage into this site's own media library, instead of writing that
  storage's URL (dev localhost, or a signed URL that expires) into the page.
  Published pages no longer depend on Ante Studio's storage staying
  reachable after publish.

= 0.3.0 =
* GET /comments-feed: shared, no-login visibility into every visitor's
  feedback on a page (not just your own) — plus optional reply-notification
  email capture and a reworked "Feedback on this page" overlay panel.

= 0.2.0 =
* Client-comment overlay: POST/PATCH /comments, POST/DELETE /comment-token,
  GET /comment-status (visitor-side reply visibility). Mobile popover/panel
  clamping and accessibility improvements to the overlay script.

= 0.1.0 =
* Initial release: GET /status, POST /publish (create + update).
