@tilli-pro/cookieconsent-plugin 0.7.54 → 0.7.57

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 (98) 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 +18 -0
  7. package/demos/demo.styles.nudge-website.dark.min.html +9 -0
  8. package/demos/demo.styles.nudge-website.light.html +18 -0
  9. package/demos/demo.styles.nudge-website.light.min.html +9 -0
  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_frontier.dark.html +2 -2
  22. package/demos/demo.styles.tenant_frontier.dark.min.html +1 -1
  23. package/demos/demo.styles.tenant_frontier.light.html +2 -2
  24. package/demos/demo.styles.tenant_frontier.light.min.html +1 -1
  25. package/demos/demo.styles.tenant_oru.dark.html +2 -2
  26. package/demos/demo.styles.tenant_oru.dark.min.html +1 -1
  27. package/demos/demo.styles.tenant_oru.light.html +2 -2
  28. package/demos/demo.styles.tenant_oru.light.min.html +1 -1
  29. package/demos/demo.styles.tilli-pay.dark.html +2 -2
  30. package/demos/demo.styles.tilli-pay.dark.min.html +1 -1
  31. package/demos/demo.styles.tilli-pay.light.html +2 -2
  32. package/demos/demo.styles.tilli-pay.light.min.html +1 -1
  33. package/demos/demo.styles.tilli-website.dark.html +2 -2
  34. package/demos/demo.styles.tilli-website.dark.min.html +1 -1
  35. package/demos/demo.styles.tilli-website.light.html +2 -2
  36. package/demos/demo.styles.tilli-website.light.min.html +1 -1
  37. package/dist/init/_configs.d.ts +12 -0
  38. package/dist/init/_configs.d.ts.map +1 -0
  39. package/dist/init/_configs.js +17 -0
  40. package/dist/init/brf.config.d.ts +3 -0
  41. package/dist/init/brf.config.d.ts.map +1 -0
  42. package/dist/init/brf.config.js +61 -0
  43. package/dist/init/brf.js +2 -61
  44. package/dist/init/nudge-website.config.d.ts +3 -0
  45. package/dist/init/nudge-website.config.d.ts.map +1 -0
  46. package/dist/init/nudge-website.config.js +120 -0
  47. package/dist/init/nudge-website.js +2 -120
  48. package/dist/init/nudge.config.d.ts +3 -0
  49. package/dist/init/nudge.config.d.ts.map +1 -0
  50. package/dist/init/nudge.config.js +28 -0
  51. package/dist/init/nudge.js +2 -28
  52. package/dist/init/tilli-pay-website.config.d.ts +3 -0
  53. package/dist/init/tilli-pay-website.config.d.ts.map +1 -0
  54. package/dist/init/tilli-pay-website.config.js +200 -0
  55. package/dist/init/tilli-pay-website.js +2 -200
  56. package/dist/init/tilli-pay.config.d.ts +3 -0
  57. package/dist/init/tilli-pay.config.d.ts.map +1 -0
  58. package/dist/init/tilli-pay.config.js +18 -0
  59. package/dist/init/tilli-pay.js +2 -18
  60. package/dist/init/tilli-website.config.d.ts +3 -0
  61. package/dist/init/tilli-website.config.d.ts.map +1 -0
  62. package/dist/init/tilli-website.config.js +206 -0
  63. package/dist/init/tilli-website.js +2 -206
  64. package/dist/init/tilliX.config.d.ts +3 -0
  65. package/dist/init/tilliX.config.d.ts.map +1 -0
  66. package/dist/init/tilliX.config.js +20 -0
  67. package/dist/init/tilliX.js +2 -20
  68. package/dist/init.d.ts +1 -1
  69. package/dist/init.js +2 -2
  70. package/dist/react-components/CookieConsentInit.client.d.ts +6 -1
  71. package/dist/react-components/CookieConsentInit.client.d.ts.map +1 -1
  72. package/dist/react-components/CookieConsentInit.client.js +2 -2
  73. package/dist/react-components/CookieConsentInit.server.d.ts +6 -1
  74. package/dist/react-components/CookieConsentInit.server.d.ts.map +1 -1
  75. package/dist/react-components/CookieConsentInit.server.js +2 -2
  76. package/dist/react-components/hooks/useCookieConsent.d.ts +2 -1
  77. package/dist/react-components/hooks/useCookieConsent.d.ts.map +1 -1
  78. package/dist/react-components/hooks/useCookieConsent.js +6 -3
  79. package/package.json +1 -1
  80. package/src/init/_configs.ts +20 -0
  81. package/src/init/brf.config.ts +70 -0
  82. package/src/init/brf.ts +2 -73
  83. package/src/init/nudge-website.config.ts +132 -0
  84. package/src/init/nudge-website.ts +2 -135
  85. package/src/init/nudge.config.ts +37 -0
  86. package/src/init/nudge.ts +2 -40
  87. package/src/init/tilli-pay-website.config.ts +213 -0
  88. package/src/init/tilli-pay-website.ts +2 -216
  89. package/src/init/tilli-pay.config.ts +27 -0
  90. package/src/init/tilli-pay.ts +2 -30
  91. package/src/init/tilli-website.config.ts +219 -0
  92. package/src/init/tilli-website.ts +2 -222
  93. package/src/init/tilliX.config.ts +29 -0
  94. package/src/init/tilliX.ts +2 -32
  95. package/src/init.ts +2 -2
  96. package/src/react-components/CookieConsentInit.client.tsx +9 -2
  97. package/src/react-components/CookieConsentInit.server.tsx +11 -2
  98. package/src/react-components/hooks/useCookieConsent.ts +10 -3
package/dist/init/brf.js CHANGED
@@ -1,66 +1,7 @@
1
- import _config from "../config";
2
- import { LABELS } from "../config/categories/labels";
3
- import cookies from "../config/cookies";
4
1
  import { run } from "../init";
5
- import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
2
+ import { makeInitFn } from "./utils";
6
3
  import { showPreferences } from "../config/gui-options/scripts/showPreferences.mjs";
7
- // TODO: auto-detect detect language
8
- const __LANGUAGE__ = "en"; // "English" ("English")
9
- const categories = {
10
- necessary: {
11
- enabled: true, // "necessary" category is always enabled.
12
- readOnly: true,
13
- services: {
14
- /** tilliX (BRF) */
15
- tilliX: {
16
- label: LABELS.en.necessary.tilliX,
17
- cookies: [...cookies.necessary.brf(__LANGUAGE__)],
18
- },
19
- },
20
- },
21
- functional: {
22
- services: {
23
- /** tilliX (BRF) */
24
- tilliX: {
25
- label: LABELS.en.functional.tilliX,
26
- cookies: [...cookies.functional.brf(__LANGUAGE__)],
27
- },
28
- },
29
- autoClear: {
30
- cookies: [
31
- {
32
- name: /^(tx-theme)/, // tilliX theme (-> "light" | "dark")
33
- },
34
- ],
35
- },
36
- },
37
- analytics: {
38
- services: {
39
- /** Datadog (RUM) */
40
- datadog: {
41
- label: LABELS.en.analytics.datadog,
42
- cookies: [...cookies.analytics.datadog(__LANGUAGE__)],
43
- },
44
- },
45
- autoClear: {
46
- cookies: [
47
- {
48
- name: /^(_tilli_analytics_dd_)/, // Datadog (RUM)
49
- },
50
- ],
51
- },
52
- },
53
- };
54
- // TODO: DRY further w/ `./tilli-website.ts`
55
- const language = {
56
- ..._config.language,
57
- translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories),
58
- };
59
- const config = {
60
- ..._config,
61
- categories,
62
- language,
63
- };
4
+ import { config } from "./brf.config";
64
5
  // console.debug({ config }, "Initializing Cookie Consent (BRF)...");
65
6
  const init = makeInitFn(run, config, showPreferences);
66
7
  void init();
@@ -0,0 +1,3 @@
1
+ import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
2
+ export declare const config: CookieConsentConfig;
3
+ //# sourceMappingURL=nudge-website.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nudge-website.config.d.ts","sourceRoot":"","sources":["../../src/init/nudge-website.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA+HpE,eAAO,MAAM,MAAM,EAAE,mBAIpB,CAAC"}
@@ -0,0 +1,120 @@
1
+ import _config from "../config";
2
+ import { stripInvalidLinkedCategoriesFromTranslations } from "./utils";
3
+ const categories = {
4
+ necessary: {
5
+ enabled: true, // "necessary" category is always enabled.
6
+ readOnly: true,
7
+ services: {
8
+ "Session": {
9
+ label: "Session",
10
+ cookies: [
11
+ {
12
+ name: /^(_scc_session)/, // session ID for core functionality
13
+ },
14
+ ],
15
+ },
16
+ },
17
+ },
18
+ analytics: {
19
+ services: {
20
+ "Google Analytics": {
21
+ label: "Google Analytics",
22
+ cookies: [
23
+ {
24
+ name: /^(_ga_)/, // Google Analytics
25
+ domain: ".nudge.pro",
26
+ },
27
+ ],
28
+ },
29
+ "TelemetryDeck": {
30
+ label: "TelemetryDeck",
31
+ cookies: [
32
+ {
33
+ name: /^(_tccl_)/, // TelemetryDeck
34
+ domain: ".nudge.pro",
35
+ },
36
+ ],
37
+ },
38
+ },
39
+ autoClear: {
40
+ // TODO: DRY this with the services above
41
+ cookies: [
42
+ /** Google Analytics */
43
+ {
44
+ name: /^(_ga_)/, // Google Analytics
45
+ domain: ".nudge.pro",
46
+ },
47
+ /** TelemetryDeck */
48
+ {
49
+ name: /^(_tccl_)/, // TelemetryDeck
50
+ domain: ".nudge.pro",
51
+ },
52
+ ],
53
+ },
54
+ },
55
+ marketing: {
56
+ services: {
57
+ "Google Adsense": {
58
+ label: "Google Adsense",
59
+ cookies: [
60
+ {
61
+ name: /^(_gcl_)/, // Google Adsense
62
+ domain: ".nudge.pro",
63
+ },
64
+ ],
65
+ },
66
+ "zoominfo": {
67
+ label: "zoominfo",
68
+ cookies: [
69
+ {
70
+ name: /^(visitorld)/, // zoominfo (simply ws marketing tool)
71
+ domain: ".ws.zoominfo.com",
72
+ },
73
+ {
74
+ name: /^(_cfuvid)/, // zoominfo (Cloudflare)
75
+ domain: ".zoominfo.com",
76
+ },
77
+ ],
78
+ },
79
+ "Twitter": {
80
+ label: "Twitter",
81
+ cookies: [
82
+ {
83
+ name: /^(muc_ads)/, // Twitter (ads)
84
+ domain: ".t.co",
85
+ },
86
+ ],
87
+ },
88
+ },
89
+ autoClear: {
90
+ // TODO: DRY this with the services above
91
+ cookies: [
92
+ /** Google Adsense */
93
+ {
94
+ name: /^(_gcl_)/, // Google Adsense
95
+ domain: ".nudge.pro",
96
+ },
97
+ /** zoominfo */
98
+ {
99
+ name: /^(_cfuvid)/, // zoominfo (Cloudflare)
100
+ domain: ".zoominfo.com",
101
+ },
102
+ /** Twitter */
103
+ {
104
+ name: /^(muc_ads)/, // Twitter (ads)
105
+ domain: ".t.co",
106
+ },
107
+ ],
108
+ },
109
+ },
110
+ };
111
+ // TODO: DRY further w/ `./brf.ts`
112
+ const language = {
113
+ ..._config.language,
114
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
115
+ };
116
+ export const config = {
117
+ ..._config,
118
+ categories,
119
+ language,
120
+ };
@@ -1,125 +1,7 @@
1
- import _config from "../config";
2
1
  import { run } from "../init";
3
- import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
2
+ import { makeInitFn } from "./utils";
4
3
  import { showPreferences } from "../config/gui-options/scripts/showPreferences.mjs";
5
- const categories = {
6
- necessary: {
7
- enabled: true, // "necessary" category is always enabled.
8
- readOnly: true,
9
- services: {
10
- "Session": {
11
- label: "Session",
12
- cookies: [
13
- {
14
- name: /^(_scc_session)/, // session ID for core functionality
15
- },
16
- ],
17
- },
18
- },
19
- },
20
- analytics: {
21
- services: {
22
- "Google Analytics": {
23
- label: "Google Analytics",
24
- cookies: [
25
- {
26
- name: /^(_ga_)/, // Google Analytics
27
- domain: ".nudge.pro",
28
- },
29
- ],
30
- },
31
- "TelemetryDeck": {
32
- label: "TelemetryDeck",
33
- cookies: [
34
- {
35
- name: /^(_tccl_)/, // TelemetryDeck
36
- domain: ".nudge.pro",
37
- },
38
- ],
39
- },
40
- },
41
- autoClear: {
42
- // TODO: DRY this with the services above
43
- cookies: [
44
- /** Google Analytics */
45
- {
46
- name: /^(_ga_)/, // Google Analytics
47
- domain: ".nudge.pro",
48
- },
49
- /** TelemetryDeck */
50
- {
51
- name: /^(_tccl_)/, // TelemetryDeck
52
- domain: ".nudge.pro",
53
- },
54
- ],
55
- },
56
- },
57
- marketing: {
58
- services: {
59
- "Google Adsense": {
60
- label: "Google Adsense",
61
- cookies: [
62
- {
63
- name: /^(_gcl_)/, // Google Adsense
64
- domain: ".nudge.pro",
65
- },
66
- ],
67
- },
68
- "zoominfo": {
69
- label: "zoominfo",
70
- cookies: [
71
- {
72
- name: /^(visitorld)/, // zoominfo (simply ws marketing tool)
73
- domain: ".ws.zoominfo.com",
74
- },
75
- {
76
- name: /^(_cfuvid)/, // zoominfo (Cloudflare)
77
- domain: ".zoominfo.com",
78
- },
79
- ],
80
- },
81
- "Twitter": {
82
- label: "Twitter",
83
- cookies: [
84
- {
85
- name: /^(muc_ads)/, // Twitter (ads)
86
- domain: ".t.co",
87
- },
88
- ],
89
- },
90
- },
91
- autoClear: {
92
- // TODO: DRY this with the services above
93
- cookies: [
94
- /** Google Adsense */
95
- {
96
- name: /^(_gcl_)/, // Google Adsense
97
- domain: ".nudge.pro",
98
- },
99
- /** zoominfo */
100
- {
101
- name: /^(_cfuvid)/, // zoominfo (Cloudflare)
102
- domain: ".zoominfo.com",
103
- },
104
- /** Twitter */
105
- {
106
- name: /^(muc_ads)/, // Twitter (ads)
107
- domain: ".t.co",
108
- },
109
- ],
110
- },
111
- },
112
- };
113
- // TODO: DRY further w/ `./brf.ts`
114
- const language = {
115
- ..._config.language,
116
- translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
117
- };
118
- const config = {
119
- ..._config,
120
- categories,
121
- language,
122
- };
4
+ import { config } from "./nudge-website.config";
123
5
  // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
124
6
  const init = makeInitFn(run, config, showPreferences);
125
7
  void init();
@@ -0,0 +1,3 @@
1
+ import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
2
+ export declare const config: CookieConsentConfig;
3
+ //# sourceMappingURL=nudge.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nudge.config.d.ts","sourceRoot":"","sources":["../../src/init/nudge.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAgCpE,eAAO,MAAM,MAAM,EAAE,mBAIpB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import _config from "../config";
2
+ import { stripInvalidLinkedCategoriesFromTranslations } from "./utils";
3
+ const categories = {
4
+ necessary: {
5
+ enabled: true, // "necessary" category is always enabled.
6
+ readOnly: true,
7
+ services: {
8
+ "Authentication": {
9
+ label: "Authentication",
10
+ cookies: [
11
+ {
12
+ name: /^(refreshToken)/, // refresh token for authentication purposes only
13
+ },
14
+ ],
15
+ },
16
+ },
17
+ },
18
+ };
19
+ // TODO: DRY further w/ `./brf.ts`
20
+ const language = {
21
+ ..._config.language,
22
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
23
+ };
24
+ export const config = {
25
+ ..._config,
26
+ categories,
27
+ language,
28
+ };
@@ -1,33 +1,7 @@
1
- import _config from "../config";
2
1
  import { run } from "../init";
3
- import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
2
+ import { makeInitFn } from "./utils";
4
3
  import { showPreferences } from "../config/gui-options/scripts/showPreferences.mjs";
5
- const categories = {
6
- necessary: {
7
- enabled: true, // "necessary" category is always enabled.
8
- readOnly: true,
9
- services: {
10
- "Authentication": {
11
- label: "Authentication",
12
- cookies: [
13
- {
14
- name: /^(refreshToken)/, // refresh token for authentication purposes only
15
- },
16
- ],
17
- },
18
- },
19
- },
20
- };
21
- // TODO: DRY further w/ `./brf.ts`
22
- const language = {
23
- ..._config.language,
24
- translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
25
- };
26
- const config = {
27
- ..._config,
28
- categories,
29
- language,
30
- };
4
+ import { config } from "./nudge.config";
31
5
  // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
32
6
  const init = makeInitFn(run, config, showPreferences);
33
7
  void init();
@@ -0,0 +1,3 @@
1
+ import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
2
+ export declare const config: CookieConsentConfig;
3
+ //# sourceMappingURL=tilli-pay-website.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilli-pay-website.config.d.ts","sourceRoot":"","sources":["../../src/init/tilli-pay-website.config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA8MpE,eAAO,MAAM,MAAM,EAAE,mBAIpB,CAAC"}
@@ -0,0 +1,200 @@
1
+ // TODO: migrate from monay.com to tillipay.com
2
+ import _config from "../config";
3
+ import { stripInvalidLinkedCategoriesFromTranslations } from "./utils";
4
+ const categories = {
5
+ necessary: {
6
+ enabled: true, // "necessary" category is always enabled.
7
+ readOnly: true,
8
+ services: {
9
+ Session: {
10
+ label: "Session",
11
+ cookies: [
12
+ {
13
+ name: /^(_scc_session)/, // session ID for core functionality
14
+ },
15
+ ],
16
+ },
17
+ },
18
+ },
19
+ functional: {
20
+ services: {
21
+ Hubspot: {
22
+ label: "Hubspot",
23
+ cookies: [
24
+ {
25
+ name: /^(messagesUtk)/, // Hubspot (chat user identity)
26
+ domain: ".monay.com",
27
+ },
28
+ ],
29
+ },
30
+ },
31
+ autoClear: {
32
+ // TODO: DRY this with the services above
33
+ cookies: [
34
+ /** Hubspot */
35
+ {
36
+ name: /^(messagesUtk)/, // Hubspot (chat user identity)
37
+ domain: ".monay.com",
38
+ },
39
+ ],
40
+ },
41
+ },
42
+ analytics: {
43
+ services: {
44
+ "Google Analytics": {
45
+ label: "Google Analytics",
46
+ cookies: [
47
+ {
48
+ name: /^(_ga_)/, // Google Analytics
49
+ domain: "tilli.pro",
50
+ },
51
+ ],
52
+ },
53
+ TelemetryDeck: {
54
+ label: "TelemetryDeck",
55
+ cookies: [
56
+ {
57
+ name: /^(_tccl_)/, // TelemetryDeck
58
+ domain: "tilli.pro",
59
+ },
60
+ ],
61
+ },
62
+ },
63
+ autoClear: {
64
+ // TODO: DRY this with the services above
65
+ cookies: [
66
+ /** Google Analytics */
67
+ {
68
+ name: /^(_ga_)/, // Google Analytics
69
+ domain: "tilli.pro",
70
+ },
71
+ /** TelemetryDeck */
72
+ {
73
+ name: /^(_tccl_)/, // TelemetryDeck
74
+ domain: "tilli.pro",
75
+ },
76
+ ],
77
+ },
78
+ },
79
+ marketing: {
80
+ services: {
81
+ Hubspot: {
82
+ label: "Hubspot",
83
+ cookies: [
84
+ {
85
+ name: /^(__hs)/, // Hubspot (Session Tracking)
86
+ domain: "tilli.pro",
87
+ },
88
+ {
89
+ name: /^(hubspotutk)/, // Hubspot (User Tracking)
90
+ domain: "tilli.pro",
91
+ },
92
+ {
93
+ name: /^(__cf_bm)/, // Hubspot (Analytics - Cloudfare)
94
+ domain: ".hs-analytics.net",
95
+ },
96
+ {
97
+ name: /^(__cf_bm)/, // Hubspot (Banner - Cloudfare)
98
+ domain: ".hs-banner.com",
99
+ },
100
+ {
101
+ name: /^(__cf_bm)/, // Hubspot (Scripts - Cloudfare)
102
+ domain: ".hs-scripts.com",
103
+ },
104
+ {
105
+ name: /^(__cf_bm)/, // Hubspot (Adspixel - Cloudfare)
106
+ domain: ".hsadspixel.net",
107
+ },
108
+ {
109
+ name: /^(__cf_bm)/, // Hubspot (Twitter - Cloudfare)
110
+ domain: ".t.co",
111
+ },
112
+ {
113
+ name: /^(__cf_bm)/, // Hubspot (User Messages - Cloudfare)
114
+ domain: ".usermessages.com",
115
+ },
116
+ {
117
+ name: /^(_cfuvid)/, // Hubspot (Visitor ID - Cloudfare)
118
+ domain: ".hubspot.com",
119
+ },
120
+ ],
121
+ },
122
+ Facebook: {
123
+ label: "Facebook",
124
+ cookies: [
125
+ {
126
+ name: /^(_fb)/, // Facebook (ads)
127
+ domain: "tilli.pro",
128
+ },
129
+ ],
130
+ },
131
+ Twitter: {
132
+ label: "Twitter",
133
+ cookies: [
134
+ {
135
+ name: /^(muc_ads)/, // Twitter (ads)
136
+ domain: ".t.co",
137
+ },
138
+ ],
139
+ },
140
+ },
141
+ autoClear: {
142
+ // TODO: DRY this with the services above
143
+ cookies: [
144
+ /** Hubspot */
145
+ {
146
+ name: /^(__hs)/, // Hubspot (Session Tracking)
147
+ domain: "tilli.pro",
148
+ },
149
+ {
150
+ name: /^(__cf_bm)/, // Hubspot (Analytics - Cloudfare)
151
+ domain: ".hs-analytics.net",
152
+ },
153
+ {
154
+ name: /^(__cf_bm)/, // Hubspot (Banner - Cloudfare)
155
+ domain: ".hs-banner.com",
156
+ },
157
+ {
158
+ name: /^(__cf_bm)/, // Hubspot (Scripts - Cloudfare)
159
+ domain: ".hs-scripts.com",
160
+ },
161
+ {
162
+ name: /^(__cf_bm)/, // Hubspot (Adspixel - Cloudfare)
163
+ domain: ".hsadspixel.net",
164
+ },
165
+ {
166
+ name: /^(__cf_bm)/, // Hubspot (Twitter - Cloudfare)
167
+ domain: ".t.co",
168
+ },
169
+ {
170
+ name: /^(__cf_bm)/, // Hubspot (User Messages - Cloudfare)
171
+ domain: ".usermessages.com",
172
+ },
173
+ {
174
+ name: /^(_cfuvid)/, // Hubspot (Visitor ID - Cloudfare)
175
+ domain: ".hubspot.com",
176
+ },
177
+ /** Facebook */
178
+ {
179
+ name: /^(_fb)/, // Facebook (ads)
180
+ domain: "tilli.pro",
181
+ },
182
+ /** Twitter */
183
+ {
184
+ name: /^(muc_ads)/, // Twitter (ads)
185
+ domain: ".t.co",
186
+ },
187
+ ],
188
+ },
189
+ },
190
+ };
191
+ // TODO: DRY further w/ `./brf.ts`
192
+ const language = {
193
+ ..._config.language,
194
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
195
+ };
196
+ export const config = {
197
+ ..._config,
198
+ categories,
199
+ language,
200
+ };