2843 Commits

Author SHA1 Message Date
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
Michael Shilman
ea86393d06 Merge branch 'next' into shilman/react-native-web-vite 2024-11-10 22:19:52 +08:00
Michael Shilman
531b4b03ec Fix linting, misc fixes 2024-11-09 18:34:59 +08:00
Nathanaël Labreuil
b9ac9dd9f4 feat: invalidate modules and trigger full reload on file change 2024-11-05 12:33:34 +01:00
Nathanaël Labreuil
4ae12fe956 feat: update component meta on file change 2024-11-05 12:33:34 +01:00
Michael Shilman
2e504c027c RNW-Vite: Remove React from CLI templates 2024-11-05 19:28:04 +08: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
Michael Shilman
ffdd93c8bf RNW-Vite: Split out react plugin from reactNativeWeb 2024-11-04 18:34:55 +08:00
Yann Braga
30293dd3de
Merge branch 'next' into fix/stats-json-in-angular-executor 2024-11-04 09:33:51 +01:00
Michael Shilman
6f9594face Try to fix build 2024-11-04 13:54:36 +08:00
Daniel Williams
4000182ed8 feat: add template files 2024-11-03 17:29:50 +00:00
Daniel Williams
59c10e8c8d feat: add template files 2024-11-03 17:29:43 +00:00
Michael Shilman
949c687d86 React Native Web Vite: WIP framework, sandboxes, and CLI integration 2024-11-03 23:40:14 +08: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
f85d62c430
Merge branch 'next' into valentin/fix-svelte-vite-plugin 2024-11-01 12:53:22 +01: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
Kasper Peulen
676ec16d0a Depend on explicit version of shim packages in renderers/frameworks 2024-10-31 16:22:05 +01: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
Yann Braga
2217e327d3
Merge branch 'next' into fix/stats-json-in-angular-executor 2024-10-30 12:25:23 +01: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
5edc05ea9b Merge branch 'next-release' into next 2024-10-24 14:56:38 +00: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
jonniebigodes
5008cb47c4
Merge branch 'next' into code_remove_outdated_links_docs 2024-10-24 14:41:13 +01:00
Jeppe Reinhold
7cecdaf820 Merge branch 'next' of github.com:storybookjs/storybook into svelte-autodoc-ts 2024-10-24 11:59:09 +02:00
Kasper Peulen
d9972f7e1d Disable angular stories as Angular RC fails
Might be related that in Angular RC all components/directives/pipes are standalone per default
2024-10-23 14:51:10 +02:00
Jeppe Reinhold
3b442d9183 dont upgrade vite to v5 anyway 2024-10-23 13:43:47 +02:00
Jeppe Reinhold
28db96d9ec upgrade svelte dependencies to v5 2024-10-23 12:38:25 +02:00
jonniebigodes
955e3e87ca
Merge branch 'next' into code_remove_outdated_links_docs 2024-10-22 13:11:56 +01:00
Jeppe Reinhold
6ddb46e890
Merge branch 'next' into svelte-autodoc-ts 2024-10-22 12:51:32 +02: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
jonniebigodes
3c53875965 Maintenance: Fix broken and outdated documentation links 2024-10-20 19:40:28 +01:00
Yevhenii
c0003af5ed
Merge branch 'next' into next 2024-10-18 17:32:47 +03:00
Jeppe Reinhold
a4b54b62c4 Merge branch 'next' of github.com:storybookjs/storybook into svelte-autodoc-ts 2024-10-18 10:55:22 +02:00
Jeppe Reinhold
f1b65b04ef Fix Svelte type issues 2024-10-17 15:39:51 +02:00