storybook 10.1.0-alpha.0 → 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-OTO33TIA.js → builder-manager-XRIDLU42.js} +12 -12
- package/dist/_node-chunks/camelcase-3IIGGJ6N.js +18 -0
- package/dist/_node-chunks/{chunk-27W6KHQ2.js → chunk-2L3QAN3W.js} +7 -7
- package/dist/_node-chunks/{chunk-XI2VU32X.js → chunk-3AR5SJTX.js} +7 -7
- package/dist/_node-chunks/{chunk-SV7ZHC5Z.js → chunk-5RN3IJGF.js} +7 -7
- package/dist/_node-chunks/{chunk-LOF6SIRE.js → chunk-6TX2TV3E.js} +12 -12
- package/dist/_node-chunks/{chunk-FWW4IJCM.js → chunk-6WXUZSNC.js} +10 -10
- package/dist/_node-chunks/{chunk-O4KUWXD6.js → chunk-BAE27Z3H.js} +8 -8
- package/dist/_node-chunks/{chunk-3ICYWJ3N.js → chunk-BB3ZKTWJ.js} +7 -7
- package/dist/_node-chunks/{chunk-2WZNP46P.js → chunk-BYQZFXRF.js} +8 -8
- package/dist/_node-chunks/{chunk-FDDQACQD.js → chunk-D43KJFPO.js} +7 -7
- package/dist/_node-chunks/{chunk-L5WAZZY3.js → chunk-EKPHXLN6.js} +7 -7
- package/dist/_node-chunks/{chunk-A6T2YN75.js → chunk-FI6CLUVL.js} +15 -15
- package/dist/_node-chunks/{chunk-NTB3C5XQ.js → chunk-FWBIPR34.js} +7 -7
- package/dist/_node-chunks/{chunk-ZFRTME73.js → chunk-GWSFLQQQ.js} +22 -21
- package/dist/_node-chunks/{chunk-NTAOH664.js → chunk-HFHQNHRU.js} +9 -9
- package/dist/_node-chunks/{chunk-HYNQ2IX4.js → chunk-IK3K67LJ.js} +7 -7
- package/dist/_node-chunks/{chunk-RKANIOER.js → chunk-L5J4RBU5.js} +8 -8
- package/dist/_node-chunks/{chunk-HHTKRAIE.js → chunk-LJPS53G5.js} +25 -7
- package/dist/_node-chunks/chunk-N3ZE2FCS.js +61 -0
- package/dist/_node-chunks/{chunk-HIGKW2KB.js → chunk-OM4TBMP7.js} +7 -7
- package/dist/_node-chunks/{chunk-Q4CZSEBO.js → chunk-Q5JSLT56.js} +7 -7
- package/dist/_node-chunks/{chunk-6M2IPO4E.js → chunk-QFET4WIW.js} +6 -6
- package/dist/_node-chunks/{chunk-YS6OLN4N.js → chunk-QS5MMNF7.js} +7 -7
- package/dist/_node-chunks/{chunk-AITYHU22.js → chunk-RIPSSVT6.js} +7 -7
- package/dist/_node-chunks/{chunk-6C7OBGYG.js → chunk-RQKELEE4.js} +7 -7
- package/dist/_node-chunks/{chunk-VL6WDGIU.js → chunk-RUJOX3JR.js} +6 -6
- package/dist/_node-chunks/{chunk-RR6Q3657.js → chunk-S6RYOO4I.js} +9 -9
- package/dist/_node-chunks/chunk-U6VJQXTG.js +18 -0
- package/dist/_node-chunks/{chunk-Q6QFW2Y7.js → chunk-VEZ6C62C.js} +39 -24
- package/dist/_node-chunks/{chunk-EFJRT54D.js → chunk-WHOPLOGE.js} +7 -7
- package/dist/_node-chunks/{chunk-OYGAWJQE.js → chunk-XVXUF5GE.js} +7 -7
- package/dist/_node-chunks/{chunk-O3OJUFKU.js → chunk-ZI3WVJBS.js} +8 -8
- package/dist/_node-chunks/{chunk-QOI32MCO.js → chunk-ZN2EDLIJ.js} +7 -7
- package/dist/_node-chunks/{chunk-VW3GGAQI.js → chunk-ZTHTAFLY.js} +12 -12
- package/dist/_node-chunks/{dist-BA2GAJJB.js → dist-Q25SOSXX.js} +9 -9
- package/dist/_node-chunks/{globby-4HAI4KJH.js → globby-I54LIY47.js} +9 -9
- package/dist/_node-chunks/{lib-ITRY6RT7.js → lib-KQD2WJWJ.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-7PULFTZI.js → mdx-N42X6CFJ-CT3A7SBK.js} +8 -8
- package/dist/_node-chunks/{p-limit-63FY4KTG.js → p-limit-2NBKFARM.js} +7 -7
- package/dist/_node-chunks/{plugin-JEBMTDIB.js → plugin-2CCCBGGB.js} +10 -10
- package/dist/_node-chunks/{plugin-2BSKCSMA.js → plugin-RF5FICSG.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-AZ7YPMMD.js → webpack-inject-mocker-runtime-plugin-RY56E77L.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-7IF6PA2O.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 +150 -103
- 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 +27 -27
- 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/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-HURSU73A.js +0 -18
- package/dist/_node-chunks/chunk-P7ZABCRS.js +0 -18
- package/dist/_node-chunks/chunk-QWBT2XCX.js +0 -61
|
@@ -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,37 +12,38 @@ var require = CJS_COMPAT_NODE_MODULE_viqf41uklqm.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
|
+
isAbsolute,
|
|
28
29
|
join
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
-
import "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-LJPS53G5.js";
|
|
31
|
+
import "../../_node-chunks/chunk-BB3ZKTWJ.js";
|
|
31
32
|
import {
|
|
32
33
|
loadConfig
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-VEZ6C62C.js";
|
|
34
35
|
import {
|
|
35
36
|
require_dist
|
|
36
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-IK3K67LJ.js";
|
|
37
38
|
import {
|
|
38
39
|
require_picocolors
|
|
39
|
-
} from "../../_node-chunks/chunk-
|
|
40
|
+
} from "../../_node-chunks/chunk-2L3QAN3W.js";
|
|
40
41
|
import {
|
|
41
42
|
__commonJS,
|
|
42
43
|
__name,
|
|
43
44
|
__require,
|
|
44
45
|
__toESM
|
|
45
|
-
} from "../../_node-chunks/chunk-
|
|
46
|
+
} from "../../_node-chunks/chunk-RUJOX3JR.js";
|
|
46
47
|
|
|
47
48
|
// ../node_modules/shell-quote/quote.js
|
|
48
49
|
var require_quote = __commonJS({
|
|
@@ -658,7 +659,6 @@ var require_launch_editor = __commonJS({
|
|
|
658
659
|
// src/core-server/presets/common-preset.ts
|
|
659
660
|
import { existsSync as existsSync3 } from "node:fs";
|
|
660
661
|
import { readFile as readFile3 } from "node:fs/promises";
|
|
661
|
-
import { isAbsolute, join as join5 } from "node:path";
|
|
662
662
|
import { fileURLToPath } from "node:url";
|
|
663
663
|
import { optionalEnvToBoolean } from "storybook/internal/common";
|
|
664
664
|
import {
|
|
@@ -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);
|
|
@@ -1675,8 +1675,8 @@ var favicon = /* @__PURE__ */ __name(async (value, options) => {
|
|
|
1675
1675
|
results.push(staticPath);
|
|
1676
1676
|
}
|
|
1677
1677
|
if (targetEndpoint === "/") {
|
|
1678
|
-
results.push(
|
|
1679
|
-
results.push(
|
|
1678
|
+
results.push(join(staticPath, "favicon.svg"));
|
|
1679
|
+
results.push(join(staticPath, "favicon.ico"));
|
|
1680
1680
|
}
|
|
1681
1681
|
return results.filter((path) => existsSync3(path));
|
|
1682
1682
|
}).reduce((l1, l2) => l1.concat(l2), []);
|
|
@@ -1793,7 +1793,7 @@ var frameworkOptions = /* @__PURE__ */ __name(async (_, options) => {
|
|
|
1793
1793
|
return config.options;
|
|
1794
1794
|
}, "frameworkOptions");
|
|
1795
1795
|
var managerHead = /* @__PURE__ */ __name(async (_, options) => {
|
|
1796
|
-
const location =
|
|
1796
|
+
const location = join(options.configDir, "manager-head.html");
|
|
1797
1797
|
if (existsSync3(location)) {
|
|
1798
1798
|
const contents = readFile3(location, { encoding: "utf8" });
|
|
1799
1799
|
const interpolations = options.presets.apply("env");
|
|
@@ -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) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { types, NodePath, GeneratorOptions, generate, RecastOptions } from 'storybook/internal/babel';
|
|
2
2
|
export { babelParse } from 'storybook/internal/babel';
|
|
3
|
-
import { ComponentAnnotations, StoryAnnotations, IndexInputStats, IndexedCSFFile, IndexInput, StoriesEntry, Tag } from 'storybook/internal/types';
|
|
3
|
+
import { ComponentAnnotations, StoryAnnotations, IndexInputStats, IndexedCSFFile, IndexInput, CsfEnricher, StoriesEntry, Tag } from 'storybook/internal/types';
|
|
4
4
|
|
|
5
5
|
interface PrintResultType {
|
|
6
6
|
code: string;
|
|
@@ -13,7 +13,7 @@ interface BabelFile {
|
|
|
13
13
|
opts: any;
|
|
14
14
|
hub: any;
|
|
15
15
|
metadata: object;
|
|
16
|
-
path:
|
|
16
|
+
path: NodePath<types.Program>;
|
|
17
17
|
scope: any;
|
|
18
18
|
inputMap: object | null;
|
|
19
19
|
code: string;
|
|
@@ -64,13 +64,16 @@ declare class CsfFile {
|
|
|
64
64
|
_file: BabelFile;
|
|
65
65
|
_options: CsfOptions;
|
|
66
66
|
_rawComponentPath?: string;
|
|
67
|
+
_componentImportSpecifier?: types.ImportSpecifier | types.ImportDefaultSpecifier;
|
|
67
68
|
_meta?: StaticMeta;
|
|
68
69
|
_stories: Record<string, StaticStory>;
|
|
69
70
|
_metaAnnotations: Record<string, types.Node>;
|
|
70
71
|
_storyExports: Record<string, types.VariableDeclarator | types.FunctionDeclaration>;
|
|
72
|
+
_storyDeclarationPath: Record<string, NodePath<types.VariableDeclarator | types.FunctionDeclaration>>;
|
|
71
73
|
_storyPaths: Record<string, NodePath<types.ExportNamedDeclaration>>;
|
|
72
74
|
_metaStatement: types.Statement | undefined;
|
|
73
|
-
|
|
75
|
+
_metaStatementPath: NodePath<types.Statement> | undefined;
|
|
76
|
+
_metaNode: types.ObjectExpression | undefined;
|
|
74
77
|
_metaPath: NodePath<types.ExportDefaultDeclaration> | undefined;
|
|
75
78
|
_metaVariableName: string | undefined;
|
|
76
79
|
_metaIsFactory: boolean | undefined;
|
|
@@ -263,10 +266,11 @@ declare const getStorySortParameter: (previewCode: string) => any;
|
|
|
263
266
|
interface EnrichCsfOptions {
|
|
264
267
|
disableSource?: boolean;
|
|
265
268
|
disableDescription?: boolean;
|
|
269
|
+
enrichCsf?: CsfEnricher;
|
|
266
270
|
}
|
|
267
271
|
declare const enrichCsfStory: (csf: CsfFile, csfSource: CsfFile, key: string, options?: EnrichCsfOptions) => void;
|
|
268
272
|
declare const enrichCsfMeta: (csf: CsfFile, csfSource: CsfFile, options?: EnrichCsfOptions) => void;
|
|
269
|
-
declare const enrichCsf: (csf: CsfFile, csfSource: CsfFile, options?: EnrichCsfOptions) => void
|
|
273
|
+
declare const enrichCsf: (csf: CsfFile, csfSource: CsfFile, options?: EnrichCsfOptions) => Promise<void>;
|
|
270
274
|
declare const extractSource: (node: types.Node) => string;
|
|
271
275
|
declare const extractDescription: (node?: types.Node) => string;
|
|
272
276
|
|
package/dist/csf-tools/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
|
|
@@ -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-VEZ6C62C.js";
|
|
42
|
+
import "../_node-chunks/chunk-IK3K67LJ.js";
|
|
43
|
+
import "../_node-chunks/chunk-RUJOX3JR.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -26135,9 +26135,9 @@ var require_min_indent = __commonJS({
|
|
|
26135
26135
|
}
|
|
26136
26136
|
});
|
|
26137
26137
|
|
|
26138
|
-
// ../node_modules/strip-indent/index.js
|
|
26138
|
+
// ../node_modules/redent/node_modules/strip-indent/index.js
|
|
26139
26139
|
var require_strip_indent = __commonJS({
|
|
26140
|
-
"../node_modules/strip-indent/index.js"(exports, module2) {
|
|
26140
|
+
"../node_modules/redent/node_modules/strip-indent/index.js"(exports, module2) {
|
|
26141
26141
|
"use strict";
|
|
26142
26142
|
var minIndent = require_min_indent();
|
|
26143
26143
|
module2.exports = (string) => {
|
|
@@ -77949,7 +77949,8 @@ var Tabs = (0, import_react53.memo)(
|
|
|
77949
77949
|
e2.preventDefault();
|
|
77950
77950
|
actions.onSelect(id);
|
|
77951
77951
|
},
|
|
77952
|
-
role: "tab"
|
|
77952
|
+
role: "tab",
|
|
77953
|
+
"aria-selected": active
|
|
77953
77954
|
},
|
|
77954
77955
|
typeof title === "function" ? import_react53.default.createElement("title", null) : title
|
|
77955
77956
|
);
|
|
@@ -82702,7 +82703,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
82702
82703
|
var import_semver = __toESM(require_semver2(), 1);
|
|
82703
82704
|
|
|
82704
82705
|
// src/manager-api/version.ts
|
|
82705
|
-
var version = "10.1.0-alpha.
|
|
82706
|
+
var version = "10.1.0-alpha.2";
|
|
82706
82707
|
|
|
82707
82708
|
// src/manager-api/modules/versions.ts
|
|
82708
82709
|
var { VERSIONCHECK } = scope;
|
|
@@ -393,7 +393,7 @@ interface SubState$5 {
|
|
|
393
393
|
|
|
394
394
|
declare const isMacLike: () => boolean;
|
|
395
395
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
396
|
-
declare const controlOrMetaKey: () => "
|
|
396
|
+
declare const controlOrMetaKey: () => "meta" | "control";
|
|
397
397
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
398
398
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
399
399
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|
|
@@ -3262,7 +3262,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3262
3262
|
import semver from "semver";
|
|
3263
3263
|
|
|
3264
3264
|
// src/manager-api/version.ts
|
|
3265
|
-
var version = "10.1.0-alpha.
|
|
3265
|
+
var version = "10.1.0-alpha.2";
|
|
3266
3266
|
|
|
3267
3267
|
// src/manager-api/modules/versions.ts
|
|
3268
3268
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,43 +1,43 @@
|
|
|
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
|
require_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-ZN2EDLIJ.js";
|
|
15
15
|
import {
|
|
16
16
|
ansi_styles_default,
|
|
17
17
|
boxen,
|
|
18
18
|
require_string_width,
|
|
19
19
|
stripAnsi
|
|
20
|
-
} from "../_node-chunks/chunk-
|
|
21
|
-
import "../_node-chunks/chunk-
|
|
20
|
+
} from "../_node-chunks/chunk-BYQZFXRF.js";
|
|
21
|
+
import "../_node-chunks/chunk-5RN3IJGF.js";
|
|
22
22
|
import {
|
|
23
23
|
execaSync,
|
|
24
24
|
optionalEnvToBoolean
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-S6RYOO4I.js";
|
|
26
|
+
import "../_node-chunks/chunk-3AR5SJTX.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-BB3ZKTWJ.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-2L3QAN3W.js";
|
|
34
34
|
import {
|
|
35
35
|
__commonJS,
|
|
36
36
|
__export,
|
|
37
37
|
__name,
|
|
38
38
|
__require,
|
|
39
39
|
__toESM
|
|
40
|
-
} from "../_node-chunks/chunk-
|
|
40
|
+
} from "../_node-chunks/chunk-RUJOX3JR.js";
|
|
41
41
|
|
|
42
42
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
43
43
|
var require_tracker_base = __commonJS({
|
package/dist/preview/runtime.js
CHANGED
|
@@ -113,9 +113,9 @@ var require_min_indent = __commonJS({
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
// ../node_modules/strip-indent/index.js
|
|
116
|
+
// ../node_modules/redent/node_modules/strip-indent/index.js
|
|
117
117
|
var require_strip_indent = __commonJS({
|
|
118
|
-
"../node_modules/strip-indent/index.js"(exports, module2) {
|
|
118
|
+
"../node_modules/redent/node_modules/strip-indent/index.js"(exports, module2) {
|
|
119
119
|
"use strict";
|
|
120
120
|
var minIndent = require_min_indent();
|
|
121
121
|
module2.exports = (string) => {
|
package/dist/server-errors.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
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
WebpackCompilationError,
|
|
40
40
|
WebpackInvocationError,
|
|
41
41
|
WebpackMissingStatsError
|
|
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-HFHQNHRU.js";
|
|
43
|
+
import "./_node-chunks/chunk-IK3K67LJ.js";
|
|
44
|
+
import "./_node-chunks/chunk-2L3QAN3W.js";
|
|
45
|
+
import "./_node-chunks/chunk-RUJOX3JR.js";
|
|
46
46
|
export {
|
|
47
47
|
AngularLegacyBuildOptionsError,
|
|
48
48
|
Category,
|
package/dist/telemetry/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
|
|
@@ -21,26 +21,26 @@ import {
|
|
|
21
21
|
sanitizeAddonName,
|
|
22
22
|
sanitizeError,
|
|
23
23
|
telemetry
|
|
24
|
-
} from "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
24
|
+
} from "../_node-chunks/chunk-FI6CLUVL.js";
|
|
25
|
+
import "../_node-chunks/chunk-U6VJQXTG.js";
|
|
26
|
+
import "../_node-chunks/chunk-GWSFLQQQ.js";
|
|
27
|
+
import "../_node-chunks/chunk-XVXUF5GE.js";
|
|
28
|
+
import "../_node-chunks/chunk-N3ZE2FCS.js";
|
|
29
|
+
import "../_node-chunks/chunk-L5J4RBU5.js";
|
|
30
|
+
import "../_node-chunks/chunk-S6RYOO4I.js";
|
|
31
|
+
import "../_node-chunks/chunk-3AR5SJTX.js";
|
|
32
32
|
import {
|
|
33
33
|
getPrecedingUpgrade
|
|
34
|
-
} from "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
34
|
+
} from "../_node-chunks/chunk-OM4TBMP7.js";
|
|
35
|
+
import "../_node-chunks/chunk-D43KJFPO.js";
|
|
36
|
+
import "../_node-chunks/chunk-ZI3WVJBS.js";
|
|
37
|
+
import "../_node-chunks/chunk-LJPS53G5.js";
|
|
38
|
+
import "../_node-chunks/chunk-BB3ZKTWJ.js";
|
|
39
|
+
import "../_node-chunks/chunk-Q5JSLT56.js";
|
|
40
|
+
import "../_node-chunks/chunk-EKPHXLN6.js";
|
|
41
|
+
import "../_node-chunks/chunk-IK3K67LJ.js";
|
|
42
|
+
import "../_node-chunks/chunk-2L3QAN3W.js";
|
|
43
|
+
import "../_node-chunks/chunk-RUJOX3JR.js";
|
|
44
44
|
export {
|
|
45
45
|
addToGlobalContext,
|
|
46
46
|
cleanPaths,
|
package/dist/test/index.js
CHANGED
|
@@ -37,9 +37,9 @@ var require_min_indent = __commonJS({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
// ../node_modules/strip-indent/index.js
|
|
40
|
+
// ../node_modules/redent/node_modules/strip-indent/index.js
|
|
41
41
|
var require_strip_indent = __commonJS({
|
|
42
|
-
"../node_modules/strip-indent/index.js"(exports, module2) {
|
|
42
|
+
"../node_modules/redent/node_modules/strip-indent/index.js"(exports, module2) {
|
|
43
43
|
"use strict";
|
|
44
44
|
var minIndent = require_min_indent();
|
|
45
45
|
module2.exports = (string) => {
|