@storybook/nextjs 10.4.0-beta.0 → 10.4.1

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 (23) hide show
  1. package/dist/_node-chunks/{chunk-3X7ZMABU.js → chunk-BJEUETTX.js} +6 -6
  2. package/dist/_node-chunks/{chunk-TK3QSVBW.js → chunk-OCDX7OTC.js} +7 -7
  3. package/dist/_node-chunks/{chunk-MRKYUZB5.js → chunk-ZCFQASGZ.js} +7 -7
  4. package/dist/_node-chunks/{configureNextFont-PEV5M43W.js → configureNextFont-QMTOXFBE.js} +6 -6
  5. package/dist/_node-chunks/{loader-P3DG2ULD.js → loader-OSEFGP57.js} +8 -8
  6. package/dist/_node-chunks/{loader-UKBMRSJQ.js → loader-RWVECGRD.js} +8 -8
  7. package/dist/_node-chunks/{utils-MAJEXZWV.js → utils-GBPM3FFZ.js} +8 -8
  8. package/dist/_node-chunks/{webpack-BCK4H6VP.js → webpack-3FUWOHFQ.js} +6 -6
  9. package/dist/_node-chunks/{webpack-4VEASOY7.js → webpack-3JNKJ6NX.js} +6 -6
  10. package/dist/_node-chunks/{webpack-ZSAYHM2I.js → webpack-6TEIFHXD.js} +6 -6
  11. package/dist/_node-chunks/{webpack-VE4OA673.js → webpack-7OMQL7QC.js} +8 -8
  12. package/dist/_node-chunks/{webpack-BQJGGOQW.js → webpack-C5A67RX5.js} +7 -7
  13. package/dist/_node-chunks/{webpack-PL3G255S.js → webpack-LRALZCCH.js} +9 -9
  14. package/dist/_node-chunks/{webpack-3SKEJG7J.js → webpack-QTMSTG5V.js} +6 -6
  15. package/dist/_node-chunks/{webpack-RUNNKHCW.js → webpack-VJWF5LDK.js} +8 -8
  16. package/dist/export-mocks/index.js +9 -9
  17. package/dist/export-mocks/link/index.d.ts +314 -1
  18. package/dist/export-mocks/link/index.js +5 -1
  19. package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +6 -6
  20. package/dist/node/index.js +6 -6
  21. package/dist/preset.js +9 -9
  22. package/dist/swc/next-swc-loader-patch.js +6 -6
  23. package/package.json +5 -5
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,7 +13,7 @@ import {
13
13
  addScopedAlias,
14
14
  getNextjsVersion,
15
15
  setAlias
16
- } from "./chunk-MRKYUZB5.js";
16
+ } from "./chunk-ZCFQASGZ.js";
17
17
 
18
18
  // src/compatibility/compatibility-map.ts
19
19
  import semver from "semver";
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  resolvePackageDir
14
- } from "./chunk-3X7ZMABU.js";
14
+ } from "./chunk-BJEUETTX.js";
15
15
 
16
16
  // src/utils.ts
17
17
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  getNodeModulesExcludeRegex
14
- } from "./chunk-MRKYUZB5.js";
15
- import "./chunk-3X7ZMABU.js";
14
+ } from "./chunk-ZCFQASGZ.js";
15
+ import "./chunk-BJEUETTX.js";
16
16
 
17
17
  // src/babel/loader.ts
18
18
  import { fileURLToPath } from "node:url";
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  getNodeModulesExcludeRegex
14
- } from "./chunk-MRKYUZB5.js";
15
- import "./chunk-3X7ZMABU.js";
14
+ } from "./chunk-ZCFQASGZ.js";
15
+ import "./chunk-BJEUETTX.js";
16
16
 
17
17
  // src/swc/loader.ts
18
18
  import { join } from "node:path";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -18,8 +18,8 @@ import {
18
18
  resolveNextConfig,
19
19
  scopedResolve,
20
20
  setAlias
21
- } from "./chunk-MRKYUZB5.js";
22
- import "./chunk-3X7ZMABU.js";
21
+ } from "./chunk-ZCFQASGZ.js";
22
+ import "./chunk-BJEUETTX.js";
23
23
  export {
24
24
  addScopedAlias,
25
25
  configureRuntimeNextjsVersionResolution,
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  addScopedAlias
14
- } from "./chunk-MRKYUZB5.js";
15
- import "./chunk-3X7ZMABU.js";
14
+ } from "./chunk-ZCFQASGZ.js";
15
+ import "./chunk-BJEUETTX.js";
16
16
 
17
17
  // src/styledJsx/webpack.ts
18
18
  var configureStyledJsx = (baseConfig) => {
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  resolvePackageDir
14
- } from "./chunk-3X7ZMABU.js";
14
+ } from "./chunk-BJEUETTX.js";
15
15
 
16
16
  // src/css/webpack.ts
17
17
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -12,11 +12,11 @@ var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
12
12
  import {
13
13
  configureCompatibilityAliases,
14
14
  configureNextExportMocks
15
- } from "./chunk-TK3QSVBW.js";
16
- import "./chunk-MRKYUZB5.js";
15
+ } from "./chunk-OCDX7OTC.js";
16
+ import "./chunk-ZCFQASGZ.js";
17
17
  import {
18
18
  resolvePackageDir
19
- } from "./chunk-3X7ZMABU.js";
19
+ } from "./chunk-BJEUETTX.js";
20
20
 
21
21
  // src/aliases/webpack.ts
22
22
  var configureAliases = (baseConfig) => {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,18 +1,18 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  getNextjsVersion
14
- } from "./chunk-MRKYUZB5.js";
15
- import "./chunk-3X7ZMABU.js";
14
+ } from "./chunk-ZCFQASGZ.js";
15
+ import "./chunk-BJEUETTX.js";
16
16
 
17
17
  // src/images/webpack.ts
18
18
  import { fileURLToPath } from "node:url";
@@ -1,19 +1,19 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.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
  getPackageAliases
14
- } from "../_node-chunks/chunk-TK3QSVBW.js";
15
- import "../_node-chunks/chunk-MRKYUZB5.js";
16
- import "../_node-chunks/chunk-3X7ZMABU.js";
14
+ } from "../_node-chunks/chunk-OCDX7OTC.js";
15
+ import "../_node-chunks/chunk-ZCFQASGZ.js";
16
+ import "../_node-chunks/chunk-BJEUETTX.js";
17
17
  export {
18
18
  getPackageAliases
19
19
  };
@@ -1,5 +1,318 @@
1
1
  import React from 'react';
2
2
 
3
+ interface MockResultReturn<T> {
4
+ type: "return";
5
+ /**
6
+ * The value that was returned from the function. If function returned a Promise, then this will be a resolved value.
7
+ */
8
+ value: T;
9
+ }
10
+ interface MockResultIncomplete {
11
+ type: "incomplete";
12
+ value: undefined;
13
+ }
14
+ interface MockResultThrow {
15
+ type: "throw";
16
+ /**
17
+ * An error that was thrown during function execution.
18
+ */
19
+ value: any;
20
+ }
21
+ interface MockSettledResultFulfilled<T> {
22
+ type: "fulfilled";
23
+ value: T;
24
+ }
25
+ interface MockSettledResultRejected {
26
+ type: "rejected";
27
+ value: any;
28
+ }
29
+ type MockResult<T> = MockResultReturn<T> | MockResultThrow | MockResultIncomplete;
30
+ type MockSettledResult<T> = MockSettledResultFulfilled<T> | MockSettledResultRejected;
31
+ interface MockContext<T extends Procedure> {
32
+ /**
33
+ * This is an array containing all arguments for each call. One item of the array is the arguments of that call.
34
+ *
35
+ * @see https://vitest.dev/api/mock#mock-calls
36
+ * @example
37
+ * const fn = vi.fn()
38
+ *
39
+ * fn('arg1', 'arg2')
40
+ * fn('arg3')
41
+ *
42
+ * fn.mock.calls === [
43
+ * ['arg1', 'arg2'], // first call
44
+ * ['arg3'], // second call
45
+ * ]
46
+ */
47
+ calls: Parameters<T>[];
48
+ /**
49
+ * This is an array containing all instances that were instantiated when mock was called with a `new` keyword. Note that this is an actual context (`this`) of the function, not a return value.
50
+ * @see https://vitest.dev/api/mock#mock-instances
51
+ */
52
+ instances: ReturnType<T>[];
53
+ /**
54
+ * An array of `this` values that were used during each call to the mock function.
55
+ * @see https://vitest.dev/api/mock#mock-contexts
56
+ */
57
+ contexts: ThisParameterType<T>[];
58
+ /**
59
+ * The order of mock's execution. This returns an array of numbers which are shared between all defined mocks.
60
+ *
61
+ * @see https://vitest.dev/api/mock#mock-invocationcallorder
62
+ * @example
63
+ * const fn1 = vi.fn()
64
+ * const fn2 = vi.fn()
65
+ *
66
+ * fn1()
67
+ * fn2()
68
+ * fn1()
69
+ *
70
+ * fn1.mock.invocationCallOrder === [1, 3]
71
+ * fn2.mock.invocationCallOrder === [2]
72
+ */
73
+ invocationCallOrder: number[];
74
+ /**
75
+ * This is an array containing all values that were `returned` from the function.
76
+ *
77
+ * The `value` property contains the returned value or thrown error. If the function returned a `Promise`, then `result` will always be `'return'` even if the promise was rejected.
78
+ *
79
+ * @see https://vitest.dev/api/mock#mock-results
80
+ * @example
81
+ * const fn = vi.fn()
82
+ * .mockReturnValueOnce('result')
83
+ * .mockImplementationOnce(() => { throw new Error('thrown error') })
84
+ *
85
+ * const result = fn()
86
+ *
87
+ * try {
88
+ * fn()
89
+ * }
90
+ * catch {}
91
+ *
92
+ * fn.mock.results === [
93
+ * {
94
+ * type: 'return',
95
+ * value: 'result',
96
+ * },
97
+ * {
98
+ * type: 'throw',
99
+ * value: Error,
100
+ * },
101
+ * ]
102
+ */
103
+ results: MockResult<ReturnType<T>>[];
104
+ /**
105
+ * An array containing all values that were `resolved` or `rejected` from the function.
106
+ *
107
+ * This array will be empty if the function was never resolved or rejected.
108
+ *
109
+ * @see https://vitest.dev/api/mock#mock-settledresults
110
+ * @example
111
+ * const fn = vi.fn().mockResolvedValueOnce('result')
112
+ *
113
+ * const result = fn()
114
+ *
115
+ * fn.mock.settledResults === []
116
+ * fn.mock.results === [
117
+ * {
118
+ * type: 'return',
119
+ * value: Promise<'result'>,
120
+ * },
121
+ * ]
122
+ *
123
+ * await result
124
+ *
125
+ * fn.mock.settledResults === [
126
+ * {
127
+ * type: 'fulfilled',
128
+ * value: 'result',
129
+ * },
130
+ * ]
131
+ */
132
+ settledResults: MockSettledResult<Awaited<ReturnType<T>>>[];
133
+ /**
134
+ * This contains the arguments of the last call. If spy wasn't called, will return `undefined`.
135
+ * @see https://vitest.dev/api/mock#mock-lastcall
136
+ */
137
+ lastCall: Parameters<T> | undefined;
138
+ }
139
+ type Procedure = (...args: any[]) => any;
140
+ // pick a single function type from function overloads, unions, etc...
141
+ type NormalizedProcedure<T extends Procedure> = (...args: Parameters<T>) => ReturnType<T>;
142
+ /*
143
+ cf. https://typescript-eslint.io/rules/method-signature-style/
144
+
145
+ Typescript assignability is different between
146
+ { foo: (f: T) => U } (this is "method-signature-style")
147
+ and
148
+ { foo(f: T): U }
149
+
150
+ Jest uses the latter for `MockInstance.mockImplementation` etc... and it allows assignment such as:
151
+ const boolFn: Jest.Mock<() => boolean> = jest.fn<() => true>(() => true)
152
+ */
153
+ /* eslint-disable ts/method-signature-style */
154
+ interface MockInstance<T extends Procedure = Procedure> extends Disposable {
155
+ /**
156
+ * Use it to return the name assigned to the mock with the `.mockName(name)` method. By default, it will return `vi.fn()`.
157
+ * @see https://vitest.dev/api/mock#getmockname
158
+ */
159
+ getMockName(): string;
160
+ /**
161
+ * Sets the internal mock name. This is useful for identifying the mock when an assertion fails.
162
+ * @see https://vitest.dev/api/mock#mockname
163
+ */
164
+ mockName(name: string): this;
165
+ /**
166
+ * Current context of the mock. It stores information about all invocation calls, instances, and results.
167
+ */
168
+ mock: MockContext<T>;
169
+ /**
170
+ * Clears all information about every call. After calling it, all properties on `.mock` will return to their initial state. This method does not reset implementations. It is useful for cleaning up mocks between different assertions.
171
+ *
172
+ * To automatically call this method before each test, enable the [`clearMocks`](https://vitest.dev/config/#clearmocks) setting in the configuration.
173
+ * @see https://vitest.dev/api/mock#mockclear
174
+ */
175
+ mockClear(): this;
176
+ /**
177
+ * Does what `mockClear` does and resets inner implementation to the original function. This also resets all "once" implementations.
178
+ *
179
+ * Note that resetting a mock from `vi.fn()` will set implementation to an empty function that returns `undefined`.
180
+ * Resetting a mock from `vi.fn(impl)` will set implementation to `impl`. It is useful for completely resetting a mock to its default state.
181
+ *
182
+ * To automatically call this method before each test, enable the [`mockReset`](https://vitest.dev/config/#mockreset) setting in the configuration.
183
+ * @see https://vitest.dev/api/mock#mockreset
184
+ */
185
+ mockReset(): this;
186
+ /**
187
+ * Does what `mockReset` does and restores original descriptors of spied-on objects.
188
+ *
189
+ * Note that restoring mock from `vi.fn()` will set implementation to an empty function that returns `undefined`. Restoring a `vi.fn(impl)` will restore implementation to `impl`.
190
+ * @see https://vitest.dev/api/mock#mockrestore
191
+ */
192
+ mockRestore(): void;
193
+ /**
194
+ * Returns current permanent mock implementation if there is one.
195
+ *
196
+ * If mock was created with `vi.fn`, it will consider passed down method as a mock implementation.
197
+ *
198
+ * If mock was created with `vi.spyOn`, it will return `undefined` unless a custom implementation was provided.
199
+ */
200
+ getMockImplementation(): NormalizedProcedure<T> | undefined;
201
+ /**
202
+ * Accepts a function to be used as the mock implementation. TypeScript expects the arguments and return type to match those of the original function.
203
+ * @see https://vitest.dev/api/mock#mockimplementation
204
+ * @example
205
+ * const increment = vi.fn().mockImplementation(count => count + 1);
206
+ * expect(increment(3)).toBe(4);
207
+ */
208
+ mockImplementation(fn: NormalizedProcedure<T>): this;
209
+ /**
210
+ * Accepts a function to be used as the mock implementation. TypeScript expects the arguments and return type to match those of the original function. This method can be chained to produce different results for multiple function calls.
211
+ *
212
+ * When the mocked function runs out of implementations, it will invoke the default implementation set with `vi.fn(() => defaultValue)` or `.mockImplementation(() => defaultValue)` if they were called.
213
+ * @see https://vitest.dev/api/mock#mockimplementationonce
214
+ * @example
215
+ * const fn = vi.fn(count => count).mockImplementationOnce(count => count + 1);
216
+ * expect(fn(3)).toBe(4);
217
+ * expect(fn(3)).toBe(3);
218
+ */
219
+ mockImplementationOnce(fn: NormalizedProcedure<T>): this;
220
+ /**
221
+ * Overrides the original mock implementation temporarily while the callback is being executed.
222
+ *
223
+ * Note that this method takes precedence over the [`mockImplementationOnce`](https://vitest.dev/api/mock#mockimplementationonce).
224
+ * @see https://vitest.dev/api/mock#withimplementation
225
+ * @example
226
+ * const myMockFn = vi.fn(() => 'original')
227
+ *
228
+ * myMockFn.withImplementation(() => 'temp', () => {
229
+ * myMockFn() // 'temp'
230
+ * })
231
+ *
232
+ * myMockFn() // 'original'
233
+ */
234
+ withImplementation<T2>(fn: NormalizedProcedure<T>, cb: () => T2): T2 extends Promise<unknown> ? Promise<this> : this;
235
+ /**
236
+ * Use this if you need to return the `this` context from the method without invoking the actual implementation.
237
+ * @see https://vitest.dev/api/mock#mockreturnthis
238
+ */
239
+ mockReturnThis(): this;
240
+ /**
241
+ * Accepts a value that will be returned whenever the mock function is called. TypeScript will only accept values that match the return type of the original function.
242
+ * @see https://vitest.dev/api/mock#mockreturnvalue
243
+ * @example
244
+ * const mock = vi.fn()
245
+ * mock.mockReturnValue(42)
246
+ * mock() // 42
247
+ * mock.mockReturnValue(43)
248
+ * mock() // 43
249
+ */
250
+ mockReturnValue(value: ReturnType<T>): this;
251
+ /**
252
+ * Accepts a value that will be returned whenever the mock function is called. TypeScript will only accept values that match the return type of the original function.
253
+ *
254
+ * When the mocked function runs out of implementations, it will invoke the default implementation set with `vi.fn(() => defaultValue)` or `.mockImplementation(() => defaultValue)` if they were called.
255
+ * @example
256
+ * const myMockFn = vi
257
+ * .fn()
258
+ * .mockReturnValue('default')
259
+ * .mockReturnValueOnce('first call')
260
+ * .mockReturnValueOnce('second call')
261
+ *
262
+ * // 'first call', 'second call', 'default'
263
+ * console.log(myMockFn(), myMockFn(), myMockFn())
264
+ */
265
+ mockReturnValueOnce(value: ReturnType<T>): this;
266
+ /**
267
+ * Accepts a value that will be resolved when the async function is called. TypeScript will only accept values that match the return type of the original function.
268
+ * @example
269
+ * const asyncMock = vi.fn().mockResolvedValue(42)
270
+ * asyncMock() // Promise<42>
271
+ */
272
+ mockResolvedValue(value: Awaited<ReturnType<T>>): this;
273
+ /**
274
+ * Accepts a value that will be resolved during the next function call. TypeScript will only accept values that match the return type of the original function. If chained, each consecutive call will resolve the specified value.
275
+ * @example
276
+ * const myMockFn = vi
277
+ * .fn()
278
+ * .mockResolvedValue('default')
279
+ * .mockResolvedValueOnce('first call')
280
+ * .mockResolvedValueOnce('second call')
281
+ *
282
+ * // Promise<'first call'>, Promise<'second call'>, Promise<'default'>
283
+ * console.log(myMockFn(), myMockFn(), myMockFn())
284
+ */
285
+ mockResolvedValueOnce(value: Awaited<ReturnType<T>>): this;
286
+ /**
287
+ * Accepts an error that will be rejected when async function is called.
288
+ * @example
289
+ * const asyncMock = vi.fn().mockRejectedValue(new Error('Async error'))
290
+ * await asyncMock() // throws Error<'Async error'>
291
+ */
292
+ mockRejectedValue(error: unknown): this;
293
+ /**
294
+ * Accepts a value that will be rejected during the next function call. If chained, each consecutive call will reject the specified value.
295
+ * @example
296
+ * const asyncMock = vi
297
+ * .fn()
298
+ * .mockResolvedValueOnce('first call')
299
+ * .mockRejectedValueOnce(new Error('Async error'))
300
+ *
301
+ * await asyncMock() // first call
302
+ * await asyncMock() // throws Error<'Async error'>
303
+ */
304
+ mockRejectedValueOnce(error: unknown): this;
305
+ }
306
+ /* eslint-enable ts/method-signature-style */
307
+ interface Mock<T extends Procedure = Procedure> extends MockInstance<T> {
308
+ new (...args: Parameters<T>): ReturnType<T>;
309
+ (...args: Parameters<T>): ReturnType<T>;
310
+ }
311
+
3
312
  declare const MockLink: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
4
313
 
5
- export { MockLink as Link, MockLink as default };
314
+ declare const useLinkStatus: Mock<() => {
315
+ pending: boolean;
316
+ }>;
317
+
318
+ export { MockLink as Link, MockLink as default, useLinkStatus };
@@ -34,7 +34,11 @@ var linkAction = fn().mockName("next/link::Link"), MockLink = React.forwardRef(f
34
34
  });
35
35
  MockLink.displayName = "NextLink";
36
36
  var link_default = MockLink;
37
+ var useLinkStatus = fn(() => ({ pending: !1 })).mockName(
38
+ "next/link::useLinkStatus"
39
+ );
37
40
  export {
38
41
  MockLink as Link,
39
- link_default as default
42
+ link_default as default,
43
+ useLinkStatus
40
44
  };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,8 +13,8 @@ import {
13
13
  addScopedAlias,
14
14
  isNextVersionGte,
15
15
  resolveNextConfig
16
- } from "./_node-chunks/chunk-MRKYUZB5.js";
17
- import "./_node-chunks/chunk-3X7ZMABU.js";
16
+ } from "./_node-chunks/chunk-ZCFQASGZ.js";
17
+ import "./_node-chunks/chunk-BJEUETTX.js";
18
18
 
19
19
  // src/preset.ts
20
20
  import { existsSync } from "node:fs";
@@ -546,7 +546,7 @@ var addons = [
546
546
  let { nextConfigPath } = await options.presets.apply("frameworkOptions"), nextConfig = await configureConfig({
547
547
  baseConfig,
548
548
  nextConfigPath
549
- }), { configureNextFont } = await import("./_node-chunks/configureNextFont-PEV5M43W.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-MAJEXZWV.js"), { configureImports } = await import("./_node-chunks/webpack-4VEASOY7.js"), { configureCss } = await import("./_node-chunks/webpack-BQJGGOQW.js"), { configureImages } = await import("./_node-chunks/webpack-RUNNKHCW.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-VE4OA673.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-ZSAYHM2I.js"), { configureAliases } = await import("./_node-chunks/webpack-PL3G255S.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-BCK4H6VP.js"), { configureRSC } = await import("./_node-chunks/webpack-3SKEJG7J.js"), { configureSWCLoader } = await import("./_node-chunks/loader-UKBMRSJQ.js"), { configureBabelLoader } = await import("./_node-chunks/loader-P3DG2ULD.js"), babelRCPath = join(getProjectRoot(), ".babelrc"), babelConfigPath = join(getProjectRoot(), "babel.config.js"), hasBabelConfig = existsSync(babelRCPath) || existsSync(babelConfigPath), nextjsVersion = getNextjsVersion(), isDevelopment = options.configType !== "PRODUCTION", useSWC = semver.gte(nextjsVersion, "14.0.0") && (nextConfig.experimental?.forceSwcTransforms || !hasBabelConfig);
549
+ }), { configureNextFont } = await import("./_node-chunks/configureNextFont-QMTOXFBE.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-GBPM3FFZ.js"), { configureImports } = await import("./_node-chunks/webpack-3JNKJ6NX.js"), { configureCss } = await import("./_node-chunks/webpack-C5A67RX5.js"), { configureImages } = await import("./_node-chunks/webpack-VJWF5LDK.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-7OMQL7QC.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-6TEIFHXD.js"), { configureAliases } = await import("./_node-chunks/webpack-LRALZCCH.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-3FUWOHFQ.js"), { configureRSC } = await import("./_node-chunks/webpack-QTMSTG5V.js"), { configureSWCLoader } = await import("./_node-chunks/loader-RWVECGRD.js"), { configureBabelLoader } = await import("./_node-chunks/loader-OSEFGP57.js"), babelRCPath = join(getProjectRoot(), ".babelrc"), babelConfigPath = join(getProjectRoot(), "babel.config.js"), hasBabelConfig = existsSync(babelRCPath) || existsSync(babelConfigPath), nextjsVersion = getNextjsVersion(), isDevelopment = options.configType !== "PRODUCTION", useSWC = semver.gte(nextjsVersion, "14.0.0") && (nextConfig.experimental?.forceSwcTransforms || !hasBabelConfig);
550
550
  return configureNextFont(baseConfig, useSWC), configureRuntimeNextjsVersionResolution(baseConfig), configureImports({ baseConfig, configDir: options.configDir }), configureCss(baseConfig, nextConfig), configureImages(baseConfig, nextConfig), configureStyledJsx(baseConfig), configureNodePolyfills(baseConfig), configureAliases(baseConfig), isDevelopment && configureFastRefresh(baseConfig), options.features?.experimentalRSC && configureRSC(baseConfig), useSWC ? (logger.info("Using SWC as compiler"), await configureSWCLoader(baseConfig, options, nextConfig)) : (logger.info("Using Babel as compiler"), await configureBabelLoader(baseConfig, options, nextConfig)), baseConfig;
551
551
  };
552
552
  export {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_rmf1qelh2wc from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_rmf1qelh2wc from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_rmf1qelh2wc from "node:module";
1
+ import CJS_COMPAT_NODE_URL_hjhoyv0gd46 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_hjhoyv0gd46 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_hjhoyv0gd46 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_rmf1qelh2wc.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_rmf1qelh2wc.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_rmf1qelh2wc.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_hjhoyv0gd46.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_hjhoyv0gd46.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_hjhoyv0gd46.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/nextjs",
3
- "version": "10.4.0-beta.0",
3
+ "version": "10.4.1",
4
4
  "description": "Storybook for Next.js: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -102,9 +102,9 @@
102
102
  "@babel/preset-typescript": "^7.28.5",
103
103
  "@babel/runtime": "^7.28.4",
104
104
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
105
- "@storybook/builder-webpack5": "10.4.0-beta.0",
106
- "@storybook/preset-react-webpack": "10.4.0-beta.0",
107
- "@storybook/react": "10.4.0-beta.0",
105
+ "@storybook/builder-webpack5": "10.4.1",
106
+ "@storybook/preset-react-webpack": "10.4.1",
107
+ "@storybook/react": "10.4.1",
108
108
  "@types/semver": "^7.7.1",
109
109
  "babel-loader": "^9.1.3",
110
110
  "css-loader": "^6.7.3",
@@ -140,7 +140,7 @@
140
140
  "next": "^14.1.0 || ^15.0.0 || ^16.0.0",
141
141
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
142
142
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
143
- "storybook": "^10.4.0-beta.0",
143
+ "storybook": "^10.4.1",
144
144
  "webpack": "^5.0.0"
145
145
  },
146
146
  "peerDependenciesMeta": {