@saar-ai/web-widget 0.17.0 → 0.20.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 (81) hide show
  1. package/dist/avatar-face.d.ts +9 -3
  2. package/dist/avatar-face.d.ts.map +1 -1
  3. package/dist/avatar.d.ts +15 -2
  4. package/dist/avatar.d.ts.map +1 -1
  5. package/dist/chunks/{chat-DHMjOVms.js → chat-Bm4MPdY9.js} +25 -1
  6. package/dist/chunks/{form-fill-dom-D4ZMwxX1.js → form-fill-dom-Dxt-z0H0.js} +4 -0
  7. package/dist/chunks/{host-widget-BPHMVIjq.js → host-widget-kHzdanwT.js} +2037 -1333
  8. package/dist/concierge-shell.css +1 -1
  9. package/dist/dock/dock-row.d.ts +4 -2
  10. package/dist/dock/dock-row.d.ts.map +1 -1
  11. package/dist/dock/dock-sheet.d.ts.map +1 -1
  12. package/dist/dock/dock.d.ts +6 -0
  13. package/dist/dock/dock.d.ts.map +1 -1
  14. package/dist/dock/geometry.d.ts +1 -2
  15. package/dist/dock/geometry.d.ts.map +1 -1
  16. package/dist/form-fill/form-fill-dom.d.ts +5 -11
  17. package/dist/form-fill/form-fill-dom.d.ts.map +1 -1
  18. package/dist/generated/concierge-shell-css.d.ts.map +1 -1
  19. package/dist/generated/widget-css.d.ts.map +1 -1
  20. package/dist/host-widget.d.ts +2 -3
  21. package/dist/host-widget.d.ts.map +1 -1
  22. package/dist/index.d.ts +4 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +15 -15
  25. package/dist/messages.d.ts +17 -3
  26. package/dist/messages.d.ts.map +1 -1
  27. package/dist/next/index.js +1 -1
  28. package/dist/scroll-row.d.ts +29 -0
  29. package/dist/scroll-row.d.ts.map +1 -0
  30. package/dist/spoken-transcript.d.ts +23 -7
  31. package/dist/spoken-transcript.d.ts.map +1 -1
  32. package/dist/theme/derive.d.ts +71 -3
  33. package/dist/theme/derive.d.ts.map +1 -1
  34. package/dist/theme/host-tone.d.ts +0 -7
  35. package/dist/theme/host-tone.d.ts.map +1 -1
  36. package/dist/theme/index.d.ts +5 -1
  37. package/dist/theme/index.d.ts.map +1 -1
  38. package/dist/theme/widget-derive.d.ts +17 -0
  39. package/dist/theme/widget-derive.d.ts.map +1 -0
  40. package/dist/theme/widget-theme-scope.d.ts +17 -0
  41. package/dist/theme/widget-theme-scope.d.ts.map +1 -0
  42. package/dist/turn-order.d.ts +2 -1
  43. package/dist/turn-order.d.ts.map +1 -1
  44. package/dist/use-voice-session.d.ts +1 -1
  45. package/dist/use-voice-session.d.ts.map +1 -1
  46. package/dist/voice-widget.d.ts +32 -2
  47. package/dist/voice-widget.d.ts.map +1 -1
  48. package/dist/widget/call-view.d.ts +176 -0
  49. package/dist/widget/call-view.d.ts.map +1 -0
  50. package/dist/widget/concierge-launcher.d.ts +26 -2
  51. package/dist/widget/concierge-launcher.d.ts.map +1 -1
  52. package/dist/widget/concierge-shell.d.ts +51 -67
  53. package/dist/widget/concierge-shell.d.ts.map +1 -1
  54. package/dist/widget/launcher-look.d.ts +37 -0
  55. package/dist/widget/launcher-look.d.ts.map +1 -0
  56. package/dist/widget/mark-look.d.ts +35 -0
  57. package/dist/widget/mark-look.d.ts.map +1 -0
  58. package/dist/widget/mark.d.ts +35 -0
  59. package/dist/widget/mark.d.ts.map +1 -0
  60. package/dist/widget/mic-button.d.ts +31 -0
  61. package/dist/widget/mic-button.d.ts.map +1 -0
  62. package/dist/widget/shell-renderer.d.ts +1 -1
  63. package/dist/widget/shell-renderer.d.ts.map +1 -1
  64. package/dist/widget/style-of.d.ts +9 -0
  65. package/dist/widget/style-of.d.ts.map +1 -0
  66. package/dist/widget/use-follow-bottom.d.ts +17 -0
  67. package/dist/widget/use-follow-bottom.d.ts.map +1 -0
  68. package/dist/widget-cards.d.ts.map +1 -1
  69. package/dist/widget-cart-summary.d.ts.map +1 -1
  70. package/dist/widget.css +1 -1
  71. package/package.json +23 -7
  72. package/src/styles/call-view.css +290 -0
  73. package/src/styles/concierge-shell-entry.css +11 -0
  74. package/src/styles/concierge.css +3 -0
  75. package/src/styles/mark.css +94 -0
  76. package/src/styles/scroll-row.css +62 -0
  77. package/src/styles/tokens.css +1 -1
  78. package/src/styles/widget-entry.css +1 -0
  79. package/src/styles/widget-panel.css +644 -0
  80. package/dist/widget/transcript-geometry.d.ts +0 -226
  81. package/dist/widget/transcript-geometry.d.ts.map +0 -1
@@ -0,0 +1,176 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { WidgetAvatar } from '../avatar.js';
3
+ import type { BotState } from '../bot-state.js';
4
+ import type { ConciergeState } from '../concierge-state.js';
5
+ import { type WidgetMessages } from '../messages.js';
6
+ import type { ChatCards } from '../use-chat-session.js';
7
+ import type { ConciergeCallPhase, WidgetTurn } from '../voice-widget.js';
8
+ import type { WidgetCartLine } from '../widget-cart-summary.js';
9
+ import type { ConciergeShellVoice } from './concierge-shell.js';
10
+ /**
11
+ * The call view's own words. Kept out of `defaultWidgetMessages` so the dock's
12
+ * `ui.mjs` does not carry them; a host catalogue overrides any of them by key.
13
+ */
14
+ export declare const defaultCallMessages: {
15
+ call_your_turn: string;
16
+ call_muted: string;
17
+ call_paused: string;
18
+ call_mic_blocked: string;
19
+ call_human: string;
20
+ call_offline: string;
21
+ call_problem: string;
22
+ call_ended: string;
23
+ call_interrupted: string;
24
+ call_try_saying: string;
25
+ call_to_text: string;
26
+ call_back_to_call: string;
27
+ call_back_to_chat: string;
28
+ call_summary_added: string;
29
+ call_summary_checkout: string;
30
+ call_on_call: string;
31
+ call_say_prev: string;
32
+ call_say_next: string;
33
+ call_hour_one: string;
34
+ call_hour_other: string;
35
+ call_minute_one: string;
36
+ call_minute_other: string;
37
+ call_second_one: string;
38
+ call_second_other: string;
39
+ };
40
+ type CallUnit = 'hour' | 'minute' | 'second';
41
+ /**
42
+ * The call view's keys, plus every CLDR plural form of the time units
43
+ * (`call_minute_few` for Russian, say): `Intl.PluralRules` picks the form.
44
+ */
45
+ export type WidgetCallMessages = {
46
+ readonly [K in keyof typeof defaultCallMessages | `call_${CallUnit}_${Intl.LDMLPluralRule}`]?: string;
47
+ };
48
+ export type CallWordKey = keyof typeof defaultCallMessages | 'voice_state_connecting' | 'voice_state_listening' | 'voice_state_thinking' | 'voice_state_speaking' | 'dock_still_here';
49
+ /** One message, from the host's catalogue when it has the key. */
50
+ export declare function callText(messages: WidgetMessages & WidgetCallMessages, key: CallWordKey): string;
51
+ export declare function callStatus(state: ConciergeState, { ended, callerSpeaking }: {
52
+ readonly ended: boolean;
53
+ readonly callerSpeaking: boolean;
54
+ }): {
55
+ readonly word: CallWordKey;
56
+ readonly explain: boolean;
57
+ };
58
+ /** `mm:ss`, minutes uncapped. */
59
+ export declare function formatCallTime(ms: number): string;
60
+ /**
61
+ * A call's length three ways: `mm:ss` for the eye, an ISO 8601 duration for
62
+ * `<time dateTime>`, and words for a screen reader ("1 hour 1 minute 1
63
+ * second") from `Intl.NumberFormat`'s long units in `locale`, so every CLDR
64
+ * plural form comes with no catalogue key; a locale it cannot parse speaks
65
+ * English. A zero part is left out unless it is all there is.
66
+ */
67
+ export declare function callTime(ms: number, locale?: string): {
68
+ readonly text: string;
69
+ readonly iso: string;
70
+ readonly words: string;
71
+ };
72
+ /**
73
+ * One call as the view tracks it, on the monotonic clock.
74
+ *
75
+ * A call begins when the phase leaves `idle` and ends when it returns there.
76
+ * The timer starts at the first `live` or `waiting` phase, so dialling and
77
+ * the permission prompt are not counted. A dropped room is `idle`, so a
78
+ * reconnect is a new call: new `id`, timer from zero, a fresh `from`.
79
+ */
80
+ export interface CallRecord {
81
+ readonly id: number;
82
+ readonly active: boolean;
83
+ readonly startedAt: number | null;
84
+ readonly endedAt: number | null;
85
+ /** How many turns were on screen before this call: its own start at `from`. */
86
+ readonly from: number;
87
+ /** The basket when the call began. */
88
+ readonly cart: readonly WidgetCartLine[];
89
+ /** A checkout was handed over during this call. Latched, so a capped event list cannot drop it. */
90
+ readonly checkout?: boolean;
91
+ /** The host's `checkout` value when the call began: one left over from the last call is not this one's. */
92
+ readonly checkoutFrom?: unknown;
93
+ }
94
+ export declare const IDLE_CALL_RECORD: CallRecord;
95
+ export declare function advanceCallRecord(prev: CallRecord, next: {
96
+ readonly phase: ConciergeCallPhase;
97
+ readonly now: number;
98
+ readonly turns: number;
99
+ readonly cart: readonly WidgetCartLine[];
100
+ readonly checkout?: unknown;
101
+ }): CallRecord;
102
+ export declare function useCallRecord(phase: ConciergeCallPhase, turns: readonly WidgetTurn[], cart: readonly WidgetCartLine[] | undefined, checkout?: unknown): CallRecord;
103
+ /** The titles whose quantity grew since the call began, in basket order. */
104
+ export declare function addedDuringCall(before: readonly WidgetCartLine[], after: readonly WidgetCartLine[]): readonly string[];
105
+ /** What the view needs from the conversation; `ShellRenderer` builds it. */
106
+ export interface CallViewData {
107
+ /**
108
+ * Says a "Try saying" line on the call (`WidgetCallHooks.sendText`). Absent
109
+ * draws no such row; resolving `false` did not send the line, and its chip
110
+ * stays.
111
+ */
112
+ readonly onSay?: (line: string) => Promise<boolean> | boolean;
113
+ /**
114
+ * A checkout was handed over: `true`, or the newest checkout event itself.
115
+ * The panel's call record latches a change of it per call.
116
+ */
117
+ readonly checkout?: boolean | object;
118
+ readonly state: ConciergeState;
119
+ readonly callerSpeaking?: boolean;
120
+ readonly turns: readonly WidgetTurn[];
121
+ readonly renderCards: (cards: ChatCards) => ReactNode;
122
+ readonly suggestions: readonly string[];
123
+ readonly cart?: readonly WidgetCartLine[];
124
+ readonly messages: WidgetMessages & WidgetCallMessages;
125
+ /** BCP-47, for the timer's spoken length. Defaults to `'en'`. */
126
+ readonly locale?: string;
127
+ }
128
+ export interface CallViewProps extends CallViewData {
129
+ readonly voice: ConciergeShellVoice;
130
+ /** The agent's name, for a monogram mark. */
131
+ readonly name?: string;
132
+ /** Drawn at the header's end: the panel's own close control. */
133
+ readonly actions?: ReactNode;
134
+ readonly record: CallRecord;
135
+ readonly bot: BotState;
136
+ readonly avatar: WidgetAvatar;
137
+ /** The host's status line, drawn under the header when it explains the state. */
138
+ readonly hint?: ReactNode;
139
+ readonly onText: () => void;
140
+ readonly onBackToChat: () => void;
141
+ readonly testIds?: {
142
+ readonly mic?: string;
143
+ readonly endCall?: string;
144
+ };
145
+ }
146
+ export interface CallMode {
147
+ /** The panel draws the call view in place of the chat. */
148
+ readonly shown: boolean;
149
+ readonly record: CallRecord;
150
+ /** The launcher's second line while a call runs ("On call · 01:24"). */
151
+ readonly launcherLabel: string | undefined;
152
+ /** The same, as a screen reader should say it ("On call, 1 minute 24 seconds"). */
153
+ readonly launcherSpoken: string | undefined;
154
+ /** "Type instead": the chat, with this call still running. */
155
+ readonly toText: () => void;
156
+ /** The way back from the chat to the running call. */
157
+ readonly backToCall: () => void;
158
+ /** Closes the ended call's summary. */
159
+ readonly closeSummary: () => void;
160
+ }
161
+ /**
162
+ * The panel's call lifecycle. A running call takes the panel over unless the
163
+ * shopper chose "Type instead"; an ended one shows its summary until they
164
+ * close it. Both choices hold for that call only: the next one shows again.
165
+ * Absent `call` (the marketing preview), the call view never shows.
166
+ */
167
+ export declare function useCallMode(voice: ConciergeShellVoice | undefined, call: CallViewData | undefined): CallMode;
168
+ /**
169
+ * The widget generation's call: a header that names the state, the call's
170
+ * own turns with their cards, the "Try saying" lines and the call controls,
171
+ * then the summary once it ends. Styled by `styles/call-view.css` (`.wgc`).
172
+ * See docs/CONCIERGE_GENERATIONS.md "Call mode".
173
+ */
174
+ export declare function CallView({ state, callerSpeaking, turns, renderCards, suggestions, onSay, checkout, cart, messages, locale, voice, name, actions, record, bot, avatar, hint, onText, onBackToChat, testIds, }: CallViewProps): import("react").JSX.Element;
175
+ export {};
176
+ //# sourceMappingURL=call-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call-view.d.ts","sourceRoot":"","sources":["../../src/widget/call-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EA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,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,mBAAmB,GAAG,SAAS,EACtC,IAAI,EAAE,YAAY,GAAG,SAAS,GAC7B,QAAQ,CA4BV;AA2BD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,cAAsB,EACtB,KAAK,EACL,WAAW,EACX,WAAW,EACX,KAAK,EACL,QAAgB,EAChB,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,KAAK,EACL,IAAI,EACJ,OAAO,EACP,MAAM,EACN,GAAG,EACH,MAAM,EACN,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,OAAO,GACR,EAAE,aAAa,+BAiNf"}
@@ -1,5 +1,6 @@
1
1
  import type { WidgetLauncherSpec } from './widget-view.js';
2
2
  import { type WidgetAvatar } from '../avatar.js';
3
+ import { type LauncherVariant } from './launcher-look.js';
3
4
  import { alignOf, type ConciergePosition } from './position.js';
4
5
  /**
5
6
  * The collapsed concierge: a pill the visitor can read, press, and move.
@@ -13,6 +14,9 @@ import { alignOf, type ConciergePosition } from './position.js';
13
14
  * of it: the mascot is what the concierge IS, and swapping it for a microphone
14
15
  * glyph would trade a personality for an icon that says less.
15
16
  *
17
+ * `launcher: 'round'` is the tenant's opt-out: the mark alone in a circle, for
18
+ * a storefront with no room for a pill. The pill stays the default.
19
+ *
16
20
  * ## Why it is draggable
17
21
  *
18
22
  * The widget sits on somebody else's page, over content the tenant chose and we
@@ -45,7 +49,7 @@ export interface ConciergeLauncherProps {
45
49
  readonly hidden: boolean;
46
50
  readonly id?: string;
47
51
  readonly testId?: string;
48
- /** Which face renders inside the pill. Defaults to `'orb'` — see `avatar.ts`. */
52
+ /** Which face renders inside the launcher. Defaults to `'orb'` — see `avatar.ts`. */
49
53
  readonly avatar?: WidgetAvatar;
50
54
  /**
51
55
  * What the launcher has to say while the panel is closed —
@@ -61,8 +65,28 @@ export interface ConciergeLauncherProps {
61
65
  * rather than drawing an empty disc.
62
66
  */
63
67
  readonly initials?: string;
68
+ /**
69
+ * `appearance.launcher`: `pill` (mark, label, sub-label) or `round` (the
70
+ * mark alone, in a circle). Defaults to `pill`.
71
+ */
72
+ readonly launcher?: LauncherVariant;
73
+ /** The agent's name — the `monogram` mark draws its first grapheme. */
74
+ readonly agentName?: string;
75
+ /** The pill's second line at rest, e.g. "Chat or talk". */
76
+ readonly subLabel?: string;
77
+ /**
78
+ * A call is live: its status line, e.g. "On call · 1:24". Replaces the
79
+ * pill's sub-label and lights the round launcher's live dot. The host owns
80
+ * the timer; absent ⇒ no call.
81
+ */
82
+ readonly callLabel?: string;
83
+ /**
84
+ * `callLabel` as a screen reader should hear it ("On call, 1 minute 24
85
+ * seconds"), for the open control's name. Absent ⇒ `callLabel` itself.
86
+ */
87
+ readonly callSrLabel?: string;
64
88
  }
65
- export declare function ConciergeLauncher({ label, srLabel, moveLabel, position, onPositionChange, onOpen, hidden, id, testId, avatar, spec, initials, }: ConciergeLauncherProps): import("react").JSX.Element;
89
+ export declare function ConciergeLauncher({ label, srLabel, moveLabel, position, onPositionChange, onOpen, hidden, id, testId, avatar, spec, initials, launcher, agentName, subLabel, callLabel, callSrLabel, }: ConciergeLauncherProps): import("react").JSX.Element;
66
90
  /** Re-exported so a host can type its own stored value. */
67
91
  export { alignOf };
68
92
  //# sourceMappingURL=concierge-launcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"concierge-launcher.d.ts","sourceRoot":"","sources":["../../src/widget/concierge-launcher.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EACL,OAAO,EAIP,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,QAAQ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ACP,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,MAAM,EACN,EAAE,EACF,MAAM,EACN,MAA8B,EAC9B,IAAY,EACZ,QAAa,EACb,QAAmC,EACnC,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,GACZ,EAAE,sBAAsB,+BAwRxB;AA6BD,2DAA2D;AAC3D,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -3,50 +3,40 @@ import type { CallerInterruptReason } from '@saar-ai/widget-protocol/telemetry';
3
3
  import type { WidgetLauncherSpec } from './widget-view.js';
4
4
  import type { BotState } from '../bot-state.js';
5
5
  import { type WidgetAvatar } from '../avatar.js';
6
+ import type { LauncherVariant } from './launcher-look.js';
6
7
  import { type ConciergePosition } from './position.js';
8
+ import { type CallViewData } from './call-view.js';
7
9
  /**
8
- * The concierge widget's chrome: trigger, backdrop, panel, face, composer.
10
+ * The concierge widget's chrome: trigger, backdrop, panel, header, composer.
9
11
  *
10
12
  * ## Why it is a package and not a component in one app
11
13
  *
12
14
  * This widget renders in two places — the scripted preview on the marketing
13
15
  * site and the real assistant in the product — and the preview's entire claim
14
- * is that a visitor is looking at what they would get. Two implementations can
15
- * only agree by hand, and would stop agreeing the first time either was
16
- * touched. So the chrome is defined once, here, and each app supplies what is
17
- * genuinely its own: the marketing preview replays a script, the product holds
18
- * a live session with a microphone, product cards and a cart.
16
+ * is that a visitor is looking at what they would get. So the chrome is
17
+ * defined once, here, and each app supplies what is genuinely its own.
19
18
  *
20
19
  * What is deliberately NOT here: the transcript. `children` is the whole
21
- * conversation area, because that is where the two legitimately differ — the
22
- * preview renders bubbles, the product renders bubbles plus cards, attachments,
23
- * markdown and a cart summary. A shell that tried to own that would end up with
24
- * a prop for every feature either app ever grows.
20
+ * conversation area; the product renders bubbles, cards, attachments, markdown
21
+ * and a cart summary there. The panel restyles that shared markup from its own
22
+ * stylesheet (`styles/widget-panel.css`, scoped under `.wgp`) so the dock,
23
+ * which draws the same transcript, keeps its look.
25
24
  *
26
25
  * ## No i18n, no router, no data
27
26
  *
28
- * Every string arrives in {@link ConciergeShellProps.labels}. The package has
29
- * no locale of its own, and an app that translates with `next-intl` should not
30
- * have to reach a translator into a design-system component to render a button.
27
+ * Every string arrives in {@link ConciergeShellProps.labels}.
31
28
  *
32
29
  * ## It is a modal dialog, and behaves like one
33
30
  *
34
31
  * `Escape` closes, `Tab` is trapped inside the panel, and focus returns to the
35
- * trigger on close — focus leaking to the page behind an open dialog leaves a
36
- * keyboard or screen-reader user navigating content they cannot see.
37
- *
38
- * Focus lands on the COMPOSER, not the close button. It is what a visitor
39
- * opened the panel to use, and a focused close button swallows the space bar:
40
- * press space to start typing before clicking into the field and the panel
41
- * shuts instead — a keyboard user's first keystroke dismissing the thing they
42
- * just opened.
32
+ * trigger on close. Focus lands on the COMPOSER, not the close button: a
33
+ * focused close button swallows the space bar a visitor presses to start
34
+ * typing.
43
35
  *
44
36
  * ## The animation carries nothing
45
37
  *
46
- * Every flourish below is decorative and stops wholesale under
47
- * `prefers-reduced-motion`. That is only safe because the state is also
48
- * announced in text — see {@link ConciergeShellProps.announcement}, which is
49
- * the live region and not an afterthought.
38
+ * Every flourish is decorative and stops under `prefers-reduced-motion`; the
39
+ * state is also announced in text — see {@link ConciergeShellProps.announcement}.
50
40
  */
51
41
  export interface ConciergeShellLabels {
52
42
  /** Accessible name of the collapsed trigger. */
@@ -64,22 +54,11 @@ export interface ConciergeShellLabels {
64
54
  readonly close: string;
65
55
  /** Accessible name of the dialog itself. */
66
56
  readonly dialog: string;
57
+ /** The header's name line — the concierge's name. Defaults to `dialog`. */
58
+ readonly title?: string;
67
59
  readonly composerPlaceholder: string;
68
60
  readonly send: string;
69
61
  }
70
- /**
71
- * Where a call is, from the caller's point of view.
72
- *
73
- * The panel no longer draws a full status BAR for these — removed on
74
- * request; the widget reads better without one. What it draws instead, on
75
- * explicit later request, is a small one-word PILL under the orb (see
76
- * `ConciergeShellVoice.labels`'s `connecting`/`listening`/`thinking`/
77
- * `speaking` and the orb overlay below) — a partial reversal, not a
78
- * contradiction: the pill shows only the call's current state word, never
79
- * an error or a refusal reason, which still reaches the caller through the
80
- * host's own status line exactly as before. The phase still decides which
81
- * control the composer row offers too.
82
- */
83
62
  import type { ConciergeCallPhase } from '../voice-widget.js';
84
63
  export type { ConciergeCallPhase };
85
64
  /**
@@ -96,12 +75,12 @@ export interface ConciergeShellVoice {
96
75
  readonly onStart: () => void;
97
76
  /** Leave the call — a different intention from muting it. */
98
77
  readonly onEnd?: () => void;
99
- /** Ask the browser for the microphone again, after it was refused. */
100
- readonly onRetryMic?: () => void;
101
78
  /**
102
79
  * §4's `speaking` row — cut the agent off mid-reply. The dock puts this in
103
- * its row; the widget puts it beside the microphone. Absent means the host
104
- * cannot interrupt, and no control is drawn.
80
+ * its row. The widget makes the call view's mark the control, and draws it
81
+ * in the composer's call row whenever the call view is not shown (the
82
+ * "Type instead" view, or a host that passes no `call`). Absent means the
83
+ * host cannot interrupt, and no control is drawn.
105
84
  *
106
85
  * The reason is `@saar-ai/widget-protocol/telemetry`'s vocabulary, narrowed
107
86
  * exactly as `DockVoiceProps.onInterrupt` narrows it and for the same
@@ -121,9 +100,11 @@ export interface ConciergeShellVoice {
121
100
  readonly onFixPermission?: () => void;
122
101
  readonly muted?: boolean;
123
102
  readonly onToggleMute?: () => void;
124
- /** True while the agent is talking, so the bar can offer the interrupt. */
103
+ /** True while the agent is talking, so the panel can offer the interrupt. */
125
104
  readonly agentSpeaking?: boolean;
126
- /** 0..1, drives the level meter. */
105
+ /** @deprecated Read by nothing since the call view replaced the call bar; kept for type compatibility. */
106
+ readonly onRetryMic?: () => void;
107
+ /** @deprecated Read by nothing since the call view replaced the call bar; kept for type compatibility. */
127
108
  readonly level?: number;
128
109
  /**
129
110
  * Present and DISABLED rather than hidden, for a surface that has no voice
@@ -135,19 +116,21 @@ export interface ConciergeShellVoice {
135
116
  /** Accessible name of the start button, and its tooltip when disabled. */
136
117
  readonly start: string;
137
118
  readonly end?: string;
119
+ /** The microphone toggle's one name on a call; `aria-pressed` says whether it is muted. */
138
120
  readonly mute?: string;
121
+ /** @deprecated Read by nothing: the toggle keeps one name (`mute`). Kept for type compatibility. */
139
122
  readonly unmute?: string;
140
- /** One line for the call bar: "Connecting…", "You can talk now", a reason. */
141
- readonly status?: string;
142
123
  /** Shown while the agent speaks: "go ahead and interrupt". */
143
124
  readonly interrupt?: string;
144
125
  /** The `fix_browser` control's own label. */
145
126
  readonly fixBrowser?: string;
146
- /** The retry button, offered only when the microphone was refused. */
127
+ /** @deprecated Read by nothing since the call view replaced the call bar. */
128
+ readonly status?: string;
129
+ /** @deprecated Read by nothing since the call view replaced the call bar. */
147
130
  readonly retry?: string;
148
131
  /**
149
132
  * WHY the control cannot be used, replacing `start` as the accessible
150
- * name for as long as it cannot — see `micLabel` below.
133
+ * name for as long as it cannot — see `micControl` (`mic-button.tsx`).
151
134
  *
152
135
  * `start` names the action the button would perform, and a button that
153
136
  * performs nothing must not announce one: a caller who hears "Start
@@ -159,8 +142,9 @@ export interface ConciergeShellVoice {
159
142
  */
160
143
  readonly unavailable?: string;
161
144
  /**
162
- * The four words the voice-state pill under the orb shows (see that
163
- * pill's own doc comment) — one per state a live call can be in.
145
+ * The four words the header's voice-state pill shows while the call view
146
+ * is not (see that pill's own doc comment) — one per state a live call
147
+ * can be in. `connecting` also names the microphone while it dials.
164
148
  * Defaults to the package's brand-neutral English fallback
165
149
  * (`defaultWidgetMessages`, `messages.ts`) so an existing caller that
166
150
  * has not been updated to pass these still renders sensibly; a host
@@ -172,15 +156,6 @@ export interface ConciergeShellVoice {
172
156
  readonly speaking?: string;
173
157
  };
174
158
  }
175
- /**
176
- * The small wordmark link rendered directly under the open panel — which
177
- * adopter's framework fork produced this bundle, not a per-tenant value. See
178
- * {@link ConciergeShellProps.attribution}'s own doc comment for the full
179
- * "why not just resolve `@wesence/branding` here" reasoning. Exported (rather
180
- * than declared inline on each prop that carries it) so `voice-widget.tsx`,
181
- * `host-widget.tsx`, and `cdn/core.ts`'s `UiModule` reference one definition
182
- * instead of four independent copies of the same two-field shape.
183
- */
184
159
  import type { WidgetAttribution, WidgetPrivacyChoices } from '../dock/dock.js';
185
160
  export type { WidgetAttribution };
186
161
  export interface ConciergeShellProps {
@@ -200,13 +175,16 @@ export interface ConciergeShellProps {
200
175
  readonly launcher?: WidgetLauncherSpec;
201
176
  /** `launcher.initials` — the operator's, already computed by the caller. */
202
177
  readonly launcherInitials?: string;
178
+ /** §9.1 `layout.launcher`. Absent ⇒ `pill`. */
179
+ readonly launcherVariant?: LauncherVariant;
180
+ /** §9.1 `identity.name`: the launcher's title and the monogram's letter. */
181
+ readonly agentName?: string;
203
182
  /** `typing` — somebody on the other side is composing; drawn at the foot of the transcript. */
204
183
  readonly typing?: boolean;
205
184
  /**
206
- * §4's `human` row: the person holding the conversation, named under the
207
- * orb. The dock says this in its row; the widget says it in the panel's
208
- * header, which is the only place in this chrome that is always visible
209
- * while the panel is open.
185
+ * §4's `human` row: the person holding the conversation. The dock says this
186
+ * in its row; the widget says it on the header's status line, which is
187
+ * always visible while the panel is open.
210
188
  */
211
189
  readonly operatorName?: string;
212
190
  /** Which face — the 'orb' blob or the 'knot' rope line. Defaults to `'orb'`; see `avatar.ts`. */
@@ -217,7 +195,7 @@ export interface ConciergeShellProps {
217
195
  * caller supplies list items and nothing about scrolling or padding.
218
196
  */
219
197
  readonly children: ReactNode;
220
- /** Between the face and the transcript — the preview's "scripted" badge. */
198
+ /** On the header's status line — the product's status, the preview's "scripted" badge. */
221
199
  readonly badge?: ReactNode;
222
200
  readonly draft: string;
223
201
  readonly onDraftChange: (value: string) => void;
@@ -226,6 +204,12 @@ export interface ConciergeShellProps {
226
204
  readonly composerDisabled?: boolean;
227
205
  /** Omitted ⇒ no voice control renders at all. */
228
206
  readonly voice?: ConciergeShellVoice;
207
+ /**
208
+ * The call view's data (`call-view.tsx`). Present, a running call swaps the
209
+ * panel's header, transcript and composer for the call view (`useCallMode`);
210
+ * absent (the marketing preview), the composer row keeps the end-call control.
211
+ */
212
+ readonly call?: CallViewData;
229
213
  /**
230
214
  * Rendered inside the composer, before the text field.
231
215
  *
@@ -279,7 +263,7 @@ export interface ConciergeShellProps {
279
263
  readonly endCall?: string;
280
264
  };
281
265
  /**
282
- * The small wordmark link rendered directly under the open panel — which
266
+ * The small wordmark link in the panel's footer, under the composer — which
283
267
  * adopter's framework fork produced this bundle, not a per-tenant value.
284
268
  *
285
269
  * A NAME and DATA prop, same rule this file states above for `labels`: this
@@ -294,7 +278,7 @@ export interface ConciergeShellProps {
294
278
  * Absent ⇒ no attribution renders at all, rather than a placeholder.
295
279
  */
296
280
  readonly attribution?: WidgetAttribution;
297
- /** Privacy choices, under the panel. See `WidgetPrivacyChoices`. */
281
+ /** Privacy choices, in the panel's footer. See `WidgetPrivacyChoices`. */
298
282
  readonly privacyChoices?: WidgetPrivacyChoices;
299
283
  /**
300
284
  * `false` keeps focus where it is the FIRST time the panel opens — a panel
@@ -303,5 +287,5 @@ export interface ConciergeShellProps {
303
287
  */
304
288
  readonly focusOnOpen?: boolean;
305
289
  }
306
- export declare function ConciergeShell({ open, onOpenChange, state, messageArrived, launcher, launcherInitials, typing, operatorName, avatar, labels, children, badge, draft, onDraftChange, onSubmit, composerDisabled, voice, announcement, skin, skinStyle, idPrefix, scrollKey, composerLeading, testIds, position, onPositionChange, attribution, privacyChoices, focusOnOpen, }: ConciergeShellProps): import("react").JSX.Element;
290
+ export declare function ConciergeShell({ open, onOpenChange, state, messageArrived, launcher, launcherInitials, launcherVariant, agentName, typing, operatorName, avatar, labels, children, badge, draft, onDraftChange, onSubmit, composerDisabled, voice, call, announcement, skin, skinStyle, idPrefix, scrollKey, composerLeading, testIds, position, onPositionChange, attribution, privacyChoices, focusOnOpen, }: ConciergeShellProps): import("react").JSX.Element;
307
291
  //# sourceMappingURL=concierge-shell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"concierge-shell.d.ts","sourceRoot":"","sources":["../../src/widget/concier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,QAAqC,EACrC,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,WAAkB,GACnB,EAAE,mBAAmB,+BA6brB"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The collapsed launcher's look, shared by `concierge-launcher.tsx` (React)
3
+ * and `cdn/launcher-dom.ts` (the plain-DOM cold twin `core` paints first).
4
+ *
5
+ * One set of declarations, two renderers: the handover from the cold pill to
6
+ * React's must not visibly jump, and the cheapest way to keep two renderings
7
+ * identical is to give them nothing to disagree about. Every value reads a
8
+ * `--wgt-*` token with a literal fallback, because the cold launcher paints
9
+ * before any stylesheet defining those tokens has been adopted. Strings, not
10
+ * objects, for the reason `mark-look.ts` gives. Framework-free: ships in `core`.
11
+ */
12
+ export declare const LAUNCHER_VARIANTS: readonly ['pill', 'round'];
13
+ export type LauncherVariant = (typeof LAUNCHER_VARIANTS)[number];
14
+ export declare const DEFAULT_LAUNCHER_VARIANT: LauncherVariant;
15
+ export declare function isLauncherVariant(value: unknown): value is LauncherVariant;
16
+ /** Mark diameter inside each launcher. */
17
+ export declare const LAUNCHER_MARK_SIZE: Readonly<Record<LauncherVariant, number>>;
18
+ export declare const LAUNCHER_SURFACE = "var(--wgt-panel-surface,var(--widget-card,#fff))";
19
+ export declare const LAUNCHER_TEXT = "var(--wgt-text,var(--widget-foreground,#1c1618))";
20
+ export declare const LAUNCHER_ELEVATION = "var(--wgt-elevation,0 0 0 1px rgba(0,0,0,.06),0 24px 60px -22px rgba(0,0,0,.32))";
21
+ /** The live-call dot, and `--wgt-live`'s value: constant, so it reads as "live" on every theme. */
22
+ export declare const LIVE_COLOR = "#E5484D";
23
+ /** The fixed root, before the anchor. */
24
+ export declare const launcherRootCss: (variant: LauncherVariant) => string;
25
+ /** The open control: mark + text in the pill, the mark alone in the round. */
26
+ export declare const launcherOpenCss: (variant: LauncherVariant) => string;
27
+ /** The round launcher's mark carries the elevation; the pill's sits on a surface. */
28
+ export declare const ROUND_MARK_CSS = "box-shadow:var(--wgt-elevation,0 0 0 1px rgba(0,0,0,.06),0 24px 60px -22px rgba(0,0,0,.32))";
29
+ export declare const LAUNCHER_TEXT_CSS = "display:block;min-width:0;color:var(--wgt-text,var(--widget-foreground,#1c1618))";
30
+ export declare const LAUNCHER_TITLE_CSS = "display:block;max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;line-height:1.3;color:var(--wgt-text,var(--widget-foreground,#1c1618))";
31
+ export declare const LAUNCHER_SUB_CSS = "display:block;white-space:nowrap;font-size:12px;line-height:1.3;color:var(--wgt-text-muted,var(--widget-foreground-muted,rgba(28,22,24,.73)));font-variant-numeric:tabular-nums";
32
+ export declare const LAUNCHER_GRIP_CSS = "position:relative;z-index:1;display:grid;place-items:center;min-width:28px;min-height:44px;padding:0;border:0;border-radius:999px;background:none;color:var(--wgt-text-muted,var(--widget-foreground-muted,rgba(28,22,24,.73)));cursor:grab;touch-action:none";
33
+ /** In the round launcher the grip is a small disc on the circle's lower start edge. */
34
+ export declare const ROUND_GRIP_CSS = "position:absolute;bottom:-4px;inset-inline-start:-4px;z-index:1;min-height:28px;background:var(--wgt-panel-surface,var(--widget-card,#fff));box-shadow:var(--wgt-elevation,0 0 0 1px rgba(0,0,0,.06),0 24px 60px -22px rgba(0,0,0,.32))";
35
+ /** The grip's hit area: 44px across around the 28px grip, which keeps its look. */
36
+ export declare const GRIP_HIT_CSS = "position:absolute;inset:-8px";
37
+ //# sourceMappingURL=launcher-look.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launcher-look.d.ts","sourceRoot":"","sources":["../../src/widget/launcher-look.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,iBAAiB,YAAI,MAAM,EAAE,OAAO,CAAU,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AACjE,eAAO,MAAM,wBAAwB,EAAE,eAAwB,CAAC;AAEhE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E;AAED,0CAA0C;AAC1C,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAGxE,CAAC;AAEF,eAAO,MAAM,gBAAgB,qDAAqD,CAAC;AACnF,eAAO,MAAM,aAAa,qDAAqD,CAAC;AAGhF,eAAO,MAAM,kBAAkB,qFACqD,CAAC;AAErF,mGAAmG;AACnG,eAAO,MAAM,UAAU,YAAY,CAAC;AAGpC,yCAAyC;AACzC,eAAO,MAAM,eAAe,YAAa,eAAe,KAAG,MAIlD,CAAC;AAEV,8EAA8E;AAC9E,eAAO,MAAM,eAAe,YAAa,eAAe,KAAG,MAIsB,CAAC;AAElF,qFAAqF;AACrF,eAAO,MAAM,cAAc,gGAAqC,CAAC;AAEjE,eAAO,MAAM,iBAAiB,qFAAqD,CAAC;AAEpF,eAAO,MAAM,kBAAkB,kMAAkK,CAAC;AAElM,eAAO,MAAM,gBAAgB,oLAAqH,CAAC;AAEnJ,eAAO,MAAM,iBAAiB,kQAAmM,CAAC;AAElO,uFAAuF;AACvF,eAAO,MAAM,cAAc,4OAAoJ,CAAC;AAEhL,mFAAmF;AACnF,eAAO,MAAM,YAAY,iCAAiC,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The mark's static geometry and colours, shared by the React `Mark`
3
+ * (`mark.tsx`) and the plain-DOM cold launcher (`cdn/launcher-dom.ts`).
4
+ *
5
+ * Framework-free on purpose: `launcher-dom.ts` ships in the `core` artefact,
6
+ * which carries no React. Both renderers read the same declarations, so the
7
+ * cold launcher and the React one cannot drift apart at the handover. They
8
+ * are CSS declaration strings rather than style objects because `core` ships
9
+ * unminified whitespace and a budget with a few hundred bytes of headroom: one
10
+ * line of CSS per element costs a fraction of an object literal. React reads
11
+ * them through `styleOf`. Animation lives in `styles/mark.css`, which only
12
+ * the React stage loads.
13
+ */
14
+ import { MARK_VARIANTS, type MarkVariant } from '../avatar.js';
15
+ export { MARK_VARIANTS, type MarkVariant };
16
+ export declare function isMarkVariant(value: unknown): value is MarkVariant;
17
+ /** Resting heights of the four bars, as a fraction of the bar box. */
18
+ export declare const MARK_BARS: readonly [0.5, 0.9, 0.65, 0.4];
19
+ export declare const markRootCss: (size: number) => string;
20
+ export declare const markBarsCss: (size: number) => string;
21
+ export declare const markBarCss: (size: number, k: number) => string;
22
+ export declare const markMonoCss: (size: number) => string;
23
+ export declare const MARK_PIP_CSS = "width:30%;height:30%;border-radius:50%;background:currentColor";
24
+ /** What the mark draws: a monogram with no letter falls back to bars. */
25
+ export declare function drawnMark(variant: MarkVariant, name: string | undefined): {
26
+ readonly drawn: MarkVariant;
27
+ readonly letter: string;
28
+ };
29
+ /**
30
+ * The monogram's letter: the first grapheme of the agent's name, uppercased.
31
+ * A grapheme, not a code unit, so an accented or emoji-led name keeps its
32
+ * first visible character whole. Empty name ⇒ `''`; callers then draw bars.
33
+ */
34
+ export declare function firstGrapheme(name: string | undefined): string;
35
+ //# sourceMappingURL=mark-look.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mark-look.d.ts","sourceRoot":"","sources":["../../src/widget/mark-look.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,CAAC;AAE3C,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAElE;AAED,sEAAsE;AACtE,eAAO,MAAM,SAAS,YAAI,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,CAAU,CAAC;AAExD,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MACiL,CAAC;AAE7N,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MACgC,CAAC;AAE5E,eAAO,MAAM,UAAU,SAAU,MAAM,KAAK,MAAM,KAAG,MACqF,CAAC;AAE3I,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MAC4D,CAAC;AAExG,eAAO,MAAM,YAAY,mEAAmE,CAAC;AAM7F,yEAAyE;AACzE,wBAAgB,SAAS,CACvB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB;IAAE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAG1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAO9D"}