@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
package/package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/scripts",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Pre-built scripts
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "Pre-built scripts for c15t's script loader (GTM, GA4, Meta).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"c15t",
|
|
7
|
+
"script-loader",
|
|
8
|
+
"consent",
|
|
9
|
+
"gdpr",
|
|
10
|
+
"ccpa",
|
|
11
|
+
"lgpd",
|
|
12
|
+
"gtm",
|
|
13
|
+
"google-tag-manager",
|
|
14
|
+
"google-tag",
|
|
15
|
+
"ga4",
|
|
16
|
+
"google-ads",
|
|
17
|
+
"meta-pixel",
|
|
18
|
+
"posthog",
|
|
19
|
+
"tiktok-pixel",
|
|
20
|
+
"linkedin-insights",
|
|
21
|
+
"microsoft-uet",
|
|
22
|
+
"x-pixel",
|
|
23
|
+
"analytics-consent",
|
|
24
|
+
"consent-mode",
|
|
25
|
+
"privacy",
|
|
26
|
+
"cmp"
|
|
27
|
+
],
|
|
5
28
|
"homepage": "https://c15t.com/docs/frameworks/javascript/script-loader",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/c15t/c15t/issues"
|
|
31
|
+
},
|
|
6
32
|
"repository": {
|
|
7
33
|
"type": "git",
|
|
8
34
|
"url": "https://github.com/c15t/c15t.git",
|
|
@@ -12,6 +38,141 @@
|
|
|
12
38
|
"sideEffects": false,
|
|
13
39
|
"type": "module",
|
|
14
40
|
"exports": {
|
|
41
|
+
"./ahrefs-analytics": {
|
|
42
|
+
"types": "./dist-types/vendors/analytics/ahrefs-analytics.d.ts",
|
|
43
|
+
"import": "./dist/vendors/analytics/ahrefs-analytics.js",
|
|
44
|
+
"require": "./dist/vendors/analytics/ahrefs-analytics.cjs"
|
|
45
|
+
},
|
|
46
|
+
"./cloudflare-web-analytics": {
|
|
47
|
+
"types": "./dist-types/vendors/analytics/cloudflare-web-analytics.d.ts",
|
|
48
|
+
"import": "./dist/vendors/analytics/cloudflare-web-analytics.js",
|
|
49
|
+
"require": "./dist/vendors/analytics/cloudflare-web-analytics.cjs"
|
|
50
|
+
},
|
|
51
|
+
"./microsoft-clarity": {
|
|
52
|
+
"types": "./dist-types/vendors/analytics/microsoft-clarity.d.ts",
|
|
53
|
+
"import": "./dist/vendors/analytics/microsoft-clarity.js",
|
|
54
|
+
"require": "./dist/vendors/analytics/microsoft-clarity.cjs"
|
|
55
|
+
},
|
|
56
|
+
"./databuddy": {
|
|
57
|
+
"types": "./dist-types/vendors/analytics/databuddy.d.ts",
|
|
58
|
+
"import": "./dist/vendors/analytics/databuddy.js",
|
|
59
|
+
"require": "./dist/vendors/analytics/databuddy.cjs"
|
|
60
|
+
},
|
|
61
|
+
"./fathom-analytics": {
|
|
62
|
+
"types": "./dist-types/vendors/analytics/fathom-analytics.d.ts",
|
|
63
|
+
"import": "./dist/vendors/analytics/fathom-analytics.js",
|
|
64
|
+
"require": "./dist/vendors/analytics/fathom-analytics.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./hotjar": {
|
|
67
|
+
"types": "./dist-types/vendors/analytics/hotjar.d.ts",
|
|
68
|
+
"import": "./dist/vendors/analytics/hotjar.js",
|
|
69
|
+
"require": "./dist/vendors/analytics/hotjar.cjs"
|
|
70
|
+
},
|
|
71
|
+
"./google-tag": {
|
|
72
|
+
"types": "./dist-types/vendors/analytics/google-tag.d.ts",
|
|
73
|
+
"import": "./dist/vendors/analytics/google-tag.js",
|
|
74
|
+
"require": "./dist/vendors/analytics/google-tag.cjs"
|
|
75
|
+
},
|
|
76
|
+
"./matomo-analytics": {
|
|
77
|
+
"types": "./dist-types/vendors/analytics/matomo-analytics.d.ts",
|
|
78
|
+
"import": "./dist/vendors/analytics/matomo-analytics.js",
|
|
79
|
+
"require": "./dist/vendors/analytics/matomo-analytics.cjs"
|
|
80
|
+
},
|
|
81
|
+
"./mixpanel-analytics": {
|
|
82
|
+
"types": "./dist-types/vendors/analytics/mixpanel-analytics.d.ts",
|
|
83
|
+
"import": "./dist/vendors/analytics/mixpanel-analytics.js",
|
|
84
|
+
"require": "./dist/vendors/analytics/mixpanel-analytics.cjs"
|
|
85
|
+
},
|
|
86
|
+
"./plausible-analytics": {
|
|
87
|
+
"types": "./dist-types/vendors/analytics/plausible-analytics.d.ts",
|
|
88
|
+
"import": "./dist/vendors/analytics/plausible-analytics.js",
|
|
89
|
+
"require": "./dist/vendors/analytics/plausible-analytics.cjs"
|
|
90
|
+
},
|
|
91
|
+
"./posthog": {
|
|
92
|
+
"types": "./dist-types/vendors/analytics/posthog.d.ts",
|
|
93
|
+
"import": "./dist/vendors/analytics/posthog.js",
|
|
94
|
+
"require": "./dist/vendors/analytics/posthog.cjs"
|
|
95
|
+
},
|
|
96
|
+
"./promptwatch": {
|
|
97
|
+
"types": "./dist-types/vendors/analytics/promptwatch.d.ts",
|
|
98
|
+
"import": "./dist/vendors/analytics/promptwatch.js",
|
|
99
|
+
"require": "./dist/vendors/analytics/promptwatch.cjs"
|
|
100
|
+
},
|
|
101
|
+
"./segment": {
|
|
102
|
+
"types": "./dist-types/vendors/analytics/segment.d.ts",
|
|
103
|
+
"import": "./dist/vendors/analytics/segment.js",
|
|
104
|
+
"require": "./dist/vendors/analytics/segment.cjs"
|
|
105
|
+
},
|
|
106
|
+
"./rybbit-analytics": {
|
|
107
|
+
"types": "./dist-types/vendors/analytics/rybbit-analytics.d.ts",
|
|
108
|
+
"import": "./dist/vendors/analytics/rybbit-analytics.js",
|
|
109
|
+
"require": "./dist/vendors/analytics/rybbit-analytics.cjs"
|
|
110
|
+
},
|
|
111
|
+
"./umami-analytics": {
|
|
112
|
+
"types": "./dist-types/vendors/analytics/umami-analytics.d.ts",
|
|
113
|
+
"import": "./dist/vendors/analytics/umami-analytics.js",
|
|
114
|
+
"require": "./dist/vendors/analytics/umami-analytics.cjs"
|
|
115
|
+
},
|
|
116
|
+
"./vercel-analytics": {
|
|
117
|
+
"types": "./dist-types/vendors/analytics/vercel-analytics.d.ts",
|
|
118
|
+
"import": "./dist/vendors/analytics/vercel-analytics.js",
|
|
119
|
+
"require": "./dist/vendors/analytics/vercel-analytics.cjs"
|
|
120
|
+
},
|
|
121
|
+
"./crisp": {
|
|
122
|
+
"types": "./dist-types/vendors/functional/crisp.d.ts",
|
|
123
|
+
"import": "./dist/vendors/functional/crisp.js",
|
|
124
|
+
"require": "./dist/vendors/functional/crisp.cjs"
|
|
125
|
+
},
|
|
126
|
+
"./intercom": {
|
|
127
|
+
"types": "./dist-types/vendors/functional/intercom.d.ts",
|
|
128
|
+
"import": "./dist/vendors/functional/intercom.js",
|
|
129
|
+
"require": "./dist/vendors/functional/intercom.cjs"
|
|
130
|
+
},
|
|
131
|
+
"./google-tag-manager": {
|
|
132
|
+
"types": "./dist-types/vendors/tag-managers/google-tag-manager.d.ts",
|
|
133
|
+
"import": "./dist/vendors/tag-managers/google-tag-manager.js",
|
|
134
|
+
"require": "./dist/vendors/tag-managers/google-tag-manager.cjs"
|
|
135
|
+
},
|
|
136
|
+
"./linkedin-insights": {
|
|
137
|
+
"types": "./dist-types/vendors/ads-and-pixels/linkedin-insights.d.ts",
|
|
138
|
+
"import": "./dist/vendors/ads-and-pixels/linkedin-insights.js",
|
|
139
|
+
"require": "./dist/vendors/ads-and-pixels/linkedin-insights.cjs"
|
|
140
|
+
},
|
|
141
|
+
"./meta-pixel": {
|
|
142
|
+
"types": "./dist-types/vendors/ads-and-pixels/meta-pixel.d.ts",
|
|
143
|
+
"import": "./dist/vendors/ads-and-pixels/meta-pixel.js",
|
|
144
|
+
"require": "./dist/vendors/ads-and-pixels/meta-pixel.cjs"
|
|
145
|
+
},
|
|
146
|
+
"./reddit-pixel": {
|
|
147
|
+
"types": "./dist-types/vendors/ads-and-pixels/reddit-pixel.d.ts",
|
|
148
|
+
"import": "./dist/vendors/ads-and-pixels/reddit-pixel.js",
|
|
149
|
+
"require": "./dist/vendors/ads-and-pixels/reddit-pixel.cjs"
|
|
150
|
+
},
|
|
151
|
+
"./microsoft-uet": {
|
|
152
|
+
"types": "./dist-types/vendors/ads-and-pixels/microsoft-uet.d.ts",
|
|
153
|
+
"import": "./dist/vendors/ads-and-pixels/microsoft-uet.js",
|
|
154
|
+
"require": "./dist/vendors/ads-and-pixels/microsoft-uet.cjs"
|
|
155
|
+
},
|
|
156
|
+
"./snapchat-pixel": {
|
|
157
|
+
"types": "./dist-types/vendors/ads-and-pixels/snapchat-pixel.d.ts",
|
|
158
|
+
"import": "./dist/vendors/ads-and-pixels/snapchat-pixel.js",
|
|
159
|
+
"require": "./dist/vendors/ads-and-pixels/snapchat-pixel.cjs"
|
|
160
|
+
},
|
|
161
|
+
"./tiktok-pixel": {
|
|
162
|
+
"types": "./dist-types/vendors/ads-and-pixels/tiktok-pixel.d.ts",
|
|
163
|
+
"import": "./dist/vendors/ads-and-pixels/tiktok-pixel.js",
|
|
164
|
+
"require": "./dist/vendors/ads-and-pixels/tiktok-pixel.cjs"
|
|
165
|
+
},
|
|
166
|
+
"./x-pixel": {
|
|
167
|
+
"types": "./dist-types/vendors/ads-and-pixels/x-pixel.d.ts",
|
|
168
|
+
"import": "./dist/vendors/ads-and-pixels/x-pixel.js",
|
|
169
|
+
"require": "./dist/vendors/ads-and-pixels/x-pixel.cjs"
|
|
170
|
+
},
|
|
171
|
+
"./registry": {
|
|
172
|
+
"types": "./dist-types/registry.d.ts",
|
|
173
|
+
"import": "./dist/registry.js",
|
|
174
|
+
"require": "./dist/registry.cjs"
|
|
175
|
+
},
|
|
15
176
|
"./*": {
|
|
16
177
|
"types": "./dist-types/*.d.ts",
|
|
17
178
|
"import": "./dist/*.js",
|
|
@@ -25,10 +186,10 @@
|
|
|
25
186
|
"scripts": {
|
|
26
187
|
"build": "rslib build && bun ../../scripts/normalize-dist-types.mjs",
|
|
27
188
|
"check-types": "tsc --noEmit",
|
|
28
|
-
"dev": "rslib build --watch",
|
|
189
|
+
"dev": "sh -c 'rslib build --no-dts --no-clean && rslib build --watch --no-dts --no-clean'",
|
|
29
190
|
"fmt": "bun biome format --write . && bun biome check --formatter-enabled=false --linter-enabled=false --write",
|
|
30
191
|
"lint": "bun biome lint ./src",
|
|
31
|
-
"test": "vitest run
|
|
192
|
+
"test": "vitest run",
|
|
32
193
|
"test:watch": "vitest"
|
|
33
194
|
},
|
|
34
195
|
"browserslist": [
|
|
@@ -39,7 +200,7 @@
|
|
|
39
200
|
"devDependencies": {
|
|
40
201
|
"@c15t/typescript-config": "0.0.1",
|
|
41
202
|
"@c15t/vitest-config": "1.0.0",
|
|
42
|
-
"c15t": "2.
|
|
203
|
+
"c15t": "2.1.0"
|
|
43
204
|
},
|
|
44
205
|
"publishConfig": {
|
|
45
206
|
"access": "public"
|
package/dist/meta-pixel.cjs
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
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
|
-
metaPixelManifest: ()=>metaPixelManifest,
|
|
28
|
-
metaPixel: ()=>metaPixel,
|
|
29
|
-
metaPixelEvent: ()=>metaPixelEvent
|
|
30
|
-
});
|
|
31
|
-
const external_resolve_cjs_namespaceObject = require("./resolve.cjs");
|
|
32
|
-
const external_types_cjs_namespaceObject = require("./types.cjs");
|
|
33
|
-
const metaPixelManifest = {
|
|
34
|
-
...external_types_cjs_namespaceObject.vendorManifestContract,
|
|
35
|
-
vendor: 'meta-pixel',
|
|
36
|
-
category: 'marketing',
|
|
37
|
-
persistAfterConsentRevoked: true,
|
|
38
|
-
bootstrap: [
|
|
39
|
-
{
|
|
40
|
-
type: 'defineStubFunction',
|
|
41
|
-
name: 'fbq',
|
|
42
|
-
queue: {
|
|
43
|
-
property: 'queue'
|
|
44
|
-
},
|
|
45
|
-
dispatchProperty: 'callMethod',
|
|
46
|
-
selfReferences: [
|
|
47
|
-
'push'
|
|
48
|
-
],
|
|
49
|
-
aliases: [
|
|
50
|
-
'_fbq'
|
|
51
|
-
],
|
|
52
|
-
properties: {
|
|
53
|
-
loaded: true,
|
|
54
|
-
version: '2.0'
|
|
55
|
-
},
|
|
56
|
-
ifUndefined: true
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
install: [
|
|
60
|
-
{
|
|
61
|
-
type: 'callGlobal',
|
|
62
|
-
global: 'fbq',
|
|
63
|
-
args: [
|
|
64
|
-
'consent',
|
|
65
|
-
'grant'
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: 'callGlobal',
|
|
70
|
-
global: 'fbq',
|
|
71
|
-
args: [
|
|
72
|
-
'init',
|
|
73
|
-
'{{pixelId}}'
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
type: 'callGlobal',
|
|
78
|
-
global: 'fbq',
|
|
79
|
-
args: [
|
|
80
|
-
'track',
|
|
81
|
-
'PageView'
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: 'loadScript',
|
|
86
|
-
src: "{{scriptSrc}}",
|
|
87
|
-
async: true
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
onConsentGranted: [
|
|
91
|
-
{
|
|
92
|
-
type: 'callGlobal',
|
|
93
|
-
global: 'fbq',
|
|
94
|
-
args: [
|
|
95
|
-
'consent',
|
|
96
|
-
'grant'
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
onConsentDenied: [
|
|
101
|
-
{
|
|
102
|
-
type: 'callGlobal',
|
|
103
|
-
global: 'fbq',
|
|
104
|
-
args: [
|
|
105
|
-
'consent',
|
|
106
|
-
'revoke'
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
};
|
|
111
|
-
function metaPixel({ pixelId, scriptSrc }) {
|
|
112
|
-
const resolved = (0, external_resolve_cjs_namespaceObject.resolveManifest)(metaPixelManifest, {
|
|
113
|
-
pixelId,
|
|
114
|
-
scriptSrc: scriptSrc ?? 'https://connect.facebook.net/en_US/fbevents.js'
|
|
115
|
-
});
|
|
116
|
-
return resolved;
|
|
117
|
-
}
|
|
118
|
-
const metaPixelEvent = (eventName, params, eventId)=>window.fbq('track', eventName, params, eventId);
|
|
119
|
-
exports.metaPixel = __webpack_exports__.metaPixel;
|
|
120
|
-
exports.metaPixelEvent = __webpack_exports__.metaPixelEvent;
|
|
121
|
-
exports.metaPixelManifest = __webpack_exports__.metaPixelManifest;
|
|
122
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
123
|
-
"metaPixel",
|
|
124
|
-
"metaPixelEvent",
|
|
125
|
-
"metaPixelManifest"
|
|
126
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
127
|
-
Object.defineProperty(exports, '__esModule', {
|
|
128
|
-
value: true
|
|
129
|
-
});
|
package/dist/meta-pixel.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { resolveManifest } from "./resolve.js";
|
|
2
|
-
import { vendorManifestContract } from "./types.js";
|
|
3
|
-
const metaPixelManifest = {
|
|
4
|
-
...vendorManifestContract,
|
|
5
|
-
vendor: 'meta-pixel',
|
|
6
|
-
category: 'marketing',
|
|
7
|
-
persistAfterConsentRevoked: true,
|
|
8
|
-
bootstrap: [
|
|
9
|
-
{
|
|
10
|
-
type: 'defineStubFunction',
|
|
11
|
-
name: 'fbq',
|
|
12
|
-
queue: {
|
|
13
|
-
property: 'queue'
|
|
14
|
-
},
|
|
15
|
-
dispatchProperty: 'callMethod',
|
|
16
|
-
selfReferences: [
|
|
17
|
-
'push'
|
|
18
|
-
],
|
|
19
|
-
aliases: [
|
|
20
|
-
'_fbq'
|
|
21
|
-
],
|
|
22
|
-
properties: {
|
|
23
|
-
loaded: true,
|
|
24
|
-
version: '2.0'
|
|
25
|
-
},
|
|
26
|
-
ifUndefined: true
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
install: [
|
|
30
|
-
{
|
|
31
|
-
type: 'callGlobal',
|
|
32
|
-
global: 'fbq',
|
|
33
|
-
args: [
|
|
34
|
-
'consent',
|
|
35
|
-
'grant'
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 'callGlobal',
|
|
40
|
-
global: 'fbq',
|
|
41
|
-
args: [
|
|
42
|
-
'init',
|
|
43
|
-
'{{pixelId}}'
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: 'callGlobal',
|
|
48
|
-
global: 'fbq',
|
|
49
|
-
args: [
|
|
50
|
-
'track',
|
|
51
|
-
'PageView'
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: 'loadScript',
|
|
56
|
-
src: "{{scriptSrc}}",
|
|
57
|
-
async: true
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
onConsentGranted: [
|
|
61
|
-
{
|
|
62
|
-
type: 'callGlobal',
|
|
63
|
-
global: 'fbq',
|
|
64
|
-
args: [
|
|
65
|
-
'consent',
|
|
66
|
-
'grant'
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
onConsentDenied: [
|
|
71
|
-
{
|
|
72
|
-
type: 'callGlobal',
|
|
73
|
-
global: 'fbq',
|
|
74
|
-
args: [
|
|
75
|
-
'consent',
|
|
76
|
-
'revoke'
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
]
|
|
80
|
-
};
|
|
81
|
-
function metaPixel({ pixelId, scriptSrc }) {
|
|
82
|
-
const resolved = resolveManifest(metaPixelManifest, {
|
|
83
|
-
pixelId,
|
|
84
|
-
scriptSrc: scriptSrc ?? 'https://connect.facebook.net/en_US/fbevents.js'
|
|
85
|
-
});
|
|
86
|
-
return resolved;
|
|
87
|
-
}
|
|
88
|
-
const metaPixelEvent = (eventName, params, eventId)=>window.fbq('track', eventName, params, eventId);
|
|
89
|
-
export { metaPixel, metaPixelEvent, metaPixelManifest };
|
package/dist/posthog.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { resolveManifest } from "./resolve.js";
|
|
2
|
-
import { vendorManifestContract } from "./types.js";
|
|
3
|
-
const posthogManifest = {
|
|
4
|
-
...vendorManifestContract,
|
|
5
|
-
vendor: 'posthog',
|
|
6
|
-
category: 'measurement',
|
|
7
|
-
alwaysLoad: true,
|
|
8
|
-
bootstrap: [
|
|
9
|
-
{
|
|
10
|
-
type: 'setGlobal',
|
|
11
|
-
name: 'posthog',
|
|
12
|
-
value: {},
|
|
13
|
-
ifUndefined: true
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
type: 'defineGlobalMethods',
|
|
17
|
-
target: 'posthog',
|
|
18
|
-
methods: [
|
|
19
|
-
{
|
|
20
|
-
name: 'init',
|
|
21
|
-
behavior: 'noop'
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'opt_in_capturing',
|
|
25
|
-
behavior: 'noop'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'opt_out_capturing',
|
|
29
|
-
behavior: 'noop'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'get_explicit_consent_status',
|
|
33
|
-
behavior: 'return',
|
|
34
|
-
value: 'pending'
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
install: [
|
|
40
|
-
{
|
|
41
|
-
type: 'loadScript',
|
|
42
|
-
src: "{{scriptUrl}}",
|
|
43
|
-
async: true,
|
|
44
|
-
attributes: {
|
|
45
|
-
crossorigin: 'anonymous',
|
|
46
|
-
'data-api-host': '{{apiHost}}',
|
|
47
|
-
'data-ui-host': '{{apiHost}}'
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
afterLoad: [
|
|
52
|
-
{
|
|
53
|
-
type: 'callGlobal',
|
|
54
|
-
global: 'posthog',
|
|
55
|
-
method: 'init',
|
|
56
|
-
args: [
|
|
57
|
-
'{{id}}',
|
|
58
|
-
'{{initOptions}}'
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
onLoadGranted: [
|
|
63
|
-
{
|
|
64
|
-
type: 'callGlobal',
|
|
65
|
-
global: 'posthog',
|
|
66
|
-
method: 'opt_in_capturing'
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
onLoadDenied: [
|
|
70
|
-
{
|
|
71
|
-
type: 'callGlobal',
|
|
72
|
-
global: 'posthog',
|
|
73
|
-
method: 'opt_out_capturing'
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
onConsentGranted: [
|
|
77
|
-
{
|
|
78
|
-
type: 'callGlobal',
|
|
79
|
-
global: 'posthog',
|
|
80
|
-
method: 'opt_in_capturing'
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
onConsentDenied: [
|
|
84
|
-
{
|
|
85
|
-
type: 'callGlobal',
|
|
86
|
-
global: 'posthog',
|
|
87
|
-
method: 'opt_out_capturing'
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
};
|
|
91
|
-
function posthog(options) {
|
|
92
|
-
const resolved = resolveManifest(posthogManifest, {
|
|
93
|
-
id: options.id,
|
|
94
|
-
apiHost: options.apiHost ?? 'https://eu.i.posthog.com',
|
|
95
|
-
scriptUrl: options.scriptUrl ?? 'https://eu-assets.i.posthog.com/static/array.js',
|
|
96
|
-
initOptions: options.initOptions ?? {}
|
|
97
|
-
});
|
|
98
|
-
return resolved;
|
|
99
|
-
}
|
|
100
|
-
export { posthog, posthogManifest };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|