@marketrix.ai/widget 3.8.482 → 3.8.483
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/src/context/sseReducer.d.ts +1 -1
- package/dist/src/types/index.d.ts +3 -0
- package/dist/widget.mjs +40 -40
- package/package.json +1 -1
|
@@ -38,6 +38,9 @@ export interface MessagePart {
|
|
|
38
38
|
/** chat/delta fragments accumulate into this part; the final chat/response replaces it. */
|
|
39
39
|
streaming?: boolean;
|
|
40
40
|
}
|
|
41
|
+
/** A message's text is the text it shows: its text parts joined. `content` is this value, kept by the
|
|
42
|
+
* writers, so a reader never has to know which of the two fields is authoritative. */
|
|
43
|
+
export declare const messageText: (parts: MessagePart[]) => string;
|
|
41
44
|
export type WidgetView = 'home' | 'chat';
|
|
42
45
|
export interface WidgetState {
|
|
43
46
|
isOpen: boolean;
|