@cimulate/copilot-widget 1.7.7 → 1.7.9
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.
|
@@ -67,10 +67,6 @@ declare namespace browse {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
declare interface BrowsePayload extends CopilotBrowse {
|
|
70
|
-
userPrompt?: string;
|
|
71
|
-
attachments?: {
|
|
72
|
-
image?: string;
|
|
73
|
-
};
|
|
74
70
|
browseParams: Omit<BrowseState, "page" | "pageSize" | "includeFacets"> & {
|
|
75
71
|
catalogSegment?: string;
|
|
76
72
|
pricebooks?: string[];
|
|
@@ -88,6 +84,10 @@ declare type CimCopilotSdkConfig = {
|
|
|
88
84
|
baseUrl?: string;
|
|
89
85
|
};
|
|
90
86
|
|
|
87
|
+
declare interface ClientContext {
|
|
88
|
+
[key: string]: string | number;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
91
|
declare interface CommonParams {
|
|
92
92
|
page?: number | null;
|
|
93
93
|
pageSize?: number | null;
|
|
@@ -137,6 +137,7 @@ export declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
137
137
|
entryMessage?: string;
|
|
138
138
|
disclaimerText?: string;
|
|
139
139
|
disclaimerMarkdown?: string;
|
|
140
|
+
clientContext?: ClientContext;
|
|
140
141
|
/**
|
|
141
142
|
* @deprecated
|
|
142
143
|
*
|
|
@@ -275,11 +276,7 @@ declare namespace search {
|
|
|
275
276
|
}
|
|
276
277
|
}
|
|
277
278
|
|
|
278
|
-
export declare interface SearchPayload {
|
|
279
|
-
userPrompt?: string;
|
|
280
|
-
attachments?: {
|
|
281
|
-
image?: string;
|
|
282
|
-
};
|
|
279
|
+
export declare interface SearchPayload extends CopilotSearch {
|
|
283
280
|
searchParams: Omit<SearchState, "page" | "pageSize" | "includeFacets"> & {
|
|
284
281
|
catalogSegment?: string;
|
|
285
282
|
pricebooks?: string[];
|
|
@@ -434,7 +431,7 @@ declare interface WidgetComponentConfig {
|
|
|
434
431
|
* PromptsExtensionContext >
|
|
435
432
|
* CopilotProvider (SocketSdk: copilot-sdk)
|
|
436
433
|
*/
|
|
437
|
-
export declare const WidgetProvider: ({ apiKey, apiToken, baseUrl, logoUrl, headerText, theme, openLinksInNewTab, globalClassName, isDevelopment, componentType, componentConfig, entryType, entryMessage, disclaimerText, disclaimerMarkdown, searchPlaceholder, searchButtonLabel, searchConfig, promptsConfig, resetConversationMessage, conversationHistory, onConnect, onCopilotEvent, onRefinedSearch, onRefinedBrowse, __features, children, }: CopilotWidgetProps & {
|
|
434
|
+
export declare const WidgetProvider: ({ apiKey, apiToken, baseUrl, logoUrl, headerText, theme, openLinksInNewTab, globalClassName, isDevelopment, componentType, componentConfig, entryType, entryMessage, disclaimerText, disclaimerMarkdown, clientContext, searchPlaceholder, searchButtonLabel, searchConfig, promptsConfig, resetConversationMessage, conversationHistory, onConnect, onCopilotEvent, onRefinedSearch, onRefinedBrowse, __features, children, }: CopilotWidgetProps & {
|
|
438
435
|
children: ReactNode;
|
|
439
436
|
}) => JSX_2.Element;
|
|
440
437
|
|