@docsearch/sidepanel-js 4.5.0-beta.2 → 4.5.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/esm/index.d.ts +4 -22
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.d.ts
CHANGED
|
@@ -29,14 +29,6 @@ interface DocSearchCallbacks {
|
|
|
29
29
|
onSidepanelClose?: () => void;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
type AskAiSearchParameters = {
|
|
33
|
-
facetFilters?: string[];
|
|
34
|
-
filters?: string;
|
|
35
|
-
attributesToRetrieve?: string[];
|
|
36
|
-
restrictSearchableAttributes?: string[];
|
|
37
|
-
distinct?: boolean;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
32
|
type AlgoliaLogoTranslations = Partial<{
|
|
41
33
|
poweredByText: string;
|
|
42
34
|
}>;
|
|
@@ -97,6 +89,10 @@ type ConversationScreenTranslations = Partial<ToolCallTranslations & {
|
|
|
97
89
|
* Message displayed after feedback action.
|
|
98
90
|
**/
|
|
99
91
|
thanksForFeedbackText: string;
|
|
92
|
+
/**
|
|
93
|
+
* Error title shown if there is an error while chatting.
|
|
94
|
+
*/
|
|
95
|
+
errorTitleText: any;
|
|
100
96
|
}>;
|
|
101
97
|
|
|
102
98
|
type NewConversationScreenTranslations = Partial<{
|
|
@@ -269,7 +265,6 @@ type SidepanelButtonProps = {
|
|
|
269
265
|
*/
|
|
270
266
|
keyboardShortcuts?: SidepanelShortcuts;
|
|
271
267
|
};
|
|
272
|
-
|
|
273
268
|
type DocSearchSidepanelProps = DocSearchCallbacks & {
|
|
274
269
|
/**
|
|
275
270
|
* The assistant ID to use for the ask AI feature.
|
|
@@ -287,10 +282,6 @@ type DocSearchSidepanelProps = DocSearchCallbacks & {
|
|
|
287
282
|
* The index name to use for the ask AI feature. Your assistant will search this index for relevant documents.
|
|
288
283
|
*/
|
|
289
284
|
indexName: string;
|
|
290
|
-
/**
|
|
291
|
-
* The search parameters to use for the ask AI feature.
|
|
292
|
-
*/
|
|
293
|
-
searchParameters?: AskAiSearchParameters;
|
|
294
285
|
/**
|
|
295
286
|
* Configuration for keyboard shortcuts. Allows enabling/disabling specific shortcuts.
|
|
296
287
|
*
|
|
@@ -311,15 +302,6 @@ type DocSearchSidepanelProps = DocSearchCallbacks & {
|
|
|
311
302
|
* Props specific to the Sidepanel panel.
|
|
312
303
|
*/
|
|
313
304
|
panel?: Omit<SidepanelProps$1, 'keyboardShortcuts'>;
|
|
314
|
-
/**
|
|
315
|
-
* **Experimental:** Whether to use Agent Studio as the chat backend.
|
|
316
|
-
*
|
|
317
|
-
* This is an experimental feature and its API may change without notice in future releases.
|
|
318
|
-
* Use with caution in production environments.
|
|
319
|
-
*
|
|
320
|
-
* @default false
|
|
321
|
-
*/
|
|
322
|
-
agentStudio?: boolean;
|
|
323
305
|
};
|
|
324
306
|
|
|
325
307
|
/**
|