@walkeros/web-destination-meta 2.0.1 → 2.1.1
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 +20 -45
- package/dist/dev.d.ts +20 -45
- 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 +15 -41
- package/dist/examples/index.d.ts +15 -41
- package/dist/examples/index.js +169 -180
- package/dist/examples/index.mjs +168 -178
- package/dist/index.browser.js +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/walkerOS.json +499 -231
- package/package.json +3 -3
package/dist/dev.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Mapping as Mapping$2 } from '@walkeros/core';
|
|
4
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
|
+
import { Flow } from '@walkeros/core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Meta Pixel ID
|
|
@@ -66,20 +66,22 @@ declare const MappingSchema: z.ZodObject<{
|
|
|
66
66
|
}>>;
|
|
67
67
|
trackCustom: z.ZodOptional<z.ZodString>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
type Mapping
|
|
69
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
70
70
|
|
|
71
71
|
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
72
|
-
declare const mapping
|
|
72
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
73
73
|
|
|
74
74
|
declare const index$1_CustomEventName: typeof CustomEventName;
|
|
75
|
+
type index$1_Mapping = Mapping;
|
|
75
76
|
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
76
77
|
declare const index$1_PixelId: typeof PixelId;
|
|
77
78
|
type index$1_Settings = Settings;
|
|
78
79
|
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
79
80
|
declare const index$1_StandardEventName: typeof StandardEventName;
|
|
81
|
+
declare const index$1_mapping: typeof mapping;
|
|
80
82
|
declare const index$1_settings: typeof settings;
|
|
81
83
|
declare namespace index$1 {
|
|
82
|
-
export { index$1_CustomEventName as CustomEventName, type
|
|
84
|
+
export { index$1_CustomEventName as CustomEventName, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, index$1_mapping as mapping, index$1_settings as settings };
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
declare global {
|
|
@@ -88,10 +90,6 @@ declare global {
|
|
|
88
90
|
fbq?: facebook.Pixel.Event;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
|
-
interface Mapping {
|
|
92
|
-
track?: StandardEventNames;
|
|
93
|
-
trackCustom?: string;
|
|
94
|
-
}
|
|
95
93
|
interface Env extends DestinationWeb.Env {
|
|
96
94
|
window: {
|
|
97
95
|
fbq: facebook.Pixel.Event;
|
|
@@ -104,8 +102,6 @@ interface Env extends DestinationWeb.Env {
|
|
|
104
102
|
};
|
|
105
103
|
};
|
|
106
104
|
}
|
|
107
|
-
type Rule = Mapping$2.Rule<Mapping>;
|
|
108
|
-
type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
|
|
109
105
|
|
|
110
106
|
declare const init: Env | undefined;
|
|
111
107
|
declare const push: Env;
|
|
@@ -116,46 +112,25 @@ declare namespace env {
|
|
|
116
112
|
export { env_init as init, env_push as push };
|
|
117
113
|
}
|
|
118
114
|
|
|
119
|
-
declare
|
|
120
|
-
declare
|
|
121
|
-
declare
|
|
122
|
-
declare
|
|
123
|
-
|
|
124
|
-
declare namespace events {
|
|
125
|
-
export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare const Purchase: Rule;
|
|
129
|
-
declare const AddToCart: Rule;
|
|
130
|
-
declare const InitiateCheckout: Rule;
|
|
131
|
-
declare const ViewContent: Rule;
|
|
132
|
-
declare const config: {
|
|
133
|
-
order: {
|
|
134
|
-
complete: Rule;
|
|
135
|
-
};
|
|
136
|
-
product: {
|
|
137
|
-
view: Rule;
|
|
138
|
-
add: Rule;
|
|
139
|
-
};
|
|
140
|
-
cart: {
|
|
141
|
-
view: Rule;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
115
|
+
declare const purchase: Flow.StepExample;
|
|
116
|
+
declare const addToCart: Flow.StepExample;
|
|
117
|
+
declare const viewContent: Flow.StepExample;
|
|
118
|
+
declare const initiateCheckout: Flow.StepExample;
|
|
119
|
+
declare const pageView: Flow.StepExample;
|
|
144
120
|
|
|
145
|
-
declare const
|
|
146
|
-
declare const
|
|
147
|
-
declare const
|
|
148
|
-
declare const
|
|
149
|
-
declare const
|
|
150
|
-
declare namespace
|
|
151
|
-
export {
|
|
121
|
+
declare const step_addToCart: typeof addToCart;
|
|
122
|
+
declare const step_initiateCheckout: typeof initiateCheckout;
|
|
123
|
+
declare const step_pageView: typeof pageView;
|
|
124
|
+
declare const step_purchase: typeof purchase;
|
|
125
|
+
declare const step_viewContent: typeof viewContent;
|
|
126
|
+
declare namespace step {
|
|
127
|
+
export { step_addToCart as addToCart, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
|
|
152
128
|
}
|
|
153
129
|
|
|
154
130
|
declare const index_env: typeof env;
|
|
155
|
-
declare const
|
|
156
|
-
declare const index_mapping: typeof mapping;
|
|
131
|
+
declare const index_step: typeof step;
|
|
157
132
|
declare namespace index {
|
|
158
|
-
export { index_env as env,
|
|
133
|
+
export { index_env as env, index_step as step };
|
|
159
134
|
}
|
|
160
135
|
|
|
161
136
|
export { index as examples, index$1 as schemas };
|
package/dist/dev.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
2
|
import { z } from '@walkeros/core/dev';
|
|
3
|
-
import { Mapping as Mapping$2 } from '@walkeros/core';
|
|
4
3
|
import { DestinationWeb } from '@walkeros/web-core';
|
|
4
|
+
import { Flow } from '@walkeros/core';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Meta Pixel ID
|
|
@@ -66,20 +66,22 @@ declare const MappingSchema: z.ZodObject<{
|
|
|
66
66
|
}>>;
|
|
67
67
|
trackCustom: z.ZodOptional<z.ZodString>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
type Mapping
|
|
69
|
+
type Mapping = z.infer<typeof MappingSchema>;
|
|
70
70
|
|
|
71
71
|
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
72
|
-
declare const mapping
|
|
72
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
73
73
|
|
|
74
74
|
declare const index$1_CustomEventName: typeof CustomEventName;
|
|
75
|
+
type index$1_Mapping = Mapping;
|
|
75
76
|
declare const index$1_MappingSchema: typeof MappingSchema;
|
|
76
77
|
declare const index$1_PixelId: typeof PixelId;
|
|
77
78
|
type index$1_Settings = Settings;
|
|
78
79
|
declare const index$1_SettingsSchema: typeof SettingsSchema;
|
|
79
80
|
declare const index$1_StandardEventName: typeof StandardEventName;
|
|
81
|
+
declare const index$1_mapping: typeof mapping;
|
|
80
82
|
declare const index$1_settings: typeof settings;
|
|
81
83
|
declare namespace index$1 {
|
|
82
|
-
export { index$1_CustomEventName as CustomEventName, type
|
|
84
|
+
export { index$1_CustomEventName as CustomEventName, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, index$1_PixelId as PixelId, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_StandardEventName as StandardEventName, index$1_mapping as mapping, index$1_settings as settings };
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
declare global {
|
|
@@ -88,10 +90,6 @@ declare global {
|
|
|
88
90
|
fbq?: facebook.Pixel.Event;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
|
-
interface Mapping {
|
|
92
|
-
track?: StandardEventNames;
|
|
93
|
-
trackCustom?: string;
|
|
94
|
-
}
|
|
95
93
|
interface Env extends DestinationWeb.Env {
|
|
96
94
|
window: {
|
|
97
95
|
fbq: facebook.Pixel.Event;
|
|
@@ -104,8 +102,6 @@ interface Env extends DestinationWeb.Env {
|
|
|
104
102
|
};
|
|
105
103
|
};
|
|
106
104
|
}
|
|
107
|
-
type Rule = Mapping$2.Rule<Mapping>;
|
|
108
|
-
type StandardEventNames = 'PageView' | 'AddPaymentInfo' | 'AddToCart' | 'AddToWishlist' | 'CompleteRegistration' | 'Contact' | 'CustomizeProduct' | 'Donate' | 'FindLocation' | 'InitiateCheckout' | 'Lead' | 'Purchase' | 'Schedule' | 'Search' | 'StartTrial' | 'SubmitApplication' | 'Subscribe' | 'ViewContent' | string;
|
|
109
105
|
|
|
110
106
|
declare const init: Env | undefined;
|
|
111
107
|
declare const push: Env;
|
|
@@ -116,46 +112,25 @@ declare namespace env {
|
|
|
116
112
|
export { env_init as init, env_push as push };
|
|
117
113
|
}
|
|
118
114
|
|
|
119
|
-
declare
|
|
120
|
-
declare
|
|
121
|
-
declare
|
|
122
|
-
declare
|
|
123
|
-
|
|
124
|
-
declare namespace events {
|
|
125
|
-
export { AddToCart$1 as AddToCart, InitiateCheckout$1 as InitiateCheckout, Purchase$1 as Purchase, ViewContent$1 as ViewContent };
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
declare const Purchase: Rule;
|
|
129
|
-
declare const AddToCart: Rule;
|
|
130
|
-
declare const InitiateCheckout: Rule;
|
|
131
|
-
declare const ViewContent: Rule;
|
|
132
|
-
declare const config: {
|
|
133
|
-
order: {
|
|
134
|
-
complete: Rule;
|
|
135
|
-
};
|
|
136
|
-
product: {
|
|
137
|
-
view: Rule;
|
|
138
|
-
add: Rule;
|
|
139
|
-
};
|
|
140
|
-
cart: {
|
|
141
|
-
view: Rule;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
115
|
+
declare const purchase: Flow.StepExample;
|
|
116
|
+
declare const addToCart: Flow.StepExample;
|
|
117
|
+
declare const viewContent: Flow.StepExample;
|
|
118
|
+
declare const initiateCheckout: Flow.StepExample;
|
|
119
|
+
declare const pageView: Flow.StepExample;
|
|
144
120
|
|
|
145
|
-
declare const
|
|
146
|
-
declare const
|
|
147
|
-
declare const
|
|
148
|
-
declare const
|
|
149
|
-
declare const
|
|
150
|
-
declare namespace
|
|
151
|
-
export {
|
|
121
|
+
declare const step_addToCart: typeof addToCart;
|
|
122
|
+
declare const step_initiateCheckout: typeof initiateCheckout;
|
|
123
|
+
declare const step_pageView: typeof pageView;
|
|
124
|
+
declare const step_purchase: typeof purchase;
|
|
125
|
+
declare const step_viewContent: typeof viewContent;
|
|
126
|
+
declare namespace step {
|
|
127
|
+
export { step_addToCart as addToCart, step_initiateCheckout as initiateCheckout, step_pageView as pageView, step_purchase as purchase, step_viewContent as viewContent };
|
|
152
128
|
}
|
|
153
129
|
|
|
154
130
|
declare const index_env: typeof env;
|
|
155
|
-
declare const
|
|
156
|
-
declare const index_mapping: typeof mapping;
|
|
131
|
+
declare const index_step: typeof step;
|
|
157
132
|
declare namespace index {
|
|
158
|
-
export { index_env as env,
|
|
133
|
+
export { index_env as env, index_step as step };
|
|
159
134
|
}
|
|
160
135
|
|
|
161
136
|
export { index as examples, index$1 as schemas };
|