storybook 10.2.0-alpha.1 → 10.2.0-alpha.2
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/Color-E5XDEOX4.js +484 -0
- package/dist/_browser-chunks/{WithTooltip-IO6J4KBT.js → WithTooltip-65CFNBJE.js} +70 -70
- package/dist/_browser-chunks/{chunk-45UGUKRX.js → chunk-242VQQM5.js} +1 -1
- package/dist/_browser-chunks/chunk-2NDLAB5X.js +363 -0
- package/dist/_browser-chunks/{chunk-JP7NCOJX.js → chunk-3LY4VQVK.js} +1 -1
- package/dist/_browser-chunks/{chunk-XJNX76GA.js → chunk-54PNNATT.js} +3 -20
- package/dist/_browser-chunks/{chunk-VYJQ7RU5.js → chunk-6QKNWBQB.js} +17 -17
- package/dist/_browser-chunks/chunk-CLSHX4VX.js +4140 -0
- package/dist/_browser-chunks/{chunk-2XZMBGTA.js → chunk-DOSERVNW.js} +1 -1
- package/dist/_browser-chunks/chunk-HPYUT3WS.js +199 -0
- package/dist/_browser-chunks/{chunk-BRX2HXH7.js → chunk-IH6QJILI.js} +1 -1
- package/dist/_browser-chunks/{chunk-AS2HQEYC.js → chunk-IWQGIXJS.js} +1 -1
- package/dist/_browser-chunks/{chunk-UD6FQLAF.js → chunk-JK6U3MQW.js} +3 -3
- package/dist/_browser-chunks/{chunk-CHUV5WSW.js → chunk-LE2LTDW3.js} +1 -1
- package/dist/_browser-chunks/{chunk-RP5RXKFU.js → chunk-MOYJJEXA.js} +38 -29
- package/dist/_browser-chunks/chunk-NZMVUW5T.js +7 -0
- package/dist/_browser-chunks/{chunk-AXG2BOBL.js → chunk-S6TK43XQ.js} +10 -10
- package/dist/_browser-chunks/{chunk-H6XK3RSC.js → chunk-UAYGIC3L.js} +6 -6
- package/dist/_browser-chunks/{chunk-YKE5S47A.js → chunk-V2VKKSMQ.js} +18 -18
- package/dist/_browser-chunks/chunk-VIJ7SQRO.js +568 -0
- package/dist/_browser-chunks/chunk-XCZK5QUJ.js +0 -0
- package/dist/_browser-chunks/{chunk-3OXGAGBE.js → chunk-XLJZ7AOP.js} +14 -14
- package/dist/_browser-chunks/{chunk-SS2NHR7W.js → chunk-Y6HZAT53.js} +10 -12
- package/dist/_browser-chunks/{chunk-P4F4UVXX.js → chunk-YKABRMAI.js} +15 -15
- package/dist/_browser-chunks/{chunk-WJYERY3R.js → chunk-ZCFV7BZB.js} +2 -2
- package/dist/_browser-chunks/{formatter-QJ4M4OGQ.js → formatter-EIJCOSYU.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-IQDEPFLK.js → syntaxhighlighter-ED5Y7EFY.js} +119 -119
- package/dist/_node-chunks/{builder-manager-LXL5N6M5.js → builder-manager-ZK4QXZNX.js} +22 -22
- package/dist/_node-chunks/{camelcase-64II7H4U.js → camelcase-QWQG7I72.js} +8 -8
- package/dist/_node-chunks/{chunk-R3WYNAT5.js → chunk-2AFVBCGF.js} +6 -6
- package/dist/_node-chunks/{chunk-F7377GT2.js → chunk-5VZMCPTH.js} +18 -18
- package/dist/_node-chunks/{chunk-KXDU466E.js → chunk-6OZRMRVO.js} +31 -31
- package/dist/_node-chunks/chunk-CLCLRZYL.js +61 -0
- package/dist/_node-chunks/{chunk-AJUO2ZU3.js → chunk-CW7HJRCY.js} +9 -9
- package/dist/_node-chunks/chunk-DF3QP62W.js +18 -0
- package/dist/_node-chunks/{chunk-4BQMSZKI.js → chunk-DWVHBQGR.js} +165 -191
- package/dist/_node-chunks/chunk-EVBCPGQO.js +20 -0
- package/dist/_node-chunks/{chunk-5GNBLJKS.js → chunk-EXZXVBZO.js} +8 -8
- package/dist/_node-chunks/{chunk-VR5LMO3F.js → chunk-FZFZ5TOM.js} +9 -9
- package/dist/_node-chunks/{chunk-4EZYJUAC.js → chunk-GKEAARBQ.js} +10 -10
- package/dist/_node-chunks/{chunk-KMTK5W6O.js → chunk-HMFROKHU.js} +19 -19
- package/dist/_node-chunks/{chunk-JYMZJCZ7.js → chunk-I5TOD3AY.js} +66 -72
- package/dist/_node-chunks/{chunk-FTR6MHOX.js → chunk-KVNLJSAB.js} +619 -148
- package/dist/_node-chunks/{chunk-ET4VMMZG.js → chunk-NKOHF7TQ.js} +10 -10
- package/dist/_node-chunks/{chunk-PGFQADZC.js → chunk-OV2CP4VV.js} +7 -7
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +23 -0
- package/dist/_node-chunks/{chunk-LEDV47V2.js → chunk-Q5ZQH2OQ.js} +15 -15
- package/dist/_node-chunks/{chunk-77APSTTM.js → chunk-QFSK4B7R.js} +8 -8
- package/dist/_node-chunks/{chunk-TP6ICLTL.js → chunk-R2J3OB3H.js} +6 -6
- package/dist/_node-chunks/{chunk-GOOBGRAV.js → chunk-RGQC4G3L.js} +165 -21
- package/dist/_node-chunks/{chunk-5NWCBUGD.js → chunk-TOXVUAH2.js} +6 -6
- package/dist/_node-chunks/{chunk-SR5ZYD7K.js → chunk-URBB5EGY.js} +8 -8
- package/dist/_node-chunks/{chunk-TX77W2KY.js → chunk-UWJ4BOOL.js} +597 -593
- package/dist/_node-chunks/{chunk-CLNMK7MP.js → chunk-VJPI73BB.js} +230 -236
- package/dist/_node-chunks/{chunk-ZI2RAI3I.js → chunk-WOS3OQVT.js} +6 -6
- package/dist/_node-chunks/{chunk-VFTNRF5X.js → chunk-WUKWNPSQ.js} +17 -17
- package/dist/_node-chunks/{chunk-GYZQMMTN.js → chunk-XFU23B4C.js} +9 -9
- package/dist/_node-chunks/{dist-HGQ5R6JU.js → dist-UBFMIJZC.js} +10 -10
- package/dist/_node-chunks/{globby-5XJTXKUJ.js → globby-VD3CGPVI.js} +154 -154
- package/dist/_node-chunks/{lib-XNLTS2RI.js → lib-MMJB47J3.js} +16 -16
- package/dist/_node-chunks/{mdx-N42X6CFJ-7WF3QWVO.js → mdx-N42X6CFJ-3J2G7NZZ.js} +11 -11
- package/dist/_node-chunks/{p-limit-RBKYTJKF.js → p-limit-SOBWTEVH.js} +8 -8
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +28 -28
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +14 -11
- package/dist/channels/index.js +3 -3
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +9 -2
- package/dist/components/index.js +327 -311
- package/dist/core-server/index.js +125 -125
- package/dist/core-server/presets/common-manager.css +2 -2
- package/dist/core-server/presets/common-manager.js +43 -38
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +4390 -173
- package/dist/csf/index.js +39 -35
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +6 -5
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +18956 -12602
- package/dist/manager/runtime.js +148 -132
- package/dist/manager-api/index.js +31 -22
- package/dist/mocking-utils/index.js +14 -14
- package/dist/node-logger/index.d.ts +2 -2
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +30784 -24388
- package/dist/preview-api/index.js +12 -11
- package/dist/preview-errors.js +2 -2
- package/dist/router/index.js +12 -13
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +3104 -1604
- package/dist/theming/create.js +3 -3
- package/dist/theming/index.js +38 -38
- package/package.json +2 -8
- package/dist/_browser-chunks/Color-TNPFN3FC.js +0 -1097
- package/dist/_browser-chunks/chunk-3IAH5M2U.js +0 -171
- package/dist/_browser-chunks/chunk-AIOS4NGK.js +0 -252
- package/dist/_browser-chunks/chunk-EZSQOHRI.js +0 -18
- package/dist/_browser-chunks/chunk-GFLS4VP3.js +0 -64
- package/dist/_browser-chunks/chunk-QKODTO7K.js +0 -7
- package/dist/_node-chunks/chunk-COQ27OZ3.js +0 -61
- package/dist/_node-chunks/chunk-MC2R4DSD.js +0 -20
- package/dist/_node-chunks/chunk-NEENMS4J.js +0 -18
- package/dist/_node-chunks/chunk-XEPVDCRL.js +0 -23
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wtqlduo6et from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wtqlduo6et from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wtqlduo6et from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wtqlduo6et.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wtqlduo6et.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wtqlduo6et.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-NKOHF7TQ.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,70 +21,70 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-RGQC4G3L.js";
|
|
25
|
+
import "../_node-chunks/chunk-Q5ZQH2OQ.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-PCMFKXWQ.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-WOS3OQVT.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-5VZMCPTH.js";
|
|
35
|
+
import "../_node-chunks/chunk-DF3QP62W.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-VJPI73BB.js";
|
|
43
|
+
import "../_node-chunks/chunk-CLCLRZYL.js";
|
|
44
|
+
import "../_node-chunks/chunk-HMFROKHU.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-DWVHBQGR.js";
|
|
48
|
+
import "../_node-chunks/chunk-FZFZ5TOM.js";
|
|
49
|
+
import "../_node-chunks/chunk-WUKWNPSQ.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-GKEAARBQ.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-URBB5EGY.js";
|
|
58
|
+
import "../_node-chunks/chunk-R2J3OB3H.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-OV2CP4VV.js";
|
|
65
|
+
import "../_node-chunks/chunk-KVNLJSAB.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-EVBCPGQO.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-CW7HJRCY.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-6OZRMRVO.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-XFU23B4C.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-TOXVUAH2.js";
|
|
84
84
|
|
|
85
|
-
//
|
|
85
|
+
// ../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
87
|
-
"
|
|
87
|
+
"../../node_modules/tsconfig-paths/lib/filesystem.js"(exports) {
|
|
88
88
|
"use strict";
|
|
89
89
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
90
90
|
exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
|
|
@@ -129,9 +129,9 @@ var require_filesystem = __commonJS({
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
//
|
|
132
|
+
// ../../node_modules/tsconfig-paths/lib/mapping-entry.js
|
|
133
133
|
var require_mapping_entry = __commonJS({
|
|
134
|
-
"
|
|
134
|
+
"../../node_modules/tsconfig-paths/lib/mapping-entry.js"(exports) {
|
|
135
135
|
"use strict";
|
|
136
136
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
137
137
|
exports.getAbsoluteMappingEntries = void 0;
|
|
@@ -164,9 +164,9 @@ var require_mapping_entry = __commonJS({
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
//
|
|
167
|
+
// ../../node_modules/tsconfig-paths/lib/try-path.js
|
|
168
168
|
var require_try_path = __commonJS({
|
|
169
|
-
"
|
|
169
|
+
"../../node_modules/tsconfig-paths/lib/try-path.js"(exports) {
|
|
170
170
|
"use strict";
|
|
171
171
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
172
172
|
exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0;
|
|
@@ -220,9 +220,9 @@ var require_try_path = __commonJS({
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
|
|
223
|
-
//
|
|
223
|
+
// ../../node_modules/tsconfig-paths/lib/match-path-sync.js
|
|
224
224
|
var require_match_path_sync = __commonJS({
|
|
225
|
-
"
|
|
225
|
+
"../../node_modules/tsconfig-paths/lib/match-path-sync.js"(exports) {
|
|
226
226
|
"use strict";
|
|
227
227
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
228
228
|
exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
|
|
@@ -275,9 +275,9 @@ var require_match_path_sync = __commonJS({
|
|
|
275
275
|
}
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
//
|
|
278
|
+
// ../../node_modules/tsconfig-paths/lib/match-path-async.js
|
|
279
279
|
var require_match_path_async = __commonJS({
|
|
280
|
-
"
|
|
280
|
+
"../../node_modules/tsconfig-paths/lib/match-path-async.js"(exports) {
|
|
281
281
|
"use strict";
|
|
282
282
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
283
283
|
exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
|
|
@@ -327,9 +327,9 @@ var require_match_path_async = __commonJS({
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
//
|
|
330
|
+
// ../../node_modules/strip-bom/index.js
|
|
331
331
|
var require_strip_bom = __commonJS({
|
|
332
|
-
"
|
|
332
|
+
"../../node_modules/strip-bom/index.js"(exports, module) {
|
|
333
333
|
"use strict";
|
|
334
334
|
module.exports = (x) => {
|
|
335
335
|
if (typeof x != "string")
|
|
@@ -339,9 +339,9 @@ var require_strip_bom = __commonJS({
|
|
|
339
339
|
}
|
|
340
340
|
});
|
|
341
341
|
|
|
342
|
-
//
|
|
342
|
+
// ../../node_modules/tsconfig-paths/lib/tsconfig-loader.js
|
|
343
343
|
var require_tsconfig_loader = __commonJS({
|
|
344
|
-
"
|
|
344
|
+
"../../node_modules/tsconfig-paths/lib/tsconfig-loader.js"(exports) {
|
|
345
345
|
"use strict";
|
|
346
346
|
var __assign = exports && exports.__assign || function() {
|
|
347
347
|
return __assign = Object.assign || function(t) {
|
|
@@ -436,9 +436,9 @@ var require_tsconfig_loader = __commonJS({
|
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
|
|
439
|
-
//
|
|
439
|
+
// ../../node_modules/tsconfig-paths/lib/config-loader.js
|
|
440
440
|
var require_config_loader = __commonJS({
|
|
441
|
-
"
|
|
441
|
+
"../../node_modules/tsconfig-paths/lib/config-loader.js"(exports) {
|
|
442
442
|
"use strict";
|
|
443
443
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
444
444
|
exports.configLoader = exports.loadConfig = void 0;
|
|
@@ -483,9 +483,9 @@ var require_config_loader = __commonJS({
|
|
|
483
483
|
}
|
|
484
484
|
});
|
|
485
485
|
|
|
486
|
-
//
|
|
486
|
+
// ../../node_modules/minimist/index.js
|
|
487
487
|
var require_minimist = __commonJS({
|
|
488
|
-
"
|
|
488
|
+
"../../node_modules/minimist/index.js"(exports, module) {
|
|
489
489
|
"use strict";
|
|
490
490
|
function hasKey(obj, keys) {
|
|
491
491
|
var o = obj;
|
|
@@ -603,9 +603,9 @@ var require_minimist = __commonJS({
|
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
605
|
|
|
606
|
-
//
|
|
606
|
+
// ../../node_modules/tsconfig-paths/lib/register.js
|
|
607
607
|
var require_register = __commonJS({
|
|
608
|
-
"
|
|
608
|
+
"../../node_modules/tsconfig-paths/lib/register.js"(exports) {
|
|
609
609
|
"use strict";
|
|
610
610
|
var __spreadArray = exports && exports.__spreadArray || function(to, from, pack) {
|
|
611
611
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++)
|
|
@@ -691,9 +691,9 @@ var require_register = __commonJS({
|
|
|
691
691
|
}
|
|
692
692
|
});
|
|
693
693
|
|
|
694
|
-
//
|
|
694
|
+
// ../../node_modules/tsconfig-paths/lib/index.js
|
|
695
695
|
var require_lib2 = __commonJS({
|
|
696
|
-
"
|
|
696
|
+
"../../node_modules/tsconfig-paths/lib/index.js"(exports) {
|
|
697
697
|
"use strict";
|
|
698
698
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
699
699
|
exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
|
|
@@ -722,9 +722,9 @@ var require_lib2 = __commonJS({
|
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
|
|
725
|
-
//
|
|
725
|
+
// ../../node_modules/@discoveryjs/json-ext/package.json
|
|
726
726
|
var require_package = __commonJS({
|
|
727
|
-
"
|
|
727
|
+
"../../node_modules/@discoveryjs/json-ext/package.json"(exports, module) {
|
|
728
728
|
module.exports = {
|
|
729
729
|
name: "@discoveryjs/json-ext",
|
|
730
730
|
version: "0.5.7",
|
|
@@ -784,16 +784,16 @@ var require_package = __commonJS({
|
|
|
784
784
|
}
|
|
785
785
|
});
|
|
786
786
|
|
|
787
|
-
//
|
|
787
|
+
// ../../node_modules/@discoveryjs/json-ext/src/version.js
|
|
788
788
|
var require_version = __commonJS({
|
|
789
|
-
"
|
|
789
|
+
"../../node_modules/@discoveryjs/json-ext/src/version.js"(exports, module) {
|
|
790
790
|
module.exports = require_package().version;
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
793
|
|
|
794
|
-
//
|
|
794
|
+
// ../../node_modules/@discoveryjs/json-ext/src/utils.js
|
|
795
795
|
var require_utils = __commonJS({
|
|
796
|
-
"
|
|
796
|
+
"../../node_modules/@discoveryjs/json-ext/src/utils.js"(exports, module) {
|
|
797
797
|
var escapableCharCodeSubstitution = {
|
|
798
798
|
// JSON Single Character Escape Sequences
|
|
799
799
|
8: "\\b",
|
|
@@ -867,9 +867,9 @@ var require_utils = __commonJS({
|
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
|
|
870
|
-
//
|
|
870
|
+
// ../../node_modules/@discoveryjs/json-ext/src/stringify-info.js
|
|
871
871
|
var require_stringify_info = __commonJS({
|
|
872
|
-
"
|
|
872
|
+
"../../node_modules/@discoveryjs/json-ext/src/stringify-info.js"(exports, module) {
|
|
873
873
|
var {
|
|
874
874
|
normalizeReplacer,
|
|
875
875
|
normalizeSpace,
|
|
@@ -984,9 +984,9 @@ var require_stringify_info = __commonJS({
|
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
986
|
|
|
987
|
-
//
|
|
987
|
+
// ../../node_modules/@discoveryjs/json-ext/src/stringify-stream.js
|
|
988
988
|
var require_stringify_stream = __commonJS({
|
|
989
|
-
"
|
|
989
|
+
"../../node_modules/@discoveryjs/json-ext/src/stringify-stream.js"(exports, module) {
|
|
990
990
|
var { Readable } = __require("stream"), {
|
|
991
991
|
normalizeReplacer,
|
|
992
992
|
normalizeSpace,
|
|
@@ -1194,16 +1194,16 @@ ${this.space.repeat(this._depth - 1)}]`) : this.push("]"), this.popStack();
|
|
|
1194
1194
|
}
|
|
1195
1195
|
});
|
|
1196
1196
|
|
|
1197
|
-
//
|
|
1197
|
+
// ../../node_modules/@discoveryjs/json-ext/src/text-decoder.js
|
|
1198
1198
|
var require_text_decoder = __commonJS({
|
|
1199
|
-
"
|
|
1199
|
+
"../../node_modules/@discoveryjs/json-ext/src/text-decoder.js"(exports, module) {
|
|
1200
1200
|
module.exports = __require("util").TextDecoder;
|
|
1201
1201
|
}
|
|
1202
1202
|
});
|
|
1203
1203
|
|
|
1204
|
-
//
|
|
1204
|
+
// ../../node_modules/@discoveryjs/json-ext/src/parse-chunked.js
|
|
1205
1205
|
var require_parse_chunked = __commonJS({
|
|
1206
|
-
"
|
|
1206
|
+
"../../node_modules/@discoveryjs/json-ext/src/parse-chunked.js"(exports, module) {
|
|
1207
1207
|
var { isReadableStream } = require_utils(), TextDecoder = require_text_decoder(), STACK_OBJECT = 1, STACK_ARRAY = 2, decoder = new TextDecoder();
|
|
1208
1208
|
function isObject(value) {
|
|
1209
1209
|
return value !== null && typeof value == "object";
|
|
@@ -1385,9 +1385,9 @@ var require_parse_chunked = __commonJS({
|
|
|
1385
1385
|
}
|
|
1386
1386
|
});
|
|
1387
1387
|
|
|
1388
|
-
//
|
|
1388
|
+
// ../../node_modules/@discoveryjs/json-ext/src/index.js
|
|
1389
1389
|
var require_src2 = __commonJS({
|
|
1390
|
-
"
|
|
1390
|
+
"../../node_modules/@discoveryjs/json-ext/src/index.js"(exports, module) {
|
|
1391
1391
|
module.exports = {
|
|
1392
1392
|
version: require_version(),
|
|
1393
1393
|
stringifyInfo: require_stringify_info(),
|
|
@@ -1397,9 +1397,9 @@ var require_src2 = __commonJS({
|
|
|
1397
1397
|
}
|
|
1398
1398
|
});
|
|
1399
1399
|
|
|
1400
|
-
//
|
|
1400
|
+
// ../../node_modules/graceful-fs/polyfills.js
|
|
1401
1401
|
var require_polyfills = __commonJS({
|
|
1402
|
-
"
|
|
1402
|
+
"../../node_modules/graceful-fs/polyfills.js"(exports, module) {
|
|
1403
1403
|
var constants = __require("constants"), origCwd = process.cwd, cwd = null, platform2 = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
1404
1404
|
process.cwd = function() {
|
|
1405
1405
|
return cwd || (cwd = origCwd.call(process)), cwd;
|
|
@@ -1587,9 +1587,9 @@ var require_polyfills = __commonJS({
|
|
|
1587
1587
|
}
|
|
1588
1588
|
});
|
|
1589
1589
|
|
|
1590
|
-
//
|
|
1590
|
+
// ../../node_modules/graceful-fs/legacy-streams.js
|
|
1591
1591
|
var require_legacy_streams = __commonJS({
|
|
1592
|
-
"
|
|
1592
|
+
"../../node_modules/graceful-fs/legacy-streams.js"(exports, module) {
|
|
1593
1593
|
var Stream = __require("stream").Stream;
|
|
1594
1594
|
module.exports = legacy;
|
|
1595
1595
|
function legacy(fs6) {
|
|
@@ -1651,9 +1651,9 @@ var require_legacy_streams = __commonJS({
|
|
|
1651
1651
|
}
|
|
1652
1652
|
});
|
|
1653
1653
|
|
|
1654
|
-
//
|
|
1654
|
+
// ../../node_modules/graceful-fs/clone.js
|
|
1655
1655
|
var require_clone = __commonJS({
|
|
1656
|
-
"
|
|
1656
|
+
"../../node_modules/graceful-fs/clone.js"(exports, module) {
|
|
1657
1657
|
"use strict";
|
|
1658
1658
|
module.exports = clone;
|
|
1659
1659
|
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
@@ -1673,9 +1673,9 @@ var require_clone = __commonJS({
|
|
|
1673
1673
|
}
|
|
1674
1674
|
});
|
|
1675
1675
|
|
|
1676
|
-
//
|
|
1676
|
+
// ../../node_modules/graceful-fs/graceful-fs.js
|
|
1677
1677
|
var require_graceful_fs = __commonJS({
|
|
1678
|
-
"
|
|
1678
|
+
"../../node_modules/graceful-fs/graceful-fs.js"(exports, module) {
|
|
1679
1679
|
var fs6 = __require("fs"), polyfills = require_polyfills(), legacy = require_legacy_streams(), clone = require_clone(), util = __require("util"), gracefulQueue, previousSymbol;
|
|
1680
1680
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (gracefulQueue = Symbol.for("graceful-fs.queue"), previousSymbol = Symbol.for("graceful-fs.previous")) : (gracefulQueue = "___graceful-fs.queue", previousSymbol = "___graceful-fs.previous");
|
|
1681
1681
|
function noop() {
|
|
@@ -1903,9 +1903,9 @@ GFS4: `), console.error(m);
|
|
|
1903
1903
|
}
|
|
1904
1904
|
});
|
|
1905
1905
|
|
|
1906
|
-
//
|
|
1906
|
+
// ../../node_modules/watchpack/lib/reducePlan.js
|
|
1907
1907
|
var require_reducePlan = __commonJS({
|
|
1908
|
-
"
|
|
1908
|
+
"../../node_modules/watchpack/lib/reducePlan.js"(exports, module) {
|
|
1909
1909
|
"use strict";
|
|
1910
1910
|
var path3 = __require("path");
|
|
1911
1911
|
module.exports = (plan, limit) => {
|
|
@@ -1982,9 +1982,9 @@ var require_reducePlan = __commonJS({
|
|
|
1982
1982
|
}
|
|
1983
1983
|
});
|
|
1984
1984
|
|
|
1985
|
-
//
|
|
1985
|
+
// ../../node_modules/watchpack/lib/watchEventSource.js
|
|
1986
1986
|
var require_watchEventSource = __commonJS({
|
|
1987
|
-
"
|
|
1987
|
+
"../../node_modules/watchpack/lib/watchEventSource.js"(exports) {
|
|
1988
1988
|
"use strict";
|
|
1989
1989
|
var fs6 = __require("fs"), path3 = __require("path"), { EventEmitter } = __require("events"), reducePlan = require_reducePlan(), IS_OSX = __require("os").platform() === "darwin", IS_WIN = __require("os").platform() === "win32", SUPPORTS_RECURSIVE_WATCHING = IS_OSX || IS_WIN, watcherLimit = +process.env.WATCHPACK_WATCHER_LIMIT || (IS_OSX ? 20 : 1e4), recursiveWatcherLogging = !!process.env.WATCHPACK_RECURSIVE_WATCHER_LOGGING, isBatch = !1, watcherCount = 0, pendingWatchers = /* @__PURE__ */ new Map(), recursiveWatchers = /* @__PURE__ */ new Map(), directWatchers = /* @__PURE__ */ new Map(), underlyingWatcher = /* @__PURE__ */ new Map();
|
|
1990
1990
|
function createEPERMError(filePath) {
|
|
@@ -2193,9 +2193,9 @@ var require_watchEventSource = __commonJS({
|
|
|
2193
2193
|
}
|
|
2194
2194
|
});
|
|
2195
2195
|
|
|
2196
|
-
//
|
|
2196
|
+
// ../../node_modules/watchpack/lib/DirectoryWatcher.js
|
|
2197
2197
|
var require_DirectoryWatcher = __commonJS({
|
|
2198
|
-
"
|
|
2198
|
+
"../../node_modules/watchpack/lib/DirectoryWatcher.js"(exports, module) {
|
|
2199
2199
|
"use strict";
|
|
2200
2200
|
var EventEmitter = __require("events").EventEmitter, fs6 = require_graceful_fs(), path3 = __require("path"), watchEventSource = require_watchEventSource(), EXISTANCE_ONLY_TIME_ENTRY = Object.freeze({}), FS_ACCURACY = 2e3, IS_OSX = __require("os").platform() === "darwin", IS_WIN = __require("os").platform() === "win32", WATCHPACK_POLLING = process.env.WATCHPACK_POLLING, FORCE_POLLING = `${+WATCHPACK_POLLING}` === WATCHPACK_POLLING ? +WATCHPACK_POLLING : !!WATCHPACK_POLLING && WATCHPACK_POLLING !== "false";
|
|
2201
2201
|
function withoutCase(str) {
|
|
@@ -2571,9 +2571,9 @@ var require_DirectoryWatcher = __commonJS({
|
|
|
2571
2571
|
}
|
|
2572
2572
|
});
|
|
2573
2573
|
|
|
2574
|
-
//
|
|
2574
|
+
// ../../node_modules/watchpack/lib/getWatcherManager.js
|
|
2575
2575
|
var require_getWatcherManager = __commonJS({
|
|
2576
|
-
"
|
|
2576
|
+
"../../node_modules/watchpack/lib/getWatcherManager.js"(exports, module) {
|
|
2577
2577
|
"use strict";
|
|
2578
2578
|
var path3 = __require("path"), DirectoryWatcher = require_DirectoryWatcher(), WatcherManager = class {
|
|
2579
2579
|
constructor(options) {
|
|
@@ -2607,9 +2607,9 @@ var require_getWatcherManager = __commonJS({
|
|
|
2607
2607
|
}
|
|
2608
2608
|
});
|
|
2609
2609
|
|
|
2610
|
-
//
|
|
2610
|
+
// ../../node_modules/watchpack/lib/LinkResolver.js
|
|
2611
2611
|
var require_LinkResolver = __commonJS({
|
|
2612
|
-
"
|
|
2612
|
+
"../../node_modules/watchpack/lib/LinkResolver.js"(exports, module) {
|
|
2613
2613
|
"use strict";
|
|
2614
2614
|
var fs6 = __require("fs"), path3 = __require("path"), EXPECTED_ERRORS = /* @__PURE__ */ new Set(["EINVAL", "ENOENT"]);
|
|
2615
2615
|
process.platform === "win32" && EXPECTED_ERRORS.add("UNKNOWN");
|
|
@@ -2662,9 +2662,9 @@ var require_LinkResolver = __commonJS({
|
|
|
2662
2662
|
}
|
|
2663
2663
|
});
|
|
2664
2664
|
|
|
2665
|
-
//
|
|
2665
|
+
// ../../node_modules/glob-to-regexp/index.js
|
|
2666
2666
|
var require_glob_to_regexp = __commonJS({
|
|
2667
|
-
"
|
|
2667
|
+
"../../node_modules/glob-to-regexp/index.js"(exports, module) {
|
|
2668
2668
|
module.exports = function(glob, opts) {
|
|
2669
2669
|
if (typeof glob != "string")
|
|
2670
2670
|
throw new TypeError("Expected a string");
|
|
@@ -2729,9 +2729,9 @@ var require_glob_to_regexp = __commonJS({
|
|
|
2729
2729
|
}
|
|
2730
2730
|
});
|
|
2731
2731
|
|
|
2732
|
-
//
|
|
2732
|
+
// ../../node_modules/watchpack/lib/watchpack.js
|
|
2733
2733
|
var require_watchpack = __commonJS({
|
|
2734
|
-
"
|
|
2734
|
+
"../../node_modules/watchpack/lib/watchpack.js"(exports, module) {
|
|
2735
2735
|
"use strict";
|
|
2736
2736
|
var getWatcherManager = require_getWatcherManager(), LinkResolver = require_LinkResolver(), EventEmitter = __require("events").EventEmitter, globToRegExp = require_glob_to_regexp(), watchEventSource = require_watchEventSource(), EMPTY_ARRAY = [], EMPTY_OPTIONS = {};
|
|
2737
2737
|
function addWatchersToSet(watchers, set) {
|
|
@@ -2931,9 +2931,9 @@ var require_watchpack = __commonJS({
|
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
2933
|
|
|
2934
|
-
//
|
|
2934
|
+
// ../../node_modules/telejson/dist/index.js
|
|
2935
2935
|
var require_dist2 = __commonJS({
|
|
2936
|
-
"
|
|
2936
|
+
"../../node_modules/telejson/dist/index.js"(exports, module) {
|
|
2937
2937
|
"use strict";
|
|
2938
2938
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
|
|
2939
2939
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -4051,9 +4051,9 @@ var require_dist2 = __commonJS({
|
|
|
4051
4051
|
}
|
|
4052
4052
|
});
|
|
4053
4053
|
|
|
4054
|
-
//
|
|
4054
|
+
// ../../node_modules/address/lib/address.js
|
|
4055
4055
|
var require_address = __commonJS({
|
|
4056
|
-
"
|
|
4056
|
+
"../../node_modules/address/lib/address.js"(exports, module) {
|
|
4057
4057
|
"use strict";
|
|
4058
4058
|
var os3 = __require("os"), fs6 = __require("fs"), child = __require("child_process"), DEFAULT_RESOLV_FILE = "/etc/resolv.conf";
|
|
4059
4059
|
function getInterfaceName() {
|
|
@@ -4160,9 +4160,9 @@ var require_address = __commonJS({
|
|
|
4160
4160
|
}
|
|
4161
4161
|
});
|
|
4162
4162
|
|
|
4163
|
-
//
|
|
4163
|
+
// ../../node_modules/detect-port/lib/detect-port.js
|
|
4164
4164
|
var require_detect_port = __commonJS({
|
|
4165
|
-
"
|
|
4165
|
+
"../../node_modules/detect-port/lib/detect-port.js"(exports, module) {
|
|
4166
4166
|
"use strict";
|
|
4167
4167
|
var net = __require("net"), address = require_address(), debug = require_src()("detect-port");
|
|
4168
4168
|
module.exports = (port, callback) => {
|
|
@@ -4210,9 +4210,9 @@ var require_detect_port = __commonJS({
|
|
|
4210
4210
|
}
|
|
4211
4211
|
});
|
|
4212
4212
|
|
|
4213
|
-
//
|
|
4213
|
+
// ../../node_modules/detect-port/lib/wait-port.js
|
|
4214
4214
|
var require_wait_port = __commonJS({
|
|
4215
|
-
"
|
|
4215
|
+
"../../node_modules/detect-port/lib/wait-port.js"(exports, module) {
|
|
4216
4216
|
"use strict";
|
|
4217
4217
|
var debug = require_src()("wait-port"), detect = require_detect_port(), sleep = (ms) => new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
4218
4218
|
async function waitPort(port, options = {}) {
|
|
@@ -4230,9 +4230,9 @@ var require_wait_port = __commonJS({
|
|
|
4230
4230
|
}
|
|
4231
4231
|
});
|
|
4232
4232
|
|
|
4233
|
-
//
|
|
4233
|
+
// ../../node_modules/detect-port/index.js
|
|
4234
4234
|
var require_detect_port2 = __commonJS({
|
|
4235
|
-
"
|
|
4235
|
+
"../../node_modules/detect-port/index.js"(exports, module) {
|
|
4236
4236
|
"use strict";
|
|
4237
4237
|
module.exports = require_detect_port();
|
|
4238
4238
|
module.exports.waitPort = require_wait_port();
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, fullGlob = slash(join2(specifier.directory, specifier.files)), { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, fullGlob = slash(join2(specifier.directory, specifier.files)), { globby } = await import("../_node-chunks/globby-VD3CGPVI.js"), files = await globby(fullGlob, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: workingDir,
|
|
5153
5153
|
...commonGlobOptions(fullGlob)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-UBFMIJZC.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-ZK4QXZNX.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-VD3CGPVI.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -5957,7 +5957,7 @@ import { logConfig as logConfig2 } from "storybook/internal/common";
|
|
|
5957
5957
|
import { logger as logger8 } from "storybook/internal/node-logger";
|
|
5958
5958
|
import { MissingBuilderError as MissingBuilderError2 } from "storybook/internal/server-errors";
|
|
5959
5959
|
|
|
5960
|
-
//
|
|
5960
|
+
// ../../node_modules/@polka/compression/build.mjs
|
|
5961
5961
|
import zlib from "node:zlib";
|
|
5962
5962
|
var NOOP = () => {
|
|
5963
5963
|
}, MIMES = /text|javascript|\/json|xml/i;
|
|
@@ -5998,11 +5998,11 @@ function build_default({ threshold = 1024, level = -1, brotli = !1, gzip = !0, m
|
|
|
5998
5998
|
};
|
|
5999
5999
|
}
|
|
6000
6000
|
|
|
6001
|
-
//
|
|
6001
|
+
// ../../node_modules/polka/build.mjs
|
|
6002
6002
|
import http from "node:http";
|
|
6003
6003
|
import { setImmediate } from "node:timers";
|
|
6004
6004
|
|
|
6005
|
-
//
|
|
6005
|
+
// ../../node_modules/regexparam/dist/index.mjs
|
|
6006
6006
|
function parse(input, loose) {
|
|
6007
6007
|
if (input instanceof RegExp) return { keys: !1, pattern: input };
|
|
6008
6008
|
var c, o, tmp, ext, keys = [], pattern = "", arr = input.split("/");
|
|
@@ -6014,7 +6014,7 @@ function parse(input, loose) {
|
|
|
6014
6014
|
};
|
|
6015
6015
|
}
|
|
6016
6016
|
|
|
6017
|
-
//
|
|
6017
|
+
// ../../node_modules/trouter/index.mjs
|
|
6018
6018
|
var MAP = {
|
|
6019
6019
|
"": 0,
|
|
6020
6020
|
GET: 1,
|
|
@@ -6055,7 +6055,7 @@ var MAP = {
|
|
|
6055
6055
|
}
|
|
6056
6056
|
};
|
|
6057
6057
|
|
|
6058
|
-
//
|
|
6058
|
+
// ../../node_modules/@polka/url/build.mjs
|
|
6059
6059
|
import * as qs from "node:querystring";
|
|
6060
6060
|
function parse3(req) {
|
|
6061
6061
|
let raw = req.url;
|
|
@@ -6070,7 +6070,7 @@ function parse3(req) {
|
|
|
6070
6070
|
return req._parsedUrl = { pathname, search, query, hash, raw };
|
|
6071
6071
|
}
|
|
6072
6072
|
|
|
6073
|
-
//
|
|
6073
|
+
// ../../node_modules/polka/build.mjs
|
|
6074
6074
|
function onError(err, req, res) {
|
|
6075
6075
|
let code = typeof err.status == "number" && err.status;
|
|
6076
6076
|
code = res.statusCode = code && code >= 100 ? code : 500, typeof err == "string" || Buffer.isBuffer(err) ? res.end(err) : res.end(err.message || http.STATUS_CODES[code]);
|
|
@@ -6634,7 +6634,7 @@ async function getMiddleware(configDir) {
|
|
|
6634
6634
|
// src/core-server/utils/open-browser/open-in-browser.ts
|
|
6635
6635
|
import { logger as logger5 } from "storybook/internal/node-logger";
|
|
6636
6636
|
|
|
6637
|
-
//
|
|
6637
|
+
// ../../node_modules/open/index.js
|
|
6638
6638
|
import process7 from "node:process";
|
|
6639
6639
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
6640
6640
|
import path2 from "node:path";
|
|
@@ -6643,19 +6643,19 @@ import { promisify as promisify5 } from "node:util";
|
|
|
6643
6643
|
import childProcess from "node:child_process";
|
|
6644
6644
|
import fs5, { constants as fsConstants2 } from "node:fs/promises";
|
|
6645
6645
|
|
|
6646
|
-
//
|
|
6646
|
+
// ../../node_modules/wsl-utils/index.js
|
|
6647
6647
|
import process3 from "node:process";
|
|
6648
6648
|
import fs4, { constants as fsConstants } from "node:fs/promises";
|
|
6649
6649
|
|
|
6650
|
-
//
|
|
6650
|
+
// ../../node_modules/is-wsl/index.js
|
|
6651
6651
|
import process2 from "node:process";
|
|
6652
6652
|
import os from "node:os";
|
|
6653
6653
|
import fs3 from "node:fs";
|
|
6654
6654
|
|
|
6655
|
-
//
|
|
6655
|
+
// ../../node_modules/is-inside-container/index.js
|
|
6656
6656
|
import fs2 from "node:fs";
|
|
6657
6657
|
|
|
6658
|
-
//
|
|
6658
|
+
// ../../node_modules/is-inside-container/node_modules/is-docker/index.js
|
|
6659
6659
|
import fs from "node:fs";
|
|
6660
6660
|
var isDockerCached;
|
|
6661
6661
|
function hasDockerEnv() {
|
|
@@ -6676,7 +6676,7 @@ function isDocker() {
|
|
|
6676
6676
|
return isDockerCached === void 0 && (isDockerCached = hasDockerEnv() || hasDockerCGroup()), isDockerCached;
|
|
6677
6677
|
}
|
|
6678
6678
|
|
|
6679
|
-
//
|
|
6679
|
+
// ../../node_modules/is-inside-container/index.js
|
|
6680
6680
|
var cachedResult, hasContainerEnv = () => {
|
|
6681
6681
|
try {
|
|
6682
6682
|
return fs2.statSync("/run/.containerenv"), !0;
|
|
@@ -6688,7 +6688,7 @@ function isInsideContainer() {
|
|
|
6688
6688
|
return cachedResult === void 0 && (cachedResult = hasContainerEnv() || isDocker()), cachedResult;
|
|
6689
6689
|
}
|
|
6690
6690
|
|
|
6691
|
-
//
|
|
6691
|
+
// ../../node_modules/is-wsl/index.js
|
|
6692
6692
|
var isWsl = () => {
|
|
6693
6693
|
if (process2.platform !== "linux")
|
|
6694
6694
|
return !1;
|
|
@@ -6701,7 +6701,7 @@ var isWsl = () => {
|
|
|
6701
6701
|
}
|
|
6702
6702
|
}, is_wsl_default = process2.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
6703
6703
|
|
|
6704
|
-
//
|
|
6704
|
+
// ../../node_modules/wsl-utils/index.js
|
|
6705
6705
|
var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
6706
6706
|
let defaultMountPoint = "/mnt/", mountPoint;
|
|
6707
6707
|
return async function() {
|
|
@@ -6719,7 +6719,7 @@ var wslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
|
6719
6719
|
};
|
|
6720
6720
|
})(), powerShellPathFromWsl = async () => `${await wslDrivesMountPoint()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`, powerShellPath = async () => is_wsl_default ? powerShellPathFromWsl() : `${process3.env.SYSTEMROOT || process3.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
|
6721
6721
|
|
|
6722
|
-
//
|
|
6722
|
+
// ../../node_modules/define-lazy-prop/index.js
|
|
6723
6723
|
function defineLazyProperty(object, propertyName, valueGetter) {
|
|
6724
6724
|
let define = (value) => Object.defineProperty(object, propertyName, { value, enumerable: !0, writable: !0 });
|
|
6725
6725
|
return Object.defineProperty(object, propertyName, {
|
|
@@ -6735,12 +6735,12 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
6735
6735
|
}), object;
|
|
6736
6736
|
}
|
|
6737
6737
|
|
|
6738
|
-
//
|
|
6738
|
+
// ../../node_modules/default-browser/index.js
|
|
6739
6739
|
import { promisify as promisify4 } from "node:util";
|
|
6740
6740
|
import process6 from "node:process";
|
|
6741
6741
|
import { execFile as execFile4 } from "node:child_process";
|
|
6742
6742
|
|
|
6743
|
-
//
|
|
6743
|
+
// ../../node_modules/default-browser-id/index.js
|
|
6744
6744
|
import { promisify } from "node:util";
|
|
6745
6745
|
import process4 from "node:process";
|
|
6746
6746
|
import { execFile } from "node:child_process";
|
|
@@ -6752,7 +6752,7 @@ async function defaultBrowserId() {
|
|
|
6752
6752
|
return browserId === "com.apple.safari" ? "com.apple.Safari" : browserId;
|
|
6753
6753
|
}
|
|
6754
6754
|
|
|
6755
|
-
//
|
|
6755
|
+
// ../../node_modules/run-applescript/index.js
|
|
6756
6756
|
import process5 from "node:process";
|
|
6757
6757
|
import { promisify as promisify2 } from "node:util";
|
|
6758
6758
|
import { execFile as execFile2, execFileSync } from "node:child_process";
|
|
@@ -6766,13 +6766,13 @@ async function runAppleScript(script, { humanReadableOutput = !0, signal } = {})
|
|
|
6766
6766
|
return stdout.trim();
|
|
6767
6767
|
}
|
|
6768
6768
|
|
|
6769
|
-
//
|
|
6769
|
+
// ../../node_modules/bundle-name/index.js
|
|
6770
6770
|
async function bundleName(bundleId) {
|
|
6771
6771
|
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string
|
|
6772
6772
|
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
|
|
6773
6773
|
}
|
|
6774
6774
|
|
|
6775
|
-
//
|
|
6775
|
+
// ../../node_modules/default-browser/windows.js
|
|
6776
6776
|
import { promisify as promisify3 } from "node:util";
|
|
6777
6777
|
import { execFile as execFile3 } from "node:child_process";
|
|
6778
6778
|
var execFileAsync3 = promisify3(execFile3), windowsBrowserProgIds = {
|
|
@@ -6810,7 +6810,7 @@ async function defaultBrowser(_execFileAsync = execFileAsync3) {
|
|
|
6810
6810
|
return browser;
|
|
6811
6811
|
}
|
|
6812
6812
|
|
|
6813
|
-
//
|
|
6813
|
+
// ../../node_modules/default-browser/index.js
|
|
6814
6814
|
var execFileAsync4 = promisify4(execFile4), titleize = (string) => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, (x) => x.toUpperCase());
|
|
6815
6815
|
async function defaultBrowser2() {
|
|
6816
6816
|
if (process6.platform === "darwin") {
|
|
@@ -6826,7 +6826,7 @@ async function defaultBrowser2() {
|
|
|
6826
6826
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
6827
6827
|
}
|
|
6828
6828
|
|
|
6829
|
-
//
|
|
6829
|
+
// ../../node_modules/open/index.js
|
|
6830
6830
|
var execFile5 = promisify5(childProcess.execFile), __dirname2 = path2.dirname(fileURLToPath(import.meta.url)), localXdgOpenPath = path2.join(__dirname2, "xdg-open"), { platform, arch } = process7;
|
|
6831
6831
|
async function getWindowsDefaultBrowserFromWsl() {
|
|
6832
6832
|
let powershellPath = await powerShellPath(), rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`, encodedCommand = Buffer2.from(rawCommand, "utf16le").toString("base64"), { stdout } = await execFile5(
|