storybook 10.2.0-alpha.11 → 10.2.0-alpha.13
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-MNAUTRWW.js → builder-manager-YTW4R3NB.js} +13 -12
- package/dist/_node-chunks/{camelcase-6H4Z5R35.js → camelcase-ALOK3DTL.js} +7 -7
- package/dist/_node-chunks/{chunk-URWJMVZI.js → chunk-2VHYFREG.js} +7 -7
- package/dist/_node-chunks/{chunk-UYMZAYR4.js → chunk-5CARBEGS.js} +9 -9
- package/dist/_node-chunks/{chunk-2DZGIXSN.js → chunk-5E6TIJW7.js} +6 -6
- package/dist/_node-chunks/chunk-5U7IR6W2.js +61 -0
- package/dist/_node-chunks/{chunk-KU4SWNDM.js → chunk-AE6TGTGX.js} +7 -7
- package/dist/_node-chunks/{chunk-WHIAK7AH.js → chunk-AOMUVL33.js} +12 -12
- package/dist/_node-chunks/chunk-B3NH4IRY.js +35 -0
- package/dist/_node-chunks/{chunk-7FH4U6XC.js → chunk-BIJENBOW.js} +15 -12
- package/dist/_node-chunks/{chunk-O7O53MP7.js → chunk-FCBELYHM.js} +12 -12
- package/dist/_node-chunks/chunk-JUCUYWH2.js +23 -0
- package/dist/_node-chunks/chunk-KTAHXSER.js +18 -0
- package/dist/_node-chunks/{chunk-FWVZUHZX.js → chunk-KXFFKIVX.js} +6 -6
- package/dist/_node-chunks/{chunk-TFY6QV57.js → chunk-L4JVY7CQ.js} +7 -7
- package/dist/_node-chunks/{chunk-GRH5JFTX.js → chunk-NGFKU3PK.js} +7 -7
- package/dist/_node-chunks/{chunk-MAQAZSXK.js → chunk-NL75DTGM.js} +6 -6
- package/dist/_node-chunks/{chunk-L22DGLKT.js → chunk-NRCGIPSW.js} +6 -6
- package/dist/_node-chunks/{chunk-UNUWAUGG.js → chunk-OOTLIMKW.js} +6 -6
- package/dist/_node-chunks/{chunk-F3OHO2BC.js → chunk-OWZXELHP.js} +13 -13
- package/dist/_node-chunks/{chunk-TOMGRF4A.js → chunk-QMDFRT4S.js} +10 -10
- package/dist/_node-chunks/{chunk-HXFHXVEW.js → chunk-QV7LTTOW.js} +20 -20
- package/dist/_node-chunks/{chunk-UOHDPKIW.js → chunk-TOLCEUYZ.js} +7 -7
- package/dist/_node-chunks/{chunk-KAIK7772.js → chunk-TWCN75ID.js} +9 -9
- package/dist/_node-chunks/{chunk-CMQYFTBQ.js → chunk-VOVBTC53.js} +6 -6
- package/dist/_node-chunks/{chunk-MAMDH2R3.js → chunk-WKDY7YZY.js} +7 -7
- package/dist/_node-chunks/{chunk-WQ4WQYSZ.js → chunk-X2PNK4N4.js} +7 -7
- package/dist/_node-chunks/chunk-XQU357NR.js +20 -0
- package/dist/_node-chunks/{chunk-5L22ATN3.js → chunk-XX6B7MPS.js} +8 -8
- package/dist/_node-chunks/{chunk-RJY225Z5.js → chunk-ZSUT22UW.js} +7 -7
- package/dist/_node-chunks/{dist-ZOBQQCBA.js → dist-I4XBT6AL.js} +9 -9
- package/dist/_node-chunks/{globby-WNZSV3ZO.js → globby-RG2TFVNI.js} +9 -9
- package/dist/_node-chunks/{lib-YUWKNDR2.js → lib-E2AGGQV3.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-K5BCUPEA.js → mdx-N42X6CFJ-SGUMZ4YL.js} +8 -8
- package/dist/_node-chunks/{p-limit-ROJSQI7F.js → p-limit-J4UZO65T.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 +5 -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 +18 -14
- 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 +93 -25
- package/dist/manager/runtime.js +87 -886
- 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 +26 -1
- package/dist/preview-api/index.js +5 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +22 -22
- package/dist/theming/index.js +5 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-2CGMTALY.js +0 -61
- package/dist/_node-chunks/chunk-KX7OAVXY.js +0 -18
- package/dist/_node-chunks/chunk-P663SP7U.js +0 -20
- package/dist/_node-chunks/chunk-RI4IBKXZ.js +0 -23
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-5CARBEGS.js";
|
|
26
|
+
import "../_node-chunks/chunk-NGFKU3PK.js";
|
|
27
|
+
import "../_node-chunks/chunk-X2PNK4N4.js";
|
|
28
|
+
import "../_node-chunks/chunk-KXFFKIVX.js";
|
|
29
29
|
var export_transformSync = import_core.transformSync;
|
|
30
30
|
export {
|
|
31
31
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
version
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-KTAHXSER.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-TWCN75ID.js";
|
|
18
|
+
import "../_node-chunks/chunk-NRCGIPSW.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-2VHYFREG.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-X2PNK4N4.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-KXFFKIVX.js";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
11
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
12
12
|
// ------------------------------------------------------------
|
|
13
13
|
import {
|
|
14
14
|
versions_default
|
|
15
|
-
} from "../_node-chunks/chunk-
|
|
15
|
+
} from "../_node-chunks/chunk-5U7IR6W2.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-ZSUT22UW.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-NL75DTGM.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-2VHYFREG.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-KXFFKIVX.js";
|
|
28
28
|
|
|
29
29
|
// src/bin/dispatcher.ts
|
|
30
30
|
import { pathToFileURL } from "node:url";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-OOTLIMKW.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-2VHYFREG.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-KXFFKIVX.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-FCBELYHM.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-JUCUYWH2.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-TWCN75ID.js";
|
|
45
|
+
import "../_node-chunks/chunk-VOVBTC53.js";
|
|
46
|
+
import "../_node-chunks/chunk-NRCGIPSW.js";
|
|
47
|
+
import "../_node-chunks/chunk-ZSUT22UW.js";
|
|
48
|
+
import "../_node-chunks/chunk-NL75DTGM.js";
|
|
49
|
+
import "../_node-chunks/chunk-2VHYFREG.js";
|
|
50
|
+
import "../_node-chunks/chunk-5CARBEGS.js";
|
|
51
|
+
import "../_node-chunks/chunk-NGFKU3PK.js";
|
|
52
|
+
import "../_node-chunks/chunk-X2PNK4N4.js";
|
|
53
|
+
import "../_node-chunks/chunk-KXFFKIVX.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-QV7LTTOW.js";
|
|
106
106
|
import {
|
|
107
107
|
versions_default
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
109
|
-
import "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-5U7IR6W2.js";
|
|
109
|
+
import "../_node-chunks/chunk-L4JVY7CQ.js";
|
|
110
|
+
import "../_node-chunks/chunk-XX6B7MPS.js";
|
|
111
|
+
import "../_node-chunks/chunk-VOVBTC53.js";
|
|
112
112
|
import {
|
|
113
113
|
groupBy,
|
|
114
114
|
invariant
|
|
115
|
-
} from "../_node-chunks/chunk-
|
|
115
|
+
} from "../_node-chunks/chunk-NRCGIPSW.js";
|
|
116
116
|
import {
|
|
117
117
|
importMetaResolve,
|
|
118
118
|
importModule,
|
|
119
119
|
resolvePackageDir,
|
|
120
120
|
safeResolveModule
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-ZSUT22UW.js";
|
|
122
|
+
import "../_node-chunks/chunk-NL75DTGM.js";
|
|
123
|
+
import "../_node-chunks/chunk-AE6TGTGX.js";
|
|
124
|
+
import "../_node-chunks/chunk-XQU357NR.js";
|
|
125
|
+
import "../_node-chunks/chunk-2VHYFREG.js";
|
|
126
|
+
import "../_node-chunks/chunk-X2PNK4N4.js";
|
|
127
|
+
import "../_node-chunks/chunk-KXFFKIVX.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -1513,6 +1513,7 @@ interface ProgressSpinnerProps extends Omit<ComponentProps<typeof Wrapper>, 'siz
|
|
|
1513
1513
|
}
|
|
1514
1514
|
declare const ProgressSpinner: ({ percentage, running, size, width, children, ...props }: ProgressSpinnerProps) => React__default.JSX.Element;
|
|
1515
1515
|
|
|
1516
|
+
/** @deprecated Use the api.getStoryHrefs method instead (from `storybook/manager-api`) */
|
|
1516
1517
|
declare const getStoryHref: (baseUrl: string, storyId: string, additionalParams?: Record<string, string>) => string;
|
|
1517
1518
|
|
|
1518
1519
|
declare const nameSpaceClassNames: ({ ...props }: {
|
package/dist/components/index.js
CHANGED
|
@@ -9345,6 +9345,7 @@ var fadeIn = keyframes2({
|
|
|
9345
9345
|
return React19.createElement(
|
|
9346
9346
|
Button,
|
|
9347
9347
|
{
|
|
9348
|
+
type: "button",
|
|
9348
9349
|
padding: "small",
|
|
9349
9350
|
ariaLabel: "Close modal",
|
|
9350
9351
|
variant: "ghost",
|
|
@@ -16324,6 +16325,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
|
|
|
16324
16325
|
}) => typeof percentage == "number" ? React63.createElement(Wrapper5, { size, ...props }, children, React63.createElement(Circle, { size, width, xmlns: XMLNS }, React63.createElement("circle", null)), running && React63.createElement(Circle, { size, width, xmlns: XMLNS, spinner: !0 }, React63.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) })), React63.createElement(Circle, { size, width, xmlns: XMLNS, progress: !0 }, React63.createElement("circle", { strokeDashoffset: Math.PI * (size - Math.ceil(width)) * (1 - percentage / 100) }))) : React63.createElement(Wrapper5, { size, ...props }, children);
|
|
16325
16326
|
|
|
16326
16327
|
// src/components/components/utils/getStoryHref.ts
|
|
16328
|
+
import { deprecate as deprecate13 } from "storybook/internal/client-logger";
|
|
16327
16329
|
function parseQuery(queryString) {
|
|
16328
16330
|
let query = {}, pairs = queryString.split("&");
|
|
16329
16331
|
for (let i = 0; i < pairs.length; i++) {
|
|
@@ -16333,6 +16335,9 @@ function parseQuery(queryString) {
|
|
|
16333
16335
|
return query;
|
|
16334
16336
|
}
|
|
16335
16337
|
var getStoryHref = (baseUrl, storyId, additionalParams = {}) => {
|
|
16338
|
+
deprecate13(
|
|
16339
|
+
"getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead"
|
|
16340
|
+
);
|
|
16336
16341
|
let [url, paramsStr] = baseUrl.split("?"), params = paramsStr ? {
|
|
16337
16342
|
...parseQuery(paramsStr),
|
|
16338
16343
|
...additionalParams,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadAllPresets } from 'storybook/internal/common';
|
|
2
2
|
export { getPreviewBodyTemplate, getPreviewHeadTemplate } from 'storybook/internal/common';
|
|
3
3
|
import * as storybook_internal_types from 'storybook/internal/types';
|
|
4
|
-
import { CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, IndexInputStats, NormalizedStoriesSpecifier, Path as Path$1, Indexer, DocsOptions, StoryIndexEntry, DocsIndexEntry,
|
|
4
|
+
import { CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, IndexInputStats, NormalizedStoriesSpecifier, Path as Path$1, Indexer, DocsOptions, StoryIndexEntry, DocsIndexEntry, IndexEntry, StoryIndex, Options, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
|
|
5
5
|
import { EventType } from 'storybook/internal/telemetry';
|
|
6
6
|
import { Channel } from 'storybook/internal/channels';
|
|
7
7
|
import { StoryId } from 'storybook/internal/csf';
|
|
@@ -132,6 +132,31 @@ interface MatchPath {
|
|
|
132
132
|
(requestedModule: string, readJson?: ReadJsonSync, fileExists?: (name: string) => boolean, extensions?: ReadonlyArray<string>): string | undefined;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/** System tags used throughout Storybook for categorizing and filtering stories and docs entries. */
|
|
136
|
+
declare const Tag: {
|
|
137
|
+
/** Indicates that autodocs should be generated for this component */
|
|
138
|
+
readonly AUTODOCS: "autodocs";
|
|
139
|
+
/** MDX documentation attached to a component's stories file */
|
|
140
|
+
readonly ATTACHED_MDX: "attached-mdx";
|
|
141
|
+
/** Standalone MDX documentation not attached to stories */
|
|
142
|
+
readonly UNATTACHED_MDX: "unattached-mdx";
|
|
143
|
+
/** Story has a play function */
|
|
144
|
+
readonly PLAY_FN: "play-fn";
|
|
145
|
+
/** Story has a test function */
|
|
146
|
+
readonly TEST_FN: "test-fn";
|
|
147
|
+
/** Development environment tag */
|
|
148
|
+
readonly DEV: "dev";
|
|
149
|
+
/** Test environment tag */
|
|
150
|
+
readonly TEST: "test";
|
|
151
|
+
/** Manifest generation tag */
|
|
152
|
+
readonly MANIFEST: "manifest";
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Tags can be any string, including custom user-defined tags. The Tag constant above defines the
|
|
156
|
+
* system tags used by Storybook.
|
|
157
|
+
*/
|
|
158
|
+
type Tag = string;
|
|
159
|
+
|
|
135
160
|
declare class IndexingError extends Error {
|
|
136
161
|
importPaths: string[];
|
|
137
162
|
constructor(message: string, importPaths: string[], stack?: string);
|
|
@@ -1309,4 +1334,4 @@ declare const fullTestProviderStore: {
|
|
|
1309
1334
|
declare const getTestProviderStoreById: (testProviderId: TestProviderId) => TestProviderStoreById;
|
|
1310
1335
|
declare const universalTestProviderStore: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>;
|
|
1311
1336
|
|
|
1312
|
-
export { type BuildIndexOptions, type BuildStaticStandaloneOptions, StoryIndexGenerator, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, getErrorLevel, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isTelemetryEnabled, mapStaticDir, sendTelemetryError, withTelemetry };
|
|
1337
|
+
export { type BuildIndexOptions, type BuildStaticStandaloneOptions, StoryIndexGenerator, Tag, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, getErrorLevel, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isTelemetryEnabled, mapStaticDir, sendTelemetryError, withTelemetry };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_xc3mu1pf9x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_xc3mu1pf9x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_xc3mu1pf9x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_xc3mu1pf9x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_xc3mu1pf9x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_xc3mu1pf9x.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
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-QMDFRT4S.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,65 +21,68 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-OWZXELHP.js";
|
|
25
25
|
import {
|
|
26
26
|
detectPnp
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-JUCUYWH2.js";
|
|
28
|
+
import "../_node-chunks/chunk-TOLCEUYZ.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-5E6TIJW7.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-AOMUVL33.js";
|
|
35
|
+
import "../_node-chunks/chunk-KTAHXSER.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-QV7LTTOW.js";
|
|
43
|
+
import "../_node-chunks/chunk-5U7IR6W2.js";
|
|
44
|
+
import "../_node-chunks/chunk-L4JVY7CQ.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-XX6B7MPS.js";
|
|
48
|
+
import "../_node-chunks/chunk-TWCN75ID.js";
|
|
49
49
|
import {
|
|
50
50
|
invariant,
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-VOVBTC53.js";
|
|
53
|
+
import "../_node-chunks/chunk-NRCGIPSW.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-ZSUT22UW.js";
|
|
58
58
|
import {
|
|
59
59
|
dirname,
|
|
60
60
|
join,
|
|
61
61
|
relative,
|
|
62
62
|
resolve
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
64
|
-
import "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-NL75DTGM.js";
|
|
64
|
+
import "../_node-chunks/chunk-AE6TGTGX.js";
|
|
65
65
|
import {
|
|
66
66
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
67
|
+
} from "../_node-chunks/chunk-XQU357NR.js";
|
|
68
|
+
import {
|
|
69
|
+
Tag
|
|
70
|
+
} from "../_node-chunks/chunk-B3NH4IRY.js";
|
|
68
71
|
import {
|
|
69
72
|
require_dist
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-2VHYFREG.js";
|
|
71
74
|
import {
|
|
72
75
|
require_lib,
|
|
73
76
|
require_src
|
|
74
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-NGFKU3PK.js";
|
|
75
78
|
import {
|
|
76
79
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
80
|
+
} from "../_node-chunks/chunk-X2PNK4N4.js";
|
|
78
81
|
import {
|
|
79
82
|
__commonJS,
|
|
80
83
|
__require,
|
|
81
84
|
__toESM
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-KXFFKIVX.js";
|
|
83
86
|
|
|
84
87
|
// ../../node_modules/glob-to-regexp/index.js
|
|
85
88
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4536,7 +4539,7 @@ function print(p) {
|
|
|
4536
4539
|
// src/core-server/utils/get-builders.ts
|
|
4537
4540
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4538
4541
|
async function getManagerBuilder() {
|
|
4539
|
-
return await import("../_node-chunks/builder-manager-
|
|
4542
|
+
return await import("../_node-chunks/builder-manager-YTW4R3NB.js");
|
|
4540
4543
|
}
|
|
4541
4544
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4542
4545
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4600,7 +4603,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4600
4603
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4601
4604
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4602
4605
|
basename(specifier.files)
|
|
4603
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4606
|
+
), { globby } = await import("../_node-chunks/globby-RG2TFVNI.js");
|
|
4604
4607
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4605
4608
|
let fileImportPath = toImportPath(filePath);
|
|
4606
4609
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5426,7 +5429,7 @@ async function getManifests(presets) {
|
|
|
5426
5429
|
let generator = await presets.apply("storyIndexGenerator");
|
|
5427
5430
|
invariant(generator, "storyIndexGenerator must be configured");
|
|
5428
5431
|
let index = await generator.getIndex(), manifestEntries = Object.values(index.entries).filter(
|
|
5429
|
-
(entry) => entry.tags?.includes(
|
|
5432
|
+
(entry) => entry.tags?.includes(Tag.MANIFEST) ?? !1
|
|
5430
5433
|
);
|
|
5431
5434
|
return await presets.apply("experimental_manifests", void 0, {
|
|
5432
5435
|
manifestEntries
|
|
@@ -5624,9 +5627,8 @@ var addStats = (stat, acc) => {
|
|
|
5624
5627
|
};
|
|
5625
5628
|
|
|
5626
5629
|
// src/core-server/utils/StoryIndexGenerator.ts
|
|
5627
|
-
var AUTODOCS_TAG = "autodocs", ATTACHED_MDX_TAG = "attached-mdx", UNATTACHED_MDX_TAG = "unattached-mdx", PLAY_FN_TAG = "play-fn", TEST_FN_TAG = "test-fn";
|
|
5628
5630
|
function isMdxEntry({ tags }) {
|
|
5629
|
-
return tags?.includes(
|
|
5631
|
+
return tags?.includes(Tag.UNATTACHED_MDX) || tags?.includes(Tag.ATTACHED_MDX);
|
|
5630
5632
|
}
|
|
5631
5633
|
var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.startsWith(".") ? slash(resolve3(workingDir, normalizeStoryPath(join5(dirname2(normalizedPath), otherImport)))) : otherImport, StoryIndexGenerator = class _StoryIndexGenerator {
|
|
5632
5634
|
constructor(specifiers, options) {
|
|
@@ -5656,7 +5658,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5656
5658
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5657
5659
|
if (cached)
|
|
5658
5660
|
return cached;
|
|
5659
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5661
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-RG2TFVNI.js"), files = await globby(globPattern, {
|
|
5660
5662
|
absolute: !0,
|
|
5661
5663
|
cwd: globCwd,
|
|
5662
5664
|
...commonGlobOptions2(globPattern)
|
|
@@ -5818,7 +5820,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5818
5820
|
};
|
|
5819
5821
|
return subtype === "test" && (entry.parent = input.parent, entry.parentName = input.parentName), input.exportName && (entry.exportName = input.exportName), entry;
|
|
5820
5822
|
});
|
|
5821
|
-
if (storyEntries.some((entry) => entry.tags.includes(
|
|
5823
|
+
if (storyEntries.some((entry) => entry.tags.includes(Tag.AUTODOCS)) && !!this.options.docs && this.options.build?.test?.disableAutoDocs !== !0) {
|
|
5822
5824
|
let name = this.options.docs?.defaultName ?? "Docs", { metaId } = indexInputs[0], entry = storyEntries[0], id = toId(metaId ?? entry.title, name), tags = combineTags(...projectTags, ...indexInputs[0].tags ?? []);
|
|
5823
5825
|
return {
|
|
5824
5826
|
entries: [{
|
|
@@ -5843,7 +5845,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5843
5845
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5844
5846
|
let relativePath = relative4(this.options.workingDir, absolutePath);
|
|
5845
5847
|
try {
|
|
5846
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5848
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-I4XBT6AL.js"), result = await analyze(content);
|
|
5847
5849
|
if (result.isTemplate)
|
|
5848
5850
|
return !1;
|
|
5849
5851
|
let absoluteImports = result.imports.map(
|
|
@@ -5883,7 +5885,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5883
5885
|
...projectTags,
|
|
5884
5886
|
...csfEntry?.tags ?? [],
|
|
5885
5887
|
...result.metaTags ?? [],
|
|
5886
|
-
csfEntry ?
|
|
5888
|
+
csfEntry ? Tag.ATTACHED_MDX : Tag.UNATTACHED_MDX
|
|
5887
5889
|
);
|
|
5888
5890
|
return {
|
|
5889
5891
|
id,
|
|
@@ -5928,9 +5930,9 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5928
5930
|
`You have two component docs pages with the same name ${betterEntry.title}:${betterEntry.name}. ${changeDocsName}`,
|
|
5929
5931
|
[firstEntry.importPath, secondEntry.importPath]
|
|
5930
5932
|
);
|
|
5931
|
-
if (worseEntry.tags?.includes(
|
|
5933
|
+
if (worseEntry.tags?.includes(Tag.AUTODOCS) && !projectTags?.includes(Tag.AUTODOCS))
|
|
5932
5934
|
throw new IndexingError(
|
|
5933
|
-
`You created a component docs page for '${worseEntry.title}', but also tagged the CSF file with '${
|
|
5935
|
+
`You created a component docs page for '${worseEntry.title}', but also tagged the CSF file with '${Tag.AUTODOCS}'. This is probably a mistake.`,
|
|
5934
5936
|
[betterEntry.importPath, worseEntry.importPath]
|
|
5935
5937
|
);
|
|
5936
5938
|
} else
|
|
@@ -6039,7 +6041,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
6039
6041
|
return previewFile && (await readFile(previewFile, { encoding: "utf8" })).toString();
|
|
6040
6042
|
}
|
|
6041
6043
|
getProjectTags(previewCode) {
|
|
6042
|
-
let projectTags = [], defaultTags = [
|
|
6044
|
+
let projectTags = [], defaultTags = [Tag.DEV, Tag.TEST, Tag.MANIFEST];
|
|
6043
6045
|
if (previewCode)
|
|
6044
6046
|
try {
|
|
6045
6047
|
projectTags = loadConfig(previewCode).parse().getFieldValue(["tags"]) ?? [];
|
|
@@ -6067,8 +6069,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
6067
6069
|
};
|
|
6068
6070
|
|
|
6069
6071
|
// src/core-server/utils/summarizeIndex.ts
|
|
6070
|
-
var PAGE_REGEX = /(page|screen)/i
|
|
6071
|
-
var isPageStory = (storyId) => PAGE_REGEX.test(storyId), isCLIExampleEntry = (entry) => [
|
|
6072
|
+
var PAGE_REGEX = /(page|screen)/i, isPageStory = (storyId) => PAGE_REGEX.test(storyId), isCLIExampleEntry = (entry) => [
|
|
6072
6073
|
"example-introduction--docs",
|
|
6073
6074
|
"configure-your-project--docs",
|
|
6074
6075
|
"example-button--docs",
|
|
@@ -6085,7 +6086,7 @@ var isPageStory = (storyId) => PAGE_REGEX.test(storyId), isCLIExampleEntry = (en
|
|
|
6085
6086
|
function summarizeIndex(storyIndex) {
|
|
6086
6087
|
let storyCount = 0, componentTitles = /* @__PURE__ */ new Set(), exampleStoryCount = 0, onboardingStoryCount = 0, onboardingDocsCount = 0, exampleDocsCount = 0, pageStoryCount = 0, playStoryCount = 0, testStoryCount = 0, autodocsCount = 0, mdxCount = 0, svelteCsfV4Count = 0, svelteCsfV5Count = 0, testsPerParentStory = /* @__PURE__ */ new Map();
|
|
6087
6088
|
Object.values(storyIndex.entries).forEach((entry) => {
|
|
6088
|
-
isCLIExampleEntry(entry) ? (entry.type === "story" && (exampleStoryCount += 1), entry.type === "docs" && (exampleDocsCount += 1)) : isExampleStoryId2(entry.id) ? (entry.type === "story" && (onboardingStoryCount += 1), entry.type === "docs" && (onboardingDocsCount += 1)) : entry.type === "story" ? (storyCount += 1, componentTitles.add(entry.title), isPageStory(entry.title) && (pageStoryCount += 1), entry.tags?.includes(
|
|
6089
|
+
isCLIExampleEntry(entry) ? (entry.type === "story" && (exampleStoryCount += 1), entry.type === "docs" && (exampleDocsCount += 1)) : isExampleStoryId2(entry.id) ? (entry.type === "story" && (onboardingStoryCount += 1), entry.type === "docs" && (onboardingDocsCount += 1)) : entry.type === "story" ? (storyCount += 1, componentTitles.add(entry.title), isPageStory(entry.title) && (pageStoryCount += 1), entry.tags?.includes(Tag.PLAY_FN) && (playStoryCount += 1), entry.tags?.includes(Tag.TEST_FN) && entry.parent && (testStoryCount += 1, testsPerParentStory.set(entry.parent, (testsPerParentStory.get(entry.parent) ?? 0) + 1)), entry.tags?.includes("svelte-csf-v4") ? svelteCsfV4Count += 1 : entry.tags?.includes("svelte-csf-v5") && (svelteCsfV5Count += 1)) : entry.type === "docs" && (isMdxEntry(entry) ? mdxCount += 1 : entry.tags?.includes(Tag.AUTODOCS) && (autodocsCount += 1));
|
|
6089
6090
|
});
|
|
6090
6091
|
let componentCount = componentTitles.size, maxTestsPerStory = 0, singleTestStoryCount = 0;
|
|
6091
6092
|
return testsPerParentStory.forEach((count) => {
|
|
@@ -7829,6 +7830,7 @@ var testProviderStore = createTestProviderStore({
|
|
|
7829
7830
|
}), { fullTestProviderStore, getTestProviderStoreById, universalTestProviderStore } = testProviderStore;
|
|
7830
7831
|
export {
|
|
7831
7832
|
StoryIndexGenerator,
|
|
7833
|
+
Tag,
|
|
7832
7834
|
standalone_default as build,
|
|
7833
7835
|
buildDevStandalone,
|
|
7834
7836
|
buildIndex,
|