storybook 10.2.0-alpha.4 → 10.2.0-alpha.5
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-UYH5WXWQ.js → builder-manager-OWA7PM5D.js} +13 -12
- package/dist/_node-chunks/{camelcase-VC2MI4D3.js → camelcase-2LEK4OOC.js} +7 -7
- package/dist/_node-chunks/{chunk-OBFKPAHB.js → chunk-3NPQ2Y77.js} +10 -10
- package/dist/_node-chunks/chunk-4P6JV5PD.js +61 -0
- package/dist/_node-chunks/{chunk-THYQIUTI.js → chunk-53QZPC5B.js} +7 -7
- package/dist/_node-chunks/{chunk-6RZ6ESPF.js → chunk-5MG7AO5M.js} +12 -12
- package/dist/_node-chunks/{chunk-BXGPI53U.js → chunk-APNNQRRU.js} +6 -6
- package/dist/_node-chunks/{chunk-S3WG5D7I.js → chunk-BPLKNOG7.js} +7 -7
- package/dist/_node-chunks/{chunk-I6C74YGE.js → chunk-FUGUVTSE.js} +8 -8
- package/dist/_node-chunks/{chunk-X6TQDZZW.js → chunk-HT3TF35B.js} +6 -6
- package/dist/_node-chunks/chunk-IMOJACVP.js +23 -0
- package/dist/_node-chunks/chunk-IV4K2PSX.js +18 -0
- package/dist/_node-chunks/{chunk-6XCE5DKF.js → chunk-J7VMFLRZ.js} +6 -6
- package/dist/_node-chunks/{chunk-KLBUL53W.js → chunk-JRJT7Q2N.js} +7 -7
- package/dist/_node-chunks/{chunk-IXZ54TG6.js → chunk-LOJ6VLWV.js} +6 -6
- package/dist/_node-chunks/{chunk-NCENIJPW.js → chunk-MJEVYN6O.js} +7 -7
- package/dist/_node-chunks/{chunk-HATD2DIT.js → chunk-O72O5WMW.js} +7 -7
- package/dist/_node-chunks/{chunk-AEF4OCMB.js → chunk-Q2N5EUMK.js} +7 -7
- package/dist/_node-chunks/{chunk-3SB46FMB.js → chunk-Q4YMOGYF.js} +8 -8
- package/dist/_node-chunks/{chunk-BRVASHE4.js → chunk-QUCPWX6N.js} +13 -13
- package/dist/_node-chunks/{chunk-CSLYLE5Z.js → chunk-RJ6MVIQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-5IKN22PK.js → chunk-SKKDMIEL.js} +9 -9
- package/dist/_node-chunks/{chunk-WI5ZJAAJ.js → chunk-TM67IYGR.js} +7 -7
- package/dist/_node-chunks/{chunk-2LVUTXDF.js → chunk-TUFR2XYI.js} +6 -6
- package/dist/_node-chunks/{chunk-5Y2B5Y2I.js → chunk-TX3LEYMY.js} +9 -9
- package/dist/_node-chunks/{chunk-6DSSKDEB.js → chunk-UIW2C2AI.js} +6 -6
- package/dist/_node-chunks/{chunk-OW656GJO.js → chunk-VG22ND3P.js} +13 -13
- package/dist/_node-chunks/{chunk-EGGWMXFM.js → chunk-WAM2AUH6.js} +7 -7
- package/dist/_node-chunks/{chunk-VHJPAZFZ.js → chunk-WMGB2RD3.js} +7 -7
- package/dist/_node-chunks/{chunk-VJ5C7NTM.js → chunk-ZRAJ6YTG.js} +20 -20
- package/dist/_node-chunks/{dist-ZK2DO62Y.js → dist-KMT22HT2.js} +9 -9
- package/dist/_node-chunks/{globby-3NVGNGRX.js → globby-MSDE3LN6.js} +9 -9
- package/dist/_node-chunks/{lib-ALOTNL3B.js → lib-2BTWTGXL.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-AVHGVFIO.js → mdx-N42X6CFJ-RO5JQN35.js} +8 -8
- package/dist/_node-chunks/{p-limit-JMHEGI5E.js → p-limit-6ZDUMRV5.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +10 -4
- package/dist/core-events/index.d.ts +4 -2
- package/dist/core-events/index.js +4 -2
- package/dist/core-server/index.js +35 -35
- package/dist/core-server/presets/common-manager.js +1 -1
- 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 +15 -7
- package/dist/manager/runtime.js +20 -5
- 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/preview/runtime.js +9 -3
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-2ZQ6Y2UX.js +0 -18
- package/dist/_node-chunks/chunk-ATFXKLVA.js +0 -61
- package/dist/_node-chunks/chunk-JUQFZI7H.js +0 -23
package/dist/bin/dispatcher.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
3
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
4
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
5
5
|
|
|
6
|
-
var __filename =
|
|
7
|
-
var __dirname =
|
|
8
|
-
var require =
|
|
6
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
7
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
8
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-4P6JV5PD.js";
|
|
16
16
|
import {
|
|
17
17
|
resolvePackageDir
|
|
18
|
-
} from "../_node-chunks/chunk-
|
|
18
|
+
} from "../_node-chunks/chunk-MJEVYN6O.js";
|
|
19
19
|
import {
|
|
20
20
|
join
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-RJ6MVIQ7.js";
|
|
22
22
|
import {
|
|
23
23
|
require_dist
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-53QZPC5B.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
27
|
+
} from "../_node-chunks/chunk-TUFR2XYI.js";
|
|
28
28
|
|
|
29
29
|
// src/bin/dispatcher.ts
|
|
30
30
|
import { pathToFileURL } from "node:url";
|
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-UIW2C2AI.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-53QZPC5B.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-TUFR2XYI.js";
|
|
21
21
|
|
|
22
22
|
// src/bin/loader.ts
|
|
23
23
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
readFileAsJson,
|
|
34
34
|
suggestESLintPlugin,
|
|
35
35
|
writeFileAsJson
|
|
36
|
-
} from "../_node-chunks/chunk-
|
|
36
|
+
} from "../_node-chunks/chunk-5MG7AO5M.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-IMOJACVP.js";
|
|
40
40
|
import {
|
|
41
41
|
Settings,
|
|
42
42
|
_clearGlobalSettings,
|
|
43
43
|
globalSettings
|
|
44
|
-
} from "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
50
|
-
import "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
52
|
-
import "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
44
|
+
} from "../_node-chunks/chunk-SKKDMIEL.js";
|
|
45
|
+
import "../_node-chunks/chunk-APNNQRRU.js";
|
|
46
|
+
import "../_node-chunks/chunk-MJEVYN6O.js";
|
|
47
|
+
import "../_node-chunks/chunk-HT3TF35B.js";
|
|
48
|
+
import "../_node-chunks/chunk-RJ6MVIQ7.js";
|
|
49
|
+
import "../_node-chunks/chunk-53QZPC5B.js";
|
|
50
|
+
import "../_node-chunks/chunk-TX3LEYMY.js";
|
|
51
|
+
import "../_node-chunks/chunk-WAM2AUH6.js";
|
|
52
|
+
import "../_node-chunks/chunk-Q2N5EUMK.js";
|
|
53
|
+
import "../_node-chunks/chunk-TUFR2XYI.js";
|
|
54
54
|
export {
|
|
55
55
|
ANGULAR_JSON_PATH,
|
|
56
56
|
AddonVitestService,
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -102,29 +102,29 @@ import {
|
|
|
102
102
|
validateConfigurationFiles,
|
|
103
103
|
validateFrameworkName,
|
|
104
104
|
wrapValueWithGetAbsolutePathWrapper
|
|
105
|
-
} from "../_node-chunks/chunk-
|
|
105
|
+
} from "../_node-chunks/chunk-ZRAJ6YTG.js";
|
|
106
106
|
import {
|
|
107
107
|
versions_default
|
|
108
|
-
} from "../_node-chunks/chunk-
|
|
109
|
-
import "../_node-chunks/chunk-
|
|
110
|
-
import "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
108
|
+
} from "../_node-chunks/chunk-4P6JV5PD.js";
|
|
109
|
+
import "../_node-chunks/chunk-TM67IYGR.js";
|
|
110
|
+
import "../_node-chunks/chunk-FUGUVTSE.js";
|
|
111
|
+
import "../_node-chunks/chunk-APNNQRRU.js";
|
|
112
112
|
import {
|
|
113
113
|
importMetaResolve,
|
|
114
114
|
importModule,
|
|
115
115
|
resolvePackageDir,
|
|
116
116
|
safeResolveModule
|
|
117
|
-
} from "../_node-chunks/chunk-
|
|
117
|
+
} from "../_node-chunks/chunk-MJEVYN6O.js";
|
|
118
118
|
import {
|
|
119
119
|
groupBy,
|
|
120
120
|
invariant
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-HT3TF35B.js";
|
|
122
|
+
import "../_node-chunks/chunk-RJ6MVIQ7.js";
|
|
123
|
+
import "../_node-chunks/chunk-JRJT7Q2N.js";
|
|
124
|
+
import "../_node-chunks/chunk-LOJ6VLWV.js";
|
|
125
|
+
import "../_node-chunks/chunk-53QZPC5B.js";
|
|
126
|
+
import "../_node-chunks/chunk-Q2N5EUMK.js";
|
|
127
|
+
import "../_node-chunks/chunk-TUFR2XYI.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
package/dist/components/index.js
CHANGED
|
@@ -9463,7 +9463,10 @@ function BaseModal({
|
|
|
9463
9463
|
shouldBeOpen && !isMounted ? toggle(!0) : !shouldBeOpen && isMounted && toggle(!1);
|
|
9464
9464
|
}, [open, defaultOpen, isMounted, toggle]), useEffect4(() => {
|
|
9465
9465
|
isMounted && (open || defaultOpen) && onOpenChange?.(!0);
|
|
9466
|
-
}, [isMounted]),
|
|
9466
|
+
}, [isMounted]), useEffect4(() => {
|
|
9467
|
+
if (isMounted && (open || defaultOpen) && overlayRef.current)
|
|
9468
|
+
return $5e3802645cc19319$export$1c3ebcada18427bf([overlayRef.current], { shouldUseInert: !0 });
|
|
9469
|
+
}, [isMounted, open, defaultOpen, overlayRef]), !isMounted || status === "exited" || status === "unmounted")
|
|
9467
9470
|
return null;
|
|
9468
9471
|
let finalModalProps = $3ef42575df84b30b$export$9d1611c77c2fe928(modalProps, {
|
|
9469
9472
|
onKeyDown: (e) => {
|
|
@@ -10492,7 +10495,10 @@ var StyledButton3 = styled48(Button)(
|
|
|
10492
10495
|
$e0b6e0b68ec7f50f$export$872b660ac5a1ff98({
|
|
10493
10496
|
ref: popoverRef,
|
|
10494
10497
|
onInteractOutside: handleClose
|
|
10495
|
-
})
|
|
10498
|
+
}), useEffect7(() => {
|
|
10499
|
+
if (popoverRef.current)
|
|
10500
|
+
return $5e3802645cc19319$export$1c3ebcada18427bf([popoverRef.current], { shouldUseInert: !0 });
|
|
10501
|
+
}, []);
|
|
10496
10502
|
let { overlayProps: positionProps } = $2a41e45df1593e64$export$d39e1813b3bdd0e1({
|
|
10497
10503
|
targetRef: triggerRef,
|
|
10498
10504
|
overlayRef: popoverRef,
|
|
@@ -10582,7 +10588,7 @@ var StyledButton3 = styled48(Button)(
|
|
|
10582
10588
|
return;
|
|
10583
10589
|
}
|
|
10584
10590
|
let currentIndex = options.findIndex(
|
|
10585
|
-
(option) => externalToValue(option.value) === activeOption.value
|
|
10591
|
+
(option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
|
|
10586
10592
|
), nextIndex = currentIndex + step, newActiveOption;
|
|
10587
10593
|
nextIndex >= options.length && currentIndex === options.length - 1 ? newActiveOption = options[0] : newActiveOption = options[Math.min(options.length - 1, nextIndex)], setActiveOption(newActiveOption);
|
|
10588
10594
|
},
|
|
@@ -10594,7 +10600,7 @@ var StyledButton3 = styled48(Button)(
|
|
|
10594
10600
|
return;
|
|
10595
10601
|
}
|
|
10596
10602
|
let currentIndex = options.findIndex(
|
|
10597
|
-
(option) => externalToValue(option.value) === activeOption.value
|
|
10603
|
+
(option) => activeOption.type === "reset" ? "type" in option && option.type === "reset" : externalToValue(option.value) === activeOption.value
|
|
10598
10604
|
), nextIndex = currentIndex - step, newActiveOption;
|
|
10599
10605
|
nextIndex < 0 && currentIndex === 0 ? newActiveOption = options[options.length - 1] : newActiveOption = options[Math.max(0, nextIndex)], setActiveOption(newActiveOption);
|
|
10600
10606
|
},
|
|
@@ -301,7 +301,8 @@ declare enum events {
|
|
|
301
301
|
CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest",
|
|
302
302
|
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse",
|
|
303
303
|
OPEN_IN_EDITOR_REQUEST = "openInEditorRequest",
|
|
304
|
-
OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse"
|
|
304
|
+
OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse",
|
|
305
|
+
MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged"
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
declare const CHANNEL_WS_DISCONNECT: events;
|
|
@@ -364,5 +365,6 @@ declare const ARGTYPES_INFO_REQUEST: events;
|
|
|
364
365
|
declare const ARGTYPES_INFO_RESPONSE: events;
|
|
365
366
|
declare const OPEN_IN_EDITOR_REQUEST: events;
|
|
366
367
|
declare const OPEN_IN_EDITOR_RESPONSE: events;
|
|
368
|
+
declare const MANAGER_INERT_ATTRIBUTE_CHANGED: events;
|
|
367
369
|
|
|
368
|
-
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, type OpenInEditorRequestPayload, type OpenInEditorResponsePayload, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
|
|
370
|
+
export { ARGTYPES_INFO_REQUEST, ARGTYPES_INFO_RESPONSE, type ArgTypesRequestPayload, type ArgTypesResponsePayload, CHANNEL_CREATED, CHANNEL_WS_DISCONNECT, CONFIG_ERROR, CREATE_NEW_STORYFILE_REQUEST, CREATE_NEW_STORYFILE_RESPONSE, CURRENT_STORY_WAS_SET, type CreateNewStoryErrorPayload, type CreateNewStoryRequestPayload, type CreateNewStoryResponsePayload, DOCS_PREPARED, DOCS_RENDERED, FILE_COMPONENT_SEARCH_REQUEST, FILE_COMPONENT_SEARCH_RESPONSE, FORCE_REMOUNT, FORCE_RE_RENDER, type FileComponentSearchRequestPayload, type FileComponentSearchResponsePayload, GLOBALS_UPDATED, MANAGER_INERT_ATTRIBUTE_CHANGED, NAVIGATE_URL, OPEN_IN_EDITOR_REQUEST, OPEN_IN_EDITOR_RESPONSE, type OpenInEditorRequestPayload, type OpenInEditorResponsePayload, PLAY_FUNCTION_THREW_EXCEPTION, PRELOAD_ENTRIES, PREVIEW_BUILDER_PROGRESS, PREVIEW_INITIALIZED, PREVIEW_KEYDOWN, REGISTER_SUBSCRIPTION, REQUEST_WHATS_NEW_DATA, RESET_STORY_ARGS, RESULT_WHATS_NEW_DATA, type RequestData, type ResponseData, SAVE_STORY_REQUEST, SAVE_STORY_RESPONSE, SELECT_STORY, SET_CONFIG, SET_CURRENT_STORY, SET_FILTER, SET_GLOBALS, SET_INDEX, SET_STORIES, SET_WHATS_NEW_CACHE, SHARED_STATE_CHANGED, SHARED_STATE_SET, STORIES_COLLAPSE_ALL, STORIES_EXPAND_ALL, STORY_ARGS_UPDATED, STORY_CHANGED, STORY_ERRORED, STORY_FINISHED, STORY_HOT_UPDATED, STORY_INDEX_INVALIDATED, STORY_MISSING, STORY_PREPARED, STORY_RENDERED, STORY_RENDER_PHASE_CHANGED, STORY_SPECIFIED, STORY_THREW_EXCEPTION, STORY_UNCHANGED, type SaveStoryRequestPayload, type SaveStoryResponsePayload, type StoryFinishedPayload, TELEMETRY_ERROR, TOGGLE_WHATS_NEW_NOTIFICATIONS, UNHANDLED_ERRORS_WHILE_PLAYING, UPDATE_GLOBALS, UPDATE_QUERY_PARAMS, UPDATE_STORY_ARGS, type WhatsNewCache, type WhatsNewData, events as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../_browser-chunks/chunk-A242L54C.js";
|
|
2
2
|
|
|
3
3
|
// src/core-events/index.ts
|
|
4
|
-
var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2))(events || {}), core_events_default = events, {
|
|
4
|
+
var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "channelWSDisconnect", events2.CHANNEL_CREATED = "channelCreated", events2.CONFIG_ERROR = "configError", events2.STORY_INDEX_INVALIDATED = "storyIndexInvalidated", events2.STORY_SPECIFIED = "storySpecified", events2.SET_CONFIG = "setConfig", events2.SET_STORIES = "setStories", events2.SET_INDEX = "setIndex", events2.SET_CURRENT_STORY = "setCurrentStory", events2.CURRENT_STORY_WAS_SET = "currentStoryWasSet", events2.FORCE_RE_RENDER = "forceReRender", events2.FORCE_REMOUNT = "forceRemount", events2.PRELOAD_ENTRIES = "preloadStories", events2.STORY_PREPARED = "storyPrepared", events2.DOCS_PREPARED = "docsPrepared", events2.STORY_CHANGED = "storyChanged", events2.STORY_UNCHANGED = "storyUnchanged", events2.STORY_RENDERED = "storyRendered", events2.STORY_FINISHED = "storyFinished", events2.STORY_MISSING = "storyMissing", events2.STORY_ERRORED = "storyErrored", events2.STORY_THREW_EXCEPTION = "storyThrewException", events2.STORY_RENDER_PHASE_CHANGED = "storyRenderPhaseChanged", events2.STORY_HOT_UPDATED = "storyHotUpdated", events2.PLAY_FUNCTION_THREW_EXCEPTION = "playFunctionThrewException", events2.UNHANDLED_ERRORS_WHILE_PLAYING = "unhandledErrorsWhilePlaying", events2.UPDATE_STORY_ARGS = "updateStoryArgs", events2.STORY_ARGS_UPDATED = "storyArgsUpdated", events2.RESET_STORY_ARGS = "resetStoryArgs", events2.SET_FILTER = "setFilter", events2.SET_GLOBALS = "setGlobals", events2.UPDATE_GLOBALS = "updateGlobals", events2.GLOBALS_UPDATED = "globalsUpdated", events2.REGISTER_SUBSCRIPTION = "registerSubscription", events2.PREVIEW_INITIALIZED = "previewInitialized", events2.PREVIEW_KEYDOWN = "previewKeydown", events2.PREVIEW_BUILDER_PROGRESS = "preview_builder_progress", events2.SELECT_STORY = "selectStory", events2.STORIES_COLLAPSE_ALL = "storiesCollapseAll", events2.STORIES_EXPAND_ALL = "storiesExpandAll", events2.DOCS_RENDERED = "docsRendered", events2.SHARED_STATE_CHANGED = "sharedStateChanged", events2.SHARED_STATE_SET = "sharedStateSet", events2.NAVIGATE_URL = "navigateUrl", events2.UPDATE_QUERY_PARAMS = "updateQueryParams", events2.REQUEST_WHATS_NEW_DATA = "requestWhatsNewData", events2.RESULT_WHATS_NEW_DATA = "resultWhatsNewData", events2.SET_WHATS_NEW_CACHE = "setWhatsNewCache", events2.TOGGLE_WHATS_NEW_NOTIFICATIONS = "toggleWhatsNewNotifications", events2.TELEMETRY_ERROR = "telemetryError", events2.FILE_COMPONENT_SEARCH_REQUEST = "fileComponentSearchRequest", events2.FILE_COMPONENT_SEARCH_RESPONSE = "fileComponentSearchResponse", events2.SAVE_STORY_REQUEST = "saveStoryRequest", events2.SAVE_STORY_RESPONSE = "saveStoryResponse", events2.ARGTYPES_INFO_REQUEST = "argtypesInfoRequest", events2.ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse", events2.CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest", events2.CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse", events2.OPEN_IN_EDITOR_REQUEST = "openInEditorRequest", events2.OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse", events2.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", events2))(events || {}), core_events_default = events, {
|
|
5
5
|
CHANNEL_WS_DISCONNECT,
|
|
6
6
|
CHANNEL_CREATED,
|
|
7
7
|
CONFIG_ERROR,
|
|
@@ -61,7 +61,8 @@ var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "cha
|
|
|
61
61
|
ARGTYPES_INFO_REQUEST,
|
|
62
62
|
ARGTYPES_INFO_RESPONSE,
|
|
63
63
|
OPEN_IN_EDITOR_REQUEST,
|
|
64
|
-
OPEN_IN_EDITOR_RESPONSE
|
|
64
|
+
OPEN_IN_EDITOR_RESPONSE,
|
|
65
|
+
MANAGER_INERT_ATTRIBUTE_CHANGED
|
|
65
66
|
} = events;
|
|
66
67
|
export {
|
|
67
68
|
ARGTYPES_INFO_REQUEST,
|
|
@@ -79,6 +80,7 @@ export {
|
|
|
79
80
|
FORCE_REMOUNT,
|
|
80
81
|
FORCE_RE_RENDER,
|
|
81
82
|
GLOBALS_UPDATED,
|
|
83
|
+
MANAGER_INERT_ATTRIBUTE_CHANGED,
|
|
82
84
|
NAVIGATE_URL,
|
|
83
85
|
OPEN_IN_EDITOR_REQUEST,
|
|
84
86
|
OPEN_IN_EDITOR_RESPONSE,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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-3NPQ2Y77.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ 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-QUCPWX6N.js";
|
|
25
|
+
import "../_node-chunks/chunk-BPLKNOG7.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-IMOJACVP.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-J7VMFLRZ.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-VG22ND3P.js";
|
|
35
|
+
import "../_node-chunks/chunk-IV4K2PSX.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-ZRAJ6YTG.js";
|
|
43
|
+
import "../_node-chunks/chunk-4P6JV5PD.js";
|
|
44
|
+
import "../_node-chunks/chunk-TM67IYGR.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-FUGUVTSE.js";
|
|
48
|
+
import "../_node-chunks/chunk-O72O5WMW.js";
|
|
49
|
+
import "../_node-chunks/chunk-SKKDMIEL.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-APNNQRRU.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-MJEVYN6O.js";
|
|
58
|
+
import "../_node-chunks/chunk-HT3TF35B.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-RJ6MVIQ7.js";
|
|
65
|
+
import "../_node-chunks/chunk-JRJT7Q2N.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-LOJ6VLWV.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-53QZPC5B.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-WAM2AUH6.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-Q2N5EUMK.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-TUFR2XYI.js";
|
|
84
84
|
|
|
85
85
|
// ../../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -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 = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-MSDE3LN6.js"), files = await globby(globPattern, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: globCwd,
|
|
5153
5153
|
...commonGlobOptions(globPattern)
|
|
@@ -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-KMT22HT2.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-OWA7PM5D.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-MSDE3LN6.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);
|
|
@@ -6149,7 +6149,7 @@ async function doTelemetry(app, core2, initializedStoryIndexGenerator, options)
|
|
|
6149
6149
|
storyIndex: summarizeIndex(indexAndStats.storyIndex),
|
|
6150
6150
|
storyStats: indexAndStats.stats
|
|
6151
6151
|
}), telemetry3("dev", payload, { configDir: options.configDir });
|
|
6152
|
-
})
|
|
6152
|
+
});
|
|
6153
6153
|
}
|
|
6154
6154
|
|
|
6155
6155
|
// src/core-server/utils/get-caching-middleware.ts
|
|
@@ -7169,7 +7169,7 @@ async function storybookDevServer(options) {
|
|
|
7169
7169
|
getManagerBuilder(),
|
|
7170
7170
|
useStatics(app, options)
|
|
7171
7171
|
]);
|
|
7172
|
-
options.debugWebpack && logConfig2("Preview webpack config", await previewBuilder.getConfig(options));
|
|
7172
|
+
options.debugWebpack && logConfig2("Preview webpack config", await previewBuilder.getConfig(options)), core2?.disableProjectJson || useStorybookMetadata(app, options.configDir);
|
|
7173
7173
|
let managerResult = options.previewOnly ? void 0 : await managerBuilder.start({
|
|
7174
7174
|
startTime: process.hrtime(),
|
|
7175
7175
|
options,
|
|
@@ -1020,7 +1020,7 @@ var styleResets = {
|
|
|
1020
1020
|
let handleChange = (e2) => {
|
|
1021
1021
|
onChange(options[e2.currentTarget.value]);
|
|
1022
1022
|
}, selection = selectedKey(value2, options) || NO_SELECTION, controlId = getControlId(name), readonly = !!argType?.table?.readonly;
|
|
1023
|
-
return React7.createElement(SelectWrapper, null, React7.createElement(ChevronSmallDownIcon, null), React7.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React7.createElement(OptionsSelect, { disabled: readonly, id: controlId, value: selection, onChange: handleChange }, React7.createElement("option", { key: "no-selection"
|
|
1023
|
+
return React7.createElement(SelectWrapper, null, React7.createElement(ChevronSmallDownIcon, null), React7.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React7.createElement(OptionsSelect, { disabled: readonly, id: controlId, value: selection, onChange: handleChange }, React7.createElement("option", { disabled: selection === NO_SELECTION, key: "no-selection" }, NO_SELECTION), Object.keys(options).map((key) => React7.createElement("option", { key, value: key }, key))));
|
|
1024
1024
|
}, MultiSelect = ({ name, value: value2, options, onChange, argType }) => {
|
|
1025
1025
|
let handleChange = (e2) => {
|
|
1026
1026
|
let selection2 = Array.from(e2.currentTarget.options).filter((option) => option.selected).map((option) => option.value);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-JRJT7Q2N.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-LOJ6VLWV.js";
|
|
18
|
+
import "../../_node-chunks/chunk-TUFR2XYI.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_9jhkjsyjv7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_9jhkjsyjv7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_9jhkjsyjv7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_9jhkjsyjv7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_9jhkjsyjv7c.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 "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-5MG7AO5M.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortError,
|
|
15
15
|
after,
|
|
@@ -32,45 +32,45 @@ import {
|
|
|
32
32
|
sendTelemetryError,
|
|
33
33
|
throttle,
|
|
34
34
|
unary
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
37
|
-
import "../../_node-chunks/chunk-
|
|
38
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-QUCPWX6N.js";
|
|
36
|
+
import "../../_node-chunks/chunk-BPLKNOG7.js";
|
|
37
|
+
import "../../_node-chunks/chunk-IMOJACVP.js";
|
|
38
|
+
import "../../_node-chunks/chunk-J7VMFLRZ.js";
|
|
39
39
|
import {
|
|
40
40
|
getLastEvents,
|
|
41
41
|
getSessionId
|
|
42
|
-
} from "../../_node-chunks/chunk-
|
|
42
|
+
} from "../../_node-chunks/chunk-O72O5WMW.js";
|
|
43
43
|
import {
|
|
44
44
|
globalSettings
|
|
45
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
+
} from "../../_node-chunks/chunk-SKKDMIEL.js";
|
|
46
46
|
import {
|
|
47
47
|
invariant
|
|
48
|
-
} from "../../_node-chunks/chunk-
|
|
48
|
+
} from "../../_node-chunks/chunk-APNNQRRU.js";
|
|
49
49
|
import {
|
|
50
50
|
resolvePackageDir
|
|
51
|
-
} from "../../_node-chunks/chunk-
|
|
52
|
-
import "../../_node-chunks/chunk-
|
|
51
|
+
} from "../../_node-chunks/chunk-MJEVYN6O.js";
|
|
52
|
+
import "../../_node-chunks/chunk-HT3TF35B.js";
|
|
53
53
|
import {
|
|
54
54
|
isAbsolute,
|
|
55
55
|
join
|
|
56
|
-
} from "../../_node-chunks/chunk-
|
|
56
|
+
} from "../../_node-chunks/chunk-RJ6MVIQ7.js";
|
|
57
57
|
import {
|
|
58
58
|
loadConfig
|
|
59
|
-
} from "../../_node-chunks/chunk-
|
|
59
|
+
} from "../../_node-chunks/chunk-Q4YMOGYF.js";
|
|
60
60
|
import {
|
|
61
61
|
require_dist
|
|
62
|
-
} from "../../_node-chunks/chunk-
|
|
63
|
-
import "../../_node-chunks/chunk-
|
|
64
|
-
import "../../_node-chunks/chunk-
|
|
62
|
+
} from "../../_node-chunks/chunk-53QZPC5B.js";
|
|
63
|
+
import "../../_node-chunks/chunk-TX3LEYMY.js";
|
|
64
|
+
import "../../_node-chunks/chunk-WAM2AUH6.js";
|
|
65
65
|
import {
|
|
66
66
|
require_picocolors
|
|
67
|
-
} from "../../_node-chunks/chunk-
|
|
67
|
+
} from "../../_node-chunks/chunk-Q2N5EUMK.js";
|
|
68
68
|
import {
|
|
69
69
|
__commonJS,
|
|
70
70
|
__export,
|
|
71
71
|
__require,
|
|
72
72
|
__toESM
|
|
73
|
-
} from "../../_node-chunks/chunk-
|
|
73
|
+
} from "../../_node-chunks/chunk-TUFR2XYI.js";
|
|
74
74
|
|
|
75
75
|
// ../../node_modules/shell-quote/quote.js
|
|
76
76
|
var require_quote = __commonJS({
|
|
@@ -537,7 +537,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
537
537
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
538
538
|
|
|
539
539
|
// src/core-server/utils/get-component-variable-name.ts
|
|
540
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
540
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-2LEK4OOC.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
541
541
|
|
|
542
542
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
543
543
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -802,7 +802,7 @@ async function searchFiles({
|
|
|
802
802
|
ignoredFiles = IGNORED_FILES,
|
|
803
803
|
fileExtensions = FILE_EXTENSIONS
|
|
804
804
|
}) {
|
|
805
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
805
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-MSDE3LN6.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
806
806
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
807
807
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
808
808
|
];
|