@sleekcms/sync 4.4.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/AGENTS.md +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -420,7 +420,7 @@ Content lives in `src/content/` as plain JSON. Edit any content file and save
|
|
|
420
420
|
|
|
421
421
|
## Site setup (`src/setup.json`)
|
|
422
422
|
|
|
423
|
-
Site-wide decisions made once — the default page title, whether Tailwind is compiled, whether a sitemap is published, the cookie consent switch, the chat bot switch, and analytics tag ids — live in `src/setup.json`, mirrored from **Settings → Website** in the CMS. The file is JSON with a comment above each key explaining it:
|
|
423
|
+
Site-wide decisions made once — the default page title, whether Tailwind is compiled, whether a sitemap is published, the cookie consent switch, the chat bot switch and how the chat opens, and analytics tag ids — live in `src/setup.json`, mirrored from **Settings → Website** in the CMS. The file is JSON with a comment above each key explaining it:
|
|
424
424
|
|
|
425
425
|
```json5
|
|
426
426
|
{
|
|
@@ -429,6 +429,7 @@ Site-wide decisions made once — the default page title, whether Tailwind is co
|
|
|
429
429
|
sitemap_enabled: false, // publish sitemap.xml + robots.txt on every build
|
|
430
430
|
cookie_consent: false, // consent banner; holds analytics + data-sleekcms-consent scripts until accepted
|
|
431
431
|
chat_enabled: false, // chat bot on every page, answering from the site's published pages
|
|
432
|
+
chat_mode: "POPUP", // how the chat opens: "POPUP", "SIDEBAR" or "SPOTLIGHT" (any case accepted)
|
|
432
433
|
analytics: { // tag ids injected into every page; include only the ones you use
|
|
433
434
|
ga4: "G-XXXXXXXXXX",
|
|
434
435
|
},
|
package/dist/AGENTS.md
CHANGED
|
@@ -125,6 +125,7 @@ setup.json Site setup (JSON, comments allowed): default pag
|
|
|
125
125
|
| `sitemap_enabled` | boolean | `true` publishes `sitemap.xml` + `robots.txt` on every build. Turn it on for public sites and SEO work. Which pages are *excluded* is a CMS UI setting (Manage Site > Search Visibility), never this file. |
|
|
126
126
|
| `cookie_consent` | boolean | `true` injects a consent banner into every page and holds the analytics tags, plus any script or iframe tagged `data-sleekcms-consent`, until the visitor accepts its category. A toggle only — banner text, position and styling are authored in HTML (§14). |
|
|
127
127
|
| `chat_enabled` | boolean | `true` adds the chat bot to every published page; it answers visitor questions from the site's published pages (re-read on every publish). A toggle only — the welcome message, knowledge files and instructions are managed in the CMS. `false` removes it from the next publish and stops open chats right away. |
|
|
128
|
+
| `chat_mode` | string | How the chat opens when a visitor clicks its launcher: `"POPUP"` (default, a small panel in the corner), `"SIDEBAR"` (a full-height panel docked right, over the page) or `"SPOTLIGHT"` (a centred search-style dialog). Any case is accepted and saved uppercase. On phones sidebar and spotlight open full screen. Changes with the next publish. A page can override it: `data-sleek-chat="sidebar"` (or `"spotlight"`, `"popup"`) on any button or link opens chat in that mode, and `--sleek-chat-mode` in the site's CSS sets it per page or breakpoint. |
|
|
128
129
|
| `analytics` | object | Marketing/analytics tag ids injected into every published page. |
|
|
129
130
|
|
|
130
131
|
`analytics` is a flat map — include only the keys the site uses:
|