@storybook/types 7.0.16 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -2157,13 +2157,19 @@ interface StorybookConfig {
2157
2157
  previewHead?: PresetValue<string>;
2158
2158
  previewBody?: PresetValue<string>;
2159
2159
  /**
2160
- * Programatically override the preview's main page template.
2160
+ * Programmatically override the preview's main page template.
2161
2161
  * This should return a reference to a file containing an `.ejs` template
2162
2162
  * that will be interpolated with environment variables.
2163
2163
  *
2164
2164
  * @example '.storybook/index.ejs'
2165
2165
  */
2166
2166
  previewMainTemplate?: string;
2167
+ /**
2168
+ * Programmatically modify the preview head/body HTML.
2169
+ * The managerHead function accept a string,
2170
+ * which is the existing head content, and return a modified string.
2171
+ */
2172
+ managerHead?: PresetValue<string>;
2167
2173
  }
2168
2174
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
2169
2175
  type PresetProperty<K, TStorybookConfig = StorybookConfig> = TStorybookConfig[K extends keyof TStorybookConfig ? K : never] | PresetPropertyFn<K, TStorybookConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/types",
3
- "version": "7.0.16",
3
+ "version": "7.0.17",
4
4
  "description": "Core Storybook TS Types",
5
5
  "keywords": [
6
6
  "storybook"
@@ -43,7 +43,7 @@
43
43
  "prep": "../../../scripts/prepare/bundle.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@storybook/channels": "7.0.16",
46
+ "@storybook/channels": "7.0.17",
47
47
  "@types/babel__core": "^7.0.0",
48
48
  "@types/express": "^4.7.0",
49
49
  "file-system-cache": "^2.0.0"
@@ -61,5 +61,5 @@
61
61
  "./src/index.ts"
62
62
  ]
63
63
  },
64
- "gitHead": "663d7b027631e329c87d4d1b0b440774e249016e"
64
+ "gitHead": "e26b55b288f5fa815d41843f2405a56961dbb2a7"
65
65
  }