mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-05 05:07:14 +02:00
* Details component * polish arrow animation * fix text selection bug * fix some edge cases + polish * example of overriding baseClassName * Move Details component to theme-common * make component work even when JS is disabled or failed to load * update arrow transform * Details component: better handling of no-JS fallback mode: avoid delaying arrow navigation when JS (see review) * prefix css vars with --docusaurus * improve css arrow styling * slightly change details/summary design * better md doc + include quotes and details in doc
70 lines
1.9 KiB
TypeScript
70 lines
1.9 KiB
TypeScript
/**
|
|
* 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.
|
|
*/
|
|
|
|
export {useThemeConfig} from './utils/useThemeConfig';
|
|
|
|
export type {
|
|
ThemeConfig,
|
|
Navbar,
|
|
NavbarItem,
|
|
NavbarLogo,
|
|
Footer,
|
|
FooterLinks,
|
|
FooterLinkItem,
|
|
} from './utils/useThemeConfig';
|
|
|
|
export {createStorageSlot, listStorageKeys} from './utils/storageUtils';
|
|
|
|
export {useAlternatePageUtils} from './utils/useAlternatePageUtils';
|
|
|
|
export {parseCodeBlockTitle} from './utils/codeBlockUtils';
|
|
|
|
export {docVersionSearchTag, DEFAULT_SEARCH_TAG} from './utils/searchUtils';
|
|
|
|
export {isDocsPluginEnabled} from './utils/docsUtils';
|
|
|
|
export {isSamePath} from './utils/pathUtils';
|
|
|
|
export {useTitleFormatter} from './utils/generalUtils';
|
|
|
|
export {usePluralForm} from './utils/usePluralForm';
|
|
|
|
export {useLocationChange} from './utils/useLocationChange';
|
|
|
|
export {usePrevious} from './utils/usePrevious';
|
|
|
|
export {useCollapsible, Collapsible} from './components/Collapsible';
|
|
export type {
|
|
UseCollapsibleConfig,
|
|
UseCollapsibleReturns,
|
|
} from './components/Collapsible';
|
|
|
|
export {default as Details} from './components/Details';
|
|
export type {DetailsProps} from './components/Details';
|
|
|
|
export {
|
|
MobileSecondaryMenuProvider,
|
|
MobileSecondaryMenuFiller,
|
|
useMobileSecondaryMenuRenderer,
|
|
} from './utils/mobileSecondaryMenu';
|
|
export type {MobileSecondaryMenuComponent} from './utils/mobileSecondaryMenu';
|
|
|
|
export {
|
|
useDocsPreferredVersion,
|
|
useDocsPreferredVersionByPluginId,
|
|
} from './utils/docsPreferredVersion/useDocsPreferredVersion';
|
|
|
|
export {DocsPreferredVersionContextProvider} from './utils/docsPreferredVersion/DocsPreferredVersionProvider';
|
|
|
|
export {ThemeClassNames} from './utils/ThemeClassNames';
|
|
|
|
export {
|
|
AnnouncementBarProvider,
|
|
useAnnouncementBar,
|
|
} from './utils/announcementBarUtils';
|
|
|
|
export {useLocalPathname} from './utils/useLocalPathname';
|