storybook 10.2.0-alpha.11 → 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-MNAUTRWW.js → builder-manager-G3T6FATF.js} +13 -12
- package/dist/_node-chunks/{camelcase-6H4Z5R35.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-5L22ATN3.js → chunk-EO2J5FE4.js} +8 -8
- package/dist/_node-chunks/{chunk-7FH4U6XC.js → chunk-ERDFVJJE.js} +15 -12
- package/dist/_node-chunks/{chunk-UOHDPKIW.js → chunk-FXCJJSMM.js} +7 -7
- package/dist/_node-chunks/chunk-G4RT3MO3.js +35 -0
- package/dist/_node-chunks/{chunk-GRH5JFTX.js → chunk-HMDODR3W.js} +7 -7
- package/dist/_node-chunks/{chunk-O7O53MP7.js → chunk-HSXHYDWU.js} +12 -12
- package/dist/_node-chunks/{chunk-2DZGIXSN.js → chunk-HVD2LZT3.js} +6 -6
- package/dist/_node-chunks/{chunk-URWJMVZI.js → chunk-IQUZPWN3.js} +7 -7
- package/dist/_node-chunks/{chunk-UNUWAUGG.js → chunk-IW5UJQJL.js} +6 -6
- package/dist/_node-chunks/{chunk-KU4SWNDM.js → chunk-KK73AHXT.js} +7 -7
- package/dist/_node-chunks/{chunk-MAMDH2R3.js → chunk-LF7P2YRI.js} +7 -7
- package/dist/_node-chunks/{chunk-WHIAK7AH.js → chunk-LMYWY6ZJ.js} +12 -12
- package/dist/_node-chunks/{chunk-HXFHXVEW.js → chunk-MCTOTRJG.js} +20 -20
- package/dist/_node-chunks/{chunk-F3OHO2BC.js → chunk-MDDTIMMD.js} +13 -13
- package/dist/_node-chunks/{chunk-L22DGLKT.js → chunk-OJ2CMYDH.js} +6 -6
- package/dist/_node-chunks/chunk-OQ42LCEX.js +61 -0
- package/dist/_node-chunks/{chunk-CMQYFTBQ.js → chunk-QGMW4WKW.js} +6 -6
- package/dist/_node-chunks/{chunk-MAQAZSXK.js → chunk-SEUBEMNQ.js} +6 -6
- package/dist/_node-chunks/{chunk-RJY225Z5.js → chunk-TFFPC3VZ.js} +7 -7
- package/dist/_node-chunks/chunk-TKRINGRM.js +23 -0
- package/dist/_node-chunks/{chunk-TFY6QV57.js → chunk-UEL7SAB5.js} +7 -7
- package/dist/_node-chunks/{chunk-UYMZAYR4.js → chunk-VBIK2FN2.js} +9 -9
- package/dist/_node-chunks/{chunk-TOMGRF4A.js → chunk-VL57YBAT.js} +10 -10
- package/dist/_node-chunks/{chunk-FWVZUHZX.js → chunk-WMWMEGTL.js} +6 -6
- package/dist/_node-chunks/{chunk-KAIK7772.js → chunk-XE2EF6IL.js} +9 -9
- package/dist/_node-chunks/{chunk-WQ4WQYSZ.js → chunk-YPYOZM4G.js} +7 -7
- package/dist/_node-chunks/{dist-ZOBQQCBA.js → dist-4VO67SAZ.js} +9 -9
- package/dist/_node-chunks/{globby-WNZSV3ZO.js → globby-4KANABX2.js} +9 -9
- package/dist/_node-chunks/{lib-YUWKNDR2.js → lib-2MKCQZND.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-K5BCUPEA.js → mdx-N42X6CFJ-3ENJ5IE5.js} +8 -8
- package/dist/_node-chunks/{p-limit-ROJSQI7F.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 +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/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
|
@@ -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/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
package/dist/babel/index.js
CHANGED
|
@@ -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
|
|
@@ -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-VBIK2FN2.js";
|
|
26
|
+
import "../_node-chunks/chunk-HMDODR3W.js";
|
|
27
|
+
import "../_node-chunks/chunk-YPYOZM4G.js";
|
|
28
|
+
import "../_node-chunks/chunk-WMWMEGTL.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_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 "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-BDTFFW43.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
18
|
-
import "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-XE2EF6IL.js";
|
|
18
|
+
import "../_node-chunks/chunk-OJ2CMYDH.js";
|
|
19
19
|
import {
|
|
20
20
|
require_dist
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-IQUZPWN3.js";
|
|
22
22
|
import {
|
|
23
23
|
require_picocolors
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-YPYOZM4G.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-WMWMEGTL.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_0j7q77gppets from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_0j7q77gppets from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_0j7q77gppets from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_0j7q77gppets.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0j7q77gppets.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_0j7q77gppets.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-OQ42LCEX.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-TFFPC3VZ.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-SEUBEMNQ.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-IQUZPWN3.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-WMWMEGTL.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_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
|
NODE_TARGET
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-IW5UJQJL.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-IQUZPWN3.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-WMWMEGTL.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_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
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-HSXHYDWU.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-TKRINGRM.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-XE2EF6IL.js";
|
|
45
|
+
import "../_node-chunks/chunk-QGMW4WKW.js";
|
|
46
|
+
import "../_node-chunks/chunk-OJ2CMYDH.js";
|
|
47
|
+
import "../_node-chunks/chunk-TFFPC3VZ.js";
|
|
48
|
+
import "../_node-chunks/chunk-SEUBEMNQ.js";
|
|
49
|
+
import "../_node-chunks/chunk-IQUZPWN3.js";
|
|
50
|
+
import "../_node-chunks/chunk-VBIK2FN2.js";
|
|
51
|
+
import "../_node-chunks/chunk-HMDODR3W.js";
|
|
52
|
+
import "../_node-chunks/chunk-YPYOZM4G.js";
|
|
53
|
+
import "../_node-chunks/chunk-WMWMEGTL.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_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
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-MCTOTRJG.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-OQ42LCEX.js";
|
|
109
|
+
import "../_node-chunks/chunk-UEL7SAB5.js";
|
|
110
|
+
import "../_node-chunks/chunk-EO2J5FE4.js";
|
|
111
|
+
import "../_node-chunks/chunk-QGMW4WKW.js";
|
|
112
112
|
import {
|
|
113
113
|
groupBy,
|
|
114
114
|
invariant
|
|
115
|
-
} from "../_node-chunks/chunk-
|
|
115
|
+
} from "../_node-chunks/chunk-OJ2CMYDH.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-TFFPC3VZ.js";
|
|
122
|
+
import "../_node-chunks/chunk-SEUBEMNQ.js";
|
|
123
|
+
import "../_node-chunks/chunk-KK73AHXT.js";
|
|
124
|
+
import "../_node-chunks/chunk-ENNXNDBF.js";
|
|
125
|
+
import "../_node-chunks/chunk-IQUZPWN3.js";
|
|
126
|
+
import "../_node-chunks/chunk-YPYOZM4G.js";
|
|
127
|
+
import "../_node-chunks/chunk-WMWMEGTL.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
|
@@ -16324,6 +16324,7 @@ var XMLNS = "http://www.w3.org/2000/svg", rotate = keyframes5({
|
|
|
16324
16324
|
}) => 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
16325
|
|
|
16326
16326
|
// src/components/components/utils/getStoryHref.ts
|
|
16327
|
+
import { deprecate as deprecate13 } from "storybook/internal/client-logger";
|
|
16327
16328
|
function parseQuery(queryString) {
|
|
16328
16329
|
let query = {}, pairs = queryString.split("&");
|
|
16329
16330
|
for (let i = 0; i < pairs.length; i++) {
|
|
@@ -16333,6 +16334,9 @@ function parseQuery(queryString) {
|
|
|
16333
16334
|
return query;
|
|
16334
16335
|
}
|
|
16335
16336
|
var getStoryHref = (baseUrl, storyId, additionalParams = {}) => {
|
|
16337
|
+
deprecate13(
|
|
16338
|
+
"getStoryHref is deprecated and will be removed in Storybook 11, use the api.getStoryHrefs method instead"
|
|
16339
|
+
);
|
|
16336
16340
|
let [url, paramsStr] = baseUrl.split("?"), params = paramsStr ? {
|
|
16337
16341
|
...parseQuery(paramsStr),
|
|
16338
16342
|
...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_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
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-VL57YBAT.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-MDDTIMMD.js";
|
|
25
25
|
import {
|
|
26
26
|
detectPnp
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-TKRINGRM.js";
|
|
28
|
+
import "../_node-chunks/chunk-FXCJJSMM.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-HVD2LZT3.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-LMYWY6ZJ.js";
|
|
35
|
+
import "../_node-chunks/chunk-BDTFFW43.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-MCTOTRJG.js";
|
|
43
|
+
import "../_node-chunks/chunk-OQ42LCEX.js";
|
|
44
|
+
import "../_node-chunks/chunk-UEL7SAB5.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-EO2J5FE4.js";
|
|
48
|
+
import "../_node-chunks/chunk-XE2EF6IL.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-QGMW4WKW.js";
|
|
53
|
+
import "../_node-chunks/chunk-OJ2CMYDH.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-TFFPC3VZ.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-SEUBEMNQ.js";
|
|
64
|
+
import "../_node-chunks/chunk-KK73AHXT.js";
|
|
65
65
|
import {
|
|
66
66
|
slash
|
|
67
|
-
} from "../_node-chunks/chunk-
|
|
67
|
+
} from "../_node-chunks/chunk-ENNXNDBF.js";
|
|
68
|
+
import {
|
|
69
|
+
Tag
|
|
70
|
+
} from "../_node-chunks/chunk-G4RT3MO3.js";
|
|
68
71
|
import {
|
|
69
72
|
require_dist
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
73
|
+
} from "../_node-chunks/chunk-IQUZPWN3.js";
|
|
71
74
|
import {
|
|
72
75
|
require_lib,
|
|
73
76
|
require_src
|
|
74
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-HMDODR3W.js";
|
|
75
78
|
import {
|
|
76
79
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
80
|
+
} from "../_node-chunks/chunk-YPYOZM4G.js";
|
|
78
81
|
import {
|
|
79
82
|
__commonJS,
|
|
80
83
|
__require,
|
|
81
84
|
__toESM
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-WMWMEGTL.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-G3T6FATF.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-4KANABX2.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-4KANABX2.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-4VO67SAZ.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,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
|
|
64
64
|
// src/core-server/presets/common-manager.ts
|
|
65
65
|
import { global as global3 } from "@storybook/global";
|
|
66
|
-
import { addons as addons8 } from "storybook/manager-api";
|
|
66
|
+
import { addons as addons8, Tag } from "storybook/manager-api";
|
|
67
67
|
|
|
68
68
|
// src/controls/manager.tsx
|
|
69
69
|
import React28 from "react";
|
|
@@ -7052,7 +7052,7 @@ var TAG_FILTERS = "tag-filters", STATIC_FILTER = "static-filter", tagFiltersMana
|
|
|
7052
7052
|
let tags = item.tags ?? [];
|
|
7053
7053
|
return (
|
|
7054
7054
|
// we can filter out the primary story, but we still want to show autodocs
|
|
7055
|
-
(tags.includes(
|
|
7055
|
+
(tags.includes(Tag.DEV) || item.type === "docs") && tags.filter((tag) => staticExcludeTags[tag]).length === 0
|
|
7056
7056
|
);
|
|
7057
7057
|
});
|
|
7058
7058
|
}), common_manager_default = [
|