@docusaurus/theme-classic 2.0.0-beta.fc64c12e4 → 2.0.0
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/README.md +2 -2
- package/lib/getSwizzleConfig.d.ts +8 -0
- package/lib/getSwizzleConfig.js +228 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +107 -170
- package/lib/nprogress.css +41 -0
- package/lib/nprogress.d.ts +10 -0
- package/lib/nprogress.js +25 -0
- package/lib/options.d.ts +14 -0
- package/lib/options.js +409 -0
- package/lib/prism-include-languages.d.ts +7 -0
- package/lib/prism-include-languages.js +0 -2
- package/lib/theme/Admonition/index.d.ts +9 -0
- package/lib/theme/Admonition/index.js +183 -0
- package/lib/{admonitions.css → theme/Admonition/styles.module.css} +17 -14
- package/lib/theme/AnnouncementBar/index.d.ts +8 -0
- package/lib/theme/AnnouncementBar/index.js +39 -63
- package/lib/theme/AnnouncementBar/styles.module.css +23 -32
- package/lib/theme/BackToTopButton/index.d.ts +8 -0
- package/lib/theme/BackToTopButton/index.js +25 -121
- package/lib/theme/BackToTopButton/styles.module.css +20 -15
- package/lib/theme/BlogArchivePage/index.d.ts +10 -0
- package/lib/theme/BlogArchivePage/index.js +80 -0
- package/lib/theme/BlogLayout/index.d.ts +9 -0
- package/lib/theme/BlogLayout/index.js +19 -41
- package/lib/theme/BlogListPage/index.d.ts +10 -0
- package/lib/theme/BlogListPage/index.js +44 -50
- package/lib/theme/BlogListPaginator/index.d.ts +9 -0
- package/lib/theme/BlogListPaginator/index.js +41 -56
- package/lib/theme/BlogPostItem/Container/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Container/index.js +26 -0
- package/lib/theme/BlogPostItem/Content/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Content/index.js +23 -0
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.js +38 -0
- package/lib/theme/BlogPostItem/Footer/index.d.ts +8 -0
- package/lib/theme/BlogPostItem/Footer/index.js +52 -0
- package/{src/theme/IconEdit → lib/theme/BlogPostItem/Footer}/styles.module.css +2 -3
- package/lib/theme/BlogPostItem/Header/Author/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Header/Author/index.js +47 -0
- package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Header/Authors/index.js +48 -0
- package/{lib-next/theme/Toggle → lib/theme/BlogPostItem/Header/Authors}/styles.module.css +11 -7
- package/lib/theme/BlogPostItem/Header/Info/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Header/Info/index.js +60 -0
- package/{lib-next/theme/MDXPage → lib/theme/BlogPostItem/Header/Info}/styles.module.css +2 -2
- package/lib/theme/BlogPostItem/Header/Title/index.d.ts +9 -0
- package/lib/theme/BlogPostItem/Header/Title/index.js +27 -0
- package/{src/theme/BlogPostItem → lib/theme/BlogPostItem/Header/Title}/styles.module.css +8 -7
- package/lib/theme/BlogPostItem/Header/index.d.ts +8 -0
- package/lib/theme/BlogPostItem/Header/index.js +19 -0
- package/{lib-next/theme/Footer/styles.module.css → lib/theme/BlogPostItem/index.d.ts} +3 -9
- package/lib/theme/BlogPostItem/index.js +20 -153
- package/lib/theme/BlogPostItems/index.d.ts +9 -0
- package/lib/theme/BlogPostItems/index.js +27 -0
- package/lib/theme/BlogPostPage/Metadata/index.d.ts +8 -0
- package/lib/theme/BlogPostPage/Metadata/index.js +41 -0
- package/lib/theme/BlogPostPage/index.d.ts +10 -0
- package/lib/theme/BlogPostPage/index.js +51 -44
- package/lib/theme/BlogPostPaginator/index.d.ts +9 -0
- package/lib/theme/BlogPostPaginator/index.js +40 -57
- package/lib/theme/BlogSidebar/Desktop/index.d.ts +9 -0
- package/{lib-next/theme/BlogSidebar → lib/theme/BlogSidebar/Desktop}/index.js +19 -23
- package/{lib-next/theme/BlogSidebar → lib/theme/BlogSidebar/Desktop}/styles.module.css +5 -4
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +9 -0
- package/lib/theme/BlogSidebar/Mobile/index.js +34 -0
- package/lib/theme/BlogSidebar/index.d.ts +9 -0
- package/lib/theme/BlogSidebar/index.js +13 -43
- package/lib/theme/BlogTagsListPage/index.d.ts +10 -0
- package/lib/theme/BlogTagsListPage/index.js +27 -58
- package/lib/theme/BlogTagsPostsPage/index.d.ts +10 -0
- package/lib/theme/BlogTagsPostsPage/index.js +73 -73
- package/lib/theme/CodeBlock/Container/index.d.ts +10 -0
- package/lib/theme/CodeBlock/Container/index.js +27 -0
- package/lib/theme/CodeBlock/Container/styles.module.css +14 -0
- package/lib/theme/CodeBlock/Content/Element.d.ts +9 -0
- package/lib/theme/CodeBlock/Content/Element.js +23 -0
- package/lib/theme/CodeBlock/Content/String.d.ts +9 -0
- package/lib/theme/CodeBlock/Content/String.js +103 -0
- package/lib/theme/CodeBlock/{styles.module.css → Content/styles.module.css} +46 -26
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +9 -0
- package/lib/theme/CodeBlock/CopyButton/index.js +62 -0
- package/lib/theme/CodeBlock/CopyButton/styles.module.css +47 -0
- package/lib/theme/CodeBlock/Line/index.d.ts +9 -0
- package/lib/theme/CodeBlock/Line/index.js +42 -0
- package/lib/theme/CodeBlock/Line/styles.module.css +51 -0
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +9 -0
- package/lib/theme/CodeBlock/WordWrapButton/index.js +40 -0
- package/lib/theme/{BlogPostItem → CodeBlock/WordWrapButton}/styles.module.css +5 -8
- package/lib/theme/CodeBlock/index.d.ts +9 -0
- package/lib/theme/CodeBlock/index.js +31 -244
- package/lib/theme/ColorModeToggle/index.d.ts +11 -0
- package/lib/theme/ColorModeToggle/index.js +60 -0
- package/lib/theme/ColorModeToggle/styles.module.css +35 -0
- package/lib/theme/Details/index.d.ts +9 -0
- package/lib/theme/Details/index.js +14 -23
- package/lib/theme/DocBreadcrumbs/index.d.ts +8 -0
- package/lib/theme/DocBreadcrumbs/index.js +115 -0
- package/{src/theme/IconExternalLink → lib/theme/DocBreadcrumbs}/styles.module.css +9 -2
- package/lib/theme/DocCard/index.d.ts +9 -0
- package/lib/theme/DocCard/index.js +86 -0
- package/lib/theme/DocCard/styles.module.css +34 -0
- package/lib/theme/DocCardList/index.d.ts +9 -0
- package/lib/theme/DocCardList/index.js +30 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +10 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/index.js +65 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/styles.module.css +26 -0
- package/lib/theme/DocItem/Content/index.d.ts +9 -0
- package/lib/theme/DocItem/Content/index.js +44 -0
- package/lib/theme/DocItem/Footer/index.d.ts +8 -0
- package/lib/theme/DocItem/Footer/index.js +74 -0
- package/{src/theme/DocSidebarItem → lib/theme/DocItem/Footer}/styles.module.css +8 -5
- package/lib/theme/DocItem/Layout/index.d.ts +9 -0
- package/lib/theme/DocItem/Layout/index.js +59 -0
- package/lib/theme/DocItem/Layout/styles.module.css +17 -0
- package/lib/theme/DocItem/Metadata/index.d.ts +8 -0
- package/lib/theme/DocItem/Metadata/index.js +20 -0
- package/lib/theme/DocItem/Paginator/index.d.ts +12 -0
- package/lib/theme/DocItem/Paginator/index.js +17 -0
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts +8 -0
- package/lib/theme/DocItem/TOC/Desktop/index.js +21 -0
- package/lib/theme/DocItem/TOC/Mobile/index.d.ts +8 -0
- package/lib/theme/DocItem/TOC/Mobile/index.js +23 -0
- package/lib/theme/DocItem/{styles.module.css → TOC/Mobile/styles.module.css} +6 -19
- package/lib/theme/DocItem/index.d.ts +10 -0
- package/lib/theme/DocItem/index.js +18 -131
- package/lib/theme/DocPage/Layout/Main/index.d.ts +9 -0
- package/lib/theme/DocPage/Layout/Main/index.js +29 -0
- package/lib/theme/DocPage/Layout/Main/styles.module.css +28 -0
- package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/index.d.ts +9 -0
- package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +34 -0
- package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +33 -0
- package/lib/theme/DocPage/Layout/Sidebar/index.d.ts +9 -0
- package/lib/theme/DocPage/Layout/Sidebar/index.js +66 -0
- package/lib/theme/DocPage/Layout/Sidebar/styles.module.css +32 -0
- package/lib/theme/DocPage/Layout/index.d.ts +9 -0
- package/lib/theme/DocPage/Layout/index.js +34 -0
- package/lib/theme/DocPage/Layout/styles.module.css +15 -0
- package/lib/theme/DocPage/index.d.ts +10 -0
- package/lib/theme/DocPage/index.js +42 -134
- package/lib/theme/DocPaginator/index.d.ts +9 -0
- package/lib/theme/DocPaginator/index.js +40 -56
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +9 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.js +34 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +46 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +9 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.js +44 -0
- package/lib/theme/DocSidebar/Desktop/Content/styles.module.css +23 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts +11 -0
- package/lib/theme/DocSidebar/Desktop/index.js +34 -0
- package/lib/theme/DocSidebar/Desktop/styles.module.css +50 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts +11 -0
- package/lib/theme/DocSidebar/Mobile/index.js +45 -0
- package/lib/theme/DocSidebar/index.d.ts +9 -0
- package/lib/theme/DocSidebar/index.js +17 -124
- package/lib/theme/DocSidebarItem/Category/index.d.ts +9 -0
- package/lib/theme/DocSidebarItem/Category/index.js +185 -0
- package/lib/theme/DocSidebarItem/Html/index.d.ts +9 -0
- package/lib/theme/DocSidebarItem/Html/index.js +26 -0
- package/{lib-next/theme/DocSidebarItem → lib/theme/DocSidebarItem/Html}/styles.module.css +3 -5
- package/lib/theme/DocSidebarItem/Link/index.d.ts +9 -0
- package/lib/theme/DocSidebarItem/Link/index.js +54 -0
- package/lib/theme/DocSidebarItem/Link/styles.module.css +10 -0
- package/lib/theme/DocSidebarItem/index.d.ts +9 -0
- package/lib/theme/DocSidebarItem/index.js +7 -161
- package/lib/theme/DocSidebarItems/index.d.ts +11 -0
- package/lib/theme/DocSidebarItems/index.js +22 -0
- package/lib/theme/DocTagDocListPage/index.d.ts +10 -0
- package/lib/theme/DocTagDocListPage/index.js +89 -0
- package/lib/theme/DocTagsListPage/index.d.ts +10 -0
- package/lib/theme/DocTagsListPage/index.js +40 -0
- package/lib/theme/DocVersionBadge/index.d.ts +9 -0
- package/lib/theme/DocVersionBadge/index.js +31 -0
- package/lib/theme/DocVersionBanner/index.d.ts +9 -0
- package/lib/theme/DocVersionBanner/index.js +105 -102
- package/lib/theme/EditThisPage/index.d.ts +9 -0
- package/lib/theme/EditThisPage/index.js +19 -24
- package/{src/theme/hooks/useLockBodyScroll.ts → lib/theme/ErrorPageContent.d.ts} +4 -14
- package/lib/theme/ErrorPageContent.js +35 -0
- package/lib/theme/Footer/Copyright/index.d.ts +9 -0
- package/lib/theme/Footer/Copyright/index.js +17 -0
- package/lib/theme/Footer/Layout/index.d.ts +9 -0
- package/lib/theme/Footer/Layout/index.js +26 -0
- package/lib/theme/Footer/LinkItem/index.d.ts +9 -0
- package/lib/theme/Footer/LinkItem/index.js +31 -0
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +9 -0
- package/lib/theme/Footer/Links/MultiColumn/index.js +43 -0
- package/lib/theme/Footer/Links/Simple/index.d.ts +9 -0
- package/lib/theme/Footer/Links/Simple/index.js +37 -0
- package/lib/theme/Footer/Links/index.d.ts +9 -0
- package/lib/theme/Footer/Links/index.js +17 -0
- package/lib/theme/Footer/Logo/index.d.ts +9 -0
- package/lib/theme/Footer/Logo/index.js +41 -0
- package/{src/theme/Footer → lib/theme/Footer/Logo}/styles.module.css +2 -1
- package/lib/theme/Footer/index.d.ts +10 -0
- package/lib/theme/Footer/index.js +17 -104
- package/lib/theme/Heading/index.d.ts +9 -0
- package/lib/theme/Heading/index.js +35 -68
- package/lib/theme/Heading/styles.module.css +25 -5
- package/lib/theme/Icon/Arrow/index.d.ts +9 -0
- package/{lib-next/theme/IconArrow → lib/theme/Icon/Arrow}/index.js +2 -5
- package/lib/theme/Icon/Close/index.d.ts +9 -0
- package/lib/theme/Icon/Close/index.js +23 -0
- package/lib/theme/Icon/DarkMode/index.d.ts +9 -0
- package/lib/theme/Icon/DarkMode/index.js +17 -0
- package/lib/theme/Icon/Edit/index.d.ts +9 -0
- package/{lib-next/theme/IconEdit → lib/theme/Icon/Edit}/index.js +2 -5
- package/{lib-next/theme/IconEdit → lib/theme/Icon/Edit}/styles.module.css +0 -0
- package/lib/theme/Icon/ExternalLink/index.d.ts +9 -0
- package/{lib-next/theme/IconExternalLink → lib/theme/Icon/ExternalLink}/index.js +2 -5
- package/{lib-next/theme/IconExternalLink → lib/theme/Icon/ExternalLink}/styles.module.css +0 -2
- package/lib/theme/Icon/Home/index.d.ts +9 -0
- package/lib/theme/Icon/Home/index.js +17 -0
- package/lib/theme/Icon/Language/index.d.ts +9 -0
- package/lib/theme/Icon/Language/index.js +22 -0
- package/lib/theme/Icon/LightMode/index.d.ts +9 -0
- package/lib/theme/Icon/LightMode/index.js +17 -0
- package/lib/theme/Icon/Menu/index.d.ts +9 -0
- package/{lib-next/theme/IconMenu → lib/theme/Icon/Menu}/index.js +7 -5
- package/lib/theme/LastUpdated/index.d.ts +9 -0
- package/lib/theme/LastUpdated/index.js +57 -42
- package/lib/theme/Layout/Provider/index.d.ts +9 -0
- package/lib/theme/Layout/Provider/index.js +29 -0
- package/lib/theme/Layout/index.d.ts +9 -0
- package/lib/theme/Layout/index.js +39 -50
- package/{lib-next/theme/Layout/styles.css → lib/theme/Layout/styles.module.css} +9 -10
- package/lib/theme/Logo/index.d.ts +9 -0
- package/lib/theme/Logo/index.js +57 -51
- package/lib/theme/MDXComponents/A.d.ts +9 -0
- package/{lib-next/theme/ThemeContext.js → lib/theme/MDXComponents/A.js} +4 -2
- package/lib/theme/MDXComponents/Code.d.ts +9 -0
- package/lib/theme/MDXComponents/Code.js +28 -0
- package/lib/theme/MDXComponents/Details.d.ts +9 -0
- package/lib/theme/MDXComponents/Details.js +22 -0
- package/lib/theme/MDXComponents/Head.d.ts +9 -0
- package/lib/theme/MDXComponents/Head.js +23 -0
- package/lib/theme/MDXComponents/Heading.d.ts +9 -0
- package/{lib-next/theme/NavbarItem/SearchNavbarItem.js → lib/theme/MDXComponents/Heading.js} +3 -7
- package/lib/theme/MDXComponents/Img/index.d.ts +9 -0
- package/lib/theme/MDXComponents/Img/index.js +22 -0
- package/lib/theme/MDXComponents/Img/styles.module.css +10 -0
- package/lib/theme/MDXComponents/Pre.d.ts +9 -0
- package/lib/theme/MDXComponents/Pre.js +19 -0
- package/lib/theme/MDXComponents/Ul/index.d.ts +9 -0
- package/lib/theme/MDXComponents/Ul/index.js +21 -0
- package/lib/theme/MDXComponents/Ul/styles.module.css +14 -0
- package/lib/theme/MDXComponents/index.d.ts +9 -0
- package/lib/theme/MDXComponents/index.js +25 -72
- package/lib/theme/MDXContent/index.d.ts +9 -0
- package/lib/theme/MDXContent/index.js +12 -0
- package/lib/theme/MDXPage/index.d.ts +10 -0
- package/lib/theme/MDXPage/index.js +46 -56
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +9 -0
- package/lib/theme/Navbar/ColorModeToggle/index.js +23 -0
- package/lib/theme/Navbar/Content/index.d.ts +8 -0
- package/lib/theme/Navbar/Content/index.js +71 -0
- package/lib/theme/Navbar/Content/styles.module.css +15 -0
- package/lib/theme/Navbar/Layout/index.d.ts +9 -0
- package/lib/theme/Navbar/Layout/index.js +52 -0
- package/{lib-next/theme/Navbar → lib/theme/Navbar/Layout}/styles.module.css +0 -9
- package/lib/theme/Navbar/Logo/index.d.ts +8 -0
- package/{lib-next/theme/TabItem → lib/theme/Navbar/Logo}/index.js +7 -12
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +8 -0
- package/lib/theme/Navbar/MobileSidebar/Header/index.js +31 -0
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +9 -0
- package/lib/theme/Navbar/MobileSidebar/Layout/index.js +28 -0
- package/{lib-next/theme/TOCInline/styles.module.css → lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts} +2 -6
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +33 -0
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +8 -0
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.js +36 -0
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +8 -0
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.js +23 -0
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +8 -0
- package/lib/theme/Navbar/MobileSidebar/index.js +29 -0
- package/lib/theme/Navbar/Search/index.d.ts +9 -0
- package/lib/theme/Navbar/Search/index.js +12 -0
- package/lib/theme/Navbar/Search/styles.module.css +20 -0
- package/{lib-next/theme/hooks/styles.css → lib/theme/Navbar/index.d.ts} +2 -4
- package/lib/theme/Navbar/index.js +9 -242
- package/lib/theme/NavbarItem/ComponentTypes.d.ts +9 -0
- package/lib/theme/NavbarItem/ComponentTypes.js +27 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +10 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem.js +30 -83
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/DocNavbarItem.js +24 -51
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.js +33 -0
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +71 -61
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +11 -32
- package/lib/theme/NavbarItem/DropdownNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem.js +109 -103
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/HtmlNavbarItem.js +28 -0
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +9 -0
- package/{src/theme/NavbarItem/LocaleDropdownNavbarItem.tsx → lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.js} +28 -27
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +9 -0
- package/lib/theme/NavbarItem/NavbarNavLink.js +68 -0
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +9 -0
- package/lib/theme/NavbarItem/SearchNavbarItem.js +10 -19
- package/lib/theme/NavbarItem/index.d.ts +9 -0
- package/lib/theme/NavbarItem/index.js +11 -56
- package/lib/theme/NotFound.d.ts +8 -0
- package/lib/theme/NotFound.js +44 -49
- package/lib/theme/PaginatorNavLink/index.d.ts +9 -0
- package/lib/theme/PaginatorNavLink/index.js +23 -0
- package/lib/theme/SearchBar.d.ts +7 -0
- package/lib/theme/SearchBar.js +11 -15
- package/lib/theme/SearchMetadata/index.d.ts +9 -0
- package/lib/theme/SearchMetadata/index.js +34 -0
- package/lib/theme/SiteMetadata/index.d.ts +8 -0
- package/lib/theme/SiteMetadata/index.js +116 -0
- package/lib/theme/SkipToContent/index.d.ts +8 -0
- package/lib/theme/SkipToContent/index.js +16 -62
- package/lib/theme/SkipToContent/styles.module.css +7 -0
- package/lib/theme/TOC/index.d.ts +9 -0
- package/lib/theme/TOC/index.js +18 -53
- package/lib/theme/TOC/styles.module.css +1 -1
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +9 -0
- package/lib/theme/TOCCollapsible/CollapseButton/index.js +29 -0
- package/{lib-next/theme/TOCCollapsible → lib/theme/TOCCollapsible/CollapseButton}/styles.module.css +2 -23
- package/lib/theme/TOCCollapsible/index.d.ts +9 -0
- package/lib/theme/TOCCollapsible/index.js +33 -42
- package/lib/theme/TOCCollapsible/styles.module.css +1 -20
- package/lib/theme/TOCInline/index.d.ts +9 -0
- package/lib/theme/TOCInline/index.js +15 -46
- package/lib/theme/TOCItems/Tree.d.ts +11 -0
- package/lib/theme/TOCItems/Tree.js +37 -0
- package/lib/theme/TOCItems/index.d.ts +9 -0
- package/lib/theme/TOCItems/index.js +53 -0
- package/lib/theme/TabItem/index.d.ts +9 -0
- package/lib/theme/TabItem/index.js +11 -24
- package/lib/theme/TabItem/styles.module.css +10 -0
- package/lib/theme/Tabs/index.d.ts +9 -0
- package/lib/theme/Tabs/index.js +159 -123
- package/lib/theme/Tabs/styles.module.css +4 -13
- package/lib/theme/Tag/index.d.ts +9 -0
- package/lib/theme/Tag/index.js +23 -0
- package/lib/theme/Tag/styles.module.css +70 -0
- package/lib/theme/TagsListByLetter/index.d.ts +9 -0
- package/lib/theme/TagsListByLetter/index.js +38 -0
- package/lib/theme/TagsListByLetter/styles.module.css +11 -0
- package/lib/theme/TagsListInline/index.d.ts +9 -0
- package/lib/theme/TagsListInline/index.js +31 -0
- package/lib/theme/TagsListInline/styles.module.css +15 -0
- package/lib/theme/ThemedImage/index.d.ts +9 -0
- package/lib/theme/ThemedImage/index.js +33 -43
- package/lib/theme/ThemedImage/styles.module.css +2 -2
- package/lib/theme/prism-include-languages.d.ts +8 -0
- package/lib/theme/prism-include-languages.js +19 -33
- package/lib/translations.d.ts +15 -0
- package/lib/translations.js +122 -122
- package/package.json +41 -36
- package/src/deps.d.ts +13 -0
- package/src/getSwizzleConfig.ts +245 -0
- package/src/index.ts +53 -79
- package/src/nprogress.css +41 -0
- package/src/nprogress.ts +31 -0
- package/{lib/validateThemeConfig.js → src/options.ts} +204 -72
- package/{lib-next/prism-include-languages.js → src/prism-include-languages.ts} +0 -0
- package/src/theme/Admonition/index.tsx +209 -0
- package/src/{admonitions.css → theme/Admonition/styles.module.css} +17 -14
- package/src/theme/AnnouncementBar/index.tsx +11 -16
- package/src/theme/AnnouncementBar/styles.module.css +23 -32
- package/src/theme/BackToTopButton/index.tsx +18 -105
- package/src/theme/BackToTopButton/styles.module.css +20 -15
- package/src/theme/BlogArchivePage/index.tsx +92 -0
- package/src/theme/BlogLayout/index.tsx +6 -16
- package/src/theme/BlogListPage/index.tsx +33 -24
- package/src/theme/BlogListPaginator/index.tsx +27 -32
- package/src/theme/BlogPostItem/Container/index.tsx +32 -0
- package/src/theme/BlogPostItem/Content/index.tsx +29 -0
- package/src/theme/BlogPostItem/Footer/ReadMoreLink/index.tsx +44 -0
- package/src/theme/BlogPostItem/Footer/index.tsx +60 -0
- package/src/theme/BlogPostItem/Footer/styles.module.css +10 -0
- package/src/theme/BlogPostItem/Header/Author/index.tsx +55 -0
- package/src/theme/BlogPostItem/Header/Authors/index.tsx +53 -0
- package/src/theme/BlogPostItem/Header/Authors/styles.module.css +21 -0
- package/src/theme/BlogPostItem/Header/Info/index.tsx +71 -0
- package/src/theme/BlogPostItem/Header/Info/styles.module.css +10 -0
- package/src/theme/BlogPostItem/Header/Title/index.tsx +33 -0
- package/{lib-next/theme/BlogPostItem → src/theme/BlogPostItem/Header/Title}/styles.module.css +8 -7
- package/src/theme/BlogPostItem/Header/index.tsx +21 -0
- package/src/theme/BlogPostItem/index.tsx +19 -151
- package/src/theme/BlogPostItems/index.tsx +30 -0
- package/src/theme/BlogPostPage/Metadata/index.tsx +44 -0
- package/src/theme/BlogPostPage/index.tsx +47 -22
- package/src/theme/BlogPostPaginator/index.tsx +27 -36
- package/src/theme/BlogSidebar/Desktop/index.tsx +45 -0
- package/{lib/theme/BlogSidebar → src/theme/BlogSidebar/Desktop}/styles.module.css +5 -4
- package/src/theme/BlogSidebar/Mobile/index.tsx +38 -0
- package/src/theme/BlogSidebar/index.tsx +10 -33
- package/src/theme/BlogTagsListPage/index.tsx +23 -57
- package/src/theme/BlogTagsPostsPage/index.tsx +48 -31
- package/src/theme/CodeBlock/Container/index.tsx +32 -0
- package/src/theme/CodeBlock/Container/styles.module.css +14 -0
- package/src/theme/CodeBlock/Content/Element.tsx +30 -0
- package/src/theme/CodeBlock/Content/String.tsx +110 -0
- package/{lib-next/theme/CodeBlock → src/theme/CodeBlock/Content}/styles.module.css +46 -26
- package/src/theme/CodeBlock/CopyButton/index.tsx +68 -0
- package/src/theme/CodeBlock/CopyButton/styles.module.css +47 -0
- package/src/theme/CodeBlock/Line/index.tsx +49 -0
- package/src/theme/CodeBlock/Line/styles.module.css +51 -0
- package/src/theme/CodeBlock/WordWrapButton/index.tsx +49 -0
- package/src/theme/CodeBlock/WordWrapButton/styles.module.css +15 -0
- package/src/theme/CodeBlock/index.tsx +29 -251
- package/src/theme/ColorModeToggle/index.tsx +67 -0
- package/src/theme/ColorModeToggle/styles.module.css +35 -0
- package/src/theme/Details/index.tsx +4 -2
- package/src/theme/DocBreadcrumbs/index.tsx +141 -0
- package/{lib-next/theme/Heading/styles.css → src/theme/DocBreadcrumbs/styles.module.css} +9 -13
- package/src/theme/DocCard/index.tsx +120 -0
- package/src/theme/DocCard/styles.module.css +34 -0
- package/src/theme/DocCardList/index.tsx +35 -0
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +77 -0
- package/src/theme/DocCategoryGeneratedIndexPage/styles.module.css +26 -0
- package/src/theme/DocItem/Content/index.tsx +48 -0
- package/src/theme/DocItem/Footer/index.tsx +89 -0
- package/src/theme/DocItem/Footer/styles.module.css +18 -0
- package/src/theme/DocItem/Layout/index.tsx +68 -0
- package/src/theme/DocItem/Layout/styles.module.css +17 -0
- package/src/theme/DocItem/Metadata/index.tsx +22 -0
- package/src/theme/DocItem/Paginator/index.tsx +19 -0
- package/src/theme/DocItem/TOC/Desktop/index.tsx +24 -0
- package/src/theme/DocItem/TOC/Mobile/index.tsx +27 -0
- package/src/theme/DocItem/TOC/Mobile/styles.module.css +19 -0
- package/src/theme/DocItem/index.tsx +15 -120
- package/src/theme/DocPage/Layout/Main/index.tsx +36 -0
- package/src/theme/DocPage/Layout/Main/styles.module.css +28 -0
- package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +40 -0
- package/src/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +33 -0
- package/src/theme/DocPage/Layout/Sidebar/index.tsx +74 -0
- package/src/theme/DocPage/Layout/Sidebar/styles.module.css +32 -0
- package/src/theme/DocPage/Layout/index.tsx +38 -0
- package/src/theme/DocPage/Layout/styles.module.css +15 -0
- package/src/theme/DocPage/index.tsx +39 -150
- package/src/theme/DocPaginator/index.tsx +28 -40
- package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +38 -0
- package/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +46 -0
- package/src/theme/DocSidebar/Desktop/Content/index.tsx +55 -0
- package/src/theme/DocSidebar/Desktop/Content/styles.module.css +23 -0
- package/src/theme/DocSidebar/Desktop/index.tsx +40 -0
- package/src/theme/DocSidebar/Desktop/styles.module.css +50 -0
- package/src/theme/DocSidebar/Mobile/index.tsx +54 -0
- package/src/theme/DocSidebar/index.tsx +6 -110
- package/src/theme/DocSidebarItem/Category/index.tsx +211 -0
- package/src/theme/DocSidebarItem/Html/index.tsx +34 -0
- package/{lib/theme/DocSidebarItem → src/theme/DocSidebarItem/Html}/styles.module.css +3 -5
- package/src/theme/DocSidebarItem/Link/index.tsx +58 -0
- package/src/theme/DocSidebarItem/Link/styles.module.css +10 -0
- package/src/theme/DocSidebarItem/index.tsx +7 -167
- package/src/theme/DocSidebarItems/index.tsx +27 -0
- package/src/theme/DocTagDocListPage/index.tsx +95 -0
- package/src/theme/DocTagsListPage/index.tsx +43 -0
- package/src/theme/DocVersionBadge/index.tsx +36 -0
- package/src/theme/DocVersionBanner/index.tsx +53 -28
- package/src/theme/EditThisPage/index.tsx +7 -3
- package/src/theme/ErrorPageContent.tsx +41 -0
- package/src/theme/Footer/Copyright/index.tsx +20 -0
- package/src/theme/Footer/Layout/index.tsx +34 -0
- package/src/theme/Footer/LinkItem/index.tsx +36 -0
- package/src/theme/Footer/Links/MultiColumn/index.tsx +51 -0
- package/src/theme/Footer/Links/Simple/index.tsx +42 -0
- package/src/theme/Footer/Links/index.tsx +21 -0
- package/src/theme/Footer/Logo/index.tsx +46 -0
- package/{lib/theme/Footer → src/theme/Footer/Logo}/styles.module.css +2 -1
- package/src/theme/Footer/index.tsx +13 -122
- package/src/theme/Heading/index.tsx +31 -58
- package/src/theme/Heading/styles.module.css +25 -5
- package/src/theme/{IconArrow → Icon/Arrow}/index.tsx +3 -5
- package/src/theme/Icon/Close/index.tsx +26 -0
- package/src/theme/Icon/DarkMode/index.tsx +20 -0
- package/src/theme/{IconEdit → Icon/Edit}/index.tsx +6 -6
- package/{lib/theme/IconEdit → src/theme/Icon/Edit}/styles.module.css +0 -0
- package/src/theme/{IconExternalLink → Icon/ExternalLink}/index.tsx +4 -6
- package/{lib/theme/IconExternalLink → src/theme/Icon/ExternalLink}/styles.module.css +0 -2
- package/src/theme/Icon/Home/index.tsx +20 -0
- package/src/theme/Icon/Language/index.tsx +29 -0
- package/src/theme/Icon/LightMode/index.tsx +20 -0
- package/src/theme/{IconMenu → Icon/Menu}/index.tsx +4 -6
- package/src/theme/LastUpdated/index.tsx +4 -2
- package/src/theme/Layout/Provider/index.tsx +33 -0
- package/src/theme/Layout/index.tsx +23 -15
- package/src/theme/Layout/{styles.css → styles.module.css} +9 -10
- package/src/theme/Logo/index.tsx +57 -26
- package/src/theme/{ThemeContext.ts → MDXComponents/A.tsx} +5 -6
- package/src/theme/MDXComponents/Code.tsx +40 -0
- package/src/theme/MDXComponents/Details.tsx +28 -0
- package/src/theme/MDXComponents/Head.tsx +29 -0
- package/src/theme/MDXComponents/Heading.tsx +14 -0
- package/src/theme/MDXComponents/Img/index.tsx +27 -0
- package/src/theme/MDXComponents/Img/styles.module.css +10 -0
- package/src/theme/MDXComponents/Pre.tsx +23 -0
- package/src/theme/MDXComponents/Ul/index.tsx +26 -0
- package/src/theme/MDXComponents/Ul/styles.module.css +14 -0
- package/src/theme/MDXComponents/index.tsx +25 -57
- package/src/theme/MDXContent/index.tsx +15 -0
- package/src/theme/MDXPage/index.tsx +40 -35
- package/src/theme/Navbar/ColorModeToggle/index.tsx +30 -0
- package/src/theme/Navbar/Content/index.tsx +86 -0
- package/src/theme/Navbar/Content/styles.module.css +15 -0
- package/src/theme/Navbar/Layout/index.tsx +57 -0
- package/src/theme/Navbar/{styles.module.css → Layout/styles.module.css} +0 -9
- package/src/theme/Navbar/Logo/index.tsx +19 -0
- package/src/theme/Navbar/MobileSidebar/Header/index.tsx +34 -0
- package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +31 -0
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +38 -0
- package/src/theme/Navbar/MobileSidebar/SecondaryMenu/index.tsx +39 -0
- package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +25 -0
- package/src/theme/Navbar/MobileSidebar/index.tsx +33 -0
- package/src/theme/Navbar/Search/index.tsx +19 -0
- package/src/theme/Navbar/Search/styles.module.css +20 -0
- package/src/theme/Navbar/index.tsx +7 -261
- package/src/theme/NavbarItem/ComponentTypes.tsx +32 -0
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +16 -65
- package/src/theme/NavbarItem/DocNavbarItem.tsx +13 -34
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +36 -0
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +43 -41
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +5 -8
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +36 -28
- package/src/theme/NavbarItem/HtmlNavbarItem.tsx +32 -0
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +77 -0
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
- package/src/theme/NavbarItem/NavbarNavLink.tsx +74 -0
- package/src/theme/NavbarItem/SearchNavbarItem.tsx +11 -3
- package/src/theme/NavbarItem/index.tsx +11 -48
- package/src/theme/NotFound.tsx +40 -37
- package/src/theme/PaginatorNavLink/index.tsx +26 -0
- package/src/theme/SearchBar.tsx +2 -1
- package/src/theme/SearchMetadata/index.tsx +43 -0
- package/src/theme/{LayoutHead → SiteMetadata}/index.tsx +31 -45
- package/src/theme/SkipToContent/index.tsx +5 -33
- package/src/theme/SkipToContent/styles.module.css +7 -0
- package/src/theme/TOC/index.tsx +14 -37
- package/src/theme/TOC/styles.module.css +1 -1
- package/src/theme/TOCCollapsible/CollapseButton/index.tsx +36 -0
- package/src/theme/TOCCollapsible/CollapseButton/styles.module.css +29 -0
- package/src/theme/TOCCollapsible/index.tsx +17 -20
- package/src/theme/TOCCollapsible/styles.module.css +1 -20
- package/src/theme/TOCInline/index.tsx +15 -35
- package/src/theme/TOCItems/Tree.tsx +46 -0
- package/src/theme/TOCItems/index.tsx +61 -0
- package/src/theme/TabItem/index.tsx +12 -4
- package/src/theme/TabItem/styles.module.css +10 -0
- package/src/theme/Tabs/index.tsx +121 -62
- package/src/theme/Tabs/styles.module.css +4 -13
- package/src/theme/Tag/index.tsx +27 -0
- package/src/theme/Tag/styles.module.css +70 -0
- package/src/theme/TagsListByLetter/index.tsx +43 -0
- package/src/theme/TagsListByLetter/styles.module.css +11 -0
- package/src/theme/TagsListInline/index.tsx +35 -0
- package/src/theme/TagsListInline/styles.module.css +15 -0
- package/src/theme/ThemedImage/index.tsx +10 -12
- package/src/theme/ThemedImage/styles.module.css +2 -2
- package/src/theme/prism-include-languages.ts +20 -15
- package/src/theme-classic.d.ts +1368 -0
- package/src/translations.ts +85 -60
- package/babel.config.js +0 -35
- package/codeTranslations/README.md +0 -20
- package/codeTranslations/ar.json +0 -56
- package/codeTranslations/base.json +0 -110
- package/codeTranslations/bn.json +0 -56
- package/codeTranslations/da.json +0 -56
- package/codeTranslations/de.json +0 -56
- package/codeTranslations/es.json +0 -56
- package/codeTranslations/fa.json +0 -56
- package/codeTranslations/fil.json +0 -56
- package/codeTranslations/fr.json +0 -56
- package/codeTranslations/he.json +0 -56
- package/codeTranslations/hi.json +0 -56
- package/codeTranslations/ja.json +0 -56
- package/codeTranslations/ko.json +0 -56
- package/codeTranslations/pl.json +0 -56
- package/codeTranslations/pt-BR.json +0 -56
- package/codeTranslations/pt-PT.json +0 -56
- package/codeTranslations/ru.json +0 -56
- package/codeTranslations/tr.json +0 -56
- package/codeTranslations/vi.json +0 -56
- package/codeTranslations/zh-Hans.json +0 -56
- package/codeTranslations/zh-Hant.json +0 -56
- package/lib/__tests__/__snapshots__/translations.test.ts.snap +0 -116
- package/lib/__tests__/translations.test.js +0 -112
- package/lib/__tests__/validateThemeConfig.test.js +0 -457
- package/lib/theme/DocPage/styles.module.css +0 -85
- package/lib/theme/DocSidebar/styles.module.css +0 -106
- package/lib/theme/Heading/styles.css +0 -23
- package/lib/theme/IconArrow/index.js +0 -28
- package/lib/theme/IconEdit/index.js +0 -34
- package/lib/theme/IconExternalLink/index.js +0 -30
- package/lib/theme/IconLanguage/index.js +0 -29
- package/lib/theme/IconMenu/index.js +0 -30
- package/lib/theme/Layout/styles.css +0 -27
- package/lib/theme/LayoutHead/index.js +0 -144
- package/lib/theme/LayoutProviders/index.js +0 -38
- package/lib/theme/Navbar/styles.module.css +0 -23
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem.js +0 -72
- package/lib/theme/SearchMetadatas/index.js +0 -33
- package/lib/theme/Seo/index.js +0 -49
- package/lib/theme/ThemeContext.js +0 -21
- package/lib/theme/ThemeProvider/index.js +0 -38
- package/lib/theme/Toggle/index.js +0 -94
- package/lib/theme/Toggle/styles.css +0 -103
- package/lib/theme/Toggle/styles.module.css +0 -17
- package/lib/theme/UserPreferencesContext.js +0 -18
- package/lib/theme/UserPreferencesProvider/index.js +0 -36
- package/lib/theme/hooks/styles.css +0 -10
- package/lib/theme/hooks/useContextualSearchFilters.js +0 -47
- package/lib/theme/hooks/useDocs.js +0 -18
- package/lib/theme/hooks/useHideableNavbar.js +0 -91
- package/lib/theme/hooks/useKeyboardNavigation.js +0 -45
- package/lib/theme/hooks/useLocationHash.js +0 -28
- package/lib/theme/hooks/useLockBodyScroll.js +0 -26
- package/lib/theme/hooks/usePrismTheme.js +0 -36
- package/lib/theme/hooks/useScrollPosition.js +0 -51
- package/lib/theme/hooks/useTOCHighlight.js +0 -87
- package/lib/theme/hooks/useTabGroupChoice.js +0 -51
- package/lib/theme/hooks/useTheme.js +0 -99
- package/lib/theme/hooks/useThemeContext.js +0 -31
- package/lib/theme/hooks/useUserPreferencesContext.js +0 -31
- package/lib/theme/hooks/useWindowSize.js +0 -73
- package/lib/types.d.ts +0 -696
- package/lib-next/__tests__/__snapshots__/translations.test.ts.snap +0 -116
- package/lib-next/__tests__/translations.test.js +0 -128
- package/lib-next/__tests__/validateThemeConfig.test.js +0 -457
- package/lib-next/admonitions.css +0 -35
- package/lib-next/index.js +0 -222
- package/lib-next/theme/AnnouncementBar/index.js +0 -61
- package/lib-next/theme/AnnouncementBar/styles.module.css +0 -72
- package/lib-next/theme/BackToTopButton/index.js +0 -113
- package/lib-next/theme/BackToTopButton/styles.module.css +0 -39
- package/lib-next/theme/BlogLayout/index.js +0 -43
- package/lib-next/theme/BlogListPage/index.js +0 -47
- package/lib-next/theme/BlogListPaginator/index.js +0 -54
- package/lib-next/theme/BlogPostItem/index.js +0 -168
- package/lib-next/theme/BlogPostPage/index.js +0 -43
- package/lib-next/theme/BlogPostPaginator/index.js +0 -57
- package/lib-next/theme/BlogTagsListPage/index.js +0 -66
- package/lib-next/theme/BlogTagsPostsPage/index.js +0 -83
- package/lib-next/theme/CodeBlock/index.js +0 -266
- package/lib-next/theme/Details/index.js +0 -20
- package/lib-next/theme/Details/styles.module.css +0 -13
- package/lib-next/theme/DocItem/index.js +0 -131
- package/lib-next/theme/DocItem/styles.module.css +0 -32
- package/lib-next/theme/DocPage/index.js +0 -149
- package/lib-next/theme/DocPage/styles.module.css +0 -85
- package/lib-next/theme/DocPaginator/index.js +0 -59
- package/lib-next/theme/DocSidebar/index.js +0 -121
- package/lib-next/theme/DocSidebar/styles.module.css +0 -106
- package/lib-next/theme/DocSidebarItem/index.js +0 -161
- package/lib-next/theme/DocVersionBanner/index.js +0 -127
- package/lib-next/theme/EditThisPage/index.js +0 -21
- package/lib-next/theme/Footer/index.js +0 -129
- package/lib-next/theme/Heading/index.js +0 -67
- package/lib-next/theme/Heading/styles.module.css +0 -15
- package/lib-next/theme/IconLanguage/index.js +0 -25
- package/lib-next/theme/LastUpdated/index.js +0 -77
- package/lib-next/theme/Layout/index.js +0 -46
- package/lib-next/theme/LayoutHead/index.js +0 -137
- package/lib-next/theme/LayoutProviders/index.js +0 -29
- package/lib-next/theme/Logo/index.js +0 -54
- package/lib-next/theme/MDXComponents/index.js +0 -59
- package/lib-next/theme/MDXPage/index.js +0 -51
- package/lib-next/theme/Navbar/index.js +0 -254
- package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +0 -114
- package/lib-next/theme/NavbarItem/DocNavbarItem.js +0 -56
- package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +0 -87
- package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +0 -28
- package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +0 -160
- package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem.js +0 -66
- package/lib-next/theme/NavbarItem/index.js +0 -52
- package/lib-next/theme/NotFound.js +0 -50
- package/lib-next/theme/SearchBar.js +0 -11
- package/lib-next/theme/SearchMetadatas/index.js +0 -20
- package/lib-next/theme/Seo/index.js +0 -36
- package/lib-next/theme/SkipToContent/index.js +0 -53
- package/lib-next/theme/SkipToContent/styles.module.css +0 -14
- package/lib-next/theme/TOC/index.js +0 -52
- package/lib-next/theme/TOC/styles.module.css +0 -23
- package/lib-next/theme/TOCCollapsible/index.js +0 -45
- package/lib-next/theme/TOCInline/index.js +0 -43
- package/lib-next/theme/Tabs/index.js +0 -144
- package/lib-next/theme/Tabs/styles.module.css +0 -23
- package/lib-next/theme/ThemeProvider/index.js +0 -25
- package/lib-next/theme/ThemedImage/index.js +0 -41
- package/lib-next/theme/ThemedImage/styles.module.css +0 -18
- package/lib-next/theme/Toggle/index.js +0 -80
- package/lib-next/theme/Toggle/styles.css +0 -103
- package/lib-next/theme/UserPreferencesContext.js +0 -9
- package/lib-next/theme/UserPreferencesProvider/index.js +0 -24
- package/lib-next/theme/hooks/useContextualSearchFilters.js +0 -41
- package/lib-next/theme/hooks/useDocs.js +0 -10
- package/lib-next/theme/hooks/useHideableNavbar.js +0 -82
- package/lib-next/theme/hooks/useKeyboardNavigation.js +0 -35
- package/lib-next/theme/hooks/useLocationHash.js +0 -20
- package/lib-next/theme/hooks/useLockBodyScroll.js +0 -18
- package/lib-next/theme/hooks/usePrismTheme.js +0 -20
- package/lib-next/theme/hooks/useScrollPosition.js +0 -42
- package/lib-next/theme/hooks/useTOCHighlight.js +0 -84
- package/lib-next/theme/hooks/useTabGroupChoice.js +0 -39
- package/lib-next/theme/hooks/useTheme.js +0 -82
- package/lib-next/theme/hooks/useThemeContext.js +0 -22
- package/lib-next/theme/hooks/useUserPreferencesContext.js +0 -22
- package/lib-next/theme/hooks/useWindowSize.js +0 -63
- package/lib-next/theme/prism-include-languages.js +0 -23
- package/lib-next/translations.js +0 -145
- package/lib-next/types.d.ts +0 -696
- package/lib-next/validateThemeConfig.js +0 -337
- package/src/__tests__/__snapshots__/translations.test.ts.snap +0 -116
- package/src/__tests__/translations.test.ts +0 -116
- package/src/__tests__/validateThemeConfig.test.js +0 -457
- package/src/prism-include-languages.js +0 -11
- package/src/theme/BlogSidebar/styles.module.css +0 -44
- package/src/theme/CodeBlock/styles.module.css +0 -66
- package/src/theme/DocItem/styles.module.css +0 -32
- package/src/theme/DocPage/styles.module.css +0 -85
- package/src/theme/DocSidebar/styles.module.css +0 -106
- package/src/theme/Heading/styles.css +0 -23
- package/src/theme/IconLanguage/index.tsx +0 -31
- package/src/theme/LayoutProviders/index.tsx +0 -32
- package/src/theme/SearchMetadatas/index.tsx +0 -28
- package/src/theme/Seo/index.tsx +0 -46
- package/src/theme/ThemeProvider/index.tsx +0 -24
- package/src/theme/Toggle/index.tsx +0 -100
- package/src/theme/Toggle/styles.css +0 -103
- package/src/theme/Toggle/styles.module.css +0 -17
- package/src/theme/UserPreferencesContext.ts +0 -12
- package/src/theme/UserPreferencesProvider/index.tsx +0 -27
- package/src/theme/hooks/styles.css +0 -10
- package/src/theme/hooks/useContextualSearchFilters.ts +0 -52
- package/src/theme/hooks/useDocs.ts +0 -11
- package/src/theme/hooks/useHideableNavbar.ts +0 -87
- package/src/theme/hooks/useKeyboardNavigation.ts +0 -39
- package/src/theme/hooks/useLocationHash.ts +0 -25
- package/src/theme/hooks/usePrismTheme.ts +0 -22
- package/src/theme/hooks/useScrollPosition.ts +0 -52
- package/src/theme/hooks/useTOCHighlight.ts +0 -98
- package/src/theme/hooks/useTabGroupChoice.ts +0 -46
- package/src/theme/hooks/useTheme.ts +0 -92
- package/src/theme/hooks/useThemeContext.ts +0 -23
- package/src/theme/hooks/useUserPreferencesContext.ts +0 -25
- package/src/theme/hooks/useWindowSize.ts +0 -74
- package/src/types.d.ts +0 -696
- package/src/validateThemeConfig.js +0 -337
- package/tsconfig.json +0 -12
- package/update-code-translations.js +0 -242
- package/update-code-translations.test.js +0 -33
|
@@ -0,0 +1,1368 @@
|
|
|
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
|
+
|
|
8
|
+
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
9
|
+
|
|
10
|
+
/// <reference types="@docusaurus/module-type-aliases" />
|
|
11
|
+
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
12
|
+
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
13
|
+
/// <reference types="@docusaurus/plugin-content-pages" />
|
|
14
|
+
|
|
15
|
+
// This file, like all the other ambient declaration files for plugins, is
|
|
16
|
+
// needed for TS to understand our `@theme` alias. The export signatures are
|
|
17
|
+
// duplicated from the implementation, which is fine, since every module only
|
|
18
|
+
// default-exports a React component.
|
|
19
|
+
// TODO we'll eventually migrate to TS `paths` option. This is not easy due to
|
|
20
|
+
// our theme shadowing—we probably need the user to specify multiple theme paths
|
|
21
|
+
// in their tsconfig.
|
|
22
|
+
|
|
23
|
+
declare module '@docusaurus/theme-classic' {
|
|
24
|
+
import type {LoadContext, Plugin, PluginModule} from '@docusaurus/types';
|
|
25
|
+
|
|
26
|
+
export type PluginOptions = {
|
|
27
|
+
customCss: string[];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type Options = {
|
|
31
|
+
customCss?: string[] | string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const getSwizzleConfig: PluginModule['getSwizzleConfig'];
|
|
35
|
+
|
|
36
|
+
export default function themeClassic(
|
|
37
|
+
context: LoadContext,
|
|
38
|
+
options: Options,
|
|
39
|
+
): Plugin<undefined>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module '@theme/Admonition' {
|
|
43
|
+
import type {ReactNode} from 'react';
|
|
44
|
+
|
|
45
|
+
export interface Props {
|
|
46
|
+
readonly children: ReactNode;
|
|
47
|
+
readonly type: 'note' | 'tip' | 'danger' | 'info' | 'caution';
|
|
48
|
+
readonly icon?: ReactNode;
|
|
49
|
+
readonly title?: ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export default function Admonition(props: Props): JSX.Element;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare module '@theme/AnnouncementBar' {
|
|
55
|
+
export default function AnnouncementBar(): JSX.Element | null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare module '@theme/BackToTopButton' {
|
|
59
|
+
export default function BackToTopButton(): JSX.Element;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare module '@theme/BlogListPaginator' {
|
|
63
|
+
import type {BlogPaginatedMetadata} from '@docusaurus/plugin-content-blog';
|
|
64
|
+
|
|
65
|
+
export interface Props {
|
|
66
|
+
readonly metadata: BlogPaginatedMetadata;
|
|
67
|
+
}
|
|
68
|
+
export default function BlogListPaginator(props: Props): JSX.Element;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare module '@theme/BlogSidebar/Desktop' {
|
|
72
|
+
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
|
73
|
+
|
|
74
|
+
export interface Props {
|
|
75
|
+
readonly sidebar: BlogSidebar;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export default function BlogSidebarDesktop(props: Props): JSX.Element;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare module '@theme/BlogSidebar/Mobile' {
|
|
82
|
+
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
|
83
|
+
|
|
84
|
+
export interface Props {
|
|
85
|
+
readonly sidebar: BlogSidebar;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export default function BlogSidebarMobile(props: Props): JSX.Element;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare module '@theme/BlogSidebar' {
|
|
92
|
+
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
|
93
|
+
|
|
94
|
+
export interface Props {
|
|
95
|
+
readonly sidebar?: BlogSidebar;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default function BlogSidebar(props: Props): JSX.Element;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare module '@theme/BlogPostItem' {
|
|
102
|
+
import type {ReactNode} from 'react';
|
|
103
|
+
|
|
104
|
+
export interface Props {
|
|
105
|
+
children: ReactNode;
|
|
106
|
+
className?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default function BlogPostItem(props: Props): JSX.Element;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare module '@theme/BlogPostItems' {
|
|
113
|
+
import type {ComponentType, ReactNode} from 'react';
|
|
114
|
+
import type {PropBlogPostContent} from '@docusaurus/plugin-content-blog';
|
|
115
|
+
|
|
116
|
+
export interface Props {
|
|
117
|
+
items: readonly {content: PropBlogPostContent}[];
|
|
118
|
+
component?: ComponentType<{children: ReactNode}>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export default function BlogPostItem(props: Props): JSX.Element;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare module '@theme/BlogPostItem/Container' {
|
|
125
|
+
import type {ReactNode} from 'react';
|
|
126
|
+
|
|
127
|
+
export interface Props {
|
|
128
|
+
children: ReactNode;
|
|
129
|
+
className?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export default function BlogPostItemContainer(props: Props): JSX.Element;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare module '@theme/BlogPostItem/Header' {
|
|
136
|
+
export default function BlogPostItemHeader(): JSX.Element;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare module '@theme/BlogPostItem/Header/Title' {
|
|
140
|
+
export interface Props {
|
|
141
|
+
className?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export default function BlogPostItemHeaderTitle(props: Props): JSX.Element;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare module '@theme/BlogPostItem/Header/Info' {
|
|
148
|
+
export interface Props {
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export default function BlogPostItemHeaderInfo(): JSX.Element;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
declare module '@theme/BlogPostItem/Header/Author' {
|
|
156
|
+
import type {PropBlogPostContent} from '@docusaurus/plugin-content-blog';
|
|
157
|
+
|
|
158
|
+
export interface Props {
|
|
159
|
+
readonly author: PropBlogPostContent['metadata']['authors'][number];
|
|
160
|
+
readonly className?: string;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export default function BlogPostItemHeaderAuthor(props: Props): JSX.Element;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare module '@theme/BlogPostItem/Header/Authors' {
|
|
167
|
+
export interface Props {
|
|
168
|
+
readonly className?: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export default function BlogPostItemHeaderAuthors(props: Props): JSX.Element;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare module '@theme/BlogPostItem/Content' {
|
|
175
|
+
import type {ReactNode} from 'react';
|
|
176
|
+
|
|
177
|
+
export interface Props {
|
|
178
|
+
children: ReactNode;
|
|
179
|
+
className?: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export default function BlogPostItemContent(props: Props): JSX.Element;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare module '@theme/BlogPostItem/Footer' {
|
|
186
|
+
export default function BlogPostItemFooter(): JSX.Element | null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare module '@theme/BlogPostItem/Footer/ReadMoreLink' {
|
|
190
|
+
import type {Props as LinkProps} from '@docusaurus/Link';
|
|
191
|
+
|
|
192
|
+
export type Props = LinkProps & {
|
|
193
|
+
blogPostTitle: string;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export default function BlogPostItemFooterReadMoreLink(
|
|
197
|
+
props: Props,
|
|
198
|
+
): JSX.Element | null;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare module '@theme/BlogPostPaginator' {
|
|
202
|
+
type Item = {readonly title: string; readonly permalink: string};
|
|
203
|
+
|
|
204
|
+
export interface Props {
|
|
205
|
+
readonly nextItem?: Item;
|
|
206
|
+
readonly prevItem?: Item;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export default function BlogPostPaginator(props: Props): JSX.Element;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare module '@theme/BlogLayout' {
|
|
213
|
+
import type {ReactNode} from 'react';
|
|
214
|
+
import type {Props as LayoutProps} from '@theme/Layout';
|
|
215
|
+
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
|
216
|
+
|
|
217
|
+
export interface Props extends LayoutProps {
|
|
218
|
+
readonly sidebar?: BlogSidebar;
|
|
219
|
+
readonly toc?: ReactNode;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export default function BlogLayout(props: Props): JSX.Element;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare module '@theme/CodeBlock' {
|
|
226
|
+
import type {ReactNode} from 'react';
|
|
227
|
+
|
|
228
|
+
export interface Props {
|
|
229
|
+
readonly children: ReactNode;
|
|
230
|
+
readonly className?: string;
|
|
231
|
+
readonly metastring?: string;
|
|
232
|
+
readonly title?: string;
|
|
233
|
+
readonly language?: string;
|
|
234
|
+
readonly showLineNumbers?: boolean;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export default function CodeBlock(props: Props): JSX.Element;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
declare module '@theme/CodeBlock/CopyButton' {
|
|
241
|
+
export interface Props {
|
|
242
|
+
readonly code: string;
|
|
243
|
+
readonly className?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export default function CopyButton(props: Props): JSX.Element;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare module '@theme/CodeBlock/Container' {
|
|
250
|
+
import type {ComponentProps} from 'react';
|
|
251
|
+
|
|
252
|
+
export default function CodeBlockContainer<T extends 'div' | 'pre'>({
|
|
253
|
+
as: As,
|
|
254
|
+
...props
|
|
255
|
+
}: {as: T} & ComponentProps<T>): JSX.Element;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare module '@theme/CodeBlock/Content/Element' {
|
|
259
|
+
import type {Props} from '@theme/CodeBlock';
|
|
260
|
+
|
|
261
|
+
export type {Props};
|
|
262
|
+
|
|
263
|
+
export default function CodeBlockElementContent(props: Props): JSX.Element;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
declare module '@theme/CodeBlock/Content/String' {
|
|
267
|
+
import type {Props as CodeBlockProps} from '@theme/CodeBlock';
|
|
268
|
+
|
|
269
|
+
export interface Props extends Omit<CodeBlockProps, 'children'> {
|
|
270
|
+
readonly children: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export default function CodeBlockStringContent(props: Props): JSX.Element;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare module '@theme/CodeBlock/Line' {
|
|
277
|
+
import type {ComponentProps} from 'react';
|
|
278
|
+
import type Highlight from 'prism-react-renderer';
|
|
279
|
+
|
|
280
|
+
// Lib does not make this easy
|
|
281
|
+
type RenderProps = Parameters<
|
|
282
|
+
ComponentProps<typeof Highlight>['children']
|
|
283
|
+
>[0];
|
|
284
|
+
type GetLineProps = RenderProps['getLineProps'];
|
|
285
|
+
type GetTokenProps = RenderProps['getTokenProps'];
|
|
286
|
+
type Token = RenderProps['tokens'][number][number];
|
|
287
|
+
|
|
288
|
+
export interface Props {
|
|
289
|
+
readonly line: Token[];
|
|
290
|
+
readonly classNames: string[] | undefined;
|
|
291
|
+
readonly showLineNumbers: boolean;
|
|
292
|
+
readonly getLineProps: GetLineProps;
|
|
293
|
+
readonly getTokenProps: GetTokenProps;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export default function CodeBlockLine(props: Props): JSX.Element;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare module '@theme/CodeBlock/WordWrapButton' {
|
|
300
|
+
export interface Props {
|
|
301
|
+
readonly className?: string;
|
|
302
|
+
readonly onClick: React.MouseEventHandler;
|
|
303
|
+
readonly isEnabled: boolean;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export default function WordWrapButton(props: Props): JSX.Element;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare module '@theme/DocCard' {
|
|
310
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
311
|
+
|
|
312
|
+
export interface Props {
|
|
313
|
+
readonly item: PropSidebarItem;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export default function DocCard(props: Props): JSX.Element;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare module '@theme/DocCardList' {
|
|
320
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
321
|
+
|
|
322
|
+
export interface Props {
|
|
323
|
+
readonly items: PropSidebarItem[];
|
|
324
|
+
readonly className?: string;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export default function DocCardList(props: Props): JSX.Element;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare module '@theme/DocItem/Layout' {
|
|
331
|
+
export interface Props {
|
|
332
|
+
readonly children: JSX.Element;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export default function DocItemLayout(props: Props): JSX.Element;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare module '@theme/DocItem/Metadata' {
|
|
339
|
+
export default function DocItemMetadata(): JSX.Element;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
declare module '@theme/DocItem/Content' {
|
|
343
|
+
export interface Props {
|
|
344
|
+
readonly children: JSX.Element;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export default function DocItemContent(props: Props): JSX.Element;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
declare module '@theme/DocItem/TOC/Mobile' {
|
|
351
|
+
export default function DocItemTOCMobile(): JSX.Element;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare module '@theme/DocItem/TOC/Desktop' {
|
|
355
|
+
export default function DocItemTOCDesktop(): JSX.Element;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare module '@theme/DocItem/Paginator' {
|
|
359
|
+
export default function DocItemPaginator(): JSX.Element;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
declare module '@theme/DocItem/Footer' {
|
|
363
|
+
export default function DocItemFooter(): JSX.Element;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare module '@theme/DocPage/Layout' {
|
|
367
|
+
import type {ReactNode} from 'react';
|
|
368
|
+
|
|
369
|
+
export interface Props {
|
|
370
|
+
readonly children: ReactNode;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export default function DocPageLayout(props: Props): JSX.Element;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
declare module '@theme/DocPage/Layout/Sidebar' {
|
|
377
|
+
import type {Dispatch, SetStateAction} from 'react';
|
|
378
|
+
import type {PropSidebar} from '@docusaurus/plugin-content-docs';
|
|
379
|
+
|
|
380
|
+
export interface Props {
|
|
381
|
+
readonly sidebar: PropSidebar;
|
|
382
|
+
readonly hiddenSidebarContainer: boolean;
|
|
383
|
+
readonly setHiddenSidebarContainer: Dispatch<SetStateAction<boolean>>;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export default function DocPageLayoutSidebar(props: Props): JSX.Element;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
declare module '@theme/DocPage/Layout/Sidebar/ExpandButton' {
|
|
390
|
+
export interface Props {
|
|
391
|
+
toggleSidebar: () => void;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export default function DocPageLayoutSidebarExpandButton(
|
|
395
|
+
props: Props,
|
|
396
|
+
): JSX.Element;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
declare module '@theme/DocPage/Layout/Main' {
|
|
400
|
+
import type {ReactNode} from 'react';
|
|
401
|
+
|
|
402
|
+
export interface Props {
|
|
403
|
+
readonly hiddenSidebarContainer: boolean;
|
|
404
|
+
readonly children: ReactNode;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export default function DocPageLayoutMain(props: Props): JSX.Element;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
declare module '@theme/DocPaginator' {
|
|
411
|
+
import type {PropNavigation} from '@docusaurus/plugin-content-docs';
|
|
412
|
+
|
|
413
|
+
// May be simpler to provide a {navigation: PropNavigation} prop?
|
|
414
|
+
export interface Props extends PropNavigation {}
|
|
415
|
+
|
|
416
|
+
export default function DocPaginator(props: Props): JSX.Element;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
declare module '@theme/DocSidebar' {
|
|
420
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
421
|
+
|
|
422
|
+
export interface Props {
|
|
423
|
+
readonly path: string;
|
|
424
|
+
readonly sidebar: readonly PropSidebarItem[];
|
|
425
|
+
readonly onCollapse: () => void;
|
|
426
|
+
readonly isHidden: boolean;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export default function DocSidebar(props: Props): JSX.Element;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare module '@theme/DocSidebar/Mobile' {
|
|
433
|
+
import type {Props as DocSidebarProps} from '@theme/DocSidebar';
|
|
434
|
+
|
|
435
|
+
export interface Props extends DocSidebarProps {}
|
|
436
|
+
|
|
437
|
+
export default function DocSidebarMobile(props: Props): JSX.Element;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
declare module '@theme/DocSidebar/Desktop' {
|
|
441
|
+
import type {Props as DocSidebarProps} from '@theme/DocSidebar';
|
|
442
|
+
|
|
443
|
+
export interface Props extends DocSidebarProps {}
|
|
444
|
+
|
|
445
|
+
export default function DocSidebarDesktop(props: Props): JSX.Element;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
declare module '@theme/DocSidebar/Desktop/Content' {
|
|
449
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
450
|
+
|
|
451
|
+
export interface Props {
|
|
452
|
+
readonly className?: string;
|
|
453
|
+
readonly path: string;
|
|
454
|
+
readonly sidebar: readonly PropSidebarItem[];
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export default function Content(props: Props): JSX.Element;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
declare module '@theme/DocSidebar/Desktop/CollapseButton' {
|
|
461
|
+
export interface Props {
|
|
462
|
+
readonly onClick: React.MouseEventHandler;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export default function CollapseButton(props: Props): JSX.Element;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
declare module '@theme/DocSidebarItem' {
|
|
469
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
470
|
+
|
|
471
|
+
export interface Props {
|
|
472
|
+
readonly activePath: string;
|
|
473
|
+
readonly onItemClick?: (item: PropSidebarItem) => void;
|
|
474
|
+
readonly level: number;
|
|
475
|
+
readonly tabIndex?: number;
|
|
476
|
+
readonly item: PropSidebarItem;
|
|
477
|
+
readonly index: number;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export default function DocSidebarItem(props: Props): JSX.Element;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
declare module '@theme/DocSidebarItem/Link' {
|
|
484
|
+
import type {Props as DocSidebarItemProps} from '@theme/DocSidebarItem';
|
|
485
|
+
|
|
486
|
+
import type {PropSidebarItemLink} from '@docusaurus/plugin-content-docs';
|
|
487
|
+
|
|
488
|
+
export interface Props extends DocSidebarItemProps {
|
|
489
|
+
readonly item: PropSidebarItemLink;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export default function DocSidebarItemLink(props: Props): JSX.Element;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
declare module '@theme/DocSidebarItem/Html' {
|
|
496
|
+
import type {Props as DocSidebarItemProps} from '@theme/DocSidebarItem';
|
|
497
|
+
import type {PropSidebarItemHtml} from '@docusaurus/plugin-content-docs';
|
|
498
|
+
|
|
499
|
+
export interface Props extends DocSidebarItemProps {
|
|
500
|
+
readonly item: PropSidebarItemHtml;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export default function DocSidebarItemHtml(props: Props): JSX.Element;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
declare module '@theme/DocSidebarItem/Category' {
|
|
507
|
+
import type {Props as DocSidebarItemProps} from '@theme/DocSidebarItem';
|
|
508
|
+
import type {PropSidebarItemCategory} from '@docusaurus/plugin-content-docs';
|
|
509
|
+
|
|
510
|
+
export interface Props extends DocSidebarItemProps {
|
|
511
|
+
readonly item: PropSidebarItemCategory;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export default function DocSidebarItemCategory(props: Props): JSX.Element;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
declare module '@theme/DocSidebarItems' {
|
|
518
|
+
import type {Props as DocSidebarItemProps} from '@theme/DocSidebarItem';
|
|
519
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
520
|
+
|
|
521
|
+
export interface Props extends Omit<DocSidebarItemProps, 'item' | 'index'> {
|
|
522
|
+
readonly items: readonly PropSidebarItem[];
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export default function DocSidebarItems(props: Props): JSX.Element;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
declare module '@theme/DocVersionBanner' {
|
|
529
|
+
export interface Props {
|
|
530
|
+
readonly className?: string;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export default function DocVersionBanner(props: Props): JSX.Element;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
declare module '@theme/DocVersionBadge' {
|
|
537
|
+
export interface Props {
|
|
538
|
+
readonly className?: string;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export default function DocVersionBadge(props: Props): JSX.Element;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
declare module '@theme/DocVersionSuggestions' {
|
|
545
|
+
export default function DocVersionSuggestions(): JSX.Element;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare module '@theme/EditThisPage' {
|
|
549
|
+
export interface Props {
|
|
550
|
+
readonly editUrl: string;
|
|
551
|
+
}
|
|
552
|
+
export default function EditThisPage(props: Props): JSX.Element;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
declare module '@theme/ErrorPageContent' {
|
|
556
|
+
import type ErrorComponent from '@theme/Error';
|
|
557
|
+
|
|
558
|
+
const ErrorPageContent: typeof ErrorComponent;
|
|
559
|
+
export default ErrorPageContent;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
declare module '@theme/Footer' {
|
|
563
|
+
export default function Footer(): JSX.Element | null;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare module '@theme/Footer/Logo' {
|
|
567
|
+
import type {FooterLogo} from '@docusaurus/theme-common';
|
|
568
|
+
|
|
569
|
+
export interface Props {
|
|
570
|
+
readonly logo: FooterLogo;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export default function FooterLogo(props: Props): JSX.Element;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
declare module '@theme/Footer/Copyright' {
|
|
577
|
+
export interface Props {
|
|
578
|
+
readonly copyright: string;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
export default function FooterCopyright(props: Props): JSX.Element;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare module '@theme/Footer/LinkItem' {
|
|
585
|
+
import type {FooterLinkItem} from '@docusaurus/theme-common';
|
|
586
|
+
|
|
587
|
+
export interface Props {
|
|
588
|
+
readonly item: FooterLinkItem;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export default function FooterLinkItem(props: Props): JSX.Element;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
declare module '@theme/Footer/Layout' {
|
|
595
|
+
import type {ReactNode} from 'react';
|
|
596
|
+
|
|
597
|
+
export interface Props {
|
|
598
|
+
readonly style: 'light' | 'dark';
|
|
599
|
+
readonly links: ReactNode;
|
|
600
|
+
readonly logo: ReactNode;
|
|
601
|
+
readonly copyright: ReactNode;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export default function FooterLayout(props: Props): JSX.Element;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare module '@theme/Footer/Links' {
|
|
608
|
+
import type {Footer} from '@docusaurus/theme-common';
|
|
609
|
+
|
|
610
|
+
export interface Props {
|
|
611
|
+
readonly links: Footer['links'];
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export default function FooterLinks(props: Props): JSX.Element;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
declare module '@theme/Footer/Links/MultiColumn' {
|
|
618
|
+
import type {MultiColumnFooter} from '@docusaurus/theme-common';
|
|
619
|
+
|
|
620
|
+
export interface Props {
|
|
621
|
+
readonly columns: MultiColumnFooter['links'];
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export default function FooterLinksMultiColumn(props: Props): JSX.Element;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
declare module '@theme/Footer/Links/Simple' {
|
|
628
|
+
import type {SimpleFooter} from '@docusaurus/theme-common';
|
|
629
|
+
|
|
630
|
+
export interface Props {
|
|
631
|
+
readonly links: SimpleFooter['links'];
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export default function FooterLinksSimple(props: Props): JSX.Element;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare module '@theme/Heading' {
|
|
638
|
+
import type {ComponentProps} from 'react';
|
|
639
|
+
|
|
640
|
+
type HeadingType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
641
|
+
|
|
642
|
+
export interface Props extends ComponentProps<HeadingType> {
|
|
643
|
+
readonly as: HeadingType;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export default function Heading(props: Props): JSX.Element;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
declare module '@theme/Layout' {
|
|
650
|
+
import type {ReactNode} from 'react';
|
|
651
|
+
|
|
652
|
+
export interface Props {
|
|
653
|
+
readonly children?: ReactNode;
|
|
654
|
+
readonly noFooter?: boolean;
|
|
655
|
+
readonly wrapperClassName?: string;
|
|
656
|
+
|
|
657
|
+
// Not really layout-related, but kept for convenience/retro-compatibility
|
|
658
|
+
readonly title?: string;
|
|
659
|
+
readonly description?: string;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export default function Layout(props: Props): JSX.Element;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare module '@theme/Layout/Provider' {
|
|
666
|
+
import type {ReactNode} from 'react';
|
|
667
|
+
|
|
668
|
+
export interface Props {
|
|
669
|
+
readonly children: ReactNode;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
export default function LayoutProvider(props: Props): JSX.Element;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
declare module '@theme/SearchMetadata' {
|
|
676
|
+
export interface Props {
|
|
677
|
+
readonly locale?: string;
|
|
678
|
+
readonly version?: string;
|
|
679
|
+
readonly tag?: string;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export default function SearchMetadata(props: Props): JSX.Element;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare module '@theme/LastUpdated' {
|
|
686
|
+
export interface Props {
|
|
687
|
+
readonly lastUpdatedAt?: number;
|
|
688
|
+
readonly formattedLastUpdatedAt?: string;
|
|
689
|
+
readonly lastUpdatedBy?: string;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export default function LastUpdated(props: Props): JSX.Element;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
declare module '@theme/SkipToContent' {
|
|
696
|
+
export default function SkipToContent(): JSX.Element;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
declare module '@theme/MDXComponents/A' {
|
|
700
|
+
import type {ComponentProps} from 'react';
|
|
701
|
+
|
|
702
|
+
export interface Props extends ComponentProps<'a'> {}
|
|
703
|
+
|
|
704
|
+
export default function MDXA(props: Props): JSX.Element;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
declare module '@theme/MDXComponents/Code' {
|
|
708
|
+
import type {ComponentProps} from 'react';
|
|
709
|
+
|
|
710
|
+
export interface Props extends ComponentProps<'code'> {}
|
|
711
|
+
|
|
712
|
+
export default function MDXCode(props: Props): JSX.Element;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
declare module '@theme/MDXComponents/Details' {
|
|
716
|
+
import type {ComponentProps} from 'react';
|
|
717
|
+
|
|
718
|
+
export interface Props extends ComponentProps<'details'> {}
|
|
719
|
+
|
|
720
|
+
export default function MDXDetails(props: Props): JSX.Element;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
declare module '@theme/MDXComponents/Ul' {
|
|
724
|
+
import type {ComponentProps} from 'react';
|
|
725
|
+
|
|
726
|
+
export interface Props extends ComponentProps<'ul'> {}
|
|
727
|
+
|
|
728
|
+
export default function MDXUl(props: Props): JSX.Element;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
declare module '@theme/MDXComponents/Img' {
|
|
732
|
+
import type {ComponentProps} from 'react';
|
|
733
|
+
|
|
734
|
+
export interface Props extends ComponentProps<'img'> {}
|
|
735
|
+
|
|
736
|
+
export default function MDXImg(props: Props): JSX.Element;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
declare module '@theme/MDXComponents/Head' {
|
|
740
|
+
import type {ComponentProps} from 'react';
|
|
741
|
+
|
|
742
|
+
export interface Props extends ComponentProps<'head'> {}
|
|
743
|
+
|
|
744
|
+
export default function MDXHead(props: Props): JSX.Element;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
declare module '@theme/MDXComponents/Heading' {
|
|
748
|
+
import type {ComponentProps} from 'react';
|
|
749
|
+
import type Heading from '@theme/Heading';
|
|
750
|
+
|
|
751
|
+
export interface Props extends ComponentProps<typeof Heading> {}
|
|
752
|
+
|
|
753
|
+
export default function MDXHeading(props: Props): JSX.Element;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare module '@theme/MDXComponents/Pre' {
|
|
757
|
+
import type {ComponentProps} from 'react';
|
|
758
|
+
|
|
759
|
+
export interface Props extends ComponentProps<'pre'> {}
|
|
760
|
+
|
|
761
|
+
export default function MDXPre(props: Props): JSX.Element;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
declare module '@theme/MDXComponents' {
|
|
765
|
+
import type {ComponentType, ComponentProps} from 'react';
|
|
766
|
+
|
|
767
|
+
import type MDXHead from '@theme/MDXComponents/Head';
|
|
768
|
+
import type MDXCode from '@theme/MDXComponents/Code';
|
|
769
|
+
import type MDXA from '@theme/MDXComponents/A';
|
|
770
|
+
import type MDXPre from '@theme/MDXComponents/Pre';
|
|
771
|
+
import type MDXDetails from '@theme/MDXComponents/Details';
|
|
772
|
+
import type MDXUl from '@theme/MDXComponents/Ul';
|
|
773
|
+
import type MDXImg from '@theme/MDXComponents/Img';
|
|
774
|
+
import type Admonition from '@theme/Admonition';
|
|
775
|
+
|
|
776
|
+
export type MDXComponentsObject = {
|
|
777
|
+
readonly head: typeof MDXHead;
|
|
778
|
+
readonly code: typeof MDXCode;
|
|
779
|
+
readonly a: typeof MDXA;
|
|
780
|
+
readonly pre: typeof MDXPre;
|
|
781
|
+
readonly details: typeof MDXDetails;
|
|
782
|
+
readonly ul: typeof MDXUl;
|
|
783
|
+
readonly img: typeof MDXImg;
|
|
784
|
+
readonly h1: (props: ComponentProps<'h1'>) => JSX.Element;
|
|
785
|
+
readonly h2: (props: ComponentProps<'h2'>) => JSX.Element;
|
|
786
|
+
readonly h3: (props: ComponentProps<'h3'>) => JSX.Element;
|
|
787
|
+
readonly h4: (props: ComponentProps<'h4'>) => JSX.Element;
|
|
788
|
+
readonly h5: (props: ComponentProps<'h5'>) => JSX.Element;
|
|
789
|
+
readonly h6: (props: ComponentProps<'h6'>) => JSX.Element;
|
|
790
|
+
readonly admonition: typeof Admonition;
|
|
791
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
792
|
+
[tagName: string]: ComponentType<any>;
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
const MDXComponents: MDXComponentsObject;
|
|
796
|
+
export default MDXComponents;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare module '@theme/MDXContent' {
|
|
800
|
+
import type {ReactNode} from 'react';
|
|
801
|
+
|
|
802
|
+
export interface Props {
|
|
803
|
+
readonly children: ReactNode;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
export default function MDXContent(props: Props): JSX.Element;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
declare module '@theme/Navbar' {
|
|
810
|
+
export default function Navbar(): JSX.Element;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
declare module '@theme/Navbar/ColorModeToggle' {
|
|
814
|
+
export interface Props {
|
|
815
|
+
readonly className?: string;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
export default function NavbarColorModeToggle(
|
|
819
|
+
props: Props,
|
|
820
|
+
): JSX.Element | null;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
declare module '@theme/Navbar/Logo' {
|
|
824
|
+
export default function NavbarLogo(): JSX.Element;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
declare module '@theme/Navbar/Content' {
|
|
828
|
+
export default function NavbarContent(): JSX.Element;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
declare module '@theme/Navbar/Layout' {
|
|
832
|
+
export interface Props {
|
|
833
|
+
readonly children: React.ReactNode;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
export default function NavbarLayout(props: Props): JSX.Element;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
declare module '@theme/Navbar/MobileSidebar' {
|
|
840
|
+
export default function NavbarMobileSidebar(): JSX.Element;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare module '@theme/Navbar/MobileSidebar/Layout' {
|
|
844
|
+
import type {ReactNode} from 'react';
|
|
845
|
+
|
|
846
|
+
interface Props {
|
|
847
|
+
readonly header: ReactNode;
|
|
848
|
+
readonly primaryMenu: ReactNode;
|
|
849
|
+
readonly secondaryMenu: ReactNode;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
export default function NavbarMobileSidebarLayout(props: Props): JSX.Element;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
declare module '@theme/Navbar/MobileSidebar/Toggle' {
|
|
856
|
+
export default function NavbarMobileSidebarToggle(): JSX.Element;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
declare module '@theme/Navbar/MobileSidebar/PrimaryMenu' {
|
|
860
|
+
export default function NavbarMobileSidebarPrimaryMenu(): JSX.Element;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
declare module '@theme/Navbar/MobileSidebar/SecondaryMenu' {
|
|
864
|
+
export default function NavbarMobileSidebarSecondaryMenu(): JSX.Element;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
declare module '@theme/Navbar/MobileSidebar/Header' {
|
|
868
|
+
export default function NavbarMobileSidebarHeader(): JSX.Element;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
declare module '@theme/Navbar/Search' {
|
|
872
|
+
import type {ReactNode} from 'react';
|
|
873
|
+
|
|
874
|
+
export interface Props {
|
|
875
|
+
readonly children: ReactNode;
|
|
876
|
+
readonly className?: string;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export default function NavbarSearch(props: Props): JSX.Element;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
declare module '@theme/NavbarItem/DefaultNavbarItem' {
|
|
883
|
+
import type {Props as NavbarNavLinkProps} from '@theme/NavbarItem/NavbarNavLink';
|
|
884
|
+
|
|
885
|
+
export type DesktopOrMobileNavBarItemProps = NavbarNavLinkProps & {
|
|
886
|
+
readonly isDropdownItem?: boolean;
|
|
887
|
+
readonly className?: string;
|
|
888
|
+
readonly position?: 'left' | 'right';
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
export interface Props extends DesktopOrMobileNavBarItemProps {
|
|
892
|
+
readonly mobile?: boolean;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export default function DefaultNavbarItem(props: Props): JSX.Element;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
declare module '@theme/NavbarItem/NavbarNavLink' {
|
|
899
|
+
import type {ReactNode} from 'react';
|
|
900
|
+
import type {Props as LinkProps} from '@docusaurus/Link';
|
|
901
|
+
|
|
902
|
+
export interface Props extends LinkProps {
|
|
903
|
+
readonly activeBasePath?: string;
|
|
904
|
+
readonly activeBaseRegex?: string;
|
|
905
|
+
readonly exact?: boolean;
|
|
906
|
+
readonly label?: ReactNode;
|
|
907
|
+
readonly html?: string;
|
|
908
|
+
readonly prependBaseUrlToHref?: boolean;
|
|
909
|
+
readonly isDropdownLink?: boolean;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export default function NavbarNavLink(props: Props): JSX.Element;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
declare module '@theme/NavbarItem/DropdownNavbarItem' {
|
|
916
|
+
import type {Props as NavbarNavLinkProps} from '@theme/NavbarItem/NavbarNavLink';
|
|
917
|
+
import type {LinkLikeNavbarItemProps} from '@theme/NavbarItem';
|
|
918
|
+
|
|
919
|
+
export type DesktopOrMobileNavBarItemProps = NavbarNavLinkProps & {
|
|
920
|
+
readonly position?: 'left' | 'right';
|
|
921
|
+
readonly items: readonly LinkLikeNavbarItemProps[];
|
|
922
|
+
readonly className?: string;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
export interface Props extends DesktopOrMobileNavBarItemProps {
|
|
926
|
+
readonly mobile?: boolean;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export default function DropdownNavbarItem(props: Props): JSX.Element;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
declare module '@theme/NavbarItem/SearchNavbarItem' {
|
|
933
|
+
export interface Props {
|
|
934
|
+
readonly mobile?: boolean;
|
|
935
|
+
readonly className?: string;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export default function SearchNavbarItem(props: Props): JSX.Element;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
declare module '@theme/NavbarItem/LocaleDropdownNavbarItem' {
|
|
942
|
+
import type {Props as DropdownNavbarItemProps} from '@theme/NavbarItem/DropdownNavbarItem';
|
|
943
|
+
import type {LinkLikeNavbarItemProps} from '@theme/NavbarItem';
|
|
944
|
+
|
|
945
|
+
export interface Props extends DropdownNavbarItemProps {
|
|
946
|
+
readonly dropdownItemsBefore: LinkLikeNavbarItemProps[];
|
|
947
|
+
readonly dropdownItemsAfter: LinkLikeNavbarItemProps[];
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
export default function LocaleDropdownNavbarItem(props: Props): JSX.Element;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
declare module '@theme/NavbarItem/DocsVersionDropdownNavbarItem' {
|
|
954
|
+
import type {Props as DropdownNavbarItemProps} from '@theme/NavbarItem/DropdownNavbarItem';
|
|
955
|
+
import type {LinkLikeNavbarItemProps} from '@theme/NavbarItem';
|
|
956
|
+
|
|
957
|
+
export interface Props extends DropdownNavbarItemProps {
|
|
958
|
+
readonly docsPluginId?: string;
|
|
959
|
+
readonly dropdownActiveClassDisabled?: boolean;
|
|
960
|
+
readonly dropdownItemsBefore: LinkLikeNavbarItemProps[];
|
|
961
|
+
readonly dropdownItemsAfter: LinkLikeNavbarItemProps[];
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export default function DocsVersionDropdownNavbarItem(
|
|
965
|
+
props: Props,
|
|
966
|
+
): JSX.Element;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
declare module '@theme/NavbarItem/DocsVersionNavbarItem' {
|
|
970
|
+
import type {Props as DefaultNavbarItemProps} from '@theme/NavbarItem/DefaultNavbarItem';
|
|
971
|
+
|
|
972
|
+
export interface Props extends DefaultNavbarItemProps {
|
|
973
|
+
readonly docsPluginId?: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export default function DocsVersionNavbarItem(props: Props): JSX.Element;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
declare module '@theme/NavbarItem/DocNavbarItem' {
|
|
980
|
+
import type {Props as DefaultNavbarItemProps} from '@theme/NavbarItem/DefaultNavbarItem';
|
|
981
|
+
|
|
982
|
+
export interface Props extends DefaultNavbarItemProps {
|
|
983
|
+
readonly docId: string;
|
|
984
|
+
readonly docsPluginId?: string;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export default function DocsSidebarNavbarItem(
|
|
988
|
+
props: Props,
|
|
989
|
+
): JSX.Element | null;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
declare module '@theme/NavbarItem/DocSidebarNavbarItem' {
|
|
993
|
+
import type {Props as DefaultNavbarItemProps} from '@theme/NavbarItem/DefaultNavbarItem';
|
|
994
|
+
|
|
995
|
+
export interface Props extends DefaultNavbarItemProps {
|
|
996
|
+
readonly sidebarId: string;
|
|
997
|
+
readonly docsPluginId?: string;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export default function DocSidebarNavbarItem(props: Props): JSX.Element;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
declare module '@theme/NavbarItem/HtmlNavbarItem' {
|
|
1004
|
+
import type {Props as DefaultNavbarItemProps} from '@theme/NavbarItem/DefaultNavbarItem';
|
|
1005
|
+
|
|
1006
|
+
export interface Props extends DefaultNavbarItemProps {
|
|
1007
|
+
readonly value: string;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export default function HtmlNavbarItem(props: Props): JSX.Element;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
declare module '@theme/NavbarItem/ComponentTypes' {
|
|
1014
|
+
import type {ComponentType} from 'react';
|
|
1015
|
+
|
|
1016
|
+
import type DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
1017
|
+
import type DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
|
|
1018
|
+
import type LocaleDropdownNavbarItem from '@theme/NavbarItem/LocaleDropdownNavbarItem';
|
|
1019
|
+
import type SearchNavbarItem from '@theme/NavbarItem/SearchNavbarItem';
|
|
1020
|
+
import type HtmlNavbarItem from '@theme/NavbarItem/HtmlNavbarItem';
|
|
1021
|
+
import type DocNavbarItem from '@theme/NavbarItem/DocNavbarItem';
|
|
1022
|
+
import type DocSidebarNavbarItem from '@theme/NavbarItem/DocSidebarNavbarItem';
|
|
1023
|
+
import type DocsVersionNavbarItem from '@theme/NavbarItem/DocsVersionNavbarItem';
|
|
1024
|
+
import type DocsVersionDropdownNavbarItem from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
|
|
1025
|
+
|
|
1026
|
+
export type ComponentTypesObject = {
|
|
1027
|
+
readonly default: typeof DefaultNavbarItem;
|
|
1028
|
+
readonly localeDropdown: typeof LocaleDropdownNavbarItem;
|
|
1029
|
+
readonly search: typeof SearchNavbarItem;
|
|
1030
|
+
readonly dropdown: typeof DropdownNavbarItem;
|
|
1031
|
+
readonly html: typeof HtmlNavbarItem;
|
|
1032
|
+
readonly doc: typeof DocNavbarItem;
|
|
1033
|
+
readonly docSidebar: typeof DocSidebarNavbarItem;
|
|
1034
|
+
readonly docsVersion: typeof DocsVersionNavbarItem;
|
|
1035
|
+
readonly docsVersionDropdown: typeof DocsVersionDropdownNavbarItem;
|
|
1036
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1037
|
+
[customComponentType: string]: ComponentType<any>;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
const ComponentTypes: ComponentTypesObject;
|
|
1041
|
+
export default ComponentTypes;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
declare module '@theme/NavbarItem' {
|
|
1045
|
+
import type {ComponentProps} from 'react';
|
|
1046
|
+
import type {Props as DefaultNavbarItemProps} from '@theme/NavbarItem/DefaultNavbarItem';
|
|
1047
|
+
import type {Props as DocNavbarItemProps} from '@theme/NavbarItem/DocNavbarItem';
|
|
1048
|
+
import type {Props as DocSidebarNavbarItemProps} from '@theme/NavbarItem/DocSidebarNavbarItem';
|
|
1049
|
+
import type {Props as DocsVersionNavbarItemProps} from '@theme/NavbarItem/DocsVersionNavbarItem';
|
|
1050
|
+
import type {Props as DropdownNavbarItemProps} from '@theme/NavbarItem/DropdownNavbarItem';
|
|
1051
|
+
import type {Props as DocsVersionDropdownNavbarItemProps} from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
|
|
1052
|
+
import type {Props as LocaleDropdownNavbarItemProps} from '@theme/NavbarItem/LocaleDropdownNavbarItem';
|
|
1053
|
+
import type {Props as SearchNavbarItemProps} from '@theme/NavbarItem/SearchNavbarItem';
|
|
1054
|
+
import type {Props as HtmlNavbarItemProps} from '@theme/NavbarItem/HtmlNavbarItem';
|
|
1055
|
+
|
|
1056
|
+
export type LinkLikeNavbarItemProps =
|
|
1057
|
+
| ({readonly type?: 'default'} & DefaultNavbarItemProps)
|
|
1058
|
+
| ({readonly type: 'doc'} & DocNavbarItemProps)
|
|
1059
|
+
| ({readonly type: 'docsVersion'} & DocsVersionNavbarItemProps)
|
|
1060
|
+
| ({readonly type: 'docSidebar'} & DocSidebarNavbarItemProps)
|
|
1061
|
+
| ({readonly type: 'html'} & HtmlNavbarItemProps);
|
|
1062
|
+
|
|
1063
|
+
export type Props = ComponentProps<'a'> & {
|
|
1064
|
+
readonly position?: 'left' | 'right';
|
|
1065
|
+
} & (
|
|
1066
|
+
| LinkLikeNavbarItemProps
|
|
1067
|
+
| ({readonly type?: 'dropdown'} & DropdownNavbarItemProps)
|
|
1068
|
+
| ({
|
|
1069
|
+
readonly type: 'docsVersionDropdown';
|
|
1070
|
+
} & DocsVersionDropdownNavbarItemProps)
|
|
1071
|
+
| ({readonly type: 'localeDropdown'} & LocaleDropdownNavbarItemProps)
|
|
1072
|
+
| ({
|
|
1073
|
+
readonly type: 'search';
|
|
1074
|
+
} & SearchNavbarItemProps)
|
|
1075
|
+
);
|
|
1076
|
+
|
|
1077
|
+
export type NavbarItemType = Props['type'];
|
|
1078
|
+
|
|
1079
|
+
export default function NavbarItem(props: Props): JSX.Element;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
declare module '@theme/PaginatorNavLink' {
|
|
1083
|
+
import type {ReactNode} from 'react';
|
|
1084
|
+
import type {PropNavigationLink} from '@docusaurus/plugin-content-docs';
|
|
1085
|
+
|
|
1086
|
+
export interface Props extends Omit<PropNavigationLink, 'title'> {
|
|
1087
|
+
readonly title: ReactNode;
|
|
1088
|
+
readonly subLabel?: JSX.Element;
|
|
1089
|
+
readonly isNext?: boolean;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
export default function PaginatorNavLink(props: Props): JSX.Element;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare module '@theme/SearchBar' {
|
|
1096
|
+
export default function SearchBar(): JSX.Element;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
declare module '@theme/TabItem' {
|
|
1100
|
+
import type {ReactNode} from 'react';
|
|
1101
|
+
|
|
1102
|
+
export interface Props {
|
|
1103
|
+
readonly children: ReactNode;
|
|
1104
|
+
readonly value: string;
|
|
1105
|
+
readonly default?: boolean;
|
|
1106
|
+
readonly label?: string;
|
|
1107
|
+
readonly hidden?: boolean;
|
|
1108
|
+
readonly className?: string;
|
|
1109
|
+
readonly attributes?: {[key: string]: unknown};
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
export default function TabItem(props: Props): JSX.Element;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
declare module '@theme/Tabs' {
|
|
1116
|
+
import type {ReactElement} from 'react';
|
|
1117
|
+
import type {Props as TabItemProps} from '@theme/TabItem';
|
|
1118
|
+
|
|
1119
|
+
export interface Props {
|
|
1120
|
+
readonly lazy?: boolean;
|
|
1121
|
+
readonly block?: boolean;
|
|
1122
|
+
readonly children: readonly ReactElement<TabItemProps>[];
|
|
1123
|
+
readonly defaultValue?: string | null;
|
|
1124
|
+
readonly values?: readonly {
|
|
1125
|
+
value: string;
|
|
1126
|
+
label?: string;
|
|
1127
|
+
attributes?: {[key: string]: unknown};
|
|
1128
|
+
}[];
|
|
1129
|
+
readonly groupId?: string;
|
|
1130
|
+
readonly className?: string;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
export default function Tabs(props: Props): JSX.Element;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
declare module '@theme/ThemedImage' {
|
|
1137
|
+
import type {ComponentProps} from 'react';
|
|
1138
|
+
|
|
1139
|
+
export interface Props extends Omit<ComponentProps<'img'>, 'src'> {
|
|
1140
|
+
readonly sources: {
|
|
1141
|
+
readonly light: string;
|
|
1142
|
+
readonly dark: string;
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export default function ThemedImage(props: Props): JSX.Element;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
declare module '@theme/Details' {
|
|
1150
|
+
import {Details, type DetailsProps} from '@docusaurus/theme-common/Details';
|
|
1151
|
+
|
|
1152
|
+
export interface Props extends DetailsProps {}
|
|
1153
|
+
export default Details;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
declare module '@theme/TOCItems' {
|
|
1157
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1158
|
+
|
|
1159
|
+
export interface Props {
|
|
1160
|
+
readonly toc: readonly TOCItem[];
|
|
1161
|
+
readonly minHeadingLevel?: number;
|
|
1162
|
+
readonly maxHeadingLevel?: number;
|
|
1163
|
+
readonly className?: string;
|
|
1164
|
+
readonly linkClassName?: string | null;
|
|
1165
|
+
readonly linkActiveClassName?: string;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export default function TOCItems(props: Props): JSX.Element;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
declare module '@theme/TOCItems/Tree' {
|
|
1172
|
+
import type {TOCTreeNode} from '@docusaurus/theme-common/internal';
|
|
1173
|
+
|
|
1174
|
+
export interface Props {
|
|
1175
|
+
readonly toc: readonly TOCTreeNode[];
|
|
1176
|
+
readonly className: string;
|
|
1177
|
+
readonly linkClassName: string | null;
|
|
1178
|
+
readonly isChild?: boolean;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
export default function TOCItems(props: Props): JSX.Element;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
declare module '@theme/TOC' {
|
|
1185
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1186
|
+
|
|
1187
|
+
// `minHeadingLevel` only comes from doc/post front matter, and won't have a
|
|
1188
|
+
// default set by Joi. See TOC, TOCInline, TOCCollapsible for examples.
|
|
1189
|
+
export interface Props {
|
|
1190
|
+
readonly toc: readonly TOCItem[];
|
|
1191
|
+
readonly minHeadingLevel?: number;
|
|
1192
|
+
readonly maxHeadingLevel?: number;
|
|
1193
|
+
readonly className?: string;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
export default function TOC(props: Props): JSX.Element;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
declare module '@theme/TOCInline' {
|
|
1200
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1201
|
+
|
|
1202
|
+
export interface Props {
|
|
1203
|
+
readonly toc: readonly TOCItem[];
|
|
1204
|
+
readonly minHeadingLevel?: number;
|
|
1205
|
+
readonly maxHeadingLevel?: number;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
export default function TOCInline(props: Props): JSX.Element;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
declare module '@theme/TOCCollapsible' {
|
|
1212
|
+
import type {TOCItem} from '@docusaurus/mdx-loader';
|
|
1213
|
+
|
|
1214
|
+
export interface Props {
|
|
1215
|
+
readonly className?: string;
|
|
1216
|
+
readonly minHeadingLevel?: number;
|
|
1217
|
+
readonly maxHeadingLevel?: number;
|
|
1218
|
+
readonly toc: readonly TOCItem[];
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
export default function TOCCollapsible(props: Props): JSX.Element;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
declare module '@theme/TOCCollapsible/CollapseButton' {
|
|
1225
|
+
import type {ComponentProps} from 'react';
|
|
1226
|
+
|
|
1227
|
+
export interface Props extends ComponentProps<'button'> {
|
|
1228
|
+
collapsed: boolean;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
export default function TOCCollapsibleCollapseButton(
|
|
1232
|
+
props: Props,
|
|
1233
|
+
): JSX.Element;
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
declare module '@theme/ColorModeToggle' {
|
|
1237
|
+
import type {ColorMode} from '@docusaurus/theme-common';
|
|
1238
|
+
|
|
1239
|
+
export interface Props {
|
|
1240
|
+
readonly className?: string;
|
|
1241
|
+
readonly value: ColorMode;
|
|
1242
|
+
/**
|
|
1243
|
+
* The parameter represents the "to-be" value. For example, if currently in
|
|
1244
|
+
* dark mode, clicking the button should call `onChange("light")`
|
|
1245
|
+
*/
|
|
1246
|
+
readonly onChange: (colorMode: ColorMode) => void;
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
export default function ColorModeToggle(props: Props): JSX.Element;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
declare module '@theme/Logo' {
|
|
1253
|
+
import type {ComponentProps} from 'react';
|
|
1254
|
+
|
|
1255
|
+
export interface Props extends ComponentProps<'a'> {
|
|
1256
|
+
readonly imageClassName?: string;
|
|
1257
|
+
readonly titleClassName?: string;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
export default function Logo(props: Props): JSX.Element;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
declare module '@theme/Icon/Arrow' {
|
|
1264
|
+
import type {ComponentProps} from 'react';
|
|
1265
|
+
|
|
1266
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1267
|
+
|
|
1268
|
+
export default function IconArrow(props: Props): JSX.Element;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
declare module '@theme/Icon/DarkMode' {
|
|
1272
|
+
import type {ComponentProps} from 'react';
|
|
1273
|
+
|
|
1274
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1275
|
+
|
|
1276
|
+
export default function IconDarkMode(props: Props): JSX.Element;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
declare module '@theme/Icon/Edit' {
|
|
1280
|
+
import type {ComponentProps} from 'react';
|
|
1281
|
+
|
|
1282
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1283
|
+
|
|
1284
|
+
export default function IconEdit(props: Props): JSX.Element;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
declare module '@theme/Icon/Home' {
|
|
1288
|
+
import type {ComponentProps} from 'react';
|
|
1289
|
+
|
|
1290
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1291
|
+
|
|
1292
|
+
export default function IconHome(props: Props): JSX.Element;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
declare module '@theme/Icon/LightMode' {
|
|
1296
|
+
import type {ComponentProps} from 'react';
|
|
1297
|
+
|
|
1298
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1299
|
+
|
|
1300
|
+
export default function IconLightMode(props: Props): JSX.Element;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
declare module '@theme/Icon/Menu' {
|
|
1304
|
+
import type {ComponentProps} from 'react';
|
|
1305
|
+
|
|
1306
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1307
|
+
|
|
1308
|
+
export default function IconMenu(props: Props): JSX.Element;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
declare module '@theme/Icon/Close' {
|
|
1312
|
+
import type {ComponentProps} from 'react';
|
|
1313
|
+
|
|
1314
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1315
|
+
|
|
1316
|
+
export default function IconClose(props: Props): JSX.Element;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
declare module '@theme/Icon/Language' {
|
|
1320
|
+
import type {ComponentProps} from 'react';
|
|
1321
|
+
|
|
1322
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1323
|
+
|
|
1324
|
+
export default function IconLanguage(props: Props): JSX.Element;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
declare module '@theme/Icon/ExternalLink' {
|
|
1328
|
+
import type {ComponentProps} from 'react';
|
|
1329
|
+
|
|
1330
|
+
export interface Props extends ComponentProps<'svg'> {}
|
|
1331
|
+
|
|
1332
|
+
export default function IconExternalLink(props: Props): JSX.Element;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
declare module '@theme/TagsListByLetter' {
|
|
1336
|
+
import type {TagsListItem} from '@docusaurus/utils';
|
|
1337
|
+
|
|
1338
|
+
export interface Props {
|
|
1339
|
+
readonly tags: readonly TagsListItem[];
|
|
1340
|
+
}
|
|
1341
|
+
export default function TagsListByLetter(props: Props): JSX.Element;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
declare module '@theme/TagsListInline' {
|
|
1345
|
+
import type {Tag} from '@docusaurus/utils';
|
|
1346
|
+
|
|
1347
|
+
export interface Props {
|
|
1348
|
+
readonly tags: readonly Tag[];
|
|
1349
|
+
}
|
|
1350
|
+
export default function TagsListInline(props: Props): JSX.Element;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
declare module '@theme/Tag' {
|
|
1354
|
+
import type {TagsListItem} from '@docusaurus/utils';
|
|
1355
|
+
import type {Optional} from 'utility-types';
|
|
1356
|
+
|
|
1357
|
+
export interface Props extends Optional<TagsListItem, 'count'> {}
|
|
1358
|
+
|
|
1359
|
+
export default function Tag(props: Props): JSX.Element;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
declare module '@theme/prism-include-languages' {
|
|
1363
|
+
import type * as PrismNamespace from 'prismjs';
|
|
1364
|
+
|
|
1365
|
+
export default function prismIncludeLanguages(
|
|
1366
|
+
PrismObject: typeof PrismNamespace,
|
|
1367
|
+
): void;
|
|
1368
|
+
}
|