@storybook/react-webpack5 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.
Files changed (2) hide show
  1. package/dist/preset.d.ts +7 -1
  2. package/package.json +5 -5
package/dist/preset.d.ts CHANGED
@@ -1052,13 +1052,19 @@ interface StorybookConfig {
1052
1052
  previewHead?: PresetValue<string>;
1053
1053
  previewBody?: PresetValue<string>;
1054
1054
  /**
1055
- * Programatically override the preview's main page template.
1055
+ * Programmatically override the preview's main page template.
1056
1056
  * This should return a reference to a file containing an `.ejs` template
1057
1057
  * that will be interpolated with environment variables.
1058
1058
  *
1059
1059
  * @example '.storybook/index.ejs'
1060
1060
  */
1061
1061
  previewMainTemplate?: string;
1062
+ /**
1063
+ * Programmatically modify the preview head/body HTML.
1064
+ * The managerHead function accept a string,
1065
+ * which is the existing head content, and return a modified string.
1066
+ */
1067
+ managerHead?: PresetValue<string>;
1062
1068
  }
1063
1069
  type PresetValue<T> = T | ((config: T, options: Options) => T | Promise<T>);
1064
1070
  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/react-webpack5",
3
- "version": "7.1.0-alpha.22",
3
+ "version": "7.1.0-alpha.24",
4
4
  "description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,9 +47,9 @@
47
47
  "prep": "../../../scripts/prepare/bundle.ts"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/builder-webpack5": "7.1.0-alpha.22",
51
- "@storybook/preset-react-webpack": "7.1.0-alpha.22",
52
- "@storybook/react": "7.1.0-alpha.22",
50
+ "@storybook/builder-webpack5": "7.1.0-alpha.24",
51
+ "@storybook/preset-react-webpack": "7.1.0-alpha.24",
52
+ "@storybook/react": "7.1.0-alpha.24",
53
53
  "@types/node": "^16.0.0"
54
54
  },
55
55
  "devDependencies": {
@@ -82,5 +82,5 @@
82
82
  ],
83
83
  "platform": "node"
84
84
  },
85
- "gitHead": "487ed44ae1fed86a78b0d2170bd53dc819075110"
85
+ "gitHead": "51cf5ea9af9e1a6464df2ec402828b2febdd0034"
86
86
  }