@storybook/preact-vite 7.1.0-alpha.22 → 7.1.0-alpha.24

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-5df36224.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './types-85572a9d.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-5df36224.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './types-85572a9d.js';
2
2
  import 'file-system-cache';
3
3
  import '@babel/core';
4
4
  import 'http';
@@ -1050,13 +1050,19 @@ interface StorybookConfig$1 {
1050
1050
  previewHead?: PresetValue<string>;
1051
1051
  previewBody?: PresetValue<string>;
1052
1052
  /**
1053
- * Programatically override the preview's main page template.
1053
+ * Programmatically override the preview's main page template.
1054
1054
  * This should return a reference to a file containing an `.ejs` template
1055
1055
  * that will be interpolated with environment variables.
1056
1056
  *
1057
1057
  * @example '.storybook/index.ejs'
1058
1058
  */
1059
1059
  previewMainTemplate?: string;
1060
+ /**
1061
+ * Programmatically modify the preview head/body HTML.
1062
+ * The managerHead function accept a string,
1063
+ * which is the existing head content, and return a modified string.
1064
+ */
1065
+ managerHead?: PresetValue<string>;
1060
1066
  }
1061
1067
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1062
1068
  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.1.0-alpha.22",
3
+ "version": "7.1.0-alpha.24",
4
4
  "description": "Storybook for Preact and Vite: Develop Preact components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@preact/preset-vite": "^2.0.0",
50
- "@storybook/builder-vite": "7.1.0-alpha.22",
51
- "@storybook/preact": "7.1.0-alpha.22"
50
+ "@storybook/builder-vite": "7.1.0-alpha.24",
51
+ "@storybook/preact": "7.1.0-alpha.24"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^16.0.0",
@@ -72,5 +72,5 @@
72
72
  ],
73
73
  "platform": "node"
74
74
  },
75
- "gitHead": "487ed44ae1fed86a78b0d2170bd53dc819075110"
75
+ "gitHead": "51cf5ea9af9e1a6464df2ec402828b2febdd0034"
76
76
  }