react-cookie-consent-popup 1.5.0 → 1.5.1
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 +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# react-cookie-consent-popup
|
|
1
|
+
# :cookie: react-cookie-consent-popup
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/react-cookie-consent-popup)
|
|
4
4
|
[](https://www.npmjs.com/package/react-cookie-consent-popup)
|
|
@@ -8,22 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
A **zero-dependency** React cookie consent popup with GDPR-compliant service management, automatic script loading, storage cleanup, and light/dark themes.
|
|
10
10
|
|
|
11
|
-
## Features
|
|
12
|
-
|
|
13
|
-
- **Zero runtime dependencies** — only React as a peer dependency
|
|
14
|
-
- **Service management** — define scripts, cookies, localStorage and sessionStorage per service
|
|
15
|
-
- **Automatic cleanup** — scripts, cookies and storage are removed when consent is revoked
|
|
16
|
-
- **Hash-based invalidation** — popup reappears automatically when your service config changes
|
|
17
|
-
- **Settings modal** — per-service toggles with mandatory service support
|
|
18
|
-
- **Light & dark themes** — built-in themes with full CSS custom property support
|
|
19
|
-
- **Accessible** — focus trapping, keyboard navigation, `Escape` to close, ARIA labels
|
|
20
|
-
- **SSR compatible** — works with Next.js, Remix, and other server-rendered frameworks
|
|
21
|
-
- **Fully typed** — written in strict TypeScript with exported types
|
|
22
|
-
- **Tiny footprint** — ~8 KB minified (JS + CSS)
|
|
23
|
-
|
|
24
11
|
---
|
|
25
12
|
|
|
26
|
-
### Live Demo
|
|
13
|
+
### :cookie: Live Demo
|
|
27
14
|
|
|
28
15
|
> **Try it out instantly!**
|
|
29
16
|
>
|
|
@@ -31,6 +18,19 @@ A **zero-dependency** React cookie consent popup with GDPR-compliant service man
|
|
|
31
18
|
|
|
32
19
|
---
|
|
33
20
|
|
|
21
|
+
## Features
|
|
22
|
+
|
|
23
|
+
- :package: **Zero runtime dependencies** — only React as a peer dependency
|
|
24
|
+
- :gear: **Service management** — define scripts, cookies, localStorage and sessionStorage per service
|
|
25
|
+
- :broom: **Automatic cleanup** — scripts, cookies and storage are removed when consent is revoked
|
|
26
|
+
- :hash: **Hash-based invalidation** — popup reappears automatically when your service config changes
|
|
27
|
+
- :wrench: **Settings modal** — per-service toggles with mandatory service support
|
|
28
|
+
- :art: **Light & dark themes** — built-in themes with full CSS custom property support
|
|
29
|
+
- :wheelchair: **Accessible** — focus trapping, keyboard navigation, `Escape` to close, ARIA labels
|
|
30
|
+
- :globe_with_meridians: **SSR compatible** — works with Next.js, Remix, and other server-rendered frameworks
|
|
31
|
+
- :pencil2: **Fully typed** — written in strict TypeScript with exported types
|
|
32
|
+
- :zap: **Tiny footprint** — ~8 KB minified (JS + CSS)
|
|
33
|
+
|
|
34
34
|
## Installation
|
|
35
35
|
|
|
36
36
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cookie-consent-popup",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "A zero-dependency React cookie consent popup component with centered modal dialog, service management, script loading, and light/dark theme support",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|