storybook 10.2.0-alpha.10 → 10.2.0-alpha.12
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-AFVOZMXQ.js +23 -0
- package/dist/_browser-chunks/{chunk-RBABWY22.js → chunk-BGSDJMFM.js} +6 -4
- package/dist/_node-chunks/{builder-manager-IL56SHZF.js → builder-manager-G3T6FATF.js} +13 -12
- package/dist/_node-chunks/{camelcase-P3NIWBZX.js → camelcase-NMVRRV6V.js} +7 -7
- package/dist/_node-chunks/chunk-BDTFFW43.js +18 -0
- package/dist/_node-chunks/chunk-ENNXNDBF.js +20 -0
- package/dist/_node-chunks/{chunk-KH2A547Y.js → chunk-EO2J5FE4.js} +8 -8
- package/dist/_node-chunks/{chunk-KP3IIE5P.js → chunk-ERDFVJJE.js} +15 -12
- package/dist/_node-chunks/{chunk-TAETXAN6.js → chunk-FXCJJSMM.js} +7 -7
- package/dist/_node-chunks/chunk-G4RT3MO3.js +35 -0
- package/dist/_node-chunks/{chunk-EKU7ASGO.js → chunk-HMDODR3W.js} +7 -7
- package/dist/_node-chunks/{chunk-XBDIQU4P.js → chunk-HSXHYDWU.js} +12 -12
- package/dist/_node-chunks/{chunk-YCQRVBE4.js → chunk-HVD2LZT3.js} +6 -6
- package/dist/_node-chunks/{chunk-MLCI5FPI.js → chunk-IQUZPWN3.js} +7 -7
- package/dist/_node-chunks/{chunk-D3YJHXPC.js → chunk-IW5UJQJL.js} +6 -6
- package/dist/_node-chunks/{chunk-SME7252C.js → chunk-KK73AHXT.js} +7 -7
- package/dist/_node-chunks/{chunk-E2KSZELU.js → chunk-LF7P2YRI.js} +7 -7
- package/dist/_node-chunks/{chunk-Z2ETF7EI.js → chunk-LMYWY6ZJ.js} +12 -12
- package/dist/_node-chunks/{chunk-OVKHHS4W.js → chunk-MCTOTRJG.js} +20 -20
- package/dist/_node-chunks/{chunk-JXL37VS7.js → chunk-MDDTIMMD.js} +13 -13
- package/dist/_node-chunks/{chunk-YELE6V4D.js → chunk-OJ2CMYDH.js} +6 -6
- package/dist/_node-chunks/chunk-OQ42LCEX.js +61 -0
- package/dist/_node-chunks/{chunk-Q6PDB4Y6.js → chunk-QGMW4WKW.js} +6 -6
- package/dist/_node-chunks/{chunk-WULYWBBT.js → chunk-SEUBEMNQ.js} +6 -6
- package/dist/_node-chunks/{chunk-BP66TAYC.js → chunk-TFFPC3VZ.js} +7 -7
- package/dist/_node-chunks/chunk-TKRINGRM.js +23 -0
- package/dist/_node-chunks/{chunk-RGJIQDLW.js → chunk-UEL7SAB5.js} +7 -7
- package/dist/_node-chunks/{chunk-POAHHCVK.js → chunk-VBIK2FN2.js} +9 -9
- package/dist/_node-chunks/{chunk-OZHIDIRL.js → chunk-VL57YBAT.js} +10 -10
- package/dist/_node-chunks/{chunk-LZ5NNY6S.js → chunk-WMWMEGTL.js} +6 -6
- package/dist/_node-chunks/{chunk-QF3YWFYM.js → chunk-XE2EF6IL.js} +9 -9
- package/dist/_node-chunks/{chunk-Z2CJCEHN.js → chunk-YPYOZM4G.js} +7 -7
- package/dist/_node-chunks/{dist-5MXCD6KF.js → dist-4VO67SAZ.js} +9 -9
- package/dist/_node-chunks/{globby-322GM5CY.js → globby-4KANABX2.js} +9 -9
- package/dist/_node-chunks/{lib-IXZT5UQX.js → lib-2MKCQZND.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-DBPHTSPN.js → mdx-N42X6CFJ-3ENJ5IE5.js} +8 -8
- package/dist/_node-chunks/{p-limit-TLN4WCPA.js → p-limit-TLF7WD5L.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.d.ts +1 -0
- package/dist/components/index.js +4 -0
- package/dist/core-server/index.d.ts +27 -2
- package/dist/core-server/index.js +45 -43
- package/dist/core-server/presets/common-manager.js +2 -2
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -24
- package/dist/csf/index.js +5 -2
- package/dist/csf-tools/index.js +10 -9
- package/dist/manager/globals-runtime.js +87 -23
- package/dist/manager/runtime.js +96 -896
- package/dist/manager-api/index.d.ts +86 -20
- package/dist/manager-api/index.js +52 -6
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +24 -4
- package/dist/preview-api/index.d.ts +93 -69
- package/dist/preview-api/index.js +5 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +22 -22
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-GLYH3TSV.js +0 -61
- package/dist/_node-chunks/chunk-TPSZ4QDT.js +0 -20
- package/dist/_node-chunks/chunk-XXOA6ULE.js +0 -18
- package/dist/_node-chunks/chunk-ZHSAQXJF.js +0 -23
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/shared/constants/tags.ts
|
|
2
|
+
var Tag = {
|
|
3
|
+
/** Indicates that autodocs should be generated for this component */
|
|
4
|
+
AUTODOCS: "autodocs",
|
|
5
|
+
/** MDX documentation attached to a component's stories file */
|
|
6
|
+
ATTACHED_MDX: "attached-mdx",
|
|
7
|
+
/** Standalone MDX documentation not attached to stories */
|
|
8
|
+
UNATTACHED_MDX: "unattached-mdx",
|
|
9
|
+
/** Story has a play function */
|
|
10
|
+
PLAY_FN: "play-fn",
|
|
11
|
+
/** Story has a test function */
|
|
12
|
+
TEST_FN: "test-fn",
|
|
13
|
+
/** Development environment tag */
|
|
14
|
+
DEV: "dev",
|
|
15
|
+
/** Test environment tag */
|
|
16
|
+
TEST: "test",
|
|
17
|
+
/** Manifest generation tag */
|
|
18
|
+
MANIFEST: "manifest"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
Tag
|
|
23
|
+
};
|
|
@@ -3,6 +3,9 @@ import {
|
|
|
3
3
|
pauseAnimations,
|
|
4
4
|
waitForAnimations
|
|
5
5
|
} from "./chunk-MEXTPDJG.js";
|
|
6
|
+
import {
|
|
7
|
+
Tag
|
|
8
|
+
} from "./chunk-AFVOZMXQ.js";
|
|
6
9
|
import {
|
|
7
10
|
require_main
|
|
8
11
|
} from "./chunk-XLJZ7AOP.js";
|
|
@@ -796,7 +799,7 @@ function prepareMeta(componentAnnotations, projectAnnotations, moduleExport) {
|
|
|
796
799
|
};
|
|
797
800
|
}
|
|
798
801
|
function preparePartialAnnotations(storyAnnotations, componentAnnotations, projectAnnotations) {
|
|
799
|
-
let defaultTags = [
|
|
802
|
+
let defaultTags = [Tag.DEV, Tag.TEST], extraTags = globalThis2.DOCS_OPTIONS?.autodocs === !0 ? [Tag.AUTODOCS] : [], overrideTags = storyAnnotations?.tags?.includes(Tag.TEST_FN) ? [`!${Tag.AUTODOCS}`] : [], tags = combineTags(
|
|
800
803
|
...defaultTags,
|
|
801
804
|
...extraTags,
|
|
802
805
|
...projectAnnotations.tags ?? [],
|
|
@@ -2408,9 +2411,8 @@ function focusInInput(event) {
|
|
|
2408
2411
|
let target = event.composedPath && event.composedPath()[0] || event.target;
|
|
2409
2412
|
return /input|textarea/i.test(target.tagName) || target.getAttribute("contenteditable") !== null;
|
|
2410
2413
|
}
|
|
2411
|
-
var ATTACHED_MDX_TAG = "attached-mdx", UNATTACHED_MDX_TAG = "unattached-mdx";
|
|
2412
2414
|
function isMdxEntry({ tags }) {
|
|
2413
|
-
return tags?.includes(
|
|
2415
|
+
return tags?.includes(Tag.UNATTACHED_MDX) || tags?.includes(Tag.ATTACHED_MDX);
|
|
2414
2416
|
}
|
|
2415
2417
|
function isStoryRender(r) {
|
|
2416
2418
|
return r.type === "story";
|
|
@@ -2588,7 +2590,7 @@ var PreviewWithSelection = class extends Preview {
|
|
|
2588
2590
|
initialGlobals,
|
|
2589
2591
|
storyGlobals: {},
|
|
2590
2592
|
userGlobals: globals
|
|
2591
|
-
}), isCsfDocsRender(render) || render.entry.tags?.includes(
|
|
2593
|
+
}), isCsfDocsRender(render) || render.entry.tags?.includes(Tag.ATTACHED_MDX)) {
|
|
2592
2594
|
if (!render.csfFiles)
|
|
2593
2595
|
throw new MdxFileWithNoCsfReferencesError({ storyId });
|
|
2594
2596
|
({ parameters } = this.storyStoreValue.preparedMetaFromCSFFile({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-IW5UJQJL.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FXCJJSMM.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TFFPC3VZ.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SEUBEMNQ.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ENNXNDBF.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WMWMEGTL.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -882,6 +882,7 @@ var exports_default = {
|
|
|
882
882
|
"ManagerContext",
|
|
883
883
|
"Provider",
|
|
884
884
|
"RequestResponseError",
|
|
885
|
+
"Tag",
|
|
885
886
|
"addons",
|
|
886
887
|
"combineParameters",
|
|
887
888
|
"controlOrMetaKey",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-WMWMEGTL.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) => {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// package.json
|
|
14
|
+
var version = "10.2.0-alpha.12";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
version
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/slash/index.js
|
|
14
|
+
function slash(path) {
|
|
15
|
+
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
slash
|
|
20
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-YPYOZM4G.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WMWMEGTL.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
23
23
|
var require_tracker_base = __commonJS({
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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 {
|
|
13
|
+
Tag
|
|
14
|
+
} from "./chunk-G4RT3MO3.js";
|
|
12
15
|
import {
|
|
13
16
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IQUZPWN3.js";
|
|
15
18
|
import {
|
|
16
19
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WMWMEGTL.js";
|
|
18
21
|
|
|
19
22
|
// src/csf-tools/CsfFile.ts
|
|
20
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -433,7 +436,7 @@ var formatLocation = (node, fileName) => {
|
|
|
433
436
|
}), !self._meta)
|
|
434
437
|
throw new NoMetaError("missing default export", self._ast, self._options.fileName);
|
|
435
438
|
let entries = Object.entries(self._stories);
|
|
436
|
-
if (self._meta.title = this._options.makeTitle(self._meta?.title), self._metaAnnotations.play && (self._meta.tags = [...self._meta.tags || [],
|
|
439
|
+
if (self._meta.title = this._options.makeTitle(self._meta?.title), self._metaAnnotations.play && (self._meta.tags = [...self._meta.tags || [], Tag.PLAY_FN]), self._stories = entries.reduce(
|
|
437
440
|
(acc, [key, story]) => {
|
|
438
441
|
if (!isExportStory(key, self._meta))
|
|
439
442
|
return acc;
|
|
@@ -444,7 +447,7 @@ var formatLocation = (node, fileName) => {
|
|
|
444
447
|
let node = t2.isIdentifier(tags) ? findVarInitialization(tags.name, this._ast.program) : tags;
|
|
445
448
|
acc[key].tags = parseTags(node);
|
|
446
449
|
}
|
|
447
|
-
play && (acc[key].tags = [...acc[key].tags || [],
|
|
450
|
+
play && (acc[key].tags = [...acc[key].tags || [], Tag.PLAY_FN]);
|
|
448
451
|
let stats = acc[key].__stats;
|
|
449
452
|
["play", "render", "loaders", "beforeEach", "globals", "tags"].forEach((annotation) => {
|
|
450
453
|
stats[annotation] = !!storyAnnotations[annotation] || !!self._metaAnnotations[annotation];
|
|
@@ -518,10 +521,10 @@ var formatLocation = (node, fileName) => {
|
|
|
518
521
|
tags: [
|
|
519
522
|
...storyInput.tags,
|
|
520
523
|
// this tag comes before test tags so users can invert if they like
|
|
521
|
-
|
|
524
|
+
`!${Tag.AUTODOCS}`,
|
|
522
525
|
...test.tags,
|
|
523
526
|
// this tag comes after test tags so users can't change it
|
|
524
|
-
|
|
527
|
+
Tag.TEST_FN
|
|
525
528
|
],
|
|
526
529
|
__id: test.id
|
|
527
530
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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_1qalasm8z9n.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WMWMEGTL.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/shared/constants/tags.ts
|
|
14
|
+
var Tag = {
|
|
15
|
+
/** Indicates that autodocs should be generated for this component */
|
|
16
|
+
AUTODOCS: "autodocs",
|
|
17
|
+
/** MDX documentation attached to a component's stories file */
|
|
18
|
+
ATTACHED_MDX: "attached-mdx",
|
|
19
|
+
/** Standalone MDX documentation not attached to stories */
|
|
20
|
+
UNATTACHED_MDX: "unattached-mdx",
|
|
21
|
+
/** Story has a play function */
|
|
22
|
+
PLAY_FN: "play-fn",
|
|
23
|
+
/** Story has a test function */
|
|
24
|
+
TEST_FN: "test-fn",
|
|
25
|
+
/** Development environment tag */
|
|
26
|
+
DEV: "dev",
|
|
27
|
+
/** Test environment tag */
|
|
28
|
+
TEST: "test",
|
|
29
|
+
/** Manifest generation tag */
|
|
30
|
+
MANIFEST: "manifest"
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
Tag
|
|
35
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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_1qalasm8z9n.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WMWMEGTL.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/ms/index.js
|
|
18
18
|
var require_ms = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,27 +14,27 @@ import {
|
|
|
14
14
|
detectIndent,
|
|
15
15
|
invariant,
|
|
16
16
|
up2 as up
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QGMW4WKW.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-TFFPC3VZ.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IQUZPWN3.js";
|
|
24
24
|
import {
|
|
25
25
|
babelParse,
|
|
26
26
|
recast,
|
|
27
27
|
traverse,
|
|
28
28
|
types
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VBIK2FN2.js";
|
|
30
30
|
import {
|
|
31
31
|
require_picocolors
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-YPYOZM4G.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__require,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WMWMEGTL.js";
|
|
38
38
|
|
|
39
39
|
// ../../node_modules/esprima/dist/esprima.js
|
|
40
40
|
var require_esprima = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-WMWMEGTL.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_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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_1qalasm8z9n.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__toESM
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WMWMEGTL.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/balanced-match/index.js
|
|
18
18
|
var require_balanced_match = __commonJS({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-WMWMEGTL.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,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0j7q77gppets from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-BDTFFW43.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
17
|
execa,
|
|
@@ -19,20 +19,20 @@ import {
|
|
|
19
19
|
getProjectRoot,
|
|
20
20
|
resolvePathInStorybookCache,
|
|
21
21
|
up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MCTOTRJG.js";
|
|
23
23
|
import {
|
|
24
24
|
globalSettings
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XE2EF6IL.js";
|
|
26
26
|
import {
|
|
27
27
|
resolvePackageDir
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TFFPC3VZ.js";
|
|
29
29
|
import {
|
|
30
30
|
slash
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ENNXNDBF.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-WMWMEGTL.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/fetch-retry/index.js
|
|
38
38
|
var require_fetch_retry = __commonJS({
|