@storybook/nextjs 10.2.0-alpha.8 → 10.2.0-beta.0
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-PK34KPDU.js → chunk-BFMHNVB2.js} +8 -8
- package/dist/_node-chunks/{chunk-AXILDHTG.js → chunk-3O26QQ5O.js} +7 -7
- package/dist/_node-chunks/{chunk-IXEQLKMA.js → chunk-DQ7Z3DMU.js} +6 -6
- package/dist/_node-chunks/{chunk-EYRRLKM3.js → chunk-KYHBEKFJ.js} +7 -7
- package/dist/_node-chunks/{configureNextFont-LYZN2QN2.js → configureNextFont-3CQXGFH5.js} +6 -6
- package/dist/_node-chunks/{loader-CBYMECOG.js → loader-25FOF2IV.js} +8 -8
- package/dist/_node-chunks/{loader-MCAA2XKR.js → loader-KAC3XEBZ.js} +8 -8
- package/dist/_node-chunks/{utils-SNQFAAF5.js → utils-D2HIVI53.js} +8 -8
- package/dist/_node-chunks/{webpack-AQVI5RTK.js → webpack-A5CDDE2N.js} +6 -6
- package/dist/_node-chunks/{webpack-X2C7WHO7.js → webpack-D2SWRLSH.js} +7 -7
- package/dist/_node-chunks/{webpack-YC7IBCNN.js → webpack-IM5UIJXA.js} +6 -6
- package/dist/_node-chunks/{webpack-SAAFJ3JT.js → webpack-JN4FUB5O.js} +9 -9
- package/dist/_node-chunks/{webpack-WCMV64VO.js → webpack-OGE57UH6.js} +8 -8
- package/dist/_node-chunks/{webpack-FWEJMG7D.js → webpack-POZVZHRQ.js} +6 -6
- package/dist/_node-chunks/{webpack-35XDYGHY.js → webpack-ZAKOURIN.js} +8 -8
- package/dist/_node-chunks/{webpack-WKFV7LO7.js → webpack-ZXK3JFAU.js} +6 -6
- package/dist/compatibility/draft-mode.compat.js +1 -1
- package/dist/export-mocks/cache/index.d.ts +4 -4
- package/dist/export-mocks/cache/index.js +2 -2
- package/dist/export-mocks/headers/index.d.ts +7 -7
- package/dist/export-mocks/headers/index.js +4 -4
- package/dist/export-mocks/index.js +9 -9
- package/dist/export-mocks/navigation/index.d.ts +2 -2
- package/dist/export-mocks/navigation/index.js +4 -4
- package/dist/export-mocks/router/index.d.ts +4 -4
- package/dist/export-mocks/router/index.js +2 -2
- package/dist/font/webpack/loader/storybook-nextjs-font-loader.js +6 -6
- package/dist/index.js +3 -2
- package/dist/node/index.js +6 -6
- package/dist/preset.js +9 -9
- package/dist/preview.js +1 -1
- package/dist/swc/next-swc-loader-patch.js +6 -6
- package/package.json +21 -21
|
@@ -11,15 +11,15 @@ __export(preview_exports, {
|
|
|
11
11
|
});
|
|
12
12
|
import { createNavigation } from "@storybook/nextjs/navigation.mock";
|
|
13
13
|
import { createRouter } from "@storybook/nextjs/router.mock";
|
|
14
|
-
import { isNextRouterError } from "next/dist/client/components/is-next-router-error";
|
|
14
|
+
import { isNextRouterError } from "next/dist/client/components/is-next-router-error.js";
|
|
15
15
|
|
|
16
16
|
// src/head-manager/decorator.tsx
|
|
17
17
|
import * as React2 from "react";
|
|
18
18
|
|
|
19
19
|
// src/head-manager/head-manager-provider.tsx
|
|
20
20
|
import React, { useMemo } from "react";
|
|
21
|
-
import initHeadManager from "next/dist/client/head-manager";
|
|
22
|
-
import { HeadManagerContext } from "next/dist/shared/lib/head-manager-context.shared-runtime";
|
|
21
|
+
import initHeadManager from "next/dist/client/head-manager.js";
|
|
22
|
+
import { HeadManagerContext } from "next/dist/shared/lib/head-manager-context.shared-runtime.js";
|
|
23
23
|
var HeadManagerProvider = ({ children }) => {
|
|
24
24
|
let headManager = useMemo(initHeadManager, []);
|
|
25
25
|
return headManager.getIsSsr = () => !1, React.createElement(HeadManagerContext.Provider, { value: headManager }, children);
|
|
@@ -35,7 +35,7 @@ var ImageContext = ImageContextValue, ImageDecorator = (Story, { parameters: par
|
|
|
35
35
|
|
|
36
36
|
// src/routing/decorator.tsx
|
|
37
37
|
import * as React6 from "react";
|
|
38
|
-
import { RedirectBoundary } from "next/dist/client/components/redirect-boundary";
|
|
38
|
+
import { RedirectBoundary } from "next/dist/client/components/redirect-boundary.js";
|
|
39
39
|
|
|
40
40
|
// src/routing/app-router-provider.tsx
|
|
41
41
|
import React4, { useMemo as useMemo2 } from "react";
|
|
@@ -44,13 +44,13 @@ import {
|
|
|
44
44
|
AppRouterContext,
|
|
45
45
|
GlobalLayoutRouterContext,
|
|
46
46
|
LayoutRouterContext
|
|
47
|
-
} from "next/dist/shared/lib/app-router-context.shared-runtime";
|
|
47
|
+
} from "next/dist/shared/lib/app-router-context.shared-runtime.js";
|
|
48
48
|
import {
|
|
49
49
|
PathParamsContext,
|
|
50
50
|
PathnameContext,
|
|
51
51
|
SearchParamsContext
|
|
52
|
-
} from "next/dist/shared/lib/hooks-client-context.shared-runtime";
|
|
53
|
-
import { PAGE_SEGMENT_KEY } from "next/dist/shared/lib/segment";
|
|
52
|
+
} from "next/dist/shared/lib/hooks-client-context.shared-runtime.js";
|
|
53
|
+
import { PAGE_SEGMENT_KEY } from "next/dist/shared/lib/segment.js";
|
|
54
54
|
var getParallelRoutes = (segmentsList) => {
|
|
55
55
|
let segment = segmentsList.shift();
|
|
56
56
|
return segment ? [segment, { children: getParallelRoutes(segmentsList) }] : [];
|
|
@@ -130,7 +130,7 @@ var getParallelRoutes = (segmentsList) => {
|
|
|
130
130
|
// src/routing/page-router-provider.tsx
|
|
131
131
|
import React5 from "react";
|
|
132
132
|
import { getRouter as getRouter2 } from "@storybook/nextjs/router.mock";
|
|
133
|
-
import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime";
|
|
133
|
+
import { RouterContext } from "next/dist/shared/lib/router-context.shared-runtime.js";
|
|
134
134
|
var PageRouterProvider = ({ children }) => React5.createElement(RouterContext.Provider, { value: getRouter2() }, children);
|
|
135
135
|
|
|
136
136
|
// src/routing/decorator.tsx
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-KYHBEKFJ.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-DQ7Z3DMU.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-KYHBEKFJ.js";
|
|
15
|
+
import "./chunk-DQ7Z3DMU.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-KYHBEKFJ.js";
|
|
15
|
+
import "./chunk-DQ7Z3DMU.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-KYHBEKFJ.js";
|
|
22
|
+
import "./chunk-DQ7Z3DMU.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-DQ7Z3DMU.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_s2jsiswfa58.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
configureCompatibilityAliases,
|
|
14
14
|
configureNextExportMocks
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-3O26QQ5O.js";
|
|
16
|
+
import "./chunk-KYHBEKFJ.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DQ7Z3DMU.js";
|
|
20
20
|
|
|
21
21
|
// src/aliases/webpack.ts
|
|
22
22
|
var configureAliases = (baseConfig) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-KYHBEKFJ.js";
|
|
15
|
+
import "./chunk-DQ7Z3DMU.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
addScopedAlias
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-KYHBEKFJ.js";
|
|
15
|
+
import "./chunk-DQ7Z3DMU.js";
|
|
16
16
|
|
|
17
17
|
// src/styledJsx/webpack.ts
|
|
18
18
|
var configureStyledJsx = (baseConfig) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache';
|
|
2
|
-
export { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache';
|
|
3
|
-
import { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store';
|
|
4
|
-
export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store';
|
|
1
|
+
import { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache.js';
|
|
2
|
+
export { unstable_cache } from 'next/dist/server/web/spec-extension/unstable-cache.js';
|
|
3
|
+
import { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store.js';
|
|
4
|
+
export { unstable_noStore } from 'next/dist/server/web/spec-extension/unstable-no-store.js';
|
|
5
5
|
|
|
6
6
|
interface MockResultReturn<T> {
|
|
7
7
|
type: "return";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../_browser-chunks/chunk-A242L54C.js";
|
|
2
2
|
|
|
3
3
|
// src/export-mocks/cache/index.ts
|
|
4
|
-
import { unstable_cache } from "next/dist/server/web/spec-extension/unstable-cache";
|
|
5
|
-
import { unstable_noStore } from "next/dist/server/web/spec-extension/unstable-no-store";
|
|
4
|
+
import { unstable_cache } from "next/dist/server/web/spec-extension/unstable-cache.js";
|
|
5
|
+
import { unstable_noStore } from "next/dist/server/web/spec-extension/unstable-no-store.js";
|
|
6
6
|
import { fn } from "storybook/test";
|
|
7
7
|
var revalidatePath = fn().mockName("next/cache::revalidatePath"), revalidateTag = fn().mockName("next/cache::revalidateTag"), cacheExports = {
|
|
8
8
|
unstable_cache,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from 'next/dist/server/request/headers';
|
|
2
|
-
import { HeadersAdapter } from 'next/dist/server/web/spec-extension/adapters/headers';
|
|
3
|
-
import * as
|
|
4
|
-
import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies';
|
|
1
|
+
export * from 'next/dist/server/request/headers.js';
|
|
2
|
+
import { HeadersAdapter } from 'next/dist/server/web/spec-extension/adapters/headers.js';
|
|
3
|
+
import * as next_dist_compiled__edge_runtime_cookies_index_js from 'next/dist/compiled/@edge-runtime/cookies/index.js';
|
|
4
|
+
import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies/index.js';
|
|
5
5
|
|
|
6
6
|
interface MockResultReturn<T> {
|
|
7
7
|
type: "return";
|
|
@@ -330,10 +330,10 @@ declare const headers: {
|
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
declare class RequestCookiesMock extends RequestCookies {
|
|
333
|
-
get: Mock<(...args: [name: string] | [
|
|
334
|
-
getAll: Mock<(...args: [name: string] | [
|
|
333
|
+
get: Mock<(...args: [name: string] | [next_dist_compiled__edge_runtime_cookies_index_js.RequestCookie]) => next_dist_compiled__edge_runtime_cookies_index_js.RequestCookie | undefined>;
|
|
334
|
+
getAll: Mock<(...args: [name: string] | [next_dist_compiled__edge_runtime_cookies_index_js.RequestCookie] | []) => next_dist_compiled__edge_runtime_cookies_index_js.RequestCookie[]>;
|
|
335
335
|
has: Mock<(name: string) => boolean>;
|
|
336
|
-
set: Mock<(...args: [key: string, value: string] | [options:
|
|
336
|
+
set: Mock<(...args: [key: string, value: string] | [options: next_dist_compiled__edge_runtime_cookies_index_js.RequestCookie]) => this>;
|
|
337
337
|
delete: Mock<(names: string | string[]) => boolean | boolean[]>;
|
|
338
338
|
}
|
|
339
339
|
declare const cookies: Mock<() => RequestCookiesMock>;
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "../../_browser-chunks/chunk-A242L54C.js";
|
|
4
4
|
|
|
5
5
|
// src/export-mocks/headers/index.ts
|
|
6
|
-
import * as headers3 from "next/dist/server/request/headers";
|
|
6
|
+
import * as headers3 from "next/dist/server/request/headers.js";
|
|
7
7
|
import { fn as fn3 } from "storybook/test";
|
|
8
|
-
export * from "next/dist/server/request/headers";
|
|
8
|
+
export * from "next/dist/server/request/headers.js";
|
|
9
9
|
|
|
10
10
|
// src/export-mocks/headers/headers.ts
|
|
11
|
-
import { HeadersAdapter } from "next/dist/server/web/spec-extension/adapters/headers";
|
|
11
|
+
import { HeadersAdapter } from "next/dist/server/web/spec-extension/adapters/headers.js";
|
|
12
12
|
import { fn } from "storybook/test";
|
|
13
13
|
var HeadersAdapterMock = class extends HeadersAdapter {
|
|
14
14
|
constructor() {
|
|
@@ -30,7 +30,7 @@ headers.mockRestore = () => {
|
|
|
30
30
|
|
|
31
31
|
// src/export-mocks/headers/cookies.ts
|
|
32
32
|
import { headers as headers2 } from "@storybook/nextjs/headers.mock";
|
|
33
|
-
import { RequestCookies } from "next/dist/compiled/@edge-runtime/cookies";
|
|
33
|
+
import { RequestCookies } from "next/dist/compiled/@edge-runtime/cookies/index.js";
|
|
34
34
|
import { fn as fn2 } from "storybook/test";
|
|
35
35
|
var RequestCookiesMock = class extends RequestCookies {
|
|
36
36
|
constructor() {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-3O26QQ5O.js";
|
|
15
|
+
import "../_node-chunks/chunk-KYHBEKFJ.js";
|
|
16
|
+
import "../_node-chunks/chunk-DQ7Z3DMU.js";
|
|
17
17
|
export {
|
|
18
18
|
getPackageAliases
|
|
19
19
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as actual from 'next/dist/client/components/navigation';
|
|
2
|
-
export * from 'next/dist/client/components/navigation';
|
|
1
|
+
import * as actual from 'next/dist/client/components/navigation.js';
|
|
2
|
+
export * from 'next/dist/client/components/navigation.js';
|
|
3
3
|
import { Mock } from 'storybook/test';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -2,11 +2,11 @@ import "../../_browser-chunks/chunk-A242L54C.js";
|
|
|
2
2
|
|
|
3
3
|
// src/export-mocks/navigation/index.ts
|
|
4
4
|
import { NextjsRouterMocksNotAvailable } from "storybook/internal/preview-errors";
|
|
5
|
-
import * as actual from "next/dist/client/components/navigation";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import * as actual from "next/dist/client/components/navigation.js";
|
|
6
|
+
import { RedirectStatusCode } from "next/dist/client/components/redirect-status-code.js";
|
|
7
|
+
import { getRedirectError } from "next/dist/client/components/redirect.js";
|
|
8
8
|
import { fn } from "storybook/test";
|
|
9
|
-
export * from "next/dist/client/components/navigation";
|
|
9
|
+
export * from "next/dist/client/components/navigation.js";
|
|
10
10
|
var navigationAPI, createNavigation = (overrides) => {
|
|
11
11
|
let navigationActions = {
|
|
12
12
|
push: fn().mockName("next/navigation::useRouter().push"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as originalRouter from 'next/dist/client/router';
|
|
2
|
-
import originalRouter__default from 'next/dist/client/router';
|
|
3
|
-
export * from 'next/dist/client/router';
|
|
4
|
-
export { default } from 'next/dist/client/router';
|
|
1
|
+
import * as originalRouter from 'next/dist/client/router.js';
|
|
2
|
+
import originalRouter__default from 'next/dist/client/router.js';
|
|
3
|
+
export * from 'next/dist/client/router.js';
|
|
4
|
+
export { default } from 'next/dist/client/router.js';
|
|
5
5
|
import { NextRouter } from 'next/router';
|
|
6
6
|
import { Mock } from 'storybook/test';
|
|
7
7
|
|
|
@@ -2,9 +2,9 @@ import "../../_browser-chunks/chunk-A242L54C.js";
|
|
|
2
2
|
|
|
3
3
|
// src/export-mocks/router/index.ts
|
|
4
4
|
import { NextjsRouterMocksNotAvailable } from "storybook/internal/preview-errors";
|
|
5
|
-
import singletonRouter, * as originalRouter from "next/dist/client/router";
|
|
5
|
+
import singletonRouter, * as originalRouter from "next/dist/client/router.js";
|
|
6
6
|
import { fn } from "storybook/test";
|
|
7
|
-
export * from "next/dist/client/router";
|
|
7
|
+
export * from "next/dist/client/router.js";
|
|
8
8
|
var defaultRouterState = {
|
|
9
9
|
route: "/",
|
|
10
10
|
asPath: "/",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
preview_exports
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-BFMHNVB2.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__export,
|
|
@@ -6199,6 +6199,7 @@ __export(entry_preview_exports, {
|
|
|
6199
6199
|
renderToCanvas: () => renderToCanvas
|
|
6200
6200
|
});
|
|
6201
6201
|
import * as React5 from "react";
|
|
6202
|
+
import { Tag } from "storybook/internal/preview-api";
|
|
6202
6203
|
|
|
6203
6204
|
// ../../../node_modules/@storybook/global/dist/index.mjs
|
|
6204
6205
|
var scope = (() => {
|
|
@@ -6349,7 +6350,7 @@ var decorators = [
|
|
|
6349
6350
|
return React5.createElement(React5.Suspense, null, story());
|
|
6350
6351
|
},
|
|
6351
6352
|
(story, context) => {
|
|
6352
|
-
if (context.tags?.includes(
|
|
6353
|
+
if (context.tags?.includes(Tag.TEST_FN) && !scope.FEATURES?.experimentalTestSyntax)
|
|
6353
6354
|
throw new Error(
|
|
6354
6355
|
"To use the experimental test function, you must enable the experimentalTestSyntax feature flag. See https://storybook.js.org/docs/api/main-config/main-config-features#experimentaltestsyntax"
|
|
6355
6356
|
);
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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-KYHBEKFJ.js";
|
|
17
|
+
import "./_node-chunks/chunk-DQ7Z3DMU.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-3CQXGFH5.js"), { configureRuntimeNextjsVersionResolution, getNextjsVersion } = await import("./_node-chunks/utils-D2HIVI53.js"), { configureImports } = await import("./_node-chunks/webpack-POZVZHRQ.js"), { configureCss } = await import("./_node-chunks/webpack-D2SWRLSH.js"), { configureImages } = await import("./_node-chunks/webpack-OGE57UH6.js"), { configureStyledJsx } = await import("./_node-chunks/webpack-ZAKOURIN.js"), { configureNodePolyfills } = await import("./_node-chunks/webpack-ZXK3JFAU.js"), { configureAliases } = await import("./_node-chunks/webpack-JN4FUB5O.js"), { configureFastRefresh } = await import("./_node-chunks/webpack-IM5UIJXA.js"), { configureRSC } = await import("./_node-chunks/webpack-A5CDDE2N.js"), { configureSWCLoader } = await import("./_node-chunks/loader-25FOF2IV.js"), { configureBabelLoader } = await import("./_node-chunks/loader-KAC3XEBZ.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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dwl0w10tqe5 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dwl0w10tqe5 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dwl0w10tqe5 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dwl0w10tqe5.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dwl0w10tqe5.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dwl0w10tqe5.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.2.0-
|
|
3
|
+
"version": "10.2.0-beta.0",
|
|
4
4
|
"description": "Storybook for Next.js: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -76,24 +76,24 @@
|
|
|
76
76
|
"!src/**/*"
|
|
77
77
|
],
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@babel/core": "^7.
|
|
79
|
+
"@babel/core": "^7.28.5",
|
|
80
80
|
"@babel/plugin-syntax-bigint": "^7.8.3",
|
|
81
81
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
82
|
-
"@babel/plugin-syntax-import-assertions": "^7.
|
|
83
|
-
"@babel/plugin-transform-class-properties": "^7.
|
|
84
|
-
"@babel/plugin-transform-export-namespace-from": "^7.
|
|
85
|
-
"@babel/plugin-transform-numeric-separator": "^7.
|
|
86
|
-
"@babel/plugin-transform-object-rest-spread": "^7.
|
|
87
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
88
|
-
"@babel/preset-env": "^7.
|
|
89
|
-
"@babel/preset-react": "^7.
|
|
90
|
-
"@babel/preset-typescript": "^7.
|
|
91
|
-
"@babel/runtime": "^7.
|
|
82
|
+
"@babel/plugin-syntax-import-assertions": "^7.27.1",
|
|
83
|
+
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
84
|
+
"@babel/plugin-transform-export-namespace-from": "^7.27.1",
|
|
85
|
+
"@babel/plugin-transform-numeric-separator": "^7.27.1",
|
|
86
|
+
"@babel/plugin-transform-object-rest-spread": "^7.28.4",
|
|
87
|
+
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
88
|
+
"@babel/preset-env": "^7.28.5",
|
|
89
|
+
"@babel/preset-react": "^7.28.5",
|
|
90
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
91
|
+
"@babel/runtime": "^7.28.4",
|
|
92
92
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
93
|
-
"@storybook/builder-webpack5": "10.2.0-
|
|
94
|
-
"@storybook/preset-react-webpack": "10.2.0-
|
|
95
|
-
"@storybook/react": "10.2.0-
|
|
96
|
-
"@types/semver": "^7.
|
|
93
|
+
"@storybook/builder-webpack5": "10.2.0-beta.0",
|
|
94
|
+
"@storybook/preset-react-webpack": "10.2.0-beta.0",
|
|
95
|
+
"@storybook/react": "10.2.0-beta.0",
|
|
96
|
+
"@types/semver": "^7.7.1",
|
|
97
97
|
"babel-loader": "^9.1.3",
|
|
98
98
|
"css-loader": "^6.7.3",
|
|
99
99
|
"image-size": "^2.0.2",
|
|
@@ -104,29 +104,29 @@
|
|
|
104
104
|
"react-refresh": "^0.14.0",
|
|
105
105
|
"resolve-url-loader": "^5.0.0",
|
|
106
106
|
"sass-loader": "^16.0.5",
|
|
107
|
-
"semver": "^7.3
|
|
107
|
+
"semver": "^7.7.3",
|
|
108
108
|
"style-loader": "^3.3.1",
|
|
109
109
|
"styled-jsx": "^5.1.6",
|
|
110
110
|
"tsconfig-paths": "^4.0.0",
|
|
111
111
|
"tsconfig-paths-webpack-plugin": "^4.0.1"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@babel/types": "^7.
|
|
114
|
+
"@babel/types": "^7.28.5",
|
|
115
115
|
"@types/babel__core": "^7",
|
|
116
116
|
"@types/babel__plugin-transform-runtime": "^7",
|
|
117
117
|
"@types/babel__preset-env": "^7",
|
|
118
118
|
"@types/loader-utils": "^2.0.5",
|
|
119
|
-
"@types/node": "^22.
|
|
119
|
+
"@types/node": "^22.19.1",
|
|
120
120
|
"@types/react-refresh": "^0",
|
|
121
121
|
"next": "^15.2.3",
|
|
122
|
-
"typescript": "^5.
|
|
122
|
+
"typescript": "^5.9.3",
|
|
123
123
|
"webpack": "^5.65.0"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"next": "^14.1.0 || ^15.0.0 || ^16.0.0",
|
|
127
127
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
128
128
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
129
|
-
"storybook": "^10.2.0-
|
|
129
|
+
"storybook": "^10.2.0-beta.0",
|
|
130
130
|
"webpack": "^5.0.0"
|
|
131
131
|
},
|
|
132
132
|
"peerDependenciesMeta": {
|