@storybook/react-webpack5 7.0.0-beta.1 → 7.0.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/preset.d.ts +7 -6
- package/package.json +6 -6
package/dist/preset.d.ts
CHANGED
@@ -1020,7 +1020,7 @@ interface StorybookConfig {
|
|
1020
1020
|
/**
|
1021
1021
|
* References external Storybooks
|
1022
1022
|
*/
|
1023
|
-
refs?: CoreCommon_StorybookRefs
|
1023
|
+
refs?: PresetValue<CoreCommon_StorybookRefs>;
|
1024
1024
|
/**
|
1025
1025
|
* Modify or return babel config.
|
1026
1026
|
*/
|
@@ -1034,15 +1034,15 @@ interface StorybookConfig {
|
|
1034
1034
|
*
|
1035
1035
|
* @deprecated use `previewAnnotations` or `/preview.js` file instead
|
1036
1036
|
*/
|
1037
|
-
config?:
|
1037
|
+
config?: PresetValue<Entry[]>;
|
1038
1038
|
/**
|
1039
1039
|
* Add additional scripts to run in the preview a la `.storybook/preview.js`
|
1040
1040
|
*/
|
1041
|
-
previewAnnotations?:
|
1041
|
+
previewAnnotations?: PresetValue<Entry[]>;
|
1042
1042
|
/**
|
1043
1043
|
* Process CSF files for the story index.
|
1044
1044
|
*/
|
1045
|
-
storyIndexers?:
|
1045
|
+
storyIndexers?: PresetValue<StoryIndexer[]>;
|
1046
1046
|
/**
|
1047
1047
|
* Docs related features in index generation
|
1048
1048
|
*/
|
@@ -1052,9 +1052,10 @@ interface StorybookConfig {
|
|
1052
1052
|
* The previewHead and previewBody functions accept a string,
|
1053
1053
|
* which is the existing head/body, and return a modified string.
|
1054
1054
|
*/
|
1055
|
-
previewHead?:
|
1056
|
-
previewBody?:
|
1055
|
+
previewHead?: PresetValue<string>;
|
1056
|
+
previewBody?: PresetValue<string>;
|
1057
1057
|
}
|
1058
|
+
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
1058
1059
|
type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
1059
1060
|
type PresetPropertyFn<K, TStorybookConfig = StorybookConfig, TOptions = {}> = (config: TStorybookConfig[K extends keyof TStorybookConfig ? K : never], options: Options & TOptions) => TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | Promise<TStorybookConfig[K extends keyof TStorybookConfig ? K : never]>;
|
1060
1061
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "7.0.0-beta.
|
3
|
+
"version": "7.0.0-beta.3",
|
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
|
"prep": "../../../scripts/prepare/bundle.ts"
|
52
52
|
},
|
53
53
|
"dependencies": {
|
54
|
-
"@storybook/builder-webpack5": "7.0.0-beta.
|
55
|
-
"@storybook/preset-react-webpack": "7.0.0-beta.
|
56
|
-
"@storybook/react": "7.0.0-beta.
|
54
|
+
"@storybook/builder-webpack5": "7.0.0-beta.3",
|
55
|
+
"@storybook/preset-react-webpack": "7.0.0-beta.3",
|
56
|
+
"@storybook/react": "7.0.0-beta.3",
|
57
57
|
"@types/node": "^16.0.0"
|
58
58
|
},
|
59
59
|
"devDependencies": {
|
@@ -74,7 +74,7 @@
|
|
74
74
|
}
|
75
75
|
},
|
76
76
|
"engines": {
|
77
|
-
"node": ">=
|
77
|
+
"node": ">=16.0.0"
|
78
78
|
},
|
79
79
|
"publishConfig": {
|
80
80
|
"access": "public"
|
@@ -86,5 +86,5 @@
|
|
86
86
|
],
|
87
87
|
"platform": "node"
|
88
88
|
},
|
89
|
-
"gitHead": "
|
89
|
+
"gitHead": "9a57b4788c8b2817db516d799057d8295b187880"
|
90
90
|
}
|