@walkeros/web-destination-meta 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -126,7 +126,7 @@ function Q(e2) {
126
126
  }
127
127
  function fe(e2 = {}) {
128
128
  var _a;
129
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
129
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
130
130
  if (e2.name) {
131
131
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
132
132
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -140,6 +140,8 @@ function le(e2 = "entity action", t = {}) {
140
140
 
141
141
  // src/examples/step.ts
142
142
  var init2 = {
143
+ title: "Pixel init",
144
+ description: "The destination loads the Meta Pixel script and initializes it with the configured pixelId.",
143
145
  in: {
144
146
  loadScript: true,
145
147
  settings: {
@@ -149,6 +151,8 @@ var init2 = {
149
151
  out: [["fbq", "init", "1234567890"]]
150
152
  };
151
153
  var purchase = {
154
+ title: "Purchase",
155
+ description: "An order complete event is mapped to the Meta Pixel Purchase standard event with value, currency, and product contents.",
152
156
  in: le("order complete", { timestamp: 17e8 }),
153
157
  mapping: {
154
158
  name: "Purchase",
@@ -197,6 +201,8 @@ var purchase = {
197
201
  ]
198
202
  };
199
203
  var addToCart = {
204
+ title: "Add to cart",
205
+ description: "A product add event is mapped to the Meta Pixel AddToCart standard event with product contents and value.",
200
206
  in: le("product add", { timestamp: 1700000001 }),
201
207
  mapping: {
202
208
  name: "AddToCart",
@@ -234,6 +240,8 @@ var addToCart = {
234
240
  ]
235
241
  };
236
242
  var viewContent = {
243
+ title: "View content",
244
+ description: "A product view event is mapped to the Meta Pixel ViewContent standard event with single-product contents.",
237
245
  in: le("product view", { timestamp: 1700000002 }),
238
246
  mapping: {
239
247
  name: "ViewContent",
@@ -271,6 +279,8 @@ var viewContent = {
271
279
  ]
272
280
  };
273
281
  var initiateCheckout = {
282
+ title: "Initiate checkout",
283
+ description: "A cart view event is mapped to the Meta Pixel InitiateCheckout standard event with value and product contents.",
274
284
  in: le("cart view", { timestamp: 1700000003 }),
275
285
  mapping: {
276
286
  name: "InitiateCheckout",
@@ -314,11 +324,15 @@ var initiateCheckout = {
314
324
  ]
315
325
  };
316
326
  var pageView = {
327
+ title: "Page view",
328
+ description: "A page view event is forwarded to Meta Pixel as the PageView standard event with no extra parameters.",
317
329
  in: le("page view", { timestamp: 1700000004 }),
318
330
  mapping: void 0,
319
331
  out: [["fbq", "track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]]
320
332
  };
321
333
  var customEventWithTrackCustom = {
334
+ title: "Custom event",
335
+ description: "A video complete event is sent as a Meta Pixel trackCustom call with a custom event name and parameters.",
322
336
  in: le("video complete", {
323
337
  timestamp: 1700000005,
324
338
  data: { video_id: "v1d30", duration: 120 }
@@ -105,7 +105,7 @@ function Q(e2) {
105
105
  }
106
106
  function fe(e2 = {}) {
107
107
  var _a;
108
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
108
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ 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: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
109
109
  if (e2.name) {
110
110
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
111
111
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -119,6 +119,8 @@ function le(e2 = "entity action", t = {}) {
119
119
 
120
120
  // src/examples/step.ts
121
121
  var init2 = {
122
+ title: "Pixel init",
123
+ description: "The destination loads the Meta Pixel script and initializes it with the configured pixelId.",
122
124
  in: {
123
125
  loadScript: true,
124
126
  settings: {
@@ -128,6 +130,8 @@ var init2 = {
128
130
  out: [["fbq", "init", "1234567890"]]
129
131
  };
130
132
  var purchase = {
133
+ title: "Purchase",
134
+ description: "An order complete event is mapped to the Meta Pixel Purchase standard event with value, currency, and product contents.",
131
135
  in: le("order complete", { timestamp: 17e8 }),
132
136
  mapping: {
133
137
  name: "Purchase",
@@ -176,6 +180,8 @@ var purchase = {
176
180
  ]
177
181
  };
178
182
  var addToCart = {
183
+ title: "Add to cart",
184
+ description: "A product add event is mapped to the Meta Pixel AddToCart standard event with product contents and value.",
179
185
  in: le("product add", { timestamp: 1700000001 }),
180
186
  mapping: {
181
187
  name: "AddToCart",
@@ -213,6 +219,8 @@ var addToCart = {
213
219
  ]
214
220
  };
215
221
  var viewContent = {
222
+ title: "View content",
223
+ description: "A product view event is mapped to the Meta Pixel ViewContent standard event with single-product contents.",
216
224
  in: le("product view", { timestamp: 1700000002 }),
217
225
  mapping: {
218
226
  name: "ViewContent",
@@ -250,6 +258,8 @@ var viewContent = {
250
258
  ]
251
259
  };
252
260
  var initiateCheckout = {
261
+ title: "Initiate checkout",
262
+ description: "A cart view event is mapped to the Meta Pixel InitiateCheckout standard event with value and product contents.",
253
263
  in: le("cart view", { timestamp: 1700000003 }),
254
264
  mapping: {
255
265
  name: "InitiateCheckout",
@@ -293,11 +303,15 @@ var initiateCheckout = {
293
303
  ]
294
304
  };
295
305
  var pageView = {
306
+ title: "Page view",
307
+ description: "A page view event is forwarded to Meta Pixel as the PageView standard event with no extra parameters.",
296
308
  in: le("page view", { timestamp: 1700000004 }),
297
309
  mapping: void 0,
298
310
  out: [["fbq", "track", "PageView", {}, { eventID: "1700000004-gr0up-1" }]]
299
311
  };
300
312
  var customEventWithTrackCustom = {
313
+ title: "Custom event",
314
+ description: "A video complete event is sent as a Meta Pixel trackCustom call with a custom event name and parameters.",
301
315
  in: le("video complete", {
302
316
  timestamp: 1700000005,
303
317
  data: { video_id: "v1d30", duration: 120 }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-meta",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -104,6 +104,8 @@
104
104
  },
105
105
  "step": {
106
106
  "addToCart": {
107
+ "title": "Add to cart",
108
+ "description": "A product add event is mapped to the Meta Pixel AddToCart standard event with product contents and value.",
107
109
  "in": {
108
110
  "name": "product add",
109
111
  "data": {
@@ -143,7 +145,7 @@
143
145
  "group": "gr0up",
144
146
  "count": 1,
145
147
  "version": {
146
- "source": "3.4.0",
148
+ "source": "3.4.1",
147
149
  "tagging": 1
148
150
  },
149
151
  "source": {
@@ -202,6 +204,8 @@
202
204
  ]
203
205
  },
204
206
  "customEventWithTrackCustom": {
207
+ "title": "Custom event",
208
+ "description": "A video complete event is sent as a Meta Pixel trackCustom call with a custom event name and parameters.",
205
209
  "in": {
206
210
  "name": "video complete",
207
211
  "data": {
@@ -252,7 +256,7 @@
252
256
  "group": "gr0up",
253
257
  "count": 1,
254
258
  "version": {
255
- "source": "3.4.0",
259
+ "source": "3.4.1",
256
260
  "tagging": 1
257
261
  },
258
262
  "source": {
@@ -288,6 +292,8 @@
288
292
  ]
289
293
  },
290
294
  "init": {
295
+ "title": "Pixel init",
296
+ "description": "The destination loads the Meta Pixel script and initializes it with the configured pixelId.",
291
297
  "in": {
292
298
  "loadScript": true,
293
299
  "settings": {
@@ -303,6 +309,8 @@
303
309
  ]
304
310
  },
305
311
  "initiateCheckout": {
312
+ "title": "Initiate checkout",
313
+ "description": "A cart view event is mapped to the Meta Pixel InitiateCheckout standard event with value and product contents.",
306
314
  "in": {
307
315
  "name": "cart view",
308
316
  "data": {
@@ -358,7 +366,7 @@
358
366
  "group": "gr0up",
359
367
  "count": 1,
360
368
  "version": {
361
- "source": "3.4.0",
369
+ "source": "3.4.1",
362
370
  "tagging": 1
363
371
  },
364
372
  "source": {
@@ -423,6 +431,8 @@
423
431
  ]
424
432
  },
425
433
  "pageView": {
434
+ "title": "Page view",
435
+ "description": "A page view event is forwarded to Meta Pixel as the PageView standard event with no extra parameters.",
426
436
  "in": {
427
437
  "name": "page view",
428
438
  "data": {
@@ -477,7 +487,7 @@
477
487
  "group": "gr0up",
478
488
  "count": 1,
479
489
  "version": {
480
- "source": "3.4.0",
490
+ "source": "3.4.1",
481
491
  "tagging": 1
482
492
  },
483
493
  "source": {
@@ -499,6 +509,8 @@
499
509
  ]
500
510
  },
501
511
  "purchase": {
512
+ "title": "Purchase",
513
+ "description": "An order complete event is mapped to the Meta Pixel Purchase standard event with value, currency, and product contents.",
502
514
  "in": {
503
515
  "name": "order complete",
504
516
  "data": {
@@ -585,7 +597,7 @@
585
597
  "group": "gr0up",
586
598
  "count": 1,
587
599
  "version": {
588
- "source": "3.4.0",
600
+ "source": "3.4.1",
589
601
  "tagging": 1
590
602
  },
591
603
  "source": {
@@ -658,6 +670,8 @@
658
670
  ]
659
671
  },
660
672
  "viewContent": {
673
+ "title": "View content",
674
+ "description": "A product view event is mapped to the Meta Pixel ViewContent standard event with single-product contents.",
661
675
  "in": {
662
676
  "name": "product view",
663
677
  "data": {
@@ -697,7 +711,7 @@
697
711
  "group": "gr0up",
698
712
  "count": 1,
699
713
  "version": {
700
- "source": "3.4.0",
714
+ "source": "3.4.1",
701
715
  "tagging": 1
702
716
  },
703
717
  "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": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -37,11 +37,11 @@
37
37
  "update": "npx npm-check-updates -u && npm update"
38
38
  },
39
39
  "dependencies": {
40
- "@walkeros/web-core": "3.4.0"
40
+ "@walkeros/web-core": "3.4.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/facebook-pixel": "^0.0.31",
44
- "@walkeros/collector": "3.4.0"
44
+ "@walkeros/collector": "3.4.1"
45
45
  },
46
46
  "repository": {
47
47
  "url": "git+https://github.com/elbwalker/walkerOS.git",