storybook 10.1.0-alpha.1 → 10.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_browser-chunks/{chunk-I74EUU5O.js → chunk-B3S3ROIP.js} +2 -1
- package/dist/_node-chunks/{builder-manager-6UBDPV7P.js → builder-manager-GBWCUYRR.js} +12 -12
- package/dist/_node-chunks/camelcase-2N6MD2HZ.js +18 -0
- package/dist/_node-chunks/{chunk-QNUGJO6L.js → chunk-2JHIUWIN.js} +7 -7
- package/dist/_node-chunks/{chunk-TXHNWNH4.js → chunk-5KDXQR2J.js} +7 -7
- package/dist/_node-chunks/{chunk-WNOSTIYP.js → chunk-5X7FGASE.js} +7 -7
- package/dist/_node-chunks/{chunk-BYVQZ2HU.js → chunk-6U2QTN2E.js} +7 -7
- package/dist/_node-chunks/{chunk-X67VGZN4.js → chunk-APKZWRTX.js} +7 -7
- package/dist/_node-chunks/{chunk-3FPF5Y2F.js → chunk-AX2PCJZ2.js} +6 -6
- package/dist/_node-chunks/{chunk-7TNUMFKR.js → chunk-B63HGQAB.js} +9 -9
- package/dist/_node-chunks/{chunk-6GD23U64.js → chunk-BNO5FB6B.js} +8 -8
- package/dist/_node-chunks/{chunk-3JCSHYSU.js → chunk-C4UVY6FF.js} +7 -7
- package/dist/_node-chunks/{chunk-J7N7PD5Q.js → chunk-CKXP5RYA.js} +9 -9
- package/dist/_node-chunks/chunk-D3NGJQDZ.js +18 -0
- package/dist/_node-chunks/{chunk-5SEHHENC.js → chunk-FJWQKOXX.js} +10 -10
- package/dist/_node-chunks/{chunk-HORWITP7.js → chunk-GMO24NTJ.js} +7 -7
- package/dist/_node-chunks/{chunk-BCDHUXAJ.js → chunk-HH57J4TX.js} +8 -8
- package/dist/_node-chunks/{chunk-VYRFXLRO.js → chunk-JKWP2FKQ.js} +7 -7
- package/dist/_node-chunks/chunk-LPNJ7PJY.js +61 -0
- package/dist/_node-chunks/{chunk-ULWNTI6M.js → chunk-MDXYV4OF.js} +15 -15
- package/dist/_node-chunks/{chunk-II4AFH3V.js → chunk-MPUDYIDW.js} +7 -7
- package/dist/_node-chunks/{chunk-GD2FXWDF.js → chunk-N7XYNLCJ.js} +7 -7
- package/dist/_node-chunks/{chunk-SCTKVDWR.js → chunk-NCHBSJG3.js} +1467 -148
- package/dist/_node-chunks/{chunk-RVE4UTVQ.js → chunk-NTH76OZA.js} +12 -12
- package/dist/_node-chunks/{chunk-DAMVKHAC.js → chunk-NTX43F34.js} +7 -7
- package/dist/_node-chunks/{chunk-MF2PUEWG.js → chunk-NYXHMPY4.js} +7 -7
- package/dist/_node-chunks/{chunk-FEOC7OX2.js → chunk-RLMJDF6S.js} +8 -8
- package/dist/_node-chunks/{chunk-TUFWZUTO.js → chunk-S32G4TCP.js} +7 -7
- package/dist/_node-chunks/{chunk-XW7YMR7I.js → chunk-SQAKXWVV.js} +7 -7
- package/dist/_node-chunks/{chunk-XCEBYOA4.js → chunk-T7KB265F.js} +6 -6
- package/dist/_node-chunks/{chunk-LAU7VVPC.js → chunk-TDLKTACT.js} +7 -7
- package/dist/_node-chunks/{chunk-6OAXYS5T.js → chunk-TSKLBMF3.js} +8 -8
- package/dist/_node-chunks/{chunk-4GE6Q4MX.js → chunk-TZ7GUTJ4.js} +7 -7
- package/dist/_node-chunks/{chunk-CJHAP7SE.js → chunk-YFBIEJ33.js} +7 -7
- package/dist/_node-chunks/{chunk-FY7XZPLY.js → chunk-YJJWZPL7.js} +39 -24
- package/dist/_node-chunks/{chunk-2RIKHYCS.js → chunk-ZQY3BNST.js} +12 -12
- package/dist/_node-chunks/{dist-APCKHSY3.js → dist-SQENNWFY.js} +9 -9
- package/dist/_node-chunks/{globby-TSGXGDA2.js → globby-CVPDLQ5Z.js} +9 -9
- package/dist/_node-chunks/{lib-DZ5TVIU5.js → lib-4BTTMYE2.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-Z6BYQCPN.js → mdx-N42X6CFJ-ENVHI6CC.js} +8 -8
- package/dist/_node-chunks/{p-limit-MLJNGG2K.js → p-limit-I2XW6GST.js} +7 -7
- package/dist/_node-chunks/{plugin-J3JI3ZKJ.js → plugin-4NIE24IO.js} +10 -10
- package/dist/_node-chunks/{plugin-HJLCLGNT.js → plugin-O5PHZ367.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-3QHNTM5B.js → webpack-inject-mocker-runtime-plugin-SVBN7WFH.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-4Y3MWPJ6.js → webpack-mock-plugin-XBV3VXVD.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 +210 -3
- package/dist/common/index.js +28 -20
- package/dist/components/index.js +1 -1
- package/dist/core-server/index.js +766 -52
- 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.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 +47 -5
- package/package.json +2 -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
|
@@ -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_bqgqh4d46dd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-JKWP2FKQ.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-MPUDYIDW.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-T7KB265F.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_bqgqh4d46dd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -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-ZQY3BNST.js";
|
|
16
|
+
import "../../_node-chunks/chunk-N7XYNLCJ.js";
|
|
17
17
|
import {
|
|
18
18
|
getLastEvents,
|
|
19
19
|
getSessionId
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-SQAKXWVV.js";
|
|
21
21
|
import {
|
|
22
22
|
invariant
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-5X7FGASE.js";
|
|
24
24
|
import {
|
|
25
25
|
resolvePackageDir
|
|
26
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
+
} from "../../_node-chunks/chunk-TSKLBMF3.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-6U2QTN2E.js";
|
|
31
|
+
import "../../_node-chunks/chunk-NYXHMPY4.js";
|
|
32
32
|
import {
|
|
33
33
|
loadConfig
|
|
34
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
+
} from "../../_node-chunks/chunk-YJJWZPL7.js";
|
|
35
35
|
import {
|
|
36
36
|
require_dist
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-S32G4TCP.js";
|
|
38
38
|
import {
|
|
39
39
|
require_picocolors
|
|
40
|
-
} from "../../_node-chunks/chunk-
|
|
40
|
+
} from "../../_node-chunks/chunk-2JHIUWIN.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-T7KB265F.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-2N6MD2HZ.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-CVPDLQ5Z.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-O5PHZ367.js");
|
|
1837
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-4NIE24IO.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-XBV3VXVD.js");
|
|
1856
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-SVBN7WFH.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_bqgqh4d46dd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
rewriteSbMockImportCalls
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-BNO5FB6B.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-6U2QTN2E.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-T7KB265F.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_bqgqh4d46dd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
getAutomockCode
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-APKZWRTX.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-BNO5FB6B.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-6U2QTN2E.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-T7KB265F.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_bqgqh4d46dd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -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-YJJWZPL7.js";
|
|
42
|
+
import "../_node-chunks/chunk-S32G4TCP.js";
|
|
43
|
+
import "../_node-chunks/chunk-T7KB265F.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.3";
|
|
82706
82707
|
|
|
82707
82708
|
// src/manager-api/modules/versions.ts
|
|
82708
82709
|
var { VERSIONCHECK } = scope;
|
|
@@ -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.3";
|
|
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_bqgqh4d46dd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bqgqh4d46dd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bqgqh4d46dd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bqgqh4d46dd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bqgqh4d46dd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bqgqh4d46dd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
require_pretty_hrtime
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-GMO24NTJ.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-RLMJDF6S.js";
|
|
21
|
+
import "../_node-chunks/chunk-NTX43F34.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-B63HGQAB.js";
|
|
26
|
+
import "../_node-chunks/chunk-5KDXQR2J.js";
|
|
27
27
|
import {
|
|
28
28
|
require_prompts,
|
|
29
29
|
require_src
|
|
30
|
-
} from "../_node-chunks/chunk-
|
|
30
|
+
} from "../_node-chunks/chunk-NYXHMPY4.js";
|
|
31
31
|
import {
|
|
32
32
|
require_picocolors
|
|
33
|
-
} from "../_node-chunks/chunk-
|
|
33
|
+
} from "../_node-chunks/chunk-2JHIUWIN.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-T7KB265F.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) => {
|
|
@@ -1,7 +1,6 @@
|
|
|
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';
|
|
5
4
|
import { Story, Meta, CleanupCallback, StoryContext as StoryContext$1, Args as Args$1 } from 'storybook/internal/csf';
|
|
6
5
|
import { RequestData, ArgTypesRequestPayload } from 'storybook/internal/core-events';
|
|
7
6
|
|
|
@@ -416,7 +415,7 @@ declare function createPlaywrightTest<TFixture extends {
|
|
|
416
415
|
}>(baseTest: TFixture): TFixture;
|
|
417
416
|
|
|
418
417
|
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>): {
|
|
419
|
-
story:
|
|
418
|
+
story: storybook_internal_types.StoryAnnotations<Renderer, unknown>;
|
|
420
419
|
meta: ComponentAnnotations<Renderer, unknown>;
|
|
421
420
|
preview: storybook_internal_types.NormalizedProjectAnnotations<Renderer>;
|
|
422
421
|
} | {
|
|
@@ -478,10 +477,10 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
478
477
|
getStoryContext(story: PreparedStory<TRenderer>, { forceInitialArgs }?: {
|
|
479
478
|
forceInitialArgs?: boolean | undefined;
|
|
480
479
|
}): {
|
|
481
|
-
args:
|
|
482
|
-
initialGlobals:
|
|
483
|
-
globalTypes: (
|
|
484
|
-
userGlobals:
|
|
480
|
+
args: storybook_internal_types.Args;
|
|
481
|
+
initialGlobals: storybook_internal_types.Globals;
|
|
482
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
483
|
+
userGlobals: storybook_internal_types.Globals;
|
|
485
484
|
reporting: ReporterAPI;
|
|
486
485
|
globals: {
|
|
487
486
|
[x: string]: any;
|
|
@@ -493,31 +492,31 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
493
492
|
subcomponents?: Record<string, (TRenderer & {
|
|
494
493
|
T: any;
|
|
495
494
|
})["component"]> | undefined;
|
|
496
|
-
parameters:
|
|
497
|
-
initialArgs:
|
|
498
|
-
argTypes:
|
|
499
|
-
componentId:
|
|
500
|
-
title:
|
|
501
|
-
kind:
|
|
495
|
+
parameters: storybook_internal_types.Parameters;
|
|
496
|
+
initialArgs: storybook_internal_types.Args;
|
|
497
|
+
argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
|
|
498
|
+
componentId: storybook_internal_types.ComponentId;
|
|
499
|
+
title: storybook_internal_types.ComponentTitle;
|
|
500
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
502
501
|
id: StoryId;
|
|
503
|
-
name:
|
|
504
|
-
story:
|
|
505
|
-
tags:
|
|
502
|
+
name: storybook_internal_types.StoryName;
|
|
503
|
+
story: storybook_internal_types.StoryName;
|
|
504
|
+
tags: storybook_internal_types.Tag[];
|
|
506
505
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
507
|
-
originalStoryFn:
|
|
508
|
-
undecoratedStoryFn:
|
|
509
|
-
unboundStoryFn:
|
|
510
|
-
applyLoaders: (context:
|
|
511
|
-
applyBeforeEach: (context:
|
|
512
|
-
applyAfterEach: (context:
|
|
513
|
-
playFunction?: ((context:
|
|
514
|
-
runStep:
|
|
515
|
-
mount: (context:
|
|
506
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
507
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
508
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
509
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
|
|
510
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<CleanupCallback[]>;
|
|
511
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
|
|
512
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
|
|
513
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
514
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
516
515
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
517
516
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
518
517
|
usesMount: boolean;
|
|
519
|
-
storyGlobals:
|
|
520
|
-
} & Pick<
|
|
518
|
+
storyGlobals: storybook_internal_types.Globals;
|
|
519
|
+
} & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, storybook_internal_types.Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
521
520
|
addCleanupCallbacks(story: PreparedStory<TRenderer>, ...callbacks: CleanupCallback[]): void;
|
|
522
521
|
cleanupStory(story: PreparedStory<TRenderer>): Promise<void>;
|
|
523
522
|
extract(options?: {
|
|
@@ -533,7 +532,7 @@ declare class StoryStore<TRenderer extends Renderer> {
|
|
|
533
532
|
declare const combineParameters: (...parameterSets: (Parameters | undefined)[]) => Parameters;
|
|
534
533
|
|
|
535
534
|
type PropDescriptor = string[] | RegExp;
|
|
536
|
-
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<
|
|
535
|
+
declare const filterArgTypes: (argTypes: StrictArgTypes, include?: PropDescriptor, exclude?: PropDescriptor) => Partial<StrictArgTypes<storybook_internal_types.Args>>;
|
|
537
536
|
|
|
538
537
|
declare const inferControls: ArgTypesEnhancer<Renderer>;
|
|
539
538
|
|
|
@@ -583,10 +582,10 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
583
582
|
getStoryContext: (story: PreparedStory<TRenderer>) => {
|
|
584
583
|
loaded: {};
|
|
585
584
|
viewMode: string;
|
|
586
|
-
args:
|
|
587
|
-
initialGlobals:
|
|
588
|
-
globalTypes: (
|
|
589
|
-
userGlobals:
|
|
585
|
+
args: storybook_internal_types.Args;
|
|
586
|
+
initialGlobals: storybook_internal_types.Globals;
|
|
587
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
588
|
+
userGlobals: storybook_internal_types.Globals;
|
|
590
589
|
reporting: ReporterAPI;
|
|
591
590
|
globals: {
|
|
592
591
|
[x: string]: any;
|
|
@@ -598,30 +597,30 @@ declare class DocsContext<TRenderer extends Renderer> implements DocsContextProp
|
|
|
598
597
|
subcomponents?: Record<string, (TRenderer & {
|
|
599
598
|
T: any;
|
|
600
599
|
})["component"]> | undefined;
|
|
601
|
-
parameters:
|
|
602
|
-
initialArgs:
|
|
603
|
-
argTypes:
|
|
604
|
-
componentId:
|
|
605
|
-
title:
|
|
606
|
-
kind:
|
|
600
|
+
parameters: storybook_internal_types.Parameters;
|
|
601
|
+
initialArgs: storybook_internal_types.Args;
|
|
602
|
+
argTypes: storybook_internal_types.StrictArgTypes<storybook_internal_types.Args>;
|
|
603
|
+
componentId: storybook_internal_types.ComponentId;
|
|
604
|
+
title: storybook_internal_types.ComponentTitle;
|
|
605
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
607
606
|
id: StoryId;
|
|
608
607
|
name: StoryName;
|
|
609
608
|
story: StoryName;
|
|
610
|
-
tags:
|
|
609
|
+
tags: storybook_internal_types.Tag[];
|
|
611
610
|
moduleExport: ModuleExport;
|
|
612
|
-
originalStoryFn:
|
|
613
|
-
undecoratedStoryFn:
|
|
614
|
-
unboundStoryFn:
|
|
615
|
-
applyLoaders: (context:
|
|
616
|
-
applyBeforeEach: (context:
|
|
617
|
-
applyAfterEach: (context:
|
|
618
|
-
playFunction?: ((context:
|
|
619
|
-
runStep:
|
|
620
|
-
mount: (context:
|
|
611
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
612
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
613
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
614
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<Record<string, any>>;
|
|
615
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<storybook_internal_types.CleanupCallback[]>;
|
|
616
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void>;
|
|
617
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => Promise<void> | void) | undefined;
|
|
618
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
619
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, storybook_internal_types.Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
621
620
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
622
621
|
renderToCanvas?: storybook_internal_types.RenderToCanvas<TRenderer> | undefined;
|
|
623
622
|
usesMount: boolean;
|
|
624
|
-
storyGlobals:
|
|
623
|
+
storyGlobals: storybook_internal_types.Globals;
|
|
625
624
|
allArgs: any;
|
|
626
625
|
argsByTarget: any;
|
|
627
626
|
unmappedArgs: any;
|
|
@@ -843,7 +842,7 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
843
842
|
}): {
|
|
844
843
|
args: Args;
|
|
845
844
|
initialGlobals: Globals;
|
|
846
|
-
globalTypes: (
|
|
845
|
+
globalTypes: (storybook_internal_types.GlobalTypes & storybook_internal_types.StrictGlobalTypes) | undefined;
|
|
847
846
|
userGlobals: Globals;
|
|
848
847
|
reporting: ReporterAPI;
|
|
849
848
|
globals: {
|
|
@@ -856,34 +855,34 @@ declare class Preview<TRenderer extends Renderer> {
|
|
|
856
855
|
subcomponents?: Record<string, (TRenderer & {
|
|
857
856
|
T: any;
|
|
858
857
|
})["component"]> | undefined;
|
|
859
|
-
parameters:
|
|
858
|
+
parameters: storybook_internal_types.Parameters;
|
|
860
859
|
initialArgs: Args;
|
|
861
|
-
argTypes:
|
|
862
|
-
componentId:
|
|
863
|
-
title:
|
|
864
|
-
kind:
|
|
860
|
+
argTypes: storybook_internal_types.StrictArgTypes<Args>;
|
|
861
|
+
componentId: storybook_internal_types.ComponentId;
|
|
862
|
+
title: storybook_internal_types.ComponentTitle;
|
|
863
|
+
kind: storybook_internal_types.ComponentTitle;
|
|
865
864
|
id: StoryId;
|
|
866
|
-
name:
|
|
867
|
-
story:
|
|
868
|
-
tags:
|
|
865
|
+
name: storybook_internal_types.StoryName;
|
|
866
|
+
story: storybook_internal_types.StoryName;
|
|
867
|
+
tags: storybook_internal_types.Tag[];
|
|
869
868
|
moduleExport: storybook_internal_types.ModuleExport;
|
|
870
|
-
originalStoryFn:
|
|
871
|
-
undecoratedStoryFn:
|
|
872
|
-
unboundStoryFn:
|
|
873
|
-
applyLoaders: (context:
|
|
874
|
-
applyBeforeEach: (context:
|
|
875
|
-
applyAfterEach: (context:
|
|
876
|
-
playFunction?: ((context:
|
|
877
|
-
runStep:
|
|
878
|
-
mount: (context:
|
|
869
|
+
originalStoryFn: storybook_internal_types.ArgsStoryFn<TRenderer>;
|
|
870
|
+
undecoratedStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
871
|
+
unboundStoryFn: storybook_internal_types.LegacyStoryFn<TRenderer>;
|
|
872
|
+
applyLoaders: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<Record<string, any>>;
|
|
873
|
+
applyBeforeEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<CleanupCallback[]>;
|
|
874
|
+
applyAfterEach: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void>;
|
|
875
|
+
playFunction?: ((context: storybook_internal_types.StoryContext<TRenderer, Args>) => Promise<void> | void) | undefined;
|
|
876
|
+
runStep: storybook_internal_types.StepRunner<TRenderer>;
|
|
877
|
+
mount: (context: storybook_internal_types.StoryContext<TRenderer, Args>) => () => Promise<storybook_internal_types.Canvas>;
|
|
879
878
|
testingLibraryRender?: (...args: never[]) => unknown;
|
|
880
879
|
renderToCanvas?: RenderToCanvas<TRenderer> | undefined;
|
|
881
880
|
usesMount: boolean;
|
|
882
881
|
storyGlobals: Globals;
|
|
883
|
-
} & Pick<
|
|
882
|
+
} & Pick<storybook_internal_types.StoryContextForLoaders<Renderer, Args>, "allArgs" | "argsByTarget" | "unmappedArgs">;
|
|
884
883
|
extract(options?: {
|
|
885
884
|
includeDocsOnly: boolean;
|
|
886
|
-
}): Promise<Record<string,
|
|
885
|
+
}): Promise<Record<string, storybook_internal_types.StoryContextForEnhancers<TRenderer, Args>>>;
|
|
887
886
|
renderPreviewEntryError(reason: string, err: Error): void;
|
|
888
887
|
}
|
|
889
888
|
|