@htmlbricks/hb-cookie-law-banner 0.71.36 → 0.71.37
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/README.md
CHANGED
|
@@ -60,8 +60,6 @@ Web component attributes are strings. Booleans use **`yes`** / **`no`**. Complex
|
|
|
60
60
|
| --- | --- | --- |
|
|
61
61
|
| `acceptCookieLaw` | `{ accepted: boolean }` | After the user clicks **Accept** (`true`) or **Decline** (`false`, only if decline is enabled). The choice is written to `localStorage` before the event is dispatched. |
|
|
62
62
|
|
|
63
|
-
**Note:** `types/webcomponent.type.d.ts` currently types `accepted` as `"yes" \| "no"`; at runtime the component dispatches a **boolean**. Prefer listening for `true` / `false` in vanilla JS; align the declaration file with runtime if you rely on strict typings.
|
|
64
|
-
|
|
65
63
|
---
|
|
66
64
|
|
|
67
65
|
## Slots
|
|
@@ -115,7 +113,7 @@ Authoring types live in `types/webcomponent.type.d.ts`.
|
|
|
115
113
|
|
|
116
114
|
**`Events`:**
|
|
117
115
|
|
|
118
|
-
- `acceptCookieLaw`: `{ accepted:
|
|
116
|
+
- `acceptCookieLaw`: `{ accepted: boolean }`
|
|
119
117
|
|
|
120
118
|
---
|
|
121
119
|
|
package/manifest.json
CHANGED
|
@@ -11,11 +11,7 @@
|
|
|
11
11
|
"additionalProperties": false,
|
|
12
12
|
"properties": {
|
|
13
13
|
"accepted": {
|
|
14
|
-
"
|
|
15
|
-
"yes",
|
|
16
|
-
"no"
|
|
17
|
-
],
|
|
18
|
-
"type": "string"
|
|
14
|
+
"type": "boolean"
|
|
19
15
|
}
|
|
20
16
|
},
|
|
21
17
|
"required": [
|
|
@@ -322,5 +318,5 @@
|
|
|
322
318
|
},
|
|
323
319
|
"iifePath": "main.iife.js",
|
|
324
320
|
"repoName": "@htmlbricks/hb-cookie-law-banner",
|
|
325
|
-
"version": "0.71.
|
|
321
|
+
"version": "0.71.37"
|
|
326
322
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-cookie-law-banner",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.37",
|
|
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": [
|