@docusaurus/theme-classic 0.0.0-5009 → 0.0.0-5014

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.
Files changed (156) hide show
  1. package/lib/index.js +2 -2
  2. package/lib-next/theme/BlogArchivePage/index.js +1 -1
  3. package/lib-next/theme/BlogListPage/index.js +4 -4
  4. package/lib-next/theme/BlogPostItem/index.js +2 -2
  5. package/lib-next/theme/BlogPostPage/index.js +4 -4
  6. package/lib-next/theme/BlogSidebar/index.js +1 -1
  7. package/lib-next/theme/BlogTagsListPage/index.js +3 -3
  8. package/lib-next/theme/BlogTagsPostsPage/index.js +5 -4
  9. package/lib-next/theme/CodeBlock/Content/Element.js +1 -1
  10. package/lib-next/theme/CodeBlock/Content/String.js +1 -1
  11. package/lib-next/theme/CodeBlock/index.js +1 -1
  12. package/lib-next/theme/ColorModeToggle/index.js +1 -1
  13. package/lib-next/theme/DocBreadcrumbs/index.js +3 -3
  14. package/lib-next/theme/DocCard/index.js +2 -2
  15. package/lib-next/theme/DocCardList/index.js +1 -1
  16. package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +1 -1
  17. package/lib-next/theme/DocItem/index.js +7 -7
  18. package/lib-next/theme/DocItemFooter/index.js +1 -1
  19. package/lib-next/theme/DocPage/Layout/Main/index.js +1 -1
  20. package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +1 -1
  21. package/lib-next/theme/DocPage/Layout/Sidebar/index.js +4 -4
  22. package/lib-next/theme/DocPage/Layout/Sidebar/{index.module.css → styles.module.css} +0 -0
  23. package/lib-next/theme/DocPage/Layout/index.js +2 -2
  24. package/lib-next/theme/DocPage/Layout/{index.module.css → styles.module.css} +0 -0
  25. package/lib-next/theme/DocPage/index.js +2 -2
  26. package/lib-next/theme/DocSidebar/Desktop/CollapseButton/index.js +1 -1
  27. package/lib-next/theme/DocSidebarItem/{Category.js → Category/index.js} +3 -2
  28. package/lib-next/theme/DocSidebarItem/{Html.js → Html/index.js} +1 -1
  29. package/lib-next/theme/DocSidebarItem/{Html.module.css → Html/styles.module.css} +0 -0
  30. package/lib-next/theme/DocSidebarItem/{Link.js → Link/index.js} +1 -1
  31. package/lib-next/theme/DocSidebarItem/{Link.module.css → Link/styles.module.css} +0 -0
  32. package/lib-next/theme/DocSidebarItems/index.js +1 -1
  33. package/lib-next/theme/DocTagDocListPage/index.js +3 -2
  34. package/lib-next/theme/DocTagsListPage/index.js +2 -2
  35. package/lib-next/theme/DocVersionBadge/index.js +1 -1
  36. package/lib-next/theme/DocVersionBanner/index.js +1 -1
  37. package/lib-next/theme/EditThisPage/index.js +1 -1
  38. package/lib-next/theme/Footer/Logo/index.js +1 -1
  39. package/lib-next/theme/Layout/index.js +5 -5
  40. package/lib-next/theme/Logo/index.js +1 -1
  41. package/lib-next/theme/MDXComponents/{Img.js → Img/index.js} +1 -1
  42. package/lib-next/theme/MDXComponents/{Img.module.css → Img/styles.module.css} +0 -0
  43. package/lib-next/theme/MDXComponents/Ul.js +2 -2
  44. package/lib-next/theme/MDXPage/index.js +3 -3
  45. package/lib-next/theme/Navbar/ColorModeToggle/index.js +1 -1
  46. package/lib-next/theme/Navbar/Content/index.js +3 -3
  47. package/lib-next/theme/Navbar/Layout/index.js +1 -1
  48. package/lib-next/theme/Navbar/MobileSidebar/Header/index.js +1 -1
  49. package/lib-next/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +1 -1
  50. package/lib-next/theme/Navbar/MobileSidebar/Toggle/index.js +1 -1
  51. package/lib-next/theme/Navbar/MobileSidebar/index.js +2 -2
  52. package/lib-next/theme/NavbarItem/DocNavbarItem.js +3 -3
  53. package/lib-next/theme/NavbarItem/DocSidebarNavbarItem.js +3 -3
  54. package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +2 -2
  55. package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +1 -1
  56. package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +2 -2
  57. package/lib-next/theme/NavbarItem/NavbarNavLink.js +1 -1
  58. package/lib-next/theme/NotFound.js +1 -1
  59. package/lib-next/theme/SiteMetadata/index.js +2 -2
  60. package/lib-next/theme/TOCCollapsible/{CollapseButton.js → CollapseButton/index.js} +1 -1
  61. package/lib-next/theme/TOCCollapsible/{CollapseButton.module.css → CollapseButton/styles.module.css} +0 -0
  62. package/lib-next/theme/TOCCollapsible/index.js +1 -1
  63. package/lib-next/theme/TOCCollapsible/{index.module.css → styles.module.css} +0 -0
  64. package/lib-next/theme/TOCInline/index.js +1 -1
  65. package/lib-next/theme/TOCItems/index.js +1 -1
  66. package/lib-next/theme/Tabs/__tests__/index.test.js +2 -2
  67. package/lib-next/theme/Tabs/index.js +1 -1
  68. package/lib-next/theme/TagsListByLetter/index.js +1 -1
  69. package/package.json +13 -13
  70. package/src/index.ts +4 -4
  71. package/src/theme/BlogArchivePage/index.tsx +2 -2
  72. package/src/theme/BlogListPage/index.tsx +5 -5
  73. package/src/theme/BlogPostAuthors/index.tsx +1 -1
  74. package/src/theme/BlogPostItem/index.tsx +2 -2
  75. package/src/theme/BlogPostPage/index.tsx +5 -5
  76. package/src/theme/BlogSidebar/Desktop/index.tsx +1 -1
  77. package/src/theme/BlogSidebar/index.tsx +1 -1
  78. package/src/theme/BlogTagsListPage/index.tsx +4 -5
  79. package/src/theme/BlogTagsPostsPage/index.tsx +5 -6
  80. package/src/theme/CodeBlock/Content/Element.tsx +1 -1
  81. package/src/theme/CodeBlock/Content/String.tsx +1 -1
  82. package/src/theme/CodeBlock/Line/index.tsx +1 -0
  83. package/src/theme/CodeBlock/index.tsx +1 -1
  84. package/src/theme/ColorModeToggle/index.tsx +2 -2
  85. package/src/theme/Details/index.tsx +1 -0
  86. package/src/theme/DocBreadcrumbs/index.tsx +3 -2
  87. package/src/theme/DocCard/index.tsx +7 -6
  88. package/src/theme/DocCardList/index.tsx +2 -3
  89. package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -2
  90. package/src/theme/DocItem/index.tsx +9 -8
  91. package/src/theme/DocItemFooter/index.tsx +2 -3
  92. package/src/theme/DocPage/Layout/Main/index.tsx +2 -3
  93. package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +1 -1
  94. package/src/theme/DocPage/Layout/Sidebar/index.tsx +5 -6
  95. package/src/theme/DocPage/Layout/Sidebar/{index.module.css → styles.module.css} +0 -0
  96. package/src/theme/DocPage/Layout/index.tsx +3 -4
  97. package/src/theme/DocPage/Layout/{index.module.css → styles.module.css} +0 -0
  98. package/src/theme/DocPage/index.tsx +3 -5
  99. package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +1 -1
  100. package/src/theme/DocSidebar/index.tsx +1 -1
  101. package/src/theme/DocSidebarItem/{Category.tsx → Category/index.tsx} +1 -3
  102. package/src/theme/DocSidebarItem/{Html.tsx → Html/index.tsx} +1 -1
  103. package/src/theme/DocSidebarItem/{Html.module.css → Html/styles.module.css} +0 -0
  104. package/src/theme/DocSidebarItem/{Link.tsx → Link/index.tsx} +1 -2
  105. package/src/theme/DocSidebarItem/{Link.module.css → Link/styles.module.css} +0 -0
  106. package/src/theme/DocSidebarItems/index.tsx +1 -1
  107. package/src/theme/DocTagDocListPage/index.tsx +3 -4
  108. package/src/theme/DocTagsListPage/index.tsx +3 -4
  109. package/src/theme/DocVersionBadge/index.tsx +1 -1
  110. package/src/theme/DocVersionBanner/index.tsx +1 -1
  111. package/src/theme/EditThisPage/index.tsx +2 -3
  112. package/src/theme/Footer/Links/MultiColumn/index.tsx +1 -1
  113. package/src/theme/Footer/Links/Simple/index.tsx +1 -1
  114. package/src/theme/Footer/Links/index.tsx +1 -1
  115. package/src/theme/Footer/Logo/index.tsx +2 -2
  116. package/src/theme/Heading/index.tsx +1 -1
  117. package/src/theme/IconEdit/index.tsx +0 -1
  118. package/src/theme/LastUpdated/index.tsx +1 -1
  119. package/src/theme/Layout/index.tsx +6 -6
  120. package/src/theme/Logo/index.tsx +2 -3
  121. package/src/theme/MDXComponents/{Img.tsx → Img/index.tsx} +3 -2
  122. package/src/theme/MDXComponents/{Img.module.css → Img/styles.module.css} +0 -0
  123. package/src/theme/MDXComponents/Ul.tsx +2 -2
  124. package/src/theme/MDXPage/index.tsx +4 -4
  125. package/src/theme/Navbar/ColorModeToggle/index.tsx +1 -1
  126. package/src/theme/Navbar/Content/index.tsx +5 -4
  127. package/src/theme/Navbar/Layout/index.tsx +2 -2
  128. package/src/theme/Navbar/MobileSidebar/Header/index.tsx +1 -1
  129. package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +1 -1
  130. package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +1 -1
  131. package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +1 -1
  132. package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
  133. package/src/theme/NavbarItem/DefaultNavbarItem.tsx +1 -4
  134. package/src/theme/NavbarItem/DocNavbarItem.tsx +3 -3
  135. package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +3 -4
  136. package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +3 -3
  137. package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
  138. package/src/theme/NavbarItem/DropdownNavbarItem.tsx +2 -3
  139. package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +3 -3
  140. package/src/theme/NavbarItem/NavbarNavLink.tsx +2 -2
  141. package/src/theme/NavbarItem/SearchNavbarItem.tsx +1 -1
  142. package/src/theme/NavbarItem/index.tsx +1 -2
  143. package/src/theme/NotFound.tsx +1 -1
  144. package/src/theme/SiteMetadata/index.tsx +1 -1
  145. package/src/theme/TOC/index.tsx +2 -1
  146. package/src/theme/TOCCollapsible/{CollapseButton.tsx → CollapseButton/index.tsx} +2 -1
  147. package/src/theme/TOCCollapsible/{CollapseButton.module.css → CollapseButton/styles.module.css} +0 -0
  148. package/src/theme/TOCCollapsible/index.tsx +3 -2
  149. package/src/theme/TOCCollapsible/{index.module.css → styles.module.css} +0 -0
  150. package/src/theme/TOCInline/index.tsx +2 -1
  151. package/src/theme/TOCItems/index.tsx +2 -2
  152. package/src/theme/TabItem/index.tsx +1 -1
  153. package/src/theme/Tabs/index.tsx +1 -2
  154. package/src/theme/TagsListByLetter/index.tsx +1 -1
  155. package/src/theme/ThemedImage/index.tsx +0 -1
  156. package/src/translations.ts +2 -3
@@ -5,14 +5,14 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import NavbarItem from '@theme/NavbarItem';
9
- import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
10
- import SearchBar from '@theme/SearchBar';
11
8
  import {
12
9
  splitNavbarItems,
13
10
  useNavbarMobileSidebar,
14
11
  useThemeConfig,
15
12
  } from '@docusaurus/theme-common';
13
+ import NavbarItem from '@theme/NavbarItem';
14
+ import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
15
+ import SearchBar from '@theme/SearchBar';
16
16
  import NavbarMobileSidebarToggle from '@theme/Navbar/MobileSidebar/Toggle';
17
17
  import NavbarLogo from '@theme/Navbar/Logo';
18
18
  import NavbarSearch from '@theme/Navbar/Search';
@@ -6,12 +6,12 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
- import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar';
10
9
  import {
11
10
  useThemeConfig,
12
11
  useHideableNavbar,
13
12
  useNavbarMobileSidebar,
14
13
  } from '@docusaurus/theme-common';
14
+ import NavbarMobileSidebar from '@theme/Navbar/MobileSidebar';
15
15
  import styles from './styles.module.css';
16
16
 
17
17
  function NavbarBackdrop(props) {
@@ -5,10 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
+ import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
8
9
  import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
9
10
  import IconClose from '@theme/IconClose';
10
11
  import NavbarLogo from '@theme/Navbar/Logo';
11
- import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
12
12
 
13
13
  function CloseButton() {
14
14
  const mobileSidebar = useNavbarMobileSidebar();
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import {useNavbarMobileSidebar, useThemeConfig} from '@docusaurus/theme-common';
9
- import NavbarItem from '../../../NavbarItem';
9
+ import NavbarItem from '@theme/NavbarItem';
10
10
 
11
11
  function useNavbarItems() {
12
12
  // TODO temporary casting until ThemeConfig type is improved
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import IconMenu from '@theme/IconMenu';
9
8
  import {useNavbarMobileSidebar} from '@docusaurus/theme-common';
9
+ import IconMenu from '@theme/IconMenu';
10
10
  export default function MobileSidebarToggle() {
11
11
  const mobileSidebar = useNavbarMobileSidebar();
12
12
  return (
@@ -5,12 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import NavbarMobileSidebarLayout from '@theme/Navbar/MobileSidebar/Layout';
9
- import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
10
8
  import {
11
9
  useLockBodyScroll,
12
10
  useNavbarMobileSidebar,
13
11
  } from '@docusaurus/theme-common';
12
+ import NavbarMobileSidebarLayout from '@theme/Navbar/MobileSidebar/Layout';
13
+ import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
14
14
  import NavbarMobileSidebarPrimaryMenu from '@theme/Navbar/MobileSidebar/PrimaryMenu';
15
15
  import NavbarMobileSidebarSecondaryMenu from '@theme/Navbar/MobileSidebar/SecondaryMenu';
16
16
  export default function NavbarMobileSidebar() {
@@ -5,11 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
9
- import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
10
8
  import clsx from 'clsx';
11
- import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
9
+ import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
12
10
  import {useLayoutDoc} from '@docusaurus/theme-common';
11
+ import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
12
+ import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
13
13
  export default function DocNavbarItem({
14
14
  docId,
15
15
  label: staticLabel,
@@ -5,11 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
9
- import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
10
8
  import clsx from 'clsx';
11
- import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
9
+ import {useActiveDocContext} from '@docusaurus/plugin-content-docs/client';
12
10
  import {useLayoutDocsSidebar} from '@docusaurus/theme-common';
11
+ import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
12
+ import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
13
13
  export default function DocSidebarNavbarItem({
14
14
  sidebarId,
15
15
  label,
@@ -5,8 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
9
- import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
10
8
  import {
11
9
  useVersions,
12
10
  useActiveDocContext,
@@ -16,6 +14,8 @@ import {
16
14
  useDocsVersionCandidates,
17
15
  } from '@docusaurus/theme-common';
18
16
  import {translate} from '@docusaurus/Translate';
17
+ import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
18
+ import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
19
19
 
20
20
  const getVersionMainDoc = (version) =>
21
21
  version.docs.find((doc) => doc.id === version.mainDocId);
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
9
8
  import {useDocsVersionCandidates} from '@docusaurus/theme-common';
9
+ import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
10
10
 
11
11
  const getVersionMainDoc = (version) =>
12
12
  version.docs.find((doc) => doc.id === version.mainDocId);
@@ -5,11 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
9
- import IconLanguage from '@theme/IconLanguage';
10
8
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
11
9
  import {useAlternatePageUtils} from '@docusaurus/theme-common';
12
10
  import {translate} from '@docusaurus/Translate';
11
+ import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
12
+ import IconLanguage from '@theme/IconLanguage';
13
13
  import styles from './styles.module.css';
14
14
  export default function LocaleDropdownNavbarItem({
15
15
  mobile,
@@ -7,9 +7,9 @@
7
7
  import React from 'react';
8
8
  import Link from '@docusaurus/Link';
9
9
  import useBaseUrl from '@docusaurus/useBaseUrl';
10
- import IconExternalLink from '@theme/IconExternalLink';
11
10
  import isInternalUrl from '@docusaurus/isInternalUrl';
12
11
  import {isRegexpStringMatch} from '@docusaurus/theme-common';
12
+ import IconExternalLink from '@theme/IconExternalLink';
13
13
  const dropdownLinkActiveClass = 'dropdown__link--active';
14
14
  export default function NavbarNavLink({
15
15
  activeBasePath,
@@ -5,9 +5,9 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import Layout from '@theme/Layout';
9
8
  import Translate, {translate} from '@docusaurus/Translate';
10
9
  import {PageMetadata} from '@docusaurus/theme-common';
10
+ import Layout from '@theme/Layout';
11
11
  export default function NotFound() {
12
12
  return (
13
13
  <>
@@ -8,7 +8,6 @@ import React from 'react';
8
8
  import Head from '@docusaurus/Head';
9
9
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
10
10
  import useBaseUrl from '@docusaurus/useBaseUrl';
11
- import SearchMetadata from '@theme/SearchMetadata';
12
11
  import {
13
12
  PageMetadata,
14
13
  DEFAULT_SEARCH_TAG,
@@ -16,7 +15,8 @@ import {
16
15
  useThemeConfig,
17
16
  keyboardFocusedClassName,
18
17
  } from '@docusaurus/theme-common';
19
- import {useLocation} from '@docusaurus/router'; // TODO move to SiteMetadataDefaults or theme-common ?
18
+ import {useLocation} from '@docusaurus/router';
19
+ import SearchMetadata from '@theme/SearchMetadata'; // TODO move to SiteMetadataDefaults or theme-common ?
20
20
  // Useful for i18n/SEO
21
21
  // See https://developers.google.com/search/docs/advanced/crawling/localized-versions
22
22
  // See https://github.com/facebook/docusaurus/issues/3317
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import Translate from '@docusaurus/Translate';
10
- import styles from './CollapseButton.module.css';
10
+ import styles from './styles.module.css';
11
11
  export default function TOCCollapsibleCollapseButton({collapsed, ...props}) {
12
12
  return (
13
13
  <button
@@ -7,9 +7,9 @@
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import {useCollapsible, Collapsible} from '@docusaurus/theme-common';
10
- import styles from './index.module.css';
11
10
  import TOCItems from '@theme/TOCItems';
12
11
  import CollapseButton from '@theme/TOCCollapsible/CollapseButton';
12
+ import styles from './styles.module.css';
13
13
  export default function TOCCollapsible({
14
14
  toc,
15
15
  className,
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import styles from './styles.module.css';
9
8
  import TOCItems from '@theme/TOCItems';
9
+ import styles from './styles.module.css';
10
10
  export default function TOCInline({toc, minHeadingLevel, maxHeadingLevel}) {
11
11
  return (
12
12
  <div className={styles.tableOfContentsInline}>
@@ -5,12 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React, {useMemo} from 'react';
8
- import TOCItemTree from '@theme/TOCItems/Tree';
9
8
  import {
10
9
  useThemeConfig,
11
10
  useTOCHighlight,
12
11
  useFilteredAndTreeifiedTOC,
13
12
  } from '@docusaurus/theme-common';
13
+ import TOCItemTree from '@theme/TOCItems/Tree';
14
14
  export default function TOCItems({
15
15
  toc,
16
16
  className = 'table-of-contents table-of-contents__left-border',
@@ -6,12 +6,12 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import renderer from 'react-test-renderer';
9
- import Tabs from '../index';
10
- import TabItem from '../../TabItem';
11
9
  import {
12
10
  TabGroupChoiceProvider,
13
11
  ScrollControllerProvider,
14
12
  } from '@docusaurus/theme-common';
13
+ import Tabs from '../index';
14
+ import TabItem from '../../TabItem';
15
15
  describe('Tabs', () => {
16
16
  it('rejects bad Tabs child', () => {
17
17
  expect(() => {
@@ -5,13 +5,13 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React, {useState, cloneElement, isValidElement} from 'react';
8
+ import clsx from 'clsx';
8
9
  import useIsBrowser from '@docusaurus/useIsBrowser';
9
10
  import {
10
11
  useScrollPositionBlocker,
11
12
  duplicates,
12
13
  useTabGroupChoice,
13
14
  } from '@docusaurus/theme-common';
14
- import clsx from 'clsx';
15
15
  import styles from './styles.module.css'; // A very rough duck type, but good enough to guard against mistakes while
16
16
  // allowing customization
17
17
 
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import Tag from '@theme/Tag';
9
8
  import {listTagsByLetters} from '@docusaurus/theme-common';
9
+ import Tag from '@theme/Tag';
10
10
  import styles from './styles.module.css';
11
11
 
12
12
  function TagLetterEntryItem({letterEntry}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-5009",
3
+ "version": "0.0.0-5014",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -21,15 +21,15 @@
21
21
  "format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
22
22
  },
23
23
  "dependencies": {
24
- "@docusaurus/core": "0.0.0-5009",
25
- "@docusaurus/plugin-content-blog": "0.0.0-5009",
26
- "@docusaurus/plugin-content-docs": "0.0.0-5009",
27
- "@docusaurus/plugin-content-pages": "0.0.0-5009",
28
- "@docusaurus/theme-common": "0.0.0-5009",
29
- "@docusaurus/theme-translations": "0.0.0-5009",
30
- "@docusaurus/utils": "0.0.0-5009",
31
- "@docusaurus/utils-common": "0.0.0-5009",
32
- "@docusaurus/utils-validation": "0.0.0-5009",
24
+ "@docusaurus/core": "0.0.0-5014",
25
+ "@docusaurus/plugin-content-blog": "0.0.0-5014",
26
+ "@docusaurus/plugin-content-docs": "0.0.0-5014",
27
+ "@docusaurus/plugin-content-pages": "0.0.0-5014",
28
+ "@docusaurus/theme-common": "0.0.0-5014",
29
+ "@docusaurus/theme-translations": "0.0.0-5014",
30
+ "@docusaurus/utils": "0.0.0-5014",
31
+ "@docusaurus/utils-common": "0.0.0-5014",
32
+ "@docusaurus/utils-validation": "0.0.0-5014",
33
33
  "@mdx-js/react": "^1.6.22",
34
34
  "clsx": "^1.1.1",
35
35
  "copy-text-to-clipboard": "^3.0.1",
@@ -46,8 +46,8 @@
46
46
  "@babel/cli": "^7.17.10",
47
47
  "@babel/core": "^7.17.10",
48
48
  "@babel/preset-typescript": "^7.16.7",
49
- "@docusaurus/module-type-aliases": "0.0.0-5009",
50
- "@docusaurus/types": "0.0.0-5009",
49
+ "@docusaurus/module-type-aliases": "0.0.0-5014",
50
+ "@docusaurus/types": "0.0.0-5014",
51
51
  "@types/mdx-js__react": "^1.5.5",
52
52
  "@types/nprogress": "^0.2.0",
53
53
  "@types/prismjs": "^1.26.0",
@@ -64,5 +64,5 @@
64
64
  "engines": {
65
65
  "node": ">=14"
66
66
  },
67
- "gitHead": "b3d1590b3b6a0d270bf339c637574152cc4d51dc"
67
+ "gitHead": "f1ab067eeed93212a8e8034d621924d60aba741d"
68
68
  }
package/src/index.ts CHANGED
@@ -6,13 +6,13 @@
6
6
  */
7
7
 
8
8
  import path from 'path';
9
- import type {LoadContext, Plugin} from '@docusaurus/types';
10
- import type {ThemeConfig} from '@docusaurus/theme-common';
11
- import {getTranslationFiles, translateThemeConfig} from './translations';
12
9
  import {createRequire} from 'module';
13
- import type {Plugin as PostCssPlugin} from 'postcss';
14
10
  import rtlcss from 'rtlcss';
15
11
  import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
12
+ import {getTranslationFiles, translateThemeConfig} from './translations';
13
+ import type {LoadContext, Plugin} from '@docusaurus/types';
14
+ import type {ThemeConfig} from '@docusaurus/theme-common';
15
+ import type {Plugin as PostCssPlugin} from 'postcss';
16
16
  import type {Options} from '@docusaurus/theme-classic';
17
17
  import type webpack from 'webpack';
18
18
 
@@ -6,11 +6,11 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import Layout from '@theme/Layout';
10
9
  import Link from '@docusaurus/Link';
11
- import type {ArchiveBlogPost, Props} from '@theme/BlogArchivePage';
12
10
  import {translate} from '@docusaurus/Translate';
13
11
  import {PageMetadata} from '@docusaurus/theme-common';
12
+ import Layout from '@theme/Layout';
13
+ import type {ArchiveBlogPost, Props} from '@theme/BlogArchivePage';
14
14
 
15
15
  type YearProp = {
16
16
  year: string;
@@ -6,19 +6,19 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
+ import clsx from 'clsx';
9
10
 
10
11
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
11
- import BlogLayout from '@theme/BlogLayout';
12
- import BlogPostItem from '@theme/BlogPostItem';
13
- import BlogListPaginator from '@theme/BlogListPaginator';
14
- import type {Props} from '@theme/BlogListPage';
15
12
  import {
16
13
  PageMetadata,
17
14
  HtmlClassNameProvider,
18
15
  ThemeClassNames,
19
16
  } from '@docusaurus/theme-common';
17
+ import BlogLayout from '@theme/BlogLayout';
18
+ import BlogPostItem from '@theme/BlogPostItem';
19
+ import BlogListPaginator from '@theme/BlogListPaginator';
20
20
  import SearchMetadata from '@theme/SearchMetadata';
21
- import clsx from 'clsx';
21
+ import type {Props} from '@theme/BlogListPage';
22
22
 
23
23
  function BlogListPageMetadata(props: Props): JSX.Element {
24
24
  const {metadata} = props;
@@ -7,8 +7,8 @@
7
7
 
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
- import type {Props} from '@theme/BlogPostAuthors';
11
10
  import BlogPostAuthor from '@theme/BlogPostAuthor';
11
+ import type {Props} from '@theme/BlogPostAuthors';
12
12
 
13
13
  import styles from './styles.module.css';
14
14
 
@@ -14,11 +14,11 @@ import {usePluralForm} from '@docusaurus/theme-common';
14
14
  import {blogPostContainerID} from '@docusaurus/utils-common';
15
15
  import MDXContent from '@theme/MDXContent';
16
16
  import EditThisPage from '@theme/EditThisPage';
17
+ import TagsListInline from '@theme/TagsListInline';
18
+ import BlogPostAuthors from '@theme/BlogPostAuthors';
17
19
  import type {Props} from '@theme/BlogPostItem';
18
20
 
19
21
  import styles from './styles.module.css';
20
- import TagsListInline from '@theme/TagsListInline';
21
- import BlogPostAuthors from '@theme/BlogPostAuthors';
22
22
 
23
23
  // Very simple pluralization: probably good enough for now
24
24
  function useReadingTimePlural() {
@@ -6,17 +6,17 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import BlogLayout from '@theme/BlogLayout';
10
- import BlogPostItem from '@theme/BlogPostItem';
11
- import BlogPostPaginator from '@theme/BlogPostPaginator';
12
- import type {Props} from '@theme/BlogPostPage';
9
+ import clsx from 'clsx';
13
10
  import {
14
11
  PageMetadata,
15
12
  HtmlClassNameProvider,
16
13
  ThemeClassNames,
17
14
  } from '@docusaurus/theme-common';
15
+ import BlogLayout from '@theme/BlogLayout';
16
+ import BlogPostItem from '@theme/BlogPostItem';
17
+ import BlogPostPaginator from '@theme/BlogPostPaginator';
18
18
  import TOC from '@theme/TOC';
19
- import clsx from 'clsx';
19
+ import type {Props} from '@theme/BlogPostPage';
20
20
 
21
21
  function BlogPostPageMetadata(props: Props): JSX.Element {
22
22
  const {content: BlogPostContents} = props;
@@ -9,9 +9,9 @@ import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import Link from '@docusaurus/Link';
11
11
  import {translate} from '@docusaurus/Translate';
12
+ import type {Props} from '@theme/BlogSidebar/Desktop';
12
13
 
13
14
  import styles from './styles.module.css';
14
- import type {Props} from '@theme/BlogSidebar/Desktop';
15
15
 
16
16
  export default function BlogSidebarDesktop({sidebar}: Props): JSX.Element {
17
17
  return (
@@ -6,9 +6,9 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
+ import {useWindowSize} from '@docusaurus/theme-common';
9
10
  import BlogSidebarDesktop from '@theme/BlogSidebar/Desktop';
10
11
  import BlogSidebarMobile from '@theme/BlogSidebar/Mobile';
11
- import {useWindowSize} from '@docusaurus/theme-common';
12
12
  import type {Props} from '@theme/BlogSidebar';
13
13
 
14
14
  export default function BlogSidebar({sidebar}: Props): JSX.Element | null {
@@ -6,18 +6,17 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
-
10
- import BlogLayout from '@theme/BlogLayout';
11
- import TagsListByLetter from '@theme/TagsListByLetter';
12
- import type {Props} from '@theme/BlogTagsListPage';
9
+ import clsx from 'clsx';
13
10
  import {
14
11
  PageMetadata,
15
12
  HtmlClassNameProvider,
16
13
  ThemeClassNames,
17
14
  translateTagsPageTitle,
18
15
  } from '@docusaurus/theme-common';
16
+ import BlogLayout from '@theme/BlogLayout';
17
+ import TagsListByLetter from '@theme/TagsListByLetter';
18
+ import type {Props} from '@theme/BlogTagsListPage';
19
19
  import SearchMetadata from '../SearchMetadata';
20
- import clsx from 'clsx';
21
20
 
22
21
  export default function BlogTagsListPage({tags, sidebar}: Props): JSX.Element {
23
22
  const title = translateTagsPageTitle();
@@ -6,11 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
-
10
- import Link from '@docusaurus/Link';
11
- import BlogLayout from '@theme/BlogLayout';
12
- import BlogPostItem from '@theme/BlogPostItem';
13
- import type {Props} from '@theme/BlogTagsPostsPage';
9
+ import clsx from 'clsx';
14
10
  import Translate, {translate} from '@docusaurus/Translate';
15
11
  import {
16
12
  PageMetadata,
@@ -18,9 +14,12 @@ import {
18
14
  ThemeClassNames,
19
15
  usePluralForm,
20
16
  } from '@docusaurus/theme-common';
17
+ import Link from '@docusaurus/Link';
18
+ import BlogLayout from '@theme/BlogLayout';
19
+ import BlogPostItem from '@theme/BlogPostItem';
21
20
  import BlogListPaginator from '@theme/BlogListPaginator';
22
21
  import SearchMetadata from '@theme/SearchMetadata';
23
- import clsx from 'clsx';
22
+ import type {Props} from '@theme/BlogTagsPostsPage';
24
23
 
25
24
  // Very simple pluralization: probably good enough for now
26
25
  function useBlogPostsPlural() {
@@ -6,8 +6,8 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import Container from '@theme/CodeBlock/Container';
10
9
  import clsx from 'clsx';
10
+ import Container from '@theme/CodeBlock/Container';
11
11
  import type {Props} from '@theme/CodeBlock/Content/Element';
12
12
 
13
13
  import styles from './styles.module.css';
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
+ import clsx from 'clsx';
9
10
  import {
10
11
  useThemeConfig,
11
12
  parseCodeBlockTitle,
@@ -15,7 +16,6 @@ import {
15
16
  usePrismTheme,
16
17
  useCodeWordWrap,
17
18
  } from '@docusaurus/theme-common';
18
- import clsx from 'clsx';
19
19
  import Highlight, {defaultProps, type Language} from 'prism-react-renderer';
20
20
  import Line from '@theme/CodeBlock/Line';
21
21
  import CopyButton from '@theme/CodeBlock/CopyButton';
@@ -8,6 +8,7 @@
8
8
  import React from 'react';
9
9
  import clsx from 'clsx';
10
10
  import type {Props} from '@theme/CodeBlock/Line';
11
+
11
12
  import styles from './styles.module.css';
12
13
 
13
14
  export default function CodeBlockLine({
@@ -7,9 +7,9 @@
7
7
 
8
8
  import React, {isValidElement, type ReactNode} from 'react';
9
9
  import useIsBrowser from '@docusaurus/useIsBrowser';
10
- import type {Props} from '@theme/CodeBlock';
11
10
  import ElementContent from '@theme/CodeBlock/Content/Element';
12
11
  import StringContent from '@theme/CodeBlock/Content/String';
12
+ import type {Props} from '@theme/CodeBlock';
13
13
 
14
14
  /**
15
15
  * Best attempt to make the children a plain string so it is copyable. If there
@@ -6,13 +6,13 @@
6
6
  */
7
7
 
8
8
  import React from 'react';
9
- import type {Props} from '@theme/ColorModeToggle';
9
+ import clsx from 'clsx';
10
10
  import useIsBrowser from '@docusaurus/useIsBrowser';
11
11
  import {translate} from '@docusaurus/Translate';
12
12
  import IconLightMode from '@theme/IconLightMode';
13
13
  import IconDarkMode from '@theme/IconDarkMode';
14
+ import type {Props} from '@theme/ColorModeToggle';
14
15
 
15
- import clsx from 'clsx';
16
16
  import styles from './styles.module.css';
17
17
 
18
18
  function ColorModeToggle({className, value, onChange}: Props): JSX.Element {
@@ -9,6 +9,7 @@ import React 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';
12
+
12
13
  import styles from './styles.module.css';
13
14
 
14
15
  // Should we have a custom details/summary comp in Infima instead of reusing
@@ -6,18 +6,19 @@
6
6
  */
7
7
 
8
8
  import React, {type ReactNode} from 'react';
9
+ import clsx from 'clsx';
9
10
  import {
10
11
  ThemeClassNames,
11
12
  useSidebarBreadcrumbs,
12
13
  useHomePageRoute,
13
14
  } from '@docusaurus/theme-common';
14
- import styles from './styles.module.css';
15
- import clsx from 'clsx';
16
15
  import Link from '@docusaurus/Link';
17
16
  import useBaseUrl from '@docusaurus/useBaseUrl';
18
17
  import {translate} from '@docusaurus/Translate';
19
18
  import IconHome from '@theme/IconHome';
20
19
 
20
+ import styles from './styles.module.css';
21
+
21
22
  // TODO move to design system folder
22
23
  function BreadcrumbsItemLink({
23
24
  children,