@picked/analytics 0.0.1-dev.1789541668638 → 0.0.1-dev.1793756239746

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.
Files changed (76) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +28 -30
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/cjs/index.js +1 -1
  5. package/dist/cjs/interactions/document.js +1 -0
  6. package/dist/cjs/plugins/analytics/index.js +1 -1
  7. package/dist/esm/index.js +1 -2
  8. package/dist/esm/interactions/document.js +106 -0
  9. package/dist/esm/plugins/analytics/index.js +42 -42
  10. package/dist/src-CISLSCgY.cjs +1 -0
  11. package/dist/src-CJpBtvR7.js +1008 -0
  12. package/dist/text-BfR9q1WW.js +361 -0
  13. package/dist/text-CGbjivo-.cjs +1 -0
  14. package/dist/types/events/index.d.ts +3 -0
  15. package/dist/types/events/index.d.ts.map +1 -1
  16. package/dist/types/events/lead_created.d.ts +13 -0
  17. package/dist/types/events/lead_created.d.ts.map +1 -0
  18. package/dist/types/events/lead_updated.d.ts +13 -0
  19. package/dist/types/events/lead_updated.d.ts.map +1 -0
  20. package/dist/types/interactions/document.d.ts +44 -0
  21. package/dist/types/interactions/document.d.ts.map +1 -0
  22. package/dist/types/plugins/analytics/plugin.d.ts +21 -2
  23. package/dist/types/plugins/analytics/plugin.d.ts.map +1 -1
  24. package/dist/types/schemas/answer_list/index.d.ts +3 -4
  25. package/dist/types/schemas/answer_list/index.d.ts.map +1 -1
  26. package/dist/types/schemas/app/1-0-0.d.ts +1 -3
  27. package/dist/types/schemas/app/1-0-0.d.ts.map +1 -1
  28. package/dist/types/schemas/cvly_x/1-0-0.d.ts +1 -3
  29. package/dist/types/schemas/cvly_x/1-0-0.d.ts.map +1 -1
  30. package/dist/types/schemas/deployment/1-0-0.d.ts +1 -3
  31. package/dist/types/schemas/deployment/1-0-0.d.ts.map +1 -1
  32. package/dist/types/schemas/experience/1-0-0.d.ts +1 -3
  33. package/dist/types/schemas/experience/1-0-0.d.ts.map +1 -1
  34. package/dist/types/schemas/feature_list/1-0-0.d.ts +1 -3
  35. package/dist/types/schemas/feature_list/1-0-0.d.ts.map +1 -1
  36. package/dist/types/schemas/product_list/1-0-0.d.ts +1 -3
  37. package/dist/types/schemas/product_list/1-0-0.d.ts.map +1 -1
  38. package/dist/types/schemas/product_list/2-0-0.d.ts +1 -3
  39. package/dist/types/schemas/product_list/2-0-0.d.ts.map +1 -1
  40. package/dist/types/schemas/question_list/index.d.ts +3 -4
  41. package/dist/types/schemas/question_list/index.d.ts.map +1 -1
  42. package/dist/types/schemas/recommendation_list/index.d.ts +3 -4
  43. package/dist/types/schemas/recommendation_list/index.d.ts.map +1 -1
  44. package/dist/types/schemas/session/1-0-0.d.ts +1 -3
  45. package/dist/types/schemas/session/1-0-0.d.ts.map +1 -1
  46. package/dist/types/schemas/session/1-0-1.d.ts +1 -3
  47. package/dist/types/schemas/session/1-0-1.d.ts.map +1 -1
  48. package/dist/types/schemas/session/1-0-2.d.ts +1 -3
  49. package/dist/types/schemas/session/1-0-2.d.ts.map +1 -1
  50. package/dist/types/schemas/session/1-0-3.d.ts +1 -3
  51. package/dist/types/schemas/session/1-0-3.d.ts.map +1 -1
  52. package/dist/types/schemas/session/2-0-0.d.ts +59 -0
  53. package/dist/types/schemas/session/2-0-0.d.ts.map +1 -0
  54. package/dist/types/schemas/session/index.d.ts +55 -0
  55. package/dist/types/schemas/session/index.d.ts.map +1 -1
  56. package/dist/types/schemas/step/1-0-0.d.ts +1 -3
  57. package/dist/types/schemas/step/1-0-0.d.ts.map +1 -1
  58. package/dist/types/snowplow-plugins/event-meta.d.ts +24 -0
  59. package/dist/types/snowplow-plugins/event-meta.d.ts.map +1 -0
  60. package/dist/types/tracker.d.ts +5 -3
  61. package/dist/types/tracker.d.ts.map +1 -1
  62. package/dist/types/types.d.ts +25 -5
  63. package/dist/types/types.d.ts.map +1 -1
  64. package/package.json +32 -7
  65. package/dist/src-Bg5baSBO.js +0 -1318
  66. package/dist/src-XGiRLTMI.cjs +0 -1
  67. package/dist/types/events/interaction/video_pause.d.ts +0 -8
  68. package/dist/types/events/interaction/video_pause.d.ts.map +0 -1
  69. package/dist/types/events/interaction/video_play.d.ts +0 -8
  70. package/dist/types/events/interaction/video_play.d.ts.map +0 -1
  71. package/dist/types/listeners/video_pause.d.ts +0 -3
  72. package/dist/types/listeners/video_pause.d.ts.map +0 -1
  73. package/dist/types/listeners/video_play.d.ts +0 -3
  74. package/dist/types/listeners/video_play.d.ts.map +0 -1
  75. package/dist/types/plugins/index.d.ts +0 -2
  76. package/dist/types/plugins/index.d.ts.map +0 -1
@@ -0,0 +1,361 @@
1
+ import { trackSelfDescribingEvent as e } from "@snowplow/browser-tracker";
2
+ import { supportsCookies as t, supportsDocument as n, supportsWindow as r } from "@picked/client";
3
+ //#region src/utils.ts
4
+ function i(e, t) {
5
+ return `iglu:dev.pckd/${e}/jsonschema/${t}`;
6
+ }
7
+ function a(e, ...t) {}
8
+ function o(e, t, n = {}) {
9
+ return {
10
+ event: {
11
+ schema: i("event", "1-0-0"),
12
+ data: {
13
+ type: e,
14
+ meta: n
15
+ }
16
+ },
17
+ context: t.filter((e) => e !== void 0)
18
+ };
19
+ }
20
+ function s(e, t, n) {
21
+ return {
22
+ schema: i(e, t),
23
+ data: n
24
+ };
25
+ }
26
+ function c(t, n) {
27
+ return (t, r) => {
28
+ let i = n(t, r);
29
+ e(i);
30
+ };
31
+ }
32
+ function l(e, t, n = { passive: !0 }) {
33
+ let r = /* @__PURE__ */ new WeakMap();
34
+ return (i, a) => {
35
+ let o = r.get(i);
36
+ if (o || (o = /* @__PURE__ */ new Set(), r.set(i, o)), o.has(e)) return;
37
+ function s(e) {
38
+ t({
39
+ event: e,
40
+ analyticsContext: a()
41
+ });
42
+ }
43
+ i.addEventListener(e, s, n), o.add(e);
44
+ };
45
+ }
46
+ function u(e, t) {
47
+ let r = /* @__PURE__ */ new Set();
48
+ return (i) => {
49
+ if (r.has(e) || !n()) return;
50
+ function a(e) {
51
+ t({
52
+ event: e,
53
+ analyticsContext: i()
54
+ });
55
+ }
56
+ document.addEventListener(e, a, { passive: !0 }), r.add(e);
57
+ };
58
+ }
59
+ function d(e, t) {
60
+ let n = /* @__PURE__ */ new Set();
61
+ return (i) => {
62
+ if (n.has(e) || !r()) return;
63
+ function a(e) {
64
+ t({
65
+ event: e,
66
+ analyticsContext: i()
67
+ });
68
+ }
69
+ window.addEventListener(e, a, { passive: !0 }), n.add(e);
70
+ };
71
+ }
72
+ function f(e) {
73
+ return { items: e.features?.map(({ feature: e, name: t, key: n, bucket: r }) => ({
74
+ ab_feature: e,
75
+ ab_name: t,
76
+ ab_key: n,
77
+ ab_bucket: r
78
+ })) || [] };
79
+ }
80
+ var p = "unknown";
81
+ function m(e) {
82
+ let t = E(), n = { id: e.sessionId || null };
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;
84
+ }
85
+ function h(e) {
86
+ if (e.fields) return { items: e.fields.map(({ id: e, type: t, label: n, options: r }) => ({
87
+ id: e,
88
+ type: t,
89
+ label: n,
90
+ options: Array.isArray(r) ? r.map(({ id: e, label: t, value: n }) => ({
91
+ id: e,
92
+ label: t,
93
+ value: n
94
+ })) : void 0
95
+ })) };
96
+ }
97
+ function g(e) {
98
+ if (!e.responses) return;
99
+ let t = e.fields ?? [], n = e.responses.filter(({ fieldKey: e }) => t.find((t) => t.key === e)?.policies?.trackValue === !0);
100
+ if (n.length !== 0) return { items: n.map(({ fieldKey: e, value: t }) => ({
101
+ field_id: e,
102
+ values: Array.isArray(t) ? t.map((e) => ({ value: e })) : [{ value: t }]
103
+ })) };
104
+ }
105
+ function _(e, t = !1) {
106
+ let { step: n } = e;
107
+ if (n) return {
108
+ id: n.id,
109
+ title: n.name,
110
+ key: n.key
111
+ };
112
+ if (t) return {
113
+ id: p,
114
+ title: p,
115
+ key: p
116
+ };
117
+ }
118
+ function v(e, t = !1) {
119
+ let { productList: n } = e;
120
+ if (n) {
121
+ let e = {};
122
+ "title" in n && n.title && Object.assign(e, { title: n.title });
123
+ let t = "items" in n ? n.items : n;
124
+ return Object.assign(e, { items: t.map((e) => ({
125
+ item_id: e.itemId,
126
+ item_name: e.itemName,
127
+ affiliation: e.affiliation,
128
+ coupon: e.coupon,
129
+ currency: e.currency,
130
+ creative_name: e.creativeName,
131
+ creative_slot: e.creativeSlot,
132
+ discount: T(e.discount),
133
+ index: T(e.index),
134
+ item_brand: e.itemBrand,
135
+ item_category: e.itemCategory,
136
+ item_category2: e.itemCategory2,
137
+ item_category3: e.itemCategory3,
138
+ item_category4: e.itemCategory4,
139
+ item_category5: e.itemCategory5,
140
+ item_list_id: e.itemListId,
141
+ item_list_name: e.itemListName,
142
+ item_variant: e.itemVariant,
143
+ location_id: e.locationId,
144
+ price: T(e.price),
145
+ promotion_id: e.promotionId,
146
+ promotion_name: e.promotionName,
147
+ quantity: T(e.quantity),
148
+ in_stock: e.inStock
149
+ })) }), e;
150
+ }
151
+ if (t) return { items: [] };
152
+ }
153
+ function y(e, t = !1) {
154
+ let { order: n } = e;
155
+ if (n) {
156
+ let e = { id: n.id };
157
+ return n.checkoutToken && (e.checkout_token = n.checkoutToken), n.cartToken && (e.cart_token = n.cartToken), n.customerId && (e.customer_id = n.customerId), e;
158
+ }
159
+ if (t) return { id: p };
160
+ }
161
+ function b(e, t = !1) {
162
+ let { experience: n } = e;
163
+ if (n) return {
164
+ id: n.id,
165
+ title: n.title
166
+ };
167
+ if (t) return {
168
+ id: p,
169
+ title: p
170
+ };
171
+ }
172
+ function x(e, t = !1) {
173
+ let { exception: n } = e;
174
+ if (n) return typeof n == "string" ? { reason: n } : { reason: n.systemMessage };
175
+ if (t) return { reason: p };
176
+ }
177
+ function S(e) {
178
+ let { form: t } = e;
179
+ return t ? {
180
+ id: t.id,
181
+ title: t.title
182
+ } : {
183
+ id: p,
184
+ title: p
185
+ };
186
+ }
187
+ function C(e) {
188
+ let { modal: t } = e;
189
+ return t ? {
190
+ id: t.id,
191
+ title: t.title
192
+ } : {
193
+ id: p,
194
+ title: p
195
+ };
196
+ }
197
+ function w(e, t = 300) {
198
+ let n;
199
+ return (...r) => {
200
+ clearTimeout(n), n = setTimeout(() => e(...r), t);
201
+ };
202
+ }
203
+ function T(e) {
204
+ if (typeof e == "number") return e;
205
+ if (typeof e != "string") return;
206
+ let t = parseFloat(e);
207
+ if (!isNaN(t)) return t;
208
+ }
209
+ function E() {
210
+ if (!n() || !t()) return null;
211
+ let e = document.cookie ? document.cookie.split(";") : [];
212
+ for (let t of e) {
213
+ let e = t.trim();
214
+ if (e.startsWith("_ga=")) {
215
+ let t = e.substring(4).split(".");
216
+ if (t.length > 2) return t.slice(2).join(".");
217
+ }
218
+ }
219
+ return null;
220
+ }
221
+ //#endregion
222
+ //#region src/snowplow-plugins/url-scrub.ts
223
+ var D = Object.freeze([
224
+ /token$/i,
225
+ /apikey$/i,
226
+ /secret$/i,
227
+ /password$/i,
228
+ /email$/i,
229
+ /^code$/i
230
+ ]), O = ["url", "refr"], k = "REDACTED", A = /[_-]/g;
231
+ function j(e) {
232
+ try {
233
+ return decodeURIComponent(e).toLowerCase().replace(A, "");
234
+ } catch {
235
+ return e.toLowerCase().replace(A, "");
236
+ }
237
+ }
238
+ function M(e) {
239
+ let t = e.indexOf("=");
240
+ if (t === -1) return e;
241
+ let n = e.slice(0, t), r = j(n);
242
+ return D.some((e) => e.test(r)) ? `${n}=${k}` : e;
243
+ }
244
+ function N(e) {
245
+ return e === "" ? e : e.split("&").map((e) => M(e)).join("&");
246
+ }
247
+ function P(e) {
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 = N(o), c = N(r);
249
+ return s === o && c === r ? e : `${a}${i === -1 ? "" : `?${s}`}${t === -1 ? "" : `#${c}`}`;
250
+ }
251
+ function F(e, t) {
252
+ let n = e.getPayload()[t];
253
+ if (typeof n != "string") return;
254
+ let r = P(n);
255
+ r !== n && e.add(t, r);
256
+ }
257
+ function I() {
258
+ return { beforeTrack: (e) => {
259
+ try {
260
+ for (let t of O) F(e, t);
261
+ } catch {}
262
+ } };
263
+ }
264
+ //#endregion
265
+ //#region src/helpers/element.ts
266
+ function L(e) {
267
+ return e instanceof Element;
268
+ }
269
+ function R(e) {
270
+ return `data-picked-${e.replaceAll("_", "-")}`;
271
+ }
272
+ function z(e) {
273
+ let t = [
274
+ "a",
275
+ "button",
276
+ "input",
277
+ "select",
278
+ "textarea",
279
+ "details",
280
+ "summary",
281
+ "label",
282
+ "form",
283
+ "fieldset",
284
+ "legend",
285
+ "optgroup",
286
+ "option",
287
+ "output",
288
+ "datalist",
289
+ "dialog",
290
+ "menu",
291
+ "menuitem",
292
+ "iframe",
293
+ "audio",
294
+ "video",
295
+ "embed",
296
+ "object",
297
+ "canvas"
298
+ ].join(", ");
299
+ return L(e) ? e.matches(t) ? e : e.closest(t) : null;
300
+ }
301
+ function B(e) {
302
+ if (e instanceof HTMLSelectElement) {
303
+ let t = e.selectedIndex || 0;
304
+ return e.options[t]?.text ?? "";
305
+ }
306
+ return "innerText" in e && typeof e.innerText == "string" ? e.innerText : e.textContent;
307
+ }
308
+ function V(e) {
309
+ let t = e.getAttribute("aria-label");
310
+ if (t) return t;
311
+ let n = e.getAttribute("aria-labelledby");
312
+ if (n) {
313
+ let e = document.getElementById(n);
314
+ if (e) {
315
+ let t = B(e);
316
+ if (t) return t;
317
+ }
318
+ }
319
+ if ("id" in e && e.id) {
320
+ let t = document.querySelector(`label[for="${e.id}"]`);
321
+ if (t) {
322
+ let e = B(t);
323
+ if (e) return e;
324
+ }
325
+ }
326
+ let r = e.parentElement;
327
+ for (; r;) {
328
+ if (r.tagName.toLowerCase() === "label") {
329
+ let e = B(r);
330
+ if (e) return e;
331
+ }
332
+ r = r.parentElement;
333
+ }
334
+ if (e instanceof HTMLInputElement && "labels" in e && e.labels) {
335
+ let t = Array.from(e.labels).map((e) => B(e)).filter(Boolean).join(" ");
336
+ if (t) return t;
337
+ }
338
+ return "placeholder" in e && typeof e.placeholder == "string" ? e.placeholder : null;
339
+ }
340
+ function H(e, t) {
341
+ let n = R(t);
342
+ return e.getAttribute(n);
343
+ }
344
+ function U(e, t) {
345
+ if (!L(e)) return null;
346
+ let n = R(t), r = e.closest(`[${n}]`);
347
+ if (!r) return null;
348
+ let i = r.getAttribute(n);
349
+ return i ? {
350
+ element: r,
351
+ customEventName: i
352
+ } : null;
353
+ }
354
+ //#endregion
355
+ //#region src/helpers/text.ts
356
+ var W = 255;
357
+ function G(e) {
358
+ return e ? e.slice(0, W) : null;
359
+ }
360
+ //#endregion
361
+ export { C, m as D, g as E, _ as O, S, v as T, w as _, H as a, f as b, L as c, l as d, s as f, d as g, c as h, U as i, a as k, P as l, o as m, R as n, V as o, u as p, z as r, B as s, G as t, I as u, x as v, y as w, h as x, b 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){let t=w(),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 p(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 m(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 h(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 g(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:C(e.discount),index:C(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:C(e.price),promotion_id:e.promotionId,promotion_name:e.promotionName,quantity:C(e.quantity),in_stock:e.inStock}))}),e}if(t)return{items:[]}}function _(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 v(e,t=!1){let{experience:n}=e;if(n)return{id:n.id,title:n.title};if(t)return{id:d,title:d}}function y(e,t=!1){let{exception:n}=e;if(n)return typeof n==`string`?{reason:n}:{reason:n.systemMessage};if(t)return{reason:d}}function b(e){let{form:t}=e;return t?{id:t.id,title:t.title}:{id:d,title:d}}function x(e){let{modal:t}=e;return t?{id:t.id,title:t.title}:{id:d,title:d}}function S(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}}function C(e){if(typeof e==`number`)return e;if(typeof e!=`string`)return;let t=parseFloat(e);if(!isNaN(t))return t}function w(){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 T=Object.freeze([/token$/i,/apikey$/i,/secret$/i,/password$/i,/email$/i,/^code$/i]),E=[`url`,`refr`],D=`REDACTED`,O=/[_-]/g;function k(e){try{return decodeURIComponent(e).toLowerCase().replace(O,``)}catch{return e.toLowerCase().replace(O,``)}}function A(e){let t=e.indexOf(`=`);if(t===-1)return e;let n=e.slice(0,t),r=k(n);return T.some(e=>e.test(r))?`${n}=${D}`:e}function j(e){return e===``?e:e.split(`&`).map(e=>A(e)).join(`&`)}function M(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=j(o),c=j(r);return s===o&&c===r?e:`${a}${i===-1?``:`?${s}`}${t===-1?``:`#${c}`}`}function N(e,t){let n=e.getPayload()[t];if(typeof n!=`string`)return;let r=M(n);r!==n&&e.add(t,r)}function P(){return{beforeTrack:e=>{try{for(let t of E)N(e,t)}catch{}}}}function F(e){return e instanceof Element}function I(e){return`data-picked-${e.replaceAll(`_`,`-`)}`}function L(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 F(e)?e.matches(t)?e:e.closest(t):null}function R(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 z(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=R(e);if(t)return t}}if(`id`in e&&e.id){let t=document.querySelector(`label[for="${e.id}"]`);if(t){let e=R(t);if(e)return e}}let r=e.parentElement;for(;r;){if(r.tagName.toLowerCase()===`label`){let e=R(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=>R(e)).filter(Boolean).join(` `);if(t)return t}return`placeholder`in e&&typeof e.placeholder==`string`?e.placeholder:null}function B(e,t){let n=I(t);return e.getAttribute(n)}function V(e,t){if(!F(e))return null;let n=I(t),r=e.closest(`[${n}]`);if(!r)return null;let i=r.getAttribute(n);return i?{element:r,customEventName:i}:null}var H=255;function U(e){return e?e.slice(0,H):null}Object.defineProperty(exports,"C",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"D",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"E",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"O",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"S",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"T",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"b",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return F}}),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 V}}),Object.defineProperty(exports,"k",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return R}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,"w",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"x",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return v}});
@@ -1,3 +1,4 @@
1
+ /** @file Barrel for every analytics event builder and tracker. */
1
2
  export * from './app_close';
2
3
  export * from './app_initialize';
3
4
  export * from './app_load';
@@ -27,6 +28,8 @@ export * from './form_submit_error';
27
28
  export * from './form_submit_success';
28
29
  export * from './identify';
29
30
  export * from './lead_capture';
31
+ export * from './lead_created';
32
+ export * from './lead_updated';
30
33
  export * from './modal_close';
31
34
  export * from './modal_open';
32
35
  export * from './page_view';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/events/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { AnalyticsContext, SnowplowSelfDescribingEvent } from '../types';
2
+ import type { EventSchema } from '../schemas';
3
+ /**
4
+ * Builds the `lead_created` event for a caller that owns its own tracker, such as a
5
+ * server emitting on a visitor's behalf.
6
+ *
7
+ * @param {AnalyticsContext} analyticsContext - Carries the project and the visitor's session.
8
+ * @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
9
+ * @returns {SnowplowSelfDescribingEvent} The event and its contexts.
10
+ * @example createLeadCreatedTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' }, { lead_id: 'lead_1' })
11
+ */
12
+ export declare function createLeadCreatedTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): SnowplowSelfDescribingEvent;
13
+ //# sourceMappingURL=lead_created.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lead_created.d.ts","sourceRoot":"","sources":["../../../src/events/lead_created.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAIhB,2BAA2B,EAC5B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA6B7C;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,2BAA2B,CAE7B"}
@@ -0,0 +1,13 @@
1
+ import type { AnalyticsContext, SnowplowSelfDescribingEvent } from '../types';
2
+ import type { EventSchema } from '../schemas';
3
+ /**
4
+ * Builds the `lead_updated` event for a caller that owns its own tracker, such as a
5
+ * server emitting on a visitor's behalf.
6
+ *
7
+ * @param {AnalyticsContext} analyticsContext - Carries the project and the visitor's session.
8
+ * @param {EventSchema['meta']} [eventMeta] - Values to record alongside the event.
9
+ * @returns {SnowplowSelfDescribingEvent} The event and its contexts.
10
+ * @example createLeadUpdatedTrackerEvent({ projectId: 'proj_1', sessionId: 'sess_1' }, { lead_id: 'lead_1' })
11
+ */
12
+ export declare function createLeadUpdatedTrackerEvent(analyticsContext: AnalyticsContext, eventMeta?: EventSchema['meta']): SnowplowSelfDescribingEvent;
13
+ //# sourceMappingURL=lead_updated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lead_updated.d.ts","sourceRoot":"","sources":["../../../src/events/lead_updated.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAIhB,2BAA2B,EAC5B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AA6B7C;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,2BAA2B,CAE7B"}
@@ -0,0 +1,44 @@
1
+ import type { AnalyticsPluginCapability } from '../types';
2
+ /** The tagged interactions the capability can capture, named after their `data-picked-*` tag. */
3
+ export declare const DOCUMENT_INTERACTION_EVENT_NAMES: readonly ["click", "toggle", "video_play", "video_pause"];
4
+ /** One of {@link DOCUMENT_INTERACTION_EVENT_NAMES}. */
5
+ export type DocumentInteractionEventName = (typeof DOCUMENT_INTERACTION_EVENT_NAMES)[number];
6
+ /** Options for {@link documentInteractions}. */
7
+ export interface DocumentInteractionsOptions {
8
+ /** The tagged interactions to capture. */
9
+ events: readonly DocumentInteractionEventName[];
10
+ }
11
+ /**
12
+ * Builds the document-scoped tagged interaction capability for
13
+ * `analyticsPlugin({ documentInteractions })`. Once set up, it listens on `document` —
14
+ * `click` in the bubble phase, `toggle`, `play` and `pause` in the capture phase — and tracks
15
+ * an interaction only when its element carries the matching tag (`data-picked-click`,
16
+ * `data-picked-toggle`, `data-picked-video-play`, `data-picked-video-pause`), naming the
17
+ * event after the tag's value. Each event carries the `app`, `session`, `element` and
18
+ * `feature_list` contexts, plus `experience` and `step` from the nearest
19
+ * `[data-picked-experience-id]` wrapper.
20
+ *
21
+ * The tag, meta and wrapper are read from the event's composed path, which is fixed when
22
+ * dispatch starts, so an element that a listener below `document` detaches or replaces first
23
+ * is still resolved through its original ancestors. A click resolves the first tagged element
24
+ * of that path, which runs through the flat tree: tags inside open shadow roots, on shadow
25
+ * hosts and on the shadow elements around the slot that renders slotted content are all seen,
26
+ * and a closed shadow root exposes only its host. A click from inside a listed experience
27
+ * instance's shadow root is skipped, and so is a click on a label's content whose connected
28
+ * control, inside the same tagged element or its shadow content, receives the follow-up click
29
+ * the browser sends.
30
+ *
31
+ * Each DOM event type binds once per document: a later setup binds only types not yet bound,
32
+ * and the first setup's client and reader serve every event. Unknown names in `events` are
33
+ * dropped with a `console.warn`.
34
+ *
35
+ * @param {DocumentInteractionsOptions} options - The tagged interactions to capture.
36
+ * @returns {AnalyticsPluginCapability} The capability to pass to `analyticsPlugin`.
37
+ * @example
38
+ * analyticsPlugin({
39
+ * trackerOptions,
40
+ * documentInteractions: documentInteractions({ events: ['click', 'toggle'] }),
41
+ * })
42
+ */
43
+ export declare function documentInteractions({ events, }: DocumentInteractionsOptions): AnalyticsPluginCapability;
44
+ //# sourceMappingURL=document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/interactions/document.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAEV,yBAAyB,EAQ1B,MAAM,UAAU,CAAA;AAEjB,iGAAiG;AACjG,eAAO,MAAM,gCAAgC,2DAKlC,CAAA;AAEX,uDAAuD;AACvD,MAAM,MAAM,4BAA4B,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5F,gDAAgD;AAChD,MAAM,WAAW,2BAA2B;IAC1C,0CAA0C;IAC1C,MAAM,EAAE,SAAS,4BAA4B,EAAE,CAAA;CAChD;AAoQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,GACP,EAAE,2BAA2B,GAAG,yBAAyB,CAkEzD"}
@@ -1,13 +1,32 @@
1
1
  /** @file Analytics plugin — tracks Picked events (experiences, features, steps, forms) using Snowplow. */
2
2
  import type { Picked } from '@picked/client';
3
- import type { CreateTrackerOptions } from '../../types';
3
+ import type { AnalyticsPluginCapability, CreateTrackerOptions } from '../../types';
4
4
  import { type InteractionEventName } from '../../interaction-events';
5
5
  interface AnalyticsPluginOptions {
6
6
  trackerOptions: CreateTrackerOptions;
7
7
  enableDocumentListeners?: boolean;
8
8
  enableInteractionListeners?: boolean | readonly InteractionEventName[];
9
+ /**
10
+ * Document-scoped tagged interaction capture, from
11
+ * `@picked/analytics/interactions/document`. Set up once the tracker exists.
12
+ */
13
+ documentInteractions?: AnalyticsPluginCapability;
9
14
  }
10
- export declare const analyticsPlugin: ({ trackerOptions, enableDocumentListeners, enableInteractionListeners, }: AnalyticsPluginOptions) => {
15
+ /**
16
+ * Builds the Picked client plugin that creates a Snowplow tracker and tracks the client's
17
+ * event-bus events, plus whichever listeners and capabilities the options enable. It does
18
+ * nothing outside a browser.
19
+ *
20
+ * @param {AnalyticsPluginOptions} options - Tracker options, listener toggles and the
21
+ * document-interaction capability.
22
+ * @returns {{ name: string; setup: (client: Picked) => void }} The client plugin.
23
+ * @example
24
+ * createClient({
25
+ * projectId,
26
+ * plugins: [analyticsPlugin({ trackerOptions: { deployment: { env: 'production' } } })],
27
+ * })
28
+ */
29
+ export declare const analyticsPlugin: ({ trackerOptions, enableDocumentListeners, enableInteractionListeners, documentInteractions, }: AnalyticsPluginOptions) => {
11
30
  name: string;
12
31
  setup: (client: Picked) => void;
13
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analytics/plugin.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,OAAO,KAAK,EAIV,MAAM,EAEP,MAAM,gBAAgB,CAAA;AAsBvB,OAAO,KAAK,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACzE,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAA;AAEjC,UAAU,sBAAsB;IAC9B,cAAc,EAAE,oBAAoB,CAAA;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,0BAA0B,CAAC,EAAE,OAAO,GAAG,SAAS,oBAAoB,EAAE,CAAA;CACvE;AAwDD,eAAO,MAAM,eAAe,6EAIzB,sBAAsB,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAmL1E,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analytics/plugin.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,OAAO,KAAK,EAIV,MAAM,EAEP,MAAM,gBAAgB,CAAA;AAsBvB,OAAO,KAAK,EAAoB,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACpG,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAA;AAEjC,UAAU,sBAAsB;IAC9B,cAAc,EAAE,oBAAoB,CAAA;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,0BAA0B,CAAC,EAAE,OAAO,GAAG,SAAS,oBAAoB,EAAE,CAAA;IACtE;;;OAGG;IACH,oBAAoB,CAAC,EAAE,yBAAyB,CAAA;CACjD;AAwDD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,mGAKzB,sBAAsB,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAsL1E,CAAA"}
@@ -1,6 +1,6 @@
1
- import type { Schema as Schema1_0_0, Version as Version1_0_0 } from './1-0-0';
1
+ /** @file The `answer_list` context schemas, by version. */
2
2
  import type { SchemaUrl } from '../../types';
3
- export declare const name = "answer_list";
3
+ import type { Schema as Schema1_0_0, Version as Version1_0_0 } from './1-0-0';
4
4
  export declare const schemas: {
5
5
  '1-0-0': {
6
6
  readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
@@ -64,6 +64,5 @@ export declare const schemas: {
64
64
  };
65
65
  };
66
66
  export type CurrentSchema = Schema1_0_0;
67
- export type CurrentVersion = Version1_0_0;
68
- export type Url = SchemaUrl<typeof name, CurrentVersion>;
67
+ export type Url = SchemaUrl<'answer_list', Version1_0_0>;
69
68
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/answer_list/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,eAAO,MAAM,IAAI,gBAAgB,CAAA;AAEjC,eAAO,MAAM,OAAO;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACR,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAA;AACvC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAA;AACzC,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,IAAI,EAAE,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/answer_list/index.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAG7E,eAAO,MAAM,OAAO;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACR,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAA;AACvC,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,aAAa,EAAE,YAAY,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { FromSchema } from 'json-schema-to-ts';
1
+ /** @file The `app` context schema, version 1-0-0. */
2
2
  export declare const schema: {
3
3
  readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
4
4
  readonly additionalProperties: true;
@@ -30,6 +30,4 @@ export declare const schema: {
30
30
  };
31
31
  readonly type: 'object';
32
32
  };
33
- export type Schema = FromSchema<typeof schema>;
34
- export type Version = typeof schema.self.version;
35
33
  //# sourceMappingURL=1-0-0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/app/1-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,mBAAmB;aAChC,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,eAAe;qBACb,WAAW,EAAE,qBAAqB;qBAClC,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,UAAU;qBACR,WAAW,EAAE,gBAAgB;qBAC7B,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,oBAAoB;qBACpB,IAAI,YAAG,QAAQ,EAAE,MAAM;;;aAG3B,QAAQ,YAAG,iBAAiB,EAAE,YAAY;aAC1C,IAAI;iBACF,MAAM,EAAE,UAAU;iBAClB,IAAI,EAAE,KAAK;iBACX,MAAM,EAAE,YAAY;iBACpB,OAAO,EAAE,OAAO;;aAElB,IAAI,EAAE,QAAQ;CACN,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAA;AAC9C,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA"}
1
+ {"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/app/1-0-0.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,mBAAmB;aAChC,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,eAAe;qBACb,WAAW,EAAE,qBAAqB;qBAClC,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,UAAU;qBACR,WAAW,EAAE,gBAAgB;qBAC7B,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,oBAAoB;qBACpB,IAAI,YAAG,QAAQ,EAAE,MAAM;;;aAG3B,QAAQ,YAAG,iBAAiB,EAAE,YAAY;aAC1C,IAAI;iBACF,MAAM,EAAE,UAAU;iBAClB,IAAI,EAAE,KAAK;iBACX,MAAM,EAAE,YAAY;iBACpB,OAAO,EAAE,OAAO;;aAElB,IAAI,EAAE,QAAQ;CACN,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { FromSchema } from 'json-schema-to-ts';
1
+ /** @file The `cvly_x` context schema, version 1-0-0. */
2
2
  export declare const schema: {
3
3
  readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
4
4
  readonly additionalProperties: true;
@@ -40,6 +40,4 @@ export declare const schema: {
40
40
  };
41
41
  readonly type: 'object';
42
42
  };
43
- export type Schema = FromSchema<typeof schema>;
44
- export type Version = typeof schema.self.version;
45
43
  //# sourceMappingURL=1-0-0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/cvly_x/1-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,uCAAuC;aACpD,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,cAAc;qBACZ,WAAW,EAAE,oBAAoB;qBACjC,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;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,SAAS,EAAE,GAAG;;iBAEhB,UAAU;qBACR,WAAW,EAAE,2BAA2B;qBACxC,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,oBAAoB;qBACpB,IAAI,YAAG,QAAQ,EAAE,MAAM;;;aAG3B,QAAQ,YAAG,gBAAgB,EAAE,sBAAsB,EAAE,YAAY,EAAE,YAAY;aAC/E,IAAI;iBACF,MAAM,EAAE,UAAU;iBAClB,IAAI,EAAE,QAAQ;iBACd,MAAM,EAAE,YAAY;iBACpB,OAAO,EAAE,OAAO;;aAElB,IAAI,EAAE,QAAQ;CACN,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { FromSchema } from 'json-schema-to-ts';
1
+ /** @file The `deployment` context schema, version 1-0-0. */
2
2
  export declare const schema: {
3
3
  readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
4
4
  readonly additionalProperties: true;
@@ -40,6 +40,4 @@ export declare const schema: {
40
40
  };
41
41
  readonly type: 'object';
42
42
  };
43
- export type Schema = FromSchema<typeof schema>;
44
- export type Version = typeof schema.self.version;
45
43
  //# sourceMappingURL=1-0-0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/deployment/1-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,+BAA+B;aAC5C,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,cAAc;qBACZ,WAAW,EAAE,oBAAoB;qBACjC,IAAI,YAAG,QAAQ,EAAE,MAAM;qBACvB,SAAS,EAAE,GAAG;;iBAEhB,EAAE;qBACA,WAAW,EAAE,mBAAmB;qBAChC,IAAI,YAAG,QA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;qBACjC,IAAI,YAAG,QAAQ,EAAE,MAAM;qBACvB,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,oBAAoB;qBACpB,IAAI,YAAG,QAAQ,EAAE,MAAM;;;aAG3B,QAAQ,YAAG,KAAK;aAChB,IAAI;iBACF,MAAM,EAAE,UAAU;iBAClB,IAAI,EAAE,YAAY;iBAClB,MAAM,EAAE,YAAY;iBACpB,OAAO,EAAE,OAAO;;aAElB,IAAI,EAAE,QAAQ;CACN,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { FromSchema } from 'json-schema-to-ts';
1
+ /** @file The `experience` context schema, version 1-0-0. */
2
2
  export declare const schema: {
3
3
  readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
4
4
  readonly additionalProperties: true;
@@ -35,6 +35,4 @@ export declare const schema: {
35
35
  };
36
36
  readonly type: 'object';
37
37
  };
38
- export type Schema = FromSchema<typeof schema>;
39
- export type Version = typeof schema.self.version;
40
38
  //# sourceMappingURL=1-0-0.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-0-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/experience/1-0-0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;aACjB,OAAO,EACL,yFAAyF;aAC3F,oBAAoB;aACpB,WAAW,EAAE,0BAA0B;aACvC,aAAa,EAAE,CAAC;aAChB,UAAU;iBACR,EAAE;qBACA,WAAW,EAAE,mBAAmB;qBAChC,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,IAAI;qBACF,WAAW,EAAE,qBAAqB;qBAClC,IAAI,EAAE,QAAQ;qBACd,SAAS,EAAE,GAAG;;iBAEhB,KAAK;qBACH,WAAW,EAAE,sBAAsB;qBACnC,IAAI,EAAE,QAAQ;qBACd,SAA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"}
@@ -1,4 +1,4 @@
1
- import type { FromSchema } from 'json-schema-to-ts';
1
+ /** @file The `feature_list` context schema, version 1-0-0. */
2
2
  export declare const schema: {
3
3
  readonly $schema: 'http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#';
4
4
  readonly additionalProperties: true;
@@ -57,6 +57,4 @@ export declare const schema: {
57
57
  };
58
58
  readonly type: 'object';
59
59
  };
60
- export type Schema = FromSchema<typeof schema>;
61
- export type Version = typeof schema.self.version;
62
60
  //# sourceMappingURL=1-0-0.d.ts.map