@saar-ai/web-widget 0.9.0 → 0.10.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.
- package/dist/chunks/{chat-DAgqVvIS.js → chat-CU9VPqVO.js} +112 -16
- package/dist/chunks/{host-widget-CTK7C95y.js → host-widget-BtiYIMwb.js} +5456 -343
- package/dist/chunks/{schemas-D-uDc-9q.js → schemas-YN3wGSGZ.js} +7 -4
- package/dist/chunks/{telemetry-DQUulENJ.js → telemetry-B1xBTk1s.js} +1 -1
- package/dist/dock/dock-drag.d.ts +5 -5
- package/dist/dock/dock-drag.d.ts.map +1 -1
- package/dist/dock/dock-float.d.ts +116 -0
- package/dist/dock/dock-float.d.ts.map +1 -0
- package/dist/dock/dock-motion.d.ts +61 -6
- package/dist/dock/dock-motion.d.ts.map +1 -1
- package/dist/dock/dock-pill.d.ts +18 -1
- package/dist/dock/dock-pill.d.ts.map +1 -1
- package/dist/dock/dock-row.d.ts +128 -10
- package/dist/dock/dock-row.d.ts.map +1 -1
- package/dist/dock/dock-sheet.d.ts.map +1 -1
- package/dist/dock/dock-state.d.ts +129 -9
- package/dist/dock/dock-state.d.ts.map +1 -1
- package/dist/dock/dock.d.ts +103 -24
- package/dist/dock/dock.d.ts.map +1 -1
- package/dist/dock/geometry.d.ts +129 -3
- package/dist/dock/geometry.d.ts.map +1 -1
- package/dist/generated/widget-css.d.ts.map +1 -1
- package/dist/host-widget.d.ts +61 -2
- package/dist/host-widget.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3889
- package/dist/messages.d.ts +88 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/rope-knot.d.ts +67 -0
- package/dist/rope-knot.d.ts.map +1 -1
- package/dist/theme/derive.d.ts +1 -1
- package/dist/theme/derive.d.ts.map +1 -1
- package/dist/use-chat-session.d.ts +33 -1
- package/dist/use-chat-session.d.ts.map +1 -1
- package/dist/use-voice-session.d.ts +2 -0
- package/dist/use-voice-session.d.ts.map +1 -1
- package/dist/voice-widget.d.ts +22 -1
- package/dist/voice-widget.d.ts.map +1 -1
- package/dist/widget-cards.d.ts +21 -1
- package/dist/widget-cards.d.ts.map +1 -1
- package/dist/widget-cart-summary.d.ts +10 -1
- package/dist/widget-cart-summary.d.ts.map +1 -1
- package/dist/widget.css +1 -1
- package/package.json +7 -3
- package/src/styles/concierge.css +528 -65
- package/src/styles/dock-surface.css +284 -0
- package/src/styles/tokens.css +22 -6
- package/src/styles/widget-entry.css +3 -0
package/dist/messages.d.ts
CHANGED
|
@@ -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.
|
|
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
|
package/dist/messages.d.ts.map
CHANGED
|
@@ -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,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CA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
-
import {
|
|
1
|
+
import { _ as detectPage, r as ConciergeWidget } from "../chunks/host-widget-BtiYIMwb.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
|
package/dist/rope-knot.d.ts
CHANGED
|
@@ -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;
|
package/dist/rope-knot.d.ts.map
CHANGED
|
@@ -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;
|
|
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/theme/derive.d.ts
CHANGED
|
@@ -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-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../src/theme/derive.ts"],"names":[],"mappings":"AAyCA,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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AAG,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
|
|
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,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAQjF,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAenE;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEhE;AAUD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwGG;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,CAAC;AAEtE;;;;;;;;;GASG;A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AAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,QAAQ,EAAE,CACjB,KAAK,EAAE,SAAS;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,EACzD,UAAU,CAAC,EAAE,MAAM,EACnB,oBAAoB,CAAC,EAAE,MAAM,KAC1B,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACzC;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5E;;;;;;;;;;;;;;;;;;;;;;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,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,MAAM,IAAI,gBAAgB,CAAC;IAC3B,MAAM,IAAI,gBAAgB,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,aA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AAO,CAAC,CAAC;IACzC;;;;;;;;;OASG;IACH,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC;;;;;;;;OAQG;IACH,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/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"}
|
package/dist/voice-widget.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -301,5 +322,5 @@ export declare function basketIntentFromTurns(turns: readonly Pick<WidgetTurn, '
|
|
|
301
322
|
* `dir`, resolved from that line's locale rather than inherited from the page —
|
|
302
323
|
* inheriting is what renders Arabic punctuation on the wrong end of a sentence.
|
|
303
324
|
*/
|
|
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;
|
|
325
|
+
export declare function VoiceWidget({ 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): import("react").JSX.Element;
|
|
305
326
|
//# 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,
|
|
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,EAEL,KAAK,SAAS,EAGd,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;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/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AAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAkB3D;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,GACrD,OAAO,CAIT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,SAAkB,EAClB,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAc,EACd,SAAiB,EACjB,WAAmB,EACnB,QAAQ,EACR,WAAW,EACX,eAAe,EACf,iBAAyB,EACzB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,QAAgC,EAChC,QAAQ,EACR,MAAa,EACb,SAAS,EACT,MAAM,EACN,WAAW,EACX,IAAI,GACL,EAAE,gBAAgB,+BAwpBlB"}
|
package/dist/widget-cards.d.ts
CHANGED
|
@@ -28,6 +28,26 @@ export interface WidgetCardListProps {
|
|
|
28
28
|
* keeps the control honest about when the work is actually finished.
|
|
29
29
|
*/
|
|
30
30
|
readonly onAddToCart?: (item: ChatCardItem) => void | Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* SAA-175 — pressed on a card flagged `variantChoiceRequired` (a product
|
|
33
|
+
* with more than one sellable variant), whose control reads "Choose
|
|
34
|
+
* options" instead of "Add to cart". Such a card NEVER calls
|
|
35
|
+
* {@link WidgetCardListProps.onAddToCart}: its `variantId` is only the
|
|
36
|
+
* variant that priced it, and the shopper has not chosen one.
|
|
37
|
+
* `ConciergeWidget` asks the concierge for the options, or opens the product
|
|
38
|
+
* page when it cannot.
|
|
39
|
+
*
|
|
40
|
+
* Absent ⇒ the flagged card's control is disabled — never an Add. May be
|
|
41
|
+
* async; the button holds until it settles, then re-arms.
|
|
42
|
+
*/
|
|
43
|
+
readonly onChooseOptions?: (item: ChatCardItem) => void | Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* `true` while the conversation cannot take a report — a reply is still
|
|
46
|
+
* streaming, which is the ordinary state when cards arrive. "Choose
|
|
47
|
+
* options" is `aria-disabled` and inert until it clears, rather than
|
|
48
|
+
* letting a refused send look like a failure and open the product page.
|
|
49
|
+
*/
|
|
50
|
+
readonly chooseOptionsBusy?: boolean;
|
|
31
51
|
/**
|
|
32
52
|
* Builds the "See all N" link's href for a curation whose item count
|
|
33
53
|
* exceeds {@link INLINE_CARD_LIMIT}. Absent ⇒ every item just renders
|
|
@@ -95,5 +115,5 @@ export interface WidgetCardListProps {
|
|
|
95
115
|
* the inline strip stays the demo's money shot, but a longer list gets the
|
|
96
116
|
* bigger canvas of its own page rather than an unbounded scroll.
|
|
97
117
|
*/
|
|
98
|
-
export declare function WidgetCardList({ cards, onAddToCart, curationHref, productHref, navigate, locale, messages, roomy, showPrice, imageAspect, }: WidgetCardListProps): import("react").JSX.Element | null;
|
|
118
|
+
export declare function WidgetCardList({ cards, onAddToCart, onChooseOptions, chooseOptionsBusy, curationHref, productHref, navigate, locale, messages, roomy, showPrice, imageAspect, }: WidgetCardListProps): import("react").JSX.Element | null;
|
|
99
119
|
//# sourceMappingURL=widget-cards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-cards.d.ts","sourceRoot":"","sources":["../src/widget-cards.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAwC,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEhG,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;AAwCp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+12,15 @@ export interface WidgetCartSummaryProps {
|
|
|
12
12
|
readonly lines: readonly WidgetCartLine[];
|
|
13
13
|
readonly subtotalMinor: number;
|
|
14
14
|
readonly currency: string;
|
|
15
|
+
/**
|
|
16
|
+
* How far the storefront's own total sits BELOW the lines, in minor units —
|
|
17
|
+
* its discounts. A storefront such as Shopify reports line prices before
|
|
18
|
+
* discounts and the total after them, so without this row the basket
|
|
19
|
+
* visibly does not add up. Omitted or `0` ⇒ no row. The caller computes it
|
|
20
|
+
* only for the host's own lines: over this widget's own adds (a lower
|
|
21
|
+
* bound) a lower host total is not a discount anybody can name.
|
|
22
|
+
*/
|
|
23
|
+
readonly discountMinor?: number;
|
|
15
24
|
/**
|
|
16
25
|
* Starts checkout. Resolves to a URL to send the shopper to, or `null` if a
|
|
17
26
|
* handoff could not be created — the button reports that rather than opening
|
|
@@ -62,5 +71,5 @@ export interface WidgetCartSummaryProps {
|
|
|
62
71
|
* control added here is one more thing between the shopper and checkout. The
|
|
63
72
|
* storefront's own cart drawer remains the place to change quantities.
|
|
64
73
|
*/
|
|
65
|
-
export declare function WidgetCartSummary({ lines, subtotalMinor, currency, onCheckout, navigate, locale, messages, }: WidgetCartSummaryProps): import("react").JSX.Element | null;
|
|
74
|
+
export declare function WidgetCartSummary({ lines, subtotalMinor, currency, discountMinor, onCheckout, navigate, locale, messages, }: WidgetCartSummaryProps): import("react").JSX.Element | null;
|
|
66
75
|
//# sourceMappingURL=widget-cart-summary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-cart-summary.d.ts","sourceRoot":"","sources":["../src/widget-cart-summary.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAE3E,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,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