storybook 10.4.2 → 10.4.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-2GLGVABT.js → chunk-Q5EHHZ3R.js} +14 -1
- package/dist/_browser-chunks/{chunk-SZQXB3JV.js → chunk-V5EFL4BW.js} +8 -10
- package/dist/_node-chunks/{builder-manager-LFGO35U5.js → builder-manager-ML5UXL3U.js} +12 -12
- package/dist/_node-chunks/{camelcase-45NXQBQZ.js → camelcase-OQUPHNXH.js} +7 -7
- package/dist/_node-chunks/{chunk-FL7EBVLJ.js → chunk-3FBJJ3J7.js} +24 -24
- package/dist/_node-chunks/{chunk-L36PKDQP.js → chunk-3X73JSWN.js} +8 -8
- package/dist/_node-chunks/{chunk-6YHOQD7F.js → chunk-4CKOOAKX.js} +9 -9
- package/dist/_node-chunks/{chunk-HKR2K7HF.js → chunk-75LGFSSP.js} +6 -6
- package/dist/_node-chunks/{chunk-MLJ5DCGH.js → chunk-AVCEQXMX.js} +6 -6
- package/dist/_node-chunks/{chunk-IDGTLYPU.js → chunk-DKPTV7OY.js} +7 -7
- package/dist/_node-chunks/{chunk-QHMIIPJD.js → chunk-FS7UJHJO.js} +10 -10
- package/dist/_node-chunks/{chunk-R7BVFC2D.js → chunk-H3J77TM6.js} +6 -6
- package/dist/_node-chunks/{chunk-GD4AVVJ6.js → chunk-HT5O7ZWA.js} +8 -8
- package/dist/_node-chunks/{chunk-V4WSMXU3.js → chunk-L64YPGUF.js} +7 -7
- package/dist/_node-chunks/{chunk-O7TSSZXM.js → chunk-LGWDBQCF.js} +6 -6
- package/dist/_node-chunks/{chunk-AKZIDWJD.js → chunk-MI22B6QL.js} +19 -19
- package/dist/_node-chunks/{chunk-QGWCIQDL.js → chunk-NMZ2FUOR.js} +7 -7
- package/dist/_node-chunks/{chunk-ZFGCKAOI.js → chunk-NXMYSVH6.js} +12 -12
- package/dist/_node-chunks/chunk-ONBWXGRU.js +84 -0
- package/dist/_node-chunks/{chunk-FODLNFCP.js → chunk-OOFBFCWG.js} +7 -7
- package/dist/_node-chunks/{chunk-7VTLE5YX.js → chunk-OPKU3YFW.js} +7 -7
- package/dist/_node-chunks/{chunk-VSZP3IVO.js → chunk-OPPP3ZVD.js} +9 -9
- package/dist/_node-chunks/{chunk-AFCIL7SS.js → chunk-Q6DQCNHY.js} +7 -7
- package/dist/_node-chunks/chunk-RLSKSEJD.js +18 -0
- package/dist/_node-chunks/{chunk-C4WK5T7L.js → chunk-SIHYXN6T.js} +6 -6
- package/dist/_node-chunks/{chunk-TAYACG5Y.js → chunk-SSLFYQA4.js} +9 -9
- package/dist/_node-chunks/{chunk-ISPUBAVT.js → chunk-TPRFXFAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-PU4IASEN.js → chunk-TQLYOGGH.js} +19 -19
- package/dist/_node-chunks/{chunk-3MJQGFKY.js → chunk-ULZBLQ6I.js} +7 -7
- package/dist/_node-chunks/{chunk-BNXXMARY.js → chunk-UX445D4A.js} +6 -6
- package/dist/_node-chunks/{chunk-73L4GC4E.js → chunk-WVKUKJCY.js} +9 -9
- package/dist/_node-chunks/{chunk-JJ2VMJ7Z.js → chunk-X7PI2AKG.js} +6 -6
- package/dist/_node-chunks/{chunk-7WEMCKHC.js → chunk-XZNPZNTE.js} +9 -9
- package/dist/_node-chunks/{chunk-3BNLXRMT.js → chunk-YELFZJ2B.js} +6 -6
- package/dist/_node-chunks/{globby-A5OBERQV.js → globby-W5ZVMK2K.js} +9 -9
- package/dist/_node-chunks/{lib-B44OSHMG.js → lib-RAUDNJ5V.js} +7 -7
- package/dist/_node-chunks/p-limit-RUP5WM5V.js +20 -0
- package/dist/_node-chunks/session-id-ZD2SDJCL.js +22 -0
- 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 +19 -19
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +16426 -16424
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +26 -26
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +11 -11
- package/dist/manager/runtime.js +24 -24
- package/dist/manager-api/index.js +6 -13
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.js +11 -11
- package/dist/oxc-parser/worker.js +11 -11
- package/dist/preview/runtime.js +10 -8
- package/dist/preview-api/index.d.ts +7 -2
- package/dist/preview-api/index.js +2 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +25 -25
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-BOVST5A6.js +0 -84
- package/dist/_node-chunks/chunk-U5UFYVZ7.js +0 -18
- package/dist/_node-chunks/p-limit-WM2X6HTW.js +0 -20
- package/dist/_node-chunks/session-id-U53AF2GP.js +0 -22
|
@@ -22,8 +22,21 @@ var Tag = {
|
|
|
22
22
|
_test: (entry, excluded) => excluded ? entry.type !== "story" || entry.subtype !== "test" : entry.type === "story" && entry.subtype === "test"
|
|
23
23
|
}, USER_TAG_FILTER = (tag) => (entry, excluded) => excluded ? !entry.tags?.includes(tag) : !!entry.tags?.includes(tag);
|
|
24
24
|
|
|
25
|
+
// src/shared/utils/story-index-filters.ts
|
|
26
|
+
var getActiveFilterCount = ({
|
|
27
|
+
includedTagFilters,
|
|
28
|
+
excludedTagFilters,
|
|
29
|
+
includedStatusFilters,
|
|
30
|
+
excludedStatusFilters
|
|
31
|
+
}) => (includedTagFilters?.length ?? 0) + (excludedTagFilters?.length ?? 0) + (includedStatusFilters?.length ?? 0) + (excludedStatusFilters?.length ?? 0), hasActiveFilters = (filters) => getActiveFilterCount(filters) > 0;
|
|
32
|
+
function isMdxEntry({ tags }) {
|
|
33
|
+
return tags?.includes(Tag.UNATTACHED_MDX) || tags?.includes(Tag.ATTACHED_MDX);
|
|
34
|
+
}
|
|
35
|
+
|
|
25
36
|
export {
|
|
26
37
|
Tag,
|
|
27
38
|
BUILT_IN_FILTERS,
|
|
28
|
-
USER_TAG_FILTER
|
|
39
|
+
USER_TAG_FILTER,
|
|
40
|
+
hasActiveFilters,
|
|
41
|
+
isMdxEntry
|
|
29
42
|
};
|
|
@@ -4,8 +4,9 @@ import {
|
|
|
4
4
|
waitForAnimations
|
|
5
5
|
} from "./chunk-MEXTPDJG.js";
|
|
6
6
|
import {
|
|
7
|
-
Tag
|
|
8
|
-
|
|
7
|
+
Tag,
|
|
8
|
+
isMdxEntry
|
|
9
|
+
} from "./chunk-Q5EHHZ3R.js";
|
|
9
10
|
import {
|
|
10
11
|
require_main
|
|
11
12
|
} from "./chunk-XLJZ7AOP.js";
|
|
@@ -2340,7 +2341,7 @@ var CsfDocsRender = class {
|
|
|
2340
2341
|
renderStoryToElement,
|
|
2341
2342
|
this.csfFiles
|
|
2342
2343
|
);
|
|
2343
|
-
return this.csfFiles.forEach((csfFile) => docsContext.attachCSFFile(csfFile)), docsContext;
|
|
2344
|
+
return this.csfFiles.forEach((csfFile) => docsContext.attachCSFFile(csfFile)), docsContext.filterByAutodocs = !isMdxEntry(this.entry), docsContext;
|
|
2344
2345
|
}
|
|
2345
2346
|
async renderToElement(canvasElement, renderStoryToElement) {
|
|
2346
2347
|
if (!this.story || !this.csfFiles)
|
|
@@ -2411,7 +2412,7 @@ var MdxDocsRender = class {
|
|
|
2411
2412
|
renderStoryToElement,
|
|
2412
2413
|
this.csfFiles
|
|
2413
2414
|
);
|
|
2414
|
-
return this.attachedCsfFile && docsContext.attachCSFFile(this.attachedCsfFile), docsContext;
|
|
2415
|
+
return this.attachedCsfFile && docsContext.attachCSFFile(this.attachedCsfFile), docsContext.filterByAutodocs = !isMdxEntry(this.entry), docsContext;
|
|
2415
2416
|
}
|
|
2416
2417
|
async renderToElement(canvasElement, renderStoryToElement) {
|
|
2417
2418
|
if (!this.exports || !this.csfFiles || !this.store.projectAnnotations)
|
|
@@ -2443,9 +2444,6 @@ function focusInInput(event) {
|
|
|
2443
2444
|
let target = event.composedPath && event.composedPath()[0] || event.target;
|
|
2444
2445
|
return /input|textarea/i.test(target.tagName) || target.getAttribute("contenteditable") !== null;
|
|
2445
2446
|
}
|
|
2446
|
-
function isMdxEntry({ tags }) {
|
|
2447
|
-
return tags?.includes(Tag.UNATTACHED_MDX) || tags?.includes(Tag.ATTACHED_MDX);
|
|
2448
|
-
}
|
|
2449
2447
|
function isStoryRender(r) {
|
|
2450
2448
|
return r.type === "story";
|
|
2451
2449
|
}
|
|
@@ -2637,7 +2635,7 @@ var PreviewWithSelection = class extends Preview {
|
|
|
2637
2635
|
isStoryRender(render) ? (invariant(!!render.story), this.storyRenders.push(render), this.currentRender.renderToElement(
|
|
2638
2636
|
this.view.prepareForStory(render.story)
|
|
2639
2637
|
)) : this.currentRender.renderToElement(
|
|
2640
|
-
this.view.prepareForDocs(),
|
|
2638
|
+
this.view.prepareForDocs({ scrollReset: storyIdChanged || viewModeChanged }),
|
|
2641
2639
|
// This argument is used for docs, which is currently only compatible with HTMLElements
|
|
2642
2640
|
this.renderStoryToElement.bind(this)
|
|
2643
2641
|
);
|
|
@@ -2820,8 +2818,8 @@ var { document: document3 } = global7, PREPARING_DELAY = 100, Mode = /* @__PURE_
|
|
|
2820
2818
|
storyRoot() {
|
|
2821
2819
|
return document3.getElementById("storybook-root");
|
|
2822
2820
|
}
|
|
2823
|
-
prepareForDocs() {
|
|
2824
|
-
return this.showMain(), this.showDocs(), this.applyLayout("fullscreen"), document3.documentElement.scrollTop = 0, document3.documentElement.scrollLeft = 0, this.docsRoot();
|
|
2821
|
+
prepareForDocs({ scrollReset = !0 } = {}) {
|
|
2822
|
+
return this.showMain(), this.showDocs(), this.applyLayout("fullscreen"), scrollReset && (document3.documentElement.scrollTop = 0, document3.documentElement.scrollLeft = 0), this.docsRoot();
|
|
2825
2823
|
}
|
|
2826
2824
|
docsRoot() {
|
|
2827
2825
|
return document3.getElementById("storybook-docs");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SIHYXN6T.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L64YPGUF.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ULZBLQ6I.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-75LGFSSP.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-X7PI2AKG.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-H3J77TM6.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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-H3J77TM6.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
require_picomatch,
|
|
14
14
|
toPath,
|
|
15
15
|
traversePathUp
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OOFBFCWG.js";
|
|
17
17
|
import {
|
|
18
18
|
versions_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ONBWXGRU.js";
|
|
20
20
|
import {
|
|
21
21
|
logger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3X73JSWN.js";
|
|
23
23
|
import {
|
|
24
24
|
BUN_LOCKFILE,
|
|
25
25
|
BUN_LOCKFILE_BINARY,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
findFilesUp,
|
|
30
30
|
getProjectRoot,
|
|
31
31
|
normalizeStoryPath
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OPPP3ZVD.js";
|
|
33
33
|
import {
|
|
34
34
|
any,
|
|
35
35
|
detectIndent,
|
|
@@ -37,31 +37,31 @@ import {
|
|
|
37
37
|
invariant,
|
|
38
38
|
up,
|
|
39
39
|
up2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LGWDBQCF.js";
|
|
41
41
|
import {
|
|
42
42
|
importModule,
|
|
43
43
|
resolveModulePath,
|
|
44
44
|
resolvePackageDir,
|
|
45
45
|
safeResolveModule
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-ULZBLQ6I.js";
|
|
47
47
|
import {
|
|
48
48
|
join,
|
|
49
49
|
parse,
|
|
50
50
|
resolve
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-75LGFSSP.js";
|
|
52
52
|
import {
|
|
53
53
|
require_dist
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-DKPTV7OY.js";
|
|
55
55
|
import {
|
|
56
56
|
require_picocolors
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-Q6DQCNHY.js";
|
|
58
58
|
import {
|
|
59
59
|
slash
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-X7PI2AKG.js";
|
|
61
61
|
import {
|
|
62
62
|
glob,
|
|
63
63
|
globSync
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-OPKU3YFW.js";
|
|
65
65
|
import {
|
|
66
66
|
__commonJS,
|
|
67
67
|
__esm,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
__require,
|
|
70
70
|
__toCommonJS,
|
|
71
71
|
__toESM
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-H3J77TM6.js";
|
|
73
73
|
|
|
74
74
|
// ../../node_modules/resolve/lib/homedir.js
|
|
75
75
|
var require_homedir = __commonJS({
|
|
@@ -17639,7 +17639,7 @@ async function scanAndTransformFiles({
|
|
|
17639
17639
|
initialValue: defaultGlob
|
|
17640
17640
|
});
|
|
17641
17641
|
logger16.log("Scanning for affected files...");
|
|
17642
|
-
let globby = (await import("./globby-
|
|
17642
|
+
let globby = (await import("./globby-W5ZVMK2K.js")).globby, sourceFiles = await globby([glob2], {
|
|
17643
17643
|
...commonGlobOptions(""),
|
|
17644
17644
|
ignore: ["**/node_modules/**"],
|
|
17645
17645
|
dot: !0,
|
|
@@ -17660,7 +17660,7 @@ function transformImports(source, renamedImports) {
|
|
|
17660
17660
|
return hasChanges ? transformed : null;
|
|
17661
17661
|
}
|
|
17662
17662
|
var transformImportFiles = async (files, renamedImports, dryRun) => {
|
|
17663
|
-
let errors = [], { default: pLimit } = await import("./p-limit-
|
|
17663
|
+
let errors = [], { default: pLimit } = await import("./p-limit-RUP5WM5V.js"), limit = pLimit(10);
|
|
17664
17664
|
return await Promise.all(
|
|
17665
17665
|
files.map(
|
|
17666
17666
|
(file) => limit(async () => {
|
|
@@ -17676,6 +17676,10 @@ var transformImportFiles = async (files, renamedImports, dryRun) => {
|
|
|
17676
17676
|
};
|
|
17677
17677
|
|
|
17678
17678
|
export {
|
|
17679
|
+
up3 as up,
|
|
17680
|
+
require_cross_spawn,
|
|
17681
|
+
execa,
|
|
17682
|
+
execaCommand,
|
|
17679
17683
|
supportedExtensions,
|
|
17680
17684
|
getInterpretedFile,
|
|
17681
17685
|
resolveImport,
|
|
@@ -17687,7 +17691,6 @@ export {
|
|
|
17687
17691
|
loadAllPresets,
|
|
17688
17692
|
FileSystemCache,
|
|
17689
17693
|
createFileSystemCache,
|
|
17690
|
-
up3 as up,
|
|
17691
17694
|
resolvePathInStorybookCache,
|
|
17692
17695
|
cache2 as cache,
|
|
17693
17696
|
temporaryDirectory,
|
|
@@ -17758,9 +17761,6 @@ export {
|
|
|
17758
17761
|
getAbsolutePathWrapperAsCallExpression,
|
|
17759
17762
|
wrapValueWithGetAbsolutePathWrapper,
|
|
17760
17763
|
setupAddonInConfig,
|
|
17761
|
-
require_cross_spawn,
|
|
17762
|
-
execa,
|
|
17763
|
-
execaCommand,
|
|
17764
17764
|
executeCommand,
|
|
17765
17765
|
executeCommandSync,
|
|
17766
17766
|
executeNodeCommand,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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-Q6DQCNHY.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-H3J77TM6.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_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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_d4v6y6ql4n5.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_lib,
|
|
14
14
|
require_src
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SSLFYQA4.js";
|
|
16
16
|
import {
|
|
17
17
|
require_picocolors
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q6DQCNHY.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-H3J77TM6.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_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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-H3J77TM6.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/ts-dedent/dist/index.js
|
|
17
17
|
var require_dist = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,16 +12,16 @@ var require = CJS_COMPAT_NODE_MODULE_d4v6y6ql4n5.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
StatusTypeIdMismatchError,
|
|
14
14
|
StorybookError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XZNPZNTE.js";
|
|
16
16
|
import {
|
|
17
17
|
any
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LGWDBQCF.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DKPTV7OY.js";
|
|
22
22
|
import {
|
|
23
23
|
__toESM
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H3J77TM6.js";
|
|
25
25
|
|
|
26
26
|
// src/cli/detect.ts
|
|
27
27
|
async function detectPnp() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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-DKPTV7OY.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H3J77TM6.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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_d4v6y6ql4n5.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-H3J77TM6.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.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_pt912roydgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_pt912roydgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_pt912roydgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_pt912roydgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_pt912roydgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_pt912roydgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,17 +12,17 @@ var require = CJS_COMPAT_NODE_MODULE_d4v6y6ql4n5.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
getSessionId,
|
|
14
14
|
nanoid
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AVCEQXMX.js";
|
|
16
16
|
import {
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RLSKSEJD.js";
|
|
19
19
|
import {
|
|
20
20
|
createFileSystemCache,
|
|
21
21
|
execa,
|
|
22
22
|
execaCommand,
|
|
23
23
|
resolvePathInStorybookCache,
|
|
24
24
|
up
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3FBJJ3J7.js";
|
|
26
26
|
import {
|
|
27
27
|
DATA_FETCHING_PACKAGES,
|
|
28
28
|
I18N_PACKAGES,
|
|
@@ -33,23 +33,23 @@ import {
|
|
|
33
33
|
UI_LIBRARY_PACKAGES,
|
|
34
34
|
matchesPackagePattern,
|
|
35
35
|
set
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NMZ2FUOR.js";
|
|
37
37
|
import {
|
|
38
38
|
getProjectRoot
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OPPP3ZVD.js";
|
|
40
40
|
import {
|
|
41
41
|
globalSettings
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-WVKUKJCY.js";
|
|
43
43
|
import {
|
|
44
44
|
resolvePackageDir
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ULZBLQ6I.js";
|
|
46
46
|
import {
|
|
47
47
|
slash
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-X7PI2AKG.js";
|
|
49
49
|
import {
|
|
50
50
|
__commonJS,
|
|
51
51
|
__toESM
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-H3J77TM6.js";
|
|
53
53
|
|
|
54
54
|
// ../../node_modules/fetch-retry/index.js
|
|
55
55
|
var require_fetch_retry = __commonJS({
|
|
@@ -971,14 +971,14 @@ var retryingFetch = (0, import_fetch_retry.default)(fetch), URL = process.env.ST
|
|
|
971
971
|
nodeVersion: process.versions.node,
|
|
972
972
|
storybookVersion: getVersionNumber()
|
|
973
973
|
}, prepareRequest = async (data, context, options) => {
|
|
974
|
-
let { eventType, payload, metadata, ...rest } = data, sessionId = await getSessionId(), eventId = nanoid(), body = { ...rest, eventType, eventId, sessionId, metadata, payload, context };
|
|
974
|
+
let { eventType, payload, metadata, ...rest } = data, sessionId = await getSessionId(), eventId = nanoid(), body = { ...rest, eventType, eventId, sessionId, metadata, payload, context }, signal = AbortSignal.timeout(3e4), maxRetries = 3;
|
|
975
975
|
return retryingFetch(URL, {
|
|
976
976
|
method: "post",
|
|
977
977
|
body: JSON.stringify(body),
|
|
978
978
|
headers: { "Content-Type": "application/json" },
|
|
979
|
-
|
|
980
|
-
retryOn:
|
|
981
|
-
|
|
979
|
+
retryDelay: (attempt) => 2 ** attempt * (typeof options?.retryDelay == "number" && !Number.isNaN(options?.retryDelay) ? options.retryDelay : 1e3),
|
|
980
|
+
retryOn: (attempt, error, response) => signal.aborted || attempt >= maxRetries ? !1 : !!error || response?.status === 503 || response?.status === 504,
|
|
981
|
+
signal
|
|
982
982
|
});
|
|
983
983
|
};
|
|
984
984
|
function getVersionNumber() {
|