@storybook/web-components-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-764dceff.js';
1
+ export { F as FrameworkOptions, S as StorybookConfig } from './types-9cc8e474.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-764dceff.js';
1
+ import { P as PresetProperty, S as StorybookConfig } from './types-9cc8e474.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/web-components-vite",
3
- "version": "7.1.0-alpha.22",
3
+ "version": "7.1.0-alpha.24",
4
4
  "description": "Storybook for web-components and Vite: Develop Web Components in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,10 +47,10 @@
47
47
  "prep": "../../../scripts/prepare/bundle.ts"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/builder-vite": "7.1.0-alpha.22",
51
- "@storybook/core-server": "7.1.0-alpha.22",
52
- "@storybook/node-logger": "7.1.0-alpha.22",
53
- "@storybook/web-components": "7.1.0-alpha.22",
50
+ "@storybook/builder-vite": "7.1.0-alpha.24",
51
+ "@storybook/core-server": "7.1.0-alpha.24",
52
+ "@storybook/node-logger": "7.1.0-alpha.24",
53
+ "@storybook/web-components": "7.1.0-alpha.24",
54
54
  "magic-string": "^0.27.0"
55
55
  },
56
56
  "devDependencies": {
@@ -74,5 +74,5 @@
74
74
  ],
75
75
  "platform": "node"
76
76
  },
77
- "gitHead": "487ed44ae1fed86a78b0d2170bd53dc819075110"
77
+ "gitHead": "51cf5ea9af9e1a6464df2ec402828b2febdd0034"
78
78
  }