@cimulate/copilot-widget 0.18.0 → 0.19.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConnectAck } from '@cimulate/copilot-sdk';
|
|
2
|
+
import { ConversationEvents } from '@cimulate/copilot-sdk';
|
|
2
3
|
import { ConversationResetAck } from '@cimulate/copilot-sdk';
|
|
3
4
|
import { CopilotBrowseAck } from '@cimulate/copilot-sdk';
|
|
4
5
|
import { CopilotBrowseSuggestion } from '@cimulate/copilot-sdk';
|
|
@@ -20,6 +21,7 @@ import { Progress } from '@cimulate/copilot-sdk';
|
|
|
20
21
|
import { ReactNode } from 'react';
|
|
21
22
|
import { RefinedSearch } from '@cimulate/copilot-sdk';
|
|
22
23
|
import { SearchParams } from '@cimulate/copilot-sdk';
|
|
24
|
+
import { SessionInformation } from '@cimulate/copilot-sdk';
|
|
23
25
|
import { SocketSdkContextType } from './SocketSdkContext';
|
|
24
26
|
|
|
25
27
|
declare type AllCopilotEvents = {
|
|
@@ -132,24 +134,33 @@ export declare const eventHandlers: {
|
|
|
132
134
|
setWidgetType: (type: "chat" | "dialog" | "modal") => void;
|
|
133
135
|
setWidgetDialogPosition: (position: DialogPosition) => void;
|
|
134
136
|
};
|
|
135
|
-
session:
|
|
136
|
-
resetConversation: () => void;
|
|
137
|
-
};
|
|
137
|
+
session: typeof session;
|
|
138
138
|
};
|
|
139
139
|
|
|
140
140
|
declare type FacetFilters = Record<string, string[]>;
|
|
141
141
|
|
|
142
|
+
declare const getConversationMessages: ({ payload, callback, }: {
|
|
143
|
+
payload: ConversationEvents;
|
|
144
|
+
callback: (events: CopilotEvent[]) => void;
|
|
145
|
+
}) => void;
|
|
146
|
+
|
|
147
|
+
declare const getSessionInformation: (callback: (sessionInfo: SessionInformation) => void) => void;
|
|
148
|
+
|
|
142
149
|
export declare const injectCopilotWidget: ({ timeout, elementId, ...props }: CopilotWidgetProps & {
|
|
143
150
|
timeout?: number;
|
|
144
151
|
elementId: string;
|
|
145
152
|
}) => void;
|
|
146
153
|
|
|
154
|
+
declare const loadConversation: (payload: ConversationEvents) => void;
|
|
155
|
+
|
|
147
156
|
declare type RangeFilters = Array<{
|
|
148
157
|
field: string;
|
|
149
158
|
min: number;
|
|
150
159
|
max: number;
|
|
151
160
|
}>;
|
|
152
161
|
|
|
162
|
+
declare const resetConversation: () => void;
|
|
163
|
+
|
|
153
164
|
declare namespace search {
|
|
154
165
|
export {
|
|
155
166
|
setSearchContext,
|
|
@@ -175,6 +186,15 @@ declare interface SearchState extends CommonParams {
|
|
|
175
186
|
query: string;
|
|
176
187
|
}
|
|
177
188
|
|
|
189
|
+
declare namespace session {
|
|
190
|
+
export {
|
|
191
|
+
resetConversation,
|
|
192
|
+
getSessionInformation,
|
|
193
|
+
getConversationMessages,
|
|
194
|
+
loadConversation
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
178
198
|
/**
|
|
179
199
|
* Performs a bulk update of user's browse context. This will override
|
|
180
200
|
* all existing browse parameters.
|