create-kywi-app 0.15.1 → 0.15.2
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/assets/agent-patterns.md +4 -1
- package/lib/templates.mjs +5 -1
- package/package.json +1 -1
package/assets/agent-patterns.md
CHANGED
|
@@ -489,7 +489,10 @@ already answered.
|
|
|
489
489
|
When consent is required and no page places the module, the API logs a one-time
|
|
490
490
|
warning on its first request: nobody can grant consent, so every personalization
|
|
491
491
|
cookie stays suppressed and audiences, A/B bucketing and UTM attribution serve
|
|
492
|
-
default content to everyone.
|
|
492
|
+
default content to everyone. A host that mounts the banner itself in app chrome
|
|
493
|
+
instead of a page or blueprint layout (kywi-cms#193) is invisible to that scan,
|
|
494
|
+
so set `theme.personalization.consentBanner: 'host'` to declare the placement
|
|
495
|
+
and skip the check.
|
|
493
496
|
|
|
494
497
|
### Which do I reach for? (in order)
|
|
495
498
|
|
package/lib/templates.mjs
CHANGED
|
@@ -2662,7 +2662,11 @@ Audiences, experiments and the self-ID widget you configure in the admin resolve
|
|
|
2662
2662
|
tooling instead, set \`personalization: { requireConsent: false }\` on your
|
|
2663
2663
|
theme in \`kywi.config.ts\` **and** \`KYWI_REQUIRE_CONSENT=false\` in the
|
|
2664
2664
|
environment (the edge middleware cannot read the config) — that hands
|
|
2665
|
-
compliance to your tooling and restores the un-gated cookie behaviour.
|
|
2665
|
+
compliance to your tooling and restores the un-gated cookie behaviour. If
|
|
2666
|
+
you mount \`cookieConsent\` yourself in \`app/(site)/layout.tsx\` instead of
|
|
2667
|
+
placing it through a page or blueprint layout, set
|
|
2668
|
+
\`personalization: { consentBanner: 'host' }\` too, or the API's one-time
|
|
2669
|
+
startup check will warn that nothing places it.
|
|
2666
2670
|
- **Preview links** — an admin preview link sets \`kywi_preview_init\` and the page
|
|
2667
2671
|
honours it, so you can preview an audience's experience.
|
|
2668
2672
|
|
package/package.json
CHANGED