react-lgpd-consent 0.4.0 → 0.4.3
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/CHANGELOG.md +226 -0
- package/QUICKSTART.en.md +34 -0
- package/QUICKSTART.md +562 -1
- package/README.en.md +25 -0
- package/README.md +37 -0
- package/dist/FloatingPreferencesButton-4AGBXNHH.cjs +11 -0
- package/dist/FloatingPreferencesButton-IY7TFD7D.js +2 -0
- package/dist/PreferencesModal-5KNHWW57.js +2 -0
- package/dist/PreferencesModal-YBCWCVUI.cjs +11 -0
- package/dist/chunk-25XEI2DZ.cjs +193 -0
- package/dist/chunk-FJKRAERJ.cjs +119 -0
- package/dist/chunk-N3QOW4SA.js +178 -0
- package/dist/chunk-ORI4PLVG.cjs +1899 -0
- package/dist/chunk-PJFGQMCI.js +92 -0
- package/dist/chunk-RWT2ORFE.js +1840 -0
- package/dist/index.cjs +872 -1560
- package/dist/index.d.cts +1794 -232
- package/dist/index.d.ts +1794 -232
- package/dist/index.js +707 -65
- package/package.json +73 -39
- package/dist/PreferencesModal-D2SEVH3N.js +0 -6
- package/dist/chunk-B5FNONG3.js +0 -1362
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-lgpd-consent",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Biblioteca de consentimento LGPD, integrações nativas e sistema extensível para React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lgpd",
|
|
@@ -8,19 +8,13 @@
|
|
|
8
8
|
"cookie",
|
|
9
9
|
"consent",
|
|
10
10
|
"react",
|
|
11
|
-
"client-side",
|
|
12
|
-
"spa",
|
|
13
|
-
"material-ui",
|
|
14
|
-
"mui",
|
|
15
11
|
"typescript",
|
|
16
12
|
"js-cookie",
|
|
17
13
|
"consentimento",
|
|
18
14
|
"privacidade",
|
|
19
15
|
"acessibilidade",
|
|
20
16
|
"google-analytics",
|
|
21
|
-
"
|
|
22
|
-
"userway",
|
|
23
|
-
"categorias-extensiveis"
|
|
17
|
+
"userway"
|
|
24
18
|
],
|
|
25
19
|
"publishConfig": {
|
|
26
20
|
"access": "public"
|
|
@@ -41,9 +35,17 @@
|
|
|
41
35
|
"import": "./dist/index.js",
|
|
42
36
|
"require": "./dist/index.cjs"
|
|
43
37
|
},
|
|
38
|
+
"./integrations": {
|
|
39
|
+
"types": "./dist/utils/scriptIntegrations.d.ts",
|
|
40
|
+
"import": "./dist/utils/scriptIntegrations.js",
|
|
41
|
+
"require": "./dist/utils/scriptIntegrations.cjs"
|
|
42
|
+
},
|
|
44
43
|
"./package.json": "./package.json"
|
|
45
44
|
},
|
|
46
|
-
"sideEffects":
|
|
45
|
+
"sideEffects": [
|
|
46
|
+
"dist/chunk-*.js",
|
|
47
|
+
"dist/chunk-*.cjs"
|
|
48
|
+
],
|
|
47
49
|
"files": [
|
|
48
50
|
"dist",
|
|
49
51
|
"README.md",
|
|
@@ -56,7 +58,6 @@
|
|
|
56
58
|
"engines": {
|
|
57
59
|
"node": ">=20.0.0"
|
|
58
60
|
},
|
|
59
|
-
"packageManager": "npm@11.6.0",
|
|
60
61
|
"scripts": {
|
|
61
62
|
"clean": "rimraf node_modules package-lock.json dist docs storybook-static .cache .stryker-tmp",
|
|
62
63
|
"build": "cross-env NODE_ENV=production tsup src/index.ts --format esm,cjs --dts --clean",
|
|
@@ -66,6 +67,10 @@
|
|
|
66
67
|
"format": "prettier --write \"src/**/*.{ts,tsx,json,md}\" \"eslint.config.js\"",
|
|
67
68
|
"type-check": "tsc --noEmit",
|
|
68
69
|
"test": "jest --config jest.config.ts",
|
|
70
|
+
"test:a11y": "jest --config jest.config.ts --testMatch='**/*.a11y.test.tsx'",
|
|
71
|
+
"test:coverage": "jest --config jest.config.ts --coverage",
|
|
72
|
+
"coverage-check": "node scripts/coverage-check.cjs",
|
|
73
|
+
"size-check": "size-limit",
|
|
69
74
|
"mutation": "npx stryker run",
|
|
70
75
|
"mutation:tests": "npx stryker run ./stryker.tests.conf.json",
|
|
71
76
|
"prepublishOnly": "npm run build",
|
|
@@ -93,51 +98,80 @@
|
|
|
93
98
|
}
|
|
94
99
|
},
|
|
95
100
|
"dependencies": {
|
|
96
|
-
"js-cookie": "^3.0.5"
|
|
101
|
+
"js-cookie": "^3.0.5",
|
|
102
|
+
"zod": "^4.1.12"
|
|
97
103
|
},
|
|
98
104
|
"devDependencies": {
|
|
105
|
+
"@axe-core/react": "^4.10.2",
|
|
99
106
|
"@chromatic-com/storybook": "4.1.1",
|
|
100
107
|
"@emotion/react": "11.14.0",
|
|
101
108
|
"@emotion/styled": "11.14.1",
|
|
102
|
-
"@eslint/compat": "1.
|
|
103
|
-
"@mui/icons-material": "7.3.
|
|
104
|
-
"@mui/material": "7.3.
|
|
105
|
-
"@
|
|
106
|
-
"@storybook/addon-
|
|
107
|
-
"@storybook/addon-
|
|
108
|
-
"@storybook/
|
|
109
|
-
"@
|
|
110
|
-
"@stryker-mutator/
|
|
109
|
+
"@eslint/compat": "1.4.0",
|
|
110
|
+
"@mui/icons-material": "7.3.4",
|
|
111
|
+
"@mui/material": "7.3.4",
|
|
112
|
+
"@size-limit/preset-small-lib": "^11.2.0",
|
|
113
|
+
"@storybook/addon-a11y": "9.1.10",
|
|
114
|
+
"@storybook/addon-docs": "9.1.10",
|
|
115
|
+
"@storybook/addon-vitest": "9.1.10",
|
|
116
|
+
"@storybook/react-vite": "9.1.10",
|
|
117
|
+
"@stryker-mutator/core": "9.2.0",
|
|
118
|
+
"@stryker-mutator/jest-runner": "9.2.0",
|
|
111
119
|
"@testing-library/dom": "10.4.1",
|
|
112
|
-
"@testing-library/jest-dom": "6.
|
|
113
|
-
"@testing-library/react": "16.3.0",
|
|
120
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
121
|
+
"@testing-library/react": "^16.3.0",
|
|
114
122
|
"@testing-library/user-event": "14.6.1",
|
|
115
123
|
"@types/jest": "30.0.0",
|
|
124
|
+
"@types/jest-axe": "^3.5.9",
|
|
116
125
|
"@types/js-cookie": "3.0.6",
|
|
117
|
-
"@types/node": "24.
|
|
118
|
-
"@types/react": "19.1
|
|
119
|
-
"@types/react-dom": "19.
|
|
120
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
121
|
-
"@typescript-eslint/parser": "8.
|
|
122
|
-
"cross-env": "10.
|
|
123
|
-
"eslint": "9.
|
|
126
|
+
"@types/node": "24.7.0",
|
|
127
|
+
"@types/react": "19.2.1",
|
|
128
|
+
"@types/react-dom": "19.2.0",
|
|
129
|
+
"@typescript-eslint/eslint-plugin": "8.46.0",
|
|
130
|
+
"@typescript-eslint/parser": "8.46.0",
|
|
131
|
+
"cross-env": "10.1.0",
|
|
132
|
+
"eslint": "9.37.0",
|
|
124
133
|
"eslint-config-prettier": "10.1.8",
|
|
125
134
|
"eslint-plugin-jest": "29.0.1",
|
|
126
|
-
"eslint-plugin-react-hooks": "
|
|
127
|
-
"eslint-plugin-storybook": "9.1.
|
|
135
|
+
"eslint-plugin-react-hooks": "6.1.1",
|
|
136
|
+
"eslint-plugin-storybook": "9.1.10",
|
|
128
137
|
"globals": "^16.4.0",
|
|
129
|
-
"jest": "30.
|
|
130
|
-
"jest-
|
|
138
|
+
"jest": "30.2.0",
|
|
139
|
+
"jest-axe": "^10.0.0",
|
|
140
|
+
"jest-environment-jsdom": "30.2.0",
|
|
131
141
|
"prettier": "3.6.2",
|
|
132
|
-
"react": "19.
|
|
133
|
-
"react-dom": "19.
|
|
142
|
+
"react": "19.2.0",
|
|
143
|
+
"react-dom": "19.2.0",
|
|
134
144
|
"rimraf": "6.0.1",
|
|
135
|
-
"
|
|
145
|
+
"size-limit": "^11.2.0",
|
|
146
|
+
"storybook": "9.1.10",
|
|
136
147
|
"ts-jest": "29.4.4",
|
|
137
148
|
"ts-node": "10.9.2",
|
|
138
149
|
"tsup": "8.5.0",
|
|
139
150
|
"typedoc": "0.28.13",
|
|
140
|
-
"typescript": "5.9.
|
|
141
|
-
"typescript-eslint": "8.
|
|
142
|
-
}
|
|
151
|
+
"typescript": "5.9.3",
|
|
152
|
+
"typescript-eslint": "8.46.0"
|
|
153
|
+
},
|
|
154
|
+
"size-limit": [
|
|
155
|
+
{
|
|
156
|
+
"name": "ESM Bundle",
|
|
157
|
+
"path": "dist/index.js",
|
|
158
|
+
"limit": "34 KB"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "CJS Bundle",
|
|
162
|
+
"path": "dist/index.cjs",
|
|
163
|
+
"limit": "120 KB"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "Types",
|
|
167
|
+
"path": "dist/index.d.ts",
|
|
168
|
+
"limit": "130 KB"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "Complete Package Import",
|
|
172
|
+
"path": "dist/index.js",
|
|
173
|
+
"import": "{ ConsentProvider, useConsent, ConsentScriptLoader }",
|
|
174
|
+
"limit": "15 KB"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
143
177
|
}
|