@storybook/react-vite 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/index.d.ts
CHANGED
package/dist/preset.d.ts
CHANGED
|
@@ -1051,13 +1051,19 @@ interface StorybookConfig$1 {
|
|
|
1051
1051
|
previewHead?: PresetValue<string>;
|
|
1052
1052
|
previewBody?: PresetValue<string>;
|
|
1053
1053
|
/**
|
|
1054
|
-
*
|
|
1054
|
+
* Programmatically override the preview's main page template.
|
|
1055
1055
|
* This should return a reference to a file containing an `.ejs` template
|
|
1056
1056
|
* that will be interpolated with environment variables.
|
|
1057
1057
|
*
|
|
1058
1058
|
* @example '.storybook/index.ejs'
|
|
1059
1059
|
*/
|
|
1060
1060
|
previewMainTemplate?: string;
|
|
1061
|
+
/**
|
|
1062
|
+
* Programmatically modify the preview head/body HTML.
|
|
1063
|
+
* The managerHead function accept a string,
|
|
1064
|
+
* which is the existing head content, and return a modified string.
|
|
1065
|
+
*/
|
|
1066
|
+
managerHead?: PresetValue<string>;
|
|
1061
1067
|
}
|
|
1062
1068
|
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
|
1063
1069
|
type PresetProperty<K, TStorybookConfig = StorybookConfig$1> = 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-vite",
|
|
3
|
-
"version": "7.1.0-alpha.
|
|
3
|
+
"version": "7.1.0-alpha.23",
|
|
4
4
|
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@joshwooding/vite-plugin-react-docgen-typescript": "0.2.1",
|
|
51
51
|
"@rollup/pluginutils": "^4.2.0",
|
|
52
|
-
"@storybook/builder-vite": "7.1.0-alpha.
|
|
53
|
-
"@storybook/react": "7.1.0-alpha.
|
|
52
|
+
"@storybook/builder-vite": "7.1.0-alpha.23",
|
|
53
|
+
"@storybook/react": "7.1.0-alpha.23",
|
|
54
54
|
"@vitejs/plugin-react": "^3.0.1",
|
|
55
55
|
"ast-types": "^0.14.2",
|
|
56
56
|
"magic-string": "^0.27.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
],
|
|
80
80
|
"platform": "node"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "4e6e01b944b879104250d5f4af38451724a0ed0e"
|
|
83
83
|
}
|