@storybook/react-vite 7.0.0-rc.5 → 7.0.0-rc.6

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
@@ -1,4 +1,4 @@
1
- export { F as FrameworkOptions, S as StorybookConfig } from './types-18e5e938.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './types-09348a9c.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
package/dist/preset.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PresetProperty, S as StorybookConfig } from './types-18e5e938.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './types-09348a9c.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
@@ -1057,6 +1057,14 @@ interface StorybookConfig$1 {
1057
1057
  */
1058
1058
  previewHead?: PresetValue<string>;
1059
1059
  previewBody?: PresetValue<string>;
1060
+ /**
1061
+ * Programatically override the preview's main page template.
1062
+ * This should return a reference to a file containing an `.ejs` template
1063
+ * that will be interpolated with environment variables.
1064
+ *
1065
+ * @example '.storybook/index.ejs'
1066
+ */
1067
+ previewMainTemplate?: string;
1060
1068
  }
1061
1069
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1062
1070
  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.5",
3
+ "version": "7.0.0-rc.6",
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.5",
54
- "@storybook/react": "7.0.0-rc.5",
53
+ "@storybook/builder-vite": "7.0.0-rc.6",
54
+ "@storybook/react": "7.0.0-rc.6",
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": "851e100b53f1c58b6a79ca3bc0a9c295b385264d"
83
+ "gitHead": "1467fa1d714cbf43d5d87f9233c6dd42e20da787"
84
84
  }