storybook 10.2.3 → 10.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{builder-manager-MUPQ4YLN.js → builder-manager-OXVPX3Z7.js} +12 -12
- package/dist/_node-chunks/{camelcase-SC2V6ZVD.js → camelcase-2XTFD4QO.js} +7 -7
- package/dist/_node-chunks/{chunk-ULQQQMGN.js → chunk-2SLKY2SF.js} +12 -12
- package/dist/_node-chunks/{chunk-HMEZ43GF.js → chunk-4MIEF32Q.js} +7 -7
- package/dist/_node-chunks/{chunk-BNC2NJ4M.js → chunk-656HGA2W.js} +8 -8
- package/dist/_node-chunks/chunk-7G266WKB.js +20 -0
- package/dist/_node-chunks/{chunk-GYDBAHYO.js → chunk-APZD45NB.js} +6 -6
- package/dist/_node-chunks/{chunk-FKTW66ML.js → chunk-ATLRTCIF.js} +6 -6
- package/dist/_node-chunks/{chunk-JS7T7TRL.js → chunk-BIHXZHDE.js} +16 -16
- package/dist/_node-chunks/{chunk-2I6XATMH.js → chunk-BKGPTBMG.js} +7 -7
- package/dist/_node-chunks/{chunk-ERAXT2A7.js → chunk-BTFBHZF2.js} +9 -9
- package/dist/_node-chunks/{chunk-GMWBW5NR.js → chunk-DH25EYQU.js} +10 -10
- package/dist/_node-chunks/{chunk-OGXHBWYB.js → chunk-ESTTWAKI.js} +7 -7
- package/dist/_node-chunks/{chunk-2MVP26TQ.js → chunk-F4XVEBLL.js} +7 -7
- package/dist/_node-chunks/{chunk-KD4ROL5O.js → chunk-HTPZJ5O2.js} +7 -7
- package/dist/_node-chunks/chunk-I5JSHO3S.js +61 -0
- package/dist/_node-chunks/{chunk-XXJQPQJY.js → chunk-LPHNZUXJ.js} +7 -7
- package/dist/_node-chunks/{chunk-J744CZWR.js → chunk-MBWLJFM7.js} +11 -10
- package/dist/_node-chunks/chunk-MT56AFZU.js +23 -0
- package/dist/_node-chunks/{chunk-6J4N5MVO.js → chunk-NCHMXWUK.js} +6 -6
- package/dist/_node-chunks/{chunk-UW2EMBPY.js → chunk-NGFKCF2K.js} +7 -7
- package/dist/_node-chunks/chunk-NJKDNCRE.js +18 -0
- package/dist/_node-chunks/{chunk-TK4MV3XE.js → chunk-PFYFC4U6.js} +7 -7
- package/dist/_node-chunks/{chunk-JGLMH4DB.js → chunk-RKHFTEUY.js} +6 -6
- package/dist/_node-chunks/{chunk-MFL6BBD6.js → chunk-SDWBCVAE.js} +6 -6
- package/dist/_node-chunks/{chunk-DKDI3UA3.js → chunk-U5ERZP4U.js} +13 -13
- package/dist/_node-chunks/{chunk-MV5CZYFQ.js → chunk-USANTAR5.js} +9 -9
- package/dist/_node-chunks/{chunk-QEMJYEII.js → chunk-W7NTEMJI.js} +6 -6
- package/dist/_node-chunks/{chunk-MVRFS4XG.js → chunk-XS27F6LV.js} +20 -20
- package/dist/_node-chunks/{chunk-F25BCFEJ.js → chunk-YH5ERL4I.js} +6 -6
- package/dist/_node-chunks/{globby-UBYOFK72.js → globby-2ZBFXOBA.js} +9 -9
- package/dist/_node-chunks/{lib-Z46TN7J2.js → lib-4JYYMD57.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3Z2GBGAU.js → mdx-N42X6CFJ-4XJIY563.js} +8 -8
- package/dist/_node-chunks/{p-limit-67WWDQJT.js → p-limit-G5VEC4CY.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/core-server/index.js +35 -35
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +2 -2
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-6PJQBCAT.js +0 -61
- package/dist/_node-chunks/chunk-BREXNC2N.js +0 -23
- package/dist/_node-chunks/chunk-GTM336AP.js +0 -20
- package/dist/_node-chunks/chunk-HQSV4SOJ.js +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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-ATLRTCIF.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LPHNZUXJ.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HTPZJ5O2.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NCHMXWUK.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7G266WKB.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YH5ERL4I.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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-YH5ERL4I.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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-SDWBCVAE.js";
|
|
18
18
|
import {
|
|
19
19
|
resolvePackageDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HTPZJ5O2.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NGFKCF2K.js";
|
|
24
24
|
import {
|
|
25
25
|
babelParse,
|
|
26
26
|
recast,
|
|
27
27
|
traverse,
|
|
28
28
|
types
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-USANTAR5.js";
|
|
30
30
|
import {
|
|
31
31
|
require_picocolors
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BKGPTBMG.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__require,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YH5ERL4I.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_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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_om3fs3kltp.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YH5ERL4I.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/ms/index.js
|
|
18
18
|
var require_ms = __commonJS({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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-BKGPTBMG.js";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__export,
|
|
18
18
|
__require,
|
|
19
19
|
__toESM
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YH5ERL4I.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
23
23
|
var require_tracker_base = __commonJS({
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LPHNZUXJ.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RKHFTEUY.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-SDWBCVAE.js";
|
|
21
21
|
import {
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HTPZJ5O2.js";
|
|
24
24
|
import {
|
|
25
25
|
relative
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NCHMXWUK.js";
|
|
27
27
|
import {
|
|
28
28
|
STORYBOOK_FN_PLACEHOLDER,
|
|
29
29
|
generateDummyArgsFromArgTypes,
|
|
30
30
|
loadConfig,
|
|
31
31
|
printConfig
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MBWLJFM7.js";
|
|
33
33
|
import {
|
|
34
34
|
require_dist
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NGFKCF2K.js";
|
|
36
36
|
import {
|
|
37
37
|
require_picocolors
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BKGPTBMG.js";
|
|
39
39
|
import {
|
|
40
40
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YH5ERL4I.js";
|
|
42
42
|
|
|
43
43
|
// src/core-server/utils/server-statics.ts
|
|
44
44
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -259,7 +259,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
259
259
|
var import_ts_dedent2 = __toESM(require_dist(), 1);
|
|
260
260
|
|
|
261
261
|
// src/core-server/utils/get-component-variable-name.ts
|
|
262
|
-
var getComponentVariableName = async (name) => (await import("./camelcase-
|
|
262
|
+
var getComponentVariableName = async (name) => (await import("./camelcase-2XTFD4QO.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
263
263
|
|
|
264
264
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
265
265
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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-YH5ERL4I.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/picocolors/picocolors.js
|
|
17
17
|
var require_picocolors = __commonJS({
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-APZD45NB.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NGFKCF2K.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YH5ERL4I.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/globalSettings.ts
|
|
24
24
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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
|
StorybookError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RKHFTEUY.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NGFKCF2K.js";
|
|
18
18
|
import {
|
|
19
19
|
require_picocolors
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BKGPTBMG.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YH5ERL4I.js";
|
|
24
24
|
|
|
25
25
|
// src/server-errors.ts
|
|
26
26
|
var import_picocolors = __toESM(require_picocolors(), 1), import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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-YH5ERL4I.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,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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_om3fs3kltp.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YH5ERL4I.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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_om3fs3kltp.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NCHMXWUK.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.2.4",
|
|
16
|
+
"@storybook/addon-docs": "10.2.4",
|
|
17
|
+
"@storybook/addon-links": "10.2.4",
|
|
18
|
+
"@storybook/addon-onboarding": "10.2.4",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.2.4",
|
|
20
|
+
"@storybook/addon-themes": "10.2.4",
|
|
21
|
+
"@storybook/addon-vitest": "10.2.4",
|
|
22
|
+
"@storybook/builder-vite": "10.2.4",
|
|
23
|
+
"@storybook/builder-webpack5": "10.2.4",
|
|
24
|
+
storybook: "10.2.4",
|
|
25
|
+
"@storybook/angular": "10.2.4",
|
|
26
|
+
"@storybook/ember": "10.2.4",
|
|
27
|
+
"@storybook/html-vite": "10.2.4",
|
|
28
|
+
"@storybook/nextjs": "10.2.4",
|
|
29
|
+
"@storybook/nextjs-vite": "10.2.4",
|
|
30
|
+
"@storybook/preact-vite": "10.2.4",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.2.4",
|
|
32
|
+
"@storybook/react-vite": "10.2.4",
|
|
33
|
+
"@storybook/react-webpack5": "10.2.4",
|
|
34
|
+
"@storybook/server-webpack5": "10.2.4",
|
|
35
|
+
"@storybook/svelte-vite": "10.2.4",
|
|
36
|
+
"@storybook/sveltekit": "10.2.4",
|
|
37
|
+
"@storybook/vue3-vite": "10.2.4",
|
|
38
|
+
"@storybook/web-components-vite": "10.2.4",
|
|
39
|
+
sb: "10.2.4",
|
|
40
|
+
"@storybook/cli": "10.2.4",
|
|
41
|
+
"@storybook/codemod": "10.2.4",
|
|
42
|
+
"@storybook/core-webpack": "10.2.4",
|
|
43
|
+
"create-storybook": "10.2.4",
|
|
44
|
+
"@storybook/csf-plugin": "10.2.4",
|
|
45
|
+
"eslint-plugin-storybook": "10.2.4",
|
|
46
|
+
"@storybook/react-dom-shim": "10.2.4",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.2.4",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.2.4",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.2.4",
|
|
50
|
+
"@storybook/html": "10.2.4",
|
|
51
|
+
"@storybook/preact": "10.2.4",
|
|
52
|
+
"@storybook/react": "10.2.4",
|
|
53
|
+
"@storybook/server": "10.2.4",
|
|
54
|
+
"@storybook/svelte": "10.2.4",
|
|
55
|
+
"@storybook/vue3": "10.2.4",
|
|
56
|
+
"@storybook/web-components": "10.2.4"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.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_om3fs3kltp.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YH5ERL4I.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/totalist/sync/index.js
|
|
18
18
|
var require_sync = __commonJS({
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sx8gjobe9ua from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sx8gjobe9ua from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sx8gjobe9ua from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sx8gjobe9ua.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sx8gjobe9ua.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sx8gjobe9ua.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NGFKCF2K.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YH5ERL4I.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -423,7 +423,7 @@ var formatLocation = (node, fileName) => {
|
|
|
423
423
|
let rootObject = callee.object;
|
|
424
424
|
if (t2.isCallExpression(rootObject) && t2.isMemberExpression(rootObject.callee) && (rootObject = rootObject.callee.object), t2.isIdentifier(rootObject)) {
|
|
425
425
|
let configParent = path2.scope.getBinding(rootObject.name)?.path?.parentPath?.node;
|
|
426
|
-
if (t2.isImportDeclaration(configParent))
|
|
426
|
+
if (t2.isImportDeclaration(configParent)) {
|
|
427
427
|
if (isValidPreviewPath(configParent.source.value)) {
|
|
428
428
|
self._metaIsFactory = !0;
|
|
429
429
|
let metaDeclarator = path2.findParent(
|
|
@@ -432,12 +432,13 @@ var formatLocation = (node, fileName) => {
|
|
|
432
432
|
self._metaVariableName = t2.isIdentifier(metaDeclarator.node.id) ? metaDeclarator.node.id.name : callee.property.name;
|
|
433
433
|
let metaNode = node.arguments[0];
|
|
434
434
|
self._parseMeta(metaNode, self._ast.program);
|
|
435
|
-
} else
|
|
435
|
+
} else if (rootObject.name === "preview")
|
|
436
436
|
throw new BadMetaError(
|
|
437
437
|
"meta() factory must be imported from .storybook/preview configuration",
|
|
438
438
|
configParent,
|
|
439
439
|
self._options.fileName
|
|
440
440
|
);
|
|
441
|
+
}
|
|
441
442
|
}
|
|
442
443
|
}
|
|
443
444
|
}
|