@hanzo/ui 8.29.15 → 8.29.19
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/dist/consent/Consent.cjs +241 -50
- package/dist/consent/Consent.d.ts +4 -1
- package/dist/consent/Consent.d.ts.map +1 -1
- package/dist/consent/Consent.js +243 -52
- package/dist/consent/Consent.js.map +1 -1
- package/dist/consent/icon.cjs +14 -0
- package/dist/consent/icon.d.ts +13 -0
- package/dist/consent/icon.d.ts.map +1 -0
- package/dist/consent/icon.js +11 -0
- package/dist/consent/icon.js.map +1 -0
- package/dist/consent/index.cjs +3 -1
- package/dist/consent/index.d.ts +1 -0
- package/dist/consent/index.d.ts.map +1 -1
- package/dist/consent/index.js +1 -0
- package/dist/consent/index.js.map +1 -1
- package/dist/gallery.html +1 -1
- package/dist/marketing/Footer.cjs +4 -1
- package/dist/marketing/Footer.d.ts.map +1 -1
- package/dist/marketing/Footer.js +4 -1
- package/dist/marketing/Footer.js.map +1 -1
- package/dist/masthead/nav.cjs +1 -1
- package/dist/masthead/nav.js +1 -1
- package/dist/masthead/nav.js.map +1 -1
- package/package.json +3 -3
package/dist/consent/Consent.js
CHANGED
|
@@ -1,38 +1,45 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
4
|
* Consent — the one cookie banner every Hanzo, Lux and Zoo site mounts.
|
|
5
5
|
*
|
|
6
|
-
* It draws the choice; @hanzo/event stores it (`hz_consent`) and acts on it
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* It draws the choice; @hanzo/event stores it (`hz_consent`) and acts on it. The
|
|
7
|
+
* brand's own first-party analytics is strictly necessary and runs for every
|
|
8
|
+
* visitor. What the third parties (Google Analytics, the Meta pixel, their ad
|
|
9
|
+
* personalization) may do is regional: cloud places the visitor by GeoIP and
|
|
10
|
+
* serves a `mode` with the site's tag config (`consentPolicy()`).
|
|
10
11
|
*
|
|
11
|
-
* -
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* -
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
19
|
-
*
|
|
20
|
-
* -
|
|
21
|
-
*
|
|
12
|
+
* - `eu`: opt-in. A bar with Manage preferences, Accept all and a ×, until the
|
|
13
|
+
* visitor has chosen; what a third party may do meanwhile is @hanzo/event's
|
|
14
|
+
* rule (consent.ts, tags.ts). The × is a choice, not a dismissal: essential
|
|
15
|
+
* cookies only, so refusing is one press, exactly as accepting is.
|
|
16
|
+
* - `us_privacy`: opt-out. No bar; Google Analytics and Meta run by default, and
|
|
17
|
+
* "Your Privacy Choices" opens the sheet, where turning a switch off saves at
|
|
18
|
+
* once. The advertising switch is the sale and sharing opt-out.
|
|
19
|
+
* - `global`: a notice. One line and a × that records it as seen; the same
|
|
20
|
+
* opt-out sheet stays one press away.
|
|
21
|
+
* - Global Privacy Control or Do Not Track is an answer already: in `eu` every
|
|
22
|
+
* switch is held off and the visitor is not asked; elsewhere the sale and
|
|
23
|
+
* sharing for targeted advertising is held off.
|
|
24
|
+
* - Until cloud answers, nothing is drawn: the answer this tab was last served
|
|
25
|
+
* (@hanzo/event keeps it) is used at once, and with none by 1.5s the strict
|
|
26
|
+
* `eu` rule applies.
|
|
22
27
|
*
|
|
23
28
|
* `Consent` mounts once near the root. `openConsent()`, `ConsentLink` and any
|
|
24
|
-
* link to `#choices` (the footer's Privacy
|
|
25
|
-
*
|
|
26
|
-
*
|
|
29
|
+
* link to `#choices` (the footer's Your Privacy Choices) open the sheet from
|
|
30
|
+
* anywhere. A page with no such link in it gets a small one, fixed to the foot of
|
|
31
|
+
* the window, so the choices are always one press away. `brand` names who is
|
|
32
|
+
* asking; `cookies`, `privacy` and `terms` are the brand's own policies.
|
|
27
33
|
*/
|
|
28
34
|
import { Paragraph, Text, XStack, YStack } from '@hanzo/gui';
|
|
29
35
|
import { ChevronDown, X } from '@hanzogui/lucide-icons-2';
|
|
30
|
-
import { acceptAll, asks, declined, POLICY_EVENT, readConsent, rejectAll, saveConsent, storedConsent } from '@hanzo/event';
|
|
36
|
+
import { acceptAll, asks, consentPolicy, declined, notice, noticed, POLICY_EVENT, readConsent, rejectAll, saveConsent, storedConsent, } from '@hanzo/event';
|
|
31
37
|
import { useEffect, useId, useRef, useState } from 'react';
|
|
32
38
|
import { Button } from '../backends/gui/button.js';
|
|
33
39
|
import { align } from '../backends/gui/dir.js';
|
|
34
40
|
import { Switch } from '../backends/gui/switch.js';
|
|
35
41
|
import { slot } from '../backends/gui/slot.js';
|
|
42
|
+
import { PrivacyChoicesIcon } from './icon.js';
|
|
36
43
|
const OPEN = 'hzconsent-open';
|
|
37
44
|
/** The address that opens the sheet, from any link on any page. */
|
|
38
45
|
const HASH = '#choices';
|
|
@@ -41,7 +48,51 @@ export const openConsent = () => {
|
|
|
41
48
|
if (typeof window !== 'undefined')
|
|
42
49
|
window.dispatchEvent(new Event(OPEN));
|
|
43
50
|
};
|
|
44
|
-
|
|
51
|
+
/** How long a page waits for cloud's rule before the strict one applies. */
|
|
52
|
+
const WAIT = 1500;
|
|
53
|
+
/**
|
|
54
|
+
* The rule, once one has been served: on this page, or to this tab before (then
|
|
55
|
+
* it carries the region cloud placed the visitor in). `consentPolicy()` answers
|
|
56
|
+
* `eu` before either, which is the rule to wait out rather than draw.
|
|
57
|
+
*/
|
|
58
|
+
const served = () => {
|
|
59
|
+
const p = consentPolicy();
|
|
60
|
+
return p.region ? p.mode : undefined;
|
|
61
|
+
};
|
|
62
|
+
/*
|
|
63
|
+
* The links a page draws to the sheet, counted on the page (not in module scope,
|
|
64
|
+
* since a bundle may carry two copies of this module), so the component draws its
|
|
65
|
+
* own only where the page has none.
|
|
66
|
+
*/
|
|
67
|
+
const LINKS = Symbol.for('hanzo.ui.consent.links');
|
|
68
|
+
const LINKS_EVENT = 'hzconsent-links';
|
|
69
|
+
function hold() {
|
|
70
|
+
const g = globalThis;
|
|
71
|
+
g[LINKS] = (g[LINKS] ?? 0) + 1;
|
|
72
|
+
window.dispatchEvent(new Event(LINKS_EVENT));
|
|
73
|
+
return () => {
|
|
74
|
+
g[LINKS] = Math.max(0, (g[LINKS] ?? 1) - 1);
|
|
75
|
+
window.dispatchEvent(new Event(LINKS_EVENT));
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/** Whether the page draws a way to the sheet: a ConsentLink, or a link on this site to #choices (a footer's). */
|
|
79
|
+
function linked() {
|
|
80
|
+
const g = globalThis;
|
|
81
|
+
if ((g[LINKS] ?? 0) > 0)
|
|
82
|
+
return true;
|
|
83
|
+
for (const a of document.querySelectorAll(`a[href*="${HASH}"]`)) {
|
|
84
|
+
try {
|
|
85
|
+
const to = new URL(a.getAttribute('href') ?? '', document.baseURI);
|
|
86
|
+
if (to.hash === HASH && to.origin === window.location.origin)
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
/* an address that does not parse leads nowhere */
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
const kinds = (brand, strict) => [
|
|
45
96
|
{
|
|
46
97
|
id: 'necessary',
|
|
47
98
|
title: 'Strictly Necessary Cookies',
|
|
@@ -63,9 +114,17 @@ const kinds = (brand) => [
|
|
|
63
114
|
id: 'ads',
|
|
64
115
|
key: 'ads',
|
|
65
116
|
title: 'Sell, Share, or Use Your Data for Targeted Advertising',
|
|
66
|
-
body:
|
|
117
|
+
body: `Lets Google and Meta use your visits to choose the ads they show you on other sites and apps. Some US state privacy laws call this a “sale” or “sharing” of your personal information, or “targeted advertising”, and give you the right to opt out: ${strict ? 'it stays off unless you turn it on.' : 'turn this off to opt out.'}`,
|
|
67
118
|
},
|
|
68
119
|
];
|
|
120
|
+
/** The sheet's opening line, by rule: what runs before the visitor does anything, and how to change it. */
|
|
121
|
+
const intro = (strict) => strict
|
|
122
|
+
? 'We use cookies and similar technologies to provide our services, measure performance, and support advertising. Essential cookies are required for the site to work and cannot be turned off. You can allow or reject optional cookies below. Learn more in our '
|
|
123
|
+
: 'We use cookies and similar technologies to provide our services, measure performance, and support advertising. Google Analytics and the Meta pixel run on this site by default. Turn either off below, or turn off the last switch to opt out of the sale or sharing of your personal information for targeted advertising; each switch is saved as soon as you change it. Essential cookies are required for the site to work and cannot be turned off. Learn more in our ';
|
|
124
|
+
/** What a browser that sends Global Privacy Control or Do Not Track holds off, by rule. */
|
|
125
|
+
const refusal = (strict) => strict
|
|
126
|
+
? 'Your browser asks sites not to track you, so all of these stay off.'
|
|
127
|
+
: 'Your browser asks sites not to track you, so your data is not sold or shared for targeted advertising.';
|
|
69
128
|
/** The bar's and the sheet's inset from the window's edges: 16px, or the device's inset and 8px where that is wider. */
|
|
70
129
|
const EDGE = {
|
|
71
130
|
top: 'max(16px, calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 8px))',
|
|
@@ -73,12 +132,18 @@ const EDGE = {
|
|
|
73
132
|
left: 'max(16px, calc(var(--safe-left, env(safe-area-inset-left, 0px)) + 8px))',
|
|
74
133
|
right: 'max(16px, calc(var(--safe-right, env(safe-area-inset-right, 0px)) + 8px))',
|
|
75
134
|
};
|
|
76
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* Corners from design's ladder (radius.css), one step apart so the buttons sit
|
|
137
|
+
* concentric in their card: a button on `--radius-lg` (12px), the bar and the
|
|
138
|
+
* sheet on `--radius-xl` (16px). Both follow `--radius-scale`; neither is a pill.
|
|
139
|
+
*/
|
|
140
|
+
const ROUND = { button: 'var(--radius-lg, 12px)', card: 'var(--radius-xl, 16px)' };
|
|
141
|
+
/** The panel both wear: the card's ground, edge, corner and floating shadow. */
|
|
77
142
|
const PANEL = {
|
|
78
143
|
bg: '$background',
|
|
79
144
|
borderWidth: 1,
|
|
80
145
|
borderColor: '$borderColor',
|
|
81
|
-
rounded:
|
|
146
|
+
rounded: ROUND.card,
|
|
82
147
|
shadowColor: 'rgba(0,0,0,0.25)',
|
|
83
148
|
shadowRadius: 24,
|
|
84
149
|
shadowOffset: { width: 0, height: 8 },
|
|
@@ -92,8 +157,6 @@ const PANEL = {
|
|
|
92
157
|
const frame = {
|
|
93
158
|
...slot('consent'),
|
|
94
159
|
...PANEL,
|
|
95
|
-
role: 'dialog',
|
|
96
|
-
'aria-label': 'Cookie preferences',
|
|
97
160
|
position: 'fixed',
|
|
98
161
|
b: EDGE.bottom,
|
|
99
162
|
l: EDGE.left,
|
|
@@ -102,13 +165,59 @@ const frame = {
|
|
|
102
165
|
z: 'var(--z-banner, 50)',
|
|
103
166
|
py: '$3',
|
|
104
167
|
paddingInlineStart: '$4',
|
|
105
|
-
// Clear of the × in the corner: its
|
|
168
|
+
// Clear of the × in the corner: its 36px, 12px outside it and 8px before it.
|
|
106
169
|
paddingInlineEnd: 56,
|
|
107
170
|
};
|
|
108
171
|
/** The bar is as wide as its line and buttons, up to the window less its inset. */
|
|
109
172
|
const FIT = { width: 'fit-content' };
|
|
110
|
-
/** The
|
|
111
|
-
const
|
|
173
|
+
/** The keyboard's mark on any control here: design's focus ring, outside the control. */
|
|
174
|
+
const RING = { outlineColor: 'var(--ring)', outlineStyle: 'solid', outlineWidth: 2, outlineOffset: 2 };
|
|
175
|
+
/**
|
|
176
|
+
* A button's every state from design's button tokens (colors.css), so it follows
|
|
177
|
+
* the theme and an org's accent: at rest the fill, under the pointer and pressed
|
|
178
|
+
* its `-hover` step, focused by keyboard the ring. Each state names its fill and
|
|
179
|
+
* a clear edge outright, because a state that leaves one out takes the Button's
|
|
180
|
+
* own (the frame's hover is a near-black fill and a grey edge, which put dark
|
|
181
|
+
* text on dark under the cursor). 13px type on the 36px floor.
|
|
182
|
+
*/
|
|
183
|
+
const button = (fill, hover, ink) => ({
|
|
184
|
+
size: 'sm',
|
|
185
|
+
minH: 36,
|
|
186
|
+
rounded: ROUND.button,
|
|
187
|
+
bg: fill,
|
|
188
|
+
color: ink,
|
|
189
|
+
borderColor: 'transparent',
|
|
190
|
+
hoverStyle: { bg: hover, borderColor: 'transparent', opacity: 1 },
|
|
191
|
+
pressStyle: { bg: hover, borderColor: 'transparent', opacity: 1 },
|
|
192
|
+
focusStyle: { borderColor: 'transparent' },
|
|
193
|
+
focusVisibleStyle: RING,
|
|
194
|
+
});
|
|
195
|
+
/** The one filled control: Accept all in the bar, Save preferences (or Done) in the sheet. */
|
|
196
|
+
const PRIMARY = button('var(--primary)', 'var(--primary-hover)', 'var(--primary-foreground)');
|
|
197
|
+
/** Beside it: Manage preferences in the bar, Accept all in the sheet. */
|
|
198
|
+
const SECONDARY = button('var(--secondary)', 'var(--secondary-hover)', 'var(--secondary-foreground)');
|
|
199
|
+
/** A ×: no fill at rest, the secondary surface under the pointer. */
|
|
200
|
+
const CLOSE = {
|
|
201
|
+
rounded: ROUND.button,
|
|
202
|
+
bg: 'transparent',
|
|
203
|
+
borderColor: 'transparent',
|
|
204
|
+
hoverStyle: { bg: 'var(--secondary)', borderColor: 'transparent', opacity: 1 },
|
|
205
|
+
pressStyle: { bg: 'var(--secondary-hover)', borderColor: 'transparent', opacity: 1 },
|
|
206
|
+
focusStyle: { borderColor: 'transparent' },
|
|
207
|
+
focusVisibleStyle: RING,
|
|
208
|
+
};
|
|
209
|
+
/** "Your Privacy Choices" as a footer draws a link: the icon, then the words, quiet until pointed at. */
|
|
210
|
+
const CHOICES = {
|
|
211
|
+
type: 'button',
|
|
212
|
+
variant: 'link',
|
|
213
|
+
size: 'sm',
|
|
214
|
+
px: 0,
|
|
215
|
+
minH: 0,
|
|
216
|
+
color: '$aside',
|
|
217
|
+
hoverStyle: { color: '$ink' },
|
|
218
|
+
focusVisibleStyle: RING,
|
|
219
|
+
startIcon: _jsx(PrivacyChoicesIcon, {}),
|
|
220
|
+
};
|
|
112
221
|
/** A link in the sheet's intro: the line's own ink, underlined, never broken across lines. */
|
|
113
222
|
const INLINE = { color: 'inherit', textDecoration: 'underline', whiteSpace: 'nowrap' };
|
|
114
223
|
/** The sheet covers the window, on design's modal rung, over a scrim of its own. */
|
|
@@ -118,10 +227,20 @@ const FOCUSABLE = 'a[href], button:not([disabled]), [tabindex]:not([tabindex="-1
|
|
|
118
227
|
/** A section's button never submits a form the sheet sits in. gui's stack props do not name `type`. */
|
|
119
228
|
const BUTTON = { type: 'button' };
|
|
120
229
|
const Consent = ({ cookies = 'https://hanzo.ai/cookies', privacy = 'https://hanzo.ai/privacy', terms = 'https://hanzo.ai/terms', brand = 'Hanzo', }) => {
|
|
230
|
+
// The rule in force: undefined until cloud (or this tab) has said, and nothing is drawn meanwhile.
|
|
231
|
+
const [mode, setMode] = useState();
|
|
232
|
+
// The bar (eu) or the notice (global) at the foot of the window.
|
|
121
233
|
const [shown, setShown] = useState(false);
|
|
122
234
|
const [choosing, setChoosing] = useState(false);
|
|
123
235
|
const [draft, setDraft] = useState({ analytics: false, marketing: false, ads: false });
|
|
236
|
+
// The switches as they stand, for a handler registered once.
|
|
237
|
+
const latest = useRef(draft);
|
|
238
|
+
latest.current = draft;
|
|
124
239
|
const [expanded, setExpanded] = useState({});
|
|
240
|
+
// Whether the page draws its own way to the sheet; if not, the component draws one.
|
|
241
|
+
const [hosted, setHosted] = useState(true);
|
|
242
|
+
// The rule, read by handlers registered once.
|
|
243
|
+
const rule = useRef(undefined);
|
|
125
244
|
// The choices are open because the visitor asked for them. A policy that
|
|
126
245
|
// arrives after (cloud answers ~150ms into a page opened at #choices) redraws
|
|
127
246
|
// the bar's question, and must not close what was asked for.
|
|
@@ -131,12 +250,16 @@ const Consent = ({ cookies = 'https://hanzo.ai/cookies', privacy = 'https://hanz
|
|
|
131
250
|
const sheet = useRef(null);
|
|
132
251
|
const manage = useRef(null);
|
|
133
252
|
const opened = useRef(false);
|
|
134
|
-
// The switches were filled from a stored choice, not left
|
|
253
|
+
// The switches were filled from a stored choice, not left at the rule's defaults.
|
|
135
254
|
const seeded = useRef(false);
|
|
255
|
+
// The visitor has moved a switch since the sheet opened.
|
|
256
|
+
const touched = useRef(false);
|
|
136
257
|
const id = useId();
|
|
137
258
|
// The browser refused, as the page sees it or as cloud saw the request. State,
|
|
138
259
|
// so cloud's answer redraws an open sheet.
|
|
139
260
|
const [locked, setLocked] = useState(false);
|
|
261
|
+
/** What stands at the foot of the window under a rule: the eu bar until a choice, the global notice until seen. */
|
|
262
|
+
const front = (m = rule.current) => (m === 'eu' ? asks() : m === 'global' ? !noticed() : false);
|
|
140
263
|
const choose = () => {
|
|
141
264
|
// Already open: the visitor's unsaved switches and the focus to return stay as they are.
|
|
142
265
|
if (asked.current)
|
|
@@ -144,33 +267,67 @@ const Consent = ({ cookies = 'https://hanzo.ai/cookies', privacy = 'https://hanz
|
|
|
144
267
|
const at = document.activeElement;
|
|
145
268
|
back.current = at instanceof HTMLElement && at !== document.body ? at : null;
|
|
146
269
|
asked.current = true;
|
|
270
|
+
touched.current = false;
|
|
147
271
|
setLocked(declined());
|
|
148
272
|
seeded.current = storedConsent();
|
|
149
273
|
setDraft(readConsent());
|
|
150
274
|
setChoosing(true);
|
|
151
|
-
setShown(true);
|
|
152
275
|
};
|
|
153
|
-
// Closing without a choice: a visitor who has not chosen is asked again by the bar.
|
|
276
|
+
// Closing without a choice: under eu a visitor who has not chosen is asked again by the bar.
|
|
154
277
|
const close = () => {
|
|
155
278
|
asked.current = false;
|
|
156
279
|
setChoosing(false);
|
|
157
|
-
setShown(
|
|
280
|
+
setShown(front());
|
|
158
281
|
};
|
|
159
282
|
useEffect(() => {
|
|
160
283
|
const sync = () => {
|
|
161
|
-
setShown(
|
|
284
|
+
setShown(front());
|
|
162
285
|
setLocked(declined());
|
|
163
286
|
// A policy version the stored choice was not made under: the switches the
|
|
164
|
-
// sheet opened with were an old grant, and
|
|
287
|
+
// sheet opened with were an old grant, and fall back to the rule's own.
|
|
165
288
|
if (asked.current && seeded.current && !storedConsent()) {
|
|
166
289
|
seeded.current = false;
|
|
167
290
|
setDraft(readConsent());
|
|
168
291
|
}
|
|
169
292
|
};
|
|
170
|
-
|
|
293
|
+
const decide = (m) => {
|
|
294
|
+
const changed = rule.current !== m;
|
|
295
|
+
rule.current = m;
|
|
296
|
+
setMode(m);
|
|
297
|
+
sync();
|
|
298
|
+
// A rule that changes under an open sheet changes what its switches mean.
|
|
299
|
+
// Untouched, they show the new rule's defaults; moved, they are the
|
|
300
|
+
// visitor's answer, which an opt-out rule takes as said.
|
|
301
|
+
if (!changed || !asked.current)
|
|
302
|
+
return;
|
|
303
|
+
if (!touched.current)
|
|
304
|
+
setDraft(readConsent());
|
|
305
|
+
else if (m !== 'eu')
|
|
306
|
+
saveConsent(latest.current);
|
|
307
|
+
};
|
|
308
|
+
// Cloud answered on this page: its rule, whether or not it placed the visitor.
|
|
309
|
+
const policy = () => decide(consentPolicy().mode);
|
|
310
|
+
const known = served();
|
|
311
|
+
if (known)
|
|
312
|
+
decide(known);
|
|
313
|
+
// No answer in time is the strict answer.
|
|
314
|
+
const wait = known ? undefined : window.setTimeout(() => rule.current ?? decide('eu'), WAIT);
|
|
315
|
+
// The page's own links to the sheet, looked for again as it changes, once a frame.
|
|
316
|
+
let frameId = 0;
|
|
317
|
+
const look = () => {
|
|
318
|
+
if (frameId)
|
|
319
|
+
return;
|
|
320
|
+
frameId = window.requestAnimationFrame(() => {
|
|
321
|
+
frameId = 0;
|
|
322
|
+
setHosted(linked());
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
look();
|
|
326
|
+
const watch = new MutationObserver(look);
|
|
327
|
+
watch.observe(document.body, { childList: true, subtree: true });
|
|
171
328
|
// `#choices` opens the sheet: on arrival, on a hash change, and on a press of
|
|
172
|
-
// any link on this site to it, so the footer's Privacy
|
|
173
|
-
// a page are the same control.
|
|
329
|
+
// any link on this site to it, so the footer's Your Privacy Choices and a link
|
|
330
|
+
// in a page are the same control.
|
|
174
331
|
const hash = () => {
|
|
175
332
|
if (window.location.hash !== HASH)
|
|
176
333
|
return;
|
|
@@ -205,12 +362,17 @@ const Consent = ({ cookies = 'https://hanzo.ai/cookies', privacy = 'https://hanz
|
|
|
205
362
|
};
|
|
206
363
|
hash();
|
|
207
364
|
window.addEventListener(OPEN, choose);
|
|
208
|
-
window.addEventListener(POLICY_EVENT,
|
|
365
|
+
window.addEventListener(POLICY_EVENT, policy);
|
|
366
|
+
window.addEventListener(LINKS_EVENT, look);
|
|
209
367
|
window.addEventListener('hashchange', hash);
|
|
210
368
|
document.addEventListener('click', press, { capture: true });
|
|
211
369
|
return () => {
|
|
370
|
+
window.clearTimeout(wait);
|
|
371
|
+
window.cancelAnimationFrame(frameId);
|
|
372
|
+
watch.disconnect();
|
|
212
373
|
window.removeEventListener(OPEN, choose);
|
|
213
|
-
window.removeEventListener(POLICY_EVENT,
|
|
374
|
+
window.removeEventListener(POLICY_EVENT, policy);
|
|
375
|
+
window.removeEventListener(LINKS_EVENT, look);
|
|
214
376
|
window.removeEventListener('hashchange', hash);
|
|
215
377
|
document.removeEventListener('click', press, { capture: true });
|
|
216
378
|
};
|
|
@@ -260,28 +422,57 @@ const Consent = ({ cookies = 'https://hanzo.ai/cookies', privacy = 'https://hanz
|
|
|
260
422
|
document.addEventListener('keydown', keys);
|
|
261
423
|
return () => document.removeEventListener('keydown', keys);
|
|
262
424
|
}, [choosing]);
|
|
263
|
-
if (!shown)
|
|
264
|
-
return null;
|
|
265
425
|
const done = (fn) => () => {
|
|
266
426
|
fn();
|
|
267
427
|
asked.current = false;
|
|
268
|
-
setShown(
|
|
428
|
+
setShown(front());
|
|
269
429
|
setChoosing(false);
|
|
270
430
|
};
|
|
271
|
-
|
|
272
|
-
|
|
431
|
+
// The sheet, drawn over whatever opened it, which stays mounted so focus can go back to it.
|
|
432
|
+
let panel = null;
|
|
433
|
+
if (choosing) {
|
|
434
|
+
// A sheet opened before cloud answered speaks the strict rule.
|
|
435
|
+
const strict = (mode ?? 'eu') === 'eu';
|
|
436
|
+
// eu holds every switch off for a browser that refused; elsewhere only the sale and sharing.
|
|
437
|
+
const held = (key) => locked && (strict || key === 'ads');
|
|
438
|
+
// Under eu the switches wait for Save preferences; elsewhere each one is an opt-out, saved as it moves.
|
|
439
|
+
const flip = (key, on) => {
|
|
440
|
+
touched.current = true;
|
|
441
|
+
const next = { ...draft, [key]: on };
|
|
442
|
+
setDraft(next);
|
|
443
|
+
if (!strict)
|
|
444
|
+
saveConsent(next);
|
|
445
|
+
};
|
|
446
|
+
panel = (_jsxs(YStack, { ...slot('consent-sheet'), ...COVER, z: "var(--z-modal, 600)", items: "center", justify: "center",
|
|
273
447
|
// The device's insets are physical sides, so the shorthand names them in order.
|
|
274
|
-
style: { padding: `${EDGE.top} ${EDGE.right} ${EDGE.bottom} ${EDGE.left}` }, children: [_jsx(YStack, { ...COVER, position: "absolute", z: 0, bg: "rgba(0,0,0,0.6)", "aria-hidden": true, onPress: close }), _jsxs(YStack, { ...slot('consent'), ...PANEL, ref: sheet, role: "dialog", "aria-modal": true, "aria-labelledby": `${id}-title`, position: "relative", width: "100%", maxW: 560, maxH: "100%", overflow: "hidden", children: [_jsxs(XStack, { items: "center", justify: "space-between", gap: "$3", pt: "$5", pb: "$3", paddingInlineStart: "$5", paddingInlineEnd: "$4", children: [_jsx(Text, { render: "h2", id: `${id}-title`, m: 0, fontSize: "$6", lineHeight: "$6", fontWeight: "600", color: "$ink", children: "Cookie Preferences" }), _jsx(Button, { type: "button", size: "icon
|
|
448
|
+
style: { padding: `${EDGE.top} ${EDGE.right} ${EDGE.bottom} ${EDGE.left}` }, children: [_jsx(YStack, { ...COVER, position: "absolute", z: 0, bg: "rgba(0,0,0,0.6)", "aria-hidden": true, onPress: close }), _jsxs(YStack, { ...slot('consent'), ...PANEL, ref: sheet, role: "dialog", "aria-modal": true, "aria-labelledby": `${id}-title`, position: "relative", width: "100%", maxW: 560, maxH: "100%", overflow: "hidden", children: [_jsxs(XStack, { items: "center", justify: "space-between", gap: "$3", pt: "$5", pb: "$3", paddingInlineStart: "$5", paddingInlineEnd: "$4", children: [_jsx(Text, { render: "h2", id: `${id}-title`, m: 0, fontSize: "$6", lineHeight: "$6", fontWeight: "600", color: "$ink", children: "Cookie Preferences" }), _jsx(Button, { type: "button", size: "icon", ...CLOSE, "aria-label": "Close", onClick: close, children: _jsx(X, { size: 16 }) })] }), _jsxs(YStack, { shrink: 1, minH: 0, overflowY: "auto", px: "$5", pb: "$2", style: { overscrollBehavior: 'contain' }, children: [_jsxs(Paragraph, { size: "$2", color: "$aside", m: 0, pb: "$3", children: [intro(strict), _jsx("a", { href: cookies, style: INLINE, children: "Cookie Policy" }), ', ', _jsx("a", { href: privacy, style: INLINE, children: "Privacy Policy" }), ', and ', _jsx("a", { href: terms, style: INLINE, children: "Terms of Service" }), "."] }), locked ? (_jsx(Paragraph, { size: "$2", color: "$ink", m: 0, pb: "$3", children: refusal(strict) })) : null, kinds(brand, strict).map((k) => {
|
|
275
449
|
const open = expanded[k.id] === true;
|
|
276
450
|
const body = `${id}-${k.id}`;
|
|
277
|
-
return (_jsxs(YStack, { ...slot('consent-section'), borderTopWidth: 1, borderColor: "$borderColor", children: [_jsxs(XStack, { items: "center", gap: "$3", minH: 52, py: "$2", children: [_jsx(XStack, { render: "h3", flex: 1, minW: 0, m: 0, children: _jsxs(XStack, { render: "button", ...BUTTON, "aria-expanded": open, "aria-controls": body, onPress: () => setExpanded({ ...expanded, [k.id]: !open }), flex: 1, minW: 0, items: "center", gap: "$2", p: 0, bg: "transparent", borderWidth: 0, cursor: "pointer", children: [_jsx(XStack, { shrink: 0, rotate: open ? '180deg' : '0deg', opacity: 0.7, children: _jsx(ChevronDown, { size: 16 }) }), _jsx(Text, { fontSize: "$3", lineHeight: "$3", fontWeight: "600", color: "$ink", ...align('start'), children: k.title })] }) }), k.key ? (_jsx(Switch, { "aria-label": k.title, "aria-describedby": body, disabled:
|
|
278
|
-
})] }),
|
|
279
|
-
|
|
451
|
+
return (_jsxs(YStack, { ...slot('consent-section'), borderTopWidth: 1, borderColor: "$borderColor", children: [_jsxs(XStack, { items: "center", gap: "$3", minH: 52, py: "$2", children: [_jsx(XStack, { render: "h3", flex: 1, minW: 0, m: 0, children: _jsxs(XStack, { render: "button", ...BUTTON, "aria-expanded": open, "aria-controls": body, onPress: () => setExpanded({ ...expanded, [k.id]: !open }), flex: 1, minW: 0, items: "center", gap: "$2", p: 0, bg: "transparent", borderWidth: 0, cursor: "pointer", children: [_jsx(XStack, { shrink: 0, rotate: open ? '180deg' : '0deg', opacity: 0.7, children: _jsx(ChevronDown, { size: 16 }) }), _jsx(Text, { fontSize: "$3", lineHeight: "$3", fontWeight: "600", color: "$ink", ...align('start'), children: k.title })] }) }), k.key ? (_jsx(Switch, { "aria-label": k.title, "aria-describedby": body, disabled: held(k.key), checked: held(k.key) ? false : draft[k.key], onCheckedChange: (v) => flip(k.key, v === true) })) : (_jsx(Text, { fontSize: "$2", fontWeight: "600", color: "$ink", whiteSpace: "nowrap", children: "Always Active" }))] }), _jsx(YStack, { id: body, display: open ? 'flex' : 'none', pb: "$3", paddingInlineStart: 24, children: _jsx(Paragraph, { size: "$2", color: "$aside", m: 0, children: k.body }) })] }, k.id));
|
|
452
|
+
})] }), _jsx(XStack, { flexWrap: "wrap", gap: "$2", px: "$5", py: "$4", borderTopWidth: 1, borderColor: "$borderColor", children: strict ? (_jsxs(_Fragment, { children: [locked ? null : (_jsx(Button, { type: "button", ...SECONDARY, grow: 1, onClick: done(acceptAll), children: "Accept all" })), _jsx(Button, { type: "button", ...PRIMARY, grow: 1, onClick: done(() => saveConsent(draft)), children: "Save preferences" })] })) : (_jsx(Button, { type: "button", ...PRIMARY, grow: 1, onClick: close, children: "Done" })) })] })] }));
|
|
453
|
+
}
|
|
454
|
+
if (!mode)
|
|
455
|
+
return panel;
|
|
456
|
+
// The way to the sheet on a page that draws none: small, quiet, at the foot of the window.
|
|
457
|
+
const own = !hosted && !shown ? (_jsx(XStack, { ...slot('consent-choices'), position: "fixed", b: EDGE.bottom, l: EDGE.left, z: "var(--z-banner, 50)", px: "$2.5", py: "$1", bg: "$background", borderWidth: 1, borderColor: "$borderColor", rounded: ROUND.button, children: _jsx(Button, { ...CHOICES, onClick: choose, children: "Your Privacy Choices" }) })) : null;
|
|
458
|
+
let surface = own;
|
|
459
|
+
// The global notice: one line, the way to the choices, and a × that records it as seen.
|
|
460
|
+
if (shown && mode === 'global')
|
|
461
|
+
surface = (_jsxs(XStack, { ...frame, role: "region", "aria-label": "Cookie notice", style: FIT, maxW: 1200, flexWrap: "wrap", items: "center", columnGap: "$4", rowGap: "$2", children: [_jsx(YStack, { shrink: 1, minW: 0, children: _jsx(Paragraph, { size: "$2", color: "$ink", m: 0, children: "We use cookies to improve your experience. By continuing to browse, you agree." }) }), _jsx(Button, { ...CHOICES, onClick: choose, children: "Your Privacy Choices" }), _jsx(Button, { type: "button", size: "icon", ...CLOSE, "aria-label": "Close", position: "absolute", t: "$3", insetInlineEnd: "$3", onClick: done(notice), children: _jsx(X, { size: 16 }) })] }));
|
|
462
|
+
// The eu bar: the line, then the buttons. They share a row where the line fits
|
|
280
463
|
// beside them and the buttons drop under it where it does not, so a phone shows
|
|
281
464
|
// the line over one row of buttons and nothing breaks mid-control.
|
|
282
|
-
|
|
465
|
+
else if (shown && mode === 'eu')
|
|
466
|
+
surface = (_jsxs(XStack, { ...frame, role: "dialog", "aria-label": "Cookie preferences", style: FIT, maxW: 1200, flexWrap: "wrap", items: "center", columnGap: "$4", rowGap: "$3", children: [_jsx(YStack, { shrink: 1, minW: 0, children: _jsx(Paragraph, { size: "$2", color: "$ink", m: 0, children: `Essential cookies keep ${brand} running. With your OK, optional cookies help us measure performance and ads.` }) }), _jsxs(XStack, { gap: "$2", marginInlineStart: "auto", items: "center", flexWrap: "wrap", children: [_jsx(Button, { ref: manage, type: "button", ...SECONDARY, onClick: choose, children: "Manage preferences" }), _jsx(Button, { type: "button", ...PRIMARY, onClick: done(acceptAll), children: "Accept all" })] }), _jsx(Button, { type: "button", size: "icon", ...CLOSE, "aria-label": "Close and use essential cookies only", position: "absolute", t: "$3", insetInlineEnd: "$3", onClick: done(rejectAll), children: _jsx(X, { size: 16 }) })] }));
|
|
467
|
+
return (_jsxs(_Fragment, { children: [surface, panel] }));
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* "Your Privacy Choices" with California's privacy options icon: the link to the
|
|
471
|
+
* sheet, for a footer. A page that mounts one gets no second link from `Consent`.
|
|
472
|
+
*/
|
|
473
|
+
const ConsentLink = ({ label = 'Your Privacy Choices' }) => {
|
|
474
|
+
useEffect(() => hold(), []);
|
|
475
|
+
return (_jsx(Button, { ...slot('consent-link'), ...CHOICES, onClick: openConsent, children: label }));
|
|
283
476
|
};
|
|
284
|
-
/** The footer link that reopens the choices, in every footer and every region. */
|
|
285
|
-
const ConsentLink = ({ label = 'Cookie settings' }) => (_jsx(Button, { ...slot('consent-link'), type: "button", variant: "link", size: "sm", px: 0, minH: 0, onClick: openConsent, children: label }));
|
|
286
477
|
export { Consent, ConsentLink };
|
|
287
478
|
//# sourceMappingURL=Consent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Consent.js","sourceRoot":"","sources":["../../src/consent/Consent.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAe,MAAM,cAAc,CAAA;AACvI,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,MAAM,EAAE,M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|
3
|
+
exports.PrivacyChoicesIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
/**
|
|
6
|
+
* The privacy options icon California publishes for the "Your Privacy Choices"
|
|
7
|
+
* link (Cal. Code Regs. tit. 11, § 7015(b)): a toggle, its white half checked
|
|
8
|
+
* and its blue half crossed, drawn on the published 30×14 box at any height.
|
|
9
|
+
*
|
|
10
|
+
* Beside the words "Your Privacy Choices" it is decorative, and the words are
|
|
11
|
+
* the link's name. Alone, pass `label` and it is named itself.
|
|
12
|
+
*/
|
|
13
|
+
const PrivacyChoicesIcon = ({ size = 14, label }) => ((0, jsx_runtime_1.jsxs)("svg", { width: (size * 30) / 14, height: size, viewBox: "0 0 30 14", focusable: "false", ...(label ? { role: 'img', 'aria-label': label } : { 'aria-hidden': true }), style: { flexShrink: 0, display: 'block' }, children: [(0, jsx_runtime_1.jsx)("path", { d: "M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z", fill: "#fff", fillRule: "evenodd", clipRule: "evenodd" }), (0, jsx_runtime_1.jsx)("path", { d: "M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z", fill: "#06f", fillRule: "evenodd", clipRule: "evenodd" }), (0, jsx_runtime_1.jsx)("path", { d: "M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z", fill: "#fff" }), (0, jsx_runtime_1.jsx)("path", { d: "M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z", fill: "#06f" })] }));
|
|
14
|
+
exports.PrivacyChoicesIcon = PrivacyChoicesIcon;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The privacy options icon California publishes for the "Your Privacy Choices"
|
|
3
|
+
* link (Cal. Code Regs. tit. 11, § 7015(b)): a toggle, its white half checked
|
|
4
|
+
* and its blue half crossed, drawn on the published 30×14 box at any height.
|
|
5
|
+
*
|
|
6
|
+
* Beside the words "Your Privacy Choices" it is decorative, and the words are
|
|
7
|
+
* the link's name. Alone, pass `label` and it is named itself.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PrivacyChoicesIcon: ({ size, label }: {
|
|
10
|
+
size?: number;
|
|
11
|
+
label?: string;
|
|
12
|
+
}) => import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/consent/icon.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,oBAA0B;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,gCAsBzF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The privacy options icon California publishes for the "Your Privacy Choices"
|
|
4
|
+
* link (Cal. Code Regs. tit. 11, § 7015(b)): a toggle, its white half checked
|
|
5
|
+
* and its blue half crossed, drawn on the published 30×14 box at any height.
|
|
6
|
+
*
|
|
7
|
+
* Beside the words "Your Privacy Choices" it is decorative, and the words are
|
|
8
|
+
* the link's name. Alone, pass `label` and it is named itself.
|
|
9
|
+
*/
|
|
10
|
+
export const PrivacyChoicesIcon = ({ size = 14, label }) => (_jsxs("svg", { width: (size * 30) / 14, height: size, viewBox: "0 0 30 14", focusable: "false", ...(label ? { role: 'img', 'aria-label': label } : { 'aria-hidden': true }), style: { flexShrink: 0, display: 'block' }, children: [_jsx("path", { d: "M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z", fill: "#fff", fillRule: "evenodd", clipRule: "evenodd" }), _jsx("path", { d: "M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z", fill: "#06f", fillRule: "evenodd", clipRule: "evenodd" }), _jsx("path", { d: "M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z", fill: "#fff" }), _jsx("path", { d: "M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z", fill: "#06f" })] }));
|
|
11
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/consent/icon.tsx"],"names":[],"mappings":";AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,KAAK,EAAqC,EAAE,EAAE,CAAC,CAC7F,eACE,KAAK,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,EACvB,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,SAAS,EAAC,OAAO,KACb,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAC5E,KAAK,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,aAE1C,eAAM,CAAC,EAAC,mEAAmE,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,GAAG,EAChI,eACE,CAAC,EAAC,+IAA+I,EACjJ,IAAI,EAAC,MAAM,EACX,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,GAClB,EACF,eACE,CAAC,EAAC,oMAAoM,EACtM,IAAI,EAAC,MAAM,GACX,EACF,eAAM,CAAC,EAAC,sIAAsI,EAAC,IAAI,EAAC,MAAM,GAAG,IACzJ,CACP,CAAA"}
|
package/dist/consent/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.openConsent = exports.ConsentLink = exports.Consent = void 0;
|
|
3
|
+
exports.PrivacyChoicesIcon = exports.openConsent = exports.ConsentLink = exports.Consent = void 0;
|
|
4
4
|
var Consent_1 = require("./Consent.cjs");
|
|
5
5
|
Object.defineProperty(exports, "Consent", { enumerable: true, get: function () { return Consent_1.Consent; } });
|
|
6
6
|
Object.defineProperty(exports, "ConsentLink", { enumerable: true, get: function () { return Consent_1.ConsentLink; } });
|
|
7
7
|
Object.defineProperty(exports, "openConsent", { enumerable: true, get: function () { return Consent_1.openConsent; } });
|
|
8
|
+
var icon_1 = require("./icon.cjs");
|
|
9
|
+
Object.defineProperty(exports, "PrivacyChoicesIcon", { enumerable: true, get: function () { return icon_1.PrivacyChoicesIcon; } });
|
package/dist/consent/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAChF,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA"}
|
package/dist/consent/index.js
CHANGED