@docusaurus/theme-classic 3.6.3 → 3.7.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/lib/options.js +7 -4
- package/lib/theme/Admonition/Icon/Danger.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Info.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Note.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Tip.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Warning.d.ts +2 -1
- package/lib/theme/Admonition/Layout/index.d.ts +2 -1
- package/lib/theme/Admonition/Type/Caution.d.ts +2 -1
- package/lib/theme/Admonition/Type/Danger.d.ts +2 -1
- package/lib/theme/Admonition/Type/Info.d.ts +2 -1
- package/lib/theme/Admonition/Type/Note.d.ts +2 -1
- package/lib/theme/Admonition/Type/Tip.d.ts +2 -1
- package/lib/theme/Admonition/Type/Warning.d.ts +2 -1
- package/lib/theme/Admonition/index.d.ts +2 -1
- package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +2 -1
- package/lib/theme/AnnouncementBar/Content/index.d.ts +2 -1
- package/lib/theme/AnnouncementBar/index.d.ts +2 -1
- package/lib/theme/BackToTopButton/index.d.ts +2 -1
- package/lib/theme/Blog/Components/Author/Socials/index.d.ts +2 -1
- package/lib/theme/Blog/Components/Author/Socials/index.js +12 -0
- package/lib/theme/Blog/Components/Author/index.d.ts +2 -1
- package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +2 -1
- package/lib/theme/BlogArchivePage/index.d.ts +2 -1
- package/lib/theme/BlogLayout/index.d.ts +2 -1
- package/lib/theme/BlogListPage/StructuredData/index.d.ts +2 -1
- package/lib/theme/BlogListPage/index.d.ts +2 -1
- package/lib/theme/BlogListPaginator/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Container/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Content/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Footer/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/Info/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/Title/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/index.d.ts +2 -1
- package/lib/theme/BlogPostItems/index.d.ts +2 -1
- package/lib/theme/BlogPostPage/Metadata/index.d.ts +2 -1
- package/lib/theme/BlogPostPage/StructuredData/index.d.ts +2 -1
- package/lib/theme/BlogPostPage/index.d.ts +2 -1
- package/lib/theme/BlogPostPaginator/index.d.ts +2 -1
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +2 -2
- package/lib/theme/BlogSidebar/index.d.ts +2 -1
- package/lib/theme/BlogTagsListPage/index.d.ts +2 -1
- package/lib/theme/BlogTagsPostsPage/index.d.ts +2 -1
- package/lib/theme/CodeBlock/Container/index.d.ts +2 -2
- package/lib/theme/CodeBlock/Content/Element.d.ts +2 -1
- package/lib/theme/CodeBlock/Content/String.d.ts +2 -1
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +2 -1
- package/lib/theme/CodeBlock/Line/index.d.ts +2 -1
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +2 -1
- package/lib/theme/CodeBlock/index.d.ts +2 -1
- package/lib/theme/CodeInline/index.d.ts +2 -1
- package/lib/theme/ColorModeToggle/index.d.ts +2 -2
- package/lib/theme/ContentVisibility/Draft/index.d.ts +2 -1
- package/lib/theme/ContentVisibility/Unlisted/index.d.ts +2 -1
- package/lib/theme/ContentVisibility/index.d.ts +2 -1
- package/lib/theme/Details/index.d.ts +2 -1
- package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +2 -1
- package/lib/theme/DocBreadcrumbs/index.d.ts +2 -1
- package/lib/theme/DocCard/index.d.ts +2 -1
- package/lib/theme/DocCardList/index.d.ts +2 -1
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +2 -1
- package/lib/theme/DocItem/Content/index.d.ts +2 -1
- package/lib/theme/DocItem/Footer/index.d.ts +2 -1
- package/lib/theme/DocItem/Layout/index.d.ts +2 -1
- package/lib/theme/DocItem/Metadata/index.d.ts +2 -1
- package/lib/theme/DocItem/Paginator/index.d.ts +2 -1
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts +2 -1
- package/lib/theme/DocItem/TOC/Mobile/index.d.ts +2 -1
- package/lib/theme/DocItem/index.d.ts +2 -1
- package/lib/theme/DocPaginator/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/Main/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/index.d.ts +2 -1
- package/lib/theme/DocRoot/index.d.ts +2 -1
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +2 -1
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +2 -1
- package/lib/theme/DocSidebar/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/Category/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/Html/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/Link/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/index.d.ts +2 -1
- package/lib/theme/DocSidebarItems/index.d.ts +2 -2
- package/lib/theme/DocTagDocListPage/index.d.ts +2 -1
- package/lib/theme/DocTagsListPage/index.d.ts +2 -1
- package/lib/theme/DocVersionBadge/index.d.ts +2 -1
- package/lib/theme/DocVersionBanner/index.d.ts +2 -1
- package/lib/theme/DocVersionRoot/index.d.ts +2 -1
- package/lib/theme/DocsRoot/index.d.ts +2 -1
- package/lib/theme/EditMetaRow/index.d.ts +8 -1
- package/lib/theme/EditThisPage/index.d.ts +2 -1
- package/lib/theme/ErrorPageContent.d.ts +2 -1
- package/lib/theme/Footer/Copyright/index.d.ts +2 -1
- package/lib/theme/Footer/Layout/index.d.ts +2 -1
- package/lib/theme/Footer/LinkItem/index.d.ts +2 -1
- package/lib/theme/Footer/LinkItem/index.js +3 -2
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +2 -1
- package/lib/theme/Footer/Links/MultiColumn/index.js +3 -2
- package/lib/theme/Footer/Links/Simple/index.d.ts +2 -1
- package/lib/theme/Footer/Links/Simple/index.js +2 -1
- package/lib/theme/Footer/Links/index.d.ts +2 -1
- package/lib/theme/Footer/Logo/index.d.ts +2 -1
- package/lib/theme/Footer/index.d.ts +2 -2
- package/lib/theme/Heading/index.d.ts +2 -1
- package/lib/theme/Icon/Arrow/index.d.ts +2 -1
- package/lib/theme/Icon/Close/index.d.ts +2 -1
- package/lib/theme/Icon/Copy/index.d.ts +2 -1
- package/lib/theme/Icon/DarkMode/index.d.ts +2 -1
- package/lib/theme/Icon/Edit/index.d.ts +2 -1
- package/lib/theme/Icon/ExternalLink/index.d.ts +2 -1
- package/lib/theme/Icon/Home/index.d.ts +2 -1
- package/lib/theme/Icon/Language/index.d.ts +2 -1
- package/lib/theme/Icon/LightMode/index.d.ts +2 -1
- package/lib/theme/Icon/Menu/index.d.ts +2 -1
- package/lib/theme/Icon/Socials/Bluesky/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Bluesky/index.js +24 -0
- package/lib/theme/Icon/Socials/Default/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/GitHub/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/GitHub/index.js +5 -5
- package/lib/theme/Icon/Socials/Instagram/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Instagram/index.js +19 -0
- package/lib/theme/Icon/Socials/Instagram/styles.module.css +14 -0
- package/lib/theme/Icon/Socials/LinkedIn/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/LinkedIn/index.js +1 -1
- package/lib/theme/Icon/Socials/Mastodon/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Mastodon/index.js +42 -0
- package/lib/theme/Icon/Socials/StackOverflow/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/Threads/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Threads/index.js +26 -0
- package/lib/theme/Icon/Socials/Threads/styles.module.css +14 -0
- package/lib/theme/Icon/Socials/Twitch/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Twitch/index.js +29 -0
- package/lib/theme/Icon/Socials/Twitter/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/Twitter/index.js +1 -1
- package/lib/theme/Icon/Socials/X/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/X/index.js +2 -2
- package/lib/theme/Icon/Socials/YouTube/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/YouTube/index.js +19 -0
- package/lib/theme/Icon/Success/index.d.ts +2 -1
- package/lib/theme/Icon/WordWrap/index.d.ts +2 -1
- package/lib/theme/LastUpdated/index.d.ts +2 -1
- package/lib/theme/Layout/Provider/index.d.ts +2 -1
- package/lib/theme/Layout/index.d.ts +2 -1
- package/lib/theme/Logo/index.d.ts +2 -1
- package/lib/theme/MDXComponents/A.d.ts +2 -1
- package/lib/theme/MDXComponents/Code.d.ts +2 -1
- package/lib/theme/MDXComponents/Details.d.ts +2 -1
- package/lib/theme/MDXComponents/Heading.d.ts +2 -1
- package/lib/theme/MDXComponents/Img/index.d.ts +2 -1
- package/lib/theme/MDXComponents/Ul/index.d.ts +2 -1
- package/lib/theme/MDXContent/index.d.ts +2 -1
- package/lib/theme/MDXPage/index.d.ts +2 -1
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +2 -1
- package/lib/theme/Navbar/Content/index.d.ts +2 -1
- package/lib/theme/Navbar/Layout/index.d.ts +2 -1
- package/lib/theme/Navbar/Logo/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +2 -1
- package/lib/theme/Navbar/Search/index.d.ts +2 -1
- package/lib/theme/Navbar/index.d.ts +2 -1
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +2 -1
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +2 -1
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +2 -1
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/index.d.ts +2 -1
- package/lib/theme/NotFound/Content/index.d.ts +2 -1
- package/lib/theme/NotFound/index.d.ts +2 -1
- package/lib/theme/PaginatorNavLink/index.d.ts +2 -1
- package/lib/theme/SearchMetadata/index.d.ts +2 -1
- package/lib/theme/SiteMetadata/index.d.ts +2 -1
- package/lib/theme/SkipToContent/index.d.ts +2 -1
- package/lib/theme/TOC/index.d.ts +2 -1
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +2 -1
- package/lib/theme/TOCCollapsible/index.d.ts +2 -1
- package/lib/theme/TOCInline/index.d.ts +2 -1
- package/lib/theme/TOCItems/Tree.d.ts +2 -2
- package/lib/theme/TOCItems/index.d.ts +2 -1
- package/lib/theme/TabItem/index.d.ts +2 -1
- package/lib/theme/Tabs/index.d.ts +2 -1
- package/lib/theme/Tabs/index.js +3 -1
- package/lib/theme/Tag/index.d.ts +2 -1
- package/lib/theme/TagsListByLetter/index.d.ts +2 -1
- package/lib/theme/TagsListInline/index.d.ts +2 -1
- package/lib/theme/ThemedImage/index.d.ts +2 -1
- package/package.json +17 -17
- package/src/options.ts +8 -6
- package/src/theme/Admonition/Icon/Danger.tsx +2 -2
- package/src/theme/Admonition/Icon/Info.tsx +2 -2
- package/src/theme/Admonition/Icon/Note.tsx +2 -2
- package/src/theme/Admonition/Icon/Tip.tsx +2 -2
- package/src/theme/Admonition/Icon/Warning.tsx +2 -2
- package/src/theme/Admonition/Layout/index.tsx +1 -1
- package/src/theme/Admonition/Type/Caution.tsx +2 -2
- package/src/theme/Admonition/Type/Danger.tsx +2 -2
- package/src/theme/Admonition/Type/Info.tsx +2 -2
- package/src/theme/Admonition/Type/Note.tsx +2 -2
- package/src/theme/Admonition/Type/Tip.tsx +2 -2
- package/src/theme/Admonition/Type/Warning.tsx +2 -2
- package/src/theme/Admonition/index.tsx +2 -2
- package/src/theme/AnnouncementBar/CloseButton/index.tsx +2 -4
- package/src/theme/AnnouncementBar/Content/index.tsx +2 -4
- package/src/theme/AnnouncementBar/index.tsx +2 -2
- package/src/theme/BackToTopButton/index.tsx +2 -2
- package/src/theme/Blog/Components/Author/Socials/index.tsx +14 -2
- package/src/theme/Blog/Components/Author/index.tsx +3 -3
- package/src/theme/Blog/Pages/BlogAuthorsPostsPage/index.tsx +4 -4
- package/src/theme/BlogArchivePage/index.tsx +2 -2
- package/src/theme/BlogLayout/index.tsx +2 -2
- package/src/theme/BlogListPage/StructuredData/index.tsx +2 -2
- package/src/theme/BlogListPage/index.tsx +4 -4
- package/src/theme/BlogListPaginator/index.tsx +2 -2
- package/src/theme/BlogPostItem/Container/index.tsx +2 -2
- package/src/theme/BlogPostItem/Content/index.tsx +2 -2
- package/src/theme/BlogPostItem/Footer/ReadMoreLink/index.tsx +2 -2
- package/src/theme/BlogPostItem/Footer/index.tsx +2 -2
- package/src/theme/BlogPostItem/Header/Authors/index.tsx +2 -2
- package/src/theme/BlogPostItem/Header/Info/index.tsx +2 -4
- package/src/theme/BlogPostItem/Header/Title/index.tsx +2 -4
- package/src/theme/BlogPostItem/Header/index.tsx +2 -2
- package/src/theme/BlogPostItem/index.tsx +2 -5
- package/src/theme/BlogPostItems/index.tsx +2 -2
- package/src/theme/BlogPostPage/Metadata/index.tsx +2 -2
- package/src/theme/BlogPostPage/StructuredData/index.tsx +2 -2
- package/src/theme/BlogPostPage/index.tsx +2 -2
- package/src/theme/BlogPostPaginator/index.tsx +2 -2
- package/src/theme/BlogSidebar/Mobile/index.tsx +3 -3
- package/src/theme/BlogSidebar/index.tsx +2 -2
- package/src/theme/BlogTagsListPage/index.tsx +2 -2
- package/src/theme/BlogTagsPostsPage/index.tsx +4 -4
- package/src/theme/CodeBlock/Container/index.tsx +2 -2
- package/src/theme/CodeBlock/Content/Element.tsx +2 -5
- package/src/theme/CodeBlock/Content/String.tsx +2 -2
- package/src/theme/CodeBlock/CopyButton/index.tsx +8 -2
- package/src/theme/CodeBlock/Line/index.tsx +2 -2
- package/src/theme/CodeBlock/WordWrapButton/index.tsx +2 -2
- package/src/theme/CodeBlock/index.tsx +1 -1
- package/src/theme/CodeInline/index.tsx +2 -2
- package/src/theme/ColorModeToggle/index.tsx +2 -2
- package/src/theme/ContentVisibility/Draft/index.tsx +2 -2
- package/src/theme/ContentVisibility/Unlisted/index.tsx +2 -2
- package/src/theme/ContentVisibility/index.tsx +2 -4
- package/src/theme/Details/index.tsx +2 -2
- package/src/theme/DocBreadcrumbs/Items/Home/index.tsx +2 -2
- package/src/theme/DocBreadcrumbs/index.tsx +3 -3
- package/src/theme/DocCard/index.tsx +5 -9
- package/src/theme/DocCardList/index.tsx +2 -2
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +4 -6
- package/src/theme/DocItem/Content/index.tsx +2 -2
- package/src/theme/DocItem/Footer/index.tsx +2 -2
- package/src/theme/DocItem/Layout/index.tsx +2 -2
- package/src/theme/DocItem/Metadata/index.tsx +2 -2
- package/src/theme/DocItem/Paginator/index.tsx +2 -2
- package/src/theme/DocItem/TOC/Desktop/index.tsx +2 -2
- package/src/theme/DocItem/TOC/Mobile/index.tsx +2 -2
- package/src/theme/DocItem/index.tsx +2 -2
- package/src/theme/DocPaginator/index.tsx +2 -2
- package/src/theme/DocRoot/Layout/Main/index.tsx +2 -2
- package/src/theme/DocRoot/Layout/Sidebar/ExpandButton/index.tsx +2 -2
- package/src/theme/DocRoot/Layout/Sidebar/index.tsx +1 -1
- package/src/theme/DocRoot/Layout/index.tsx +2 -2
- package/src/theme/DocRoot/index.tsx +2 -2
- package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +2 -2
- package/src/theme/DocSidebar/Desktop/Content/index.tsx +2 -2
- package/src/theme/DocSidebar/index.tsx +2 -2
- package/src/theme/DocSidebarItem/Category/index.tsx +7 -2
- package/src/theme/DocSidebarItem/Html/index.tsx +2 -2
- package/src/theme/DocSidebarItem/Link/index.tsx +2 -2
- package/src/theme/DocSidebarItem/index.tsx +2 -5
- package/src/theme/DocSidebarItems/index.tsx +2 -2
- package/src/theme/DocTagDocListPage/index.tsx +5 -5
- package/src/theme/DocTagsListPage/index.tsx +4 -6
- package/src/theme/DocVersionBadge/index.tsx +2 -4
- package/src/theme/DocVersionBanner/index.tsx +3 -5
- package/src/theme/DocVersionRoot/index.tsx +4 -4
- package/src/theme/DocsRoot/index.tsx +2 -2
- package/src/theme/EditMetaRow/index.tsx +2 -2
- package/src/theme/EditThisPage/index.tsx +2 -2
- package/src/theme/ErrorPageContent.tsx +2 -5
- package/src/theme/Footer/Copyright/index.tsx +2 -2
- package/src/theme/Footer/Layout/index.tsx +2 -2
- package/src/theme/Footer/LinkItem/index.tsx +5 -5
- package/src/theme/Footer/Links/MultiColumn/index.tsx +5 -4
- package/src/theme/Footer/Links/Simple/index.tsx +4 -3
- package/src/theme/Footer/Links/index.tsx +2 -2
- package/src/theme/Footer/Logo/index.tsx +2 -2
- package/src/theme/Footer/index.tsx +2 -2
- package/src/theme/Heading/index.tsx +2 -2
- package/src/theme/Icon/Arrow/index.tsx +2 -2
- package/src/theme/Icon/Close/index.tsx +2 -2
- package/src/theme/Icon/Copy/index.tsx +2 -2
- package/src/theme/Icon/DarkMode/index.tsx +2 -2
- package/src/theme/Icon/Edit/index.tsx +2 -5
- package/src/theme/Icon/ExternalLink/index.tsx +2 -2
- package/src/theme/Icon/Home/index.tsx +2 -2
- package/src/theme/Icon/Language/index.tsx +2 -2
- package/src/theme/Icon/LightMode/index.tsx +2 -2
- package/src/theme/Icon/Menu/index.tsx +2 -2
- package/src/theme/Icon/Socials/Bluesky/index.tsx +27 -0
- package/src/theme/Icon/Socials/Default/index.tsx +2 -2
- package/src/theme/Icon/Socials/GitHub/index.tsx +7 -7
- package/src/theme/Icon/Socials/Instagram/index.tsx +28 -0
- package/src/theme/Icon/Socials/Instagram/styles.module.css +14 -0
- package/src/theme/Icon/Socials/LinkedIn/index.tsx +3 -3
- package/src/theme/Icon/Socials/Mastodon/index.tsx +45 -0
- package/src/theme/Icon/Socials/StackOverflow/index.tsx +2 -2
- package/src/theme/Icon/Socials/Threads/index.tsx +30 -0
- package/src/theme/Icon/Socials/Threads/styles.module.css +14 -0
- package/src/theme/Icon/Socials/Twitch/index.tsx +37 -0
- package/src/theme/Icon/Socials/Twitter/index.tsx +3 -3
- package/src/theme/Icon/Socials/X/index.tsx +4 -4
- package/src/theme/Icon/Socials/YouTube/index.tsx +27 -0
- package/src/theme/Icon/Success/index.tsx +2 -2
- package/src/theme/Icon/WordWrap/index.tsx +2 -2
- package/src/theme/LastUpdated/index.tsx +4 -4
- package/src/theme/Layout/Provider/index.tsx +2 -2
- package/src/theme/Layout/index.tsx +2 -2
- package/src/theme/Logo/index.tsx +2 -2
- package/src/theme/MDXComponents/A.tsx +2 -2
- package/src/theme/MDXComponents/Code.tsx +2 -2
- package/src/theme/MDXComponents/Details.tsx +6 -2
- package/src/theme/MDXComponents/Heading.tsx +2 -2
- package/src/theme/MDXComponents/Img/index.tsx +2 -2
- package/src/theme/MDXComponents/Ul/index.tsx +2 -2
- package/src/theme/MDXContent/index.tsx +2 -2
- package/src/theme/MDXPage/index.tsx +2 -2
- package/src/theme/Navbar/ColorModeToggle/index.tsx +2 -4
- package/src/theme/Navbar/Content/index.tsx +2 -2
- package/src/theme/Navbar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/Logo/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Header/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/SecondaryMenu/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
- package/src/theme/Navbar/Search/index.tsx +2 -5
- package/src/theme/Navbar/index.tsx +2 -2
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DropdownNavbarItem/index.tsx +2 -2
- package/src/theme/NavbarItem/HtmlNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +2 -2
- package/src/theme/NavbarItem/NavbarNavLink.tsx +2 -2
- package/src/theme/NavbarItem/SearchNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/index.tsx +2 -2
- package/src/theme/NotFound/Content/index.tsx +2 -2
- package/src/theme/NotFound/index.tsx +2 -2
- package/src/theme/PaginatorNavLink/index.tsx +2 -2
- package/src/theme/SearchMetadata/index.tsx +2 -2
- package/src/theme/SiteMetadata/index.tsx +3 -3
- package/src/theme/SkipToContent/index.tsx +2 -2
- package/src/theme/TOC/index.tsx +2 -2
- package/src/theme/TOCCollapsible/CollapseButton/index.tsx +2 -2
- package/src/theme/TOCCollapsible/index.tsx +2 -2
- package/src/theme/TOCInline/index.tsx +2 -2
- package/src/theme/TOCItems/Tree.tsx +2 -2
- package/src/theme/TOCItems/index.tsx +2 -2
- package/src/theme/TabItem/index.tsx +2 -2
- package/src/theme/Tabs/index.tsx +6 -4
- package/src/theme/Tag/index.tsx +2 -2
- package/src/theme/TagsListByLetter/index.tsx +2 -2
- package/src/theme/TagsListInline/index.tsx +2 -2
- package/src/theme/ThemedImage/index.tsx +2 -2
- package/src/theme-classic.d.ts +406 -214
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import type {Props} from '@theme/CodeBlock/Line';
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ export default function CodeBlockLine({
|
|
|
17
17
|
showLineNumbers,
|
|
18
18
|
getLineProps,
|
|
19
19
|
getTokenProps,
|
|
20
|
-
}: Props):
|
|
20
|
+
}: Props): ReactNode {
|
|
21
21
|
if (line.length === 1 && line[0]!.content === '\n') {
|
|
22
22
|
line[0]!.content = '';
|
|
23
23
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
11
|
import type {Props} from '@theme/CodeBlock/WordWrapButton';
|
|
@@ -17,7 +17,7 @@ export default function WordWrapButton({
|
|
|
17
17
|
className,
|
|
18
18
|
onClick,
|
|
19
19
|
isEnabled,
|
|
20
|
-
}: Props):
|
|
20
|
+
}: Props): ReactNode {
|
|
21
21
|
const title = translate({
|
|
22
22
|
id: 'theme.CodeBlock.wordWrapToggle',
|
|
23
23
|
message: 'Toggle word wrap',
|
|
@@ -28,7 +28,7 @@ function maybeStringifyChildren(children: ReactNode): ReactNode {
|
|
|
28
28
|
export default function CodeBlock({
|
|
29
29
|
children: rawChildren,
|
|
30
30
|
...props
|
|
31
|
-
}: Props):
|
|
31
|
+
}: Props): ReactNode {
|
|
32
32
|
// The Prism theme on SSR is always the default theme but the site theme can
|
|
33
33
|
// be in a different mode. React hydration doesn't update DOM styles that come
|
|
34
34
|
// from SSR. Hence force a re-render after mounting to apply the current
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import type {Props} from '@theme/CodeInline';
|
|
10
10
|
|
|
11
11
|
// Simple component used to render inline code blocks
|
|
12
12
|
// its purpose is to be swizzled and customized
|
|
13
13
|
// MDX 1 used to have a inlineCode comp, see https://mdxjs.com/migrating/v2/
|
|
14
|
-
export default function CodeInline(props: Props):
|
|
14
|
+
export default function CodeInline(props: Props): ReactNode {
|
|
15
15
|
return <code {...props} />;
|
|
16
16
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
@@ -20,7 +20,7 @@ function ColorModeToggle({
|
|
|
20
20
|
buttonClassName,
|
|
21
21
|
value,
|
|
22
22
|
onChange,
|
|
23
|
-
}: Props):
|
|
23
|
+
}: Props): ReactNode {
|
|
24
24
|
const isBrowser = useIsBrowser();
|
|
25
25
|
|
|
26
26
|
const title = translate(
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {
|
|
11
11
|
ThemeClassNames,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import Admonition from '@theme/Admonition';
|
|
16
16
|
import type {Props} from '@theme/ContentVisibility/Draft';
|
|
17
17
|
|
|
18
|
-
export default function Draft({className}: Props):
|
|
18
|
+
export default function Draft({className}: Props): ReactNode {
|
|
19
19
|
return (
|
|
20
20
|
<Admonition
|
|
21
21
|
type="caution"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {
|
|
11
11
|
ThemeClassNames,
|
|
@@ -27,7 +27,7 @@ function UnlistedBanner({className}: Props) {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export default function Unlisted(props: Props):
|
|
30
|
+
export default function Unlisted(props: Props): ReactNode {
|
|
31
31
|
return (
|
|
32
32
|
<>
|
|
33
33
|
{/*
|
|
@@ -5,15 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
|
|
10
10
|
import type {Props} from '@theme/ContentVisibility';
|
|
11
11
|
import Draft from '@theme/ContentVisibility/Draft';
|
|
12
12
|
import Unlisted from '@theme/ContentVisibility/Unlisted';
|
|
13
13
|
|
|
14
|
-
export default function ContentVisibility({
|
|
15
|
-
metadata,
|
|
16
|
-
}: Props): JSX.Element | null {
|
|
14
|
+
export default function ContentVisibility({metadata}: Props): ReactNode {
|
|
17
15
|
const {unlisted, frontMatter} = metadata;
|
|
18
16
|
// Reading draft/unlisted status from frontMatter is useful to display
|
|
19
17
|
// the banners in dev mode (in dev, metadata.unlisted is always false)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {Details as DetailsGeneric} from '@docusaurus/theme-common/Details';
|
|
11
11
|
import type {Props} from '@theme/Details';
|
|
@@ -16,7 +16,7 @@ import styles from './styles.module.css';
|
|
|
16
16
|
// alert classes?
|
|
17
17
|
const InfimaClasses = 'alert alert--info';
|
|
18
18
|
|
|
19
|
-
export default function Details({...props}: Props):
|
|
19
|
+
export default function Details({...props}: Props): ReactNode {
|
|
20
20
|
return (
|
|
21
21
|
<DetailsGeneric
|
|
22
22
|
{...props}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
@@ -13,7 +13,7 @@ import IconHome from '@theme/Icon/Home';
|
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
export default function HomeBreadcrumbItem():
|
|
16
|
+
export default function HomeBreadcrumbItem(): ReactNode {
|
|
17
17
|
const homeHref = useBaseUrl('/');
|
|
18
18
|
|
|
19
19
|
return (
|
|
@@ -25,7 +25,7 @@ function BreadcrumbsItemLink({
|
|
|
25
25
|
children: ReactNode;
|
|
26
26
|
href: string | undefined;
|
|
27
27
|
isLast: boolean;
|
|
28
|
-
}):
|
|
28
|
+
}): ReactNode {
|
|
29
29
|
const className = 'breadcrumbs__link';
|
|
30
30
|
if (isLast) {
|
|
31
31
|
return (
|
|
@@ -59,7 +59,7 @@ function BreadcrumbsItem({
|
|
|
59
59
|
active?: boolean;
|
|
60
60
|
index: number;
|
|
61
61
|
addMicrodata: boolean;
|
|
62
|
-
}):
|
|
62
|
+
}): ReactNode {
|
|
63
63
|
return (
|
|
64
64
|
<li
|
|
65
65
|
{...(addMicrodata && {
|
|
@@ -76,7 +76,7 @@ function BreadcrumbsItem({
|
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export default function DocBreadcrumbs():
|
|
79
|
+
export default function DocBreadcrumbs(): ReactNode {
|
|
80
80
|
const breadcrumbs = useSidebarBreadcrumbs();
|
|
81
81
|
const homePageRoute = useHomePageRoute();
|
|
82
82
|
|
|
@@ -48,7 +48,7 @@ function CardContainer({
|
|
|
48
48
|
}: {
|
|
49
49
|
href: string;
|
|
50
50
|
children: ReactNode;
|
|
51
|
-
}):
|
|
51
|
+
}): ReactNode {
|
|
52
52
|
return (
|
|
53
53
|
<Link
|
|
54
54
|
href={href}
|
|
@@ -68,7 +68,7 @@ function CardLayout({
|
|
|
68
68
|
icon: ReactNode;
|
|
69
69
|
title: string;
|
|
70
70
|
description?: string;
|
|
71
|
-
}):
|
|
71
|
+
}): ReactNode {
|
|
72
72
|
return (
|
|
73
73
|
<CardContainer href={href}>
|
|
74
74
|
<Heading
|
|
@@ -88,11 +88,7 @@ function CardLayout({
|
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function CardCategory({
|
|
92
|
-
item,
|
|
93
|
-
}: {
|
|
94
|
-
item: PropSidebarItemCategory;
|
|
95
|
-
}): JSX.Element | null {
|
|
91
|
+
function CardCategory({item}: {item: PropSidebarItemCategory}): ReactNode {
|
|
96
92
|
const href = findFirstSidebarItemLink(item);
|
|
97
93
|
const categoryItemsPlural = useCategoryItemsPlural();
|
|
98
94
|
|
|
@@ -111,7 +107,7 @@ function CardCategory({
|
|
|
111
107
|
);
|
|
112
108
|
}
|
|
113
109
|
|
|
114
|
-
function CardLink({item}: {item: PropSidebarItemLink}):
|
|
110
|
+
function CardLink({item}: {item: PropSidebarItemLink}): ReactNode {
|
|
115
111
|
const icon = isInternalUrl(item.href) ? '📄️' : '🔗';
|
|
116
112
|
const doc = useDocById(item.docId ?? undefined);
|
|
117
113
|
return (
|
|
@@ -124,7 +120,7 @@ function CardLink({item}: {item: PropSidebarItemLink}): JSX.Element {
|
|
|
124
120
|
);
|
|
125
121
|
}
|
|
126
122
|
|
|
127
|
-
export default function DocCard({item}: Props):
|
|
123
|
+
export default function DocCard({item}: Props): ReactNode {
|
|
128
124
|
switch (item.type) {
|
|
129
125
|
case 'link':
|
|
130
126
|
return <CardLink item={item} />;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {
|
|
11
11
|
useCurrentSidebarCategory,
|
|
@@ -19,7 +19,7 @@ function DocCardListForCurrentSidebarCategory({className}: Props) {
|
|
|
19
19
|
return <DocCardList items={category.items} className={className} />;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export default function DocCardList(props: Props):
|
|
22
|
+
export default function DocCardList(props: Props): ReactNode {
|
|
23
23
|
const {items, className} = props;
|
|
24
24
|
if (!items) {
|
|
25
25
|
return <DocCardListForCurrentSidebarCategory {...props} />;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
10
10
|
import {useCurrentSidebarCategory} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
@@ -21,7 +21,7 @@ import styles from './styles.module.css';
|
|
|
21
21
|
|
|
22
22
|
function DocCategoryGeneratedIndexPageMetadata({
|
|
23
23
|
categoryGeneratedIndex,
|
|
24
|
-
}: Props):
|
|
24
|
+
}: Props): ReactNode {
|
|
25
25
|
return (
|
|
26
26
|
<PageMetadata
|
|
27
27
|
title={categoryGeneratedIndex.title}
|
|
@@ -35,7 +35,7 @@ function DocCategoryGeneratedIndexPageMetadata({
|
|
|
35
35
|
|
|
36
36
|
function DocCategoryGeneratedIndexPageContent({
|
|
37
37
|
categoryGeneratedIndex,
|
|
38
|
-
}: Props):
|
|
38
|
+
}: Props): ReactNode {
|
|
39
39
|
const category = useCurrentSidebarCategory();
|
|
40
40
|
return (
|
|
41
41
|
<div className={styles.generatedIndexPage}>
|
|
@@ -63,9 +63,7 @@ function DocCategoryGeneratedIndexPageContent({
|
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export default function DocCategoryGeneratedIndexPage(
|
|
67
|
-
props: Props,
|
|
68
|
-
): JSX.Element {
|
|
66
|
+
export default function DocCategoryGeneratedIndexPage(props: Props): ReactNode {
|
|
69
67
|
return (
|
|
70
68
|
<>
|
|
71
69
|
<DocCategoryGeneratedIndexPageMetadata {...props} />
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
@@ -33,7 +33,7 @@ function useSyntheticTitle(): string | null {
|
|
|
33
33
|
return metadata.title;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export default function DocItemContent({children}: Props):
|
|
36
|
+
export default function DocItemContent({children}: Props): ReactNode {
|
|
37
37
|
const syntheticTitle = useSyntheticTitle();
|
|
38
38
|
return (
|
|
39
39
|
<div className={clsx(ThemeClassNames.docs.docMarkdown, 'markdown')}>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
@@ -13,7 +13,7 @@ import TagsListInline from '@theme/TagsListInline';
|
|
|
13
13
|
|
|
14
14
|
import EditMetaRow from '@theme/EditMetaRow';
|
|
15
15
|
|
|
16
|
-
export default function DocItemFooter():
|
|
16
|
+
export default function DocItemFooter(): ReactNode {
|
|
17
17
|
const {metadata} = useDoc();
|
|
18
18
|
const {editUrl, lastUpdatedAt, lastUpdatedBy, tags} = metadata;
|
|
19
19
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {useWindowSize} from '@docusaurus/theme-common';
|
|
11
11
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
@@ -46,7 +46,7 @@ function useDocTOC() {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export default function DocItemLayout({children}: Props):
|
|
49
|
+
export default function DocItemLayout({children}: Props): ReactNode {
|
|
50
50
|
const docTOC = useDocTOC();
|
|
51
51
|
const {metadata} = useDoc();
|
|
52
52
|
return (
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
10
10
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
|
|
12
|
-
export default function DocItemMetadata():
|
|
12
|
+
export default function DocItemMetadata(): ReactNode {
|
|
13
13
|
const {metadata, frontMatter, assets} = useDoc();
|
|
14
14
|
return (
|
|
15
15
|
<PageMetadata
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
import DocPaginator from '@theme/DocPaginator';
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ import DocPaginator from '@theme/DocPaginator';
|
|
|
13
13
|
* This extra component is needed, because <DocPaginator> should remain generic.
|
|
14
14
|
* DocPaginator is used in non-docs contexts too: generated-index pages...
|
|
15
15
|
*/
|
|
16
|
-
export default function DocItemPaginator():
|
|
16
|
+
export default function DocItemPaginator(): ReactNode {
|
|
17
17
|
const {metadata} = useDoc();
|
|
18
18
|
return <DocPaginator previous={metadata.previous} next={metadata.next} />;
|
|
19
19
|
}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
10
10
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
|
|
12
12
|
import TOC from '@theme/TOC';
|
|
13
13
|
|
|
14
|
-
export default function DocItemTOCDesktop():
|
|
14
|
+
export default function DocItemTOCDesktop(): ReactNode {
|
|
15
15
|
const {toc, frontMatter} = useDoc();
|
|
16
16
|
return (
|
|
17
17
|
<TOC
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
@@ -14,7 +14,7 @@ import TOCCollapsible from '@theme/TOCCollapsible';
|
|
|
14
14
|
|
|
15
15
|
import styles from './styles.module.css';
|
|
16
16
|
|
|
17
|
-
export default function DocItemTOCMobile():
|
|
17
|
+
export default function DocItemTOCMobile(): ReactNode {
|
|
18
18
|
const {toc, frontMatter} = useDoc();
|
|
19
19
|
return (
|
|
20
20
|
<TOCCollapsible
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {HtmlClassNameProvider} from '@docusaurus/theme-common';
|
|
10
10
|
import {DocProvider} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import DocItemMetadata from '@theme/DocItem/Metadata';
|
|
12
12
|
import DocItemLayout from '@theme/DocItem/Layout';
|
|
13
13
|
import type {Props} from '@theme/DocItem';
|
|
14
14
|
|
|
15
|
-
export default function DocItem(props: Props):
|
|
15
|
+
export default function DocItem(props: Props): ReactNode {
|
|
16
16
|
const docHtmlClassName = `docs-doc-id-${props.content.metadata.id}`;
|
|
17
17
|
const MDXComponent = props.content;
|
|
18
18
|
return (
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
10
10
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
11
11
|
import type {Props} from '@theme/DocPaginator';
|
|
12
12
|
|
|
13
|
-
export default function DocPaginator(props: Props):
|
|
13
|
+
export default function DocPaginator(props: Props): ReactNode {
|
|
14
14
|
const {previous, next} = props;
|
|
15
15
|
return (
|
|
16
16
|
<nav
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {useDocsSidebar} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import type {Props} from '@theme/DocRoot/Layout/Main';
|
|
@@ -15,7 +15,7 @@ import styles from './styles.module.css';
|
|
|
15
15
|
export default function DocRootLayoutMain({
|
|
16
16
|
hiddenSidebarContainer,
|
|
17
17
|
children,
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
const sidebar = useDocsSidebar();
|
|
20
20
|
return (
|
|
21
21
|
<main
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
10
|
import IconArrow from '@theme/Icon/Arrow';
|
|
11
11
|
import type {Props} from '@theme/DocRoot/Layout/Sidebar/ExpandButton';
|
|
@@ -14,7 +14,7 @@ import styles from './styles.module.css';
|
|
|
14
14
|
|
|
15
15
|
export default function DocRootLayoutSidebarExpandButton({
|
|
16
16
|
toggleSidebar,
|
|
17
|
-
}: Props):
|
|
17
|
+
}: Props): ReactNode {
|
|
18
18
|
return (
|
|
19
19
|
<div
|
|
20
20
|
className={styles.expandButton}
|
|
@@ -32,7 +32,7 @@ export default function DocRootLayoutSidebar({
|
|
|
32
32
|
sidebar,
|
|
33
33
|
hiddenSidebarContainer,
|
|
34
34
|
setHiddenSidebarContainer,
|
|
35
|
-
}: Props):
|
|
35
|
+
}: Props): ReactNode {
|
|
36
36
|
const {pathname} = useLocation();
|
|
37
37
|
|
|
38
38
|
const [hiddenSidebar, setHiddenSidebar] = useState(false);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {useState} from 'react';
|
|
8
|
+
import React, {type ReactNode, useState} from 'react';
|
|
9
9
|
import {useDocsSidebar} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
import BackToTopButton from '@theme/BackToTopButton';
|
|
11
11
|
import DocRootLayoutSidebar from '@theme/DocRoot/Layout/Sidebar';
|
|
@@ -14,7 +14,7 @@ import type {Props} from '@theme/DocRoot/Layout';
|
|
|
14
14
|
|
|
15
15
|
import styles from './styles.module.css';
|
|
16
16
|
|
|
17
|
-
export default function DocRootLayout({children}: Props):
|
|
17
|
+
export default function DocRootLayout({children}: Props): ReactNode {
|
|
18
18
|
const sidebar = useDocsSidebar();
|
|
19
19
|
const [hiddenSidebarContainer, setHiddenSidebarContainer] = useState(false);
|
|
20
20
|
return (
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {HtmlClassNameProvider, ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import {
|
|
@@ -16,7 +16,7 @@ import DocRootLayout from '@theme/DocRoot/Layout';
|
|
|
16
16
|
import NotFoundContent from '@theme/NotFound/Content';
|
|
17
17
|
import type {Props} from '@theme/DocRoot';
|
|
18
18
|
|
|
19
|
-
export default function DocRoot(props: Props):
|
|
19
|
+
export default function DocRoot(props: Props): ReactNode {
|
|
20
20
|
const currentDocRouteMetadata = useDocRootMetadata(props);
|
|
21
21
|
if (!currentDocRouteMetadata) {
|
|
22
22
|
// We only render the not found content to avoid a double layout
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
11
|
import IconArrow from '@theme/Icon/Arrow';
|
|
@@ -13,7 +13,7 @@ import type {Props} from '@theme/DocSidebar/Desktop/CollapseButton';
|
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
export default function CollapseButton({onClick}: Props):
|
|
16
|
+
export default function CollapseButton({onClick}: Props): ReactNode {
|
|
17
17
|
return (
|
|
18
18
|
<button
|
|
19
19
|
type="button"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {useState} from 'react';
|
|
8
|
+
import React, {type ReactNode, useState} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import {
|
|
@@ -37,7 +37,7 @@ export default function DocSidebarDesktopContent({
|
|
|
37
37
|
path,
|
|
38
38
|
sidebar,
|
|
39
39
|
className,
|
|
40
|
-
}: Props):
|
|
40
|
+
}: Props): ReactNode {
|
|
41
41
|
const showAnnouncementBar = useShowAnnouncementBar();
|
|
42
42
|
|
|
43
43
|
return (
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useWindowSize} from '@docusaurus/theme-common';
|
|
10
10
|
import DocSidebarDesktop from '@theme/DocSidebar/Desktop';
|
|
11
11
|
import DocSidebarMobile from '@theme/DocSidebar/Mobile';
|
|
12
12
|
import type {Props} from '@theme/DocSidebar';
|
|
13
13
|
|
|
14
|
-
export default function DocSidebar(props: Props):
|
|
14
|
+
export default function DocSidebar(props: Props): ReactNode {
|
|
15
15
|
const windowSize = useWindowSize();
|
|
16
16
|
|
|
17
17
|
// Desktop sidebar visible on hydration: need SSR rendering
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
type ComponentProps,
|
|
10
|
+
type ReactNode,
|
|
11
|
+
useEffect,
|
|
12
|
+
useMemo,
|
|
13
|
+
} from 'react';
|
|
9
14
|
import clsx from 'clsx';
|
|
10
15
|
import {
|
|
11
16
|
ThemeClassNames,
|
|
@@ -116,7 +121,7 @@ export default function DocSidebarItemCategory({
|
|
|
116
121
|
level,
|
|
117
122
|
index,
|
|
118
123
|
...props
|
|
119
|
-
}: Props):
|
|
124
|
+
}: Props): ReactNode {
|
|
120
125
|
const {items, label, collapsible, className, href} = item;
|
|
121
126
|
const {
|
|
122
127
|
docs: {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import type {Props} from '@theme/DocSidebarItem/Html';
|
|
@@ -16,7 +16,7 @@ export default function DocSidebarItemHtml({
|
|
|
16
16
|
item,
|
|
17
17
|
level,
|
|
18
18
|
index,
|
|
19
|
-
}: Props):
|
|
19
|
+
}: Props): ReactNode {
|
|
20
20
|
const {value, defaultStyle, className} = item;
|
|
21
21
|
return (
|
|
22
22
|
<li
|