MCPcopy Create free account

hub / github.com/algolia/docsearch / functions

Functions383 in github.com/algolia/docsearch

↓ 1 callersFunctiongetSuggestedQuestions
()
packages/docsearch-react/src/useSuggestedQuestions.ts:22
↓ 1 callersFunctiongetThemeConfigSource
(themeConfig: ThemeConfig)
adapters/docusaurus-theme-search-algolia/src/validateThemeConfig.ts:182
↓ 1 callersFunctiongetThreadDepthErrorUserFacingMessage
(error?: Error)
packages/docsearch-react/src/utils/ai.ts:311
↓ 1 callersFunctionhandleFeedback
(value: 'dislike' | 'like')
packages/docsearch-react/src/AskAiScreen.tsx:290
↓ 1 callersFunctionhandleFeedback
(value: 'dislike' | 'like')
packages/docsearch-react/src/Sidepanel/ConversationActions.tsx:36
↓ 1 callersFunctionhandleRemoveConversation
(item: StoredAskAiState)
packages/docsearch-react/src/Sidepanel/ConversationHistoryScreen.tsx:20
↓ 1 callersFunctionhasClassicPreset
(context: LoadContext)
adapters/docusaurus-theme-search-algolia/src/index.ts:16
↓ 1 callersFunctionhasConfigValue
(value: TValue | null | undefined)
adapters/docusaurus-theme-search-algolia/src/validateThemeConfig.ts:178
↓ 1 callersFunctionhasLegacyAlgoliaConfig
(themeConfig: ThemeConfig)
adapters/docusaurus-theme-search-algolia/src/getDocSearchConfig.ts:10
↓ 1 callersFunctionimportDocSearchModalIfNeeded
()
examples/demo-react/src/examples/dynamic-import-modal.tsx:10
↓ 1 callersFunctionisAppleDevice
()
packages/website/src/components/ui/keyboard.jsx:4
↓ 1 callersFunctionisEditingContent
(event: KeyboardEvent)
packages/docsearch-react/src/useDocSearchKeyboardEvents.ts:27
↓ 1 callersFunctionisEditingContent
(event: KeyboardEvent)
packages/docsearch-core/src/useDocSearchKeyboardEvents.ts:26
↓ 1 callersFunctionisExpired
(token?: string | null)
packages/docsearch-react/src/askai.ts:15
↓ 1 callersFunctionisNonEmptyArray
(arr: string[])
adapters/docusaurus-theme-search-algolia/src/utils/normalizeUrl.ts:27
↓ 1 callersFunctionisOneTrustLoaded
()
packages/website/src/components/CookieSettingsButton.js:6
↓ 1 callersFunctionjsonMessageIsRequestBlockedForDomain
(parsed: Record<string, unknown>)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:115
↓ 1 callersFunctionjsonPayloadImpliesCostControlExcludingRequestBlockedDomainMessage
JSON-shaped errors other than the domain API string in `message` (that case is its own matcher).
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:121
↓ 1 callersFunctionlogDocSearchState
(instance: DocSearchInstance, label: string)
examples/demo-js/src/main.ts:17
↓ 1 callersFunctionlogSidepanelState
(instance: SidepanelInstance, label: string)
examples/demo-js/src/main.ts:25
↓ 1 callersFunctionlooksLikeJsonObjectString
(s: string)
packages/docsearch-react/src/utils/ai.ts:285
↓ 1 callersFunctionmatchesAgentStudioContextOrTokenLimitsPlainMessage
(normalizedMessage: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:101
↓ 1 callersFunctionmatchesAgentStudioMaxStepsMessage
(normalizedMessage: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:66
↓ 1 callersFunctionmatchesAgentStudioRateLimitMessage
(normalizedMessage: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:82
↓ 1 callersFunctionmatchesAgentStudioTokenOutputLimitPlainMessage
(message: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:91
↓ 1 callersFunctionmatchesAgentStudioWhitelistOrNotAllowedDomainPlainMessage
(normalizedMessage: string)
packages/docsearch-react/src/utils/askAiBlockingMatchers.ts:95
↓ 1 callersFunctionmessageLooksLikeAgentStudioCostControl
(error: Error)
packages/docsearch-react/src/utils/ai.ts:162
↓ 1 callersFunctionmessageLooksLikeThreadDepth
(message: string)
packages/docsearch-react/src/utils/ai.ts:133
↓ 1 callersFunctionnormalize
(f: FacetFilters)
adapters/docusaurus-theme-search-algolia/src/client/utils.ts:25
↓ 1 callersMethodopenAskAi
Opens Ask AI mode (modal).
packages/docsearch-js/src/docsearch.tsx:21
↓ 1 callersFunctionpostAgentStudioFeedback
({ agentId, vote, messageId, appId, apiKey, abortSignal, }: { agentId: string; vote: 0 | 1;
packages/docsearch-react/src/askai.ts:180
↓ 1 callersFunctionpostFeedback
({ assistantId, thumbs, messageId, appId, abortSignal, useStagingEnv = false, }: { assistantId:
packages/docsearch-react/src/askai.ts:69
↓ 1 callersFunctionrenderComponent
( props: DocSearchModalProps = DEFAULT_PROPS, docsearchProps: Omit<DocSearchProps, 'children'> = {}, )
packages/docsearch-modal/src/__tests__/DocSearchModal.test.tsx:45
↓ 1 callersFunctionrenderComponent
( props: DocSearchButtonProps = {}, docsearchProps: Omit<DocSearchProps, 'children'> = {}, )
packages/docsearch-modal/src/__tests__/DocSearchButton.test.tsx:12
↓ 1 callersFunctionrenderCustomHook
(props: DocSearchPropsNoChildren = {})
packages/docsearch-core/src/__tests__/DocSearch.test.tsx:23
↓ 1 callersFunctionrenderOpenSearchTemplate
(data: { title: string; siteUrl: string; searchUrl: string; faviconUrl: string | null; })
adapters/docusaurus-theme-search-algolia/src/opensearch.ts:22
↓ 1 callersFunctionrenderWithProvider
(comp: React.ReactNode, props: DocSearchPropsNoChildren = {})
packages/docsearch-core/src/__tests__/DocSearch.test.tsx:16
↓ 1 callersFunctionreplacePathname
( pathname: string, replaceSearchResultPathname: ThemeConfigAlgolia['replaceSearchResultPathname'], )
adapters/docusaurus-theme-search-algolia/src/client/useSearchResultUrlProcessor.ts:15
↓ 1 callersFunctionsafeSetLocalStorageItem
* Safely sets an item in localStorage with quota exceeded error handling. * * @param key - The localStorage key. * @param value - The value to stor
packages/docsearch-react/src/utils/storage.ts:57
↓ 1 callersFunctionsanitizeValue
(value: string)
adapters/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx:272
↓ 1 callersFunctionselectSuggestedQuestion
(suggestedQuestion: SuggestedQuestionHit)
packages/docsearch-react/src/DocSearchModal.tsx:851
↓ 1 callersFunctionsetFullViewportHeight
()
packages/docsearch-react/src/DocSearchModal.tsx:801
↓ 1 callersFunctionsetFullViewportHeight
()
packages/docsearch-react/src/Sidepanel/Sidepanel.tsx:344
↓ 1 callersFunctionsidepanel
(props: SidepanelProps)
packages/docsearch-sidepanel-js/src/sidepanel.tsx:49
↓ 1 callersFunctionsourceOutput
(fileName)
packages/docsearch-modal/rollup.config.js:19
↓ 1 callersFunctionsourceOutput
(fileName)
packages/docsearch-sidepanel/rollup.config.js:19
↓ 1 callersFunctionsourceOutput
(fileName)
packages/docsearch-react/rollup.config.js:19
↓ 1 callersFunctionsourceOutput
(fileName)
packages/docsearch-core/rollup.config.js:19
↓ 1 callersFunctionstripControlsAndWhitespace
(value: string)
packages/docsearch-react/src/utils/sanitize.ts:33
↓ 1 callersFunctionstripTrailingAiCodeSuffix
(message: string)
packages/docsearch-react/src/utils/ai.ts:211
↓ 1 callersFunctiontestValidateThemeConfig
(algolia: AlgoliaInput)
adapters/docusaurus-theme-search-algolia/src/__tests__/validateThemeConfig.test.ts:37
↓ 1 callersFunctiontestValidateThemeConfigDocSearch
(docsearch: DocSearchInput)
adapters/docusaurus-theme-search-algolia/src/__tests__/validateThemeConfig.test.ts:41
↓ 1 callersFunctionthreadDepthFromPlainText
(message: string)
packages/docsearch-react/src/utils/ai.ts:128
↓ 1 callersFunctiontoggleOpen
()
packages/docsearch-react/src/Menu.tsx:43
↓ 1 callersFunctionuseAlgoliaAskAi
(props: DocSearchPropsLite)
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaAskAi.ts:73
↓ 1 callersFunctionuseAlgoliaAskAiSidepanel
({ askAiConfig, importSidepanel, }: UseAlgoliaAskAiSidepanelParams)
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaAskAiSidepanel.ts:39
↓ 1 callersFunctionuseAlgoliaContextualFacetFiltersIfEnabled
()
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaContextualFacetFilters.ts:48
↓ 1 callersFunctionuseDocsSearchVersionsHelpers
()
adapters/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx:46
↓ 1 callersFunctionuseDocumentsFoundPlural
()
adapters/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx:29
↓ 1 callersFunctionuseIsMobile
()
packages/docsearch-core/src/useIsMobile.ts:3
↓ 1 callersFunctionuseManageSidepanelLayout
({ variant, selectors, isOpen, expectedWidth, side, }: UseManageSidepanelLayoutProps)
packages/docsearch-react/src/Sidepanel/useManageSidepanelLayout.ts:15
↓ 1 callersFunctionuseNavigator
({ externalUrlRegex, }: Pick<DocSearchProps, 'externalUrlRegex'>)
adapters/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx:96
↓ 1 callersFunctionuseOneTrustAvailable
()
packages/website/src/components/CookieSettingsButton.js:10
↓ 1 callersFunctionuseResultsFooterComponent
({ closeModal, searchPagePath, }: { closeModal: () => void; searchPagePath?: string; })
adapters/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx:145
↓ 1 callersFunctionuseSearchParameters
({ contextualSearch, ...props }: DocSearchProps)
adapters/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx:187
↓ 1 callersFunctionuseSearchTags
()
adapters/docusaurus-theme-search-algolia/src/client/useAlgoliaContextualFacetFilters.ts:15
↓ 1 callersFunctionuseSidepanelKeyboardEvents
({ onClose, onOpen, isOpen, keyboardShortcuts, }: UseSidepanelKeyboardEventsProps)
packages/docsearch-react/src/Sidepanel/useSidepanelKeyboardEvents.ts:11
↓ 1 callersFunctionuseSidepanelWidth
({ isExpanded, width, expandedWidth }: UseSidepanelWidthProps)
packages/docsearch-react/src/Sidepanel/useSidepanelWidth.ts:12
↓ 1 callersFunctionuseTouchEvents
({ getEnvironmentProps, panelElement, formElement, inputElement, }: UseTouchEventsProps)
packages/docsearch-react/src/useTouchEvents.ts:11
↓ 1 callersFunctionuseTransformItems
(props: Pick<DocSearchProps, 'transformItems'>)
adapters/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx:129
↓ 1 callersFunctionuseTransformSearchClient
()
adapters/docusaurus-theme-search-algolia/src/theme/SearchBar/index.tsx:116
↓ 1 callersFunctionuseTrapFocus
({ container }: UseTrapFocusProps)
packages/docsearch-react/src/useTrapFocus.ts:7
↓ 1 callersFunctionuserOnly
(id: string)
packages/docsearch-react/src/utils/__tests__/ai.test.ts:70
↓ 1 callersFunctionvalidate
(schema: Joi.ObjectSchema<{ [key: string]: unknown }>, cfg: { [key: string]: unknown })
adapters/docusaurus-theme-search-algolia/src/__tests__/validateThemeConfig.test.ts:21
↓ 1 callersFunctionvalidateThemeConfig
({ validate, themeConfig: themeConfigInput, }: ThemeConfigValidationContext<ThemeConfig>)
adapters/docusaurus-theme-search-algolia/src/validateThemeConfig.ts:203
↓ 1 callersFunctionwatchAssets
()
adapters/docusaurus-theme-search-algolia/scripts/copy-assets.mjs:46
↓ 1 callersFunctionwithAssistant
(id: string)
packages/docsearch-react/src/utils/__tests__/ai.test.ts:76
FunctionAgentStudio
()
examples/demo-react/src/examples/agent-studio.tsx:7
FunctionAgentStudioSidepanel
()
examples/demo-react/src/examples/agent-studio-sidepanel.tsx:7
FunctionAggregatedSearchBlock
({ queries, translations, onSearchQueryClick, }: AggregatedSearchBlockProps)
packages/docsearch-react/src/AggregatedSearchBlock.tsx:28
FunctionAggregatedSearchBlock
({ queries }: AggregatedSearchBlockProps)
packages/docsearch-react/src/Sidepanel/AggregatedSearchBlock.tsx:15
FunctionAlertIcon
()
packages/docsearch-react/src/icons/AlertIcon.tsx:3
FunctionAlgoliaLogo
({ translations = {} }: AlgoliaLogoProps)
packages/docsearch-react/src/AlgoliaLogo.tsx:11
FunctionAlgoliaLogo
()
adapters/docusaurus-theme-search-algolia/src/theme/SearchPage/index.tsx:109
FunctionAnchorIcon
()
packages/docsearch-react/src/icons/SourceIcon.tsx:36
FunctionApp
()
examples/demo-react/src/App.tsx:23
FunctionAskAIDeprecationNotice
()
packages/website/src/components/mdx/ask-ai-deprecation-notice.jsx:4
FunctionAskAiButton
({ item, getItemProps, onItemClick, translations, collection, ...props }: AskAiButtonProps<TItem>)
packages/docsearch-react/src/Results.tsx:163
FunctionAskAiExchangeCard
({ exchange, askAiError, isLastExchange, loadingStatus, onSearchQueryClick, translations, conver
packages/docsearch-react/src/AskAiScreen.tsx:105
FunctionAskAiScreen
({ translations = {}, ...props }: AskAiScreenProps)
packages/docsearch-react/src/AskAiScreen.tsx:371
FunctionAskAiScreenFooterActions
({ id, showActions, latestAssistantMessageContent, translations, conversations, onFeedback, }: Ask
packages/docsearch-react/src/AskAiScreen.tsx:272
FunctionAskAiScreenHeader
({ disclaimerText }: AskAiScreenHeaderProps)
packages/docsearch-react/src/AskAiScreen.tsx:89
FunctionAskAiSourcesPanel
({ urlsToDisplay, relatedSourcesText }: AskAiSourcesPanelProps)
packages/docsearch-react/src/AskAiScreen.tsx:348
FunctionBackButton
({ onBack, mobile = false, disabled = false }: BackButtonProps)
packages/docsearch-react/src/Sidepanel/SidepanelHeader.tsx:27
FunctionBackIcon
({ size = 20, color = 'currentColor' }: BackIconProps)
packages/docsearch-react/src/icons/BackIcon.tsx:8
FunctionBasic
()
examples/demo-react/src/examples/basic.tsx:5
FunctionBasicAskAI
()
examples/demo-react/src/examples/basic-askai.tsx:5
FunctionBasicHybrid
()
examples/demo-react/src/examples/hybrid.tsx:7
FunctionButton
({ children, href, className = '', ...props })
packages/website/src/components/ui/button.jsx:3
FunctionChevronDown
({ className })
packages/website/src/components/icons.js:5
← previousnext →101–200 of 383, ranked by callers