video-privacy 1.1.0-beta.1 → 1.1.1-beta.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 +22 -2
- package/package.json +21 -24
package/README.md
CHANGED
|
@@ -35,10 +35,15 @@ Simply wrap the embed code in the component, like in this example:
|
|
|
35
35
|
</VideoPrivacy>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
The component can be customized with props:
|
|
38
|
+
The component can be customized with props, for example:
|
|
39
39
|
|
|
40
40
|
```
|
|
41
|
-
<VideoPrivacy
|
|
41
|
+
<VideoPrivacy
|
|
42
|
+
cookie
|
|
43
|
+
width={1024}
|
|
44
|
+
info="Your text goes here"
|
|
45
|
+
imageUrl="https://your_backdrop.jpg"
|
|
46
|
+
>
|
|
42
47
|
```
|
|
43
48
|
|
|
44
49
|
## Allowed Props
|
|
@@ -58,6 +63,21 @@ The component can be customized with props:
|
|
|
58
63
|
**Type:** String
|
|
59
64
|
**Default value:** "I understand"
|
|
60
65
|
|
|
66
|
+
- `cookie`
|
|
67
|
+
**Description:** Save user acknowledgement to a session cookie to suppress further privacy notices
|
|
68
|
+
**Type:** Boolean
|
|
69
|
+
**Default value:** _false_
|
|
70
|
+
|
|
71
|
+
- `cookieName`
|
|
72
|
+
**Description:** Set a custom name for acknowledgement cookie (useful for differently scoped consent rules across your website)
|
|
73
|
+
**Type:** String
|
|
74
|
+
**Default value:** "video-privacy-acknowledged"
|
|
75
|
+
|
|
76
|
+
- `cookieExpires`
|
|
77
|
+
**Description:** Set a custom expiration period in days for the cookie
|
|
78
|
+
**Type:** Number
|
|
79
|
+
**Default value:** _empty_ (i. e., cookie expires after session)
|
|
80
|
+
|
|
61
81
|
- `imageUrl`
|
|
62
82
|
**Description:** The URL of a preview image to be shown as backrop in the container
|
|
63
83
|
**Type:** String
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "video-privacy",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1-beta.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"rollup": "node_modules/rollup/dist/rollup.js",
|
|
6
6
|
"dev": "next dev",
|
|
@@ -28,33 +28,30 @@
|
|
|
28
28
|
"author": "Johannes Liermann",
|
|
29
29
|
"license": "CC-BY-SA-4.0",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@chromatic-com/storybook": "^2.
|
|
31
|
+
"@chromatic-com/storybook": "^3.2.6",
|
|
32
32
|
"@rollup/plugin-babel": "^6.0.4",
|
|
33
|
-
"@rollup/plugin-commonjs": "^
|
|
33
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
34
34
|
"@semantic-release/git": "^10.0.1",
|
|
35
|
-
"@semantic-release/gitlab": "^13.2.
|
|
35
|
+
"@semantic-release/gitlab": "^13.2.4",
|
|
36
36
|
"@semantic-release/npm": "^12.0.1",
|
|
37
|
-
"@storybook/addon-essentials": "^8.
|
|
38
|
-
"@storybook/addon-interactions": "^8.
|
|
39
|
-
"@storybook/addon-links": "^8.
|
|
40
|
-
"@storybook/addon-onboarding": "^8.
|
|
41
|
-
"@storybook/blocks": "^8.
|
|
42
|
-
"@storybook/nextjs": "^8.
|
|
43
|
-
"@storybook/react": "^8.
|
|
44
|
-
"@storybook/test": "^8.
|
|
45
|
-
"eslint": "^
|
|
46
|
-
"eslint-config-next": "
|
|
47
|
-
"eslint-plugin-storybook": "^0.
|
|
48
|
-
"next": "^
|
|
49
|
-
"
|
|
37
|
+
"@storybook/addon-essentials": "^8.6.8",
|
|
38
|
+
"@storybook/addon-interactions": "^8.6.8",
|
|
39
|
+
"@storybook/addon-links": "^8.6.8",
|
|
40
|
+
"@storybook/addon-onboarding": "^8.6.8",
|
|
41
|
+
"@storybook/blocks": "^8.6.8",
|
|
42
|
+
"@storybook/nextjs": "^8.6.8",
|
|
43
|
+
"@storybook/react": "^8.6.8",
|
|
44
|
+
"@storybook/test": "^8.6.8",
|
|
45
|
+
"eslint": "^9",
|
|
46
|
+
"eslint-config-next": "15.2.3",
|
|
47
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
48
|
+
"next": "^15.2",
|
|
49
|
+
"react": "^19",
|
|
50
|
+
"react-dom": "^19",
|
|
51
|
+
"rollup": "^4.37.0",
|
|
50
52
|
"rollup-plugin-postcss": "^4.0.2",
|
|
51
|
-
"semantic-release": "^24.
|
|
52
|
-
"storybook": "^8.
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"next": "^14.2",
|
|
56
|
-
"react": "^18",
|
|
57
|
-
"react-dom": "^18"
|
|
53
|
+
"semantic-release": "^24.2.3",
|
|
54
|
+
"storybook": "^8.6.8"
|
|
58
55
|
},
|
|
59
56
|
"dependencies": {
|
|
60
57
|
"js-cookie": "^3.0.5"
|