fix(v5): expose Sidepanel search parameter types (#2956)
* fix(v5): expose Sidepanel search parameter types
Backport of #2906.\n\nOriginal commit: 4710d0ca77
* Delete sidepanel.test.ts
Had a pointless test case in it.
---------
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
This commit is contained in:
parent
b33a7f7b1c
commit
a8fecaaad6
2 changed files with 11 additions and 2 deletions
5
.changeset/typed-panels-wave.md
Normal file
5
.changeset/typed-panels-wave.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@docsearch/sidepanel-js": patch
|
||||
---
|
||||
|
||||
Expose Agent Studio search parameters in the public Sidepanel JavaScript props.
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
import type { DocSearchRef, InitialAskAiMessage } from '@docsearch/core';
|
||||
import type { DocSearchSidepanelProps } from '@docsearch/react/sidepanel';
|
||||
import type {
|
||||
DocSearchSidepanelProps,
|
||||
SidepanelSearchParameters,
|
||||
} from '@docsearch/react/sidepanel';
|
||||
import { DocSearchSidepanel } from '@docsearch/react/sidepanel';
|
||||
import {
|
||||
render,
|
||||
|
|
@ -33,7 +36,8 @@ export interface SidepanelCallbacks {
|
|||
}
|
||||
|
||||
export type SidepanelProps = DocSearchSidepanelProps &
|
||||
SidepanelCallbacks & {
|
||||
SidepanelCallbacks &
|
||||
SidepanelSearchParameters & {
|
||||
container: HTMLElement | string;
|
||||
environment?: typeof window;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue