@aifeatures/react 0.7.1 → 0.8.0
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 +33 -0
- package/dist/consent-reader.cjs +1 -0
- package/dist/consent-reader.d.cts +130 -0
- package/dist/consent-reader.d.ts +130 -0
- package/dist/consent-reader.js +1 -0
- package/dist/index.cjs +8 -1
- package/dist/index.d.cts +630 -3
- package/dist/index.d.ts +630 -3
- package/dist/index.js +8 -1
- package/package.json +20 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aifeatures/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React components for aifeatures sites: form CAPTCHA (Cloudflare Turnstile)
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "React components for aifeatures sites: form CAPTCHA (Cloudflare Turnstile), headless payments (product price, buy button, order confirmation), and cookie consent (geo-adaptive banner, category-gated scripts, preferences)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
"types": "./dist/index.d.cts",
|
|
17
17
|
"default": "./dist/index.cjs"
|
|
18
18
|
}
|
|
19
|
+
},
|
|
20
|
+
"./consent-reader": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/consent-reader.d.ts",
|
|
23
|
+
"default": "./dist/consent-reader.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/consent-reader.d.cts",
|
|
27
|
+
"default": "./dist/consent-reader.cjs"
|
|
28
|
+
}
|
|
19
29
|
}
|
|
20
30
|
},
|
|
21
31
|
"files": [
|
|
@@ -36,15 +46,20 @@
|
|
|
36
46
|
"@storybook/react": "^8.4.2",
|
|
37
47
|
"@storybook/react-vite": "^8.4.2",
|
|
38
48
|
"@storybook/test": "^8.4.2",
|
|
49
|
+
"@testing-library/dom": "^10.4.0",
|
|
50
|
+
"@testing-library/react": "^16.1.0",
|
|
51
|
+
"@testing-library/user-event": "^14.5.2",
|
|
39
52
|
"@types/react": "^18.3.12",
|
|
40
53
|
"@types/react-dom": "^18.3.1",
|
|
54
|
+
"jsdom": "^25.0.1",
|
|
41
55
|
"msw": "^2.6.5",
|
|
42
56
|
"msw-storybook-addon": "^2.0.3",
|
|
43
57
|
"react": "^18.3.1",
|
|
44
58
|
"react-dom": "^18.3.1",
|
|
45
59
|
"storybook": "^8.4.2",
|
|
46
60
|
"tsup": "^8.3.5",
|
|
47
|
-
"typescript": "^5.3.3"
|
|
61
|
+
"typescript": "^5.3.3",
|
|
62
|
+
"vitest": "^2.1.9"
|
|
48
63
|
},
|
|
49
64
|
"msw": {
|
|
50
65
|
"workerDirectory": [
|
|
@@ -52,9 +67,10 @@
|
|
|
52
67
|
]
|
|
53
68
|
},
|
|
54
69
|
"scripts": {
|
|
55
|
-
"build": "tsup",
|
|
70
|
+
"build": "rm -rf dist && tsup",
|
|
56
71
|
"dev": "tsup --watch",
|
|
57
72
|
"lint": "eslint src/",
|
|
73
|
+
"test": "pnpm build && vitest run",
|
|
58
74
|
"typecheck": "tsc --noEmit",
|
|
59
75
|
"storybook": "storybook dev -p 6007",
|
|
60
76
|
"build-storybook": "storybook build"
|