@walkeros/web-destination-meta 2.1.0 → 2.2.0-next-1772811722420

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.
@@ -96,44 +96,44 @@ __export(step_exports, {
96
96
  });
97
97
 
98
98
  // ../../../core/dist/index.mjs
99
- var t = Object.defineProperty;
99
+ var e = Object.defineProperty;
100
100
  var a = {};
101
- ((e, n) => {
102
- for (var o in n) t(e, o, { get: n[o], enumerable: true });
101
+ ((t, n) => {
102
+ for (var o in n) e(t, o, { get: n[o], enumerable: true });
103
103
  })(a, { Level: () => u });
104
- var u = ((t2) => (t2[t2.ERROR = 0] = "ERROR", t2[t2.WARN = 1] = "WARN", t2[t2.INFO = 2] = "INFO", t2[t2.DEBUG = 3] = "DEBUG", t2))(u || {});
105
- var D = { merge: true, shallow: true, extend: true };
106
- function H(t2, e = {}, n = {}) {
107
- n = { ...D, ...n };
108
- const o = Object.entries(e).reduce((e2, [o2, r]) => {
109
- const i = t2[o2];
110
- return n.merge && Array.isArray(i) && Array.isArray(r) ? e2[o2] = r.reduce((t3, e3) => t3.includes(e3) ? t3 : [...t3, e3], [...i]) : (n.extend || o2 in t2) && (e2[o2] = r), e2;
104
+ var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
105
+ var H = { merge: true, shallow: true, extend: true };
106
+ function I(e2, t = {}, n = {}) {
107
+ n = { ...H, ...n };
108
+ const o = Object.entries(t).reduce((t2, [o2, r]) => {
109
+ const i = e2[o2];
110
+ return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
111
111
  }, {});
112
- return n.shallow ? { ...t2, ...o } : (Object.assign(t2, o), t2);
112
+ return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
113
113
  }
114
- function W(t2) {
115
- return Array.isArray(t2);
114
+ function U(e2) {
115
+ return Array.isArray(e2);
116
116
  }
117
- function Z(t2) {
118
- return "object" == typeof t2 && null !== t2 && !W(t2) && "[object Object]" === Object.prototype.toString.call(t2);
117
+ function q(e2) {
118
+ return "object" == typeof e2 && null !== e2 && !U(e2) && "[object Object]" === Object.prototype.toString.call(e2);
119
119
  }
120
- function nt(t2 = {}) {
120
+ function re(e2 = {}) {
121
121
  var _a;
122
- const e = t2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = t2.group || "gr0up", o = t2.count || 1, r = H({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${e}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: e, timing: 3.14, group: n, count: o, version: { source: "2.0.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, t2, { merge: false });
123
- if (t2.name) {
124
- const [e2, n2] = (_a = t2.name.split(" ")) != null ? _a : [];
125
- e2 && n2 && (r.entity = e2, r.action = n2);
122
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = I({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "2.1.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
123
+ if (e2.name) {
124
+ const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
125
+ t2 && n2 && (r.entity = t2, r.action = n2);
126
126
  }
127
127
  return r;
128
128
  }
129
- function ot(t2 = "entity action", e = {}) {
130
- const n = e.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
131
- return nt({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[t2], ...e, name: t2 });
129
+ function ie(e2 = "entity action", t = {}) {
130
+ const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
131
+ return re({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
132
132
  }
133
133
 
134
134
  // src/examples/step.ts
135
135
  var purchase = {
136
- in: ot("order complete", { timestamp: 17e8 }),
136
+ in: ie("order complete", { timestamp: 17e8 }),
137
137
  mapping: {
138
138
  name: "Purchase",
139
139
  data: {
@@ -144,7 +144,7 @@ var purchase = {
144
144
  loop: [
145
145
  "nested",
146
146
  {
147
- condition: (entity) => Z(entity) && entity.entity === "product",
147
+ condition: (entity) => q(entity) && entity.entity === "product",
148
148
  map: {
149
149
  id: "data.id",
150
150
  quantity: { key: "data.quantity", value: 1 }
@@ -178,7 +178,7 @@ var purchase = {
178
178
  ]
179
179
  };
180
180
  var addToCart = {
181
- in: ot("product add", { timestamp: 1700000001 }),
181
+ in: ie("product add", { timestamp: 1700000001 }),
182
182
  mapping: {
183
183
  name: "AddToCart",
184
184
  data: {
@@ -212,7 +212,7 @@ var addToCart = {
212
212
  ]
213
213
  };
214
214
  var viewContent = {
215
- in: ot("product view", { timestamp: 1700000002 }),
215
+ in: ie("product view", { timestamp: 1700000002 }),
216
216
  mapping: {
217
217
  name: "ViewContent",
218
218
  data: {
@@ -246,7 +246,7 @@ var viewContent = {
246
246
  ]
247
247
  };
248
248
  var initiateCheckout = {
249
- in: ot("cart view", { timestamp: 1700000003 }),
249
+ in: ie("cart view", { timestamp: 1700000003 }),
250
250
  mapping: {
251
251
  name: "InitiateCheckout",
252
252
  data: {
@@ -257,7 +257,7 @@ var initiateCheckout = {
257
257
  loop: [
258
258
  "nested",
259
259
  {
260
- condition: (entity) => Z(entity) && entity.entity === "product",
260
+ condition: (entity) => q(entity) && entity.entity === "product",
261
261
  map: {
262
262
  id: "data.id",
263
263
  quantity: { key: "data.quantity", value: 1 }
@@ -286,7 +286,7 @@ var initiateCheckout = {
286
286
  ]
287
287
  };
288
288
  var pageView = {
289
- in: ot("page view", { timestamp: 1700000004 }),
289
+ in: ie("page view", { timestamp: 1700000004 }),
290
290
  mapping: void 0,
291
291
  out: ["track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]
292
292
  };
@@ -75,44 +75,44 @@ __export(step_exports, {
75
75
  });
76
76
 
77
77
  // ../../../core/dist/index.mjs
78
- var t = Object.defineProperty;
78
+ var e = Object.defineProperty;
79
79
  var a = {};
80
- ((e, n) => {
81
- for (var o in n) t(e, o, { get: n[o], enumerable: true });
80
+ ((t, n) => {
81
+ for (var o in n) e(t, o, { get: n[o], enumerable: true });
82
82
  })(a, { Level: () => u });
83
- var u = ((t2) => (t2[t2.ERROR = 0] = "ERROR", t2[t2.WARN = 1] = "WARN", t2[t2.INFO = 2] = "INFO", t2[t2.DEBUG = 3] = "DEBUG", t2))(u || {});
84
- var D = { merge: true, shallow: true, extend: true };
85
- function H(t2, e = {}, n = {}) {
86
- n = { ...D, ...n };
87
- const o = Object.entries(e).reduce((e2, [o2, r]) => {
88
- const i = t2[o2];
89
- return n.merge && Array.isArray(i) && Array.isArray(r) ? e2[o2] = r.reduce((t3, e3) => t3.includes(e3) ? t3 : [...t3, e3], [...i]) : (n.extend || o2 in t2) && (e2[o2] = r), e2;
83
+ var u = ((e2) => (e2[e2.ERROR = 0] = "ERROR", e2[e2.WARN = 1] = "WARN", e2[e2.INFO = 2] = "INFO", e2[e2.DEBUG = 3] = "DEBUG", e2))(u || {});
84
+ var H = { merge: true, shallow: true, extend: true };
85
+ function I(e2, t = {}, n = {}) {
86
+ n = { ...H, ...n };
87
+ const o = Object.entries(t).reduce((t2, [o2, r]) => {
88
+ const i = e2[o2];
89
+ return n.merge && Array.isArray(i) && Array.isArray(r) ? t2[o2] = r.reduce((e3, t3) => e3.includes(t3) ? e3 : [...e3, t3], [...i]) : (n.extend || o2 in e2) && (t2[o2] = r), t2;
90
90
  }, {});
91
- return n.shallow ? { ...t2, ...o } : (Object.assign(t2, o), t2);
91
+ return n.shallow ? { ...e2, ...o } : (Object.assign(e2, o), e2);
92
92
  }
93
- function W(t2) {
94
- return Array.isArray(t2);
93
+ function U(e2) {
94
+ return Array.isArray(e2);
95
95
  }
96
- function Z(t2) {
97
- return "object" == typeof t2 && null !== t2 && !W(t2) && "[object Object]" === Object.prototype.toString.call(t2);
96
+ function q(e2) {
97
+ return "object" == typeof e2 && null !== e2 && !U(e2) && "[object Object]" === Object.prototype.toString.call(e2);
98
98
  }
99
- function nt(t2 = {}) {
99
+ function re(e2 = {}) {
100
100
  var _a;
101
- const e = t2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = t2.group || "gr0up", o = t2.count || 1, r = H({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${e}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: e, timing: 3.14, group: n, count: o, version: { source: "2.0.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, t2, { merge: false });
102
- if (t2.name) {
103
- const [e2, n2] = (_a = t2.name.split(" ")) != null ? _a : [];
104
- e2 && n2 && (r.entity = e2, r.action = n2);
101
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = I({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "2.1.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
102
+ if (e2.name) {
103
+ const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
104
+ t2 && n2 && (r.entity = t2, r.action = n2);
105
105
  }
106
106
  return r;
107
107
  }
108
- function ot(t2 = "entity action", e = {}) {
109
- const n = e.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
110
- return nt({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[t2], ...e, name: t2 });
108
+ function ie(e2 = "entity action", t = {}) {
109
+ const n = t.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), o = { data: { id: "ers", name: "Everyday Ruck Snack", color: "black", size: "l", price: 420 } }, r = { data: { id: "cc", name: "Cool Cap", size: "one size", price: 42 } };
110
+ return re({ ...{ "cart view": { data: { currency: "EUR", value: 2 * o.data.price }, context: { shopping: ["cart", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", data: { ...o.data, quantity: 2 }, context: { shopping: ["cart", 0] }, nested: [] }], trigger: "load" }, "checkout view": { data: { step: "payment", currency: "EUR", value: o.data.price + r.data.price }, context: { shopping: ["checkout", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["checkout", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["checkout", 0] }, nested: [] }], trigger: "load" }, "order complete": { data: { id: "0rd3r1d", currency: "EUR", shipping: 5.22, taxes: 73.76, total: 555 }, context: { shopping: ["complete", 0] }, globals: { pagegroup: "shop" }, nested: [{ entity: "product", ...o, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "product", ...r, context: { shopping: ["complete", 0] }, nested: [] }, { entity: "gift", data: { name: "Surprise" }, context: { shopping: ["complete", 0] }, nested: [] }], trigger: "load" }, "page view": { data: { domain: "www.example.com", title: "walkerOS documentation", referrer: "https://www.walkeros.io/", search: "?foo=bar", hash: "#hash", id: "/docs/" }, globals: { pagegroup: "docs" }, trigger: "load" }, "product add": { ...o, context: { shopping: ["intent", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "click" }, "product view": { ...o, context: { shopping: ["detail", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "product visible": { data: { ...o.data, position: 3, promo: true }, context: { shopping: ["discover", 0] }, globals: { pagegroup: "shop" }, nested: [], trigger: "load" }, "promotion visible": { data: { name: "Setting up tracking easily", position: "hero" }, context: { ab_test: ["engagement", 0] }, globals: { pagegroup: "homepage" }, trigger: "visible" }, "session start": { data: { id: "s3ss10n", start: n, isNew: true, count: 1, runs: 1, isStart: true, storage: true, referrer: "", device: "c00k13" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n", hash: "h4sh", address: "street number", email: "user@example.com", phone: "+49 123 456 789", userAgent: "Mozilla...", browser: "Chrome", browserVersion: "90", deviceType: "desktop", language: "de-DE", country: "DE", region: "HH", city: "Hamburg", zip: "20354", timezone: "Berlin", os: "walkerOS", osVersion: "1.0", screenSize: "1337x420", ip: "127.0.0.0", internal: true, custom: "value" } } }[e2], ...t, name: e2 });
111
111
  }
112
112
 
113
113
  // src/examples/step.ts
114
114
  var purchase = {
115
- in: ot("order complete", { timestamp: 17e8 }),
115
+ in: ie("order complete", { timestamp: 17e8 }),
116
116
  mapping: {
117
117
  name: "Purchase",
118
118
  data: {
@@ -123,7 +123,7 @@ var purchase = {
123
123
  loop: [
124
124
  "nested",
125
125
  {
126
- condition: (entity) => Z(entity) && entity.entity === "product",
126
+ condition: (entity) => q(entity) && entity.entity === "product",
127
127
  map: {
128
128
  id: "data.id",
129
129
  quantity: { key: "data.quantity", value: 1 }
@@ -157,7 +157,7 @@ var purchase = {
157
157
  ]
158
158
  };
159
159
  var addToCart = {
160
- in: ot("product add", { timestamp: 1700000001 }),
160
+ in: ie("product add", { timestamp: 1700000001 }),
161
161
  mapping: {
162
162
  name: "AddToCart",
163
163
  data: {
@@ -191,7 +191,7 @@ var addToCart = {
191
191
  ]
192
192
  };
193
193
  var viewContent = {
194
- in: ot("product view", { timestamp: 1700000002 }),
194
+ in: ie("product view", { timestamp: 1700000002 }),
195
195
  mapping: {
196
196
  name: "ViewContent",
197
197
  data: {
@@ -225,7 +225,7 @@ var viewContent = {
225
225
  ]
226
226
  };
227
227
  var initiateCheckout = {
228
- in: ot("cart view", { timestamp: 1700000003 }),
228
+ in: ie("cart view", { timestamp: 1700000003 }),
229
229
  mapping: {
230
230
  name: "InitiateCheckout",
231
231
  data: {
@@ -236,7 +236,7 @@ var initiateCheckout = {
236
236
  loop: [
237
237
  "nested",
238
238
  {
239
- condition: (entity) => Z(entity) && entity.entity === "product",
239
+ condition: (entity) => q(entity) && entity.entity === "product",
240
240
  map: {
241
241
  id: "data.id",
242
242
  quantity: { key: "data.quantity", value: 1 }
@@ -265,7 +265,7 @@ var initiateCheckout = {
265
265
  ]
266
266
  };
267
267
  var pageView = {
268
- in: ot("page view", { timestamp: 1700000004 }),
268
+ in: ie("page view", { timestamp: 1700000004 }),
269
269
  mapping: void 0,
270
270
  out: ["track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]
271
271
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-meta",
4
- "version": "2.0.1",
4
+ "version": "2.1.1",
5
5
  "type": "destination",
6
6
  "platform": "web"
7
7
  },
@@ -136,7 +136,7 @@
136
136
  "group": "gr0up",
137
137
  "count": 1,
138
138
  "version": {
139
- "source": "2.0.1",
139
+ "source": "2.1.1",
140
140
  "tagging": 1
141
141
  },
142
142
  "source": {
@@ -247,7 +247,7 @@
247
247
  "group": "gr0up",
248
248
  "count": 1,
249
249
  "version": {
250
- "source": "2.0.1",
250
+ "source": "2.1.1",
251
251
  "tagging": 1
252
252
  },
253
253
  "source": {
@@ -269,7 +269,7 @@
269
269
  "nested",
270
270
  {
271
271
  "condition": {
272
- "$code": "e=>sh(e)&&\"product\"===e.entity"
272
+ "$code": "e=>lh(e)&&\"product\"===e.entity"
273
273
  },
274
274
  "map": {
275
275
  "id": "data.id",
@@ -363,7 +363,7 @@
363
363
  "group": "gr0up",
364
364
  "count": 1,
365
365
  "version": {
366
- "source": "2.0.1",
366
+ "source": "2.1.1",
367
367
  "tagging": 1
368
368
  },
369
369
  "source": {
@@ -468,7 +468,7 @@
468
468
  "group": "gr0up",
469
469
  "count": 1,
470
470
  "version": {
471
- "source": "2.0.1",
471
+ "source": "2.1.1",
472
472
  "tagging": 1
473
473
  },
474
474
  "source": {
@@ -490,7 +490,7 @@
490
490
  "nested",
491
491
  {
492
492
  "condition": {
493
- "$code": "e=>sh(e)&&\"product\"===e.entity"
493
+ "$code": "e=>lh(e)&&\"product\"===e.entity"
494
494
  },
495
495
  "map": {
496
496
  "id": "data.id",
@@ -577,7 +577,7 @@
577
577
  "group": "gr0up",
578
578
  "count": 1,
579
579
  "version": {
580
- "source": "2.0.1",
580
+ "source": "2.1.1",
581
581
  "tagging": 1
582
582
  },
583
583
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-meta",
3
3
  "description": "Meta pixel web destination for walkerOS",
4
- "version": "2.1.0",
4
+ "version": "2.2.0-next-1772811722420",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -36,11 +36,11 @@
36
36
  "update": "npx npm-check-updates -u && npm update"
37
37
  },
38
38
  "dependencies": {
39
- "@walkeros/web-core": "^2.1.0"
39
+ "@walkeros/web-core": "2.2.0-next-1772811722420"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/facebook-pixel": "^0.0.31",
43
- "@walkeros/collector": "^2.1.0"
43
+ "@walkeros/collector": "2.2.0-next-1772811722420"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",