@docusaurus/theme-classic 2.0.0-beta.20 → 2.0.0-beta.21
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 +219 -234
- package/lib/index.d.ts +12 -0
- package/lib/index.js +103 -157
- 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 +1 -5
- 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 +4 -7
- 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 +9 -21
- 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 +4 -7
- 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 +3 -5
- package/lib/theme/BlogTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsListPage/index.js +3 -3
- package/lib/theme/BlogTagsPostsPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsPostsPage/index.js +7 -13
- 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 +3 -3
- package/lib/theme/CodeBlock/Content/String.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Content/String.js +4 -4
- 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 +1 -3
- 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 +8 -13
- 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 +5 -15
- 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 +1 -4
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocCategoryGeneratedIndexPage/index.js +5 -6
- 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 +15 -27
- 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 +1 -6
- 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 +1 -1
- 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 +1 -1
- 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 +5 -8
- package/{lib-next/theme/DocPage/Layout/Sidebar/index.module.css → 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 +2 -2
- package/{lib-next/theme/DocPage/Layout/index.module.css → 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 +2 -4
- 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 +1 -1
- 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/theme/DocSidebarItem/Category.js → lib/theme/DocSidebarItem/Category/index.js} +17 -31
- package/lib/theme/DocSidebarItem/Html/index.d.ts +9 -0
- package/{lib-next/theme/DocSidebarItem/Html.js → lib/theme/DocSidebarItem/Html/index.js} +5 -6
- package/{lib-next/theme/DocSidebarItem/Html.module.css → lib/theme/DocSidebarItem/Html/styles.module.css} +0 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +9 -0
- package/{lib-next/theme/DocSidebarItem/Link.js → lib/theme/DocSidebarItem/Link/index.js} +1 -1
- package/{lib-next/theme/DocSidebarItem/Link.module.css → 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 +3 -4
- package/lib/theme/DocTagDocListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagDocListPage/index.js +5 -12
- package/lib/theme/DocTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagsListPage/index.js +2 -2
- package/lib/theme/DocVersionBadge/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBadge/index.js +2 -6
- package/lib/theme/DocVersionBanner/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBanner/index.js +4 -17
- package/lib/theme/EditThisPage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/EditThisPage/index.js +1 -1
- 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 +4 -8
- 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 +1 -3
- 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 +8 -6
- 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 +3 -10
- 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 +5 -3
- package/lib/theme/MDXComponents/Head.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Head.js +2 -5
- 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/theme/MDXComponents/Img.js → lib/theme/MDXComponents/Img/index.js} +1 -3
- package/{lib-next/theme/MDXComponents/Img.module.css → 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 +4 -3
- package/lib/theme/MDXComponents/Ul/index.d.ts +9 -0
- package/{lib-next/theme/MDXComponents/Ul.js → lib/theme/MDXComponents/Ul/index.js} +5 -5
- package/lib/theme/MDXComponents/Ul/styles.module.css +14 -0
- 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 +3 -3
- 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 +1 -3
- package/lib/theme/Navbar/Content/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/Content/index.js +5 -9
- 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 +1 -3
- 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 +1 -3
- 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 +5 -6
- 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 +1 -1
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/index.js +2 -4
- package/lib/theme/Navbar/Search/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/Search/index.js +3 -2
- 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 +4 -9
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocNavbarItem.js +7 -15
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocSidebarNavbarItem.js +2 -10
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +8 -12
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionNavbarItem.js +1 -3
- package/lib/theme/NavbarItem/DropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DropdownNavbarItem.js +16 -21
- 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 +14 -6
- 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 +6 -22
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/SearchNavbarItem.js +2 -3
- package/lib/theme/NavbarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/index.js +7 -17
- package/lib/theme/NotFound.d.ts +8 -0
- package/{lib-next → lib}/theme/NotFound.js +1 -1
- 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 +16 -17
- 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/theme/TOCCollapsible/CollapseButton.js → lib/theme/TOCCollapsible/CollapseButton/index.js} +1 -1
- package/{lib-next/theme/TOCCollapsible/CollapseButton.module.css → 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 +1 -1
- package/{lib-next/theme/TOCCollapsible/index.module.css → 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 +1 -1
- 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 +1 -2
- 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 +17 -33
- 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 +1 -3
- 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 +12 -0
- package/lib/validateThemeConfig.js +355 -322
- package/package.json +24 -28
- package/src/getSwizzleConfig.ts +0 -7
- package/src/index.ts +15 -13
- package/src/theme/BlogArchivePage/index.tsx +2 -2
- package/src/theme/BlogListPage/index.tsx +5 -5
- package/src/theme/BlogPostAuthors/index.tsx +1 -1
- package/src/theme/BlogPostItem/index.tsx +2 -2
- package/src/theme/BlogPostPage/index.tsx +5 -5
- package/src/theme/BlogSidebar/Desktop/index.tsx +1 -1
- package/src/theme/BlogSidebar/index.tsx +1 -1
- package/src/theme/BlogTagsListPage/index.tsx +4 -5
- package/src/theme/BlogTagsPostsPage/index.tsx +5 -6
- package/src/theme/CodeBlock/Content/Element.tsx +1 -1
- package/src/theme/CodeBlock/Content/String.tsx +2 -2
- package/src/theme/CodeBlock/Line/index.tsx +1 -0
- package/src/theme/CodeBlock/index.tsx +1 -1
- package/src/theme/ColorModeToggle/index.tsx +2 -2
- package/src/theme/Details/index.tsx +1 -0
- package/src/theme/DocBreadcrumbs/index.tsx +3 -2
- package/src/theme/DocCard/index.tsx +7 -6
- package/src/theme/DocCardList/index.tsx +2 -3
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -2
- package/src/theme/DocItem/index.tsx +9 -8
- package/src/theme/DocItemFooter/index.tsx +2 -3
- package/src/theme/DocPage/Layout/Main/index.tsx +2 -3
- package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +1 -1
- package/src/theme/DocPage/Layout/Sidebar/index.tsx +5 -6
- package/src/theme/DocPage/Layout/Sidebar/{index.module.css → styles.module.css} +0 -0
- package/src/theme/DocPage/Layout/index.tsx +3 -4
- package/src/theme/DocPage/Layout/{index.module.css → styles.module.css} +0 -0
- package/src/theme/DocPage/index.tsx +3 -5
- package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +1 -1
- package/src/theme/DocSidebar/index.tsx +1 -1
- package/src/theme/DocSidebarItem/{Category.tsx → Category/index.tsx} +14 -15
- package/src/theme/DocSidebarItem/{Html.tsx → Html/index.tsx} +2 -2
- package/src/theme/DocSidebarItem/{Html.module.css → Html/styles.module.css} +0 -0
- package/src/theme/DocSidebarItem/{Link.tsx → Link/index.tsx} +1 -2
- package/src/theme/DocSidebarItem/{Link.module.css → Link/styles.module.css} +0 -0
- package/src/theme/DocSidebarItems/index.tsx +1 -1
- package/src/theme/DocTagDocListPage/index.tsx +3 -4
- package/src/theme/DocTagsListPage/index.tsx +3 -4
- package/src/theme/DocVersionBadge/index.tsx +1 -1
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/EditThisPage/index.tsx +2 -3
- package/src/theme/Footer/Links/MultiColumn/index.tsx +2 -2
- package/src/theme/Footer/Links/Simple/index.tsx +1 -1
- package/src/theme/Footer/Links/index.tsx +1 -1
- package/src/theme/Footer/Logo/index.tsx +2 -2
- package/src/theme/Heading/index.tsx +1 -1
- package/src/theme/IconEdit/index.tsx +0 -1
- package/src/theme/LastUpdated/index.tsx +1 -1
- package/src/theme/Layout/index.tsx +9 -7
- package/src/theme/Logo/index.tsx +2 -3
- package/src/theme/MDXComponents/Details.tsx +5 -3
- package/src/theme/MDXComponents/Head.tsx +5 -3
- package/src/theme/MDXComponents/{Img.tsx → Img/index.tsx} +3 -2
- package/src/theme/MDXComponents/{Img.module.css → Img/styles.module.css} +0 -0
- package/src/theme/MDXComponents/Pre.tsx +2 -2
- package/src/theme/MDXComponents/{Ul.tsx → Ul/index.tsx} +5 -3
- package/src/theme/MDXComponents/Ul/styles.module.css +14 -0
- package/src/theme/MDXPage/index.tsx +4 -4
- package/src/theme/Navbar/ColorModeToggle/index.tsx +1 -1
- package/src/theme/Navbar/Content/index.tsx +6 -6
- package/src/theme/Navbar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Header/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +1 -2
- package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
- package/src/theme/Navbar/Search/index.tsx +6 -2
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +3 -5
- package/src/theme/NavbarItem/DocNavbarItem.tsx +6 -14
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +2 -10
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +5 -6
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +8 -10
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +13 -5
- package/src/theme/NavbarItem/NavbarNavLink.tsx +3 -9
- package/src/theme/NavbarItem/SearchNavbarItem.tsx +6 -3
- package/src/theme/NavbarItem/index.tsx +9 -19
- package/src/theme/NotFound.tsx +1 -1
- package/src/theme/SiteMetadata/index.tsx +1 -1
- package/src/theme/TOC/index.tsx +2 -1
- package/src/theme/TOCCollapsible/{CollapseButton.tsx → CollapseButton/index.tsx} +2 -1
- package/src/theme/TOCCollapsible/{CollapseButton.module.css → CollapseButton/styles.module.css} +0 -0
- package/src/theme/TOCCollapsible/index.tsx +3 -2
- package/src/theme/TOCCollapsible/{index.module.css → styles.module.css} +0 -0
- package/src/theme/TOCInline/index.tsx +2 -1
- package/src/theme/TOCItems/index.tsx +2 -2
- package/src/theme/TabItem/index.tsx +1 -1
- package/src/theme/Tabs/index.tsx +9 -8
- package/src/theme/TagsListByLetter/index.tsx +1 -1
- package/src/theme/ThemedImage/index.tsx +0 -1
- package/src/theme-classic.d.ts +8 -15
- package/src/translations.ts +2 -3
- package/src/validateThemeConfig.ts +8 -8
- package/lib/deps.d.ts +0 -13
- package/lib/theme-classic.d.ts +0 -1279
- package/lib-next/theme/NavbarItem/utils.js +0 -10
- package/lib-next/theme/Tabs/__tests__/index.test.js +0 -146
- package/src/theme/NavbarItem/utils.ts +0 -13
|
@@ -1,367 +1,400 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ThemeConfigSchema = exports.DEFAULT_CONFIG = void 0;
|
|
7
|
-
exports.validateThemeConfig = validateThemeConfig;
|
|
8
|
-
|
|
9
|
-
var _palenight = _interopRequireDefault(require("prism-react-renderer/themes/palenight"));
|
|
10
|
-
|
|
11
|
-
var _utilsValidation = require("@docusaurus/utils-validation");
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
2
|
/**
|
|
16
3
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
4
|
*
|
|
18
5
|
* This source code is licensed under the MIT license found in the
|
|
19
6
|
* LICENSE file in the root directory of this source tree.
|
|
20
7
|
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.validateThemeConfig = exports.ThemeConfigSchema = exports.DEFAULT_CONFIG = void 0;
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
const palenight_1 = tslib_1.__importDefault(require("prism-react-renderer/themes/palenight"));
|
|
12
|
+
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
21
13
|
const DEFAULT_DOCS_CONFIG = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
versionPersistence: 'localStorage',
|
|
15
|
+
sidebar: {
|
|
16
|
+
hideable: false,
|
|
17
|
+
autoCollapseCategories: false,
|
|
18
|
+
},
|
|
27
19
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
const DocsSchema = utils_validation_1.Joi.object({
|
|
21
|
+
versionPersistence: utils_validation_1.Joi.string()
|
|
22
|
+
.equal('localStorage', 'none')
|
|
23
|
+
.default(DEFAULT_DOCS_CONFIG.versionPersistence),
|
|
24
|
+
sidebar: utils_validation_1.Joi.object({
|
|
25
|
+
hideable: utils_validation_1.Joi.bool().default(DEFAULT_DOCS_CONFIG.sidebar.hideable),
|
|
26
|
+
autoCollapseCategories: utils_validation_1.Joi.bool().default(DEFAULT_DOCS_CONFIG.sidebar.autoCollapseCategories),
|
|
27
|
+
}).default(DEFAULT_DOCS_CONFIG.sidebar),
|
|
35
28
|
}).default(DEFAULT_DOCS_CONFIG);
|
|
36
|
-
|
|
37
29
|
const DEFAULT_COLOR_MODE_CONFIG = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
defaultMode: 'light',
|
|
31
|
+
disableSwitch: false,
|
|
32
|
+
respectPrefersColorScheme: false,
|
|
41
33
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
34
|
+
exports.DEFAULT_CONFIG = {
|
|
35
|
+
colorMode: DEFAULT_COLOR_MODE_CONFIG,
|
|
36
|
+
docs: DEFAULT_DOCS_CONFIG,
|
|
37
|
+
metadata: [],
|
|
38
|
+
prism: {
|
|
39
|
+
additionalLanguages: [],
|
|
40
|
+
theme: palenight_1.default,
|
|
41
|
+
magicComments: [
|
|
42
|
+
{
|
|
43
|
+
className: 'theme-code-block-highlighted-line',
|
|
44
|
+
line: 'highlight-next-line',
|
|
45
|
+
block: { start: 'highlight-start', end: 'highlight-end' },
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
navbar: {
|
|
50
|
+
hideOnScroll: false,
|
|
51
|
+
items: [],
|
|
52
|
+
},
|
|
53
|
+
tableOfContents: {
|
|
54
|
+
minHeadingLevel: 2,
|
|
55
|
+
maxHeadingLevel: 3,
|
|
56
|
+
},
|
|
66
57
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.unknown();
|
|
78
|
-
|
|
58
|
+
const NavbarItemPosition = utils_validation_1.Joi.string().equal('left', 'right').default('left');
|
|
59
|
+
const NavbarItemBaseSchema = utils_validation_1.Joi.object({
|
|
60
|
+
label: utils_validation_1.Joi.string(),
|
|
61
|
+
html: utils_validation_1.Joi.string(),
|
|
62
|
+
className: utils_validation_1.Joi.string(),
|
|
63
|
+
})
|
|
64
|
+
.nand('html', 'label')
|
|
65
|
+
// We allow any unknown attributes on the links (users may need additional
|
|
66
|
+
// attributes like target, aria-role, data-customAttribute...)
|
|
67
|
+
.unknown();
|
|
79
68
|
const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
})
|
|
90
|
-
|
|
69
|
+
to: utils_validation_1.Joi.string(),
|
|
70
|
+
href: utils_validation_1.URISchema,
|
|
71
|
+
activeBasePath: utils_validation_1.Joi.string(),
|
|
72
|
+
activeBaseRegex: utils_validation_1.Joi.string(),
|
|
73
|
+
prependBaseUrlToHref: utils_validation_1.Joi.bool(),
|
|
74
|
+
// This is only triggered in case of a nested dropdown
|
|
75
|
+
items: utils_validation_1.Joi.forbidden().messages({
|
|
76
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
77
|
+
}),
|
|
78
|
+
})
|
|
79
|
+
.xor('href', 'to')
|
|
80
|
+
.messages({
|
|
81
|
+
'object.xor': 'One and only one between "to" and "href" should be provided',
|
|
91
82
|
});
|
|
92
83
|
const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
84
|
+
type: utils_validation_1.Joi.string().equal('docsVersion').required(),
|
|
85
|
+
to: utils_validation_1.Joi.string(),
|
|
86
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
96
87
|
});
|
|
97
88
|
const DocItemSchema = NavbarItemBaseSchema.append({
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
89
|
+
type: utils_validation_1.Joi.string().equal('doc').required(),
|
|
90
|
+
docId: utils_validation_1.Joi.string().required(),
|
|
91
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
101
92
|
});
|
|
102
93
|
const DocSidebarItemSchema = NavbarItemBaseSchema.append({
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
type: utils_validation_1.Joi.string().equal('docSidebar').required(),
|
|
95
|
+
sidebarId: utils_validation_1.Joi.string().required(),
|
|
96
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
97
|
+
});
|
|
98
|
+
const HtmlNavbarItemSchema = utils_validation_1.Joi.object({
|
|
99
|
+
className: utils_validation_1.Joi.string(),
|
|
100
|
+
type: utils_validation_1.Joi.string().equal('html').required(),
|
|
101
|
+
value: utils_validation_1.Joi.string().required(),
|
|
106
102
|
});
|
|
107
|
-
|
|
108
|
-
const HtmlNavbarItemSchema = _utilsValidation.Joi.object({
|
|
109
|
-
className: _utilsValidation.Joi.string(),
|
|
110
|
-
type: _utilsValidation.Joi.string().equal('html').required(),
|
|
111
|
-
value: _utilsValidation.Joi.string().required()
|
|
112
|
-
}); // A temporary workaround to allow users to add custom navbar items
|
|
103
|
+
// A temporary workaround to allow users to add custom navbar items
|
|
113
104
|
// See https://github.com/facebook/docusaurus/issues/7227
|
|
114
|
-
|
|
115
|
-
|
|
116
105
|
const CustomNavbarItemRegexp = /custom-.*/;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
type: _utilsValidation.Joi.string().regex(CustomNavbarItemRegexp).required()
|
|
106
|
+
const CustomNavbarItemSchema = utils_validation_1.Joi.object({
|
|
107
|
+
type: utils_validation_1.Joi.string().regex(CustomNavbarItemRegexp).required(),
|
|
120
108
|
}).unknown();
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
109
|
+
const itemWithType = (type) => {
|
|
110
|
+
// Because equal(undefined) is not supported :/
|
|
111
|
+
const typeSchema =
|
|
112
|
+
// eslint-disable-next-line no-nested-ternary
|
|
113
|
+
type instanceof RegExp
|
|
114
|
+
? utils_validation_1.Joi.string().required().regex(type)
|
|
115
|
+
: type
|
|
116
|
+
? utils_validation_1.Joi.string().required().equal(type)
|
|
117
|
+
: utils_validation_1.Joi.string().forbidden();
|
|
118
|
+
return utils_validation_1.Joi.object({
|
|
119
|
+
type: typeSchema,
|
|
120
|
+
})
|
|
121
|
+
.unknown()
|
|
122
|
+
.required();
|
|
129
123
|
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
position: _utilsValidation.Joi.forbidden()
|
|
124
|
+
const DropdownSubitemSchema = utils_validation_1.Joi.object({
|
|
125
|
+
position: utils_validation_1.Joi.forbidden(),
|
|
133
126
|
}).when('.', {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
127
|
+
switch: [
|
|
128
|
+
{
|
|
129
|
+
is: itemWithType('docsVersion'),
|
|
130
|
+
then: DocsVersionNavbarItemSchema,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
is: itemWithType('doc'),
|
|
134
|
+
then: DocItemSchema,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
is: itemWithType('docSidebar'),
|
|
138
|
+
then: DocSidebarItemSchema,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
is: itemWithType(undefined),
|
|
142
|
+
then: DefaultNavbarItemSchema,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
is: itemWithType('html'),
|
|
146
|
+
then: HtmlNavbarItemSchema,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
is: itemWithType(CustomNavbarItemRegexp),
|
|
150
|
+
then: CustomNavbarItemSchema,
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
is: utils_validation_1.Joi.alternatives().try(itemWithType('dropdown'), itemWithType('docsVersionDropdown'), itemWithType('localeDropdown'), itemWithType('search')),
|
|
154
|
+
then: utils_validation_1.Joi.forbidden().messages({
|
|
155
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
156
|
+
}),
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
otherwise: utils_validation_1.Joi.forbidden().messages({
|
|
160
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
161
|
+
}),
|
|
161
162
|
});
|
|
162
|
-
|
|
163
163
|
const DropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
164
|
-
|
|
164
|
+
items: utils_validation_1.Joi.array().items(DropdownSubitemSchema).required(),
|
|
165
165
|
});
|
|
166
166
|
const DocsVersionDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
type: utils_validation_1.Joi.string().equal('docsVersionDropdown').required(),
|
|
168
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
169
|
+
dropdownActiveClassDisabled: utils_validation_1.Joi.boolean(),
|
|
170
|
+
dropdownItemsBefore: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
171
|
+
dropdownItemsAfter: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
172
172
|
});
|
|
173
173
|
const LocaleDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
type: utils_validation_1.Joi.string().equal('localeDropdown').required(),
|
|
175
|
+
dropdownItemsBefore: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
176
|
+
dropdownItemsAfter: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
177
177
|
});
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
const SearchItemSchema = utils_validation_1.Joi.object({
|
|
179
|
+
type: utils_validation_1.Joi.string().equal('search').required(),
|
|
180
|
+
className: utils_validation_1.Joi.string(),
|
|
181
181
|
});
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
position: NavbarItemPosition
|
|
182
|
+
const NavbarItemSchema = utils_validation_1.Joi.object({
|
|
183
|
+
position: NavbarItemPosition,
|
|
185
184
|
}).when('.', {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
185
|
+
switch: [
|
|
186
|
+
{
|
|
187
|
+
is: itemWithType('docsVersion'),
|
|
188
|
+
then: DocsVersionNavbarItemSchema,
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
is: itemWithType('dropdown'),
|
|
192
|
+
then: DropdownNavbarItemSchema,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
is: itemWithType('docsVersionDropdown'),
|
|
196
|
+
then: DocsVersionDropdownNavbarItemSchema,
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
is: itemWithType('doc'),
|
|
200
|
+
then: DocItemSchema,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
is: itemWithType('docSidebar'),
|
|
204
|
+
then: DocSidebarItemSchema,
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
is: itemWithType('localeDropdown'),
|
|
208
|
+
then: LocaleDropdownNavbarItemSchema,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
is: itemWithType('search'),
|
|
212
|
+
then: SearchItemSchema,
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
is: itemWithType('html'),
|
|
216
|
+
then: HtmlNavbarItemSchema,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
is: itemWithType(CustomNavbarItemRegexp),
|
|
220
|
+
then: CustomNavbarItemSchema,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
is: itemWithType(undefined),
|
|
224
|
+
then: utils_validation_1.Joi.object().when('.', {
|
|
225
|
+
// Dropdown item can be specified without type field
|
|
226
|
+
is: utils_validation_1.Joi.object({
|
|
227
|
+
items: utils_validation_1.Joi.array().required(),
|
|
228
|
+
}).unknown(),
|
|
229
|
+
then: DropdownNavbarItemSchema,
|
|
230
|
+
otherwise: DefaultNavbarItemSchema,
|
|
231
|
+
}),
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
otherwise: utils_validation_1.Joi.forbidden().messages({
|
|
235
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
236
|
+
}),
|
|
227
237
|
});
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
238
|
+
const ColorModeSchema = utils_validation_1.Joi.object({
|
|
239
|
+
defaultMode: utils_validation_1.Joi.string()
|
|
240
|
+
.equal('dark', 'light')
|
|
241
|
+
.default(DEFAULT_COLOR_MODE_CONFIG.defaultMode),
|
|
242
|
+
disableSwitch: utils_validation_1.Joi.bool().default(DEFAULT_COLOR_MODE_CONFIG.disableSwitch),
|
|
243
|
+
respectPrefersColorScheme: utils_validation_1.Joi.bool().default(DEFAULT_COLOR_MODE_CONFIG.respectPrefersColorScheme),
|
|
244
|
+
switchConfig: utils_validation_1.Joi.any().forbidden().messages({
|
|
245
|
+
'any.unknown': 'colorMode.switchConfig is deprecated. If you want to customize the icons for light and dark mode, swizzle IconLightMode, IconDarkMode, or ColorModeToggle instead.',
|
|
246
|
+
}),
|
|
236
247
|
}).default(DEFAULT_COLOR_MODE_CONFIG);
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
itemprop: _utilsValidation.Joi.string()
|
|
248
|
+
const HtmlMetadataSchema = utils_validation_1.Joi.object({
|
|
249
|
+
id: utils_validation_1.Joi.string(),
|
|
250
|
+
name: utils_validation_1.Joi.string(),
|
|
251
|
+
property: utils_validation_1.Joi.string(),
|
|
252
|
+
content: utils_validation_1.Joi.string(),
|
|
253
|
+
itemprop: utils_validation_1.Joi.string(),
|
|
244
254
|
}).unknown();
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
// TODO temporary (@alpha-58)
|
|
263
|
-
defaultDarkMode: _utilsValidation.Joi.any().forbidden().messages({
|
|
264
|
-
'any.unknown': 'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"'
|
|
265
|
-
}),
|
|
266
|
-
customCss: CustomCssSchema,
|
|
267
|
-
colorMode: ColorModeSchema,
|
|
268
|
-
image: _utilsValidation.Joi.string(),
|
|
269
|
-
docs: DocsSchema,
|
|
270
|
-
metadata: _utilsValidation.Joi.array().items(HtmlMetadataSchema).default(DEFAULT_CONFIG.metadata),
|
|
271
|
-
// cSpell:ignore metadatas
|
|
272
|
-
metadatas: _utilsValidation.Joi.any().forbidden().messages({
|
|
273
|
-
'any.unknown': // cSpell:ignore metadatas
|
|
274
|
-
'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871'
|
|
275
|
-
}),
|
|
276
|
-
announcementBar: _utilsValidation.Joi.object({
|
|
277
|
-
id: _utilsValidation.Joi.string().default('announcement-bar'),
|
|
278
|
-
content: _utilsValidation.Joi.string().required(),
|
|
279
|
-
backgroundColor: _utilsValidation.Joi.string(),
|
|
280
|
-
textColor: _utilsValidation.Joi.string(),
|
|
281
|
-
isCloseable: _utilsValidation.Joi.bool().default(true)
|
|
282
|
-
}).optional(),
|
|
283
|
-
navbar: _utilsValidation.Joi.object({
|
|
284
|
-
style: _utilsValidation.Joi.string().equal('dark', 'primary'),
|
|
285
|
-
hideOnScroll: _utilsValidation.Joi.bool().default(DEFAULT_CONFIG.navbar.hideOnScroll),
|
|
255
|
+
const FooterLinkItemSchema = utils_validation_1.Joi.object({
|
|
256
|
+
to: utils_validation_1.Joi.string(),
|
|
257
|
+
href: utils_validation_1.URISchema,
|
|
258
|
+
html: utils_validation_1.Joi.string(),
|
|
259
|
+
label: utils_validation_1.Joi.string(),
|
|
260
|
+
})
|
|
261
|
+
.xor('to', 'href', 'html')
|
|
262
|
+
.with('to', 'label')
|
|
263
|
+
.with('href', 'label')
|
|
264
|
+
.nand('html', 'label')
|
|
265
|
+
// We allow any unknown attributes on the links (users may need additional
|
|
266
|
+
// attributes like target, aria-role, data-customAttribute...)
|
|
267
|
+
.unknown();
|
|
268
|
+
const CustomCssSchema = utils_validation_1.Joi.alternatives()
|
|
269
|
+
.try(utils_validation_1.Joi.array().items(utils_validation_1.Joi.string().required()), utils_validation_1.Joi.string().required())
|
|
270
|
+
.optional();
|
|
271
|
+
exports.ThemeConfigSchema = utils_validation_1.Joi.object({
|
|
286
272
|
// TODO temporary (@alpha-58)
|
|
287
|
-
|
|
288
|
-
|
|
273
|
+
// @ts-expect-error: forbidden
|
|
274
|
+
disableDarkMode: utils_validation_1.Joi.any().forbidden().messages({
|
|
275
|
+
'any.unknown': 'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
|
|
289
276
|
}),
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
277
|
+
// TODO temporary (@alpha-58)
|
|
278
|
+
defaultDarkMode: utils_validation_1.Joi.any().forbidden().messages({
|
|
279
|
+
'any.unknown': 'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
|
|
280
|
+
}),
|
|
281
|
+
customCss: CustomCssSchema,
|
|
282
|
+
colorMode: ColorModeSchema,
|
|
283
|
+
image: utils_validation_1.Joi.string(),
|
|
284
|
+
docs: DocsSchema,
|
|
285
|
+
metadata: utils_validation_1.Joi.array()
|
|
286
|
+
.items(HtmlMetadataSchema)
|
|
287
|
+
.default(exports.DEFAULT_CONFIG.metadata),
|
|
288
|
+
// cSpell:ignore metadatas
|
|
289
|
+
metadatas: utils_validation_1.Joi.any().forbidden().messages({
|
|
290
|
+
'any.unknown':
|
|
291
|
+
// cSpell:ignore metadatas
|
|
292
|
+
'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
|
|
293
|
+
}),
|
|
294
|
+
announcementBar: utils_validation_1.Joi.object({
|
|
295
|
+
id: utils_validation_1.Joi.string().default('announcement-bar'),
|
|
296
|
+
content: utils_validation_1.Joi.string().required(),
|
|
297
|
+
backgroundColor: utils_validation_1.Joi.string(),
|
|
298
|
+
textColor: utils_validation_1.Joi.string(),
|
|
299
|
+
isCloseable: utils_validation_1.Joi.bool().default(true),
|
|
300
|
+
}).optional(),
|
|
301
|
+
navbar: utils_validation_1.Joi.object({
|
|
302
|
+
style: utils_validation_1.Joi.string().equal('dark', 'primary'),
|
|
303
|
+
hideOnScroll: utils_validation_1.Joi.bool().default(exports.DEFAULT_CONFIG.navbar.hideOnScroll),
|
|
304
|
+
// TODO temporary (@alpha-58)
|
|
305
|
+
links: utils_validation_1.Joi.any().forbidden().messages({
|
|
306
|
+
'any.unknown': 'themeConfig.navbar.links has been renamed as themeConfig.navbar.items',
|
|
307
|
+
}),
|
|
308
|
+
items: utils_validation_1.Joi.array()
|
|
309
|
+
.items(NavbarItemSchema)
|
|
310
|
+
.default(exports.DEFAULT_CONFIG.navbar.items),
|
|
311
|
+
title: utils_validation_1.Joi.string().allow('', null),
|
|
312
|
+
logo: utils_validation_1.Joi.object({
|
|
313
|
+
alt: utils_validation_1.Joi.string().allow(''),
|
|
314
|
+
src: utils_validation_1.Joi.string().required(),
|
|
315
|
+
srcDark: utils_validation_1.Joi.string(),
|
|
316
|
+
width: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.number()),
|
|
317
|
+
height: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.number()),
|
|
318
|
+
href: utils_validation_1.Joi.string(),
|
|
319
|
+
target: utils_validation_1.Joi.string(),
|
|
320
|
+
}),
|
|
321
|
+
}).default(exports.DEFAULT_CONFIG.navbar),
|
|
322
|
+
footer: utils_validation_1.Joi.object({
|
|
323
|
+
style: utils_validation_1.Joi.string().equal('dark', 'light').default('light'),
|
|
324
|
+
logo: utils_validation_1.Joi.object({
|
|
325
|
+
alt: utils_validation_1.Joi.string().allow(''),
|
|
326
|
+
src: utils_validation_1.Joi.string().required(),
|
|
327
|
+
srcDark: utils_validation_1.Joi.string(),
|
|
328
|
+
// TODO infer this from reading the image
|
|
329
|
+
width: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.number()),
|
|
330
|
+
height: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.number()),
|
|
331
|
+
href: utils_validation_1.Joi.string(),
|
|
332
|
+
}),
|
|
333
|
+
copyright: utils_validation_1.Joi.string(),
|
|
334
|
+
links: utils_validation_1.Joi.alternatives(utils_validation_1.Joi.array().items(utils_validation_1.Joi.object({
|
|
335
|
+
title: utils_validation_1.Joi.string().allow(null).default(null),
|
|
336
|
+
items: utils_validation_1.Joi.array().items(FooterLinkItemSchema).default([]),
|
|
337
|
+
})), utils_validation_1.Joi.array().items(FooterLinkItemSchema))
|
|
338
|
+
.messages({
|
|
339
|
+
'alternatives.match': `The footer must be either simple or multi-column, and not a mix of the two. See: https://docusaurus.io/docs/api/themes/configuration#footer-links`,
|
|
340
|
+
})
|
|
341
|
+
.default([]),
|
|
342
|
+
}).optional(),
|
|
343
|
+
prism: utils_validation_1.Joi.object({
|
|
344
|
+
theme: utils_validation_1.Joi.object({
|
|
345
|
+
plain: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
346
|
+
styles: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
347
|
+
}).default(exports.DEFAULT_CONFIG.prism.theme),
|
|
348
|
+
darkTheme: utils_validation_1.Joi.object({
|
|
349
|
+
plain: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
350
|
+
styles: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
351
|
+
}),
|
|
352
|
+
defaultLanguage: utils_validation_1.Joi.string(),
|
|
353
|
+
additionalLanguages: utils_validation_1.Joi.array()
|
|
354
|
+
.items(utils_validation_1.Joi.string())
|
|
355
|
+
.default(exports.DEFAULT_CONFIG.prism.additionalLanguages),
|
|
356
|
+
magicComments: utils_validation_1.Joi.array()
|
|
357
|
+
.items(utils_validation_1.Joi.object({
|
|
358
|
+
className: utils_validation_1.Joi.string().required(),
|
|
359
|
+
line: utils_validation_1.Joi.string(),
|
|
360
|
+
block: utils_validation_1.Joi.object({
|
|
361
|
+
start: utils_validation_1.Joi.string().required(),
|
|
362
|
+
end: utils_validation_1.Joi.string().required(),
|
|
363
|
+
}),
|
|
364
|
+
}).or('line', 'block'))
|
|
365
|
+
.default(exports.DEFAULT_CONFIG.prism.magicComments),
|
|
300
366
|
})
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
alt: _utilsValidation.Joi.string().allow(''),
|
|
306
|
-
src: _utilsValidation.Joi.string().required(),
|
|
307
|
-
srcDark: _utilsValidation.Joi.string(),
|
|
308
|
-
// TODO infer this from reading the image
|
|
309
|
-
width: _utilsValidation.Joi.alternatives().try(_utilsValidation.Joi.string(), _utilsValidation.Joi.number()),
|
|
310
|
-
height: _utilsValidation.Joi.alternatives().try(_utilsValidation.Joi.string(), _utilsValidation.Joi.number()),
|
|
311
|
-
href: _utilsValidation.Joi.string()
|
|
367
|
+
.default(exports.DEFAULT_CONFIG.prism)
|
|
368
|
+
.unknown(),
|
|
369
|
+
hideableSidebar: utils_validation_1.Joi.forbidden().messages({
|
|
370
|
+
'any.unknown': 'themeConfig.hideableSidebar has been moved to themeConfig.docs.sidebar.hideable.',
|
|
312
371
|
}),
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
title: _utilsValidation.Joi.string().allow(null).default(null),
|
|
316
|
-
items: _utilsValidation.Joi.array().items(FooterLinkItemSchema).default([])
|
|
317
|
-
})), _utilsValidation.Joi.array().items(FooterLinkItemSchema)).messages({
|
|
318
|
-
'alternatives.match': `The footer must be either simple or multi-column, and not a mix of the two. See: https://docusaurus.io/docs/api/themes/configuration#footer-links`
|
|
319
|
-
}).default([])
|
|
320
|
-
}).optional(),
|
|
321
|
-
prism: _utilsValidation.Joi.object({
|
|
322
|
-
theme: _utilsValidation.Joi.object({
|
|
323
|
-
plain: _utilsValidation.Joi.alternatives().try(_utilsValidation.Joi.array(), _utilsValidation.Joi.object()).required(),
|
|
324
|
-
styles: _utilsValidation.Joi.alternatives().try(_utilsValidation.Joi.array(), _utilsValidation.Joi.object()).required()
|
|
325
|
-
}).default(DEFAULT_CONFIG.prism.theme),
|
|
326
|
-
darkTheme: _utilsValidation.Joi.object({
|
|
327
|
-
plain: _utilsValidation.Joi.alternatives().try(_utilsValidation.Joi.array(), _utilsValidation.Joi.object()).required(),
|
|
328
|
-
styles: _utilsValidation.Joi.alternatives().try(_utilsValidation.Joi.array(), _utilsValidation.Joi.object()).required()
|
|
372
|
+
autoCollapseSidebarCategories: utils_validation_1.Joi.forbidden().messages({
|
|
373
|
+
'any.unknown': 'themeConfig.autoCollapseSidebarCategories has been moved to themeConfig.docs.sidebar.autoCollapseCategories.',
|
|
329
374
|
}),
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
magicComments: _utilsValidation.Joi.array().items(_utilsValidation.Joi.object({
|
|
333
|
-
className: _utilsValidation.Joi.string().required(),
|
|
334
|
-
line: _utilsValidation.Joi.string(),
|
|
335
|
-
block: _utilsValidation.Joi.object({
|
|
336
|
-
start: _utilsValidation.Joi.string().required(),
|
|
337
|
-
end: _utilsValidation.Joi.string().required()
|
|
338
|
-
})
|
|
339
|
-
}).or('line', 'block')).default(DEFAULT_CONFIG.prism.magicComments)
|
|
340
|
-
}).default(DEFAULT_CONFIG.prism).unknown(),
|
|
341
|
-
hideableSidebar: _utilsValidation.Joi.forbidden().messages({
|
|
342
|
-
'any.unknown': 'themeConfig.hideableSidebar has been moved to themeConfig.docs.sidebar.hideable.'
|
|
343
|
-
}),
|
|
344
|
-
autoCollapseSidebarCategories: _utilsValidation.Joi.forbidden().messages({
|
|
345
|
-
'any.unknown': 'themeConfig.autoCollapseSidebarCategories has been moved to themeConfig.docs.sidebar.autoCollapseCategories.'
|
|
346
|
-
}),
|
|
347
|
-
sidebarCollapsible: _utilsValidation.Joi.forbidden().messages({
|
|
348
|
-
'any.unknown': 'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs'
|
|
349
|
-
}),
|
|
350
|
-
tableOfContents: _utilsValidation.Joi.object({
|
|
351
|
-
minHeadingLevel: _utilsValidation.Joi.number().default(DEFAULT_CONFIG.tableOfContents.minHeadingLevel).when('maxHeadingLevel', {
|
|
352
|
-
is: _utilsValidation.Joi.exist(),
|
|
353
|
-
then: _utilsValidation.Joi.number().integer().min(2).max(6).max(_utilsValidation.Joi.ref('maxHeadingLevel')),
|
|
354
|
-
otherwise: _utilsValidation.Joi.number().integer().min(2).max(6)
|
|
375
|
+
sidebarCollapsible: utils_validation_1.Joi.forbidden().messages({
|
|
376
|
+
'any.unknown': 'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
|
|
355
377
|
}),
|
|
356
|
-
|
|
357
|
-
|
|
378
|
+
tableOfContents: utils_validation_1.Joi.object({
|
|
379
|
+
minHeadingLevel: utils_validation_1.Joi.number()
|
|
380
|
+
.default(exports.DEFAULT_CONFIG.tableOfContents.minHeadingLevel)
|
|
381
|
+
.when('maxHeadingLevel', {
|
|
382
|
+
is: utils_validation_1.Joi.exist(),
|
|
383
|
+
then: utils_validation_1.Joi.number()
|
|
384
|
+
.integer()
|
|
385
|
+
.min(2)
|
|
386
|
+
.max(6)
|
|
387
|
+
.max(utils_validation_1.Joi.ref('maxHeadingLevel')),
|
|
388
|
+
otherwise: utils_validation_1.Joi.number().integer().min(2).max(6),
|
|
389
|
+
}),
|
|
390
|
+
maxHeadingLevel: utils_validation_1.Joi.number()
|
|
391
|
+
.integer()
|
|
392
|
+
.min(2)
|
|
393
|
+
.max(6)
|
|
394
|
+
.default(exports.DEFAULT_CONFIG.tableOfContents.maxHeadingLevel),
|
|
395
|
+
}).default(exports.DEFAULT_CONFIG.tableOfContents),
|
|
358
396
|
});
|
|
359
|
-
|
|
360
|
-
exports.ThemeConfigSchema
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
validate,
|
|
364
|
-
themeConfig
|
|
365
|
-
}) {
|
|
366
|
-
return validate(ThemeConfigSchema, themeConfig);
|
|
367
|
-
}
|
|
397
|
+
function validateThemeConfig({ validate, themeConfig, }) {
|
|
398
|
+
return validate(exports.ThemeConfigSchema, themeConfig);
|
|
399
|
+
}
|
|
400
|
+
exports.validateThemeConfig = validateThemeConfig;
|