@storybook/web-components-vite 7.0.15 → 7.0.17

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.0.15",
3
+ "version": "7.0.17",
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.0.15",
51
- "@storybook/core-server": "7.0.15",
52
- "@storybook/node-logger": "7.0.15",
53
- "@storybook/web-components": "7.0.15",
50
+ "@storybook/builder-vite": "7.0.17",
51
+ "@storybook/core-server": "7.0.17",
52
+ "@storybook/node-logger": "7.0.17",
53
+ "@storybook/web-components": "7.0.17",
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": "48448084c3bbb005f771a2ff2588dc8a3c369caa"
77
+ "gitHead": "e26b55b288f5fa815d41843f2405a56961dbb2a7"
78
78
  }