@storybook/nextjs 11.0.0-alpha.9 → 11.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{chunk-GNFDJDVJ.js → chunk-TRGJ2EY2.js} +1 -1
- package/dist/_browser-chunks/{chunk-IMSF75WX.js → chunk-UAWMPV5J.js} +0 -7
- package/dist/_browser-chunks/{react-dom-client-W6CPASVV.js → react-dom-client-XW67TVMQ.js} +1 -1
- package/dist/_node-chunks/{chunk-7Z75UHIX.js → chunk-53VKQRA2.js} +7 -7
- package/dist/_node-chunks/{chunk-H23DOGOJ.js → chunk-FRAB6YDI.js} +6 -9
- package/dist/_node-chunks/{chunk-N35SZHJM.js → chunk-NUEKOKPO.js} +6 -6
- package/dist/_node-chunks/{configureNextFont-PTM5XPT2.js → configureNextFont-5QZ5DXY5.js} +6 -6
- package/dist/_node-chunks/{loader-HNBDYGHX.js → loader-G3FSYUZV.js} +8 -8
- package/dist/_node-chunks/{loader-G4G5575G.js → loader-MSGUOKNU.js} +8 -8
- package/dist/_node-chunks/{utils-Z5WA47PZ.js → utils-4QXS4A7Z.js} +8 -8
- package/dist/_node-chunks/{webpack-2PE4XBXF.js → webpack-4RSXULMT.js} +6 -6
- package/dist/_node-chunks/{webpack-SWNHLFTI.js → webpack-6PVR5Z4D.js} +6 -6
- package/dist/_node-chunks/{webpack-U47P37C4.js → webpack-FE2GDUVK.js} +8 -8
- package/dist/_node-chunks/{webpack-SM7FBRMH.js → webpack-FMYF24W2.js} +6 -6
- package/dist/_node-chunks/{webpack-HGZZ4YK3.js → webpack-FPQI2HTU.js} +6 -6
- package/dist/_node-chunks/{webpack-6B42OWFJ.js → webpack-WWGPSPKL.js} +6 -6
- package/dist/_node-chunks/{webpack-3FJTMDE7.js → webpack-WZKDL2CB.js} +8 -8
- package/dist/_node-chunks/{webpack-MO5OROIH.js → webpack-Z5TBZ5ID.js} +6 -6
- package/dist/export-mocks/cache/index.d.ts +8 -10
- package/dist/export-mocks/cache/index.js +1 -1
- package/dist/export-mocks/headers/index.d.ts +17 -17
- package/dist/export-mocks/headers/index.js +4 -12
- package/dist/export-mocks/index.js +7 -7
- package/dist/export-mocks/link/index.d.ts +1 -2
- package/dist/export-mocks/link/index.js +1 -1
- 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 +8 -7
- 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 +20 -7
- 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 +17 -5
- package/template/cli/js/Button.stories.js +11 -10
- package/template/cli/js/Header.stories.js +7 -6
- package/template/cli/js/Page.stories.js +6 -5
- package/template/cli/ts/Button.stories.ts +11 -14
- package/template/cli/ts/Header.stories.ts +6 -9
- package/template/cli/ts/Page.stories.ts +6 -9
- package/dist/chunk-Crpg_HiB.d.ts +0 -310
|
@@ -3,12 +3,6 @@ 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
|
-
});
|
|
12
6
|
var __commonJS = (cb, mod) => function() {
|
|
13
7
|
try {
|
|
14
8
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -35,7 +29,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
29
|
));
|
|
36
30
|
|
|
37
31
|
export {
|
|
38
|
-
__require,
|
|
39
32
|
__commonJS,
|
|
40
33
|
__export,
|
|
41
34
|
__toESM
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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-FRAB6YDI.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -138,9 +138,6 @@ var hasOwnProperty = {}.hasOwnProperty;
|
|
|
138
138
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace], own = {}.hasOwnProperty;
|
|
139
139
|
var isWindows = process.platform === "win32", globalCache = globalThis.__EXSOLVE_CACHE__ ||= /* @__PURE__ */ new Map();
|
|
140
140
|
|
|
141
|
-
// ../../core/src/shared/utils/module.ts
|
|
142
|
-
import semver from "semver";
|
|
143
|
-
|
|
144
141
|
// ../../core/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
145
142
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
146
143
|
function normalizeWindowsPath(input = "") {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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-53VKQRA2.js";
|
|
15
|
+
import "./chunk-FRAB6YDI.js";
|
|
16
16
|
|
|
17
17
|
// src/babel/loader.ts
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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-53VKQRA2.js";
|
|
15
|
+
import "./chunk-FRAB6YDI.js";
|
|
16
16
|
|
|
17
17
|
// src/swc/loader.ts
|
|
18
18
|
import { join } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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-53VKQRA2.js";
|
|
22
|
+
import "./chunk-FRAB6YDI.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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
|
configureNextExportMocks
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NUEKOKPO.js";
|
|
15
15
|
import {
|
|
16
16
|
resolvePackageDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FRAB6YDI.js";
|
|
18
18
|
|
|
19
19
|
// src/aliases/webpack.ts
|
|
20
20
|
var configureAliases = (baseConfig) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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-53VKQRA2.js";
|
|
15
|
+
import "./chunk-FRAB6YDI.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_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { t as Mock } from "../../chunk-Crpg_HiB.js";
|
|
2
|
-
|
|
3
1
|
//#region code/frameworks/nextjs/.dts-emit/code/frameworks/nextjs/src/export-mocks/cache/index.d.ts
|
|
4
|
-
declare const revalidatePath: Mock<(
|
|
5
|
-
declare const revalidateTag: Mock<(
|
|
6
|
-
declare const unstable_cache: Mock<(
|
|
7
|
-
declare const unstable_noStore: Mock<(
|
|
2
|
+
declare const revalidatePath: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
3
|
+
declare const revalidateTag: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
4
|
+
declare const unstable_cache: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
5
|
+
declare const unstable_noStore: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
8
6
|
declare const cacheExports: {
|
|
9
|
-
unstable_cache: Mock<(
|
|
10
|
-
revalidateTag: Mock<(
|
|
11
|
-
revalidatePath: Mock<(
|
|
12
|
-
unstable_noStore: Mock<(
|
|
7
|
+
unstable_cache: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
8
|
+
revalidateTag: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
9
|
+
revalidatePath: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
10
|
+
unstable_noStore: import("storybook/test").Mock<import("storybook/test").Procedure>;
|
|
13
11
|
};
|
|
14
12
|
//#endregion
|
|
15
13
|
export { cacheExports as default, revalidatePath, revalidateTag, unstable_cache, unstable_noStore };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { draftMode as draftMode$1 } from "next/dist/server/request/draft-mode.js";
|
|
2
2
|
import { HeadersAdapter } from "next/dist/server/web/spec-extension/adapters/headers.js";
|
|
3
3
|
import { RequestCookies } from "next/dist/compiled/@edge-runtime/cookies/index.js";
|
|
4
4
|
export * from "next/dist/server/request/headers.js";
|
|
@@ -6,15 +6,15 @@ export * from "next/dist/server/request/headers.js";
|
|
|
6
6
|
//#region code/frameworks/nextjs/.dts-emit/code/frameworks/nextjs/src/export-mocks/headers/headers.d.ts
|
|
7
7
|
declare class HeadersAdapterMock extends HeadersAdapter {
|
|
8
8
|
constructor();
|
|
9
|
-
append: Mock<(name: string, value: string) => void>;
|
|
10
|
-
delete: Mock<(name: string) => void>;
|
|
11
|
-
get: Mock<(name: string) => string | null>;
|
|
12
|
-
has: Mock<(name: string) => boolean>;
|
|
13
|
-
set: Mock<(name: string, value: string) => void>;
|
|
14
|
-
forEach: Mock<(callbackfn: (value: string, name: string, parent: Headers) => void, thisArg?: any) => void>;
|
|
15
|
-
entries: Mock<() => HeadersIterator<[string, string]>>;
|
|
16
|
-
keys: Mock<() => HeadersIterator<string>>;
|
|
17
|
-
values: Mock<() => HeadersIterator<string>>;
|
|
9
|
+
append: import("storybook/test").Mock<(name: string, value: string) => void>;
|
|
10
|
+
delete: import("storybook/test").Mock<(name: string) => void>;
|
|
11
|
+
get: import("storybook/test").Mock<(name: string) => string | null>;
|
|
12
|
+
has: import("storybook/test").Mock<(name: string) => boolean>;
|
|
13
|
+
set: import("storybook/test").Mock<(name: string, value: string) => void>;
|
|
14
|
+
forEach: import("storybook/test").Mock<(callbackfn: (value: string, name: string, parent: Headers) => void, thisArg?: any) => void>;
|
|
15
|
+
entries: import("storybook/test").Mock<() => HeadersIterator<[string, string]>>;
|
|
16
|
+
keys: import("storybook/test").Mock<() => HeadersIterator<string>>;
|
|
17
|
+
values: import("storybook/test").Mock<() => HeadersIterator<string>>;
|
|
18
18
|
}
|
|
19
19
|
declare function headers(): HeadersAdapterMock;
|
|
20
20
|
declare namespace headers {
|
|
@@ -23,15 +23,15 @@ declare namespace headers {
|
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region code/frameworks/nextjs/.dts-emit/code/frameworks/nextjs/src/export-mocks/headers/cookies.d.ts
|
|
25
25
|
declare class RequestCookiesMock extends RequestCookies {
|
|
26
|
-
get: Mock<(...args: [name: string] | [import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie]) => import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie | undefined>;
|
|
27
|
-
getAll: Mock<(...args: [name: string] | [import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie] | []) => import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie[]>;
|
|
28
|
-
has: Mock<(name: string) => boolean>;
|
|
29
|
-
set: Mock<(...args: [key: string, value: string] | [options: import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie]) => this>;
|
|
30
|
-
delete: Mock<(names: string | string[]) => boolean | boolean[]>;
|
|
26
|
+
get: import("storybook/test").Mock<(...args: [name: string] | [import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie]) => import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie | undefined>;
|
|
27
|
+
getAll: import("storybook/test").Mock<(...args: [name: string] | [import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie] | []) => import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie[]>;
|
|
28
|
+
has: import("storybook/test").Mock<(name: string) => boolean>;
|
|
29
|
+
set: import("storybook/test").Mock<(...args: [key: string, value: string] | [options: import("next/dist/compiled/@edge-runtime/cookies/index.js").RequestCookie]) => this>;
|
|
30
|
+
delete: import("storybook/test").Mock<(names: string | string[]) => boolean | boolean[]>;
|
|
31
31
|
}
|
|
32
|
-
declare const cookies: Mock<() => RequestCookiesMock>;
|
|
32
|
+
declare const cookies: import("storybook/test").Mock<() => RequestCookiesMock>;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region code/frameworks/nextjs/.dts-emit/code/frameworks/nextjs/src/export-mocks/headers/index.d.ts
|
|
35
|
-
declare const draftMode: Mock<
|
|
35
|
+
declare const draftMode: import("storybook/test").Mock<typeof draftMode$1>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { cookies, draftMode, headers };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
__require
|
|
3
|
-
} from "../../_browser-chunks/chunk-IMSF75WX.js";
|
|
1
|
+
import "../../_browser-chunks/chunk-UAWMPV5J.js";
|
|
4
2
|
|
|
5
3
|
// src/export-mocks/headers/index.ts
|
|
6
|
-
import
|
|
4
|
+
import { draftMode as originalDraftMode } from "next/dist/server/request/draft-mode.js";
|
|
7
5
|
import { fn as fn3 } from "storybook/test";
|
|
8
6
|
export * from "next/dist/server/request/headers.js";
|
|
9
7
|
|
|
@@ -47,15 +45,9 @@ cookies.mockRestore = () => {
|
|
|
47
45
|
};
|
|
48
46
|
|
|
49
47
|
// src/export-mocks/headers/index.ts
|
|
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");
|
|
48
|
+
var draftMode = fn3(originalDraftMode).mockName("draftMode");
|
|
57
49
|
export {
|
|
58
50
|
cookies,
|
|
59
|
-
|
|
51
|
+
draftMode,
|
|
60
52
|
headers
|
|
61
53
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.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-
|
|
14
|
+
} from "../_node-chunks/chunk-NUEKOKPO.js";
|
|
15
15
|
export {
|
|
16
16
|
getPackageAliases
|
|
17
17
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as Mock } from "../../chunk-Crpg_HiB.js";
|
|
2
1
|
import React from "react";
|
|
3
2
|
|
|
4
3
|
//#region code/frameworks/nextjs/.dts-emit/code/frameworks/nextjs/src/export-mocks/link/index.d.ts
|
|
5
4
|
declare const MockLink: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
6
|
-
declare const useLinkStatus: Mock<() => {
|
|
5
|
+
declare const useLinkStatus: import("storybook/test").Mock<() => {
|
|
7
6
|
pending: boolean;
|
|
8
7
|
}>;
|
|
9
8
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_ndzflwu2zot from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_ndzflwu2zot from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_ndzflwu2zot from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_ndzflwu2zot.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_ndzflwu2zot.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_ndzflwu2zot.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -55,6 +55,7 @@ async function getFontFaceDeclarations2(options, rootContext, swcMode) {
|
|
|
55
55
|
let localFontSrc = options.props.src, parentFolder = swcMode ? dirname(join(getProjectRoot(), options.filename)).replace(rootContext, "") : dirname(options.filename).replace(rootContext, ""), {
|
|
56
56
|
weight,
|
|
57
57
|
style,
|
|
58
|
+
display,
|
|
58
59
|
variable,
|
|
59
60
|
declarations = []
|
|
60
61
|
} = validateLocalFontFunctionCall("", options.props), id = `font-${loaderUtils2.getHashDigest(
|
|
@@ -62,7 +63,7 @@ async function getFontFaceDeclarations2(options, rootContext, swcMode) {
|
|
|
62
63
|
"md5",
|
|
63
64
|
"hex",
|
|
64
65
|
6
|
|
65
|
-
)}`, fontDeclarations = declarations.map(({ prop, value }) => `${prop}: ${value};`).join(`
|
|
66
|
+
)}`, fontDeclarations = [{ prop: "font-display", value: display }, ...declarations].map(({ prop, value }) => `${prop}: ${value};`).join(`
|
|
66
67
|
`);
|
|
67
68
|
return {
|
|
68
69
|
id,
|
package/dist/image-context.js
CHANGED