storybook 10.1.0-beta.4 → 10.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{Color-FTG7SQDA.js → Color-TNPFN3FC.js} +2 -2
- package/dist/_browser-chunks/{WithTooltip-LMROHDUP.js → WithTooltip-IO6J4KBT.js} +2 -2
- package/dist/_node-chunks/{builder-manager-T3A7QLUO.js → builder-manager-OYPBAOYY.js} +13 -13
- package/dist/_node-chunks/{camelcase-WMMYRUH4.js → camelcase-KHLD4CBZ.js} +7 -7
- package/dist/_node-chunks/{chunk-TC7X5DN2.js → chunk-3YPPVXVV.js} +10 -10
- package/dist/_node-chunks/chunk-4JHERXHJ.js +61 -0
- package/dist/_node-chunks/{chunk-TBYOSPAV.js → chunk-4K5Y3HIQ.js} +6 -6
- package/dist/_node-chunks/{chunk-VW25O2YM.js → chunk-5VOKWTHJ.js} +6 -6
- package/dist/_node-chunks/{chunk-NORFPLB6.js → chunk-676RYYTC.js} +7 -7
- package/dist/_node-chunks/{chunk-C6RLDV2P.js → chunk-6O2EILDG.js} +8 -8
- package/dist/_node-chunks/{chunk-JYAXWHGH.js → chunk-6SDCYDUQ.js} +9 -9
- package/dist/_node-chunks/{chunk-HT32VUX7.js → chunk-AIU56TIK.js} +7 -7
- package/dist/_node-chunks/{chunk-RSJK2D7X.js → chunk-CDT6SGHG.js} +6 -6
- package/dist/_node-chunks/{chunk-EFTR6VSG.js → chunk-DCDE2LZP.js} +9 -9
- package/dist/_node-chunks/{chunk-TCLOOFNE.js → chunk-F67RSVRX.js} +7 -7
- package/dist/_node-chunks/{chunk-WGBDDI6W.js → chunk-GRWEJWC6.js} +10 -9
- package/dist/_node-chunks/{chunk-67VVNDJJ.js → chunk-IZ4CTLAY.js} +6 -6
- package/dist/_node-chunks/{chunk-KAVR7KJP.js → chunk-JKZ5HEMT.js} +36 -20
- package/dist/_node-chunks/{chunk-YZ3XRP4N.js → chunk-K43XPHKR.js} +6 -6
- package/dist/_node-chunks/{chunk-VN7SAKM4.js → chunk-KNKOGWDU.js} +6 -6
- package/dist/_node-chunks/chunk-KXDN7S7Y.js +23 -0
- package/dist/_node-chunks/chunk-L3S6HFZ7.js +18 -0
- package/dist/_node-chunks/{chunk-CSFSQ2I4.js → chunk-MKHH5E6J.js} +7 -7
- package/dist/_node-chunks/{chunk-CM44JL5Z.js → chunk-NHZRDKD5.js} +6 -6
- package/dist/_node-chunks/{chunk-KI6KY2ZN.js → chunk-OR5YQT2Y.js} +13 -13
- package/dist/_node-chunks/{chunk-5DEFF2GB.js → chunk-QWPDENGK.js} +7 -7
- package/dist/_node-chunks/{chunk-HDMHX5QM.js → chunk-R4N2FLEZ.js} +7 -7
- package/dist/_node-chunks/{chunk-EFN4RLWH.js → chunk-RNG6NQRW.js} +7 -7
- package/dist/_node-chunks/{chunk-YTTOTUWC.js → chunk-VZ6EDE7M.js} +6 -6
- package/dist/_node-chunks/{chunk-3MVB5IZX.js → chunk-WXWHNHZE.js} +16 -16
- package/dist/_node-chunks/{chunk-EJPOXNSG.js → chunk-XC4RJ4LY.js} +14 -21
- package/dist/_node-chunks/{chunk-PMZEJJNX.js → chunk-YOAOSHXI.js} +7 -7
- package/dist/_node-chunks/{dist-L6XLFQOU.js → dist-BS45SS3Y.js} +9 -9
- package/dist/_node-chunks/{globby-7IXLXFEA.js → globby-WIEUQD7O.js} +9 -9
- package/dist/_node-chunks/{lib-T5L2ZSAG.js → lib-UNDA723W.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-GOOKUTSA.js → mdx-N42X6CFJ-ABE6VGZM.js} +8 -8
- package/dist/_node-chunks/{p-limit-7GKATDEW.js → p-limit-XD6JNZJT.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.d.ts +3 -1
- package/dist/cli/index.js +18 -18
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +19 -19
- package/dist/components/index.d.ts +131 -117
- package/dist/components/index.js +514 -449
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-manager.js +2 -2
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +7207 -7142
- package/dist/manager/runtime.js +156 -232
- package/dist/manager-api/index.d.ts +178 -178
- 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-api/index.d.ts +67 -68
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-IQFN7VY4.js +0 -23
- package/dist/_node-chunks/chunk-K7U3BSTR.js +0 -61
- package/dist/_node-chunks/chunk-YN3C74EA.js +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
StatusTypeIdMismatchError
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-3YPPVXVV.js";
|
|
15
15
|
import {
|
|
16
16
|
debounce,
|
|
17
17
|
getErrorLevel,
|
|
@@ -21,66 +21,66 @@ import {
|
|
|
21
21
|
sendTelemetryError,
|
|
22
22
|
useStatics,
|
|
23
23
|
withTelemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-OR5YQT2Y.js";
|
|
25
|
+
import "../_node-chunks/chunk-RNG6NQRW.js";
|
|
26
26
|
import {
|
|
27
27
|
detectPnp
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-KXDN7S7Y.js";
|
|
29
29
|
import {
|
|
30
30
|
StorybookError
|
|
31
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-CDT6SGHG.js";
|
|
32
32
|
import {
|
|
33
33
|
telemetry
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-XC4RJ4LY.js";
|
|
35
|
+
import "../_node-chunks/chunk-L3S6HFZ7.js";
|
|
36
36
|
import {
|
|
37
37
|
optionalEnvToBoolean,
|
|
38
38
|
require_cross_spawn,
|
|
39
39
|
resolveImport,
|
|
40
40
|
supportedExtensions,
|
|
41
41
|
userOrAutoTitleFromSpecifier
|
|
42
|
-
} from "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
44
|
-
import "../_node-chunks/chunk-
|
|
42
|
+
} from "../_node-chunks/chunk-JKZ5HEMT.js";
|
|
43
|
+
import "../_node-chunks/chunk-4JHERXHJ.js";
|
|
44
|
+
import "../_node-chunks/chunk-AIU56TIK.js";
|
|
45
45
|
import {
|
|
46
46
|
require_pretty_hrtime
|
|
47
|
-
} from "../_node-chunks/chunk-
|
|
48
|
-
import "../_node-chunks/chunk-
|
|
49
|
-
import "../_node-chunks/chunk-
|
|
47
|
+
} from "../_node-chunks/chunk-GRWEJWC6.js";
|
|
48
|
+
import "../_node-chunks/chunk-IZ4CTLAY.js";
|
|
49
|
+
import "../_node-chunks/chunk-6SDCYDUQ.js";
|
|
50
50
|
import {
|
|
51
51
|
invariant,
|
|
52
52
|
up2 as up
|
|
53
|
-
} from "../_node-chunks/chunk-
|
|
53
|
+
} from "../_node-chunks/chunk-VZ6EDE7M.js";
|
|
54
54
|
import {
|
|
55
55
|
importModule,
|
|
56
56
|
resolvePackageDir
|
|
57
|
-
} from "../_node-chunks/chunk-
|
|
58
|
-
import "../_node-chunks/chunk-
|
|
57
|
+
} from "../_node-chunks/chunk-676RYYTC.js";
|
|
58
|
+
import "../_node-chunks/chunk-KNKOGWDU.js";
|
|
59
59
|
import {
|
|
60
60
|
dirname,
|
|
61
61
|
join,
|
|
62
62
|
relative,
|
|
63
63
|
resolve
|
|
64
|
-
} from "../_node-chunks/chunk-
|
|
65
|
-
import "../_node-chunks/chunk-
|
|
64
|
+
} from "../_node-chunks/chunk-4K5Y3HIQ.js";
|
|
65
|
+
import "../_node-chunks/chunk-MKHH5E6J.js";
|
|
66
66
|
import {
|
|
67
67
|
slash
|
|
68
|
-
} from "../_node-chunks/chunk-
|
|
68
|
+
} from "../_node-chunks/chunk-K43XPHKR.js";
|
|
69
69
|
import {
|
|
70
70
|
require_dist
|
|
71
|
-
} from "../_node-chunks/chunk-
|
|
71
|
+
} from "../_node-chunks/chunk-R4N2FLEZ.js";
|
|
72
72
|
import {
|
|
73
73
|
require_lib,
|
|
74
74
|
require_src
|
|
75
|
-
} from "../_node-chunks/chunk-
|
|
75
|
+
} from "../_node-chunks/chunk-YOAOSHXI.js";
|
|
76
76
|
import {
|
|
77
77
|
require_picocolors
|
|
78
|
-
} from "../_node-chunks/chunk-
|
|
78
|
+
} from "../_node-chunks/chunk-F67RSVRX.js";
|
|
79
79
|
import {
|
|
80
80
|
__commonJS,
|
|
81
81
|
__require,
|
|
82
82
|
__toESM
|
|
83
|
-
} from "../_node-chunks/chunk-
|
|
83
|
+
} from "../_node-chunks/chunk-5VOKWTHJ.js";
|
|
84
84
|
|
|
85
85
|
// ../node_modules/tsconfig-paths/lib/filesystem.js
|
|
86
86
|
var require_filesystem = __commonJS({
|
|
@@ -5147,7 +5147,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5147
5147
|
let cacheKey = this.getFindMatchingFilesCacheKey(specifier, workingDir, ignoreWarnings), cached = this.findMatchingFilesCache.get(cacheKey);
|
|
5148
5148
|
if (cached)
|
|
5149
5149
|
return cached;
|
|
5150
|
-
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-
|
|
5150
|
+
let pathToSubIndex = {}, globCwd = slash(resolve2(workingDir, specifier.directory)), globPattern = specifier.files, { globby } = await import("../_node-chunks/globby-WIEUQD7O.js"), files = await globby(globPattern, {
|
|
5151
5151
|
absolute: !0,
|
|
5152
5152
|
cwd: globCwd,
|
|
5153
5153
|
...commonGlobOptions(globPattern)
|
|
@@ -5336,7 +5336,7 @@ var makeAbsolute = (otherImport, normalizedPath, workingDir) => otherImport.star
|
|
|
5336
5336
|
async extractDocs(specifier, absolutePath, projectTags = []) {
|
|
5337
5337
|
let relativePath = relative2(this.options.workingDir, absolutePath);
|
|
5338
5338
|
try {
|
|
5339
|
-
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-
|
|
5339
|
+
let normalizedPath = normalizeStoryPath(relativePath), importPath = slash(normalizedPath), content = await readFile(absolutePath, { encoding: "utf8" }), { analyze } = await import("../_node-chunks/dist-BS45SS3Y.js"), result = await analyze(content);
|
|
5340
5340
|
if (result.isTemplate)
|
|
5341
5341
|
return !1;
|
|
5342
5342
|
let absoluteImports = result.imports.map(
|
|
@@ -5596,7 +5596,7 @@ function print(p) {
|
|
|
5596
5596
|
// src/core-server/utils/get-builders.ts
|
|
5597
5597
|
import { MissingBuilderError } from "storybook/internal/server-errors";
|
|
5598
5598
|
async function getManagerBuilder() {
|
|
5599
|
-
return await import("../_node-chunks/builder-manager-
|
|
5599
|
+
return await import("../_node-chunks/builder-manager-OYPBAOYY.js");
|
|
5600
5600
|
}
|
|
5601
5601
|
async function getPreviewBuilder(resolvedPreviewBuilder) {
|
|
5602
5602
|
return await importModule(resolvedPreviewBuilder);
|
|
@@ -5696,7 +5696,7 @@ function watchStorySpecifiers(specifiers, options, onInvalidate) {
|
|
|
5696
5696
|
// files can be e.g. '**/foo/*/*.js' so we just want the last bit,
|
|
5697
5697
|
// because the directory could already be within the files part (e.g. './x/foo/bar')
|
|
5698
5698
|
basename2(specifier.files)
|
|
5699
|
-
), { globby } = await import("../_node-chunks/globby-
|
|
5699
|
+
), { globby } = await import("../_node-chunks/globby-WIEUQD7O.js");
|
|
5700
5700
|
(await globby(slash(dirGlob), commonGlobOptions2(dirGlob))).forEach((filePath) => {
|
|
5701
5701
|
let fileImportPath = toImportPath(filePath);
|
|
5702
5702
|
specifier.importPathMatcher.exec(fileImportPath) && onInvalidate(specifier, fileImportPath, removed);
|
|
@@ -2766,7 +2766,7 @@ var FilesControl = ({
|
|
|
2766
2766
|
};
|
|
2767
2767
|
|
|
2768
2768
|
// ../addons/docs/src/blocks/controls/index.tsx
|
|
2769
|
-
var LazyColorControl = lazy(() => import("../../_browser-chunks/Color-
|
|
2769
|
+
var LazyColorControl = lazy(() => import("../../_browser-chunks/Color-TNPFN3FC.js")), ColorControl = (props) => React16.createElement(Suspense, { fallback: React16.createElement("div", null) }, React16.createElement(LazyColorControl, { ...props }));
|
|
2770
2770
|
|
|
2771
2771
|
// ../addons/docs/src/blocks/components/ArgsTable/ArgControl.tsx
|
|
2772
2772
|
var Controls2 = {
|
|
@@ -3271,6 +3271,7 @@ var TableWrapper2 = styled19.table(({ theme: theme3, compact, inAddonPanel, inTa
|
|
|
3271
3271
|
},
|
|
3272
3272
|
// Makes border alignment consistent w/other DocBlocks
|
|
3273
3273
|
marginInline: inAddonPanel || inTabPanel ? 0 : 1,
|
|
3274
|
+
paddingInline: inTabPanel ? 3 : 0,
|
|
3274
3275
|
tbody: {
|
|
3275
3276
|
// Safari doesn't love shadows on tbody so we need to use a shadow filter. In order to do this,
|
|
3276
3277
|
// the table cells all need to be solid so they have a background color applied.
|
|
@@ -6686,7 +6687,6 @@ var BackgroundTool = memo5(function() {
|
|
|
6686
6687
|
);
|
|
6687
6688
|
}), Pure = memo5(function(props) {
|
|
6688
6689
|
let {
|
|
6689
|
-
item,
|
|
6690
6690
|
length,
|
|
6691
6691
|
updateGlobals,
|
|
6692
6692
|
backgroundMap,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.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-MKHH5E6J.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-K43XPHKR.js";
|
|
18
|
+
import "../../_node-chunks/chunk-5VOKWTHJ.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
21
21
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-WXWHNHZE.js";
|
|
13
13
|
import {
|
|
14
14
|
parseStaticDir,
|
|
15
15
|
sendTelemetryError,
|
|
16
16
|
throttle
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
20
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-OR5YQT2Y.js";
|
|
18
|
+
import "../../_node-chunks/chunk-RNG6NQRW.js";
|
|
19
|
+
import "../../_node-chunks/chunk-KXDN7S7Y.js";
|
|
20
|
+
import "../../_node-chunks/chunk-CDT6SGHG.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-IZ4CTLAY.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-6SDCYDUQ.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-VZ6EDE7M.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-676RYYTC.js";
|
|
34
|
+
import "../../_node-chunks/chunk-KNKOGWDU.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-4K5Y3HIQ.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-6O2EILDG.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
-
import "../../_node-chunks/chunk-
|
|
46
|
-
import "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-R4N2FLEZ.js";
|
|
45
|
+
import "../../_node-chunks/chunk-DCDE2LZP.js";
|
|
46
|
+
import "../../_node-chunks/chunk-YOAOSHXI.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-F67RSVRX.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-5VOKWTHJ.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/shell-quote/quote.js
|
|
57
57
|
var require_quote = __commonJS({
|
|
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
518
518
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
519
519
|
|
|
520
520
|
// src/core-server/utils/get-component-variable-name.ts
|
|
521
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
521
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-KHLD4CBZ.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
522
522
|
|
|
523
523
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
524
524
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -783,7 +783,7 @@ async function searchFiles({
|
|
|
783
783
|
ignoredFiles = IGNORED_FILES,
|
|
784
784
|
fileExtensions = FILE_EXTENSIONS
|
|
785
785
|
}) {
|
|
786
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
786
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-WIEUQD7O.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
787
787
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
788
788
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
789
789
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_3knniutvqo4 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_3knniutvqo4 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_3knniutvqo4 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_3knniutvqo4.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_3knniutvqo4.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_3knniutvqo4.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-6O2EILDG.js";
|
|
42
|
+
import "../_node-chunks/chunk-R4N2FLEZ.js";
|
|
43
|
+
import "../_node-chunks/chunk-5VOKWTHJ.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|