storybook 10.1.0-beta.1 → 10.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node-chunks/{builder-manager-FTVC2JL7.js → builder-manager-DE5CZGPU.js} +12 -12
- package/dist/_node-chunks/{camelcase-3SMT5WKC.js → camelcase-3GPWEIYB.js} +7 -7
- package/dist/_node-chunks/{chunk-2OVULPK3.js → chunk-3FVKDIQ7.js} +6 -6
- package/dist/_node-chunks/{chunk-VRICJPXY.js → chunk-3GUEJ3O3.js} +6 -6
- package/dist/_node-chunks/{chunk-XGNRK7QB.js → chunk-43AQPYQJ.js} +7 -7
- package/dist/_node-chunks/{chunk-AREL5IXS.js → chunk-45XWOXXM.js} +7 -7
- package/dist/_node-chunks/{chunk-RURZIE3W.js → chunk-4CHMPSHM.js} +8 -8
- package/dist/_node-chunks/{chunk-SQSFX47N.js → chunk-6T6VTXDE.js} +7 -7
- package/dist/_node-chunks/{chunk-6L7FFBOW.js → chunk-77QRXLGA.js} +6 -6
- package/dist/_node-chunks/chunk-CEFT3TLW.js +18 -0
- package/dist/_node-chunks/{chunk-6ULDIDXV.js → chunk-D2CQN4LQ.js} +9 -9
- package/dist/_node-chunks/{chunk-5V4A6MSI.js → chunk-EXJNST6P.js} +7 -7
- package/dist/_node-chunks/{chunk-N3BJOOY5.js → chunk-F4HHDWJV.js} +6 -6
- package/dist/_node-chunks/{chunk-6DEMT5VX.js → chunk-HFPMBHAF.js} +13 -13
- package/dist/_node-chunks/chunk-HG5BSY5V.js +23 -0
- package/dist/_node-chunks/{chunk-Y2FOTPAE.js → chunk-HGDN3STX.js} +7 -7
- package/dist/_node-chunks/{chunk-IUYZQKSX.js → chunk-INMOMYVB.js} +6 -6
- package/dist/_node-chunks/{chunk-O5FMCQHP.js → chunk-KIW5GZKQ.js} +10 -10
- package/dist/_node-chunks/{chunk-Y4UYN72K.js → chunk-NOLZUVQN.js} +20 -20
- package/dist/_node-chunks/{chunk-K673CX4Q.js → chunk-ODJGHT54.js} +7 -7
- package/dist/_node-chunks/{chunk-ZMCJS2GU.js → chunk-PJAOEV2K.js} +6 -6
- package/dist/_node-chunks/{chunk-WIWWMCEU.js → chunk-PQF6TGKN.js} +6 -6
- package/dist/_node-chunks/{chunk-RIKQZHV3.js → chunk-QAX2QIAO.js} +6 -6
- package/dist/_node-chunks/{chunk-54NMJ4II.js → chunk-RSFKUYLE.js} +8 -8
- package/dist/_node-chunks/{chunk-TURUTKVH.js → chunk-RZEXP6OF.js} +7 -7
- package/dist/_node-chunks/{chunk-RVII4SK6.js → chunk-UWKUW2OJ.js} +14 -14
- package/dist/_node-chunks/chunk-Y35QWPHB.js +61 -0
- package/dist/_node-chunks/{chunk-3JJPSDXI.js → chunk-YZEOU7D5.js} +9 -9
- package/dist/_node-chunks/{chunk-FNYKBULZ.js → chunk-Z7F5CZXW.js} +7 -7
- package/dist/_node-chunks/{chunk-S3PBHOVC.js → chunk-ZH4F5JWQ.js} +34 -24
- package/dist/_node-chunks/{dist-TZLZ3T6L.js → dist-RFQRGJD5.js} +9 -9
- package/dist/_node-chunks/{globby-22GFCZQD.js → globby-WIMKMN5Q.js} +9 -9
- package/dist/_node-chunks/{lib-37NQ4ZIJ.js → lib-OBEY3MUM.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-2TRB7OEH.js → mdx-N42X6CFJ-7XA7LOVG.js} +8 -8
- package/dist/_node-chunks/{p-limit-UD7TYFDW.js → p-limit-VII3MYEU.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -12
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +5 -4
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +33 -33
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +7 -10
- package/dist/manager-api/index.d.ts +178 -178
- package/dist/manager-api/index.js +7 -10
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview-api/index.d.ts +67 -68
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-DWA53E73.js +0 -23
- package/dist/_node-chunks/chunk-KJAFCNZ3.js +0 -61
- package/dist/_node-chunks/chunk-Z4BMBA5L.js +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.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_dist
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6T6VTXDE.js";
|
|
15
15
|
import {
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
18
18
|
|
|
19
19
|
// src/csf-tools/CsfFile.ts
|
|
20
20
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.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
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/@storybook/docs-mdx/dist/chunk-H6DQNFQR.js
|
|
17
17
|
var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __require2 = ((x) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(x, {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.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
|
version
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CEFT3TLW.js";
|
|
15
15
|
import {
|
|
16
16
|
createFileSystemCache,
|
|
17
17
|
execa,
|
|
@@ -19,28 +19,28 @@ import {
|
|
|
19
19
|
getProjectRoot,
|
|
20
20
|
resolvePathInStorybookCache,
|
|
21
21
|
up
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NOLZUVQN.js";
|
|
23
23
|
import {
|
|
24
24
|
getSessionId,
|
|
25
25
|
nanoid,
|
|
26
26
|
set
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3GUEJ3O3.js";
|
|
28
28
|
import {
|
|
29
29
|
globalSettings
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-YZEOU7D5.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z7F5CZXW.js";
|
|
34
34
|
import {
|
|
35
35
|
slash
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-PJAOEV2K.js";
|
|
37
37
|
import {
|
|
38
38
|
require_dist
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6T6VTXDE.js";
|
|
40
40
|
import {
|
|
41
41
|
__commonJS,
|
|
42
42
|
__toESM
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
44
44
|
|
|
45
45
|
// ../node_modules/fetch-retry/index.js
|
|
46
46
|
var require_fetch_retry = __commonJS({
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
// src/common/versions.ts
|
|
14
|
+
var versions_default = {
|
|
15
|
+
"@storybook/addon-a11y": "10.1.0-beta.2",
|
|
16
|
+
"@storybook/addon-docs": "10.1.0-beta.2",
|
|
17
|
+
"@storybook/addon-links": "10.1.0-beta.2",
|
|
18
|
+
"@storybook/addon-onboarding": "10.1.0-beta.2",
|
|
19
|
+
"storybook-addon-pseudo-states": "10.1.0-beta.2",
|
|
20
|
+
"@storybook/addon-themes": "10.1.0-beta.2",
|
|
21
|
+
"@storybook/addon-vitest": "10.1.0-beta.2",
|
|
22
|
+
"@storybook/builder-vite": "10.1.0-beta.2",
|
|
23
|
+
"@storybook/builder-webpack5": "10.1.0-beta.2",
|
|
24
|
+
storybook: "10.1.0-beta.2",
|
|
25
|
+
"@storybook/angular": "10.1.0-beta.2",
|
|
26
|
+
"@storybook/ember": "10.1.0-beta.2",
|
|
27
|
+
"@storybook/html-vite": "10.1.0-beta.2",
|
|
28
|
+
"@storybook/nextjs": "10.1.0-beta.2",
|
|
29
|
+
"@storybook/nextjs-vite": "10.1.0-beta.2",
|
|
30
|
+
"@storybook/preact-vite": "10.1.0-beta.2",
|
|
31
|
+
"@storybook/react-native-web-vite": "10.1.0-beta.2",
|
|
32
|
+
"@storybook/react-vite": "10.1.0-beta.2",
|
|
33
|
+
"@storybook/react-webpack5": "10.1.0-beta.2",
|
|
34
|
+
"@storybook/server-webpack5": "10.1.0-beta.2",
|
|
35
|
+
"@storybook/svelte-vite": "10.1.0-beta.2",
|
|
36
|
+
"@storybook/sveltekit": "10.1.0-beta.2",
|
|
37
|
+
"@storybook/vue3-vite": "10.1.0-beta.2",
|
|
38
|
+
"@storybook/web-components-vite": "10.1.0-beta.2",
|
|
39
|
+
sb: "10.1.0-beta.2",
|
|
40
|
+
"@storybook/cli": "10.1.0-beta.2",
|
|
41
|
+
"@storybook/codemod": "10.1.0-beta.2",
|
|
42
|
+
"@storybook/core-webpack": "10.1.0-beta.2",
|
|
43
|
+
"create-storybook": "10.1.0-beta.2",
|
|
44
|
+
"@storybook/csf-plugin": "10.1.0-beta.2",
|
|
45
|
+
"eslint-plugin-storybook": "10.1.0-beta.2",
|
|
46
|
+
"@storybook/react-dom-shim": "10.1.0-beta.2",
|
|
47
|
+
"@storybook/preset-create-react-app": "10.1.0-beta.2",
|
|
48
|
+
"@storybook/preset-react-webpack": "10.1.0-beta.2",
|
|
49
|
+
"@storybook/preset-server-webpack": "10.1.0-beta.2",
|
|
50
|
+
"@storybook/html": "10.1.0-beta.2",
|
|
51
|
+
"@storybook/preact": "10.1.0-beta.2",
|
|
52
|
+
"@storybook/react": "10.1.0-beta.2",
|
|
53
|
+
"@storybook/server": "10.1.0-beta.2",
|
|
54
|
+
"@storybook/svelte": "10.1.0-beta.2",
|
|
55
|
+
"@storybook/vue3": "10.1.0-beta.2",
|
|
56
|
+
"@storybook/web-components": "10.1.0-beta.2"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
versions_default
|
|
61
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.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
|
invariant
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QAX2QIAO.js";
|
|
15
15
|
import {
|
|
16
16
|
require_dist
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6T6VTXDE.js";
|
|
18
18
|
import {
|
|
19
19
|
__export,
|
|
20
20
|
__toESM
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
22
22
|
|
|
23
23
|
// src/cli/globalSettings.ts
|
|
24
24
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_jdojl2z4eei.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
dirname,
|
|
14
14
|
join
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PQF6TGKN.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/exsolve/dist/index.mjs
|
|
18
18
|
import fs, { lstatSync, realpathSync, statSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
any,
|
|
14
14
|
invariant,
|
|
15
15
|
up2 as up
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-INMOMYVB.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePackageDir
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z7F5CZXW.js";
|
|
20
20
|
import {
|
|
21
21
|
require_dist
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6T6VTXDE.js";
|
|
23
23
|
import {
|
|
24
24
|
babelParse,
|
|
25
25
|
recast,
|
|
26
26
|
traverse,
|
|
27
27
|
types
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-D2CQN4LQ.js";
|
|
29
29
|
import {
|
|
30
30
|
require_picocolors
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-43AQPYQJ.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
35
35
|
__toESM
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
37
37
|
|
|
38
38
|
// ../node_modules/esprima/dist/esprima.js
|
|
39
39
|
var require_esprima = __commonJS({
|
|
@@ -5809,9 +5809,10 @@ import { CLI_COLORS } from "storybook/internal/node-logger";
|
|
|
5809
5809
|
import { logger as logger3, prompt as prompt3 } from "storybook/internal/node-logger";
|
|
5810
5810
|
import { ErrorCollector } from "storybook/internal/telemetry";
|
|
5811
5811
|
var import_ts_dedent2 = __toESM(require_dist(), 1);
|
|
5812
|
-
import { coerce as coerce2, satisfies as satisfies2 } from "semver";
|
|
5812
|
+
import { coerce as coerce2, minVersion, satisfies as satisfies2, validRange } from "semver";
|
|
5813
5813
|
var AddonVitestService = class {
|
|
5814
|
-
constructor() {
|
|
5814
|
+
constructor(packageManager) {
|
|
5815
|
+
this.packageManager = packageManager;
|
|
5815
5816
|
this.supportedFrameworks = [
|
|
5816
5817
|
"html-vite" /* HTML_VITE */,
|
|
5817
5818
|
"nextjs-vite" /* NEXTJS_VITE */,
|
|
@@ -5833,15 +5834,24 @@ var AddonVitestService = class {
|
|
|
5833
5834
|
* - Next.js specific: @storybook/nextjs-vite
|
|
5834
5835
|
* - Coverage reporter: @vitest/coverage-v8
|
|
5835
5836
|
*/
|
|
5836
|
-
async collectDependencies(
|
|
5837
|
-
let allDeps = packageManager.getAllDependencies(), dependencies = [], vitestVersionSpecifier = await packageManager.getInstalledVersion("vitest")
|
|
5837
|
+
async collectDependencies() {
|
|
5838
|
+
let allDeps = this.packageManager.getAllDependencies(), dependencies = [], vitestVersionSpecifier = await this.packageManager.getInstalledVersion("vitest");
|
|
5839
|
+
!vitestVersionSpecifier && allDeps.vitest && (vitestVersionSpecifier = allDeps.vitest);
|
|
5840
|
+
let isVitest4OrNewer = !0;
|
|
5841
|
+
if (vitestVersionSpecifier) {
|
|
5842
|
+
let range = validRange(vitestVersionSpecifier), versionToCheck = range ? minVersion(range)?.version : coerce2(vitestVersionSpecifier)?.version;
|
|
5843
|
+
isVitest4OrNewer = versionToCheck ? satisfies2(versionToCheck, ">=4.0.0") : !0;
|
|
5844
|
+
}
|
|
5845
|
+
let basePackages = [
|
|
5838
5846
|
"vitest",
|
|
5839
5847
|
"playwright",
|
|
5840
|
-
|
|
5848
|
+
isVitest4OrNewer ? "@vitest/browser-playwright" : "@vitest/browser"
|
|
5841
5849
|
];
|
|
5842
5850
|
for (let pkg of basePackages)
|
|
5843
5851
|
allDeps[pkg] || dependencies.push(pkg);
|
|
5844
|
-
let v8Version = await packageManager.getInstalledVersion("@vitest/coverage-v8"), istanbulVersion = await packageManager.getInstalledVersion(
|
|
5852
|
+
let v8Version = await this.packageManager.getInstalledVersion("@vitest/coverage-v8"), istanbulVersion = await this.packageManager.getInstalledVersion(
|
|
5853
|
+
"@vitest/coverage-istanbul"
|
|
5854
|
+
);
|
|
5845
5855
|
return !v8Version && !istanbulVersion && dependencies.push("@vitest/coverage-v8"), dependencies.map((pkg) => pkg.includes("vitest") && vitestVersionSpecifier ? `${pkg}@${vitestVersionSpecifier}` : pkg);
|
|
5846
5856
|
}
|
|
5847
5857
|
/**
|
|
@@ -5855,7 +5865,7 @@ var AddonVitestService = class {
|
|
|
5855
5865
|
* @param options - Installation options
|
|
5856
5866
|
* @returns Array of error messages if installation fails
|
|
5857
5867
|
*/
|
|
5858
|
-
async installPlaywright(
|
|
5868
|
+
async installPlaywright(options = {}) {
|
|
5859
5869
|
let errors = [], playwrightCommand = ["playwright", "install", "chromium", "--with-deps"];
|
|
5860
5870
|
try {
|
|
5861
5871
|
(options.yes ? !0 : await (async () => (logger3.log(import_ts_dedent2.dedent`
|
|
@@ -5865,7 +5875,7 @@ var AddonVitestService = class {
|
|
|
5865
5875
|
message: "Do you want to install Playwright with Chromium now?",
|
|
5866
5876
|
initialValue: !0
|
|
5867
5877
|
})))()) ? await prompt3.executeTaskWithSpinner(
|
|
5868
|
-
(signal) => packageManager.runPackageCommand({
|
|
5878
|
+
(signal) => this.packageManager.runPackageCommand({
|
|
5869
5879
|
args: playwrightCommand,
|
|
5870
5880
|
stdio: ["inherit", "pipe", "pipe"],
|
|
5871
5881
|
signal
|
|
@@ -5901,7 +5911,7 @@ var AddonVitestService = class {
|
|
|
5901
5911
|
options.builder !== "vite" /* VITE */ && reasons.push("Non-Vite builder is not supported"), this.supportedFrameworks.some(
|
|
5902
5912
|
(framework) => options.framework === framework
|
|
5903
5913
|
) || reasons.push(`Test feature cannot yet be used with ${options.framework}`);
|
|
5904
|
-
let packageVersionResult = await this.validatePackageVersions(
|
|
5914
|
+
let packageVersionResult = await this.validatePackageVersions();
|
|
5905
5915
|
if (!packageVersionResult.compatible && packageVersionResult.reasons && reasons.push(...packageVersionResult.reasons), options.projectRoot) {
|
|
5906
5916
|
let configResult = await this.validateConfigFiles(options.projectRoot);
|
|
5907
5917
|
!configResult.compatible && configResult.reasons && reasons.push(...configResult.reasons);
|
|
@@ -5912,12 +5922,12 @@ var AddonVitestService = class {
|
|
|
5912
5922
|
* Validate package versions for addon-vitest compatibility Public method to allow early
|
|
5913
5923
|
* validation before framework detection
|
|
5914
5924
|
*/
|
|
5915
|
-
async validatePackageVersions(
|
|
5916
|
-
let reasons = [], vitestVersionSpecifier = await packageManager.getInstalledVersion("vitest"), coercedVitestVersion = vitestVersionSpecifier ? coerce2(vitestVersionSpecifier) : null;
|
|
5925
|
+
async validatePackageVersions() {
|
|
5926
|
+
let reasons = [], vitestVersionSpecifier = await this.packageManager.getInstalledVersion("vitest"), coercedVitestVersion = vitestVersionSpecifier ? coerce2(vitestVersionSpecifier) : null;
|
|
5917
5927
|
coercedVitestVersion && !satisfies2(coercedVitestVersion, ">=3.0.0") && reasons.push(
|
|
5918
5928
|
`The addon requires Vitest 3.0.0 or higher. You are currently using ${vitestVersionSpecifier}.`
|
|
5919
5929
|
);
|
|
5920
|
-
let mswVersionSpecifier = await packageManager.getInstalledVersion("msw"), coercedMswVersion = mswVersionSpecifier ? coerce2(mswVersionSpecifier) : null;
|
|
5930
|
+
let mswVersionSpecifier = await this.packageManager.getInstalledVersion("msw"), coercedMswVersion = mswVersionSpecifier ? coerce2(mswVersionSpecifier) : null;
|
|
5921
5931
|
return coercedMswVersion && !satisfies2(coercedMswVersion, ">=2.0.0") && reasons.push(
|
|
5922
5932
|
`The addon uses Vitest behind the scenes, which supports only version 2 and above of MSW. However, we have detected version ${coercedMswVersion.version} in this project.`
|
|
5923
5933
|
), reasons.length > 0 ? { compatible: !1, reasons } : { compatible: !0 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.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
|
toEstree
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-RZEXP6OF.js";
|
|
15
|
+
import "./chunk-3FVKDIQ7.js";
|
|
16
16
|
|
|
17
17
|
// ../node_modules/@storybook/docs-mdx/dist/index.js
|
|
18
18
|
var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute" && n.name.name === what), getAttrValue = (elt, what) => getAttr(elt, what)?.value, getAttrLiteral = (elt, what) => {
|
|
@@ -107,7 +107,7 @@ var getAttr = (elt, what) => elt.attributes.find((n) => n.type === "JSXAttribute
|
|
|
107
107
|
isTemplate: !1,
|
|
108
108
|
metaTags: void 0,
|
|
109
109
|
imports: void 0
|
|
110
|
-
}, { compile } = await import("./mdx-N42X6CFJ-
|
|
110
|
+
}, { compile } = await import("./mdx-N42X6CFJ-7XA7LOVG.js");
|
|
111
111
|
await compile(code, {
|
|
112
112
|
rehypePlugins: [[plugin, store]]
|
|
113
113
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,15 +12,15 @@ var require = CJS_COMPAT_NODE_MODULE_jdojl2z4eei.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
require_picomatch,
|
|
14
14
|
require_utils
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EXJNST6P.js";
|
|
16
16
|
import {
|
|
17
17
|
slash
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PJAOEV2K.js";
|
|
19
19
|
import {
|
|
20
20
|
__commonJS,
|
|
21
21
|
__require,
|
|
22
22
|
__toESM
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
24
24
|
|
|
25
25
|
// ../node_modules/fast-glob/out/utils/array.js
|
|
26
26
|
var require_array = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3FVKDIQ7.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/app-root-dir/lib/index.js
|
|
19
19
|
var require_lib = __commonJS({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
position,
|
|
22
22
|
start,
|
|
23
23
|
toEstree
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-RZEXP6OF.js";
|
|
25
|
+
import "./chunk-3FVKDIQ7.js";
|
|
26
26
|
|
|
27
27
|
// ../node_modules/@storybook/docs-mdx/dist/mdx-N42X6CFJ.js
|
|
28
28
|
import { default as default2 } from "path";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-3FVKDIQ7.js";
|
|
13
13
|
|
|
14
14
|
// ../node_modules/yocto-queue/index.js
|
|
15
15
|
var Node = class {
|
package/dist/babel/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_hgecnnw0nrt from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_hgecnnw0nrt from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_hgecnnw0nrt from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_hgecnnw0nrt.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_hgecnnw0nrt.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_hgecnnw0nrt.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
recast,
|
|
23
23
|
traverse,
|
|
24
24
|
types
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-D2CQN4LQ.js";
|
|
26
|
+
import "../_node-chunks/chunk-ODJGHT54.js";
|
|
27
|
+
import "../_node-chunks/chunk-43AQPYQJ.js";
|
|
28
|
+
import "../_node-chunks/chunk-3FVKDIQ7.js";
|
|
29
29
|
var export_transformSync = import_core.transformSync;
|
|
30
30
|
export {
|
|
31
31
|
BabelFileClass,
|