storybook 10.1.0-alpha.1 → 10.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{chunk-I74EUU5O.js → chunk-B3S3ROIP.js} +2 -1
- package/dist/_node-chunks/{builder-manager-6UBDPV7P.js → builder-manager-XRIDLU42.js} +12 -12
- package/dist/_node-chunks/camelcase-3IIGGJ6N.js +18 -0
- package/dist/_node-chunks/{chunk-QNUGJO6L.js → chunk-2L3QAN3W.js} +7 -7
- package/dist/_node-chunks/{chunk-TXHNWNH4.js → chunk-3AR5SJTX.js} +7 -7
- package/dist/_node-chunks/{chunk-DAMVKHAC.js → chunk-5RN3IJGF.js} +7 -7
- package/dist/_node-chunks/{chunk-RVE4UTVQ.js → chunk-6TX2TV3E.js} +12 -12
- package/dist/_node-chunks/{chunk-5SEHHENC.js → chunk-6WXUZSNC.js} +10 -10
- package/dist/_node-chunks/{chunk-6GD23U64.js → chunk-BAE27Z3H.js} +8 -8
- package/dist/_node-chunks/{chunk-MF2PUEWG.js → chunk-BB3ZKTWJ.js} +7 -7
- package/dist/_node-chunks/{chunk-FEOC7OX2.js → chunk-BYQZFXRF.js} +8 -8
- package/dist/_node-chunks/{chunk-WNOSTIYP.js → chunk-D43KJFPO.js} +7 -7
- package/dist/_node-chunks/{chunk-II4AFH3V.js → chunk-EKPHXLN6.js} +7 -7
- package/dist/_node-chunks/{chunk-ULWNTI6M.js → chunk-FI6CLUVL.js} +15 -15
- package/dist/_node-chunks/{chunk-3JCSHYSU.js → chunk-FWBIPR34.js} +7 -7
- package/dist/_node-chunks/{chunk-SCTKVDWR.js → chunk-GWSFLQQQ.js} +22 -21
- package/dist/_node-chunks/{chunk-J7N7PD5Q.js → chunk-HFHQNHRU.js} +9 -9
- package/dist/_node-chunks/{chunk-TUFWZUTO.js → chunk-IK3K67LJ.js} +7 -7
- package/dist/_node-chunks/{chunk-BCDHUXAJ.js → chunk-L5J4RBU5.js} +8 -8
- package/dist/_node-chunks/{chunk-BYVQZ2HU.js → chunk-LJPS53G5.js} +7 -7
- package/dist/_node-chunks/chunk-N3ZE2FCS.js +61 -0
- package/dist/_node-chunks/{chunk-XW7YMR7I.js → chunk-OM4TBMP7.js} +7 -7
- package/dist/_node-chunks/{chunk-VYRFXLRO.js → chunk-Q5JSLT56.js} +7 -7
- package/dist/_node-chunks/{chunk-3FPF5Y2F.js → chunk-QFET4WIW.js} +6 -6
- package/dist/_node-chunks/{chunk-LAU7VVPC.js → chunk-QS5MMNF7.js} +7 -7
- package/dist/_node-chunks/{chunk-CJHAP7SE.js → chunk-RIPSSVT6.js} +7 -7
- package/dist/_node-chunks/{chunk-GD2FXWDF.js → chunk-RQKELEE4.js} +7 -7
- package/dist/_node-chunks/{chunk-XCEBYOA4.js → chunk-RUJOX3JR.js} +6 -6
- package/dist/_node-chunks/{chunk-7TNUMFKR.js → chunk-S6RYOO4I.js} +9 -9
- package/dist/_node-chunks/chunk-U6VJQXTG.js +18 -0
- package/dist/_node-chunks/{chunk-FY7XZPLY.js → chunk-VEZ6C62C.js} +39 -24
- package/dist/_node-chunks/{chunk-X67VGZN4.js → chunk-WHOPLOGE.js} +7 -7
- package/dist/_node-chunks/{chunk-4GE6Q4MX.js → chunk-XVXUF5GE.js} +7 -7
- package/dist/_node-chunks/{chunk-6OAXYS5T.js → chunk-ZI3WVJBS.js} +8 -8
- package/dist/_node-chunks/{chunk-HORWITP7.js → chunk-ZN2EDLIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-2RIKHYCS.js → chunk-ZTHTAFLY.js} +12 -12
- package/dist/_node-chunks/{dist-APCKHSY3.js → dist-Q25SOSXX.js} +9 -9
- package/dist/_node-chunks/{globby-TSGXGDA2.js → globby-I54LIY47.js} +9 -9
- package/dist/_node-chunks/{lib-DZ5TVIU5.js → lib-KQD2WJWJ.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-Z6BYQCPN.js → mdx-N42X6CFJ-CT3A7SBK.js} +8 -8
- package/dist/_node-chunks/{p-limit-MLJNGG2K.js → p-limit-2NBKFARM.js} +7 -7
- package/dist/_node-chunks/{plugin-J3JI3ZKJ.js → plugin-2CCCBGGB.js} +10 -10
- package/dist/_node-chunks/{plugin-HJLCLGNT.js → plugin-RF5FICSG.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-3QHNTM5B.js → webpack-inject-mocker-runtime-plugin-RY56E77L.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-4Y3MWPJ6.js → webpack-mock-plugin-6VDFRSC4.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.js +21 -21
- package/dist/common/index.d.ts +21 -2
- package/dist/common/index.js +22 -20
- package/dist/components/index.js +1 -1
- package/dist/core-server/index.js +90 -42
- 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 +23 -23
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-tools/index.d.ts +8 -4
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +5 -4
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +2 -2
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -24
- package/dist/test/index.js +2 -2
- package/dist/types/index.d.ts +45 -5
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-WKJOVNPM.js +0 -18
- package/dist/_node-chunks/chunk-HM6B7FE5.js +0 -18
- package/dist/_node-chunks/chunk-ZRFYQ46H.js +0 -61
package/dist/common/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as storybook_internal_types from 'storybook/internal/types';
|
|
2
|
-
import {
|
|
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: {
|
|
@@ -1187,6 +1188,24 @@ declare function validateConfigurationFiles(configDir: string, cwd?: string): Pr
|
|
|
1187
1188
|
/** Mimicking the satisfies operator until we can upgrade to TS4.9 */
|
|
1188
1189
|
declare function satisfies<A>(): <T extends A>(x: T) => T;
|
|
1189
1190
|
|
|
1191
|
+
declare function getPrettier(): Promise<{
|
|
1192
|
+
resolveConfig: () => Promise<null>;
|
|
1193
|
+
format: (content: string) => string;
|
|
1194
|
+
} | {
|
|
1195
|
+
default: typeof prettier;
|
|
1196
|
+
format(source: string, options?: prettier.Options): Promise<string>;
|
|
1197
|
+
check(source: string, options?: prettier.Options): Promise<boolean>;
|
|
1198
|
+
formatWithCursor(source: string, options: prettier.CursorOptions): Promise<prettier.CursorResult>;
|
|
1199
|
+
resolveConfig(fileUrlOrPath: string | URL, options?: prettier.ResolveConfigOptions): Promise<prettier.Options | null>;
|
|
1200
|
+
resolveConfigFile(fileUrlOrPath?: string | URL): Promise<string | null>;
|
|
1201
|
+
clearConfigCache(): Promise<void>;
|
|
1202
|
+
getFileInfo(file: string | URL, options?: prettier.FileInfoOptions): Promise<prettier.FileInfoResult>;
|
|
1203
|
+
getSupportInfo(options?: prettier.SupportInfoOptions): Promise<prettier.SupportInfo>;
|
|
1204
|
+
doc: typeof prettier.doc;
|
|
1205
|
+
AstPath: typeof prettier.AstPath;
|
|
1206
|
+
version: string;
|
|
1207
|
+
util: typeof prettier.util;
|
|
1208
|
+
}>;
|
|
1190
1209
|
/**
|
|
1191
1210
|
* Format the content of a file using prettier. If prettier is not available in the user's project,
|
|
1192
1211
|
* it will fallback to use editorconfig settings if available and formats the file by a
|
|
@@ -1305,4 +1324,4 @@ declare const safeResolveModule: ({ specifier, parent, extensions, }: {
|
|
|
1305
1324
|
extensions?: string[];
|
|
1306
1325
|
}) => string | undefined;
|
|
1307
1326
|
|
|
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 };
|
|
1327
|
+
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, 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 };
|
package/dist/common/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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,
|
|
@@ -83,11 +84,11 @@ import {
|
|
|
83
84
|
transformImportFiles,
|
|
84
85
|
validateConfigurationFiles,
|
|
85
86
|
validateFrameworkName
|
|
86
|
-
} from "../_node-chunks/chunk-
|
|
87
|
-
import "../_node-chunks/chunk-
|
|
87
|
+
} from "../_node-chunks/chunk-GWSFLQQQ.js";
|
|
88
|
+
import "../_node-chunks/chunk-XVXUF5GE.js";
|
|
88
89
|
import {
|
|
89
90
|
versions_default
|
|
90
|
-
} from "../_node-chunks/chunk-
|
|
91
|
+
} from "../_node-chunks/chunk-N3ZE2FCS.js";
|
|
91
92
|
import {
|
|
92
93
|
findFilesUp,
|
|
93
94
|
getProjectRoot,
|
|
@@ -99,22 +100,22 @@ import {
|
|
|
99
100
|
optionalEnvToBoolean,
|
|
100
101
|
stringifyEnvs,
|
|
101
102
|
stringifyProcessEnvs
|
|
102
|
-
} from "../_node-chunks/chunk-
|
|
103
|
-
import "../_node-chunks/chunk-
|
|
104
|
-
import "../_node-chunks/chunk-
|
|
103
|
+
} from "../_node-chunks/chunk-S6RYOO4I.js";
|
|
104
|
+
import "../_node-chunks/chunk-3AR5SJTX.js";
|
|
105
|
+
import "../_node-chunks/chunk-D43KJFPO.js";
|
|
105
106
|
import {
|
|
106
107
|
importMetaResolve,
|
|
107
108
|
importModule,
|
|
108
109
|
resolvePackageDir,
|
|
109
110
|
safeResolveModule
|
|
110
|
-
} from "../_node-chunks/chunk-
|
|
111
|
-
import "../_node-chunks/chunk-
|
|
112
|
-
import "../_node-chunks/chunk-
|
|
113
|
-
import "../_node-chunks/chunk-
|
|
114
|
-
import "../_node-chunks/chunk-
|
|
115
|
-
import "../_node-chunks/chunk-
|
|
116
|
-
import "../_node-chunks/chunk-
|
|
117
|
-
import "../_node-chunks/chunk-
|
|
111
|
+
} from "../_node-chunks/chunk-ZI3WVJBS.js";
|
|
112
|
+
import "../_node-chunks/chunk-LJPS53G5.js";
|
|
113
|
+
import "../_node-chunks/chunk-BB3ZKTWJ.js";
|
|
114
|
+
import "../_node-chunks/chunk-Q5JSLT56.js";
|
|
115
|
+
import "../_node-chunks/chunk-EKPHXLN6.js";
|
|
116
|
+
import "../_node-chunks/chunk-IK3K67LJ.js";
|
|
117
|
+
import "../_node-chunks/chunk-2L3QAN3W.js";
|
|
118
|
+
import "../_node-chunks/chunk-RUJOX3JR.js";
|
|
118
119
|
export {
|
|
119
120
|
COMMON_ENV_VARS,
|
|
120
121
|
DEFAULT_FILES_PATTERN,
|
|
@@ -150,6 +151,7 @@ export {
|
|
|
150
151
|
getInterpretedFile,
|
|
151
152
|
getPackageDetails,
|
|
152
153
|
getPresets,
|
|
154
|
+
getPrettier,
|
|
153
155
|
getPreviewBodyTemplate,
|
|
154
156
|
getPreviewHeadTemplate,
|
|
155
157
|
getProjectRoot,
|
package/dist/components/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
detectPnp
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-6TX2TV3E.js";
|
|
15
15
|
import {
|
|
16
16
|
require_pretty_hrtime
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-ZN2EDLIJ.js";
|
|
18
18
|
import {
|
|
19
19
|
boxen,
|
|
20
20
|
require_string_width
|
|
21
|
-
} from "../_node-chunks/chunk-
|
|
22
|
-
import "../_node-chunks/chunk-
|
|
21
|
+
} from "../_node-chunks/chunk-BYQZFXRF.js";
|
|
22
|
+
import "../_node-chunks/chunk-5RN3IJGF.js";
|
|
23
23
|
import {
|
|
24
24
|
StatusTypeIdMismatchError,
|
|
25
25
|
StorybookError
|
|
26
|
-
} from "../_node-chunks/chunk-
|
|
26
|
+
} from "../_node-chunks/chunk-HFHQNHRU.js";
|
|
27
27
|
import {
|
|
28
28
|
getErrorLevel,
|
|
29
29
|
mapStaticDir,
|
|
@@ -31,61 +31,61 @@ import {
|
|
|
31
31
|
sendTelemetryError,
|
|
32
32
|
useStatics,
|
|
33
33
|
withTelemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-ZTHTAFLY.js";
|
|
35
|
+
import "../_node-chunks/chunk-RQKELEE4.js";
|
|
36
36
|
import {
|
|
37
37
|
telemetry
|
|
38
|
-
} from "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-FI6CLUVL.js";
|
|
39
|
+
import "../_node-chunks/chunk-U6VJQXTG.js";
|
|
40
40
|
import {
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
45
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-GWSFLQQQ.js";
|
|
43
|
+
import "../_node-chunks/chunk-XVXUF5GE.js";
|
|
44
|
+
import "../_node-chunks/chunk-N3ZE2FCS.js";
|
|
45
|
+
import "../_node-chunks/chunk-L5J4RBU5.js";
|
|
46
46
|
import {
|
|
47
47
|
optionalEnvToBoolean,
|
|
48
48
|
require_cross_spawn
|
|
49
|
-
} from "../_node-chunks/chunk-
|
|
49
|
+
} from "../_node-chunks/chunk-S6RYOO4I.js";
|
|
50
50
|
import {
|
|
51
51
|
up2 as up
|
|
52
|
-
} from "../_node-chunks/chunk-
|
|
53
|
-
import "../_node-chunks/chunk-
|
|
52
|
+
} from "../_node-chunks/chunk-3AR5SJTX.js";
|
|
53
|
+
import "../_node-chunks/chunk-OM4TBMP7.js";
|
|
54
54
|
import {
|
|
55
55
|
invariant
|
|
56
|
-
} from "../_node-chunks/chunk-
|
|
56
|
+
} from "../_node-chunks/chunk-D43KJFPO.js";
|
|
57
57
|
import {
|
|
58
58
|
importModule,
|
|
59
59
|
resolvePackageDir
|
|
60
|
-
} from "../_node-chunks/chunk-
|
|
60
|
+
} from "../_node-chunks/chunk-ZI3WVJBS.js";
|
|
61
61
|
import {
|
|
62
62
|
join,
|
|
63
63
|
relative,
|
|
64
64
|
resolve
|
|
65
|
-
} from "../_node-chunks/chunk-
|
|
65
|
+
} from "../_node-chunks/chunk-LJPS53G5.js";
|
|
66
66
|
import {
|
|
67
67
|
require_prompts
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
69
|
-
import "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-BB3ZKTWJ.js";
|
|
69
|
+
import "../_node-chunks/chunk-Q5JSLT56.js";
|
|
70
70
|
import {
|
|
71
71
|
slash
|
|
72
|
-
} from "../_node-chunks/chunk-
|
|
72
|
+
} from "../_node-chunks/chunk-EKPHXLN6.js";
|
|
73
73
|
import {
|
|
74
74
|
require_dist
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-IK3K67LJ.js";
|
|
76
76
|
import {
|
|
77
77
|
require_lib,
|
|
78
78
|
require_src
|
|
79
|
-
} from "../_node-chunks/chunk-
|
|
79
|
+
} from "../_node-chunks/chunk-QS5MMNF7.js";
|
|
80
80
|
import {
|
|
81
81
|
require_picocolors
|
|
82
|
-
} from "../_node-chunks/chunk-
|
|
82
|
+
} from "../_node-chunks/chunk-2L3QAN3W.js";
|
|
83
83
|
import {
|
|
84
84
|
__commonJS,
|
|
85
85
|
__name,
|
|
86
86
|
__require,
|
|
87
87
|
__toESM
|
|
88
|
-
} from "../_node-chunks/chunk-
|
|
88
|
+
} from "../_node-chunks/chunk-RUJOX3JR.js";
|
|
89
89
|
|
|
90
90
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
91
91
|
var require_filesystem = __commonJS({
|
|
@@ -2630,8 +2630,8 @@ var require_graceful_fs = __commonJS({
|
|
|
2630
2630
|
}
|
|
2631
2631
|
__name(readFile5, "readFile");
|
|
2632
2632
|
var fs$writeFile = fs7.writeFile;
|
|
2633
|
-
fs7.writeFile =
|
|
2634
|
-
function
|
|
2633
|
+
fs7.writeFile = writeFile5;
|
|
2634
|
+
function writeFile5(path2, data, options, cb) {
|
|
2635
2635
|
if (typeof options === "function")
|
|
2636
2636
|
cb = options, options = null;
|
|
2637
2637
|
return go$writeFile(path2, data, options, cb);
|
|
@@ -2647,7 +2647,7 @@ var require_graceful_fs = __commonJS({
|
|
|
2647
2647
|
}
|
|
2648
2648
|
__name(go$writeFile, "go$writeFile");
|
|
2649
2649
|
}
|
|
2650
|
-
__name(
|
|
2650
|
+
__name(writeFile5, "writeFile");
|
|
2651
2651
|
var fs$appendFile = fs7.appendFile;
|
|
2652
2652
|
if (fs$appendFile)
|
|
2653
2653
|
fs7.appendFile = appendFile;
|
|
@@ -8473,7 +8473,7 @@ var require_cli_table3 = __commonJS({
|
|
|
8473
8473
|
import { getPreviewHeadTemplate, getPreviewBodyTemplate } from "storybook/internal/common";
|
|
8474
8474
|
|
|
8475
8475
|
// src/core-server/build-static.ts
|
|
8476
|
-
import { cp as cp2, mkdir } from "node:fs/promises";
|
|
8476
|
+
import { cp as cp2, mkdir, writeFile as writeFile3 } from "node:fs/promises";
|
|
8477
8477
|
import { rm } from "node:fs/promises";
|
|
8478
8478
|
import {
|
|
8479
8479
|
loadAllPresets,
|
|
@@ -8719,7 +8719,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8719
8719
|
}
|
|
8720
8720
|
const pathToSubIndex = {};
|
|
8721
8721
|
const fullGlob = slash(join2(specifier.directory, specifier.files));
|
|
8722
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
8722
|
+
const { globby } = await import("../_node-chunks/globby-I54LIY47.js");
|
|
8723
8723
|
const files = await globby(fullGlob, {
|
|
8724
8724
|
absolute: true,
|
|
8725
8725
|
cwd: workingDir,
|
|
@@ -8977,7 +8977,7 @@ var StoryIndexGenerator = class _StoryIndexGenerator {
|
|
|
8977
8977
|
const normalizedPath = normalizeStoryPath(relativePath);
|
|
8978
8978
|
const importPath = slash(normalizedPath);
|
|
8979
8979
|
const content = await readFile(absolutePath, { encoding: "utf8" });
|
|
8980
|
-
const { analyze } = await import("../_node-chunks/dist-
|
|
8980
|
+
const { analyze } = await import("../_node-chunks/dist-Q25SOSXX.js");
|
|
8981
8981
|
const result = await analyze(content);
|
|
8982
8982
|
if (result.isTemplate) {
|
|
8983
8983
|
return false;
|
|
@@ -9320,7 +9320,7 @@ __name(print, "print");
|
|
|
9320
9320
|
// src/core-server/utils/get-builders.ts
|
|
9321
9321
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
9322
9322
|
async function getManagerBuilder() {
|
|
9323
|
-
return await import("../_node-chunks/builder-manager-
|
|
9323
|
+
return await import("../_node-chunks/builder-manager-XRIDLU42.js");
|
|
9324
9324
|
}
|
|
9325
9325
|
__name(getManagerBuilder, "getManagerBuilder");
|
|
9326
9326
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
@@ -9559,7 +9559,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
9559
9559
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
9560
9560
|
basename2(specifier.files)
|
|
9561
9561
|
);
|
|
9562
|
-
const { globby } = await import("../_node-chunks/globby-
|
|
9562
|
+
const { globby } = await import("../_node-chunks/globby-I54LIY47.js");
|
|
9563
9563
|
const addedFiles = await globby(slash(dirGlob), commonGlobOptions2(dirGlob));
|
|
9564
9564
|
addedFiles.forEach((filePath) => {
|
|
9565
9565
|
const fileImportPath = toImportPath(filePath);
|
|
@@ -9866,6 +9866,27 @@ async function buildStaticStandalone(options) {
|
|
|
9866
9866
|
initializedStoryIndexGenerator
|
|
9867
9867
|
)
|
|
9868
9868
|
);
|
|
9869
|
+
if (features?.experimentalComponentsManifest) {
|
|
9870
|
+
const componentManifestGenerator = await presets.apply(
|
|
9871
|
+
"experimental_componentManifestGenerator"
|
|
9872
|
+
);
|
|
9873
|
+
const indexGenerator = await initializedStoryIndexGenerator;
|
|
9874
|
+
if (componentManifestGenerator && indexGenerator) {
|
|
9875
|
+
try {
|
|
9876
|
+
const manifests = await componentManifestGenerator(
|
|
9877
|
+
indexGenerator
|
|
9878
|
+
);
|
|
9879
|
+
await mkdir(join(options.outputDir, "manifests"), { recursive: true });
|
|
9880
|
+
await writeFile3(
|
|
9881
|
+
join(options.outputDir, "manifests", "components.json"),
|
|
9882
|
+
JSON.stringify(manifests)
|
|
9883
|
+
);
|
|
9884
|
+
} catch (e) {
|
|
9885
|
+
logger4.error("Failed to generate manifests/components.json");
|
|
9886
|
+
logger4.error(e instanceof Error ? e : String(e));
|
|
9887
|
+
}
|
|
9888
|
+
}
|
|
9889
|
+
}
|
|
9869
9890
|
}
|
|
9870
9891
|
if (!core2?.disableProjectJson) {
|
|
9871
9892
|
effects.push(
|
|
@@ -11734,6 +11755,33 @@ async function storybookDevServer(options) {
|
|
|
11734
11755
|
await previewBuilder?.bail().catch();
|
|
11735
11756
|
throw indexError;
|
|
11736
11757
|
}
|
|
11758
|
+
const features = await options.presets.apply("features");
|
|
11759
|
+
if (features?.experimentalComponentsManifest) {
|
|
11760
|
+
app.use("/manifests/components.json", async (req, res) => {
|
|
11761
|
+
try {
|
|
11762
|
+
const componentManifestGenerator = await options.presets.apply(
|
|
11763
|
+
"experimental_componentManifestGenerator"
|
|
11764
|
+
);
|
|
11765
|
+
const indexGenerator = await initializedStoryIndexGenerator;
|
|
11766
|
+
if (componentManifestGenerator && indexGenerator) {
|
|
11767
|
+
const manifest = await componentManifestGenerator(
|
|
11768
|
+
indexGenerator
|
|
11769
|
+
);
|
|
11770
|
+
res.setHeader("Content-Type", "application/json");
|
|
11771
|
+
res.end(JSON.stringify(manifest));
|
|
11772
|
+
return;
|
|
11773
|
+
}
|
|
11774
|
+
res.statusCode = 400;
|
|
11775
|
+
res.end("No component manifest generator configured.");
|
|
11776
|
+
return;
|
|
11777
|
+
} catch (e) {
|
|
11778
|
+
logger8.error(e instanceof Error ? e : String(e));
|
|
11779
|
+
res.statusCode = 500;
|
|
11780
|
+
res.end(e instanceof Error ? e.toString() : String(e));
|
|
11781
|
+
return;
|
|
11782
|
+
}
|
|
11783
|
+
});
|
|
11784
|
+
}
|
|
11737
11785
|
doTelemetry(app, core2, initializedStoryIndexGenerator, options);
|
|
11738
11786
|
async function cancelTelemetry() {
|
|
11739
11787
|
const payload = { eventType: "dev" };
|
|
@@ -12269,7 +12317,7 @@ async function buildDevStandalone(options) {
|
|
|
12269
12317
|
__name(buildDevStandalone, "buildDevStandalone");
|
|
12270
12318
|
|
|
12271
12319
|
// src/core-server/build-index.ts
|
|
12272
|
-
import { writeFile as
|
|
12320
|
+
import { writeFile as writeFile4 } from "node:fs/promises";
|
|
12273
12321
|
import { normalizeStories as normalizeStories3 } from "storybook/internal/common";
|
|
12274
12322
|
import { logger as logger12 } from "storybook/internal/node-logger";
|
|
12275
12323
|
|
|
@@ -12358,7 +12406,7 @@ var buildIndex = /* @__PURE__ */ __name(async (options) => {
|
|
|
12358
12406
|
var buildIndexStandalone = /* @__PURE__ */ __name(async (options) => {
|
|
12359
12407
|
const index = await buildIndex(options);
|
|
12360
12408
|
logger12.info(`Writing index to ${options.outputFile}`);
|
|
12361
|
-
await
|
|
12409
|
+
await writeFile4(options.outputFile, JSON.stringify(index));
|
|
12362
12410
|
}, "buildIndexStandalone");
|
|
12363
12411
|
|
|
12364
12412
|
// src/core-server/standalone.ts
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
TooltipNote,
|
|
7
7
|
WithTooltip
|
|
8
|
-
} from "../../_browser-chunks/chunk-
|
|
8
|
+
} from "../../_browser-chunks/chunk-B3S3ROIP.js";
|
|
9
9
|
import "../../_browser-chunks/chunk-RNE2IUTB.js";
|
|
10
10
|
import "../../_browser-chunks/chunk-BOOOPFZF.js";
|
|
11
11
|
import "../../_browser-chunks/chunk-VAMFPZY3.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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-Q5JSLT56.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-EKPHXLN6.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-RUJOX3JR.js";
|
|
21
21
|
|
|
22
22
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
23
23
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,38 +12,38 @@ var require = CJS_COMPAT_NODE_MODULE_in4hyfgp7kn.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
parseStaticDir,
|
|
14
14
|
sendTelemetryError
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-ZTHTAFLY.js";
|
|
16
|
+
import "../../_node-chunks/chunk-RQKELEE4.js";
|
|
17
17
|
import {
|
|
18
18
|
getLastEvents,
|
|
19
19
|
getSessionId
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-OM4TBMP7.js";
|
|
21
21
|
import {
|
|
22
22
|
invariant
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-D43KJFPO.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-ZI3WVJBS.js";
|
|
27
27
|
import {
|
|
28
28
|
isAbsolute,
|
|
29
29
|
join
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
31
|
-
import "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-LJPS53G5.js";
|
|
31
|
+
import "../../_node-chunks/chunk-BB3ZKTWJ.js";
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-VEZ6C62C.js";
|
|
35
35
|
import {
|
|
36
36
|
require_dist
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-IK3K67LJ.js";
|
|
38
38
|
import {
|
|
39
39
|
require_picocolors
|
|
40
|
-
} from "../../_node-chunks/chunk-
|
|
40
|
+
} from "../../_node-chunks/chunk-2L3QAN3W.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__name,
|
|
44
44
|
__require,
|
|
45
45
|
__toESM
|
|
46
|
-
} from "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-RUJOX3JR.js";
|
|
47
47
|
|
|
48
48
|
// ../node_modules/shell-quote/quote.js
|
|
49
49
|
var require_quote = __commonJS({
|
|
@@ -703,7 +703,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
703
703
|
|
|
704
704
|
// src/core-server/utils/get-component-variable-name.ts
|
|
705
705
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
706
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
706
|
+
const camelCase = await import("../../_node-chunks/camelcase-3IIGGJ6N.js");
|
|
707
707
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
708
708
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
709
709
|
return sanitized;
|
|
@@ -1050,7 +1050,7 @@ async function searchFiles({
|
|
|
1050
1050
|
ignoredFiles = IGNORED_FILES,
|
|
1051
1051
|
fileExtensions = FILE_EXTENSIONS
|
|
1052
1052
|
}) {
|
|
1053
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1053
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-I54LIY47.js");
|
|
1054
1054
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1055
1055
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1056
1056
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1833,8 +1833,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1833
1833
|
if (!previewConfigPath) {
|
|
1834
1834
|
return existing;
|
|
1835
1835
|
}
|
|
1836
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1837
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1836
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-RF5FICSG.js");
|
|
1837
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-2CCCBGGB.js");
|
|
1838
1838
|
const coreOptions = await options.presets.apply("core");
|
|
1839
1839
|
return {
|
|
1840
1840
|
...existing,
|
|
@@ -1852,8 +1852,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1852
1852
|
if (!previewConfigPath) {
|
|
1853
1853
|
return config;
|
|
1854
1854
|
}
|
|
1855
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1856
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1855
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-6VDFRSC4.js");
|
|
1856
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-RY56E77L.js");
|
|
1857
1857
|
config.plugins = config.plugins || [];
|
|
1858
1858
|
config.module.rules.push({
|
|
1859
1859
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
rewriteSbMockImportCalls
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-BAE27Z3H.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-LJPS53G5.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-RUJOX3JR.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/presets/webpack/loaders/storybook-mock-transform-loader.ts
|
|
21
21
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_gimmxetvr7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_gimmxetvr7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_gimmxetvr7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_gimmxetvr7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_gimmxetvr7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_gimmxetvr7.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
|
getAutomockCode
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-WHOPLOGE.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-BAE27Z3H.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-LJPS53G5.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-RUJOX3JR.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|