@saar-ai/web-widget 0.10.0 → 0.12.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 (49) 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/{host-widget-BtiYIMwb.js → host-widget-Cc0KjJwZ.js} +2366 -280
  4. package/dist/concierge-shell.css +2 -0
  5. package/dist/concierge-state.d.ts +234 -0
  6. package/dist/concierge-state.d.ts.map +1 -0
  7. package/dist/dock/dock-renderer.d.ts +3 -0
  8. package/dist/dock/dock-renderer.d.ts.map +1 -0
  9. package/dist/dock/dock-row.d.ts +3 -23
  10. package/dist/dock/dock-row.d.ts.map +1 -1
  11. package/dist/dock/dock-state.d.ts +34 -174
  12. package/dist/dock/dock-state.d.ts.map +1 -1
  13. package/dist/generated/concierge-shell-css.d.ts +2 -0
  14. package/dist/generated/concierge-shell-css.d.ts.map +1 -0
  15. package/dist/generated/widget-css.d.ts.map +1 -1
  16. package/dist/handoff-initials.d.ts +34 -0
  17. package/dist/handoff-initials.d.ts.map +1 -0
  18. package/dist/host-widget.d.ts +24 -1
  19. package/dist/host-widget.d.ts.map +1 -1
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +35 -138
  23. package/dist/mount.d.ts +4 -5
  24. package/dist/mount.d.ts.map +1 -1
  25. package/dist/next/index.js +1 -1
  26. package/dist/renderers.d.ts +3 -0
  27. package/dist/renderers.d.ts.map +1 -0
  28. package/dist/styles.d.ts +1 -0
  29. package/dist/styles.d.ts.map +1 -1
  30. package/dist/voice-widget.d.ts +93 -3
  31. package/dist/voice-widget.d.ts.map +1 -1
  32. package/dist/widget/concierge-launcher.d.ts +68 -0
  33. package/dist/widget/concierge-launcher.d.ts.map +1 -0
  34. package/dist/widget/concierge-shell.d.ts +299 -0
  35. package/dist/widget/concierge-shell.d.ts.map +1 -0
  36. package/dist/widget/position.d.ts +65 -0
  37. package/dist/widget/position.d.ts.map +1 -0
  38. package/dist/widget/shell-renderer.d.ts +3 -0
  39. package/dist/widget/shell-renderer.d.ts.map +1 -0
  40. package/dist/widget/transcript-geometry.d.ts +220 -0
  41. package/dist/widget/transcript-geometry.d.ts.map +1 -0
  42. package/dist/widget/widget-view.d.ts +138 -0
  43. package/dist/widget/widget-view.d.ts.map +1 -0
  44. package/dist/widget.css +1 -1
  45. package/package.json +1 -1
  46. package/src/styles/brand.css +51 -0
  47. package/src/styles/concierge-shell-entry.css +55 -0
  48. package/src/styles/concierge.css +9 -38
  49. package/src/styles/widget-entry.css +39 -1
@@ -1,51 +1,20 @@
1
1
  /**
2
- * THE DOCK'S STATE MACHINE — docs/DOCK_SPEC.md §5.1, as one pure function.
3
- *
4
- * Everything under `dock/` renders what `deriveDockState` returns: the row
5
- * picks its controls from `controls`, the caption reads `caption`, the border
6
- * and the mark read `border`/`mark`, and the sheet reads `sheet`. Nothing
7
- * else in the dock decides a state.
8
- *
9
- * ## Why it is a pure function over a snapshot
10
- *
11
- * The same reason `voice-session-state.ts` and `bot-state.ts` are separate
12
- * from the components that draw them: whether the shopper is being heard,
13
- * answered, muted or reconnected is the one thing a voice product has to get
14
- * right, and it must be assertable without a LiveKit room, a socket, a
15
- * microphone or a DOM. §5.1 is a thirteen-row table; `dock-state.test.ts`
16
- * walks it row by row, which is only possible because this takes data and
17
- * returns data.
18
- *
19
- * ## The precedence order IS the behaviour
20
- *
21
- * Several claimants can be true at once — a live call that has just
22
- * escalated, a duck with a curation landing inside it, a reconnect with a
23
- * refused microphone. The order below is spelled out rather than left to the
24
- * shape of the `if`s, and it is the same precedence `host-widget.tsx`'s
25
- * status line already uses for its three claimants (session > voice > cart):
26
- *
27
- * 1. **`error`** — the conversation is broken; nothing else the row could
28
- * say matters more.
29
- * 2. **`offline`** — the tenant says there is no channel to answer on.
30
- * 3. **`human`** — a PERSON holds the conversation. Voice is AI-only, so
31
- * every voice state below is a lie while this is true.
32
- * 4. **`mic_blocked`** — the browser refused. It outranks `reconnecting`
33
- * because "resume" is an instruction the shopper cannot follow.
34
- * 5. **`reconnecting`** — §5.1: the most-seen state on a conventionally
35
- * navigating storefront.
36
- * 6. **`ducked`** — the shopper turned to the page.
37
- * 7. the live voice states, in the order `botStateFor` already established.
38
- * 8. **`typing`** — the TEXT channel's phase (added 2026-09-15): an engaged
39
- * session on `channel: 'text'` that nothing above has claimed. Below the
40
- * live voice states because a room that is actually up outranks the
41
- * channel label — a host mid-switch can say `text` for a render while the
42
- * call is still talking.
43
- * 9. **`cards`** — only over a quiet row (`dormant`/`ducked`) and only while
44
- * the sheet is closed, per §5.1's "replaces `dock_ducked` once cards land
45
- * during a duck". It never steals the caption from a live audio state,
46
- * where the clause and the partial transcript are the point, and never
47
- * from `typing`, whose caption is the shopper's own field.
48
- * 10. **`dormant`**.
2
+ * THE DOCK'S VIEW — docs/DOCK_SPEC.md §5.1, drawn.
3
+ *
4
+ * Which state the session is in is decided in `../concierge-state.ts`
5
+ * (`deriveConciergeState`) and shared with the widget generation
6
+ * (docs/CONCIERGE_GENERATIONS.md §3). This module owns the other half for the
7
+ * dock: what each of those states LOOKS like as a row — its caption, its
8
+ * control set, its border, its mark's treatment, what it does to the sheet,
9
+ * and whether it may recede to glass. Everything under `dock/` renders what
10
+ * `deriveDockState` returns; nothing else in the dock decides a state, and
11
+ * nothing in here decides one either.
12
+ *
13
+ * The precedence order, the `cards` rule and the live-voice ordering used to
14
+ * live in this file. They moved out on 2026-09-17 with the split, unchanged,
15
+ * so that both renderers read one state machine; `dock-state.test.ts` still
16
+ * asserts §5.1 row by row through `deriveDockState`, whose signature and
17
+ * output are exactly what they were.
49
18
  *
50
19
  * ## Glass is a decision too
51
20
  *
@@ -62,10 +31,13 @@
62
31
  * and never localises: it has no messages, on purpose, so the table can be
63
32
  * asserted without one.
64
33
  */
65
- import type { VoicePhase } from '../voice-session-state.js';
66
- /** Every state the row can be in — §5.1's ten, plus the four the shipped widget already had. */
67
- export declare const DOCK_STATES: readonly ['dormant', 'connecting', 'listening', 'thinking', 'speaking', 'ducked', 'reconnecting', 'muted', 'mic_blocked', 'typing', 'human', 'offline', 'error', 'cards'];
68
- export type DockState = (typeof DOCK_STATES)[number];
34
+ import { type ConciergeSnapshot, type ConciergeState, type ConciergeStateInput, type ConciergeVoiceInput } from '../concierge-state.js';
35
+ export declare const DOCK_STATES: readonly ["dormant", "connecting", "listening", "thinking", "speaking", "ducked", "reconnecting", "muted", "mic_blocked", "typing", "human", "offline", "error", "cards"];
36
+ export type DockState = ConciergeState;
37
+ export type DockVoiceInput = ConciergeVoiceInput;
38
+ export type DockStateInput = ConciergeStateInput;
39
+ /** A dock nobody has touched, on a tenant with no voice — see `idleConciergeInput`. */
40
+ export declare const idleDockInput: DockStateInput;
69
41
  /**
70
42
  * §2's control candidates. Never more than three are returned, and the ORDER
71
43
  * is the order they are drawn in — `interrupt` first in `speaking` because
@@ -129,126 +101,6 @@ export type DockCaptionSpec = {
129
101
  };
130
102
  /** The `WidgetMessages` keys this module can name. Narrow on purpose — a typo is a compile error. */
131
103
  export type DockMessageKey = 'dock_connecting' | 'dock_listening' | 'dock_thinking' | 'dock_ducked' | 'dock_still_here' | 'dock_still_here_resume' | 'dock_muted' | 'dock_mic_blocked' | 'dock_cards' | 'dock_voice_failed' | 'escalated_banner';
132
- /** The voice leg, as the row needs to see it — a superset of `VoiceSessionSnapshot`'s fields. */
133
- export interface DockVoiceInput {
134
- /** The tenant published voice AND this is not an embedded webview (§8.4). */
135
- readonly enabled: boolean;
136
- readonly phase: VoicePhase;
137
- /** The caller's microphone is published to the room. */
138
- readonly micOpen: boolean;
139
- /** The browser is being asked for the microphone right now (`VoiceSessionSnapshot.micPending`). */
140
- readonly micPending: boolean;
141
- /** The browser REFUSED. Distinct from muted: no press can undo it on this page (§5.1). */
142
- readonly micBlocked: boolean;
143
- readonly agentPresent: boolean;
144
- readonly agentSpeaking: boolean;
145
- readonly callerSpeaking: boolean;
146
- readonly awaitingAgent: boolean;
147
- }
148
- export interface DockStateInput {
149
- /** The shopper has expressed intent — before that the dock is resting, whatever the transports say. */
150
- readonly engaged: boolean;
151
- readonly voice: DockVoiceInput;
152
- /** What is in the composer right now. Only `dormant` reads it, for the send control. */
153
- readonly draft: string;
154
- /** §5.5 — the shopper turned to the page during `speaking`. */
155
- readonly ducked: boolean;
156
- /** §8.6 — the session is being resumed (a navigation, a return from lock). */
157
- readonly reconnecting: boolean;
158
- /** The room itself dropped, so the resume needs a tap rather than just a wait. */
159
- readonly roomDropped: boolean;
160
- /** A PERSON holds the conversation (`UseChatSessionResult.status === 'escalated'`). */
161
- readonly escalated: boolean;
162
- /** The operator's last line, once they have said anything. */
163
- readonly operatorLine?: string;
164
- /** The attach control is escalated-only (`AGENTS.md` — the concierge has no vision path). */
165
- readonly canAttach: boolean;
166
- /**
167
- * A host that can actually open the browser's own permission help (§5.1's
168
- * `dock_fix_browser`).
169
- *
170
- * Gated for the same reason `canAttach` is: a control that provably does
171
- * nothing is worse than no control. Nothing in the browser can open that UI
172
- * from script, so most hosts have nothing to offer here — and
173
- * `dock_mic_blocked` ("Mic blocked — type instead") already tells the
174
- * shopper what they can do.
175
- */
176
- readonly canFixPermission: boolean;
177
- readonly offline: boolean;
178
- readonly offlineMessage?: string;
179
- /**
180
- * The host's status line, for the two claimants that are genuinely ERRORS:
181
- * the conversation itself is broken, or the voice leg is (a refused
182
- * microphone, a dead speech vendor).
183
- */
184
- readonly error?: string;
185
- /**
186
- * WHICH claimant `error` came from — the conversation, or the voice leg.
187
- *
188
- * The host resolves the precedence (session > voice) into one string before
189
- * it reaches the dock, and the string alone cannot say what it is: this
190
- * module has to know a voice CONNECT failed to swap its transport text for
191
- * §5.1's `dock_voice_failed`, and it must not do that to a session error
192
- * that merely happened while the room was also down.
193
- */
194
- readonly errorSource?: 'session' | 'voice';
195
- /**
196
- * A line the shopper needs to READ that is not an error — today, only
197
- * `cart_add_failed`: the concierge said an item was going in the basket and
198
- * only this browser knows it did not.
199
- *
200
- * It replaces the CAPTION and changes nothing else. Folding it into `error`
201
- * instead cost the row its whole live state: an add that failed mid-call
202
- * took `speaking` down to `error` for the rest of the session, so the
203
- * clause disappeared and mute and interrupt went with it — and
204
- * `agentAddFailed` is only cleared by the NEXT successful agent add, so it
205
- * did not go away. §5.1 puts `cart_add_failed` in the caption; that is all
206
- * it asks for.
207
- */
208
- readonly notice?: string;
209
- /** How many cards the latest curation put on the shelf. */
210
- readonly shelfCount: number;
211
- /**
212
- * There is a conversation in the visor to go back to (added 2026-09-16).
213
- *
214
- * The SECOND reason `see` exists, and it closes a hole the 2026-09-16
215
- * minimise rewrite opened. `see` used to appear only when `shelfCount > 0`;
216
- * once the MARK became the dock's minimise (§5.4) and the visor header's
217
- * control stopped collapsing the row, a text session with no curation had
218
- * no control that opened the visor at all — the float (§3.5) can be
219
- * dismissed, and nothing else was left. A transcript the shopper cannot
220
- * reach is a conversation the widget has lost.
221
- *
222
- * A FLAG rather than a count: this module never needs to know how long the
223
- * conversation is, only that opening the visor would show something. The
224
- * host owns the transcript node and is the only thing that can say so.
225
- */
226
- readonly hasTranscript: boolean;
227
- readonly sheetOpen: boolean;
228
- /** The live partial transcript, current utterance only (§5.1's `listening`). */
229
- readonly partialTranscript?: string;
230
- /** `FillerPolicy`'s model-authored acknowledgement (§6) — the designed `thinking` caption. */
231
- readonly preamble?: string;
232
- /** The clause the agent is saying right now (§5.1's `speaking`). */
233
- readonly clause?: string;
234
- /**
235
- * §5.1 (added 2026-09-15) — which channel the session is on. `text` is what
236
- * makes an engaged, otherwise-unclaimed row `typing` rather than `dormant`.
237
- */
238
- readonly channel: 'voice' | 'text';
239
- /**
240
- * The OTHER side is composing: a concierge reply is in flight or streaming,
241
- * or — in `human` — an operator is typing. Draws §5.1's dots, and holds
242
- * §3.6's glass off: a row cannot recede while it is being answered.
243
- */
244
- readonly composing: boolean;
245
- /**
246
- * §3.6 — the text session has been idle for `GLASS_IDLE_MS`: no turn, no
247
- * draft, the field unfocused. A CLOCK, so `dock.tsx` runs it; this module
248
- * only decides what an idle `typing` row looks like.
249
- */
250
- readonly textIdle: boolean;
251
- }
252
104
  export interface DockView {
253
105
  readonly state: DockState;
254
106
  readonly mark: DockMark;
@@ -318,15 +170,23 @@ export interface DockView {
318
170
  */
319
171
  readonly glass: boolean;
320
172
  }
321
- /** A dock nobody has touched, on a tenant with no voice. Every field explicit — see `DockStateInput`. */
322
- export declare const idleDockInput: DockStateInput;
323
173
  /**
324
- * §5.1's table, as a function.
174
+ * §5.1's table, as a function — the dock's public entry point, unchanged.
325
175
  *
326
176
  * @param input the session, as data — see {@link DockStateInput}
327
177
  * @returns everything the row, the caption and the sheet need for one render
328
178
  */
329
179
  export declare function deriveDockState(input: DockStateInput): DockView;
180
+ /**
181
+ * The dock's presentation of a state the shared machine already decided.
182
+ *
183
+ * Takes the snapshot AND the input: the snapshot for everything a renderer
184
+ * may not recompute (the state, `handoff`, `callActive`, `shelfCount`), the
185
+ * input for CONTENT — a partial transcript, a preamble, the operator's line,
186
+ * the host's error text. The one thing this function never does is look at
187
+ * the input to decide which state it is in.
188
+ */
189
+ export declare function deriveDockView(snapshot: ConciergeSnapshot, input: DockStateInput): DockView;
330
190
  /**
331
191
  * A transcript turn, as the EXCHANGE split reads it: its speaker and nothing
332
192
  * else.
@@ -1 +1 @@
1
- {"version":3,"file":"dock-state.d.ts","sourceRoot":"","sources":["../../src/dock/dock-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,WAAW,YACtB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,cAAc,EACd,OAAO,EACP,aAAa,EACb,QAAQ,EACR,OAAO,EACP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C,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AASD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,QAAQ,CAE/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,iBAAiB,EAAE,KAAK,EAAE,cAAc,GAAG,QAAQ,CAc3F;AA8UD;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAM5E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAetE"}
@@ -0,0 +1,2 @@
1
+ export declare const CONCIERGE_SHELL_CSS: string;
2
+ //# sourceMappingURL=concierge-shell-css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concierge-shell-css.d.ts","sourceRoot":"","sources":["../../src/generated/concierge-shell-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,EAAE,MAAqy1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"widget-css.d.ts","sourceRoot":"","sources":["../../src/generated/widget-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,EAAE,MAAq5pE,CAAC"}
1
+ {"version":3,"file":"widget-css.d.ts","sourceRoot":"","sources":["../../src/generated/widget-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,EAAE,MAAkvmE,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The operator's initials — SHARED chrome, not the dock's.
3
+ *
4
+ * Moved out of `dock/dock-row.tsx` for docs/CONCIERGE_GENERATIONS.md §4's
5
+ * surfaces row: the dock draws them in its handoff disc and the widget draws
6
+ * them in the launcher's face, and two renderers computing initials two ways
7
+ * would let the same operator read as `AR` in one and `A` in the other.
8
+ * `dock-row.tsx` re-exports it, so every existing import still resolves.
9
+ *
10
+ * Everything below is the original, unchanged.
11
+ *
12
+ * The INITIALS a handoff disc draws for `name` — one or two letters, or `''`
13
+ * when there is no name to derive them from (DOCK_SPEC §2).
14
+ *
15
+ * The rule is the first character of the first two whitespace-separated
16
+ * words, and it is deliberately that crude. A directory holds whatever a
17
+ * tenant's teammate typed into it: one word ("Amina"), four words ("Maria del
18
+ * Carmen Perez"), a name written in a script with no case to fold ("अमिता
19
+ * शर्मा"), a name whose "letters" are not code units ("李雷" — one character
20
+ * per glyph, but an emoji or an astral-plane script would be two). So:
21
+ *
22
+ * - split on ANY run of whitespace after trimming, which is what makes a
23
+ * pasted " amina rahman " produce `AR` rather than a blank or a space;
24
+ * - `Array.from` before taking the first character, so a surrogate pair is
25
+ * one initial rather than half of one and a lone high surrogate;
26
+ * - `toUpperCase` last, because on a script with no case it is the identity
27
+ * function and on a Latin name it is the whole point.
28
+ *
29
+ * `''` is a real answer, not a failure: it is the cue the mark uses to draw
30
+ * the neutral PERSON glyph instead, which is what a tenant who never turned
31
+ * `handoff.showOperatorName` on gets on every handoff they ever have.
32
+ */
33
+ export declare function handoffInitials(name: string | undefined): string;
34
+ //# sourceMappingURL=handoff-initials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoff-initials.d.ts","sourceRoot":"","sources":["../src/handoff-initials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAMhE"}
@@ -4,6 +4,7 @@ import type { WidgetChatCart } from '@saar-ai/widget-protocol/chat';
4
4
  import { type HostRouteResolvers } from './host-routes.js';
5
5
  import { type ChatCardItem, type ChatCheckoutHandoff } from './use-chat-session.js';
6
6
  import { type VoiceSession } from './use-voice-session.js';
7
+ import { type ConciergeRenderer } from './voice-widget.js';
7
8
  import type { WidgetCartLine } from './widget-cart-summary.js';
8
9
  import type { ConciergeCallPhase, WidgetAttribution } from './voice-widget.js';
9
10
  import type { DockAvatarKind } from './dock/dock-row.js';
@@ -408,6 +409,18 @@ export interface ConciergeWidgetProps {
408
409
  readonly cartLineIds?: boolean;
409
410
  /** §9.1 `cards.imageAspect` — the fixed box every card thumbnail is drawn in. */
410
411
  readonly cardImageAspect?: 'square' | 'portrait' | 'landscape';
412
+ /**
413
+ * §9.1 `ui.generation` — which renderer draws the session
414
+ * (docs/CONCIERGE_GENERATIONS.md). Phase 2 carries it to the stage; phase 3
415
+ * acts on it at `voice-widget.tsx`'s one render site. Absent ⇒ widget.
416
+ */
417
+ readonly generation?: 'widget' | 'dock';
418
+ /**
419
+ * The chrome, decided by the caller. `ConciergeWidget` resolves an absent
420
+ * one from `generation` through `rendererFor`; `ConciergeHost` requires it,
421
+ * which is how a CDN entry ships one renderer and not both.
422
+ */
423
+ readonly renderer?: ConciergeRenderer;
411
424
  /**
412
425
  * §8.4 — voice is available in THIS browser, as the core stage judged it.
413
426
  *
@@ -523,5 +536,15 @@ export interface ConciergeWidgetProps {
523
536
  * about offering voice here costs a byte until a caller actually presses
524
537
  * the microphone.
525
538
  */
526
- export declare function ConciergeWidget({ embedKey, apiBase, socketUrl, socketPath, bridge, siteProfile, collector, messages, locale, productHref, hostRoutes, curationHref, brandPrimary, brandSecondary, brandAccent, avatar, attribution, color, type, identity, layout, copy, bottomOffset, showPrice, cardImageAspect, voiceAvailable, direction, proactive, initialDraft, initialSelection, initialFocus, initialMinimised, insets, hold, audio, onReady, cartLineIds, }: ConciergeWidgetProps): import("react").JSX.Element;
539
+ /** `ConciergeWidgetProps` with the renderer decided — what the CDN entries mount. */
540
+ export type ConciergeHostProps = ConciergeWidgetProps & {
541
+ readonly renderer: ConciergeRenderer;
542
+ };
543
+ /**
544
+ * The public component. Everything below it — the session, the bridge, the
545
+ * voice and cart plumbing — is `ConciergeHost`; this only picks the chrome
546
+ * when the caller did not. See `renderers.ts` for why they are two functions.
547
+ */
548
+ export declare function ConciergeWidget({ renderer, ...props }: ConciergeWidgetProps): import("react").JSX.Element;
549
+ export declare function ConciergeHost({ renderer, embedKey, apiBase, socketUrl, socketPath, bridge, siteProfile, collector, messages, locale, productHref, hostRoutes, curationHref, brandPrimary, brandSecondary, brandAccent, avatar, attribution, color, type, identity, layout, copy, bottomOffset, showPrice, cardImageAspect, voiceAvailable, direction, proactive, initialDraft, initialSelection, initialFocus, initialMinimised, insets, hold, audio, onReady, cartLineIds, }: ConciergeHostProps): import("react").JSX.Element;
527
550
  //# sourceMappingURL=host-widget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"host-widget.d.ts","sourceRoot":"","sources":["../src/host-widget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,YAAY,EACZ,UAAU,EAEV,WAAW,EAEZ,MAAM,wBAAwB,CAAC;AAYhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAIpE,OAAO,KAAK,EAAE,cAAc,EAAoB,MAAM,+BAA+B,CAAC;AAOtF,OAAO,EAA0C,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACnG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EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,WAAW,GACZ,EAAE,kBAAkB,+BAukEpB"}
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export type { DockProps, DockVoiceProps, DockLayoutView, DockCopyView, DockTurn,
8
8
  export type { DockIdentityView, DockAvatarKind, DockMicSource } from './dock/dock-row.js';
9
9
  export type { DockSheetSnap } from './dock/dock-sheet.js';
10
10
  export * from './dock/dock-state.js';
11
+ export * from './concierge-state.js';
11
12
  export * from './messages.js';
12
13
  export * from './bot-state.js';
13
14
  export * from './bot-avatar.js';
@@ -15,6 +16,13 @@ export * from './session-log.js';
15
16
  export * from './sse-parser.js';
16
17
  export * from './voice-session-state.js';
17
18
  export * from './session-panel.js';
19
+ export * from './widget/concierge-launcher.js';
20
+ export * from './widget/concierge-shell.js';
21
+ export * from './widget/position.js';
22
+ export * from './widget/widget-view.js';
23
+ export { ShellRenderer } from './widget/shell-renderer.js';
24
+ export { DockRenderer } from './dock/dock-renderer.js';
25
+ export { rendererFor } from './renderers.js';
18
26
  export * from './widget-markdown.js';
19
27
  export * from './widget-cards.js';
20
28
  export * from './widget-cart-summary.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAc7B,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,YAAY,EACV,SAAS,EACT,cAAc,EACd,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC1F,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,C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