@docusaurus/plugin-debug 2.0.0-beta.15 → 2.0.0-beta.16
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 +1 -2
- package/lib/theme/DebugContent/index.d.ts +1 -2
- package/lib/theme/DebugGlobalData/index.d.ts +1 -2
- package/lib/theme/DebugJsonView/index.d.ts +1 -2
- package/lib/theme/DebugJsonView/index.js +1 -1
- package/lib/theme/DebugLayout/index.d.ts +1 -2
- package/lib/theme/DebugLayout/index.js +1 -1
- package/lib/theme/DebugRegistry/index.d.ts +1 -2
- package/lib/theme/DebugRoutes/index.d.ts +1 -2
- package/lib/theme/DebugSiteMetadata/index.d.ts +1 -2
- package/package.json +6 -6
- package/src/index.ts +0 -1
- package/src/plugin-debug.d.ts +2 -0
- package/src/theme/DebugConfig/index.tsx +1 -3
- package/src/theme/DebugContent/index.tsx +1 -3
- package/src/theme/DebugGlobalData/index.tsx +1 -3
- package/src/theme/DebugJsonView/index.tsx +4 -3
- package/src/theme/DebugLayout/index.tsx +5 -3
- package/src/theme/DebugRegistry/index.tsx +1 -3
- package/src/theme/DebugRoutes/index.tsx +1 -3
- package/src/theme/DebugSiteMetadata/index.tsx +1 -3
|
@@ -6,5 +6,4 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
import type { Props } from '@theme/DebugJsonView';
|
|
9
|
-
|
|
10
|
-
export default DebugJsonView;
|
|
9
|
+
export default function DebugJsonView({ src, collapseDepth, }: Props): JSX.Element;
|
|
@@ -20,7 +20,7 @@ function BrowserOnlyReactJson(props) {
|
|
|
20
20
|
return react_1.default.createElement(ReactJson, { ...props });
|
|
21
21
|
}));
|
|
22
22
|
}
|
|
23
|
-
function DebugJsonView({ src, collapseDepth }) {
|
|
23
|
+
function DebugJsonView({ src, collapseDepth, }) {
|
|
24
24
|
return (react_1.default.createElement(BrowserOnlyReactJson, { src: src, style: {
|
|
25
25
|
marginTop: '10px',
|
|
26
26
|
padding: '10px',
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import { type ReactNode } from 'react';
|
|
8
|
-
|
|
8
|
+
export default function DebugLayout({ children, }: {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}): JSX.Element;
|
|
11
|
-
export default DebugLayout;
|
|
@@ -16,7 +16,7 @@ function DebugNavLink({ to, children }) {
|
|
|
16
16
|
backgroundColor: '#363739',
|
|
17
17
|
} }, children));
|
|
18
18
|
}
|
|
19
|
-
function DebugLayout({ children }) {
|
|
19
|
+
function DebugLayout({ children, }) {
|
|
20
20
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
21
21
|
react_1.default.createElement(Head_1.default, null,
|
|
22
22
|
react_1.default.createElement("html", { lang: "en" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-debug",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"description": "Debug plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-debug.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "2.0.0-beta.
|
|
22
|
-
"@docusaurus/utils": "2.0.0-beta.
|
|
23
|
-
"fs-extra": "^10.0.
|
|
21
|
+
"@docusaurus/core": "2.0.0-beta.16",
|
|
22
|
+
"@docusaurus/utils": "2.0.0-beta.16",
|
|
23
|
+
"fs-extra": "^10.0.1",
|
|
24
24
|
"react-json-view": "^1.21.3",
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@docusaurus/types": "2.0.0-beta.
|
|
28
|
+
"@docusaurus/types": "2.0.0-beta.16"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=14"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "eb43c4d4f95a4fb97dc9bb9dc615413e0dc2e1e7"
|
|
38
38
|
}
|
package/src/index.ts
CHANGED
package/src/plugin-debug.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import DebugJsonView from '@theme/DebugJsonView';
|
|
|
12
12
|
|
|
13
13
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
14
14
|
|
|
15
|
-
function DebugMetadata(): JSX.Element {
|
|
15
|
+
export default function DebugMetadata(): JSX.Element {
|
|
16
16
|
const {siteConfig} = useDocusaurusContext();
|
|
17
17
|
return (
|
|
18
18
|
<DebugLayout>
|
|
@@ -21,5 +21,3 @@ function DebugMetadata(): JSX.Element {
|
|
|
21
21
|
</DebugLayout>
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
export default DebugMetadata;
|
|
@@ -54,7 +54,7 @@ function PluginContent({
|
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function DebugContent({allContent}: Props): JSX.Element {
|
|
57
|
+
export default function DebugContent({allContent}: Props): JSX.Element {
|
|
58
58
|
return (
|
|
59
59
|
<DebugLayout>
|
|
60
60
|
<h2>Plugin content</h2>
|
|
@@ -77,5 +77,3 @@ function DebugContent({allContent}: Props): JSX.Element {
|
|
|
77
77
|
</DebugLayout>
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
export default DebugContent;
|
|
@@ -11,7 +11,7 @@ import DebugLayout from '@theme/DebugLayout';
|
|
|
11
11
|
import DebugJsonView from '@theme/DebugJsonView';
|
|
12
12
|
import useGlobalData from '@docusaurus/useGlobalData';
|
|
13
13
|
|
|
14
|
-
function DebugMetadata(): JSX.Element {
|
|
14
|
+
export default function DebugMetadata(): JSX.Element {
|
|
15
15
|
const globalData = useGlobalData();
|
|
16
16
|
return (
|
|
17
17
|
<DebugLayout>
|
|
@@ -20,5 +20,3 @@ function DebugMetadata(): JSX.Element {
|
|
|
20
20
|
</DebugLayout>
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
export default DebugMetadata;
|
|
@@ -27,7 +27,10 @@ function BrowserOnlyReactJson(props: ReactJsonViewProps) {
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function DebugJsonView({
|
|
30
|
+
export default function DebugJsonView({
|
|
31
|
+
src,
|
|
32
|
+
collapseDepth,
|
|
33
|
+
}: Props): JSX.Element {
|
|
31
34
|
return (
|
|
32
35
|
<BrowserOnlyReactJson
|
|
33
36
|
src={src as object}
|
|
@@ -52,5 +55,3 @@ function DebugJsonView({src, collapseDepth}: Props): JSX.Element {
|
|
|
52
55
|
/>
|
|
53
56
|
);
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
export default DebugJsonView;
|
|
@@ -25,7 +25,11 @@ function DebugNavLink({to, children}: {to: string; children: ReactNode}) {
|
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
function DebugLayout({
|
|
28
|
+
export default function DebugLayout({
|
|
29
|
+
children,
|
|
30
|
+
}: {
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
}): JSX.Element {
|
|
29
33
|
return (
|
|
30
34
|
<>
|
|
31
35
|
<Head>
|
|
@@ -53,5 +57,3 @@ function DebugLayout({children}: {children: ReactNode}): JSX.Element {
|
|
|
53
57
|
</>
|
|
54
58
|
);
|
|
55
59
|
}
|
|
56
|
-
|
|
57
|
-
export default DebugLayout;
|
|
@@ -11,7 +11,7 @@ import DebugLayout from '@theme/DebugLayout';
|
|
|
11
11
|
import registry from '@generated/registry';
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
function DebugRegistry(): JSX.Element {
|
|
14
|
+
export default function DebugRegistry(): JSX.Element {
|
|
15
15
|
return (
|
|
16
16
|
<DebugLayout>
|
|
17
17
|
<h2>Registry</h2>
|
|
@@ -30,5 +30,3 @@ function DebugRegistry(): JSX.Element {
|
|
|
30
30
|
</DebugLayout>
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
export default DebugRegistry;
|
|
@@ -12,7 +12,7 @@ import DebugJsonView from '@theme/DebugJsonView';
|
|
|
12
12
|
import routes from '@generated/routes';
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
15
|
-
function DebugRoutes(): JSX.Element {
|
|
15
|
+
export default function DebugRoutes(): JSX.Element {
|
|
16
16
|
return (
|
|
17
17
|
<DebugLayout>
|
|
18
18
|
<h2>Routes</h2>
|
|
@@ -37,5 +37,3 @@ function DebugRoutes(): JSX.Element {
|
|
|
37
37
|
</DebugLayout>
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
export default DebugRoutes;
|
|
@@ -11,7 +11,7 @@ import DebugLayout from '@theme/DebugLayout';
|
|
|
11
11
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
function DebugMetadata(): JSX.Element {
|
|
14
|
+
export default function DebugMetadata(): JSX.Element {
|
|
15
15
|
const {siteMetadata} = useDocusaurusContext();
|
|
16
16
|
return (
|
|
17
17
|
<DebugLayout>
|
|
@@ -43,5 +43,3 @@ function DebugMetadata(): JSX.Element {
|
|
|
43
43
|
</DebugLayout>
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
export default DebugMetadata;
|