@tilli-pro/cookieconsent-plugin 0.7.74 → 0.7.79
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 -3
- package/demos/demo.min.html +1 -1
- package/demos/demo.styles.dark.html +2 -3
- package/demos/demo.styles.dark.min.html +1 -1
- package/demos/demo.styles.nudge-website.dark.html +2 -3
- package/demos/demo.styles.nudge-website.dark.min.html +1 -1
- package/demos/demo.styles.nudge-website.light.html +2 -3
- package/demos/demo.styles.nudge-website.light.min.html +1 -1
- package/demos/demo.styles.nudge.dark.html +2 -3
- package/demos/demo.styles.nudge.dark.min.html +1 -1
- package/demos/demo.styles.nudge.light.html +2 -3
- package/demos/demo.styles.nudge.light.min.html +1 -1
- package/demos/demo.styles.tenant_con-edison.dark.html +2 -3
- package/demos/demo.styles.tenant_con-edison.dark.min.html +1 -1
- package/demos/demo.styles.tenant_con-edison.light.html +2 -3
- package/demos/demo.styles.tenant_con-edison.light.min.html +1 -1
- package/demos/demo.styles.tenant_freeman.dark.html +2 -3
- package/demos/demo.styles.tenant_freeman.dark.min.html +1 -1
- package/demos/demo.styles.tenant_freeman.light.html +2 -3
- package/demos/demo.styles.tenant_freeman.light.min.html +9 -0
- package/demos/demo.styles.tenant_frontier.dark.html +2 -3
- package/demos/demo.styles.tenant_frontier.dark.min.html +1 -1
- package/demos/demo.styles.tenant_frontier.light.html +2 -3
- package/demos/demo.styles.tenant_frontier.light.min.html +1 -1
- package/demos/demo.styles.tenant_oru.dark.html +2 -3
- package/demos/demo.styles.tenant_oru.dark.min.html +1 -1
- package/demos/demo.styles.tenant_oru.light.html +2 -3
- package/demos/demo.styles.tenant_oru.light.min.html +1 -1
- package/demos/demo.styles.tilli-pay.dark.html +2 -3
- package/demos/demo.styles.tilli-pay.dark.min.html +1 -1
- package/demos/demo.styles.tilli-pay.light.html +2 -3
- package/demos/demo.styles.tilli-pay.light.min.html +1 -1
- package/demos/demo.styles.tilli-website.dark.html +2 -3
- package/demos/demo.styles.tilli-website.dark.min.html +1 -1
- package/demos/demo.styles.tilli-website.light.html +2 -3
- package/demos/demo.styles.tilli-website.light.min.html +1 -1
- package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.js +6 -6
- package/dist/init/tilliX.config.d.ts.map +1 -1
- package/dist/init/tilliX.config.js +20 -1
- package/dist/init.d.ts +1 -1
- package/dist/init.js +2 -2
- package/package.json +10 -4
- package/src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts +6 -6
- package/src/init/tilliX.config.ts +21 -1
- package/src/init.ts +2 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tilli-pro/cookieconsent-plugin",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.79",
|
4
4
|
"private": false,
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -20,9 +20,7 @@
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
|
-
"@tilli-pro/cookieconsent": "3.3.
|
24
|
-
"next": "14.2.15",
|
25
|
-
"react": "18.3.1"
|
23
|
+
"@tilli-pro/cookieconsent": "3.3.11"
|
26
24
|
},
|
27
25
|
"devDependencies": {
|
28
26
|
"@tilli-pro/eslint-config": "0.3.7",
|
@@ -33,10 +31,18 @@
|
|
33
31
|
"@types/react-dom": "18.3.0",
|
34
32
|
"cpx": "1.5.0",
|
35
33
|
"eslint": "9.12.0",
|
34
|
+
"next": "14.2.15",
|
36
35
|
"prettier": "3.3.3",
|
36
|
+
"react": "18.3.1",
|
37
|
+
"react-dom": "18.3.1",
|
37
38
|
"tsx": "4.19.3",
|
38
39
|
"typescript": "5.6.2"
|
39
40
|
},
|
41
|
+
"peerDependencies": {
|
42
|
+
"next": "14.2.15",
|
43
|
+
"react": "18.3.1",
|
44
|
+
"react-dom": "18.3.1"
|
45
|
+
},
|
40
46
|
"prettier": "@tilli-pro/prettier-config",
|
41
47
|
"scripts": {
|
42
48
|
"build": "tsc && cpx \"src/**/*.css\" dist",
|
@@ -108,13 +108,13 @@ export default (function <IsTouch extends boolean = false>(
|
|
108
108
|
highestBottomPx = originalBottomPx + maxDragPx;
|
109
109
|
|
110
110
|
/** attach the mouse events for dragging */
|
111
|
-
buttonEl.addEventListener("mousedown", onMouseDown.bind(buttonEl));
|
112
|
-
document.addEventListener("mousemove", onMouseMove.bind(buttonEl));
|
113
|
-
document.addEventListener("mouseup", onMouseUp);
|
111
|
+
buttonEl.addEventListener("mousedown", onMouseDown.bind(buttonEl), { passive: true });
|
112
|
+
document.addEventListener("mousemove", onMouseMove.bind(buttonEl), { passive: true });
|
113
|
+
document.addEventListener("mouseup", onMouseUp, { passive: true });
|
114
114
|
// [mobile (touch) support]
|
115
|
-
buttonEl.addEventListener("touchstart", onTouchStart.bind(buttonEl));
|
116
|
-
document.addEventListener("touchmove", onTouchMove.bind(buttonEl));
|
117
|
-
document.addEventListener("touchend", onTouchEnd);
|
115
|
+
buttonEl.addEventListener("touchstart", onTouchStart.bind(buttonEl), { passive: true });
|
116
|
+
document.addEventListener("touchmove", onTouchMove.bind(buttonEl), { passive: true });
|
117
|
+
document.addEventListener("touchend", onTouchEnd, { passive: true });
|
118
118
|
}
|
119
119
|
|
120
120
|
// MUTATION OBSERVER – for if the button is removed/re-added
|
@@ -2,6 +2,11 @@ import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
|
|
2
2
|
|
3
3
|
import _config from "../config";
|
4
4
|
import { stripInvalidLinkedCategoriesFromTranslations } from "./utils";
|
5
|
+
import { LABELS } from "../config/categories/labels";
|
6
|
+
import cookies from "../config/cookies";
|
7
|
+
|
8
|
+
// TODO: auto-detect detect language
|
9
|
+
const __LANGUAGE__ = "en"; // "English" ("English")
|
5
10
|
|
6
11
|
const categories: CookieConsentConfig["categories"] = {
|
7
12
|
necessary: {
|
@@ -9,7 +14,22 @@ const categories: CookieConsentConfig["categories"] = {
|
|
9
14
|
readOnly: true,
|
10
15
|
},
|
11
16
|
functional: {},
|
12
|
-
analytics: {
|
17
|
+
analytics: {
|
18
|
+
services: {
|
19
|
+
/** Datadog (RUM) */
|
20
|
+
datadog: {
|
21
|
+
label: LABELS.en.analytics.datadog,
|
22
|
+
cookies: [...cookies.analytics.datadog(__LANGUAGE__)],
|
23
|
+
},
|
24
|
+
},
|
25
|
+
autoClear: {
|
26
|
+
cookies: [
|
27
|
+
{
|
28
|
+
name: /^(_tilli_analytics_dd_)/, // Datadog (RUM)
|
29
|
+
},
|
30
|
+
],
|
31
|
+
},
|
32
|
+
},
|
13
33
|
};
|
14
34
|
|
15
35
|
// TODO: DRY further w/ `./brf.ts`
|
package/src/init.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import "https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@
|
1
|
+
import "https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@04e8bcb53a73b7484fe01cebec69520eed2a55b4/dist/cookieconsent.umd.js";
|
2
2
|
|
3
3
|
import type * as _CookieConsent from "@tilli-pro/cookieconsent";
|
4
4
|
import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
|
@@ -18,7 +18,7 @@ declare global {
|
|
18
18
|
}
|
19
19
|
}
|
20
20
|
|
21
|
-
const GIT_SHA = "
|
21
|
+
const GIT_SHA = "04e8bcb53a73b7484fe01cebec69520eed2a55b4";
|
22
22
|
const GIT_REPO = "tilli-pro/cookieconsent";
|
23
23
|
const GIT_CDN_BASE_URL = "https://cdn.jsdelivr.net/gh";
|
24
24
|
const GIT_CDN_URL = `${GIT_CDN_BASE_URL}/${GIT_REPO}@${GIT_SHA}`;
|