552 Commits

Author SHA1 Message Date
Michael Shilman
ef2f3eaf79 Update git head to 7.0.0-alpha.51, update yarn.lock [ci skip] 2022-11-19 20:58:22 +08:00
Michael Shilman
4fec76c3f5 v7.0.0-alpha.51 2022-11-19 20:54:33 +08:00
Michael Shilman
a2981f7081 Update root, peer deps, version.ts/json to 7.0.0-alpha.51 [ci skip] 2022-11-19 20:50:23 +08:00
Michael Shilman
3ab3e21185 Merge branch 'next' into valentin/swc-babel-nextjs 2022-11-19 18:29:46 +08:00
Kasper Peulen
ef1c6861a4 Downgrade @types/node 2022-11-18 15:50:12 +01:00
Kasper Peulen
1b151d4f3e Downgrade jest-mock 2022-11-17 21:36:52 +01:00
Kasper Peulen
2083fd1b00 Update some other jest related deps (@jest/globals, @jest/transform, jest-mock) 2022-11-17 19:07:57 +01:00
Kasper Peulen
8280608a6e Merge remote-tracking branch 'origin/next' into upgrade-jest-29 2022-11-17 18:51:35 +01:00
Kasper Peulen
e8ed15febc Upgrade to TS 4.9 2022-11-17 16:24:12 +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
Valentin Palkovic
5c09970673 Fix sandbox creation by adjusting package version ranges 2022-11-17 09:03:57 +01:00
Valentin Palkovic
7453a70426 Add proper Next.js framework support
NextJS projects should work out-of-the-box when Storybook is initialized.

1. Scenario: .babelrc or project babel.config.(m)js(x) file doesn't exist

In this case Next.js >= 12 uses swc to transpile the code. In Storybook
we will still use babel to transpile the code. We use the preset `next/babel`
and configure it to make the Next.js project work with Storybook. Any SWC/Next compiler
related options are ignored

2. Scenario: .babelrc or project babel.config.(m)js(x) file exist

Storybook will use the project's babel configuration for transpiling. All options, which
are passed to the `next/babel` prest are respected.
2022-11-17 08:58:42 +01: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 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
Ian VanSchooten
f79fe43eeb Upgrade jest to 29 2022-11-16 19:29:31 -05:00
Ian VanSchooten
c1a49c4c6c Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28 2022-11-16 14:20:48 -05:00
Yann Braga
908db037f6 switch from Parameters to StorybookInternalParameters 2022-11-16 15:20:17 +01:00
Jeppe Reinhold
c2b8465b3a fix typecheck error in jest addon 2022-11-16 14:22:28 +01:00
Ian VanSchooten
c77276b4fc Upgrade jest-specific-snapshot 2022-11-16 07:54:54 -05:00
Jeppe Reinhold
60cea662db Merge branch 'next' of github.com:storybookjs/storybook into jeppe/sb-898-blocks-canvas 2022-11-16 13:47:59 +01:00
Kasper Peulen
a972ff2470
Merge pull request #19833 from storybookjs/kasper/expose-more-types
Expose more CSF types in all renderers
2022-11-16 10:17:59 +01:00
Ian VanSchooten
80141d90b6 Upgrade jest-specific-snapshot
(and force correct jest-snapshot)
2022-11-15 23:19:01 -05:00
Jeppe Reinhold
1cb1c2654a
Merge branch 'next' into jeppe/sb-898-blocks-canvas 2022-11-15 10:22:24 +01:00
Ian VanSchooten
25f7141c50 name jest projects using file path 2022-11-14 15:06:11 -05:00
Ian VanSchooten
e1d0790c9f Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
# Conflicts:
#	code/lib/preview-web/src/PreviewWeb.test.ts
#	code/yarn.lock
2022-11-14 13:20:31 -05:00
Kasper Peulen
4d637a5b85 Expose more types in the renderer 2022-11-14 17:12:13 +01:00
Norbert de Langen
3fd2261293
all sorts of ts fixes or ignores after enabling ts to function on tests and stories 2022-11-14 17:06:53 +01:00
Norbert de Langen
8eb96195a5
do not ts ignore test 2022-11-14 14:18:39 +01:00
Norbert de Langen
e6be9eb179
mock renderer in storyshots and add removed api back 2022-11-14 14:04:07 +01:00
Jeppe Reinhold
fe04b8d29c Merge branch 'next' of github.com:storybookjs/storybook into jeppe/sb-898-blocks-canvas 2022-11-14 07:37:12 +01:00
Kasper Peulen
3c8f3e34ff Fix merge conflicts 2022-11-13 20:52:19 +01:00
Kasper Peulen
dcb3159294 Rename Framework to Renderer 2022-11-13 20:37:10 +01:00
Ian VanSchooten
3d3c23e9cd Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
# Conflicts:
#	code/addons/essentials/package.json
#	code/addons/storyshots/storyshots-core/package.json
#	code/lib/api/package.json
#	code/yarn.lock
2022-11-13 11:59:45 -05:00
Michael Shilman
6fc49dd1b2 Update git head to 7.0.0-alpha.49, update yarn.lock [ci skip] 2022-11-13 23:54:31 +08:00
Michael Shilman
d7eb433300 v7.0.0-alpha.49 2022-11-13 23:50:52 +08:00
Michael Shilman
42d9ac1559 Update root, peer deps, version.ts/json to 7.0.0-alpha.49 [ci skip] 2022-11-13 23:48:11 +08:00
Ian VanSchooten
729243417e Replace @types/jest with @jest/globals 2022-11-13 00:02:54 -05:00
Ian VanSchooten
7fc44d0448 Ensure that storyshot files are absolute 2022-11-12 23:27:53 -05:00
Ian VanSchooten
e6eac86e3b Fix export map for jest-transform-mdx 2022-11-12 22:51:06 -05:00
Ian VanSchooten
91e920c824 Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28 2022-11-12 22:05:31 -05:00
Jeppe Reinhold
8a6690632c fix lint 2022-11-11 23:22:08 +01:00
Ian VanSchooten
80c699f174 [fixme] check in new snapshot 2022-11-10 15:44:10 -05:00
Ian VanSchooten
96c7dce840 Move enzyme serializer to storyshots config 2022-11-10 15:39:53 -05:00
Ian VanSchooten
d5f5648acf Add tests for addons 2022-11-10 15:19:57 -05:00
Ian VanSchooten
217d461bc5 Merge remote-tracking branch 'origin/next' into marklb/upgrade-to-jest28
# Conflicts:
#	code/addons/storyshots/storyshots-core/package.json
#	code/lib/api/package.json
#	code/yarn.lock
2022-11-10 08:04:07 -05:00
Norbert de Langen
6b7c45b61f
fix linting 2022-11-10 10:43:59 +01:00
Norbert de Langen
a255e097f9
oops 2022-11-10 10:28:16 +01:00
Norbert de Langen
bca3cba0e8
fix 2022-11-10 10:22:07 +01:00