@docusaurus/core 0.0.0-5118 → 0.0.0-5123

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.
@@ -108,6 +108,9 @@ async function doRender(locals) {
108
108
  version: DOCUSAURUS_VERSION,
109
109
  });
110
110
  try {
111
+ if (process.env.SKIP_HTML_MINIFICATION === 'true') {
112
+ return renderedHtml;
113
+ }
111
114
  // Minify html with https://github.com/DanielRuf/html-minifier-terser
112
115
  return await minify(renderedHtml, {
113
116
  removeComments: false,
@@ -69,11 +69,12 @@ async function wrap({ siteDir, themePath, componentName: themeComponentName, typ
69
69
  await fs_extra_1.default.ensureDir(path_1.default.resolve(siteDir, utils_1.THEME_PATH));
70
70
  const toPath = path_1.default.resolve(siteDir, utils_1.THEME_PATH, wrapperFileName);
71
71
  const content = typescript
72
- ? `import React, {ComponentProps} from 'react';
72
+ ? `import React from 'react';
73
73
  import ${componentName} from '@theme-${importType}/${themeComponentName}';
74
74
  import type ${componentName}Type from '@theme/${themeComponentName}';
75
+ import type {WrapperProps} from '@docusaurus/types';
75
76
 
76
- type Props = ComponentProps<typeof ${componentName}Type>;
77
+ type Props = WrapperProps<typeof ${componentName}Type>;
77
78
 
78
79
  export default function ${wrapperComponentName}(props: Props): JSX.Element {
79
80
  return (
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": "0.0.0-5118",
4
+ "version": "0.0.0-5123",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -43,13 +43,13 @@
43
43
  "@babel/runtime": "^7.18.3",
44
44
  "@babel/runtime-corejs3": "^7.18.3",
45
45
  "@babel/traverse": "^7.18.2",
46
- "@docusaurus/cssnano-preset": "0.0.0-5118",
47
- "@docusaurus/logger": "0.0.0-5118",
48
- "@docusaurus/mdx-loader": "0.0.0-5118",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5123",
47
+ "@docusaurus/logger": "0.0.0-5123",
48
+ "@docusaurus/mdx-loader": "0.0.0-5123",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5118",
51
- "@docusaurus/utils-common": "0.0.0-5118",
52
- "@docusaurus/utils-validation": "0.0.0-5118",
50
+ "@docusaurus/utils": "0.0.0-5123",
51
+ "@docusaurus/utils-common": "0.0.0-5123",
52
+ "@docusaurus/utils-validation": "0.0.0-5123",
53
53
  "@slorber/static-site-generator-webpack-plugin": "^4.0.7",
54
54
  "@svgr/webpack": "^6.2.1",
55
55
  "autoprefixer": "^10.4.7",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-5118",
110
- "@docusaurus/types": "0.0.0-5118",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5123",
110
+ "@docusaurus/types": "0.0.0-5123",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/react-dom": "^18.0.5",
113
113
  "@types/react-router-config": "^5.0.6",
@@ -127,5 +127,5 @@
127
127
  "engines": {
128
128
  "node": ">=16.14"
129
129
  },
130
- "gitHead": "0e5967b8e26bf54151bacc1982044466106f69ce"
130
+ "gitHead": "c53a3e9c3a387b66c65d8eb28faa081274ff64e5"
131
131
  }