@storybook/builder-webpack5 7.0.15 → 7.0.17

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.
@@ -1077,13 +1077,19 @@ interface StorybookConfig {
1077
1077
  previewHead?: PresetValue<string>;
1078
1078
  previewBody?: PresetValue<string>;
1079
1079
  /**
1080
- * Programatically override the preview's main page template.
1080
+ * Programmatically override the preview's main page template.
1081
1081
  * This should return a reference to a file containing an `.ejs` template
1082
1082
  * that will be interpolated with environment variables.
1083
1083
  *
1084
1084
  * @example '.storybook/index.ejs'
1085
1085
  */
1086
1086
  previewMainTemplate?: string;
1087
+ /**
1088
+ * Programmatically modify the preview head/body HTML.
1089
+ * The managerHead function accept a string,
1090
+ * which is the existing head content, and return a modified string.
1091
+ */
1092
+ managerHead?: PresetValue<string>;
1087
1093
  }
1088
1094
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1089
1095
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import webpack__default, { Configuration, Stats } from 'webpack';
2
- import { O as Options$1, B as Builder } from './index.d-1a1e1de1.js';
2
+ import { O as Options$1, B as Builder } from './index.d-07ad361c.js';
3
3
  import { StorybookConfig, Options, BuilderResult as BuilderResult$1 } from '@storybook/core-webpack';
4
4
  import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
5
5
  import 'file-system-cache';
@@ -1,6 +1,6 @@
1
1
  import * as webpack$1 from 'webpack';
2
2
  import { Configuration } from 'webpack';
3
- import { O as Options } from '../index.d-1a1e1de1.js';
3
+ import { O as Options } from '../index.d-07ad361c.js';
4
4
  import 'file-system-cache';
5
5
  import '@babel/core';
6
6
  import 'express';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/builder-webpack5",
3
- "version": "7.0.15",
3
+ "version": "7.0.17",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -56,25 +56,25 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@babel/core": "^7.12.10",
59
- "@storybook/addons": "7.0.15",
60
- "@storybook/api": "7.0.15",
61
- "@storybook/channel-postmessage": "7.0.15",
62
- "@storybook/channel-websocket": "7.0.15",
63
- "@storybook/channels": "7.0.15",
64
- "@storybook/client-api": "7.0.15",
65
- "@storybook/client-logger": "7.0.15",
66
- "@storybook/components": "7.0.15",
67
- "@storybook/core-common": "7.0.15",
68
- "@storybook/core-events": "7.0.15",
69
- "@storybook/core-webpack": "7.0.15",
59
+ "@storybook/addons": "7.0.17",
60
+ "@storybook/api": "7.0.17",
61
+ "@storybook/channel-postmessage": "7.0.17",
62
+ "@storybook/channel-websocket": "7.0.17",
63
+ "@storybook/channels": "7.0.17",
64
+ "@storybook/client-api": "7.0.17",
65
+ "@storybook/client-logger": "7.0.17",
66
+ "@storybook/components": "7.0.17",
67
+ "@storybook/core-common": "7.0.17",
68
+ "@storybook/core-events": "7.0.17",
69
+ "@storybook/core-webpack": "7.0.17",
70
70
  "@storybook/global": "^5.0.0",
71
- "@storybook/manager-api": "7.0.15",
72
- "@storybook/node-logger": "7.0.15",
73
- "@storybook/preview": "7.0.15",
74
- "@storybook/preview-api": "7.0.15",
75
- "@storybook/router": "7.0.15",
76
- "@storybook/store": "7.0.15",
77
- "@storybook/theming": "7.0.15",
71
+ "@storybook/manager-api": "7.0.17",
72
+ "@storybook/node-logger": "7.0.17",
73
+ "@storybook/preview": "7.0.17",
74
+ "@storybook/preview-api": "7.0.17",
75
+ "@storybook/router": "7.0.17",
76
+ "@storybook/store": "7.0.17",
77
+ "@storybook/theming": "7.0.17",
78
78
  "@types/node": "^16.0.0",
79
79
  "@types/semver": "^7.3.4",
80
80
  "babel-loader": "^9.0.0",
@@ -129,5 +129,5 @@
129
129
  ],
130
130
  "platform": "node"
131
131
  },
132
- "gitHead": "48448084c3bbb005f771a2ff2588dc8a3c369caa"
132
+ "gitHead": "e26b55b288f5fa815d41843f2405a56961dbb2a7"
133
133
  }