@storybook/nextjs 10.1.8 → 10.1.10
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-SL3VIQZ3.js → chunk-A242L54C.js} +7 -0
- package/dist/_browser-chunks/{chunk-2SBZPHE7.js → chunk-PK34KPDU.js} +1 -1
- package/dist/_browser-chunks/{react-18-PYSEDAWB.js → react-18-J5XOSXHX.js} +1 -1
- package/dist/_node-chunks/{chunk-JFIY5KKT.js → chunk-EGVFDYVZ.js} +7 -7
- package/dist/_node-chunks/{chunk-62TLI4KX.js → chunk-O4Z7I3M6.js} +6 -6
- package/dist/_node-chunks/{chunk-7KA67HPQ.js → chunk-V53QUBQR.js} +7 -7
- package/dist/_node-chunks/{configureNextFont-U7BKTCQ7.js → configureNextFont-MGSCZWF5.js} +6 -6
- package/dist/_node-chunks/{loader-CUDPTVCV.js → loader-QVYD72JD.js} +8 -8
- package/dist/_node-chunks/{loader-QS4OFKP4.js → loader-RZ4DQP2F.js} +8 -8
- package/dist/_node-chunks/{utils-7ANIUGO2.js → utils-D73Q3ASO.js} +8 -8
- package/dist/_node-chunks/{webpack-TYIXZLBL.js → webpack-65HICZ4D.js} +8 -8
- package/dist/_node-chunks/{webpack-ULO2CYBK.js → webpack-EWXK3JXJ.js} +6 -6
- package/dist/_node-chunks/{webpack-K4Z77XUA.js → webpack-RGEB3FO3.js} +9 -9
- package/dist/_node-chunks/{webpack-QYFONCBS.js → webpack-RIPXUUS7.js} +7 -7
- package/dist/_node-chunks/{webpack-IP472L3C.js → webpack-V2TAO2FA.js} +6 -6
- package/dist/_node-chunks/webpack-VOEPEKQC.js +23 -0
- package/dist/_node-chunks/{webpack-HJ5XHNBA.js → webpack-Y5OFJHTJ.js} +6 -6
- package/dist/_node-chunks/{webpack-M5VHGHPT.js → webpack-ZY4JX7IK.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.d.ts +1 -2
- package/dist/export-mocks/headers/index.js +10 -3
- package/dist/export-mocks/index.js +9 -9
- 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 +3 -3
- package/dist/next-image-loader-stub.js +1 -1
- package/dist/node/index.js +6 -6
- package/dist/preset.js +9 -9
- package/dist/preview.js +2 -2
- package/dist/rsc/server-only.js +1 -1
- package/dist/swc/next-swc-loader-patch.js +6 -6
- package/package.json +5 -5
- package/dist/_node-chunks/webpack-UYZCM3SX.js +0 -23
|
@@ -3,6 +3,12 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __require = /* @__PURE__ */ ((x) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(x, {
|
|
7
|
+
get: (a, b) => (typeof require < "u" ? require : a)[b]
|
|
8
|
+
}) : x)(function(x) {
|
|
9
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
10
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
11
|
+
});
|
|
6
12
|
var __commonJS = (cb, mod) => function() {
|
|
7
13
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
8
14
|
};
|
|
@@ -25,6 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
31
|
));
|
|
26
32
|
|
|
27
33
|
export {
|
|
34
|
+
__require,
|
|
28
35
|
__commonJS,
|
|
29
36
|
__export,
|
|
30
37
|
__toESM
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-O4Z7I3M6.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.js";
|
|
15
|
+
import "./chunk-O4Z7I3M6.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.js";
|
|
15
|
+
import "./chunk-O4Z7I3M6.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.js";
|
|
22
|
+
import "./chunk-O4Z7I3M6.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.js";
|
|
15
|
+
import "./chunk-O4Z7I3M6.js";
|
|
16
16
|
|
|
17
17
|
// src/images/webpack.ts
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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_mrvpwbf9d4a.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
configureCompatibilityAliases,
|
|
14
14
|
configureNextExportMocks
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-EGVFDYVZ.js";
|
|
16
|
+
import "./chunk-V53QUBQR.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O4Z7I3M6.js";
|
|
20
20
|
|
|
21
21
|
// src/aliases/webpack.ts
|
|
22
22
|
var configureAliases = (baseConfig) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-O4Z7I3M6.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.js";
|
|
15
|
+
import "./chunk-O4Z7I3M6.js";
|
|
16
|
+
|
|
17
|
+
// src/styledJsx/webpack.ts
|
|
18
|
+
var configureStyledJsx = (baseConfig) => {
|
|
19
|
+
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
configureStyledJsx
|
|
23
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { draftMode as draftMode$1 } from 'next/dist/server/request/draft-mode';
|
|
2
1
|
export * from 'next/dist/server/request/headers';
|
|
3
2
|
import { HeadersAdapter } from 'next/dist/server/web/spec-extension/adapters/headers';
|
|
4
3
|
import * as next_dist_compiled__edge_runtime_cookies from 'next/dist/compiled/@edge-runtime/cookies';
|
|
@@ -339,6 +338,6 @@ declare class RequestCookiesMock extends RequestCookies {
|
|
|
339
338
|
}
|
|
340
339
|
declare const cookies: Mock<() => RequestCookiesMock>;
|
|
341
340
|
|
|
342
|
-
declare const draftMode: Mock<
|
|
341
|
+
declare const draftMode: Mock<any>;
|
|
343
342
|
|
|
344
343
|
export { cookies, draftMode, headers };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
__require
|
|
3
|
+
} from "../../_browser-chunks/chunk-A242L54C.js";
|
|
2
4
|
|
|
3
5
|
// src/export-mocks/headers/index.ts
|
|
4
|
-
import { draftMode as originalDraftMode } from "next/dist/server/request/draft-mode";
|
|
5
6
|
import * as headers3 from "next/dist/server/request/headers";
|
|
6
7
|
import { fn as fn3 } from "storybook/test";
|
|
7
8
|
export * from "next/dist/server/request/headers";
|
|
@@ -46,7 +47,13 @@ cookies.mockRestore = () => {
|
|
|
46
47
|
};
|
|
47
48
|
|
|
48
49
|
// src/export-mocks/headers/index.ts
|
|
49
|
-
var
|
|
50
|
+
var originalDraftMode;
|
|
51
|
+
try {
|
|
52
|
+
originalDraftMode = __require("next/dist/server/request/draft-mode").draftMode;
|
|
53
|
+
} catch {
|
|
54
|
+
originalDraftMode = headers3.draftMode;
|
|
55
|
+
}
|
|
56
|
+
var draftMode2 = fn3(originalDraftMode).mockName("draftMode");
|
|
50
57
|
export {
|
|
51
58
|
cookies,
|
|
52
59
|
draftMode2 as draftMode,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-EGVFDYVZ.js";
|
|
15
|
+
import "../_node-chunks/chunk-V53QUBQR.js";
|
|
16
|
+
import "../_node-chunks/chunk-O4Z7I3M6.js";
|
|
17
17
|
export {
|
|
18
18
|
getPackageAliases
|
|
19
19
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-PK34KPDU.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__export,
|
|
7
7
|
__toESM
|
|
8
|
-
} from "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-A242L54C.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/estraverse/estraverse.js
|
|
11
11
|
var require_estraverse = __commonJS({
|
|
@@ -6308,7 +6308,7 @@ async function renderToCanvas({
|
|
|
6308
6308
|
showException,
|
|
6309
6309
|
forceRemount
|
|
6310
6310
|
}, canvasElement) {
|
|
6311
|
-
let { renderElement, unmountElement } = await import("./_browser-chunks/react-18-
|
|
6311
|
+
let { renderElement, unmountElement } = await import("./_browser-chunks/react-18-J5XOSXHX.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;
|
|
6312
6312
|
forceRemount && unmountElement(canvasElement);
|
|
6313
6313
|
let act = await getAct({ disableAct: storyContext.viewMode === "docs" });
|
|
6314
6314
|
return await new Promise(async (resolve, reject) => {
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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-V53QUBQR.js";
|
|
17
|
+
import "./_node-chunks/chunk-O4Z7I3M6.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-
|
|
549
|
+
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-MGSCZWF5.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-D73Q3ASO.js"), { configureImports } = await import("./_node-chunks/webpack-ZY4JX7IK.js"), { configureCss } = await import("./_node-chunks/webpack-RIPXUUS7.js"), { configureImages } = await import("./_node-chunks/webpack-65HICZ4D.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-VOEPEKQC.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-Y5OFJHTJ.js"), { configureAliases } = await import("./_node-chunks/webpack-RGEB3FO3.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-EWXK3JXJ.js"), { configureRSC } = await import("./_node-chunks/webpack-V2TAO2FA.js"), { configureSWCLoader } = await import("./_node-chunks/loader-QVYD72JD.js"), { configureBabelLoader } = await import("./_node-chunks/loader-RZ4DQP2F.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 {
|
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-PK34KPDU.js";
|
|
6
|
+
import "./_browser-chunks/chunk-A242L54C.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_0jlo1ihqw9s5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0jlo1ihqw9s5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0jlo1ihqw9s5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0jlo1ihqw9s5.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.1.
|
|
3
|
+
"version": "10.1.10",
|
|
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.1.
|
|
98
|
-
"@storybook/preset-react-webpack": "10.1.
|
|
99
|
-
"@storybook/react": "10.1.
|
|
97
|
+
"@storybook/builder-webpack5": "10.1.10",
|
|
98
|
+
"@storybook/preset-react-webpack": "10.1.10",
|
|
99
|
+
"@storybook/react": "10.1.10",
|
|
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.1.
|
|
133
|
+
"storybook": "^10.1.10",
|
|
134
134
|
"webpack": "^5.0.0"
|
|
135
135
|
},
|
|
136
136
|
"peerDependenciesMeta": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_mrvpwbf9d4a from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_mrvpwbf9d4a from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_mrvpwbf9d4a from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_mrvpwbf9d4a.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_mrvpwbf9d4a.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_mrvpwbf9d4a.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-7KA67HPQ.js";
|
|
15
|
-
import "./chunk-62TLI4KX.js";
|
|
16
|
-
|
|
17
|
-
// src/styledJsx/webpack.ts
|
|
18
|
-
var configureStyledJsx = (baseConfig) => {
|
|
19
|
-
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
configureStyledJsx
|
|
23
|
-
};
|