@docusaurus/theme-classic 0.0.0-4379 → 0.0.0-4383

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.
@@ -44,7 +44,8 @@ declare module '@theme/BlogListPaginator' {
44
44
  }
45
45
 
46
46
  declare module '@theme/BlogPostItem' {
47
- import type {FrontMatter, Assets, Metadata} from '@theme/BlogPostPage';
47
+ import type {FrontMatter, Metadata} from '@theme/BlogPostPage';
48
+ import type {Assets} from '@docusaurus/plugin-content-blog';
48
49
 
49
50
  export interface Props {
50
51
  readonly frontMatter: FrontMatter;
@@ -70,7 +71,8 @@ declare module '@theme/BlogPostAuthor' {
70
71
  }
71
72
 
72
73
  declare module '@theme/BlogPostAuthors' {
73
- import type {Metadata, Assets} from '@theme/BlogPostPage';
74
+ import type {Metadata} from '@theme/BlogPostPage';
75
+ import type {Assets} from '@docusaurus/plugin-content-blog';
74
76
 
75
77
  export interface Props {
76
78
  readonly authors: Metadata['authors'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-classic",
3
- "version": "0.0.0-4379",
3
+ "version": "0.0.0-4383",
4
4
  "description": "Classic theme for Docusaurus",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/theme-classic.d.ts",
@@ -23,14 +23,14 @@
23
23
  "update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
24
24
  },
25
25
  "dependencies": {
26
- "@docusaurus/core": "0.0.0-4379",
27
- "@docusaurus/plugin-content-blog": "0.0.0-4379",
28
- "@docusaurus/plugin-content-docs": "0.0.0-4379",
29
- "@docusaurus/plugin-content-pages": "0.0.0-4379",
30
- "@docusaurus/theme-common": "0.0.0-4379",
31
- "@docusaurus/theme-translations": "0.0.0-4379",
32
- "@docusaurus/utils": "0.0.0-4379",
33
- "@docusaurus/utils-validation": "0.0.0-4379",
26
+ "@docusaurus/core": "0.0.0-4383",
27
+ "@docusaurus/plugin-content-blog": "0.0.0-4383",
28
+ "@docusaurus/plugin-content-docs": "0.0.0-4383",
29
+ "@docusaurus/plugin-content-pages": "0.0.0-4383",
30
+ "@docusaurus/theme-common": "0.0.0-4383",
31
+ "@docusaurus/theme-translations": "0.0.0-4383",
32
+ "@docusaurus/utils": "0.0.0-4383",
33
+ "@docusaurus/utils-validation": "0.0.0-4383",
34
34
  "@mdx-js/mdx": "^1.6.21",
35
35
  "@mdx-js/react": "^1.6.21",
36
36
  "clsx": "^1.1.1",
@@ -45,8 +45,8 @@
45
45
  "rtlcss": "^3.3.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@docusaurus/module-type-aliases": "0.0.0-4379",
49
- "@docusaurus/types": "0.0.0-4379",
48
+ "@docusaurus/module-type-aliases": "0.0.0-4383",
49
+ "@docusaurus/types": "0.0.0-4383",
50
50
  "@types/mdx-js__react": "^1.5.4",
51
51
  "@types/parse-numeric-range": "^0.0.1",
52
52
  "@types/rtlcss": "^3.1.1",
@@ -61,5 +61,5 @@
61
61
  "engines": {
62
62
  "node": ">=14"
63
63
  },
64
- "gitHead": "92aba1ab0bda5fe2b1f6cc8cdd50677051187dcb"
64
+ "gitHead": "6ccc0daea1a7b1413cd32f515a9e661c4007a355"
65
65
  }
@@ -15,9 +15,9 @@ import clsx from 'clsx';
15
15
  import {getInfimaActiveClassName} from '@theme/NavbarItem/utils';
16
16
  import type {Props} from '@theme/NavbarItem/DocNavbarItem';
17
17
  import {useDocsPreferredVersion, uniq} from '@docusaurus/theme-common';
18
- import type {GlobalDataVersion} from '@docusaurus/plugin-content-docs';
18
+ import type {GlobalVersion} from '@docusaurus/plugin-content-docs/client';
19
19
 
20
- function getDocInVersions(versions: GlobalDataVersion[], docId: string) {
20
+ function getDocInVersions(versions: GlobalVersion[], docId: string) {
21
21
  const allDocs = versions.flatMap((version) => version.docs);
22
22
  const doc = allDocs.find((versionDoc) => versionDoc.id === docId);
23
23
  if (!doc) {
@@ -46,7 +46,7 @@ export default function DocNavbarItem({
46
46
  const versions = uniq(
47
47
  [activeVersion, preferredVersion, latestVersion].filter(
48
48
  Boolean,
49
- ) as GlobalDataVersion[],
49
+ ) as GlobalVersion[],
50
50
  );
51
51
  const doc = getDocInVersions(versions, docId);
52
52
  const activeDocInfimaClassName = getInfimaActiveClassName(props.mobile);
@@ -17,11 +17,11 @@ import {useDocsPreferredVersion, uniq} from '@docusaurus/theme-common';
17
17
 
18
18
  import type {Props} from '@theme/NavbarItem/DocSidebarNavbarItem';
19
19
  import type {
20
- GlobalDataVersion,
21
- GlobalDataSidebar,
22
- } from '@docusaurus/plugin-content-docs';
20
+ GlobalVersion,
21
+ GlobalSidebar,
22
+ } from '@docusaurus/plugin-content-docs/client';
23
23
 
24
- function getSidebarLink(versions: GlobalDataVersion[], sidebarId: string) {
24
+ function getSidebarLink(versions: GlobalVersion[], sidebarId: string) {
25
25
  const allSidebars = versions
26
26
  .flatMap((version) => {
27
27
  if (version.sidebars) {
@@ -30,8 +30,7 @@ function getSidebarLink(versions: GlobalDataVersion[], sidebarId: string) {
30
30
  return undefined;
31
31
  })
32
32
  .filter(
33
- (sidebarItem): sidebarItem is [string, GlobalDataSidebar] =>
34
- !!sidebarItem,
33
+ (sidebarItem): sidebarItem is [string, GlobalSidebar] => !!sidebarItem,
35
34
  );
36
35
  const sidebarEntry = allSidebars.find((sidebar) => sidebar[0] === sidebarId);
37
36
  if (!sidebarEntry) {
@@ -65,7 +64,7 @@ export default function DocSidebarNavbarItem({
65
64
  const versions = uniq(
66
65
  [activeVersion, preferredVersion, latestVersion].filter(
67
66
  Boolean,
68
- ) as GlobalDataVersion[],
67
+ ) as GlobalVersion[],
69
68
  );
70
69
  const sidebarLink = getSidebarLink(versions, sidebarId);
71
70
  const activeDocInfimaClassName = getInfimaActiveClassName(props.mobile);
@@ -16,9 +16,9 @@ import {
16
16
  import type {Props} from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
17
17
  import {useDocsPreferredVersion} from '@docusaurus/theme-common';
18
18
  import {translate} from '@docusaurus/Translate';
19
- import type {GlobalDataVersion} from '@docusaurus/plugin-content-docs';
19
+ import type {GlobalVersion} from '@docusaurus/plugin-content-docs/client';
20
20
 
21
- const getVersionMainDoc = (version: GlobalDataVersion) =>
21
+ const getVersionMainDoc = (version: GlobalVersion) =>
22
22
  version.docs.find((doc) => doc.id === version.mainDocId)!;
23
23
 
24
24
  export default function DocsVersionDropdownNavbarItem({
@@ -44,7 +44,8 @@ declare module '@theme/BlogListPaginator' {
44
44
  }
45
45
 
46
46
  declare module '@theme/BlogPostItem' {
47
- import type {FrontMatter, Assets, Metadata} from '@theme/BlogPostPage';
47
+ import type {FrontMatter, Metadata} from '@theme/BlogPostPage';
48
+ import type {Assets} from '@docusaurus/plugin-content-blog';
48
49
 
49
50
  export interface Props {
50
51
  readonly frontMatter: FrontMatter;
@@ -70,7 +71,8 @@ declare module '@theme/BlogPostAuthor' {
70
71
  }
71
72
 
72
73
  declare module '@theme/BlogPostAuthors' {
73
- import type {Metadata, Assets} from '@theme/BlogPostPage';
74
+ import type {Metadata} from '@theme/BlogPostPage';
75
+ import type {Assets} from '@docusaurus/plugin-content-blog';
74
76
 
75
77
  export interface Props {
76
78
  readonly authors: Metadata['authors'];