@docusaurus/theme-classic 0.0.0-5121 → 0.0.0-5124
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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React, {useCallback, useState, useRef, useEffect} from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
+
// @ts-expect-error: TODO, we need to make theme-classic have type: module
|
|
9
10
|
import copy from 'copy-text-to-clipboard';
|
|
10
11
|
import {translate} from '@docusaurus/Translate';
|
|
11
12
|
import styles from './styles.module.css';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5124",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "0.0.0-
|
|
24
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
25
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
28
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
30
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
31
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
-
"@docusaurus/utils": "0.0.0-
|
|
33
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
34
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
23
|
+
"@docusaurus/core": "0.0.0-5124",
|
|
24
|
+
"@docusaurus/mdx-loader": "0.0.0-5124",
|
|
25
|
+
"@docusaurus/module-type-aliases": "0.0.0-5124",
|
|
26
|
+
"@docusaurus/plugin-content-blog": "0.0.0-5124",
|
|
27
|
+
"@docusaurus/plugin-content-docs": "0.0.0-5124",
|
|
28
|
+
"@docusaurus/plugin-content-pages": "0.0.0-5124",
|
|
29
|
+
"@docusaurus/theme-common": "0.0.0-5124",
|
|
30
|
+
"@docusaurus/theme-translations": "0.0.0-5124",
|
|
31
|
+
"@docusaurus/types": "0.0.0-5124",
|
|
32
|
+
"@docusaurus/utils": "0.0.0-5124",
|
|
33
|
+
"@docusaurus/utils-common": "0.0.0-5124",
|
|
34
|
+
"@docusaurus/utils-validation": "0.0.0-5124",
|
|
35
35
|
"@mdx-js/react": "^1.6.22",
|
|
36
36
|
"clsx": "^1.1.1",
|
|
37
37
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"engines": {
|
|
65
65
|
"node": ">=16.14"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "dba5e8d5a7bc07b946888664f9cc3f07564093e1"
|
|
68
68
|
}
|
|
@@ -23,7 +23,7 @@ export default function CodeBlockContainer<T extends 'div' | 'pre'>({
|
|
|
23
23
|
return (
|
|
24
24
|
<As
|
|
25
25
|
// Polymorphic components are hard to type, without `oneOf` generics
|
|
26
|
-
{...(props as
|
|
26
|
+
{...(props as any)}
|
|
27
27
|
style={prismCssVariables}
|
|
28
28
|
className={clsx(
|
|
29
29
|
props.className,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import React, {useCallback, useState, useRef, useEffect} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
+
// @ts-expect-error: TODO, we need to make theme-classic have type: module
|
|
10
11
|
import copy from 'copy-text-to-clipboard';
|
|
11
12
|
import {translate} from '@docusaurus/Translate';
|
|
12
13
|
import type {Props} from '@theme/CodeBlock/CopyButton';
|
|
@@ -24,5 +24,5 @@ export default function NavbarItem({type, ...props}: Props): JSX.Element {
|
|
|
24
24
|
if (!NavbarItemComponent) {
|
|
25
25
|
throw new Error(`No NavbarItem component found for type "${type}".`);
|
|
26
26
|
}
|
|
27
|
-
return <NavbarItemComponent {...(props as
|
|
27
|
+
return <NavbarItemComponent {...(props as any)} />;
|
|
28
28
|
}
|