@cimulate/copilot-widget 1.3.0 → 1.4.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.
|
@@ -129,11 +129,17 @@ export declare interface CopilotWidgetProps extends CimCopilotSdkConfig {
|
|
|
129
129
|
headerText?: string;
|
|
130
130
|
theme?: ThemeConfig;
|
|
131
131
|
openLinksInNewTab?: boolean;
|
|
132
|
-
componentType?: ComponentType;
|
|
133
132
|
entryType?: EntryType;
|
|
134
133
|
entryMessage?: string;
|
|
135
134
|
disclaimerText?: string;
|
|
136
135
|
disclaimerMarkdown?: string;
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated
|
|
138
|
+
*
|
|
139
|
+
* This setting has been moved to the componentConfig object. Please use componentConfig.type instead.
|
|
140
|
+
*/
|
|
141
|
+
componentType?: ComponentType;
|
|
142
|
+
componentConfig?: WidgetComponentConfig;
|
|
137
143
|
/**
|
|
138
144
|
* @deprecated
|
|
139
145
|
*
|
|
@@ -366,6 +372,15 @@ declare const updateSearchQuery: (query: string) => void;
|
|
|
366
372
|
|
|
367
373
|
export declare const useCopilot: () => SocketSdkContextType;
|
|
368
374
|
|
|
375
|
+
declare interface WidgetComponentConfig {
|
|
376
|
+
isOpen?: boolean;
|
|
377
|
+
type?: ComponentType;
|
|
378
|
+
options?: {
|
|
379
|
+
dialogPosition?: DialogPosition;
|
|
380
|
+
isModalFullscreen?: boolean;
|
|
381
|
+
};
|
|
382
|
+
}
|
|
383
|
+
|
|
369
384
|
/**
|
|
370
385
|
* Contains all of the context providers needed for the widget.
|
|
371
386
|
*
|
|
@@ -380,7 +395,7 @@ export declare const useCopilot: () => SocketSdkContextType;
|
|
|
380
395
|
* UIStateContext >
|
|
381
396
|
* CopilotProvider (SocketSdk: copilot-sdk)
|
|
382
397
|
*/
|
|
383
|
-
export declare const WidgetProvider: ({ apiKey, apiToken, baseUrl, logoUrl, headerText, theme, openLinksInNewTab, globalClassName, isDevelopment, componentType, entryType, entryMessage, disclaimerText, disclaimerMarkdown, searchPlaceholder, searchButtonLabel, searchConfig, resetConversationMessage, conversationHistory, onConnect, onCopilotEvent, onRefinedSearch, onRefinedBrowse, __features, children, }: CopilotWidgetProps & {
|
|
398
|
+
export declare const WidgetProvider: ({ apiKey, apiToken, baseUrl, logoUrl, headerText, theme, openLinksInNewTab, globalClassName, isDevelopment, componentType, componentConfig, entryType, entryMessage, disclaimerText, disclaimerMarkdown, searchPlaceholder, searchButtonLabel, searchConfig, resetConversationMessage, conversationHistory, onConnect, onCopilotEvent, onRefinedSearch, onRefinedBrowse, __features, children, }: CopilotWidgetProps & {
|
|
384
399
|
children: ReactNode;
|
|
385
400
|
}) => JSX_2.Element;
|
|
386
401
|
|