storybook 10.2.0-alpha.6 → 10.2.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{chunk-UXVP56J6.js → chunk-POMIZRJL.js} +1 -1
- package/dist/_browser-chunks/{chunk-KTOLYKZY.js → chunk-VUZYLZ4B.js} +6 -6
- package/dist/_node-chunks/{builder-manager-SRWOH6O7.js → builder-manager-2XASU3VS.js} +12 -12
- package/dist/_node-chunks/{camelcase-IPCCDY4U.js → camelcase-KIWRHB2G.js} +7 -7
- package/dist/_node-chunks/chunk-2ANLCK4Y.js +18 -0
- package/dist/_node-chunks/{chunk-T53OKK5L.js → chunk-2KSITKBI.js} +7 -7
- package/dist/_node-chunks/{chunk-RMPSZ2MA.js → chunk-2OC7H5MZ.js} +7 -7
- package/dist/_node-chunks/{chunk-5UF6URLY.js → chunk-3K6P75SS.js} +7 -7
- package/dist/_node-chunks/{chunk-YH2VABDS.js → chunk-3TW66YXG.js} +6 -6
- package/dist/_node-chunks/{chunk-QNHQNNV2.js → chunk-5BRYY6XB.js} +9 -9
- package/dist/_node-chunks/{chunk-IFCVXOGP.js → chunk-5GRHJJHD.js} +9 -9
- package/dist/_node-chunks/{chunk-62HH4XOF.js → chunk-5WQXPM6D.js} +6 -6
- package/dist/_node-chunks/{chunk-ZFBKUCCD.js → chunk-6TJUL42C.js} +14 -14
- package/dist/_node-chunks/{chunk-PI4OGMRN.js → chunk-7B4JYHGV.js} +6 -6
- package/dist/_node-chunks/{chunk-YSCJXVR2.js → chunk-COGO4JMD.js} +7 -7
- package/dist/_node-chunks/{chunk-5U7Q4G4A.js → chunk-DTM4A3DJ.js} +76 -19
- package/dist/_node-chunks/{chunk-VUL47RCU.js → chunk-DYQ6QR45.js} +15 -15
- package/dist/_node-chunks/{chunk-J4ASSZ5N.js → chunk-IJ34563N.js} +32 -32
- package/dist/_node-chunks/{chunk-HQCIQ33W.js → chunk-JWL5NLJU.js} +6 -6
- package/dist/_node-chunks/{chunk-GJU4KX6X.js → chunk-LEZENLG7.js} +7 -7
- package/dist/_node-chunks/chunk-LOXLI4XT.js +20 -0
- package/dist/_node-chunks/{chunk-2BHMURQI.js → chunk-MLYPMYG5.js} +6 -6
- package/dist/_node-chunks/{chunk-TNAUD72T.js → chunk-Q6WPGVIW.js} +6 -6
- package/dist/_node-chunks/{chunk-XKPOBYPY.js → chunk-S7FIFCTX.js} +18 -18
- package/dist/_node-chunks/{chunk-AQ5XNGJR.js → chunk-TTGXODEY.js} +7 -7
- package/dist/_node-chunks/chunk-UFXCGC4W.js +23 -0
- package/dist/_node-chunks/{chunk-YIC767NR.js → chunk-UNHOAAXU.js} +7 -7
- package/dist/_node-chunks/{chunk-OKIXNWVU.js → chunk-VJFHZL2T.js} +8 -8
- package/dist/_node-chunks/{chunk-IBLK5VBI.js → chunk-WKC523P7.js} +7 -7
- package/dist/_node-chunks/chunk-X4YDIHYE.js +61 -0
- package/dist/_node-chunks/{chunk-JCHPJOPI.js → chunk-ZKB7MQRR.js} +8 -8
- package/dist/_node-chunks/{dist-JJEWCMVH.js → dist-GICI6ZHU.js} +9 -9
- package/dist/_node-chunks/{globby-VLMVNFI7.js → globby-FWMT4OOQ.js} +9 -9
- package/dist/_node-chunks/{lib-FXIHPQYY.js → lib-YCGXIMW5.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-MYO6PQF5.js → mdx-N42X6CFJ-CRGM5LTU.js} +8 -8
- package/dist/_node-chunks/{p-limit-OTUUNSPQ.js → p-limit-UJIYI4QT.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +259 -633
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +27 -29
- package/dist/csf/index.d.ts +41 -11
- package/dist/csf/index.js +8 -4
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +6 -6
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.js +7 -7
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +7 -7
- package/dist/preview-api/index.js +1 -1
- package/dist/preview-errors.js +1 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +9 -2
- package/dist/telemetry/index.js +27 -25
- package/dist/viewport/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/_node-chunks/chunk-2WJTWJRY.js +0 -20
- package/dist/_node-chunks/chunk-3SDF3TBW.js +0 -18
- package/dist/_node-chunks/chunk-6COWUVY6.js +0 -23
- package/dist/_node-chunks/chunk-7YD5E5Y5.js +0 -72
- package/dist/_node-chunks/chunk-GE3TP4E7.js +0 -61
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
require_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LEZENLG7.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Q6WPGVIW.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2OC7H5MZ.js";
|
|
21
21
|
import {
|
|
22
22
|
relative
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7B4JYHGV.js";
|
|
24
24
|
import {
|
|
25
25
|
require_dist
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TTGXODEY.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picocolors
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2KSITKBI.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5WQXPM6D.js";
|
|
33
33
|
|
|
34
34
|
// src/core-server/utils/server-statics.ts
|
|
35
35
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -189,9 +189,9 @@ async function sendTelemetryError(_error, eventType, options, blocking = !0, par
|
|
|
189
189
|
configDir: options.cliOptions.configDir || options.presetOptions?.configDir,
|
|
190
190
|
enableCrashReports: errorLevel === "full"
|
|
191
191
|
}
|
|
192
|
-
), error
|
|
192
|
+
), error && "subErrors" in error && error.subErrors.length > 0)
|
|
193
193
|
for (let subError of error.subErrors)
|
|
194
|
-
|
|
194
|
+
await sendTelemetryError(subError, eventType, options, blocking, error);
|
|
195
195
|
}
|
|
196
196
|
} catch {
|
|
197
197
|
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
versions_default
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X4YDIHYE.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picomatch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WKC523P7.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZKB7MQRR.js";
|
|
21
21
|
import {
|
|
22
22
|
any,
|
|
23
23
|
from,
|
|
24
24
|
invariant,
|
|
25
25
|
up,
|
|
26
26
|
up2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3TW66YXG.js";
|
|
28
28
|
import {
|
|
29
29
|
importModule,
|
|
30
30
|
resolveModulePath,
|
|
31
31
|
resolvePackageDir,
|
|
32
32
|
safeResolveModule
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2OC7H5MZ.js";
|
|
34
34
|
import {
|
|
35
35
|
join,
|
|
36
36
|
parse,
|
|
37
37
|
resolve
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7B4JYHGV.js";
|
|
39
39
|
import {
|
|
40
40
|
glob,
|
|
41
41
|
globSync
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-3K6P75SS.js";
|
|
43
43
|
import {
|
|
44
44
|
slash
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LOXLI4XT.js";
|
|
46
46
|
import {
|
|
47
47
|
require_dist
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-TTGXODEY.js";
|
|
49
49
|
import {
|
|
50
50
|
require_picocolors
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2KSITKBI.js";
|
|
52
52
|
import {
|
|
53
53
|
__commonJS,
|
|
54
54
|
__esm,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
__require,
|
|
57
57
|
__toCommonJS,
|
|
58
58
|
__toESM
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-5WQXPM6D.js";
|
|
60
60
|
|
|
61
61
|
// ../../node_modules/resolve/lib/homedir.js
|
|
62
62
|
var require_homedir = __commonJS({
|
|
@@ -11103,7 +11103,7 @@ function normalizeStoryPath(filename) {
|
|
|
11103
11103
|
|
|
11104
11104
|
// src/common/utils/envs.ts
|
|
11105
11105
|
async function loadEnvs(options = {}) {
|
|
11106
|
-
let { getEnvironment } = await import("./lib-
|
|
11106
|
+
let { getEnvironment } = await import("./lib-YCGXIMW5.js"), defaultNodeEnv = options.production ? "production" : "development", baseEnv = {
|
|
11107
11107
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
11108
11108
|
NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
|
|
11109
11109
|
NODE_PATH: process.env.NODE_PATH || "",
|
|
@@ -11113,18 +11113,18 @@ async function loadEnvs(options = {}) {
|
|
|
11113
11113
|
// even when deployed inside a subpath. (like in GitHub pages)
|
|
11114
11114
|
// In development this is just empty as we always serves from the root.
|
|
11115
11115
|
PUBLIC_URL: options.production ? "." : ""
|
|
11116
|
-
}
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
(
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
};
|
|
11116
|
+
}, dotenv = getEnvironment({ nodeEnv: baseEnv.NODE_ENV }), envEntries = Object.fromEntries(
|
|
11117
|
+
Object.entries({
|
|
11118
|
+
// TODO: it seems wrong that dotenv overrides process.env, but that's how it has always worked
|
|
11119
|
+
...process.env,
|
|
11120
|
+
...dotenv.raw
|
|
11121
|
+
}).filter(([name]) => /^STORYBOOK_/.test(name))
|
|
11122
|
+
), raw = { ...baseEnv, ...envEntries };
|
|
11123
|
+
raw.NODE_PATH = nodePathsToArray(raw.NODE_PATH || "");
|
|
11124
|
+
let stringified = Object.fromEntries(
|
|
11125
|
+
Object.entries(raw).map(([key, value]) => [key, JSON.stringify(value)])
|
|
11126
|
+
);
|
|
11127
|
+
return { raw, stringified };
|
|
11128
11128
|
}
|
|
11129
11129
|
var stringifyEnvs = (raw) => Object.entries(raw).reduce((acc, [key, value]) => (acc[key] = JSON.stringify(value), acc), {}), stringifyProcessEnvs = (raw) => Object.entries(raw).reduce((acc, [key, value]) => (acc[`process.env.${key}`] = JSON.stringify(value), acc), {}), optionalEnvToBoolean = (input) => {
|
|
11130
11130
|
if (input !== void 0)
|
|
@@ -14770,7 +14770,7 @@ async function scanAndTransformFiles({
|
|
|
14770
14770
|
initialValue: defaultGlob
|
|
14771
14771
|
});
|
|
14772
14772
|
logger13.log("Scanning for affected files...");
|
|
14773
|
-
let globby = (await import("./globby-
|
|
14773
|
+
let globby = (await import("./globby-FWMT4OOQ.js")).globby, sourceFiles = await globby([glob2], {
|
|
14774
14774
|
...commonGlobOptions(""),
|
|
14775
14775
|
ignore: ["**/node_modules/**"],
|
|
14776
14776
|
dot: !0,
|
|
@@ -14791,7 +14791,7 @@ function transformImports(source, renamedImports) {
|
|
|
14791
14791
|
return hasChanges ? transformed : null;
|
|
14792
14792
|
}
|
|
14793
14793
|
var transformImportFiles = async (files, renamedImports, dryRun) => {
|
|
14794
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
14794
|
+
let errors = [], { default: pLimit } = await import("./p-limit-UJIYI4QT.js"), limit = pLimit(10);
|
|
14795
14795
|
return await Promise.all(
|
|
14796
14796
|
files.map(
|
|
14797
14797
|
(file) => limit(async () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_teykolgptq.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5WQXPM6D.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/slash/index.js
|
|
14
|
+
function slash(path) {
|
|
15
|
+
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
slash
|
|
20
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q6WPGVIW.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TTGXODEY.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2KSITKBI.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5WQXPM6D.js";
|
|
24
24
|
|
|
25
25
|
// src/server-errors.ts
|
|
26
26
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -229,7 +229,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
229
229
|
name: "GoogleFontsDownloadError",
|
|
230
230
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
231
231
|
code: 1,
|
|
232
|
-
documentation: "https://
|
|
232
|
+
documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
233
233
|
message: import_ts_dedent.dedent`
|
|
234
234
|
Failed to fetch \`${data.fontFamily}\` from Google Fonts with URL: \`${data.url}\``
|
|
235
235
|
});
|
|
@@ -241,7 +241,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
241
241
|
name: "GoogleFontsLoadingError",
|
|
242
242
|
category: "FRAMEWORK_NEXTJS" /* FRAMEWORK_NEXTJS */,
|
|
243
243
|
code: 2,
|
|
244
|
-
documentation: "https://
|
|
244
|
+
documentation: "https://storybook.js.org/docs/get-started/frameworks/nextjs#nextjs-font-optimization",
|
|
245
245
|
message: import_ts_dedent.dedent`
|
|
246
246
|
An error occurred when trying to load Google Fonts with URL \`${data.url}\`.
|
|
247
247
|
|
|
@@ -286,11 +286,11 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
286
286
|
constructor(data) {
|
|
287
287
|
let map = {
|
|
288
288
|
storybook: {
|
|
289
|
-
helperMessage: "You can pass a --config-dir flag to tell Storybook, where your main.js file is located at.",
|
|
289
|
+
helperMessage: "You can pass a --config-dir flag to tell Storybook, where your main.js|ts file is located at.",
|
|
290
290
|
documentation: "https://storybook.js.org/docs/configure?ref=error"
|
|
291
291
|
},
|
|
292
292
|
vitest: {
|
|
293
|
-
helperMessage: "You can pass a configDir plugin option to tell where your main.js file is located at.",
|
|
293
|
+
helperMessage: "You can pass a configDir plugin option to tell where your main.js|ts file is located at.",
|
|
294
294
|
// TODO: add proper docs once available
|
|
295
295
|
documentation: "https://storybook.js.org/docs/configure?ref=error"
|
|
296
296
|
}
|
|
@@ -302,7 +302,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
302
302
|
documentation,
|
|
303
303
|
message: import_ts_dedent.dedent`
|
|
304
304
|
No configuration files have been found in your configDir: ${import_picocolors.default.yellow(data.location)}.
|
|
305
|
-
Storybook needs a "main.js" file, please add it.
|
|
305
|
+
Storybook needs a "main.js|ts" file, please add it.
|
|
306
306
|
|
|
307
307
|
${helperMessage}`
|
|
308
308
|
});
|
|
@@ -383,7 +383,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
383
383
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
384
384
|
isHandledError: !0,
|
|
385
385
|
code: 7,
|
|
386
|
-
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
386
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
387
387
|
message: import_ts_dedent.dedent`
|
|
388
388
|
Found an existing Vitest setup file: ${data.filePath}
|
|
389
389
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -398,7 +398,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
398
398
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
399
399
|
isHandledError: !0,
|
|
400
400
|
code: 8,
|
|
401
|
-
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
401
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
402
402
|
message: import_ts_dedent.dedent`
|
|
403
403
|
Could not update existing Vitest workspace file: ${data.filePath}
|
|
404
404
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -413,7 +413,7 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
413
413
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
414
414
|
isHandledError: !0,
|
|
415
415
|
code: 9,
|
|
416
|
-
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
416
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup-advanced",
|
|
417
417
|
message: import_ts_dedent.dedent`
|
|
418
418
|
Unable to update existing Vitest config file: ${data.filePath}
|
|
419
419
|
Please refer to the documentation to complete the setup manually.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5WQXPM6D.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
any
|
|
14
|
+
} from "./chunk-3TW66YXG.js";
|
|
15
|
+
|
|
16
|
+
// src/cli/detect.ts
|
|
17
|
+
async function detectPnp() {
|
|
18
|
+
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
detectPnp
|
|
23
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
__require
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5WQXPM6D.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
17
17
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __require2 = ((x) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(x, {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TTGXODEY.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5WQXPM6D.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_teykolgptq.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5WQXPM6D.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.2.0-alpha.8",
|
|
16
|
+
"@storybook/addon-docs": "10.2.0-alpha.8",
|
|
17
|
+
"@storybook/addon-links": "10.2.0-alpha.8",
|
|
18
|
+
"@storybook/addon-onboarding": "10.2.0-alpha.8",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.2.0-alpha.8",
|
|
20
|
+
"@storybook/addon-themes": "10.2.0-alpha.8",
|
|
21
|
+
"@storybook/addon-vitest": "10.2.0-alpha.8",
|
|
22
|
+
"@storybook/builder-vite": "10.2.0-alpha.8",
|
|
23
|
+
"@storybook/builder-webpack5": "10.2.0-alpha.8",
|
|
24
|
+
storybook: "10.2.0-alpha.8",
|
|
25
|
+
"@storybook/angular": "10.2.0-alpha.8",
|
|
26
|
+
"@storybook/ember": "10.2.0-alpha.8",
|
|
27
|
+
"@storybook/html-vite": "10.2.0-alpha.8",
|
|
28
|
+
"@storybook/nextjs": "10.2.0-alpha.8",
|
|
29
|
+
"@storybook/nextjs-vite": "10.2.0-alpha.8",
|
|
30
|
+
"@storybook/preact-vite": "10.2.0-alpha.8",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.2.0-alpha.8",
|
|
32
|
+
"@storybook/react-vite": "10.2.0-alpha.8",
|
|
33
|
+
"@storybook/react-webpack5": "10.2.0-alpha.8",
|
|
34
|
+
"@storybook/server-webpack5": "10.2.0-alpha.8",
|
|
35
|
+
"@storybook/svelte-vite": "10.2.0-alpha.8",
|
|
36
|
+
"@storybook/sveltekit": "10.2.0-alpha.8",
|
|
37
|
+
"@storybook/vue3-vite": "10.2.0-alpha.8",
|
|
38
|
+
"@storybook/web-components-vite": "10.2.0-alpha.8",
|
|
39
|
+
sb: "10.2.0-alpha.8",
|
|
40
|
+
"@storybook/cli": "10.2.0-alpha.8",
|
|
41
|
+
"@storybook/codemod": "10.2.0-alpha.8",
|
|
42
|
+
"@storybook/core-webpack": "10.2.0-alpha.8",
|
|
43
|
+
"create-storybook": "10.2.0-alpha.8",
|
|
44
|
+
"@storybook/csf-plugin": "10.2.0-alpha.8",
|
|
45
|
+
"eslint-plugin-storybook": "10.2.0-alpha.8",
|
|
46
|
+
"@storybook/react-dom-shim": "10.2.0-alpha.8",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.2.0-alpha.8",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.2.0-alpha.8",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.2.0-alpha.8",
|
|
50
|
+
"@storybook/html": "10.2.0-alpha.8",
|
|
51
|
+
"@storybook/preact": "10.2.0-alpha.8",
|
|
52
|
+
"@storybook/react": "10.2.0-alpha.8",
|
|
53
|
+
"@storybook/server": "10.2.0-alpha.8",
|
|
54
|
+
"@storybook/svelte": "10.2.0-alpha.8",
|
|
55
|
+
"@storybook/vue3": "10.2.0-alpha.8",
|
|
56
|
+
"@storybook/web-components": "10.2.0-alpha.8"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3bfbtrdgjix from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3bfbtrdgjix from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3bfbtrdgjix from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3bfbtrdgjix.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3bfbtrdgjix.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3bfbtrdgjix.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
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2KSITKBI.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5WQXPM6D.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
23
23
|
var require_tracker_base = __commonJS({
|