storybook 10.0.0-beta.2 → 10.0.0-beta.4
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-KCNW2J74.js → builder-manager-IKHPPPFE.js} +16 -16
- package/dist/_node-chunks/{camelcase-FH5EGUIB.js → camelcase-O2O7JODG.js} +7 -7
- package/dist/_node-chunks/{chunk-NTXIDMDM.js → chunk-3J7DQ6TI.js} +7 -7
- package/dist/_node-chunks/{chunk-XWJNZVOR.js → chunk-4FMOVB65.js} +8 -8
- package/dist/_node-chunks/{chunk-6A2WP6N7.js → chunk-4VGW2SQA.js} +7 -7
- package/dist/_node-chunks/chunk-5OILJTZE.js +1476 -0
- package/dist/_node-chunks/{chunk-6B3CXS7K.js → chunk-6COBULLV.js} +7 -7
- package/dist/_node-chunks/{chunk-HSI4BG2J.js → chunk-7IIAUEWB.js} +8 -8
- package/dist/_node-chunks/{chunk-MX77OTGN.js → chunk-AC3BNULF.js} +582 -736
- package/dist/_node-chunks/{chunk-CIIY3F53.js → chunk-AXFNB3AN.js} +7 -7
- package/dist/_node-chunks/chunk-CHJLO2LV.js +62 -0
- package/dist/_node-chunks/{chunk-JWFNAC5N.js → chunk-DCHFG5TX.js} +7 -7
- package/dist/_node-chunks/{chunk-7DWWXKIE.js → chunk-FWFQ2GU7.js} +6 -6
- package/dist/_node-chunks/{chunk-FXPYWCQE.js → chunk-HAVE6SGK.js} +7 -7
- package/dist/_node-chunks/{chunk-2E5IZBC2.js → chunk-IB5AEYPX.js} +7 -7
- package/dist/_node-chunks/{chunk-2VOEBWNF.js → chunk-JECCFKKM.js} +7 -7
- package/dist/_node-chunks/{chunk-ZF6AXYHM.js → chunk-JP4LEAXM.js} +7 -7
- package/dist/_node-chunks/chunk-JSSBBVU5.js +79 -0
- package/dist/_node-chunks/chunk-MNG223PY.js +18 -0
- package/dist/_node-chunks/{chunk-PTT3CRNJ.js → chunk-MOO2Y4GI.js} +6 -6
- package/dist/_node-chunks/{chunk-KDKM7KMS.js → chunk-N3GFXZDP.js} +7 -7
- package/dist/_node-chunks/{chunk-B7L5A4BQ.js → chunk-NF3GXIEK.js} +9 -9
- package/dist/_node-chunks/{chunk-JZ7ZEAK6.js → chunk-NOSGJ5PL.js} +7 -7
- package/dist/_node-chunks/{chunk-DPF2NDLD.js → chunk-OL2HWCBH.js} +7 -7
- package/dist/_node-chunks/{chunk-RSG3AEWL.js → chunk-SF2IETZ2.js} +29 -81
- package/dist/_node-chunks/{chunk-CGY2ITTD.js → chunk-TBAIXCHN.js} +8 -8
- package/dist/_node-chunks/{chunk-CMFB2H3U.js → chunk-TTQRDWDJ.js} +12 -12
- package/dist/_node-chunks/{chunk-63VGATS4.js → chunk-TYGVOW7L.js} +7 -7
- package/dist/_node-chunks/{chunk-HSS67Y6T.js → chunk-USDZSU5L.js} +7 -7
- package/dist/_node-chunks/chunk-XA4TAMUS.js +4966 -0
- package/dist/_node-chunks/{chunk-NUODGCJN.js → chunk-XT6O5CVI.js} +7 -7
- package/dist/_node-chunks/{chunk-WBRWBEAS.js → chunk-YJHXEN7U.js} +10 -10
- package/dist/_node-chunks/{chunk-NWTLWMJN.js → chunk-YRPXGWKW.js} +143 -15
- package/dist/_node-chunks/{default-browser-id-YRAH7IMC.js → default-browser-id-J4OIAAJ5.js} +7 -7
- package/dist/_node-chunks/{dist-G5THJIW5.js → dist-BMKSKYDI.js} +9 -9
- package/dist/_node-chunks/{globby-FGF2JG5Z.js → globby-DASPUXWI.js} +9 -9
- package/dist/_node-chunks/{lib-OPOVJQIO.js → lib-L6BIH4EV.js} +11 -11
- package/dist/_node-chunks/{mdx-N42X6CFJ-N5MJA4NM.js → mdx-N42X6CFJ-2COTUDSL.js} +8 -8
- package/dist/_node-chunks/{p-limit-JNDYEQZX.js → p-limit-HVR3I7TJ.js} +76 -10
- package/dist/_node-chunks/{plugin-ZL4ZLDWE.js → plugin-2XPSFYWZ.js} +10 -10
- package/dist/_node-chunks/{plugin-6GW4GYGS.js → plugin-FZOHPRK7.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-F6BXWV4R.js → webpack-inject-mocker-runtime-plugin-FGQM2EPC.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-5QNP4V3B.js → webpack-mock-plugin-4HOAIYSX.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 +8 -8
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +29 -30
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +23 -22
- package/dist/core-server/index.js +38 -39
- 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/index.js +7 -1
- package/dist/csf-tools/index.d.ts +34 -0
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +3 -2
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/node-logger/index.js +13 -14
- package/dist/preview/runtime.js +9 -2
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -25
- package/dist/test/index.js +2 -1
- package/package.json +3 -7
- package/dist/_node-chunks/chunk-2VH25RMB.js +0 -9845
- package/dist/_node-chunks/chunk-6FPFMFFH.js +0 -266
- package/dist/_node-chunks/chunk-IAAPNJG4.js +0 -62
- package/dist/_node-chunks/chunk-IBC4BVDB.js +0 -87
- package/dist/_node-chunks/chunk-NNJMYLJM.js +0 -18
- package/dist/_node-chunks/chunk-TLM4ECJN.js +0 -2377
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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-TYGVOW7L.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-OL2HWCBH.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-MOO2Y4GI.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_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,29 +12,29 @@ var require = CJS_COMPAT_NODE_MODULE_qfbekemo7ri.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-TTQRDWDJ.js";
|
|
16
|
+
import "../../_node-chunks/chunk-DCHFG5TX.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-USDZSU5L.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-TBAIXCHN.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-4VGW2SQA.js";
|
|
26
|
+
import "../../_node-chunks/chunk-3J7DQ6TI.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-YRPXGWKW.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
33
|
-
import "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-NOSGJ5PL.js";
|
|
33
|
+
import "../../_node-chunks/chunk-N3GFXZDP.js";
|
|
34
34
|
import {
|
|
35
35
|
__name,
|
|
36
36
|
__toESM
|
|
37
|
-
} from "../../_node-chunks/chunk-
|
|
37
|
+
} from "../../_node-chunks/chunk-MOO2Y4GI.js";
|
|
38
38
|
|
|
39
39
|
// src/core-server/presets/common-preset.ts
|
|
40
40
|
import { existsSync as existsSync3 } from "node:fs";
|
|
@@ -84,7 +84,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
84
84
|
|
|
85
85
|
// src/core-server/utils/get-component-variable-name.ts
|
|
86
86
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
87
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
87
|
+
const camelCase = await import("../../_node-chunks/camelcase-O2O7JODG.js");
|
|
88
88
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
89
89
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
90
90
|
return sanitized;
|
|
@@ -431,7 +431,7 @@ async function searchFiles({
|
|
|
431
431
|
ignoredFiles = IGNORED_FILES,
|
|
432
432
|
fileExtensions = FILE_EXTENSIONS
|
|
433
433
|
}) {
|
|
434
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
434
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-DASPUXWI.js");
|
|
435
435
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
436
436
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
437
437
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1131,8 +1131,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1131
1131
|
if (!previewConfigPath) {
|
|
1132
1132
|
return existing;
|
|
1133
1133
|
}
|
|
1134
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1135
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1134
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-2XPSFYWZ.js");
|
|
1135
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-FZOHPRK7.js");
|
|
1136
1136
|
const coreOptions = await options.presets.apply("core");
|
|
1137
1137
|
return {
|
|
1138
1138
|
...existing,
|
|
@@ -1150,8 +1150,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1150
1150
|
if (!previewConfigPath) {
|
|
1151
1151
|
return config;
|
|
1152
1152
|
}
|
|
1153
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1154
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1153
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-4HOAIYSX.js");
|
|
1154
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-FGQM2EPC.js");
|
|
1155
1155
|
config.plugins = config.plugins || [];
|
|
1156
1156
|
config.module.rules.push({
|
|
1157
1157
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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-7IIAUEWB.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-4VGW2SQA.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-MOO2Y4GI.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_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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-XT6O5CVI.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-7IIAUEWB.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-4VGW2SQA.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-MOO2Y4GI.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf/index.js
CHANGED
|
@@ -230,6 +230,9 @@ var logActionsWhenMockCalled = /* @__PURE__ */ __name((context) => {
|
|
|
230
230
|
if (name === "spy") {
|
|
231
231
|
return;
|
|
232
232
|
}
|
|
233
|
+
if (name === "vi.fn()") {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
233
236
|
if (!/^next\/.*::/.test(name) || [
|
|
234
237
|
"next/router::useRouter()",
|
|
235
238
|
"next/navigation::useRouter()",
|
|
@@ -2328,7 +2331,10 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
2328
2331
|
if (clipboard) {
|
|
2329
2332
|
context.userEvent = instrument2(
|
|
2330
2333
|
{ userEvent: uninstrumentedUserEvent.setup() },
|
|
2331
|
-
{
|
|
2334
|
+
{
|
|
2335
|
+
intercept: true,
|
|
2336
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys")
|
|
2337
|
+
}
|
|
2332
2338
|
).userEvent;
|
|
2333
2339
|
Object.defineProperty(globalThis.window.navigator, "clipboard", {
|
|
2334
2340
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|
|
@@ -204,6 +204,40 @@ declare class ConfigFile {
|
|
|
204
204
|
setImport(importSpecifier: string[] | string | {
|
|
205
205
|
namespace: string;
|
|
206
206
|
} | null, fromImport: string): void;
|
|
207
|
+
_removeRequireImport(importSpecifier: string[] | string | {
|
|
208
|
+
namespace: string;
|
|
209
|
+
} | null, fromImport: string): void;
|
|
210
|
+
_removeImport(importSpecifier: string[] | string | {
|
|
211
|
+
namespace: string;
|
|
212
|
+
} | null, fromImport: string): void;
|
|
213
|
+
/**
|
|
214
|
+
* Remove import specifiers for a given import statement.
|
|
215
|
+
*
|
|
216
|
+
* Does not support removing type imports (yet)
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
*
|
|
220
|
+
* ```ts
|
|
221
|
+
* // import { foo } from 'bar';
|
|
222
|
+
* setImport(['foo'], 'bar');
|
|
223
|
+
*
|
|
224
|
+
* // import foo from 'bar';
|
|
225
|
+
* setImport('foo', 'bar');
|
|
226
|
+
*
|
|
227
|
+
* // import * as foo from 'bar';
|
|
228
|
+
* setImport({ namespace: 'foo' }, 'bar');
|
|
229
|
+
*
|
|
230
|
+
* // import 'bar';
|
|
231
|
+
* setImport(null, 'bar');
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* @param importSpecifiers - The import specifiers to remove. If a string is passed in, will only
|
|
235
|
+
* remove the default import. Otherwise, named imports matching the array will be removed.
|
|
236
|
+
* @param fromImport - The module to import from
|
|
237
|
+
*/
|
|
238
|
+
removeImport(importSpecifier: string[] | string | {
|
|
239
|
+
namespace: string;
|
|
240
|
+
} | null, fromImport: string): void;
|
|
207
241
|
}
|
|
208
242
|
declare const loadConfig: (code: string, fileName?: string) => ConfigFile;
|
|
209
243
|
declare const formatConfig: (config: ConfigFile) => string;
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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-YRPXGWKW.js";
|
|
42
|
+
import "../_node-chunks/chunk-NOSGJ5PL.js";
|
|
43
|
+
import "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -150192,6 +150192,7 @@ init_esm();
|
|
|
150192
150192
|
var testingLibrary = instrument(
|
|
150193
150193
|
{ ...dom_esm_exports },
|
|
150194
150194
|
{
|
|
150195
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys"),
|
|
150195
150196
|
intercept: /* @__PURE__ */ __name((method2, path) => path[0] === "fireEvent" || method2.startsWith("find") || method2.startsWith("waitFor"), "intercept")
|
|
150196
150197
|
}
|
|
150197
150198
|
);
|
|
@@ -150281,7 +150282,7 @@ var {
|
|
|
150281
150282
|
var uninstrumentedUserEvent = userEvent;
|
|
150282
150283
|
var { userEvent: userEvent2 } = instrument(
|
|
150283
150284
|
{ userEvent },
|
|
150284
|
-
{ intercept: true }
|
|
150285
|
+
{ intercept: true, getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys") }
|
|
150285
150286
|
);
|
|
150286
150287
|
|
|
150287
150288
|
// src/test/index.ts
|
|
@@ -157417,7 +157418,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
157417
157418
|
var import_semver = __toESM(require_semver2(), 1);
|
|
157418
157419
|
|
|
157419
157420
|
// src/manager-api/version.ts
|
|
157420
|
-
var version = "10.0.0-beta.
|
|
157421
|
+
var version = "10.0.0-beta.4";
|
|
157421
157422
|
|
|
157422
157423
|
// src/manager-api/modules/versions.ts
|
|
157423
157424
|
var { VERSIONCHECK } = scope;
|
|
@@ -388,7 +388,7 @@ interface SubState$5 {
|
|
|
388
388
|
|
|
389
389
|
declare const isMacLike: () => boolean;
|
|
390
390
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
391
|
-
declare const controlOrMetaKey: () => "
|
|
391
|
+
declare const controlOrMetaKey: () => "control" | "meta";
|
|
392
392
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
393
393
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
394
394
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|
|
@@ -3016,7 +3016,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
3016
3016
|
import semver from "semver";
|
|
3017
3017
|
|
|
3018
3018
|
// src/manager-api/version.ts
|
|
3019
|
-
var version = "10.0.0-beta.
|
|
3019
|
+
var version = "10.0.0-beta.4";
|
|
3020
3020
|
|
|
3021
3021
|
// src/manager-api/modules/versions.ts
|
|
3022
3022
|
var { VERSIONCHECK } = global8;
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bdftjtsviyb from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bdftjtsviyb from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bdftjtsviyb from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bdftjtsviyb.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bdftjtsviyb.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bdftjtsviyb.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-HAVE6SGK.js";
|
|
15
15
|
import {
|
|
16
16
|
boxen,
|
|
17
17
|
require_string_width,
|
|
18
18
|
wrapAnsi
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-JP4LEAXM.js";
|
|
20
20
|
import {
|
|
21
21
|
execaSync,
|
|
22
22
|
optionalEnvToBoolean
|
|
23
|
-
} from "../_node-chunks/chunk-
|
|
24
|
-
import "../_node-chunks/chunk-
|
|
25
|
-
import "../_node-chunks/chunk-IBC4BVDB.js";
|
|
23
|
+
} from "../_node-chunks/chunk-XA4TAMUS.js";
|
|
24
|
+
import "../_node-chunks/chunk-JSSBBVU5.js";
|
|
26
25
|
import {
|
|
27
26
|
require_prompts,
|
|
28
27
|
require_src
|
|
29
|
-
} from "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-3J7DQ6TI.js";
|
|
30
29
|
import {
|
|
31
30
|
require_picocolors
|
|
32
|
-
} from "../_node-chunks/chunk-
|
|
31
|
+
} from "../_node-chunks/chunk-N3GFXZDP.js";
|
|
33
32
|
import {
|
|
34
33
|
__commonJS,
|
|
35
34
|
__export,
|
|
36
35
|
__name,
|
|
37
36
|
__require,
|
|
38
37
|
__toESM
|
|
39
|
-
} from "../_node-chunks/chunk-
|
|
38
|
+
} from "../_node-chunks/chunk-MOO2Y4GI.js";
|
|
40
39
|
|
|
41
40
|
// ../node_modules/are-we-there-yet/lib/tracker-base.js
|
|
42
41
|
var require_tracker_base = __commonJS({
|
package/dist/preview/runtime.js
CHANGED
|
@@ -50139,6 +50139,7 @@ var userEvent = {
|
|
|
50139
50139
|
var testingLibrary = instrument(
|
|
50140
50140
|
{ ...dom_esm_exports },
|
|
50141
50141
|
{
|
|
50142
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys"),
|
|
50142
50143
|
intercept: /* @__PURE__ */ __name((method2, path) => path[0] === "fireEvent" || method2.startsWith("find") || method2.startsWith("waitFor"), "intercept")
|
|
50143
50144
|
}
|
|
50144
50145
|
);
|
|
@@ -50228,7 +50229,7 @@ var {
|
|
|
50228
50229
|
var uninstrumentedUserEvent = userEvent;
|
|
50229
50230
|
var { userEvent: userEvent2 } = instrument(
|
|
50230
50231
|
{ userEvent },
|
|
50231
|
-
{ intercept: true }
|
|
50232
|
+
{ intercept: true, getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys") }
|
|
50232
50233
|
);
|
|
50233
50234
|
|
|
50234
50235
|
// src/test/index.ts
|
|
@@ -50270,6 +50271,9 @@ var logActionsWhenMockCalled = /* @__PURE__ */ __name((context) => {
|
|
|
50270
50271
|
if (name === "spy") {
|
|
50271
50272
|
return;
|
|
50272
50273
|
}
|
|
50274
|
+
if (name === "vi.fn()") {
|
|
50275
|
+
return;
|
|
50276
|
+
}
|
|
50273
50277
|
if (!/^next\/.*::/.test(name) || [
|
|
50274
50278
|
"next/router::useRouter()",
|
|
50275
50279
|
"next/navigation::useRouter()",
|
|
@@ -52359,7 +52363,10 @@ var enhanceContext = /* @__PURE__ */ __name(async (context) => {
|
|
|
52359
52363
|
if (clipboard) {
|
|
52360
52364
|
context.userEvent = instrument(
|
|
52361
52365
|
{ userEvent: uninstrumentedUserEvent.setup() },
|
|
52362
|
-
{
|
|
52366
|
+
{
|
|
52367
|
+
intercept: true,
|
|
52368
|
+
getKeys: /* @__PURE__ */ __name((obj) => Object.keys(obj).filter((key) => key !== "eventWrapper"), "getKeys")
|
|
52369
|
+
}
|
|
52363
52370
|
).userEvent;
|
|
52364
52371
|
Object.defineProperty(globalThis.window.navigator, "clipboard", {
|
|
52365
52372
|
get: /* @__PURE__ */ __name(() => clipboard, "get"),
|