storybook 10.2.0-alpha.2 → 10.2.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-MOYJJEXA.js → chunk-Q5RYDXT3.js} +3 -4
- package/dist/_node-chunks/{builder-manager-ZK4QXZNX.js → builder-manager-U6SN6ZED.js} +12 -12
- package/dist/_node-chunks/{camelcase-QWQG7I72.js → camelcase-GLXVGCEV.js} +7 -7
- package/dist/_node-chunks/{chunk-HMFROKHU.js → chunk-2IFACTU4.js} +7 -7
- package/dist/_node-chunks/{chunk-TOXVUAH2.js → chunk-4VZME5CV.js} +6 -6
- package/dist/_node-chunks/{chunk-OV2CP4VV.js → chunk-5SCVRD6U.js} +6 -6
- package/dist/_node-chunks/{chunk-WUKWNPSQ.js → chunk-5ZGZ22PV.js} +9 -9
- package/dist/_node-chunks/{chunk-Q5ZQH2OQ.js → chunk-6RXAFKLM.js} +7 -7
- package/dist/_node-chunks/chunk-6WHPDWFA.js +61 -0
- package/dist/_node-chunks/chunk-B6AJKALV.js +20 -0
- package/dist/_node-chunks/{chunk-EXZXVBZO.js → chunk-C2G5ML5F.js} +7 -7
- package/dist/_node-chunks/chunk-CFCZ5PKC.js +18 -0
- package/dist/_node-chunks/{chunk-NKOHF7TQ.js → chunk-DO56XDMZ.js} +10 -10
- package/dist/_node-chunks/{chunk-URBB5EGY.js → chunk-E6CKDKNL.js} +7 -7
- package/dist/_node-chunks/{chunk-QFSK4B7R.js → chunk-H4BZRGVO.js} +8 -8
- package/dist/_node-chunks/{chunk-UWJ4BOOL.js → chunk-HGYHQF7Z.js} +9 -9
- package/dist/_node-chunks/{chunk-GKEAARBQ.js → chunk-HKTRFCJD.js} +6 -6
- package/dist/_node-chunks/{chunk-6OZRMRVO.js → chunk-HYH2IT7K.js} +7 -7
- package/dist/_node-chunks/{chunk-2AFVBCGF.js → chunk-IKSK6CEY.js} +6 -6
- package/dist/_node-chunks/{chunk-FZFZ5TOM.js → chunk-KP6H4S3L.js} +6 -6
- package/dist/_node-chunks/{chunk-I5TOD3AY.js → chunk-LHBDNMEP.js} +12 -12
- package/dist/_node-chunks/{chunk-WOS3OQVT.js → chunk-MUWHX7GN.js} +6 -6
- package/dist/_node-chunks/{chunk-CW7HJRCY.js → chunk-N3O3HJMU.js} +7 -7
- package/dist/_node-chunks/{chunk-KVNLJSAB.js → chunk-NKUDIVPF.js} +7 -7
- package/dist/_node-chunks/chunk-O5OIO47U.js +23 -0
- package/dist/_node-chunks/{chunk-XFU23B4C.js → chunk-Q27GKV7Y.js} +7 -7
- package/dist/_node-chunks/{chunk-DWVHBQGR.js → chunk-Q47IIVLL.js} +8 -8
- package/dist/_node-chunks/{chunk-5VZMCPTH.js → chunk-SM7QXYN4.js} +43 -27
- package/dist/_node-chunks/{chunk-VJPI73BB.js → chunk-VKFEIIOF.js} +39 -24
- package/dist/_node-chunks/{chunk-R2J3OB3H.js → chunk-XYVZIRZC.js} +6 -6
- package/dist/_node-chunks/{chunk-RGQC4G3L.js → chunk-YPCGEC3N.js} +13 -13
- package/dist/_node-chunks/{dist-UBFMIJZC.js → dist-GGDI7EVD.js} +9 -9
- package/dist/_node-chunks/{globby-VD3CGPVI.js → globby-DY2UCDKN.js} +9 -9
- package/dist/_node-chunks/{lib-MMJB47J3.js → lib-PFKECSVA.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-3J2G7NZZ.js → mdx-N42X6CFJ-OPAAI5WZ.js} +8 -8
- package/dist/_node-chunks/{p-limit-SOBWTEVH.js → p-limit-PMYE6ZFC.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +24 -18
- 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.d.ts +25 -18
- package/dist/common/index.js +19 -19
- package/dist/core-server/index.js +35 -35
- 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/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +3102 -3017
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +706 -621
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +23 -23
- package/dist/test/index.js +370 -286
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-CLCLRZYL.js +0 -61
- package/dist/_node-chunks/chunk-DF3QP62W.js +0 -18
- package/dist/_node-chunks/chunk-EVBCPGQO.js +0 -20
- package/dist/_node-chunks/chunk-PCMFKXWQ.js +0 -23
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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 "../../_node-chunks/chunk-
|
|
12
|
+
import "../../_node-chunks/chunk-LHBDNMEP.js";
|
|
13
13
|
import {
|
|
14
14
|
AbortError,
|
|
15
15
|
after,
|
|
@@ -32,45 +32,45 @@ import {
|
|
|
32
32
|
sendTelemetryError,
|
|
33
33
|
throttle,
|
|
34
34
|
unary
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
36
|
-
import "../../_node-chunks/chunk-
|
|
37
|
-
import "../../_node-chunks/chunk-
|
|
38
|
-
import "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-YPCGEC3N.js";
|
|
36
|
+
import "../../_node-chunks/chunk-6RXAFKLM.js";
|
|
37
|
+
import "../../_node-chunks/chunk-O5OIO47U.js";
|
|
38
|
+
import "../../_node-chunks/chunk-MUWHX7GN.js";
|
|
39
39
|
import {
|
|
40
40
|
getLastEvents,
|
|
41
41
|
getSessionId
|
|
42
|
-
} from "../../_node-chunks/chunk-
|
|
42
|
+
} from "../../_node-chunks/chunk-KP6H4S3L.js";
|
|
43
43
|
import {
|
|
44
44
|
globalSettings
|
|
45
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
+
} from "../../_node-chunks/chunk-5ZGZ22PV.js";
|
|
46
46
|
import {
|
|
47
47
|
invariant
|
|
48
|
-
} from "../../_node-chunks/chunk-
|
|
48
|
+
} from "../../_node-chunks/chunk-HKTRFCJD.js";
|
|
49
49
|
import {
|
|
50
50
|
resolvePackageDir
|
|
51
|
-
} from "../../_node-chunks/chunk-
|
|
52
|
-
import "../../_node-chunks/chunk-
|
|
51
|
+
} from "../../_node-chunks/chunk-E6CKDKNL.js";
|
|
52
|
+
import "../../_node-chunks/chunk-XYVZIRZC.js";
|
|
53
53
|
import {
|
|
54
54
|
isAbsolute,
|
|
55
55
|
join
|
|
56
|
-
} from "../../_node-chunks/chunk-
|
|
56
|
+
} from "../../_node-chunks/chunk-5SCVRD6U.js";
|
|
57
57
|
import {
|
|
58
58
|
loadConfig
|
|
59
|
-
} from "../../_node-chunks/chunk-
|
|
59
|
+
} from "../../_node-chunks/chunk-H4BZRGVO.js";
|
|
60
60
|
import {
|
|
61
61
|
require_dist
|
|
62
|
-
} from "../../_node-chunks/chunk-
|
|
63
|
-
import "../../_node-chunks/chunk-
|
|
64
|
-
import "../../_node-chunks/chunk-
|
|
62
|
+
} from "../../_node-chunks/chunk-N3O3HJMU.js";
|
|
63
|
+
import "../../_node-chunks/chunk-HGYHQF7Z.js";
|
|
64
|
+
import "../../_node-chunks/chunk-HYH2IT7K.js";
|
|
65
65
|
import {
|
|
66
66
|
require_picocolors
|
|
67
|
-
} from "../../_node-chunks/chunk-
|
|
67
|
+
} from "../../_node-chunks/chunk-Q27GKV7Y.js";
|
|
68
68
|
import {
|
|
69
69
|
__commonJS,
|
|
70
70
|
__export,
|
|
71
71
|
__require,
|
|
72
72
|
__toESM
|
|
73
|
-
} from "../../_node-chunks/chunk-
|
|
73
|
+
} from "../../_node-chunks/chunk-4VZME5CV.js";
|
|
74
74
|
|
|
75
75
|
// ../../node_modules/shell-quote/quote.js
|
|
76
76
|
var require_quote = __commonJS({
|
|
@@ -537,7 +537,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
537
537
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
538
538
|
|
|
539
539
|
// src/core-server/utils/get-component-variable-name.ts
|
|
540
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
540
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-GLXVGCEV.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
541
541
|
|
|
542
542
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
543
543
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -802,7 +802,7 @@ async function searchFiles({
|
|
|
802
802
|
ignoredFiles = IGNORED_FILES,
|
|
803
803
|
fileExtensions = FILE_EXTENSIONS
|
|
804
804
|
}) {
|
|
805
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
805
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-DY2UCDKN.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
806
806
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
807
807
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
808
808
|
];
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2512dr0mzhu from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2512dr0mzhu from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2512dr0mzhu from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2512dr0mzhu.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2512dr0mzhu.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2512dr0mzhu.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-H4BZRGVO.js";
|
|
42
|
+
import "../_node-chunks/chunk-N3O3HJMU.js";
|
|
43
|
+
import "../_node-chunks/chunk-4VZME5CV.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../_browser-chunks/chunk-ZUWEVLDX.js";
|
|
5
5
|
import {
|
|
6
6
|
processError
|
|
7
|
-
} from "../_browser-chunks/chunk-
|
|
7
|
+
} from "../_browser-chunks/chunk-Q5RYDXT3.js";
|
|
8
8
|
import "../_browser-chunks/chunk-A242L54C.js";
|
|
9
9
|
|
|
10
10
|
// src/instrumenter/instrumenter.ts
|