@docusaurus/core 4.0.0-canary-6808 → 4.0.0-canary-6809
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.
|
@@ -4,7 +4,7 @@
|
|
|
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 {
|
|
7
|
+
import { useLayoutEffect } from 'react';
|
|
8
8
|
/**
|
|
9
9
|
* This hook is like `useLayoutEffect`, but without the SSR warning.
|
|
10
10
|
* It seems hacky but it's used in many React libs (Redux, Formik...).
|
|
@@ -17,5 +17,5 @@ import { useEffect } from 'react';
|
|
|
17
17
|
* https://github.com/facebook/react/pull/26395
|
|
18
18
|
* This was added in core with Docusaurus v3 but kept undocumented on purpose
|
|
19
19
|
*/
|
|
20
|
-
declare const useIsomorphicLayoutEffect: typeof
|
|
20
|
+
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
21
21
|
export default useIsomorphicLayoutEffect;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
export = createEvalSourceMapMiddleware;
|
|
8
|
+
/**
|
|
9
|
+
* Middleware responsible for retrieving a generated source
|
|
10
|
+
* Receives a webpack internal url: "webpack-internal:///<module-id>"
|
|
11
|
+
* Returns a generated source: "<source-text><sourceMappingURL><sourceURL>"
|
|
12
|
+
*
|
|
13
|
+
* Based on EvalSourceMapDevToolModuleTemplatePlugin.js
|
|
14
|
+
*
|
|
15
|
+
* @param {import("webpack-dev-server").default} server
|
|
16
|
+
* @returns {import("express").Handler}
|
|
17
|
+
*/
|
|
18
|
+
declare function createEvalSourceMapMiddleware(server: import("webpack-dev-server").default): import("express").Handler;
|
|
@@ -4,5 +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
|
-
declare const _default
|
|
7
|
+
declare const _default = "\n<!DOCTYPE html>\n<html <%~ it.htmlAttributes %>>\n <head>\n <meta charset=\"UTF-8\">\n <meta name=\"generator\" content=\"Docusaurus v<%= it.version %>\">\n <% it.metaAttributes.forEach((metaAttribute) => { %>\n <%~ metaAttribute %>\n <% }); %>\n <%~ it.headTags %>\n <% it.stylesheets.forEach((stylesheet) => { %>\n <link rel=\"stylesheet\" href=\"<%= it.baseUrl %><%= stylesheet %>\" />\n <% }); %>\n <% it.scripts.forEach((script) => { %>\n <script src=\"<%= it.baseUrl %><%= script %>\" defer></script>\n <% }); %>\n </head>\n <body <%~ it.bodyAttributes %>>\n <%~ it.preBodyTags %>\n <div id=\"__docusaurus\"><%~ it.appHtml %></div>\n <%~ it.postBodyTags %>\n </body>\n</html>\n";
|
|
8
8
|
export default _default;
|
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": "4.0.0-canary-
|
|
4
|
+
"version": "4.0.0-canary-6809",
|
|
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": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
40
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
41
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
36
|
+
"@docusaurus/babel": "4.0.0-canary-6809",
|
|
37
|
+
"@docusaurus/bundler": "4.0.0-canary-6809",
|
|
38
|
+
"@docusaurus/logger": "4.0.0-canary-6809",
|
|
39
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6809",
|
|
40
|
+
"@docusaurus/utils": "4.0.0-canary-6809",
|
|
41
|
+
"@docusaurus/utils-common": "4.0.0-canary-6809",
|
|
42
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6809",
|
|
43
43
|
"boxen": "^6.2.1",
|
|
44
44
|
"chokidar": "^3.6.0",
|
|
45
45
|
"cli-table3": "^0.6.5",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"webpack-merge": "^6.0.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
80
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
79
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6809",
|
|
80
|
+
"@docusaurus/types": "4.0.0-canary-6809",
|
|
81
81
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
82
82
|
"@types/escape-html": "^1.0.4",
|
|
83
83
|
"@types/history": "^4.7.11",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"tree-node-cli": "^3.0.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@docusaurus/faster": "4.0.0-canary-
|
|
94
|
+
"@docusaurus/faster": "4.0.0-canary-6809",
|
|
95
95
|
"@mdx-js/react": "^3.1.1",
|
|
96
96
|
"react": "^19.3.0",
|
|
97
97
|
"react-dom": "^19.3.0"
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": ">=24.14"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "db942b07f3529b5359bcae27ab3796cb07dec10e"
|
|
108
108
|
}
|