@el7ven/cookie-kit 0.2.15 → 0.2.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.
- package/README.md +12 -12
- package/package.json +2 -2
- package/src/core/version.js +1 -1
- package/src/index.js +1 -1
- package/src/js/version.js +1 -1
- package/src/react/CookieConsent.tsx +1 -1
- package/src/react/version.js +1 -1
- package/src/vue/CookieDrawer.vue +1 -1
- package/src/vue/version.js +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# @el7ven/cookie-
|
|
1
|
+
# @el7ven/cookie-kit
|
|
2
2
|
|
|
3
|
-
> Unified cookie consent management for GDPR compliance with React and
|
|
3
|
+
> Unified cookie consent management kit for GDPR compliance with React, Vue, and Vanilla JS support
|
|
4
4
|
|
|
5
|
-
[](https://badge.fury.io/js/@el7ven%2Fcookie-kit)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
8
|
A comprehensive, production-ready cookie consent solution that helps websites comply with GDPR and other privacy regulations. Built with modern JavaScript and supports React, Vue, and vanilla JS applications.
|
|
@@ -21,7 +21,7 @@ A comprehensive, production-ready cookie consent solution that helps websites co
|
|
|
21
21
|
## 📦 Installation
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install @el7ven/cookie-
|
|
24
|
+
npm install @el7ven/cookie-kit
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## 🚀 Quick Start
|
|
@@ -29,8 +29,8 @@ npm install @el7ven/cookie-consent@beta
|
|
|
29
29
|
### Vanilla JavaScript
|
|
30
30
|
|
|
31
31
|
```javascript
|
|
32
|
-
import { createCookieConsent } from '@el7ven/cookie-
|
|
33
|
-
import '@el7ven/cookie-
|
|
32
|
+
import { createCookieConsent } from '@el7ven/cookie-kit'
|
|
33
|
+
import '@el7ven/cookie-kit/styles'
|
|
34
34
|
|
|
35
35
|
const cookieConsent = await createCookieConsent({
|
|
36
36
|
categories: {
|
|
@@ -54,8 +54,8 @@ console.log('Analytics enabled:', consent.categories.analytics.enabled)
|
|
|
54
54
|
### React
|
|
55
55
|
|
|
56
56
|
```jsx
|
|
57
|
-
import { CookieKitProvider, useCookieKit } from '@el7ven/cookie-
|
|
58
|
-
import '@el7ven/cookie-
|
|
57
|
+
import { CookieKitProvider, useCookieKit } from '@el7ven/cookie-kit/react'
|
|
58
|
+
import '@el7ven/cookie-kit/styles'
|
|
59
59
|
|
|
60
60
|
function App() {
|
|
61
61
|
return (
|
|
@@ -95,8 +95,8 @@ function MyComponent() {
|
|
|
95
95
|
</template>
|
|
96
96
|
|
|
97
97
|
<script setup>
|
|
98
|
-
import { useCookieKit } from '@el7ven/cookie-
|
|
99
|
-
import '@el7ven/cookie-
|
|
98
|
+
import { useCookieKit } from '@el7ven/cookie-kit/vue'
|
|
99
|
+
import '@el7ven/cookie-kit/styles'
|
|
100
100
|
|
|
101
101
|
const { consent, acceptAll, rejectAll } = useCookieKit({
|
|
102
102
|
categories: {
|
|
@@ -170,7 +170,7 @@ const config = {
|
|
|
170
170
|
### Custom Components
|
|
171
171
|
|
|
172
172
|
```javascript
|
|
173
|
-
import { createCookieKit } from '@el7ven/cookie-
|
|
173
|
+
import { createCookieKit } from '@el7ven/cookie-kit'
|
|
174
174
|
|
|
175
175
|
const cookieKit = createCookieKit(config)
|
|
176
176
|
|
|
@@ -188,7 +188,7 @@ const consent = cookieKit.getConsent()
|
|
|
188
188
|
|
|
189
189
|
## 📄 License
|
|
190
190
|
|
|
191
|
-
MIT © [
|
|
191
|
+
MIT © [El7ven](https://github.com/El7ven)
|
|
192
192
|
|
|
193
193
|
## 🤝 Contributing
|
|
194
194
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@el7ven/cookie-kit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"module": "./src/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"README.md"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "echo \"@el7ven/cookie-
|
|
24
|
+
"build": "echo \"@el7ven/cookie-kit: source-only package\"",
|
|
25
25
|
"test": "node --test src/**/*.test.js"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
package/src/core/version.js
CHANGED
package/src/index.js
CHANGED
package/src/js/version.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, useCallback } from 'react'
|
|
|
2
2
|
import { useCookieKit } from './index.js'
|
|
3
3
|
import { CookieDrawer } from './CookieDrawer'
|
|
4
4
|
import { CookieConfig } from './types'
|
|
5
|
-
import '@el7ven/cookie-
|
|
5
|
+
import '@el7ven/cookie-kit/dist/styles'
|
|
6
6
|
|
|
7
7
|
interface CookieConsentProps {
|
|
8
8
|
config?: CookieConfig
|
package/src/react/version.js
CHANGED
package/src/vue/CookieDrawer.vue
CHANGED