|
1 | 1 | <h1>Migration</h1>
|
2 | 2 |
|
3 | 3 | - [From version 8.2.x to 8.3.x](#from-version-82x-to-83x)
|
| 4 | + - [Removed `experimental_SIDEBAR_BOTTOM` and deprecated `experimental_SIDEBAR_TOP` addon types](#removed-experimental_sidebar_bottom-and-deprecated-experimental_sidebar_top-addon-types) |
4 | 5 | - [New parameters format for addon backgrounds](#new-parameters-format-for-addon-backgrounds)
|
5 | 6 | - [New parameters format for addon viewport](#new-parameters-format-for-addon-viewport)
|
6 | 7 | - [From version 8.1.x to 8.2.x](#from-version-81x-to-82x)
|
|
104 | 105 | - [Tab addons cannot manually route, Tool addons can filter their visibility via tabId](#tab-addons-cannot-manually-route-tool-addons-can-filter-their-visibility-via-tabid)
|
105 | 106 | - [Removed `config` preset](#removed-config-preset-1)
|
106 | 107 | - [From version 7.5.0 to 7.6.0](#from-version-750-to-760)
|
107 |
| - - [CommonJS with Vite is deprecated](#commonjs-with-vite-is-deprecated) |
108 |
| - - [Using implicit actions during rendering is deprecated](#using-implicit-actions-during-rendering-is-deprecated) |
109 |
| - - [typescript.skipBabel deprecated](#typescriptskipbabel-deprecated) |
110 |
| - - [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop) |
111 |
| - - [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react) |
| 108 | + - [CommonJS with Vite is deprecated](#commonjs-with-vite-is-deprecated) |
| 109 | + - [Using implicit actions during rendering is deprecated](#using-implicit-actions-during-rendering-is-deprecated) |
| 110 | + - [typescript.skipBabel deprecated](#typescriptskipbabel-deprecated) |
| 111 | + - [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop) |
| 112 | + - [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react) |
112 | 113 | - [From version 7.4.0 to 7.5.0](#from-version-740-to-750)
|
113 |
| - - [`storyStoreV6` and `storiesOf` is deprecated](#storystorev6-and-storiesof-is-deprecated) |
114 |
| - - [`storyIndexers` is replaced with `experimental_indexers`](#storyindexers-is-replaced-with-experimental_indexers) |
| 114 | + - [`storyStoreV6` and `storiesOf` is deprecated](#storystorev6-and-storiesof-is-deprecated) |
| 115 | + - [`storyIndexers` is replaced with `experimental_indexers`](#storyindexers-is-replaced-with-experimental_indexers) |
115 | 116 | - [From version 7.0.0 to 7.2.0](#from-version-700-to-720)
|
116 |
| - - [Addon API is more type-strict](#addon-api-is-more-type-strict) |
117 |
| - - [Addon-controls hideNoControlsWarning parameter is deprecated](#addon-controls-hidenocontrolswarning-parameter-is-deprecated) |
| 117 | + - [Addon API is more type-strict](#addon-api-is-more-type-strict) |
| 118 | + - [Addon-controls hideNoControlsWarning parameter is deprecated](#addon-controls-hidenocontrolswarning-parameter-is-deprecated) |
118 | 119 | - [From version 6.5.x to 7.0.0](#from-version-65x-to-700)
|
119 | 120 | - [7.0 breaking changes](#70-breaking-changes)
|
120 | 121 | - [Dropped support for Node 15 and below](#dropped-support-for-node-15-and-below)
|
|
140 | 141 | - [Deploying build artifacts](#deploying-build-artifacts)
|
141 | 142 | - [Dropped support for file URLs](#dropped-support-for-file-urls)
|
142 | 143 | - [Serving with nginx](#serving-with-nginx)
|
143 |
| - - [Ignore story files from node\_modules](#ignore-story-files-from-node_modules) |
| 144 | + - [Ignore story files from node_modules](#ignore-story-files-from-node_modules) |
144 | 145 | - [7.0 Core changes](#70-core-changes)
|
145 | 146 | - [7.0 feature flags removed](#70-feature-flags-removed)
|
146 | 147 | - [Story context is prepared before for supporting fine grained updates](#story-context-is-prepared-before-for-supporting-fine-grained-updates)
|
|
154 | 155 | - [Addon-interactions: Interactions debugger is now default](#addon-interactions-interactions-debugger-is-now-default)
|
155 | 156 | - [7.0 Vite changes](#70-vite-changes)
|
156 | 157 | - [Vite builder uses Vite config automatically](#vite-builder-uses-vite-config-automatically)
|
157 |
| - - [Vite cache moved to node\_modules/.cache/.vite-storybook](#vite-cache-moved-to-node_modulescachevite-storybook) |
| 158 | + - [Vite cache moved to node_modules/.cache/.vite-storybook](#vite-cache-moved-to-node_modulescachevite-storybook) |
158 | 159 | - [7.0 Webpack changes](#70-webpack-changes)
|
159 | 160 | - [Webpack4 support discontinued](#webpack4-support-discontinued)
|
160 | 161 | - [Babel mode v7 exclusively](#babel-mode-v7-exclusively)
|
|
204 | 205 | - [Dropped addon-docs manual babel configuration](#dropped-addon-docs-manual-babel-configuration)
|
205 | 206 | - [Dropped addon-docs manual configuration](#dropped-addon-docs-manual-configuration)
|
206 | 207 | - [Autoplay in docs](#autoplay-in-docs)
|
207 |
| - - [Removed STORYBOOK\_REACT\_CLASSES global](#removed-storybook_react_classes-global) |
| 208 | + - [Removed STORYBOOK_REACT_CLASSES global](#removed-storybook_react_classes-global) |
208 | 209 | - [7.0 Deprecations and default changes](#70-deprecations-and-default-changes)
|
209 | 210 | - [storyStoreV7 enabled by default](#storystorev7-enabled-by-default)
|
210 | 211 | - [`Story` type deprecated](#story-type-deprecated)
|
|
419 | 420 |
|
420 | 421 | ## From version 8.2.x to 8.3.x
|
421 | 422 |
|
| 423 | +### Removed `experimental_SIDEBAR_BOTTOM` and deprecated `experimental_SIDEBAR_TOP` addon types |
| 424 | + |
| 425 | +The experimental SIDEBAR_BOTTOM addon type was removed in favor of a built-in filter UI. The enum type definition will remain available until Storybook 9.0 but will be ignored. Similarly the experimental SIDEBAR_TOP addon type is deprecated and will be removed in a future version. |
| 426 | + |
| 427 | +These APIs allowed addons to render arbitrary content in the Storybook sidebar. Due to potential conflicts between addons and challenges regarding styling, these APIs are/will be removed. In the future, Storybook will provide declarative API hooks to allow addons to add content to the sidebar without risk of conflicts or UI inconsistencies. One such API is `experimental_updateStatus` which allow addons to set a status for stories. The SIDEBAR_BOTTOM slot is now used to allow filtering stories with a given status. |
| 428 | + |
422 | 429 | ### New parameters format for addon backgrounds
|
423 | 430 |
|
424 | 431 | The `addon-backgrounds` addon now uses a new format for parameters. The `backgrounds` parameter is now an object with a `values` key that contains the background values.
|
@@ -448,7 +455,7 @@ Setting an override value should now be done via a `globals` property on your co
|
448 | 455 | export default {
|
449 | 456 | component: Button,
|
450 | 457 | globals: {
|
451 |
| - backgrounds: { value: 'twitter' }, |
| 458 | + backgrounds: { value: "twitter" }, |
452 | 459 | },
|
453 | 460 | };
|
454 | 461 | ```
|
@@ -494,7 +501,7 @@ Setting an override value should now be done via a `globals` property on your co
|
494 | 501 | export default {
|
495 | 502 | component: Button,
|
496 | 503 | globals: {
|
497 |
| - viewport: { value: 'phone' }, |
| 504 | + viewport: { value: "phone" }, |
498 | 505 | },
|
499 | 506 | };
|
500 | 507 | ```
|
@@ -2411,8 +2418,8 @@ export default config;
|
2411 | 2418 |
|
2412 | 2419 | #### Vite builder uses Vite config automatically
|
2413 | 2420 |
|
2414 |
| -When using a [Vite-based framework](#framework-field-mandatory), Storybook will automatically use your `vite.config.(ctm)js` config file starting in 7.0. |
2415 |
| -Some settings will be overridden by Storybook so that it can function properly, and the merged settings can be modified using `viteFinal` in `.storybook/main.js` (see the [Storybook Vite configuration docs](https://storybook.js.org/docs/react/builders/vite#configuration)). |
| 2421 | +When using a [Vite-based framework](#framework-field-mandatory), Storybook will automatically use your `vite.config.(ctm)js` config file starting in 7.0. |
| 2422 | +Some settings will be overridden by Storybook so that it can function properly, and the merged settings can be modified using `viteFinal` in `.storybook/main.js` (see the [Storybook Vite configuration docs](https://storybook.js.org/docs/react/builders/vite#configuration)). |
2416 | 2423 | If you were using `viteFinal` in 6.5 to simply merge in your project's standard Vite config, you can now remove it.
|
2417 | 2424 |
|
2418 | 2425 | For Svelte projects this means that the `svelteOptions` property in the `main.js` config should be omitted, as it will be loaded automatically via the project's `vite.config.js`.
|
|
0 commit comments