@walkeros/web-destination-mixpanel 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.
@@ -143,7 +143,7 @@ function L(e2, t = {}, n = {}) {
143
143
  }
144
144
  function fe(e2 = {}) {
145
145
  var _a;
146
- 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 });
146
+ 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 });
147
147
  if (e2.name) {
148
148
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
149
149
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -157,15 +157,20 @@ function le(e2 = "entity action", t = {}) {
157
157
 
158
158
  // src/examples/step.ts
159
159
  var defaultEventForwarding = {
160
+ title: "Default track",
161
+ description: "A walker event becomes a Mixpanel track call with the event name and empty properties.",
160
162
  in: le("product view", { timestamp: 1700000100 }),
161
163
  out: [["mixpanel.track", "product view", {}]]
162
164
  };
163
165
  var wildcardIgnored = {
166
+ public: false,
164
167
  in: le("debug noise", { timestamp: 1700000101 }),
165
168
  mapping: { ignore: true },
166
169
  out: []
167
170
  };
168
171
  var destinationLevelInclude = {
172
+ title: "Include data",
173
+ description: "Destination-level include flattens the event data section into prefixed Mixpanel track properties.",
169
174
  in: le("product view", { timestamp: 1700000102 }),
170
175
  configInclude: ["data"],
171
176
  out: [
@@ -183,6 +188,8 @@ var destinationLevelInclude = {
183
188
  ]
184
189
  };
185
190
  var ruleIncludeReplaces = {
191
+ title: "Rule include overrides",
192
+ description: "A per-rule include replaces the destination-level include for this event, forwarding only globals here.",
186
193
  in: le("order complete", { timestamp: 1700000103 }),
187
194
  configInclude: ["data"],
188
195
  mapping: {
@@ -199,6 +206,8 @@ var ruleIncludeReplaces = {
199
206
  ]
200
207
  };
201
208
  var destinationLevelIdentify = {
209
+ title: "Destination identify",
210
+ description: "Destination-level identify calls mixpanel.identify with a resolved distinctId before firing the default track.",
202
211
  in: le("page view", { timestamp: 1700000104 }),
203
212
  settings: {
204
213
  identify: {
@@ -213,6 +222,8 @@ var destinationLevelIdentify = {
213
222
  ]
214
223
  };
215
224
  var userLoginIdentifyAndPeople = {
225
+ title: "User login identify",
226
+ description: "A user login identifies the user and fires Mixpanel people set, set_once, and increment operations.",
216
227
  in: le("user login", {
217
228
  timestamp: 1700000105,
218
229
  data: {
@@ -278,6 +289,8 @@ var userLoginIdentifyAndPeople = {
278
289
  ]
279
290
  };
280
291
  var profileUpdateAllPeopleOperations = {
292
+ title: "All people operations",
293
+ description: "A profile update exercises the full Mixpanel people vocabulary including set, increment, append, union, and remove.",
281
294
  in: le("profile update", {
282
295
  timestamp: 1700000106,
283
296
  data: {
@@ -340,6 +353,8 @@ var profileUpdateAllPeopleOperations = {
340
353
  ]
341
354
  };
342
355
  var accountDeleteUser = {
356
+ title: "Delete user",
357
+ description: "An account delete fires Mixpanel people.delete_user to remove the user profile from the project.",
343
358
  in: le("account delete", { timestamp: 1700000107 }),
344
359
  mapping: {
345
360
  skip: true,
@@ -354,6 +369,8 @@ var accountDeleteUser = {
354
369
  out: [["mixpanel.people.delete_user"]]
355
370
  };
356
371
  var userLogoutReset = {
372
+ title: "User logout reset",
373
+ description: "A user logout calls mixpanel.reset to clear persistence and generate a new anonymous distinct id.",
357
374
  in: le("user logout", { timestamp: 1700000108 }),
358
375
  mapping: {
359
376
  skip: true,
@@ -364,6 +381,8 @@ var userLogoutReset = {
364
381
  out: [["mixpanel.reset"]]
365
382
  };
366
383
  var userGroupAssociation = {
384
+ title: "Group association",
385
+ description: "A user login associates the user to a company group via mixpanel.set_group and fires the default track.",
367
386
  in: le("user login", {
368
387
  timestamp: 1700000109,
369
388
  data: {
@@ -387,6 +406,8 @@ var userGroupAssociation = {
387
406
  ]
388
407
  };
389
408
  var companyUpdateGroupProfile = {
409
+ title: "Group profile",
410
+ description: "A company update sets Mixpanel group profile properties via get_group.set and get_group.set_once.",
390
411
  in: le("company update", {
391
412
  timestamp: 1700000110,
392
413
  data: {
@@ -436,12 +457,16 @@ var companyUpdateGroupProfile = {
436
457
  ]
437
458
  };
438
459
  var consentRevokeOptOut = {
460
+ title: "Consent revoked",
461
+ description: "A walker consent command with analytics denied calls mixpanel.opt_out_tracking to stop event capture.",
439
462
  command: "consent",
440
463
  in: { analytics: false },
441
464
  settings: {},
442
465
  out: [["mixpanel.opt_out_tracking"]]
443
466
  };
444
467
  var consentGrantOptIn = {
468
+ title: "Consent granted",
469
+ description: "A walker consent command with analytics granted calls mixpanel.opt_in_tracking to resume event capture.",
445
470
  command: "consent",
446
471
  in: { analytics: true },
447
472
  settings: {},
@@ -122,7 +122,7 @@ function L(e2, t = {}, n = {}) {
122
122
  }
123
123
  function fe(e2 = {}) {
124
124
  var _a;
125
- 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 });
125
+ 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 });
126
126
  if (e2.name) {
127
127
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
128
128
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -136,15 +136,20 @@ function le(e2 = "entity action", t = {}) {
136
136
 
137
137
  // src/examples/step.ts
138
138
  var defaultEventForwarding = {
139
+ title: "Default track",
140
+ description: "A walker event becomes a Mixpanel track call with the event name and empty properties.",
139
141
  in: le("product view", { timestamp: 1700000100 }),
140
142
  out: [["mixpanel.track", "product view", {}]]
141
143
  };
142
144
  var wildcardIgnored = {
145
+ public: false,
143
146
  in: le("debug noise", { timestamp: 1700000101 }),
144
147
  mapping: { ignore: true },
145
148
  out: []
146
149
  };
147
150
  var destinationLevelInclude = {
151
+ title: "Include data",
152
+ description: "Destination-level include flattens the event data section into prefixed Mixpanel track properties.",
148
153
  in: le("product view", { timestamp: 1700000102 }),
149
154
  configInclude: ["data"],
150
155
  out: [
@@ -162,6 +167,8 @@ var destinationLevelInclude = {
162
167
  ]
163
168
  };
164
169
  var ruleIncludeReplaces = {
170
+ title: "Rule include overrides",
171
+ description: "A per-rule include replaces the destination-level include for this event, forwarding only globals here.",
165
172
  in: le("order complete", { timestamp: 1700000103 }),
166
173
  configInclude: ["data"],
167
174
  mapping: {
@@ -178,6 +185,8 @@ var ruleIncludeReplaces = {
178
185
  ]
179
186
  };
180
187
  var destinationLevelIdentify = {
188
+ title: "Destination identify",
189
+ description: "Destination-level identify calls mixpanel.identify with a resolved distinctId before firing the default track.",
181
190
  in: le("page view", { timestamp: 1700000104 }),
182
191
  settings: {
183
192
  identify: {
@@ -192,6 +201,8 @@ var destinationLevelIdentify = {
192
201
  ]
193
202
  };
194
203
  var userLoginIdentifyAndPeople = {
204
+ title: "User login identify",
205
+ description: "A user login identifies the user and fires Mixpanel people set, set_once, and increment operations.",
195
206
  in: le("user login", {
196
207
  timestamp: 1700000105,
197
208
  data: {
@@ -257,6 +268,8 @@ var userLoginIdentifyAndPeople = {
257
268
  ]
258
269
  };
259
270
  var profileUpdateAllPeopleOperations = {
271
+ title: "All people operations",
272
+ description: "A profile update exercises the full Mixpanel people vocabulary including set, increment, append, union, and remove.",
260
273
  in: le("profile update", {
261
274
  timestamp: 1700000106,
262
275
  data: {
@@ -319,6 +332,8 @@ var profileUpdateAllPeopleOperations = {
319
332
  ]
320
333
  };
321
334
  var accountDeleteUser = {
335
+ title: "Delete user",
336
+ description: "An account delete fires Mixpanel people.delete_user to remove the user profile from the project.",
322
337
  in: le("account delete", { timestamp: 1700000107 }),
323
338
  mapping: {
324
339
  skip: true,
@@ -333,6 +348,8 @@ var accountDeleteUser = {
333
348
  out: [["mixpanel.people.delete_user"]]
334
349
  };
335
350
  var userLogoutReset = {
351
+ title: "User logout reset",
352
+ description: "A user logout calls mixpanel.reset to clear persistence and generate a new anonymous distinct id.",
336
353
  in: le("user logout", { timestamp: 1700000108 }),
337
354
  mapping: {
338
355
  skip: true,
@@ -343,6 +360,8 @@ var userLogoutReset = {
343
360
  out: [["mixpanel.reset"]]
344
361
  };
345
362
  var userGroupAssociation = {
363
+ title: "Group association",
364
+ description: "A user login associates the user to a company group via mixpanel.set_group and fires the default track.",
346
365
  in: le("user login", {
347
366
  timestamp: 1700000109,
348
367
  data: {
@@ -366,6 +385,8 @@ var userGroupAssociation = {
366
385
  ]
367
386
  };
368
387
  var companyUpdateGroupProfile = {
388
+ title: "Group profile",
389
+ description: "A company update sets Mixpanel group profile properties via get_group.set and get_group.set_once.",
369
390
  in: le("company update", {
370
391
  timestamp: 1700000110,
371
392
  data: {
@@ -415,12 +436,16 @@ var companyUpdateGroupProfile = {
415
436
  ]
416
437
  };
417
438
  var consentRevokeOptOut = {
439
+ title: "Consent revoked",
440
+ description: "A walker consent command with analytics denied calls mixpanel.opt_out_tracking to stop event capture.",
418
441
  command: "consent",
419
442
  in: { analytics: false },
420
443
  settings: {},
421
444
  out: [["mixpanel.opt_out_tracking"]]
422
445
  };
423
446
  var consentGrantOptIn = {
447
+ title: "Consent granted",
448
+ description: "A walker consent command with analytics granted calls mixpanel.opt_in_tracking to resume event capture.",
424
449
  command: "consent",
425
450
  in: { analytics: true },
426
451
  settings: {},
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-mixpanel",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -269,6 +269,8 @@
269
269
  },
270
270
  "step": {
271
271
  "accountDeleteUser": {
272
+ "title": "Delete user",
273
+ "description": "An account delete fires Mixpanel people.delete_user to remove the user profile from the project.",
272
274
  "in": {
273
275
  "name": "account delete",
274
276
  "data": {
@@ -325,7 +327,7 @@
325
327
  "group": "gr0up",
326
328
  "count": 1,
327
329
  "version": {
328
- "source": "3.4.0",
330
+ "source": "3.4.1",
329
331
  "tagging": 1
330
332
  },
331
333
  "source": {
@@ -353,6 +355,8 @@
353
355
  ]
354
356
  },
355
357
  "companyUpdateGroupProfile": {
358
+ "title": "Group profile",
359
+ "description": "A company update sets Mixpanel group profile properties via get_group.set and get_group.set_once.",
356
360
  "in": {
357
361
  "name": "company update",
358
362
  "data": {
@@ -406,7 +410,7 @@
406
410
  "group": "gr0up",
407
411
  "count": 1,
408
412
  "version": {
409
- "source": "3.4.0",
413
+ "source": "3.4.1",
410
414
  "tagging": 1
411
415
  },
412
416
  "source": {
@@ -462,6 +466,8 @@
462
466
  ]
463
467
  },
464
468
  "consentGrantOptIn": {
469
+ "title": "Consent granted",
470
+ "description": "A walker consent command with analytics granted calls mixpanel.opt_in_tracking to resume event capture.",
465
471
  "command": "consent",
466
472
  "in": {
467
473
  "analytics": true
@@ -474,6 +480,8 @@
474
480
  ]
475
481
  },
476
482
  "consentRevokeOptOut": {
483
+ "title": "Consent revoked",
484
+ "description": "A walker consent command with analytics denied calls mixpanel.opt_out_tracking to stop event capture.",
477
485
  "command": "consent",
478
486
  "in": {
479
487
  "analytics": false
@@ -486,6 +494,8 @@
486
494
  ]
487
495
  },
488
496
  "defaultEventForwarding": {
497
+ "title": "Default track",
498
+ "description": "A walker event becomes a Mixpanel track call with the event name and empty properties.",
489
499
  "in": {
490
500
  "name": "product view",
491
501
  "data": {
@@ -525,7 +535,7 @@
525
535
  "group": "gr0up",
526
536
  "count": 1,
527
537
  "version": {
528
- "source": "3.4.0",
538
+ "source": "3.4.1",
529
539
  "tagging": 1
530
540
  },
531
541
  "source": {
@@ -543,6 +553,8 @@
543
553
  ]
544
554
  },
545
555
  "destinationLevelIdentify": {
556
+ "title": "Destination identify",
557
+ "description": "Destination-level identify calls mixpanel.identify with a resolved distinctId before firing the default track.",
546
558
  "in": {
547
559
  "name": "page view",
548
560
  "data": {
@@ -597,7 +609,7 @@
597
609
  "group": "gr0up",
598
610
  "count": 1,
599
611
  "version": {
600
- "source": "3.4.0",
612
+ "source": "3.4.1",
601
613
  "tagging": 1
602
614
  },
603
615
  "source": {
@@ -626,6 +638,8 @@
626
638
  ]
627
639
  },
628
640
  "destinationLevelInclude": {
641
+ "title": "Include data",
642
+ "description": "Destination-level include flattens the event data section into prefixed Mixpanel track properties.",
629
643
  "in": {
630
644
  "name": "product view",
631
645
  "data": {
@@ -665,7 +679,7 @@
665
679
  "group": "gr0up",
666
680
  "count": 1,
667
681
  "version": {
668
- "source": "3.4.0",
682
+ "source": "3.4.1",
669
683
  "tagging": 1
670
684
  },
671
685
  "source": {
@@ -692,6 +706,8 @@
692
706
  ]
693
707
  },
694
708
  "profileUpdateAllPeopleOperations": {
709
+ "title": "All people operations",
710
+ "description": "A profile update exercises the full Mixpanel people vocabulary including set, increment, append, union, and remove.",
695
711
  "in": {
696
712
  "name": "profile update",
697
713
  "data": {
@@ -745,7 +761,7 @@
745
761
  "group": "gr0up",
746
762
  "count": 1,
747
763
  "version": {
748
- "source": "3.4.0",
764
+ "source": "3.4.1",
749
765
  "tagging": 1
750
766
  },
751
767
  "source": {
@@ -854,6 +870,8 @@
854
870
  ]
855
871
  },
856
872
  "ruleIncludeReplaces": {
873
+ "title": "Rule include overrides",
874
+ "description": "A per-rule include replaces the destination-level include for this event, forwarding only globals here.",
857
875
  "in": {
858
876
  "name": "order complete",
859
877
  "data": {
@@ -940,7 +958,7 @@
940
958
  "group": "gr0up",
941
959
  "count": 1,
942
960
  "version": {
943
- "source": "3.4.0",
961
+ "source": "3.4.1",
944
962
  "tagging": 1
945
963
  },
946
964
  "source": {
@@ -968,6 +986,8 @@
968
986
  ]
969
987
  },
970
988
  "userGroupAssociation": {
989
+ "title": "Group association",
990
+ "description": "A user login associates the user to a company group via mixpanel.set_group and fires the default track.",
971
991
  "in": {
972
992
  "name": "user login",
973
993
  "data": {
@@ -1018,7 +1038,7 @@
1018
1038
  "group": "gr0up",
1019
1039
  "count": 1,
1020
1040
  "version": {
1021
- "source": "3.4.0",
1041
+ "source": "3.4.1",
1022
1042
  "tagging": 1
1023
1043
  },
1024
1044
  "source": {
@@ -1053,6 +1073,8 @@
1053
1073
  ]
1054
1074
  },
1055
1075
  "userLoginIdentifyAndPeople": {
1076
+ "title": "User login identify",
1077
+ "description": "A user login identifies the user and fires Mixpanel people set, set_once, and increment operations.",
1056
1078
  "in": {
1057
1079
  "name": "user login",
1058
1080
  "data": {
@@ -1105,7 +1127,7 @@
1105
1127
  "group": "gr0up",
1106
1128
  "count": 1,
1107
1129
  "version": {
1108
- "source": "3.4.0",
1130
+ "source": "3.4.1",
1109
1131
  "tagging": 1
1110
1132
  },
1111
1133
  "source": {
@@ -1175,6 +1197,8 @@
1175
1197
  ]
1176
1198
  },
1177
1199
  "userLogoutReset": {
1200
+ "title": "User logout reset",
1201
+ "description": "A user logout calls mixpanel.reset to clear persistence and generate a new anonymous distinct id.",
1178
1202
  "in": {
1179
1203
  "name": "user logout",
1180
1204
  "data": {
@@ -1231,7 +1255,7 @@
1231
1255
  "group": "gr0up",
1232
1256
  "count": 1,
1233
1257
  "version": {
1234
- "source": "3.4.0",
1258
+ "source": "3.4.1",
1235
1259
  "tagging": 1
1236
1260
  },
1237
1261
  "source": {
@@ -1253,6 +1277,7 @@
1253
1277
  ]
1254
1278
  },
1255
1279
  "wildcardIgnored": {
1280
+ "public": false,
1256
1281
  "in": {
1257
1282
  "name": "debug noise",
1258
1283
  "data": {
@@ -1309,7 +1334,7 @@
1309
1334
  "group": "gr0up",
1310
1335
  "count": 1,
1311
1336
  "version": {
1312
- "source": "3.4.0",
1337
+ "source": "3.4.1",
1313
1338
  "tagging": 1
1314
1339
  },
1315
1340
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-mixpanel",
3
3
  "description": "Mixpanel web destination for walkerOS (events, people, groups, consent)",
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",
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "mixpanel-browser": "^2.78.0",
41
- "@walkeros/web-core": "3.4.0"
41
+ "@walkeros/web-core": "3.4.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/mixpanel-browser": "^2.50.0",
45
- "@walkeros/collector": "3.4.0"
45
+ "@walkeros/collector": "3.4.1"
46
46
  },
47
47
  "repository": {
48
48
  "url": "git+https://github.com/elbwalker/walkerOS.git",