@storybook/react-webpack5 7.0.0-alpha.26 → 7.0.0-alpha.27
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/dist/preset.d.ts +12 -3
- package/package.json +5 -5
package/dist/preset.d.ts
CHANGED
@@ -298,15 +298,17 @@ declare namespace PackageJson$1 {
|
|
298
298
|
string
|
299
299
|
>;
|
300
300
|
|
301
|
+
type ExportConditions = {[condition in ExportCondition]: Exports};
|
302
|
+
|
301
303
|
/**
|
302
304
|
Entry points of a module, optionally with conditions and subpath exports.
|
303
305
|
*/
|
304
306
|
export type Exports =
|
305
307
|
| null
|
306
308
|
| string
|
307
|
-
| string
|
308
|
-
|
|
309
|
-
| {[
|
309
|
+
| Array<string | ExportConditions>
|
310
|
+
| ExportConditions
|
311
|
+
| {[path: string]: Exports}; // eslint-disable-line @typescript-eslint/consistent-indexed-object-style
|
310
312
|
|
311
313
|
/**
|
312
314
|
Import map entries of a module, optionally with conditions.
|
@@ -1052,6 +1054,13 @@ interface StorybookConfig {
|
|
1052
1054
|
* Docs related features in index generation
|
1053
1055
|
*/
|
1054
1056
|
docs?: DocsOptions;
|
1057
|
+
/**
|
1058
|
+
* Programmatically modify the preview head/body HTML.
|
1059
|
+
* The previewHead and previewBody functions accept a string,
|
1060
|
+
* which is the existing head/body, and return a modified string.
|
1061
|
+
*/
|
1062
|
+
previewHead?: (head: string, options: Options$1) => string;
|
1063
|
+
previewBody?: (body: string, options: Options$1) => string;
|
1055
1064
|
}
|
1056
1065
|
declare type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
1057
1066
|
declare type PresetPropertyFn<K, TStorybookConfig = StorybookConfig, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options$1 & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "7.0.0-alpha.
|
3
|
+
"version": "7.0.0-alpha.27",
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -51,9 +51,9 @@
|
|
51
51
|
"prepare": "../../../scripts/prepare/bundle.ts"
|
52
52
|
},
|
53
53
|
"dependencies": {
|
54
|
-
"@storybook/builder-webpack5": "7.0.0-alpha.
|
55
|
-
"@storybook/preset-react-webpack": "7.0.0-alpha.
|
56
|
-
"@storybook/react": "7.0.0-alpha.
|
54
|
+
"@storybook/builder-webpack5": "7.0.0-alpha.27",
|
55
|
+
"@storybook/preset-react-webpack": "7.0.0-alpha.27",
|
56
|
+
"@storybook/react": "7.0.0-alpha.27",
|
57
57
|
"@types/node": "^14.14.20 || ^16.0.0",
|
58
58
|
"core-js": "^3.8.2"
|
59
59
|
},
|
@@ -87,5 +87,5 @@
|
|
87
87
|
],
|
88
88
|
"platform": "node"
|
89
89
|
},
|
90
|
-
"gitHead": "
|
90
|
+
"gitHead": "3e33f0709dd97151b7dfd86fd9858d13fd1c5738"
|
91
91
|
}
|