@justai/cuts 0.24.1 → 0.25.1
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/package.json +2 -2
- package/src/Base.astro +10 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justai/cuts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "A persona's named parts — the page shell that holds them, and the cuts themselves.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@justai/core": "^0.
|
|
32
|
+
"@justai/core": "^0.3.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/src/Base.astro
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
import { dir as dirOf } from "@justai/ui/locale";
|
|
30
30
|
// The load-bearing behaviour is framework-free and lives in @justai/core, so `feed` (Next) injects the
|
|
31
31
|
// SAME strings instead of hand-copying them. This binding just decides where they go in an Astro head.
|
|
32
|
-
import { AUTH_CAPTURE_JS, JS_CLASS_JS, REVEAL_CSS, analyticsJs } from "@justai/core";
|
|
32
|
+
import { AUTH_CAPTURE_JS, JS_CLASS_JS, REVEAL_CSS, analyticsJs, consentCopy } from "@justai/core";
|
|
33
33
|
// The consent ask IS a confirmation — a moment of trust — so it rides the fleet's ONE dialog
|
|
34
34
|
// rather than keeping a private dialect. One anatomy for "are you sure?" and "may I count you?".
|
|
35
35
|
import ConfirmSheet from "./ConfirmSheet.astro";
|
|
@@ -62,6 +62,7 @@ const {
|
|
|
62
62
|
} = Astro.props;
|
|
63
63
|
|
|
64
64
|
const d = dirOf(lang);
|
|
65
|
+
const consent = consentCopy(lang);
|
|
65
66
|
const localePath = (l: string) => (l === defaultLocale ? "/" : `/${l}/`);
|
|
66
67
|
---
|
|
67
68
|
|
|
@@ -207,10 +208,15 @@ const localePath = (l: string) => (l === defaultLocale ? "/" : `/${l}/`);
|
|
|
207
208
|
a persona already visibly doing its job behind the scrim (ask-after-proof, never a wall
|
|
208
209
|
before the work), and it never asks twice (a slip-away counts as the quiet no; the door in
|
|
209
210
|
the footer is the change-of-mind path). */}
|
|
211
|
+
{/* The copy comes from @justai/core, NOT from `t`. A persona's dictionary holds what makes it
|
|
212
|
+
that persona; this is the ECOSYSTEM speaking, and it was identical in all thirteen repos —
|
|
213
|
+
measured, all 52 strings, before it moved. It is also legally load-bearing text, so it gets
|
|
214
|
+
exactly one place it can be edited. Personas may drop their consent* keys; a leftover key is
|
|
215
|
+
simply no longer read. */}
|
|
210
216
|
{gaId && (
|
|
211
|
-
<ConfirmSheet id="consent" ask body={
|
|
212
|
-
actionLabel={
|
|
213
|
-
data-choice-label={
|
|
217
|
+
<ConfirmSheet id="consent" ask body={consent.consentText}
|
|
218
|
+
actionLabel={consent.consentAllow} cancelLabel={consent.consentDecline} cancelValue="denied"
|
|
219
|
+
data-choice-label={consent.consentChoice} />
|
|
214
220
|
<script is:inline>
|
|
215
221
|
(function () {
|
|
216
222
|
try {
|