storybook 10.2.0-beta.0 → 10.2.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-JEJE63VV.js → builder-manager-N2LWOX5D.js} +12 -12
- package/dist/_node-chunks/{camelcase-HALRJETF.js → camelcase-5FSYVCZS.js} +7 -7
- package/dist/_node-chunks/{chunk-PHX5XNP7.js → chunk-2LLPTUG2.js} +6 -6
- package/dist/_node-chunks/{chunk-UH2GWMFP.js → chunk-2LRLWFCA.js} +16 -16
- package/dist/_node-chunks/chunk-2WBHN5ZN.js +23 -0
- package/dist/_node-chunks/{chunk-RPBXVPRB.js → chunk-4VD35T6X.js} +6 -6
- package/dist/_node-chunks/{chunk-XAL452XB.js → chunk-5J2THD7E.js} +7 -7
- package/dist/_node-chunks/{chunk-KL5CKFPT.js → chunk-5PCZPYCJ.js} +118 -106
- package/dist/_node-chunks/{chunk-GBZ23FIZ.js → chunk-6BGWV535.js} +13 -13
- package/dist/_node-chunks/{chunk-BLGRU6F5.js → chunk-7UVJF2ZL.js} +7 -7
- package/dist/_node-chunks/chunk-ADG4FYMH.js +61 -0
- package/dist/_node-chunks/{chunk-WNGL2VRJ.js → chunk-BTTNDYQ6.js} +6 -6
- package/dist/_node-chunks/{chunk-QL6L57W7.js → chunk-CQFU5LUX.js} +18 -20
- package/dist/_node-chunks/{chunk-7ZX5CX6B.js → chunk-EABA3I6M.js} +12 -12
- package/dist/_node-chunks/{chunk-BJOXVTWM.js → chunk-FWIMIUHV.js} +7 -7
- package/dist/_node-chunks/{chunk-YVXXMWQO.js → chunk-GHY5BYFV.js} +7 -7
- package/dist/_node-chunks/{chunk-B422K4XV.js → chunk-HBFPHSFB.js} +6 -6
- package/dist/_node-chunks/{chunk-MV2QM7P3.js → chunk-HODKH6S2.js} +6 -6
- package/dist/_node-chunks/chunk-J4YBZOS2.js +18 -0
- package/dist/_node-chunks/{chunk-ADTWC7QJ.js → chunk-J6PIL7K6.js} +7 -7
- package/dist/_node-chunks/{chunk-MLXCYULR.js → chunk-M4QILBFD.js} +7 -7
- package/dist/_node-chunks/{chunk-IZFEBWVB.js → chunk-M62QO44I.js} +6 -6
- package/dist/_node-chunks/{chunk-CG47ALAV.js → chunk-OJV6TVDO.js} +7 -7
- package/dist/_node-chunks/{chunk-IZ3ATSWZ.js → chunk-P2XLDRN4.js} +20 -20
- package/dist/_node-chunks/{chunk-Z7FLE2TR.js → chunk-PGC5F6XL.js} +6 -6
- package/dist/_node-chunks/{chunk-APUXGW3Y.js → chunk-SBB2XM7N.js} +7 -7
- package/dist/_node-chunks/{chunk-6UAQEBJX.js → chunk-WXDEINTE.js} +10 -10
- package/dist/_node-chunks/{chunk-72K4WVI5.js → chunk-XEBN3C26.js} +8 -8
- package/dist/_node-chunks/{chunk-3SKE4CCB.js → chunk-ZQQYNNTB.js} +9 -9
- package/dist/_node-chunks/{chunk-AXDM43NU.js → chunk-ZYMMEEUR.js} +6 -6
- package/dist/_node-chunks/{globby-4D4NBVG7.js → globby-SSZCWWA6.js} +9 -9
- package/dist/_node-chunks/{lib-RM2DWHZQ.js → lib-L2HJYQNA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-RAL72UTP.js → mdx-N42X6CFJ-H4SZRJXB.js} +8 -8
- package/dist/_node-chunks/{p-limit-6PUJQL5X.js → p-limit-EA5PER7Y.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.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +2 -2
- package/dist/core-server/index.js +35 -35
- 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 +25 -25
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +4 -4
- package/dist/manager/runtime.js +37 -29
- package/dist/manager-api/index.js +2 -2
- 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/dist/viewport/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-4UYAC7Y2.js +0 -18
- package/dist/_node-chunks/chunk-FH4FRUMP.js +0 -23
- package/dist/_node-chunks/chunk-YYDL7JOC.js +0 -61
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,26 +13,26 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M62QO44I.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-J6PIL7K6.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath,
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SBB2XM7N.js";
|
|
24
24
|
import {
|
|
25
25
|
join,
|
|
26
26
|
parse
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HODKH6S2.js";
|
|
28
28
|
import {
|
|
29
29
|
slash
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HBFPHSFB.js";
|
|
31
31
|
import {
|
|
32
32
|
__commonJS,
|
|
33
33
|
__require,
|
|
34
34
|
__toESM
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZYMMEEUR.js";
|
|
36
36
|
|
|
37
37
|
// ../../node_modules/ejs/lib/utils.js
|
|
38
38
|
var require_utils = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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-ZYMMEEUR.js";
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/camelcase/index.js
|
|
15
15
|
var UPPERCASE = /[\p{Lu}]/u, LOWERCASE = /[\p{Ll}]/u, LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/u, SEPARATORS = /[_.\- ]+/, IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u, LEADING_SEPARATORS = new RegExp("^" + SEPARATORS.source), SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu"), NUMBERS_AND_IDENTIFIER = new RegExp(String.raw`\d+` + IDENTIFIER.source, "gu"), preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase2) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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_build
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J6PIL7K6.js";
|
|
15
15
|
import {
|
|
16
16
|
StorybookError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4VD35T6X.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BTTNDYQ6.js";
|
|
21
21
|
import {
|
|
22
22
|
resolvePackageDir
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SBB2XM7N.js";
|
|
24
24
|
import {
|
|
25
25
|
relative
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-HODKH6S2.js";
|
|
27
27
|
import {
|
|
28
28
|
STORYBOOK_FN_PLACEHOLDER,
|
|
29
29
|
generateDummyArgsFromArgTypes,
|
|
30
30
|
loadConfig,
|
|
31
31
|
printConfig
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CQFU5LUX.js";
|
|
33
33
|
import {
|
|
34
34
|
require_dist
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7UVJF2ZL.js";
|
|
36
36
|
import {
|
|
37
37
|
require_picocolors
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OJV6TVDO.js";
|
|
39
39
|
import {
|
|
40
40
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ZYMMEEUR.js";
|
|
42
42
|
|
|
43
43
|
// src/core-server/utils/server-statics.ts
|
|
44
44
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -259,7 +259,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
259
259
|
var import_ts_dedent2 = __toESM(require_dist(), 1);
|
|
260
260
|
|
|
261
261
|
// src/core-server/utils/get-component-variable-name.ts
|
|
262
|
-
var getComponentVariableName = async (name) => (await import("./camelcase-
|
|
262
|
+
var getComponentVariableName = async (name) => (await import("./camelcase-5FSYVCZS.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
263
263
|
|
|
264
264
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
265
265
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
any
|
|
14
|
+
} from "./chunk-BTTNDYQ6.js";
|
|
15
|
+
|
|
16
|
+
// src/cli/detect.ts
|
|
17
|
+
async function detectPnp() {
|
|
18
|
+
return !!any([".pnp.js", ".pnp.cjs"]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
detectPnp
|
|
23
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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_dxneh53ovgi from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_dxneh53ovgi from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_dxneh53ovgi from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_dxneh53ovgi.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_dxneh53ovgi.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_dxneh53ovgi.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_phceqgr585q.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZYMMEEUR.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/picomatch/lib/constants.js
|
|
18
18
|
var require_constants = __commonJS({
|