@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
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/NavbarItem/HtmlNavbarItem';
|
|
8
|
-
export default function HtmlNavbarItem({ value, className, mobile, isDropdownItem, }: Props):
|
|
9
|
+
export default function HtmlNavbarItem({ value, className, mobile, isDropdownItem, }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/NavbarItem/LocaleDropdownNavbarItem';
|
|
8
|
-
export default function LocaleDropdownNavbarItem({ mobile, dropdownItemsBefore, dropdownItemsAfter, queryString, ...props }: Props):
|
|
9
|
+
export default function LocaleDropdownNavbarItem({ mobile, dropdownItemsBefore, dropdownItemsAfter, queryString, ...props }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/NavbarItem/NavbarNavLink';
|
|
8
|
-
export default function NavbarNavLink({ activeBasePath, activeBaseRegex, to, href, label, html, isDropdownLink, prependBaseUrlToHref, ...props }: Props):
|
|
9
|
+
export default function NavbarNavLink({ activeBasePath, activeBaseRegex, to, href, label, html, isDropdownLink, prependBaseUrlToHref, ...props }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/NavbarItem/SearchNavbarItem';
|
|
8
|
-
export default function SearchNavbarItem({ mobile, className, }: Props):
|
|
9
|
+
export default function SearchNavbarItem({ mobile, className, }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/NavbarItem';
|
|
8
|
-
export default function NavbarItem({ type, ...props }: Props):
|
|
9
|
+
export default function NavbarItem({ type, ...props }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/NotFound/Content';
|
|
8
|
-
export default function NotFoundContent({ className }: Props):
|
|
9
|
+
export default function NotFoundContent({ className }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/PaginatorNavLink';
|
|
8
|
-
export default function PaginatorNavLink(props: Props):
|
|
9
|
+
export default function PaginatorNavLink(props: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/SearchMetadata';
|
|
8
|
-
export default function SearchMetadata({ locale, version, tag, }: Props):
|
|
9
|
+
export default function SearchMetadata({ locale, version, tag, }: Props): ReactNode;
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
export default function SiteMetadata(): ReactNode;
|
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
export default function SkipToContent(): ReactNode;
|
package/lib/theme/TOC/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TOC';
|
|
8
|
-
export default function TOC({ className, ...props }: Props):
|
|
9
|
+
export default function TOC({ className, ...props }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TOCCollapsible/CollapseButton';
|
|
8
|
-
export default function TOCCollapsibleCollapseButton({ collapsed, ...props }: Props):
|
|
9
|
+
export default function TOCCollapsibleCollapseButton({ collapsed, ...props }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TOCCollapsible';
|
|
8
|
-
export default function TOCCollapsible({ toc, className, minHeadingLevel, maxHeadingLevel, }: Props):
|
|
9
|
+
export default function TOCCollapsible({ toc, className, minHeadingLevel, maxHeadingLevel, }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TOCInline';
|
|
8
|
-
export default function TOCInline({ toc, minHeadingLevel, maxHeadingLevel, }: Props):
|
|
9
|
+
export default function TOCInline({ toc, minHeadingLevel, maxHeadingLevel, }: Props): ReactNode;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, { type ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/TOCItems/Tree';
|
|
9
|
-
declare function TOCItemTree({ toc, className, linkClassName, isChild, }: Props):
|
|
9
|
+
declare function TOCItemTree({ toc, className, linkClassName, isChild, }: Props): ReactNode;
|
|
10
10
|
declare const _default: React.MemoExoticComponent<typeof TOCItemTree>;
|
|
11
11
|
export default _default;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TOCItems';
|
|
8
|
-
export default function TOCItems({ toc, className, linkClassName, linkActiveClassName, minHeadingLevel: minHeadingLevelOption, maxHeadingLevel: maxHeadingLevelOption, ...props }: Props):
|
|
9
|
+
export default function TOCItems({ toc, className, linkClassName, linkActiveClassName, minHeadingLevel: minHeadingLevelOption, maxHeadingLevel: maxHeadingLevelOption, ...props }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TabItem';
|
|
8
|
-
export default function TabItem({ children, hidden, className, }: Props):
|
|
9
|
+
export default function TabItem({ children, hidden, className, }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/Tabs';
|
|
8
|
-
export default function Tabs(props: Props):
|
|
9
|
+
export default function Tabs(props: Props): ReactNode;
|
package/lib/theme/Tabs/index.js
CHANGED
|
@@ -66,7 +66,9 @@ function TabList({className, block, selectedValue, selectValue, tabValues}) {
|
|
|
66
66
|
tabIndex={selectedValue === value ? 0 : -1}
|
|
67
67
|
aria-selected={selectedValue === value}
|
|
68
68
|
key={value}
|
|
69
|
-
ref={(tabControl) =>
|
|
69
|
+
ref={(tabControl) => {
|
|
70
|
+
tabRefs.push(tabControl);
|
|
71
|
+
}}
|
|
70
72
|
onKeyDown={handleKeydown}
|
|
71
73
|
onClick={handleTabChange}
|
|
72
74
|
{...attributes}
|
package/lib/theme/Tag/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/Tag';
|
|
8
|
-
export default function Tag({ permalink, label, count, description, }: Props):
|
|
9
|
+
export default function Tag({ permalink, label, count, description, }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TagsListByLetter';
|
|
8
|
-
export default function TagsListByLetter({ tags }: Props):
|
|
9
|
+
export default function TagsListByLetter({ tags }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/TagsListInline';
|
|
8
|
-
export default function TagsListInline({ tags }: Props):
|
|
9
|
+
export default function TagsListInline({ tags }: Props): ReactNode;
|
|
@@ -4,5 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
7
8
|
import type { Props } from '@theme/ThemedImage';
|
|
8
|
-
export default function ThemedImage(props: Props):
|
|
9
|
+
export default function ThemedImage(props: Props): ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "3.
|
|
24
|
-
"@docusaurus/logger": "3.
|
|
25
|
-
"@docusaurus/mdx-loader": "3.
|
|
26
|
-
"@docusaurus/module-type-aliases": "3.
|
|
27
|
-
"@docusaurus/plugin-content-blog": "3.
|
|
28
|
-
"@docusaurus/plugin-content-docs": "3.
|
|
29
|
-
"@docusaurus/plugin-content-pages": "3.
|
|
30
|
-
"@docusaurus/theme-common": "3.
|
|
31
|
-
"@docusaurus/theme-translations": "3.
|
|
32
|
-
"@docusaurus/types": "3.
|
|
33
|
-
"@docusaurus/utils": "3.
|
|
34
|
-
"@docusaurus/utils-common": "3.
|
|
35
|
-
"@docusaurus/utils-validation": "3.
|
|
23
|
+
"@docusaurus/core": "3.7.0",
|
|
24
|
+
"@docusaurus/logger": "3.7.0",
|
|
25
|
+
"@docusaurus/mdx-loader": "3.7.0",
|
|
26
|
+
"@docusaurus/module-type-aliases": "3.7.0",
|
|
27
|
+
"@docusaurus/plugin-content-blog": "3.7.0",
|
|
28
|
+
"@docusaurus/plugin-content-docs": "3.7.0",
|
|
29
|
+
"@docusaurus/plugin-content-pages": "3.7.0",
|
|
30
|
+
"@docusaurus/theme-common": "3.7.0",
|
|
31
|
+
"@docusaurus/theme-translations": "3.7.0",
|
|
32
|
+
"@docusaurus/types": "3.7.0",
|
|
33
|
+
"@docusaurus/utils": "3.7.0",
|
|
34
|
+
"@docusaurus/utils-common": "3.7.0",
|
|
35
|
+
"@docusaurus/utils-validation": "3.7.0",
|
|
36
36
|
"@mdx-js/react": "^3.0.0",
|
|
37
37
|
"clsx": "^2.0.0",
|
|
38
38
|
"copy-text-to-clipboard": "^3.2.0",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"utility-types": "^3.10.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"react": "^18.0.0",
|
|
60
|
-
"react-dom": "^18.0.0"
|
|
59
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
60
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=18.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "dd59750c16fe6908a26f18806a54d4c3dbe6db43"
|
|
66
66
|
}
|
package/src/options.ts
CHANGED
|
@@ -308,6 +308,7 @@ const FooterLinkItemSchema = Joi.object({
|
|
|
308
308
|
href: URISchema,
|
|
309
309
|
html: Joi.string(),
|
|
310
310
|
label: Joi.string(),
|
|
311
|
+
className: Joi.string(),
|
|
311
312
|
})
|
|
312
313
|
.xor('to', 'href', 'html')
|
|
313
314
|
.with('to', 'label')
|
|
@@ -317,6 +318,12 @@ const FooterLinkItemSchema = Joi.object({
|
|
|
317
318
|
// attributes like target, aria-role, data-customAttribute...)
|
|
318
319
|
.unknown();
|
|
319
320
|
|
|
321
|
+
const FooterColumnItemSchema = Joi.object({
|
|
322
|
+
title: Joi.string().allow(null).default(null),
|
|
323
|
+
className: Joi.string(),
|
|
324
|
+
items: Joi.array().items(FooterLinkItemSchema).default([]),
|
|
325
|
+
});
|
|
326
|
+
|
|
320
327
|
const LogoSchema = Joi.object({
|
|
321
328
|
alt: Joi.string().allow(''),
|
|
322
329
|
src: Joi.string().required(),
|
|
@@ -384,12 +391,7 @@ export const ThemeConfigSchema = Joi.object<ThemeConfig>({
|
|
|
384
391
|
logo: LogoSchema,
|
|
385
392
|
copyright: Joi.string(),
|
|
386
393
|
links: Joi.alternatives(
|
|
387
|
-
Joi.array().items(
|
|
388
|
-
Joi.object({
|
|
389
|
-
title: Joi.string().allow(null).default(null),
|
|
390
|
-
items: Joi.array().items(FooterLinkItemSchema).default([]),
|
|
391
|
-
}),
|
|
392
|
-
),
|
|
394
|
+
Joi.array().items(FooterColumnItemSchema),
|
|
393
395
|
Joi.array().items(FooterLinkItemSchema),
|
|
394
396
|
)
|
|
395
397
|
.messages({
|
|
@@ -5,10 +5,10 @@
|
|
|
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/Admonition/Icon/Danger';
|
|
10
10
|
|
|
11
|
-
export default function AdmonitionIconDanger(props: Props):
|
|
11
|
+
export default function AdmonitionIconDanger(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 12 16" {...props}>
|
|
14
14
|
<path
|
|
@@ -5,10 +5,10 @@
|
|
|
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/Admonition/Icon/Info';
|
|
10
10
|
|
|
11
|
-
export default function AdmonitionIconInfo(props: Props):
|
|
11
|
+
export default function AdmonitionIconInfo(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 14 16" {...props}>
|
|
14
14
|
<path
|
|
@@ -5,10 +5,10 @@
|
|
|
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/Admonition/Icon/Note';
|
|
10
10
|
|
|
11
|
-
export default function AdmonitionIconNote(props: Props):
|
|
11
|
+
export default function AdmonitionIconNote(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 14 16" {...props}>
|
|
14
14
|
<path
|
|
@@ -5,10 +5,10 @@
|
|
|
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/Admonition/Icon/Tip';
|
|
10
10
|
|
|
11
|
-
export default function AdmonitionIconTip(props: Props):
|
|
11
|
+
export default function AdmonitionIconTip(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 12 16" {...props}>
|
|
14
14
|
<path
|
|
@@ -5,10 +5,10 @@
|
|
|
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/Admonition/Icon/Warning';
|
|
10
10
|
|
|
11
|
-
export default function AdmonitionIconCaution(props: Props):
|
|
11
|
+
export default function AdmonitionIconCaution(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 16 16" {...props}>
|
|
14
14
|
<path
|
|
@@ -46,7 +46,7 @@ function AdmonitionContent({children}: Pick<Props, 'children'>) {
|
|
|
46
46
|
) : null;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export default function AdmonitionLayout(props: Props):
|
|
49
|
+
export default function AdmonitionLayout(props: Props): ReactNode {
|
|
50
50
|
const {type, icon, title, children, className} = props;
|
|
51
51
|
return (
|
|
52
52
|
<AdmonitionContainer type={type} className={className}>
|
|
@@ -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/Admonition/Type/Caution';
|
|
@@ -27,7 +27,7 @@ const defaultProps = {
|
|
|
27
27
|
|
|
28
28
|
// TODO remove before v4: Caution replaced by Warning
|
|
29
29
|
// see https://github.com/facebook/docusaurus/issues/7558
|
|
30
|
-
export default function AdmonitionTypeCaution(props: Props):
|
|
30
|
+
export default function AdmonitionTypeCaution(props: Props): ReactNode {
|
|
31
31
|
return (
|
|
32
32
|
<AdmonitionLayout
|
|
33
33
|
{...defaultProps}
|
|
@@ -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/Admonition/Type/Danger';
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
),
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export default function AdmonitionTypeDanger(props: Props):
|
|
28
|
+
export default function AdmonitionTypeDanger(props: Props): ReactNode {
|
|
29
29
|
return (
|
|
30
30
|
<AdmonitionLayout
|
|
31
31
|
{...defaultProps}
|
|
@@ -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/Admonition/Type/Info';
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
),
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export default function AdmonitionTypeInfo(props: Props):
|
|
28
|
+
export default function AdmonitionTypeInfo(props: Props): ReactNode {
|
|
29
29
|
return (
|
|
30
30
|
<AdmonitionLayout
|
|
31
31
|
{...defaultProps}
|
|
@@ -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/Admonition/Type/Note';
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
),
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export default function AdmonitionTypeNote(props: Props):
|
|
28
|
+
export default function AdmonitionTypeNote(props: Props): ReactNode {
|
|
29
29
|
return (
|
|
30
30
|
<AdmonitionLayout
|
|
31
31
|
{...defaultProps}
|
|
@@ -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/Admonition/Type/Tip';
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
),
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export default function AdmonitionTypeTip(props: Props):
|
|
28
|
+
export default function AdmonitionTypeTip(props: Props): ReactNode {
|
|
29
29
|
return (
|
|
30
30
|
<AdmonitionLayout
|
|
31
31
|
{...defaultProps}
|
|
@@ -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/Admonition/Type/Warning';
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
),
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
export default function AdmonitionTypeWarning(props: Props):
|
|
28
|
+
export default function AdmonitionTypeWarning(props: Props): ReactNode {
|
|
29
29
|
return (
|
|
30
30
|
<AdmonitionLayout
|
|
31
31
|
{...defaultProps}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {type ComponentType} from 'react';
|
|
8
|
+
import React, {type ComponentType, type ReactNode} from 'react';
|
|
9
9
|
import {processAdmonitionProps} from '@docusaurus/theme-common';
|
|
10
10
|
import type {Props} from '@theme/Admonition';
|
|
11
11
|
import AdmonitionTypes from '@theme/Admonition/Types';
|
|
@@ -21,7 +21,7 @@ function getAdmonitionTypeComponent(type: string): ComponentType<Props> {
|
|
|
21
21
|
return AdmonitionTypes.info!;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export default function Admonition(unprocessedProps: Props):
|
|
24
|
+
export default function Admonition(unprocessedProps: Props): ReactNode {
|
|
25
25
|
const props = processAdmonitionProps(unprocessedProps);
|
|
26
26
|
const AdmonitionTypeComponent = getAdmonitionTypeComponent(props.type);
|
|
27
27
|
return <AdmonitionTypeComponent {...props} />;
|
|
@@ -5,16 +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 clsx from 'clsx';
|
|
10
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
11
|
import IconClose from '@theme/Icon/Close';
|
|
12
12
|
import type {Props} from '@theme/AnnouncementBar/CloseButton';
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
15
|
-
export default function AnnouncementBarCloseButton(
|
|
16
|
-
props: Props,
|
|
17
|
-
): JSX.Element | null {
|
|
15
|
+
export default function AnnouncementBarCloseButton(props: Props): ReactNode {
|
|
18
16
|
return (
|
|
19
17
|
<button
|
|
20
18
|
type="button"
|
|
@@ -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
|
import clsx from 'clsx';
|
|
10
10
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
11
11
|
import type {Props} from '@theme/AnnouncementBar/Content';
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
export default function AnnouncementBarContent(
|
|
15
|
-
props: Props,
|
|
16
|
-
): JSX.Element | null {
|
|
14
|
+
export default function AnnouncementBarContent(props: Props): ReactNode {
|
|
17
15
|
const {announcementBar} = useThemeConfig();
|
|
18
16
|
const {content} = announcementBar!;
|
|
19
17
|
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 {useThemeConfig} from '@docusaurus/theme-common';
|
|
10
10
|
import {useAnnouncementBar} from '@docusaurus/theme-common/internal';
|
|
11
11
|
import AnnouncementBarCloseButton from '@theme/AnnouncementBar/CloseButton';
|
|
@@ -13,7 +13,7 @@ import AnnouncementBarContent from '@theme/AnnouncementBar/Content';
|
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
export default function AnnouncementBar():
|
|
16
|
+
export default function AnnouncementBar(): ReactNode {
|
|
17
17
|
const {announcementBar} = useThemeConfig();
|
|
18
18
|
const {isActive, close} = useAnnouncementBar();
|
|
19
19
|
if (!isActive) {
|
|
@@ -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 {ThemeClassNames} from '@docusaurus/theme-common';
|
|
@@ -13,7 +13,7 @@ import {useBackToTopButton} from '@docusaurus/theme-common/internal';
|
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
export default function BackToTopButton():
|
|
16
|
+
export default function BackToTopButton(): ReactNode {
|
|
17
17
|
const {shown, scrollToTop} = useBackToTopButton({threshold: 300});
|
|
18
18
|
return (
|
|
19
19
|
<button
|