@htmlbricks/hb-cookie-law-banner 0.68.1 → 0.68.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/manifest.json +59 -1
- package/package.json +1 -1
package/manifest.json
CHANGED
|
@@ -211,9 +211,67 @@
|
|
|
211
211
|
"examples": [
|
|
212
212
|
{
|
|
213
213
|
"name": "default",
|
|
214
|
+
"description": "Accept and decline; choice is persisted in localStorage.",
|
|
214
215
|
"data": {
|
|
215
216
|
"allowdecline": "yes"
|
|
216
217
|
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "acceptOnly",
|
|
221
|
+
"description": "No decline path—single acknowledge action.",
|
|
222
|
+
"data": {
|
|
223
|
+
"allowdecline": "no"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "englishWithPolicyLink",
|
|
228
|
+
"description": "English strings and a learn-more URL.",
|
|
229
|
+
"data": {
|
|
230
|
+
"allowdecline": "yes",
|
|
231
|
+
"i18nlang": "en",
|
|
232
|
+
"cookielawuri4more": "https://example.com/cookies"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "withCapabilities",
|
|
237
|
+
"description": "Structured consent groups for granular toggles.",
|
|
238
|
+
"data": {
|
|
239
|
+
"allowdecline": "yes",
|
|
240
|
+
"capabilities": {
|
|
241
|
+
"groups": [
|
|
242
|
+
{
|
|
243
|
+
"_id": "essential",
|
|
244
|
+
"label": "Essential",
|
|
245
|
+
"type": "technical"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"_id": "marketing",
|
|
249
|
+
"label": "Marketing",
|
|
250
|
+
"type": "marketing"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"items": [
|
|
254
|
+
{
|
|
255
|
+
"groupId": "essential",
|
|
256
|
+
"title": "Session cookie",
|
|
257
|
+
"scope": "strictly_necessary",
|
|
258
|
+
"_id": "sess-1",
|
|
259
|
+
"cookieName": "session_id",
|
|
260
|
+
"isTechnical": true,
|
|
261
|
+
"isMandatory": true
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"groupId": "marketing",
|
|
265
|
+
"title": "Analytics",
|
|
266
|
+
"scope": "analytics",
|
|
267
|
+
"_id": "mkt-1",
|
|
268
|
+
"cookieName": "_ga",
|
|
269
|
+
"isMarketing": true,
|
|
270
|
+
"isThirdPartyOwned": true
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
217
275
|
}
|
|
218
276
|
],
|
|
219
277
|
"iifeIntegrity": "sha384-EOJrOtf8yZpayltwD8AD/PzJ4weosibKQIhK1BDZgAKOTIBlpmCCqtgaqxD6C1mq",
|
|
@@ -239,5 +297,5 @@
|
|
|
239
297
|
},
|
|
240
298
|
"iifePath": "main.iife.js",
|
|
241
299
|
"repoName": "@htmlbricks/hb-cookie-law-banner",
|
|
242
|
-
"version": "0.68.
|
|
300
|
+
"version": "0.68.2"
|
|
243
301
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-cookie-law-banner",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Bootstrap alert cookie notice shown until the user chooses accept or decline; the choice is stored in `localStorage` under `cookielaw` so the banner stays hidden on return visits. Supports i18n via `i18nlang`, optional `cookielawuri4more` link, JSON `capabilities` for extended consent, slots to override title/text, and dispatches `acceptCookieLaw` with `{ accepted: boolean }`.",
|
|
6
6
|
"licenses": [
|