@docusaurus/core 3.6.3-canary-6167 → 3.6.3-canary-6168
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/commands/swizzle/actions.js +2 -2
- package/package.json +11 -11
|
@@ -76,14 +76,14 @@ async function wrap({ siteDir, themePath, componentName: themeComponentName, typ
|
|
|
76
76
|
await fs_extra_1.default.ensureDir(path_1.default.resolve(siteDir, utils_1.THEME_PATH));
|
|
77
77
|
const toPath = path_1.default.resolve(siteDir, utils_1.THEME_PATH, wrapperFileName);
|
|
78
78
|
const content = typescript
|
|
79
|
-
? `import React from 'react';
|
|
79
|
+
? `import React, {type ReactNode} from 'react';
|
|
80
80
|
import ${componentName} from '@theme-${importType}/${themeComponentName}';
|
|
81
81
|
import type ${componentName}Type from '@theme/${themeComponentName}';
|
|
82
82
|
import type {WrapperProps} from '@docusaurus/types';
|
|
83
83
|
|
|
84
84
|
type Props = WrapperProps<typeof ${componentName}Type>;
|
|
85
85
|
|
|
86
|
-
export default function ${wrapperComponentName}(props: Props):
|
|
86
|
+
export default function ${wrapperComponentName}(props: Props): ReactNode {
|
|
87
87
|
return (
|
|
88
88
|
<>
|
|
89
89
|
<${componentName} {...props} />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "3.6.3-canary-
|
|
4
|
+
"version": "3.6.3-canary-6168",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@docusaurus/babel": "3.6.3-canary-
|
|
37
|
-
"@docusaurus/bundler": "3.6.3-canary-
|
|
38
|
-
"@docusaurus/logger": "3.6.3-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "3.6.3-canary-
|
|
40
|
-
"@docusaurus/utils": "3.6.3-canary-
|
|
41
|
-
"@docusaurus/utils-common": "3.6.3-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "3.6.3-canary-
|
|
36
|
+
"@docusaurus/babel": "3.6.3-canary-6168",
|
|
37
|
+
"@docusaurus/bundler": "3.6.3-canary-6168",
|
|
38
|
+
"@docusaurus/logger": "3.6.3-canary-6168",
|
|
39
|
+
"@docusaurus/mdx-loader": "3.6.3-canary-6168",
|
|
40
|
+
"@docusaurus/utils": "3.6.3-canary-6168",
|
|
41
|
+
"@docusaurus/utils-common": "3.6.3-canary-6168",
|
|
42
|
+
"@docusaurus/utils-validation": "3.6.3-canary-6168",
|
|
43
43
|
"boxen": "^6.2.1",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"chokidar": "^3.5.3",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"webpack-merge": "^6.0.1"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@docusaurus/module-type-aliases": "3.6.3-canary-
|
|
82
|
-
"@docusaurus/types": "3.6.3-canary-
|
|
81
|
+
"@docusaurus/module-type-aliases": "3.6.3-canary-6168",
|
|
82
|
+
"@docusaurus/types": "3.6.3-canary-6168",
|
|
83
83
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
84
84
|
"@types/detect-port": "^1.3.3",
|
|
85
85
|
"@types/react-dom": "^18.2.7",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=18.0"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "a348f772bea1e39fae869e5ab1fc2b95e5d037de"
|
|
104
104
|
}
|