storybook 10.0.0-beta.12 → 10.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{builder-manager-OSSM4NWE.js → builder-manager-L3MZVMZ5.js} +12 -12
- package/dist/_node-chunks/camelcase-SBGRHZU6.js +18 -0
- package/dist/_node-chunks/{chunk-P4A5LSOL.js → chunk-2PVUQY5V.js} +7 -7
- package/dist/_node-chunks/{chunk-ZC7MGMUM.js → chunk-66ENUZM3.js} +9 -9
- package/dist/_node-chunks/{chunk-VILCWP7X.js → chunk-6EM7SHCK.js} +7 -7
- package/dist/_node-chunks/{chunk-HMQ4V7Z5.js → chunk-6R3ENJUF.js} +7 -7
- package/dist/_node-chunks/{chunk-L66JUN4K.js → chunk-A4LTSGWA.js} +7 -7
- package/dist/_node-chunks/{chunk-PZKOFPBC.js → chunk-AWXGSZGM.js} +8 -8
- package/dist/_node-chunks/{chunk-Q7TTM3CS.js → chunk-BM3XDPHW.js} +12 -12
- package/dist/_node-chunks/{chunk-6TWKDGVL.js → chunk-CE25WRUD.js} +7 -7
- package/dist/_node-chunks/{chunk-CMSO5CKP.js → chunk-CKZNJYLM.js} +8 -8
- package/dist/_node-chunks/{chunk-XZM5EEGR.js → chunk-EIAGLK2S.js} +9 -9
- package/dist/_node-chunks/{chunk-X2GOBKPX.js → chunk-EJX3QGDP.js} +26 -24
- package/dist/_node-chunks/{chunk-D6Y5ILYC.js → chunk-ETYXUFUN.js} +6 -6
- package/dist/_node-chunks/{chunk-FEYCLHUC.js → chunk-H3OKFQ7Y.js} +7 -7
- package/dist/_node-chunks/chunk-H7H5VH4N.js +18 -0
- package/dist/_node-chunks/{chunk-C5A5EHZD.js → chunk-KBIRRRF3.js} +7 -7
- package/dist/_node-chunks/{chunk-LNJG27QP.js → chunk-KHRYPC5C.js} +7 -7
- package/dist/_node-chunks/{chunk-P52J67ZF.js → chunk-MJUX6QTP.js} +7 -7
- package/dist/_node-chunks/{chunk-FIQDWC46.js → chunk-NR3HISO5.js} +7 -7
- package/dist/_node-chunks/{chunk-O6PZSYDR.js → chunk-OCVLGT5T.js} +8 -8
- package/dist/_node-chunks/chunk-OGLI2H2L.js +61 -0
- package/dist/_node-chunks/{chunk-LLYQYHE5.js → chunk-OJHR3DEG.js} +8 -8
- package/dist/_node-chunks/{chunk-ZBLA36L3.js → chunk-ROPO5JHR.js} +7 -7
- package/dist/_node-chunks/{chunk-LGYIF62P.js → chunk-RQM73BBF.js} +7 -7
- package/dist/_node-chunks/{chunk-B5SKO5PI.js → chunk-TZLQJVUQ.js} +7 -7
- package/dist/_node-chunks/{chunk-E37BDCHA.js → chunk-VV7UYTM2.js} +6 -6
- package/dist/_node-chunks/{chunk-VYLAKHZ4.js → chunk-VWAQR7SK.js} +7 -7
- package/dist/_node-chunks/{chunk-FHECLS7O.js → chunk-VWDE4KGF.js} +7 -7
- package/dist/_node-chunks/{chunk-QEKKJKST.js → chunk-WONPUF7K.js} +8 -8
- package/dist/_node-chunks/{chunk-QVJTCLCM.js → chunk-XFXHZ5JF.js} +14 -14
- package/dist/_node-chunks/{chunk-55DIS7QM.js → chunk-XIGLO64N.js} +10 -10
- package/dist/_node-chunks/{chunk-WCTWPKT5.js → chunk-YQWCYFNY.js} +7 -7
- package/dist/_node-chunks/{dist-MU5GUPNX.js → dist-4LTP5352.js} +9 -9
- package/dist/_node-chunks/{globby-O76AC2B6.js → globby-YL2WN4IM.js} +9 -9
- package/dist/_node-chunks/{lib-LNU5U5LQ.js → lib-H6VRT3L6.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-XEA2YCLC.js → mdx-N42X6CFJ-PUU6DJRU.js} +8 -8
- package/dist/_node-chunks/{p-limit-YQHFHRN5.js → p-limit-B4XGNEDI.js} +7 -7
- package/dist/_node-chunks/{plugin-I6VO7Z4N.js → plugin-FTK7LQSU.js} +10 -10
- package/dist/_node-chunks/{plugin-W2OFPK2T.js → plugin-WPIGKPJE.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-M3ZKBWSR.js → webpack-inject-mocker-runtime-plugin-ZVJPX75F.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-PU6SBAYY.js → webpack-mock-plugin-BYKVULFT.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 +20 -20
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +20 -20
- package/dist/core-server/index.js +34 -34
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- 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.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- 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-api/index.d.ts +68 -67
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/camelcase-GGFG4KN6.js +0 -18
- package/dist/_node-chunks/chunk-Q3KIVM64.js +0 -18
- package/dist/_node-chunks/chunk-WV6BPXST.js +0 -62
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-MJUX6QTP.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-VWDE4KGF.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-ETYXUFUN.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,33 +12,33 @@ var require = CJS_COMPAT_NODE_MODULE_ukdptlocs4k.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-BM3XDPHW.js";
|
|
16
|
+
import "../../_node-chunks/chunk-CE25WRUD.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-RQM73BBF.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-OCVLGT5T.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-TZLQJVUQ.js";
|
|
26
|
+
import "../../_node-chunks/chunk-YQWCYFNY.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-OJHR3DEG.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-6EM7SHCK.js";
|
|
33
33
|
import {
|
|
34
34
|
require_picocolors
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-ROPO5JHR.js";
|
|
36
36
|
import {
|
|
37
37
|
__commonJS,
|
|
38
38
|
__name,
|
|
39
39
|
__require,
|
|
40
40
|
__toESM
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-ETYXUFUN.js";
|
|
42
42
|
|
|
43
43
|
// ../node_modules/shell-quote/quote.js
|
|
44
44
|
var require_quote = __commonJS({
|
|
@@ -699,7 +699,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
699
699
|
|
|
700
700
|
// src/core-server/utils/get-component-variable-name.ts
|
|
701
701
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
702
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
702
|
+
const camelCase = await import("../../_node-chunks/camelcase-SBGRHZU6.js");
|
|
703
703
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
704
704
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
705
705
|
return sanitized;
|
|
@@ -1046,7 +1046,7 @@ async function searchFiles({
|
|
|
1046
1046
|
ignoredFiles = IGNORED_FILES,
|
|
1047
1047
|
fileExtensions = FILE_EXTENSIONS
|
|
1048
1048
|
}) {
|
|
1049
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1049
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-YL2WN4IM.js");
|
|
1050
1050
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1051
1051
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1052
1052
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1793,8 +1793,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1793
1793
|
if (!previewConfigPath) {
|
|
1794
1794
|
return existing;
|
|
1795
1795
|
}
|
|
1796
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1797
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1796
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-WPIGKPJE.js");
|
|
1797
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-FTK7LQSU.js");
|
|
1798
1798
|
const coreOptions = await options.presets.apply("core");
|
|
1799
1799
|
return {
|
|
1800
1800
|
...existing,
|
|
@@ -1812,8 +1812,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1812
1812
|
if (!previewConfigPath) {
|
|
1813
1813
|
return config;
|
|
1814
1814
|
}
|
|
1815
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1816
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1815
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-BYKVULFT.js");
|
|
1816
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-ZVJPX75F.js");
|
|
1817
1817
|
config.plugins = config.plugins || [];
|
|
1818
1818
|
config.module.rules.push({
|
|
1819
1819
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-AWXGSZGM.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-TZLQJVUQ.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-ETYXUFUN.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_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-NR3HISO5.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-AWXGSZGM.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-TZLQJVUQ.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-ETYXUFUN.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-OJHR3DEG.js";
|
|
42
|
+
import "../_node-chunks/chunk-6EM7SHCK.js";
|
|
43
|
+
import "../_node-chunks/chunk-ETYXUFUN.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -148531,7 +148531,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
148531
148531
|
var import_semver = __toESM(require_semver2(), 1);
|
|
148532
148532
|
|
|
148533
148533
|
// src/manager-api/version.ts
|
|
148534
|
-
var version = "10.0.0-beta.
|
|
148534
|
+
var version = "10.0.0-beta.13";
|
|
148535
148535
|
|
|
148536
148536
|
// src/manager-api/modules/versions.ts
|
|
148537
148537
|
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: () => "control" | "meta";
|
|
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'>;
|
|
@@ -3292,7 +3292,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3292
3292
|
import semver from "semver";
|
|
3293
3293
|
|
|
3294
3294
|
// src/manager-api/version.ts
|
|
3295
|
-
var version = "10.0.0-beta.
|
|
3295
|
+
var version = "10.0.0-beta.13";
|
|
3296
3296
|
|
|
3297
3297
|
// src/manager-api/modules/versions.ts
|
|
3298
3298
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-KBIRRRF3.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-WONPUF7K.js";
|
|
21
|
+
import "../_node-chunks/chunk-A4LTSGWA.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-EIAGLK2S.js";
|
|
26
|
+
import "../_node-chunks/chunk-2PVUQY5V.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-YQWCYFNY.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-ROPO5JHR.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-ETYXUFUN.js";
|
|
41
41
|
|
|
42
42
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
43
43
|
var require_tracker_base = __commonJS({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Channel } from 'storybook/internal/channels';
|
|
2
2
|
import * as storybook_internal_types from 'storybook/internal/types';
|
|
3
3
|
import { Args, Renderer, StoryContext, DecoratorApplicator, StoryId, Addon_StoryWrapper, PreparedStory, Globals, GlobalTypes, StoryIndex, StoryName, ComponentTitle, IndexEntry, Path, StoryAnnotationsOrFn, NormalizedComponentAnnotations, NormalizedStoryAnnotations, ModuleExports, CSFFile, NormalizedProjectAnnotations, ModuleExport, PreparedMeta, ProjectAnnotations, StepRunner, ComposedStoryFn, Store_CSFExports, ComposeStoryFn, LegacyStoryAnnotationsOrFn, ComponentAnnotations, NamedOrDefaultProjectAnnotations, ModuleImportFn, StoryContextForEnhancers, Parameters, StrictArgTypes, ArgTypesEnhancer, LegacyStoryFn, DecoratorFunction, PartialStoryFn, StoryContextUpdate, NormalizedStoriesSpecifier, Addon_StorySortParameterV7, DocsContextProps, ResolvedModuleExportType, ResolvedModuleExportFromType, StoryRenderOptions, RenderContextCallbacks, RenderToCanvas, ViewMode } from 'storybook/internal/types';
|
|
4
|
+
import * as storybook_internal_csf from 'storybook/internal/csf';
|
|
4
5
|
import { Story, Meta, CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
|
|
5
6
|
import { RequestData, ArgTypesRequestPayload } from 'storybook/internal/core-events';
|
|
6
7
|
|
|
@@ -415,7 +416,7 @@ declare function createPlaywrightTest<TFixture extends {
|
|
|
415
416
|
}>(baseTest: TFixture): TFixture;
|
|
416
417
|
|
|
417
418
|
declare function getCsfFactoryAnnotations<TRenderer extends Renderer = Renderer, TArgs extends Args = Args>(story: LegacyStoryAnnotationsOrFn<TRenderer> | Story<Renderer>, meta?: ComponentAnnotations<TRenderer, TArgs> | Meta<Renderer>, projectAnnotations?: ProjectAnnotations<TRenderer>): {
|
|
418
|
-
story:
|
|
419
|
+
story: storybook_internal_csf.StoryAnnotations<Renderer, unknown>;
|
|
419
420
|
meta: ComponentAnnotations<Renderer, unknown>;
|
|
420
421
|
preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
|
|
421
422
|
} | {
|
|
@@ -477,10 +478,10 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
477
478
|
getStoryContext(story: PreparedStory<TRenderer>, { forceInitialArgs }?: {
|
|
478
479
|
forceInitialArgs?: boolean | undefined;
|
|
479
480
|
}): {
|
|
480
|
-
args:
|
|
481
|
-
initialGlobals:
|
|
482
|
-
globalTypes: (
|
|
483
|
-
userGlobals:
|
|
481
|
+
args: storybook_internal_csf.Args;
|
|
482
|
+
initialGlobals: storybook_internal_csf.Globals;
|
|
483
|
+
globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
|
|
484
|
+
userGlobals: storybook_internal_csf.Globals;
|
|
484
485
|
reporting: ReporterAPI;
|
|
485
486
|
globals: {
|
|
486
487
|
[x: string]: any;
|
|
@@ -492,31 +493,31 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
492
493
|
subcomponents?: Record<string, (TRenderer & {
|
|
493
494
|
T: any;
|
|
494
495
|
})["component"]> | undefined;
|
|
495
|
-
parameters:
|
|
496
|
-
initialArgs:
|
|
497
|
-
argTypes:
|
|
498
|
-
componentId:
|
|
499
|
-
title:
|
|
500
|
-
kind:
|
|
496
|
+
parameters: storybook_internal_csf.Parameters;
|
|
497
|
+
initialArgs: storybook_internal_csf.Args;
|
|
498
|
+
argTypes: storybook_internal_csf.StrictArgTypes<storybook_internal_csf.Args>;
|
|
499
|
+
componentId: storybook_internal_csf.ComponentId;
|
|
500
|
+
title: storybook_internal_csf.ComponentTitle;
|
|
501
|
+
kind: storybook_internal_csf.ComponentTitle;
|
|
501
502
|
id: StoryId;
|
|
502
|
-
name:
|
|
503
|
-
story:
|
|
504
|
-
tags:
|
|
503
|
+
name: storybook_internal_csf.StoryName;
|
|
504
|
+
story: storybook_internal_csf.StoryName;
|
|
505
|
+
tags: storybook_internal_csf.Tag[];
|
|
505
506
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
506
|
-
originalStoryFn:
|
|
507
|
-
undecoratedStoryFn:
|
|
508
|
-
unboundStoryFn:
|
|
509
|
-
applyLoaders: (context:
|
|
510
|
-
applyBeforeEach: (context:
|
|
511
|
-
applyAfterEach: (context:
|
|
512
|
-
playFunction?: ((context:
|
|
513
|
-
runStep:
|
|
514
|
-
mount: (context:
|
|
507
|
+
originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
|
|
508
|
+
undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
509
|
+
unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
510
|
+
applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<Record<string, any>>;
|
|
511
|
+
applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<CleanupCallback[]>;
|
|
512
|
+
applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void>;
|
|
513
|
+
playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void> | void) | undefined;
|
|
514
|
+
runStep: storybook_internal_csf.StepRunner<TRenderer>;
|
|
515
|
+
mount: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => () => Promise<storybook_internal_csf.Canvas>;
|
|
515
516
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
516
517
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
517
518
|
usesMount: boolean;
|
|
518
|
-
storyGlobals:
|
|
519
|
-
} & Pick<
|
|
519
|
+
storyGlobals: storybook_internal_csf.Globals;
|
|
520
|
+
} & Pick<storybook_internal_csf.StoryContextForLoaders<Renderer, storybook_internal_csf.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
520
521
|
addCleanupCallbacks(story: PreparedStory<TRenderer>, ...callbacks: CleanupCallback[]): void;
|
|
521
522
|
cleanupStory(story: PreparedStory<TRenderer>): Promise<void>;
|
|
522
523
|
extract(options?: {
|
|
@@ -532,7 +533,7 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
532
533
|
declare const combineParameters: (...parameterSets: (Parameters | undefined)[]) => Parameters;
|
|
533
534
|
|
|
534
535
|
type PropDescriptor = string[] | RegExp;
|
|
535
|
-
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<
|
|
536
|
+
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_csf.Args>>;
|
|
536
537
|
|
|
537
538
|
declare const inferControls: ArgTypesEnhancer<Renderer>;
|
|
538
539
|
|
|
@@ -582,10 +583,10 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
582
583
|
getStoryContext: (story: PreparedStory<TRenderer>) => {
|
|
583
584
|
loaded: {};
|
|
584
585
|
viewMode: string;
|
|
585
|
-
args:
|
|
586
|
-
initialGlobals:
|
|
587
|
-
globalTypes: (
|
|
588
|
-
userGlobals:
|
|
586
|
+
args: storybook_internal_csf.Args;
|
|
587
|
+
initialGlobals: storybook_internal_csf.Globals;
|
|
588
|
+
globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
|
|
589
|
+
userGlobals: storybook_internal_csf.Globals;
|
|
589
590
|
reporting: ReporterAPI;
|
|
590
591
|
globals: {
|
|
591
592
|
[x: string]: any;
|
|
@@ -597,30 +598,30 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
597
598
|
subcomponents?: Record<string, (TRenderer & {
|
|
598
599
|
T: any;
|
|
599
600
|
})["component"]> | undefined;
|
|
600
|
-
parameters:
|
|
601
|
-
initialArgs:
|
|
602
|
-
argTypes:
|
|
603
|
-
componentId:
|
|
604
|
-
title:
|
|
605
|
-
kind:
|
|
601
|
+
parameters: storybook_internal_csf.Parameters;
|
|
602
|
+
initialArgs: storybook_internal_csf.Args;
|
|
603
|
+
argTypes: storybook_internal_csf.StrictArgTypes<storybook_internal_csf.Args>;
|
|
604
|
+
componentId: storybook_internal_csf.ComponentId;
|
|
605
|
+
title: storybook_internal_csf.ComponentTitle;
|
|
606
|
+
kind: storybook_internal_csf.ComponentTitle;
|
|
606
607
|
id: StoryId;
|
|
607
608
|
name: StoryName;
|
|
608
609
|
story: StoryName;
|
|
609
|
-
tags:
|
|
610
|
+
tags: storybook_internal_csf.Tag[];
|
|
610
611
|
moduleExport: ModuleExport;
|
|
611
|
-
originalStoryFn:
|
|
612
|
-
undecoratedStoryFn:
|
|
613
|
-
unboundStoryFn:
|
|
614
|
-
applyLoaders: (context:
|
|
615
|
-
applyBeforeEach: (context:
|
|
616
|
-
applyAfterEach: (context:
|
|
617
|
-
playFunction?: ((context:
|
|
618
|
-
runStep:
|
|
619
|
-
mount: (context:
|
|
612
|
+
originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
|
|
613
|
+
undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
614
|
+
unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
615
|
+
applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<Record<string, any>>;
|
|
616
|
+
applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<storybook_internal_csf.CleanupCallback[]>;
|
|
617
|
+
applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void>;
|
|
618
|
+
playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => Promise<void> | void) | undefined;
|
|
619
|
+
runStep: storybook_internal_csf.StepRunner<TRenderer>;
|
|
620
|
+
mount: (context: storybook_internal_csf.StoryContext<TRenderer, storybook_internal_csf.Args>) => () => Promise<storybook_internal_csf.Canvas>;
|
|
620
621
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
621
622
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
622
623
|
usesMount: boolean;
|
|
623
|
-
storyGlobals:
|
|
624
|
+
storyGlobals: storybook_internal_csf.Globals;
|
|
624
625
|
allArgs: any;
|
|
625
626
|
argsByTarget: any;
|
|
626
627
|
unmappedArgs: any;
|
|
@@ -842,7 +843,7 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
842
843
|
}): {
|
|
843
844
|
args: Args;
|
|
844
845
|
initialGlobals: Globals;
|
|
845
|
-
globalTypes: (
|
|
846
|
+
globalTypes: (storybook_internal_csf.GlobalTypes & storybook_internal_csf.StrictGlobalTypes) | undefined;
|
|
846
847
|
userGlobals: Globals;
|
|
847
848
|
reporting: ReporterAPI;
|
|
848
849
|
globals: {
|
|
@@ -855,34 +856,34 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
855
856
|
subcomponents?: Record<string, (TRenderer & {
|
|
856
857
|
T: any;
|
|
857
858
|
})["component"]> | undefined;
|
|
858
|
-
parameters:
|
|
859
|
+
parameters: storybook_internal_csf.Parameters;
|
|
859
860
|
initialArgs: Args;
|
|
860
|
-
argTypes:
|
|
861
|
-
componentId:
|
|
862
|
-
title:
|
|
863
|
-
kind:
|
|
861
|
+
argTypes: storybook_internal_csf.StrictArgTypes<Args>;
|
|
862
|
+
componentId: storybook_internal_csf.ComponentId;
|
|
863
|
+
title: storybook_internal_csf.ComponentTitle;
|
|
864
|
+
kind: storybook_internal_csf.ComponentTitle;
|
|
864
865
|
id: StoryId;
|
|
865
|
-
name:
|
|
866
|
-
story:
|
|
867
|
-
tags:
|
|
866
|
+
name: storybook_internal_csf.StoryName;
|
|
867
|
+
story: storybook_internal_csf.StoryName;
|
|
868
|
+
tags: storybook_internal_csf.Tag[];
|
|
868
869
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
869
|
-
originalStoryFn:
|
|
870
|
-
undecoratedStoryFn:
|
|
871
|
-
unboundStoryFn:
|
|
872
|
-
applyLoaders: (context:
|
|
873
|
-
applyBeforeEach: (context:
|
|
874
|
-
applyAfterEach: (context:
|
|
875
|
-
playFunction?: ((context:
|
|
876
|
-
runStep:
|
|
877
|
-
mount: (context:
|
|
870
|
+
originalStoryFn: storybook_internal_csf.ArgsStoryFn<TRenderer>;
|
|
871
|
+
undecoratedStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
872
|
+
unboundStoryFn: storybook_internal_csf.LegacyStoryFn<TRenderer>;
|
|
873
|
+
applyLoaders: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
|
|
874
|
+
applyBeforeEach: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
|
|
875
|
+
applyAfterEach: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<void>;
|
|
876
|
+
playFunction?: ((context: storybook_internal_csf.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
|
|
877
|
+
runStep: storybook_internal_csf.StepRunner<TRenderer>;
|
|
878
|
+
mount: (context: storybook_internal_csf.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_csf.Canvas>;
|
|
878
879
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
879
880
|
renderToCanvas?: RenderToCanvas<TRenderer> | undefined;
|
|
880
881
|
usesMount: boolean;
|
|
881
882
|
storyGlobals: Globals;
|
|
882
|
-
} & Pick<
|
|
883
|
+
} & Pick<storybook_internal_csf.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
883
884
|
extract(options?: {
|
|
884
885
|
includeDocsOnly: boolean;
|
|
885
|
-
}): Promise<Record<string,
|
|
886
|
+
}): Promise<Record<string, storybook_internal_csf.StoryContextForEnhancers<TRenderer, Args>>>;
|
|
886
887
|
renderPreviewEntryError(reason: string, err: Error): void;
|
|
887
888
|
}
|
|
888
889
|
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_lsrbdpi9o7c from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_lsrbdpi9o7c from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_lsrbdpi9o7c.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_lsrbdpi9o7c.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_lsrbdpi9o7c.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-66ENUZM3.js";
|
|
43
|
+
import "./_node-chunks/chunk-6EM7SHCK.js";
|
|
44
|
+
import "./_node-chunks/chunk-ROPO5JHR.js";
|
|
45
|
+
import "./_node-chunks/chunk-ETYXUFUN.js";
|
|
46
46
|
export {
|
|
47
47
|
AngularLegacyBuildOptionsError,
|
|
48
48
|
Category,
|