@tilli-pro/cookieconsent-plugin 0.7.51 → 0.7.54
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/.cache/tsbuildinfo.json +1 -1
- package/demos/demo.html +2 -2
- package/demos/demo.min.html +1 -1
- package/demos/demo.styles.dark.html +2 -2
- package/demos/demo.styles.dark.min.html +1 -1
- package/demos/demo.styles.nudge.dark.html +2 -2
- package/demos/demo.styles.nudge.dark.min.html +1 -1
- package/demos/demo.styles.nudge.light.html +2 -2
- package/demos/demo.styles.nudge.light.min.html +1 -1
- package/demos/demo.styles.tenant_con-edison.dark.html +2 -2
- package/demos/demo.styles.tenant_con-edison.dark.min.html +1 -1
- package/demos/demo.styles.tenant_con-edison.light.html +2 -2
- package/demos/demo.styles.tenant_con-edison.light.min.html +1 -1
- package/demos/demo.styles.tenant_freeman.dark.html +2 -2
- package/demos/demo.styles.tenant_freeman.dark.min.html +1 -1
- package/demos/demo.styles.tenant_freeman.light.html +2 -2
- package/demos/demo.styles.tenant_frontier.dark.html +2 -2
- package/demos/demo.styles.tenant_frontier.dark.min.html +1 -1
- package/demos/demo.styles.tenant_frontier.light.html +2 -2
- package/demos/demo.styles.tenant_frontier.light.min.html +1 -1
- package/demos/demo.styles.tenant_oru.dark.html +2 -2
- package/demos/demo.styles.tenant_oru.dark.min.html +1 -1
- package/demos/demo.styles.tenant_oru.light.html +2 -2
- package/demos/demo.styles.tenant_oru.light.min.html +1 -1
- package/demos/demo.styles.tilli-pay.dark.html +2 -2
- package/demos/demo.styles.tilli-pay.dark.min.html +1 -1
- package/demos/demo.styles.tilli-pay.light.html +2 -2
- package/demos/demo.styles.tilli-pay.light.min.html +1 -1
- package/demos/demo.styles.tilli-website.dark.html +2 -2
- package/demos/demo.styles.tilli-website.dark.min.html +1 -1
- package/demos/demo.styles.tilli-website.light.html +2 -2
- package/demos/demo.styles.tilli-website.light.min.html +1 -1
- package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.d.ts +2 -1
- package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.d.ts.map +1 -1
- package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.js +2 -6
- package/dist/config/gui-options/scripts/injectManageCookiePrefsButton.d.ts +3 -4
- package/dist/config/gui-options/scripts/injectManageCookiePrefsButton.d.ts.map +1 -1
- package/dist/config/gui-options/scripts/injectManageCookiePrefsButton.js +6 -13
- package/dist/config/gui-options/scripts/showPreferences.mjs.d.ts +3 -0
- package/dist/config/gui-options/scripts/showPreferences.mjs.d.ts.map +1 -0
- package/dist/config/gui-options/scripts/showPreferences.mjs.js +6 -0
- package/dist/config/gui-options/scripts/showPreferences.node.d.ts +2 -0
- package/dist/config/gui-options/scripts/showPreferences.node.d.ts.map +1 -0
- package/dist/config/gui-options/scripts/showPreferences.node.js +1 -0
- package/dist/init/brf.js +2 -1
- package/dist/init/nudge-website.js +2 -1
- package/dist/init/nudge.js +2 -1
- package/dist/init/tilli-pay-website.js +2 -1
- package/dist/init/tilli-pay.js +2 -1
- package/dist/init/tilli-website.js +2 -1
- package/dist/init/tilliX.js +2 -1
- package/dist/init/utils.d.ts +2 -1
- package/dist/init/utils.d.ts.map +1 -1
- package/dist/init/utils.js +2 -2
- package/dist/init.d.ts +1 -1
- package/dist/init.js +2 -2
- package/dist/react-components/hooks/useCookieConsent.d.ts.map +1 -1
- package/dist/react-components/hooks/useCookieConsent.js +2 -1
- package/package.json +1 -1
- package/src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts +3 -6
- package/src/config/gui-options/scripts/injectManageCookiePrefsButton.ts +9 -24
- package/src/config/gui-options/scripts/showPreferences.d.ts +5 -0
- package/src/config/gui-options/scripts/showPreferences.mjs.ts +18 -0
- package/src/config/gui-options/scripts/showPreferences.node.ts +1 -0
- package/src/init/brf.ts +2 -1
- package/src/init/nudge-website.ts +2 -1
- package/src/init/nudge.ts +2 -1
- package/src/init/tilli-pay-website.ts +2 -1
- package/src/init/tilli-pay.ts +2 -1
- package/src/init/tilli-website.ts +2 -1
- package/src/init/tilliX.ts +2 -1
- package/src/init/utils.ts +3 -1
- package/src/init.ts +2 -2
- package/src/react-components/hooks/useCookieConsent.ts +2 -1
package/demos/demo.html
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
package/demos/demo.min.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=elegant-black"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=elegant-black"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/nudge.js?theme=nudge-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/nudge.js?theme=nudge-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/nudge.js?theme=nudge-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/nudge.js?theme=nudge-light"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Acon-edison-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Acon-edison-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Acon-edison-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Acon-edison-light"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afreeman-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afreeman-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afreeman-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afrontier-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afrontier-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afrontier-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/brf.js?theme=tenant%3Afrontier-light"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Aoru-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Aoru-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Aoru-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<body>
|
5
5
|
<script
|
6
6
|
type="module"
|
7
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
7
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilliX.js?theme=tenant%3Aoru-light"
|
8
8
|
></script>
|
9
9
|
</body>
|
10
10
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-pay.js?theme=tilli-pay-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-pay.js?theme=tilli-pay-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-pay.js?theme=tilli-pay-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-pay.js?theme=tilli-pay-light"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-website.js?theme=tilli-website-dark"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-website.js?theme=tilli-website-dark"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -5,14 +5,14 @@
|
|
5
5
|
<link
|
6
6
|
rel="stylesheet"
|
7
7
|
href="
|
8
|
-
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
8
|
+
https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/cookieconsent.css"
|
9
9
|
/>
|
10
10
|
</head>
|
11
11
|
|
12
12
|
<body>
|
13
13
|
<script
|
14
14
|
type="module"
|
15
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
15
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-website.js?theme=tilli-website-light"
|
16
16
|
></script>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<body>
|
4
4
|
<script
|
5
5
|
type="module"
|
6
|
-
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
6
|
+
src="https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@49b255420f7606d2a641e5294a5a9c09db612cca/dist/plugin/init/tilli-website.js?theme=tilli-website-light"
|
7
7
|
></script>
|
8
8
|
</body>
|
9
9
|
</html>
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { ShowPreferencesFn } from "./showPreferences.d";
|
1
2
|
/**
|
2
3
|
* attach a MutationObserver the **first time** the user hovers over–
|
3
4
|
* enabling a limited "drag up" functionality for the floating button.
|
@@ -14,7 +15,7 @@ export type HTMLDivElementWithDragObserver = HTMLDivElement & {
|
|
14
15
|
_startY?: number | null;
|
15
16
|
};
|
16
17
|
/** determine whether the user "tapped" or "dragged" (open prefs if "tapped") */
|
17
|
-
export declare const ontouchend: HTMLDivElementWithDragObserver
|
18
|
+
export declare const ontouchend: (this: HTMLDivElementWithDragObserver, e: TouchEvent, showPreferences: ShowPreferencesFn) => void;
|
18
19
|
/** store the touch start coordinates */
|
19
20
|
export declare const ontouchstart: HTMLDivElementWithDragObserver["ontouchstart"];
|
20
21
|
//# sourceMappingURL=cookiePrefsButtonDragObserver.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cookiePrefsButtonDragObserver.d.ts","sourceRoot":"","sources":["../../../../src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"cookiePrefsButtonDragObserver.d.ts","sourceRoot":"","sources":["../../../../src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;;;;;;;GAQG;yBAuHG,OAAO,SAAS,OAAO,eAAe,cAAc,CAAC,OAAO,SAAS,IAAI,GAC3E,cAAc,GACd,aAAa,CAAC;AAxHlB,wBAwHoB;AAEpB,MAAM,MAAM,8BAA8B,GAAG,cAAc,GAAG;IAC5D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,UAAU,SACf,8BAA8B,KACjC,UAAU,mBACI,iBAAiB,KACjC,IAuBF,CAAA;AAED,wCAAwC;AACxC,eAAO,MAAM,YAAY,EAOpB,8BAA8B,CAAC,cAAc,CAAC,CAAC"}
|
@@ -1,9 +1,5 @@
|
|
1
1
|
"use client";
|
2
2
|
import { buttonId } from "../html-components/ManageCookiePrefsButton";
|
3
|
-
// import { showPreferences } from "./injectManageCookiePrefsButton";
|
4
|
-
const showPreferences = () => {
|
5
|
-
console.debug("showPreferences");
|
6
|
-
};
|
7
3
|
/**
|
8
4
|
* attach a MutationObserver the **first time** the user hovers over–
|
9
5
|
* enabling a limited "drag up" functionality for the floating button.
|
@@ -119,7 +115,7 @@ export default (function (e) {
|
|
119
115
|
attachDragEvents(button);
|
120
116
|
});
|
121
117
|
/** determine whether the user "tapped" or "dragged" (open prefs if "tapped") */
|
122
|
-
export const ontouchend = function ontouchend(e) {
|
118
|
+
export const ontouchend = function ontouchend(e, showPreferences) {
|
123
119
|
const touch = e.changedTouches[0];
|
124
120
|
const { clientX: endX, clientY: endY } = touch ?? {};
|
125
121
|
if (!endX || !endY)
|
@@ -137,7 +133,7 @@ export const ontouchend = function ontouchend(e) {
|
|
137
133
|
/** reset coordinates to avoid future issues */
|
138
134
|
this._startX = null;
|
139
135
|
this._startY = null;
|
140
|
-
};
|
136
|
+
}; // as HTMLDivElementWithDragObserver["ontouchend"]; // disabled since we added `showPreferences` as a param
|
141
137
|
/** store the touch start coordinates */
|
142
138
|
export const ontouchstart = function ontouchstart(e) {
|
143
139
|
const touch = e.touches[0];
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import type
|
2
|
-
export declare const showPreferences: typeof _CookieConsent.showPreferences;
|
1
|
+
import type { ShowPreferencesFn } from "./showPreferences.d";
|
3
2
|
/** injects the floating cookie consent "manage preferences" icon button into the DOM */
|
4
|
-
declare const inject: () => HTMLDivElement;
|
3
|
+
declare const inject: (showPreferences: ShowPreferencesFn) => HTMLDivElement;
|
5
4
|
/** entry point */
|
6
|
-
export declare function injectManageCookiePrefsButton(): ReturnType<typeof inject>;
|
5
|
+
export declare function injectManageCookiePrefsButton(showPreferences: ShowPreferencesFn): ReturnType<typeof inject>;
|
7
6
|
export {};
|
8
7
|
//# sourceMappingURL=injectManageCookiePrefsButton.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"injectManageCookiePrefsButton.d.ts","sourceRoot":"","sources":["../../../../src/config/gui-options/scripts/injectManageCookiePrefsButton.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"injectManageCookiePrefsButton.d.ts","sourceRoot":"","sources":["../../../../src/config/gui-options/scripts/injectManageCookiePrefsButton.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,wFAAwF;AACxF,QAAA,MAAM,MAAM,oBAAqB,iBAAiB,KAAG,cAkBpD,CAAC;AAEF,kBAAkB;AAClB,wBAAgB,6BAA6B,CAC3C,eAAe,EAAE,iBAAiB,GACjC,UAAU,CAAC,OAAO,MAAM,CAAC,CAkB3B"}
|
@@ -1,23 +1,15 @@
|
|
1
1
|
"use client";
|
2
2
|
import ManageCookiePrefsButton, { containerId, } from "../html-components/ManageCookiePrefsButton";
|
3
3
|
import cookiePrefsButtonDragObserver, { ontouchend, ontouchstart, } from "./cookiePrefsButtonDragObserver";
|
4
|
-
const _showPreferences = () => {
|
5
|
-
console.debug("showPreferences [injectManageCookiePrefsButton]");
|
6
|
-
};
|
7
|
-
export const showPreferences = typeof CookieConsent !== "undefined" &&
|
8
|
-
typeof CookieConsent.showPreferences === "function"
|
9
|
-
? CookieConsent.showPreferences
|
10
|
-
: _showPreferences;
|
11
|
-
// (await import("@tilli-pro/cookieconsent")).showPreferences;
|
12
4
|
/** injects the floating cookie consent "manage preferences" icon button into the DOM */
|
13
|
-
const inject = () => {
|
5
|
+
const inject = (showPreferences) => {
|
14
6
|
const container = document.body.appendChild(Object.assign(document.createElement("div"), {
|
15
7
|
id: containerId,
|
16
8
|
innerHTML: ManageCookiePrefsButton( /* TODO: __LANGUAGE__ */),
|
17
9
|
onclick: showPreferences /** prefer over `data-cc="show-preferencesModal"` -- @see https://cookieconsent.orestbida.com/reference/api-reference.html#showpreferences */,
|
18
10
|
onmouseover: cookiePrefsButtonDragObserver,
|
19
11
|
// [mobile (touch) support]
|
20
|
-
ontouchend,
|
12
|
+
ontouchend: (e) => ontouchend?.call(container, e, showPreferences),
|
21
13
|
ontouchstart,
|
22
14
|
}));
|
23
15
|
/** load drag observer upon DOM injection (unfortunate fix to prevent the need for 2x "ontouchstart" events) */
|
@@ -25,7 +17,7 @@ const inject = () => {
|
|
25
17
|
return container;
|
26
18
|
};
|
27
19
|
/** entry point */
|
28
|
-
export function injectManageCookiePrefsButton() {
|
20
|
+
export function injectManageCookiePrefsButton(showPreferences) {
|
29
21
|
return ((container) => {
|
30
22
|
/** observe the DOM (to handle the case where the injected manage prefs button somehow gets removed) */
|
31
23
|
new MutationObserver(() => {
|
@@ -34,8 +26,9 @@ export function injectManageCookiePrefsButton() {
|
|
34
26
|
if (alreadyInjected)
|
35
27
|
return;
|
36
28
|
/** if the container is no longer in <body>, re-inject */
|
37
|
-
container = inject();
|
29
|
+
container = inject(showPreferences);
|
38
30
|
}).observe(document.body, { childList: true, subtree: true });
|
39
31
|
return container;
|
40
|
-
})(document.getElementById(containerId) ??
|
32
|
+
})(document.getElementById(containerId) ??
|
33
|
+
inject(showPreferences));
|
41
34
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"showPreferences.mjs.d.ts","sourceRoot":"","sources":["../../../../src/config/gui-options/scripts/showPreferences.mjs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc,MAAM,0BAA0B,CAAC;AAShE,eAAO,MAAM,eAAe,uCAQc,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export const showPreferences = typeof CookieConsent !== "undefined" &&
|
2
|
+
typeof CookieConsent.showPreferences === "function"
|
3
|
+
? CookieConsent.showPreferences
|
4
|
+
: (() => {
|
5
|
+
console.error("Attempted to open cookie preferences modal, but the cookie consent plugin is not available at this time.");
|
6
|
+
})();
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"showPreferences.node.d.ts","sourceRoot":"","sources":["../../../../src/config/gui-options/scripts/showPreferences.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { showPreferences } from "@tilli-pro/cookieconsent";
|
package/dist/init/brf.js
CHANGED
@@ -3,6 +3,7 @@ import { LABELS } from "../config/categories/labels";
|
|
3
3
|
import cookies from "../config/cookies";
|
4
4
|
import { run } from "../init";
|
5
5
|
import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
|
6
|
+
import { showPreferences } from "../config/gui-options/scripts/showPreferences.mjs";
|
6
7
|
// TODO: auto-detect detect language
|
7
8
|
const __LANGUAGE__ = "en"; // "English" ("English")
|
8
9
|
const categories = {
|
@@ -61,5 +62,5 @@ const config = {
|
|
61
62
|
language,
|
62
63
|
};
|
63
64
|
// console.debug({ config }, "Initializing Cookie Consent (BRF)...");
|
64
|
-
const init = makeInitFn(run, config);
|
65
|
+
const init = makeInitFn(run, config, showPreferences);
|
65
66
|
void init();
|