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

Release: Prerelease 8.0.0-alpha.2 #25142

Merged
merged 166 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
7a06c93
feat: Update packages to match Svelte 5 (Beta)
allozaur Nov 17, 2023
27c2b3c
feat: Update code for Svelte's `render.ts`
allozaur Nov 17, 2023
5ea0ac9
feat: Use `createRoot` function to render `PreviewRender`
allozaur Nov 20, 2023
67c4c63
refactor: Remove legacy `$on` event
allozaur Nov 20, 2023
acaf0ce
Merge branch 'release-8-0' of github.com:storybookjs/storybook into a…
JReinhold Nov 22, 2023
baf72a6
expand svelte dependency version ranges
JReinhold Nov 22, 2023
6561d0c
make webpackFinal consistent across docs
kylemeenehan Nov 29, 2023
e1475b7
Merge branch 'next' of github.com:storybookjs/storybook into allozaur…
JReinhold Nov 29, 2023
68983e8
Create function to execute creation script
Nov 27, 2023
07f08a3
Create flow to scaffold a new project
Nov 27, 2023
8817642
Plug scaffold flow into storybook init
Nov 27, 2023
ee01b44
Don't use app router
Nov 28, 2023
96b624e
Add empty project error
Nov 28, 2023
607c523
Remove prefers offline
Nov 28, 2023
6145b5d
Use execa
Nov 28, 2023
1c62a97
Remove left right margins from boxen
Nov 28, 2023
7114d54
Update docs to remove empty project callout
Nov 28, 2023
43f5be5
Add env var to reselect new project
Nov 28, 2023
33fca51
Add new option to types
Nov 28, 2023
8186fa7
fix linting warning
Nov 28, 2023
156ec8a
Infer package manager from user agent
Nov 28, 2023
de3dd24
fix merge conflicts
Nov 29, 2023
e329fb8
Don't expose testing flag; Only use Env var
Nov 29, 2023
097a9c6
Don't install deps on create for pnpm
Nov 29, 2023
85cd3ef
Add empty dir sandboxes
Nov 29, 2023
b2daaec
Add optional env vars to templates
Nov 29, 2023
0032ff2
Skip all empty sandboxes
Nov 29, 2023
07790cb
Start writing CircleCI script to test empty init
Nov 29, 2023
3b8cdc4
Test out empty init circle job
Nov 29, 2023
8e20a75
oops
Nov 29, 2023
f115839
try again
Nov 29, 2023
4eb0c2b
one more time
Nov 29, 2023
acfc94c
Updated config.yml
ShaunEvening Nov 29, 2023
0b011b9
Actually get to the right file for the cli bin
Nov 29, 2023
7abeedf
remove event handler, fix types
JReinhold Nov 29, 2023
cd20c52
fix package manager flag
Nov 29, 2023
826ab3d
Make sure empty projects are init in the right dir
Nov 29, 2023
b4250b3
add --yes
Nov 29, 2023
1cfd09e
Try npm instead
Nov 29, 2023
f324a2b
Add missing `barHoverColor` in theme common snippet
julien-deramond Nov 30, 2023
f012da8
add back Svelte 4 support
JReinhold Nov 30, 2023
af572b8
add Svelte 5 sandbox
JReinhold Nov 30, 2023
3fdca57
add temporary push event
JReinhold Nov 30, 2023
4281a88
try pull_request event
JReinhold Nov 30, 2023
f33e3c9
remove temp event
JReinhold Nov 30, 2023
ab5ff2c
update yarn.lock
JReinhold Nov 30, 2023
073d84d
cleanup
JReinhold Nov 30, 2023
79c17ec
cleanup
JReinhold Nov 30, 2023
6c12cad
Merge branch 'next' into cli/empty-project-init
Nov 30, 2023
27252cb
try adding --yes back
Nov 30, 2023
d66e4bc
Try echoing out env var
Nov 30, 2023
c81c38e
Print the WD
Nov 30, 2023
95c7889
Try setting yarn to berry
Nov 30, 2023
7195595
Test npm instead
Nov 30, 2023
a7ff9e7
Set in sandbox to true
Nov 30, 2023
d36324c
run all empty templates
Nov 30, 2023
8458221
refactor: use encodeURIComponent to encode story name
xyy94813 Nov 30, 2023
7aa831c
Docs: Readme move Storyshots to deprecated status
jonniebigodes Nov 30, 2023
5175507
Add conditional logic
Nov 30, 2023
fdbe873
Merge branch 'next' into docs_readme_storyshots_cleanup
jonniebigodes Nov 30, 2023
ef0235f
Fixes the community link
jonniebigodes Nov 30, 2023
0574aa7
Merge branch 'docs_readme_storyshots_cleanup' of https://github.com/s…
jonniebigodes Nov 30, 2023
24b947b
Updated config.yml
ShaunEvening Nov 30, 2023
2956a01
Add yarn and pnpm
Nov 30, 2023
d5211b2
Merge branch 'next' into docs_readme_storyshots_cleanup
jonniebigodes Nov 30, 2023
5cd8fbf
Only run tests for NPM for now
Nov 30, 2023
4114f70
Re-enable daily flow
Nov 30, 2023
96e5271
Re-enable daily workflow
Nov 30, 2023
7b9b269
Updated config.yml
ShaunEvening Nov 30, 2023
392f1b5
Merge branch 'next' into cli/empty-project-init
Nov 30, 2023
2eb8a9a
ignore package.json in pnpm dlx scenario
Nov 30, 2023
c414978
Merge branch 'next' into cli/empty-project-init
Nov 30, 2023
0046573
ignore .cache
Nov 30, 2023
f9d8358
upgrade to [email protected]
JReinhold Dec 1, 2023
a44a421
Merge branch 'next' into allozaur/#24886
JReinhold Dec 1, 2023
e0256df
Merge branch 'next' into cli/empty-project-init
Dec 1, 2023
db79ce0
Try running verdaccio in CI
Dec 1, 2023
2d4f494
Update other package managers to use verdaccio
Dec 1, 2023
a6379b0
Try using npx in circleCI
Dec 1, 2023
b412540
Don't preload preview runtime if there is no preview
tmeasday Nov 23, 2023
7125e92
Core: Add option to exit dev if we don't get the requested port
shilman Nov 7, 2023
a3583c8
Create a post bundle script for preview-api
tmeasday Nov 6, 2023
62c4b8a
Add preview-api exports for embedding
tmeasday Oct 26, 2023
8d29cf8
Split `render` from `renderToCanvas` in react
tmeasday Oct 10, 2023
406cc4b
Add some extra stuff to composed stories
tmeasday Oct 10, 2023
106484f
Merge branch 'next' into shilman/enable-embedded-storybook
shilman Dec 2, 2023
fa16f87
React: Fix error boundary types for React18?
shilman Dec 2, 2023
d0050f7
Merge branch 'next' into docs_readme_storyshots_cleanup
jonniebigodes Dec 2, 2023
25f3a33
add svelte 5 resolution to sveltekit prerelease sandbox
JReinhold Dec 4, 2023
8144998
Merge branch 'next' of github.com:storybookjs/storybook into allozaur…
JReinhold Dec 4, 2023
8b2bdf9
Merge branch 'next' into cli/empty-project-init
Dec 4, 2023
e07105b
fix addWorkaroundResolutions call
JReinhold Dec 4, 2023
4ed6f99
Resolve version issue for CLI
Dec 4, 2023
1ed3441
Merge branch 'next' into feature/subheading-tag-id
valentinpalkovic Dec 4, 2023
876cbde
disable peer error instead of using resolutions
JReinhold Dec 4, 2023
48c2d74
Remove deprecated packages from next
kasperpeulen Dec 4, 2023
b5ca2b0
Remove deprecated packages from next
kasperpeulen Dec 4, 2023
ed9cb67
Add debug env var
Dec 4, 2023
39fd813
Docs: Svelte docs and examples update
jonniebigodes Dec 4, 2023
acd5864
Merge branch 'next' into docs_svelte_ts_example
jonniebigodes Dec 4, 2023
a9d54ca
Create project in temp dir
Dec 5, 2023
15fd3f5
use sandbox key instead of dir
JReinhold Dec 5, 2023
b362874
Merge branch 'next' of github.com:storybookjs/storybook into allozaur…
JReinhold Dec 5, 2023
2a7bd55
upgrade svelte typings
JReinhold Dec 5, 2023
9c786f8
Fix sandboxes
kasperpeulen Dec 5, 2023
f3766dc
Delete cache folder
Dec 5, 2023
c60406e
Merge remote-tracking branch 'origin/next' into kasper/remove-depreca…
kasperpeulen Dec 5, 2023
ab31b0d
fix broken yarn.lock
JReinhold Dec 5, 2023
ffbff85
Cleanup
Dec 5, 2023
b9b73ba
Remove more references
kasperpeulen Dec 5, 2023
87c2001
Merge branch 'next' into docs/webpack
jonniebigodes Dec 5, 2023
2b74b86
Merge branch 'next' into docs_svelte_ts_example
jonniebigodes Dec 5, 2023
1f91ca2
Fix unit tests
kasperpeulen Dec 5, 2023
98d1598
Comment out empty templates
Dec 5, 2023
184b5d6
Fix frameworksToRenderer
kasperpeulen Dec 5, 2023
d95b2cc
Merge branch 'next' into docs/webpack
jonniebigodes Dec 5, 2023
ca1f850
Merge branch 'next' into docs_svelte_ts_example
jonniebigodes Dec 5, 2023
52e1d6e
Merge branch 'next' into docs/webpack
jonniebigodes Dec 5, 2023
43d6dd3
Merge pull request #25038 from kylemeenehan/docs/webpack
jonniebigodes Dec 5, 2023
32997f2
Merge branch 'next' into next-jd-add-missing-barHoverColor-in-your-th…
jonniebigodes Dec 5, 2023
dfb4aac
Merge pull request #25051 from julien-deramond/next-jd-add-missing-ba…
jonniebigodes Dec 5, 2023
f6fc00d
Merge branch 'next' into docs_svelte_ts_example
jonniebigodes Dec 5, 2023
32a8d30
rebuild yarn.lock
JReinhold Dec 6, 2023
7192c90
add template stories for sveltekit prerelease
JReinhold Dec 6, 2023
71a4575
disable actions e2e test for svelte prerelease
JReinhold Dec 6, 2023
5aaa283
Merge pull request #24889 from allozaur/allozaur/#24886
JReinhold Dec 6, 2023
41d0803
Use env vars in script
Dec 6, 2023
c876156
Merge branch 'next' into cli/empty-project-init
Dec 6, 2023
606829c
Merge branch 'next' into docs_readme_storyshots_cleanup
jonniebigodes Dec 6, 2023
10cfd34
Fix mapping
kasperpeulen Dec 6, 2023
88c67c4
Merge pull request #25063 from storybookjs/docs_readme_storyshots_cle…
jonniebigodes Dec 6, 2023
825b0ad
Fix wrapper snippets
jonniebigodes Dec 6, 2023
a297319
Merge branch 'docs_svelte_ts_example' of https://github.com/storybook…
jonniebigodes Dec 6, 2023
f1e6e2d
Merge branch 'next' into docs_svelte_ts_example
jonniebigodes Dec 6, 2023
7bee11f
Merge pull request #25110 from storybookjs/docs_svelte_ts_example
jonniebigodes Dec 6, 2023
8f7360a
Merge remote-tracking branch 'origin/next' into kasper/remove-depreca…
kasperpeulen Dec 6, 2023
6b29931
Fix merge conflicts
kasperpeulen Dec 6, 2023
ee46686
Merge pull request #25108 from storybookjs/kasper/remove-deprecated-p…
kasperpeulen Dec 6, 2023
9e1492b
Docs: SWC compiler cross link to API docs
jonniebigodes Dec 6, 2023
f46e4c7
Merge branch 'next' into docs_fix_compiler_swc
jonniebigodes Dec 6, 2023
f885ece
Merge pull request #25136 from storybookjs/docs_fix_compiler_swc
jonniebigodes Dec 6, 2023
8ef5716
Update README.md
machycek Dec 7, 2023
7c32fb5
Merge pull request #25062 from xyy94813/feature/subheading-tag-id
valentinpalkovic Dec 7, 2023
5cc60e2
Merge branch 'next-release' into next
shilman Dec 7, 2023
d258d24
Merge pull request #25138 from machycek/patch-1
JReinhold Dec 7, 2023
0599eb0
Merge branch 'next' into shilman/enable-embedded-storybook
kasperpeulen Dec 7, 2023
1e93349
Update CHANGELOG.md for v7.6.4 [skip ci]
storybook-bot Dec 7, 2023
b70226b
Remove unused templates
Dec 7, 2023
0a46302
Move inferPackageManager into JsPackageManager
Dec 7, 2023
f8bf4ef
Fix packageManager inference
Dec 7, 2023
cedc6fb
Remove unused imports
Dec 7, 2023
df1f00f
Merge branch 'next' into cli/empty-project-init
Dec 7, 2023
026340d
Remove unused preset-vue-webpack
shilman Dec 8, 2023
8fbd375
Break the cache
shilman Dec 8, 2023
617163f
Merge pull request #25151 from storybookjs/shilman/remove-vue-webpack…
kasperpeulen Dec 8, 2023
8a2baff
Merge branch 'next' into cli/empty-project-init
Dec 8, 2023
cc81dad
Add telemetry for successful scaffolding
Dec 8, 2023
f091782
Merge pull request #24997 from storybookjs/cli/empty-project-init
Dec 8, 2023
8001e3c
Simplify composeStory
shilman Dec 11, 2023
b3010f1
Rewrite-modules hack unnecessary after Next 14.0.5
shilman Dec 11, 2023
10e81f9
Merge branch 'next' into shilman/enable-embedded-storybook
shilman Dec 11, 2023
3817d1c
Merge pull request #25086 from storybookjs/shilman/enable-embedded-st…
shilman Dec 11, 2023
51d96bc
Write changelog for 8.0.0-alpha.2 [skip ci]
storybook-bot Dec 11, 2023
0c9586a
Fix changelog for 8.0.0-alpha.2 [skip ci]
shilman Dec 11, 2023
38414cd
Disable svelte-kit/prerelease-ts sandbox
shilman Dec 11, 2023
6a4de2d
Fix parallelism
shilman Dec 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 127 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,98 @@ jobs:
command: yarn upload-bench $(yarn get-template --cadence << pipeline.parameters.workflow >> --task bench)
- report-workflow-on-failure:
template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task bench)
test-empty-init:
executor:
class: medium
name: sb_node_16_browsers
parameters:
packageManager:
type: string
template:
type: string
steps:
- git-shallow-clone/checkout_advanced:
clone_options: '--depth 1 --verbose'
- attach_workspace:
at: .
- when:
condition:
equal: ["npm", << parameters.packageManager >>]
steps:
- run:
name: Storybook init from empty directory (NPM)
command: |
cd code
yarn local-registry --open &
cd ../../
mkdir empty-<< parameters.template >>
cd empty-<< parameters.template >>
npm set registry http://localhost:6001
npx storybook init --yes --package-manager npm
npm run storybook -- --smoke-test
environment:
IN_STORYBOOK_SANDBOX: true
STORYBOOK_INIT_EMPTY_TYPE: << parameters.template >>
STORYBOOK_DISABLE_TELEMETRY: true
- when:
condition:
equal: ["yarn1", << parameters.packageManager >>]
steps:
- run:
name: Storybook init from empty directory (Yarn 1)
command: |
cd code
yarn local-registry --open &
cd ../../
mkdir empty-<< parameters.template >>
cd empty-<< parameters.template >>
npx storybook init --yes --package-manager yarn1
yarn storybook --smoke-test
environment:
IN_STORYBOOK_SANDBOX: true
STORYBOOK_INIT_EMPTY_TYPE: << parameters.template >>
STORYBOOK_DISABLE_TELEMETRY: true
- when:
condition:
equal: ["yarn2", << parameters.packageManager >>]
steps:
- run:
name: Storybook init from empty directory (Yarn 2)
command: |
cd code
yarn local-registry --open &
cd ../../
mkdir empty-<< parameters.template >>
cd empty-<< parameters.template >>
yarn set version berry
yarn config set registry http://localhost:6001
yarn dlx storybook init --yes --package-manager yarn2
yarn storybook --smoke-test
environment:
IN_STORYBOOK_SANDBOX: true
STORYBOOK_INIT_EMPTY_TYPE: << parameters.template >>
STORYBOOK_DISABLE_TELEMETRY: true
- when:
condition:
equal: ["pnpm", << parameters.packageManager >>]
steps:
- run:
name: Storybook init from empty directory (PNPM)
command: |
cd code
yarn local-registry --open &
cd ../../
mkdir empty-<< parameters.template >>
cd empty-<< parameters.template >>
npm i -g pnpm
pnpm config set registry http://localhost:6001
pnpm dlx storybook init --yes --package-manager pnpm
pnpm run storybook --smoke-test
environment:
IN_STORYBOOK_SANDBOX: true
STORYBOOK_INIT_EMPTY_TYPE: << parameters.template >>
STORYBOOK_DISABLE_TELEMETRY: true
- report-workflow-on-failure

workflows:
docs:
Expand Down Expand Up @@ -504,27 +596,27 @@ workflows:
requires:
- unit-tests
- create-sandboxes:
parallelism: 14
parallelism: 13
requires:
- build
- build-sandboxes:
parallelism: 14
parallelism: 13
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 11
parallelism: 10
requires:
- build-sandboxes
- e2e-production:
parallelism: 9
parallelism: 8
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 9
parallelism: 8
requires:
- build-sandboxes
- bench:
Expand Down Expand Up @@ -560,27 +652,27 @@ workflows:
requires:
- unit-tests
- create-sandboxes:
parallelism: 21
parallelism: 20
requires:
- build
- build-sandboxes:
parallelism: 21
parallelism: 20
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 18
parallelism: 17
requires:
- build-sandboxes
- e2e-production:
parallelism: 16
parallelism: 15
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 16
parallelism: 15
requires:
- build-sandboxes
- bench:
Expand Down Expand Up @@ -614,32 +706,52 @@ workflows:
requires:
- build
- create-sandboxes:
parallelism: 35
parallelism: 33
requires:
- build
# - smoke-test-sandboxes: # disabled for now
# requires:
# - create-sandboxes
- build-sandboxes:
parallelism: 35
parallelism: 33
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 32
parallelism: 30
requires:
- build-sandboxes
- e2e-production:
parallelism: 30
parallelism: 28
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
requires:
- create-sandboxes
- test-runner-production:
parallelism: 30
parallelism: 28
requires:
- build-sandboxes

- test-empty-init:
requires:
- build
matrix:
parameters:
packageManager:
- "npm"
# TODO: reenable once we find out the source of failure
# - "yarn1"
# - "yarn2"
# - "pnpm"
template:
- "react-vite-ts"
- "nextjs-ts"
- "vue-vite-ts"
# --smoke-test is not supported for the angular builder right now
# - "angular-cli"
- "lit-vite-ts"

# TODO: reenable once we find out the source of flakyness
# - test-runner-dev:
# parallelism: 4
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 7.6.4

- Angular: Fix CSF Plugin - [#25098](https://github.com/storybookjs/storybook/pull/25098), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!
- Viewport: Fix viewport dts files - [#25107](https://github.com/storybookjs/storybook/pull/25107), thanks [@kasperpeulen](https://github.com/kasperpeulen)!

## 7.6.3

- Next.js: Fix next/font/local usage in babel mode - [#25045](https://github.com/storybookjs/storybook/pull/25045), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 8.0.0-alpha.2

- Core: Maintenance changes for NextJS embedding - [#25086](https://github.com/storybookjs/storybook/pull/25086), thanks [@shilman](https://github.com/shilman)!
- Addon-docs: Fix story anchors using encodeURIComponent - [#25062](https://github.com/storybookjs/storybook/pull/25062), thanks [@xyy94813](https://github.com/xyy94813)!
- CLI: Generate a new project on init in empty directory - [#24997](https://github.com/storybookjs/storybook/pull/24997), thanks [@Integrayshaun](https://github.com/Integrayshaun)!
- Svelte: Support v5 prereleases - [#24889](https://github.com/storybookjs/storybook/pull/24889), thanks [@allozaur](https://github.com/allozaur)!
- Vue: Remove deprecated vue packages from next - [#25108](https://github.com/storybookjs/storybook/pull/25108), thanks [@kasperpeulen](https://github.com/kasperpeulen)!
- Vue: Remove unused preset-vue-webpack - [#25151](https://github.com/storybookjs/storybook/pull/25151), thanks [@shilman](https://github.com/shilman)!

## 8.0.0-alpha.1

- Angular: Drop v14.x support - [#25101](https://github.com/storybookjs/storybook/pull/25101), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!
Expand Down
67 changes: 0 additions & 67 deletions Issue.md

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,21 @@ For additional help, share your issue in [the repo's GitHub Discussions](https:/
| [measure](code/addons/measure/) | Visually inspect the layout and box model within the Storybook UI |
| [outline](code/addons/outline/) | Visually debug the CSS layout and alignment within the Storybook UI |
| [query params](https://github.com/storybookjs/addon-queryparams) | Mock query params |
| [storyshots](code/addons/storyshots-core/) | Snapshot testing for components in Storybook |
| [storysource](code/addons/storysource/) | View the code of your stories within the Storybook UI |
| [viewport](code/addons/viewport/) | Change display sizes and layouts for responsive components using Storybook |

See [Addon / Framework Support Table](https://storybook.js.org/docs/react/api/frameworks-feature-support)

### Deprecated Addons

| Addons | |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [contexts](https://storybook.js.org/addons/@storybook/addon-contexts/) | Addon for driving your components under dynamic contexts |
| [info](https://github.com/storybookjs/deprecated-addons/tree/master/addons/info) | Annotate stories with extra component usage information |
| [knobs](https://github.com/storybookjs/addon-knobs) | Interactively edit component prop data in the Storybook UI |
| [notes](https://github.com/storybookjs/deprecated-addons/tree/master/addons/notes) | Annotate Storybook stories with notes |
| [options](https://www.npmjs.com/package/@storybook/addon-options) | Customize the Storybook UI in code |
| Addons | |
| -------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [contexts](https://storybook.js.org/addons/@storybook/addon-contexts/) | Addon for driving your components under dynamic contexts |
| [info](https://github.com/storybookjs/deprecated-addons/tree/master/addons/info) | Annotate stories with extra component usage information |
| [knobs](https://github.com/storybookjs/addon-knobs) | Interactively edit component prop data in the Storybook UI |
| [notes](https://github.com/storybookjs/deprecated-addons/tree/master/addons/notes) | Annotate Storybook stories with notes |
| [options](https://www.npmjs.com/package/@storybook/addon-options) | Customize the Storybook UI in code |
| [storyshots](https://github.com/storybookjs/storybook/tree/main/code/addons/storyshots-core) | Snapshot testing for components in Storybook |

To continue improving your experience, we have to eventually deprecate certain addons in favor of new and better tools.

Expand Down
1 change: 0 additions & 1 deletion code/addons/essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
"ts-dedent": "^2.0.0"
},
"devDependencies": {
"@storybook/vue": "workspace:*",
"typescript": "^5.3.2"
},
"peerDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion code/builders/builder-manager/src/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const renderHTML = async (
refs: Promise<Record<string, Ref>>,
logLevel: Promise<string>,
docsOptions: Promise<DocsOptions>,
{ versionCheck, previewUrl, configType }: Options
{ versionCheck, previewUrl, configType, ignorePreview }: Options
) => {
const titleRef = await title;
const templateRef = await template;
Expand All @@ -54,5 +54,6 @@ export const renderHTML = async (
PREVIEW_URL: JSON.stringify(previewUrl, null, 2), // global preview URL
},
head: (await customHead) || '',
ignorePreview,
});
};
2 changes: 2 additions & 0 deletions code/builders/builder-manager/templates/template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
import './sb-manager/runtime.js';
</script>

<% if (!ignorePreview) { %>
<link href="./sb-preview/runtime.js" rel="prefetch" as="script" />
<% } %>
</body>
</html>
7 changes: 7 additions & 0 deletions code/e2e-tests/addon-actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@ import process from 'process';
import { SbPage } from './util';

const storybookUrl = process.env.STORYBOOK_URL || 'http://localhost:8001';
const templateName = process.env.STORYBOOK_TEMPLATE_NAME || '';

test.describe('addon-actions', () => {
test('should trigger an action', async ({ page }) => {
// eslint-disable-next-line jest/no-disabled-tests
test.skip(
// eslint-disable-next-line jest/valid-title
templateName.includes('svelte') && templateName.includes('prerelease'),
'Svelte 5 prerelase does not support automatic actions with our current example components yet'
);
await page.goto(storybookUrl);
const sbPage = new SbPage(page);
sbPage.waitUntilLoaded();
Expand Down
Loading