@picked/analytics 0.0.116-next.2 → 0.0.116-next.4
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/.tsbuildinfo +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/interactions/document.js +1 -1
- package/dist/cjs/plugins/analytics/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/interactions/document.js +61 -62
- package/dist/esm/plugins/analytics/index.js +66 -64
- package/dist/src-BHrYsJFl.cjs +1 -0
- package/dist/src-DiJ_Kes-.js +1078 -0
- package/dist/{text-BfR9q1WW.js → text-CkKXwGpF.js} +72 -54
- package/dist/text-x3eAnxxc.cjs +1 -0
- package/dist/types/events/app_close.d.ts.map +1 -1
- package/dist/types/events/app_initialize.d.ts.map +1 -1
- package/dist/types/events/app_load.d.ts.map +1 -1
- package/dist/types/events/app_open.d.ts.map +1 -1
- package/dist/types/events/cart_add.d.ts +8 -0
- package/dist/types/events/cart_add.d.ts.map +1 -1
- package/dist/types/events/cart_remove.d.ts +8 -0
- package/dist/types/events/cart_remove.d.ts.map +1 -1
- package/dist/types/events/checkout_complete.d.ts +8 -0
- package/dist/types/events/checkout_complete.d.ts.map +1 -1
- package/dist/types/events/checkout_start.d.ts +8 -0
- package/dist/types/events/checkout_start.d.ts.map +1 -1
- package/dist/types/events/custom.d.ts +8 -6
- package/dist/types/events/custom.d.ts.map +1 -1
- package/dist/types/events/experience_load.d.ts.map +1 -1
- package/dist/types/events/feature_decide.d.ts.map +1 -1
- package/dist/types/events/field_validation_error.d.ts.map +1 -1
- package/dist/types/events/form_submit.d.ts.map +1 -1
- package/dist/types/events/form_submit_error.d.ts.map +1 -1
- package/dist/types/events/form_submit_success.d.ts.map +1 -1
- package/dist/types/events/identify.d.ts +8 -0
- package/dist/types/events/identify.d.ts.map +1 -1
- package/dist/types/events/interaction/back.d.ts.map +1 -1
- package/dist/types/events/interaction/backspace.d.ts.map +1 -1
- package/dist/types/events/interaction/click.d.ts.map +1 -1
- package/dist/types/events/interaction/copy.d.ts.map +1 -1
- package/dist/types/events/interaction/drag.d.ts.map +1 -1
- package/dist/types/events/interaction/forward.d.ts.map +1 -1
- package/dist/types/events/interaction/mouse_shake.d.ts.map +1 -1
- package/dist/types/events/interaction/offline.d.ts.map +1 -1
- package/dist/types/events/interaction/online.d.ts.map +1 -1
- package/dist/types/events/interaction/page_hidden.d.ts.map +1 -1
- package/dist/types/events/interaction/page_hide.d.ts.map +1 -1
- package/dist/types/events/interaction/page_show.d.ts.map +1 -1
- package/dist/types/events/interaction/page_visible.d.ts.map +1 -1
- package/dist/types/events/interaction/paste.d.ts.map +1 -1
- package/dist/types/events/interaction/rapid_click.d.ts.map +1 -1
- package/dist/types/events/interaction/rapid_scroll.d.ts.map +1 -1
- package/dist/types/events/interaction/resize.d.ts.map +1 -1
- package/dist/types/events/interaction/right_click.d.ts.map +1 -1
- package/dist/types/events/interaction/scroll.d.ts.map +1 -1
- package/dist/types/events/interaction/unload.d.ts.map +1 -1
- package/dist/types/events/lead_capture.d.ts.map +1 -1
- package/dist/types/events/lead_created.d.ts.map +1 -1
- package/dist/types/events/lead_updated.d.ts.map +1 -1
- package/dist/types/events/modal_close.d.ts.map +1 -1
- package/dist/types/events/modal_open.d.ts.map +1 -1
- package/dist/types/events/order_create.d.ts +8 -0
- package/dist/types/events/order_create.d.ts.map +1 -1
- package/dist/types/events/page_view.d.ts +8 -0
- package/dist/types/events/page_view.d.ts.map +1 -1
- package/dist/types/events/product_list_view.d.ts +8 -0
- package/dist/types/events/product_list_view.d.ts.map +1 -1
- package/dist/types/events/product_select.d.ts.map +1 -1
- package/dist/types/events/product_view_details.d.ts +8 -0
- package/dist/types/events/product_view_details.d.ts.map +1 -1
- package/dist/types/events/recommendation_present.d.ts.map +1 -1
- package/dist/types/events/search_results_list_view.d.ts.map +1 -1
- package/dist/types/events/step_complete.d.ts.map +1 -1
- package/dist/types/events/step_enter.d.ts.map +1 -1
- package/dist/types/events/step_submit.d.ts.map +1 -1
- package/dist/types/events/step_submit_error.d.ts.map +1 -1
- package/dist/types/events/step_submit_success.d.ts.map +1 -1
- package/dist/types/events/waitlist_join.d.ts.map +1 -1
- package/dist/types/events/wishlist_add.d.ts.map +1 -1
- package/dist/types/interactions/document.d.ts +1 -1
- package/dist/types/interactions/document.d.ts.map +1 -1
- package/dist/types/plugins/analytics/plugin.d.ts.map +1 -1
- package/dist/types/schemas/experience/1-0-1.d.ts +1 -3
- package/dist/types/schemas/experience/1-0-1.d.ts.map +1 -1
- package/dist/types/schemas/experience/1-0-2.d.ts +46 -0
- package/dist/types/schemas/experience/1-0-2.d.ts.map +1 -0
- package/dist/types/schemas/experience/index.d.ts +45 -3
- package/dist/types/schemas/experience/index.d.ts.map +1 -1
- package/dist/types/schemas/index.d.ts +3 -0
- package/dist/types/schemas/index.d.ts.map +1 -1
- package/dist/types/schemas/workspace/1-0-0.d.ts +35 -0
- package/dist/types/schemas/workspace/1-0-0.d.ts.map +1 -0
- package/dist/types/schemas/workspace/index.d.ts +40 -0
- package/dist/types/schemas/workspace/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +12 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +21 -3
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/src-B2RJ6I_p.js +0 -1008
- package/dist/src-CPlfXbxx.cjs +0 -1
- package/dist/text-CGbjivo-.cjs +0 -1
|
@@ -79,10 +79,21 @@ function f(e) {
|
|
|
79
79
|
}
|
|
80
80
|
var p = "unknown";
|
|
81
81
|
function m(e) {
|
|
82
|
-
|
|
83
|
-
return e.isUser !== void 0 && (n.is_user = e.isUser), e.identifiers && Object.assign(n, e.identifiers), t && (n.gaid = t), e.shopifySession?.clientId && (n.shopify_client_id = e.shopifySession.clientId), e.shopifySession?.customerId && (n.shopify_customer_id = e.shopifySession.customerId), e.shopifySession?.checkoutToken && (n.shopify_checkout_token = e.shopifySession.checkoutToken), n;
|
|
82
|
+
return e.projectId, { project_id: e.projectId || p };
|
|
84
83
|
}
|
|
85
84
|
function h(e) {
|
|
85
|
+
let { workspace: t } = e;
|
|
86
|
+
if (t) return {
|
|
87
|
+
id: t.id ?? null,
|
|
88
|
+
version_id: t.versionId ?? null,
|
|
89
|
+
status: t.status ?? null
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function g(e) {
|
|
93
|
+
let t = k(), n = { id: e.sessionId || null };
|
|
94
|
+
return e.isUser !== void 0 && (n.is_user = e.isUser), e.identifiers && Object.assign(n, e.identifiers), t && (n.gaid = t), e.shopifySession?.clientId && (n.shopify_client_id = e.shopifySession.clientId), e.shopifySession?.customerId && (n.shopify_customer_id = e.shopifySession.customerId), e.shopifySession?.checkoutToken && (n.shopify_checkout_token = e.shopifySession.checkoutToken), n;
|
|
95
|
+
}
|
|
96
|
+
function _(e) {
|
|
86
97
|
if (e.fields) return { items: e.fields.map(({ id: e, type: t, label: n, options: r }) => ({
|
|
87
98
|
id: e,
|
|
88
99
|
type: t,
|
|
@@ -94,7 +105,7 @@ function h(e) {
|
|
|
94
105
|
})) : void 0
|
|
95
106
|
})) };
|
|
96
107
|
}
|
|
97
|
-
function
|
|
108
|
+
function v(e) {
|
|
98
109
|
if (!e.responses) return;
|
|
99
110
|
let t = e.fields ?? [], n = e.responses.filter(({ fieldKey: e }) => t.find((t) => t.key === e)?.policies?.trackValue === !0);
|
|
100
111
|
if (n.length !== 0) return { items: n.map(({ fieldKey: e, value: t }) => ({
|
|
@@ -102,7 +113,7 @@ function g(e) {
|
|
|
102
113
|
values: Array.isArray(t) ? t.map((e) => ({ value: e })) : [{ value: t }]
|
|
103
114
|
})) };
|
|
104
115
|
}
|
|
105
|
-
function
|
|
116
|
+
function y(e, t = !1) {
|
|
106
117
|
let { step: n } = e;
|
|
107
118
|
if (n) return {
|
|
108
119
|
id: n.id,
|
|
@@ -115,7 +126,7 @@ function _(e, t = !1) {
|
|
|
115
126
|
key: p
|
|
116
127
|
};
|
|
117
128
|
}
|
|
118
|
-
function
|
|
129
|
+
function b(e, t = !1) {
|
|
119
130
|
let { productList: n } = e;
|
|
120
131
|
if (n) {
|
|
121
132
|
let e = {};
|
|
@@ -129,8 +140,8 @@ function v(e, t = !1) {
|
|
|
129
140
|
currency: e.currency,
|
|
130
141
|
creative_name: e.creativeName,
|
|
131
142
|
creative_slot: e.creativeSlot,
|
|
132
|
-
discount:
|
|
133
|
-
index:
|
|
143
|
+
discount: O(e.discount),
|
|
144
|
+
index: O(e.index),
|
|
134
145
|
item_brand: e.itemBrand,
|
|
135
146
|
item_category: e.itemCategory,
|
|
136
147
|
item_category2: e.itemCategory2,
|
|
@@ -141,16 +152,16 @@ function v(e, t = !1) {
|
|
|
141
152
|
item_list_name: e.itemListName,
|
|
142
153
|
item_variant: e.itemVariant,
|
|
143
154
|
location_id: e.locationId,
|
|
144
|
-
price:
|
|
155
|
+
price: O(e.price),
|
|
145
156
|
promotion_id: e.promotionId,
|
|
146
157
|
promotion_name: e.promotionName,
|
|
147
|
-
quantity:
|
|
158
|
+
quantity: O(e.quantity),
|
|
148
159
|
in_stock: e.inStock
|
|
149
160
|
})) }), e;
|
|
150
161
|
}
|
|
151
162
|
if (t) return { items: [] };
|
|
152
163
|
}
|
|
153
|
-
function
|
|
164
|
+
function x(e, t = !1) {
|
|
154
165
|
let { order: n } = e;
|
|
155
166
|
if (n) {
|
|
156
167
|
let e = { id: n.id };
|
|
@@ -158,23 +169,30 @@ function y(e, t = !1) {
|
|
|
158
169
|
}
|
|
159
170
|
if (t) return { id: p };
|
|
160
171
|
}
|
|
161
|
-
function
|
|
172
|
+
function S(e, t = !1) {
|
|
162
173
|
let { experience: n } = e;
|
|
163
174
|
if (n) return {
|
|
164
175
|
id: n.id,
|
|
165
|
-
title: n.title
|
|
176
|
+
title: n.title,
|
|
177
|
+
key: n.key ?? null
|
|
166
178
|
};
|
|
167
179
|
if (t) return {
|
|
168
180
|
id: p,
|
|
169
|
-
title: p
|
|
181
|
+
title: p,
|
|
182
|
+
key: p
|
|
170
183
|
};
|
|
171
184
|
}
|
|
172
|
-
|
|
185
|
+
var C = (e) => ({
|
|
186
|
+
id: e.experienceId,
|
|
187
|
+
title: e.experienceName,
|
|
188
|
+
key: e.experienceKey
|
|
189
|
+
});
|
|
190
|
+
function w(e, t = !1) {
|
|
173
191
|
let { exception: n } = e;
|
|
174
192
|
if (n) return typeof n == "string" ? { reason: n } : { reason: n.systemMessage };
|
|
175
193
|
if (t) return { reason: p };
|
|
176
194
|
}
|
|
177
|
-
function
|
|
195
|
+
function T(e) {
|
|
178
196
|
let { form: t } = e;
|
|
179
197
|
return t ? {
|
|
180
198
|
id: t.id,
|
|
@@ -184,7 +202,7 @@ function S(e) {
|
|
|
184
202
|
title: p
|
|
185
203
|
};
|
|
186
204
|
}
|
|
187
|
-
function
|
|
205
|
+
function E(e) {
|
|
188
206
|
let { modal: t } = e;
|
|
189
207
|
return t ? {
|
|
190
208
|
id: t.id,
|
|
@@ -194,19 +212,19 @@ function C(e) {
|
|
|
194
212
|
title: p
|
|
195
213
|
};
|
|
196
214
|
}
|
|
197
|
-
function
|
|
215
|
+
function D(e, t = 300) {
|
|
198
216
|
let n;
|
|
199
217
|
return (...r) => {
|
|
200
218
|
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
201
219
|
};
|
|
202
220
|
}
|
|
203
|
-
function
|
|
221
|
+
function O(e) {
|
|
204
222
|
if (typeof e == "number") return e;
|
|
205
223
|
if (typeof e != "string") return;
|
|
206
224
|
let t = parseFloat(e);
|
|
207
225
|
if (!isNaN(t)) return t;
|
|
208
226
|
}
|
|
209
|
-
function
|
|
227
|
+
function k() {
|
|
210
228
|
if (!n() || !t()) return null;
|
|
211
229
|
let e = document.cookie ? document.cookie.split(";") : [];
|
|
212
230
|
for (let t of e) {
|
|
@@ -220,56 +238,56 @@ function E() {
|
|
|
220
238
|
}
|
|
221
239
|
//#endregion
|
|
222
240
|
//#region src/snowplow-plugins/url-scrub.ts
|
|
223
|
-
var
|
|
241
|
+
var A = Object.freeze([
|
|
224
242
|
/token$/i,
|
|
225
243
|
/apikey$/i,
|
|
226
244
|
/secret$/i,
|
|
227
245
|
/password$/i,
|
|
228
246
|
/email$/i,
|
|
229
247
|
/^code$/i
|
|
230
|
-
]),
|
|
231
|
-
function
|
|
248
|
+
]), j = ["url", "refr"], M = "REDACTED", N = /[_-]/g;
|
|
249
|
+
function P(e) {
|
|
232
250
|
try {
|
|
233
|
-
return decodeURIComponent(e).toLowerCase().replace(
|
|
251
|
+
return decodeURIComponent(e).toLowerCase().replace(N, "");
|
|
234
252
|
} catch {
|
|
235
|
-
return e.toLowerCase().replace(
|
|
253
|
+
return e.toLowerCase().replace(N, "");
|
|
236
254
|
}
|
|
237
255
|
}
|
|
238
|
-
function
|
|
256
|
+
function F(e) {
|
|
239
257
|
let t = e.indexOf("=");
|
|
240
258
|
if (t === -1) return e;
|
|
241
|
-
let n = e.slice(0, t), r =
|
|
242
|
-
return
|
|
259
|
+
let n = e.slice(0, t), r = P(n);
|
|
260
|
+
return A.some((e) => e.test(r)) ? `${n}=${M}` : e;
|
|
243
261
|
}
|
|
244
|
-
function
|
|
245
|
-
return e === "" ? e : e.split("&").map((e) =>
|
|
262
|
+
function I(e) {
|
|
263
|
+
return e === "" ? e : e.split("&").map((e) => F(e)).join("&");
|
|
246
264
|
}
|
|
247
|
-
function
|
|
248
|
-
let t = e.indexOf("#"), n = t === -1 ? e : e.slice(0, t), r = t === -1 ? "" : e.slice(t + 1), i = n.indexOf("?"), a = i === -1 ? n : n.slice(0, i), o = i === -1 ? "" : n.slice(i + 1), s =
|
|
265
|
+
function L(e) {
|
|
266
|
+
let t = e.indexOf("#"), n = t === -1 ? e : e.slice(0, t), r = t === -1 ? "" : e.slice(t + 1), i = n.indexOf("?"), a = i === -1 ? n : n.slice(0, i), o = i === -1 ? "" : n.slice(i + 1), s = I(o), c = I(r);
|
|
249
267
|
return s === o && c === r ? e : `${a}${i === -1 ? "" : `?${s}`}${t === -1 ? "" : `#${c}`}`;
|
|
250
268
|
}
|
|
251
|
-
function
|
|
269
|
+
function R(e, t) {
|
|
252
270
|
let n = e.getPayload()[t];
|
|
253
271
|
if (typeof n != "string") return;
|
|
254
|
-
let r =
|
|
272
|
+
let r = L(n);
|
|
255
273
|
r !== n && e.add(t, r);
|
|
256
274
|
}
|
|
257
|
-
function
|
|
275
|
+
function z() {
|
|
258
276
|
return { beforeTrack: (e) => {
|
|
259
277
|
try {
|
|
260
|
-
for (let t of
|
|
278
|
+
for (let t of j) R(e, t);
|
|
261
279
|
} catch {}
|
|
262
280
|
} };
|
|
263
281
|
}
|
|
264
282
|
//#endregion
|
|
265
283
|
//#region src/helpers/element.ts
|
|
266
|
-
function
|
|
284
|
+
function B(e) {
|
|
267
285
|
return e instanceof Element;
|
|
268
286
|
}
|
|
269
|
-
function
|
|
287
|
+
function V(e) {
|
|
270
288
|
return `data-picked-${e.replaceAll("_", "-")}`;
|
|
271
289
|
}
|
|
272
|
-
function
|
|
290
|
+
function H(e) {
|
|
273
291
|
let t = [
|
|
274
292
|
"a",
|
|
275
293
|
"button",
|
|
@@ -296,54 +314,54 @@ function z(e) {
|
|
|
296
314
|
"object",
|
|
297
315
|
"canvas"
|
|
298
316
|
].join(", ");
|
|
299
|
-
return
|
|
317
|
+
return B(e) ? e.matches(t) ? e : e.closest(t) : null;
|
|
300
318
|
}
|
|
301
|
-
function
|
|
319
|
+
function U(e) {
|
|
302
320
|
if (e instanceof HTMLSelectElement) {
|
|
303
321
|
let t = e.selectedIndex || 0;
|
|
304
322
|
return e.options[t]?.text ?? "";
|
|
305
323
|
}
|
|
306
324
|
return "innerText" in e && typeof e.innerText == "string" ? e.innerText : e.textContent;
|
|
307
325
|
}
|
|
308
|
-
function
|
|
326
|
+
function W(e) {
|
|
309
327
|
let t = e.getAttribute("aria-label");
|
|
310
328
|
if (t) return t;
|
|
311
329
|
let n = e.getAttribute("aria-labelledby");
|
|
312
330
|
if (n) {
|
|
313
331
|
let e = document.getElementById(n);
|
|
314
332
|
if (e) {
|
|
315
|
-
let t =
|
|
333
|
+
let t = U(e);
|
|
316
334
|
if (t) return t;
|
|
317
335
|
}
|
|
318
336
|
}
|
|
319
337
|
if ("id" in e && e.id) {
|
|
320
338
|
let t = document.querySelector(`label[for="${e.id}"]`);
|
|
321
339
|
if (t) {
|
|
322
|
-
let e =
|
|
340
|
+
let e = U(t);
|
|
323
341
|
if (e) return e;
|
|
324
342
|
}
|
|
325
343
|
}
|
|
326
344
|
let r = e.parentElement;
|
|
327
345
|
for (; r;) {
|
|
328
346
|
if (r.tagName.toLowerCase() === "label") {
|
|
329
|
-
let e =
|
|
347
|
+
let e = U(r);
|
|
330
348
|
if (e) return e;
|
|
331
349
|
}
|
|
332
350
|
r = r.parentElement;
|
|
333
351
|
}
|
|
334
352
|
if (e instanceof HTMLInputElement && "labels" in e && e.labels) {
|
|
335
|
-
let t = Array.from(e.labels).map((e) =>
|
|
353
|
+
let t = Array.from(e.labels).map((e) => U(e)).filter(Boolean).join(" ");
|
|
336
354
|
if (t) return t;
|
|
337
355
|
}
|
|
338
356
|
return "placeholder" in e && typeof e.placeholder == "string" ? e.placeholder : null;
|
|
339
357
|
}
|
|
340
|
-
function
|
|
341
|
-
let n =
|
|
358
|
+
function G(e, t) {
|
|
359
|
+
let n = V(t);
|
|
342
360
|
return e.getAttribute(n);
|
|
343
361
|
}
|
|
344
|
-
function
|
|
345
|
-
if (!
|
|
346
|
-
let n =
|
|
362
|
+
function K(e, t) {
|
|
363
|
+
if (!B(e)) return null;
|
|
364
|
+
let n = V(t), r = e.closest(`[${n}]`);
|
|
347
365
|
if (!r) return null;
|
|
348
366
|
let i = r.getAttribute(n);
|
|
349
367
|
return i ? {
|
|
@@ -353,9 +371,9 @@ function U(e, t) {
|
|
|
353
371
|
}
|
|
354
372
|
//#endregion
|
|
355
373
|
//#region src/helpers/text.ts
|
|
356
|
-
var
|
|
357
|
-
function
|
|
358
|
-
return e ? e.slice(0,
|
|
374
|
+
var q = 255;
|
|
375
|
+
function J(e) {
|
|
376
|
+
return e ? e.slice(0, q) : null;
|
|
359
377
|
}
|
|
360
378
|
//#endregion
|
|
361
|
-
export { C,
|
|
379
|
+
export { h as A, T as C, v as D, b as E, C as M, g as O, _ as S, x as T, D as _, G as a, S as b, B as c, l as d, s as f, d as g, c as h, K as i, a as j, y as k, L as l, o as m, V as n, W as o, u as p, H as r, U as s, J as t, z as u, m as v, E as w, f as x, w as y };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("@snowplow/browser-tracker"),t=require("@picked/client");function n(e,t){return`iglu:dev.pckd/${e}/jsonschema/${t}`}function r(e,...t){}function i(e,t,r={}){return{event:{schema:n(`event`,`1-0-0`),data:{type:e,meta:r}},context:t.filter(e=>e!==void 0)}}function a(e,t,r){return{schema:n(e,t),data:r}}function o(t,n){return(t,r)=>{let i=n(t,r);(0,e.trackSelfDescribingEvent)(i)}}function s(e,t,n={passive:!0}){let r=new WeakMap;return(i,a)=>{let o=r.get(i);if(o||(o=new Set,r.set(i,o)),o.has(e))return;function s(e){t({event:e,analyticsContext:a()})}i.addEventListener(e,s,n),o.add(e)}}function c(e,n){let r=new Set;return i=>{if(r.has(e)||!(0,t.supportsDocument)())return;function a(e){n({event:e,analyticsContext:i()})}document.addEventListener(e,a,{passive:!0}),r.add(e)}}function l(e,n){let r=new Set;return i=>{if(r.has(e)||!(0,t.supportsWindow)())return;function a(e){n({event:e,analyticsContext:i()})}window.addEventListener(e,a,{passive:!0}),r.add(e)}}function u(e){return{items:e.features?.map(({feature:e,name:t,key:n,bucket:r})=>({ab_feature:e,ab_name:t,ab_key:n,ab_bucket:r}))||[]}}var d=`unknown`;function f(e){return e.projectId,{project_id:e.projectId||d}}function p(e){let{workspace:t}=e;if(t)return{id:t.id??null,version_id:t.versionId??null,status:t.status??null}}function m(e){let t=D(),n={id:e.sessionId||null};return e.isUser!==void 0&&(n.is_user=e.isUser),e.identifiers&&Object.assign(n,e.identifiers),t&&(n.gaid=t),e.shopifySession?.clientId&&(n.shopify_client_id=e.shopifySession.clientId),e.shopifySession?.customerId&&(n.shopify_customer_id=e.shopifySession.customerId),e.shopifySession?.checkoutToken&&(n.shopify_checkout_token=e.shopifySession.checkoutToken),n}function h(e){if(e.fields)return{items:e.fields.map(({id:e,type:t,label:n,options:r})=>({id:e,type:t,label:n,options:Array.isArray(r)?r.map(({id:e,label:t,value:n})=>({id:e,label:t,value:n})):void 0}))}}function g(e){if(!e.responses)return;let t=e.fields??[],n=e.responses.filter(({fieldKey:e})=>t.find(t=>t.key===e)?.policies?.trackValue===!0);if(n.length!==0)return{items:n.map(({fieldKey:e,value:t})=>({field_id:e,values:Array.isArray(t)?t.map(e=>({value:e})):[{value:t}]}))}}function _(e,t=!1){let{step:n}=e;if(n)return{id:n.id,title:n.name,key:n.key};if(t)return{id:d,title:d,key:d}}function v(e,t=!1){let{productList:n}=e;if(n){let e={};`title`in n&&n.title&&Object.assign(e,{title:n.title});let t=`items`in n?n.items:n;return Object.assign(e,{items:t.map(e=>({item_id:e.itemId,item_name:e.itemName,affiliation:e.affiliation,coupon:e.coupon,currency:e.currency,creative_name:e.creativeName,creative_slot:e.creativeSlot,discount:E(e.discount),index:E(e.index),item_brand:e.itemBrand,item_category:e.itemCategory,item_category2:e.itemCategory2,item_category3:e.itemCategory3,item_category4:e.itemCategory4,item_category5:e.itemCategory5,item_list_id:e.itemListId,item_list_name:e.itemListName,item_variant:e.itemVariant,location_id:e.locationId,price:E(e.price),promotion_id:e.promotionId,promotion_name:e.promotionName,quantity:E(e.quantity),in_stock:e.inStock}))}),e}if(t)return{items:[]}}function y(e,t=!1){let{order:n}=e;if(n){let e={id:n.id};return n.checkoutToken&&(e.checkout_token=n.checkoutToken),n.cartToken&&(e.cart_token=n.cartToken),n.customerId&&(e.customer_id=n.customerId),e}if(t)return{id:d}}function b(e,t=!1){let{experience:n}=e;if(n)return{id:n.id,title:n.title,key:n.key??null};if(t)return{id:d,title:d,key:d}}var x=e=>({id:e.experienceId,title:e.experienceName,key:e.experienceKey});function S(e,t=!1){let{exception:n}=e;if(n)return typeof n==`string`?{reason:n}:{reason:n.systemMessage};if(t)return{reason:d}}function C(e){let{form:t}=e;return t?{id:t.id,title:t.title}:{id:d,title:d}}function w(e){let{modal:t}=e;return t?{id:t.id,title:t.title}:{id:d,title:d}}function T(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}}function E(e){if(typeof e==`number`)return e;if(typeof e!=`string`)return;let t=parseFloat(e);if(!isNaN(t))return t}function D(){if(!(0,t.supportsDocument)()||!(0,t.supportsCookies)())return null;let e=document.cookie?document.cookie.split(`;`):[];for(let t of e){let e=t.trim();if(e.startsWith(`_ga=`)){let t=e.substring(4).split(`.`);if(t.length>2)return t.slice(2).join(`.`)}}return null}var O=Object.freeze([/token$/i,/apikey$/i,/secret$/i,/password$/i,/email$/i,/^code$/i]),k=[`url`,`refr`],A=`REDACTED`,j=/[_-]/g;function M(e){try{return decodeURIComponent(e).toLowerCase().replace(j,``)}catch{return e.toLowerCase().replace(j,``)}}function N(e){let t=e.indexOf(`=`);if(t===-1)return e;let n=e.slice(0,t),r=M(n);return O.some(e=>e.test(r))?`${n}=${A}`:e}function P(e){return e===``?e:e.split(`&`).map(e=>N(e)).join(`&`)}function F(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=t===-1?``:e.slice(t+1),i=n.indexOf(`?`),a=i===-1?n:n.slice(0,i),o=i===-1?``:n.slice(i+1),s=P(o),c=P(r);return s===o&&c===r?e:`${a}${i===-1?``:`?${s}`}${t===-1?``:`#${c}`}`}function I(e,t){let n=e.getPayload()[t];if(typeof n!=`string`)return;let r=F(n);r!==n&&e.add(t,r)}function L(){return{beforeTrack:e=>{try{for(let t of k)I(e,t)}catch{}}}}function R(e){return e instanceof Element}function z(e){return`data-picked-${e.replaceAll(`_`,`-`)}`}function B(e){let t=[`a`,`button`,`input`,`select`,`textarea`,`details`,`summary`,`label`,`form`,`fieldset`,`legend`,`optgroup`,`option`,`output`,`datalist`,`dialog`,`menu`,`menuitem`,`iframe`,`audio`,`video`,`embed`,`object`,`canvas`].join(`, `);return R(e)?e.matches(t)?e:e.closest(t):null}function V(e){if(e instanceof HTMLSelectElement){let t=e.selectedIndex||0;return e.options[t]?.text??``}return`innerText`in e&&typeof e.innerText==`string`?e.innerText:e.textContent}function H(e){let t=e.getAttribute(`aria-label`);if(t)return t;let n=e.getAttribute(`aria-labelledby`);if(n){let e=document.getElementById(n);if(e){let t=V(e);if(t)return t}}if(`id`in e&&e.id){let t=document.querySelector(`label[for="${e.id}"]`);if(t){let e=V(t);if(e)return e}}let r=e.parentElement;for(;r;){if(r.tagName.toLowerCase()===`label`){let e=V(r);if(e)return e}r=r.parentElement}if(e instanceof HTMLInputElement&&`labels`in e&&e.labels){let t=Array.from(e.labels).map(e=>V(e)).filter(Boolean).join(` `);if(t)return t}return`placeholder`in e&&typeof e.placeholder==`string`?e.placeholder:null}function U(e,t){let n=z(t);return e.getAttribute(n)}function W(e,t){if(!R(e))return null;let n=z(t),r=e.closest(`[${n}]`);if(!r)return null;let i=r.getAttribute(n);return i?{element:r,customEventName:i}:null}var G=255;function K(e){return e?e.slice(0,G):null}Object.defineProperty(exports,"A",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"M",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"j",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return S}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_close.d.ts","sourceRoot":"","sources":["../../../src/events/app_close.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app_close.d.ts","sourceRoot":"","sources":["../../../src/events/app_close.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_initialize.d.ts","sourceRoot":"","sources":["../../../src/events/app_initialize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app_initialize.d.ts","sourceRoot":"","sources":["../../../src/events/app_initialize.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,uBAAuB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_load.d.ts","sourceRoot":"","sources":["../../../src/events/app_load.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app_load.d.ts","sourceRoot":"","sources":["../../../src/events/app_load.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,iBAAiB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app_open.d.ts","sourceRoot":"","sources":["../../../src/events/app_open.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app_open.d.ts","sourceRoot":"","sources":["../../../src/events/app_open.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,iBAAiB,2EAA4C,CAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AnalyticsContext } from '../types';
|
|
2
2
|
import type { EventSchema } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the `cart_add` event for a caller that owns its own tracker.
|
|
5
|
+
*
|
|
6
|
+
* @param {AnalyticsContext} analyticsContext - Carries the project, session and event data.
|
|
7
|
+
* @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
|
|
8
|
+
* @returns {ApplicationEvent} The event and its contexts.
|
|
9
|
+
* @example createCartAddTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' })
|
|
10
|
+
*/
|
|
3
11
|
export declare function createCartAddTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): import("..").SnowplowSelfDescribingEvent;
|
|
4
12
|
export declare const trackCartAddEvent: (eventPayload: AnalyticsContext, eventMeta?: EventSchema['meta']) => void;
|
|
5
13
|
//# sourceMappingURL=cart_add.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart_add.d.ts","sourceRoot":"","sources":["../../../src/events/cart_add.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cart_add.d.ts","sourceRoot":"","sources":["../../../src/events/cart_add.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAyC7C;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,iBAAiB,2EAA4C,CAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AnalyticsContext } from '../types';
|
|
2
2
|
import type { EventSchema } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the `cart_remove` event for a caller that owns its own tracker.
|
|
5
|
+
*
|
|
6
|
+
* @param {AnalyticsContext} analyticsContext - Carries the project, session and event data.
|
|
7
|
+
* @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
|
|
8
|
+
* @returns {ApplicationEvent} The event and its contexts.
|
|
9
|
+
* @example createCartRemoveTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' })
|
|
10
|
+
*/
|
|
3
11
|
export declare function createCartRemoveTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): import("..").SnowplowSelfDescribingEvent;
|
|
4
12
|
export declare const trackCartRemoveEvent: (eventPayload: AnalyticsContext, eventMeta?: EventSchema['meta']) => void;
|
|
5
13
|
//# sourceMappingURL=cart_remove.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart_remove.d.ts","sourceRoot":"","sources":["../../../src/events/cart_remove.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cart_remove.d.ts","sourceRoot":"","sources":["../../../src/events/cart_remove.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAyC7C;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,oBAAoB,2EAA4C,CAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AnalyticsContext } from '../types';
|
|
2
2
|
import type { EventSchema } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the `checkout_complete` event for a caller that owns its own tracker.
|
|
5
|
+
*
|
|
6
|
+
* @param {AnalyticsContext} analyticsContext - Carries the project, session and event data.
|
|
7
|
+
* @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
|
|
8
|
+
* @returns {ApplicationEvent} The event and its contexts.
|
|
9
|
+
* @example createCheckoutCompleteTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' })
|
|
10
|
+
*/
|
|
3
11
|
export declare function createCheckoutCompleteTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): import("..").SnowplowSelfDescribingEvent;
|
|
4
12
|
export declare const trackCheckoutCompleteEvent: (eventPayload: AnalyticsContext, eventMeta?: EventSchema['meta']) => void;
|
|
5
13
|
//# sourceMappingURL=checkout_complete.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout_complete.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_complete.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkout_complete.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_complete.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,gBAAgB,EAUjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA2C7C;;;;;;;GAOG;AACH,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,0BAA0B,2EAA4C,CAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AnalyticsContext } from '../types';
|
|
2
2
|
import type { EventSchema } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the `checkout_start` event for a caller that owns its own tracker.
|
|
5
|
+
*
|
|
6
|
+
* @param {AnalyticsContext} analyticsContext - Carries the project, session and event data.
|
|
7
|
+
* @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
|
|
8
|
+
* @returns {ApplicationEvent} The event and its contexts.
|
|
9
|
+
* @example createCheckoutStartTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' })
|
|
10
|
+
*/
|
|
3
11
|
export declare function createCheckoutStartTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): import("..").SnowplowSelfDescribingEvent;
|
|
4
12
|
export declare const trackCheckoutStartEvent: (eventPayload: AnalyticsContext, eventMeta?: EventSchema['meta']) => void;
|
|
5
13
|
//# sourceMappingURL=checkout_start.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout_start.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_start.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkout_start.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_start.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAyC7C;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC7C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,uBAAuB,2EAA4C,CAAA"}
|
|
@@ -3,9 +3,11 @@ import type { EventSchema } from '../schemas';
|
|
|
3
3
|
/**
|
|
4
4
|
* Tracks a custom event if the element has the corresponding data-picked-* attribute.
|
|
5
5
|
*
|
|
6
|
-
* @param baseEventType - The base event type (e.g., 'click', 'rapid_click').
|
|
7
|
-
* @param interaction - The interaction object
|
|
8
|
-
* @param
|
|
6
|
+
* @param {string} baseEventType - The base event type (e.g., 'click', 'rapid_click').
|
|
7
|
+
* @param {object} interaction - The interaction object.
|
|
8
|
+
* @param {AnalyticsContext} interaction.analyticsContext - The analytics context.
|
|
9
|
+
* @param {Event} interaction.event - The DOM event.
|
|
10
|
+
* @param {EventSchema['meta']} [eventMeta] - Optional event metadata.
|
|
9
11
|
* @example
|
|
10
12
|
* // For an element with data-picked-click="add_to_cart"
|
|
11
13
|
* trackCustomEvent('click', interaction, eventMeta)
|
|
@@ -19,9 +21,9 @@ export declare function trackCustomEvent(baseEventType: string, interaction: {
|
|
|
19
21
|
* Tracks a named custom event without requiring a DOM element.
|
|
20
22
|
* Designed for non-DOM contexts like Google Tag Manager where element inspection is not available.
|
|
21
23
|
*
|
|
22
|
-
* @param analyticsContext - The analytics context containing project and optional context data.
|
|
23
|
-
* @param customEventName - The custom event name to track.
|
|
24
|
-
* @param eventMeta - Optional event metadata.
|
|
24
|
+
* @param {AnalyticsContext} analyticsContext - The analytics context containing project and optional context data.
|
|
25
|
+
* @param {string} customEventName - The custom event name to track.
|
|
26
|
+
* @param {EventSchema['meta']} [eventMeta] - Optional event metadata.
|
|
25
27
|
* @example
|
|
26
28
|
* trackNamedCustomEvent({ projectId: 'proj-1' }, 'signup_complete')
|
|
27
29
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../src/events/custom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../src/events/custom.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,gBAAgB,EAgBjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgG7C;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE;IAAE,gBAAgB,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,EACjE,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CAWN;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,MAAM,EACvB,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CA6CN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experience_load.d.ts","sourceRoot":"","sources":["../../../src/events/experience_load.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"experience_load.d.ts","sourceRoot":"","sources":["../../../src/events/experience_load.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA8B7C,eAAO,MAAM,wBAAwB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature_decide.d.ts","sourceRoot":"","sources":["../../../src/events/feature_decide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"feature_decide.d.ts","sourceRoot":"","sources":["../../../src/events/feature_decide.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,uBAAuB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field_validation_error.d.ts","sourceRoot":"","sources":["../../../src/events/field_validation_error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field_validation_error.d.ts","sourceRoot":"","sources":["../../../src/events/field_validation_error.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,eAAO,MAAM,8BAA8B,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form_submit.d.ts","sourceRoot":"","sources":["../../../src/events/form_submit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form_submit.d.ts","sourceRoot":"","sources":["../../../src/events/form_submit.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,oBAAoB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form_submit_error.d.ts","sourceRoot":"","sources":["../../../src/events/form_submit_error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form_submit_error.d.ts","sourceRoot":"","sources":["../../../src/events/form_submit_error.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,eAAO,MAAM,yBAAyB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form_submit_success.d.ts","sourceRoot":"","sources":["../../../src/events/form_submit_success.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form_submit_success.d.ts","sourceRoot":"","sources":["../../../src/events/form_submit_success.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgC7C,eAAO,MAAM,2BAA2B,2EAA4C,CAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AnalyticsContext } from '../types';
|
|
2
2
|
import type { EventSchema } from '../schemas';
|
|
3
|
+
/**
|
|
4
|
+
* Builds the `identify` event for a caller that owns its own tracker.
|
|
5
|
+
*
|
|
6
|
+
* @param {AnalyticsContext} analyticsContext - Carries the project, session and event data.
|
|
7
|
+
* @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
|
|
8
|
+
* @returns {ApplicationEvent} The event and its contexts.
|
|
9
|
+
* @example createIdentifyTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' })
|
|
10
|
+
*/
|
|
3
11
|
export declare function createIdentifyTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): import("..").SnowplowSelfDescribingEvent;
|
|
4
12
|
export declare const trackIdentifyEvent: (eventPayload: AnalyticsContext, eventMeta?: EventSchema['meta']) => void;
|
|
5
13
|
//# sourceMappingURL=identify.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../../src/events/identify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../../src/events/identify.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAyC7C;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"back.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/back.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"back.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/back.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backspace.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/backspace.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"backspace.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/backspace.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAsEhD,eAAO,MAAM,UAAU;sBA1DY,gBAAgB;WAAS,aAAa;2CA0DN,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/click.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/click.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAqEhD,eAAO,MAAM,UAAU;sBA1DY,gBAAgB;WAAS,KAAK;2CA0DE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/copy.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/copy.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAiEhD,eAAO,MAAM,UAAU;sBArDY,gBAAgB;WAAS,KAAK;2CAqDE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/drag.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/drag.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAiEhD,eAAO,MAAM,UAAU;sBArDY,gBAAgB;WAAS,KAAK;2CAqDE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forward.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/forward.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forward.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/forward.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mouse_shake.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/mouse_shake.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mouse_shake.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/mouse_shake.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offline.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/offline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offline.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/offline.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"online.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/online.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"online.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/online.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page_hidden.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_hidden.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page_hidden.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_hidden.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page_hide.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_hide.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page_hide.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_hide.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page_show.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_show.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page_show.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_show.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page_visible.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_visible.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"page_visible.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/page_visible.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAmChD,eAAO,MAAM,UAAU;sBAxBY,gBAAgB;WAAS,KAAK;2CAwBE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paste.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/paste.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"paste.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/paste.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAiEhD,eAAO,MAAM,UAAU;sBArDY,gBAAgB;WAAS,KAAK;2CAqDE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rapid_click.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/rapid_click.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"rapid_click.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/rapid_click.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAsEhD,eAAO,MAAM,UAAU;sBA1DY,gBAAgB;WAAS,KAAK;2CA0DE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rapid_scroll.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/rapid_scroll.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"rapid_scroll.d.ts","sourceRoot":"","sources":["../../../../src/events/interaction/rapid_scroll.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,aAAa,CAAA;AAWpB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAsEhD,eAAO,MAAM,UAAU;sBA1DY,gBAAgB;WAAS,KAAK;2CA0DE,CAAA"}
|