1265 Commits

Author SHA1 Message Date
storybook-bot
bebc9dbd23 Bump version from "8.5.0-alpha.6" to "8.5.0-alpha.7" [skip ci] 2024-11-19 00:41:34 +00:00
Yann Braga
1b724597e8 use updated vite plugin 2024-11-18 22:15:56 +01:00
storybook-bot
56952c73d0 Bump version from "8.5.0-alpha.5" to "8.5.0-alpha.6" [skip ci] 2024-11-18 13:22:44 +00:00
Yann Braga
158e30d7f2 wip 2024-11-18 12:30:17 +01:00
storybook-bot
b87b71015a Bump version from "8.5.0-alpha.4" to "8.5.0-alpha.5" [skip ci] 2024-11-16 06:18:51 +00:00
storybook-bot
7d3bbd7580 Bump version from "8.5.0-alpha.3" to "8.5.0-alpha.4" [skip ci] 2024-11-12 14:57:10 +00:00
Yann Braga
fa533f1774 move more stories out of next 13 2024-11-12 14:14:05 +01:00
Yann Braga
12be898f8b exclude server action stories to run in next 13 2024-11-12 11:28:58 +01:00
Yann Braga
4d3c6d96fb fix types 2024-11-12 09:47:08 +01:00
Yann Braga
2ac6955886 fix types 2024-11-12 09:33:30 +01:00
Yann Braga
104bfccaf0 rework compatibility for draft-mode 2024-11-12 08:57:48 +01:00
Yann Braga
7cde000a51 fix 2024-11-12 07:50:19 +01:00
Yann Braga
a2b92457e8 Move nextjs stories to common template directory, add Nextjs 14 sandbox 2024-11-12 07:22:21 +01:00
Yann Braga
59df579fbc Nextjs: Add support for Next 15 2024-11-11 14:42:22 +01:00
storybook-bot
85055fa454 Bump version from "8.5.0-alpha.2" to "8.5.0-alpha.3" [skip ci] 2024-11-05 05:41:54 +00:00
jonniebigodes
ca259ba747
Merge branch 'next' into remove-duplicate-comments 2024-11-04 15:11:07 +00:00
storybook-bot
82f7c96303 Bump version from "8.5.0-alpha.1" to "8.5.0-alpha.2" [skip ci] 2024-11-02 03:41:18 +00:00
Valentin Palkovic
bc837ac006
Merge pull request #29264 from HoncharenkoZhenya/next
Next.js: Upgrade sass-loader from ^13.2.0 to ^14.2.1
2024-11-01 12:45:37 +01:00
Valentin Palkovic
6c829c545e
Merge pull request #29444 from sentience/fix-nextjs-react-paths-in-monorepo
Next.js: Fix bundled react and react-dom in monorepos
2024-11-01 12:43:11 +01:00
storybook-bot
7b09834c47 Bump version from "8.5.0-alpha.0" to "8.5.0-alpha.1" [skip ci] 2024-10-31 17:41:10 +00:00
storybook-bot
3d3781df4d Bump version from "8.4.0" to "8.5.0-alpha.0" [skip ci] 2024-10-31 12:58:43 +00:00
storybook-bot
939651b867 Bump version from "8.4.0-beta.5" to "8.4.0" [skip ci] 2024-10-31 11:59:59 +00:00
Kevin Yank
e9ee80ddd0 Merge remote-tracking branch 'origin/next' into fix-nextjs-react-paths-in-monorepo 2024-10-31 15:18:42 +11:00
Kevin Yank
e8a9166ddd Enable scopedResolve to accept script file references
The previous implementation supported relative references to packages
(e.g. `next/dist/compiled/react-dom`)
and named exports
(e.g. `next/dist/compiled/react-dom/client`),
but not references to physical script files within packages
(e.g. `next/dist/compiled/react-dom/cjs/react-dom-test-utils.production.js`).

The latter are now handled by detecting when require.resolve returns a path and filename that ends with the exact string provided to the function.
2024-10-31 15:13:53 +11:00
Kevin Yank
cb540e448f Fix spelling in comment 2024-10-31 14:27:19 +11:00
storybook-bot
e94dc925e1 Bump version from "8.4.0-beta.4" to "8.4.0-beta.5" [skip ci] 2024-10-30 17:21:44 +00:00
storybook-bot
c6dc5f63f1 Bump version from "8.4.0-beta.3" to "8.4.0-beta.4" [skip ci] 2024-10-30 11:43:42 +00:00
storybook-bot
72b24f843b Bump version from "8.4.0-beta.2" to "8.4.0-beta.3" [skip ci] 2024-10-29 15:11:49 +00:00
storybook-bot
88c7787e0b Bump version from "8.4.0-beta.1" to "8.4.0-beta.2" [skip ci] 2024-10-29 13:06:13 +00:00
dohi0512
d1f0385e40 Remove duplicate comments 2024-10-29 13:13:23 +09:00
storybook-bot
7987b0472a Bump version from "8.4.0-beta.0" to "8.4.0-beta.1" [skip ci] 2024-10-28 13:19:43 +00:00
Kevin Yank
bebaa3ba3b Ensure consistent absolute path for Next.js-bundled react and react-dom
In a pnpm monorepo with multiple Next.js projects, different projects can have different peerDependencies for Next.js, which causes pnpm to install multiple instances of the `next` package in the monorepo. In this situation, prior to this change, Storybook's webpack configuration could consume `react` from one instance of Next and `react-dom` from another, causing React render errors due to the mismatch.

This issue was caused by the `configureConfig` function adding webpack module aliases for `react` using `addScopedAlias` (which generates an alias with an absolute filesystem path pointing to the correct instance of `next`, e.g. `'/path/to/next/dist/compiled/react'`), but adding module aliases for `react-dom` using `setAlias` (which generates an alias with a relative path, e.g. `'next/dist/compiled/react-dom'`).

This would create a webpack configuration like this:

```
    alias: {
      ⋮
      react: '/Users/kyank/Developer/authentication-ui/node_modules/.pnpm/next@14.2.13_@babel+core@7.25.2_@opentelemetry+api@1.8.0_@playwright+test@1.48.1_babel-plugin_z4uy3ayinaafvek4wmyon66ziu/node_modules/next/dist/compiled/react',
      ⋮
      'react-dom/test-utils': 'next/dist/compiled/react-dom/cjs/react-dom-test-utils.production.js',
      'react-dom$': 'next/dist/compiled/react-dom',
      'react-dom/client': 'next/dist/compiled/react-dom/client',
      'react-dom/server': 'next/dist/compiled/react-dom/server',
      ⋮
    },
```

This change uses `addScopedAlias` to create aliases with absolute filesystem paths for all of the Next.js-bundled React packages. This fixes the React rendering errors in our monorepo.

This issue seems to have been [introduced in Storybook 8.3.0](https://github.com/storybookjs/storybook/pull/29044/files#diff-20144c44999f6f1054f74f56ef1c3fcfcec008fd7b5caea5e10568e95eccb051).
2024-10-25 11:12:33 +11:00
Yevhenii
35ca9136cf
Merge branch 'next' into next 2024-10-24 23:29:41 +03:00
storybook-bot
d6098267c9 Bump version from "8.4.0-alpha.8" to "8.4.0-beta.0" [skip ci] 2024-10-24 14:48:43 +00:00
Yevhenii
9b6a437810
Merge branch 'next' into next 2024-10-22 11:33:36 +03:00
storybook-bot
3e154da5fa Bump version from "8.4.0-alpha.7" to "8.4.0-alpha.8" [skip ci] 2024-10-21 14:01:33 +00:00
Yevhenii
05a44c86bf
Merge branch 'next' into next 2024-10-13 20:20:30 +03:00
storybook-bot
9d862798d6 Bump version from "8.4.0-alpha.6" to "8.4.0-alpha.7" [skip ci] 2024-10-12 21:05:10 +00:00
Yevhenii
7bf09471b0
Merge branch 'next' into next 2024-10-10 15:13:29 +03:00
storybook-bot
9e3d960477 Bump version from "8.4.0-alpha.5" to "8.4.0-alpha.6" [skip ci] 2024-10-09 21:34:04 +00:00
Yevhenii
5a4d779b82
Merge branch 'next' into next 2024-10-09 11:38:30 +03:00
storybook-bot
54b0b3c9f9 Bump version from "8.4.0-alpha.4" to "8.4.0-alpha.5" [skip ci] 2024-10-08 14:00:12 +00:00
Yevhenii
7937702959
Merge branch 'next' into next 2024-10-04 13:24:34 +03:00
storybook-bot
127c43afeb Bump version from "8.4.0-alpha.3" to "8.4.0-alpha.4" [skip ci] 2024-10-04 01:02:36 +00:00
yevhenii.honcharenko
d0fb8a5a8c Merge remote-tracking branch 'origin/next' into next 2024-10-02 16:01:17 +03:00
yevhenii.honcharenko
395173f948 Next.js: Update dependencies 2024-10-02 16:00:50 +03:00
storybook-bot
f3b15ce1f2 Bump version from "8.4.0-alpha.2" to "8.4.0-alpha.3" [skip ci] 2024-10-02 01:47:29 +00:00
storybook-bot
7662234ce0 Bump version from "8.4.0-alpha.1" to "8.4.0-alpha.2" [skip ci] 2024-09-28 11:37:29 +00:00
storybook-bot
a6100eb1f7 Bump version from "8.4.0-alpha.0" to "8.4.0-alpha.1" [skip ci] 2024-09-24 13:09:33 +00:00
Jeppe Reinhold
f5b15253b4
Merge branch 'next' into remove-fs-extra 2024-09-16 20:13:28 +02:00