Norbert de Langen
f5d8eaccae
fix issue with types after update && fix linting
2023-01-30 14:45:30 +01:00
Bart Langelaan
102da7613a
Fix the @storybook/nextjs image loader
...
This fixes the corrupted images when importing images with the @storybook/nextjs framework.
2023-01-14 12:32:16 +01:00
Valentin Palkovic
8a9e83660f
Add next/head support
2022-12-30 13:59:42 +01:00
Yann Braga
57febc0e49
Merge branch 'next' into valentin/next-font
2022-12-20 09:45:05 +01:00
Valentin Palkovic
995f7a6a9e
Support ExportNamedDeclaration case
2022-12-19 21:31:17 +01:00
Valentin Palkovic
72acc54e15
Support useSelectedLayoutSegment and useSelectedLayoutSegments in Next.js
2022-12-19 16:09:16 +01:00
Valentin Palkovic
ffd2896add
Fix linting
2022-12-19 14:59:13 +01:00
Valentin Palkovic
98320a7b00
Fix tsc issues
2022-12-19 14:59:13 +01:00
Valentin Palkovic
5c2b48506c
Remove unused plugin
2022-12-19 14:59:13 +01:00
Valentin Palkovic
7226d0f057
Fix tests
2022-12-19 14:59:13 +01:00
Valentin Palkovic
87a2e9d5a1
Add @next/font Storybook loader
2022-12-19 14:59:13 +01:00
Valentin Palkovic
b7a7697b41
Transform @next/font imports via babel and prepare them for webpack loader
2022-12-19 14:59:13 +01:00
Kasper Peulen
75b2812c0b
Merge pull request #20259 from storybookjs/kasper/sb-1117-dont-export-renderer-from-framework
2022-12-14 13:26:20 +01:00
Valentin Palkovic
5d0cd80c2a
Fix linting
2022-12-14 13:05:44 +01:00
Kasper Peulen
69e68fbdf5
Don't export renderer from framework
2022-12-14 12:12:10 +01:00
Valentin Palkovic
5bf5a315c5
Allow Next.js project not having a next.config file
2022-12-14 11:39:58 +01:00
Kyle Gach
675ab2b0c6
Update code/frameworks/nextjs/src/nextImport/webpack.ts
...
Co-authored-by: Valentin Palkovic <valentin@chromatic.com>
2022-12-08 13:31:34 -07:00
Kyle Gach
55aaba3cbc
Update logic around next/future/image
2022-12-08 12:56:31 -07:00
Valentin Palkovic
78eba23364
Fix Next.js lower than 12.2.0
2022-12-07 15:55:12 +01:00
Valentin Palkovic
1dbaac5521
Rework nextjs parameters
2022-12-06 17:03:15 +01:00
Valentin Palkovic
912ac0b58f
Update code/frameworks/nextjs/src/config/webpack.ts
...
Co-authored-by: Kyle Gach <kyle.gach@gmail.com>
2022-12-06 16:51:33 +01:00
Valentin Palkovic
6613e778cc
Adjust newNextLinkBehavior to consider latest Next.js v13.0.6 release
2022-12-06 12:28:35 +01:00
Valentin Palkovic
db814f270f
Adjust newNextLinkBehavior to consider latest Next.js v13.0.6 release
2022-12-06 12:20:42 +01:00
Valentin Palkovic
79c00afe6a
Add E2E tests
2022-12-06 09:23:57 +01:00
Valentin Palkovic
240776b7b5
Support next/navigation in Next.js v13
2022-12-06 08:43:24 +01:00
Valentin Palkovic
d4d0e81ab1
Document next/link component and create stories
2022-12-06 08:43:24 +01:00
Yann Braga
4426b0718f
only set next/future/image mocks from next.js 12.2
2022-12-06 07:22:50 +01:00
Valentin Palkovic
a501a5d7ae
Support next/image component in Next.js 12/13 properly
2022-12-01 13:12:40 +01:00
Yann Braga
fbd3da77c0
Merge branch 'next' into fix-next-13-link
2022-11-21 12:27:44 +01:00
Michael Shilman
3ab3e21185
Merge branch 'next' into valentin/swc-babel-nextjs
2022-11-19 18:29:46 +08:00
Michael Shilman
214ed3f439
Merge pull request #19798 from nix6839/next-framework-invalid-url-on-windows
...
NextJS: Fix import url on windows
2022-11-19 17:22:45 +08:00
Kyle Gach
223f969017
Update newNextLinkBehavior
logic to match Next's
2022-11-18 13:12:18 -07:00
Yann Braga
58090fe46a
rework next/link flag for Next.js 12 and 13
2022-11-18 13:12:18 -07:00
Kyle Gach
8ecd668842
Fix next@13 next/link
2022-11-18 13:12:18 -07: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
Ian VanSchooten
44129a439d
Fix next-image-loader-stub
2022-11-16 10:24:41 -05: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
Han Yeong-woo
7cd13d3b41
Fix import url on windows
2022-11-11 00:40:06 +09:00
Ian VanSchooten
393a12aac3
Use explicit type imports
2022-10-27 19:33:39 -04:00
Norbert de Langen
8bc4b24f3b
fixing linting
2022-10-26 10:02:19 +02:00
Norbert de Langen
9e60c3428f
Merge branch 'next' into ugrades/eslint
2022-10-26 08:51:41 +02:00
Norbert de Langen
8e3e508af4
Merge branch 'deprecate/remaining-lib-cli' into norbert/sb-799-create-a-storybooktypes
2022-10-25 13:49:02 +02:00
Norbert de Langen
6be12c24d8
deal with the aftermath of upgrading eslint
2022-10-24 14:57:37 +02:00
Tom Coleman
5bce63b987
Add renderer
field to preset and use in v6 entries
2022-10-24 16:23:33 +11:00
Norbert de Langen
0aefffea89
fixes
2022-10-22 16:33:04 +02:00
Norbert de Langen
9b3eeeae15
fixes
2022-10-22 12:48:46 +02:00
Yann Braga
f81747f61c
only inject babel typescript preset in typescript projects
2022-10-21 15:10:49 +02:00
Yann Braga
b072997c21
fix nextConfigFile logic
2022-10-20 22:58:37 +02:00
Yann Braga
bfeb0c6a94
add comment in nextjs css webpack config for future reference
2022-10-20 16:34:07 +02:00
Yann Braga
252fb59205
support ESM nextjs config files
2022-10-20 16:10:31 +02:00