@docusaurus/types 3.6.3 → 3.7.0
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/package.json +5 -5
- package/src/plugin.d.ts +7 -5
- package/src/swizzle.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"@types/react": "*",
|
|
19
19
|
"commander": "^5.1.0",
|
|
20
20
|
"joi": "^17.9.2",
|
|
21
|
-
"react-helmet-async": "
|
|
21
|
+
"react-helmet-async": "npm:@slorber/react-helmet-async@1.3.0",
|
|
22
22
|
"utility-types": "^3.10.0",
|
|
23
23
|
"webpack": "^5.95.0",
|
|
24
24
|
"webpack-merge": "^5.9.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"react": "^18.0.0",
|
|
28
|
-
"react-dom": "^18.0.0"
|
|
27
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
28
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "dd59750c16fe6908a26f18806a54d4c3dbe6db43"
|
|
31
31
|
}
|
package/src/plugin.d.ts
CHANGED
|
@@ -108,6 +108,12 @@ export type HtmlTagObject = {
|
|
|
108
108
|
|
|
109
109
|
export type HtmlTags = string | HtmlTagObject | (string | HtmlTagObject)[];
|
|
110
110
|
|
|
111
|
+
export type ConfigureWebpackResult = WebpackConfiguration & {
|
|
112
|
+
mergeStrategy?: {
|
|
113
|
+
[key: string]: CustomizeRuleString;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
|
|
111
117
|
export type Plugin<Content = unknown> = {
|
|
112
118
|
name: string;
|
|
113
119
|
loadContent?: () => Promise<Content> | Content;
|
|
@@ -134,11 +140,7 @@ export type Plugin<Content = unknown> = {
|
|
|
134
140
|
isServer: boolean,
|
|
135
141
|
configureWebpackUtils: ConfigureWebpackUtils,
|
|
136
142
|
content: Content,
|
|
137
|
-
) =>
|
|
138
|
-
mergeStrategy?: {
|
|
139
|
-
[key: string]: CustomizeRuleString;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
143
|
+
) => ConfigureWebpackResult;
|
|
142
144
|
configurePostCss?: (options: PostCssOptions) => PostCssOptions;
|
|
143
145
|
getThemePath?: () => string;
|
|
144
146
|
getTypeScriptThemePath?: () => string;
|
package/src/swizzle.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {JSXElementConstructor} from 'react';
|
|
8
|
+
import type {JSX, JSXElementConstructor} from 'react';
|
|
9
9
|
|
|
10
10
|
export type SwizzleAction = 'eject' | 'wrap';
|
|
11
11
|
export type SwizzleActionStatus = 'safe' | 'unsafe' | 'forbidden';
|