storybook 10.2.0-alpha.3 → 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/{_node-chunks/chunk-MUWHX7GN.js → _browser-chunks/chunk-JVRDBUUP.js} +20 -13
- 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-U6SN6ZED.js → builder-manager-UYH5WXWQ.js} +12 -12
- package/dist/_node-chunks/{camelcase-GLXVGCEV.js → camelcase-VC2MI4D3.js} +7 -7
- package/dist/_node-chunks/{chunk-4VZME5CV.js → chunk-2LVUTXDF.js} +6 -6
- package/dist/_node-chunks/chunk-2ZQ6Y2UX.js +18 -0
- package/dist/_node-chunks/{chunk-H4BZRGVO.js → chunk-3SB46FMB.js} +8 -8
- package/dist/_node-chunks/{chunk-5ZGZ22PV.js → chunk-5IKN22PK.js} +9 -9
- package/dist/_node-chunks/{chunk-HGYHQF7Z.js → chunk-5Y2B5Y2I.js} +9 -9
- package/dist/_node-chunks/{chunk-IKSK6CEY.js → chunk-6DSSKDEB.js} +6 -6
- package/dist/_node-chunks/{chunk-LHBDNMEP.js → chunk-6RZ6ESPF.js} +12 -12
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-6XCE5DKF.js} +32 -1
- package/dist/_node-chunks/{chunk-Q27GKV7Y.js → chunk-AEF4OCMB.js} +7 -7
- package/dist/_node-chunks/chunk-ATFXKLVA.js +61 -0
- package/dist/_node-chunks/{chunk-YPCGEC3N.js → chunk-BRVASHE4.js} +21 -17
- package/dist/_node-chunks/{chunk-HKTRFCJD.js → chunk-BXGPI53U.js} +6 -6
- package/dist/_node-chunks/{chunk-5SCVRD6U.js → chunk-CSLYLE5Z.js} +6 -6
- package/dist/_node-chunks/{chunk-HYH2IT7K.js → chunk-EGGWMXFM.js} +7 -7
- package/dist/_node-chunks/{chunk-KP6H4S3L.js → chunk-HATD2DIT.js} +6 -6
- package/dist/_node-chunks/{chunk-Q47IIVLL.js → chunk-I6C74YGE.js} +8 -8
- package/dist/_node-chunks/{chunk-B6AJKALV.js → chunk-IXZ54TG6.js} +6 -6
- package/dist/_node-chunks/chunk-JUQFZI7H.js +23 -0
- package/dist/_node-chunks/{chunk-NKUDIVPF.js → chunk-KLBUL53W.js} +7 -7
- package/dist/_node-chunks/{chunk-E6CKDKNL.js → chunk-NCENIJPW.js} +7 -7
- package/dist/_node-chunks/{chunk-DO56XDMZ.js → chunk-OBFKPAHB.js} +72 -11
- package/dist/_node-chunks/{chunk-SM7QXYN4.js → chunk-OW656GJO.js} +13 -13
- package/dist/_node-chunks/{chunk-6RXAFKLM.js → chunk-S3WG5D7I.js} +7 -7
- package/dist/_node-chunks/{chunk-N3O3HJMU.js → chunk-THYQIUTI.js} +7 -7
- package/dist/_node-chunks/{chunk-C2G5ML5F.js → chunk-VHJPAZFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-VKFEIIOF.js → chunk-VJ5C7NTM.js} +40 -22
- package/dist/_node-chunks/{chunk-2IFACTU4.js → chunk-WI5ZJAAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-XYVZIRZC.js → chunk-X6TQDZZW.js} +6 -6
- package/dist/_node-chunks/{dist-GGDI7EVD.js → dist-ZK2DO62Y.js} +9 -9
- package/dist/_node-chunks/{globby-DY2UCDKN.js → globby-3NVGNGRX.js} +9 -9
- package/dist/_node-chunks/{lib-PFKECSVA.js → lib-ALOTNL3B.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-OPAAI5WZ.js → mdx-N42X6CFJ-AVHGVFIO.js} +8 -8
- package/dist/_node-chunks/{p-limit-PMYE6ZFC.js → p-limit-JMHEGI5E.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.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.d.ts +68 -1
- package/dist/core-server/index.js +33 -33
- 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/manager/globals-runtime.js +21 -2
- 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.js +9 -9
- package/dist/preview/runtime.js +21 -2
- 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/package.json +1 -1
- package/dist/_node-chunks/chunk-6WHPDWFA.js +0 -61
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +0 -18
- package/dist/_node-chunks/chunk-O5OIO47U.js +0 -23
|
@@ -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,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
|
require_picocolors
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AEF4OCMB.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2LVUTXDF.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
23
23
|
var require_tracker_base = __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
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
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
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
any
|
|
14
|
+
} from "./chunk-BXGPI53U.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,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_2512dr0mzhu.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__toESM
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2LVUTXDF.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/balanced-match/index.js
|
|
18
18
|
var require_balanced_match = __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
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CSLYLE5Z.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,26 +1,26 @@
|
|
|
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
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6XCE5DKF.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-THYQIUTI.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AEF4OCMB.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2LVUTXDF.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);
|
|
@@ -365,6 +365,62 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
365
365
|
});
|
|
366
366
|
this.data = data;
|
|
367
367
|
}
|
|
368
|
+
}, AddonVitestPostinstallFailedAddonA11yError = class extends StorybookError {
|
|
369
|
+
constructor(data) {
|
|
370
|
+
super({
|
|
371
|
+
name: "AddonVitestPostinstallFailedAddonA11yError",
|
|
372
|
+
message: "The @storybook/addon-a11y couldn't be set up for the Vitest addon",
|
|
373
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
374
|
+
isHandledError: !0,
|
|
375
|
+
code: 6
|
|
376
|
+
});
|
|
377
|
+
this.data = data;
|
|
378
|
+
}
|
|
379
|
+
}, AddonVitestPostinstallExistingSetupFileError = class extends StorybookError {
|
|
380
|
+
constructor(data) {
|
|
381
|
+
super({
|
|
382
|
+
name: "AddonVitestPostinstallExistingSetupFileError",
|
|
383
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
384
|
+
isHandledError: !0,
|
|
385
|
+
code: 7,
|
|
386
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
387
|
+
message: import_ts_dedent.dedent`
|
|
388
|
+
Found an existing Vitest setup file: ${data.filePath}
|
|
389
|
+
Please refer to the documentation to complete the setup manually.
|
|
390
|
+
`
|
|
391
|
+
});
|
|
392
|
+
this.data = data;
|
|
393
|
+
}
|
|
394
|
+
}, AddonVitestPostinstallWorkspaceUpdateError = class extends StorybookError {
|
|
395
|
+
constructor(data) {
|
|
396
|
+
super({
|
|
397
|
+
name: "AddonVitestPostinstallWorkspaceUpdateError",
|
|
398
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
399
|
+
isHandledError: !0,
|
|
400
|
+
code: 8,
|
|
401
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
402
|
+
message: import_ts_dedent.dedent`
|
|
403
|
+
Could not update existing Vitest workspace file: ${data.filePath}
|
|
404
|
+
Please refer to the documentation to complete the setup manually.
|
|
405
|
+
`
|
|
406
|
+
});
|
|
407
|
+
this.data = data;
|
|
408
|
+
}
|
|
409
|
+
}, AddonVitestPostinstallConfigUpdateError = class extends StorybookError {
|
|
410
|
+
constructor(data) {
|
|
411
|
+
super({
|
|
412
|
+
name: "AddonVitestPostinstallConfigUpdateError",
|
|
413
|
+
category: "CLI_INIT" /* CLI_INIT */,
|
|
414
|
+
isHandledError: !0,
|
|
415
|
+
code: 9,
|
|
416
|
+
documentation: "https://storybook.js.org/docs/writing-tests/integrations/vitest-addon#manual-setup",
|
|
417
|
+
message: import_ts_dedent.dedent`
|
|
418
|
+
Unable to update existing Vitest config file: ${data.filePath}
|
|
419
|
+
Please refer to the documentation to complete the setup manually.
|
|
420
|
+
`
|
|
421
|
+
});
|
|
422
|
+
this.data = data;
|
|
423
|
+
}
|
|
368
424
|
}, AddonVitestPostinstallError = class extends StorybookError {
|
|
369
425
|
constructor(data) {
|
|
370
426
|
super({
|
|
@@ -372,7 +428,8 @@ var WebpackCompilationError = class extends StorybookError {
|
|
|
372
428
|
category: "CLI_INIT" /* CLI_INIT */,
|
|
373
429
|
isHandledError: !0,
|
|
374
430
|
code: 5,
|
|
375
|
-
message: "The Vitest addon setup failed."
|
|
431
|
+
message: "The Vitest addon setup failed.",
|
|
432
|
+
subErrors: data.errors
|
|
376
433
|
});
|
|
377
434
|
this.data = data;
|
|
378
435
|
}
|
|
@@ -528,6 +585,10 @@ export {
|
|
|
528
585
|
StatusTypeIdMismatchError,
|
|
529
586
|
GenerateNewProjectOnInitError,
|
|
530
587
|
AddonVitestPostinstallPrerequisiteCheckError,
|
|
588
|
+
AddonVitestPostinstallFailedAddonA11yError,
|
|
589
|
+
AddonVitestPostinstallExistingSetupFileError,
|
|
590
|
+
AddonVitestPostinstallWorkspaceUpdateError,
|
|
591
|
+
AddonVitestPostinstallConfigUpdateError,
|
|
531
592
|
AddonVitestPostinstallError,
|
|
532
593
|
UpgradeStorybookToLowerVersionError,
|
|
533
594
|
UpgradeStorybookUnknownCurrentVersionError,
|
|
@@ -1,17 +1,17 @@
|
|
|
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 "./chunk-
|
|
14
|
+
} from "./chunk-2ZQ6Y2UX.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
17
|
execa,
|
|
@@ -19,25 +19,25 @@ import {
|
|
|
19
19
|
getProjectRoot,
|
|
20
20
|
resolvePathInStorybookCache,
|
|
21
21
|
up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VJ5C7NTM.js";
|
|
23
23
|
import {
|
|
24
24
|
getSessionId,
|
|
25
25
|
nanoid,
|
|
26
26
|
set
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HATD2DIT.js";
|
|
28
28
|
import {
|
|
29
29
|
globalSettings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5IKN22PK.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NCENIJPW.js";
|
|
34
34
|
import {
|
|
35
35
|
slash
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-IXZ54TG6.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2LVUTXDF.js";
|
|
41
41
|
|
|
42
42
|
// ../../node_modules/fetch-retry/index.js
|
|
43
43
|
var require_fetch_retry = __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
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
__commonJS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2LVUTXDF.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
__require
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2LVUTXDF.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,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
|
|
@@ -14752,7 +14770,7 @@ async function scanAndTransformFiles({
|
|
|
14752
14770
|
initialValue: defaultGlob
|
|
14753
14771
|
});
|
|
14754
14772
|
logger13.log("Scanning for affected files...");
|
|
14755
|
-
let globby = (await import("./globby-
|
|
14773
|
+
let globby = (await import("./globby-3NVGNGRX.js")).globby, sourceFiles = await globby([glob2], {
|
|
14756
14774
|
...commonGlobOptions(""),
|
|
14757
14775
|
ignore: ["**/node_modules/**"],
|
|
14758
14776
|
dot: !0,
|
|
@@ -14773,7 +14791,7 @@ function transformImports(source, renamedImports) {
|
|
|
14773
14791
|
return hasChanges ? transformed : null;
|
|
14774
14792
|
}
|
|
14775
14793
|
var transformImportFiles = async (files, renamedImports, dryRun) => {
|
|
14776
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
14794
|
+
let errors = [], { default: pLimit } = await import("./p-limit-JMHEGI5E.js"), limit = pLimit(10);
|
|
14777
14795
|
return await Promise.all(
|
|
14778
14796
|
files.map(
|
|
14779
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_2512dr0mzhu.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
|
});
|