@cimulate/copilot-widget 1.19.0 → 1.22.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/cimulate-copilot-widget.d.ts +8 -5
- package/dist/cimulate-copilot-widget.es.js +10756 -10572
- package/dist/cimulate-copilot-widget.umd.js +31 -31
- package/dist/copilot.es.js +10757 -10573
- package/dist/copilot.umd.js +31 -31
- package/dist/messaging.css +1 -1
- package/dist/messaging.d.ts +42 -6
- package/dist/messaging.es.js +12844 -12476
- package/dist/messaging.umd.js +33 -33
- package/package.json +2 -2
|
@@ -344,11 +344,18 @@ declare interface MessagingModeConfig {
|
|
|
344
344
|
* hide it. Requires the org's messaging channel to allow transcript download.
|
|
345
345
|
*/
|
|
346
346
|
enableDownloadTranscript?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* Shows a "Connect to a human agent" button in the messaging search bar that
|
|
349
|
+
* asks the Agentforce agent to escalate the conversation to a human. Defaults
|
|
350
|
+
* to true; set to false to hide it. Requires the org's Agentforce agent to be
|
|
351
|
+
* configured with an escalation path/topic, otherwise the button is a no-op.
|
|
352
|
+
*/
|
|
353
|
+
enableEscalationToAgent?: boolean;
|
|
347
354
|
}
|
|
348
355
|
|
|
349
356
|
declare type PromptsDisplay = "input" | "buttons" | "both";
|
|
350
357
|
|
|
351
|
-
declare type PromptsExtensionConfig = Omit<PromptsExtensionState, "isInitialized" | "activePromptsId" | "userPrompt" | "promptsMessage" | "responseMessage" | "isResponseLoading" | "placeholder" | "askElseButtonLabel" | "entryType" | "params" | "promptsDisplay" | "
|
|
358
|
+
declare type PromptsExtensionConfig = Omit<PromptsExtensionState, "isInitialized" | "activePromptsId" | "userPrompt" | "promptsMessage" | "responseMessage" | "isResponseLoading" | "placeholder" | "askElseButtonLabel" | "entryType" | "params" | "promptsDisplay" | "disableAskElseButton"> & Partial<Pick<PromptsExtensionState, "placeholder" | "askElseButtonLabel" | "entryType" | "params" | "promptsDisplay" | "disableAskElseButton">>;
|
|
352
359
|
|
|
353
360
|
declare type PromptsExtensionState = {
|
|
354
361
|
isInitialized: boolean;
|
|
@@ -365,8 +372,6 @@ declare type PromptsExtensionState = {
|
|
|
365
372
|
isResponseLoading: boolean;
|
|
366
373
|
responseMessage: AllCopilotEvents | null;
|
|
367
374
|
promptsDisplay: PromptsDisplay;
|
|
368
|
-
staticQuestions: string[];
|
|
369
|
-
staticQuestionsStrategy: StaticQuestionsStrategy;
|
|
370
375
|
disableAskElseButton: boolean;
|
|
371
376
|
};
|
|
372
377
|
|
|
@@ -468,8 +473,6 @@ declare const state: () => Readonly<{
|
|
|
468
473
|
entryType: EntryType;
|
|
469
474
|
}>;
|
|
470
475
|
|
|
471
|
-
declare type StaticQuestionsStrategy = "override" | "append" | "prepend";
|
|
472
|
-
|
|
473
476
|
declare type Suggestion = CopilotSearchSuggestion | FacetedNavigationSuggestion | ProductViewSuggestion | CopilotBrowseSuggestion;
|
|
474
477
|
|
|
475
478
|
declare interface SuggestionButtonConfig {
|