astro-consent 1.0.15 โ†’ 1.0.17

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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/dist/index.js +11 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -31,6 +31,7 @@ Just a **fast, deterministic, developer-controlled consent layer** that respects
31
31
  - ๐ŸŽจ Fully themeable via CSS variables
32
32
  - ๐Ÿง  Frontend-controlled script loading
33
33
  - ๐Ÿงฉ Native Astro integration
34
+ - ๐Ÿงพ Built-in TypeScript declarations
34
35
  - ๐Ÿ› ๏ธ CLI installer & remover
35
36
  - ๐Ÿ” Clean uninstall with no residue
36
37
  - ๐ŸŒ Framework-agnostic frontend API
@@ -139,6 +140,12 @@ window.cookieConsent.set({ essential: true, analytics: true });
139
140
  window.cookieConsent.reset();
140
141
  ```
141
142
 
143
+ ## ๐Ÿงพ TypeScript
144
+
145
+ TypeScript declarations are included in the package.
146
+
147
+ No separate `@types` install is required.
148
+
142
149
  ---
143
150
 
144
151
  ## ๐ŸŽจ Theming
@@ -176,6 +183,12 @@ This guarantees the banner styles are available on every page.
176
183
 
177
184
  ---
178
185
 
186
+ ## ๐Ÿ™ Acknowledgements
187
+
188
+ Thanks to [@magicspon](https://github.com/magicspon) for assisting with the PR and issue triage.
189
+
190
+ ---
191
+
179
192
  ## ๐Ÿ“„ License
180
193
 
181
194
  MIT ยฉ Velohost
package/dist/index.js CHANGED
@@ -17,7 +17,17 @@ export default function astroConsent(options = {}) {
17
17
  /* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
18
18
  LOAD USER CSS (required)
19
19
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
20
- injectScript("head-inline", `@import "/src/cookiebanner.css";`);
20
+ injectScript("head-inline", `
21
+ (() => {
22
+ const id = "astro-consent-css";
23
+ if (document.getElementById(id)) return;
24
+ const link = document.createElement("link");
25
+ link.id = id;
26
+ link.rel = "stylesheet";
27
+ link.href = "/src/cookiebanner.css";
28
+ document.head.appendChild(link);
29
+ })();
30
+ `);
21
31
  /* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
22
32
  Consent runtime (NO CSS)
23
33
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-consent",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "A privacy-first, GDPR-compliant cookie consent banner for Astro with a built-in preferences modal, zero dependencies, and full theme control.",
5
5
  "type": "module",
6
6
  "author": {