storybook 10.2.0-alpha.3 → 10.2.0-alpha.5
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-OWA7PM5D.js} +13 -12
- package/dist/_node-chunks/{camelcase-GLXVGCEV.js → camelcase-2LEK4OOC.js} +7 -7
- package/dist/_node-chunks/{chunk-DO56XDMZ.js → chunk-3NPQ2Y77.js} +72 -11
- package/dist/_node-chunks/chunk-4P6JV5PD.js +61 -0
- package/dist/_node-chunks/{chunk-N3O3HJMU.js → chunk-53QZPC5B.js} +7 -7
- package/dist/_node-chunks/{chunk-LHBDNMEP.js → chunk-5MG7AO5M.js} +12 -12
- package/dist/_node-chunks/{chunk-HKTRFCJD.js → chunk-APNNQRRU.js} +6 -6
- package/dist/_node-chunks/{chunk-6RXAFKLM.js → chunk-BPLKNOG7.js} +7 -7
- package/dist/_node-chunks/{chunk-Q47IIVLL.js → chunk-FUGUVTSE.js} +8 -8
- package/dist/_node-chunks/{chunk-XYVZIRZC.js → chunk-HT3TF35B.js} +6 -6
- package/dist/_node-chunks/chunk-IMOJACVP.js +23 -0
- package/dist/_node-chunks/chunk-IV4K2PSX.js +18 -0
- package/dist/{_browser-chunks/chunk-FQ7SLVLR.js → _node-chunks/chunk-J7VMFLRZ.js} +32 -1
- package/dist/_node-chunks/{chunk-NKUDIVPF.js → chunk-JRJT7Q2N.js} +7 -7
- package/dist/_node-chunks/{chunk-B6AJKALV.js → chunk-LOJ6VLWV.js} +6 -6
- package/dist/_node-chunks/{chunk-E6CKDKNL.js → chunk-MJEVYN6O.js} +7 -7
- package/dist/_node-chunks/{chunk-KP6H4S3L.js → chunk-O72O5WMW.js} +7 -7
- package/dist/_node-chunks/{chunk-Q27GKV7Y.js → chunk-Q2N5EUMK.js} +7 -7
- package/dist/_node-chunks/{chunk-H4BZRGVO.js → chunk-Q4YMOGYF.js} +8 -8
- package/dist/_node-chunks/{chunk-YPCGEC3N.js → chunk-QUCPWX6N.js} +21 -17
- package/dist/_node-chunks/{chunk-5SCVRD6U.js → chunk-RJ6MVIQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-5ZGZ22PV.js → chunk-SKKDMIEL.js} +9 -9
- package/dist/_node-chunks/{chunk-2IFACTU4.js → chunk-TM67IYGR.js} +7 -7
- package/dist/_node-chunks/{chunk-4VZME5CV.js → chunk-TUFR2XYI.js} +6 -6
- package/dist/_node-chunks/{chunk-HGYHQF7Z.js → chunk-TX3LEYMY.js} +9 -9
- package/dist/_node-chunks/{chunk-IKSK6CEY.js → chunk-UIW2C2AI.js} +6 -6
- package/dist/_node-chunks/{chunk-SM7QXYN4.js → chunk-VG22ND3P.js} +13 -13
- package/dist/_node-chunks/{chunk-HYH2IT7K.js → chunk-WAM2AUH6.js} +7 -7
- package/dist/_node-chunks/{chunk-C2G5ML5F.js → chunk-WMGB2RD3.js} +7 -7
- package/dist/_node-chunks/{chunk-VKFEIIOF.js → chunk-ZRAJ6YTG.js} +40 -22
- package/dist/_node-chunks/{dist-GGDI7EVD.js → dist-KMT22HT2.js} +9 -9
- package/dist/_node-chunks/{globby-DY2UCDKN.js → globby-MSDE3LN6.js} +9 -9
- package/dist/_node-chunks/{lib-PFKECSVA.js → lib-2BTWTGXL.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-OPAAI5WZ.js → mdx-N42X6CFJ-RO5JQN35.js} +8 -8
- package/dist/_node-chunks/{p-limit-PMYE6ZFC.js → p-limit-6ZDUMRV5.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/components/index.js +10 -4
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.d.ts +68 -1
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-manager.js +1 -1
- 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 +35 -8
- package/dist/manager/runtime.js +20 -5
- 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 +30 -5
- 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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-RJ6MVIQ7.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,7 +16,7 @@ var operation = Promise.resolve(), setHelper = async (eventType, body) => {
|
|
|
16
16
|
let lastEvents = await cache.get("lastEvents") || {};
|
|
17
17
|
lastEvents[eventType] = { body, timestamp: Date.now() }, await cache.set("lastEvents", lastEvents);
|
|
18
18
|
}, set = async (eventType, body) => (await operation, operation = setHelper(eventType, body), operation);
|
|
19
|
-
var getLastEvents = async () => await cache.get("lastEvents") || {}, upgradeFields = (event) => {
|
|
19
|
+
var getLastEvents = async () => (await operation, await cache.get("lastEvents") || {}), upgradeFields = (event) => {
|
|
20
20
|
let { body, timestamp } = event;
|
|
21
21
|
return {
|
|
22
22
|
timestamp,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-TUFR2XYI.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-53QZPC5B.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TUFR2XYI.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-BPLKNOG7.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-J7VMFLRZ.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MJEVYN6O.js";
|
|
21
21
|
import {
|
|
22
22
|
relative
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RJ6MVIQ7.js";
|
|
24
24
|
import {
|
|
25
25
|
require_dist
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-53QZPC5B.js";
|
|
27
27
|
import {
|
|
28
28
|
require_picocolors
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Q2N5EUMK.js";
|
|
30
30
|
import {
|
|
31
31
|
__toESM
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-TUFR2XYI.js";
|
|
33
33
|
|
|
34
34
|
// src/core-server/utils/server-statics.ts
|
|
35
35
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -157,7 +157,7 @@ async function getErrorLevel({
|
|
|
157
157
|
let valueFromPrompt = await promptCrashReports();
|
|
158
158
|
return valueFromPrompt !== void 0 ? valueFromPrompt ? "full" : "error" : "full";
|
|
159
159
|
}
|
|
160
|
-
async function sendTelemetryError(_error, eventType, options, blocking = !0) {
|
|
160
|
+
async function sendTelemetryError(_error, eventType, options, blocking = !0, parent) {
|
|
161
161
|
try {
|
|
162
162
|
let errorLevel = "error";
|
|
163
163
|
try {
|
|
@@ -168,7 +168,7 @@ async function sendTelemetryError(_error, eventType, options, blocking = !0) {
|
|
|
168
168
|
let precedingUpgrade = await getPrecedingUpgrade(), error = _error, errorHash;
|
|
169
169
|
"message" in error ? errorHash = error.message ? oneWayHash(error.message) : "EMPTY_MESSAGE" : errorHash = "NO_MESSAGE";
|
|
170
170
|
let { code, name, category } = error;
|
|
171
|
-
await telemetry(
|
|
171
|
+
if (await telemetry(
|
|
172
172
|
"error",
|
|
173
173
|
{
|
|
174
174
|
code,
|
|
@@ -180,14 +180,18 @@ async function sendTelemetryError(_error, eventType, options, blocking = !0) {
|
|
|
180
180
|
error: errorLevel === "full" ? error : void 0,
|
|
181
181
|
errorHash,
|
|
182
182
|
// if we ever end up sending a non-error instance, we'd like to know
|
|
183
|
-
isErrorInstance: error instanceof Error
|
|
183
|
+
isErrorInstance: error instanceof Error,
|
|
184
|
+
// Include parent error information if this is a sub-error
|
|
185
|
+
...parent ? { parent: parent.fullErrorCode } : {}
|
|
184
186
|
},
|
|
185
187
|
{
|
|
186
188
|
immediate: !0,
|
|
187
189
|
configDir: options.cliOptions.configDir || options.presetOptions?.configDir,
|
|
188
190
|
enableCrashReports: errorLevel === "full"
|
|
189
191
|
}
|
|
190
|
-
)
|
|
192
|
+
), error instanceof StorybookError && error.subErrors.length > 0)
|
|
193
|
+
for (let subError of error.subErrors)
|
|
194
|
+
subError instanceof StorybookError && await sendTelemetryError(subError, eventType, options, blocking, error);
|
|
191
195
|
}
|
|
192
196
|
} catch {
|
|
193
197
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HT3TF35B.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-53QZPC5B.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TUFR2XYI.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/globalSettings.ts
|
|
24
24
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-TUFR2XYI.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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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_2512dr0mzhu.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_lib,
|
|
14
14
|
require_src
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WAM2AUH6.js";
|
|
16
16
|
import {
|
|
17
17
|
require_picocolors
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q2N5EUMK.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TUFR2XYI.js";
|
|
24
24
|
|
|
25
25
|
// ../../node_modules/@babel/types/lib/utils/shallowEqual.js
|
|
26
26
|
var require_shallowEqual = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-IV4K2PSX.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-ZRAJ6YTG.js";
|
|
23
23
|
import {
|
|
24
24
|
getSessionId,
|
|
25
25
|
nanoid,
|
|
26
26
|
set
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O72O5WMW.js";
|
|
28
28
|
import {
|
|
29
29
|
globalSettings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SKKDMIEL.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MJEVYN6O.js";
|
|
34
34
|
import {
|
|
35
35
|
slash
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LOJ6VLWV.js";
|
|
37
37
|
import {
|
|
38
38
|
__commonJS,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TUFR2XYI.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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-TUFR2XYI.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/ms/index.js
|
|
18
18
|
var require_ms = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-TUFR2XYI.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_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-4P6JV5PD.js";
|
|
15
15
|
import {
|
|
16
16
|
require_picomatch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TM67IYGR.js";
|
|
18
18
|
import {
|
|
19
19
|
logger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FUGUVTSE.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-APNNQRRU.js";
|
|
28
28
|
import {
|
|
29
29
|
importModule,
|
|
30
30
|
resolveModulePath,
|
|
31
31
|
resolvePackageDir,
|
|
32
32
|
safeResolveModule
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-MJEVYN6O.js";
|
|
34
34
|
import {
|
|
35
35
|
join,
|
|
36
36
|
parse,
|
|
37
37
|
resolve
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RJ6MVIQ7.js";
|
|
39
39
|
import {
|
|
40
40
|
glob,
|
|
41
41
|
globSync
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-JRJT7Q2N.js";
|
|
43
43
|
import {
|
|
44
44
|
slash
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LOJ6VLWV.js";
|
|
46
46
|
import {
|
|
47
47
|
require_dist
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-53QZPC5B.js";
|
|
49
49
|
import {
|
|
50
50
|
require_picocolors
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-Q2N5EUMK.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-TUFR2XYI.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-2BTWTGXL.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-MSDE3LN6.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-6ZDUMRV5.js"), limit = pLimit(10);
|
|
14777
14795
|
return await Promise.all(
|
|
14778
14796
|
files.map(
|
|
14779
14797
|
(file) => limit(async () => {
|