@c15t/scripts 2.0.0 → 2.1.0
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/README.md +9 -9
- package/dist/e2e-test-utils.cjs +125 -0
- package/dist/e2e-test-utils.js +67 -0
- package/dist/engine/runtime.cjs +19 -9
- package/dist/engine/runtime.js +19 -9
- package/dist/registry.cjs +338 -0
- package/dist/registry.js +292 -0
- package/dist/types.cjs +18 -0
- package/dist/types.js +10 -1
- package/dist/vendors/_shared/attributes.cjs +51 -0
- package/dist/vendors/_shared/attributes.js +14 -0
- package/dist/vendors/_shared/google-consent.cjs +64 -0
- package/dist/vendors/_shared/google-consent.js +27 -0
- package/dist/vendors/_shared/install-builders.cjs +55 -0
- package/dist/vendors/_shared/install-builders.js +21 -0
- package/dist/vendors/_shared/script-url.cjs +74 -0
- package/dist/vendors/_shared/script-url.js +28 -0
- package/dist/{linkedin-insights.cjs → vendors/ads-and-pixels/linkedin-insights.cjs} +2 -2
- package/dist/{linkedin-insights.js → vendors/ads-and-pixels/linkedin-insights.js} +2 -2
- package/dist/vendors/ads-and-pixels/meta-pixel.cjs +202 -0
- package/dist/vendors/ads-and-pixels/meta-pixel.js +153 -0
- package/dist/{microsoft-uet.cjs → vendors/ads-and-pixels/microsoft-uet.cjs} +31 -14
- package/dist/{microsoft-uet.js → vendors/ads-and-pixels/microsoft-uet.js} +31 -14
- package/dist/vendors/ads-and-pixels/reddit-pixel.cjs +147 -0
- package/dist/vendors/ads-and-pixels/reddit-pixel.js +107 -0
- package/dist/vendors/ads-and-pixels/snapchat-pixel.cjs +127 -0
- package/dist/vendors/ads-and-pixels/snapchat-pixel.js +87 -0
- package/dist/{tiktok-pixel.cjs → vendors/ads-and-pixels/tiktok-pixel.cjs} +2 -2
- package/dist/{tiktok-pixel.js → vendors/ads-and-pixels/tiktok-pixel.js} +2 -2
- package/dist/{x-pixel.cjs → vendors/ads-and-pixels/x-pixel.cjs} +6 -3
- package/dist/{x-pixel.js → vendors/ads-and-pixels/x-pixel.js} +6 -3
- package/dist/vendors/analytics/ahrefs-analytics.cjs +64 -0
- package/dist/vendors/analytics/ahrefs-analytics.js +27 -0
- package/dist/vendors/analytics/cloudflare-web-analytics.cjs +69 -0
- package/dist/vendors/analytics/cloudflare-web-analytics.js +32 -0
- package/dist/{databuddy.cjs → vendors/analytics/databuddy.cjs} +3 -3
- package/dist/{databuddy.js → vendors/analytics/databuddy.js} +3 -3
- package/dist/vendors/analytics/fathom-analytics.cjs +72 -0
- package/dist/vendors/analytics/fathom-analytics.js +35 -0
- package/dist/{google-tag.cjs → vendors/analytics/google-tag.cjs} +7 -28
- package/dist/{google-tag.js → vendors/analytics/google-tag.js} +7 -28
- package/dist/vendors/analytics/hotjar.cjs +81 -0
- package/dist/vendors/analytics/hotjar.js +44 -0
- package/dist/vendors/analytics/matomo-analytics.cjs +228 -0
- package/dist/vendors/analytics/matomo-analytics.js +191 -0
- package/dist/vendors/analytics/microsoft-clarity.cjs +110 -0
- package/dist/vendors/analytics/microsoft-clarity.js +73 -0
- package/dist/vendors/analytics/mixpanel-analytics.cjs +119 -0
- package/dist/vendors/analytics/mixpanel-analytics.js +82 -0
- package/dist/vendors/analytics/plausible-analytics.cjs +118 -0
- package/dist/vendors/analytics/plausible-analytics.js +81 -0
- package/dist/{posthog.cjs → vendors/analytics/posthog.cjs} +69 -6
- package/dist/vendors/analytics/posthog.js +163 -0
- package/dist/vendors/analytics/promptwatch.cjs +66 -0
- package/dist/vendors/analytics/promptwatch.js +29 -0
- package/dist/vendors/analytics/rybbit-analytics.cjs +100 -0
- package/dist/vendors/analytics/rybbit-analytics.js +63 -0
- package/dist/vendors/analytics/segment.cjs +93 -0
- package/dist/vendors/analytics/segment.js +56 -0
- package/dist/vendors/analytics/umami-analytics.cjs +76 -0
- package/dist/vendors/analytics/umami-analytics.js +39 -0
- package/dist/vendors/analytics/vercel-analytics.cjs +90 -0
- package/dist/vendors/analytics/vercel-analytics.js +53 -0
- package/dist/vendors/functional/crisp.cjs +139 -0
- package/dist/vendors/functional/crisp.js +102 -0
- package/dist/vendors/functional/intercom.cjs +85 -0
- package/dist/vendors/functional/intercom.js +45 -0
- package/dist/{google-tag-manager.cjs → vendors/tag-managers/google-tag-manager.cjs} +6 -27
- package/dist/{google-tag-manager.js → vendors/tag-managers/google-tag-manager.js} +6 -27
- package/dist-types/__tests__/helpers.d.ts +141 -0
- package/dist-types/engine/runtime.d.ts +1 -1
- package/dist-types/registry.d.ts +368 -0
- package/dist-types/types.d.ts +13 -0
- package/dist-types/vendors/_shared/attributes.d.ts +35 -0
- package/dist-types/vendors/_shared/google-consent.d.ts +47 -0
- package/dist-types/vendors/_shared/install-builders.d.ts +30 -0
- package/dist-types/vendors/_shared/script-url.d.ts +75 -0
- package/dist-types/{linkedin-insights.d.ts → vendors/ads-and-pixels/linkedin-insights.d.ts} +22 -9
- package/dist-types/vendors/ads-and-pixels/meta-pixel.d.ts +289 -0
- package/dist-types/{microsoft-uet.d.ts → vendors/ads-and-pixels/microsoft-uet.d.ts} +21 -10
- package/dist-types/vendors/ads-and-pixels/reddit-pixel.d.ts +211 -0
- package/dist-types/vendors/ads-and-pixels/snapchat-pixel.d.ts +171 -0
- package/dist-types/{tiktok-pixel.d.ts → vendors/ads-and-pixels/tiktok-pixel.d.ts} +20 -5
- package/dist-types/{x-pixel.d.ts → vendors/ads-and-pixels/x-pixel.d.ts} +21 -4
- package/dist-types/vendors/analytics/ahrefs-analytics.d.ts +62 -0
- package/dist-types/vendors/analytics/cloudflare-web-analytics.d.ts +67 -0
- package/dist-types/vendors/analytics/fathom-analytics.d.ts +90 -0
- package/dist-types/{google-tag.d.ts → vendors/analytics/google-tag.d.ts} +5 -8
- package/dist-types/vendors/analytics/hotjar.d.ts +73 -0
- package/dist-types/vendors/analytics/matomo-analytics.d.ts +41 -0
- package/dist-types/vendors/analytics/microsoft-clarity.d.ts +86 -0
- package/dist-types/vendors/analytics/mixpanel-analytics.d.ts +101 -0
- package/dist-types/vendors/analytics/plausible-analytics.d.ts +122 -0
- package/dist-types/{posthog.d.ts → vendors/analytics/posthog.d.ts} +47 -5
- package/dist-types/vendors/analytics/promptwatch.d.ts +36 -0
- package/dist-types/vendors/analytics/rybbit-analytics.d.ts +82 -0
- package/dist-types/vendors/analytics/segment.d.ts +158 -0
- package/dist-types/vendors/analytics/umami-analytics.d.ts +93 -0
- package/dist-types/vendors/analytics/vercel-analytics.d.ts +66 -0
- package/dist-types/vendors/functional/crisp.d.ts +78 -0
- package/dist-types/vendors/functional/intercom.d.ts +135 -0
- package/dist-types/{google-tag-manager.d.ts → vendors/tag-managers/google-tag-manager.d.ts} +5 -8
- package/package.json +166 -5
- package/dist/meta-pixel.cjs +0 -129
- package/dist/meta-pixel.js +0 -89
- package/dist/posthog.js +0 -100
- package/dist-types/engine.test.d.ts +0 -1
- package/dist-types/helpers.test.d.ts +0 -1
- package/dist-types/meta-pixel.d.ts +0 -185
- /package/dist-types/{databuddy.d.ts → vendors/analytics/databuddy.d.ts} +0 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
BUILT_IN_INTEGRATION_CATEGORIES: ()=>BUILT_IN_INTEGRATION_CATEGORIES,
|
|
28
|
+
builtInScriptIntegrations: ()=>builtInScriptIntegrations,
|
|
29
|
+
getBuiltInScriptIntegration: ()=>getBuiltInScriptIntegration,
|
|
30
|
+
getBuiltInScriptIntegrationBySubpath: ()=>getBuiltInScriptIntegrationBySubpath,
|
|
31
|
+
getBuiltInScriptIntegrationByVendor: ()=>getBuiltInScriptIntegrationByVendor
|
|
32
|
+
});
|
|
33
|
+
const BUILT_IN_INTEGRATION_CATEGORIES = [
|
|
34
|
+
{
|
|
35
|
+
key: 'analytics',
|
|
36
|
+
label: 'Analytics'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: 'ads-and-pixels',
|
|
40
|
+
label: 'Ads & Pixels'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: 'functional',
|
|
44
|
+
label: 'Functional'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: 'tag-manager',
|
|
48
|
+
label: 'Tag Managers'
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
const builtInScriptIntegrations = [
|
|
52
|
+
{
|
|
53
|
+
key: 'googleTagManager',
|
|
54
|
+
vendor: 'google-tag-manager',
|
|
55
|
+
label: 'Google Tag Manager',
|
|
56
|
+
hint: "GTM container script",
|
|
57
|
+
docsSlug: 'google-tag-manager',
|
|
58
|
+
packageSubpath: 'google-tag-manager',
|
|
59
|
+
integrationCategory: 'tag-manager',
|
|
60
|
+
consentCategory: 'necessary'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
key: 'gtag',
|
|
64
|
+
vendor: 'gtag',
|
|
65
|
+
label: 'Google Tag (gtag.js)',
|
|
66
|
+
hint: 'Google Analytics 4',
|
|
67
|
+
docsSlug: 'google-tag',
|
|
68
|
+
packageSubpath: 'google-tag',
|
|
69
|
+
integrationCategory: 'analytics',
|
|
70
|
+
consentCategory: 'measurement'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'ahrefsAnalytics',
|
|
74
|
+
vendor: 'ahrefs-analytics',
|
|
75
|
+
label: 'Ahrefs Analytics',
|
|
76
|
+
hint: 'Cookieless web analytics from Ahrefs',
|
|
77
|
+
docsSlug: 'ahrefs-analytics',
|
|
78
|
+
packageSubpath: 'ahrefs-analytics',
|
|
79
|
+
integrationCategory: 'analytics',
|
|
80
|
+
consentCategory: 'measurement'
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: 'cloudflareWebAnalytics',
|
|
84
|
+
vendor: 'cloudflare-web-analytics',
|
|
85
|
+
label: 'Cloudflare Web Analytics',
|
|
86
|
+
hint: 'Cookieless analytics from Cloudflare',
|
|
87
|
+
docsSlug: 'cloudflare-web-analytics',
|
|
88
|
+
packageSubpath: 'cloudflare-web-analytics',
|
|
89
|
+
integrationCategory: 'analytics',
|
|
90
|
+
consentCategory: 'measurement'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: 'microsoft-clarity',
|
|
94
|
+
vendor: 'microsoft-clarity',
|
|
95
|
+
label: 'Microsoft Clarity',
|
|
96
|
+
hint: 'Session replay and heatmaps',
|
|
97
|
+
docsSlug: 'microsoft-clarity',
|
|
98
|
+
packageSubpath: 'microsoft-clarity',
|
|
99
|
+
integrationCategory: 'analytics',
|
|
100
|
+
consentCategory: 'measurement'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
key: 'databuddy',
|
|
104
|
+
vendor: 'databuddy',
|
|
105
|
+
label: 'Databuddy',
|
|
106
|
+
hint: 'Data collection',
|
|
107
|
+
docsSlug: 'databuddy',
|
|
108
|
+
packageSubpath: 'databuddy',
|
|
109
|
+
integrationCategory: 'analytics',
|
|
110
|
+
consentCategory: 'measurement'
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: 'fathomAnalytics',
|
|
114
|
+
vendor: 'fathom-analytics',
|
|
115
|
+
label: 'Fathom Analytics',
|
|
116
|
+
hint: 'Privacy-friendly cookieless analytics',
|
|
117
|
+
docsSlug: 'fathom-analytics',
|
|
118
|
+
packageSubpath: 'fathom-analytics',
|
|
119
|
+
integrationCategory: 'analytics',
|
|
120
|
+
consentCategory: 'measurement'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
key: 'mixpanelAnalytics',
|
|
124
|
+
vendor: 'mixpanel-analytics',
|
|
125
|
+
label: 'Mixpanel Analytics',
|
|
126
|
+
hint: 'Product analytics and funnels',
|
|
127
|
+
docsSlug: 'mixpanel-analytics',
|
|
128
|
+
packageSubpath: 'mixpanel-analytics',
|
|
129
|
+
integrationCategory: 'analytics',
|
|
130
|
+
consentCategory: 'measurement'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
key: 'hotjar',
|
|
134
|
+
vendor: 'hotjar',
|
|
135
|
+
label: 'Hotjar',
|
|
136
|
+
hint: 'Heatmaps and session recordings',
|
|
137
|
+
docsSlug: 'hotjar',
|
|
138
|
+
packageSubpath: 'hotjar',
|
|
139
|
+
integrationCategory: 'analytics',
|
|
140
|
+
consentCategory: 'measurement'
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: 'matomoAnalytics',
|
|
144
|
+
vendor: 'matomo-analytics',
|
|
145
|
+
label: 'Matomo Analytics',
|
|
146
|
+
hint: 'Self-hosted privacy analytics',
|
|
147
|
+
docsSlug: 'matomo-analytics',
|
|
148
|
+
packageSubpath: 'matomo-analytics',
|
|
149
|
+
integrationCategory: 'analytics',
|
|
150
|
+
consentCategory: 'measurement'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
key: 'posthog',
|
|
154
|
+
vendor: 'posthog',
|
|
155
|
+
label: 'PostHog',
|
|
156
|
+
hint: 'Product analytics',
|
|
157
|
+
docsSlug: 'posthog',
|
|
158
|
+
packageSubpath: 'posthog',
|
|
159
|
+
integrationCategory: 'analytics',
|
|
160
|
+
consentCategory: 'measurement'
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
key: 'promptwatch',
|
|
164
|
+
vendor: 'promptwatch',
|
|
165
|
+
label: 'Promptwatch',
|
|
166
|
+
hint: 'AI traffic analytics',
|
|
167
|
+
docsSlug: 'promptwatch',
|
|
168
|
+
packageSubpath: 'promptwatch',
|
|
169
|
+
integrationCategory: 'analytics',
|
|
170
|
+
consentCategory: 'measurement'
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
key: 'segment',
|
|
174
|
+
vendor: 'segment',
|
|
175
|
+
label: 'Segment',
|
|
176
|
+
hint: 'Customer data platform',
|
|
177
|
+
docsSlug: 'segment',
|
|
178
|
+
packageSubpath: 'segment',
|
|
179
|
+
integrationCategory: 'analytics',
|
|
180
|
+
consentCategory: 'measurement'
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
key: 'rybbitAnalytics',
|
|
184
|
+
vendor: 'rybbit-analytics',
|
|
185
|
+
label: 'Rybbit Analytics',
|
|
186
|
+
hint: 'Privacy-friendly web analytics',
|
|
187
|
+
docsSlug: 'rybbit-analytics',
|
|
188
|
+
packageSubpath: 'rybbit-analytics',
|
|
189
|
+
integrationCategory: 'analytics',
|
|
190
|
+
consentCategory: 'measurement'
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
key: 'plausibleAnalytics',
|
|
194
|
+
vendor: 'plausible-analytics',
|
|
195
|
+
label: 'Plausible Analytics',
|
|
196
|
+
hint: 'Privacy-friendly cookieless analytics',
|
|
197
|
+
docsSlug: 'plausible-analytics',
|
|
198
|
+
packageSubpath: 'plausible-analytics',
|
|
199
|
+
integrationCategory: 'analytics',
|
|
200
|
+
consentCategory: 'measurement'
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
key: 'umamiAnalytics',
|
|
204
|
+
vendor: 'umami-analytics',
|
|
205
|
+
label: 'Umami Analytics',
|
|
206
|
+
hint: 'Open-source cookieless analytics',
|
|
207
|
+
docsSlug: 'umami-analytics',
|
|
208
|
+
packageSubpath: 'umami-analytics',
|
|
209
|
+
integrationCategory: 'analytics',
|
|
210
|
+
consentCategory: 'measurement'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
key: 'vercelAnalytics',
|
|
214
|
+
vendor: 'vercel-analytics',
|
|
215
|
+
label: 'Vercel Analytics',
|
|
216
|
+
hint: 'Vercel web analytics',
|
|
217
|
+
docsSlug: 'vercel-analytics',
|
|
218
|
+
packageSubpath: 'vercel-analytics',
|
|
219
|
+
integrationCategory: 'analytics',
|
|
220
|
+
consentCategory: 'measurement'
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
key: 'crisp',
|
|
224
|
+
vendor: 'crisp',
|
|
225
|
+
label: 'Crisp',
|
|
226
|
+
hint: 'Live chat widget',
|
|
227
|
+
docsSlug: 'crisp',
|
|
228
|
+
packageSubpath: 'crisp',
|
|
229
|
+
integrationCategory: 'functional',
|
|
230
|
+
consentCategory: 'functionality'
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
key: 'intercom',
|
|
234
|
+
vendor: 'intercom',
|
|
235
|
+
label: 'Intercom',
|
|
236
|
+
hint: 'Messenger and live chat widget',
|
|
237
|
+
docsSlug: 'intercom',
|
|
238
|
+
packageSubpath: 'intercom',
|
|
239
|
+
integrationCategory: 'functional',
|
|
240
|
+
consentCategory: 'functionality'
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
key: 'metaPixel',
|
|
244
|
+
vendor: 'meta-pixel',
|
|
245
|
+
label: 'Meta Pixel',
|
|
246
|
+
hint: 'Facebook/Instagram tracking',
|
|
247
|
+
docsSlug: 'meta-pixel',
|
|
248
|
+
packageSubpath: 'meta-pixel',
|
|
249
|
+
integrationCategory: 'ads-and-pixels',
|
|
250
|
+
consentCategory: 'marketing'
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
key: 'redditPixel',
|
|
254
|
+
vendor: 'reddit-pixel',
|
|
255
|
+
label: 'Reddit Pixel',
|
|
256
|
+
hint: 'Reddit ads tracking',
|
|
257
|
+
docsSlug: 'reddit-pixel',
|
|
258
|
+
packageSubpath: 'reddit-pixel',
|
|
259
|
+
integrationCategory: 'ads-and-pixels',
|
|
260
|
+
consentCategory: 'marketing'
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
key: 'tiktokPixel',
|
|
264
|
+
vendor: 'tiktok-pixel',
|
|
265
|
+
label: 'TikTok Pixel',
|
|
266
|
+
hint: 'TikTok ads tracking',
|
|
267
|
+
docsSlug: 'tiktok-pixel',
|
|
268
|
+
packageSubpath: 'tiktok-pixel',
|
|
269
|
+
integrationCategory: 'ads-and-pixels',
|
|
270
|
+
consentCategory: 'marketing'
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
key: 'linkedinInsights',
|
|
274
|
+
vendor: 'linkedin-insights',
|
|
275
|
+
label: 'LinkedIn Insight Tag',
|
|
276
|
+
hint: 'LinkedIn conversion tracking',
|
|
277
|
+
docsSlug: 'linkedin-insights',
|
|
278
|
+
packageSubpath: 'linkedin-insights',
|
|
279
|
+
integrationCategory: 'ads-and-pixels',
|
|
280
|
+
consentCategory: 'marketing'
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
key: 'microsoftUet',
|
|
284
|
+
vendor: 'microsoft-uet',
|
|
285
|
+
label: 'Microsoft UET',
|
|
286
|
+
hint: 'Bing Ads tracking',
|
|
287
|
+
docsSlug: 'microsoft-uet',
|
|
288
|
+
packageSubpath: 'microsoft-uet',
|
|
289
|
+
integrationCategory: 'ads-and-pixels',
|
|
290
|
+
consentCategory: 'marketing'
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
key: 'snapchatPixel',
|
|
294
|
+
vendor: 'snapchat-pixel',
|
|
295
|
+
label: 'Snapchat Pixel',
|
|
296
|
+
hint: 'Snapchat ads tracking',
|
|
297
|
+
docsSlug: 'snapchat-pixel',
|
|
298
|
+
packageSubpath: 'snapchat-pixel',
|
|
299
|
+
integrationCategory: 'ads-and-pixels',
|
|
300
|
+
consentCategory: 'marketing'
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
key: 'xPixel',
|
|
304
|
+
vendor: 'x-pixel',
|
|
305
|
+
label: 'X (Twitter) Pixel',
|
|
306
|
+
hint: 'X/Twitter conversion tracking',
|
|
307
|
+
docsSlug: 'x-pixel',
|
|
308
|
+
packageSubpath: 'x-pixel',
|
|
309
|
+
integrationCategory: 'ads-and-pixels',
|
|
310
|
+
consentCategory: 'marketing'
|
|
311
|
+
}
|
|
312
|
+
];
|
|
313
|
+
function getBuiltInScriptIntegration(key) {
|
|
314
|
+
const integration = builtInScriptIntegrations.find((item)=>item.key === key);
|
|
315
|
+
if (integration) return integration;
|
|
316
|
+
throw new Error(`Unknown built-in script integration: ${key}`);
|
|
317
|
+
}
|
|
318
|
+
function getBuiltInScriptIntegrationBySubpath(subpath) {
|
|
319
|
+
return builtInScriptIntegrations.find((integration)=>integration.packageSubpath === subpath);
|
|
320
|
+
}
|
|
321
|
+
function getBuiltInScriptIntegrationByVendor(vendor) {
|
|
322
|
+
return builtInScriptIntegrations.find((integration)=>integration.vendor === vendor);
|
|
323
|
+
}
|
|
324
|
+
exports.BUILT_IN_INTEGRATION_CATEGORIES = __webpack_exports__.BUILT_IN_INTEGRATION_CATEGORIES;
|
|
325
|
+
exports.builtInScriptIntegrations = __webpack_exports__.builtInScriptIntegrations;
|
|
326
|
+
exports.getBuiltInScriptIntegration = __webpack_exports__.getBuiltInScriptIntegration;
|
|
327
|
+
exports.getBuiltInScriptIntegrationBySubpath = __webpack_exports__.getBuiltInScriptIntegrationBySubpath;
|
|
328
|
+
exports.getBuiltInScriptIntegrationByVendor = __webpack_exports__.getBuiltInScriptIntegrationByVendor;
|
|
329
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
330
|
+
"BUILT_IN_INTEGRATION_CATEGORIES",
|
|
331
|
+
"builtInScriptIntegrations",
|
|
332
|
+
"getBuiltInScriptIntegration",
|
|
333
|
+
"getBuiltInScriptIntegrationBySubpath",
|
|
334
|
+
"getBuiltInScriptIntegrationByVendor"
|
|
335
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
336
|
+
Object.defineProperty(exports, '__esModule', {
|
|
337
|
+
value: true
|
|
338
|
+
});
|
package/dist/registry.js
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
const BUILT_IN_INTEGRATION_CATEGORIES = [
|
|
2
|
+
{
|
|
3
|
+
key: 'analytics',
|
|
4
|
+
label: 'Analytics'
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
key: 'ads-and-pixels',
|
|
8
|
+
label: 'Ads & Pixels'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
key: 'functional',
|
|
12
|
+
label: 'Functional'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: 'tag-manager',
|
|
16
|
+
label: 'Tag Managers'
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
const builtInScriptIntegrations = [
|
|
20
|
+
{
|
|
21
|
+
key: 'googleTagManager',
|
|
22
|
+
vendor: 'google-tag-manager',
|
|
23
|
+
label: 'Google Tag Manager',
|
|
24
|
+
hint: "GTM container script",
|
|
25
|
+
docsSlug: 'google-tag-manager',
|
|
26
|
+
packageSubpath: 'google-tag-manager',
|
|
27
|
+
integrationCategory: 'tag-manager',
|
|
28
|
+
consentCategory: 'necessary'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'gtag',
|
|
32
|
+
vendor: 'gtag',
|
|
33
|
+
label: 'Google Tag (gtag.js)',
|
|
34
|
+
hint: 'Google Analytics 4',
|
|
35
|
+
docsSlug: 'google-tag',
|
|
36
|
+
packageSubpath: 'google-tag',
|
|
37
|
+
integrationCategory: 'analytics',
|
|
38
|
+
consentCategory: 'measurement'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: 'ahrefsAnalytics',
|
|
42
|
+
vendor: 'ahrefs-analytics',
|
|
43
|
+
label: 'Ahrefs Analytics',
|
|
44
|
+
hint: 'Cookieless web analytics from Ahrefs',
|
|
45
|
+
docsSlug: 'ahrefs-analytics',
|
|
46
|
+
packageSubpath: 'ahrefs-analytics',
|
|
47
|
+
integrationCategory: 'analytics',
|
|
48
|
+
consentCategory: 'measurement'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
key: 'cloudflareWebAnalytics',
|
|
52
|
+
vendor: 'cloudflare-web-analytics',
|
|
53
|
+
label: 'Cloudflare Web Analytics',
|
|
54
|
+
hint: 'Cookieless analytics from Cloudflare',
|
|
55
|
+
docsSlug: 'cloudflare-web-analytics',
|
|
56
|
+
packageSubpath: 'cloudflare-web-analytics',
|
|
57
|
+
integrationCategory: 'analytics',
|
|
58
|
+
consentCategory: 'measurement'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: 'microsoft-clarity',
|
|
62
|
+
vendor: 'microsoft-clarity',
|
|
63
|
+
label: 'Microsoft Clarity',
|
|
64
|
+
hint: 'Session replay and heatmaps',
|
|
65
|
+
docsSlug: 'microsoft-clarity',
|
|
66
|
+
packageSubpath: 'microsoft-clarity',
|
|
67
|
+
integrationCategory: 'analytics',
|
|
68
|
+
consentCategory: 'measurement'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: 'databuddy',
|
|
72
|
+
vendor: 'databuddy',
|
|
73
|
+
label: 'Databuddy',
|
|
74
|
+
hint: 'Data collection',
|
|
75
|
+
docsSlug: 'databuddy',
|
|
76
|
+
packageSubpath: 'databuddy',
|
|
77
|
+
integrationCategory: 'analytics',
|
|
78
|
+
consentCategory: 'measurement'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
key: 'fathomAnalytics',
|
|
82
|
+
vendor: 'fathom-analytics',
|
|
83
|
+
label: 'Fathom Analytics',
|
|
84
|
+
hint: 'Privacy-friendly cookieless analytics',
|
|
85
|
+
docsSlug: 'fathom-analytics',
|
|
86
|
+
packageSubpath: 'fathom-analytics',
|
|
87
|
+
integrationCategory: 'analytics',
|
|
88
|
+
consentCategory: 'measurement'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: 'mixpanelAnalytics',
|
|
92
|
+
vendor: 'mixpanel-analytics',
|
|
93
|
+
label: 'Mixpanel Analytics',
|
|
94
|
+
hint: 'Product analytics and funnels',
|
|
95
|
+
docsSlug: 'mixpanel-analytics',
|
|
96
|
+
packageSubpath: 'mixpanel-analytics',
|
|
97
|
+
integrationCategory: 'analytics',
|
|
98
|
+
consentCategory: 'measurement'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key: 'hotjar',
|
|
102
|
+
vendor: 'hotjar',
|
|
103
|
+
label: 'Hotjar',
|
|
104
|
+
hint: 'Heatmaps and session recordings',
|
|
105
|
+
docsSlug: 'hotjar',
|
|
106
|
+
packageSubpath: 'hotjar',
|
|
107
|
+
integrationCategory: 'analytics',
|
|
108
|
+
consentCategory: 'measurement'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: 'matomoAnalytics',
|
|
112
|
+
vendor: 'matomo-analytics',
|
|
113
|
+
label: 'Matomo Analytics',
|
|
114
|
+
hint: 'Self-hosted privacy analytics',
|
|
115
|
+
docsSlug: 'matomo-analytics',
|
|
116
|
+
packageSubpath: 'matomo-analytics',
|
|
117
|
+
integrationCategory: 'analytics',
|
|
118
|
+
consentCategory: 'measurement'
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
key: 'posthog',
|
|
122
|
+
vendor: 'posthog',
|
|
123
|
+
label: 'PostHog',
|
|
124
|
+
hint: 'Product analytics',
|
|
125
|
+
docsSlug: 'posthog',
|
|
126
|
+
packageSubpath: 'posthog',
|
|
127
|
+
integrationCategory: 'analytics',
|
|
128
|
+
consentCategory: 'measurement'
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
key: 'promptwatch',
|
|
132
|
+
vendor: 'promptwatch',
|
|
133
|
+
label: 'Promptwatch',
|
|
134
|
+
hint: 'AI traffic analytics',
|
|
135
|
+
docsSlug: 'promptwatch',
|
|
136
|
+
packageSubpath: 'promptwatch',
|
|
137
|
+
integrationCategory: 'analytics',
|
|
138
|
+
consentCategory: 'measurement'
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
key: 'segment',
|
|
142
|
+
vendor: 'segment',
|
|
143
|
+
label: 'Segment',
|
|
144
|
+
hint: 'Customer data platform',
|
|
145
|
+
docsSlug: 'segment',
|
|
146
|
+
packageSubpath: 'segment',
|
|
147
|
+
integrationCategory: 'analytics',
|
|
148
|
+
consentCategory: 'measurement'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
key: 'rybbitAnalytics',
|
|
152
|
+
vendor: 'rybbit-analytics',
|
|
153
|
+
label: 'Rybbit Analytics',
|
|
154
|
+
hint: 'Privacy-friendly web analytics',
|
|
155
|
+
docsSlug: 'rybbit-analytics',
|
|
156
|
+
packageSubpath: 'rybbit-analytics',
|
|
157
|
+
integrationCategory: 'analytics',
|
|
158
|
+
consentCategory: 'measurement'
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
key: 'plausibleAnalytics',
|
|
162
|
+
vendor: 'plausible-analytics',
|
|
163
|
+
label: 'Plausible Analytics',
|
|
164
|
+
hint: 'Privacy-friendly cookieless analytics',
|
|
165
|
+
docsSlug: 'plausible-analytics',
|
|
166
|
+
packageSubpath: 'plausible-analytics',
|
|
167
|
+
integrationCategory: 'analytics',
|
|
168
|
+
consentCategory: 'measurement'
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
key: 'umamiAnalytics',
|
|
172
|
+
vendor: 'umami-analytics',
|
|
173
|
+
label: 'Umami Analytics',
|
|
174
|
+
hint: 'Open-source cookieless analytics',
|
|
175
|
+
docsSlug: 'umami-analytics',
|
|
176
|
+
packageSubpath: 'umami-analytics',
|
|
177
|
+
integrationCategory: 'analytics',
|
|
178
|
+
consentCategory: 'measurement'
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
key: 'vercelAnalytics',
|
|
182
|
+
vendor: 'vercel-analytics',
|
|
183
|
+
label: 'Vercel Analytics',
|
|
184
|
+
hint: 'Vercel web analytics',
|
|
185
|
+
docsSlug: 'vercel-analytics',
|
|
186
|
+
packageSubpath: 'vercel-analytics',
|
|
187
|
+
integrationCategory: 'analytics',
|
|
188
|
+
consentCategory: 'measurement'
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
key: 'crisp',
|
|
192
|
+
vendor: 'crisp',
|
|
193
|
+
label: 'Crisp',
|
|
194
|
+
hint: 'Live chat widget',
|
|
195
|
+
docsSlug: 'crisp',
|
|
196
|
+
packageSubpath: 'crisp',
|
|
197
|
+
integrationCategory: 'functional',
|
|
198
|
+
consentCategory: 'functionality'
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
key: 'intercom',
|
|
202
|
+
vendor: 'intercom',
|
|
203
|
+
label: 'Intercom',
|
|
204
|
+
hint: 'Messenger and live chat widget',
|
|
205
|
+
docsSlug: 'intercom',
|
|
206
|
+
packageSubpath: 'intercom',
|
|
207
|
+
integrationCategory: 'functional',
|
|
208
|
+
consentCategory: 'functionality'
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
key: 'metaPixel',
|
|
212
|
+
vendor: 'meta-pixel',
|
|
213
|
+
label: 'Meta Pixel',
|
|
214
|
+
hint: 'Facebook/Instagram tracking',
|
|
215
|
+
docsSlug: 'meta-pixel',
|
|
216
|
+
packageSubpath: 'meta-pixel',
|
|
217
|
+
integrationCategory: 'ads-and-pixels',
|
|
218
|
+
consentCategory: 'marketing'
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
key: 'redditPixel',
|
|
222
|
+
vendor: 'reddit-pixel',
|
|
223
|
+
label: 'Reddit Pixel',
|
|
224
|
+
hint: 'Reddit ads tracking',
|
|
225
|
+
docsSlug: 'reddit-pixel',
|
|
226
|
+
packageSubpath: 'reddit-pixel',
|
|
227
|
+
integrationCategory: 'ads-and-pixels',
|
|
228
|
+
consentCategory: 'marketing'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
key: 'tiktokPixel',
|
|
232
|
+
vendor: 'tiktok-pixel',
|
|
233
|
+
label: 'TikTok Pixel',
|
|
234
|
+
hint: 'TikTok ads tracking',
|
|
235
|
+
docsSlug: 'tiktok-pixel',
|
|
236
|
+
packageSubpath: 'tiktok-pixel',
|
|
237
|
+
integrationCategory: 'ads-and-pixels',
|
|
238
|
+
consentCategory: 'marketing'
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
key: 'linkedinInsights',
|
|
242
|
+
vendor: 'linkedin-insights',
|
|
243
|
+
label: 'LinkedIn Insight Tag',
|
|
244
|
+
hint: 'LinkedIn conversion tracking',
|
|
245
|
+
docsSlug: 'linkedin-insights',
|
|
246
|
+
packageSubpath: 'linkedin-insights',
|
|
247
|
+
integrationCategory: 'ads-and-pixels',
|
|
248
|
+
consentCategory: 'marketing'
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
key: 'microsoftUet',
|
|
252
|
+
vendor: 'microsoft-uet',
|
|
253
|
+
label: 'Microsoft UET',
|
|
254
|
+
hint: 'Bing Ads tracking',
|
|
255
|
+
docsSlug: 'microsoft-uet',
|
|
256
|
+
packageSubpath: 'microsoft-uet',
|
|
257
|
+
integrationCategory: 'ads-and-pixels',
|
|
258
|
+
consentCategory: 'marketing'
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
key: 'snapchatPixel',
|
|
262
|
+
vendor: 'snapchat-pixel',
|
|
263
|
+
label: 'Snapchat Pixel',
|
|
264
|
+
hint: 'Snapchat ads tracking',
|
|
265
|
+
docsSlug: 'snapchat-pixel',
|
|
266
|
+
packageSubpath: 'snapchat-pixel',
|
|
267
|
+
integrationCategory: 'ads-and-pixels',
|
|
268
|
+
consentCategory: 'marketing'
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
key: 'xPixel',
|
|
272
|
+
vendor: 'x-pixel',
|
|
273
|
+
label: 'X (Twitter) Pixel',
|
|
274
|
+
hint: 'X/Twitter conversion tracking',
|
|
275
|
+
docsSlug: 'x-pixel',
|
|
276
|
+
packageSubpath: 'x-pixel',
|
|
277
|
+
integrationCategory: 'ads-and-pixels',
|
|
278
|
+
consentCategory: 'marketing'
|
|
279
|
+
}
|
|
280
|
+
];
|
|
281
|
+
function getBuiltInScriptIntegration(key) {
|
|
282
|
+
const integration = builtInScriptIntegrations.find((item)=>item.key === key);
|
|
283
|
+
if (integration) return integration;
|
|
284
|
+
throw new Error(`Unknown built-in script integration: ${key}`);
|
|
285
|
+
}
|
|
286
|
+
function getBuiltInScriptIntegrationBySubpath(subpath) {
|
|
287
|
+
return builtInScriptIntegrations.find((integration)=>integration.packageSubpath === subpath);
|
|
288
|
+
}
|
|
289
|
+
function getBuiltInScriptIntegrationByVendor(vendor) {
|
|
290
|
+
return builtInScriptIntegrations.find((integration)=>integration.vendor === vendor);
|
|
291
|
+
}
|
|
292
|
+
export { BUILT_IN_INTEGRATION_CATEGORIES, builtInScriptIntegrations, getBuiltInScriptIntegration, getBuiltInScriptIntegrationBySubpath, getBuiltInScriptIntegrationByVendor };
|
package/dist/types.cjs
CHANGED
|
@@ -24,8 +24,11 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
RUNTIME_VALUE_KIND: ()=>RUNTIME_VALUE_KIND,
|
|
27
28
|
VENDOR_MANIFEST_KIND: ()=>VENDOR_MANIFEST_KIND,
|
|
28
29
|
VENDOR_MANIFEST_SCHEMA_VERSION: ()=>VENDOR_MANIFEST_SCHEMA_VERSION,
|
|
30
|
+
runtimeDateValue: ()=>runtimeDateValue,
|
|
31
|
+
runtimeTimestampValue: ()=>runtimeTimestampValue,
|
|
29
32
|
vendorManifestContract: ()=>vendorManifestContract
|
|
30
33
|
});
|
|
31
34
|
const VENDOR_MANIFEST_KIND = 'c15t.vendor-manifest';
|
|
@@ -34,12 +37,27 @@ const vendorManifestContract = {
|
|
|
34
37
|
kind: VENDOR_MANIFEST_KIND,
|
|
35
38
|
schemaVersion: VENDOR_MANIFEST_SCHEMA_VERSION
|
|
36
39
|
};
|
|
40
|
+
const RUNTIME_VALUE_KIND = 'c15t.runtime-value';
|
|
41
|
+
const runtimeDateValue = {
|
|
42
|
+
kind: RUNTIME_VALUE_KIND,
|
|
43
|
+
value: 'date'
|
|
44
|
+
};
|
|
45
|
+
const runtimeTimestampValue = {
|
|
46
|
+
kind: RUNTIME_VALUE_KIND,
|
|
47
|
+
value: 'timestamp'
|
|
48
|
+
};
|
|
49
|
+
exports.RUNTIME_VALUE_KIND = __webpack_exports__.RUNTIME_VALUE_KIND;
|
|
37
50
|
exports.VENDOR_MANIFEST_KIND = __webpack_exports__.VENDOR_MANIFEST_KIND;
|
|
38
51
|
exports.VENDOR_MANIFEST_SCHEMA_VERSION = __webpack_exports__.VENDOR_MANIFEST_SCHEMA_VERSION;
|
|
52
|
+
exports.runtimeDateValue = __webpack_exports__.runtimeDateValue;
|
|
53
|
+
exports.runtimeTimestampValue = __webpack_exports__.runtimeTimestampValue;
|
|
39
54
|
exports.vendorManifestContract = __webpack_exports__.vendorManifestContract;
|
|
40
55
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
56
|
+
"RUNTIME_VALUE_KIND",
|
|
41
57
|
"VENDOR_MANIFEST_KIND",
|
|
42
58
|
"VENDOR_MANIFEST_SCHEMA_VERSION",
|
|
59
|
+
"runtimeDateValue",
|
|
60
|
+
"runtimeTimestampValue",
|
|
43
61
|
"vendorManifestContract"
|
|
44
62
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
45
63
|
Object.defineProperty(exports, '__esModule', {
|
package/dist/types.js
CHANGED
|
@@ -4,4 +4,13 @@ const vendorManifestContract = {
|
|
|
4
4
|
kind: VENDOR_MANIFEST_KIND,
|
|
5
5
|
schemaVersion: VENDOR_MANIFEST_SCHEMA_VERSION
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
const RUNTIME_VALUE_KIND = 'c15t.runtime-value';
|
|
8
|
+
const runtimeDateValue = {
|
|
9
|
+
kind: RUNTIME_VALUE_KIND,
|
|
10
|
+
value: 'date'
|
|
11
|
+
};
|
|
12
|
+
const runtimeTimestampValue = {
|
|
13
|
+
kind: RUNTIME_VALUE_KIND,
|
|
14
|
+
value: 'timestamp'
|
|
15
|
+
};
|
|
16
|
+
export { RUNTIME_VALUE_KIND, VENDOR_MANIFEST_KIND, VENDOR_MANIFEST_SCHEMA_VERSION, runtimeDateValue, runtimeTimestampValue, vendorManifestContract };
|