@docsearch/react 4.0.0-beta.4 → 4.0.0-beta.6

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.
@@ -165,6 +165,18 @@ interface DocSearchProps {
165
165
  query: string;
166
166
  }) => string;
167
167
  insights?: AutocompleteOptions<InternalDocSearchHit>['insights'];
168
+ /**
169
+ * Limit of how many recent searches that should be saved/displayed.
170
+ *
171
+ * @default 7
172
+ */
173
+ recentSearchesLimit?: number;
174
+ /**
175
+ * Limit of how many recent searches that should be saved/displayed when there are favorited searches.
176
+ *
177
+ * @default 4
178
+ */
179
+ recentSearchesWithFavoritesLimit?: number;
168
180
  }
169
181
  declare function DocSearch({ ...props }: DocSearchProps): JSX.Element;
170
182
 
@@ -284,7 +296,7 @@ type DocSearchModalProps = DocSearchProps & {
284
296
  canHandleAskAi?: boolean;
285
297
  translations?: ModalTranslations;
286
298
  };
287
- declare function DocSearchModal({ appId, apiKey, indexName, placeholder, askAi, searchParameters, maxResultsPerGroup, theme, onClose, transformItems, hitComponent, resultsFooterComponent, navigator, initialScrollY, transformSearchClient, disableUserPersonalization, initialQuery: initialQueryFromProp, translations, getMissingResultsUrl, insights, onAskAiToggle, isAskAiActive, canHandleAskAi, }: DocSearchModalProps): JSX.Element;
299
+ declare function DocSearchModal({ appId, apiKey, indexName, placeholder, askAi, searchParameters, maxResultsPerGroup, theme, onClose, transformItems, hitComponent, resultsFooterComponent, navigator, initialScrollY, transformSearchClient, disableUserPersonalization, initialQuery: initialQueryFromProp, translations, getMissingResultsUrl, insights, onAskAiToggle, isAskAiActive, canHandleAskAi, recentSearchesLimit, recentSearchesWithFavoritesLimit, }: DocSearchModalProps): JSX.Element;
288
300
 
289
301
  interface UseDocSearchKeyboardEventsProps {
290
302
  isOpen: boolean;
@@ -297,6 +309,6 @@ interface UseDocSearchKeyboardEventsProps {
297
309
  }
298
310
  declare function useDocSearchKeyboardEvents({ isOpen, onOpen, onClose, onInput, isAskAiActive, onAskAiToggle, searchButtonRef, }: UseDocSearchKeyboardEventsProps): void;
299
311
 
300
- declare const version = "4.0.0-beta.4";
312
+ declare const version = "4.0.0-beta.6";
301
313
 
302
314
  export { type ButtonTranslations, DocSearch, type DocSearchAskAi, DocSearchButton, type DocSearchButtonProps, type DocSearchHit, DocSearchModal, type DocSearchModalProps, type DocSearchProps, type DocSearchState, type DocSearchTheme, type DocSearchTransformClient, type DocSearchTranslations, type InternalDocSearchHit, type ModalTranslations, type StoredAskAiMessage, type StoredAskAiState, type StoredDocSearchHit, type UseDocSearchKeyboardEventsProps, useDocSearchKeyboardEvents, version };