@storybook/preact-vite 7.0.0-rc.0 → 7.0.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { F as FrameworkOptions, S as StorybookConfig } from './types-2ca2a2ac.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './types-b20db179.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-2ca2a2ac.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './types-b20db179.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
@@ -885,7 +885,6 @@ interface BuilderOptions {
885
885
  cache?: FileSystemCache;
886
886
  configDir: string;
887
887
  docsMode?: boolean;
888
- env?: (envs: Record<string, string>) => Record<string, string>;
889
888
  features?: StorybookConfig$1['features'];
890
889
  versionCheck?: VersionCheck;
891
890
  releaseNotesData?: ReleaseNotesData;
@@ -1027,6 +1026,10 @@ interface StorybookConfig$1 {
1027
1026
  * Modify or return babel config.
1028
1027
  */
1029
1028
  babel?: (config: TransformOptions, options: Options) => TransformOptions | Promise<TransformOptions>;
1029
+ /**
1030
+ * Modify or return env config.
1031
+ */
1032
+ env?: PresetValue<Record<string, string>>;
1030
1033
  /**
1031
1034
  * Modify or return babel config.
1032
1035
  */
@@ -1056,6 +1059,14 @@ interface StorybookConfig$1 {
1056
1059
  */
1057
1060
  previewHead?: PresetValue<string>;
1058
1061
  previewBody?: PresetValue<string>;
1062
+ /**
1063
+ * Programatically override the preview's main page template.
1064
+ * This should return a reference to a file containing an `.ejs` template
1065
+ * that will be interpolated with environment variables.
1066
+ *
1067
+ * @example '.storybook/index.ejs'
1068
+ */
1069
+ previewMainTemplate?: string;
1059
1070
  }
1060
1071
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1061
1072
  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/preact-vite",
3
- "version": "7.0.0-rc.0",
3
+ "version": "7.0.0-rc.10",
4
4
  "description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -48,8 +48,8 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@preact/preset-vite": "^2.0.0",
51
- "@storybook/builder-vite": "7.0.0-rc.0",
52
- "@storybook/preact": "7.0.0-rc.0"
51
+ "@storybook/builder-vite": "7.0.0-rc.10",
52
+ "@storybook/preact": "7.0.0-rc.10"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^16.0.0",
@@ -73,5 +73,5 @@
73
73
  ],
74
74
  "platform": "node"
75
75
  },
76
- "gitHead": "6d1bcb2579203a3075467a2ba83738d854545053"
76
+ "gitHead": "dd10adf7821c47f0d3a2e6a45d80eea2b906c3a2"
77
77
  }