@c15t/scripts 3.0.0-alpha.1 → 3.0.0-alpha.2
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/AGENTS.md +4 -0
- package/README.md +3 -3
- package/dist/e2e-test-utils.js +5 -3
- package/dist/events.js +218 -0
- package/dist/registry.js +30 -0
- package/dist/vendors/ads-and-pixels/pinterest-tag.js +123 -0
- package/dist/vendors/analytics/google-tag.js +14 -2
- package/dist/vendors/analytics/one-dollar-stats.js +30 -0
- package/dist/vendors/analytics/segment.js +10 -1
- package/dist/vendors/functional/front-chat.js +64 -0
- package/dist/vendors/tag-managers/google-tag-manager.js +17 -3
- package/dist-types/events.d.ts +46 -0
- package/dist-types/registry.d.ts +27 -0
- package/dist-types/vendors/ads-and-pixels/pinterest-tag.d.ts +295 -0
- package/dist-types/vendors/analytics/google-tag.d.ts +3 -1
- package/dist-types/vendors/analytics/one-dollar-stats.d.ts +39 -0
- package/dist-types/vendors/analytics/segment.d.ts +7 -1
- package/dist-types/vendors/functional/front-chat.d.ts +62 -0
- package/dist-types/vendors/tag-managers/google-tag-manager.d.ts +3 -1
- package/docs/README.md +4 -0
- package/docs/customization/overview.md +4 -3
- package/docs/customization/recipes.md +4 -2
- package/docs/customization/tokens.md +66 -3
- package/docs/frameworks/javascript/script-loader.md +6 -0
- package/docs/frameworks/next/script-loader.md +18 -12
- package/docs/frameworks/react/script-loader.md +6 -0
- package/docs/guides/consent-state.md +327 -0
- package/docs/guides/shared-consent-controls.md +158 -0
- package/docs/integrations/adobe-analytics.md +1 -1
- package/docs/integrations/ahrefs-analytics.md +1 -1
- package/docs/integrations/amplitude.md +1 -1
- package/docs/integrations/clearbit.md +1 -1
- package/docs/integrations/cloudflare-web-analytics.md +1 -1
- package/docs/integrations/cloudflare-zaraz.md +1 -1
- package/docs/integrations/crisp.md +1 -1
- package/docs/integrations/databuddy.md +1 -1
- package/docs/integrations/fathom-analytics.md +1 -1
- package/docs/integrations/front-chat.md +322 -0
- package/docs/integrations/google-maps.md +1 -1
- package/docs/integrations/google-tag-manager.md +1 -1
- package/docs/integrations/google-tag.md +1 -1
- package/docs/integrations/granular-consent.md +3 -1
- package/docs/integrations/heap.md +1 -1
- package/docs/integrations/hightouch.md +1 -1
- package/docs/integrations/hotjar.md +1 -1
- package/docs/integrations/intercom.md +1 -1
- package/docs/integrations/linkedin-insights.md +1 -1
- package/docs/integrations/logrocket.md +1 -1
- package/docs/integrations/matomo-analytics.md +1 -1
- package/docs/integrations/meta-pixel.md +1 -1
- package/docs/integrations/microsoft-clarity.md +1 -1
- package/docs/integrations/microsoft-uet.md +1 -1
- package/docs/integrations/mixpanel-analytics.md +1 -1
- package/docs/integrations/one-dollar-stats.md +305 -0
- package/docs/integrations/openai-pixel.md +1 -1
- package/docs/integrations/overview.md +17 -14
- package/docs/integrations/pinterest-tag.md +321 -0
- package/docs/integrations/pirsch.md +1 -1
- package/docs/integrations/plausible-analytics.md +1 -1
- package/docs/integrations/posthog.md +1 -1
- package/docs/integrations/promptwatch.md +1 -1
- package/docs/integrations/reddit-pixel.md +1 -1
- package/docs/integrations/rudderstack.md +1 -1
- package/docs/integrations/rybbit-analytics.md +1 -1
- package/docs/integrations/segment.md +1 -1
- package/docs/integrations/snapchat-pixel.md +1 -1
- package/docs/integrations/tiktok-pixel.md +1 -1
- package/docs/integrations/umami-analytics.md +1 -1
- package/docs/integrations/vercel-analytics.md +1 -1
- package/docs/integrations/x-pixel.md +1 -1
- package/docs/integrations/youtube.md +1 -1
- package/docs/upgrade-v3.md +129 -1
- package/package.json +25 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/scripts",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "Consent-aware script integrations for Google Tag Manager, Google Consent Mode v2, GA4, Google Ads, Meta Pixel, and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adobe-analytics",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"logrocket",
|
|
27
27
|
"meta-pixel",
|
|
28
28
|
"microsoft-uet",
|
|
29
|
+
"pinterest-tag",
|
|
29
30
|
"pirsch",
|
|
30
31
|
"posthog",
|
|
31
32
|
"privacy",
|
|
@@ -133,6 +134,11 @@
|
|
|
133
134
|
"import": "./dist/vendors/analytics/mixpanel-analytics.js",
|
|
134
135
|
"default": "./dist/vendors/analytics/mixpanel-analytics.js"
|
|
135
136
|
},
|
|
137
|
+
"./one-dollar-stats": {
|
|
138
|
+
"types": "./dist-types/vendors/analytics/one-dollar-stats.d.ts",
|
|
139
|
+
"import": "./dist/vendors/analytics/one-dollar-stats.js",
|
|
140
|
+
"default": "./dist/vendors/analytics/one-dollar-stats.js"
|
|
141
|
+
},
|
|
136
142
|
"./pirsch": {
|
|
137
143
|
"types": "./dist-types/vendors/analytics/pirsch.d.ts",
|
|
138
144
|
"import": "./dist/vendors/analytics/pirsch.js",
|
|
@@ -178,6 +184,11 @@
|
|
|
178
184
|
"import": "./dist/vendors/functional/crisp.js",
|
|
179
185
|
"default": "./dist/vendors/functional/crisp.js"
|
|
180
186
|
},
|
|
187
|
+
"./front-chat": {
|
|
188
|
+
"types": "./dist-types/vendors/functional/front-chat.d.ts",
|
|
189
|
+
"import": "./dist/vendors/functional/front-chat.js",
|
|
190
|
+
"default": "./dist/vendors/functional/front-chat.js"
|
|
191
|
+
},
|
|
181
192
|
"./intercom": {
|
|
182
193
|
"types": "./dist-types/vendors/functional/intercom.d.ts",
|
|
183
194
|
"import": "./dist/vendors/functional/intercom.js",
|
|
@@ -208,6 +219,11 @@
|
|
|
208
219
|
"import": "./dist/vendors/ads-and-pixels/openai-pixel.js",
|
|
209
220
|
"default": "./dist/vendors/ads-and-pixels/openai-pixel.js"
|
|
210
221
|
},
|
|
222
|
+
"./pinterest-tag": {
|
|
223
|
+
"types": "./dist-types/vendors/ads-and-pixels/pinterest-tag.d.ts",
|
|
224
|
+
"import": "./dist/vendors/ads-and-pixels/pinterest-tag.js",
|
|
225
|
+
"default": "./dist/vendors/ads-and-pixels/pinterest-tag.js"
|
|
226
|
+
},
|
|
211
227
|
"./reddit-pixel": {
|
|
212
228
|
"types": "./dist-types/vendors/ads-and-pixels/reddit-pixel.d.ts",
|
|
213
229
|
"import": "./dist/vendors/ads-and-pixels/reddit-pixel.js",
|
|
@@ -242,6 +258,11 @@
|
|
|
242
258
|
"types": "./dist-types/*.d.ts",
|
|
243
259
|
"import": "./dist/*.js",
|
|
244
260
|
"default": "./dist/*.js"
|
|
261
|
+
},
|
|
262
|
+
"./events": {
|
|
263
|
+
"types": "./dist-types/events.d.ts",
|
|
264
|
+
"import": "./dist/events.js",
|
|
265
|
+
"default": "./dist/events.js"
|
|
245
266
|
}
|
|
246
267
|
},
|
|
247
268
|
"publishConfig": {
|
|
@@ -259,8 +280,10 @@
|
|
|
259
280
|
"test:live-vendors": "bun --tsconfig-override live-vendors/tsconfig.json live-vendors/runner.ts",
|
|
260
281
|
"test:watch": "vitest"
|
|
261
282
|
},
|
|
283
|
+
"dependencies": {
|
|
284
|
+
"@c15t/core": "3.0.0-alpha.3"
|
|
285
|
+
},
|
|
262
286
|
"devDependencies": {
|
|
263
|
-
"@c15t/core": "3.0.0-alpha.2",
|
|
264
287
|
"@c15t/typescript-config": "0.0.1",
|
|
265
288
|
"@c15t/vitest-config": "1.0.0",
|
|
266
289
|
"playwright": "1.58.2",
|