@cimulate/copilot-widget 1.28.0 → 1.29.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 +11 -1
- package/dist/messaging.d.ts +13 -2
- package/dist/messaging.es.js +9058 -9027
- package/dist/messaging.umd.js +31 -31
- package/package.json +2 -2
|
@@ -202,7 +202,6 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
202
202
|
disclaimerText?: string;
|
|
203
203
|
disclaimerMarkdown?: string;
|
|
204
204
|
clientContext?: ClientContext;
|
|
205
|
-
progressStepsLimit?: number;
|
|
206
205
|
/**
|
|
207
206
|
* Baseline catalog-scoping parameters (facetFilters, catalogSegment, pricebooks)
|
|
208
207
|
* applied by the workflow as defaults on context-less requests (ask_cim, product view)
|
|
@@ -359,6 +358,11 @@ declare interface MessagingModeConfig {
|
|
|
359
358
|
orgId: string;
|
|
360
359
|
esDeveloperName: string;
|
|
361
360
|
routingAttributes?: Record<string, string>;
|
|
361
|
+
/**
|
|
362
|
+
* Invoked whenever a finalized Agentforce message carries a product result
|
|
363
|
+
* block (product search or product-details lookup).
|
|
364
|
+
*/
|
|
365
|
+
onProductResult?: (detail: ProductResultDetail) => void;
|
|
362
366
|
/**
|
|
363
367
|
* Capabilities version for the SCRT2 token request. Required (>= "63", i.e.
|
|
364
368
|
* release 254) for action progress indicators (`CONVERSATION_PROGRESS_INDICATOR`)
|
|
@@ -396,6 +400,12 @@ declare interface MessagingModeConfig {
|
|
|
396
400
|
*/
|
|
397
401
|
declare type OverrideTagName = string;
|
|
398
402
|
|
|
403
|
+
declare interface ProductResultDetail {
|
|
404
|
+
agentSessionId: string;
|
|
405
|
+
kind: "search" | "detail";
|
|
406
|
+
productIds: string[];
|
|
407
|
+
}
|
|
408
|
+
|
|
399
409
|
declare type PromptsDisplay = "input" | "buttons" | "both";
|
|
400
410
|
|
|
401
411
|
declare type PromptsExtensionConfig = Omit<PromptsExtensionState, "isInitialized" | "activePromptsId" | "userPrompt" | "promptsMessage" | "responseMessage" | "isResponseLoading" | "placeholder" | "askElseButtonLabel" | "entryType" | "params" | "promptsDisplay" | "staticQuestions" | "staticQuestionsStrategy" | "disableAskElseButton"> & Partial<Pick<PromptsExtensionState, "placeholder" | "askElseButtonLabel" | "entryType" | "params" | "promptsDisplay" | "staticQuestions" | "staticQuestionsStrategy" | "disableAskElseButton">>;
|
package/dist/messaging.d.ts
CHANGED
|
@@ -229,7 +229,6 @@ declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
229
229
|
disclaimerText?: string;
|
|
230
230
|
disclaimerMarkdown?: string;
|
|
231
231
|
clientContext?: ClientContext;
|
|
232
|
-
progressStepsLimit?: number;
|
|
233
232
|
/**
|
|
234
233
|
* Baseline catalog-scoping parameters (facetFilters, catalogSegment, pricebooks)
|
|
235
234
|
* applied by the workflow as defaults on context-less requests (ask_cim, product view)
|
|
@@ -452,6 +451,11 @@ export declare interface MessagingModeConfig {
|
|
|
452
451
|
orgId: string;
|
|
453
452
|
esDeveloperName: string;
|
|
454
453
|
routingAttributes?: Record<string, string>;
|
|
454
|
+
/**
|
|
455
|
+
* Invoked whenever a finalized Agentforce message carries a product result
|
|
456
|
+
* block (product search or product-details lookup).
|
|
457
|
+
*/
|
|
458
|
+
onProductResult?: (detail: ProductResultDetail) => void;
|
|
455
459
|
/**
|
|
456
460
|
* Capabilities version for the SCRT2 token request. Required (>= "63", i.e.
|
|
457
461
|
* release 254) for action progress indicators (`CONVERSATION_PROGRESS_INDICATOR`)
|
|
@@ -476,7 +480,7 @@ export declare interface MessagingModeConfig {
|
|
|
476
480
|
progressStepsLimit?: number;
|
|
477
481
|
}
|
|
478
482
|
|
|
479
|
-
export declare const MessagingProvider: ({ scrt2Url, orgId, esDeveloperName, routingAttributes, capabilitiesVersion, enableLogging, onConnect, onMessage, onError, children, }: MessagingProviderProps) => JSX_2.Element;
|
|
483
|
+
export declare const MessagingProvider: ({ scrt2Url, orgId, esDeveloperName, routingAttributes, capabilitiesVersion, enableLogging, onConnect, onMessage, onError, onProductResult, children, }: MessagingProviderProps) => JSX_2.Element;
|
|
480
484
|
|
|
481
485
|
declare interface MessagingProviderProps {
|
|
482
486
|
scrt2Url: string;
|
|
@@ -489,6 +493,7 @@ declare interface MessagingProviderProps {
|
|
|
489
493
|
onConnect?: () => void;
|
|
490
494
|
onMessage?: (message: MessagingMessage) => void;
|
|
491
495
|
onError?: (error: string) => void;
|
|
496
|
+
onProductResult?: (detail: ProductResultDetail) => void;
|
|
492
497
|
children: ReactNode;
|
|
493
498
|
}
|
|
494
499
|
|
|
@@ -747,6 +752,12 @@ declare type ProductComparisonResponse = {
|
|
|
747
752
|
};
|
|
748
753
|
};
|
|
749
754
|
|
|
755
|
+
declare interface ProductResultDetail {
|
|
756
|
+
agentSessionId: string;
|
|
757
|
+
kind: "search" | "detail";
|
|
758
|
+
productIds: string[];
|
|
759
|
+
}
|
|
760
|
+
|
|
750
761
|
declare interface ProductTileData {
|
|
751
762
|
id?: string;
|
|
752
763
|
name?: string;
|