@docsearch/react 4.0.0 → 4.0.1
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 +3 -4
- package/dist/esm/index.js +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/index.js.map +1 -1
- package/package.json +5 -5
package/dist/esm/index.d.ts
CHANGED
|
@@ -283,7 +283,7 @@ interface DocSearchProps {
|
|
|
283
283
|
*/
|
|
284
284
|
keyboardShortcuts?: KeyboardShortcuts;
|
|
285
285
|
}
|
|
286
|
-
declare function DocSearch(
|
|
286
|
+
declare function DocSearch(props: DocSearchProps): JSX.Element;
|
|
287
287
|
|
|
288
288
|
type ButtonTranslations = Partial<{
|
|
289
289
|
buttonText: string;
|
|
@@ -401,9 +401,8 @@ type DocSearchModalProps = DocSearchProps & {
|
|
|
401
401
|
isAskAiActive?: boolean;
|
|
402
402
|
canHandleAskAi?: boolean;
|
|
403
403
|
translations?: ModalTranslations;
|
|
404
|
-
indexes: DocSearchIndex[];
|
|
405
404
|
};
|
|
406
|
-
declare function DocSearchModal({ appId, apiKey, placeholder, askAi, maxResultsPerGroup, theme, onClose, transformItems, hitComponent, resultsFooterComponent, navigator, initialScrollY, transformSearchClient, disableUserPersonalization, initialQuery: initialQueryFromProp, translations, getMissingResultsUrl, insights, onAskAiToggle, isAskAiActive, canHandleAskAi, recentSearchesLimit, recentSearchesWithFavoritesLimit,
|
|
405
|
+
declare function DocSearchModal({ appId, apiKey, placeholder, askAi, maxResultsPerGroup, theme, onClose, transformItems, hitComponent, resultsFooterComponent, navigator, initialScrollY, transformSearchClient, disableUserPersonalization, initialQuery: initialQueryFromProp, translations, getMissingResultsUrl, insights, onAskAiToggle, isAskAiActive, canHandleAskAi, recentSearchesLimit, recentSearchesWithFavoritesLimit, indices, indexName, searchParameters, }: DocSearchModalProps): JSX.Element;
|
|
407
406
|
|
|
408
407
|
interface UseDocSearchKeyboardEventsProps {
|
|
409
408
|
isOpen: boolean;
|
|
@@ -417,7 +416,7 @@ interface UseDocSearchKeyboardEventsProps {
|
|
|
417
416
|
}
|
|
418
417
|
declare function useDocSearchKeyboardEvents({ isOpen, onOpen, onClose, onInput, isAskAiActive, onAskAiToggle, searchButtonRef, keyboardShortcuts, }: UseDocSearchKeyboardEventsProps): void;
|
|
419
418
|
|
|
420
|
-
declare const version = "4.0.
|
|
419
|
+
declare const version = "4.0.1";
|
|
421
420
|
|
|
422
421
|
export { DocSearch, DocSearchButton, DocSearchModal, useDocSearchKeyboardEvents, version };
|
|
423
422
|
export type { ButtonTranslations, DocSearchAskAi, DocSearchButtonProps, DocSearchHit, DocSearchIndex, DocSearchModalProps, DocSearchProps, DocSearchState, DocSearchTheme, DocSearchTransformClient, DocSearchTranslations, InternalDocSearchHit, KeyboardShortcuts, ModalTranslations, StoredAskAiMessage, StoredAskAiState, StoredDocSearchHit, UseDocSearchKeyboardEventsProps };
|