1179 Commits

Author SHA1 Message Date
Tom Coleman
bc3831f145
Merge pull request #19255 from storybookjs/shilman/upgrade-test-runner
CI: Fix test-runner build step
2022-10-10 16:52:46 +11:00
Tom Coleman
190de8623e Ensure we wait in preview web also 2022-10-10 16:00:03 +11:00
Michael Shilman
6c0de61cfc Remove outdated snapshots 2022-10-10 12:29:35 +08:00
Michael Shilman
f294d881d7 Unused MDX stories specifier 2022-10-10 12:23:10 +08:00
Michael Shilman
2191f6aa4e Fix vue MDX stories 2022-10-10 11:57:02 +08:00
Michael Shilman
f52bc2b8e0 Clean-up vue3 MDX 2022-10-10 11:33:16 +08:00
Michael Shilman
93564baa7f Fix vue3 header 2022-10-10 11:25:58 +08:00
Michael Shilman
bf3e0e4301 Update svelte-mdx.stories.mdx 2022-10-10 11:11:28 +08:00
Michael Shilman
964c2afa6c Fix vue MDX 2022-10-10 11:10:50 +08:00
Michael Shilman
8560f926af Fix svelte MDX 2022-10-10 10:59:03 +08:00
Tom Coleman
e5e43a872d Let's move that await to the store 2022-10-10 13:30:45 +11:00
Tom Coleman
ca03e353e5 Try waiting on the init promise 2022-10-10 13:27:24 +11:00
Michael Shilman
d31a3a99cc Fix vue3-mdx stories 2022-10-10 10:00:39 +08:00
Michael Shilman
d1ce644221 Fix react-mdx title 2022-10-10 08:26:20 +08:00
Michael Shilman
9a226d894e Delete unused story 2022-10-09 19:41:58 +08:00
Michael Shilman
42158d631a Fix implicit type 2022-10-09 18:47:56 +08:00
Michael Shilman
70f21ae05b Merge branch 'next' into shilman/generic-mdx-stories 2022-10-09 18:19:06 +08:00
Michael Shilman
5054605a9a Skip error stories in the test runner only 2022-10-08 10:59:23 +08:00
Norbert de Langen
d1c990cdc9
move code for setting builderOptions unto webpack5 builder to the other webpack config partial 2022-10-07 09:50:32 +02:00
Michael Shilman
a2cdd73b48
Merge pull request #19023 from storybookjs/update-colors
UI: Update colors for 7.0
2022-10-06 18:09:16 +08:00
Jeppe Reinhold
93f9090f5a
Merge pull request #19369 from storybookjs/reenable-svelte-vite-ts-template 2022-10-06 11:25:29 +02:00
Michael Shilman
1c968fc738 Update snapshots / tests for new color scheme 2022-10-06 11:12:46 +08:00
Jeppe Reinhold
bc155f0878 reenable svelte-vite/default-ts template 2022-10-06 00:29:26 +02:00
Kai Röder
17bd9211ab refactor(angular): drop support for angular < 13
According to the Angular LTS plan, Angular 12
support ends in Nov 2022. A lot of code exists
to support Angular < 13 which increases the
maintenance effort and decreases the
contribution DX of framework/angular.

BREAKING CHANGE: Dropped support for Angular 12
2022-10-05 22:56:44 +02:00
Norbert de Langen
01064b7b4b
Merge pull request #19270 from storybookjs/install-scripts-bootstrap
Build: Add installScripts step in bootstrap command
2022-10-05 21:12:53 +03:00
Michael Shilman
6db971cb28 Merge branch 'next' into update-colors 2022-10-06 00:32:26 +08:00
Michael Shilman
d5bc809ae3 Update git head to 7.0.0-alpha.35, update yarn.lock [ci skip] 2022-10-06 00:24:15 +08:00
Michael Shilman
d8972df8c6 v7.0.0-alpha.35 2022-10-06 00:18:55 +08:00
Michael Shilman
dcfaa38873 Update root, peer deps, version.ts/json to 7.0.0-alpha.35 [ci skip] 2022-10-06 00:15:15 +08:00
Ian VanSchooten
f4383233ee
Merge pull request #19339 from storybookjs/vite/svelte-docgen-options
Typescript-based svelte components did not generate docs correctly, and svelte-native stories were not possible.

## What I did

In the transition to 7.0, we neglected to load svelte options from `svelte.config.js` (and `svelteOptions` from storybook overrides) and pass them to the svelte docgen plugin, which means that svelte components written with typescript did not work correctly.

Also, while we brought over the `csfPlugin` for svelte, we never actually used it.  So, svelte-native stories would be broken even if `@storybook/addon-svelte-csf` was added.  The fix here is a bit of a temporary one, hopefully.  It uses the same strategy from the 6.5 vite-builder, but it would be better if we could add vite-support to the addon directly, which I've suggested in https://github.com/storybookjs/addon-svelte-csf/issues/64#issuecomment-1266298532.

## How to test

Currently we do not have a svelte-vite typescript sandbox, nor do we have any svelte-native stories.  But, I bootstrapped my own project, and copied over the `dist` folder from the `svelte-vite` framework in this branch, and confirmed that both docgen and svelte-native stories do not work without these changes, and do work with them.
2022-10-05 10:59:12 -04:00
Norbert de Langen
9d2abf79d0
Merge branch 'next' into install-scripts-bootstrap 2022-10-05 16:16:02 +02:00
Norbert de Langen
17a3e2c6fd
Merge branch 'next' into shilman/generic-mdx-stories 2022-10-05 16:13:54 +02:00
Norbert de Langen
d0f386014f
Merge pull request #19342 from storybookjs/norbert/sb-525-webpack5react17js
add react17 + webpack5 template
2022-10-05 16:37:40 +03:00
Norbert de Langen
27e28625f0
Merge pull request #19272 from storybookjs/testing-react-exclude-core
CLI: Exclude @storybook/testing-react from outdated check
2022-10-05 16:26:45 +03:00
Norbert de Langen
624a6b69dc
Merge pull request #19334 from storybookjs/fix/addon-interactions-build
Fix path to checkActionsLoaded
2022-10-05 16:25:36 +03:00
Norbert de Langen
b36a96ffeb
Merge branch 'next' into norbert/sb-525-webpack5react17js 2022-10-05 12:16:36 +02:00
Norbert de Langen
c15daaeb9e
Merge pull request #19341 from storybookjs/norbert/sb-524-webpack5react18ts
add react18 + webpack5 template
2022-10-05 13:14:14 +03:00
Norbert de Langen
24ee6b2977
Merge pull request #19313 from shariqx5/migration/source-loader-tsc
Update: source-loader lib migrated to use modern build tool
2022-10-05 12:25:46 +03:00
Norbert de Langen
9f712a4b51
Merge branch 'norbert/sb-524-webpack5react18ts' into norbert/sb-525-webpack5react17js 2022-10-05 11:15:13 +02:00
Norbert de Langen
570d286793
Merge branch 'next' into norbert/sb-524-webpack5react18ts 2022-10-05 11:07:41 +02:00
Norbert de Langen
abad5077e2
ensure config is resolved with the polyfills 2022-10-05 10:35:17 +02:00
Norbert de Langen
3e610a0c9a
Merge pull request #19327 from tolkadot/update-lib-postinstall
Build: Bundle lib/postinstall with ts-up
2022-10-05 11:10:39 +03:00
Norbert de Langen
fbc3db6b10
Merge branch 'norbert/sb-524-webpack5react18ts' into norbert/sb-525-webpack5react17js 2022-10-05 09:39:45 +02:00
Norbert de Langen
031fb9ce23
Merge branch 'norbert/sb-625-remove-cypress-from-the-monorepo' into norbert/sb-524-webpack5react18ts 2022-10-05 09:38:24 +02:00
Norbert de Langen
82ec721860
Merge branch 'next' into migration/source-loader-tsc 2022-10-05 09:30:13 +02:00
Norbert de Langen
0b20a710c9
Merge branch 'next' into update-lib-postinstall 2022-10-05 09:29:24 +02:00
Norbert de Langen
1b361c42b5
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-05 09:28:36 +02:00
Tom Coleman
17ddcb71ba Disable smoke test on cra/default-ts
https://github.com/storybookjs/storybook/issues/19351
2022-10-05 11:49:16 +11:00
Ian VanSchooten
63f6386b9e Merge remote-tracking branch 'origin/next' into vite/svelte-docgen-options
# Conflicts:
#	code/frameworks/svelte-vite/src/preset.ts
2022-10-04 14:57:57 -04:00
Ian VanSchooten
2674cc1baa
Merge pull request #19259 from storybookjs/vite/framework-plugins
Issue: https://github.com/storybookjs/builder-vite/issues/498

Closes https://github.com/storybookjs/storybook/pull/19245

## What I did

When we made the change in 7.0 to start using the user's `vite.config.js`, I made the (faulty) assumption that users would already have vite framework plugins (e.g. `@vitejs/plugin-react`) installed.  But this isn't always true, for example, a project might just be a collection of components being exported, and there may not be an actual app.  

So, this PR checks to see if the required framework plugin is already in the config, and if not, adds it.  I created a utility function to check for the plugin, but ideally this would live in a `vite-core` instead of duplicated across each framework.  This, combined with the duplication in https://github.com/storybookjs/storybook/pull/19216, makes me lean towards creating such a package.  But, it can be done any time and these duplications cleaned up at that point, so I don't think it's a blocker.

## How to test

Create a sandbox, delete `vite.config.js`, and start storybook.  Without this change there would be a crash, but it should work just fine now.
2022-10-04 13:47:33 -04:00