@tilli-pro/cookieconsent-plugin 0.6.0 → 0.7.23

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 (95) hide show
  1. package/.cache/tsbuildinfo.json +1 -1
  2. package/demos/demo.html +3 -3
  3. package/demos/demo.min.html +1 -1
  4. package/demos/demo.styles.dark.html +10 -1
  5. package/demos/demo.styles.dark.min.html +9 -0
  6. package/demos/demo.styles.nudge.dark.html +18 -0
  7. package/demos/demo.styles.nudge.dark.min.html +9 -0
  8. package/demos/demo.styles.nudge.light.html +18 -0
  9. package/demos/demo.styles.nudge.light.min.html +9 -0
  10. package/demos/demo.styles.tenant_con-edison.dark.html +18 -0
  11. package/demos/demo.styles.tenant_con-edison.dark.min.html +9 -0
  12. package/demos/demo.styles.tenant_con-edison.light.html +18 -0
  13. package/demos/demo.styles.tenant_con-edison.light.min.html +9 -0
  14. package/demos/demo.styles.tenant_freeman.dark.html +18 -0
  15. package/demos/demo.styles.tenant_freeman.dark.min.html +9 -0
  16. package/demos/demo.styles.tenant_freeman.light.html +18 -0
  17. package/demos/demo.styles.tenant_frontier.dark.html +18 -0
  18. package/demos/demo.styles.tenant_frontier.dark.min.html +9 -0
  19. package/demos/demo.styles.tenant_frontier.light.html +18 -0
  20. package/demos/demo.styles.tenant_frontier.light.min.html +9 -0
  21. package/demos/demo.styles.tenant_oru.dark.html +18 -0
  22. package/demos/demo.styles.tenant_oru.dark.min.html +9 -0
  23. package/demos/demo.styles.tenant_oru.light.html +18 -0
  24. package/demos/demo.styles.tenant_oru.light.min.html +10 -0
  25. package/demos/demo.styles.tilli-pay.dark.html +18 -0
  26. package/demos/demo.styles.tilli-pay.dark.min.html +9 -0
  27. package/demos/demo.styles.tilli-pay.light.html +18 -0
  28. package/demos/demo.styles.tilli-pay.light.min.html +9 -0
  29. package/demos/demo.styles.tilli-website.dark.html +18 -0
  30. package/demos/demo.styles.tilli-website.dark.min.html +9 -0
  31. package/demos/demo.styles.tilli-website.light.html +18 -0
  32. package/demos/demo.styles.tilli-website.light.min.html +9 -0
  33. package/dist/_types.d.ts +1 -1
  34. package/dist/_types.d.ts.map +1 -1
  35. package/dist/_utils.d.ts +2 -2
  36. package/dist/_utils.d.ts.map +1 -1
  37. package/dist/_utils.js +2 -0
  38. package/dist/config/gui-options/html-components/ManageCookiePrefsButton.d.ts.map +1 -1
  39. package/dist/config/gui-options/html-components/ManageCookiePrefsButton.js +3 -0
  40. package/dist/config/gui-options/html-components/assets/CookieIcon.js +1 -1
  41. package/dist/init/nudge-website.d.ts +2 -0
  42. package/dist/init/nudge-website.d.ts.map +1 -0
  43. package/dist/init/nudge-website.js +124 -0
  44. package/dist/init/nudge.d.ts +2 -0
  45. package/dist/init/nudge.d.ts.map +1 -0
  46. package/dist/init/nudge.js +32 -0
  47. package/dist/init/tilli-pay-website.d.ts +2 -0
  48. package/dist/init/tilli-pay-website.d.ts.map +1 -0
  49. package/dist/init/tilli-pay-website.js +204 -0
  50. package/dist/init/tilli-pay.d.ts +2 -0
  51. package/dist/init/tilli-pay.d.ts.map +1 -0
  52. package/dist/init/tilli-pay.js +22 -0
  53. package/dist/init/tilli-website.js +188 -2
  54. package/dist/init/tilliX.d.ts +2 -0
  55. package/dist/init/tilliX.d.ts.map +1 -0
  56. package/dist/init/tilliX.js +24 -0
  57. package/dist/init/utils.script.d.ts +26 -0
  58. package/dist/init/utils.script.d.ts.map +1 -0
  59. package/dist/init/utils.script.js +63 -0
  60. package/dist/init.d.ts +1 -1
  61. package/dist/init.d.ts.map +1 -1
  62. package/dist/init.js +4 -2
  63. package/dist/styles/index.d.ts +5 -0
  64. package/dist/styles/index.d.ts.map +1 -1
  65. package/dist/styles/index.js +5 -0
  66. package/dist/styles/nudge.css +121 -0
  67. package/dist/styles/tenants/con-edison.css +157 -0
  68. package/dist/styles/tenants/freeman.css +56 -1
  69. package/dist/styles/tenants/frontier.css +59 -2
  70. package/dist/styles/tenants/oru.css +157 -0
  71. package/dist/styles/tilli-pay.css +121 -0
  72. package/dist/styles/tilli-website.css +121 -0
  73. package/package.json +1 -1
  74. package/src/_types.ts +3 -2
  75. package/src/_utils.ts +5 -3
  76. package/src/config/gui-options/html-components/ManageCookiePrefsButton.ts +3 -0
  77. package/src/config/gui-options/html-components/assets/CookieIcon.ts +1 -1
  78. package/src/init/nudge-website.ts +140 -0
  79. package/src/init/nudge.ts +45 -0
  80. package/src/init/tilli-pay-website.ts +221 -0
  81. package/src/init/tilli-pay.ts +35 -0
  82. package/src/init/tilli-website.ts +192 -2
  83. package/src/init/tilliX.ts +37 -0
  84. package/src/init/utils.script.ts +72 -0
  85. package/src/init.ts +4 -2
  86. package/src/styles/index.ts +5 -0
  87. package/src/styles/nudge.css +121 -0
  88. package/src/styles/tenants/con-edison.css +157 -0
  89. package/src/styles/tenants/freeman.css +56 -1
  90. package/src/styles/tenants/frontier.css +59 -2
  91. package/src/styles/tenants/oru.css +157 -0
  92. package/src/styles/tilli-pay.css +121 -0
  93. package/src/styles/tilli-website.css +121 -0
  94. package/demos/demo.styles.freeman.html +0 -9
  95. package/demos/demo.styles.frontier.html +0 -9
@@ -0,0 +1,124 @@
1
+ import _config from "../config";
2
+ import { run } from "../init";
3
+ import { makeInitFn, 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
+ analytics: {
20
+ services: {
21
+ "Google Analytics": {
22
+ label: "Google Analytics",
23
+ cookies: [
24
+ {
25
+ name: /^(_ga_)/, // Google Analytics
26
+ domain: ".nudge.pro",
27
+ },
28
+ ],
29
+ },
30
+ "TelemetryDeck": {
31
+ label: "TelemetryDeck",
32
+ cookies: [
33
+ {
34
+ name: /^(_tccl_)/, // TelemetryDeck
35
+ domain: ".nudge.pro",
36
+ },
37
+ ],
38
+ },
39
+ },
40
+ autoClear: {
41
+ // TODO: DRY this with the services above
42
+ cookies: [
43
+ /** Google Analytics */
44
+ {
45
+ name: /^(_ga_)/, // Google Analytics
46
+ domain: ".nudge.pro",
47
+ },
48
+ /** TelemetryDeck */
49
+ {
50
+ name: /^(_tccl_)/, // TelemetryDeck
51
+ domain: ".nudge.pro",
52
+ },
53
+ ],
54
+ },
55
+ },
56
+ marketing: {
57
+ services: {
58
+ "Google Adsense": {
59
+ label: "Google Adsense",
60
+ cookies: [
61
+ {
62
+ name: /^(_gcl_)/, // Google Adsense
63
+ domain: ".nudge.pro",
64
+ },
65
+ ],
66
+ },
67
+ "zoominfo": {
68
+ label: "zoominfo",
69
+ cookies: [
70
+ {
71
+ name: /^(visitorld)/, // zoominfo (simply ws marketing tool)
72
+ domain: ".ws.zoominfo.com",
73
+ },
74
+ {
75
+ name: /^(_cfuvid)/, // zoominfo (Cloudflare)
76
+ domain: ".zoominfo.com",
77
+ },
78
+ ],
79
+ },
80
+ "Twitter": {
81
+ label: "Twitter",
82
+ cookies: [
83
+ {
84
+ name: /^(muc_ads)/, // Twitter (ads)
85
+ domain: ".t.co",
86
+ },
87
+ ],
88
+ },
89
+ },
90
+ autoClear: {
91
+ // TODO: DRY this with the services above
92
+ cookies: [
93
+ /** Google Adsense */
94
+ {
95
+ name: /^(_gcl_)/, // Google Adsense
96
+ domain: ".nudge.pro",
97
+ },
98
+ /** zoominfo */
99
+ {
100
+ name: /^(_cfuvid)/, // zoominfo (Cloudflare)
101
+ domain: ".zoominfo.com",
102
+ },
103
+ /** Twitter */
104
+ {
105
+ name: /^(muc_ads)/, // Twitter (ads)
106
+ domain: ".t.co",
107
+ },
108
+ ],
109
+ },
110
+ },
111
+ };
112
+ // TODO: DRY further w/ `./brf.ts`
113
+ const language = {
114
+ ..._config.language,
115
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
116
+ };
117
+ const config = {
118
+ ..._config,
119
+ categories,
120
+ language,
121
+ };
122
+ // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
123
+ const init = makeInitFn(run, config);
124
+ void init();
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=nudge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nudge.d.ts","sourceRoot":"","sources":["../../src/init/nudge.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import _config from "../config";
2
+ import { run } from "../init";
3
+ import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
4
+ const categories = {
5
+ necessary: {
6
+ enabled: true, // "necessary" category is always enabled.
7
+ readOnly: true,
8
+ services: {
9
+ "Authentication": {
10
+ label: "Authentication",
11
+ cookies: [
12
+ {
13
+ name: /^(refreshToken)/, // refresh token for authentication purposes only
14
+ },
15
+ ],
16
+ },
17
+ },
18
+ },
19
+ };
20
+ // TODO: DRY further w/ `./brf.ts`
21
+ const language = {
22
+ ..._config.language,
23
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
24
+ };
25
+ const config = {
26
+ ..._config,
27
+ categories,
28
+ language,
29
+ };
30
+ // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
31
+ const init = makeInitFn(run, config);
32
+ void init();
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tilli-pay-website.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilli-pay-website.d.ts","sourceRoot":"","sources":["../../src/init/tilli-pay-website.ts"],"names":[],"mappings":""}
@@ -0,0 +1,204 @@
1
+ import _config from "../config";
2
+ import { run } from "../init";
3
+ import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
4
+ // TODO: migrate from monay.com to tillipay.com
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
+ functional: {
21
+ services: {
22
+ "Hubspot": {
23
+ label: "Hubspot",
24
+ cookies: [
25
+ {
26
+ name: /^(messagesUtk)/, // Hubspot (chat user identity)
27
+ domain: ".monay.com",
28
+ },
29
+ ],
30
+ },
31
+ },
32
+ autoClear: {
33
+ // TODO: DRY this with the services above
34
+ cookies: [
35
+ /** Hubspot */
36
+ {
37
+ name: /^(messagesUtk)/, // Hubspot (chat user identity)
38
+ domain: ".monay.com",
39
+ },
40
+ ],
41
+ },
42
+ },
43
+ analytics: {
44
+ services: {
45
+ "Google Analytics": {
46
+ label: "Google Analytics",
47
+ cookies: [
48
+ {
49
+ name: /^(_ga_)/, // Google Analytics
50
+ domain: "tilli.pro",
51
+ },
52
+ ],
53
+ },
54
+ "TelemetryDeck": {
55
+ label: "TelemetryDeck",
56
+ cookies: [
57
+ {
58
+ name: /^(_tccl_)/, // TelemetryDeck
59
+ domain: "tilli.pro",
60
+ },
61
+ ],
62
+ },
63
+ },
64
+ autoClear: {
65
+ // TODO: DRY this with the services above
66
+ cookies: [
67
+ /** Google Analytics */
68
+ {
69
+ name: /^(_ga_)/, // Google Analytics
70
+ domain: "tilli.pro",
71
+ },
72
+ /** TelemetryDeck */
73
+ {
74
+ name: /^(_tccl_)/, // TelemetryDeck
75
+ domain: "tilli.pro",
76
+ },
77
+ ],
78
+ },
79
+ },
80
+ marketing: {
81
+ services: {
82
+ "Hubspot": {
83
+ label: "Hubspot",
84
+ cookies: [
85
+ {
86
+ name: /^(__hs)/, // Hubspot (Session Tracking)
87
+ domain: "tilli.pro",
88
+ },
89
+ {
90
+ name: /^(hubspotutk)/, // Hubspot (User Tracking)
91
+ domain: "tilli.pro",
92
+ },
93
+ {
94
+ name: /^(__cf_bm)/, // Hubspot (Analytics - Cloudfare)
95
+ domain: ".hs-analytics.net",
96
+ },
97
+ {
98
+ name: /^(__cf_bm)/, // Hubspot (Banner - Cloudfare)
99
+ domain: ".hs-banner.com",
100
+ },
101
+ {
102
+ name: /^(__cf_bm)/, // Hubspot (Scripts - Cloudfare)
103
+ domain: ".hs-scripts.com",
104
+ },
105
+ {
106
+ name: /^(__cf_bm)/, // Hubspot (Adspixel - Cloudfare)
107
+ domain: ".hsadspixel.net",
108
+ },
109
+ {
110
+ name: /^(__cf_bm)/, // Hubspot (Twitter - Cloudfare)
111
+ domain: ".t.co",
112
+ },
113
+ {
114
+ name: /^(__cf_bm)/, // Hubspot (User Messages - Cloudfare)
115
+ domain: ".usermessages.com",
116
+ },
117
+ {
118
+ name: /^(_cfuvid)/, // Hubspot (Visitor ID - Cloudfare)
119
+ domain: ".hubspot.com",
120
+ },
121
+ ],
122
+ },
123
+ "Facebook": {
124
+ label: "Facebook",
125
+ cookies: [
126
+ {
127
+ name: /^(_fb)/, // Facebook (ads)
128
+ domain: "tilli.pro",
129
+ },
130
+ ],
131
+ },
132
+ "Twitter": {
133
+ label: "Twitter",
134
+ cookies: [
135
+ {
136
+ name: /^(muc_ads)/, // Twitter (ads)
137
+ domain: ".t.co",
138
+ },
139
+ ],
140
+ },
141
+ },
142
+ autoClear: {
143
+ // TODO: DRY this with the services above
144
+ cookies: [
145
+ /** Hubspot */
146
+ {
147
+ name: /^(__hs)/, // Hubspot (Session Tracking)
148
+ domain: "tilli.pro",
149
+ },
150
+ {
151
+ name: /^(__cf_bm)/, // Hubspot (Analytics - Cloudfare)
152
+ domain: ".hs-analytics.net",
153
+ },
154
+ {
155
+ name: /^(__cf_bm)/, // Hubspot (Banner - Cloudfare)
156
+ domain: ".hs-banner.com",
157
+ },
158
+ {
159
+ name: /^(__cf_bm)/, // Hubspot (Scripts - Cloudfare)
160
+ domain: ".hs-scripts.com",
161
+ },
162
+ {
163
+ name: /^(__cf_bm)/, // Hubspot (Adspixel - Cloudfare)
164
+ domain: ".hsadspixel.net",
165
+ },
166
+ {
167
+ name: /^(__cf_bm)/, // Hubspot (Twitter - Cloudfare)
168
+ domain: ".t.co",
169
+ },
170
+ {
171
+ name: /^(__cf_bm)/, // Hubspot (User Messages - Cloudfare)
172
+ domain: ".usermessages.com",
173
+ },
174
+ {
175
+ name: /^(_cfuvid)/, // Hubspot (Visitor ID - Cloudfare)
176
+ domain: ".hubspot.com",
177
+ },
178
+ /** Facebook */
179
+ {
180
+ name: /^(_fb)/, // Facebook (ads)
181
+ domain: "tilli.pro",
182
+ },
183
+ /** Twitter */
184
+ {
185
+ name: /^(muc_ads)/, // Twitter (ads)
186
+ domain: ".t.co",
187
+ },
188
+ ],
189
+ },
190
+ },
191
+ };
192
+ // TODO: DRY further w/ `./brf.ts`
193
+ const language = {
194
+ ..._config.language,
195
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
196
+ };
197
+ const config = {
198
+ ..._config,
199
+ categories,
200
+ language,
201
+ };
202
+ // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
203
+ const init = makeInitFn(run, config);
204
+ void init();
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tilli-pay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilli-pay.d.ts","sourceRoot":"","sources":["../../src/init/tilli-pay.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import _config from "../config";
2
+ import { run } from "../init";
3
+ import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
4
+ const categories = {
5
+ necessary: {
6
+ enabled: true, // "necessary" category is always enabled.
7
+ readOnly: true,
8
+ },
9
+ };
10
+ // TODO: DRY further w/ `./brf.ts`
11
+ const language = {
12
+ ..._config.language,
13
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
14
+ };
15
+ const config = {
16
+ ..._config,
17
+ categories,
18
+ language,
19
+ };
20
+ // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
21
+ const init = makeInitFn(run, config);
22
+ void init();
@@ -5,9 +5,195 @@ const categories = {
5
5
  necessary: {
6
6
  enabled: true, // "necessary" category is always enabled.
7
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
+ analytics: {
20
+ services: {
21
+ "Google Analytics": {
22
+ label: "Google Analytics",
23
+ cookies: [
24
+ {
25
+ name: /^(_ga_)/, // Google Analytics
26
+ domain: "tilli.pro",
27
+ },
28
+ ],
29
+ },
30
+ "TelemetryDeck": {
31
+ label: "TelemetryDeck",
32
+ cookies: [
33
+ {
34
+ name: /^(_tccl_)/, // TelemetryDeck
35
+ domain: "tilli.pro",
36
+ },
37
+ ],
38
+ },
39
+ },
40
+ autoClear: {
41
+ // TODO: DRY this with the services above
42
+ cookies: [
43
+ /** Google Analytics */
44
+ {
45
+ name: /^(_ga_)/, // Google Analytics
46
+ domain: "tilli.pro",
47
+ },
48
+ /** TelemetryDeck */
49
+ {
50
+ name: /^(_tccl_)/, // TelemetryDeck
51
+ domain: "tilli.pro",
52
+ },
53
+ ],
54
+ },
55
+ },
56
+ marketing: {
57
+ services: {
58
+ "Google Tag Manager": {
59
+ label: "Google Tag Manager",
60
+ cookies: [
61
+ {
62
+ name: /^(_gtm_)/, // Google Tag Manager
63
+ domain: "tilli.pro",
64
+ },
65
+ {
66
+ name: /^(_gat)/, // Google Tag Manager (analytics)
67
+ domain: "tilli.pro",
68
+ },
69
+ {
70
+ name: /^(_gid)/, // Google Tag Manager (session ID)
71
+ domain: "tilli.pro",
72
+ },
73
+ ],
74
+ },
75
+ "Hubspot": {
76
+ label: "Hubspot",
77
+ cookies: [
78
+ {
79
+ name: /^(__hs)/, // Hubspot (Session Tracking)
80
+ domain: "tilli.pro",
81
+ },
82
+ {
83
+ name: /^(hubspotutk)/, // Hubspot (User Tracking)
84
+ domain: "tilli.pro",
85
+ },
86
+ {
87
+ name: /^(__cf_bm)/, // Hubspot (Analytics - Cloudfare)
88
+ domain: ".hs-analytics.net",
89
+ },
90
+ {
91
+ name: /^(__cf_bm)/, // Hubspot (Banner - Cloudfare)
92
+ domain: ".hs-banner.com",
93
+ },
94
+ {
95
+ name: /^(__cf_bm)/, // Hubspot (Scripts - Cloudfare)
96
+ domain: ".hs-scripts.com",
97
+ },
98
+ {
99
+ name: /^(__cf_bm)/, // Hubspot (Adspixel - Cloudfare)
100
+ domain: ".hsadspixel.net",
101
+ },
102
+ {
103
+ name: /^(__cf_bm)/, // Hubspot (Twitter - Cloudfare)
104
+ domain: ".t.co",
105
+ },
106
+ {
107
+ name: /^(__cf_bm)/, // Hubspot (User Messages - Cloudfare)
108
+ domain: ".usermessages.com",
109
+ },
110
+ {
111
+ name: /^(_cfuvid)/, // Hubspot (Visitor ID - Cloudfare)
112
+ domain: ".hubspot.com",
113
+ },
114
+ ],
115
+ },
116
+ "Facebook": {
117
+ label: "Facebook",
118
+ cookies: [
119
+ {
120
+ name: /^(_fb)/, // Facebook (ads)
121
+ domain: "tilli.pro",
122
+ },
123
+ ],
124
+ },
125
+ "Twitter": {
126
+ label: "Twitter",
127
+ cookies: [
128
+ {
129
+ name: /^(muc_ads)/, // Twitter (ads)
130
+ domain: ".t.co",
131
+ },
132
+ ],
133
+ },
134
+ },
135
+ autoClear: {
136
+ // TODO: DRY this with the services above
137
+ cookies: [
138
+ /** Google Tag Manager */
139
+ {
140
+ name: /^(_gtm_)/, // Google Tag Manager
141
+ domain: "tilli.pro",
142
+ },
143
+ {
144
+ name: /^(_gat)/, // Google Tag Manager (analytics)
145
+ domain: "tilli.pro",
146
+ },
147
+ {
148
+ name: /^(_gid)/, // Google Tag Manager (session ID)
149
+ domain: "tilli.pro",
150
+ },
151
+ /** Hubspot */
152
+ {
153
+ name: /^(__hs)/, // Hubspot (Session Tracking)
154
+ domain: "tilli.pro",
155
+ },
156
+ {
157
+ name: /^(__cf_bm)/, // Hubspot (Analytics - Cloudfare)
158
+ domain: ".hs-analytics.net",
159
+ },
160
+ {
161
+ name: /^(__cf_bm)/, // Hubspot (Banner - Cloudfare)
162
+ domain: ".hs-banner.com",
163
+ },
164
+ {
165
+ name: /^(__cf_bm)/, // Hubspot (Scripts - Cloudfare)
166
+ domain: ".hs-scripts.com",
167
+ },
168
+ {
169
+ name: /^(__cf_bm)/, // Hubspot (Adspixel - Cloudfare)
170
+ domain: ".hsadspixel.net",
171
+ },
172
+ {
173
+ name: /^(__cf_bm)/, // Hubspot (Twitter - Cloudfare)
174
+ domain: ".t.co",
175
+ },
176
+ {
177
+ name: /^(__cf_bm)/, // Hubspot (User Messages - Cloudfare)
178
+ domain: ".usermessages.com",
179
+ },
180
+ {
181
+ name: /^(_cfuvid)/, // Hubspot (Visitor ID - Cloudfare)
182
+ domain: ".hubspot.com",
183
+ },
184
+ /** Facebook */
185
+ {
186
+ name: /^(_fb)/, // Facebook (ads)
187
+ domain: "tilli.pro",
188
+ },
189
+ /** Twitter */
190
+ {
191
+ name: /^(muc_ads)/, // Twitter (ads)
192
+ domain: ".t.co",
193
+ },
194
+ ],
195
+ },
8
196
  },
9
- analytics: {},
10
- marketing: {},
11
197
  };
12
198
  // TODO: DRY further w/ `./brf.ts`
13
199
  const language = {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tilliX.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tilliX.d.ts","sourceRoot":"","sources":["../../src/init/tilliX.ts"],"names":[],"mappings":""}
@@ -0,0 +1,24 @@
1
+ import _config from "../config";
2
+ import { run } from "../init";
3
+ import { makeInitFn, stripInvalidLinkedCategoriesFromTranslations, } from "./utils";
4
+ const categories = {
5
+ necessary: {
6
+ enabled: true, // "necessary" category is always enabled.
7
+ readOnly: true,
8
+ },
9
+ functional: {},
10
+ analytics: {},
11
+ };
12
+ // TODO: DRY further w/ `./brf.ts`
13
+ const language = {
14
+ ..._config.language,
15
+ translations: stripInvalidLinkedCategoriesFromTranslations(_config.language.translations, categories, true),
16
+ };
17
+ const config = {
18
+ ..._config,
19
+ categories,
20
+ language,
21
+ };
22
+ // console.debug({ config }, "Initializing Cookie Consent (tilli Website)...");
23
+ const init = makeInitFn(run, config);
24
+ void init();
@@ -0,0 +1,26 @@
1
+ /** extracts the `theme` parameter from the script URL */
2
+ export declare function getThemeFromScriptUrl(scriptUrl: string): string | null;
3
+ /** adds a `cc--<theme>` CSS class to the <html> element, if not already present */
4
+ export declare function addHtmlClass(theme: string): void;
5
+ /**
6
+ * determines the URL of the currently executing script
7
+ * - (works for both ES modules (`import.meta.url`) and classic scripts (`document.currentScript`))
8
+ * @returns The script URL, or `undefined` if it cannot be determined.
9
+ */
10
+ export declare function getCurrentScriptUrl(): string | undefined;
11
+ /**
12
+ * inits theme by reading the `theme` query param from the provided script URL (or auto-detected script)
13
+ * and then adding the corresponding CSS class to <html>.
14
+ *
15
+ * @param scriptUrl - Optional explicit URL; if omitted, auto-detection is used
16
+ *
17
+ * @usage in an ES module entry point:
18
+ * import { initTheme } from './init/utils.script.ts';
19
+ * initTheme(import.meta.url);
20
+ *
21
+ * @usage in a classic script:
22
+ * import { initTheme } from './init/utils.script.ts';
23
+ * initTheme();
24
+ */
25
+ export declare function initTheme(scriptUrl?: string): void;
26
+ //# sourceMappingURL=utils.script.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.script.d.ts","sourceRoot":"","sources":["../../src/init/utils.script.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGtE;AAED,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAKhD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,GAAG,SAAS,CAaxD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAuBlD"}