MCPcopy Create free account

hub / github.com/algolia/docsearch / functions

Functions383 in github.com/algolia/docsearch

↓ 9 callersFunctionuseDocSearch
()
packages/docsearch-core/src/DocSearch.tsx:281
↓ 6 callersFunctionisAskAiPromptBlockingError
(error: Error | undefined, agentStudio: boolean)
packages/docsearch-react/src/utils/ai.ts:169
↓ 6 callersFunctionisThreadDepthError
(error?: Error)
packages/docsearch-react/src/utils/ai.ts:156
↓ 5 callersFunctiongetBundleBanner
(_pkg)
packages/docsearch-css/build-css.js:15
↓ 5 callersFunctiongetDocSearchConfig
(themeConfig: ThemeConfig)
adapters/docusaurus-theme-search-algolia/src/getDocSearchConfig.ts:14
↓ 4 callersFunctiongetBundleBanner
(pkg)
scripts/getBundleBanner.js:3
↓ 4 callersFunctionisAgentStudioTokenOutputLimitError
(error?: Error)
packages/docsearch-react/src/utils/ai.ts:180
↓ 4 callersFunctionuseAlgoliaThemeConfig
()
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaThemeConfig.ts:12
↓ 4 callersFunctionuseDocSearchKeyboardEvents
({ isOpen, isAskAiActive, onAskAiToggle, onClose, onOpen, keyboardShortcuts = DEFAULT_KEYBOARD_SHO
packages/docsearch-core/src/useDocSearchKeyboardEvents.ts:39
↓ 4 callersFunctionuseIsMobile
()
packages/docsearch-react/src/useIsMobile.ts:3
↓ 3 callersMethodclose
Closes the search modal.
packages/docsearch-js/src/docsearch.tsx:19
↓ 3 callersFunctioncreateStorage
(key: string)
packages/docsearch-react/src/utils/storage.ts:124
↓ 3 callersFunctionescapeHtml
(unsafe: string)
packages/docsearch-react/src/utils/sanitize.ts:2
↓ 3 callersFunctionextractAgentStudioErrorFieldMessage
(raw: string)
packages/docsearch-react/src/utils/ai.ts:219
↓ 3 callersFunctionextractLinksFromMessage
(message: AIMessage | null)
packages/docsearch-react/src/utils/ai.ts:19
↓ 3 callersFunctionfilterExchangesForThreadDepthError
( exchanges: T[], _hasThreadDepthError: boolean, )
packages/docsearch-react/src/utils/ai.ts:121
↓ 3 callersFunctiongetAskAiBlockingBannerMessage
(error?: Error)
packages/docsearch-react/src/utils/ai.ts:293
↓ 3 callersFunctiongetAskAiPromptBlockingUserFacingMessage
(error?: Error)
packages/docsearch-react/src/utils/ai.ts:270
↓ 3 callersFunctiongetMessageContent
(message: AIMessage | null)
packages/docsearch-react/src/utils/ai.ts:107
↓ 3 callersFunctionisLocalStorageSupported
()
packages/docsearch-react/src/utils/storage.ts:98
↓ 3 callersFunctionmergeFacetFilters
( f1: FacetFilters | undefined, f2: FacetFilters | undefined, )
adapters/docusaurus-theme-search-algolia/src/client/utils.ts:14
↓ 3 callersFunctionnormalizeUrl
(rawUrls: string[])
adapters/docusaurus-theme-search-algolia/src/utils/normalizeUrl.ts:20
↓ 3 callersFunctiononClick
(event)
packages/docsearch-react/src/Results.tsx:109
↓ 3 callersMethodopen
Opens the search modal.
packages/docsearch-js/src/docsearch.tsx:17
↓ 3 callersFunctionreadAgentStudioJsonStringField
(o: Record<string, unknown>, key: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:27
↓ 3 callersFunctionsanitizeUrl
(url: string | null | undefined)
packages/docsearch-react/src/utils/sanitize.ts:48
↓ 3 callersFunctionsanitizeUserInput
(input: string)
packages/docsearch-react/src/utils/sanitize.ts:12
↓ 3 callersFunctionshowAskAiBlockingBannerNewConversationLink
(error: Error | undefined, agentStudio: boolean)
packages/docsearch-react/src/utils/ai.ts:203
↓ 3 callersFunctiontestValidateThemeConfigWithUserThemeConfig
(themeConfig: UserThemeConfig)
adapters/docusaurus-theme-search-algolia/src/__tests__/validateThemeConfig.test.ts:20
↓ 2 callersFunctionagentStudioBaseUrl
(appId: string)
packages/docsearch-react/src/askai.ts:6
↓ 2 callersFunctionbuildDummyAskAiHit
(query: string, messages: AIMessage[])
packages/docsearch-react/src/utils/ai.ts:77
↓ 2 callersFunctioncleanupDocSearchStorage
* Attempts to free up localStorage space by removing DocSearch-related items * starting with the oldest/largest ones.
packages/docsearch-react/src/utils/storage.ts:22
↓ 2 callersFunctioncn
(...inputs)
packages/website/src/lib/utils.js:4
↓ 2 callersFunctioncopyAssetFile
(filePath)
adapters/docusaurus-theme-search-algolia/scripts/copy-assets.mjs:14
↓ 2 callersFunctioncopyAssetsOnce
()
adapters/docusaurus-theme-search-algolia/scripts/copy-assets.mjs:22
↓ 2 callersFunctiongetKeyboardShortcuts
(userShortcuts?: KeyboardShortcuts)
packages/docsearch-react/src/constants/keyboardShortcuts.ts:19
↓ 2 callersFunctiongetLocalStorageSize
()
packages/docsearch-react/src/utils/storage.ts:4
↓ 2 callersFunctiongetValidToken
({ assistantId, abortSignal, useStagingEnv = false, }: { assistantId: string; abortSignal: AbortSign
packages/docsearch-react/src/askai.ts:29
↓ 2 callersFunctiongroupBy
( values: TValue[], predicate: (value: TValue) => string, maxResultsPerGroup?: number, )
packages/docsearch-react/src/utils/groupBy.ts:1
↓ 2 callersFunctiongroupConsecutiveToolResults
(parts: AIMessagePart[])
packages/docsearch-react/src/utils/groupConsecutiveToolResults.ts:12
↓ 2 callersFunctionhandleSend
()
packages/docsearch-react/src/Sidepanel/PromptForm.tsx:115
↓ 2 callersFunctionimportDocSearchModalIfNeeded
()
adapters/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx:69
↓ 2 callersFunctionisAIToolPart
(part: AIMessagePart)
packages/docsearch-react/src/types/AskiAi.ts:53
↓ 2 callersFunctionisAppleDevice
()
packages/docsearch-react/src/utils/keyboard.ts:4
↓ 2 callersFunctionisModifierEvent
(event: TEvent)
packages/docsearch-react/src/utils/isModifierEvent.ts:5
↓ 2 callersFunctionmanageLocalStorageQuota
()
packages/docsearch-react/src/utils/storage.ts:81
↓ 2 callersFunctionmanagePromptHeight
()
packages/docsearch-react/src/Sidepanel/PromptForm.tsx:95
↓ 2 callersFunctionmatchesRequestBlockedForThisDomainMessage
(normalizedMessage: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:59
↓ 2 callersFunctionmatchesThreadDepthLimitError
(normalizedMessage: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:54
↓ 2 callersFunctionparseMarkdownToSafeHtml
(content: string)
packages/docsearch-react/src/utils/markdown.ts:50
↓ 2 callersFunctionplayClick
()
packages/website/src/components/ui/keyboard.jsx:14
↓ 2 callersFunctionpressOff
(id)
packages/website/src/components/ui/keyboard.jsx:65
↓ 2 callersFunctionpressOn
(id)
packages/website/src/components/ui/keyboard.jsx:64
↓ 2 callersFunctionremoveHighlightTags
(hit: DocSearchHit | InternalDocSearchHit)
packages/docsearch-react/src/utils/removeHighlightTags.ts:6
↓ 2 callersFunctionresolveAgentStudioPromptBlocking
(error: Error)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:211
↓ 2 callersFunctionshouldCreateOpenSearchFile
({ context }: { context: LoadContext })
adapters/docusaurus-theme-search-algolia/src/opensearch.ts:34
↓ 2 callersFunctiontransformSearchClient
(searchClient)
packages/docsearch-modal/src/__tests__/DocSearchModal.test.tsx:20
↓ 2 callersFunctionuseAlgoliaContextualFacetFilters
()
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaContextualFacetFilters.ts:32
↓ 2 callersFunctionuseAskAi
({ assistantId, apiKey, appId, indexName, useStagingEnv = false, ...params })
packages/docsearch-react/src/useAskAi.ts:134
↓ 2 callersFunctionuseKeyboardShortcuts
(userShortcuts?: KeyboardShortcuts)
packages/docsearch-core/src/useKeyboardShortcuts.ts:44
↓ 2 callersFunctionuseSearchClient
( appId: string, apiKey: string, transformSearchClient: (searchClient: DocSearchTransformClient) => DocS
packages/docsearch-react/src/useSearchClient.ts:7
↓ 2 callersFunctionuseSearchResultUrlProcessor
()
adapters/docusaurus-theme-search-algolia/src/client/useSearchResultUrlProcessor.ts:28
↓ 2 callersFunctionuseSuggestedQuestions
({ assistantId, searchClient, suggestedQuestionsEnabled = false, }: UseSuggestedQuestionsProps)
packages/docsearch-react/src/useSuggestedQuestions.ts:14
↓ 2 callersFunctionuseTheme
({ theme }: UseThemeProps)
packages/docsearch-react/src/useTheme.tsx:9
↓ 2 callersFunctionuseTheme
({ theme }: UseThemeProps)
packages/docsearch-core/src/useTheme.ts:9
↓ 1 callersFunctionapplyAskAiContextualSearch
( askAi: AskAiConfig | undefined, contextualSearchFilters: FacetFilters | undefined, )
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaAskAi.ts:50
↓ 1 callersFunctionbuild
({ input, output, banner })
packages/docsearch-css/build-css.js:23
↓ 1 callersFunctionbuildAgentStudioBlockingContext
(error: Error)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:152
↓ 1 callersFunctionbuildNoQuerySources
({ recentSearches, favoriteSearches, saveRecentSearch, onClose, disableUserPersonalization, }: Build
packages/docsearch-react/src/DocSearchModal.tsx:72
↓ 1 callersFunctionbuildQuerySources
({ query, state: sourcesState, setContext, setStatus, searchClient, indexes: indices, insights,
packages/docsearch-react/src/DocSearchModal.tsx:125
↓ 1 callersFunctionbuildSidepanel
()
packages/docsearch-css/build-css.js:81
↓ 1 callersFunctionbuildStyle
()
packages/docsearch-css/build-css.js:53
↓ 1 callersFunctioncheckForMobile
()
packages/docsearch-react/src/useIsMobile.ts:7
↓ 1 callersFunctioncheckForMobile
()
packages/docsearch-core/src/useIsMobile.ts:7
↓ 1 callersMethodclose
Closes the sidepanel.
packages/docsearch-sidepanel-js/src/sidepanel.tsx:17
↓ 1 callersFunctioncreateMatchMedia
(props: MatchMediaProps)
scripts/setupTests.ts:22
↓ 1 callersFunctioncreateObjectStorage
(key: string)
packages/docsearch-react/src/utils/storage.ts:163
↓ 1 callersFunctioncreateOpenSearchFile
({ context }: { context: LoadContext })
adapters/docusaurus-theme-search-algolia/src/opensearch.ts:68
↓ 1 callersFunctioncreateOpenSearchFileContent
({ context, searchPagePath, }: { context: LoadContext; searchPagePath: string; })
adapters/docusaurus-theme-search-algolia/src/opensearch.ts:46
↓ 1 callersFunctioncreateOpenSearchHeadTags
({ context }: { context: LoadContext })
adapters/docusaurus-theme-search-algolia/src/opensearch.ts:87
↓ 1 callersFunctioncreateStoredConversations
({ key, limit = 5, }: CreateStoredSearchesOptions)
packages/docsearch-react/src/stored-searches.ts:51
↓ 1 callersFunctioncreateStoredSearches
({ key, limit = 5, }: CreateStoredSearchesOptions)
packages/docsearch-react/src/stored-searches.ts:18
↓ 1 callersFunctioncreateTemplateFunction
( original: ((props: P, helpers?: TemplateHelpers) => R) | undefined, )
packages/docsearch-js/src/docsearch.tsx:58
↓ 1 callersFunctiondecode
(token: string)
packages/docsearch-react/src/askai.ts:10
↓ 1 callersFunctiondecodeUrlForSchemeCheck
(value: string)
packages/docsearch-react/src/utils/sanitize.ts:17
↓ 1 callersFunctiondocsearch
(allProps: DocSearchProps)
packages/docsearch-js/src/docsearch.tsx:79
↓ 1 callersFunctionensureSidepanelSupported
(themeConfig: ThemeConfig)
adapters/docusaurus-theme-search-algolia/src/validateThemeConfig.ts:152
↓ 1 callersFunctionescapeRegexp
(string: string)
adapters/docusaurus-theme-search-algolia/src/utils/escapeRegexp.ts:12
↓ 1 callersFunctionexpectThrowMessage
(fn: () => unknown, message: string)
adapters/docusaurus-theme-search-algolia/src/__tests__/validateThemeConfig.test.ts:45
↓ 1 callersFunctionextractAiErrorCodeFromMessage
(message: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:36
↓ 1 callersFunctionfetchProviders
({ search, filter, sorts } = {})
packages/website/src/components/ProvidersTable.js:8
↓ 1 callersFunctionformatProvidersFilters
(providers)
packages/website/src/components/ProvidersTable.js:36
↓ 1 callersFunctiongetAgentStudioErrorMessage
(error: Error)
packages/docsearch-react/src/askai.ts:114
↓ 1 callersFunctiongetAgentStudioTransport
({ appId, apiKey, assistantId, searchParameters, }: AgentStudioTransportParams)
packages/docsearch-react/src/useAskAi.ts:81
↓ 1 callersFunctiongetAskAiTransport
({ assistantId, apiKey, indexName, searchParameters, appId, abortControllerRef, useStagingEnv, }
packages/docsearch-react/src/useAskAi.ts:97
↓ 1 callersFunctiongetHTMLElement
(value: HTMLElement | string, env: typeof window | undefined)
packages/docsearch-sidepanel-js/src/sidepanel.tsx:41
↓ 1 callersFunctiongetHTMLElement
(value: HTMLElement | string, env: typeof window | undefined)
packages/docsearch-js/src/docsearch.tsx:45
↓ 1 callersFunctiongetPropertyByPath
(object: Record<string, any>, path: string)
packages/docsearch-react/src/Snippet.tsx:5
↓ 1 callersFunctiongetProviders
(q)
packages/website/src/components/ProvidersTable.js:138
↓ 1 callersFunctiongetSearchPageTitle
(searchQuery: string | undefined)
adapters/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx:181
next →1–100 of 383, ranked by callers