1
0
Fork 0

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:
Paul Jankowski 2026-08-05 12:15:03 -04:00 committed by GitHub
parent b33a7f7b1c
commit a8fecaaad6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"@docsearch/sidepanel-js": patch
---
Expose Agent Studio search parameters in the public Sidepanel JavaScript props.

View file

@ -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;
};