@docsearch/react 4.5.0-beta.0 → 4.5.0-beta.2
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/DocSearchModal.d.ts +9 -6
- package/dist/esm/DocSearchModal.js +1 -1
- package/dist/esm/Sidepanel.d.ts +34 -13
- package/dist/esm/Sidepanel.js +1 -1
- package/dist/esm/index.d.ts +40 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/useDocSearchKeyboardEvents.d.ts +12 -2
- package/dist/esm/useDocSearchKeyboardEvents.js +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/DocSearchModal.js +3 -3
- package/dist/umd/DocSearchModal.js.map +1 -1
- package/dist/umd/DocsearchButton.js +1 -1
- package/dist/umd/Sidepanel.js +2 -2
- package/dist/umd/Sidepanel.js.map +1 -1
- package/dist/umd/index.js +3 -3
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/useDocSearchKeyboardEvents.js +2 -2
- package/dist/umd/useDocSearchKeyboardEvents.js.map +1 -1
- package/dist/umd/useTheme.js +1 -1
- package/dist/umd/version.js +2 -2
- package/dist/umd/version.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/Sidepanel.d.ts
CHANGED
|
@@ -14,19 +14,7 @@ type AlgoliaLogoTranslations = Partial<{
|
|
|
14
14
|
poweredByText: string;
|
|
15
15
|
}>;
|
|
16
16
|
|
|
17
|
-
type
|
|
18
|
-
/**
|
|
19
|
-
* Text shown as an LLM disclaimer.
|
|
20
|
-
*/
|
|
21
|
-
conversationDisclaimer: string;
|
|
22
|
-
/**
|
|
23
|
-
* Text shown while assistant is reasoning.
|
|
24
|
-
*/
|
|
25
|
-
reasoningText: string;
|
|
26
|
-
/**
|
|
27
|
-
* Text show while assistant is thinking.
|
|
28
|
-
*/
|
|
29
|
-
thinkingText: string;
|
|
17
|
+
type ToolCallTranslations = {
|
|
30
18
|
/**
|
|
31
19
|
* Text shown while assistant is preparing tool call.
|
|
32
20
|
*/
|
|
@@ -39,6 +27,21 @@ type ConversationScreenTranslations = Partial<{
|
|
|
39
27
|
* Text shown while assistant is finished performing tool call.
|
|
40
28
|
*/
|
|
41
29
|
toolCallResultText: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
type ConversationScreenTranslations = Partial<ToolCallTranslations & {
|
|
33
|
+
/**
|
|
34
|
+
* Text shown as an LLM disclaimer.
|
|
35
|
+
*/
|
|
36
|
+
conversationDisclaimer: string;
|
|
37
|
+
/**
|
|
38
|
+
* Text shown while assistant is reasoning.
|
|
39
|
+
*/
|
|
40
|
+
reasoningText: string;
|
|
41
|
+
/**
|
|
42
|
+
* Text show while assistant is thinking.
|
|
43
|
+
*/
|
|
44
|
+
thinkingText: string;
|
|
42
45
|
/**
|
|
43
46
|
* Text shown describing related sources.
|
|
44
47
|
*/
|
|
@@ -303,6 +306,15 @@ type DocSearchSidepanelProps = DocSearchCallbacks & {
|
|
|
303
306
|
* Props specific to the Sidepanel panel.
|
|
304
307
|
*/
|
|
305
308
|
panel?: Omit<SidepanelProps, 'keyboardShortcuts'>;
|
|
309
|
+
/**
|
|
310
|
+
* **Experimental:** Whether to use Agent Studio as the chat backend.
|
|
311
|
+
*
|
|
312
|
+
* This is an experimental feature and its API may change without notice in future releases.
|
|
313
|
+
* Use with caution in production environments.
|
|
314
|
+
*
|
|
315
|
+
* @default false
|
|
316
|
+
*/
|
|
317
|
+
agentStudio?: boolean;
|
|
306
318
|
};
|
|
307
319
|
declare const DocSearchSidepanel: React.ForwardRefExoticComponent<DocSearchCallbacks & {
|
|
308
320
|
/**
|
|
@@ -345,6 +357,15 @@ declare const DocSearchSidepanel: React.ForwardRefExoticComponent<DocSearchCallb
|
|
|
345
357
|
* Props specific to the Sidepanel panel.
|
|
346
358
|
*/
|
|
347
359
|
panel?: Omit<SidepanelProps, "keyboardShortcuts">;
|
|
360
|
+
/**
|
|
361
|
+
* **Experimental:** Whether to use Agent Studio as the chat backend.
|
|
362
|
+
*
|
|
363
|
+
* This is an experimental feature and its API may change without notice in future releases.
|
|
364
|
+
* Use with caution in production environments.
|
|
365
|
+
*
|
|
366
|
+
* @default false
|
|
367
|
+
*/
|
|
368
|
+
agentStudio?: boolean;
|
|
348
369
|
} & React.RefAttributes<DocSearchRef>>;
|
|
349
370
|
|
|
350
371
|
export { DocSearchSidepanel, Sidepanel, SidepanelButton };
|