storybook 10.0.6 → 10.0.8
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-RW5PKMWM.js → chunk-HERDX7MO.js} +2 -2
- package/dist/_browser-chunks/{chunk-UTNZYD2N.js → chunk-KHNISLMN.js} +81 -37
- package/dist/_browser-chunks/{chunk-B4A3ADP3.js → chunk-U2JWIJRX.js} +1 -1
- package/dist/_browser-chunks/{chunk-SYS437NN.js → chunk-VQJJDUCI.js} +1 -1
- package/dist/_node-chunks/{builder-manager-5BE3TVEG.js → builder-manager-32BKVJNY.js} +12 -12
- package/dist/_node-chunks/camelcase-A6XPJDW2.js +18 -0
- package/dist/_node-chunks/{chunk-HDJVTGFA.js → chunk-2JVDNALC.js} +7 -7
- package/dist/_node-chunks/{chunk-56RMQVQY.js → chunk-2YHAMJAY.js} +7 -7
- package/dist/_node-chunks/{chunk-6AFH6BK3.js → chunk-425EMBPZ.js} +297 -768
- package/dist/_node-chunks/{chunk-QQXHPA76.js → chunk-4UOXOBHK.js} +22 -16
- package/dist/_node-chunks/{chunk-LG2WHY6N.js → chunk-4WKJYHSS.js} +7 -7
- package/dist/_node-chunks/{chunk-JSMQSCY6.js → chunk-5VYG646K.js} +7 -7
- package/dist/_node-chunks/chunk-A3KNZ5FW.js +18 -0
- package/dist/_node-chunks/{chunk-2HHKCD24.js → chunk-C4ROO6RE.js} +7 -7
- package/dist/_node-chunks/{chunk-OUWPG727.js → chunk-CWWI6A7W.js} +8 -8
- package/dist/_node-chunks/{chunk-FOQLIZOZ.js → chunk-DPKZQ6YX.js} +7 -7
- package/dist/_node-chunks/{chunk-LD6DUTZM.js → chunk-EGWLH7SG.js} +10 -10
- package/dist/_node-chunks/{chunk-PVNLHT7L.js → chunk-F6NUZ463.js} +9 -9
- package/dist/_node-chunks/{chunk-IH6W7E4F.js → chunk-FYLSDVSH.js} +21 -21
- package/dist/_node-chunks/{chunk-XONWFYRB.js → chunk-HUKSE3QZ.js} +7 -7
- package/dist/_node-chunks/{chunk-F362GMSK.js → chunk-IR6AN3RK.js} +8 -8
- package/dist/_node-chunks/{chunk-MERGUJ3N.js → chunk-J5R55OCP.js} +7 -7
- package/dist/_node-chunks/{chunk-YDW7IXUU.js → chunk-JBW3FROT.js} +6 -6
- package/dist/_node-chunks/{chunk-SQIPJWM7.js → chunk-JFMDUYER.js} +7 -7
- package/dist/_node-chunks/{chunk-2GBN7SJF.js → chunk-JVUHT63V.js} +8 -8
- package/dist/_node-chunks/{chunk-QQIWF6OB.js → chunk-K373EZTP.js} +12 -12
- package/dist/_node-chunks/{chunk-4FUKV4QU.js → chunk-KVR64UU2.js} +529 -284
- package/dist/_node-chunks/chunk-NEOS45YA.js +61 -0
- package/dist/_node-chunks/{chunk-DL43IE5O.js → chunk-OVJEF4RI.js} +9 -9
- package/dist/_node-chunks/{chunk-HRBEKIHV.js → chunk-PK3UILX6.js} +7 -7
- package/dist/_node-chunks/{chunk-LJJZ3BAM.js → chunk-QHYQ5G5G.js} +7 -7
- package/dist/_node-chunks/{chunk-BJYCX337.js → chunk-TKXE3RQ5.js} +12 -12
- package/dist/_node-chunks/{chunk-KPKM4AEB.js → chunk-UOLIYXDF.js} +7 -7
- package/dist/_node-chunks/{chunk-6EXM6B54.js → chunk-V4MKEKP7.js} +7 -7
- package/dist/_node-chunks/{chunk-JYHAADG7.js → chunk-V7ZKSK5R.js} +7 -7
- package/dist/_node-chunks/{chunk-X6O7XFYS.js → chunk-VTD5TIUC.js} +8 -8
- package/dist/_node-chunks/{chunk-NIRITJWP.js → chunk-VWYF3SCI.js} +7 -7
- package/dist/_node-chunks/{chunk-QNHU6QSD.js → chunk-YUFML7ZZ.js} +7 -7
- package/dist/_node-chunks/{chunk-QKSFE2UN.js → chunk-ZDZQHU26.js} +6 -6
- package/dist/_node-chunks/{dist-AONDCLQW.js → dist-SD7YZH5A.js} +9 -9
- package/dist/_node-chunks/{globby-NXAV5VNT.js → globby-FODEQLAP.js} +9 -9
- package/dist/_node-chunks/{lib-W6JDP72S.js → lib-G6JECM5H.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-LMR2UFJM.js → mdx-N42X6CFJ-MK2KTUH7.js} +8 -8
- package/dist/_node-chunks/{p-limit-LRYXPTYK.js → p-limit-IJ5D4B4L.js} +10 -7
- package/dist/_node-chunks/{plugin-FM35FQEB.js → plugin-NXD266M2.js} +10 -10
- package/dist/_node-chunks/{plugin-OJ7NTAAH.js → plugin-SAVMZDUL.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-V7WJU2MN.js → webpack-inject-mocker-runtime-plugin-2PG2OIHX.js} +30 -24
- package/dist/_node-chunks/{webpack-mock-plugin-B3R7K7R2.js → webpack-mock-plugin-CQH72GQV.js} +9 -9
- package/dist/babel/index.d.ts +671 -335
- package/dist/babel/index.js +11 -11
- 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 +77 -82
- package/dist/common/index.js +20 -20
- package/dist/components/index.js +394 -176
- package/dist/core-server/index.js +55 -44
- package/dist/core-server/presets/common-manager.js +238 -230
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +24 -23
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +3 -3
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +2 -2
- package/dist/manager/globals-runtime.js +4291 -4116
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.js +3 -3
- package/dist/node-logger/index.js +576 -531
- package/dist/preview/runtime.js +953 -891
- package/dist/preview-api/index.js +3 -3
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +609 -547
- package/dist/theming/index.d.ts +3363 -2597
- package/package.json +2 -2
- package/dist/_node-chunks/camelcase-AEFVF77F.js +0 -18
- package/dist/_node-chunks/chunk-HOUX2ZA6.js +0 -18
- package/dist/_node-chunks/chunk-PHNGYIYJ.js +0 -61
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,11 +22,11 @@ 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-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-KVR64UU2.js";
|
|
26
|
+
import "../_node-chunks/chunk-2YHAMJAY.js";
|
|
27
|
+
import "../_node-chunks/chunk-UOLIYXDF.js";
|
|
28
|
+
import "../_node-chunks/chunk-4WKJYHSS.js";
|
|
29
|
+
import "../_node-chunks/chunk-JBW3FROT.js";
|
|
30
30
|
var export_transformSync = import_core.transformSync;
|
|
31
31
|
export {
|
|
32
32
|
BabelFileClass,
|
package/dist/bin/core.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.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-A3KNZ5FW.js";
|
|
15
15
|
import {
|
|
16
16
|
globalSettings
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-CWWI6A7W.js";
|
|
18
18
|
import {
|
|
19
19
|
require_dist
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-PK3UILX6.js";
|
|
21
21
|
import {
|
|
22
22
|
require_picocolors
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
23
|
+
} from "../_node-chunks/chunk-4WKJYHSS.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__name,
|
|
27
27
|
__require,
|
|
28
28
|
__toESM
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
29
|
+
} from "../_node-chunks/chunk-JBW3FROT.js";
|
|
30
30
|
|
|
31
31
|
// ../node_modules/commander/lib/error.js
|
|
32
32
|
var require_error = __commonJS({
|
|
@@ -2684,7 +2684,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2684
2684
|
}
|
|
2685
2685
|
__name(maybeOption, "maybeOption");
|
|
2686
2686
|
const negativeNumberArg = /* @__PURE__ */ __name((arg) => {
|
|
2687
|
-
if (
|
|
2687
|
+
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
|
|
2688
2688
|
return !this._getCommandAndAncestors().some(
|
|
2689
2689
|
(cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short))
|
|
2690
2690
|
);
|
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.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-NEOS45YA.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-425EMBPZ.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-J5R55OCP.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-PK3UILX6.js";
|
|
25
25
|
import {
|
|
26
26
|
__name,
|
|
27
27
|
__toESM
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-JBW3FROT.js";
|
|
29
29
|
|
|
30
30
|
// src/bin/dispatcher.ts
|
|
31
31
|
import { spawn } from "node:child_process";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.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-ZDZQHU26.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-PK3UILX6.js";
|
|
18
18
|
import {
|
|
19
19
|
__name,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-JBW3FROT.js";
|
|
22
22
|
|
|
23
23
|
// src/bin/loader.ts
|
|
24
24
|
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_39zvq8kkt8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -42,45 +42,45 @@ import {
|
|
|
42
42
|
supportedTemplates,
|
|
43
43
|
unsupportedTemplate,
|
|
44
44
|
writeFileAsJson
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
45
|
+
} from "../_node-chunks/chunk-K373EZTP.js";
|
|
46
46
|
import {
|
|
47
47
|
boxen
|
|
48
|
-
} from "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
48
|
+
} from "../_node-chunks/chunk-VTD5TIUC.js";
|
|
49
|
+
import "../_node-chunks/chunk-2JVDNALC.js";
|
|
50
50
|
import {
|
|
51
51
|
Settings,
|
|
52
52
|
_clearGlobalSettings,
|
|
53
53
|
globalSettings
|
|
54
|
-
} from "../_node-chunks/chunk-
|
|
54
|
+
} from "../_node-chunks/chunk-CWWI6A7W.js";
|
|
55
55
|
import {
|
|
56
56
|
up2 as up
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
59
|
-
import "../_node-chunks/chunk-
|
|
60
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-C4ROO6RE.js";
|
|
58
|
+
import "../_node-chunks/chunk-HUKSE3QZ.js";
|
|
59
|
+
import "../_node-chunks/chunk-425EMBPZ.js";
|
|
60
|
+
import "../_node-chunks/chunk-J5R55OCP.js";
|
|
61
61
|
import {
|
|
62
62
|
require_prompts
|
|
63
|
-
} from "../_node-chunks/chunk-
|
|
63
|
+
} from "../_node-chunks/chunk-VWYF3SCI.js";
|
|
64
64
|
import {
|
|
65
65
|
require_dist
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
66
|
+
} from "../_node-chunks/chunk-PK3UILX6.js";
|
|
67
67
|
import {
|
|
68
68
|
babelParse,
|
|
69
69
|
recast,
|
|
70
70
|
traverse,
|
|
71
71
|
types
|
|
72
|
-
} from "../_node-chunks/chunk-
|
|
73
|
-
import "../_node-chunks/chunk-
|
|
74
|
-
import "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-KVR64UU2.js";
|
|
73
|
+
import "../_node-chunks/chunk-2YHAMJAY.js";
|
|
74
|
+
import "../_node-chunks/chunk-UOLIYXDF.js";
|
|
75
75
|
import {
|
|
76
76
|
require_picocolors
|
|
77
|
-
} from "../_node-chunks/chunk-
|
|
77
|
+
} from "../_node-chunks/chunk-4WKJYHSS.js";
|
|
78
78
|
import {
|
|
79
79
|
__commonJS,
|
|
80
80
|
__name,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-JBW3FROT.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/esprima/dist/esprima.js
|
|
86
86
|
var require_esprima = __commonJS({
|
|
@@ -7228,24 +7228,15 @@ var require_src = __commonJS({
|
|
|
7228
7228
|
}
|
|
7229
7229
|
});
|
|
7230
7230
|
|
|
7231
|
-
// ../node_modules/has-own-prop/index.js
|
|
7232
|
-
var require_has_own_prop = __commonJS({
|
|
7233
|
-
"../node_modules/has-own-prop/index.js"(exports, module) {
|
|
7234
|
-
"use strict";
|
|
7235
|
-
var hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7236
|
-
module.exports = (object, property) => hasOwnProp.call(object, property);
|
|
7237
|
-
}
|
|
7238
|
-
});
|
|
7239
|
-
|
|
7240
7231
|
// ../node_modules/comment-json/src/common.js
|
|
7241
7232
|
var require_common = __commonJS({
|
|
7242
7233
|
"../node_modules/comment-json/src/common.js"(exports, module) {
|
|
7243
|
-
var hasOwnProperty = require_has_own_prop();
|
|
7244
7234
|
var {
|
|
7245
7235
|
isObject,
|
|
7246
7236
|
isArray,
|
|
7247
7237
|
isString,
|
|
7248
|
-
isNumber
|
|
7238
|
+
isNumber,
|
|
7239
|
+
isFunction
|
|
7249
7240
|
} = require_util();
|
|
7250
7241
|
var PREFIX_BEFORE = "before";
|
|
7251
7242
|
var PREFIX_AFTER_PROP = "after-prop";
|
|
@@ -7283,7 +7274,7 @@ var require_common = __commonJS({
|
|
|
7283
7274
|
}), "define");
|
|
7284
7275
|
var copy_comments_by_kind = /* @__PURE__ */ __name((target, source, target_key, source_key, prefix, remove_source) => {
|
|
7285
7276
|
const source_prop = symbol(prefix, source_key);
|
|
7286
|
-
if (!
|
|
7277
|
+
if (!Object.hasOwn(source, source_prop)) {
|
|
7287
7278
|
return;
|
|
7288
7279
|
}
|
|
7289
7280
|
const target_prop = target_key === source_key ? source_prop : symbol(prefix, target_key);
|
|
@@ -7310,7 +7301,7 @@ var require_common = __commonJS({
|
|
|
7310
7301
|
}
|
|
7311
7302
|
SYMBOL_PREFIXES.forEach((prefix) => {
|
|
7312
7303
|
const target_prop = symbol(prefix, to);
|
|
7313
|
-
if (!
|
|
7304
|
+
if (!Object.hasOwn(array, target_prop)) {
|
|
7314
7305
|
copy_comments_by_kind(array, array, to, from, prefix, true);
|
|
7315
7306
|
return;
|
|
7316
7307
|
}
|
|
@@ -7333,7 +7324,7 @@ var require_common = __commonJS({
|
|
|
7333
7324
|
if (!isString(key) && !isNumber(key)) {
|
|
7334
7325
|
return;
|
|
7335
7326
|
}
|
|
7336
|
-
if (!
|
|
7327
|
+
if (!Object.hasOwn(source, key)) {
|
|
7337
7328
|
return;
|
|
7338
7329
|
}
|
|
7339
7330
|
target[key] = source[key];
|
|
@@ -7341,6 +7332,7 @@ var require_common = __commonJS({
|
|
|
7341
7332
|
});
|
|
7342
7333
|
return target;
|
|
7343
7334
|
}, "assign");
|
|
7335
|
+
var is_raw_json = isFunction(JSON.isRawJSON) ? JSON.isRawJSON : () => false;
|
|
7344
7336
|
module.exports = {
|
|
7345
7337
|
SYMBOL_PREFIXES,
|
|
7346
7338
|
PREFIX_BEFORE,
|
|
@@ -7364,6 +7356,7 @@ var require_common = __commonJS({
|
|
|
7364
7356
|
copy_comments,
|
|
7365
7357
|
swap_comments,
|
|
7366
7358
|
assign_non_prop_comments,
|
|
7359
|
+
is_raw_json,
|
|
7367
7360
|
assign(target, source, keys) {
|
|
7368
7361
|
if (!isObject(target)) {
|
|
7369
7362
|
throw new TypeError("Cannot convert undefined or null to object");
|
|
@@ -7587,6 +7580,7 @@ var require_parse = __commonJS({
|
|
|
7587
7580
|
comment: true,
|
|
7588
7581
|
loc: true
|
|
7589
7582
|
}), "tokenize");
|
|
7583
|
+
var current_code;
|
|
7590
7584
|
var previous_hosts = [];
|
|
7591
7585
|
var comments_host = null;
|
|
7592
7586
|
var unassigned_comments = null;
|
|
@@ -7600,6 +7594,7 @@ var require_parse = __commonJS({
|
|
|
7600
7594
|
var index;
|
|
7601
7595
|
var reviver = null;
|
|
7602
7596
|
var clean = /* @__PURE__ */ __name(() => {
|
|
7597
|
+
current_code = UNDEFINED;
|
|
7603
7598
|
previous_props.length = previous_hosts.length = 0;
|
|
7604
7599
|
last = null;
|
|
7605
7600
|
last_prop = UNDEFINED;
|
|
@@ -7608,14 +7603,16 @@ var require_parse = __commonJS({
|
|
|
7608
7603
|
clean();
|
|
7609
7604
|
tokens.length = 0;
|
|
7610
7605
|
unassigned_comments = comments_host = tokens = last = current = reviver = null;
|
|
7606
|
+
current_code = UNDEFINED;
|
|
7611
7607
|
}, "free");
|
|
7612
7608
|
var symbolFor = /* @__PURE__ */ __name((prefix) => Symbol.for(
|
|
7613
7609
|
last_prop !== UNDEFINED ? prefix + COLON + last_prop : prefix
|
|
7614
7610
|
), "symbolFor");
|
|
7615
|
-
var transform = /* @__PURE__ */ __name((k,
|
|
7611
|
+
var transform = /* @__PURE__ */ __name((k, { value, context = {} }) => reviver ? reviver(k, value, context) : value, "transform");
|
|
7616
7612
|
var unexpected = /* @__PURE__ */ __name(() => {
|
|
7617
|
-
const error = new SyntaxError(`Unexpected token ${current.value.slice(0, 1)}`);
|
|
7613
|
+
const error = new SyntaxError(`Unexpected token '${current.value.slice(0, 1)}', "${current_code}" is not valid JSON`);
|
|
7618
7614
|
Object.assign(error, current.loc.start);
|
|
7615
|
+
free();
|
|
7619
7616
|
throw error;
|
|
7620
7617
|
}, "unexpected");
|
|
7621
7618
|
var unexpected_end = /* @__PURE__ */ __name(() => {
|
|
@@ -7624,6 +7621,7 @@ var require_parse = __commonJS({
|
|
|
7624
7621
|
line: 1,
|
|
7625
7622
|
column: 0
|
|
7626
7623
|
});
|
|
7624
|
+
free();
|
|
7627
7625
|
throw error;
|
|
7628
7626
|
}, "unexpected_end");
|
|
7629
7627
|
var next = /* @__PURE__ */ __name(() => {
|
|
@@ -7796,11 +7794,15 @@ var require_parse = __commonJS({
|
|
|
7796
7794
|
let tt = type();
|
|
7797
7795
|
if (tt === CURLY_BRACKET_OPEN) {
|
|
7798
7796
|
next();
|
|
7799
|
-
return
|
|
7797
|
+
return {
|
|
7798
|
+
value: parse_object()
|
|
7799
|
+
};
|
|
7800
7800
|
}
|
|
7801
7801
|
if (tt === BRACKET_OPEN) {
|
|
7802
7802
|
next();
|
|
7803
|
-
return
|
|
7803
|
+
return {
|
|
7804
|
+
value: parse_array()
|
|
7805
|
+
};
|
|
7804
7806
|
}
|
|
7805
7807
|
let negative = EMPTY;
|
|
7806
7808
|
if (tt === MINUS) {
|
|
@@ -7809,6 +7811,7 @@ var require_parse = __commonJS({
|
|
|
7809
7811
|
negative = MINUS;
|
|
7810
7812
|
}
|
|
7811
7813
|
let v;
|
|
7814
|
+
let source;
|
|
7812
7815
|
switch (tt) {
|
|
7813
7816
|
case "String":
|
|
7814
7817
|
case "Boolean":
|
|
@@ -7816,14 +7819,22 @@ var require_parse = __commonJS({
|
|
|
7816
7819
|
case "Numeric":
|
|
7817
7820
|
v = current.value;
|
|
7818
7821
|
next();
|
|
7819
|
-
|
|
7822
|
+
source = negative + v;
|
|
7823
|
+
return {
|
|
7824
|
+
value: JSON.parse(source),
|
|
7825
|
+
context: {
|
|
7826
|
+
source
|
|
7827
|
+
}
|
|
7828
|
+
};
|
|
7820
7829
|
default:
|
|
7830
|
+
return {};
|
|
7821
7831
|
}
|
|
7822
7832
|
}
|
|
7823
7833
|
__name(walk, "walk");
|
|
7824
7834
|
var isObject = /* @__PURE__ */ __name((subject) => Object(subject) === subject, "isObject");
|
|
7825
7835
|
var parse = /* @__PURE__ */ __name((code, rev, no_comments) => {
|
|
7826
7836
|
clean();
|
|
7837
|
+
current_code = code;
|
|
7827
7838
|
tokens = tokenize(code);
|
|
7828
7839
|
reviver = rev;
|
|
7829
7840
|
remove_comments = no_comments;
|
|
@@ -7834,11 +7845,12 @@ var require_parse = __commonJS({
|
|
|
7834
7845
|
next();
|
|
7835
7846
|
set_comments_host({});
|
|
7836
7847
|
parse_comments(PREFIX_BEFORE_ALL);
|
|
7837
|
-
|
|
7848
|
+
const final = walk();
|
|
7838
7849
|
parse_comments(PREFIX_AFTER_ALL);
|
|
7839
7850
|
if (current) {
|
|
7840
7851
|
unexpected();
|
|
7841
7852
|
}
|
|
7853
|
+
let result = transform("", final);
|
|
7842
7854
|
if (!no_comments && result !== null) {
|
|
7843
7855
|
if (!isObject(result)) {
|
|
7844
7856
|
result = new Object(result);
|
|
@@ -7846,7 +7858,6 @@ var require_parse = __commonJS({
|
|
|
7846
7858
|
assign_non_prop_comments(result, comments_host);
|
|
7847
7859
|
}
|
|
7848
7860
|
restore_comments_host();
|
|
7849
|
-
result = transform("", result);
|
|
7850
7861
|
free();
|
|
7851
7862
|
return result;
|
|
7852
7863
|
}, "parse");
|
|
@@ -7857,41 +7868,6 @@ var require_parse = __commonJS({
|
|
|
7857
7868
|
}
|
|
7858
7869
|
});
|
|
7859
7870
|
|
|
7860
|
-
// ../node_modules/repeat-string/index.js
|
|
7861
|
-
var require_repeat_string = __commonJS({
|
|
7862
|
-
"../node_modules/repeat-string/index.js"(exports, module) {
|
|
7863
|
-
"use strict";
|
|
7864
|
-
var res = "";
|
|
7865
|
-
var cache;
|
|
7866
|
-
module.exports = repeat;
|
|
7867
|
-
function repeat(str, num) {
|
|
7868
|
-
if (typeof str !== "string") {
|
|
7869
|
-
throw new TypeError("expected a string");
|
|
7870
|
-
}
|
|
7871
|
-
if (num === 1) return str;
|
|
7872
|
-
if (num === 2) return str + str;
|
|
7873
|
-
var max = str.length * num;
|
|
7874
|
-
if (cache !== str || typeof cache === "undefined") {
|
|
7875
|
-
cache = str;
|
|
7876
|
-
res = "";
|
|
7877
|
-
} else if (res.length >= max) {
|
|
7878
|
-
return res.substr(0, max);
|
|
7879
|
-
}
|
|
7880
|
-
while (max > res.length && num > 1) {
|
|
7881
|
-
if (num & 1) {
|
|
7882
|
-
res += str;
|
|
7883
|
-
}
|
|
7884
|
-
num >>= 1;
|
|
7885
|
-
str += str;
|
|
7886
|
-
}
|
|
7887
|
-
res += str;
|
|
7888
|
-
res = res.substr(0, max);
|
|
7889
|
-
return res;
|
|
7890
|
-
}
|
|
7891
|
-
__name(repeat, "repeat");
|
|
7892
|
-
}
|
|
7893
|
-
});
|
|
7894
|
-
|
|
7895
7871
|
// ../node_modules/comment-json/src/stringify.js
|
|
7896
7872
|
var require_stringify = __commonJS({
|
|
7897
7873
|
"../node_modules/comment-json/src/stringify.js"(exports, module) {
|
|
@@ -7902,7 +7878,6 @@ var require_stringify = __commonJS({
|
|
|
7902
7878
|
isNumber,
|
|
7903
7879
|
isString
|
|
7904
7880
|
} = require_util();
|
|
7905
|
-
var repeat = require_repeat_string();
|
|
7906
7881
|
var {
|
|
7907
7882
|
PREFIX_BEFORE_ALL,
|
|
7908
7883
|
PREFIX_BEFORE,
|
|
@@ -7918,7 +7893,8 @@ var require_stringify = __commonJS({
|
|
|
7918
7893
|
COLON,
|
|
7919
7894
|
COMMA,
|
|
7920
7895
|
EMPTY,
|
|
7921
|
-
UNDEFINED
|
|
7896
|
+
UNDEFINED,
|
|
7897
|
+
is_raw_json
|
|
7922
7898
|
} = require_common();
|
|
7923
7899
|
var ESCAPABLE = /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
|
7924
7900
|
var SPACE = " ";
|
|
@@ -8058,13 +8034,16 @@ var require_stringify = __commonJS({
|
|
|
8058
8034
|
// If the type is 'object', we might be dealing with an object or an array or
|
|
8059
8035
|
// null.
|
|
8060
8036
|
case "object":
|
|
8037
|
+
if (is_raw_json(value)) {
|
|
8038
|
+
return value.rawJSON;
|
|
8039
|
+
}
|
|
8061
8040
|
return isArray(value) ? array_stringify(value, gap) : object_stringify(value, gap);
|
|
8062
8041
|
// undefined
|
|
8063
8042
|
default:
|
|
8064
8043
|
}
|
|
8065
8044
|
}
|
|
8066
8045
|
__name(stringify, "stringify");
|
|
8067
|
-
var get_indent = /* @__PURE__ */ __name((space) => isString(space) ? space : isNumber(space) ? repeat(
|
|
8046
|
+
var get_indent = /* @__PURE__ */ __name((space) => isString(space) ? space : isNumber(space) ? SPACE.repeat(space) : EMPTY, "get_indent");
|
|
8068
8047
|
var { toString } = Object.prototype;
|
|
8069
8048
|
var PRIMITIVE_OBJECT_TYPES = [
|
|
8070
8049
|
"[object Number]",
|
|
@@ -8090,7 +8069,7 @@ var require_stringify = __commonJS({
|
|
|
8090
8069
|
indent = indent_;
|
|
8091
8070
|
const str = is_primitive_object(value) ? JSON.stringify(value) : stringify("", { "": value }, EMPTY);
|
|
8092
8071
|
clean();
|
|
8093
|
-
return isObject(value) ? process_comments(value, PREFIX_BEFORE_ALL, EMPTY).trimLeft() + str + process_comments(value, PREFIX_AFTER_ALL, EMPTY).trimRight() : str;
|
|
8072
|
+
return isObject(value) ? process_comments(value, PREFIX_BEFORE_ALL, EMPTY, true).trimLeft() + str + process_comments(value, PREFIX_AFTER_ALL, EMPTY).trimRight() : str;
|
|
8094
8073
|
};
|
|
8095
8074
|
}
|
|
8096
8075
|
});
|
|
@@ -8101,8 +8080,24 @@ var require_src2 = __commonJS({
|
|
|
8101
8080
|
var { parse, tokenize } = require_parse();
|
|
8102
8081
|
var stringify = require_stringify();
|
|
8103
8082
|
var { CommentArray } = require_array();
|
|
8104
|
-
var {
|
|
8083
|
+
var {
|
|
8084
|
+
PREFIX_BEFORE,
|
|
8085
|
+
PREFIX_AFTER_PROP,
|
|
8086
|
+
PREFIX_AFTER_COLON,
|
|
8087
|
+
PREFIX_AFTER_VALUE,
|
|
8088
|
+
PREFIX_AFTER,
|
|
8089
|
+
PREFIX_BEFORE_ALL,
|
|
8090
|
+
PREFIX_AFTER_ALL,
|
|
8091
|
+
assign
|
|
8092
|
+
} = require_common();
|
|
8105
8093
|
module.exports = {
|
|
8094
|
+
PREFIX_BEFORE,
|
|
8095
|
+
PREFIX_AFTER_PROP,
|
|
8096
|
+
PREFIX_AFTER_COLON,
|
|
8097
|
+
PREFIX_AFTER_VALUE,
|
|
8098
|
+
PREFIX_AFTER,
|
|
8099
|
+
PREFIX_BEFORE_ALL,
|
|
8100
|
+
PREFIX_AFTER_ALL,
|
|
8106
8101
|
parse,
|
|
8107
8102
|
stringify,
|
|
8108
8103
|
tokenize,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_39zvq8kkt8 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_39zvq8kkt8 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_39zvq8kkt8 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_39zvq8kkt8.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_39zvq8kkt8.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_39zvq8kkt8.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -83,11 +83,11 @@ import {
|
|
|
83
83
|
transformImportFiles,
|
|
84
84
|
validateConfigurationFiles,
|
|
85
85
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
86
|
+
} from "../_node-chunks/chunk-FYLSDVSH.js";
|
|
87
|
+
import "../_node-chunks/chunk-V4MKEKP7.js";
|
|
88
88
|
import {
|
|
89
89
|
versions_default
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-NEOS45YA.js";
|
|
91
91
|
import {
|
|
92
92
|
findFilesUp,
|
|
93
93
|
getProjectRoot,
|
|
@@ -99,22 +99,22 @@ import {
|
|
|
99
99
|
optionalEnvToBoolean,
|
|
100
100
|
stringifyEnvs,
|
|
101
101
|
stringifyProcessEnvs
|
|
102
|
-
} from "../_node-chunks/chunk-
|
|
103
|
-
import "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
102
|
+
} from "../_node-chunks/chunk-F6NUZ463.js";
|
|
103
|
+
import "../_node-chunks/chunk-C4ROO6RE.js";
|
|
104
|
+
import "../_node-chunks/chunk-HUKSE3QZ.js";
|
|
105
105
|
import {
|
|
106
106
|
importMetaResolve,
|
|
107
107
|
importModule,
|
|
108
108
|
resolvePackageDir,
|
|
109
109
|
safeResolveModule
|
|
110
|
-
} from "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
110
|
+
} from "../_node-chunks/chunk-425EMBPZ.js";
|
|
111
|
+
import "../_node-chunks/chunk-J5R55OCP.js";
|
|
112
|
+
import "../_node-chunks/chunk-VWYF3SCI.js";
|
|
113
|
+
import "../_node-chunks/chunk-EGWLH7SG.js";
|
|
114
|
+
import "../_node-chunks/chunk-QHYQ5G5G.js";
|
|
115
|
+
import "../_node-chunks/chunk-PK3UILX6.js";
|
|
116
|
+
import "../_node-chunks/chunk-4WKJYHSS.js";
|
|
117
|
+
import "../_node-chunks/chunk-JBW3FROT.js";
|
|
118
118
|
export {
|
|
119
119
|
COMMON_ENV_VARS,
|
|
120
120
|
DEFAULT_FILES_PATTERN,
|