@saar-ai/web-widget 0.11.0 → 0.13.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/capture-card/capture-card-dom.d.ts +52 -0
- package/dist/capture-card/capture-card-dom.d.ts.map +1 -0
- package/dist/capture-card/capture-card-host.d.ts +9 -0
- package/dist/capture-card/capture-card-host.d.ts.map +1 -0
- package/dist/chunks/capture-card-BlJ6EkWn.js +156 -0
- package/dist/chunks/capture-card-dom-BqDqOvQF.js +383 -0
- package/dist/chunks/{chat-CU9VPqVO.js → chat-R7z4DtMM.js} +110 -8
- package/dist/chunks/form-fill-B-h6Uw1t.js +45 -0
- package/dist/chunks/form-fill-dom-skU-ZwLB.js +191 -0
- package/dist/chunks/{host-widget-BZKCb7yR.js → host-widget-BZAYL5tQ.js} +1370 -425
- package/dist/chunks/{schemas-YN3wGSGZ.js → schemas-B2B3k74u.js} +2427 -1167
- package/dist/chunks/{telemetry-B1xBTk1s.js → telemetry-3f--vvdX.js} +18 -12
- package/dist/concierge-shell.css +1 -1
- package/dist/consent/consent-prompt-dom.d.ts +57 -0
- package/dist/consent/consent-prompt-dom.d.ts.map +1 -0
- package/dist/consent/consent-prompt-preview.d.ts +16 -0
- package/dist/consent/consent-prompt-preview.d.ts.map +1 -0
- package/dist/dock/dock-renderer.d.ts +1 -1
- package/dist/dock/dock-renderer.d.ts.map +1 -1
- package/dist/dock/dock-row.d.ts +3 -23
- package/dist/dock/dock-row.d.ts.map +1 -1
- package/dist/dock/dock.d.ts +11 -0
- package/dist/dock/dock.d.ts.map +1 -1
- package/dist/flow-link.d.ts +13 -0
- package/dist/flow-link.d.ts.map +1 -0
- package/dist/form-fill/form-fill-dom.d.ts +39 -0
- package/dist/form-fill/form-fill-dom.d.ts.map +1 -0
- package/dist/format-money.d.ts +3 -2
- package/dist/format-money.d.ts.map +1 -1
- package/dist/generated/concierge-shell-css.d.ts.map +1 -1
- package/dist/handoff-initials.d.ts +34 -0
- package/dist/handoff-initials.d.ts.map +1 -0
- package/dist/host-widget.d.ts +8 -5
- package/dist/host-widget.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +139 -173
- package/dist/next/index.js +1 -1
- package/dist/use-chat-session.d.ts +23 -3
- package/dist/use-chat-session.d.ts.map +1 -1
- package/dist/use-voice-session.d.ts +39 -4
- package/dist/use-voice-session.d.ts.map +1 -1
- package/dist/voice-widget.d.ts +11 -5
- package/dist/voice-widget.d.ts.map +1 -1
- package/dist/widget/concierge-launcher.d.ts +16 -1
- package/dist/widget/concierge-launcher.d.ts.map +1 -1
- package/dist/widget/concierge-shell.d.ts +48 -2
- package/dist/widget/concierge-shell.d.ts.map +1 -1
- package/dist/widget/shell-renderer.d.ts +1 -1
- package/dist/widget/shell-renderer.d.ts.map +1 -1
- package/dist/widget/widget-view.d.ts +66 -2
- package/dist/widget/widget-view.d.ts.map +1 -1
- package/dist/widget-cart-summary.d.ts +4 -3
- package/dist/widget-cart-summary.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/styles/brand.css +51 -0
- package/src/styles/concierge-shell-entry.css +13 -0
- package/src/styles/concierge.css +9 -38
package/dist/format-money.d.ts
CHANGED
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* a hardcoded 100.
|
|
14
14
|
*
|
|
15
15
|
* That simplification became a bug the moment the server side of the same
|
|
16
|
-
* question was fixed.
|
|
16
|
+
* question was fixed. The model-facing money module (then in
|
|
17
|
+
* `@wesence/agent-core`, now in `@saar-ai/commerce-pack`) carried
|
|
17
18
|
* the complete ISO 4217 zero-decimal and three-decimal sets, so the concierge
|
|
18
19
|
* says "9900 JPY" in prose while this function drew "¥99" on the card beside
|
|
19
20
|
* it — two answers to one question, inside one conversation, which is the
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
* own `AGENTS.md` already says what to do about it — "a third copy anywhere
|
|
25
26
|
* is the signal to extract a shared package instead of copying again" — so
|
|
26
27
|
* the table and the formatter moved into `@saar-ai/widget-protocol/money`,
|
|
27
|
-
* which this package already bundles, and `@
|
|
28
|
+
* which this package already bundles, and `@saar-ai/commerce-pack` and
|
|
28
29
|
* `apps/web/src/lib/money.ts` re-export the same one.
|
|
29
30
|
*
|
|
30
31
|
* `@saar-ai/widget-protocol`, not `@wesence/agent-core`, because no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-money.d.ts","sourceRoot":"","sources":["../src/format-money.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"format-money.d.ts","sourceRoot":"","sources":["../src/format-money.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MACjE,CAAC"}
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"concierge-shell-css.d.ts","sourceRoot":"","sources":["../../src/generated/concierge-shell-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,EAAE,MAAsz1D,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"}
|
package/dist/host-widget.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type ChatCardItem, type ChatCheckoutHandoff } from './use-chat-session.
|
|
|
6
6
|
import { type VoiceSession } from './use-voice-session.js';
|
|
7
7
|
import { type ConciergeRenderer } from './voice-widget.js';
|
|
8
8
|
import type { WidgetCartLine } from './widget-cart-summary.js';
|
|
9
|
-
import type { ConciergeCallPhase, WidgetAttribution } from './voice-widget.js';
|
|
9
|
+
import type { ConciergeCallPhase, WidgetAttribution, WidgetPrivacyChoices } from './voice-widget.js';
|
|
10
10
|
import type { DockAvatarKind } from './dock/dock-row.js';
|
|
11
11
|
import type { DockCopyView, DockLayoutView } from './dock/dock.js';
|
|
12
12
|
import type { WidgetColorConfig, WidgetTypeConfig } from './theme/derive.js';
|
|
@@ -236,10 +236,11 @@ export declare function toChatCart(input: {
|
|
|
236
236
|
* through to (2) rather than surfacing, because a bridge that cannot answer
|
|
237
237
|
* is exactly the case (2) exists for. `null` from BOTH is a real outcome and
|
|
238
238
|
* is returned as such: `WidgetCartSummary`'s button renders its failure line
|
|
239
|
-
* and stays pressable.
|
|
240
|
-
*
|
|
239
|
+
* and stays pressable. `false` from (2) means the store needs details first
|
|
240
|
+
* and the widget is already showing cards for them. It must never throw — the
|
|
241
|
+
* button's own `await` has no catch, so a throw here is a permanent spinner.
|
|
241
242
|
*/
|
|
242
|
-
export declare function resolveCheckoutUrl(bridge: HostBridge | undefined, startHandoff: () => Promise<ChatCheckoutHandoff | null>): Promise<string | null>;
|
|
243
|
+
export declare function resolveCheckoutUrl(bridge: HostBridge | undefined, startHandoff: () => Promise<ChatCheckoutHandoff | false | null>): Promise<string | false | null>;
|
|
243
244
|
/**
|
|
244
245
|
* Where the call is, in the CALLER's terms — the mapping from the voice
|
|
245
246
|
* session's own five-field state onto the one phase the mic control renders.
|
|
@@ -453,6 +454,8 @@ export interface ConciergeWidgetProps {
|
|
|
453
454
|
* component resolves no identity of its own.
|
|
454
455
|
*/
|
|
455
456
|
readonly attribution?: WidgetAttribution;
|
|
457
|
+
/** Forwarded to the renderer; see `WidgetPrivacyChoices`. */
|
|
458
|
+
readonly privacyChoices?: WidgetPrivacyChoices;
|
|
456
459
|
/**
|
|
457
460
|
* DOCK_SPEC §4.2's HANDOVER payload — everything the core dock
|
|
458
461
|
* (`cdn/dock-dom.ts`) captured at the instant the shopper expressed intent,
|
|
@@ -546,5 +549,5 @@ export type ConciergeHostProps = ConciergeWidgetProps & {
|
|
|
546
549
|
* when the caller did not. See `renderers.ts` for why they are two functions.
|
|
547
550
|
*/
|
|
548
551
|
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;
|
|
552
|
+
export declare function ConciergeHost({ renderer, embedKey, apiBase, socketUrl, socketPath, bridge, siteProfile, collector, messages, locale, productHref, hostRoutes, curationHref, brandPrimary, brandSecondary, brandAccent, avatar, attribution, privacyChoices, 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;
|
|
550
553
|
//# 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,MAA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,EACJ,KAAK,EACL,OAAO,EACP,WAAW,GACZ,EAAE,kBAAkB,+BA+oEpB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './avatar.js';
|
|
|
4
4
|
export * from './morphing-loader.js';
|
|
5
5
|
export { cn } from './cn.js';
|
|
6
6
|
export { Dock } from './dock/dock.js';
|
|
7
|
-
export type { DockProps, DockVoiceProps, DockLayoutView, DockCopyView, DockTurn, WidgetAttribution, } from './dock/dock.js';
|
|
7
|
+
export type { DockProps, DockVoiceProps, DockLayoutView, DockCopyView, DockTurn, WidgetAttribution, WidgetPrivacyChoices, } from './dock/dock.js';
|
|
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';
|
|
@@ -39,4 +39,8 @@ export * from './mount.js';
|
|
|
39
39
|
export * from './styles.js';
|
|
40
40
|
export type { HostBridge, HostPage, HostPageKind, HostIntent, NavigateIntent, ApplyFilterIntent, AddToCartIntent, } from '@saar-ai/widget-bridge';
|
|
41
41
|
export type { VisitorEventCollector, VisitorEventCollectorOptions, CollectorSession, Transport, TransportResponse, ConsentState, } from '@saar-ai/widget-bridge';
|
|
42
|
+
export { ConsentPromptPreview } from './consent/consent-prompt-preview.js';
|
|
43
|
+
export type { ConsentPromptPreviewProps } from './consent/consent-prompt-preview.js';
|
|
44
|
+
export { consentPromptText } from './consent/consent-prompt-dom.js';
|
|
45
|
+
export type { ConsentPromptText } from './consent/consent-prompt-dom.js';
|
|
42
46
|
//# sourceMappingURL=index.d.ts.map
|
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,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc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