@docusaurus/theme-classic 0.0.0-5029 → 0.0.0-5032
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/lib/getSwizzleConfig.d.ts +8 -0
- package/lib/getSwizzleConfig.js +226 -234
- package/lib/index.d.ts +12 -0
- package/lib/index.js +103 -155
- package/lib/nprogress.d.ts +10 -0
- package/lib/nprogress.js +16 -37
- package/lib/prism-include-languages.d.ts +7 -0
- package/lib/prism-include-languages.js +3 -9
- package/lib/theme/Admonition/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Admonition/index.js +0 -0
- package/lib/theme/AnnouncementBar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/AnnouncementBar/index.js +4 -10
- package/{lib-next → lib}/theme/AnnouncementBar/styles.module.css +0 -0
- package/lib/theme/BackToTopButton/index.d.ts +8 -0
- package/{lib-next → lib}/theme/BackToTopButton/index.js +1 -3
- package/{lib-next → lib}/theme/BackToTopButton/styles.module.css +0 -0
- package/lib/theme/BlogArchivePage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogArchivePage/index.js +0 -4
- package/lib/theme/BlogLayout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogLayout/index.js +0 -0
- package/lib/theme/BlogListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogListPage/index.js +0 -3
- package/lib/theme/BlogListPaginator/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogListPaginator/index.js +0 -0
- package/lib/theme/BlogPostAuthor/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostAuthor/index.js +0 -3
- package/lib/theme/BlogPostAuthors/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostAuthors/index.js +2 -4
- package/{lib-next → lib}/theme/BlogPostAuthors/styles.module.css +0 -0
- package/lib/theme/BlogPostItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostItem/index.js +8 -20
- package/{lib-next → lib}/theme/BlogPostItem/styles.module.css +0 -0
- package/lib/theme/BlogPostPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogPostPage/index.js +0 -3
- package/lib/theme/BlogPostPaginator/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostPaginator/index.js +0 -0
- package/lib/theme/BlogSidebar/Desktop/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogSidebar/Desktop/index.js +0 -0
- package/{lib-next → lib}/theme/BlogSidebar/Desktop/styles.module.css +0 -0
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogSidebar/Mobile/index.js +0 -2
- package/lib/theme/BlogSidebar/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogSidebar/index.js +2 -4
- package/lib/theme/BlogTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsListPage/index.js +0 -0
- package/lib/theme/BlogTagsPostsPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsPostsPage/index.js +2 -9
- package/lib/theme/CodeBlock/Container/index.d.ts +10 -0
- package/{lib-next → lib}/theme/CodeBlock/Container/index.js +2 -1
- package/{lib-next → lib}/theme/CodeBlock/Container/styles.module.css +0 -0
- package/lib/theme/CodeBlock/Content/Element.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Content/Element.js +2 -2
- package/lib/theme/CodeBlock/Content/String.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Content/String.js +2 -2
- package/{lib-next → lib}/theme/CodeBlock/Content/styles.module.css +0 -0
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/CopyButton/index.js +0 -0
- package/{lib-next → lib}/theme/CodeBlock/CopyButton/styles.module.css +0 -0
- package/lib/theme/CodeBlock/Line/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Line/index.js +1 -8
- package/{lib-next → lib}/theme/CodeBlock/Line/styles.module.css +0 -0
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/WordWrapButton/index.js +0 -0
- package/{lib-next → lib}/theme/CodeBlock/WordWrapButton/styles.module.css +0 -0
- package/lib/theme/CodeBlock/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/index.js +2 -4
- package/lib/theme/ColorModeToggle/index.d.ts +11 -0
- package/{lib-next → lib}/theme/ColorModeToggle/index.js +0 -2
- package/{lib-next → lib}/theme/ColorModeToggle/styles.module.css +0 -0
- package/lib/theme/Details/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Details/index.js +2 -2
- package/{lib-next → lib}/theme/Details/styles.module.css +0 -0
- package/lib/theme/DocBreadcrumbs/index.d.ts +8 -0
- package/{lib-next → lib}/theme/DocBreadcrumbs/index.js +6 -11
- package/{lib-next → lib}/theme/DocBreadcrumbs/styles.module.css +0 -0
- package/lib/theme/DocCard/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocCard/index.js +3 -13
- package/{lib-next → lib}/theme/DocCard/styles.module.css +0 -0
- package/lib/theme/DocCardList/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocCardList/index.js +0 -3
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocCategoryGeneratedIndexPage/index.js +4 -5
- package/{lib-next → lib}/theme/DocCategoryGeneratedIndexPage/styles.module.css +0 -0
- package/lib/theme/DocItem/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocItem/index.js +8 -20
- package/{lib-next → lib}/theme/DocItem/styles.module.css +0 -0
- package/lib/theme/DocItemFooter/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocItemFooter/index.js +0 -5
- package/{lib-next → lib}/theme/DocItemFooter/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/Main/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Main/index.js +0 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Main/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +0 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/Sidebar/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/index.js +2 -5
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/index.js +0 -0
- package/{lib-next → lib}/theme/DocPage/Layout/styles.module.css +0 -0
- package/lib/theme/DocPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocPage/index.js +0 -2
- package/lib/theme/DocPaginator/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPaginator/index.js +0 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/CollapseButton/index.js +0 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +0 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/Content/index.js +0 -2
- package/{lib-next → lib}/theme/DocSidebar/Desktop/Content/styles.module.css +0 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts +11 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/index.js +0 -2
- package/{lib-next → lib}/theme/DocSidebar/Desktop/styles.module.css +0 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts +11 -0
- package/{lib-next → lib}/theme/DocSidebar/Mobile/index.js +0 -4
- package/lib/theme/DocSidebar/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebar/index.js +4 -4
- package/lib/theme/DocSidebarItem/Category/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Category/index.js +6 -21
- package/lib/theme/DocSidebarItem/Html/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Html/index.js +3 -4
- package/{lib-next → lib}/theme/DocSidebarItem/Html/styles.module.css +0 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Link/index.js +0 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Link/styles.module.css +0 -0
- package/lib/theme/DocSidebarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/index.js +0 -2
- package/lib/theme/DocSidebarItems/index.d.ts +11 -0
- package/{lib-next → lib}/theme/DocSidebarItems/index.js +2 -3
- package/lib/theme/DocTagDocListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagDocListPage/index.js +2 -10
- package/lib/theme/DocTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagsListPage/index.js +0 -0
- package/lib/theme/DocVersionBadge/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBadge/index.js +1 -5
- package/lib/theme/DocVersionBanner/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBanner/index.js +3 -16
- package/lib/theme/EditThisPage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/EditThisPage/index.js +0 -0
- package/lib/theme/ErrorPageContent.d.ts +10 -0
- package/{lib-next → lib}/theme/ErrorPageContent.js +0 -0
- package/lib/theme/Footer/Copyright/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Copyright/index.js +3 -4
- package/lib/theme/Footer/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Layout/index.js +0 -0
- package/lib/theme/Footer/LinkItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/LinkItem/index.js +1 -3
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Links/MultiColumn/index.js +3 -7
- package/lib/theme/Footer/Links/Simple/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Links/Simple/index.js +3 -7
- package/lib/theme/Footer/Links/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Links/index.js +0 -0
- package/lib/theme/Footer/Logo/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Logo/index.js +0 -2
- package/{lib-next → lib}/theme/Footer/Logo/styles.module.css +0 -0
- package/lib/theme/Footer/index.d.ts +10 -0
- package/{lib-next → lib}/theme/Footer/index.js +0 -4
- package/lib/theme/Heading/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Heading/index.js +2 -3
- package/{lib-next → lib}/theme/Heading/styles.module.css +0 -0
- package/lib/theme/IconArrow/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconArrow/index.js +0 -0
- package/lib/theme/IconClose/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconClose/index.js +0 -0
- package/lib/theme/IconDarkMode/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconDarkMode/index.js +0 -0
- package/lib/theme/IconEdit/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconEdit/index.js +0 -0
- package/{lib-next → lib}/theme/IconEdit/styles.module.css +0 -0
- package/lib/theme/IconExternalLink/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconExternalLink/index.js +0 -0
- package/{lib-next → lib}/theme/IconExternalLink/styles.module.css +0 -0
- package/lib/theme/IconHome/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconHome/index.js +0 -0
- package/lib/theme/IconLanguage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconLanguage/index.js +0 -0
- package/lib/theme/IconLightMode/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconLightMode/index.js +0 -0
- package/lib/theme/IconMenu/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconMenu/index.js +0 -0
- package/lib/theme/LastUpdated/index.d.ts +9 -0
- package/{lib-next → lib}/theme/LastUpdated/index.js +0 -3
- package/lib/theme/Layout/index.d.ts +10 -0
- package/{lib-next → lib}/theme/Layout/index.js +0 -0
- package/{lib-next → lib}/theme/Layout/styles.css +0 -0
- package/lib/theme/LayoutProviders/index.d.ts +9 -0
- package/{lib-next → lib}/theme/LayoutProviders/index.js +0 -0
- package/lib/theme/Logo/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Logo/index.js +2 -9
- package/lib/theme/MDXComponents/A.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/A.js +0 -0
- package/lib/theme/MDXComponents/Code.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Code.js +0 -0
- package/lib/theme/MDXComponents/Details.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Details.js +2 -2
- package/lib/theme/MDXComponents/Head.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Head.js +0 -3
- package/lib/theme/MDXComponents/Heading.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Heading.js +0 -0
- package/lib/theme/MDXComponents/Img/index.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Img/index.js +0 -2
- package/{lib-next → lib}/theme/MDXComponents/Img/styles.module.css +0 -0
- package/lib/theme/MDXComponents/Pre.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Pre.js +2 -1
- package/lib/theme/MDXComponents/Ul.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Ul.js +2 -3
- package/lib/theme/MDXComponents/index.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/index.js +0 -0
- package/lib/theme/MDXContent/index.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXContent/index.js +0 -0
- package/lib/theme/MDXPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/MDXPage/index.js +0 -0
- package/{lib-next → lib}/theme/MDXPage/styles.module.css +0 -0
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/ColorModeToggle/index.js +0 -2
- package/lib/theme/Navbar/Content/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/Content/index.js +0 -4
- package/{lib-next → lib}/theme/Navbar/Content/styles.module.css +0 -0
- package/lib/theme/Navbar/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/Layout/index.js +0 -2
- package/{lib-next → lib}/theme/Navbar/Layout/styles.module.css +0 -0
- package/lib/theme/Navbar/Logo/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/Logo/index.js +0 -0
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/Header/index.js +0 -2
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/Layout/index.js +0 -0
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +4 -5
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/SecondaryMenu/index.js +2 -3
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/Toggle/index.js +0 -0
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/index.js +0 -2
- package/lib/theme/Navbar/Search/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/Search/index.js +0 -0
- package/{lib-next → lib}/theme/Navbar/Search/styles.module.css +0 -0
- package/lib/theme/Navbar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/index.js +0 -0
- package/lib/theme/NavbarItem/ComponentTypes.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/ComponentTypes.js +0 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +10 -0
- package/{lib-next → lib}/theme/NavbarItem/DefaultNavbarItem.js +1 -7
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocNavbarItem.js +3 -4
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocSidebarNavbarItem.js +0 -2
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +4 -7
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionNavbarItem.js +0 -2
- package/lib/theme/NavbarItem/DropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DropdownNavbarItem.js +6 -17
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/HtmlNavbarItem.js +1 -3
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +2 -2
- package/{lib-next → lib}/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +0 -0
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/NavbarNavLink.js +5 -16
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/SearchNavbarItem.js +0 -1
- package/lib/theme/NavbarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/index.js +0 -6
- package/lib/theme/NavbarItem/utils.d.ts +7 -0
- package/{lib-next → lib}/theme/NavbarItem/utils.js +0 -1
- package/lib/theme/NotFound.d.ts +8 -0
- package/{lib-next → lib}/theme/NotFound.js +0 -0
- package/lib/theme/PaginatorNavLink/index.d.ts +9 -0
- package/{lib-next → lib}/theme/PaginatorNavLink/index.js +0 -0
- package/lib/theme/SearchBar.d.ts +7 -0
- package/{lib-next → lib}/theme/SearchBar.js +0 -0
- package/lib/theme/SearchMetadata/index.d.ts +9 -0
- package/{lib-next → lib}/theme/SearchMetadata/index.js +3 -3
- package/lib/theme/SiteMetadata/index.d.ts +8 -0
- package/{lib-next → lib}/theme/SiteMetadata/index.js +15 -16
- package/lib/theme/SkipToContent/index.d.ts +8 -0
- package/{lib-next → lib}/theme/SkipToContent/index.js +0 -0
- package/{lib-next → lib}/theme/SkipToContent/styles.module.css +0 -0
- package/lib/theme/TOC/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOC/index.js +2 -2
- package/{lib-next → lib}/theme/TOC/styles.module.css +0 -0
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCCollapsible/CollapseButton/index.js +0 -0
- package/{lib-next → lib}/theme/TOCCollapsible/CollapseButton/styles.module.css +0 -0
- package/lib/theme/TOCCollapsible/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCCollapsible/index.js +0 -0
- package/{lib-next → lib}/theme/TOCCollapsible/styles.module.css +0 -0
- package/lib/theme/TOCInline/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCInline/index.js +0 -0
- package/{lib-next → lib}/theme/TOCInline/styles.module.css +0 -0
- package/lib/theme/TOCItems/Tree.d.ts +11 -0
- package/{lib-next → lib}/theme/TOCItems/Tree.js +5 -8
- package/lib/theme/TOCItems/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCItems/index.js +0 -1
- package/lib/theme/TabItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TabItem/index.js +1 -3
- package/{lib-next → lib}/theme/TabItem/styles.module.css +0 -0
- package/lib/theme/Tabs/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Tabs/index.js +11 -27
- package/{lib-next → lib}/theme/Tabs/styles.module.css +0 -0
- package/lib/theme/Tag/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Tag/index.js +0 -0
- package/{lib-next → lib}/theme/Tag/styles.module.css +0 -0
- package/lib/theme/TagsListByLetter/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TagsListByLetter/index.js +0 -2
- package/{lib-next → lib}/theme/TagsListByLetter/styles.module.css +0 -0
- package/lib/theme/TagsListInline/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TagsListInline/index.js +0 -0
- package/{lib-next → lib}/theme/TagsListInline/styles.module.css +0 -0
- package/lib/theme/ThemedImage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/ThemedImage/index.js +3 -2
- package/{lib-next → lib}/theme/ThemedImage/styles.module.css +0 -0
- package/lib/theme/prism-include-languages.d.ts +8 -0
- package/{lib-next → lib}/theme/prism-include-languages.js +2 -2
- package/lib/translations.d.ts +15 -0
- package/lib/translations.js +120 -136
- package/lib/validateThemeConfig.d.ts +68 -0
- package/lib/validateThemeConfig.js +353 -322
- package/package.json +19 -25
- package/src/index.ts +1 -1
- package/lib/deps.d.ts +0 -13
- package/lib/theme-classic.d.ts +0 -1279
- package/lib-next/theme/Tabs/__tests__/index.test.js +0 -146
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TOCCollapsible/CollapseButton';
|
|
9
|
+
export default function TOCCollapsibleCollapseButton({ collapsed, ...props }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TOCCollapsible';
|
|
9
|
+
export default function TOCCollapsible({ toc, className, minHeadingLevel, maxHeadingLevel, }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TOCInline';
|
|
9
|
+
export default function TOCInline({ toc, minHeadingLevel, maxHeadingLevel, }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { Props } from '@theme/TOCItems/Tree';
|
|
9
|
+
declare function TOCItemTree({ toc, className, linkClassName, isChild, }: Props): JSX.Element | null;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<typeof TOCItemTree>;
|
|
11
|
+
export default _default;
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
|
|
9
8
|
// Recursive component rendering the toc tree
|
|
10
9
|
function TOCItemTree({toc, className, linkClassName, isChild}) {
|
|
11
10
|
if (!toc.length) {
|
|
12
11
|
return null;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
return (
|
|
16
14
|
<ul className={isChild ? undefined : className}>
|
|
17
15
|
{toc.map((heading) => (
|
|
@@ -19,11 +17,10 @@ function TOCItemTree({toc, className, linkClassName, isChild}) {
|
|
|
19
17
|
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
|
|
20
18
|
<a
|
|
21
19
|
href={`#${heading.id}`}
|
|
22
|
-
className={linkClassName ?? undefined}
|
|
20
|
+
className={linkClassName ?? undefined}
|
|
21
|
+
// Developer provided the HTML, so assume it's safe.
|
|
23
22
|
// eslint-disable-next-line react/no-danger
|
|
24
|
-
dangerouslySetInnerHTML={{
|
|
25
|
-
__html: heading.value,
|
|
26
|
-
}}
|
|
23
|
+
dangerouslySetInnerHTML={{__html: heading.value}}
|
|
27
24
|
/>
|
|
28
25
|
<TOCItemTree
|
|
29
26
|
isChild
|
|
@@ -35,6 +32,6 @@ function TOCItemTree({toc, className, linkClassName, isChild}) {
|
|
|
35
32
|
))}
|
|
36
33
|
</ul>
|
|
37
34
|
);
|
|
38
|
-
}
|
|
39
|
-
|
|
35
|
+
}
|
|
36
|
+
// Memo only the tree root is enough
|
|
40
37
|
export default React.memo(TOCItemTree);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TOCItems';
|
|
9
|
+
export default function TOCItems({ toc, className, linkClassName, linkActiveClassName, minHeadingLevel: minHeadingLevelOption, maxHeadingLevel: maxHeadingLevelOption, ...props }: Props): JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TabItem';
|
|
9
|
+
export default function TabItem({ children, hidden, className, }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Tabs';
|
|
9
|
+
export default function Tabs(props: Props): JSX.Element;
|
|
@@ -12,13 +12,12 @@ import {
|
|
|
12
12
|
duplicates,
|
|
13
13
|
useTabGroupChoice,
|
|
14
14
|
} from '@docusaurus/theme-common';
|
|
15
|
-
import styles from './styles.module.css';
|
|
15
|
+
import styles from './styles.module.css';
|
|
16
|
+
// A very rough duck type, but good enough to guard against mistakes while
|
|
16
17
|
// allowing customization
|
|
17
|
-
|
|
18
18
|
function isTabItem(comp) {
|
|
19
19
|
return typeof comp.props.value !== 'undefined';
|
|
20
20
|
}
|
|
21
|
-
|
|
22
21
|
function TabsComponent(props) {
|
|
23
22
|
const {
|
|
24
23
|
lazy,
|
|
@@ -31,9 +30,9 @@ function TabsComponent(props) {
|
|
|
31
30
|
const children = React.Children.map(props.children, (child) => {
|
|
32
31
|
if (isValidElement(child) && isTabItem(child)) {
|
|
33
32
|
return child;
|
|
34
|
-
}
|
|
33
|
+
}
|
|
34
|
+
// child.type.name will give non-sensical values in prod because of
|
|
35
35
|
// minification, but we assume it won't throw in prod.
|
|
36
|
-
|
|
37
36
|
throw new Error(
|
|
38
37
|
`Docusaurus error: Bad <Tabs> child <${
|
|
39
38
|
// @ts-expect-error: guarding against unexpected cases
|
|
@@ -42,29 +41,28 @@ function TabsComponent(props) {
|
|
|
42
41
|
);
|
|
43
42
|
});
|
|
44
43
|
const values =
|
|
45
|
-
valuesProp ??
|
|
44
|
+
valuesProp ??
|
|
45
|
+
// Only pick keys that we recognize. MDX would inject some keys by default
|
|
46
46
|
children.map(({props: {value, label, attributes}}) => ({
|
|
47
47
|
value,
|
|
48
48
|
label,
|
|
49
49
|
attributes,
|
|
50
50
|
}));
|
|
51
51
|
const dup = duplicates(values, (a, b) => a.value === b.value);
|
|
52
|
-
|
|
53
52
|
if (dup.length > 0) {
|
|
54
53
|
throw new Error(
|
|
55
54
|
`Docusaurus error: Duplicate values "${dup
|
|
56
55
|
.map((a) => a.value)
|
|
57
56
|
.join(', ')}" found in <Tabs>. Every value needs to be unique.`,
|
|
58
57
|
);
|
|
59
|
-
}
|
|
60
|
-
|
|
58
|
+
}
|
|
59
|
+
// When defaultValueProp is null, don't show a default tab
|
|
61
60
|
const defaultValue =
|
|
62
61
|
defaultValueProp === null
|
|
63
62
|
? defaultValueProp
|
|
64
63
|
: defaultValueProp ??
|
|
65
64
|
children.find((child) => child.props.default)?.props.value ??
|
|
66
65
|
children[0]?.props.value;
|
|
67
|
-
|
|
68
66
|
if (defaultValue !== null && !values.some((a) => a.value === defaultValue)) {
|
|
69
67
|
throw new Error(
|
|
70
68
|
`Docusaurus error: The <Tabs> has a defaultValue "${defaultValue}" but none of its children has the corresponding value. Available values are: ${values
|
|
@@ -74,16 +72,13 @@ function TabsComponent(props) {
|
|
|
74
72
|
)}. If you intend to show no default tab, use defaultValue={null} instead.`,
|
|
75
73
|
);
|
|
76
74
|
}
|
|
77
|
-
|
|
78
75
|
const {tabGroupChoices, setTabGroupChoices} = useTabGroupChoice();
|
|
79
76
|
const [selectedValue, setSelectedValue] = useState(defaultValue);
|
|
80
77
|
const tabRefs = [];
|
|
81
78
|
const {blockElementScrollPositionUntilNextRender} =
|
|
82
79
|
useScrollPositionBlocker();
|
|
83
|
-
|
|
84
80
|
if (groupId != null) {
|
|
85
81
|
const relevantTabGroupChoice = tabGroupChoices[groupId];
|
|
86
|
-
|
|
87
82
|
if (
|
|
88
83
|
relevantTabGroupChoice != null &&
|
|
89
84
|
relevantTabGroupChoice !== selectedValue &&
|
|
@@ -92,45 +87,36 @@ function TabsComponent(props) {
|
|
|
92
87
|
setSelectedValue(relevantTabGroupChoice);
|
|
93
88
|
}
|
|
94
89
|
}
|
|
95
|
-
|
|
96
90
|
const handleTabChange = (event) => {
|
|
97
91
|
const newTab = event.currentTarget;
|
|
98
92
|
const newTabIndex = tabRefs.indexOf(newTab);
|
|
99
93
|
const newTabValue = values[newTabIndex].value;
|
|
100
|
-
|
|
101
94
|
if (newTabValue !== selectedValue) {
|
|
102
95
|
blockElementScrollPositionUntilNextRender(newTab);
|
|
103
96
|
setSelectedValue(newTabValue);
|
|
104
|
-
|
|
105
97
|
if (groupId != null) {
|
|
106
98
|
setTabGroupChoices(groupId, newTabValue);
|
|
107
99
|
}
|
|
108
100
|
}
|
|
109
101
|
};
|
|
110
|
-
|
|
111
102
|
const handleKeydown = (event) => {
|
|
112
103
|
let focusElement = null;
|
|
113
|
-
|
|
114
104
|
switch (event.key) {
|
|
115
105
|
case 'ArrowRight': {
|
|
116
106
|
const nextTab = tabRefs.indexOf(event.currentTarget) + 1;
|
|
117
107
|
focusElement = tabRefs[nextTab] || tabRefs[0];
|
|
118
108
|
break;
|
|
119
109
|
}
|
|
120
|
-
|
|
121
110
|
case 'ArrowLeft': {
|
|
122
111
|
const prevTab = tabRefs.indexOf(event.currentTarget) - 1;
|
|
123
112
|
focusElement = tabRefs[prevTab] || tabRefs[tabRefs.length - 1];
|
|
124
113
|
break;
|
|
125
114
|
}
|
|
126
|
-
|
|
127
115
|
default:
|
|
128
116
|
break;
|
|
129
117
|
}
|
|
130
|
-
|
|
131
118
|
focusElement?.focus();
|
|
132
119
|
};
|
|
133
|
-
|
|
134
120
|
return (
|
|
135
121
|
<div className={clsx('tabs-container', styles.tabList)}>
|
|
136
122
|
<ul
|
|
@@ -172,9 +158,7 @@ function TabsComponent(props) {
|
|
|
172
158
|
children.filter(
|
|
173
159
|
(tabItem) => tabItem.props.value === selectedValue,
|
|
174
160
|
)[0],
|
|
175
|
-
{
|
|
176
|
-
className: 'margin-top--md',
|
|
177
|
-
},
|
|
161
|
+
{className: 'margin-top--md'},
|
|
178
162
|
)
|
|
179
163
|
) : (
|
|
180
164
|
<div className="margin-top--md">
|
|
@@ -189,11 +173,11 @@ function TabsComponent(props) {
|
|
|
189
173
|
</div>
|
|
190
174
|
);
|
|
191
175
|
}
|
|
192
|
-
|
|
193
176
|
export default function Tabs(props) {
|
|
194
177
|
const isBrowser = useIsBrowser();
|
|
195
178
|
return (
|
|
196
|
-
<TabsComponent
|
|
179
|
+
<TabsComponent
|
|
180
|
+
// Remount tabs after hydration
|
|
197
181
|
// Temporary fix for https://github.com/facebook/docusaurus/issues/5653
|
|
198
182
|
key={String(isBrowser)}
|
|
199
183
|
{...props}
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Tag';
|
|
9
|
+
export default function Tag({ permalink, label, count }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TagsListByLetter';
|
|
9
|
+
export default function TagsListByLetter({ tags }: Props): JSX.Element;
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import {listTagsByLetters} from '@docusaurus/theme-common';
|
|
9
9
|
import Tag from '@theme/Tag';
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
|
-
|
|
12
11
|
function TagLetterEntryItem({letterEntry}) {
|
|
13
12
|
return (
|
|
14
13
|
<article>
|
|
@@ -24,7 +23,6 @@ function TagLetterEntryItem({letterEntry}) {
|
|
|
24
23
|
</article>
|
|
25
24
|
);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
export default function TagsListByLetter({tags}) {
|
|
29
27
|
const letterList = listTagsByLetters(tags);
|
|
30
28
|
return (
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/TagsListInline';
|
|
9
|
+
export default function TagsListInline({ tags }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/ThemedImage';
|
|
9
|
+
export default function ThemedImage(props: Props): JSX.Element;
|
|
@@ -15,8 +15,9 @@ export default function ThemedImage(props) {
|
|
|
15
15
|
const {sources, className, alt, ...propsRest} = props;
|
|
16
16
|
const clientThemes = colorMode === 'dark' ? ['dark'] : ['light'];
|
|
17
17
|
const renderedSourceNames = isBrowser
|
|
18
|
-
? clientThemes
|
|
19
|
-
: //
|
|
18
|
+
? clientThemes
|
|
19
|
+
: // We need to render both images on the server to avoid flash
|
|
20
|
+
// See https://github.com/facebook/docusaurus/pull/3730
|
|
20
21
|
['light', 'dark'];
|
|
21
22
|
return (
|
|
22
23
|
<>
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type * as PrismNamespace from 'prismjs';
|
|
8
|
+
export default function prismIncludeLanguages(PrismObject: typeof PrismNamespace): void;
|
|
@@ -9,13 +9,13 @@ export default function prismIncludeLanguages(PrismObject) {
|
|
|
9
9
|
const {
|
|
10
10
|
themeConfig: {prism},
|
|
11
11
|
} = siteConfig;
|
|
12
|
-
const {additionalLanguages} = prism;
|
|
12
|
+
const {additionalLanguages} = prism;
|
|
13
|
+
// Prism components work on the Prism instance on the window, while prism-
|
|
13
14
|
// react-renderer uses its own Prism instance. We temporarily mount the
|
|
14
15
|
// instance onto window, import components to enhance it, then remove it to
|
|
15
16
|
// avoid polluting global namespace.
|
|
16
17
|
// You can mutate PrismObject: registering plugins, deleting languages... As
|
|
17
18
|
// long as you don't re-assign it
|
|
18
|
-
|
|
19
19
|
globalThis.Prism = PrismObject;
|
|
20
20
|
additionalLanguages.forEach((lang) => {
|
|
21
21
|
// eslint-disable-next-line global-require, import/no-dynamic-require
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type { TranslationFile } from '@docusaurus/types';
|
|
8
|
+
import type { ThemeConfig } from '@docusaurus/theme-common';
|
|
9
|
+
export declare function getTranslationFiles({ themeConfig, }: {
|
|
10
|
+
themeConfig: ThemeConfig;
|
|
11
|
+
}): TranslationFile[];
|
|
12
|
+
export declare function translateThemeConfig({ themeConfig, translationFiles, }: {
|
|
13
|
+
themeConfig: ThemeConfig;
|
|
14
|
+
translationFiles: TranslationFile[];
|
|
15
|
+
}): ThemeConfig;
|