@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.
Files changed (46) hide show
  1. package/.cache/tsbuildinfo.json +1 -1
  2. package/demos/demo.html +2 -3
  3. package/demos/demo.min.html +1 -1
  4. package/demos/demo.styles.dark.html +2 -3
  5. package/demos/demo.styles.dark.min.html +1 -1
  6. package/demos/demo.styles.nudge-website.dark.html +2 -3
  7. package/demos/demo.styles.nudge-website.dark.min.html +1 -1
  8. package/demos/demo.styles.nudge-website.light.html +2 -3
  9. package/demos/demo.styles.nudge-website.light.min.html +1 -1
  10. package/demos/demo.styles.nudge.dark.html +2 -3
  11. package/demos/demo.styles.nudge.dark.min.html +1 -1
  12. package/demos/demo.styles.nudge.light.html +2 -3
  13. package/demos/demo.styles.nudge.light.min.html +1 -1
  14. package/demos/demo.styles.tenant_con-edison.dark.html +2 -3
  15. package/demos/demo.styles.tenant_con-edison.dark.min.html +1 -1
  16. package/demos/demo.styles.tenant_con-edison.light.html +2 -3
  17. package/demos/demo.styles.tenant_con-edison.light.min.html +1 -1
  18. package/demos/demo.styles.tenant_freeman.dark.html +2 -3
  19. package/demos/demo.styles.tenant_freeman.dark.min.html +1 -1
  20. package/demos/demo.styles.tenant_freeman.light.html +2 -3
  21. package/demos/demo.styles.tenant_freeman.light.min.html +9 -0
  22. package/demos/demo.styles.tenant_frontier.dark.html +2 -3
  23. package/demos/demo.styles.tenant_frontier.dark.min.html +1 -1
  24. package/demos/demo.styles.tenant_frontier.light.html +2 -3
  25. package/demos/demo.styles.tenant_frontier.light.min.html +1 -1
  26. package/demos/demo.styles.tenant_oru.dark.html +2 -3
  27. package/demos/demo.styles.tenant_oru.dark.min.html +1 -1
  28. package/demos/demo.styles.tenant_oru.light.html +2 -3
  29. package/demos/demo.styles.tenant_oru.light.min.html +1 -1
  30. package/demos/demo.styles.tilli-pay.dark.html +2 -3
  31. package/demos/demo.styles.tilli-pay.dark.min.html +1 -1
  32. package/demos/demo.styles.tilli-pay.light.html +2 -3
  33. package/demos/demo.styles.tilli-pay.light.min.html +1 -1
  34. package/demos/demo.styles.tilli-website.dark.html +2 -3
  35. package/demos/demo.styles.tilli-website.dark.min.html +1 -1
  36. package/demos/demo.styles.tilli-website.light.html +2 -3
  37. package/demos/demo.styles.tilli-website.light.min.html +1 -1
  38. package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.js +6 -6
  39. package/dist/init/tilliX.config.d.ts.map +1 -1
  40. package/dist/init/tilliX.config.js +20 -1
  41. package/dist/init.d.ts +1 -1
  42. package/dist/init.js +2 -2
  43. package/package.json +10 -4
  44. package/src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts +6 -6
  45. package/src/init/tilliX.config.ts +21 -1
  46. 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.74",
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.9",
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@aa4f7bca5f30c5ef5322aa6e7cbd9f4a00467f36/dist/cookieconsent.umd.js";
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 = "aa4f7bca5f30c5ef5322aa6e7cbd9f4a00467f36";
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}`;