@tilli-pro/cookieconsent-plugin 0.7.75 → 0.7.80

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