@storybook/types 7.1.0-alpha.21 → 7.1.0-alpha.23
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.
- package/dist/index.d.ts +7 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2161,13 +2161,19 @@ interface StorybookConfig {
|
|
|
2161
2161
|
previewHead?: PresetValue<string>;
|
|
2162
2162
|
previewBody?: PresetValue<string>;
|
|
2163
2163
|
/**
|
|
2164
|
-
*
|
|
2164
|
+
* Programmatically override the preview's main page template.
|
|
2165
2165
|
* This should return a reference to a file containing an `.ejs` template
|
|
2166
2166
|
* that will be interpolated with environment variables.
|
|
2167
2167
|
*
|
|
2168
2168
|
* @example '.storybook/index.ejs'
|
|
2169
2169
|
*/
|
|
2170
2170
|
previewMainTemplate?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* Programmatically modify the preview head/body HTML.
|
|
2173
|
+
* The managerHead function accept a string,
|
|
2174
|
+
* which is the existing head content, and return a modified string.
|
|
2175
|
+
*/
|
|
2176
|
+
managerHead?: PresetValue<string>;
|
|
2171
2177
|
}
|
|
2172
2178
|
type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
|
|
2173
2179
|
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.1.0-alpha.
|
|
3
|
+
"version": "7.1.0-alpha.23",
|
|
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.1.0-alpha.
|
|
46
|
+
"@storybook/channels": "7.1.0-alpha.23",
|
|
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": "
|
|
64
|
+
"gitHead": "4e6e01b944b879104250d5f4af38451724a0ed0e"
|
|
65
65
|
}
|