@docusaurus/plugin-debug 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/theme/DebugConfig/index.d.ts +2 -1
- package/lib/theme/DebugContent/index.d.ts +2 -1
- package/lib/theme/DebugGlobalData/index.d.ts +2 -1
- package/lib/theme/DebugJsonView/index.d.ts +2 -1
- package/lib/theme/DebugLayout/index.d.ts +1 -1
- package/lib/theme/DebugRegistry/index.d.ts +2 -1
- package/lib/theme/DebugRoutes/index.d.ts +2 -1
- package/lib/theme/DebugSiteMetadata/index.d.ts +2 -1
- package/package.json +7 -7
- package/src/plugin-debug.d.ts +21 -10
- package/src/theme/DebugConfig/index.tsx +2 -2
- package/src/theme/DebugContent/index.tsx +2 -2
- package/src/theme/DebugGlobalData/index.tsx +2 -2
- package/src/theme/DebugJsonView/index.tsx +2 -5
- package/src/theme/DebugLayout/index.tsx +1 -1
- package/src/theme/DebugRegistry/index.tsx +2 -2
- package/src/theme/DebugRoutes/index.tsx +2 -2
- package/src/theme/DebugSiteMetadata/index.tsx +2 -2
|
@@ -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 DebugMetadata(): 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/DebugContent';
|
|
8
|
-
export default function DebugContent({ allContent }: Props):
|
|
9
|
+
export default function DebugContent({ allContent }: 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 DebugMetadata(): 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/DebugJsonView';
|
|
8
|
-
export default function DebugJsonView({ src, collapseDepth
|
|
9
|
+
export default function DebugJsonView({ src, collapseDepth }: 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 DebugRegistry(): 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 DebugRoutes(): 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 DebugMetadata(): ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-debug",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Debug plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-debug.d.ts",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "3.
|
|
24
|
-
"@docusaurus/types": "3.
|
|
25
|
-
"@docusaurus/utils": "3.
|
|
23
|
+
"@docusaurus/core": "3.7.0",
|
|
24
|
+
"@docusaurus/types": "3.7.0",
|
|
25
|
+
"@docusaurus/utils": "3.7.0",
|
|
26
26
|
"fs-extra": "^11.1.1",
|
|
27
27
|
"react-json-view-lite": "^1.2.0",
|
|
28
28
|
"tslib": "^2.6.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"react": "^18.0.0",
|
|
32
|
-
"react-dom": "^18.0.0"
|
|
31
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
32
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=18.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "dd59750c16fe6908a26f18806a54d4c3dbe6db43"
|
|
38
38
|
}
|
package/src/plugin-debug.d.ts
CHANGED
|
@@ -14,46 +14,57 @@ declare module '@docusaurus/plugin-debug' {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare module '@theme/DebugConfig' {
|
|
17
|
-
|
|
17
|
+
import type {ReactNode} from 'react';
|
|
18
|
+
|
|
19
|
+
export default function DebugMetadata(): ReactNode;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
declare module '@theme/DebugContent' {
|
|
23
|
+
import type {ReactNode} from 'react';
|
|
21
24
|
import type {AllContent} from '@docusaurus/types';
|
|
22
25
|
|
|
23
26
|
export interface Props {
|
|
24
27
|
readonly allContent: AllContent;
|
|
25
28
|
}
|
|
26
|
-
export default function DebugContent(props: Props):
|
|
29
|
+
export default function DebugContent(props: Props): ReactNode;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
declare module '@theme/DebugGlobalData' {
|
|
30
|
-
|
|
33
|
+
import type {ReactNode} from 'react';
|
|
34
|
+
|
|
35
|
+
export default function DebugGlobalData(): ReactNode;
|
|
31
36
|
}
|
|
32
37
|
|
|
33
38
|
declare module '@theme/DebugJsonView' {
|
|
39
|
+
import type {ReactNode} from 'react';
|
|
40
|
+
|
|
34
41
|
export interface Props {
|
|
35
42
|
readonly src: unknown;
|
|
36
43
|
readonly collapseDepth?: number;
|
|
37
44
|
}
|
|
38
|
-
export default function DebugJsonView(props: Props):
|
|
45
|
+
export default function DebugJsonView(props: Props): ReactNode;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
declare module '@theme/DebugLayout' {
|
|
42
49
|
import type {ReactNode} from 'react';
|
|
43
50
|
|
|
44
|
-
export default function DebugLayout(props: {
|
|
45
|
-
children: ReactNode;
|
|
46
|
-
}): JSX.Element;
|
|
51
|
+
export default function DebugLayout(props: {children: ReactNode}): ReactNode;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
declare module '@theme/DebugRegistry' {
|
|
50
|
-
|
|
55
|
+
import type {ReactNode} from 'react';
|
|
56
|
+
|
|
57
|
+
export default function DebugRegistry(): ReactNode;
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
declare module '@theme/DebugRoutes' {
|
|
54
|
-
|
|
61
|
+
import type {ReactNode} from 'react';
|
|
62
|
+
|
|
63
|
+
export default function DebugRoutes(): ReactNode;
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
declare module '@theme/DebugSiteMetadata' {
|
|
58
|
-
|
|
67
|
+
import type {ReactNode} from 'react';
|
|
68
|
+
|
|
69
|
+
export default function DebugSiteMetadata(): ReactNode;
|
|
59
70
|
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
10
10
|
import DebugLayout from '@theme/DebugLayout';
|
|
11
11
|
import DebugJsonView from '@theme/DebugJsonView';
|
|
12
12
|
|
|
13
|
-
export default function DebugMetadata():
|
|
13
|
+
export default function DebugMetadata(): ReactNode {
|
|
14
14
|
const {siteConfig} = useDocusaurusContext();
|
|
15
15
|
return (
|
|
16
16
|
<DebugLayout>
|
|
@@ -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
|
|
|
10
10
|
import DebugLayout from '@theme/DebugLayout';
|
|
11
11
|
import DebugJsonView from '@theme/DebugJsonView';
|
|
@@ -52,7 +52,7 @@ function PluginContent({
|
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export default function DebugContent({allContent}: Props):
|
|
55
|
+
export default function DebugContent({allContent}: Props): ReactNode {
|
|
56
56
|
return (
|
|
57
57
|
<DebugLayout>
|
|
58
58
|
<h2>Plugin content</h2>
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import useGlobalData from '@docusaurus/useGlobalData';
|
|
10
10
|
import DebugLayout from '@theme/DebugLayout';
|
|
11
11
|
import DebugJsonView from '@theme/DebugJsonView';
|
|
12
12
|
|
|
13
|
-
export default function DebugMetadata():
|
|
13
|
+
export default function DebugMetadata(): ReactNode {
|
|
14
14
|
const globalData = useGlobalData();
|
|
15
15
|
return (
|
|
16
16
|
<DebugLayout>
|
|
@@ -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 {
|
|
10
10
|
JsonView,
|
|
11
11
|
defaultStyles,
|
|
@@ -32,10 +32,7 @@ const paraisoStyles: JsonViewProps['style'] = {
|
|
|
32
32
|
collapsedContent: styles.collapseContentParaiso!,
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
export default function DebugJsonView({
|
|
36
|
-
src,
|
|
37
|
-
collapseDepth,
|
|
38
|
-
}: Props): JSX.Element {
|
|
35
|
+
export default function DebugJsonView({src, collapseDepth}: Props): ReactNode {
|
|
39
36
|
return (
|
|
40
37
|
<JsonView
|
|
41
38
|
data={src as object}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import registry from '@generated/registry';
|
|
10
10
|
import DebugLayout from '@theme/DebugLayout';
|
|
11
11
|
import styles from './styles.module.css';
|
|
12
12
|
|
|
13
|
-
export default function DebugRegistry():
|
|
13
|
+
export default function DebugRegistry(): ReactNode {
|
|
14
14
|
return (
|
|
15
15
|
<DebugLayout>
|
|
16
16
|
<h2>Registry</h2>
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import routes from '@generated/routes';
|
|
10
10
|
import DebugLayout from '@theme/DebugLayout';
|
|
11
11
|
import DebugJsonView from '@theme/DebugJsonView';
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
export default function DebugRoutes():
|
|
14
|
+
export default function DebugRoutes(): ReactNode {
|
|
15
15
|
return (
|
|
16
16
|
<DebugLayout>
|
|
17
17
|
<h2>Routes</h2>
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
10
10
|
import DebugLayout from '@theme/DebugLayout';
|
|
11
11
|
import styles from './styles.module.css';
|
|
12
12
|
|
|
13
|
-
export default function DebugMetadata():
|
|
13
|
+
export default function DebugMetadata(): ReactNode {
|
|
14
14
|
const {siteMetadata} = useDocusaurusContext();
|
|
15
15
|
return (
|
|
16
16
|
<DebugLayout>
|