You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -325,7 +325,7 @@ Now that your stories are written, we need to add them to our visual regression
325
325
326
326
### Getting started
327
327
328
-
Check that you have a local `.env` file in your `tools/preview` folder with a `CHROMATIC_PROJECT_TOKEN` variable defined. Get this token from the project maintainer. You should not be committing this `.env` file to the repo as it contains sensitive login information.
328
+
Check that you have a local `.env` file in your `.storybook` folder with a `CHROMATIC_PROJECT_TOKEN` variable defined. Get this token from the project maintainer. You should not be committing this `.env` file to the repo as it contains sensitive login information.
329
329
330
330
From the root of the project, there are 2 commands available for you to run:
331
331
@@ -339,16 +339,15 @@ Runs will generate a JUnit XML file with build results (`chromatic-build-{buildN
339
339
340
340
Running without publishing to Chromatic? Add the `--dry-run` flag. Need more information to debug a run? Try the `--diagnostics` flag (writes process context information to `chromatic-diagnostics.json`).
341
341
342
-
343
-
344
342
# Migration to Storybook 7.0(Draft)
345
343
344
+
## Updates
346
345
347
-
## Updates:
348
346
---
349
347
`*` Added support for handler actions with ```withActions``` on each stories which have action handlers.
350
348
351
349
Example:
350
+
352
351
```js
353
352
import globalThis from 'global';
354
353
+ import { withActions } from '@storybook/addon-actions/decorator';
@@ -373,6 +372,7 @@ export const Basic = {
373
372
`*` Upgraded to ```Webpack 5``` for improved bundling and performance from ```webpack 4```
374
373
375
374
`*` @storybook addons dependencies are upgraded to v7 from v6
375
+
376
376
```js
377
377
"@storybook/addon-docs": "^7.0.12",
378
378
"@storybook/addon-essentials": "^7.0.12",
@@ -393,9 +393,10 @@ export const Basic = {
393
393
394
394
`*` Improved the addon ecosystem with new and updated addons.
395
395
396
-
397
396
<br></br>
398
-
## Breaking Changes:
397
+
398
+
## Breaking Changes
399
+
399
400
---
400
401
`*` client-api is deperacted and preview-api is introduced
401
402
@@ -426,6 +427,7 @@ export const Basic = {
426
427
```
427
428
428
429
`*` Docs is now added to every component on the sidebar with the below code in Storybook 7
430
+
429
431
```js
430
432
docs: {
431
433
autodocs: true,
@@ -446,24 +448,26 @@ export const Basic = {
446
448
+ },
447
449
+ };
448
450
```
449
-
## Deprecations(Addons):
451
+
452
+
## Deprecations(Addons)
453
+
450
454
---
451
455
452
456
`*` ```"@storybook/client-api"``` is deprecated
453
457
454
458
`*` ```"@storybook/addons"``` is deprecated
455
459
460
+
## Bug Fixes
456
461
457
-
## Bug Fixes:
458
462
---
459
463
`*` Fixed various issues related to performance, rendering, and compatibility.
460
464
461
465
`*` Resolved problems with the Storybook UI, including layout glitches and navigation bugs.
462
466
463
467
`*` Fixed bugs in calender storybook
464
468
469
+
## Improvements
465
470
466
-
## Improvements:
467
471
---
468
472
`*` Improved the overall performance and stability of the Storybook development environment.
0 commit comments