storybook 10.1.9 → 10.1.11
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-GPBRNGY5.js → chunk-MDLQUVZN.js} +5 -5
- package/dist/_node-chunks/{builder-manager-6KFI2KAU.js → builder-manager-AYK7HUZR.js} +12 -12
- package/dist/_node-chunks/{camelcase-COP2F5ZK.js → camelcase-7MOJ2FFW.js} +7 -7
- package/dist/_node-chunks/{chunk-3Q5I3QYJ.js → chunk-2372JZ52.js} +13 -13
- package/dist/_node-chunks/chunk-5GQBCZKW.js +23 -0
- package/dist/_node-chunks/{chunk-YPHI3MHA.js → chunk-DRM3MJ7Y.js} +6 -6
- package/dist/_node-chunks/{chunk-YQSIMXLR.js → chunk-DSBSHG6H.js} +7 -7
- package/dist/_node-chunks/{chunk-HDC6BP27.js → chunk-DWPXURLN.js} +8 -8
- package/dist/_node-chunks/{chunk-E72C42FO.js → chunk-EQLFU5BD.js} +9 -9
- package/dist/_node-chunks/{chunk-SCU5NENN.js → chunk-GRQFL3SI.js} +8 -8
- package/dist/_node-chunks/{chunk-FBCRFPN7.js → chunk-GSQVC33F.js} +7 -7
- package/dist/_node-chunks/{chunk-XN4JAH6R.js → chunk-HF7KKBBR.js} +7 -7
- package/dist/_node-chunks/{chunk-X7HAU6DT.js → chunk-HH2SN3H2.js} +7 -7
- package/dist/_node-chunks/{chunk-OLRSOKQJ.js → chunk-JLFR6DEF.js} +12 -12
- package/dist/_node-chunks/{chunk-JBNSDLDN.js → chunk-LE232J7F.js} +7 -7
- package/dist/_node-chunks/{chunk-4GBGZBUN.js → chunk-N2XJQMXW.js} +9 -9
- package/dist/_node-chunks/{chunk-VTDXD32C.js → chunk-NKSLKQ5F.js} +6 -6
- package/dist/_node-chunks/{chunk-YAOMP7IG.js → chunk-O7UZQAUS.js} +7 -7
- package/dist/_node-chunks/{chunk-B4AQTYUM.js → chunk-ONZANTK7.js} +7 -7
- package/dist/_node-chunks/{chunk-7G4IHNBS.js → chunk-OQY7D22D.js} +6 -6
- package/dist/_node-chunks/chunk-PF7HEE6F.js +20 -0
- package/dist/_node-chunks/{chunk-VPDFGH66.js → chunk-PFJRSBIJ.js} +6 -6
- package/dist/_node-chunks/{chunk-6XH4P37X.js → chunk-Q4DOC7HF.js} +32 -32
- package/dist/_node-chunks/{chunk-OJN2ZLGQ.js → chunk-R2IXPA5M.js} +12 -12
- package/dist/_node-chunks/{chunk-W5LQJEKW.js → chunk-SLZHVDN6.js} +7 -7
- package/dist/_node-chunks/chunk-WAL24RZR.js +61 -0
- package/dist/_node-chunks/{chunk-FANIK3VE.js → chunk-WANDQWBR.js} +6 -6
- package/dist/_node-chunks/{chunk-V6HMUOKZ.js → chunk-WBTDMYZM.js} +10 -10
- package/dist/_node-chunks/{chunk-NW62H5AE.js → chunk-XS5OAKHK.js} +6 -6
- package/dist/_node-chunks/chunk-YJM63TNA.js +18 -0
- package/dist/_node-chunks/{dist-JGMT4N3S.js → dist-PSWG5NPT.js} +9 -9
- package/dist/_node-chunks/{globby-GXCQUKBS.js → globby-YAVH4LQB.js} +9 -9
- package/dist/_node-chunks/{lib-QW4KAC77.js → lib-XGTTZ4VB.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-ESFWK5XU.js → mdx-N42X6CFJ-LY7LEJHJ.js} +8 -8
- package/dist/_node-chunks/{p-limit-4ELWV6QF.js → p-limit-CK3RN45E.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/core-server/index.js +32 -32
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +24 -24
- package/dist/csf/index.js +8 -4
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +5 -1
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +5 -5
- package/dist/preview-api/index.js +1 -1
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.js +22 -22
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-4MXQJO77.js +0 -61
- package/dist/_node-chunks/chunk-5UPUD6R2.js +0 -20
- package/dist/_node-chunks/chunk-DNSTTBDG.js +0 -18
- package/dist/_node-chunks/chunk-UZMUM5VQ.js +0 -23
package/dist/preview/runtime.js
CHANGED
|
@@ -32669,20 +32669,20 @@ var checkGlobals = (parameters2) => {
|
|
|
32669
32669
|
parameters2 && (checkGlobals(parameters2), checkStorySort(parameters2));
|
|
32670
32670
|
};
|
|
32671
32671
|
function processCSFFile(moduleExports, importPath, title) {
|
|
32672
|
-
let { default: defaultExport, __namedExportsOrder, ...namedExports } = moduleExports,
|
|
32673
|
-
if (
|
|
32674
|
-
let meta2 = normalizeComponentAnnotations(
|
|
32672
|
+
let { default: defaultExport, __namedExportsOrder, ...namedExports } = moduleExports, factoryStory = Object.values(namedExports).find((it) => isStory(it));
|
|
32673
|
+
if (factoryStory) {
|
|
32674
|
+
let meta2 = normalizeComponentAnnotations(factoryStory.meta.input, title, importPath);
|
|
32675
32675
|
checkDisallowedParameters(meta2.parameters);
|
|
32676
32676
|
let csfFile2 = { meta: meta2, stories: {}, moduleExports };
|
|
32677
32677
|
return Object.keys(namedExports).forEach((key) => {
|
|
32678
|
-
if (isExportStory(key, meta2)) {
|
|
32678
|
+
if (isExportStory(key, meta2) && isStory(namedExports[key])) {
|
|
32679
32679
|
let story = namedExports[key], storyMeta = normalizeStory(key, story.input, meta2);
|
|
32680
32680
|
checkDisallowedParameters(storyMeta.parameters), csfFile2.stories[storyMeta.id] = storyMeta, getStoryChildren(story).forEach((child) => {
|
|
32681
32681
|
let name = child.input.name, childId = toTestId(storyMeta.id, name);
|
|
32682
32682
|
child.input.parameters ??= {}, child.input.parameters.__id = childId, csfFile2.stories[childId] = normalizeStory(name, child.input, meta2);
|
|
32683
32683
|
});
|
|
32684
32684
|
}
|
|
32685
|
-
}), csfFile2.projectAnnotations =
|
|
32685
|
+
}), csfFile2.projectAnnotations = factoryStory.meta.preview.composed, csfFile2;
|
|
32686
32686
|
}
|
|
32687
32687
|
let meta = normalizeComponentAnnotations(
|
|
32688
32688
|
defaultExport,
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_at6j9ae2j2t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_at6j9ae2j2t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_at6j9ae2j2t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_at6j9ae2j2t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_at6j9ae2j2t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_at6j9ae2j2t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
WebpackCompilationError,
|
|
47
47
|
WebpackInvocationError,
|
|
48
48
|
WebpackMissingStatsError
|
|
49
|
-
} from "./_node-chunks/chunk-
|
|
49
|
+
} from "./_node-chunks/chunk-WBTDMYZM.js";
|
|
50
50
|
import {
|
|
51
51
|
StorybookError
|
|
52
|
-
} from "./_node-chunks/chunk-
|
|
53
|
-
import "./_node-chunks/chunk-
|
|
54
|
-
import "./_node-chunks/chunk-
|
|
55
|
-
import "./_node-chunks/chunk-
|
|
52
|
+
} from "./_node-chunks/chunk-WANDQWBR.js";
|
|
53
|
+
import "./_node-chunks/chunk-SLZHVDN6.js";
|
|
54
|
+
import "./_node-chunks/chunk-LE232J7F.js";
|
|
55
|
+
import "./_node-chunks/chunk-DRM3MJ7Y.js";
|
|
56
56
|
export {
|
|
57
57
|
AddonVitestPostinstallConfigUpdateError,
|
|
58
58
|
AddonVitestPostinstallError,
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_at6j9ae2j2t from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_at6j9ae2j2t from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_at6j9ae2j2t from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_at6j9ae2j2t.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_at6j9ae2j2t.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_at6j9ae2j2t.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -25,22 +25,22 @@ import {
|
|
|
25
25
|
sanitizeAddonName,
|
|
26
26
|
sanitizeError,
|
|
27
27
|
telemetry
|
|
28
|
-
} from "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
31
|
-
import "../_node-chunks/chunk-
|
|
32
|
-
import "../_node-chunks/chunk-
|
|
33
|
-
import "../_node-chunks/chunk-
|
|
34
|
-
import "../_node-chunks/chunk-
|
|
35
|
-
import "../_node-chunks/chunk-
|
|
36
|
-
import "../_node-chunks/chunk-
|
|
37
|
-
import "../_node-chunks/chunk-
|
|
38
|
-
import "../_node-chunks/chunk-
|
|
39
|
-
import "../_node-chunks/chunk-
|
|
40
|
-
import "../_node-chunks/chunk-
|
|
41
|
-
import "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
28
|
+
} from "../_node-chunks/chunk-R2IXPA5M.js";
|
|
29
|
+
import "../_node-chunks/chunk-YJM63TNA.js";
|
|
30
|
+
import "../_node-chunks/chunk-Q4DOC7HF.js";
|
|
31
|
+
import "../_node-chunks/chunk-WAL24RZR.js";
|
|
32
|
+
import "../_node-chunks/chunk-HH2SN3H2.js";
|
|
33
|
+
import "../_node-chunks/chunk-GRQFL3SI.js";
|
|
34
|
+
import "../_node-chunks/chunk-EQLFU5BD.js";
|
|
35
|
+
import "../_node-chunks/chunk-PFJRSBIJ.js";
|
|
36
|
+
import "../_node-chunks/chunk-O7UZQAUS.js";
|
|
37
|
+
import "../_node-chunks/chunk-NKSLKQ5F.js";
|
|
38
|
+
import "../_node-chunks/chunk-XS5OAKHK.js";
|
|
39
|
+
import "../_node-chunks/chunk-GSQVC33F.js";
|
|
40
|
+
import "../_node-chunks/chunk-PF7HEE6F.js";
|
|
41
|
+
import "../_node-chunks/chunk-SLZHVDN6.js";
|
|
42
|
+
import "../_node-chunks/chunk-LE232J7F.js";
|
|
43
|
+
import "../_node-chunks/chunk-DRM3MJ7Y.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
package/package.json
CHANGED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9b8dlqmrz from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9b8dlqmrz from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9b8dlqmrz from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9b8dlqmrz.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9b8dlqmrz.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9b8dlqmrz.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.9",
|
|
16
|
-
"@storybook/addon-docs": "10.1.9",
|
|
17
|
-
"@storybook/addon-links": "10.1.9",
|
|
18
|
-
"@storybook/addon-onboarding": "10.1.9",
|
|
19
|
-
"storybook-addon-pseudo-states": "10.1.9",
|
|
20
|
-
"@storybook/addon-themes": "10.1.9",
|
|
21
|
-
"@storybook/addon-vitest": "10.1.9",
|
|
22
|
-
"@storybook/builder-vite": "10.1.9",
|
|
23
|
-
"@storybook/builder-webpack5": "10.1.9",
|
|
24
|
-
storybook: "10.1.9",
|
|
25
|
-
"@storybook/angular": "10.1.9",
|
|
26
|
-
"@storybook/ember": "10.1.9",
|
|
27
|
-
"@storybook/html-vite": "10.1.9",
|
|
28
|
-
"@storybook/nextjs": "10.1.9",
|
|
29
|
-
"@storybook/nextjs-vite": "10.1.9",
|
|
30
|
-
"@storybook/preact-vite": "10.1.9",
|
|
31
|
-
"@storybook/react-native-web-vite": "10.1.9",
|
|
32
|
-
"@storybook/react-vite": "10.1.9",
|
|
33
|
-
"@storybook/react-webpack5": "10.1.9",
|
|
34
|
-
"@storybook/server-webpack5": "10.1.9",
|
|
35
|
-
"@storybook/svelte-vite": "10.1.9",
|
|
36
|
-
"@storybook/sveltekit": "10.1.9",
|
|
37
|
-
"@storybook/vue3-vite": "10.1.9",
|
|
38
|
-
"@storybook/web-components-vite": "10.1.9",
|
|
39
|
-
sb: "10.1.9",
|
|
40
|
-
"@storybook/cli": "10.1.9",
|
|
41
|
-
"@storybook/codemod": "10.1.9",
|
|
42
|
-
"@storybook/core-webpack": "10.1.9",
|
|
43
|
-
"create-storybook": "10.1.9",
|
|
44
|
-
"@storybook/csf-plugin": "10.1.9",
|
|
45
|
-
"eslint-plugin-storybook": "10.1.9",
|
|
46
|
-
"@storybook/react-dom-shim": "10.1.9",
|
|
47
|
-
"@storybook/preset-create-react-app": "10.1.9",
|
|
48
|
-
"@storybook/preset-react-webpack": "10.1.9",
|
|
49
|
-
"@storybook/preset-server-webpack": "10.1.9",
|
|
50
|
-
"@storybook/html": "10.1.9",
|
|
51
|
-
"@storybook/preact": "10.1.9",
|
|
52
|
-
"@storybook/react": "10.1.9",
|
|
53
|
-
"@storybook/server": "10.1.9",
|
|
54
|
-
"@storybook/svelte": "10.1.9",
|
|
55
|
-
"@storybook/vue3": "10.1.9",
|
|
56
|
-
"@storybook/web-components": "10.1.9"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
versions_default
|
|
61
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9b8dlqmrz from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9b8dlqmrz from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9b8dlqmrz from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9b8dlqmrz.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9b8dlqmrz.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9b8dlqmrz.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// ../node_modules/slash/index.js
|
|
14
|
-
function slash(path) {
|
|
15
|
-
return path.startsWith("\\\\?\\") ? path : path.replace(/\\/g, "/");
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
slash
|
|
20
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9b8dlqmrz from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9b8dlqmrz from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9b8dlqmrz from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9b8dlqmrz.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9b8dlqmrz.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9b8dlqmrz.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// package.json
|
|
14
|
-
var version = "10.1.9";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_y9b8dlqmrz from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_y9b8dlqmrz from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_y9b8dlqmrz from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_y9b8dlqmrz.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_y9b8dlqmrz.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_y9b8dlqmrz.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-VPDFGH66.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
|
-
};
|