@saar-ai/web-widget 0.9.0 → 0.11.0

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 (78) hide show
  1. package/dist/adopt-stylesheet.d.ts +11 -0
  2. package/dist/adopt-stylesheet.d.ts.map +1 -0
  3. package/dist/chunks/{chat-DAgqVvIS.js → chat-CU9VPqVO.js} +112 -16
  4. package/dist/chunks/{host-widget-CTK7C95y.js → host-widget-BZKCb7yR.js} +7752 -989
  5. package/dist/chunks/{schemas-D-uDc-9q.js → schemas-YN3wGSGZ.js} +7 -4
  6. package/dist/chunks/{telemetry-DQUulENJ.js → telemetry-B1xBTk1s.js} +1 -1
  7. package/dist/concierge-shell.css +2 -0
  8. package/dist/concierge-state.d.ts +234 -0
  9. package/dist/concierge-state.d.ts.map +1 -0
  10. package/dist/dock/dock-drag.d.ts +5 -5
  11. package/dist/dock/dock-drag.d.ts.map +1 -1
  12. package/dist/dock/dock-float.d.ts +116 -0
  13. package/dist/dock/dock-float.d.ts.map +1 -0
  14. package/dist/dock/dock-motion.d.ts +61 -6
  15. package/dist/dock/dock-motion.d.ts.map +1 -1
  16. package/dist/dock/dock-pill.d.ts +18 -1
  17. package/dist/dock/dock-pill.d.ts.map +1 -1
  18. package/dist/dock/dock-renderer.d.ts +3 -0
  19. package/dist/dock/dock-renderer.d.ts.map +1 -0
  20. package/dist/dock/dock-row.d.ts +128 -10
  21. package/dist/dock/dock-row.d.ts.map +1 -1
  22. package/dist/dock/dock-sheet.d.ts.map +1 -1
  23. package/dist/dock/dock-state.d.ts +115 -135
  24. package/dist/dock/dock-state.d.ts.map +1 -1
  25. package/dist/dock/dock.d.ts +103 -24
  26. package/dist/dock/dock.d.ts.map +1 -1
  27. package/dist/dock/geometry.d.ts +129 -3
  28. package/dist/dock/geometry.d.ts.map +1 -1
  29. package/dist/generated/concierge-shell-css.d.ts +2 -0
  30. package/dist/generated/concierge-shell-css.d.ts.map +1 -0
  31. package/dist/generated/widget-css.d.ts.map +1 -1
  32. package/dist/host-widget.d.ts +84 -2
  33. package/dist/host-widget.d.ts.map +1 -1
  34. package/dist/index.d.ts +9 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +206 -4024
  37. package/dist/messages.d.ts +88 -1
  38. package/dist/messages.d.ts.map +1 -1
  39. package/dist/mount.d.ts +4 -5
  40. package/dist/mount.d.ts.map +1 -1
  41. package/dist/next/index.js +1 -1
  42. package/dist/renderers.d.ts +3 -0
  43. package/dist/renderers.d.ts.map +1 -0
  44. package/dist/rope-knot.d.ts +67 -0
  45. package/dist/rope-knot.d.ts.map +1 -1
  46. package/dist/styles.d.ts +1 -0
  47. package/dist/styles.d.ts.map +1 -1
  48. package/dist/theme/derive.d.ts +1 -1
  49. package/dist/theme/derive.d.ts.map +1 -1
  50. package/dist/use-chat-session.d.ts +33 -1
  51. package/dist/use-chat-session.d.ts.map +1 -1
  52. package/dist/use-voice-session.d.ts +2 -0
  53. package/dist/use-voice-session.d.ts.map +1 -1
  54. package/dist/voice-widget.d.ts +114 -3
  55. package/dist/voice-widget.d.ts.map +1 -1
  56. package/dist/widget/concierge-launcher.d.ts +53 -0
  57. package/dist/widget/concierge-launcher.d.ts.map +1 -0
  58. package/dist/widget/concierge-shell.d.ts +255 -0
  59. package/dist/widget/concierge-shell.d.ts.map +1 -0
  60. package/dist/widget/position.d.ts +65 -0
  61. package/dist/widget/position.d.ts.map +1 -0
  62. package/dist/widget/shell-renderer.d.ts +3 -0
  63. package/dist/widget/shell-renderer.d.ts.map +1 -0
  64. package/dist/widget/transcript-geometry.d.ts +220 -0
  65. package/dist/widget/transcript-geometry.d.ts.map +1 -0
  66. package/dist/widget/widget-view.d.ts +74 -0
  67. package/dist/widget/widget-view.d.ts.map +1 -0
  68. package/dist/widget-cards.d.ts +21 -1
  69. package/dist/widget-cards.d.ts.map +1 -1
  70. package/dist/widget-cart-summary.d.ts +10 -1
  71. package/dist/widget-cart-summary.d.ts.map +1 -1
  72. package/dist/widget.css +1 -1
  73. package/package.json +7 -3
  74. package/src/styles/concierge-shell-entry.css +42 -0
  75. package/src/styles/concierge.css +528 -65
  76. package/src/styles/dock-surface.css +284 -0
  77. package/src/styles/tokens.css +22 -6
  78. package/src/styles/widget-entry.css +42 -1
@@ -90,7 +90,12 @@ export interface WidgetMessages {
90
90
  * | `dock_cards` | `cards` — carries `{count}` |
91
91
  * | `dock_voice_failed` | a voice CONNECT that failed — the one line a shopper can act on |
92
92
  * | `dock_show_transcript` | §3.4 — the sheet's header, voice sessions only |
93
- * | `dock_show_conversation` | §3.4 — the sheet's header, TEXT sessions with more than one turn |
93
+ * | `dock_show_conversation` | §3.5 — the float's accessible name: pressing it opens the visor |
94
+ * | `dock_unread` | §3.2 — appended to the pill's name while the unread dot shows |
95
+ * | `dock_float_you` | §3.5 — the float's speaker label on the shopper's own line |
96
+ * | `dock_float_dismiss` | §3.5 — the float's own close control |
97
+ * | `dock_minimise_dock` | §5.4 — what pressing the MARK does: collapse the row to the pill |
98
+ * | `dock_hide_conversation` | §3.3 — the visor's X: closes the visor, and nothing else |
94
99
  * | `dock_earbuds` | §8.7 — offered once per session on a headset connect |
95
100
  */
96
101
  readonly dock_connecting?: string;
@@ -128,6 +133,53 @@ export interface WidgetMessages {
128
133
  */
129
134
  readonly dock_show_conversation?: string;
130
135
  readonly dock_earbuds?: string;
136
+ /**
137
+ * §3.2 (added 2026-09-15) — the notification dot's words. The dot is
138
+ * colour and shape only, so its meaning reaches a screen reader as a
139
+ * suffix on the pill's accessible name.
140
+ */
141
+ readonly dock_unread?: string;
142
+ /**
143
+ * §3.5 (added 2026-09-15) — the float's speaker label on the SHOPPER's own
144
+ * line. The concierge's lines carry its name instead, which is the
145
+ * tenant's and needs no key.
146
+ */
147
+ readonly dock_float_you?: string;
148
+ /**
149
+ * §3.5 (added 2026-09-16) — the float's own dismiss control.
150
+ *
151
+ * The float no longer times out or hides on a scroll, so it needs a way
152
+ * out that the shopper chooses. One word, because it sits on a 44 px target
153
+ * inside a two-line surface and the WORDS are only ever read aloud — what
154
+ * is drawn is a glyph.
155
+ */
156
+ readonly dock_float_dismiss?: string;
157
+ /**
158
+ * §5.4 (added 2026-09-16) — the ACTION half of the mark's accessible name.
159
+ *
160
+ * The mark announces the session's state (`state_idle` / `state_listening`)
161
+ * and now also collapses the dock, so the name is "<state>, <action>": a
162
+ * screen-reader user who cannot see the row shrink has no other way to tell
163
+ * that pressing the avatar puts the concierge away. Distinct from
164
+ * `minimize`, which names the visor header's chevron — the two controls
165
+ * reach the same pill but from different surfaces, and a tenant translating
166
+ * them may well want different words.
167
+ */
168
+ readonly dock_minimise_dock?: string;
169
+ /**
170
+ * §3.3 (added 2026-09-16) — the visor's own close control, the X at the
171
+ * inline end of its top bar.
172
+ *
173
+ * Distinct from `minimize` and from `dock_minimise_dock`, and the
174
+ * distinction is the whole point of the key existing. Those two put the
175
+ * CONCIERGE away: the row collapses to the pill and the session goes with
176
+ * it. This one closes the VISOR and leaves the row exactly where it was,
177
+ * which is what an X on a panel means everywhere else and what the header's
178
+ * chevron wrongly did not do until 2026-09-16. A tenant translating the
179
+ * three needs three strings, because in most languages "hide this panel"
180
+ * and "put the assistant away" are not the same verb.
181
+ */
182
+ readonly dock_hide_conversation?: string;
131
183
  /**
132
184
  * The handoff MARKER — the quiet inline divider in the transcript at the
133
185
  * point the conversation was handed to a person. Past tense on purpose: it
@@ -182,6 +234,13 @@ export interface WidgetMessages {
182
234
  readonly see_all: string;
183
235
  readonly cart_summary_title: string;
184
236
  readonly cart_summary_total: string;
237
+ /**
238
+ * The cart summary's discount row label (SAA-174) — shown when the
239
+ * storefront's total is below its own line prices, as it is for a Shopify
240
+ * basket with a discount applied. Optional, like every key added after
241
+ * 0.2.0 (see `handoff_event` above for the compatibility contract).
242
+ */
243
+ readonly cart_summary_discounts?: string;
185
244
  readonly checkout_now: string;
186
245
  readonly checkout_failed: string;
187
246
  /**
@@ -228,6 +287,34 @@ export interface WidgetMessages {
228
287
  * Optional for the same published-interface reason as `handoff_event`.
229
288
  */
230
289
  readonly voice_unavailable_escalated?: string;
290
+ /**
291
+ * SAA-175 — the control a product card draws INSTEAD of "Add to cart" when
292
+ * the product has more than one sellable variant
293
+ * (`WidgetChatCard.variantChoiceRequired`). The shopper has not picked a
294
+ * size or colour, so a one-press add would put a variant they never chose in
295
+ * the basket.
296
+ *
297
+ * - `choose_options` — the visible button text.
298
+ * - `choose_options_label` — its accessible name; `{title}` is the card's
299
+ * product title, so a screen reader hears WHICH product the control is
300
+ * for rather than several identical "Choose options" buttons.
301
+ *
302
+ * There is deliberately no key for what the press SENDS: it is a typed
303
+ * `variant_choice_request` storefront report, and the server composes the
304
+ * model's line. No widget copy reaches the model.
305
+ *
306
+ * Optional for the same published-interface reason as `handoff_event`.
307
+ */
308
+ readonly choose_options?: string;
309
+ readonly choose_options_label?: string;
310
+ /**
311
+ * SAA-175 — the notice shown when "Choose options" is pressed during a live
312
+ * call. The question is held until the call ends (a typed turn mid-call
313
+ * would be answered over the caller), so the shopper is told it is coming
314
+ * rather than seeing the button re-arm with nothing happening. Optional for
315
+ * the same published-interface reason as `handoff_event`.
316
+ */
317
+ readonly choose_options_after_call?: string;
231
318
  }
232
319
  /**
233
320
  * Message keys that carry a `{product}` placeholder — the avatar's
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,I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CAAC,EAAE,MAAM,CAAC;CAC7C;AAED;;;;;GAKG;AACH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAuE1D,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAM9F;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc,CAOzF;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAGhG"}
package/dist/mount.d.ts CHANGED
@@ -45,10 +45,9 @@ export interface MountedWidget {
45
45
  */
46
46
  export declare function mountConciergeWidget(host: HTMLElement, props: ConciergeWidgetProps): MountedWidget;
47
47
  /**
48
- * `adoptedStyleSheets` when the browser has it; a `<style>` element otherwise
49
- * — see `mountConciergeWidget`'s doc comment. Exported (not just used
50
- * internally) so `cdn/ui.ts` can adopt the same stylesheet into the shadow
51
- * root `core.ts` already created, without a second `attachShadow` call.
48
+ * The npm-facing stylesheet adopter: the dock's sheet unless told otherwise.
49
+ * The CDN entries call `adoptStylesheet` (`adopt-stylesheet.ts`) directly with
50
+ * their own sheet — see that file for why the default lives here and not there.
52
51
  */
53
- export declare function adoptWidgetStylesheet(shadow: ShadowRoot): void;
52
+ export declare function adoptWidgetStylesheet(shadow: ShadowRoot, css?: string): void;
54
53
  //# sourceMappingURL=mount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG9E,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,oBAAoB,GAC1B,aAAa,CAqCf;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAiB9D"}
1
+ {"version":3,"file":"mount.d.ts","sourceRoot":"","sources":["../src/mount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI9E,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;OASG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,oBAAoB,GAC1B,aAAa,CAuCf;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,GAAE,MAAmB,GAAG,IAAI,CAExF"}
@@ -1,4 +1,4 @@
1
- import { m as detectPage, t as ConciergeWidget } from "../chunks/host-widget-CTK7C95y.js";
1
+ import { i as ConciergeWidget, v as detectPage } from "../chunks/host-widget-BZKCb7yR.js";
2
2
  import { useCallback, useEffect, useMemo, useRef } from "react";
3
3
  import { usePathname, useRouter } from "next/navigation";
4
4
  //#region src/next/use-next-bridge.ts
@@ -0,0 +1,3 @@
1
+ import type { ConciergeRenderer } from './voice-widget.js';
2
+ export declare function rendererFor(generation: 'widget' | 'dock' | undefined): ConciergeRenderer;
3
+ //# sourceMappingURL=renderers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderers.d.ts","sourceRoot":"","sources":["../src/renderers.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,wBAAgB,WAAW,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,iBAAiB,CAExF"}
@@ -1,4 +1,71 @@
1
1
  import type { BotState } from './bot-state.js';
2
+ /**
3
+ * The `'knot'` avatar — a single hand-drawn line that loops through itself
4
+ * into a knot, in the two sizes the widget uses (`sm` trigger, `lg` panel
5
+ * orb-slot) and the same four {@link BotState}s `BotFace` (the `'orb'`
6
+ * avatar) renders. Selected per tenant via `appearance.avatar` — see
7
+ * `avatar.ts` — and otherwise a drop-in for `BotFace` at every call site:
8
+ * same `state`/`size`/`label` contract, same `labelProps` accessibility rule
9
+ * (imported from `bot-face.tsx` rather than redeclared).
10
+ *
11
+ * Ported from the Lovable prototype's `RopeKnot.tsx`.
12
+ *
13
+ * ## Why the colour vars are declared HERE, not in `concierge.css`
14
+ *
15
+ * The rope's colour is never hardcoded — `--knot-ink` and its
16
+ * `-faint`/`-halo`/`-surface` derivatives alias `--brand-plum`, the same
17
+ * tenant-config-driven variable `BotFace`'s gradient reads. They used to
18
+ * live in a `:root { --knot-ink: var(--brand-plum, …); … }` block in
19
+ * `concierge.css`, which was broken two ways at once: `:root` matches
20
+ * nothing inside the CDN embed's shadow tree (the tenant's brand colours
21
+ * never reach a shadow-mounted widget at all), and even in light DOM, a
22
+ * `--x: var(--y)` declaration resolves `var(--y)` using the DECLARING
23
+ * element's own cascade AT THAT MOMENT — `:root` has no tenant override on
24
+ * it, that override lives on a DESCENDANT (`ConciergeShell`'s
25
+ * `skinStyle`-carrying wrapper), so every tenant silently got the built-in
26
+ * plum default regardless of what they published.
27
+ *
28
+ * `RopeKnotFrame`'s own root div is always rendered somewhere INSIDE that
29
+ * `skinStyle` wrapper (`ConciergeShell` renders both the panel orb and,
30
+ * via `ConciergeLauncher`, the collapsed pill, and both sit inside the one
31
+ * `<div data-skin style={skinStyle}>` root). Declaring the vars on THIS
32
+ * element via inline `style` means `var(--brand-plum, …)` resolves using
33
+ * THIS element's own cascade — which, by the time render reaches here, has
34
+ * already inherited whatever override the ancestor set. Everything BELOW
35
+ * this div (the halo, the svg, the drawn path) then just inherits the
36
+ * already-resolved values normally, in both light and shadow DOM, no
37
+ * selector needed at all. Same fix `concierge.css`'s own `@theme inline`
38
+ * block uses for `--color-brand-plum` (see that block's doc comment) —
39
+ * "resolve where it's used," not "resolve once at the top."
40
+ *
41
+ * ## The crossfade
42
+ *
43
+ * Every state change freezes the `stroke-dasharray` the rope was showing —
44
+ * read directly off the live element via `getComputedStyle` at the instant
45
+ * the state actually changes — into `--rk-from`, then remounts the drawn
46
+ * path so the incoming state's `rk-blend-to-*` animation eases OUT of that
47
+ * exact shape instead of snapping back to the self-tying intro. This is a
48
+ * single synchronous read inside the state-change effect, not a polling
49
+ * loop: a CSS animation keeps an element's OWN computed style live at every
50
+ * instant, so there is nothing to gain by sampling continuously, and a
51
+ * `requestAnimationFrame` loop that ran forever — for the life of the
52
+ * component, including a launcher pill that never leaves `state="idle"` and
53
+ * can never blend at all, and regardless of `prefers-reduced-motion`, where
54
+ * the dash never even changes — was a real cost on a merchant's page for no
55
+ * benefit.
56
+ */
57
+ /**
58
+ * The knot itself, in a 100 × 100 box with `pathLength={100}`.
59
+ *
60
+ * EXPORTED, and this is the copy the `ui` bundle keeps: `dock-row.tsx` drew
61
+ * the same string again for the mark's `knot` avatar, which made three copies
62
+ * counting `cdn/dock-dom.ts`'s — and that file's own comment names a third
63
+ * copy as the signal to extract. Two of the three ship in the SAME chunk, so
64
+ * there is no bundling reason for them to be apart; `dock-dom.ts` keeps its
65
+ * copy on purpose, because `core` is a separate artefact with its own budget
66
+ * and importing this module would drag the whole rope into it.
67
+ */
68
+ export declare const KNOT_PATH = "M2 54 C15 54 24 55 31 53 C40 50 44 40 54 41 C64 42 67 51 60 57 C52 64 38 64 33 57 C29 51 34 45 42 46 C50 47 58 52 68 53.5 C80 55 90 54 98 54";
2
69
  type Size = 'sm' | 'lg';
3
70
  export interface RopeKnotProps {
4
71
  state?: BotState;
@@ -1 +1 @@
1
- {"version":3,"file":"rope-knot.d.ts","sourceRoot":"","sources":["../src/rope-knot.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAkG/C,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAc,EAAE,IAAW,EAAE,KAAK,EAAE,UAAc,EAAE,EAAE,aAAa,+BA2B7F"}
1
+ {"version":3,"file":"rope-knot.d.ts","sourceRoot":"","sources":["../src/rope-knot.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,iJAC0H,CAAC;AAuCjJ,KAAK,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAExB,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAc,EAAE,IAAW,EAAE,KAAK,EAAE,UAAc,EAAE,EAAE,aAAa,+BA2B7F"}
package/dist/styles.d.ts CHANGED
@@ -16,4 +16,5 @@
16
16
  * shadow-DOM mount.
17
17
  */
18
18
  export { WIDGET_CSS } from './generated/widget-css.js';
19
+ export { CONCIERGE_SHELL_CSS } from './generated/concierge-shell-css.js';
19
20
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAQvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -20,7 +20,7 @@ export interface WidgetTypeConfig {
20
20
  * is part of the contract: `themeToCss`'s output is snapshotted, and a reader
21
21
  * comparing a rendered block against the spec table should not have to sort.
22
22
  */
23
- export declare const WIDGET_THEME_TOKENS: readonly ['--wgt-primary', '--wgt-on-primary', '--wgt-accent', '--wgt-surface', '--wgt-surface-2', '--wgt-surface-glass', '--wgt-surface-glass-blurred', '--wgt-text', '--wgt-text-muted', '--wgt-border', '--wgt-ring', '--wgt-radius', '--wgt-row-radius', '--wgt-sheet-radius', '--wgt-card-radius', '--wgt-font', '--wgt-caps'];
23
+ export declare const WIDGET_THEME_TOKENS: readonly ['--wgt-primary', '--wgt-on-primary', '--wgt-surface', '--wgt-surface-2', '--wgt-surface-glass', '--wgt-surface-glass-blurred', '--wgt-surface-veil', '--wgt-glass-tune', '--wgt-text', '--wgt-text-muted', '--wgt-border', '--wgt-ring', '--wgt-radius', '--wgt-row-radius', '--wgt-sheet-radius', '--wgt-card-radius', '--wgt-font', '--wgt-caps'];
24
24
  export type WidgetThemeVar = (typeof WIDGET_THEME_TOKENS)[number];
25
25
  export type WidgetThemeVars = Record<WidgetThemeVar, string>;
26
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../src/theme/derive.ts"],"names":[],"mappings":"AA0CA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5C,4BAA4B;AAC5B,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,2BAA2B;AAC3B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,YAC9B,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,YAAY,CACJ,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,EAAE,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AI,EAAE,UAAU,CAAC;CAClB;AAED;;;;GAIG;AAiBH,eAAO,MAAM,mBAAmB,YAC9B,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,YAAY,CACJ,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAED;2CAC2C;AAC3C,eAAO,MAAM,iBAAiB,0FACuD,CAAC;AAUtF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AA4ZrC;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,gBAAgB,GAAG,kBAAkB,CA2BhG;AAOD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAAE,QAAQ,SAAU,GAAG,MAAM,CAMhF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAEhE"}
@@ -252,6 +252,30 @@ export interface ChatTurn {
252
252
  readonly cards?: ChatCards;
253
253
  /** Files carried on THIS turn, either direction. Empty/absent for a turn with none. */
254
254
  readonly attachments?: readonly ChatAttachment[];
255
+ /**
256
+ * The display name of the HUMAN who wrote this reply — see
257
+ * {@link PolledTurn.operatorName} for where it comes from and why its
258
+ * absence is the normal case rather than an error.
259
+ *
260
+ * Carried through to the renderer so the widget can say who is talking
261
+ * after a handoff (DOCK_SPEC §2, §3.5, §5.1's `human` row). Never derived
262
+ * here: a turn either arrived with a name or it did not.
263
+ */
264
+ readonly operatorName?: string;
265
+ /**
266
+ * The server's own position for this turn (`turns.seq`), present only on a
267
+ * turn that ARRIVED from the server — the poll or the socket push.
268
+ *
269
+ * Absent on everything created locally: the shopper's own bubble at send
270
+ * time, the streamed agent bubble, and the handoff marker. That absence is
271
+ * meaningful rather than incidental, and `insertBySeq` reads it as one —
272
+ * those rows have no server position, so they are fixed points that an
273
+ * out-of-order arrival may not be placed across.
274
+ *
275
+ * Exposed because a consumer rendering a merged transcript needs the same
276
+ * ordering fact this hook does; it is not a display field.
277
+ */
278
+ readonly seq?: number;
255
279
  }
256
280
  export interface ChatAttribution {
257
281
  readonly pageUrl?: string;
@@ -496,8 +520,16 @@ export interface UseChatSessionResult {
496
520
  * The report is client-asserted, exactly as the sentence it replaced was —
497
521
  * see `WidgetChatInput.report`'s doc comment (`apps/api`) for why
498
522
  * cross-verifying it server-side is deliberately out of scope.
523
+ *
524
+ * `quietOnHttpError` (SAA-175): a 4xx still resolves `false` and rolls the
525
+ * turn back, but leaves the session status alone instead of setting
526
+ * `'error'`. For a caller that has its own fallback, such as an old api
527
+ * refusing a report kind it does not know. A 5xx or network failure is
528
+ * unaffected.
499
529
  */
500
- readonly sendReport: (report: WidgetChatReport) => Promise<boolean>;
530
+ readonly sendReport: (report: WidgetChatReport, options?: {
531
+ readonly quietOnHttpError?: boolean;
532
+ }) => Promise<boolean>;
501
533
  /**
502
534
  * Tell this hook what the shopper's basket currently is, so that every
503
535
  * later turn carries it to the concierge as context.
@@ -1 +1 @@
1
- {"version":3,"file":"use-chat-session.d.ts","sourceRoot":"","sources":["../src/use-chat-session.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,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;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CACzC;AAyXD,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,oBAAoB,CAs7DnF"}
@@ -138,6 +138,7 @@ declare function loadVoiceProtocol(): Promise<{
138
138
  currency: import("zod").ZodString;
139
139
  available: import("zod").ZodBoolean;
140
140
  reason: import("zod").ZodOptional<import("zod").ZodString>;
141
+ variantChoiceRequired: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
141
142
  }, import("zod/v4/core").$strip>>;
142
143
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
143
144
  type: import("zod").ZodLiteral<"escalated">;
@@ -159,6 +160,7 @@ declare function loadVoiceProtocol(): Promise<{
159
160
  currency: import("zod").ZodString;
160
161
  available: import("zod").ZodBoolean;
161
162
  reason: import("zod").ZodOptional<import("zod").ZodString>;
163
+ variantChoiceRequired: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
162
164
  }, import("zod/v4/core").$strip>;
163
165
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
164
166
  type: import("zod").ZodLiteral<"navigate">;
@@ -1 +1 @@
1
- {"version":3,"file":"use-voice-session.d.ts","sourceRoot":"","sources":["../src/use-voice-session.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EACnB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAqC,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAA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AC/B;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3D;;;;;;;;;;;;OAYG;IACH,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC;AAiBD,MAAM,WAAW,8BAA8B;IAC7C;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,0HAA0H;IAC1H,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;CACnC;AAqGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,8BAA8B,GACtC,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,CAyBnD;AA4ED,wBAAgB,eAAe,CAAC,OAAO,GAAE,sBAA2B,GAAG,YAAY,CA0gBlF"}
@@ -1,6 +1,6 @@
1
- import { type CSSProperties } from 'react';
1
+ import { type ComponentType, type CSSProperties, type ReactNode } from 'react';
2
2
  import { type WidgetMessages } from './messages.js';
3
- import { type DockProps, type WidgetAttribution } from './dock/dock.js';
3
+ import { type DockProps, type DockTurn, type DockVoiceProps, type WidgetAttribution } from './dock/dock.js';
4
4
  /**
5
5
  * Where a call is, from the caller's point of view.
6
6
  *
@@ -61,6 +61,17 @@ export interface WidgetTurn {
61
61
  * read as one.
62
62
  */
63
63
  readonly filler?: boolean;
64
+ /**
65
+ * WHO wrote this reply, when it was not the concierge — the display name of
66
+ * the human operator who took the conversation (DOCK_SPEC §5.1's `human`).
67
+ *
68
+ * Present ONLY on an operator's own turn, and only when the tenant
69
+ * published `handoff.showOperatorName: true`: the api omits the field
70
+ * entirely otherwise (`use-chat-session.ts`'s `PolledTurn.operatorName`),
71
+ * so its absence is the normal case and there is nothing on this side to
72
+ * gate or to hide. A turn without it is drawn exactly as it always was.
73
+ */
74
+ readonly operatorName?: string;
64
75
  }
65
76
  export type WidgetMode = 'voice' | 'text';
66
77
  export interface VoiceWidgetProps {
@@ -133,6 +144,14 @@ export interface VoiceWidgetProps {
133
144
  readonly onTyping?: () => void;
134
145
  /** Forwarded to every product card's "Add to cart" button, text mode only. */
135
146
  readonly onAddToCart?: (item: ChatCardItem) => void;
147
+ /**
148
+ * Forwarded to `WidgetCardList` — pressed on a card for a product with more
149
+ * than one sellable variant, whose "Choose options" control replaces "Add to
150
+ * cart" (SAA-175). See `WidgetCardListProps.onChooseOptions`.
151
+ */
152
+ readonly onChooseOptions?: (item: ChatCardItem) => void | Promise<void>;
153
+ /** Forwarded to `WidgetCardList` — see `WidgetCardListProps.chooseOptionsBusy`. */
154
+ readonly chooseOptionsBusy?: boolean;
136
155
  /**
137
156
  * Forwarded to `WidgetCardList` — builds the "See all N" link's href for a
138
157
  * curation too large to show inline in full. See that component's own doc
@@ -159,6 +178,8 @@ export interface VoiceWidgetProps {
159
178
  readonly lines: readonly WidgetCartLine[];
160
179
  readonly subtotalMinor: number;
161
180
  readonly currency: string;
181
+ /** The storefront's discounts, when its total is below its own lines — see `WidgetCartSummaryProps.discountMinor`. */
182
+ readonly discountMinor?: number;
162
183
  /** Starts checkout; resolves to the URL to send the shopper to, or `null` on failure. */
163
184
  readonly onCheckout: () => Promise<string | null>;
164
185
  };
@@ -213,8 +234,88 @@ export interface VoiceWidgetProps {
213
234
  * is exactly what a harness with no session (Storybook, the marketing
214
235
  * preview) has.
215
236
  */
237
+ /**
238
+ * Which chrome draws the session — docs/CONCIERGE_GENERATIONS.md §3. The
239
+ * conversation (turns, composer, voice, cart, attachments) is computed once
240
+ * here and handed to the renderer as a `ConversationView`; the renderer
241
+ * decides only how it looks. Absent, `generation` picks one; absent too,
242
+ * the dock — the value every test and story in this package was written
243
+ * against. The CDN entries (`cdn/ui.ts`, `cdn/ui-widget.ts`) never come
244
+ * through this default: they pass one explicitly so that each chunk ships
245
+ * one renderer's code and not both (`VoiceWidgetWithRenderer`).
246
+ */
247
+ readonly renderer?: ConciergeRenderer;
248
+ /** §9.1 `ui.generation`, honoured only when `renderer` is absent. */
249
+ readonly generation?: 'widget' | 'dock';
216
250
  readonly dock?: Omit<DockProps, 'draft' | 'onDraftChange' | 'onSubmit' | 'transcript' | 'sheetExtra' | 'messages'>;
217
251
  }
252
+ /**
253
+ * The session as a renderer sees it — everything `VoiceWidget` derives from
254
+ * its props and its own state, and nothing a renderer would have to derive
255
+ * again. Both renderers read the SAME view (docs/CONCIERGE_GENERATIONS.md §2:
256
+ * one state, two presentations); a field that only one of them draws is still
257
+ * here, because "the widget has no row" is a rendering decision, not a
258
+ * different conversation.
259
+ *
260
+ * The shared pieces of chrome — the transcript log, the hidden attachment
261
+ * input, the basket and upload status — are built here as nodes rather than
262
+ * re-described per renderer, so a fix to how a turn is drawn lands in both.
263
+ */
264
+ export interface ConversationView {
265
+ readonly state: BotState;
266
+ readonly turns: readonly WidgetTurn[];
267
+ /** The last SPOKEN turn in the dock's terms — see the derivation in `VoiceWidget`. */
268
+ readonly lastTurn: DockTurn | undefined;
269
+ /** The most recent operator name on the thread, for a `human` header. */
270
+ readonly operatorName: string | undefined;
271
+ /** §5.1 — somebody on the other side is composing. */
272
+ readonly composing: boolean;
273
+ readonly channel: 'text' | 'voice';
274
+ readonly mode: WidgetMode;
275
+ readonly showMic: boolean;
276
+ readonly callPhase: ConciergeCallPhase;
277
+ readonly micOpen: boolean;
278
+ readonly onToggleMic: () => void;
279
+ readonly onEndCall: (() => void) | undefined;
280
+ /** The dock's voice bag, derived from `callPhase`/`state`; the shell maps it to its own. */
281
+ readonly voice: DockVoiceProps;
282
+ readonly statusLine: string | undefined;
283
+ readonly statusKind: 'session' | 'voice' | undefined;
284
+ readonly notice: string | undefined;
285
+ readonly escalated: boolean;
286
+ readonly humanTyping: boolean;
287
+ readonly draft: string;
288
+ /** Sets the draft AND fires `onTyping` for a keystroke that leaves something in the box. */
289
+ readonly onDraftChange: (value: string) => void;
290
+ readonly submit: () => void;
291
+ readonly sending: boolean;
292
+ readonly showBasket: boolean;
293
+ readonly cart: VoiceWidgetProps['cart'];
294
+ readonly attaching: {
295
+ readonly filename: string;
296
+ readonly failed: boolean;
297
+ } | null;
298
+ /** Opens the file picker; present only while a human is on the thread and the host accepts files. */
299
+ readonly onAttach: (() => void) | undefined;
300
+ /** The hidden `<input type="file">` and its label — `null` when `onAttach` is. */
301
+ readonly attachInput: ReactNode;
302
+ /** The `role="log"` transcript, openers included. */
303
+ readonly transcript: ReactNode;
304
+ /** The basket summary and the upload status, for the end of the transcript. */
305
+ readonly extras: ReactNode;
306
+ readonly messages: WidgetMessages;
307
+ readonly locale: string;
308
+ readonly navigate: WidgetNavigate | undefined;
309
+ readonly curationHref: ((curationId: string) => string) | undefined;
310
+ readonly productHref: ((handle: string) => string) | undefined;
311
+ readonly skinStyle: CSSProperties | undefined;
312
+ readonly avatar: WidgetAvatar | undefined;
313
+ readonly attribution: WidgetAttribution | undefined;
314
+ /** The host's chrome bag — the dock reads it whole; the shell reads `layout`, `copy` and `initialMinimised`. */
315
+ readonly dock: VoiceWidgetProps['dock'];
316
+ }
317
+ /** A chrome: draws a `ConversationView`. `DockRenderer` and `ShellRenderer` are the two. */
318
+ export type ConciergeRenderer = ComponentType<ConversationView>;
218
319
  /**
219
320
  * Does this line read as "I want to pay now"?
220
321
  *
@@ -301,5 +402,15 @@ export declare function basketIntentFromTurns(turns: readonly Pick<WidgetTurn, '
301
402
  * `dir`, resolved from that line's locale rather than inherited from the page —
302
403
  * inheriting is what renders Arabic punctuation on the wrong end of a sentence.
303
404
  */
304
- export declare function VoiceWidget({ state, turns, onToggleMic, onEndCall, callPhase, onSendText, micOpen, status, statusKind, notice, mode, escalated, humanTyping, onTyping, onAddToCart, curationHref, productHref, onAttachFile, cart, messages, navigate, locale, skinStyle, avatar, attribution, dock, }: VoiceWidgetProps): import("react").JSX.Element;
405
+ /**
406
+ * The public component: picks a renderer when the caller did not. Kept apart
407
+ * from `VoiceWidgetWithRenderer` so that a CDN entry which imports only the
408
+ * latter never bundles the renderer it does not draw — `rendererFor` is the
409
+ * one place both are named.
410
+ */
411
+ export declare function VoiceWidget({ renderer, generation, ...props }: VoiceWidgetProps): import("react").JSX.Element;
412
+ /** `VoiceWidget` with the renderer decided — the component the CDN entries and `ConciergeHost` use. */
413
+ export declare function VoiceWidgetWithRenderer({ renderer, state, turns, onToggleMic, onEndCall, callPhase, onSendText, micOpen, status, statusKind, notice, mode, escalated, humanTyping, onTyping, onAddToCart, onChooseOptions, chooseOptionsBusy, curationHref, productHref, onAttachFile, cart, messages, navigate, locale, skinStyle, avatar, attribution, dock, }: VoiceWidgetProps & {
414
+ readonly renderer: ConciergeRenderer;
415
+ }): import("react").JSX.Element;
305
416
  //# sourceMappingURL=voice-widget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voice-widget.d.ts","sourceRoot":"","sources":["../src/voice-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAQ,KAAK,SAAS,EAAuB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGnG;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAExF,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OA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