storybook 10.2.0-alpha.2 → 10.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{chunk-Y6HZAT53.js → chunk-HX32VQZR.js} +1 -1
- package/dist/_browser-chunks/{chunk-FQ7SLVLR.js → chunk-JVRDBUUP.js} +20 -1
- package/dist/_browser-chunks/{chunk-MOYJJEXA.js → chunk-Q5RYDXT3.js} +3 -4
- package/dist/_browser-chunks/{chunk-DOSERVNW.js → chunk-UXVP56J6.js} +1 -1
- package/dist/_browser-chunks/{chunk-GFY5R5EY.js → chunk-V5NV5R37.js} +1 -1
- package/dist/_node-chunks/{builder-manager-ZK4QXZNX.js → builder-manager-UYH5WXWQ.js} +12 -12
- package/dist/_node-chunks/{camelcase-QWQG7I72.js → camelcase-VC2MI4D3.js} +7 -7
- package/dist/_node-chunks/{chunk-TOXVUAH2.js → chunk-2LVUTXDF.js} +6 -6
- package/dist/_node-chunks/chunk-2ZQ6Y2UX.js +18 -0
- package/dist/_node-chunks/{chunk-QFSK4B7R.js → chunk-3SB46FMB.js} +8 -8
- package/dist/_node-chunks/{chunk-WUKWNPSQ.js → chunk-5IKN22PK.js} +9 -9
- package/dist/_node-chunks/{chunk-UWJ4BOOL.js → chunk-5Y2B5Y2I.js} +9 -9
- package/dist/_node-chunks/{chunk-2AFVBCGF.js → chunk-6DSSKDEB.js} +6 -6
- package/dist/_node-chunks/{chunk-I5TOD3AY.js → chunk-6RZ6ESPF.js} +12 -12
- package/dist/_node-chunks/{chunk-WOS3OQVT.js → chunk-6XCE5DKF.js} +26 -7
- package/dist/_node-chunks/{chunk-XFU23B4C.js → chunk-AEF4OCMB.js} +7 -7
- package/dist/_node-chunks/chunk-ATFXKLVA.js +61 -0
- package/dist/_node-chunks/{chunk-RGQC4G3L.js → chunk-BRVASHE4.js} +21 -17
- package/dist/_node-chunks/{chunk-GKEAARBQ.js → chunk-BXGPI53U.js} +6 -6
- package/dist/_node-chunks/{chunk-OV2CP4VV.js → chunk-CSLYLE5Z.js} +6 -6
- package/dist/_node-chunks/{chunk-6OZRMRVO.js → chunk-EGGWMXFM.js} +7 -7
- package/dist/_node-chunks/{chunk-FZFZ5TOM.js → chunk-HATD2DIT.js} +6 -6
- package/dist/_node-chunks/{chunk-DWVHBQGR.js → chunk-I6C74YGE.js} +8 -8
- package/dist/_node-chunks/chunk-IXZ54TG6.js +20 -0
- package/dist/_node-chunks/chunk-JUQFZI7H.js +23 -0
- package/dist/_node-chunks/{chunk-KVNLJSAB.js → chunk-KLBUL53W.js} +7 -7
- package/dist/_node-chunks/{chunk-URBB5EGY.js → chunk-NCENIJPW.js} +7 -7
- package/dist/_node-chunks/{chunk-NKOHF7TQ.js → chunk-OBFKPAHB.js} +72 -11
- package/dist/_node-chunks/{chunk-5VZMCPTH.js → chunk-OW656GJO.js} +43 -27
- package/dist/_node-chunks/{chunk-Q5ZQH2OQ.js → chunk-S3WG5D7I.js} +7 -7
- package/dist/_node-chunks/{chunk-CW7HJRCY.js → chunk-THYQIUTI.js} +7 -7
- package/dist/_node-chunks/{chunk-EXZXVBZO.js → chunk-VHJPAZFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VJPI73BB.js → chunk-VJ5C7NTM.js} +59 -26
- package/dist/_node-chunks/{chunk-HMFROKHU.js → chunk-WI5ZJAAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-R2J3OB3H.js → chunk-X6TQDZZW.js} +6 -6
- package/dist/_node-chunks/{dist-UBFMIJZC.js → dist-ZK2DO62Y.js} +9 -9
- package/dist/_node-chunks/{globby-VD3CGPVI.js → globby-3NVGNGRX.js} +9 -9
- package/dist/_node-chunks/{lib-MMJB47J3.js → lib-ALOTNL3B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3J2G7NZZ.js → mdx-N42X6CFJ-AVHGVFIO.js} +8 -8
- package/dist/_node-chunks/{p-limit-SOBWTEVH.js → p-limit-JMHEGI5E.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.d.ts +68 -1
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf/index.js +1 -1
- package/dist/csf-tools/index.js +9 -9
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +3122 -3018
- package/dist/manager-api/index.js +4 -4
- package/dist/manager-errors.d.ts +24 -0
- package/dist/manager-errors.js +2 -2
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +727 -623
- package/dist/preview-api/index.js +1 -1
- package/dist/preview-errors.d.ts +24 -0
- package/dist/preview-errors.js +2 -2
- package/dist/server-errors.d.ts +59 -3
- package/dist/server-errors.js +22 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +370 -286
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CLCLRZYL.js +0 -61
- package/dist/_node-chunks/chunk-DF3QP62W.js +0 -18
- package/dist/_node-chunks/chunk-EVBCPGQO.js +0 -20
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +0 -23
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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-ATFXKLVA.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picomatch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WI5ZJAAJ.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I6C74YGE.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-BXGPI53U.js";
|
|
28
28
|
import {
|
|
29
29
|
importModule,
|
|
30
30
|
resolveModulePath,
|
|
31
31
|
resolvePackageDir,
|
|
32
32
|
safeResolveModule
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NCENIJPW.js";
|
|
34
34
|
import {
|
|
35
35
|
join,
|
|
36
36
|
parse,
|
|
37
37
|
resolve
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-CSLYLE5Z.js";
|
|
39
39
|
import {
|
|
40
40
|
glob,
|
|
41
41
|
globSync
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KLBUL53W.js";
|
|
43
43
|
import {
|
|
44
44
|
slash
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-IXZ54TG6.js";
|
|
46
46
|
import {
|
|
47
47
|
require_dist
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-THYQIUTI.js";
|
|
49
49
|
import {
|
|
50
50
|
require_picocolors
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AEF4OCMB.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-2LVUTXDF.js";
|
|
60
60
|
|
|
61
61
|
// ../../node_modules/resolve/lib/homedir.js
|
|
62
62
|
var require_homedir = __commonJS({
|
|
@@ -10155,9 +10155,26 @@ async function loadAllPresets(options) {
|
|
|
10155
10155
|
// src/common/utils/file-cache.ts
|
|
10156
10156
|
import { createHash, randomBytes } from "node:crypto";
|
|
10157
10157
|
import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
10158
|
-
import { readFile, readdir, rm
|
|
10158
|
+
import { mkdir, readFile, readdir, rm } from "node:fs/promises";
|
|
10159
10159
|
import { tmpdir } from "node:os";
|
|
10160
10160
|
import { join as join2 } from "node:path";
|
|
10161
|
+
|
|
10162
|
+
// src/common/utils/write-file-with-retry.ts
|
|
10163
|
+
import { writeFile } from "node:fs/promises";
|
|
10164
|
+
async function writeFileWithRetry(file, data, options) {
|
|
10165
|
+
for (let attempt = 1; attempt <= 5; attempt++)
|
|
10166
|
+
try {
|
|
10167
|
+
await writeFile(file, data, options);
|
|
10168
|
+
return;
|
|
10169
|
+
} catch (err) {
|
|
10170
|
+
if (attempt < 5 && err instanceof Error && "code" in err && err.code === "EBUSY")
|
|
10171
|
+
await new Promise((resolve11) => setTimeout(resolve11, 100));
|
|
10172
|
+
else
|
|
10173
|
+
throw err;
|
|
10174
|
+
}
|
|
10175
|
+
}
|
|
10176
|
+
|
|
10177
|
+
// src/common/utils/file-cache.ts
|
|
10161
10178
|
var FileSystemCache = class {
|
|
10162
10179
|
constructor(options = {}) {
|
|
10163
10180
|
this.prefix = (options.ns || options.prefix || "") + "-", this.hash_alg = options.hash_alg || "sha256", this.cache_dir = options.basePath || join2(tmpdir(), randomBytes(15).toString("base64").replace(/\//g, "-")), this.ttl = options.ttl || 0, createHash(this.hash_alg), mkdirSync(this.cache_dir, { recursive: !0 });
|
|
@@ -10194,7 +10211,7 @@ var FileSystemCache = class {
|
|
|
10194
10211
|
}
|
|
10195
10212
|
async set(name, data, orgOpts = {}) {
|
|
10196
10213
|
let opts = typeof orgOpts == "number" ? { ttl: orgOpts } : orgOpts;
|
|
10197
|
-
|
|
10214
|
+
await mkdir(this.cache_dir, { recursive: !0 }), await writeFileWithRetry(this.generateHash(name), this.parseSetData(name, data, opts), {
|
|
10198
10215
|
encoding: opts.encoding || "utf8"
|
|
10199
10216
|
});
|
|
10200
10217
|
}
|
|
@@ -11086,7 +11103,7 @@ function normalizeStoryPath(filename) {
|
|
|
11086
11103
|
|
|
11087
11104
|
// src/common/utils/envs.ts
|
|
11088
11105
|
async function loadEnvs(options = {}) {
|
|
11089
|
-
let { getEnvironment } = await import("./lib-
|
|
11106
|
+
let { getEnvironment } = await import("./lib-ALOTNL3B.js"), defaultNodeEnv = options.production ? "production" : "development", env2 = {
|
|
11090
11107
|
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
11091
11108
|
NODE_ENV: process.env.NODE_ENV || defaultNodeEnv,
|
|
11092
11109
|
NODE_PATH: process.env.NODE_PATH || "",
|
|
@@ -11716,6 +11733,7 @@ var rendererPackages = {
|
|
|
11716
11733
|
"@storybook/svelte": SupportedRenderer2.SVELTE,
|
|
11717
11734
|
"@storybook/preact": SupportedRenderer2.PREACT,
|
|
11718
11735
|
"@storybook/server": SupportedRenderer2.SERVER,
|
|
11736
|
+
"@storybook/react-native": SupportedRenderer2.REACT_NATIVE,
|
|
11719
11737
|
// community (outside of monorepo)
|
|
11720
11738
|
"storybook-framework-qwik": SupportedRenderer2.QWIK,
|
|
11721
11739
|
"storybook-solidjs-vite": SupportedRenderer2.SOLID
|
|
@@ -12134,10 +12152,25 @@ function satisfies2() {
|
|
|
12134
12152
|
|
|
12135
12153
|
// src/common/utils/formatter.ts
|
|
12136
12154
|
async function getPrettier() {
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12155
|
+
try {
|
|
12156
|
+
return await import("prettier");
|
|
12157
|
+
} catch {
|
|
12158
|
+
return {
|
|
12159
|
+
AstPath: class {
|
|
12160
|
+
},
|
|
12161
|
+
doc: {},
|
|
12162
|
+
util: {},
|
|
12163
|
+
version: "0.0.0-fallback",
|
|
12164
|
+
resolveConfig: async () => null,
|
|
12165
|
+
format: (content) => Promise.resolve(content),
|
|
12166
|
+
check: () => Promise.resolve(!1),
|
|
12167
|
+
clearConfigCache: () => Promise.resolve(void 0),
|
|
12168
|
+
formatWithCursor: () => Promise.resolve({ formatted: "", cursorOffset: 0 }),
|
|
12169
|
+
getFileInfo: async () => ({ ignored: !1, inferredParser: null }),
|
|
12170
|
+
getSupportInfo: () => Promise.resolve({ languages: [], options: [] }),
|
|
12171
|
+
resolveConfigFile: async () => null
|
|
12172
|
+
};
|
|
12173
|
+
}
|
|
12141
12174
|
}
|
|
12142
12175
|
async function formatFileContent(filePath, content) {
|
|
12143
12176
|
try {
|
|
@@ -14737,7 +14770,7 @@ async function scanAndTransformFiles({
|
|
|
14737
14770
|
initialValue: defaultGlob
|
|
14738
14771
|
});
|
|
14739
14772
|
logger13.log("Scanning for affected files...");
|
|
14740
|
-
let globby = (await import("./globby-
|
|
14773
|
+
let globby = (await import("./globby-3NVGNGRX.js")).globby, sourceFiles = await globby([glob2], {
|
|
14741
14774
|
...commonGlobOptions(""),
|
|
14742
14775
|
ignore: ["**/node_modules/**"],
|
|
14743
14776
|
dot: !0,
|
|
@@ -14758,7 +14791,7 @@ function transformImports(source, renamedImports) {
|
|
|
14758
14791
|
return hasChanges ? transformed : null;
|
|
14759
14792
|
}
|
|
14760
14793
|
var transformImportFiles = async (files, renamedImports, dryRun) => {
|
|
14761
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
14794
|
+
let errors = [], { default: pLimit } = await import("./p-limit-JMHEGI5E.js"), limit = pLimit(10);
|
|
14762
14795
|
return await Promise.all(
|
|
14763
14796
|
files.map(
|
|
14764
14797
|
(file) => limit(async () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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_wtqlduo6et.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2LVUTXDF.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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
|
toEstree
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-VHJPAZFZ.js";
|
|
15
|
+
import "./chunk-2LVUTXDF.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/@storybook/docs-mdx/dist/index.js
|
|
18
18
|
var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), getAttrValue = (elt, what) => getAttr(elt, what)?.value, getAttrLiteral = (elt, what) => {
|
|
@@ -107,7 +107,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
107
107
|
isTemplate: !1,
|
|
108
108
|
metaTags: void 0,
|
|
109
109
|
imports: void 0
|
|
110
|
-
}, { compile } = await import("./mdx-N42X6CFJ-
|
|
110
|
+
}, { compile } = await import("./mdx-N42X6CFJ-AVHGVFIO.js");
|
|
111
111
|
await compile(code, {
|
|
112
112
|
rehypePlugins: [[plugin, store]]
|
|
113
113
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_picomatch,
|
|
14
14
|
require_utils
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WI5ZJAAJ.js";
|
|
16
16
|
import {
|
|
17
17
|
slash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-IXZ54TG6.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2LVUTXDF.js";
|
|
24
24
|
|
|
25
25
|
// ../../node_modules/fast-glob/out/utils/array.js
|
|
26
26
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2LVUTXDF.js";
|
|
17
17
|
|
|
18
18
|
// ../../node_modules/app-root-dir/lib/index.js
|
|
19
19
|
var require_lib = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
position,
|
|
22
22
|
start,
|
|
23
23
|
toEstree
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-VHJPAZFZ.js";
|
|
25
|
+
import "./chunk-2LVUTXDF.js";
|
|
26
26
|
|
|
27
27
|
// ../../node_modules/@storybook/docs-mdx/dist/mdx-N42X6CFJ.js
|
|
28
28
|
import { default as default2 } from "path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-2LVUTXDF.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-5Y2B5Y2I.js";
|
|
26
|
+
import "../_node-chunks/chunk-EGGWMXFM.js";
|
|
27
|
+
import "../_node-chunks/chunk-AEF4OCMB.js";
|
|
28
|
+
import "../_node-chunks/chunk-2LVUTXDF.js";
|
|
29
29
|
var export_transformSync = import_core.transformSync;
|
|
30
30
|
export {
|
|
31
31
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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
|
version
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-2ZQ6Y2UX.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-5IKN22PK.js";
|
|
18
|
+
import "../_node-chunks/chunk-X6TQDZZW.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-THYQIUTI.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-AEF4OCMB.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-2LVUTXDF.js";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
|
@@ -2745,8 +2745,12 @@ var dev = async (cliOptions) => {
|
|
|
2745
2745
|
// src/bin/core.ts
|
|
2746
2746
|
addToGlobalContext("cliVersion", version);
|
|
2747
2747
|
var handleCommandFailure = async (logFilePath) => {
|
|
2748
|
-
|
|
2749
|
-
|
|
2748
|
+
try {
|
|
2749
|
+
let logFile = await logTracker.writeToFile(logFilePath);
|
|
2750
|
+
logger2.log(`Debug logs are written to: ${logFile}`);
|
|
2751
|
+
} catch {
|
|
2752
|
+
}
|
|
2753
|
+
logger2.outro("Storybook exited with an error"), process.exit(1);
|
|
2750
2754
|
}, command = (name) => program.command(name).option(
|
|
2751
2755
|
"--disable-telemetry",
|
|
2752
2756
|
"Disable sending telemetry data",
|
|
@@ -2763,10 +2767,12 @@ var handleCommandFailure = async (logFilePath) => {
|
|
|
2763
2767
|
` + String(e));
|
|
2764
2768
|
}
|
|
2765
2769
|
}).hook("postAction", async (command2) => {
|
|
2766
|
-
if (logTracker.shouldWriteLogsToFile)
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
+
if (logTracker.shouldWriteLogsToFile)
|
|
2771
|
+
try {
|
|
2772
|
+
let logFile = await logTracker.writeToFile(command2.getOptionValue("logfile"));
|
|
2773
|
+
logger2.outro(`Debug logs are written to: ${logFile}`);
|
|
2774
|
+
} catch {
|
|
2775
|
+
}
|
|
2770
2776
|
});
|
|
2771
2777
|
command("dev").option("-p, --port <number>", "Port to run Storybook", (str) => parseInt(str, 10)).option("-h, --host <string>", "Host to run Storybook").option("-c, --config-dir <dir-name>", "Directory where to load Storybook configurations from").option(
|
|
2772
2778
|
"--https",
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
versions_default
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-ATFXKLVA.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-NCENIJPW.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-CSLYLE5Z.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-THYQIUTI.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-2LVUTXDF.js";
|
|
28
28
|
|
|
29
29
|
// src/bin/dispatcher.ts
|
|
30
30
|
import { pathToFileURL } from "node:url";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-6DSSKDEB.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-THYQIUTI.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-2LVUTXDF.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_uzmhoq39aog from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_uzmhoq39aog from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_uzmhoq39aog from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_uzmhoq39aog.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_uzmhoq39aog.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_uzmhoq39aog.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-6RZ6ESPF.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-JUQFZI7H.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-5IKN22PK.js";
|
|
45
|
+
import "../_node-chunks/chunk-BXGPI53U.js";
|
|
46
|
+
import "../_node-chunks/chunk-NCENIJPW.js";
|
|
47
|
+
import "../_node-chunks/chunk-X6TQDZZW.js";
|
|
48
|
+
import "../_node-chunks/chunk-CSLYLE5Z.js";
|
|
49
|
+
import "../_node-chunks/chunk-THYQIUTI.js";
|
|
50
|
+
import "../_node-chunks/chunk-5Y2B5Y2I.js";
|
|
51
|
+
import "../_node-chunks/chunk-EGGWMXFM.js";
|
|
52
|
+
import "../_node-chunks/chunk-AEF4OCMB.js";
|
|
53
|
+
import "../_node-chunks/chunk-2LVUTXDF.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|