@storybook/react-vite 7.0.0-rc.0 → 7.0.0-rc.10
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
|
@@ -886,7 +886,6 @@ interface BuilderOptions {
|
|
|
886
886
|
cache?: FileSystemCache;
|
|
887
887
|
configDir: string;
|
|
888
888
|
docsMode?: boolean;
|
|
889
|
-
env?: (envs: Record<string, string>) => Record<string, string>;
|
|
890
889
|
features?: StorybookConfig$1['features'];
|
|
891
890
|
versionCheck?: VersionCheck;
|
|
892
891
|
releaseNotesData?: ReleaseNotesData;
|
|
@@ -1028,6 +1027,10 @@ interface StorybookConfig$1 {
|
|
|
1028
1027
|
* Modify or return babel config.
|
|
1029
1028
|
*/
|
|
1030
1029
|
babel?: (config: TransformOptions, options: Options) => TransformOptions | Promise<TransformOptions>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Modify or return env config.
|
|
1032
|
+
*/
|
|
1033
|
+
env?: PresetValue<Record<string, string>>;
|
|
1031
1034
|
/**
|
|
1032
1035
|
* Modify or return babel config.
|
|
1033
1036
|
*/
|
|
@@ -1057,6 +1060,14 @@ interface StorybookConfig$1 {
|
|
|
1057
1060
|
*/
|
|
1058
1061
|
previewHead?: PresetValue<string>;
|
|
1059
1062
|
previewBody?: PresetValue<string>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Programatically override the preview's main page template.
|
|
1065
|
+
* This should return a reference to a file containing an `.ejs` template
|
|
1066
|
+
* that will be interpolated with environment variables.
|
|
1067
|
+
*
|
|
1068
|
+
* @example '.storybook/index.ejs'
|
|
1069
|
+
*/
|
|
1070
|
+
previewMainTemplate?: string;
|
|
1060
1071
|
}
|
|
1061
1072
|
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
|
1062
1073
|
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.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.10",
|
|
4
4
|
"description": "Storybook for React and Vite: Develop React components in isolation with Hot Reloading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@joshwooding/vite-plugin-react-docgen-typescript": "^0.2.1",
|
|
52
52
|
"@rollup/pluginutils": "^4.2.0",
|
|
53
|
-
"@storybook/builder-vite": "7.0.0-rc.
|
|
54
|
-
"@storybook/react": "7.0.0-rc.
|
|
53
|
+
"@storybook/builder-vite": "7.0.0-rc.10",
|
|
54
|
+
"@storybook/react": "7.0.0-rc.10",
|
|
55
55
|
"@vitejs/plugin-react": "^3.0.1",
|
|
56
56
|
"ast-types": "^0.14.2",
|
|
57
57
|
"magic-string": "^0.27.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
],
|
|
81
81
|
"platform": "node"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "dd10adf7821c47f0d3a2e6a45d80eea2b906c3a2"
|
|
84
84
|
}
|