storybook 10.2.0-alpha.15 → 10.2.0-alpha.17
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-SOKYB5NF.js → builder-manager-Q4F5VX5J.js} +14 -12
- package/dist/_node-chunks/{camelcase-SXQWF7PW.js → camelcase-FL6OBJRZ.js} +7 -7
- package/dist/_node-chunks/{chunk-5KEIALUH.js → chunk-25OWI2RR.js} +6 -6
- package/dist/_node-chunks/{chunk-ENNDE4GC.js → chunk-2XSHQN7K.js} +10 -10
- package/dist/_node-chunks/{chunk-E3Y5MHXD.js → chunk-3D4SLKEE.js} +7 -7
- package/dist/_node-chunks/{chunk-FKBWQGIF.js → chunk-5Q5JEISY.js} +6 -6
- package/dist/_node-chunks/{chunk-Q6WUEJ4S.js → chunk-C3FPVGL4.js} +6 -6
- package/dist/_node-chunks/chunk-CBPOKBOR.js +18 -0
- package/dist/_node-chunks/{chunk-2FQAOAQ6.js → chunk-CCJGKJ27.js} +12 -12
- package/dist/_node-chunks/{chunk-MD52RVZX.js → chunk-DJ3RRSJ7.js} +7 -7
- package/dist/_node-chunks/chunk-EG3WZ464.js +23 -0
- package/dist/_node-chunks/{chunk-6SIUW3HU.js → chunk-EYPTVKFI.js} +123 -72
- package/dist/_node-chunks/{chunk-TN3Q52LO.js → chunk-FAARRTOD.js} +6 -6
- package/dist/_node-chunks/{chunk-QPKBPYOY.js → chunk-G7P42ZEY.js} +7 -7
- package/dist/_node-chunks/chunk-GYJ7LPFJ.js +144 -0
- package/dist/_node-chunks/{chunk-BOY3TNPC.js → chunk-IRMNO3QS.js} +9 -9
- package/dist/_node-chunks/{chunk-BRW7NFUP.js → chunk-IWM3WHZE.js} +7 -7
- package/dist/_node-chunks/{chunk-RGWB6DD7.js → chunk-JBRILZWU.js} +6 -6
- package/dist/_node-chunks/{chunk-HFKM7JHQ.js → chunk-KKNWPXMS.js} +6 -6
- package/dist/_node-chunks/{chunk-45UIB4YF.js → chunk-MU4E5UBA.js} +7 -7
- package/dist/_node-chunks/{chunk-274OMYGE.js → chunk-PWI3ORDV.js} +22 -22
- package/dist/_node-chunks/chunk-RGEHGZS6.js +61 -0
- package/dist/_node-chunks/{chunk-KNGN3UEO.js → chunk-V3SFCYKQ.js} +7 -7
- package/dist/_node-chunks/{chunk-4GKVZO2T.js → chunk-VK4OWRKU.js} +9 -9
- package/dist/_node-chunks/{chunk-K4YVLJRS.js → chunk-VT2FICF4.js} +6 -6
- package/dist/_node-chunks/{chunk-SZWIX5YC.js → chunk-VTBZVEBF.js} +529 -142
- package/dist/_node-chunks/{chunk-T57UCO67.js → chunk-XI7HDOMY.js} +7 -7
- package/dist/_node-chunks/{chunk-PI7P5HFH.js → chunk-XTIFAWOB.js} +250 -14
- package/dist/_node-chunks/{chunk-AIIQJ6UR.js → chunk-XYONORVT.js} +7 -7
- package/dist/_node-chunks/{chunk-MQZLLJRG.js → chunk-ZOUBYBCH.js} +9 -9
- package/dist/_node-chunks/{globby-LGQ5P2JB.js → globby-4BDMCAAD.js} +9 -9
- package/dist/_node-chunks/{lib-5LBLULG3.js → lib-XS2XQMOO.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-TAPL5IEO.js → mdx-N42X6CFJ-JFERGMQH.js} +8 -8
- package/dist/_node-chunks/{p-limit-GTMOHYQF.js → p-limit-I4CLTHWH.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-events/index.d.ts +19 -3
- package/dist/core-events/index.js +5 -1
- package/dist/core-server/index.d.ts +64 -2
- package/dist/core-server/index.js +37 -34
- package/dist/core-server/presets/common-override-preset.js +11 -11
- package/dist/core-server/presets/common-preset.js +532 -234
- package/dist/csf/index.d.ts +139 -9
- package/dist/csf/index.js +41 -14
- package/dist/csf-tools/index.d.ts +19 -1
- package/dist/csf-tools/index.js +11 -10
- package/dist/manager/globals-runtime.js +6 -2
- package/dist/manager/runtime.js +17 -98
- 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 +33 -6
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +13 -2
- package/dist/telemetry/index.js +23 -22
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-2BHD5YKF.js +0 -35
- package/dist/_node-chunks/chunk-MM7Z4SG7.js +0 -23
- package/dist/_node-chunks/chunk-TYSSQECX.js +0 -61
- package/dist/_node-chunks/chunk-YP34ARUD.js +0 -18
package/dist/bin/loader.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.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-VT2FICF4.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-G7P42ZEY.js";
|
|
18
18
|
import {
|
|
19
19
|
__toESM
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-25OWI2RR.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_w8tq4vh9mzk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.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-CCJGKJ27.js";
|
|
37
37
|
import {
|
|
38
38
|
detectPnp
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
39
|
+
} from "../_node-chunks/chunk-EG3WZ464.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-VK4OWRKU.js";
|
|
45
|
+
import "../_node-chunks/chunk-C3FPVGL4.js";
|
|
46
|
+
import "../_node-chunks/chunk-KKNWPXMS.js";
|
|
47
|
+
import "../_node-chunks/chunk-3D4SLKEE.js";
|
|
48
|
+
import "../_node-chunks/chunk-5Q5JEISY.js";
|
|
49
|
+
import "../_node-chunks/chunk-G7P42ZEY.js";
|
|
50
|
+
import "../_node-chunks/chunk-IRMNO3QS.js";
|
|
51
|
+
import "../_node-chunks/chunk-MU4E5UBA.js";
|
|
52
|
+
import "../_node-chunks/chunk-XI7HDOMY.js";
|
|
53
|
+
import "../_node-chunks/chunk-25OWI2RR.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_w8tq4vh9mzk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.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-PWI3ORDV.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-RGEHGZS6.js";
|
|
109
|
+
import "../_node-chunks/chunk-XYONORVT.js";
|
|
110
|
+
import "../_node-chunks/chunk-ZOUBYBCH.js";
|
|
111
|
+
import "../_node-chunks/chunk-C3FPVGL4.js";
|
|
112
112
|
import {
|
|
113
113
|
groupBy,
|
|
114
114
|
invariant
|
|
115
|
-
} from "../_node-chunks/chunk-
|
|
115
|
+
} from "../_node-chunks/chunk-KKNWPXMS.js";
|
|
116
116
|
import {
|
|
117
117
|
importMetaResolve,
|
|
118
118
|
importModule,
|
|
119
119
|
resolvePackageDir,
|
|
120
120
|
safeResolveModule
|
|
121
|
-
} from "../_node-chunks/chunk-
|
|
122
|
-
import "../_node-chunks/chunk-
|
|
123
|
-
import "../_node-chunks/chunk-
|
|
124
|
-
import "../_node-chunks/chunk-
|
|
125
|
-
import "../_node-chunks/chunk-
|
|
126
|
-
import "../_node-chunks/chunk-
|
|
127
|
-
import "../_node-chunks/chunk-
|
|
121
|
+
} from "../_node-chunks/chunk-3D4SLKEE.js";
|
|
122
|
+
import "../_node-chunks/chunk-5Q5JEISY.js";
|
|
123
|
+
import "../_node-chunks/chunk-JBRILZWU.js";
|
|
124
|
+
import "../_node-chunks/chunk-DJ3RRSJ7.js";
|
|
125
|
+
import "../_node-chunks/chunk-G7P42ZEY.js";
|
|
126
|
+
import "../_node-chunks/chunk-XI7HDOMY.js";
|
|
127
|
+
import "../_node-chunks/chunk-25OWI2RR.js";
|
|
128
128
|
export {
|
|
129
129
|
DEFAULT_FILES_PATTERN,
|
|
130
130
|
FileSystemCache,
|
|
@@ -40,12 +40,16 @@ interface SBBaseType {
|
|
|
40
40
|
raw?: string;
|
|
41
41
|
}
|
|
42
42
|
type SBScalarType = SBBaseType & {
|
|
43
|
-
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol';
|
|
43
|
+
name: 'boolean' | 'string' | 'number' | 'function' | 'symbol' | 'date';
|
|
44
44
|
};
|
|
45
45
|
type SBArrayType = SBBaseType & {
|
|
46
46
|
name: 'array';
|
|
47
47
|
value: SBType;
|
|
48
48
|
};
|
|
49
|
+
type SBNodeType = SBBaseType & {
|
|
50
|
+
name: 'node';
|
|
51
|
+
renderer: string;
|
|
52
|
+
};
|
|
49
53
|
type SBObjectType = SBBaseType & {
|
|
50
54
|
name: 'object';
|
|
51
55
|
value: Record<string, SBType>;
|
|
@@ -62,11 +66,19 @@ type SBUnionType = SBBaseType & {
|
|
|
62
66
|
name: 'union';
|
|
63
67
|
value: SBType[];
|
|
64
68
|
};
|
|
69
|
+
type SBLiteralType = SBBaseType & {
|
|
70
|
+
name: 'literal';
|
|
71
|
+
value: unknown;
|
|
72
|
+
};
|
|
73
|
+
type SBTupleType = SBBaseType & {
|
|
74
|
+
name: 'tuple';
|
|
75
|
+
value: SBType[];
|
|
76
|
+
};
|
|
65
77
|
type SBOtherType = SBBaseType & {
|
|
66
78
|
name: 'other';
|
|
67
79
|
value: string;
|
|
68
80
|
};
|
|
69
|
-
type SBType = SBScalarType | SBEnumType | SBArrayType | SBObjectType | SBIntersectionType | SBUnionType | SBOtherType;
|
|
81
|
+
type SBType = SBScalarType | SBEnumType | SBArrayType | SBNodeType | SBObjectType | SBIntersectionType | SBUnionType | SBLiteralType | SBTupleType | SBOtherType;
|
|
70
82
|
|
|
71
83
|
type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
|
|
72
84
|
type ConditionalTest = {
|
|
@@ -300,6 +312,8 @@ declare enum events {
|
|
|
300
312
|
ARGTYPES_INFO_RESPONSE = "argtypesInfoResponse",
|
|
301
313
|
CREATE_NEW_STORYFILE_REQUEST = "createNewStoryfileRequest",
|
|
302
314
|
CREATE_NEW_STORYFILE_RESPONSE = "createNewStoryfileResponse",
|
|
315
|
+
GHOST_STORIES_REQUEST = "ghostStoriesRequest",
|
|
316
|
+
GHOST_STORIES_RESPONSE = "ghostStoriesResponse",
|
|
303
317
|
OPEN_IN_EDITOR_REQUEST = "openInEditorRequest",
|
|
304
318
|
OPEN_IN_EDITOR_RESPONSE = "openInEditorResponse",
|
|
305
319
|
MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged"
|
|
@@ -363,8 +377,10 @@ declare const SAVE_STORY_REQUEST: events;
|
|
|
363
377
|
declare const SAVE_STORY_RESPONSE: events;
|
|
364
378
|
declare const ARGTYPES_INFO_REQUEST: events;
|
|
365
379
|
declare const ARGTYPES_INFO_RESPONSE: events;
|
|
380
|
+
declare const GHOST_STORIES_REQUEST: events;
|
|
381
|
+
declare const GHOST_STORIES_RESPONSE: events;
|
|
366
382
|
declare const OPEN_IN_EDITOR_REQUEST: events;
|
|
367
383
|
declare const OPEN_IN_EDITOR_RESPONSE: events;
|
|
368
384
|
declare const MANAGER_INERT_ATTRIBUTE_CHANGED: events;
|
|
369
385
|
|
|
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 };
|
|
386
|
+
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, GHOST_STORIES_REQUEST, GHOST_STORIES_RESPONSE, 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.MANAGER_INERT_ATTRIBUTE_CHANGED = "managerInertAttributeChanged", 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.GHOST_STORIES_REQUEST = "ghostStoriesRequest", events2.GHOST_STORIES_RESPONSE = "ghostStoriesResponse", 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,
|
|
@@ -60,6 +60,8 @@ var events = /* @__PURE__ */ ((events2) => (events2.CHANNEL_WS_DISCONNECT = "cha
|
|
|
60
60
|
SAVE_STORY_RESPONSE,
|
|
61
61
|
ARGTYPES_INFO_REQUEST,
|
|
62
62
|
ARGTYPES_INFO_RESPONSE,
|
|
63
|
+
GHOST_STORIES_REQUEST,
|
|
64
|
+
GHOST_STORIES_RESPONSE,
|
|
63
65
|
OPEN_IN_EDITOR_REQUEST,
|
|
64
66
|
OPEN_IN_EDITOR_RESPONSE,
|
|
65
67
|
MANAGER_INERT_ATTRIBUTE_CHANGED
|
|
@@ -79,6 +81,8 @@ export {
|
|
|
79
81
|
FILE_COMPONENT_SEARCH_RESPONSE,
|
|
80
82
|
FORCE_REMOUNT,
|
|
81
83
|
FORCE_RE_RENDER,
|
|
84
|
+
GHOST_STORIES_REQUEST,
|
|
85
|
+
GHOST_STORIES_RESPONSE,
|
|
82
86
|
GLOBALS_UPDATED,
|
|
83
87
|
MANAGER_INERT_ATTRIBUTE_CHANGED,
|
|
84
88
|
NAVIGATE_URL,
|
|
@@ -3,8 +3,9 @@ export { getPreviewBodyTemplate, getPreviewHeadTemplate } from 'storybook/intern
|
|
|
3
3
|
import * as storybook_internal_types from 'storybook/internal/types';
|
|
4
4
|
import { CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, IndexInputStats, NormalizedStoriesSpecifier, Path as Path$1, Indexer, DocsOptions, StoryIndexEntry, DocsIndexEntry, IndexEntry, StoryIndex, Options, NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
|
|
5
5
|
import { EventType } from 'storybook/internal/telemetry';
|
|
6
|
+
import { CreateNewStoryRequestPayload } from 'storybook/internal/core-events';
|
|
7
|
+
import { SBType, StoryId } from 'storybook/internal/csf';
|
|
6
8
|
import { Channel } from 'storybook/internal/channels';
|
|
7
|
-
import { StoryId } from 'storybook/internal/csf';
|
|
8
9
|
|
|
9
10
|
type BuildStaticStandaloneOptions = CLIOptions & LoadOptions & BuilderOptions & {
|
|
10
11
|
outputDir: string;
|
|
@@ -267,6 +268,67 @@ declare class StoryIndexGenerator {
|
|
|
267
268
|
static storyFileNames(specifierToCache: Map<NormalizedStoriesSpecifier, SpecifierStoriesCache>): string[];
|
|
268
269
|
}
|
|
269
270
|
|
|
271
|
+
interface GenerateStoryResult {
|
|
272
|
+
success: boolean;
|
|
273
|
+
storyId?: string;
|
|
274
|
+
kind?: string;
|
|
275
|
+
storyFilePath?: string;
|
|
276
|
+
exportedStoryName?: string;
|
|
277
|
+
error?: string;
|
|
278
|
+
errorType?: 'STORY_FILE_EXISTS' | 'UNKNOWN';
|
|
279
|
+
}
|
|
280
|
+
interface GenerateStoryOptions {
|
|
281
|
+
/**
|
|
282
|
+
* If true, checks if the file exists and returns an error without writing. If false, writes the
|
|
283
|
+
* file even if it exists (overwrites).
|
|
284
|
+
*
|
|
285
|
+
* @default true
|
|
286
|
+
*/
|
|
287
|
+
checkFileExists?: boolean;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Generates and writes a new story file for a component.
|
|
291
|
+
*
|
|
292
|
+
* This function orchestrates the entire story file creation process:
|
|
293
|
+
*
|
|
294
|
+
* 1. Generates the story file path and content based on the component
|
|
295
|
+
* 2. Optionally checks if the file already exists
|
|
296
|
+
* 3. Writes the story file to disk
|
|
297
|
+
* 4. Returns metadata about the created story
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
*
|
|
301
|
+
* ```ts
|
|
302
|
+
* const result = await generateStoryFile(
|
|
303
|
+
* {
|
|
304
|
+
* componentFilePath: 'src/components/Button.tsx',
|
|
305
|
+
* componentExportName: 'Button',
|
|
306
|
+
* componentIsDefaultExport: true,
|
|
307
|
+
* componentExportCount: 1,
|
|
308
|
+
* },
|
|
309
|
+
* options
|
|
310
|
+
* );
|
|
311
|
+
*
|
|
312
|
+
* if (result.success) {
|
|
313
|
+
* console.log(`Story created at ${result.storyFilePath}`);
|
|
314
|
+
* }
|
|
315
|
+
* ```
|
|
316
|
+
*
|
|
317
|
+
* @param payload - The component information for which to create a story
|
|
318
|
+
* @param options - Storybook options for configuration
|
|
319
|
+
* @param generateOptions - Additional options for story generation behavior
|
|
320
|
+
* @returns A promise that resolves to the result of the story generation
|
|
321
|
+
*/
|
|
322
|
+
declare function generateStoryFile(payload: CreateNewStoryRequestPayload, options: Options, generateOptions?: GenerateStoryOptions): Promise<GenerateStoryResult>;
|
|
323
|
+
|
|
324
|
+
type ComponentArgTypesInfo = {
|
|
325
|
+
required: boolean;
|
|
326
|
+
type: SBType;
|
|
327
|
+
};
|
|
328
|
+
type ComponentArgTypesData = {
|
|
329
|
+
props?: Record<string, ComponentArgTypesInfo>;
|
|
330
|
+
};
|
|
331
|
+
|
|
270
332
|
declare function loadStorybook(options: CLIOptions & LoadOptions & BuilderOptions & {
|
|
271
333
|
storybookVersion?: string;
|
|
272
334
|
previewConfigPath?: string;
|
|
@@ -1344,4 +1406,4 @@ declare const fullTestProviderStore: {
|
|
|
1344
1406
|
declare const getTestProviderStoreById: (testProviderId: TestProviderId) => TestProviderStoreById;
|
|
1345
1407
|
declare const universalTestProviderStore: UniversalStore<TestProviderStateByProviderId, TestProviderStoreEvent>;
|
|
1346
1408
|
|
|
1347
|
-
export { type BuildIndexOptions, type BuildStaticStandaloneOptions, StoryIndexGenerator, Tag, analyze as analyzeMdx, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, getErrorLevel, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isTelemetryEnabled, mapStaticDir, sendTelemetryError, withTelemetry };
|
|
1409
|
+
export { type BuildIndexOptions, type BuildStaticStandaloneOptions, type ComponentArgTypesData, type GenerateStoryOptions, type GenerateStoryResult, StoryIndexGenerator, Tag, analyze as analyzeMdx, build, buildDevStandalone, buildIndex, buildIndexStandalone, buildStaticStandalone, MockUniversalStore as experimental_MockUniversalStore, UniversalStore as experimental_UniversalStore, getStatusStoreByTypeId as experimental_getStatusStore, getTestProviderStoreById as experimental_getTestProviderStore, loadStorybook as experimental_loadStorybook, generateStoryFile, getErrorLevel, fullStatusStore as internal_fullStatusStore, fullTestProviderStore as internal_fullTestProviderStore, universalStatusStore as internal_universalStatusStore, universalTestProviderStore as internal_universalTestProviderStore, isTelemetryEnabled, mapStaticDir, sendTelemetryError, withTelemetry };
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.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
|
toEstree
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-V3SFCYKQ.js";
|
|
15
15
|
import {
|
|
16
16
|
StatusTypeIdMismatchError
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-2XSHQN7K.js";
|
|
18
18
|
import {
|
|
19
19
|
debounce,
|
|
20
|
+
generateStoryFile,
|
|
20
21
|
getErrorLevel,
|
|
21
22
|
isTelemetryEnabled,
|
|
22
23
|
mapStaticDir,
|
|
@@ -24,68 +25,69 @@ import {
|
|
|
24
25
|
sendTelemetryError,
|
|
25
26
|
useStatics,
|
|
26
27
|
withTelemetry
|
|
27
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-XTIFAWOB.js";
|
|
28
29
|
import {
|
|
29
30
|
detectPnp
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-EG3WZ464.js";
|
|
32
|
+
import "../_node-chunks/chunk-IWM3WHZE.js";
|
|
32
33
|
import {
|
|
33
34
|
StorybookError
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
+
} from "../_node-chunks/chunk-FAARRTOD.js";
|
|
35
36
|
import {
|
|
36
37
|
telemetry
|
|
37
|
-
} from "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-EYPTVKFI.js";
|
|
39
|
+
import "../_node-chunks/chunk-CBPOKBOR.js";
|
|
39
40
|
import {
|
|
40
41
|
optionalEnvToBoolean,
|
|
41
42
|
require_cross_spawn,
|
|
42
43
|
resolveImport,
|
|
43
44
|
supportedExtensions,
|
|
44
45
|
userOrAutoTitleFromSpecifier
|
|
45
|
-
} from "../_node-chunks/chunk-
|
|
46
|
-
import "../_node-chunks/chunk-
|
|
47
|
-
import "../_node-chunks/chunk-
|
|
46
|
+
} from "../_node-chunks/chunk-PWI3ORDV.js";
|
|
47
|
+
import "../_node-chunks/chunk-RGEHGZS6.js";
|
|
48
|
+
import "../_node-chunks/chunk-XYONORVT.js";
|
|
48
49
|
import {
|
|
49
50
|
require_pretty_hrtime
|
|
50
|
-
} from "../_node-chunks/chunk-
|
|
51
|
-
import "../_node-chunks/chunk-
|
|
51
|
+
} from "../_node-chunks/chunk-ZOUBYBCH.js";
|
|
52
|
+
import "../_node-chunks/chunk-GYJ7LPFJ.js";
|
|
53
|
+
import "../_node-chunks/chunk-VK4OWRKU.js";
|
|
52
54
|
import {
|
|
53
55
|
invariant,
|
|
54
56
|
up2 as up
|
|
55
|
-
} from "../_node-chunks/chunk-
|
|
56
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-C3FPVGL4.js";
|
|
58
|
+
import "../_node-chunks/chunk-KKNWPXMS.js";
|
|
57
59
|
import {
|
|
58
60
|
importModule,
|
|
59
61
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
62
|
+
} from "../_node-chunks/chunk-3D4SLKEE.js";
|
|
61
63
|
import {
|
|
62
64
|
dirname,
|
|
63
65
|
join,
|
|
64
66
|
relative,
|
|
65
67
|
resolve
|
|
66
|
-
} from "../_node-chunks/chunk-
|
|
67
|
-
import "../_node-chunks/chunk-MD52RVZX.js";
|
|
68
|
+
} from "../_node-chunks/chunk-5Q5JEISY.js";
|
|
68
69
|
import {
|
|
69
70
|
slash
|
|
70
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-JBRILZWU.js";
|
|
72
|
+
import "../_node-chunks/chunk-DJ3RRSJ7.js";
|
|
71
73
|
import {
|
|
72
74
|
Tag
|
|
73
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-VTBZVEBF.js";
|
|
74
76
|
import {
|
|
75
77
|
require_dist
|
|
76
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-G7P42ZEY.js";
|
|
77
79
|
import {
|
|
78
80
|
require_lib,
|
|
79
81
|
require_src
|
|
80
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-MU4E5UBA.js";
|
|
81
83
|
import {
|
|
82
84
|
require_picocolors
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
85
|
+
} from "../_node-chunks/chunk-XI7HDOMY.js";
|
|
84
86
|
import {
|
|
85
87
|
__commonJS,
|
|
86
88
|
__require,
|
|
87
89
|
__toESM
|
|
88
|
-
} from "../_node-chunks/chunk-
|
|
90
|
+
} from "../_node-chunks/chunk-25OWI2RR.js";
|
|
89
91
|
|
|
90
92
|
// ../../node_modules/glob-to-regexp/index.js
|
|
91
93
|
var require_glob_to_regexp = __commonJS({
|
|
@@ -4542,7 +4544,7 @@ function print(p) {
|
|
|
4542
4544
|
// src/core-server/utils/get-builders.ts
|
|
4543
4545
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
4544
4546
|
async function getManagerBuilder() {
|
|
4545
|
-
return await import("../_node-chunks/builder-manager-
|
|
4547
|
+
return await import("../_node-chunks/builder-manager-Q4F5VX5J.js");
|
|
4546
4548
|
}
|
|
4547
4549
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
4548
4550
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -4606,7 +4608,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
4606
4608
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
4607
4609
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
4608
4610
|
basename(specifier.files)
|
|
4609
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
4611
|
+
), { globby } = await import("../_node-chunks/globby-4BDMCAAD.js");
|
|
4610
4612
|
(await globby(slash(dirGlob), commonGlobOptions(dirGlob))).forEach((filePath) => {
|
|
4611
4613
|
let fileImportPath = toImportPath(filePath);
|
|
4612
4614
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(fileImportPath, removed);
|
|
@@ -5625,7 +5627,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
5625
5627
|
isTemplate: !1,
|
|
5626
5628
|
metaTags: void 0,
|
|
5627
5629
|
imports: void 0
|
|
5628
|
-
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-
|
|
5630
|
+
}, { compile } = await import("../_node-chunks/mdx-N42X6CFJ-JFERGMQH.js");
|
|
5629
5631
|
await compile(code, {
|
|
5630
5632
|
rehypePlugins: [[plugin, store]]
|
|
5631
5633
|
});
|
|
@@ -5770,7 +5772,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5770
5772
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5771
5773
|
if (cached)
|
|
5772
5774
|
return cached;
|
|
5773
|
-
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5775
|
+
let pathToSubIndex = {}, globCwd = slash(resolve3(workingDir, specifier.directory)), globPattern = specifier.files.startsWith("!") ? `./${specifier.files}` : specifier.files, { globby } = await import("../_node-chunks/globby-4BDMCAAD.js"), files = await globby(globPattern, {
|
|
5774
5776
|
absolute: !0,
|
|
5775
5777
|
cwd: globCwd,
|
|
5776
5778
|
...commonGlobOptions2(globPattern)
|
|
@@ -7982,6 +7984,7 @@ export {
|
|
|
7982
7984
|
getStatusStoreByTypeId as experimental_getStatusStore,
|
|
7983
7985
|
getTestProviderStoreById as experimental_getTestProviderStore,
|
|
7984
7986
|
loadStorybook as experimental_loadStorybook,
|
|
7987
|
+
generateStoryFile,
|
|
7985
7988
|
getErrorLevel,
|
|
7986
7989
|
getPreviewBodyTemplate,
|
|
7987
7990
|
getPreviewHeadTemplate,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w8tq4vh9mzk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w8tq4vh9mzk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w8tq4vh9mzk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w8tq4vh9mzk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w8tq4vh9mzk.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 {
|
|
13
|
-
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-MD52RVZX.js";
|
|
15
12
|
import {
|
|
16
13
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import
|
|
14
|
+
} from "../../_node-chunks/chunk-JBRILZWU.js";
|
|
15
|
+
import {
|
|
16
|
+
glob
|
|
17
|
+
} from "../../_node-chunks/chunk-DJ3RRSJ7.js";
|
|
18
|
+
import "../../_node-chunks/chunk-25OWI2RR.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|