@walkeros/web-destination-gtag 3.2.0 → 3.3.0-next-1776098542393
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/dist/dev.d.mts +5 -56
- package/dist/dev.d.ts +5 -56
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/examples/index.d.mts +3 -8
- package/dist/examples/index.d.ts +3 -8
- package/dist/examples/index.js +174 -183
- package/dist/examples/index.mjs +174 -183
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +25 -92
- package/package.json +4 -3
package/dist/dev.d.mts
CHANGED
|
@@ -3,20 +3,6 @@ import { z } from '@walkeros/core/dev';
|
|
|
3
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
4
|
import { Flow } from '@walkeros/core';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Include configuration for GA4
|
|
8
|
-
* Specifies which event properties to include
|
|
9
|
-
*/
|
|
10
|
-
declare const IncludeSchema: z.ZodArray<z.ZodEnum<{
|
|
11
|
-
all: "all";
|
|
12
|
-
context: "context";
|
|
13
|
-
data: "data";
|
|
14
|
-
event: "event";
|
|
15
|
-
globals: "globals";
|
|
16
|
-
source: "source";
|
|
17
|
-
user: "user";
|
|
18
|
-
version: "version";
|
|
19
|
-
}>>;
|
|
20
6
|
/**
|
|
21
7
|
* Consent Mode Configuration
|
|
22
8
|
* Can be false (disabled), true (use defaults), or custom mapping
|
|
@@ -25,16 +11,6 @@ declare const ConsentModeSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<
|
|
|
25
11
|
declare const GA4SettingsSchema: z.ZodObject<{
|
|
26
12
|
measurementId: z.ZodString;
|
|
27
13
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
29
|
-
all: "all";
|
|
30
|
-
context: "context";
|
|
31
|
-
data: "data";
|
|
32
|
-
event: "event";
|
|
33
|
-
globals: "globals";
|
|
34
|
-
source: "source";
|
|
35
|
-
user: "user";
|
|
36
|
-
version: "version";
|
|
37
|
-
}>>>;
|
|
38
14
|
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
39
15
|
server_container_url: z.ZodOptional<z.ZodString>;
|
|
40
16
|
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -66,16 +42,6 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
66
42
|
ga4: z.ZodOptional<z.ZodObject<{
|
|
67
43
|
measurementId: z.ZodString;
|
|
68
44
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
|
-
all: "all";
|
|
71
|
-
context: "context";
|
|
72
|
-
data: "data";
|
|
73
|
-
event: "event";
|
|
74
|
-
globals: "globals";
|
|
75
|
-
source: "source";
|
|
76
|
-
user: "user";
|
|
77
|
-
version: "version";
|
|
78
|
-
}>>>;
|
|
79
45
|
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
80
46
|
server_container_url: z.ZodOptional<z.ZodString>;
|
|
81
47
|
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -101,18 +67,7 @@ type Settings = z.infer<typeof SettingsSchema>;
|
|
|
101
67
|
* Tool-specific event-level mappings
|
|
102
68
|
*/
|
|
103
69
|
declare const MappingSchema: z.ZodObject<{
|
|
104
|
-
ga4: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
-
all: "all";
|
|
107
|
-
context: "context";
|
|
108
|
-
data: "data";
|
|
109
|
-
event: "event";
|
|
110
|
-
globals: "globals";
|
|
111
|
-
source: "source";
|
|
112
|
-
user: "user";
|
|
113
|
-
version: "version";
|
|
114
|
-
}>>>;
|
|
115
|
-
}, z.core.$strip>>;
|
|
70
|
+
ga4: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
116
71
|
ads: z.ZodOptional<z.ZodObject<{
|
|
117
72
|
label: z.ZodOptional<z.ZodString>;
|
|
118
73
|
}, z.core.$strip>>;
|
|
@@ -133,7 +88,6 @@ declare const index$1_AdsSettingsSchema: typeof AdsSettingsSchema;
|
|
|
133
88
|
declare const index$1_ConsentModeSchema: typeof ConsentModeSchema;
|
|
134
89
|
declare const index$1_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
135
90
|
declare const index$1_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
136
|
-
declare const index$1_IncludeSchema: typeof IncludeSchema;
|
|
137
91
|
type index$1_Mapping = Mapping;
|
|
138
92
|
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
139
93
|
type index$1_Settings = Settings;
|
|
@@ -144,7 +98,7 @@ declare const index$1_gtm: typeof gtm;
|
|
|
144
98
|
declare const index$1_mapping: typeof mapping;
|
|
145
99
|
declare const index$1_settings: typeof settings;
|
|
146
100
|
declare namespace index$1 {
|
|
147
|
-
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema,
|
|
101
|
+
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_ads as ads, index$1_ga4 as ga4, index$1_gtm as gtm, index$1_mapping as mapping, index$1_settings as settings };
|
|
148
102
|
}
|
|
149
103
|
|
|
150
104
|
declare global {
|
|
@@ -201,16 +155,11 @@ declare const gtmDataLayerPush: Flow.StepExample;
|
|
|
201
155
|
/**
|
|
202
156
|
* Consent Mode v2 with marketing + functional granted.
|
|
203
157
|
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
158
|
+
* Uses the `command: 'consent'` field to route `in` through the
|
|
159
|
+
* `elb('walker consent', in)` handler rather than pushing it as an event.
|
|
160
|
+
* The default consent mapping is:
|
|
206
161
|
* marketing → ad_storage, ad_user_data, ad_personalization
|
|
207
162
|
* functional → analytics_storage
|
|
208
|
-
*
|
|
209
|
-
* When both marketing and functional consent are granted, the gtag consent
|
|
210
|
-
* update call grants all four parameters.
|
|
211
|
-
*
|
|
212
|
-
* Note: The `in` field contains the consent data (not a walkerOS event),
|
|
213
|
-
* and the test triggers it via `elb('walker consent', data)`.
|
|
214
163
|
*/
|
|
215
164
|
declare const consentModeV2: Flow.StepExample;
|
|
216
165
|
/**
|
package/dist/dev.d.ts
CHANGED
|
@@ -3,20 +3,6 @@ import { z } from '@walkeros/core/dev';
|
|
|
3
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
4
|
import { Flow } from '@walkeros/core';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Include configuration for GA4
|
|
8
|
-
* Specifies which event properties to include
|
|
9
|
-
*/
|
|
10
|
-
declare const IncludeSchema: z.ZodArray<z.ZodEnum<{
|
|
11
|
-
all: "all";
|
|
12
|
-
context: "context";
|
|
13
|
-
data: "data";
|
|
14
|
-
event: "event";
|
|
15
|
-
globals: "globals";
|
|
16
|
-
source: "source";
|
|
17
|
-
user: "user";
|
|
18
|
-
version: "version";
|
|
19
|
-
}>>;
|
|
20
6
|
/**
|
|
21
7
|
* Consent Mode Configuration
|
|
22
8
|
* Can be false (disabled), true (use defaults), or custom mapping
|
|
@@ -25,16 +11,6 @@ declare const ConsentModeSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<
|
|
|
25
11
|
declare const GA4SettingsSchema: z.ZodObject<{
|
|
26
12
|
measurementId: z.ZodString;
|
|
27
13
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
29
|
-
all: "all";
|
|
30
|
-
context: "context";
|
|
31
|
-
data: "data";
|
|
32
|
-
event: "event";
|
|
33
|
-
globals: "globals";
|
|
34
|
-
source: "source";
|
|
35
|
-
user: "user";
|
|
36
|
-
version: "version";
|
|
37
|
-
}>>>;
|
|
38
14
|
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
39
15
|
server_container_url: z.ZodOptional<z.ZodString>;
|
|
40
16
|
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -66,16 +42,6 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
66
42
|
ga4: z.ZodOptional<z.ZodObject<{
|
|
67
43
|
measurementId: z.ZodString;
|
|
68
44
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
70
|
-
all: "all";
|
|
71
|
-
context: "context";
|
|
72
|
-
data: "data";
|
|
73
|
-
event: "event";
|
|
74
|
-
globals: "globals";
|
|
75
|
-
source: "source";
|
|
76
|
-
user: "user";
|
|
77
|
-
version: "version";
|
|
78
|
-
}>>>;
|
|
79
45
|
pageview: z.ZodOptional<z.ZodBoolean>;
|
|
80
46
|
server_container_url: z.ZodOptional<z.ZodString>;
|
|
81
47
|
snakeCase: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -101,18 +67,7 @@ type Settings = z.infer<typeof SettingsSchema>;
|
|
|
101
67
|
* Tool-specific event-level mappings
|
|
102
68
|
*/
|
|
103
69
|
declare const MappingSchema: z.ZodObject<{
|
|
104
|
-
ga4: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
106
|
-
all: "all";
|
|
107
|
-
context: "context";
|
|
108
|
-
data: "data";
|
|
109
|
-
event: "event";
|
|
110
|
-
globals: "globals";
|
|
111
|
-
source: "source";
|
|
112
|
-
user: "user";
|
|
113
|
-
version: "version";
|
|
114
|
-
}>>>;
|
|
115
|
-
}, z.core.$strip>>;
|
|
70
|
+
ga4: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
116
71
|
ads: z.ZodOptional<z.ZodObject<{
|
|
117
72
|
label: z.ZodOptional<z.ZodString>;
|
|
118
73
|
}, z.core.$strip>>;
|
|
@@ -133,7 +88,6 @@ declare const index$1_AdsSettingsSchema: typeof AdsSettingsSchema;
|
|
|
133
88
|
declare const index$1_ConsentModeSchema: typeof ConsentModeSchema;
|
|
134
89
|
declare const index$1_GA4SettingsSchema: typeof GA4SettingsSchema;
|
|
135
90
|
declare const index$1_GTMSettingsSchema: typeof GTMSettingsSchema;
|
|
136
|
-
declare const index$1_IncludeSchema: typeof IncludeSchema;
|
|
137
91
|
type index$1_Mapping = Mapping;
|
|
138
92
|
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
139
93
|
type index$1_Settings = Settings;
|
|
@@ -144,7 +98,7 @@ declare const index$1_gtm: typeof gtm;
|
|
|
144
98
|
declare const index$1_mapping: typeof mapping;
|
|
145
99
|
declare const index$1_settings: typeof settings;
|
|
146
100
|
declare namespace index$1 {
|
|
147
|
-
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema,
|
|
101
|
+
export { index$1_AdsSettingsSchema as AdsSettingsSchema, index$1_ConsentModeSchema as ConsentModeSchema, index$1_GA4SettingsSchema as GA4SettingsSchema, index$1_GTMSettingsSchema as GTMSettingsSchema, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_ads as ads, index$1_ga4 as ga4, index$1_gtm as gtm, index$1_mapping as mapping, index$1_settings as settings };
|
|
148
102
|
}
|
|
149
103
|
|
|
150
104
|
declare global {
|
|
@@ -201,16 +155,11 @@ declare const gtmDataLayerPush: Flow.StepExample;
|
|
|
201
155
|
/**
|
|
202
156
|
* Consent Mode v2 with marketing + functional granted.
|
|
203
157
|
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
158
|
+
* Uses the `command: 'consent'` field to route `in` through the
|
|
159
|
+
* `elb('walker consent', in)` handler rather than pushing it as an event.
|
|
160
|
+
* The default consent mapping is:
|
|
206
161
|
* marketing → ad_storage, ad_user_data, ad_personalization
|
|
207
162
|
* functional → analytics_storage
|
|
208
|
-
*
|
|
209
|
-
* When both marketing and functional consent are granted, the gtag consent
|
|
210
|
-
* update call grants all four parameters.
|
|
211
|
-
*
|
|
212
|
-
* Note: The `in` field contains the consent data (not a walkerOS event),
|
|
213
|
-
* and the test triggers it via `elb('walker consent', data)`.
|
|
214
163
|
*/
|
|
215
164
|
declare const consentModeV2: Flow.StepExample;
|
|
216
165
|
/**
|