@saar-ai/web-widget 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chat-R7z4DtMM.js → chat-CrbRIHVN.js} +18 -5
- package/dist/chunks/{esm-DSxqq2-d.js → esm-D2iq2DjO.js} +6 -6
- package/dist/chunks/{host-widget-iQ-2t8vu.js → host-widget-BJrw-B0B.js} +347 -135
- package/dist/chunks/{schemas-B2B3k74u.js → schemas-DC_oWrTO.js} +51 -19
- package/dist/chunks/starters-pick-noq7o_W8.js +139 -0
- package/dist/chunks/{telemetry-3f--vvdX.js → telemetry-UHSrhVyf.js} +1 -1
- package/dist/dock/dock-drag.d.ts +0 -2
- package/dist/dock/dock-drag.d.ts.map +1 -1
- package/dist/dock/dock-motion.d.ts +0 -1
- package/dist/dock/dock-motion.d.ts.map +1 -1
- package/dist/dock/dock-state.d.ts +0 -52
- package/dist/dock/dock-state.d.ts.map +1 -1
- package/dist/dock/dock.d.ts +0 -18
- package/dist/dock/dock.d.ts.map +1 -1
- package/dist/generated/widget-css.d.ts.map +1 -1
- package/dist/host-widget.d.ts +9 -1
- package/dist/host-widget.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/messages.d.ts +9 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/starters-pick.d.ts +16 -0
- package/dist/starters-pick.d.ts.map +1 -0
- package/dist/text-direction.d.ts +11 -45
- package/dist/text-direction.d.ts.map +1 -1
- package/dist/use-chat-session.d.ts +63 -13
- package/dist/use-chat-session.d.ts.map +1 -1
- package/dist/voice-widget.d.ts +13 -1
- package/dist/voice-widget.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.css +1 -1
- package/package.json +9 -9
package/dist/text-direction.d.ts
CHANGED
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Base direction for
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* signal to extract a shared, framework-independent package instead.
|
|
13
|
-
*
|
|
14
|
-
* ## Why the widget's own direction is the wrong default
|
|
15
|
-
*
|
|
16
|
-
* `<html dir>` is set from the HOST PAGE's locale, and every element inherits
|
|
17
|
-
* it. That is right for the host's own chrome and wrong for a widget
|
|
18
|
-
* transcript: a shopper on an English storefront asking a question the
|
|
19
|
-
* concierge answers in Arabic would render that reply with an LTR base
|
|
20
|
-
* direction, and the Unicode bidirectional algorithm would then lay out the
|
|
21
|
-
* runs in the wrong order and throw trailing punctuation to the wrong end of
|
|
22
|
-
* the line.
|
|
23
|
-
*
|
|
24
|
-
* ## Mixed runs are the normal case here, not an edge case
|
|
25
|
-
*
|
|
26
|
-
* Verified against live recognition output: Arabic comes back as
|
|
27
|
-
* `رقم الـ order هو 4471. Please check من فضلك.` and Hindi as
|
|
28
|
-
* `मेरा order number 4471 है।`. Latin nouns inside a non-Latin sentence are
|
|
29
|
-
* what this product's transcripts actually contain, so bidirectional layout
|
|
30
|
-
* is exercised on ordinary traffic rather than by an unusual visitor.
|
|
31
|
-
*
|
|
32
|
-
* ## `auto` is the floor, not the goal
|
|
33
|
-
*
|
|
34
|
-
* With a known language this returns a definite direction. Without one it
|
|
35
|
-
* returns `auto`, which delegates to the browser's first-strong-character
|
|
36
|
-
* heuristic — better than inheriting the host page, but wrong for a message
|
|
37
|
-
* that opens with an English word and continues in Arabic
|
|
38
|
-
* (`Please check من فضلك`).
|
|
2
|
+
* Base direction for text whose language is the CONTENT's, not the host page's.
|
|
3
|
+
* The implementation and its reasoning live in
|
|
4
|
+
* `@saar-ai/widget-protocol/text-direction`, shared with the console.
|
|
5
|
+
*
|
|
6
|
+
* A typed `const` and a local union, not `export { ... } from`: this symbol is
|
|
7
|
+
* part of the PUBLIC npm surface (`index.ts` re-exports it) and
|
|
8
|
+
* `@saar-ai/widget-protocol` is `private: true`, so a re-export would write an
|
|
9
|
+
* unresolvable specifier into `dist/text-direction.d.ts` (see `format-money.ts`).
|
|
10
|
+
* The binding is still the SAME function object, which
|
|
11
|
+
* `__tests__/text-direction.test.ts` asserts by identity.
|
|
39
12
|
*/
|
|
40
13
|
export type TextDirection = 'ltr' | 'rtl' | 'auto';
|
|
41
|
-
|
|
42
|
-
* The base direction for text in `locale`.
|
|
43
|
-
*
|
|
44
|
-
* @param locale BCP-47 tag carried on a conversation turn — untyped by the
|
|
45
|
-
* time it reaches here, so anything malformed resolves to `auto` rather
|
|
46
|
-
* than to a guess.
|
|
47
|
-
*/
|
|
48
|
-
export declare function textDirectionFor(locale: string | undefined | null): TextDirection;
|
|
14
|
+
export declare const textDirectionFor: (locale: string | undefined | null) => TextDirection;
|
|
49
15
|
//# sourceMappingURL=text-direction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-direction.d.ts","sourceRoot":"","sources":["../src/text-direction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-direction.d.ts","sourceRoot":"","sources":["../src/text-direction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,KAAK,aAC9C,CAAC"}
|
|
@@ -56,15 +56,53 @@ export declare function isSameOriginPath(value: unknown): value is string;
|
|
|
56
56
|
* ## Push and poll converge to ONE rendered turn, never two
|
|
57
57
|
*
|
|
58
58
|
* Both paths hand their turns to `mergeIncoming`, the ONE function that
|
|
59
|
-
* appends to `turns`. It dedupes by `seq` (`seenSeqRef`, a `Set<number>`)
|
|
60
|
-
* not by comparing against a single "highest seq seen"
|
|
61
|
-
* watermark would wrongly DROP a genuinely new, lower-seq turn
|
|
62
|
-
* delivers late after a socket reconnect skipped ahead to a
|
|
63
|
-
* real scenario: the socket drops for a few seconds, misses
|
|
64
|
-
* reconnects and receives turn N+1; the next poll still owes
|
|
65
|
-
* turn N).
|
|
66
|
-
*
|
|
67
|
-
*
|
|
59
|
+
* appends to `turns`. It dedupes by `seq` (`seenSeqRef`, a `Set<number>`)
|
|
60
|
+
* and by turn id, not by comparing against a single "highest seq seen"
|
|
61
|
+
* watermark — a watermark would wrongly DROP a genuinely new, lower-seq turn
|
|
62
|
+
* that a poll delivers late after a socket reconnect skipped ahead to a
|
|
63
|
+
* higher one (a real scenario: the socket drops for a few seconds, misses
|
|
64
|
+
* turn N, then reconnects and receives turn N+1; the next poll still owes
|
|
65
|
+
* the visitor turn N).
|
|
66
|
+
*
|
|
67
|
+
* ## Only a POLL result moves the poll cursor
|
|
68
|
+
*
|
|
69
|
+
* `afterSeq` — `lastSeqRef`, the query param the poll sends — moves forward
|
|
70
|
+
* only over seqs a POLL returned. A push renders its turn and leaves the
|
|
71
|
+
* cursor where it was. It used to move for EITHER path, and that lost an
|
|
72
|
+
* operator's reply in production for good: seq 6's push went out before the
|
|
73
|
+
* visitor's socket had joined the room, seq 7's push arrived, the cursor
|
|
74
|
+
* jumped to 7, and every later poll asked "anything after 7?". Seq 6 was
|
|
75
|
+
* never asked for again. The cost of the rule is that a poll re-fetches
|
|
76
|
+
* turns the socket already delivered; they dedupe by seq (and may still
|
|
77
|
+
* fill a field the pushed copy lacked — see `mergeIncoming`).
|
|
78
|
+
*
|
|
79
|
+
* A HELD reply breaks the "seq order is visibility order" assumption: an
|
|
80
|
+
* operator reply inside its undo window has its seq from the moment it is
|
|
81
|
+
* written but is hidden from the poll until the hold ends, so a shopper turn
|
|
82
|
+
* written meanwhile can come back first with a higher seq. A seq a poll page
|
|
83
|
+
* skips over (`seqGapsRef`) is therefore still asked for — the poll requests
|
|
84
|
+
* from just below it — for `SEQ_GAP_HOLD_MS`, then given up on (a canceled
|
|
85
|
+
* reply or a system row never becomes visible).
|
|
86
|
+
*
|
|
87
|
+
* ## Listening from load: the light poll (owner decision 2026-10-18)
|
|
88
|
+
*
|
|
89
|
+
* Before escalation there is no socket. From load the hook polls `GET
|
|
90
|
+
* /widget/messages` every `lightPollIntervalMs` (30 s) while the tab is
|
|
91
|
+
* visible, pausing while it is hidden, through the same poll-only cursor and
|
|
92
|
+
* merge path. The first NEW operator turn (`role: 'human'`) it sees switches
|
|
93
|
+
* it onto the escalated path — `markHandoffToHuman`, so the socket opens and
|
|
94
|
+
* the fast poll starts. That is how an operator who takes a conversation
|
|
95
|
+
* over and writes first, or takes it back after a hand-back, reaches a
|
|
96
|
+
* shopper who has not typed. A tick that lands while a reply streams is
|
|
97
|
+
* skipped (that exchange's row exists before `done` stamps its id).
|
|
98
|
+
*
|
|
99
|
+
* ## Catch-up polls
|
|
100
|
+
*
|
|
101
|
+
* A push can be missed in the window before the socket is connected and
|
|
102
|
+
* joined, so the hook does not wait out the poll interval at the two
|
|
103
|
+
* moments that window closes: it polls once immediately when the
|
|
104
|
+
* conversation escalates, and once on every socket `connect` (including each
|
|
105
|
+
* reconnect after a drop).
|
|
68
106
|
*
|
|
69
107
|
* ## Visitor identity is proven, not asserted
|
|
70
108
|
*
|
|
@@ -244,8 +282,12 @@ export interface ChatAttachment {
|
|
|
244
282
|
* Absent, not fabricated — same discipline `Turn.readAt` states api-side.
|
|
245
283
|
*/
|
|
246
284
|
export type ChatTurnDelivery = 'sending' | 'sent';
|
|
247
|
-
/**
|
|
248
|
-
|
|
285
|
+
/**
|
|
286
|
+
* The transcript EVENTS this widget can render — things that HAPPENED, not
|
|
287
|
+
* things anybody said. `'handoff'`: the conversation went to a person.
|
|
288
|
+
* `'handback'`: a person released it back to the concierge (SAA-420).
|
|
289
|
+
*/
|
|
290
|
+
export type ChatTurnEvent = 'handoff' | 'handback';
|
|
249
291
|
export interface ChatTurn {
|
|
250
292
|
readonly id: string;
|
|
251
293
|
/**
|
|
@@ -314,6 +356,13 @@ export interface UseChatSessionOptions {
|
|
|
314
356
|
* slower safety net, not a second primary channel. Defaults to 30000.
|
|
315
357
|
*/
|
|
316
358
|
readonly idlePollIntervalMs?: number;
|
|
359
|
+
/**
|
|
360
|
+
* The LIGHT poll's interval, ms — the poll that runs from load while the
|
|
361
|
+
* conversation is NOT escalated, and only while the tab is visible (SAA-420,
|
|
362
|
+
* owner decision 2026-10-18). Defaults to 30000. See "Listening from load"
|
|
363
|
+
* in the module doc comment.
|
|
364
|
+
*/
|
|
365
|
+
readonly lightPollIntervalMs?: number;
|
|
317
366
|
/**
|
|
318
367
|
* The api's ORIGIN (e.g. `https://api.example.com`) the widget socket
|
|
319
368
|
* connects to DIRECTLY — never through `apiBase`'s same-origin proxy, which
|
|
@@ -723,8 +772,9 @@ export interface UseChatSessionResult {
|
|
|
723
772
|
* life of the hook, so an effect keyed on it fires on the EVENT and not on
|
|
724
773
|
* every render.
|
|
725
774
|
*
|
|
726
|
-
* It does not
|
|
727
|
-
*
|
|
775
|
+
* It does not undo an escalation. Only the desk can: a hand-back reaches
|
|
776
|
+
* this hook as the widget room's `desk:ownership { to: 'ai' }` push or the
|
|
777
|
+
* SSE `resumed` event, never through this function.
|
|
728
778
|
*/
|
|
729
779
|
readonly markHandoffToHuman: () => void;
|
|
730
780
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-chat-session.d.ts","sourceRoot":"","sources":["../src/use-chat-session.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAQjF,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAOvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,KAA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;;;;;OAiBG;IACH,QAAQ,CAAC,eAAe,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACrE,iGAAiG;IACjG,QAAQ,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACpE;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,SAAS,gBAAgB,EAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9E;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC;IAClC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,QAAQ,EAAE,CACjB,KAAK,EAAE,SAAS;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,EACzD,UAAU,CAAC,EAAE,MAAM,EACnB,oBAAoB,CAAC,EAAE,MAAM,KAC1B,OAAO,CAAC,mBAAmB,GAAG,2BAA2B,GAAG,IAAI,CAAC,CAAC;IACvE;;;;;;;;;OASG;IACH,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5E;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CACzC;AAyYD,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,oBAAoB,CAkqEnF"}
|
package/dist/voice-widget.d.ts
CHANGED
|
@@ -191,6 +191,11 @@ export interface VoiceWidgetProps {
|
|
|
191
191
|
* translation catalogue (apps/web's `next-intl` adapter) supplies its own.
|
|
192
192
|
*/
|
|
193
193
|
readonly messages?: WidgetMessages;
|
|
194
|
+
/**
|
|
195
|
+
* The starter buttons on an empty conversation, already chosen for the page
|
|
196
|
+
* (SAA-421, `host-widget.tsx`). Absent ⇒ the three `suggestion_*` messages.
|
|
197
|
+
*/
|
|
198
|
+
readonly suggestions?: readonly string[] | undefined;
|
|
194
199
|
/**
|
|
195
200
|
* Fulfils a card's `navigate` intent (§4 Phase 3, coupling (3)) — forwarded
|
|
196
201
|
* to `WidgetCardList`. Absent ⇒ product-card links degrade to a plain
|
|
@@ -274,6 +279,13 @@ export interface ConversationView {
|
|
|
274
279
|
readonly operatorName: string | undefined;
|
|
275
280
|
/** §5.1 — somebody on the other side is composing. */
|
|
276
281
|
readonly composing: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* The last spoken turn is an OPEN concierge turn (not a filler) — the
|
|
284
|
+
* transcript is already drawing the reply's own dots, or its text as it
|
|
285
|
+
* streams. A renderer that draws a composing indicator of its own reads
|
|
286
|
+
* this (and {@link humanTyping}) so the shopper never sees two at once.
|
|
287
|
+
*/
|
|
288
|
+
readonly replyStreaming: boolean;
|
|
277
289
|
readonly channel: 'text' | 'voice';
|
|
278
290
|
readonly mode: WidgetMode;
|
|
279
291
|
readonly showMic: boolean;
|
|
@@ -416,7 +428,7 @@ export declare function basketIntentFromTurns(turns: readonly Pick<WidgetTurn, '
|
|
|
416
428
|
*/
|
|
417
429
|
export declare function VoiceWidget({ renderer, generation, ...props }: VoiceWidgetProps): import("react").JSX.Element;
|
|
418
430
|
/** `VoiceWidget` with the renderer decided — the component the CDN entries and `ConciergeHost` use. */
|
|
419
|
-
export declare function VoiceWidgetWithRenderer({ renderer, state, turns, onToggleMic, onEndCall, callPhase, onSendText, micOpen, status, statusKind, notice, mode, escalated, humanTyping, onTyping, onAddToCart, onChooseOptions, chooseOptionsBusy, curationHref, productHref, onAttachFile, cart, captureCard, messages, navigate, locale, skinStyle, avatar, attribution, privacyChoices, dock, }: VoiceWidgetProps & {
|
|
431
|
+
export declare function VoiceWidgetWithRenderer({ renderer, state, turns, onToggleMic, onEndCall, callPhase, onSendText, micOpen, status, statusKind, notice, mode, escalated, humanTyping, onTyping, onAddToCart, onChooseOptions, chooseOptionsBusy, curationHref, productHref, onAttachFile, cart, captureCard, messages, suggestions, navigate, locale, skinStyle, avatar, attribution, privacyChoices, dock, }: VoiceWidgetProps & {
|
|
420
432
|
readonly renderer: ConciergeRenderer;
|
|
421
433
|
}): import("react").JSX.Element;
|
|
422
434
|
//# sourceMappingURL=voice-widget.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-widget.d.ts","sourceRoot":"","sources":["../src/voice-widget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAE1F,OAAO,EACL,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAExF,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAkB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAqB,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
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qB,CACnC,KAAK,EAAE,SAAS,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,MAAM,CAAC,EAAE,GACrD,OAAO,CAIT;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAE/E;AAED,uGAAuG;AACvG,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,KAAK,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,SAAkB,EAClB,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,EACV,MAAM,EACN,IAAc,EACd,SAAiB,EACjB,WAAmB,EACnB,QAAQ,EACR,WAAW,EACX,eAAe,EACf,iBAAyB,EACzB,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,QAAgC,EAChC,WAAW,EACX,QAAQ,EACR,MAAa,EACb,SAAS,EACT,MAAM,EACN,WAAW,EACX,cAAc,EACd,IAAI,GACL,EAAE,gBAAgB,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAA;CAAE,+BAomB7D"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ConversationView } from '../voice-widget.js';
|
|
2
|
-
export declare function ShellRenderer({ turns, showMic, callPhase, micOpen, onToggleMic, onEndCall, statusKind, statusLine, escalated, operatorName, humanTyping, composing, channel, draft, onDraftChange, submit, attaching, onAttach, attachInput, transcript, extras, messages, skinStyle, avatar, attribution, privacyChoices, voice: derivedVoice, dock, }: ConversationView): import("react").JSX.Element;
|
|
2
|
+
export declare function ShellRenderer({ turns, showMic, callPhase, micOpen, onToggleMic, onEndCall, statusKind, statusLine, escalated, operatorName, humanTyping, composing, replyStreaming, channel, draft, onDraftChange, submit, attaching, onAttach, attachInput, transcript, extras, messages, skinStyle, avatar, attribution, privacyChoices, voice: derivedVoice, dock, }: ConversationView): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=shell-renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell-renderer.d.ts","sourceRoot":"","sources":["../../src/widget/shell-renderer.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,SAAS,EACT,OAAO,EACP,KAAK,EACL,aAAa,EACb,MAAM,EACN,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,MAAM,EACN,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,EAAE,YAAY,EACnB,IAAI,GACL,EAAE,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"shell-renderer.d.ts","sourceRoot":"","sources":["../../src/widget/shell-renderer.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,SAAS,EACT,cAAc,EACd,OAAO,EACP,KAAK,EACL,aAAa,EACb,MAAM,EACN,SAAS,EACT,QAAQ,EACR,WAAW,EACX,UAAU,EACV,MAAM,EACN,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,cAAc,EACd,KAAK,EAAE,YAAY,EACnB,IAAI,GACL,EAAE,gBAAgB,+BA4PlB"}
|