@syntrologie/adapt-chatbot 2.8.0-canary.621 → 2.8.0-canary.623

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 (36) hide show
  1. package/dist/AdaptiveChatBar.js +2 -2
  2. package/dist/AdaptiveChatTrail.js +2 -2
  3. package/dist/AdaptiveChipsStrip.js +2 -2
  4. package/dist/ChatAssistantLit.js +3 -3
  5. package/dist/ChatTransport.d.ts +10 -2
  6. package/dist/ChatTransport.d.ts.map +1 -1
  7. package/dist/{chunk-HV52LYST.js → chunk-7U5IUZFB.js} +2 -2
  8. package/dist/{chunk-VIRIVP7H.js → chunk-AUDMWXVZ.js} +79 -18
  9. package/dist/chunk-AUDMWXVZ.js.map +7 -0
  10. package/dist/{chunk-HD2NXGYO.js → chunk-NA6NGAEC.js} +3 -3
  11. package/dist/{chunk-4V5L7IRV.js → chunk-RTPSG3PY.js} +55 -5
  12. package/dist/{chunk-4V5L7IRV.js.map → chunk-RTPSG3PY.js.map} +2 -2
  13. package/dist/{chunk-UFTSEIQP.js → chunk-UTRDR2PJ.js} +2 -2
  14. package/dist/consent.d.ts +8 -0
  15. package/dist/consent.d.ts.map +1 -0
  16. package/dist/consent.test.d.ts +2 -0
  17. package/dist/consent.test.d.ts.map +1 -0
  18. package/dist/element-session.js +2 -2
  19. package/dist/elements/ElementInstanceStore.d.ts +4 -2
  20. package/dist/elements/ElementInstanceStore.d.ts.map +1 -1
  21. package/dist/elements/ElementSessionController.d.ts.map +1 -1
  22. package/dist/elements/ElementTypeHandler.d.ts +5 -1
  23. package/dist/elements/ElementTypeHandler.d.ts.map +1 -1
  24. package/dist/elements/TileHandler.d.ts +2 -2
  25. package/dist/elements/TileHandler.d.ts.map +1 -1
  26. package/dist/elements/tileLifecycleProps.d.ts +2 -1
  27. package/dist/elements/tileLifecycleProps.d.ts.map +1 -1
  28. package/dist/hostAgentController.d.ts.map +1 -1
  29. package/dist/runtime.js +111 -28
  30. package/dist/runtime.js.map +3 -3
  31. package/dist/schema.js +2 -2
  32. package/package.json +1 -1
  33. package/dist/chunk-VIRIVP7H.js.map +0 -7
  34. /package/dist/{chunk-HV52LYST.js.map → chunk-7U5IUZFB.js.map} +0 -0
  35. /package/dist/{chunk-HD2NXGYO.js.map → chunk-NA6NGAEC.js.map} +0 -0
  36. /package/dist/{chunk-UFTSEIQP.js.map → chunk-UTRDR2PJ.js.map} +0 -0
@@ -4454,7 +4454,48 @@ var TELEMETRY_EVENTS = {
4454
4454
  subject: "tile",
4455
4455
  verb: "dismissed",
4456
4456
  scope: "open",
4457
- props: ["tile_id", "tile_kind", "visible_ms"]
4457
+ props: ["tile_id", "tile_kind", "visible_ms", "turn_id"]
4458
+ }),
4459
+ // A model-mounted live tile the shopper actually saw: once per instance,
4460
+ // after 500 ms at 50% or more visible. `turn_id` is mounted_by.turn_id as
4461
+ // the server sent it; `widget` is the tile's widget id.
4462
+ syntro_tile_seen: entry({
4463
+ subject: "tile",
4464
+ verb: "seen",
4465
+ scope: "open",
4466
+ props: ["tile_id", "turn_id", "widget"]
4467
+ }),
4468
+ // ONCE per tile life, when the life ends: the tile unmounts, or the open
4469
+ // scope ends (concierge close, removal, pagehide). A tile scrolling out of
4470
+ // view does not end its life. `visible_ms` is the total time the tile was at
4471
+ // least 50% in view, unoccluded and shown, summed across every visible
4472
+ // stretch (paused while the tab is hidden); `tapped` says whether the
4473
+ // shopper engaged one of its controls during that life. Sent only for a
4474
+ // tile that was seen. A remount, or the same tile still mounted in the next
4475
+ // open, is a new life with its own hidden; the first hidden per tile_id is
4476
+ // the life in which it was seen.
4477
+ syntro_tile_hidden: entry({
4478
+ subject: "tile",
4479
+ verb: "hidden",
4480
+ scope: "open",
4481
+ props: ["tile_id", "turn_id", "widget", "visible_ms", "tapped"]
4482
+ }),
4483
+ // The first engagement of a control inside the tile in this life (a link,
4484
+ // button, [role=button], input or select; not the tile's own dismiss X, not a
4485
+ // tap or swipe on the card surface, not Enter in an editable field), whether
4486
+ // or not the 500 ms dwell finished. A tile not yet seen reports seen first.
4487
+ syntro_tile_tapped: entry({
4488
+ subject: "tile",
4489
+ verb: "tapped",
4490
+ scope: "open",
4491
+ props: ["tile_id", "turn_id", "widget", "visible_ms"]
4492
+ }),
4493
+ // A product was added to the cart from inside the tile.
4494
+ syntro_tile_cart_added: entry({
4495
+ subject: "tile_cart",
4496
+ verb: "added",
4497
+ scope: "open",
4498
+ props: ["tile_id", "turn_id", "product"]
4458
4499
  }),
4459
4500
  // A tile's own data load finished: the network wait between the concierge
4460
4501
  // mounting a tile and the shopper seeing its content (BUG-1784767817 was a
@@ -4476,15 +4517,24 @@ var TELEMETRY_EVENTS = {
4476
4517
  subject: "chat_message",
4477
4518
  verb: "sent",
4478
4519
  scope: "open",
4479
- props: ["turn", "chars", "via"]
4480
- // via: ChatSendVia
4520
+ props: ["turn", "chars", "via", "turn_id"]
4521
+ // via: ChatSendVia; turn_id: the user message id
4481
4522
  }),
4482
4523
  syntro_chat_reply_received: entry({
4483
4524
  subject: "chat_reply",
4484
4525
  verb: "received",
4485
4526
  scope: "open",
4486
4527
  // mount_tools: the mount_* tool name of every mount this reply fired, in order (two product cards appear twice).
4487
- props: ["turn", "ttft_ms", "total_ms", "mounts", "cards", "mount_tools"]
4528
+ props: [
4529
+ "turn",
4530
+ "ttft_ms",
4531
+ "total_ms",
4532
+ "mounts",
4533
+ "cards",
4534
+ "mount_tools",
4535
+ "turn_id",
4536
+ "first_tile_ms"
4537
+ ]
4488
4538
  }),
4489
4539
  syntro_chat_interrupted: entry({
4490
4540
  subject: "chat",
@@ -4708,4 +4758,4 @@ export {
4708
4758
  * SPDX-License-Identifier: BSD-3-Clause
4709
4759
  *)
4710
4760
  */
4711
- //# sourceMappingURL=chunk-4V5L7IRV.js.map
4761
+ //# sourceMappingURL=chunk-RTPSG3PY.js.map