@justeattakeaway/pie-cookie-banner 1.7.29 → 1.7.31
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/cdn_dist/index.js +21 -21
- package/dist/index.js +1 -1
- package/package.json +14 -17
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const w = (e, t, i) => {
|
|
|
26
26
|
this.getAttribute("v") || this.setAttribute("v", k.v);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
k.v = "1.7.
|
|
29
|
+
k.v = "1.7.31";
|
|
30
30
|
let A = k;
|
|
31
31
|
const O = "*,*:after,*:before{box-sizing:inherit}*{margin:0}.c-cookieBanner{--cb-font-family: var(--dt-font-interactive-l-family);--cb-font-size: calc(var(--dt-font-body-l-size) * 1px);--cb-line-height: calc(var(--dt-font-body-l-line-height) * 1px);--cb-font-weight: var(--dt-font-body-l-weight);--cb-padding-inline: var(--dt-spacing-d);--cb-padding-block: var(--dt-spacing-d);--cb-offset: 0;color-scheme:only dark;background-color:var(--dt-color-background-dark);color:var(--dt-color-content-inverse);font-family:var(--cb-font-family);font-size:var(--cb-font-size);line-height:var(--cb-line-height);font-weight:var(--cb-font-weight);padding-block-start:var(--cb-padding-block);padding-block-end:var(--cb-padding-block);max-height:432px;position:fixed;bottom:var(--cb-offset);left:var(--cb-offset);right:var(--cb-offset);border-top-left-radius:var(--dt-radius-rounded-c);border-top-right-radius:var(--dt-radius-rounded-c);z-index:var(--dt-z-index-cookie-banner)}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner{--cb-padding-inline: var(--dt-spacing-f);--cb-offset: var(--dt-spacing-d);max-height:90%;border-bottom-left-radius:var(--dt-radius-rounded-c);border-bottom-right-radius:var(--dt-radius-rounded-c)}}.c-cookieBanner[isCookieBannerHidden]{display:none}@media (prefers-reduced-motion: no-preference){.c-cookieBanner{animation:.5s animate-enter ease-out}@keyframes animate-enter{0%{transform:translate3d(0,75%,0)}to{transform:translateZ(0)}}}.c-cookieBanner-title,.c-cookieBanner-body,.c-cookieBanner-actions{padding-inline-start:var(--cb-padding-inline);padding-inline-end:var(--cb-padding-inline)}.c-cookieBanner-title{--cb-title-font-size: var(--dt-font-heading-s-size--narrow);--cb-title-line-height: var(--dt-font-heading-s-line-height--narrow);font-size:calc(var(--cb-title-font-size) * 1px);font-weight:var(--dt-font-heading-s-weight);line-height:calc(var(--cb-title-line-height) * 1px)}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-title{--cb-title-font-size: var(--dt-font-heading-s-size--wide);--cb-title-line-height: var(--dt-font-heading-s-line-height--wide)}}.c-cookieBanner-body{--cb-scroll-shadow-color: var(--dt-color-black);margin-block-start:var(--dt-spacing-a);max-height:200px;overflow-y:auto;background:linear-gradient(to bottom,transparent,var(--dt-color-background-dark) 75%) center bottom,linear-gradient(transparent,var(--cb-scroll-shadow-color)) center bottom;background-repeat:no-repeat;background-size:100% 48px,100% 8px;background-attachment:local,scroll}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-body{max-height:150px}}.c-cookieBanner-actions{--cb-actions-flex-dir: column;margin-block-start:var(--dt-spacing-d);display:flex;gap:var(--dt-spacing-d);flex-direction:var(--cb-actions-flex-dir)}.c-cookieBanner-actions>pie-link{text-align:center;align-self:center}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-actions{--cb-actions-flex-dir: row-reverse;justify-content:flex-start;align-items:center}.c-cookieBanner-actions>pie-button{width:auto}}.c-cookieBanner-subheading{--cb-subheading-font-size: var(--dt-font-heading-s-size--narrow);--cb-subheading-line-height: var(--dt-font-heading-s-line-height--narrow);font-size:calc(var(--cb-subheading-font-size) * 1px);font-weight:var(--dt-font-heading-s-weight);line-height:calc(var(--cb-subheading-line-height) * 1px)}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-subheading{--cb-subheading-font-size: var(--dt-font-heading-s-size--wide);--cb-subheading-line-height: var(--dt-font-heading-s-line-height--wide)}}.c-cookieBanner-description{font-size:calc(var(--dt-font-body-s-size) * 1px);line-height:calc(var(--dt-font-body-s-line-height) * 1px)}.c-cookieBanner-preference{display:flex;gap:var(--dt-spacing-d);justify-content:space-between;margin-block-start:var(--dt-spacing-e);margin-block-end:var(--dt-spacing-e)}.c-cookieBanner-preference p{margin-block-start:var(--dt-spacing-b)}.c-cookieBanner-preference:last-child{margin-block-end:0}", n = {
|
|
32
32
|
BULGARIAN: "bg",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-cookie-banner",
|
|
3
3
|
"description": "PIE Design System Cookie Banner built using Web Components",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.31",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "run -T vite build && yarn build:cdn",
|
|
34
34
|
"build:cdn": "run -T vite build --config './cdn.vite.config.js'",
|
|
35
|
-
"build:react-wrapper": "
|
|
35
|
+
"build:react-wrapper": "run -T build-react-wrapper",
|
|
36
36
|
"create:manifest": "run -T cem analyze --litelement",
|
|
37
37
|
"lint:scripts": "run -T eslint .",
|
|
38
38
|
"lint:scripts:fix": "yarn lint:scripts --fix",
|
|
@@ -41,30 +41,27 @@
|
|
|
41
41
|
"watch": "run -T vite build --watch",
|
|
42
42
|
"test": "run -T vitest run test/unit",
|
|
43
43
|
"test:ci": "yarn test",
|
|
44
|
-
"test:browsers": "
|
|
44
|
+
"test:browsers": "run -T playwright test -c ./playwright-lit.config.ts",
|
|
45
45
|
"test:browsers:ci": "yarn test:browsers",
|
|
46
|
-
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_COOKIE_BANNER} percy exec --allowed-hostname cloudfront.net --
|
|
46
|
+
"test:visual": "run -T cross-env-shell PERCY_TOKEN=${PERCY_TOKEN_PIE_COOKIE_BANNER} percy exec --allowed-hostname cloudfront.net -- run -T playwright test -c ./playwright-lit-visual.config.ts",
|
|
47
47
|
"test:visual:ci": "yarn test:visual"
|
|
48
48
|
},
|
|
49
49
|
"author": "Just Eat Takeaway.com - Design System Team",
|
|
50
50
|
"license": "Apache-2.0",
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@justeattakeaway/pie-components-config": "0.21.
|
|
52
|
+
"@justeattakeaway/pie-components-config": "0.21.3",
|
|
53
53
|
"@justeattakeaway/pie-css": "1.1.1",
|
|
54
|
-
"@justeattakeaway/pie-monorepo-utils": "0.9.
|
|
55
|
-
"@justeattakeaway/pie-wrapper-react": "0.14.
|
|
54
|
+
"@justeattakeaway/pie-monorepo-utils": "0.9.2",
|
|
55
|
+
"@justeattakeaway/pie-wrapper-react": "0.14.5"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@justeattakeaway/pie-button": "1.14.
|
|
59
|
-
"@justeattakeaway/pie-divider": "1.5.
|
|
60
|
-
"@justeattakeaway/pie-icon-button": "2.7.
|
|
61
|
-
"@justeattakeaway/pie-link": "1.3.
|
|
62
|
-
"@justeattakeaway/pie-modal": "1.26.
|
|
63
|
-
"@justeattakeaway/pie-switch": "2.3.
|
|
64
|
-
"@justeattakeaway/pie-webc-core": "14.0.
|
|
65
|
-
},
|
|
66
|
-
"volta": {
|
|
67
|
-
"extends": "../../../package.json"
|
|
58
|
+
"@justeattakeaway/pie-button": "1.14.2",
|
|
59
|
+
"@justeattakeaway/pie-divider": "1.5.24",
|
|
60
|
+
"@justeattakeaway/pie-icon-button": "2.7.15",
|
|
61
|
+
"@justeattakeaway/pie-link": "1.3.31",
|
|
62
|
+
"@justeattakeaway/pie-modal": "1.26.7",
|
|
63
|
+
"@justeattakeaway/pie-switch": "2.3.33",
|
|
64
|
+
"@justeattakeaway/pie-webc-core": "14.0.2"
|
|
68
65
|
},
|
|
69
66
|
"customElements": "custom-elements.json",
|
|
70
67
|
"sideEffects": [
|