@storybook/react-webpack5 7.1.0-alpha.21 → 7.1.0-alpha.23
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 +7 -1
- package/package.json +5 -5
package/dist/preset.d.ts
CHANGED
@@ -1052,13 +1052,19 @@ interface StorybookConfig {
|
|
1052
1052
|
previewHead?: PresetValue<string>;
|
1053
1053
|
previewBody?: PresetValue<string>;
|
1054
1054
|
/**
|
1055
|
-
*
|
1055
|
+
* Programmatically override the preview's main page template.
|
1056
1056
|
* This should return a reference to a file containing an `.ejs` template
|
1057
1057
|
* that will be interpolated with environment variables.
|
1058
1058
|
*
|
1059
1059
|
* @example '.storybook/index.ejs'
|
1060
1060
|
*/
|
1061
1061
|
previewMainTemplate?: string;
|
1062
|
+
/**
|
1063
|
+
* Programmatically modify the preview head/body HTML.
|
1064
|
+
* The managerHead function accept a string,
|
1065
|
+
* which is the existing head content, and return a modified string.
|
1066
|
+
*/
|
1067
|
+
managerHead?: PresetValue<string>;
|
1062
1068
|
}
|
1063
1069
|
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
1064
1070
|
type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "7.1.0-alpha.
|
3
|
+
"version": "7.1.0-alpha.23",
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,9 +47,9 @@
|
|
47
47
|
"prep": "../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/builder-webpack5": "7.1.0-alpha.
|
51
|
-
"@storybook/preset-react-webpack": "7.1.0-alpha.
|
52
|
-
"@storybook/react": "7.1.0-alpha.
|
50
|
+
"@storybook/builder-webpack5": "7.1.0-alpha.23",
|
51
|
+
"@storybook/preset-react-webpack": "7.1.0-alpha.23",
|
52
|
+
"@storybook/react": "7.1.0-alpha.23",
|
53
53
|
"@types/node": "^16.0.0"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
@@ -82,5 +82,5 @@
|
|
82
82
|
],
|
83
83
|
"platform": "node"
|
84
84
|
},
|
85
|
-
"gitHead": "
|
85
|
+
"gitHead": "4e6e01b944b879104250d5f4af38451724a0ed0e"
|
86
86
|
}
|