@docsearch/react 4.6.0 → 4.6.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.
@@ -1,7 +1,7 @@
1
1
  import { BaseItem, AutocompleteState, AutocompleteContext, AutocompleteInsightsApi, AutocompleteOptions } from '@algolia/autocomplete-core';
2
2
  import { InitialAskAiMessage, DocSearchModalShortcuts, DocSearchRef, OnAskAiToggle } from '@docsearch/core';
3
3
  export { DocSearchRef } from '@docsearch/core';
4
- import { Hit, LiteClient, SearchParamsObject } from 'algoliasearch/lite';
4
+ import { Hit, SearchParamsObject, LiteClient } from 'algoliasearch/lite';
5
5
  import React, { JSX } from 'react';
6
6
  import { UIMessage } from '@ai-sdk/react';
7
7
  import { UIDataTypes } from 'ai';
@@ -134,7 +134,18 @@ interface AgentStudioSearchTool {
134
134
  queryID?: string;
135
135
  };
136
136
  }
137
+ interface AlgoliaMCPSearchTool {
138
+ input: {
139
+ query: string;
140
+ };
141
+ output: {
142
+ hits?: any[];
143
+ nbHits?: number;
144
+ };
145
+ }
137
146
  type Tools = {
147
+ [K in `algolia_search_index_${string}`]: AlgoliaMCPSearchTool;
148
+ } & {
138
149
  searchIndex: SearchIndexTool;
139
150
  algolia_search_index: AgentStudioSearchTool;
140
151
  };
@@ -550,7 +561,7 @@ interface UseDocSearchKeyboardEventsProps {
550
561
  }
551
562
  declare function useDocSearchKeyboardEvents({ isOpen, onOpen, onClose, isAskAiActive, onAskAiToggle, keyboardShortcuts, }: UseDocSearchKeyboardEventsProps): void;
552
563
 
553
- declare const version = "4.6.0";
564
+ declare const version = "4.6.2";
554
565
 
555
566
  export { DocSearch, DocSearchButton, DocSearchInner, DocSearchModal, useDocSearchKeyboardEvents, version };
556
567
  export type { AgentStudioSearchParameters, AskAiSearchParameters, ButtonTranslations, DocSearchAskAi, DocSearchButtonProps, DocSearchHit, DocSearchIndex, DocSearchModalProps, DocSearchProps, DocSearchState, DocSearchTheme, DocSearchTransformClient, DocSearchTranslations, InternalDocSearchHit, KeyboardShortcuts, ModalTranslations, StoredAskAiMessage, StoredAskAiState, StoredDocSearchHit, SuggestedQuestion, SuggestedQuestionHit, UseDocSearchKeyboardEventsProps };