@docusaurus/core 3.6.3-canary-6167 → 3.6.3-canary-6169

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.
@@ -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): JSX.Element {
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-6167",
4
+ "version": "3.6.3-canary-6169",
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-6167",
37
- "@docusaurus/bundler": "3.6.3-canary-6167",
38
- "@docusaurus/logger": "3.6.3-canary-6167",
39
- "@docusaurus/mdx-loader": "3.6.3-canary-6167",
40
- "@docusaurus/utils": "3.6.3-canary-6167",
41
- "@docusaurus/utils-common": "3.6.3-canary-6167",
42
- "@docusaurus/utils-validation": "3.6.3-canary-6167",
36
+ "@docusaurus/babel": "3.6.3-canary-6169",
37
+ "@docusaurus/bundler": "3.6.3-canary-6169",
38
+ "@docusaurus/logger": "3.6.3-canary-6169",
39
+ "@docusaurus/mdx-loader": "3.6.3-canary-6169",
40
+ "@docusaurus/utils": "3.6.3-canary-6169",
41
+ "@docusaurus/utils-common": "3.6.3-canary-6169",
42
+ "@docusaurus/utils-validation": "3.6.3-canary-6169",
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-6167",
82
- "@docusaurus/types": "3.6.3-canary-6167",
81
+ "@docusaurus/module-type-aliases": "3.6.3-canary-6169",
82
+ "@docusaurus/types": "3.6.3-canary-6169",
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": "d8c53eaab293c71917973e7358a894572141e1c8"
103
+ "gitHead": "4957d1c1c6f7791c953f400d89765e53afc45855"
104
104
  }