44980 Commits

Author SHA1 Message Date
Kasper Peulen
d007839263 Prettier it all 2022-11-17 16:33:22 +01:00
Kasper Peulen
007e122f69 Add prettier commands in scripts 2022-11-17 16:33:21 +01:00
Kasper Peulen
6a40b36875 Put Story type just above stories 2022-11-17 16:32:02 +01:00
Kasper Peulen
1e15f49a68 Remove all react imports 2022-11-17 16:32:02 +01:00
Kasper Peulen
2c28915230 Change import order in react 2022-11-17 16:32:02 +01:00
Kasper Peulen
27e453230a Change md annotation from TS -> TSX 2022-11-17 16:32:01 +01:00
Kasper Peulen
c57a2b96b1 Address more review points 2022-11-17 16:32:01 +01:00
Kasper Peulen
80b0337047 Split angular imports 2022-11-17 16:32:01 +01:00
Kasper Peulen
734a6f701b Upgrade snippets for v7 TS changes 2022-11-17 16:32:01 +01:00
Kasper Peulen
e8ed15febc Upgrade to TS 4.9 2022-11-17 16:24:12 +01:00
Norbert de Langen
0c36f0af89
Merge pull request #19852 from storybookjs/fix/server-require-double-esbuildregister
fix double esbuild-register register
2022-11-17 12:04:34 +01:00
Norbert de Langen
4bf9d31c0c
Merge pull request #19848 from jpzwarte/fix/regression-root-to-storybook-root
Fix regression in the `#root` to `#storybook-root` change
2022-11-17 10:54:53 +01:00
Jeppe Reinhold
7ca44e3aa1
Merge pull request #19807 from gitstart/fix/showPanel-mobile-view
UI: Fix `showPanel=false` doesn't work on mobile view
2022-11-17 10:23:11 +01:00
Norbert de Langen
54ab89ce63
Merge branch 'next' into fix/server-require-double-esbuildregister 2022-11-17 10:01:17 +01:00
Norbert de Langen
d018cbf7bd
fixes 2022-11-17 09:57:26 +01:00
Michael Shilman
05458937b8 7.0.0-alpha.50 next.json version file [skip ci] 2022-11-17 15:21:02 +08:00
Michael Shilman
b5920aaef1 Update git head to 7.0.0-alpha.50, update yarn.lock [ci skip] 2022-11-17 15:10:36 +08:00
Michael Shilman
77184d0390 v7.0.0-alpha.50 v7.0.0-alpha.50 2022-11-17 15:06:07 +08:00
Michael Shilman
d90785f3ff Update root, peer deps, version.ts/json to 7.0.0-alpha.50 [ci skip] 2022-11-17 14:52:31 +08:00
Michael Shilman
303f740b97 7.0.0-alpha.50 changelog 2022-11-17 14:52:15 +08:00
Jeppe Reinhold
20616713bc Merge branch 'next' of github.com:storybookjs/storybook into pr/gitstart/19807 2022-11-16 23:38:57 +01:00
Jeppe Reinhold
2283ebb244
Merge pull request #19862 from storybookjs/jeppe/sbui-disable-sourcemaps-in-ci 2022-11-16 22:16:10 +01:00
Jeppe Reinhold
5bc4668ea3 Merge branch 'next' of github.com:storybookjs/storybook into pr/gitstart/19807 2022-11-16 21:52:02 +01:00
Jeppe Reinhold
5976e2e25b UI SB: Disable sourcemaps when building in CI 2022-11-16 21:40:56 +01:00
jonniebigodes
92cecd99dc
Merge pull request #19861 from storybookjs/chore_docs_beta_remove_mdx_ts
Removes mdx stories from the docs and misc updates
2022-11-16 19:56:52 +00:00
Ian VanSchooten
8938845293
Build: Upgrade Jest to version 28 (#19613)
Issue:

Angular tests have been excluded and they seem to be mostly fixed with Jest 28, so this is to try upgrading to Jest 28.

## What I did

This updates the monorepo to use jest 28.  Previously, we ran all tests in the `jsdom` environment, but the newer jest is more picky about it, and calls like `setImmediate` started to fail after the upgrade.  

So now we test some packages with a node environment and some with a jsdom environment. It does this by splitting the original jest config into two separate configs, one for browser environments, and one for node environments, and creating `jest.config.js` files in the root of each package.  It's a little tedious, but it gives us greater control over how jest runs for each package, not only the environment, but other config as well.

This also starts fixing Angular tests that have got behind while excluded, though we're not yet able to turn them back on just yet.

## How to test

CI
2022-11-16 14:53:19 -05:00
Ian VanSchooten
c1a49c4c6c Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28 2022-11-16 14:20:48 -05:00
Ian VanSchooten
d29fc38009
Maintenance: Update Playwright image to 1.28.0 (#19859)
Issue: N/A

## What I did

following recommendation from CI warnings:

```
Looks like Playwright Test or Playwright was just updated to 1.28.0.
 Please update docker image as well.                                  
 -  current: mcr.microsoft.com/playwright:v1.27.0-focal               
 - required: mcr.microsoft.com/playwright:v1.28.0-focal  
```

## How to test

- [ ] Is this testable with Jest or Chromatic screenshots?
- [ ] Does this need a new example in the kitchen sink apps?
- [ ] Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

<!--

Everybody: Please submit all PRs to the `next` branch unless they are specific to the current release. Storybook maintainers cherry-pick bug and documentation fixes into the `master` branch as part of the release process, so you shouldn't need to worry about this. For additional guidance: https://storybook.js.org/docs/react/contribute/how-to-contribute

Maintainers: Please tag your pull request with at least one of the following:
`["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]`

-->
2022-11-16 14:15:37 -05:00
Ian VanSchooten
24a9f98a39 Update local playwright 2022-11-16 13:53:05 -05:00
Ian VanSchooten
8272557892 Merge remote-tracking branch 'origin/next' into yann/update-playwright-image 2022-11-16 13:51:22 -05:00
jonniebigodes
acf8a8592a Removes mdx stories from the docs and misc updates 2022-11-16 18:24:16 +00:00
Yann Braga
834e11bd92
Merge pull request #19856 from storybookjs/failing-vite-build
Build: Increase max node memory for jobs
2022-11-16 18:50:06 +01:00
Ian VanSchooten
ff582a68a7 Re-disable vue3 test
It passes locally, fails in CI
2022-11-16 12:48:30 -05:00
Yann Braga
9def72c049 update playwright image to 1.28.0 2022-11-16 18:31:58 +01:00
Yann Braga
90f4216428
Merge pull request #19858 from storybookjs/fix-next-image-stub
Fix next-image-loader-stub
2022-11-16 18:20:29 +01:00
Ian VanSchooten
08ba919440 Re-enable vue tests 2022-11-16 12:16:09 -05:00
Ian VanSchooten
2e46846c04 Run unit tests in single thread 2022-11-16 12:15:55 -05:00
Kasper Peulen
4cf0afe32c
Merge pull request #19839 from storybookjs/kasper/fix-decorator
Fix type inference bug with decorators
2022-11-16 17:42:00 +01:00
Norbert de Langen
ba093f3c45
regen lockfile 2022-11-16 16:44:04 +01:00
Kasper Peulen
148eb7da4c
Merge pull request #19853 from storybookjs/yann/fix-types-in-jest-addon
Jest: switch from Parameters to StorybookInternalParameters
2022-11-16 16:36:30 +01:00
Ian VanSchooten
44129a439d Fix next-image-loader-stub 2022-11-16 10:24:41 -05:00
Ian VanSchooten
2ad359f2d3 Try setting node option on job itself 2022-11-16 09:58:38 -05:00
Ian VanSchooten
23bf4fd0a5 Build: Increase max node memory for jobs 2022-11-16 09:42:22 -05:00
Yann Braga
908db037f6 switch from Parameters to StorybookInternalParameters 2022-11-16 15:20:17 +01:00
Jeppe Reinhold
2d815dc3cd
Merge pull request #19805 from storybookjs/jeppe/sb-898-blocks-story 2022-11-16 15:20:02 +01:00
Norbert de Langen
f0d350022c
fix double esbuild-register register 2022-11-16 15:05:12 +01:00
Jeppe Reinhold
7db8b12aa2 Merge branch 'next' of github.com:storybookjs/storybook into jeppe/sb-898-blocks-story 2022-11-16 14:46:22 +01:00
Jeppe Reinhold
33d17b2a77
Merge pull request #19804 from storybookjs/jeppe/sb-898-blocks-canvas 2022-11-16 14:45:09 +01:00
Jeppe Reinhold
c2b8465b3a fix typecheck error in jest addon 2022-11-16 14:22:28 +01:00
Jeppe Reinhold
56777b9b5d enable turbosnap for internal sb 2022-11-16 14:09:32 +01:00