@ytspar/devbar 1.9.2-canary.56e8aec → 1.10.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.
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent Debug Plugin for DevBar
|
|
3
|
+
*
|
|
4
|
+
* Adds a toolbar control for manually exercising a cookie-consent banner
|
|
5
|
+
* without needing a VPN or a real geo lookup. Useful for apps that gate UI
|
|
6
|
+
* on `window.__geo` + Cloudflare Zaraz's consent API (`window.zaraz.consent`).
|
|
7
|
+
*
|
|
8
|
+
* The control is only registered once `window.zaraz` is detected on the
|
|
9
|
+
* page (Cloudflare injects it asynchronously). If Zaraz never arrives, the
|
|
10
|
+
* plugin stays idle.
|
|
11
|
+
*
|
|
12
|
+
* Click the toolbar button to open a modal with:
|
|
13
|
+
* - Region presets (EU/UK/FR/CA/VA/JP/BR by default) that write to
|
|
14
|
+
* `window.__geo` and dispatch a host-configured "show banner" event
|
|
15
|
+
* - Accept All / Reject All (routed through Zaraz when available, else
|
|
16
|
+
* a fallback cookie)
|
|
17
|
+
* - Clear Cookies (removes the listed consent cookies)
|
|
18
|
+
* - Reset (clears cookies + `window.__geo`)
|
|
19
|
+
* - Live status readout (geo / Zaraz purposes / cookies)
|
|
20
|
+
*
|
|
21
|
+
* Usage:
|
|
22
|
+
* import { consentDebugPlugin } from '@ytspar/devbar/plugins/consent-debug';
|
|
23
|
+
* const cleanup = consentDebugPlugin({
|
|
24
|
+
* cookies: ['cf_consent', 's1k_consent'],
|
|
25
|
+
* events: { showBanner: 'showConsentBanner' },
|
|
26
|
+
* });
|
|
27
|
+
* // later: cleanup();
|
|
28
|
+
*/
|
|
29
|
+
export interface GeoMock {
|
|
30
|
+
continent: string;
|
|
31
|
+
country: string;
|
|
32
|
+
isCAVA: boolean;
|
|
33
|
+
isEU: boolean;
|
|
34
|
+
region: string;
|
|
35
|
+
timezone?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface RegionPreset {
|
|
38
|
+
geo: GeoMock;
|
|
39
|
+
id: string;
|
|
40
|
+
label: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ConsentDebugOptions {
|
|
43
|
+
/** Accent color for the control + modal. Default: `#10b981`. */
|
|
44
|
+
color?: string;
|
|
45
|
+
/** Consent cookie names cleared on reset. Default: `['cf_consent']`. */
|
|
46
|
+
cookies?: string[];
|
|
47
|
+
/** Custom event names dispatched for banner/notice/change. */
|
|
48
|
+
events?: {
|
|
49
|
+
changed?: string;
|
|
50
|
+
showBanner?: string;
|
|
51
|
+
showNotice?: string;
|
|
52
|
+
};
|
|
53
|
+
/** Region presets. Defaults cover EU/UK/FR/CA/VA/JP/BR. */
|
|
54
|
+
regions?: RegionPreset[];
|
|
55
|
+
/** Max time to wait for `window.zaraz` before giving up. Default 30s. */
|
|
56
|
+
maxWaitMs?: number;
|
|
57
|
+
/** Poll interval while waiting for Zaraz. Default 500ms. */
|
|
58
|
+
pollIntervalMs?: number;
|
|
59
|
+
/** Extra status-line callback merged into the readout. */
|
|
60
|
+
extraStatus?: () => Record<string, unknown>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Activate the consent-debug plugin.
|
|
64
|
+
*
|
|
65
|
+
* Registers a toolbar control once `window.zaraz` is detected. Polls at
|
|
66
|
+
* `pollIntervalMs` and gives up after `maxWaitMs`. Returns a cleanup
|
|
67
|
+
* function that stops polling and unregisters the control.
|
|
68
|
+
*/
|
|
69
|
+
export declare function consentDebugPlugin(options?: ConsentDebugOptions): () => void;
|
|
70
|
+
//# sourceMappingURL=consentDebug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consentDebug.d.ts","sourceRoot":"","sources":["../../src/plugins/consentDebug.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAkBH,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,OAAO,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,8DAA8D;IAC9D,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,2DAA2D;IAC3D,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC7C;AA+UD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,GAAE,mBAAwB,GAChC,MAAM,IAAI,CAiDZ"}
|
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Consent Debug Plugin for DevBar
|
|
3
|
+
*
|
|
4
|
+
* Adds a toolbar control for manually exercising a cookie-consent banner
|
|
5
|
+
* without needing a VPN or a real geo lookup. Useful for apps that gate UI
|
|
6
|
+
* on `window.__geo` + Cloudflare Zaraz's consent API (`window.zaraz.consent`).
|
|
7
|
+
*
|
|
8
|
+
* The control is only registered once `window.zaraz` is detected on the
|
|
9
|
+
* page (Cloudflare injects it asynchronously). If Zaraz never arrives, the
|
|
10
|
+
* plugin stays idle.
|
|
11
|
+
*
|
|
12
|
+
* Click the toolbar button to open a modal with:
|
|
13
|
+
* - Region presets (EU/UK/FR/CA/VA/JP/BR by default) that write to
|
|
14
|
+
* `window.__geo` and dispatch a host-configured "show banner" event
|
|
15
|
+
* - Accept All / Reject All (routed through Zaraz when available, else
|
|
16
|
+
* a fallback cookie)
|
|
17
|
+
* - Clear Cookies (removes the listed consent cookies)
|
|
18
|
+
* - Reset (clears cookies + `window.__geo`)
|
|
19
|
+
* - Live status readout (geo / Zaraz purposes / cookies)
|
|
20
|
+
*
|
|
21
|
+
* Usage:
|
|
22
|
+
* import { consentDebugPlugin } from '@ytspar/devbar/plugins/consent-debug';
|
|
23
|
+
* const cleanup = consentDebugPlugin({
|
|
24
|
+
* cookies: ['cf_consent', 's1k_consent'],
|
|
25
|
+
* events: { showBanner: 'showConsentBanner' },
|
|
26
|
+
* });
|
|
27
|
+
* // later: cleanup();
|
|
28
|
+
*/
|
|
29
|
+
import { getGlobalDevBar, GlobalDevBar } from '../GlobalDevBar.js';
|
|
30
|
+
import { CSS_COLORS, withAlpha } from '../constants.js';
|
|
31
|
+
import { createStyledButton } from '../ui/buttons.js';
|
|
32
|
+
import { createEmptyMessage, createModalBox, createModalContent, createModalHeader, createModalOverlay, } from '../ui/modals.js';
|
|
33
|
+
const CONTROL_ID = 'devbar-plugin-consent-debug';
|
|
34
|
+
const DEFAULT_POLL_INTERVAL_MS = 500;
|
|
35
|
+
const DEFAULT_MAX_WAIT_MS = 30_000;
|
|
36
|
+
const DEFAULT_COLOR = '#10b981';
|
|
37
|
+
const DEFAULT_REGIONS = [
|
|
38
|
+
{
|
|
39
|
+
id: 'eu-de',
|
|
40
|
+
label: 'EU (DE)',
|
|
41
|
+
geo: {
|
|
42
|
+
isEU: true,
|
|
43
|
+
isCAVA: false,
|
|
44
|
+
continent: 'EU',
|
|
45
|
+
country: 'DE',
|
|
46
|
+
region: 'Bavaria',
|
|
47
|
+
timezone: 'Europe/Berlin',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'eu-fr',
|
|
52
|
+
label: 'EU (FR)',
|
|
53
|
+
geo: {
|
|
54
|
+
isEU: true,
|
|
55
|
+
isCAVA: false,
|
|
56
|
+
continent: 'EU',
|
|
57
|
+
country: 'FR',
|
|
58
|
+
region: 'Île-de-France',
|
|
59
|
+
timezone: 'Europe/Paris',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'uk',
|
|
64
|
+
label: 'UK',
|
|
65
|
+
geo: {
|
|
66
|
+
isEU: true,
|
|
67
|
+
isCAVA: false,
|
|
68
|
+
continent: 'EU',
|
|
69
|
+
country: 'GB',
|
|
70
|
+
region: 'England',
|
|
71
|
+
timezone: 'Europe/London',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 'us-ca',
|
|
76
|
+
label: 'US (CA)',
|
|
77
|
+
geo: {
|
|
78
|
+
isEU: false,
|
|
79
|
+
isCAVA: true,
|
|
80
|
+
continent: 'NA',
|
|
81
|
+
country: 'US',
|
|
82
|
+
region: 'California',
|
|
83
|
+
timezone: 'America/Los_Angeles',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'us-va',
|
|
88
|
+
label: 'US (VA)',
|
|
89
|
+
geo: {
|
|
90
|
+
isEU: false,
|
|
91
|
+
isCAVA: true,
|
|
92
|
+
continent: 'NA',
|
|
93
|
+
country: 'US',
|
|
94
|
+
region: 'Virginia',
|
|
95
|
+
timezone: 'America/New_York',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'jp',
|
|
100
|
+
label: 'JP',
|
|
101
|
+
geo: {
|
|
102
|
+
isEU: false,
|
|
103
|
+
isCAVA: false,
|
|
104
|
+
continent: 'AS',
|
|
105
|
+
country: 'JP',
|
|
106
|
+
region: 'Tokyo',
|
|
107
|
+
timezone: 'Asia/Tokyo',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'br',
|
|
112
|
+
label: 'BR',
|
|
113
|
+
geo: {
|
|
114
|
+
isEU: false,
|
|
115
|
+
isCAVA: false,
|
|
116
|
+
continent: 'SA',
|
|
117
|
+
country: 'BR',
|
|
118
|
+
region: 'São Paulo',
|
|
119
|
+
timezone: 'America/Sao_Paulo',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
];
|
|
123
|
+
function getZaraz() {
|
|
124
|
+
return window.zaraz;
|
|
125
|
+
}
|
|
126
|
+
function deleteCookie(name) {
|
|
127
|
+
document.cookie = `${name}=; Max-Age=0; Path=/; SameSite=Lax`;
|
|
128
|
+
}
|
|
129
|
+
function readCookie(name) {
|
|
130
|
+
const match = document.cookie
|
|
131
|
+
.split('; ')
|
|
132
|
+
.find((entry) => entry.startsWith(`${name}=`));
|
|
133
|
+
return match ? decodeURIComponent(match.slice(name.length + 1)) : null;
|
|
134
|
+
}
|
|
135
|
+
function dispatchEvent(name, detail) {
|
|
136
|
+
window.dispatchEvent(new CustomEvent(name, detail !== undefined ? { detail } : undefined));
|
|
137
|
+
}
|
|
138
|
+
function resolveOptions(options) {
|
|
139
|
+
return {
|
|
140
|
+
color: options.color ?? DEFAULT_COLOR,
|
|
141
|
+
cookies: options.cookies ?? ['cf_consent'],
|
|
142
|
+
changedEvent: options.events?.changed ?? 'consentChanged',
|
|
143
|
+
showBannerEvent: options.events?.showBanner ?? 'showConsentBanner',
|
|
144
|
+
showNoticeEvent: options.events?.showNotice ?? 'showOptOutNotice',
|
|
145
|
+
regions: options.regions ?? DEFAULT_REGIONS,
|
|
146
|
+
pollIntervalMs: options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS,
|
|
147
|
+
maxWaitMs: options.maxWaitMs ?? DEFAULT_MAX_WAIT_MS,
|
|
148
|
+
extraStatus: options.extraStatus,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// --- modal rendering -------------------------------------------------------
|
|
152
|
+
function createSection(title, color) {
|
|
153
|
+
const section = document.createElement('div');
|
|
154
|
+
Object.assign(section.style, { marginBottom: '16px' });
|
|
155
|
+
const heading = document.createElement('div');
|
|
156
|
+
Object.assign(heading.style, {
|
|
157
|
+
color,
|
|
158
|
+
fontSize: '0.75rem',
|
|
159
|
+
fontWeight: '600',
|
|
160
|
+
textTransform: 'uppercase',
|
|
161
|
+
letterSpacing: '0.05em',
|
|
162
|
+
marginBottom: '8px',
|
|
163
|
+
});
|
|
164
|
+
heading.textContent = title;
|
|
165
|
+
section.appendChild(heading);
|
|
166
|
+
return section;
|
|
167
|
+
}
|
|
168
|
+
function createButtonRow() {
|
|
169
|
+
const row = document.createElement('div');
|
|
170
|
+
Object.assign(row.style, { display: 'flex', flexWrap: 'wrap', gap: '8px' });
|
|
171
|
+
return row;
|
|
172
|
+
}
|
|
173
|
+
function createStatusReadout(opts, refresh) {
|
|
174
|
+
const box = document.createElement('pre');
|
|
175
|
+
Object.assign(box.style, {
|
|
176
|
+
backgroundColor: withAlpha(opts.color, 8),
|
|
177
|
+
border: `1px solid ${withAlpha(opts.color, 25)}`,
|
|
178
|
+
borderRadius: '6px',
|
|
179
|
+
padding: '10px 12px',
|
|
180
|
+
margin: '0',
|
|
181
|
+
color: CSS_COLORS.textSecondary,
|
|
182
|
+
fontFamily: 'monospace',
|
|
183
|
+
fontSize: '0.6875rem',
|
|
184
|
+
whiteSpace: 'pre-wrap',
|
|
185
|
+
wordBreak: 'break-all',
|
|
186
|
+
maxHeight: '180px',
|
|
187
|
+
overflow: 'auto',
|
|
188
|
+
});
|
|
189
|
+
const render = () => {
|
|
190
|
+
const cookies = {};
|
|
191
|
+
for (const name of opts.cookies) {
|
|
192
|
+
cookies[name] = readCookie(name);
|
|
193
|
+
}
|
|
194
|
+
const status = {
|
|
195
|
+
geo: window.__geo,
|
|
196
|
+
zaraz: getZaraz()?.consent?.getAll?.() ?? null,
|
|
197
|
+
cookies,
|
|
198
|
+
};
|
|
199
|
+
if (opts.extraStatus) {
|
|
200
|
+
try {
|
|
201
|
+
Object.assign(status, opts.extraStatus());
|
|
202
|
+
}
|
|
203
|
+
catch {
|
|
204
|
+
/* ignore */
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
box.textContent = JSON.stringify(status, null, 2);
|
|
208
|
+
refresh();
|
|
209
|
+
};
|
|
210
|
+
render();
|
|
211
|
+
return { element: box, render };
|
|
212
|
+
}
|
|
213
|
+
function openModal(opts) {
|
|
214
|
+
const instance = getGlobalDevBar();
|
|
215
|
+
const existingOverlay = document.querySelector('[data-devbar-overlay="true"]');
|
|
216
|
+
if (existingOverlay) {
|
|
217
|
+
existingOverlay.remove();
|
|
218
|
+
}
|
|
219
|
+
const close = () => {
|
|
220
|
+
overlay.remove();
|
|
221
|
+
if (instance && instance.overlayElement === overlay) {
|
|
222
|
+
instance.overlayElement = null;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const overlay = createModalOverlay(close);
|
|
226
|
+
const box = createModalBox(opts.color);
|
|
227
|
+
const header = createModalHeader({
|
|
228
|
+
color: opts.color,
|
|
229
|
+
title: 'Consent Debug',
|
|
230
|
+
onClose: close,
|
|
231
|
+
});
|
|
232
|
+
const content = createModalContent();
|
|
233
|
+
const status = createStatusReadout(opts, () => {
|
|
234
|
+
/* no-op; the node updates in place */
|
|
235
|
+
});
|
|
236
|
+
// Regions section
|
|
237
|
+
const regions = createSection('Mock region', opts.color);
|
|
238
|
+
const regionRow = createButtonRow();
|
|
239
|
+
for (const region of opts.regions) {
|
|
240
|
+
const btn = createStyledButton({ color: opts.color, text: region.label });
|
|
241
|
+
btn.onclick = () => {
|
|
242
|
+
window.__geo = region.geo;
|
|
243
|
+
dispatchEvent(opts.showBannerEvent, { region: region.id });
|
|
244
|
+
status.render();
|
|
245
|
+
};
|
|
246
|
+
regionRow.appendChild(btn);
|
|
247
|
+
}
|
|
248
|
+
regions.appendChild(regionRow);
|
|
249
|
+
content.appendChild(regions);
|
|
250
|
+
// Actions section
|
|
251
|
+
const actions = createSection('Actions', opts.color);
|
|
252
|
+
const actionRow = createButtonRow();
|
|
253
|
+
const mkAction = (text, handler) => {
|
|
254
|
+
const btn = createStyledButton({ color: opts.color, text });
|
|
255
|
+
btn.onclick = () => {
|
|
256
|
+
handler();
|
|
257
|
+
status.render();
|
|
258
|
+
};
|
|
259
|
+
return btn;
|
|
260
|
+
};
|
|
261
|
+
actionRow.appendChild(mkAction('Show Banner', () => dispatchEvent(opts.showBannerEvent)));
|
|
262
|
+
actionRow.appendChild(mkAction('Show Notice', () => dispatchEvent(opts.showNoticeEvent)));
|
|
263
|
+
actionRow.appendChild(mkAction('Accept All', () => {
|
|
264
|
+
const zaraz = getZaraz();
|
|
265
|
+
if (zaraz?.consent) {
|
|
266
|
+
zaraz.consent.setAll(true);
|
|
267
|
+
zaraz.consent.sendQueuedEvents?.();
|
|
268
|
+
}
|
|
269
|
+
dispatchEvent(opts.changedEvent);
|
|
270
|
+
}));
|
|
271
|
+
actionRow.appendChild(mkAction('Reject All', () => {
|
|
272
|
+
getZaraz()?.consent?.setAll(false);
|
|
273
|
+
dispatchEvent(opts.changedEvent);
|
|
274
|
+
}));
|
|
275
|
+
actionRow.appendChild(mkAction('Clear Cookies', () => {
|
|
276
|
+
for (const name of opts.cookies)
|
|
277
|
+
deleteCookie(name);
|
|
278
|
+
dispatchEvent(opts.changedEvent);
|
|
279
|
+
}));
|
|
280
|
+
actionRow.appendChild(mkAction('Reset', () => {
|
|
281
|
+
for (const name of opts.cookies)
|
|
282
|
+
deleteCookie(name);
|
|
283
|
+
window.__geo = undefined;
|
|
284
|
+
dispatchEvent(opts.changedEvent);
|
|
285
|
+
}));
|
|
286
|
+
actions.appendChild(actionRow);
|
|
287
|
+
content.appendChild(actions);
|
|
288
|
+
// Status section
|
|
289
|
+
const statusSection = createSection('Status', opts.color);
|
|
290
|
+
statusSection.appendChild(status.element);
|
|
291
|
+
content.appendChild(statusSection);
|
|
292
|
+
if (opts.regions.length === 0) {
|
|
293
|
+
content.appendChild(createEmptyMessage('No region presets configured.'));
|
|
294
|
+
}
|
|
295
|
+
box.appendChild(header);
|
|
296
|
+
box.appendChild(content);
|
|
297
|
+
overlay.appendChild(box);
|
|
298
|
+
document.body.appendChild(overlay);
|
|
299
|
+
// Track overlay on the devbar so its log listener skips re-render while
|
|
300
|
+
// the modal is open (prevents a tear-down/rebuild loop on console noise).
|
|
301
|
+
if (instance) {
|
|
302
|
+
instance.overlayElement = overlay;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
// --- plugin entry ----------------------------------------------------------
|
|
306
|
+
/**
|
|
307
|
+
* Activate the consent-debug plugin.
|
|
308
|
+
*
|
|
309
|
+
* Registers a toolbar control once `window.zaraz` is detected. Polls at
|
|
310
|
+
* `pollIntervalMs` and gives up after `maxWaitMs`. Returns a cleanup
|
|
311
|
+
* function that stops polling and unregisters the control.
|
|
312
|
+
*/
|
|
313
|
+
export function consentDebugPlugin(options = {}) {
|
|
314
|
+
const opts = resolveOptions(options);
|
|
315
|
+
let stopped = false;
|
|
316
|
+
let registered = false;
|
|
317
|
+
let pollHandle = null;
|
|
318
|
+
let timeoutHandle = null;
|
|
319
|
+
const stopPolling = () => {
|
|
320
|
+
if (pollHandle !== null) {
|
|
321
|
+
clearInterval(pollHandle);
|
|
322
|
+
pollHandle = null;
|
|
323
|
+
}
|
|
324
|
+
if (timeoutHandle !== null) {
|
|
325
|
+
clearTimeout(timeoutHandle);
|
|
326
|
+
timeoutHandle = null;
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const tryRegister = () => {
|
|
330
|
+
if (stopped || registered)
|
|
331
|
+
return;
|
|
332
|
+
if (typeof window === 'undefined')
|
|
333
|
+
return;
|
|
334
|
+
if (!getZaraz())
|
|
335
|
+
return;
|
|
336
|
+
GlobalDevBar.registerControl({
|
|
337
|
+
id: CONTROL_ID,
|
|
338
|
+
label: 'Consent',
|
|
339
|
+
variant: 'info',
|
|
340
|
+
onClick: () => openModal(opts),
|
|
341
|
+
});
|
|
342
|
+
registered = true;
|
|
343
|
+
stopPolling();
|
|
344
|
+
};
|
|
345
|
+
// Attempt immediately — Zaraz may already be present.
|
|
346
|
+
tryRegister();
|
|
347
|
+
if (!registered && typeof window !== 'undefined') {
|
|
348
|
+
pollHandle = setInterval(tryRegister, opts.pollIntervalMs);
|
|
349
|
+
timeoutHandle = setTimeout(stopPolling, opts.maxWaitMs);
|
|
350
|
+
}
|
|
351
|
+
return () => {
|
|
352
|
+
stopped = true;
|
|
353
|
+
stopPolling();
|
|
354
|
+
if (registered) {
|
|
355
|
+
GlobalDevBar.unregisterControl(CONTROL_ID);
|
|
356
|
+
registered = false;
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
//# sourceMappingURL=consentDebug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consentDebug.js","sourceRoot":"","sources":["../../src/plugins/consentDebug.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,UAAU,GAAG,6BAA6B,CAAC;AACjD,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC,MAAM,mBAAmB,GAAG,MAAM,CAAC;AACnC,MAAM,aAAa,GAAG,SAAS,CAAC;AAsChC,MAAM,eAAe,GAAmB;IACtC;QACE,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,SA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AG,GAAS,EAAE;QAC7B,IAAI,OAAO,IAAI,UAAU;YAAE,OAAO;QAClC,IAAI,OAAO,MAAM,KAAK,WAAW;YAAE,OAAO;QAC1C,IAAI,CAAC,QAAQ,EAAE;YAAE,OAAO;QACxB,YAAY,CAAC,eAAe,CAAC;YAC3B,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC;SAC/B,CAAC,CAAC;QACH,UAAU,GAAG,IAAI,CAAC;QAClB,WAAW,EAAE,CAAC;IAChB,CAAC,CAAC;IAEF,sDAAsD;IACtD,WAAW,EAAE,CAAC;IAEd,IAAI,CAAC,UAAU,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QACjD,UAAU,GAAG,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC3D,aAAa,GAAG,UAAU,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1D,CAAC;IAED,OAAO,GAAG,EAAE;QACV,OAAO,GAAG,IAAI,CAAC;QACf,WAAW,EAAE,CAAC;QACd,IAAI,UAAU,EAAE,CAAC;YACf,YAAY,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;YAC3C,UAAU,GAAG,KAAK,CAAC;QACrB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ytspar/devbar",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Development toolbar and utilities with Sweetlink integration - pure vanilla JS, no framework dependencies",
|
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
"types": "./dist/plugins/appVersion.d.ts",
|
|
44
44
|
"import": "./dist/plugins/appVersion.js",
|
|
45
45
|
"default": "./dist/plugins/appVersion.js"
|
|
46
|
+
},
|
|
47
|
+
"./plugins/consent-debug": {
|
|
48
|
+
"types": "./dist/plugins/consentDebug.d.ts",
|
|
49
|
+
"import": "./dist/plugins/consentDebug.js",
|
|
50
|
+
"default": "./dist/plugins/consentDebug.js"
|
|
46
51
|
}
|
|
47
52
|
},
|
|
48
53
|
"files": [
|