@cimulate/copilot-widget 1.24.7 → 1.25.1
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/cimulate-copilot-widget.d.ts +6 -0
- package/dist/cimulate-copilot-widget.es.js +1008 -1006
- package/dist/cimulate-copilot-widget.umd.js +15 -15
- package/dist/copilot.es.js +1008 -1006
- package/dist/copilot.umd.js +14 -14
- package/dist/messaging.d.ts +12 -0
- package/dist/messaging.es.js +9826 -9675
- package/dist/messaging.umd.js +30 -30
- package/package.json +2 -2
package/dist/messaging.d.ts
CHANGED
|
@@ -226,6 +226,7 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
226
226
|
disclaimerText?: string;
|
|
227
227
|
disclaimerMarkdown?: string;
|
|
228
228
|
clientContext?: ClientContext;
|
|
229
|
+
progressStepsLimit?: number;
|
|
229
230
|
/**
|
|
230
231
|
* Baseline catalog-scoping parameters (facetFilters, catalogSegment, pricebooks)
|
|
231
232
|
* applied by the workflow as defaults on context-less requests (ask_cim, product view)
|
|
@@ -413,6 +414,12 @@ export declare const MessagingEmbed: () => JSX_2.Element;
|
|
|
413
414
|
export declare interface MessagingMessage {
|
|
414
415
|
type?: "ADD_MESSAGE" | "APPEND_STREAMING_TOKEN" | "FLUSH_STREAMING" | "SET_AGENT_TYPING" | "SET_ROUTING_RESULT" | "SET_ERROR" | "RESET";
|
|
415
416
|
id: string;
|
|
417
|
+
/**
|
|
418
|
+
* Stable server identifier, set only for events the SSE stream can replay on
|
|
419
|
+
* reconnect (agent messages, participant joins/leaves). Used to dedup replays.
|
|
420
|
+
* Locally created messages leave this unset.
|
|
421
|
+
*/
|
|
422
|
+
serverId?: string;
|
|
416
423
|
role: "user" | "agent" | "system";
|
|
417
424
|
content: string;
|
|
418
425
|
timestamp: string;
|
|
@@ -457,6 +464,11 @@ export declare interface MessagingModeConfig {
|
|
|
457
464
|
*/
|
|
458
465
|
enableEscalationToAgent?: boolean;
|
|
459
466
|
showProductCaptions?: boolean;
|
|
467
|
+
/**
|
|
468
|
+
* Max number of progress steps to display in chat window.
|
|
469
|
+
* When the list grows, only the most recent N are shown.
|
|
470
|
+
*/
|
|
471
|
+
progressStepsLimit?: number;
|
|
460
472
|
}
|
|
461
473
|
|
|
462
474
|
export declare const MessagingProvider: ({ scrt2Url, orgId, esDeveloperName, routingAttributes, capabilitiesVersion, enableLogging, onConnect, onMessage, onError, children, }: MessagingProviderProps) => JSX_2.Element;
|