@storybook/nextjs 10.0.0-rc.1 → 10.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/_node-chunks/{chunk-JTEPV7L6.js → chunk-C7CL4OO4.js} +8 -8
  2. package/dist/_node-chunks/{chunk-Z7ZXU7W7.js → chunk-KPRZSZJZ.js} +7 -7
  3. package/dist/_node-chunks/{chunk-NBOJ36WA.js → chunk-LVCTQNMR.js} +8 -8
  4. package/dist/_node-chunks/chunk-T3NOKJTW.js +17 -0
  5. package/dist/_node-chunks/{configureNextFont-QQZC6RDZ.js → configureNextFont-AOASWVCN.js} +7 -7
  6. package/dist/_node-chunks/{loader-3BSMCMRN.js → loader-JAILSIEZ.js} +9 -9
  7. package/dist/_node-chunks/{loader-YYEF52P7.js → loader-KBH657V6.js} +9 -9
  8. package/dist/_node-chunks/{utils-4VJEG3VV.js → utils-2SY2BBCJ.js} +9 -9
  9. package/dist/_node-chunks/{webpack-IITTNK4P.js → webpack-EUO6OCA3.js} +7 -7
  10. package/dist/_node-chunks/{webpack-BKM7TKK2.js → webpack-N5TGEVCB.js} +7 -7
  11. package/dist/_node-chunks/{webpack-TCMYAZZP.js → webpack-PPC3ESBQ.js} +7 -7
  12. package/dist/_node-chunks/{webpack-MYFWGQRX.js → webpack-R7RA3DRE.js} +7 -7
  13. package/dist/_node-chunks/webpack-UYKZAXFV.js +26 -0
  14. package/dist/_node-chunks/{webpack-NBKNZ6TR.js → webpack-V4X6DAFI.js} +9 -9
  15. package/dist/_node-chunks/{webpack-65UY7YWX.js → webpack-VZEUPAV2.js} +10 -10
  16. package/dist/_node-chunks/{webpack-LOGWG5YR.js → webpack-WJJ7MQWC.js} +8 -8
  17. package/dist/export-mocks/index.js +10 -10
  18. package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +7 -7
  19. package/dist/index.js +810 -7898
  20. package/dist/node/index.js +7 -7
  21. package/dist/preset.js +21 -21
  22. package/dist/swc/next-swc-loader-patch.js +8 -7
  23. package/package.json +5 -5
  24. package/dist/_node-chunks/chunk-4H2OOCWK.js +0 -17
  25. package/dist/_node-chunks/webpack-SVD2MLZP.js +0 -26
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_js1s6y2az3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_js1s6y2az3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_js1s6y2az3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_tiudgj7vwup from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_tiudgj7vwup from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_tiudgj7vwup from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_js1s6y2az3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_js1s6y2az3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_js1s6y2az3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_tiudgj7vwup.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_tiudgj7vwup.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_tiudgj7vwup.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "../_node-chunks/chunk-4H2OOCWK.js";
14
+ } from "../_node-chunks/chunk-T3NOKJTW.js";
15
15
 
16
16
  // src/node/index.ts
17
17
  function defineMain(config) {
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_js1s6y2az3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_js1s6y2az3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_js1s6y2az3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_tiudgj7vwup from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_tiudgj7vwup from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_tiudgj7vwup from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_js1s6y2az3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_js1s6y2az3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_js1s6y2az3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_tiudgj7vwup.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_tiudgj7vwup.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_tiudgj7vwup.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,11 +13,11 @@ import {
13
13
  addScopedAlias,
14
14
  isNextVersionGte,
15
15
  resolveNextConfig
16
- } from "./_node-chunks/chunk-JTEPV7L6.js";
17
- import "./_node-chunks/chunk-Z7ZXU7W7.js";
16
+ } from "./_node-chunks/chunk-C7CL4OO4.js";
17
+ import "./_node-chunks/chunk-KPRZSZJZ.js";
18
18
  import {
19
19
  __name
20
- } from "./_node-chunks/chunk-4H2OOCWK.js";
20
+ } from "./_node-chunks/chunk-T3NOKJTW.js";
21
21
 
22
22
  // src/preset.ts
23
23
  import { existsSync } from "node:fs";
@@ -786,18 +786,18 @@ var webpackFinal = /* @__PURE__ */ __name(async (baseConfig, options) => {
786
786
  baseConfig,
787
787
  nextConfigPath
788
788
  });
789
- const { configureNextFont } = await import("./_node-chunks/configureNextFont-QQZC6RDZ.js");
790
- const { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-4VJEG3VV.js");
791
- const { configureImports } = await import("./_node-chunks/webpack-MYFWGQRX.js");
792
- const { configureCss } = await import("./_node-chunks/webpack-LOGWG5YR.js");
793
- const { configureImages } = await import("./_node-chunks/webpack-NBKNZ6TR.js");
794
- const { configureStyledJsx } = await import("./_node-chunks/webpack-SVD2MLZP.js");
795
- const { configureNodePolyfills } = await import("./_node-chunks/webpack-BKM7TKK2.js");
796
- const { configureAliases } = await import("./_node-chunks/webpack-65UY7YWX.js");
797
- const { configureFastRefresh } = await import("./_node-chunks/webpack-TCMYAZZP.js");
798
- const { configureRSC } = await import("./_node-chunks/webpack-IITTNK4P.js");
799
- const { configureSWCLoader } = await import("./_node-chunks/loader-YYEF52P7.js");
800
- const { configureBabelLoader } = await import("./_node-chunks/loader-3BSMCMRN.js");
789
+ const { configureNextFont } = await import("./_node-chunks/configureNextFont-AOASWVCN.js");
790
+ const { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-2SY2BBCJ.js");
791
+ const { configureImports } = await import("./_node-chunks/webpack-R7RA3DRE.js");
792
+ const { configureCss } = await import("./_node-chunks/webpack-WJJ7MQWC.js");
793
+ const { configureImages } = await import("./_node-chunks/webpack-V4X6DAFI.js");
794
+ const { configureStyledJsx } = await import("./_node-chunks/webpack-UYKZAXFV.js");
795
+ const { configureNodePolyfills } = await import("./_node-chunks/webpack-N5TGEVCB.js");
796
+ const { configureAliases } = await import("./_node-chunks/webpack-VZEUPAV2.js");
797
+ const { configureFastRefresh } = await import("./_node-chunks/webpack-PPC3ESBQ.js");
798
+ const { configureRSC } = await import("./_node-chunks/webpack-EUO6OCA3.js");
799
+ const { configureSWCLoader } = await import("./_node-chunks/loader-KBH657V6.js");
800
+ const { configureBabelLoader } = await import("./_node-chunks/loader-JAILSIEZ.js");
801
801
  const babelRCPath = join(getProjectRoot(), ".babelrc");
802
802
  const babelConfigPath = join(getProjectRoot(), "babel.config.js");
803
803
  const hasBabelConfig = existsSync(babelRCPath) || existsSync(babelConfigPath);
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_js1s6y2az3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_js1s6y2az3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_js1s6y2az3 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_tiudgj7vwup from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_tiudgj7vwup from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_tiudgj7vwup from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_js1s6y2az3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_js1s6y2az3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_js1s6y2az3.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_tiudgj7vwup.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_tiudgj7vwup.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_tiudgj7vwup.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "../_node-chunks/chunk-4H2OOCWK.js";
14
+ } from "../_node-chunks/chunk-T3NOKJTW.js";
15
15
 
16
16
  // src/swc/next-swc-loader-patch.ts
17
17
  import { isAbsolute, relative } from "node:path";
@@ -98,6 +98,7 @@ function pitch() {
98
98
  const callback = this.async();
99
99
  (async () => {
100
100
  if (
101
+ // TODO: Evaluate if this is correct after removing pnp compatibility code in SB11
101
102
  // TODO: investigate swc file reading in PnP mode?
102
103
  !process.versions.pnp && !EXCLUDED_PATHS.test(this.resourcePath) && this.loaders.length - 1 === this.loaderIndex && isAbsolute(this.resourcePath) && !await isWasm()
103
104
  ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "10.0.0-rc.1",
3
+ "version": "10.0.0-rc.3",
4
4
  "description": "Storybook for Next.js: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -94,9 +94,9 @@
94
94
  "@babel/preset-typescript": "^7.24.1",
95
95
  "@babel/runtime": "^7.24.4",
96
96
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
97
- "@storybook/builder-webpack5": "10.0.0-rc.1",
98
- "@storybook/preset-react-webpack": "10.0.0-rc.1",
99
- "@storybook/react": "10.0.0-rc.1",
97
+ "@storybook/builder-webpack5": "10.0.0-rc.3",
98
+ "@storybook/preset-react-webpack": "10.0.0-rc.3",
99
+ "@storybook/react": "10.0.0-rc.3",
100
100
  "@types/semver": "^7.3.4",
101
101
  "babel-loader": "^9.1.3",
102
102
  "css-loader": "^6.7.3",
@@ -130,7 +130,7 @@
130
130
  "next": "^14.1.0 || ^15.0.0 || ^16.0.0",
131
131
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
132
132
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
133
- "storybook": "^10.0.0-rc.1",
133
+ "storybook": "^10.0.0-rc.3",
134
134
  "webpack": "^5.0.0"
135
135
  },
136
136
  "peerDependenciesMeta": {
@@ -1,17 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_js1s6y2az3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_js1s6y2az3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_js1s6y2az3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_js1s6y2az3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_js1s6y2az3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_js1s6y2az3.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- var __defProp = Object.defineProperty;
13
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
14
-
15
- export {
16
- __name
17
- };
@@ -1,26 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_js1s6y2az3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_js1s6y2az3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_js1s6y2az3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_js1s6y2az3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_js1s6y2az3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_js1s6y2az3.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- addScopedAlias
14
- } from "./chunk-JTEPV7L6.js";
15
- import "./chunk-Z7ZXU7W7.js";
16
- import {
17
- __name
18
- } from "./chunk-4H2OOCWK.js";
19
-
20
- // src/styledJsx/webpack.ts
21
- var configureStyledJsx = /* @__PURE__ */ __name((baseConfig) => {
22
- addScopedAlias(baseConfig, "styled-jsx");
23
- }, "configureStyledJsx");
24
- export {
25
- configureStyledJsx
26
- };