storybook 10.1.0-alpha.1 → 10.1.0-alpha.3

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.
Files changed (74) hide show
  1. package/dist/_browser-chunks/{chunk-I74EUU5O.js → chunk-B3S3ROIP.js} +2 -1
  2. package/dist/_node-chunks/{builder-manager-6UBDPV7P.js → builder-manager-GBWCUYRR.js} +12 -12
  3. package/dist/_node-chunks/camelcase-2N6MD2HZ.js +18 -0
  4. package/dist/_node-chunks/{chunk-QNUGJO6L.js → chunk-2JHIUWIN.js} +7 -7
  5. package/dist/_node-chunks/{chunk-TXHNWNH4.js → chunk-5KDXQR2J.js} +7 -7
  6. package/dist/_node-chunks/{chunk-WNOSTIYP.js → chunk-5X7FGASE.js} +7 -7
  7. package/dist/_node-chunks/{chunk-BYVQZ2HU.js → chunk-6U2QTN2E.js} +7 -7
  8. package/dist/_node-chunks/{chunk-X67VGZN4.js → chunk-APKZWRTX.js} +7 -7
  9. package/dist/_node-chunks/{chunk-3FPF5Y2F.js → chunk-AX2PCJZ2.js} +6 -6
  10. package/dist/_node-chunks/{chunk-7TNUMFKR.js → chunk-B63HGQAB.js} +9 -9
  11. package/dist/_node-chunks/{chunk-6GD23U64.js → chunk-BNO5FB6B.js} +8 -8
  12. package/dist/_node-chunks/{chunk-3JCSHYSU.js → chunk-C4UVY6FF.js} +7 -7
  13. package/dist/_node-chunks/{chunk-J7N7PD5Q.js → chunk-CKXP5RYA.js} +9 -9
  14. package/dist/_node-chunks/chunk-D3NGJQDZ.js +18 -0
  15. package/dist/_node-chunks/{chunk-5SEHHENC.js → chunk-FJWQKOXX.js} +10 -10
  16. package/dist/_node-chunks/{chunk-HORWITP7.js → chunk-GMO24NTJ.js} +7 -7
  17. package/dist/_node-chunks/{chunk-BCDHUXAJ.js → chunk-HH57J4TX.js} +8 -8
  18. package/dist/_node-chunks/{chunk-VYRFXLRO.js → chunk-JKWP2FKQ.js} +7 -7
  19. package/dist/_node-chunks/chunk-LPNJ7PJY.js +61 -0
  20. package/dist/_node-chunks/{chunk-ULWNTI6M.js → chunk-MDXYV4OF.js} +15 -15
  21. package/dist/_node-chunks/{chunk-II4AFH3V.js → chunk-MPUDYIDW.js} +7 -7
  22. package/dist/_node-chunks/{chunk-GD2FXWDF.js → chunk-N7XYNLCJ.js} +7 -7
  23. package/dist/_node-chunks/{chunk-SCTKVDWR.js → chunk-NCHBSJG3.js} +1467 -148
  24. package/dist/_node-chunks/{chunk-RVE4UTVQ.js → chunk-NTH76OZA.js} +12 -12
  25. package/dist/_node-chunks/{chunk-DAMVKHAC.js → chunk-NTX43F34.js} +7 -7
  26. package/dist/_node-chunks/{chunk-MF2PUEWG.js → chunk-NYXHMPY4.js} +7 -7
  27. package/dist/_node-chunks/{chunk-FEOC7OX2.js → chunk-RLMJDF6S.js} +8 -8
  28. package/dist/_node-chunks/{chunk-TUFWZUTO.js → chunk-S32G4TCP.js} +7 -7
  29. package/dist/_node-chunks/{chunk-XW7YMR7I.js → chunk-SQAKXWVV.js} +7 -7
  30. package/dist/_node-chunks/{chunk-XCEBYOA4.js → chunk-T7KB265F.js} +6 -6
  31. package/dist/_node-chunks/{chunk-LAU7VVPC.js → chunk-TDLKTACT.js} +7 -7
  32. package/dist/_node-chunks/{chunk-6OAXYS5T.js → chunk-TSKLBMF3.js} +8 -8
  33. package/dist/_node-chunks/{chunk-4GE6Q4MX.js → chunk-TZ7GUTJ4.js} +7 -7
  34. package/dist/_node-chunks/{chunk-CJHAP7SE.js → chunk-YFBIEJ33.js} +7 -7
  35. package/dist/_node-chunks/{chunk-FY7XZPLY.js → chunk-YJJWZPL7.js} +39 -24
  36. package/dist/_node-chunks/{chunk-2RIKHYCS.js → chunk-ZQY3BNST.js} +12 -12
  37. package/dist/_node-chunks/{dist-APCKHSY3.js → dist-SQENNWFY.js} +9 -9
  38. package/dist/_node-chunks/{globby-TSGXGDA2.js → globby-CVPDLQ5Z.js} +9 -9
  39. package/dist/_node-chunks/{lib-DZ5TVIU5.js → lib-4BTTMYE2.js} +7 -7
  40. package/dist/_node-chunks/{mdx-N42X6CFJ-Z6BYQCPN.js → mdx-N42X6CFJ-ENVHI6CC.js} +8 -8
  41. package/dist/_node-chunks/{p-limit-MLJNGG2K.js → p-limit-I2XW6GST.js} +7 -7
  42. package/dist/_node-chunks/{plugin-J3JI3ZKJ.js → plugin-4NIE24IO.js} +10 -10
  43. package/dist/_node-chunks/{plugin-HJLCLGNT.js → plugin-O5PHZ367.js} +10 -10
  44. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-3QHNTM5B.js → webpack-inject-mocker-runtime-plugin-SVBN7WFH.js} +10 -10
  45. package/dist/_node-chunks/{webpack-mock-plugin-4Y3MWPJ6.js → webpack-mock-plugin-XBV3VXVD.js} +9 -9
  46. package/dist/babel/index.js +11 -11
  47. package/dist/bin/core.js +11 -11
  48. package/dist/bin/dispatcher.js +11 -11
  49. package/dist/bin/loader.js +9 -9
  50. package/dist/cli/index.js +21 -21
  51. package/dist/common/index.d.ts +210 -3
  52. package/dist/common/index.js +28 -20
  53. package/dist/components/index.js +1 -1
  54. package/dist/core-server/index.js +766 -52
  55. package/dist/core-server/presets/common-manager.js +1 -1
  56. package/dist/core-server/presets/common-override-preset.js +9 -9
  57. package/dist/core-server/presets/common-preset.js +23 -23
  58. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  59. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  60. package/dist/csf-tools/index.d.ts +8 -4
  61. package/dist/csf-tools/index.js +9 -9
  62. package/dist/manager/globals-runtime.js +5 -4
  63. package/dist/manager-api/index.js +1 -1
  64. package/dist/node-logger/index.js +14 -14
  65. package/dist/preview/runtime.js +2 -2
  66. package/dist/preview-api/index.d.ts +67 -68
  67. package/dist/server-errors.js +10 -10
  68. package/dist/telemetry/index.js +24 -24
  69. package/dist/test/index.js +2 -2
  70. package/dist/types/index.d.ts +47 -5
  71. package/package.json +2 -1
  72. package/dist/_node-chunks/camelcase-WKJOVNPM.js +0 -18
  73. package/dist/_node-chunks/chunk-HM6B7FE5.js +0 -18
  74. package/dist/_node-chunks/chunk-ZRFYQ46H.js +0 -61
@@ -1,10 +1,11 @@
1
1
  import * as storybook_internal_types from 'storybook/internal/types';
2
- import { PresetConfig, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, LoadedPreset, Presets, PackageJson, CoreCommon_AddonInfo, SupportedFrameworks, SupportedRenderers, Options as Options$1, CoreCommon_StorybookInfo, Ref, StorybookConfig, StoriesEntry, NormalizedStoriesSpecifier } from 'storybook/internal/types';
2
+ import { CLIOptions, LoadOptions, BuilderOptions, StorybookConfigRaw, PresetConfig, CoreCommon_ResolvedAddonPreset, CoreCommon_ResolvedAddonVirtual, LoadedPreset, Presets, PackageJson, CoreCommon_AddonInfo, SupportedFrameworks, SupportedRenderers, Options as Options$1, CoreCommon_StorybookInfo, Ref, StorybookConfig, StoriesEntry, NormalizedStoriesSpecifier } from 'storybook/internal/types';
3
3
  export { PackageJson } from 'storybook/internal/types';
4
4
  import { WriteStream } from 'node:fs';
5
5
  import { Buffer } from 'node:buffer';
6
6
  import { ChildProcess } from 'node:child_process';
7
7
  import { Readable, Writable, Stream } from 'node:stream';
8
+ import * as prettier from 'prettier';
8
9
  import { ConfigFile } from 'storybook/internal/csf-tools';
9
10
 
10
11
  declare const _default: {
@@ -1100,8 +1101,193 @@ declare class HandledError extends Error {
1100
1101
  */
1101
1102
  declare const interpolate: (template: string, bindings: Record<string, string>) => string;
1102
1103
 
1103
- declare const supportedExtensions: readonly [".js", ".mjs", ".cjs", ".jsx", ".ts", ".mts", ".cts", ".tsx"];
1104
+ interface PackageMeta {
1105
+ name: string;
1106
+ version: string;
1107
+ [key: string]: any;
1108
+ }
1109
+
1110
+ interface ToString {
1111
+ toString(): string;
1112
+ }
1113
+
1114
+ type StringOrToString = string | ToString;
1115
+
1116
+ /**
1117
+ * Callback invoked when resolving asynchronously
1118
+ *
1119
+ * @param error
1120
+ * @param resolved Absolute path to resolved identifier
1121
+ */
1122
+ type resolveCallback = (err: Error | null, resolved?: string, pkg?: PackageMeta) => void;
1123
+
1124
+ /**
1125
+ * Callback invoked when checking if a file or directory exists
1126
+ *
1127
+ * @param error
1128
+ * @param exists If the given file or directory exists
1129
+ */
1130
+ type existsCallback = (err: Error | null, isFile?: boolean) => void;
1131
+
1132
+ /**
1133
+ * Callback invoked when reading a file
1134
+ *
1135
+ * @param error
1136
+ * @param isFile If the given file exists
1137
+ */
1138
+ type readFileCallback = (err: Error | null, file?: StringOrToString) => void;
1139
+
1140
+ /**
1141
+ * Callback invoked when resolving a potential symlink
1142
+ *
1143
+ * @param error
1144
+ * @param resolved Absolute path to the resolved file
1145
+ */
1146
+ type realpathCallback = (err: Error | null, resolved?: string) => void;
1147
+
1148
+ /**
1149
+ * Callback invoked when reading and parsing a package.json file
1150
+ *
1151
+ * @param error
1152
+ * @param resolved Absolute path to the resolved file
1153
+ */
1154
+ type readPackageCallback = (err: Error | null, package?: Record<string, unknown>) => void;
1155
+
1156
+ /**
1157
+ * Synchronously resolve the module path string id, returning the result and throwing an error when id can't be resolved.
1158
+ *
1159
+ * @param id Identifier to resolve
1160
+ * @param options Options to use for resolving, optional.
1161
+ */
1162
+ declare function resolveSync(id: string, opts?: resolve.SyncOpts): string;
1163
+
1164
+ /**
1165
+ * Return whether a package is in core
1166
+ */
1167
+ declare function resolveIsCore(id: string): boolean | undefined;
1168
+
1169
+ // https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
1170
+ type JSONValue = string | number | boolean | JSONObject | JSONArray;
1171
+ interface JSONObject {
1172
+ [x: string]: JSONValue;
1173
+ }
1174
+ interface JSONArray extends Array<JSONValue> {}
1175
+
1176
+ /**
1177
+ * Asynchronously resolve the module path string id into cb(err, res [, pkg]), where pkg (if defined) is the data from package.json
1178
+ *
1179
+ * @param id Identifier to resolve
1180
+ * @param callback
1181
+ */
1182
+ declare function resolve(id: string, cb: resolveCallback): void;
1183
+
1184
+ /**
1185
+ * Asynchronously resolve the module path string id into cb(err, res [, pkg]), where pkg (if defined) is the data from package.json
1186
+ *
1187
+ * @param id Identifier to resolve
1188
+ * @param options Options to use for resolving, optional.
1189
+ * @param callback
1190
+ */
1191
+ declare function resolve(id: string, opts: resolve.AsyncOpts, cb: resolveCallback): void;
1192
+
1193
+ declare namespace resolve {
1194
+ export type PackageJSON = JSONObject;
1195
+
1196
+ interface Opts {
1197
+ /** directory to begin resolving from (defaults to __dirname) */
1198
+ basedir?: string | undefined;
1199
+ /** package.json data applicable to the module being loaded */
1200
+ package?: any;
1201
+ /** set to false to exclude node core modules (e.g. fs) from the search */
1202
+ includeCoreModules?: boolean | undefined;
1203
+ /** array of file extensions to search in order (defaults to ['.js']) */
1204
+ extensions?: string | readonly string[] | undefined;
1205
+ /** transform the parsed package.json contents before looking at the "main" field */
1206
+ packageFilter?: ((pkg: PackageJSON, pkgFile: string, dir: string) => PackageJSON) | undefined;
1207
+ /** transform a path within a package */
1208
+ pathFilter?: ((pkg: PackageJSON, path: string, relativePath: string) => string) | undefined;
1209
+ /** require.paths array to use if nothing is found on the normal node_modules recursive walk (probably don't use this) */
1210
+ paths?: string | readonly string[] | undefined;
1211
+ /** return the list of candidate paths where the packages sources may be found (probably don't use this) */
1212
+ packageIterator?:
1213
+ | ((request: string, start: string, getPackageCandidates: () => string[], opts: Opts) => string[])
1214
+ | undefined;
1215
+ /** directory (or directories) in which to recursively look for modules. (default to 'node_modules') */
1216
+ moduleDirectory?: string | readonly string[] | undefined;
1217
+ /**
1218
+ * if true, doesn't resolve `basedir` to real path before resolving.
1219
+ * This is the way Node resolves dependencies when executed with the --preserve-symlinks flag.
1220
+ *
1221
+ * Note: this property is currently true by default but it will be changed to false in the next major version because Node's resolution
1222
+ * algorithm does not preserve symlinks by default.
1223
+ */
1224
+ preserveSymlinks?: boolean | undefined;
1225
+ }
1226
+
1227
+ interface BaseAsyncOpts extends Opts {
1228
+ /** function to asynchronously test whether a file exists */
1229
+ isFile?: ((file: string, cb: existsCallback) => void) | undefined;
1230
+ /** function to asynchronously test whether a directory exists */
1231
+ isDirectory?: ((directory: string, cb: existsCallback) => void) | undefined;
1232
+ /** function to asynchronously resolve a potential symlink to its real path */
1233
+ realpath?: ((file: string, cb: realpathCallback) => void) | undefined;
1234
+ }
1235
+
1236
+ export type AsyncOpts =
1237
+ & BaseAsyncOpts
1238
+ & ({
1239
+ /** how to read files asynchronously (defaults to fs.readFile) */
1240
+ readFile?: ((file: string, cb: readFileCallback) => void) | undefined;
1241
+ /** function to asynchronously read and parse a package.json file */
1242
+ readPackage?: never | undefined;
1243
+ } | {
1244
+ /** how to read files asynchronously (defaults to fs.readFile) */
1245
+ readFile?: never | undefined;
1246
+ /** function to asynchronously read and parse a package.json file */
1247
+ readPackage?:
1248
+ | ((
1249
+ readFile: (file: string, cb: readFileCallback) => void,
1250
+ pkgfile: string,
1251
+ cb: readPackageCallback,
1252
+ ) => void)
1253
+ | undefined;
1254
+ });
1255
+
1256
+ interface BaseSyncOpts extends Opts {
1257
+ /** function to synchronously test whether a file exists */
1258
+ isFile?: ((file: string) => boolean) | undefined;
1259
+ /** function to synchronously test whether a directory exists */
1260
+ isDirectory?: ((directory: string) => boolean) | undefined;
1261
+ /** function to synchronously resolve a potential symlink to its real path */
1262
+ realpathSync?: ((file: string) => string) | undefined;
1263
+ }
1264
+
1265
+ export type SyncOpts =
1266
+ & BaseSyncOpts
1267
+ & ({
1268
+ /** how to read files synchronously (defaults to fs.readFileSync) */
1269
+ readFileSync?: ((file: string) => StringOrToString) | undefined;
1270
+ /** function to synchronously read and parse a package.json file */
1271
+ readPackageSync?: never | undefined;
1272
+ } | {
1273
+ /** how to read files synchronously (defaults to fs.readFileSync) */
1274
+ readFileSync?: never | undefined;
1275
+ /** function to synchronously read and parse a package.json file */
1276
+ readPackageSync?:
1277
+ | ((
1278
+ readFileSync: (file: string) => StringOrToString,
1279
+ pkgfile: string,
1280
+ ) => Record<string, unknown> | undefined)
1281
+ | undefined;
1282
+ });
1283
+
1284
+ export var sync: typeof resolveSync;
1285
+ export var isCore: typeof resolveIsCore;
1286
+ }
1287
+
1288
+ declare const supportedExtensions: readonly [".js", ".ts", ".jsx", ".tsx", ".mjs", ".mts", ".mtsx", ".cjs", ".cts", ".ctsx"];
1104
1289
  declare function getInterpretedFile(pathToFile: string): string | undefined;
1290
+ declare function resolveImport(id: string, options: resolve.SyncOpts): string;
1105
1291
 
1106
1292
  declare function serverRequire(filePath: string | string[]): Promise<any> | null;
1107
1293
 
@@ -1187,6 +1373,24 @@ declare function validateConfigurationFiles(configDir: string, cwd?: string): Pr
1187
1373
  /** Mimicking the satisfies operator until we can upgrade to TS4.9 */
1188
1374
  declare function satisfies<A>(): <T extends A>(x: T) => T;
1189
1375
 
1376
+ declare function getPrettier(): Promise<{
1377
+ resolveConfig: () => Promise<null>;
1378
+ format: (content: string) => string;
1379
+ } | {
1380
+ default: typeof prettier;
1381
+ format(source: string, options?: prettier.Options): Promise<string>;
1382
+ check(source: string, options?: prettier.Options): Promise<boolean>;
1383
+ formatWithCursor(source: string, options: prettier.CursorOptions): Promise<prettier.CursorResult>;
1384
+ resolveConfig(fileUrlOrPath: string | URL, options?: prettier.ResolveConfigOptions): Promise<prettier.Options | null>;
1385
+ resolveConfigFile(fileUrlOrPath?: string | URL): Promise<string | null>;
1386
+ clearConfigCache(): Promise<void>;
1387
+ getFileInfo(file: string | URL, options?: prettier.FileInfoOptions): Promise<prettier.FileInfoResult>;
1388
+ getSupportInfo(options?: prettier.SupportInfoOptions): Promise<prettier.SupportInfo>;
1389
+ doc: typeof prettier.doc;
1390
+ AstPath: typeof prettier.AstPath;
1391
+ version: string;
1392
+ util: typeof prettier.util;
1393
+ }>;
1190
1394
  /**
1191
1395
  * Format the content of a file using prettier. If prettier is not available in the user's project,
1192
1396
  * it will fallback to use editorconfig settings if available and formats the file by a
@@ -1305,4 +1509,7 @@ declare const safeResolveModule: ({ specifier, parent, extensions, }: {
1305
1509
  extensions?: string[];
1306
1510
  }) => string | undefined;
1307
1511
 
1308
- export { COMMON_ENV_VARS, DEFAULT_FILES_PATTERN, type FileOptions, FileSystemCache, HandledError, type InstallationMetadata, JsPackageManager, JsPackageManagerFactory, type PackageJsonInfo, type PackageJsonWithDepsAndDevDeps, type PackageJsonWithMaybeDeps, type PackageManagerName, type PackageMetadata, type RemoveAddonOptions, builderPackages, cache, checkAddonOrder, codeLog, commandLog, commonGlobOptions, createFileSystemCache, createLogStream, extractProperFrameworkName, extractProperRendererNameFromFramework, filterPresetsConfig, findConfigFile, findFilesUp, formatFileContent, frameworkPackages, frameworkToRenderer, getAddonNames, getAutoRefs, getBuilderOptions, getChars, getCoercedStorybookVersion, getConfigInfo, getDirectoryFromWorkingDir, getEnvConfig, getFrameworkName, getInterpretedFile, getPackageDetails, getPresets, getPreviewBodyTemplate, getPreviewHeadTemplate, getProjectRoot, getRefs, getRendererName, getStoryId, getStoryTitle, getStorybookConfiguration, getStorybookInfo, getSyncedStorybookAddons, globToRegexp, importMetaResolve, importModule, interpolate, invalidateProjectRootCache, isCI, isCorePackage, isPreservingSymlinks, isSatelliteAddon, loadAllPresets, loadEnvs, loadMainConfig, loadManagerOrAddonsFile, loadPreset, loadPreviewOrConfigFile, logConfig, nodePathsToArray, normalizeStories, normalizeStoriesEntry, normalizeStoryPath, optionalEnvToBoolean, paddedLog, parseList, posix, readTemplate, removeAddon, rendererPackages, resolveAddonName, resolvePackageDir, resolvePathInStorybookCache, safeResolveModule, satisfies, scanAndTransformFiles, serverRequire, stringifyEnvs, stringifyProcessEnvs, supportedExtensions, syncStorybookAddons, temporaryDirectory, temporaryFile, transformImportFiles, validateConfigurationFiles, validateFrameworkName, _default as versions };
1512
+ declare const groupBy: <K extends PropertyKey, T>(items: T[], keySelector: (item: T, index: number) => K) => Record<K, T[]>;
1513
+ declare function invariant(condition: unknown, message?: string | (() => string)): asserts condition;
1514
+
1515
+ export { COMMON_ENV_VARS, DEFAULT_FILES_PATTERN, type FileOptions, FileSystemCache, HandledError, type InstallationMetadata, type InterPresetOptions, JsPackageManager, JsPackageManagerFactory, type PackageJsonInfo, type PackageJsonWithDepsAndDevDeps, type PackageJsonWithMaybeDeps, type PackageManagerName, type PackageMetadata, type RemoveAddonOptions, builderPackages, cache, checkAddonOrder, codeLog, commandLog, commonGlobOptions, createFileSystemCache, createLogStream, extractProperFrameworkName, extractProperRendererNameFromFramework, filterPresetsConfig, findConfigFile, findFilesUp, formatFileContent, frameworkPackages, frameworkToRenderer, getAddonNames, getAutoRefs, getBuilderOptions, getChars, getCoercedStorybookVersion, getConfigInfo, getDirectoryFromWorkingDir, getEnvConfig, getFrameworkName, getInterpretedFile, getPackageDetails, getPresets, getPrettier, getPreviewBodyTemplate, getPreviewHeadTemplate, getProjectRoot, getRefs, getRendererName, getStoryId, getStoryTitle, getStorybookConfiguration, getStorybookInfo, getSyncedStorybookAddons, globToRegexp, groupBy, importMetaResolve, importModule, interpolate, invalidateProjectRootCache, invariant, isCI, isCorePackage, isPreservingSymlinks, isSatelliteAddon, loadAllPresets, loadEnvs, loadMainConfig, loadManagerOrAddonsFile, loadPreset, loadPreviewOrConfigFile, logConfig, nodePathsToArray, normalizeStories, normalizeStoriesEntry, normalizeStoryPath, optionalEnvToBoolean, paddedLog, parseList, posix, readTemplate, removeAddon, rendererPackages, resolveAddonName, resolveImport, resolvePackageDir, resolvePathInStorybookCache, safeResolveModule, satisfies, scanAndTransformFiles, serverRequire, stringifyEnvs, stringifyProcessEnvs, supportedExtensions, syncStorybookAddons, temporaryDirectory, temporaryFile, transformImportFiles, validateConfigurationFiles, validateFrameworkName, _default as versions };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_in4hyfgp7kn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_in4hyfgp7kn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_in4hyfgp7kn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_bqgqh4d46dd from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_in4hyfgp7kn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_in4hyfgp7kn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_in4hyfgp7kn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -43,6 +43,7 @@ import {
43
43
  getInterpretedFile,
44
44
  getPackageDetails,
45
45
  getPresets,
46
+ getPrettier,
46
47
  getPreviewBodyTemplate,
47
48
  getPreviewHeadTemplate,
48
49
  getRefs,
@@ -53,7 +54,9 @@ import {
53
54
  getStorybookInfo,
54
55
  getSyncedStorybookAddons,
55
56
  globToRegexp,
57
+ groupBy,
56
58
  interpolate,
59
+ invariant,
57
60
  isCorePackage,
58
61
  isPreservingSymlinks,
59
62
  isSatelliteAddon,
@@ -72,6 +75,7 @@ import {
72
75
  removeAddon,
73
76
  rendererPackages,
74
77
  resolveAddonName,
78
+ resolveImport,
75
79
  resolvePathInStorybookCache,
76
80
  satisfies,
77
81
  scanAndTransformFiles,
@@ -83,11 +87,11 @@ import {
83
87
  transformImportFiles,
84
88
  validateConfigurationFiles,
85
89
  validateFrameworkName
86
- } from "../_node-chunks/chunk-SCTKVDWR.js";
87
- import "../_node-chunks/chunk-4GE6Q4MX.js";
90
+ } from "../_node-chunks/chunk-NCHBSJG3.js";
91
+ import "../_node-chunks/chunk-TZ7GUTJ4.js";
88
92
  import {
89
93
  versions_default
90
- } from "../_node-chunks/chunk-ZRFYQ46H.js";
94
+ } from "../_node-chunks/chunk-LPNJ7PJY.js";
91
95
  import {
92
96
  findFilesUp,
93
97
  getProjectRoot,
@@ -99,22 +103,22 @@ import {
99
103
  optionalEnvToBoolean,
100
104
  stringifyEnvs,
101
105
  stringifyProcessEnvs
102
- } from "../_node-chunks/chunk-7TNUMFKR.js";
103
- import "../_node-chunks/chunk-TXHNWNH4.js";
104
- import "../_node-chunks/chunk-WNOSTIYP.js";
106
+ } from "../_node-chunks/chunk-B63HGQAB.js";
107
+ import "../_node-chunks/chunk-5KDXQR2J.js";
108
+ import "../_node-chunks/chunk-5X7FGASE.js";
105
109
  import {
106
110
  importMetaResolve,
107
111
  importModule,
108
112
  resolvePackageDir,
109
113
  safeResolveModule
110
- } from "../_node-chunks/chunk-6OAXYS5T.js";
111
- import "../_node-chunks/chunk-BYVQZ2HU.js";
112
- import "../_node-chunks/chunk-MF2PUEWG.js";
113
- import "../_node-chunks/chunk-VYRFXLRO.js";
114
- import "../_node-chunks/chunk-II4AFH3V.js";
115
- import "../_node-chunks/chunk-TUFWZUTO.js";
116
- import "../_node-chunks/chunk-QNUGJO6L.js";
117
- import "../_node-chunks/chunk-XCEBYOA4.js";
114
+ } from "../_node-chunks/chunk-TSKLBMF3.js";
115
+ import "../_node-chunks/chunk-6U2QTN2E.js";
116
+ import "../_node-chunks/chunk-NYXHMPY4.js";
117
+ import "../_node-chunks/chunk-JKWP2FKQ.js";
118
+ import "../_node-chunks/chunk-MPUDYIDW.js";
119
+ import "../_node-chunks/chunk-S32G4TCP.js";
120
+ import "../_node-chunks/chunk-2JHIUWIN.js";
121
+ import "../_node-chunks/chunk-T7KB265F.js";
118
122
  export {
119
123
  COMMON_ENV_VARS,
120
124
  DEFAULT_FILES_PATTERN,
@@ -150,6 +154,7 @@ export {
150
154
  getInterpretedFile,
151
155
  getPackageDetails,
152
156
  getPresets,
157
+ getPrettier,
153
158
  getPreviewBodyTemplate,
154
159
  getPreviewHeadTemplate,
155
160
  getProjectRoot,
@@ -161,10 +166,12 @@ export {
161
166
  getStorybookInfo,
162
167
  getSyncedStorybookAddons,
163
168
  globToRegexp,
169
+ groupBy,
164
170
  importMetaResolve,
165
171
  importModule,
166
172
  interpolate,
167
173
  invalidateProjectRootCache,
174
+ invariant,
168
175
  isCI,
169
176
  isCorePackage,
170
177
  isPreservingSymlinks,
@@ -188,6 +195,7 @@ export {
188
195
  removeAddon,
189
196
  rendererPackages,
190
197
  resolveAddonName,
198
+ resolveImport,
191
199
  resolvePackageDir,
192
200
  resolvePathInStorybookCache,
193
201
  safeResolveModule,
@@ -61,7 +61,7 @@ import {
61
61
  nameSpaceClassNames,
62
62
  resetComponents,
63
63
  withReset
64
- } from "../_browser-chunks/chunk-I74EUU5O.js";
64
+ } from "../_browser-chunks/chunk-B3S3ROIP.js";
65
65
  import {
66
66
  ActionBar,
67
67
  ScrollArea,