@storybook/nextjs 10.6.0-alpha.2 → 10.6.0-alpha.4
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/_node-chunks/{chunk-3DTTF7EB.js → chunk-4VLCBNCS.js} +7 -7
- package/dist/_node-chunks/{chunk-X5WW4CBA.js → chunk-57RQJ6DR.js} +6 -6
- package/dist/_node-chunks/{chunk-COKWNQ2R.js → chunk-DXA34F5M.js} +7 -7
- package/dist/_node-chunks/{configureNextFont-2FJT2CAH.js → configureNextFont-IRGWBRJH.js} +6 -6
- package/dist/_node-chunks/{loader-Q7DTFRVI.js → loader-CJEVRB5Q.js} +8 -8
- package/dist/_node-chunks/{loader-3JSURT34.js → loader-HUGQMWHD.js} +8 -8
- package/dist/_node-chunks/{utils-AY4NRJHW.js → utils-KEZU2DRL.js} +8 -8
- package/dist/_node-chunks/{webpack-ZFYXKXZK.js → webpack-3EJAVYFA.js} +6 -6
- package/dist/_node-chunks/{webpack-VKRB66RR.js → webpack-KPVOIPKV.js} +6 -6
- package/dist/_node-chunks/{webpack-JSSG2KYT.js → webpack-OTTQFSQY.js} +6 -6
- package/dist/_node-chunks/{webpack-3QSANPFR.js → webpack-QNKPGPJZ.js} +8 -8
- package/dist/_node-chunks/{webpack-N4P34NX3.js → webpack-RT6624V4.js} +6 -6
- package/dist/_node-chunks/{webpack-7BOJDJIH.js → webpack-TH2XJY52.js} +9 -9
- package/dist/_node-chunks/{webpack-TQGEQAJQ.js → webpack-TIC6E2NX.js} +7 -7
- package/dist/_node-chunks/webpack-Y2UKH7C5.js +23 -0
- package/dist/export-mocks/index.js +9 -9
- package/dist/export-mocks/link/index.js +14 -2
- package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +6 -6
- package/dist/node/index.js +6 -6
- package/dist/preset.js +10 -10
- package/dist/swc/next-swc-loader-patch.js +6 -6
- package/package.json +5 -5
- package/dist/_node-chunks/webpack-BX65MNRR.js +0 -23
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-57RQJ6DR.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.js";
|
|
15
|
+
import "./chunk-57RQJ6DR.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.js";
|
|
15
|
+
import "./chunk-57RQJ6DR.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.js";
|
|
22
|
+
import "./chunk-57RQJ6DR.js";
|
|
23
23
|
export {
|
|
24
24
|
addScopedAlias,
|
|
25
25
|
configureRuntimeNextjsVersionResolution,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.js";
|
|
15
|
+
import "./chunk-57RQJ6DR.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_itgqm99gm3b.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
configureCompatibilityAliases,
|
|
14
14
|
configureNextExportMocks
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-4VLCBNCS.js";
|
|
16
|
+
import "./chunk-DXA34F5M.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-57RQJ6DR.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-57RQJ6DR.js";
|
|
15
15
|
|
|
16
16
|
// src/css/webpack.ts
|
|
17
17
|
import { readFileSync } from "node:fs";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.js";
|
|
15
|
+
import "./chunk-57RQJ6DR.js";
|
|
16
|
+
|
|
17
|
+
// src/styledJsx/webpack.ts
|
|
18
|
+
var configureStyledJsx = (baseConfig) => {
|
|
19
|
+
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
configureStyledJsx
|
|
23
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-4VLCBNCS.js";
|
|
15
|
+
import "../_node-chunks/chunk-DXA34F5M.js";
|
|
16
|
+
import "../_node-chunks/chunk-57RQJ6DR.js";
|
|
17
17
|
export {
|
|
18
18
|
getPackageAliases
|
|
19
19
|
};
|
|
@@ -3,7 +3,19 @@ import "../../_browser-chunks/chunk-IMSF75WX.js";
|
|
|
3
3
|
// src/export-mocks/link/index.tsx
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { fn } from "storybook/test";
|
|
6
|
-
var linkAction = fn().mockName("next/link::Link"),
|
|
6
|
+
var linkAction = fn().mockName("next/link::Link"), removeTrailingSlash = (route) => route.endsWith("/") && route.length > 1 ? route.slice(0, -1) : route, parsePath = (path) => {
|
|
7
|
+
let hashIndex = path.indexOf("#"), queryIndex = path.indexOf("?"), hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
8
|
+
return hasQuery || hashIndex > -1 ? {
|
|
9
|
+
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
10
|
+
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
11
|
+
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
12
|
+
} : { pathname: path, query: "", hash: "" };
|
|
13
|
+
}, normalizePathTrailingSlash = (path) => {
|
|
14
|
+
if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
15
|
+
return path;
|
|
16
|
+
let { pathname, query, hash } = parsePath(path);
|
|
17
|
+
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(pathname) ? `${removeTrailingSlash(pathname)}${query}${hash}` : `${pathname.endsWith("/") ? pathname : `${pathname}/`}${query}${hash}` : `${removeTrailingSlash(pathname)}${query}${hash}`;
|
|
18
|
+
}, MockLink = React.forwardRef(function({
|
|
7
19
|
href,
|
|
8
20
|
as,
|
|
9
21
|
replace,
|
|
@@ -17,7 +29,7 @@ var linkAction = fn().mockName("next/link::Link"), MockLink = React.forwardRef(f
|
|
|
17
29
|
children,
|
|
18
30
|
...rest
|
|
19
31
|
}, ref) {
|
|
20
|
-
let resolvedHref = as ?? href,
|
|
32
|
+
let resolvedHref = as ?? href, rawHref = typeof resolvedHref == "object" ? `${resolvedHref.pathname || ""}${resolvedHref.query ? "?" + new URLSearchParams(resolvedHref.query).toString() : ""}${resolvedHref.hash || ""}` : resolvedHref, hrefString = typeof rawHref == "string" ? normalizePathTrailingSlash(rawHref) : rawHref, navigate = (e) => {
|
|
21
33
|
e.defaultPrevented || (e.preventDefault(), linkAction(hrefString, { replace, scroll, shallow, prefetch, locale }));
|
|
22
34
|
}, handleClick = (e) => {
|
|
23
35
|
onClick?.(e), navigate(e);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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-DXA34F5M.js";
|
|
17
|
+
import "./_node-chunks/chunk-57RQJ6DR.js";
|
|
18
18
|
|
|
19
19
|
// src/preset.ts
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
@@ -355,7 +355,7 @@ var isNext16orNewer = isNextVersionGte("16.0.0"), tryResolve = (path) => {
|
|
|
355
355
|
publicRuntimeConfig: nextConfig.publicRuntimeConfig
|
|
356
356
|
}));
|
|
357
357
|
let newNextLinkBehavior = nextConfig.experimental?.newNextLinkBehavior;
|
|
358
|
-
definePluginConfig["process.env.__NEXT_NEW_LINK_BEHAVIOR"] = newNextLinkBehavior, baseConfig.plugins?.push(new (await import("webpack")).default.DefinePlugin(definePluginConfig));
|
|
358
|
+
definePluginConfig["process.env.__NEXT_NEW_LINK_BEHAVIOR"] = newNextLinkBehavior, definePluginConfig["process.env.__NEXT_TRAILING_SLASH"] = nextConfig.trailingSlash, definePluginConfig["process.env.__NEXT_MANUAL_TRAILING_SLASH"] = nextConfig.skipTrailingSlashRedirect, baseConfig.plugins?.push(new (await import("webpack")).default.DefinePlugin(definePluginConfig));
|
|
359
359
|
};
|
|
360
360
|
|
|
361
361
|
// src/font/babel/helpers.ts
|
|
@@ -535,7 +535,7 @@ var addons = [
|
|
|
535
535
|
let { nextConfigPath } = await options.presets.apply("frameworkOptions"), nextConfig = await configureConfig({
|
|
536
536
|
baseConfig,
|
|
537
537
|
nextConfigPath
|
|
538
|
-
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-
|
|
538
|
+
}), { configureNextFont } = await import("./_node-chunks/configureNextFont-IRGWBRJH.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-KEZU2DRL.js"), { configureImports } = await import("./_node-chunks/webpack-3EJAVYFA.js"), { configureCss } = await import("./_node-chunks/webpack-TIC6E2NX.js"), { configureImages } = await import("./_node-chunks/webpack-QNKPGPJZ.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-Y2UKH7C5.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-KPVOIPKV.js"), { configureAliases } = await import("./_node-chunks/webpack-TH2XJY52.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-OTTQFSQY.js"), { configureRSC } = await import("./_node-chunks/webpack-RT6624V4.js"), { configureSWCLoader } = await import("./_node-chunks/loader-CJEVRB5Q.js"), { configureBabelLoader } = await import("./_node-chunks/loader-HUGQMWHD.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);
|
|
539
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;
|
|
540
540
|
};
|
|
541
541
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_trxbgh2ohb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_trxbgh2ohb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_trxbgh2ohb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_trxbgh2ohb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_trxbgh2ohb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_trxbgh2ohb.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.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.4",
|
|
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.6.0-alpha.
|
|
106
|
-
"@storybook/preset-react-webpack": "10.6.0-alpha.
|
|
107
|
-
"@storybook/react": "10.6.0-alpha.
|
|
105
|
+
"@storybook/builder-webpack5": "10.6.0-alpha.4",
|
|
106
|
+
"@storybook/preset-react-webpack": "10.6.0-alpha.4",
|
|
107
|
+
"@storybook/react": "10.6.0-alpha.4",
|
|
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.6.0-alpha.
|
|
143
|
+
"storybook": "^10.6.0-alpha.4",
|
|
144
144
|
"webpack": "^5.0.0"
|
|
145
145
|
},
|
|
146
146
|
"peerDependenciesMeta": {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_itgqm99gm3b from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_itgqm99gm3b from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_itgqm99gm3b from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_itgqm99gm3b.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_itgqm99gm3b.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_itgqm99gm3b.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-COKWNQ2R.js";
|
|
15
|
-
import "./chunk-X5WW4CBA.js";
|
|
16
|
-
|
|
17
|
-
// src/styledJsx/webpack.ts
|
|
18
|
-
var configureStyledJsx = (baseConfig) => {
|
|
19
|
-
addScopedAlias(baseConfig, "styled-jsx");
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
configureStyledJsx
|
|
23
|
-
};
|