@syntrologie/adapt-guide 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.
package/dist/cdn.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runtime
3
- } from "./chunk-BVOACKL5.js";
3
+ } from "./chunk-Z3DPZEIT.js";
4
4
  import "./chunk-IGIU6S7P.js";
5
5
 
6
6
  // src/cdn.ts
@@ -109,7 +109,48 @@ var TELEMETRY_EVENTS = {
109
109
  subject: "tile",
110
110
  verb: "dismissed",
111
111
  scope: "open",
112
- props: ["tile_id", "tile_kind", "visible_ms"]
112
+ props: ["tile_id", "tile_kind", "visible_ms", "turn_id"]
113
+ }),
114
+ // A model-mounted live tile the shopper actually saw: once per instance,
115
+ // after 500 ms at 50% or more visible. `turn_id` is mounted_by.turn_id as
116
+ // the server sent it; `widget` is the tile's widget id.
117
+ syntro_tile_seen: entry({
118
+ subject: "tile",
119
+ verb: "seen",
120
+ scope: "open",
121
+ props: ["tile_id", "turn_id", "widget"]
122
+ }),
123
+ // ONCE per tile life, when the life ends: the tile unmounts, or the open
124
+ // scope ends (concierge close, removal, pagehide). A tile scrolling out of
125
+ // view does not end its life. `visible_ms` is the total time the tile was at
126
+ // least 50% in view, unoccluded and shown, summed across every visible
127
+ // stretch (paused while the tab is hidden); `tapped` says whether the
128
+ // shopper engaged one of its controls during that life. Sent only for a
129
+ // tile that was seen. A remount, or the same tile still mounted in the next
130
+ // open, is a new life with its own hidden; the first hidden per tile_id is
131
+ // the life in which it was seen.
132
+ syntro_tile_hidden: entry({
133
+ subject: "tile",
134
+ verb: "hidden",
135
+ scope: "open",
136
+ props: ["tile_id", "turn_id", "widget", "visible_ms", "tapped"]
137
+ }),
138
+ // The first engagement of a control inside the tile in this life (a link,
139
+ // button, [role=button], input or select; not the tile's own dismiss X, not a
140
+ // tap or swipe on the card surface, not Enter in an editable field), whether
141
+ // or not the 500 ms dwell finished. A tile not yet seen reports seen first.
142
+ syntro_tile_tapped: entry({
143
+ subject: "tile",
144
+ verb: "tapped",
145
+ scope: "open",
146
+ props: ["tile_id", "turn_id", "widget", "visible_ms"]
147
+ }),
148
+ // A product was added to the cart from inside the tile.
149
+ syntro_tile_cart_added: entry({
150
+ subject: "tile_cart",
151
+ verb: "added",
152
+ scope: "open",
153
+ props: ["tile_id", "turn_id", "product"]
113
154
  }),
114
155
  // A tile's own data load finished: the network wait between the concierge
115
156
  // mounting a tile and the shopper seeing its content (BUG-1784767817 was a
@@ -131,15 +172,24 @@ var TELEMETRY_EVENTS = {
131
172
  subject: "chat_message",
132
173
  verb: "sent",
133
174
  scope: "open",
134
- props: ["turn", "chars", "via"]
135
- // via: ChatSendVia
175
+ props: ["turn", "chars", "via", "turn_id"]
176
+ // via: ChatSendVia; turn_id: the user message id
136
177
  }),
137
178
  syntro_chat_reply_received: entry({
138
179
  subject: "chat_reply",
139
180
  verb: "received",
140
181
  scope: "open",
141
182
  // mount_tools: the mount_* tool name of every mount this reply fired, in order (two product cards appear twice).
142
- props: ["turn", "ttft_ms", "total_ms", "mounts", "cards", "mount_tools"]
183
+ props: [
184
+ "turn",
185
+ "ttft_ms",
186
+ "total_ms",
187
+ "mounts",
188
+ "cards",
189
+ "mount_tools",
190
+ "turn_id",
191
+ "first_tile_ms"
192
+ ]
143
193
  }),
144
194
  syntro_chat_interrupted: entry({
145
195
  subject: "chat",
@@ -3542,4 +3592,4 @@ export {
3542
3592
  * SPDX-License-Identifier: BSD-3-Clause
3543
3593
  *)
3544
3594
  */
3545
- //# sourceMappingURL=chunk-BVOACKL5.js.map
3595
+ //# sourceMappingURL=chunk-Z3DPZEIT.js.map