@storybook/nextjs 10.5.0-alpha.6 → 10.5.0-alpha.8
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.
- package/dist/_browser-chunks/{chunk-A242L54C.js → chunk-IMSF75WX.js} +5 -1
- package/dist/_browser-chunks/{chunk-BFMHNVB2.js → chunk-MPD4I4WS.js} +1 -1
- package/dist/_browser-chunks/{react-18-J5XOSXHX.js → react-18-V22CCOOF.js} +1 -1
- package/dist/_node-chunks/{chunk-XMZQYBLT.js → chunk-2IRZN3ZH.js} +7 -7
- package/dist/_node-chunks/{chunk-A6A5VOWF.js → chunk-DTMPJ2VT.js} +7 -7
- package/dist/_node-chunks/{chunk-LNXFH73Z.js → chunk-X2HU3IWC.js} +6 -6
- package/dist/_node-chunks/{configureNextFont-DIQW6EHX.js → configureNextFont-KBJRACSD.js} +6 -6
- package/dist/_node-chunks/{loader-SGKLI5YV.js → loader-555UD2YA.js} +8 -8
- package/dist/_node-chunks/{loader-BBEM6YY3.js → loader-EDNKCRH2.js} +8 -8
- package/dist/_node-chunks/{utils-FWUNHVOC.js → utils-RYDE6TAG.js} +8 -8
- package/dist/_node-chunks/{webpack-CQ5SNZFR.js → webpack-45JOHD4L.js} +8 -8
- package/dist/_node-chunks/webpack-BITIWQBA.js +23 -0
- package/dist/_node-chunks/{webpack-4G722B74.js → webpack-C2C6ARAJ.js} +7 -7
- package/dist/_node-chunks/{webpack-K6LJYS5R.js → webpack-D2IBVLSM.js} +6 -6
- package/dist/_node-chunks/{webpack-DSIQ6ME4.js → webpack-FKXSGWBO.js} +6 -6
- package/dist/_node-chunks/{webpack-N3ZIPUYG.js → webpack-GDQZJRK2.js} +6 -6
- package/dist/_node-chunks/{webpack-DSR5LY7V.js → webpack-NTBB7WE7.js} +9 -9
- package/dist/_node-chunks/{webpack-SYPVFYKT.js → webpack-QJW4G637.js} +6 -6
- package/dist/compatibility/draft-mode.compat.js +1 -1
- package/dist/export-mocks/cache/index.js +1 -1
- package/dist/export-mocks/headers/index.js +1 -1
- package/dist/export-mocks/index.js +9 -9
- package/dist/export-mocks/link/index.js +3 -3
- package/dist/export-mocks/navigation/index.js +1 -1
- package/dist/export-mocks/router/index.js +1 -1
- package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +6 -6
- package/dist/image-context.js +1 -1
- package/dist/images/next-image.js +1 -1
- package/dist/images/next-legacy-image.js +1 -1
- package/dist/index.js +11 -16
- package/dist/next-image-loader-stub.js +1 -1
- package/dist/node/index.js +6 -6
- package/dist/preset.js +19 -30
- package/dist/preview.js +2 -2
- package/dist/rsc/server-only.js +1 -1
- package/dist/swc/next-swc-loader-patch.js +7 -7
- package/package.json +5 -5
- package/dist/_node-chunks/webpack-MYH2MHD2.js +0 -23
|
@@ -10,7 +10,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof
|
|
|
10
10
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
11
|
});
|
|
12
12
|
var __commonJS = (cb, mod) => function() {
|
|
13
|
-
|
|
13
|
+
try {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
} catch (e) {
|
|
16
|
+
throw mod = 0, e;
|
|
17
|
+
}
|
|
14
18
|
};
|
|
15
19
|
var __export = (target, all) => {
|
|
16
20
|
for (var name in all)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
14
|
+
} from "./chunk-X2HU3IWC.js";
|
|
15
15
|
|
|
16
16
|
// src/utils.ts
|
|
17
17
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
16
|
+
} from "./chunk-2IRZN3ZH.js";
|
|
17
17
|
|
|
18
18
|
// src/compatibility/compatibility-map.ts
|
|
19
19
|
import semver from "semver";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-2IRZN3ZH.js";
|
|
15
|
+
import "./chunk-X2HU3IWC.js";
|
|
16
16
|
|
|
17
17
|
// src/swc/loader.ts
|
|
18
18
|
import { join } from "node:path";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-2IRZN3ZH.js";
|
|
15
|
+
import "./chunk-X2HU3IWC.js";
|
|
16
16
|
|
|
17
17
|
// src/babel/loader.ts
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-2IRZN3ZH.js";
|
|
22
|
+
import "./chunk-X2HU3IWC.js";
|
|
23
23
|
export {
|
|
24
24
|
addScopedAlias,
|
|
25
25
|
configureRuntimeNextjsVersionResolution,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-2IRZN3ZH.js";
|
|
15
|
+
import "./chunk-X2HU3IWC.js";
|
|
16
16
|
|
|
17
17
|
// src/images/webpack.ts
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-2IRZN3ZH.js";
|
|
15
|
+
import "./chunk-X2HU3IWC.js";
|
|
16
|
+
|
|
17
|
+
// src/styledJsx/webpack.ts
|
|
18
|
+
var configureStyledJsx = (baseConfig) => {
|
|
19
|
+
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
configureStyledJsx
|
|
23
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
14
|
+
} from "./chunk-X2HU3IWC.js";
|
|
15
15
|
|
|
16
16
|
// src/css/webpack.ts
|
|
17
17
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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_r6ydtd1phf.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
configureCompatibilityAliases,
|
|
14
14
|
configureNextExportMocks
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-DTMPJ2VT.js";
|
|
16
|
+
import "./chunk-2IRZN3ZH.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X2HU3IWC.js";
|
|
20
20
|
|
|
21
21
|
// src/aliases/webpack.ts
|
|
22
22
|
var configureAliases = (baseConfig) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
15
|
-
import "../_node-chunks/chunk-
|
|
16
|
-
import "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-DTMPJ2VT.js";
|
|
15
|
+
import "../_node-chunks/chunk-2IRZN3ZH.js";
|
|
16
|
+
import "../_node-chunks/chunk-X2HU3IWC.js";
|
|
17
17
|
export {
|
|
18
18
|
getPackageAliases
|
|
19
19
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../../_browser-chunks/chunk-
|
|
1
|
+
import "../../_browser-chunks/chunk-IMSF75WX.js";
|
|
2
2
|
|
|
3
3
|
// src/export-mocks/link/index.tsx
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { fn } from "storybook/test";
|
|
6
6
|
var linkAction = fn().mockName("next/link::Link"), MockLink = React.forwardRef(function({
|
|
7
7
|
href,
|
|
8
|
-
as
|
|
8
|
+
as,
|
|
9
9
|
replace,
|
|
10
10
|
scroll,
|
|
11
11
|
shallow,
|
|
@@ -17,7 +17,7 @@ var linkAction = fn().mockName("next/link::Link"), MockLink = React.forwardRef(f
|
|
|
17
17
|
children,
|
|
18
18
|
...rest
|
|
19
19
|
}, ref) {
|
|
20
|
-
let hrefString = typeof
|
|
20
|
+
let resolvedHref = as ?? href, hrefString = typeof resolvedHref == "object" ? `${resolvedHref.pathname || ""}${resolvedHref.query ? "?" + new URLSearchParams(resolvedHref.query).toString() : ""}${resolvedHref.hash || ""}` : resolvedHref, handleClick = (e) => {
|
|
21
21
|
e.preventDefault(), onClick?.(e), linkAction(hrefString, { replace, scroll, shallow, prefetch, locale });
|
|
22
22
|
};
|
|
23
23
|
if (legacyBehavior) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/image-context.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
preview_exports
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-MPD4I4WS.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__export,
|
|
7
7
|
__toESM
|
|
8
|
-
} from "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-IMSF75WX.js";
|
|
9
9
|
|
|
10
10
|
// ../../../node_modules/estraverse/estraverse.js
|
|
11
11
|
var require_estraverse = __commonJS({
|
|
@@ -5968,8 +5968,8 @@ var require_dist = __commonJS({
|
|
|
5968
5968
|
var require_react_is_production_min = __commonJS({
|
|
5969
5969
|
"../../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
5970
5970
|
"use strict";
|
|
5971
|
-
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
|
|
5972
|
-
u = Symbol.for("react.module.reference");
|
|
5971
|
+
var b = /* @__PURE__ */ Symbol.for("react.element"), c = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), e = /* @__PURE__ */ Symbol.for("react.strict_mode"), f = /* @__PURE__ */ Symbol.for("react.profiler"), g = /* @__PURE__ */ Symbol.for("react.provider"), h = /* @__PURE__ */ Symbol.for("react.context"), k = /* @__PURE__ */ Symbol.for("react.server_context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), m = /* @__PURE__ */ Symbol.for("react.suspense"), n = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), q = /* @__PURE__ */ Symbol.for("react.lazy"), t = /* @__PURE__ */ Symbol.for("react.offscreen"), u;
|
|
5972
|
+
u = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
5973
5973
|
function v(a) {
|
|
5974
5974
|
if (typeof a == "object" && a !== null) {
|
|
5975
5975
|
var r = a.$$typeof;
|
|
@@ -6067,8 +6067,8 @@ var require_react_is_development = __commonJS({
|
|
|
6067
6067
|
"use strict";
|
|
6068
6068
|
process.env.NODE_ENV !== "production" && (function() {
|
|
6069
6069
|
"use strict";
|
|
6070
|
-
var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
|
|
6071
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
6070
|
+
var enableScopeAPI = !1, enableCacheElement = !1, enableTransitionTracing = !1, enableLegacyHidden = !1, enableDebugTracing = !1, REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = /* @__PURE__ */ Symbol.for("react.provider"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = /* @__PURE__ */ Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
|
|
6071
|
+
REACT_MODULE_REFERENCE = /* @__PURE__ */ Symbol.for("react.module.reference");
|
|
6072
6072
|
function isValidElementType(type) {
|
|
6073
6073
|
return !!(typeof type == "string" || typeof type == "function" || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing || typeof type == "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
6074
6074
|
// types supported by any Flight configuration anywhere since
|
|
@@ -6309,7 +6309,7 @@ async function renderToCanvas({
|
|
|
6309
6309
|
showException,
|
|
6310
6310
|
forceRemount
|
|
6311
6311
|
}, canvasElement) {
|
|
6312
|
-
let { renderElement, unmountElement } = await import("./_browser-chunks/react-18-
|
|
6312
|
+
let { renderElement, unmountElement } = await import("./_browser-chunks/react-18-V22CCOOF.js"), Story = unboundStoryFn, content = storyContext.parameters.__isPortableStory ? React3.createElement(Story, { ...storyContext }) : React3.createElement(ErrorBoundary, { key: storyContext.id, showMain, showException }, React3.createElement(Story, { ...storyContext })), element = Wrapper ? React3.createElement(Wrapper, null, content) : content;
|
|
6313
6313
|
forceRemount && unmountElement(canvasElement);
|
|
6314
6314
|
let act = await getAct({ disableAct: storyContext.viewMode === "docs" });
|
|
6315
6315
|
return await new Promise(async (resolve, reject) => {
|
|
@@ -6411,7 +6411,7 @@ import {
|
|
|
6411
6411
|
} from "storybook/internal/docs-tools";
|
|
6412
6412
|
|
|
6413
6413
|
// ../../renderers/react/src/docs/lib/componentTypes.ts
|
|
6414
|
-
var isMemo = (component) => component.$$typeof === Symbol.for("react.memo");
|
|
6414
|
+
var isMemo = (component) => component.$$typeof === /* @__PURE__ */ Symbol.for("react.memo");
|
|
6415
6415
|
|
|
6416
6416
|
// ../../renderers/react/src/docs/lib/defaultValues/createDefaultValue.ts
|
|
6417
6417
|
import {
|
|
@@ -6854,14 +6854,9 @@ function parse(value) {
|
|
|
6854
6854
|
};
|
|
6855
6855
|
if (ast.body[0] != null) {
|
|
6856
6856
|
let rootNode = ast.body[0];
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
expressionResult != null && (parsingResult = expressionResult);
|
|
6861
|
-
break;
|
|
6862
|
-
}
|
|
6863
|
-
default:
|
|
6864
|
-
break;
|
|
6857
|
+
if (rootNode.type === "ExpressionStatement") {
|
|
6858
|
+
let expressionResult = parseExpression(rootNode.expression);
|
|
6859
|
+
expressionResult != null && (parsingResult = expressionResult);
|
|
6865
6860
|
}
|
|
6866
6861
|
}
|
|
6867
6862
|
return parsingResult;
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.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-
|
|
17
|
-
import "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-2IRZN3ZH.js";
|
|
17
|
+
import "./_node-chunks/chunk-X2HU3IWC.js";
|
|
18
18
|
|
|
19
19
|
// src/preset.ts
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
@@ -243,7 +243,6 @@ var preset_default = (api, options = {}) => {
|
|
|
243
243
|
// In production/development this option is set to `false` so that webpack can handle import/export with tree-shaking
|
|
244
244
|
modules: "auto",
|
|
245
245
|
exclude: ["transform-typeof-symbol"],
|
|
246
|
-
bugfixes: !0,
|
|
247
246
|
targets: {
|
|
248
247
|
chrome: 100,
|
|
249
248
|
safari: 15,
|
|
@@ -251,7 +250,7 @@ var preset_default = (api, options = {}) => {
|
|
|
251
250
|
},
|
|
252
251
|
...options["preset-env"]
|
|
253
252
|
};
|
|
254
|
-
return (isServer || isTest) && (!presetEnvConfig.targets || !(typeof presetEnvConfig.targets == "object" && "node" in presetEnvConfig.targets)) && (presetEnvConfig.targets = {
|
|
253
|
+
return globalThis?.FEATURES && "babelRemoveBugfixes" in globalThis.FEATURES && globalThis.FEATURES.babelRemoveBugfixes || (presetEnvConfig.bugfixes = !0), (isServer || isTest) && (!presetEnvConfig.targets || !(typeof presetEnvConfig.targets == "object" && "node" in presetEnvConfig.targets)) && (presetEnvConfig.targets = {
|
|
255
254
|
// Targets the current process' version of Node. This requires apps be
|
|
256
255
|
// built and deployed on the same version of Node.
|
|
257
256
|
// This is the same as using "current" but explicit
|
|
@@ -511,8 +510,14 @@ var addons = [
|
|
|
511
510
|
(preset) => !(isPresetConfigItem(preset) && preset.file?.request === fileURLToPath2(import.meta.resolve("@babel/preset-react")) || isNextBabelConfig(preset))
|
|
512
511
|
) ?? [];
|
|
513
512
|
hasNextBabelConfig ? Array.isArray(hasNextBabelConfig) && hasNextBabelConfig[1] ? presets.push([preset_default, hasNextBabelConfig[1]]) : isPresetConfigItem(hasNextBabelConfig) && hasNextBabelConfig.file?.request === "next/babel" ? presets.push([preset_default, hasNextBabelConfig.options]) : presets.push(preset_default) : presets.push(preset_default);
|
|
514
|
-
let plugins = [...options?.plugins ?? [], TransformFontImports]
|
|
515
|
-
|
|
513
|
+
let plugins = [...options?.plugins ?? [], TransformFontImports], presetConfig = {
|
|
514
|
+
targets: {
|
|
515
|
+
chrome: 100,
|
|
516
|
+
safari: 15,
|
|
517
|
+
firefox: 91
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
return globalThis?.FEATURES && "babelRemoveBugfixes" in globalThis.FEATURES && globalThis.FEATURES.babelRemoveBugfixes || (presetConfig.bugfixes = !0), {
|
|
516
521
|
...options,
|
|
517
522
|
plugins,
|
|
518
523
|
presets,
|
|
@@ -520,25 +525,9 @@ var addons = [
|
|
|
520
525
|
configFile: !1,
|
|
521
526
|
overrides: [
|
|
522
527
|
...options?.overrides ?? [],
|
|
523
|
-
// We need to re-apply the default storybook babel override from:
|
|
524
|
-
// https://github.com/storybookjs/storybook/blob/next/code/core/src/core-server/presets/common-preset.ts
|
|
525
|
-
// Because it get lost in the loadPartialConfig call above.
|
|
526
|
-
// See https://github.com/storybookjs/storybook/issues/28467
|
|
527
528
|
{
|
|
528
529
|
include: /(story|stories)\.[cm]?[jt]sx?$/,
|
|
529
|
-
presets: [
|
|
530
|
-
[
|
|
531
|
-
"next/dist/compiled/babel/preset-env",
|
|
532
|
-
{
|
|
533
|
-
bugfixes: !0,
|
|
534
|
-
targets: {
|
|
535
|
-
chrome: 100,
|
|
536
|
-
safari: 15,
|
|
537
|
-
firefox: 91
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
]
|
|
541
|
-
]
|
|
530
|
+
presets: [["next/dist/compiled/babel/preset-env", presetConfig]]
|
|
542
531
|
}
|
|
543
532
|
]
|
|
544
533
|
};
|
|
@@ -546,7 +535,7 @@ var addons = [
|
|
|
546
535
|
let { nextConfigPath } = await options.presets.apply("frameworkOptions"), nextConfig = await configureConfig({
|
|
547
536
|
baseConfig,
|
|
548
537
|
nextConfigPath
|
|
549
|
-
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-
|
|
538
|
+
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-KBJRACSD.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-RYDE6TAG.js"), { configureImports } = await import("./_node-chunks/webpack-D2IBVLSM.js"), { configureCss } = await import("./_node-chunks/webpack-C2C6ARAJ.js"), { configureImages } = await import("./_node-chunks/webpack-45JOHD4L.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-BITIWQBA.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-GDQZJRK2.js"), { configureAliases } = await import("./_node-chunks/webpack-NTBB7WE7.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-QJW4G637.js"), { configureRSC } = await import("./_node-chunks/webpack-FKXSGWBO.js"), { configureSWCLoader } = await import("./_node-chunks/loader-555UD2YA.js"), { configureBabelLoader } = await import("./_node-chunks/loader-EDNKCRH2.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
539
|
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
540
|
};
|
|
552
541
|
export {
|
package/dist/preview.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
decorators,
|
|
3
3
|
loaders,
|
|
4
4
|
parameters
|
|
5
|
-
} from "./_browser-chunks/chunk-
|
|
6
|
-
import "./_browser-chunks/chunk-
|
|
5
|
+
} from "./_browser-chunks/chunk-MPD4I4WS.js";
|
|
6
|
+
import "./_browser-chunks/chunk-IMSF75WX.js";
|
|
7
7
|
export {
|
|
8
8
|
decorators,
|
|
9
9
|
loaders,
|
package/dist/rsc/server-only.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4ciddrjb34g from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4ciddrjb34g from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4ciddrjb34g from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4ciddrjb34g.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4ciddrjb34g.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4ciddrjb34g.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -64,7 +64,7 @@ async function loaderTransform(parentTrace, source, inputSourceMap) {
|
|
|
64
64
|
// modules.
|
|
65
65
|
sourceFileName: filename
|
|
66
66
|
};
|
|
67
|
-
return programmaticOptions.env.bugfixes = !0, programmaticOptions.inputSourceMap || delete programmaticOptions.inputSourceMap, this.mode && programmaticOptions.jsc && programmaticOptions.jsc.transform && programmaticOptions.jsc.transform.react && !Object.prototype.hasOwnProperty.call(programmaticOptions.jsc.transform.react, "development") && (programmaticOptions.jsc.transform.react.development = this.mode === "development"), parentTrace.traceChild("next-swc-transform").traceAsyncFn(
|
|
67
|
+
return (!globalThis.FEATURES || !("babelRemoveBugfixes" in globalThis.FEATURES) || !globalThis.FEATURES.babelRemoveBugfixes) && (programmaticOptions.env.bugfixes = !0), programmaticOptions.inputSourceMap || delete programmaticOptions.inputSourceMap, this.mode && programmaticOptions.jsc && programmaticOptions.jsc.transform && programmaticOptions.jsc.transform.react && !Object.prototype.hasOwnProperty.call(programmaticOptions.jsc.transform.react, "development") && (programmaticOptions.jsc.transform.react.development = this.mode === "development"), parentTrace.traceChild("next-swc-transform").traceAsyncFn(
|
|
68
68
|
() => nextSwcUtils.transform(source, programmaticOptions).then((output) => {
|
|
69
69
|
if (output.eliminatedPackages && this.eliminatedPackages)
|
|
70
70
|
for (let pkg of JSON.parse(output.eliminatedPackages))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs",
|
|
3
|
-
"version": "10.5.0-alpha.
|
|
3
|
+
"version": "10.5.0-alpha.8",
|
|
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.5.0-alpha.
|
|
106
|
-
"@storybook/preset-react-webpack": "10.5.0-alpha.
|
|
107
|
-
"@storybook/react": "10.5.0-alpha.
|
|
105
|
+
"@storybook/builder-webpack5": "10.5.0-alpha.8",
|
|
106
|
+
"@storybook/preset-react-webpack": "10.5.0-alpha.8",
|
|
107
|
+
"@storybook/react": "10.5.0-alpha.8",
|
|
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.5.0-alpha.
|
|
143
|
+
"storybook": "^10.5.0-alpha.8",
|
|
144
144
|
"webpack": "^5.0.0"
|
|
145
145
|
},
|
|
146
146
|
"peerDependenciesMeta": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_r6ydtd1phf from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_r6ydtd1phf from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_r6ydtd1phf from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_r6ydtd1phf.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_r6ydtd1phf.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_r6ydtd1phf.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-XMZQYBLT.js";
|
|
15
|
-
import "./chunk-LNXFH73Z.js";
|
|
16
|
-
|
|
17
|
-
// src/styledJsx/webpack.ts
|
|
18
|
-
var configureStyledJsx = (baseConfig) => {
|
|
19
|
-
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
configureStyledJsx
|
|
23
|
-
};
|