/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-theme-common/src/index.ts
111 строк
2 KB
Sébastien Lorber
break(theme-common: move `useSearchQueryString()` + `useSearchLinkCreator()` to theme-search-algolia (#12108)
04 июн 2026, 12:05
Не верифицирован
04 июн 2026, 12:05
67da2d8
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* * APIs to document */ export { useThemeConfig, type ThemeConfig, type UserThemeConfig, type Navbar, type NavbarItem, type NavbarLogo, type MultiColumnFooter, type SimpleFooter, type Footer, type FooterColumnItem, type FooterLogo, type FooterLinkItem, type ColorModeConfig, } from './utils/useThemeConfig'; export {default as ThemedComponent} from './components/ThemedComponent'; export { createStorageSlot, useStorageSlot, listStorageKeys, } from './utils/storageUtils'; export {usePluralForm} from './utils/usePluralForm'; export {useCollapsible, Collapsible} from './components/Collapsible'; export {ThemeClassNames} from './utils/ThemeClassNames'; export {prefersReducedMotion} from './utils/accessibilityUtils'; export { useEvent, usePrevious, composeProviders, ReactContextError, } from './utils/reactUtils'; export {PageMetadata, HtmlClassNameProvider} from './utils/metadataUtils'; export {useColorMode, type ColorMode} from './contexts/colorMode'; export { NavbarSecondaryMenuFiller, type NavbarSecondaryMenuComponent, } from './contexts/navbarSecondaryMenu/content'; export {useWindowSize} from './hooks/useWindowSize'; /* * APIs kept undocumented, on purpose * Note: we still guarantee retro-compatibility on those */ export { translateTagsPageTitle, listTagsByLetters, type TagLetterEntry, } from './utils/tagsUtils'; export {useAnchorTargetClassName} from './utils/anchorUtils'; export {isMultiColumnFooterLinks} from './utils/footerUtils'; export {isRegexpStringMatch} from './utils/regexpUtils'; export {duplicates, uniq, groupBy} from './utils/jsUtils'; export {usePrismTheme} from './hooks/usePrismTheme'; export {processAdmonitionProps} from './utils/admonitionUtils'; export { useHistorySelector, useQueryString, useQueryStringList, useClearQueryString, mergeSearchParams, mergeSearchStrings, } from './utils/historyUtils'; export { SkipToContentFallbackId, SkipToContentLink, } from './utils/skipToContentUtils'; export { UnlistedBannerTitle, UnlistedBannerMessage, DraftBannerTitle, DraftBannerMessage, } from './translations/contentVisibilityTranslations'; export { ErrorBoundaryTryAgainButton, ErrorBoundaryError, ErrorBoundaryErrorMessageFallback, ErrorCauseBoundary, } from './utils/errorBoundaryUtils';