@saar-ai/web-widget 0.2.0 → 0.4.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/avatar-face.d.ts +33 -0
- package/dist/avatar-face.d.ts.map +1 -0
- package/dist/avatar.d.ts +17 -0
- package/dist/avatar.d.ts.map +1 -0
- package/dist/bot-face.d.ts +17 -0
- package/dist/bot-face.d.ts.map +1 -1
- package/dist/chunks/{chat-ZLxYRTml.js → chat-DfajYOmN.js} +68 -1
- package/dist/chunks/{host-widget-iy3qC-1p.js → host-widget-Bt41rE9U.js} +2562 -499
- package/dist/concierge-launcher.d.ts +4 -1
- package/dist/concierge-launcher.d.ts.map +1 -1
- package/dist/concierge-shell.d.ts +68 -6
- package/dist/concierge-shell.d.ts.map +1 -1
- package/dist/generated/widget-css.d.ts.map +1 -1
- package/dist/host-widget.d.ts +138 -4
- package/dist/host-widget.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/messages.d.ts +71 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/rope-knot.d.ts +13 -0
- package/dist/rope-knot.d.ts.map +1 -0
- package/dist/session-log.d.ts +1 -1
- package/dist/session-log.d.ts.map +1 -1
- package/dist/transcript-geometry.d.ts +220 -0
- package/dist/transcript-geometry.d.ts.map +1 -0
- package/dist/use-chat-session.d.ts +151 -10
- package/dist/use-chat-session.d.ts.map +1 -1
- package/dist/use-voice-session.d.ts +10 -0
- package/dist/use-voice-session.d.ts.map +1 -1
- package/dist/voice-session-state.d.ts +17 -0
- package/dist/voice-session-state.d.ts.map +1 -1
- package/dist/voice-widget.d.ts +52 -4
- package/dist/voice-widget.d.ts.map +1 -1
- package/dist/widget-cards.d.ts +5 -2
- package/dist/widget-cards.d.ts.map +1 -1
- package/dist/widget.css +1 -1
- package/package.json +4 -3
- package/src/styles/concierge.css +377 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type WidgetAvatar } from './avatar.js';
|
|
1
2
|
import { alignOf, type ConciergePosition } from './position.js';
|
|
2
3
|
/**
|
|
3
4
|
* The collapsed concierge: a pill the visitor can read, press, and move.
|
|
@@ -43,8 +44,10 @@ export interface ConciergeLauncherProps {
|
|
|
43
44
|
readonly hidden: boolean;
|
|
44
45
|
readonly id?: string;
|
|
45
46
|
readonly testId?: string;
|
|
47
|
+
/** Which face renders inside the pill. Defaults to `'orb'` — see `avatar.ts`. */
|
|
48
|
+
readonly avatar?: WidgetAvatar;
|
|
46
49
|
}
|
|
47
|
-
export declare function ConciergeLauncher({ label, srLabel, moveLabel, position, onPositionChange, onOpen, hidden, id, testId, }: ConciergeLauncherProps): import("react").JSX.Element;
|
|
50
|
+
export declare function ConciergeLauncher({ label, srLabel, moveLabel, position, onPositionChange, onOpen, hidden, id, testId, avatar, }: ConciergeLauncherProps): import("react").JSX.Element;
|
|
48
51
|
/** Re-exported so a host can type its own stored value. */
|
|
49
52
|
export { alignOf };
|
|
50
53
|
//# sourceMappingURL=concierge-launcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concierge-launcher.d.ts","sourceRoot":"","sources":["../src/concierge-launcher.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,OAAO,EAIP,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAA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EACF,MAAM,EACN,MAA8B,GAC/B,EAAE,sBAAsB,+BAuOxB;AAED,2DAA2D;AAC3D,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { BotState } from './bot-state.js';
|
|
3
|
+
import { type WidgetAvatar } from './avatar.js';
|
|
3
4
|
import { type ConciergePosition } from './position.js';
|
|
4
5
|
/**
|
|
5
6
|
* The concierge widget's chrome: trigger, backdrop, panel, face, composer.
|
|
@@ -67,10 +68,15 @@ export interface ConciergeShellLabels {
|
|
|
67
68
|
/**
|
|
68
69
|
* Where a call is, from the caller's point of view.
|
|
69
70
|
*
|
|
70
|
-
* The panel no longer draws a status
|
|
71
|
-
* widget reads better without one.
|
|
72
|
-
*
|
|
73
|
-
*
|
|
71
|
+
* The panel no longer draws a full status BAR for these — removed on
|
|
72
|
+
* request; the widget reads better without one. What it draws instead, on
|
|
73
|
+
* explicit later request, is a small one-word PILL under the orb (see
|
|
74
|
+
* `ConciergeShellVoice.labels`'s `connecting`/`listening`/`thinking`/
|
|
75
|
+
* `speaking` and the orb overlay below) — a partial reversal, not a
|
|
76
|
+
* contradiction: the pill shows only the call's current state word, never
|
|
77
|
+
* an error or a refusal reason, which still reaches the caller through the
|
|
78
|
+
* host's own status line exactly as before. The phase still decides which
|
|
79
|
+
* control the composer row offers too.
|
|
74
80
|
*/
|
|
75
81
|
export type ConciergeCallPhase = 'idle' | 'connecting' | 'waiting' | 'live' | 'blocked';
|
|
76
82
|
/**
|
|
@@ -113,8 +119,46 @@ export interface ConciergeShellVoice {
|
|
|
113
119
|
readonly interrupt?: string;
|
|
114
120
|
/** The retry button, offered only when the microphone was refused. */
|
|
115
121
|
readonly retry?: string;
|
|
122
|
+
/**
|
|
123
|
+
* WHY the control cannot be used, replacing `start` as the accessible
|
|
124
|
+
* name for as long as it cannot — see `micLabel` below.
|
|
125
|
+
*
|
|
126
|
+
* `start` names the action the button would perform, and a button that
|
|
127
|
+
* performs nothing must not announce one: a caller who hears "Start
|
|
128
|
+
* talking" on a control that refuses every press has been told the
|
|
129
|
+
* product is broken. Read only while the control is unusable
|
|
130
|
+
* (`disabled`, or `phase === 'blocked'`), so a host can supply it
|
|
131
|
+
* unconditionally; absent falls back to the old behaviour, which is what
|
|
132
|
+
* a host with no reason worth naming should get.
|
|
133
|
+
*/
|
|
134
|
+
readonly unavailable?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The four words the voice-state pill under the orb shows (see that
|
|
137
|
+
* pill's own doc comment) — one per state a live call can be in.
|
|
138
|
+
* Defaults to the package's brand-neutral English fallback
|
|
139
|
+
* (`defaultWidgetMessages`, `messages.ts`) so an existing caller that
|
|
140
|
+
* has not been updated to pass these still renders sensibly; a host
|
|
141
|
+
* with its own translation catalogue supplies its own.
|
|
142
|
+
*/
|
|
143
|
+
readonly connecting?: string;
|
|
144
|
+
readonly listening?: string;
|
|
145
|
+
readonly thinking?: string;
|
|
146
|
+
readonly speaking?: string;
|
|
116
147
|
};
|
|
117
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* The small wordmark link rendered directly under the open panel — which
|
|
151
|
+
* adopter's framework fork produced this bundle, not a per-tenant value. See
|
|
152
|
+
* {@link ConciergeShellProps.attribution}'s own doc comment for the full
|
|
153
|
+
* "why not just resolve `@wesence/branding` here" reasoning. Exported (rather
|
|
154
|
+
* than declared inline on each prop that carries it) so `voice-widget.tsx`,
|
|
155
|
+
* `host-widget.tsx`, and `cdn/core.ts`'s `UiModule` reference one definition
|
|
156
|
+
* instead of four independent copies of the same two-field shape.
|
|
157
|
+
*/
|
|
158
|
+
export interface WidgetAttribution {
|
|
159
|
+
readonly name: string;
|
|
160
|
+
readonly href: string;
|
|
161
|
+
}
|
|
118
162
|
export interface ConciergeShellProps {
|
|
119
163
|
readonly open: boolean;
|
|
120
164
|
readonly onOpenChange: (open: boolean) => void;
|
|
@@ -122,6 +166,8 @@ export interface ConciergeShellProps {
|
|
|
122
166
|
readonly state: BotState;
|
|
123
167
|
/** One-shot flourish when the visitor's own message lands. */
|
|
124
168
|
readonly messageArrived?: boolean;
|
|
169
|
+
/** Which face — the 'orb' blob or the 'knot' rope line. Defaults to `'orb'`; see `avatar.ts`. */
|
|
170
|
+
readonly avatar?: WidgetAvatar;
|
|
125
171
|
readonly labels: ConciergeShellLabels;
|
|
126
172
|
/**
|
|
127
173
|
* The conversation. Rendered inside the panel's own scroll container, so a
|
|
@@ -189,6 +235,22 @@ export interface ConciergeShellProps {
|
|
|
189
235
|
readonly mic?: string;
|
|
190
236
|
readonly endCall?: string;
|
|
191
237
|
};
|
|
238
|
+
/**
|
|
239
|
+
* The small wordmark link rendered directly under the open panel — which
|
|
240
|
+
* adopter's framework fork produced this bundle, not a per-tenant value.
|
|
241
|
+
*
|
|
242
|
+
* A NAME and DATA prop, same rule this file states above for `labels`: this
|
|
243
|
+
* package owns no identity of its own and never imports `@wesence/branding`
|
|
244
|
+
* (this package publishes to public npm with an absolute "resolves no
|
|
245
|
+
* `@wesence/*` module at all" guard, `scripts/check-npm-bundle-provenance.mjs`) —
|
|
246
|
+
* the caller resolves `branding.name`/`branding.domain` and passes them
|
|
247
|
+
* down. `cdn/core.ts` does this unconditionally for the real merchant-facing
|
|
248
|
+
* embed (that file is CDN-only, out of the guard's scope, so importing
|
|
249
|
+
* `@wesence/branding` there is safe); any other caller wanting the badge
|
|
250
|
+
* (the marketing preview, a future light-DOM npm consumer) does the same.
|
|
251
|
+
* Absent ⇒ no attribution renders at all, rather than a placeholder.
|
|
252
|
+
*/
|
|
253
|
+
readonly attribution?: WidgetAttribution;
|
|
192
254
|
}
|
|
193
|
-
export declare function ConciergeShell({ open, onOpenChange, state, messageArrived, labels, children, badge, draft, onDraftChange, onSubmit, composerDisabled, voice, announcement, skin, skinStyle, idPrefix, scrollKey, composerLeading, testIds, position, onPositionChange, }: ConciergeShellProps): import("react").JSX.Element;
|
|
255
|
+
export declare function ConciergeShell({ open, onOpenChange, state, messageArrived, avatar, labels, children, badge, draft, onDraftChange, onSubmit, composerDisabled, voice, announcement, skin, skinStyle, idPrefix, scrollKey, composerLeading, testIds, position, onPositionChange, attribution, }: ConciergeShellProps): import("react").JSX.Element;
|
|
194
256
|
//# sourceMappingURL=concierge-shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"concierge-shell.d.ts","sourceRoot":"","sources":["../src/concierge-shell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,
|
|
1
|
+
{"version":3,"file":"concierge-shell.d.ts","sourceRoot":"","sources":["../src/concierge-shell.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AA4BvE,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,WAAW,oBAAoB;IACnC,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,mEAAmE;IACnE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;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Z,EAAE,mBAAmB,+BA67BrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget-css.d.ts","sourceRoot":"","sources":["../../src/generated/widget-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"widget-css.d.ts","sourceRoot":"","sources":["../../src/generated/widget-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,EAAE,MAAmtpE,CAAC"}
|
package/dist/host-widget.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type { HostBridge } from '@saar-ai/widget-bridge';
|
|
1
|
+
import type { CartSnapshot, HostBridge } from '@saar-ai/widget-bridge';
|
|
2
2
|
import type { VisitorEventCollector } from '@saar-ai/widget-bridge';
|
|
3
|
-
import { type ChatCardItem } from './use-chat-session.js';
|
|
3
|
+
import { type ChatCardItem, type ChatCheckoutHandoff } from './use-chat-session.js';
|
|
4
|
+
import { type VoiceSession } from './use-voice-session.js';
|
|
5
|
+
import type { WidgetCartLine } from './widget-cart-summary.js';
|
|
6
|
+
import { type ConciergeCallPhase, type WidgetAttribution } from './concierge-shell.js';
|
|
4
7
|
import { type WidgetMessages } from './messages.js';
|
|
8
|
+
import type { WidgetAvatar } from './avatar.js';
|
|
5
9
|
/**
|
|
6
10
|
* Resolves the widget's "add to cart" handler from the bridge's OWN degraded
|
|
7
11
|
* path — docs/WIDGET_EMBED_PLAN.md §3, rule 1 ("every optional method is
|
|
@@ -35,7 +39,120 @@ import { type WidgetMessages } from './messages.js';
|
|
|
35
39
|
* resolve a bare id into a title/price/image the way a real platform's
|
|
36
40
|
* own cart API does.
|
|
37
41
|
*/
|
|
38
|
-
export declare function resolveAddToCartHandler(bridge: HostBridge | undefined, productHref: ((handle: string) => string) | undefined
|
|
42
|
+
export declare function resolveAddToCartHandler(bridge: HostBridge | undefined, productHref: ((handle: string) => string) | undefined,
|
|
43
|
+
/**
|
|
44
|
+
* Fires ONLY on the `bridge.addToCart` path, and ONLY once it has resolved
|
|
45
|
+
* — never on the PDP-navigation fallback, whether that fallback was taken
|
|
46
|
+
* because the bridge has no `addToCart`, because this card carries no id in
|
|
47
|
+
* the bridge's space, or because `addToCart` REJECTED.
|
|
48
|
+
*
|
|
49
|
+
* That distinction is the whole contract. `ConciergeWidget` uses this to
|
|
50
|
+
* send the server a typed `cart_add` storefront report and to add a line to
|
|
51
|
+
* the widget's own basket; both are statements about a cart the item
|
|
52
|
+
* genuinely reached.
|
|
53
|
+
* A shopper sent to a product page has added nothing yet, and an add that
|
|
54
|
+
* rejected added nothing at all — saying otherwise puts a phantom item in
|
|
55
|
+
* the conversation, which the shopper only discovers at checkout.
|
|
56
|
+
*
|
|
57
|
+
* Synchronous and never awaited: whatever this does is a side effect on the
|
|
58
|
+
* conversation, not part of whether the add succeeded, and `AddToCartButton`
|
|
59
|
+
* must reach its `added` state on the add alone.
|
|
60
|
+
*/
|
|
61
|
+
onAdded?: (item: ChatCardItem) => void): ((item: ChatCardItem) => Promise<void>) | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* A basket row this widget built from its OWN successful add, rather than
|
|
64
|
+
* read off the host.
|
|
65
|
+
*
|
|
66
|
+
* It is a `WidgetCartLine` plus the one field the summary does not render and
|
|
67
|
+
* checkout cannot do without: the INTERNAL catalog variant id. `POST
|
|
68
|
+
* /widget/checkout` resolves items against our own catalogue
|
|
69
|
+
* (`CheckoutHandoffService.createHandoff`), so that is the id space the
|
|
70
|
+
* server-built permalink needs — never `platformVariantId`, which is the
|
|
71
|
+
* FOREIGN id `bridge.addToCart` wants. A card with neither still produces a
|
|
72
|
+
* line: it can be shown, it just cannot be part of a permalink.
|
|
73
|
+
*/
|
|
74
|
+
export interface AddedCartLine extends WidgetCartLine {
|
|
75
|
+
readonly variantId?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Folds one successful add into the widget's own basket, merging a repeat add
|
|
79
|
+
* of the SAME variant into the existing row rather than drawing it twice —
|
|
80
|
+
* two identical rows read as two different products at a glance, which is
|
|
81
|
+
* exactly the misread a confirmation surface must not produce.
|
|
82
|
+
*
|
|
83
|
+
* Keyed by the internal `variantId` where the card has one, since that is
|
|
84
|
+
* what checkout will group on too; a card without one falls back to its
|
|
85
|
+
* platform id and then its product id, so a repeat add of the same card still
|
|
86
|
+
* merges.
|
|
87
|
+
*/
|
|
88
|
+
export declare function mergeAddedCartLine(lines: readonly AddedCartLine[], item: ChatCardItem): readonly AddedCartLine[];
|
|
89
|
+
/**
|
|
90
|
+
* Turns the host's OWN cart rows into what the summary renders, or
|
|
91
|
+
* `undefined` when the host reported no `lines` array at all.
|
|
92
|
+
*
|
|
93
|
+
* `undefined` and `[]` are deliberately different answers — see
|
|
94
|
+
* `CartSnapshot.lines` (`@saar-ai/widget-bridge`). Absent means "this host
|
|
95
|
+
* does not track lines" and the caller falls back to its own accumulation;
|
|
96
|
+
* empty means "the cart is empty" and is rendered as such (i.e. no summary).
|
|
97
|
+
*
|
|
98
|
+
* Every field of a host line is optional, so the missing ones are given the
|
|
99
|
+
* only neutral values a row can be drawn with (`quantity: 1`,
|
|
100
|
+
* `priceMinor: 0`). A line with no `title` never reaches here — the bridge
|
|
101
|
+
* drops it, because there is no row to draw without a name.
|
|
102
|
+
*/
|
|
103
|
+
export declare function cartLinesFromSnapshot(snapshot: CartSnapshot | null, currency: string): readonly AddedCartLine[] | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Where "Checkout" sends the shopper, and the order the two answers are
|
|
106
|
+
* tried in.
|
|
107
|
+
*
|
|
108
|
+
* 1. **The host's own checkout** (`bridge.getCheckoutUrl`), when it has one.
|
|
109
|
+
* It is the only answer that carries the shopper's WHOLE cart, including
|
|
110
|
+
* whatever was in it before this conversation started.
|
|
111
|
+
* 2. **A server-built permalink** (`POST /widget/checkout`), built from the
|
|
112
|
+
* items the concierge itself recommended. It carries our own attribution
|
|
113
|
+
* and is the better answer on a platform we can build a permalink for,
|
|
114
|
+
* which is why `ShopifyBridge` deliberately implements no
|
|
115
|
+
* `getCheckoutUrl`.
|
|
116
|
+
*
|
|
117
|
+
* Every failure of (1) — absent, `null`, throwing, non-`http(s)` — falls
|
|
118
|
+
* through to (2) rather than surfacing, because a bridge that cannot answer
|
|
119
|
+
* is exactly the case (2) exists for. `null` from BOTH is a real outcome and
|
|
120
|
+
* is returned as such: `WidgetCartSummary`'s button renders its failure line
|
|
121
|
+
* and stays pressable. It must never throw — the button's own `await` has no
|
|
122
|
+
* catch, so a throw here is a permanent spinner.
|
|
123
|
+
*/
|
|
124
|
+
export declare function resolveCheckoutUrl(bridge: HostBridge | undefined, startHandoff: () => Promise<ChatCheckoutHandoff | null>): Promise<string | null>;
|
|
125
|
+
/**
|
|
126
|
+
* Where the call is, in the CALLER's terms — the mapping from the voice
|
|
127
|
+
* session's own five-field state onto the one phase the mic control renders.
|
|
128
|
+
*
|
|
129
|
+
* Extracted from `ConciergeWidget` and written as early returns because the
|
|
130
|
+
* precedence between these branches is the whole content of the mapping, and
|
|
131
|
+
* a six-level nested ternary states it only by indentation. Reading order IS
|
|
132
|
+
* the precedence order:
|
|
133
|
+
*
|
|
134
|
+
* - **Voice off** ⇒ `'idle'`. There is no call and no control.
|
|
135
|
+
* - **`'connecting'` deliberately spans MORE than the transport's own
|
|
136
|
+
* connecting phase**: it lasts from the press until the call is either
|
|
137
|
+
* usable or definitively refused, which is exactly the window the mic
|
|
138
|
+
* control draws a spinner for. Its second half is `micPending` — LiveKit
|
|
139
|
+
* reports the room connected BEFORE the browser is asked for the
|
|
140
|
+
* microphone, so the permission prompt sits open over `phase: 'connected'`,
|
|
141
|
+
* and this mapping once called that a live call and handed the caller a
|
|
142
|
+
* microphone they could not yet speak into. `micPending` therefore ranks
|
|
143
|
+
* ABOVE `error`: an error left over from an earlier attempt must not end
|
|
144
|
+
* a wait that is still genuinely open.
|
|
145
|
+
* - **Refusal ends the wait**: the moment the browser says no, `micPending`
|
|
146
|
+
* clears and an error with no open mic reads as `'blocked'` — ahead of
|
|
147
|
+
* `state`, because a caller who cannot speak is not "waiting for the
|
|
148
|
+
* agent to think".
|
|
149
|
+
* - Otherwise the agent's own state decides: `'thinking'` ⇒ `'waiting'`,
|
|
150
|
+
* anything else ⇒ `'live'`.
|
|
151
|
+
*/
|
|
152
|
+
export declare function deriveCallPhase(voice: Pick<VoiceSession, 'phase' | 'micPending' | 'micOpen' | 'error' | 'state'> & {
|
|
153
|
+
/** False ⇒ this tenant/session has no spoken leg at all. */
|
|
154
|
+
readonly voiceEnabled: boolean;
|
|
155
|
+
}): ConciergeCallPhase;
|
|
39
156
|
export interface ConciergeWidgetProps {
|
|
40
157
|
/** The tenant's public embed key — see `packages/widget-bridge/AGENTS.md`'s wire contract. */
|
|
41
158
|
readonly embedKey: string;
|
|
@@ -94,6 +211,15 @@ export interface ConciergeWidgetProps {
|
|
|
94
211
|
readonly brandPrimary?: string;
|
|
95
212
|
readonly brandSecondary?: string;
|
|
96
213
|
readonly brandAccent?: string;
|
|
214
|
+
/**
|
|
215
|
+
* The tenant's published avatar choice (`WidgetAppearance.avatar`,
|
|
216
|
+
* `apps/api/src/widget/widget-config.types.ts`), sourced from the SAME
|
|
217
|
+
* `GET /widget/config` fetch as the brand colours above — see `core.ts`'s
|
|
218
|
+
* `CoreWidgetConfig` doc comment. Absent (the default, and every config
|
|
219
|
+
* published before this field existed) ⇒ `'orb'`, the widget's built-in
|
|
220
|
+
* default, exactly as it always rendered.
|
|
221
|
+
*/
|
|
222
|
+
readonly avatar?: WidgetAvatar;
|
|
97
223
|
/** BCP-47 locale for price formatting. Defaults to `'en'`. */
|
|
98
224
|
readonly locale?: string;
|
|
99
225
|
/** Builds a product card's PDP href from its handle — also feeds the `addToCart` degraded path, see `resolveAddToCartHandler`. */
|
|
@@ -124,6 +250,14 @@ export interface ConciergeWidgetProps {
|
|
|
124
250
|
* unmount silently.
|
|
125
251
|
*/
|
|
126
252
|
readonly onError?: (error: unknown) => void;
|
|
253
|
+
/**
|
|
254
|
+
* Forwarded straight through to `ConciergeShell`'s own `attribution` prop
|
|
255
|
+
* (via `VoiceWidget`) — see that prop's doc comment. `cdn/core.ts` supplies
|
|
256
|
+
* this unconditionally, computed from `@wesence/branding`, for the real
|
|
257
|
+
* merchant-facing embed. Absent ⇒ no attribution link renders — this
|
|
258
|
+
* component resolves no identity of its own.
|
|
259
|
+
*/
|
|
260
|
+
readonly attribution?: WidgetAttribution;
|
|
127
261
|
}
|
|
128
262
|
/**
|
|
129
263
|
* The plain React widget component — for a Next.js host (Phase 5's npm
|
|
@@ -161,5 +295,5 @@ export interface ConciergeWidgetProps {
|
|
|
161
295
|
* about offering voice here costs a byte until a caller actually presses
|
|
162
296
|
* the microphone.
|
|
163
297
|
*/
|
|
164
|
-
export declare function ConciergeWidget({ embedKey, apiBase, socketUrl, socketPath, bridge, collector, messages, locale, productHref, curationHref, brandPrimary, brandSecondary, brandAccent, defaultOpen, }: ConciergeWidgetProps): import("react").JSX.Element;
|
|
298
|
+
export declare function ConciergeWidget({ embedKey, apiBase, socketUrl, socketPath, bridge, collector, messages, locale, productHref, curationHref, brandPrimary, brandSecondary, brandAccent, avatar, defaultOpen, attribution, }: ConciergeWidgetProps): import("react").JSX.Element;
|
|
165
299
|
//# 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,EAAmB,UAAU,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"host-widget.d.ts","sourceRoot":"","sources":["../src/host-widget.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAmB,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,OAAO,EAAkB,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,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ClD,sDAAsD;IACtD,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACvD;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,QAAgC,EAChC,MAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,WAAW,EACX,MAAM,EACN,WAAmB,EACnB,WAAW,GACZ,EAAE,oBAAoB,+BAgftB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAG7B,cAAc,eAAe,CAAC;AAG9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,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