1164 Commits

Author SHA1 Message Date
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
70f21ae05b Merge branch 'next' into shilman/generic-mdx-stories 2022-10-09 18:19:06 +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
Ian VanSchooten
e37191110f Merge remote-tracking branch 'origin/next' into fix/addon-interactions-build 2022-10-04 13:30:05 -04:00
Ian VanSchooten
80f54842c2 Merge remote-tracking branch 'origin/next' into testing-react-exclude-core 2022-10-04 09:52:50 -04:00
Ian VanSchooten
313b1eeef6 Merge remote-tracking branch 'origin/next' into vite/framework-plugins 2022-10-04 09:52:13 -04:00
Ian VanSchooten
bc9d33b9cc Merge remote-tracking branch 'origin/next' into vite/svelte-docgen-options 2022-10-04 09:42:45 -04:00
Ian VanSchooten
f49fb78a81 Merge remote-tracking branch 'origin/next' into fix/addon-interactions-build 2022-10-04 09:41:29 -04:00
Norbert de Langen
aa8299fc54
Merge branch 'next' into migration/source-loader-tsc 2022-10-04 15:32:35 +02:00
Norbert de Langen
663171e217
Merge branch 'next' into update-lib-postinstall 2022-10-04 15:31:37 +02:00
Norbert de Langen
cebbda6ba5
Merge branch 'next' into norbert/sb-625-remove-cypress-from-the-monorepo 2022-10-04 15:30:37 +02:00
Norbert de Langen
bd0a420209
improve the tsconfig
So we do not get the warning:
ESM You have emitDecoratorMetadata enabled but @swc/core was not installed, skipping swc plugin

...anymore
2022-10-04 15:14:41 +02:00
Norbert de Langen
7cdb3417f3
add a template for react17 2022-10-04 12:14:24 +02:00
Norbert de Langen
4ed9abd6af
fix the template definition 2022-10-04 11:23:25 +02:00
Norbert de Langen
2f29db5e1f
change name 2022-10-04 11:18:56 +02:00
Norbert de Langen
47da89522c
add react18 + webpack5 template 2022-10-04 09:50:50 +02:00
Norbert de Langen
ecae3e3e2f
Merge pull request #19322 from jeangregorfonrose/jean-storybook
Build: Bundle addons/essentials with ts-up
2022-10-04 10:32:00 +03:00
Norbert de Langen
448f5f48c5
Merge pull request #19307 from bovandersteene/bovds/disable-ngcc
feat(angular): disable ngcc when not needed
2022-10-04 10:02:32 +03:00