@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.
- package/dist/esm/DocSearchButton.js +1 -1
- package/dist/esm/DocSearchModal.js +2 -2
- package/dist/esm/Sidepanel.js +1 -1
- package/dist/esm/index.d.ts +13 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/useDocSearchKeyboardEvents.js +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/DocSearchModal.js +2 -2
- package/dist/umd/DocSearchModal.js.map +1 -1
- package/dist/umd/DocsearchButton.js +2 -2
- package/dist/umd/DocsearchButton.js.map +1 -1
- package/dist/umd/Sidepanel.js +2 -2
- package/dist/umd/Sidepanel.js.map +1 -1
- package/dist/umd/index.js +2 -2
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/useDocSearchKeyboardEvents.js +2 -2
- package/dist/umd/useDocSearchKeyboardEvents.js.map +1 -1
- package/dist/umd/useTheme.js +1 -1
- package/dist/umd/useTheme.js.map +1 -1
- package/dist/umd/version.js +2 -2
- package/dist/umd/version.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.d.ts
CHANGED
|
@@ -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,
|
|
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.
|
|
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 };
|