Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook v8.0.0 initial merge #24271

Merged
merged 598 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
598 commits
Select commit Hold shift + click to select a range
cc388f8
Update App.tsx
cdedreuille Oct 11, 2023
ac7dad0
remove storyshots
ndelangen Oct 11, 2023
c2fae40
update lockfile
ndelangen Oct 11, 2023
3b24346
fixes
ndelangen Oct 11, 2023
15eea01
upgrade monorepo to TS5
ndelangen Oct 11, 2023
acb8bb2
cleanup
ndelangen Oct 11, 2023
1f2916d
regen lockfiles
ndelangen Oct 11, 2023
11c8213
Remove withSymbol
cdedreuille Oct 11, 2023
820ccbe
fixes
ndelangen Oct 11, 2023
cbac1f0
Change colour
cdedreuille Oct 11, 2023
2161673
Merge branch 'release-8-0' into pr/agriffis/21673-2
ndelangen Oct 11, 2023
9a24441
Merge branch 'norbert/remove-storyshots' into pr/agriffis/21673-2
ndelangen Oct 11, 2023
b9107ee
fixes
ndelangen Oct 11, 2023
f725832
add exceptions for ts
ndelangen Oct 12, 2023
d8c6111
Fix some issues
cdedreuille Oct 12, 2023
0137b86
Clean
cdedreuille Oct 12, 2023
3ab81a2
change tests
ndelangen Oct 12, 2023
210002e
fix linting
ndelangen Oct 12, 2023
7977d25
Merge branch 'next' into release-8-0
cdedreuille Oct 12, 2023
9e32e32
Merge branch 'release-8-0' into norbert/remove-storyshots
ndelangen Oct 12, 2023
3e66ce8
Merge branch 'release-8-0' into norbert/ts5
ndelangen Oct 12, 2023
a38b04b
Merge branch 'norbert/remove-storyshots' into norbert/ts5
ndelangen Oct 12, 2023
ca3e9b0
Merge branch 'norbert/remove-storyshots' into pr/agriffis/21673-2
ndelangen Oct 12, 2023
4977bad
Fix icons with 1.2.0
cdedreuille Oct 12, 2023
ebed6a6
Merge branch 'release-8-0' into new-icon-library
cdedreuille Oct 12, 2023
1c50fe4
Update verdaccio.yaml
cdedreuille Oct 12, 2023
0b23c98
Merge branch 'next' into release-8-0
cdedreuille Oct 12, 2023
7f185bf
Merge branch 'release-8-0' into new-icon-library
cdedreuille Oct 12, 2023
ea5cf24
Fix the icon component
cdedreuille Oct 13, 2023
d4b040c
Update TooltipLinkList.tsx
cdedreuille Oct 13, 2023
38e01af
Improve how to call "use" in svgs
cdedreuille Oct 13, 2023
c3520ab
Oops
cdedreuille Oct 13, 2023
e9320ea
Merge branch 'next' into release-8-0
cdedreuille Oct 13, 2023
186eb91
Merge branch 'release-8-0' into new-icon-library
cdedreuille Oct 13, 2023
ad7f7e0
Move icons to dependencies
cdedreuille Oct 13, 2023
8242722
Fix some icons
cdedreuille Oct 13, 2023
a56ddcc
Merge branch 'release-8-0' into fix-notifications-in-new-layout
cdedreuille Oct 18, 2023
8deeb27
Merge branch 'next' into release-8-0
cdedreuille Oct 18, 2023
f89fbfd
Merge branch 'release-8-0' into new-icon-library
cdedreuille Oct 18, 2023
f3cf822
Update all icons dependencies
cdedreuille Oct 18, 2023
63c9f1a
Update icons on backgrounds addon
cdedreuille Oct 18, 2023
e3f9c71
Update icons in all addons
cdedreuille Oct 18, 2023
1384764
Update canary
cdedreuille Oct 18, 2023
c217690
Update Toolbar.tsx
cdedreuille Oct 18, 2023
f76ff1f
Renaming
cdedreuille Oct 18, 2023
7a10141
Updates most of the easy icons
cdedreuille Oct 18, 2023
9901392
Update Panel.stories.tsx
cdedreuille Oct 18, 2023
3c4ee1d
Merge branch 'next' into release-8-0
ndelangen Oct 18, 2023
4eacfc2
Merge branch 'release-8-0' into norbert/remove-storyshots
ndelangen Oct 18, 2023
3431d8e
Merge branch 'norbert/remove-storyshots' into norbert/ts5
ndelangen Oct 18, 2023
ab28071
Merge branch 'norbert/remove-storyshots' into pr/agriffis/21673-2
ndelangen Oct 18, 2023
ad1e0b9
skip test, over commenting it out
ndelangen Oct 18, 2023
be6af4b
globalize new icons
ndelangen Oct 18, 2023
0b3d271
fix addons being registered too late
ndelangen Oct 18, 2023
48fa779
Merge branch 'release-8-0' into norbert/remove-storyshots
ndelangen Oct 18, 2023
fd76b20
remove docs and dependencies of storyshots
ndelangen Oct 18, 2023
49249b3
Merge branch 'release-8-0' into norbert/ts5
ndelangen Oct 18, 2023
5c758b6
Merge branch 'release-8-0' into new-icon-library
cdedreuille Oct 18, 2023
d82fab9
Merge pull request #24438 from storybookjs/norbert/remove-storyshots
ndelangen Oct 18, 2023
8e3b336
Merge branch 'release-8-0' into pr/ndelangen/24511
ndelangen Oct 18, 2023
048b06e
Merge pull request #24440 from storybookjs/norbert/ts5
ndelangen Oct 18, 2023
8bb1a43
add missing typings
ndelangen Oct 18, 2023
bd7e891
Merge branch 'new-icon-library' of github.com:storybookjs/storybook i…
ndelangen Oct 18, 2023
c1f20bf
Merge branch 'release-8-0' into norbert/react18
ndelangen Oct 19, 2023
14d094a
fix check
ndelangen Oct 19, 2023
1d4118b
Update icon library
cdedreuille Oct 19, 2023
f03ed59
Merge branch 'next' into release-8-0
cdedreuille Oct 19, 2023
117bfbd
Merge branch 'release-8-0' into new-icon-library
cdedreuille Oct 19, 2023
ff50f69
ensure the preview is done loading after navigation
ndelangen Oct 19, 2023
f25cc82
remove ssv6 sandbox templates
JReinhold Oct 19, 2023
b332f40
Fix linting for now
cdedreuille Oct 19, 2023
a994219
Merge pull request #24433 from storybookjs/new-icon-library
cdedreuille Oct 19, 2023
09be27a
Merge branch 'next' into release-8-0
cdedreuille Oct 19, 2023
445de35
Merge pull request #24516 from storybookjs/remove-ssv6-sandboxes
JReinhold Oct 19, 2023
78bcb62
fix state & e2e tests
ndelangen Oct 19, 2023
b2c6a49
simplify
ndelangen Oct 19, 2023
829fba6
fix tests
ndelangen Oct 19, 2023
856d535
delete redundant typings file
ndelangen Oct 19, 2023
ae3ee2e
Merge branch 'release-8-0' into norbert/react18
ndelangen Oct 19, 2023
74cc852
fix bench script
ndelangen Oct 19, 2023
4792ba1
Merge branch 'norbert/react18' of github.com:storybookjs/storybook in…
ndelangen Oct 19, 2023
3d978f5
Merge pull request #24514 from storybookjs/norbert/react18
ndelangen Oct 19, 2023
84edfcd
refactor for less duplicated code
ndelangen Oct 20, 2023
fd0e908
remove deprecated packages for 8.0
ndelangen Oct 20, 2023
f78038b
remove references to storybook/addons
ndelangen Oct 20, 2023
f4b0977
remove usage of @storybook/client-api
ndelangen Oct 20, 2023
b0a9d0b
remove usage of @storybook/preview-web
ndelangen Oct 20, 2023
b861dee
remove usage of @storybook/store
ndelangen Oct 20, 2023
e5bcabe
remove usage of @storybook/api
ndelangen Oct 20, 2023
84428aa
remove usage of @storybook/channel-*
ndelangen Oct 20, 2023
9e3d019
remove deprecated entrypoints of preview-api
ndelangen Oct 20, 2023
ca5376b
update lockfile
ndelangen Oct 20, 2023
f35f073
remove extra exports from channels package
ndelangen Oct 20, 2023
f11b035
Update Toolbar.tsx
cdedreuille Oct 20, 2023
4250ddd
Merge branch 'next' into release-8-0
ndelangen Oct 20, 2023
3eaad3c
Fix listItem story + icon color
cdedreuille Oct 20, 2023
d9e82e7
Fix story on Tooltip Link List
cdedreuille Oct 20, 2023
ae331e9
Fix old links name in stories
cdedreuille Oct 20, 2023
8e37338
Update Toolbar.tsx
cdedreuille Oct 20, 2023
55cb7ae
Merge branch 'release-8-0' into charles-fix-icon-button-docs
cdedreuille Oct 20, 2023
7759cb8
Improved empty state
cdedreuille Oct 20, 2023
e39c617
Update Toolbar.tsx
cdedreuille Oct 20, 2023
38580c5
Merge branch 'release-8-0' into norbert/remove-shims
ndelangen Oct 20, 2023
ce42ba9
Merge pull request #24528 from storybookjs/norbert/remove-shims
ndelangen Oct 20, 2023
233a73a
Merge pull request #24529 from storybookjs/charles-fix-icon-button-docs
cdedreuille Oct 20, 2023
99911f4
Merge branch 'next' into release-8-0
ndelangen Oct 23, 2023
c34f711
Merge branch 'release-8-0' into fix-notifications-in-new-layout
JReinhold Oct 26, 2023
3651bbc
Merge branch 'release-8-0' into yann/storybook-test-docs
kasperpeulen Oct 26, 2023
f82976f
Merge branch 'next' into release-8-0
ndelangen Oct 30, 2023
d41d657
fix parallelism
ndelangen Oct 30, 2023
188d106
fix parallelism
ndelangen Oct 30, 2023
6d83428
fixes
ndelangen Oct 30, 2023
86dedf2
Merge branch 'release-8-0' into fix-notifications-in-new-layout
cdedreuille Oct 30, 2023
cec1b83
Improved Notifications to have a fixed placement in CSS
cdedreuille Oct 30, 2023
46bfc2a
Update NotificationList.tsx
cdedreuille Oct 31, 2023
1ecac7e
Fix maxHeight on scroll + improve stories
cdedreuille Oct 31, 2023
b744fe8
Update NotificationList.stories.tsx
cdedreuille Oct 31, 2023
9598dc3
Improved stories
cdedreuille Oct 31, 2023
fa26143
Merge pull request #24281 from storybookjs/fix-notifications-in-new-l…
JReinhold Oct 31, 2023
ce06824
Merge branch 'next' into release-8-0
ndelangen Nov 1, 2023
abd3446
regen lockfiles
ndelangen Nov 1, 2023
6a11004
fix
ndelangen Nov 1, 2023
1a63f05
only log "done" locally, the CI has no use for it
ndelangen Nov 1, 2023
4d66527
Remove await of getBy method
kasperpeulen Nov 1, 2023
e5be410
Merge branch 'next' into release-8-0
ndelangen Nov 1, 2023
bfe7a0e
Merge pull request #24647 from storybookjs/norbert/less-noise-tasks
ndelangen Nov 1, 2023
6db1a34
remove extract
ndelangen Nov 1, 2023
64a9a8c
correction of code-comment
ndelangen Nov 1, 2023
1ada451
fix lockfile
ndelangen Nov 1, 2023
3f15a08
cleanup
ndelangen Nov 1, 2023
129693d
Merge pull request #24653 from storybookjs/norbert/remove-puppeteer
ndelangen Nov 1, 2023
acdec9c
remove storiesOf api
ndelangen Nov 1, 2023
1d02f10
cleanup
ndelangen Nov 1, 2023
3d529ec
cleanup
ndelangen Nov 1, 2023
a493438
cleanup
ndelangen Nov 1, 2023
cfc08ba
remove empty files
ndelangen Nov 1, 2023
d9ddddf
add migration notes for react 18 and storyshots
ndelangen Nov 2, 2023
2534f3b
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 2, 2023
cc08ac4
Merge branch 'next' into release-8-0
ndelangen Nov 2, 2023
3c2dda4
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 2, 2023
c92f92a
Migration note for: "Implicit actions can not be used during rendering"
kasperpeulen Nov 2, 2023
ee8d7b8
Merge branch 'next' into release-8-0
ndelangen Nov 2, 2023
7029ede
Merge branch 'release-8-0' of github.com:storybookjs/storybook into r…
ndelangen Nov 2, 2023
9556c80
shut it eslint
ndelangen Nov 2, 2023
63762dc
Merge pull request #24263 from storybookjs/yann/storybook-test-docs
kasperpeulen Nov 3, 2023
c711543
Merge branch 'next' into release-8-0
cdedreuille Nov 3, 2023
1a01730
Merge branch 'release-8-0' into charles-sidebar-ui-updates
cdedreuille Nov 3, 2023
f105fbb
Merge branch 'next' into release-8-0
ndelangen Nov 3, 2023
12eccfe
Update Tree.tsx
cdedreuille Nov 3, 2023
6c65d2d
Update TreeNode.tsx
cdedreuille Nov 3, 2023
ffd31c0
Fix the collapsedIcon
cdedreuille Nov 3, 2023
a993b07
Merge branch 'release-8-0' into charles-sidebar-ui-updates
cdedreuille Nov 3, 2023
81a11b4
Fix scroll and search
cdedreuille Nov 3, 2023
37164c8
Merge branch 'next' into release-8-0
ndelangen Nov 4, 2023
bcfb781
make it easy/automatic to update the versions.ts
ndelangen Nov 4, 2023
bec0ced
Merge branch 'release-8-0' into charles-sidebar-ui-updates
cdedreuille Nov 6, 2023
803c1ce
Improve Sidebar + search
cdedreuille Nov 6, 2023
9f9b059
Remove clear and close from search results
cdedreuille Nov 6, 2023
442533e
Fix search results
cdedreuille Nov 6, 2023
de17130
Merge branch 'next' into release-8-0
cdedreuille Nov 6, 2023
df9a029
Bring back clear lastViewed
cdedreuille Nov 6, 2023
1e4c875
Merge branch 'release-8-0' into charles-sidebar-ui-updates
cdedreuille Nov 6, 2023
7f89223
Update SearchResults.tsx
cdedreuille Nov 6, 2023
2670872
Fix color mobile + improve hot key design
cdedreuille Nov 6, 2023
8e64317
Update Text.tsx
cdedreuille Nov 6, 2023
ce4142b
Merge pull request #24737 from storybookjs/charles-fix-btn-size
cdedreuille Nov 7, 2023
5c99dc2
Fix scrollbar + search overflow bug
cdedreuille Nov 7, 2023
3acdb11
Fix highlighted on search results when scrolling down
cdedreuille Nov 7, 2023
dc276af
Merge branch 'release-8-0' into charles-sidebar-ui-updates
cdedreuille Nov 7, 2023
4a56edd
Merge branch 'next' into release-8-0
cdedreuille Nov 7, 2023
dd7b484
remove unused import
ndelangen Nov 7, 2023
abbf50b
Merge branch 'release-8-0' into charles-sidebar-ui-updates
cdedreuille Nov 9, 2023
b868b88
Update SearchResults.tsx
cdedreuille Nov 13, 2023
2ea7d7b
Merge branch 'next' into release-8-0
ndelangen Nov 15, 2023
81d67a8
Merge branch 'next' into release-8-0
ndelangen Nov 15, 2023
61a22c0
make the bench script work
ndelangen Nov 15, 2023
9181355
Merge branch 'next' into release-8-0
ndelangen Nov 16, 2023
bb25d5a
regen lockfiles
ndelangen Nov 16, 2023
5b464aa
fix
ndelangen Nov 16, 2023
2eec54d
fix
ndelangen Nov 16, 2023
580101c
Merge pull request #24707 from storybookjs/charles-sidebar-ui-updates
ndelangen Nov 17, 2023
450fa5e
Merge branch 'next' into release-8-0
ndelangen Nov 17, 2023
8da8617
cleanup
ndelangen Nov 17, 2023
adc2dee
fix
ndelangen Nov 17, 2023
a81d102
fix(AddonViewport): expose types for user parameter validation
piratetaco Nov 17, 2023
aa93eb4
Merge branch 'next' into release-8-0
cdedreuille Nov 19, 2023
5ae02be
Merge branch 'next' into release-8-0
ndelangen Nov 21, 2023
18d4e86
this file was automatically changed, when I reloaded extensions in vs…
ndelangen Nov 23, 2023
278f4fb
Merge branch 'next' into norbert/filterable-refs
ndelangen Nov 23, 2023
a6b9c4f
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 23, 2023
9b35dd1
Merge branch 'next' into release-8-0
ndelangen Nov 23, 2023
6b5cc6b
regen lockfile
ndelangen Nov 23, 2023
ad641b2
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 23, 2023
c735aa2
Merge branch 'norbert/remove-storiesof' of github.com:storybookjs/sto…
ndelangen Nov 23, 2023
cb2e6e9
fix
ndelangen Nov 23, 2023
a6d8718
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 23, 2023
08e3dcb
remove unused ts-expect-error
ndelangen Nov 23, 2023
9c0e06c
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 23, 2023
6ce6ab1
disable failing tests for now
ndelangen Nov 23, 2023
9c6e186
Merge branch 'release-8-0' into norbert/remove-storiesof
ndelangen Nov 23, 2023
a0a8d43
Revert "disable failing tests for now"
valentinpalkovic Nov 24, 2023
9a1d218
Dependencies: Update Typescript
valentinpalkovic Nov 24, 2023
26fdc2a
Merge pull request #24970 from storybookjs/valentin/update-typescript
valentinpalkovic Nov 24, 2023
669979c
Merge branch 'release-8-0' into norbert/filterable-refs
ndelangen Nov 24, 2023
856b10d
Merge pull request #24655 from storybookjs/norbert/remove-storiesof
ndelangen Nov 24, 2023
5fed890
globalize the core-event sub paths
ndelangen Nov 24, 2023
8a61650
fixes
ndelangen Nov 24, 2023
89daec6
rename things
ndelangen Nov 24, 2023
ab4f44d
Merge branch 'next' into release-8-0
ndelangen Nov 24, 2023
c641567
fix lockfile
ndelangen Nov 24, 2023
2f6899a
regen lockfile
ndelangen Nov 24, 2023
1ddf19a
fix lockfile
ndelangen Nov 24, 2023
f8a2b33
Merge pull request #24211 from storybookjs/norbert/filterable-refs
ndelangen Nov 24, 2023
8e97d70
Merge pull request #24976 from storybookjs/norbert/fix-globalization-…
ndelangen Nov 24, 2023
9bc18ff
Merge branch 'next' into pr/dobesv/20791
ndelangen Nov 24, 2023
c1b7477
Discard changes to .vscode/settings.json
ndelangen Nov 24, 2023
3d339e1
remove duplicate code
ndelangen Nov 24, 2023
e85727e
Merge branch 'get-project-root-fixup' of github.com:dobesv/storybook …
ndelangen Nov 24, 2023
7b599d1
Merge branch 'release-8-0' into get-project-root-fixup
ndelangen Nov 24, 2023
b790b45
fix
ndelangen Nov 24, 2023
aec454d
Merge branch 'get-project-root-fixup' of github.com:dobesv/storybook …
ndelangen Nov 24, 2023
234fb3e
Merge branch 'release-8-0' into fix_stories_type
ndelangen Nov 24, 2023
7cdb504
Merge branch 'next' into chore/strict-ts-cra
ndelangen Nov 24, 2023
3350bf9
fix typecheck
kuriacka Nov 24, 2023
a068e5e
another types fix
kuriacka Nov 24, 2023
7e24994
add ts-ignore
kuriacka Nov 24, 2023
d227dea
Fix screen reader not announcing changes for expand/collapse button
wjdtjdgns Nov 26, 2023
69c3c86
Merge branch 'next' into release-8-0
ndelangen Nov 27, 2023
20600b3
Merge pull request #20791 from dobesv/get-project-root-fixup
ndelangen Nov 27, 2023
8fec73b
Merge branch 'release-8-0' into fix/theme-fontCode-mdx
ndelangen Nov 27, 2023
5c40141
Merge branch 'next' into pr/kuriacka/22395
ndelangen Nov 27, 2023
b854892
fixes
ndelangen Nov 27, 2023
f3a5960
fixes
ndelangen Nov 27, 2023
ed656b8
Merge pull request #23110 from storybookjs/fix/theme-fontCode-mdx
ndelangen Nov 27, 2023
87f7063
Merge branch 'release-8-0' into patch-1
ndelangen Nov 27, 2023
3bcdc4e
Merge pull request #24896 from piratetaco/patch-1
ndelangen Nov 27, 2023
faf185b
Merge pull request #24984 from wjdtjdgns/fix/screenreader-expand-coll…
ndelangen Nov 27, 2023
904b9ee
Merge pull request #22395 from kuriacka/chore/strict-ts-cra
ndelangen Nov 27, 2023
095a23d
Merge branch 'release-8-0' into pr/imccausl/21555
ndelangen Nov 27, 2023
b073641
make some improvements in the typings of config
ndelangen Nov 27, 2023
935369f
fixes
ndelangen Nov 27, 2023
b0a239f
Merge pull request #24964 from storybookjs/norbert/apply-auto-changed…
ndelangen Nov 27, 2023
1b576f9
fix
ndelangen Nov 27, 2023
41a80df
Merge pull request #21555 from imccausl/fix_stories_type
ndelangen Nov 27, 2023
f75ef81
Merge branch 'next' into release-8-0
ndelangen Nov 28, 2023
464cd8d
Merge branch 'next' into release-8-0
ndelangen Nov 28, 2023
462dd71
regen lockfile
ndelangen Nov 28, 2023
f2d43e3
regen lockfile
ndelangen Nov 28, 2023
e038dc2
Merge remote-tracking branch 'origin/next' into release-8-0
valentinpalkovic Nov 28, 2023
1f190c7
Merge branch 'next' into release-8-0
valentinpalkovic Nov 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 12 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -560,27 +560,27 @@ workflows:
requires:
- unit-tests
- create-sandboxes:
parallelism: 23
parallelism: 21
requires:
- build
- build-sandboxes:
parallelism: 23
parallelism: 21
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 20
parallelism: 18
requires:
- build-sandboxes
- e2e-production:
parallelism: 18
parallelism: 16
requires:
- build-sandboxes
- e2e-dev:
parallelism: 4
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 18
parallelism: 16
requires:
- build-sandboxes
- bench:
Expand Down Expand Up @@ -614,30 +614,30 @@ workflows:
requires:
- build
- create-sandboxes:
parallelism: 38
parallelism: 36
requires:
- build
# - smoke-test-sandboxes: # disabled for now
# requires:
# - create-sandboxes
- build-sandboxes:
parallelism: 38
parallelism: 36
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 35
parallelism: 33
requires:
- build-sandboxes
- e2e-production:
parallelism: 33
parallelism: 31
requires:
- build-sandboxes
- e2e-dev:
parallelism: 4
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 33
parallelism: 31
requires:
- build-sandboxes
# TODO: reenable once we find out the source of flakyness
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.tabSize": 2,
"editor.formatOnSave": true,
Expand Down
2 changes: 0 additions & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
/code/addons/links/ @yannbf @JReinhold
/code/addons/measure/ @yannbf @valentinpalkovic
/code/addons/outline/ @yannbf @valentinpalkovic
/code/addons/storyshots-core/ @ndelangen
/code/addons/storyshots-puppeteer/ @ndelangen
/code/addons/storysource/ @ndelangen
/code/addons/themes/ @JReinhold @Integrayshaun
/code/addons/toolbars/ @ndelangen @JReinhold
Expand Down
117 changes: 117 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<h1>Migration</h1>

- [From version 7.x to 8.0.0](#from-version-7x-to-800)
- [Implicit actions can not be used during rendering (for example in the play function)](#implicit-actions-can-not-be-used-during-rendering-for-example-in-the-play-function)
- [Core changes](#core-changes)
- [React v18 in the manager UI (including addons)](#react-v18-in-the-manager-ui-including-addons)
- [Storyshots has been removed](#storyshots-has-been-removed)
- [UI layout state has changed shape](#ui-layout-state-has-changed-shape)
- [New UI and props for Button and IconButton components](#new-ui-and-props-for-button-and-iconbutton-components)
- [Icons is deprecated](#icons-is-deprecated)
- [From version 7.5.0 to 7.6.0](#from-version-750-to-760)
- [CommonJS with Vite is deprecated](#commonjs-with-vite-is-deprecated)
- [Using implicit actions during rendering is deprecated](#using-implicit-actions-during-rendering-is-deprecated)
Expand Down Expand Up @@ -311,6 +319,115 @@
- [Packages renaming](#packages-renaming)
- [Deprecated embedded addons](#deprecated-embedded-addons)

## From version 7.x to 8.0.0

### Implicit actions can not be used during rendering (for example in the play function)

In Storybook 7, we inferred if the component accepts any action props,
by checking if it starts with `onX` (for example `onClick`), or as configured by `actions.argTypesRegex`.
If that was the case, we would fill in jest spies for those args automatically.

```ts
export default {
component: Button,
};

export const ButtonClick = {
play: async ({ args, canvasElement }) => {
await userEvent.click(within(canvasElement).getByRole('button'));
// args.onClick is a jest spy in 7.0
await expect(args.onClick).toHaveBeenCalled();
},
};
```

In Storybook 8 this feature is removed, and spies have to added explicitly:

```ts
import { fn } from '@storybook/test';

export default {
component: Button,
args: {
onClick: fn(),
},
};

export const ButtonClick = {
play: async ({ args, canvasElement }) => {
await userEvent.click(within(canvasElement).getByRole('button'));
await expect(args.onClick).toHaveBeenCalled();
},
};
```

For more context, see this RFC:
https://github.com/storybookjs/storybook/discussions/23649

To summarize:

- This makes CSF files less magical and more portable, so that CSF files will render the same in a test environment where docgen is not available.
- This allows users and (test) integrators to run or build storybook without docgen, boosting the user performance and allows tools to give quicker feedback.
- This will make sure that we can one day lazy load docgen, without changing how stories are rendered.

### Core changes

#### React v18 in the manager UI (including addons)

Storybook 7 used React 16 in the manager. In Storybook 8 this is upgraded to react v18.
Addons that inject UI into panels, tools, etc. are possibly affected by this.

Addon authors are advised to upgrade to react v18.

##### Storyshots has been removed

Storyshots was an addon for storybook which allowed users to turn their stories into automated snapshot-tests.

Every story would automatically be taken into account and created a snapshot-file for.

Snapshot-testing has since fallen out of favor and is no longer recommended.

In addition to it's limited use, and high chance of false-positives, storyshots ran code developed to run in the browser in NodeJS via JSDOM.
JSDOM has limitations and is not a perfect emulation of the browser environment; therefore storyshots was always a pain to setup and maintain.

The storybook team has build the test-runner as a direct replacement, which utilizes playwright to connect to an actual browser where storybook runs the code.

In addition CSF has expanded to allow for play-function to be defined on stories, which allows for more complex testing scenarios, fully integrated within storybook itself (and supported by the test-runner, and not storyshots).

Finally `storyStoreV7: true` (the default and only options in storybook 8), was not supported by storyshots.

By removing storyshots, the storybook team was unblocked from moving (eventually) to an ESM-only storybook, which is a big step towards a more modern storybook.

#### UI layout state has changed shape

In Storybook 7 it was possible to use `addons.setConfig({...});` to configure Storybook UI features and behavior as documented [here (v7)](https://storybook.js.org/docs/7.3/react/configure/features-and-behavior), [(latest)](https://storybook.js.org/docs/react/configure/features-and-behavior). The state and API for the UI layout has changed:

- `showNav: boolean` is now `navSize: number`, where the number represents the size of the sidebar in pixels.
- `showPanel: boolean` is now split into `bottomPanelHeight: number` and `rightPanelWidth: number`, where the numbers represents the size of the panel in pixels.
- `isFullscreen: boolean` is no longer supported, but can be achieved by setting a combination of the above.

#### New UI and props for Button and IconButton components

We used to have a lot of different buttons in `@storybook/components` that were not used anywhere. In Storybook 8.0 we are deprecating `Form.Button` and added a new `Button` component that can be used in all places. The `IconButton` component has also been updated to use the new `Button` component under the hood. Going forward addon creators and Storybook maintainers should use the new `Button` component instead of `Form.Button`.

For the `Button` component, the following props are now deprecated:

- `isLink` - Please use the `asChild` prop instead like this: `<Button asChild><a href="">Link</a></Button>`
- `primary` - Please use the `variant` prop instead.
- `secondary` - Please use the `variant` prop instead.
- `tertiary` - Please use the `variant` prop instead.
- `gray` - Please use the `variant` prop instead.
- `inForm` - Please use the `variant` prop instead.
- `small` - Please use the `size` prop instead.
- `outline` - Please use the `variant` prop instead.
- `containsIcon`. Please add your icon as a child directly. No need for this prop anymore.

The `IconButton` doesn't have any deprecated props but it now uses the new `Button` component under the hood so all props for `IconButton` will be the same as `Button`.

#### Icons is deprecated

In Storybook 8.0 we are introducing a new icon library available with `@storybook/icons`. We are deprecating the `Icons` component in `@storybook/components` and recommend that addon creators and Storybook maintainers use the new `@storybook/icons` component instead.

## From version 7.5.0 to 7.6.0

#### CommonJS with Vite is deprecated
Expand Down
9 changes: 2 additions & 7 deletions code/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
'react-hooks/rules-of-hooks': 'off',
'import/extensions': 'off', // for mjs, we sometimes need extensions
'jest/no-done-callback': 'off',
'jsx-a11y/control-has-associated-label': 'off',
'@typescript-eslint/dot-notation': [
'error',
{
Expand Down Expand Up @@ -140,13 +141,7 @@ module.exports = {
},
})),
{
files: [
'**/__tests__/**',
'**/__testfixtures__/**',
'**/*.test.*',
'**/*.stories.*',
'**/storyshots-*/**/stories/**',
],
files: ['**/__tests__/**', '**/__testfixtures__/**', '**/*.test.*', '**/*.stories.*'],
rules: {
'@typescript-eslint/no-empty-function': 'off',
'import/no-extraneous-dependencies': 'off',
Expand Down
4 changes: 2 additions & 2 deletions code/.yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ logFilters:
level: discard
- code: YN0076
level: discard
- level: discard
pattern: '@workspace:addons/storyshots-*/'

nodeLinker: node-modules

Expand All @@ -27,3 +25,5 @@ unsafeHttpWhitelist:

yarnPath: ../.yarn/releases/yarn-4.0.0.cjs
installStatePath: '../.yarn/code-install-state.gz'
# Sometimes you get a "The remote archive doesn't match the expected checksum" error, uncommenting this line will fix it
# checksumBehavior: 'update'
9 changes: 5 additions & 4 deletions code/addons/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,18 @@
"@storybook/client-logger": "workspace:*",
"@storybook/components": "workspace:*",
"@storybook/global": "^5.0.0",
"@storybook/icons": "^1.2.1",
"@storybook/manager-api": "workspace:*",
"@storybook/preview-api": "workspace:*",
"@storybook/theming": "workspace:*",
"@storybook/types": "workspace:*",
"@testing-library/react": "^11.2.2",
"@testing-library/react": "^14.0.0",
"lodash": "^4.17.21",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-resize-detector": "^7.1.2",
"resize-observer-polyfill": "^1.5.1",
"typescript": "~4.9.3"
"typescript": "^5.3.2"
},
"publishConfig": {
"access": "public"
Expand Down
11 changes: 5 additions & 6 deletions code/addons/a11y/src/components/A11YPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React, { useCallback, useMemo, useState } from 'react';

import { styled } from '@storybook/theming';

import { ActionBar, Icons, ScrollArea } from '@storybook/components';
import { ActionBar, ScrollArea } from '@storybook/components';
import { SyncIcon, CheckIcon } from '@storybook/icons';

import type { AxeResults } from 'axe-core';
import { useChannel, useParameter, useStorybookState } from '@storybook/manager-api';
Expand All @@ -21,9 +22,7 @@ export enum RuleType {
INCOMPLETION,
}

const Icon = styled(Icons)({
height: 12,
width: 12,
const Icon = styled(SyncIcon)({
marginRight: 4,
});

Expand Down Expand Up @@ -108,7 +107,7 @@ export const A11YPanel: React.FC = () => {
'Rerun tests'
) : (
<>
<Icon icon="check" /> Tests completed
<CheckIcon /> Tests completed
</>
),
onClick: handleManual,
Expand Down Expand Up @@ -164,7 +163,7 @@ export const A11YPanel: React.FC = () => {
)}
{status === 'running' && (
<Centered>
<RotatingIcon icon="sync" /> Please wait while the accessibility scan is running ...
<RotatingIcon size={12} /> Please wait while the accessibility scan is running ...
</Centered>
)}
{(status === 'ready' || status === 'ran') && (
Expand Down
5 changes: 4 additions & 1 deletion code/addons/a11y/src/components/A11yContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ const defaultResult = {
violations: [],
};

export const A11yContextProvider: React.FC<A11yContextProviderProps> = ({ active, ...props }) => {
export const A11yContextProvider: React.FC<React.PropsWithChildren<A11yContextProviderProps>> = ({
active,
...props
}) => {
const [results, setResults] = useAddonState<Results>(ADDON_ID, defaultResult);
const [tab, setTab] = React.useState(0);
const [highlighted, setHighlighted] = React.useState<string[]>([]);
Expand Down
4 changes: 2 additions & 2 deletions code/addons/a11y/src/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ const List = styled.div(({ theme }) => ({

interface TabsProps {
tabs: {
label: JSX.Element;
panel: JSX.Element;
label: React.ReactElement;
panel: React.ReactElement;
items: Result[];
type: RuleType;
}[];
Expand Down
5 changes: 3 additions & 2 deletions code/addons/a11y/src/components/VisionSimulator.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { ReactNode } from 'react';
import React, { useState } from 'react';
import { Global, styled } from '@storybook/theming';
import { Icons, IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';
import { IconButton, WithTooltip, TooltipLinkList } from '@storybook/components';

import { AccessibilityIcon } from '@storybook/icons';
import { Filters } from './ColorFilters';

const iframeId = 'storybook-preview-iframe';
Expand Down Expand Up @@ -144,7 +145,7 @@ export const VisionSimulator = () => {
onDoubleClick={() => setFilter(null)}
>
<IconButton key="filter" active={!!filter} title="Vision simulator">
<Icons icon="accessibility" />
<AccessibilityIcon />
</IconButton>
</WithTooltip>
<Hidden>
Expand Down
6 changes: 3 additions & 3 deletions code/addons/actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@
"@storybook/preview-api": "workspace:*",
"@storybook/theming": "workspace:*",
"@storybook/types": "workspace:*",
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-inspector": "^6.0.0",
"telejson": "^7.2.0",
"typescript": "~4.9.3"
"typescript": "^5.3.2"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 5 additions & 2 deletions code/addons/actions/src/components/ActionLogger/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FC } from 'react';
import type { FC, PropsWithChildren } from 'react';
import React, { Fragment } from 'react';
import { styled, withTheme } from '@storybook/theming';
import type { Theme } from '@storybook/theming';
Expand All @@ -9,7 +9,10 @@ import { ActionBar, ScrollArea } from '@storybook/components';
import { Action, InspectorContainer, Counter } from './style';
import type { ActionDisplay } from '../../models';

const UnstyledWrapped: FC<{ className?: string }> = ({ children, className }) => (
const UnstyledWrapped: FC<PropsWithChildren<{ className?: string }>> = ({
children,
className,
}) => (
<ScrollArea horizontal vertical className={className}>
{children}
</ScrollArea>
Expand Down
2 changes: 1 addition & 1 deletion code/addons/actions/src/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare var FEATURES: import('@storybook/types').StorybookConfig['features'];
declare var FEATURES: import('@storybook/types').StorybookConfigRaw['features'];
Loading
Loading