storybook 10.1.1 → 10.1.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/_node-chunks/{builder-manager-C7JEYIYJ.js → builder-manager-N4D23FLX.js} +12 -12
- package/dist/_node-chunks/{camelcase-EKJLJYXS.js → camelcase-EXGV75P2.js} +7 -7
- package/dist/_node-chunks/{chunk-IG2ALTN6.js → chunk-2S4J6WRI.js} +12 -16
- package/dist/_node-chunks/{chunk-NYOGOMNG.js → chunk-3PAK6HOZ.js} +7 -7
- package/dist/_node-chunks/{chunk-22GRWY3A.js → chunk-4FES3Z32.js} +7 -7
- package/dist/_node-chunks/{chunk-HS7MLKJ7.js → chunk-4K33EHJJ.js} +13 -13
- package/dist/_node-chunks/chunk-6WT5T7D6.js +23 -0
- package/dist/_node-chunks/{chunk-GVZHV3RA.js → chunk-745ARPQW.js} +20 -20
- package/dist/_node-chunks/{chunk-U46HN6HR.js → chunk-A7QREOLM.js} +6 -6
- package/dist/_node-chunks/chunk-ABYOUG2G.js +18 -0
- package/dist/_node-chunks/{chunk-CPQFWCXT.js → chunk-CD52AW7X.js} +9 -9
- package/dist/_node-chunks/{chunk-HZC2SB7B.js → chunk-DUT2G4P5.js} +8 -8
- package/dist/_node-chunks/{chunk-JN2WIVPA.js → chunk-EE622TFR.js} +6 -6
- package/dist/_node-chunks/{chunk-4U2MVVKV.js → chunk-EY7WWLFP.js} +7 -7
- package/dist/_node-chunks/{chunk-GDGPRHGO.js → chunk-IHWETTDK.js} +7 -7
- package/dist/_node-chunks/{chunk-BHHIOLJA.js → chunk-J33WT6V7.js} +6 -6
- package/dist/_node-chunks/{chunk-GCHB45RE.js → chunk-KQCVPCQD.js} +6 -6
- package/dist/_node-chunks/chunk-NAZXVKZR.js +20 -0
- package/dist/_node-chunks/{chunk-GAA4H3VB.js → chunk-O5HLDMLW.js} +16 -16
- package/dist/_node-chunks/{chunk-EDWQNQRS.js → chunk-OBA5XT44.js} +7 -7
- package/dist/_node-chunks/{chunk-7GNG7DZN.js → chunk-PDCQDYS4.js} +10 -10
- package/dist/_node-chunks/{chunk-LIHOGGYQ.js → chunk-RCCMX64R.js} +6 -6
- package/dist/_node-chunks/{chunk-DJWEMHR5.js → chunk-RIFAW6Y4.js} +13 -13
- package/dist/_node-chunks/{chunk-O75LHYHE.js → chunk-TCNV3SSR.js} +7 -7
- package/dist/_node-chunks/{chunk-TXFQGVOT.js → chunk-TTAIHANB.js} +7 -7
- package/dist/_node-chunks/{chunk-VCTH7NVT.js → chunk-U6IY6QQN.js} +6 -6
- package/dist/_node-chunks/chunk-UQA3ZWVX.js +61 -0
- package/dist/_node-chunks/{chunk-N7ITOTDA.js → chunk-V6NSKAAJ.js} +7 -7
- package/dist/_node-chunks/{chunk-V55OPUPS.js → chunk-W77J252D.js} +9 -9
- package/dist/_node-chunks/{chunk-SCGML3ZY.js → chunk-YF6BQNR6.js} +6 -6
- package/dist/_node-chunks/{dist-U4P7LQQN.js → dist-BV4S5XPY.js} +9 -9
- package/dist/_node-chunks/{globby-MZKLH3YV.js → globby-MMDNVX5S.js} +9 -9
- package/dist/_node-chunks/{lib-2N65EL7H.js → lib-ZNCEKZ43.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-BH36LL45.js → mdx-N42X6CFJ-KXIBNMFG.js} +8 -8
- package/dist/_node-chunks/{p-limit-IRSB2ECY.js → p-limit-RIAILNZP.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.d.ts +1 -0
- package/dist/cli/index.js +18 -18
- package/dist/common/index.js +19 -19
- package/dist/components/index.js +9 -17
- 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 +40 -86
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +10 -18
- package/dist/manager/runtime.js +3 -8
- package/dist/manager-api/index.js +1 -1
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.d.ts +3 -3
- package/dist/node-logger/index.js +9 -9
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +23 -23
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_node-chunks/chunk-3AUMHWKR.js +0 -18
- package/dist/_node-chunks/chunk-DPZJ3NQJ.js +0 -61
- package/dist/_node-chunks/chunk-JJ5YIJTU.js +0 -23
- package/dist/_node-chunks/chunk-Q4NGPXRM.js +0 -20
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f2mg11kr5cs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f2mg11kr5cs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f2mg11kr5cs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f2mg11kr5cs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f2mg11kr5cs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.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-O5HLDMLW.js";
|
|
13
13
|
import {
|
|
14
14
|
parseStaticDir,
|
|
15
15
|
sendTelemetryError,
|
|
16
16
|
throttle
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
18
|
-
import "../../_node-chunks/chunk-
|
|
19
|
-
import "../../_node-chunks/chunk-
|
|
20
|
-
import "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-4K33EHJJ.js";
|
|
18
|
+
import "../../_node-chunks/chunk-IHWETTDK.js";
|
|
19
|
+
import "../../_node-chunks/chunk-6WT5T7D6.js";
|
|
20
|
+
import "../../_node-chunks/chunk-U6IY6QQN.js";
|
|
21
21
|
import {
|
|
22
22
|
getLastEvents,
|
|
23
23
|
getSessionId
|
|
24
|
-
} from "../../_node-chunks/chunk-
|
|
24
|
+
} from "../../_node-chunks/chunk-RCCMX64R.js";
|
|
25
25
|
import {
|
|
26
26
|
globalSettings
|
|
27
|
-
} from "../../_node-chunks/chunk-
|
|
27
|
+
} from "../../_node-chunks/chunk-W77J252D.js";
|
|
28
28
|
import {
|
|
29
29
|
invariant
|
|
30
|
-
} from "../../_node-chunks/chunk-
|
|
30
|
+
} from "../../_node-chunks/chunk-A7QREOLM.js";
|
|
31
31
|
import {
|
|
32
32
|
resolvePackageDir
|
|
33
|
-
} from "../../_node-chunks/chunk-
|
|
34
|
-
import "../../_node-chunks/chunk-
|
|
33
|
+
} from "../../_node-chunks/chunk-V6NSKAAJ.js";
|
|
34
|
+
import "../../_node-chunks/chunk-J33WT6V7.js";
|
|
35
35
|
import {
|
|
36
36
|
isAbsolute,
|
|
37
37
|
join
|
|
38
|
-
} from "../../_node-chunks/chunk-
|
|
38
|
+
} from "../../_node-chunks/chunk-EE622TFR.js";
|
|
39
39
|
import {
|
|
40
40
|
loadConfig
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-DUT2G4P5.js";
|
|
42
42
|
import {
|
|
43
43
|
require_dist
|
|
44
|
-
} from "../../_node-chunks/chunk-
|
|
45
|
-
import "../../_node-chunks/chunk-
|
|
46
|
-
import "../../_node-chunks/chunk-
|
|
44
|
+
} from "../../_node-chunks/chunk-TTAIHANB.js";
|
|
45
|
+
import "../../_node-chunks/chunk-CD52AW7X.js";
|
|
46
|
+
import "../../_node-chunks/chunk-3PAK6HOZ.js";
|
|
47
47
|
import {
|
|
48
48
|
require_picocolors
|
|
49
|
-
} from "../../_node-chunks/chunk-
|
|
49
|
+
} from "../../_node-chunks/chunk-4FES3Z32.js";
|
|
50
50
|
import {
|
|
51
51
|
__commonJS,
|
|
52
52
|
__require,
|
|
53
53
|
__toESM
|
|
54
|
-
} from "../../_node-chunks/chunk-
|
|
54
|
+
} from "../../_node-chunks/chunk-YF6BQNR6.js";
|
|
55
55
|
|
|
56
56
|
// ../node_modules/shell-quote/quote.js
|
|
57
57
|
var require_quote = __commonJS({
|
|
@@ -518,7 +518,7 @@ import { isCsfFactoryPreview } from "storybook/internal/csf-tools";
|
|
|
518
518
|
var import_ts_dedent = __toESM(require_dist(), 1);
|
|
519
519
|
|
|
520
520
|
// src/core-server/utils/get-component-variable-name.ts
|
|
521
|
-
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-
|
|
521
|
+
var getComponentVariableName = async (name) => (await import("../../_node-chunks/camelcase-EXGV75P2.js")).default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: !0 }).replace(/[^a-zA-Z_$]+/, "");
|
|
522
522
|
|
|
523
523
|
// src/core-server/utils/new-story-templates/csf-factory-template.ts
|
|
524
524
|
async function getCsfFactoryTemplateForNewStoryFile(data) {
|
|
@@ -783,7 +783,7 @@ async function searchFiles({
|
|
|
783
783
|
ignoredFiles = IGNORED_FILES,
|
|
784
784
|
fileExtensions = FILE_EXTENSIONS
|
|
785
785
|
}) {
|
|
786
|
-
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
786
|
+
let { globby, isDynamicPattern } = await import("../../_node-chunks/globby-MMDNVX5S.js"), hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd }), searchQueryHasExtension = /(\.[a-z]+)$/i.test(searchQuery), fileExtensionsPattern = `{${fileExtensions.join(",")}}`, globbedSearchQuery = hasSearchSpecialGlobChars ? searchQuery : searchQueryHasExtension ? [`**/*${searchQuery}*`, `**/*${searchQuery}*/**`] : [
|
|
787
787
|
`**/*${searchQuery}*.${fileExtensionsPattern}`,
|
|
788
788
|
`**/*${searchQuery}*/**/*.${fileExtensionsPattern}`
|
|
789
789
|
];
|
|
@@ -921,60 +921,6 @@ import { experimental_UniversalStore } from "storybook/internal/core-server";
|
|
|
921
921
|
import { logger } from "storybook/internal/node-logger";
|
|
922
922
|
import { telemetry as telemetry5 } from "storybook/internal/telemetry";
|
|
923
923
|
|
|
924
|
-
// ../node_modules/dequal/dist/index.mjs
|
|
925
|
-
var has = Object.prototype.hasOwnProperty;
|
|
926
|
-
function find(iter, tar, key) {
|
|
927
|
-
for (key of iter.keys())
|
|
928
|
-
if (dequal(key, tar)) return key;
|
|
929
|
-
}
|
|
930
|
-
function dequal(foo, bar) {
|
|
931
|
-
var ctor, len, tmp;
|
|
932
|
-
if (foo === bar) return !0;
|
|
933
|
-
if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
|
|
934
|
-
if (ctor === Date) return foo.getTime() === bar.getTime();
|
|
935
|
-
if (ctor === RegExp) return foo.toString() === bar.toString();
|
|
936
|
-
if (ctor === Array) {
|
|
937
|
-
if ((len = foo.length) === bar.length)
|
|
938
|
-
for (; len-- && dequal(foo[len], bar[len]); ) ;
|
|
939
|
-
return len === -1;
|
|
940
|
-
}
|
|
941
|
-
if (ctor === Set) {
|
|
942
|
-
if (foo.size !== bar.size)
|
|
943
|
-
return !1;
|
|
944
|
-
for (len of foo)
|
|
945
|
-
if (tmp = len, tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !bar.has(tmp)) return !1;
|
|
946
|
-
return !0;
|
|
947
|
-
}
|
|
948
|
-
if (ctor === Map) {
|
|
949
|
-
if (foo.size !== bar.size)
|
|
950
|
-
return !1;
|
|
951
|
-
for (len of foo)
|
|
952
|
-
if (tmp = len[0], tmp && typeof tmp == "object" && (tmp = find(bar, tmp), !tmp) || !dequal(len[1], bar.get(tmp)))
|
|
953
|
-
return !1;
|
|
954
|
-
return !0;
|
|
955
|
-
}
|
|
956
|
-
if (ctor === ArrayBuffer)
|
|
957
|
-
foo = new Uint8Array(foo), bar = new Uint8Array(bar);
|
|
958
|
-
else if (ctor === DataView) {
|
|
959
|
-
if ((len = foo.byteLength) === bar.byteLength)
|
|
960
|
-
for (; len-- && foo.getInt8(len) === bar.getInt8(len); ) ;
|
|
961
|
-
return len === -1;
|
|
962
|
-
}
|
|
963
|
-
if (ArrayBuffer.isView(foo)) {
|
|
964
|
-
if ((len = foo.byteLength) === bar.byteLength)
|
|
965
|
-
for (; len-- && foo[len] === bar[len]; ) ;
|
|
966
|
-
return len === -1;
|
|
967
|
-
}
|
|
968
|
-
if (!ctor || typeof foo == "object") {
|
|
969
|
-
len = 0;
|
|
970
|
-
for (ctor in foo)
|
|
971
|
-
if (has.call(foo, ctor) && ++len && !has.call(bar, ctor) || !(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return !1;
|
|
972
|
-
return Object.keys(bar).length === len;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
return foo !== foo && bar !== bar;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
924
|
// ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
979
925
|
function isPrimitive(value) {
|
|
980
926
|
return value == null || typeof value != "object" && typeof value != "function";
|
|
@@ -1117,19 +1063,27 @@ async function initializeChecklist() {
|
|
|
1117
1063
|
loaded: !0
|
|
1118
1064
|
})
|
|
1119
1065
|
), store.onStateChange((state, previousState) => {
|
|
1120
|
-
let projectValues = {}, userValues = {};
|
|
1121
|
-
|
|
1066
|
+
let entries = Object.entries(state.items), projectValues = {}, userValues = {};
|
|
1067
|
+
entries.forEach(([id, { status, mutedAt }]) => {
|
|
1122
1068
|
status === "done" ? projectValues[id] = { status } : (status === "accepted" || status === "skipped") && (userValues[id] = { status }), mutedAt && (userValues[id] = {
|
|
1123
1069
|
...userValues[id],
|
|
1124
1070
|
mutedAt
|
|
1125
1071
|
});
|
|
1126
1072
|
}), saveProjectState({ items: projectValues }), saveUserState({ items: userValues, widget: state.widget });
|
|
1127
|
-
let
|
|
1128
|
-
([
|
|
1073
|
+
let { mutedItems, statusItems } = entries.reduce(
|
|
1074
|
+
(acc, [item, { mutedAt, status }]) => {
|
|
1075
|
+
let prev = previousState.items[item];
|
|
1076
|
+
return mutedAt !== prev?.mutedAt && acc.mutedItems.push(item), status !== prev?.status && acc.statusItems.push(item), acc;
|
|
1077
|
+
},
|
|
1078
|
+
{ mutedItems: [], statusItems: [] }
|
|
1129
1079
|
);
|
|
1130
|
-
telemetry5("onboarding-checklist", {
|
|
1131
|
-
|
|
1132
|
-
|
|
1080
|
+
mutedItems.length > 0 && telemetry5("onboarding-checklist-muted", {
|
|
1081
|
+
items: mutedItems,
|
|
1082
|
+
completedItems: entries.reduce((acc, [id, { status }]) => status === "done" || status === "accepted" ? acc.concat([id]) : acc, []),
|
|
1083
|
+
skippedItems: entries.reduce((acc, [id, { status }]) => status === "skipped" ? acc.concat([id]) : acc, [])
|
|
1084
|
+
}), statusItems.forEach((item) => {
|
|
1085
|
+
let { status } = state.items[item];
|
|
1086
|
+
telemetry5("onboarding-checklist-status", { item, status });
|
|
1133
1087
|
});
|
|
1134
1088
|
});
|
|
1135
1089
|
} catch (err) {
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f2mg11kr5cs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f2mg11kr5cs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f2mg11kr5cs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f2mg11kr5cs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f2mg11kr5cs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.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-DUT2G4P5.js";
|
|
42
|
+
import "../_node-chunks/chunk-TTAIHANB.js";
|
|
43
|
+
import "../_node-chunks/chunk-YF6BQNR6.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -59891,7 +59891,7 @@ init_dist();
|
|
|
59891
59891
|
var import_memoizerific8 = __toESM(require_memoizerific(), 1), import_semver = __toESM(require_semver2(), 1);
|
|
59892
59892
|
|
|
59893
59893
|
// src/manager-api/version.ts
|
|
59894
|
-
var version = "10.1.
|
|
59894
|
+
var version = "10.1.3";
|
|
59895
59895
|
|
|
59896
59896
|
// src/manager-api/modules/versions.ts
|
|
59897
59897
|
var { VERSIONCHECK } = scope, getVersionCheckData = (0, import_memoizerific8.default)(1)(() => {
|
|
@@ -67755,7 +67755,7 @@ var TooltipProvider = ({
|
|
|
67755
67755
|
placement,
|
|
67756
67756
|
offset: offset3,
|
|
67757
67757
|
onOpenChange,
|
|
67758
|
-
style: {
|
|
67758
|
+
style: { outline: "none" },
|
|
67759
67759
|
...props
|
|
67760
67760
|
},
|
|
67761
67761
|
tooltip
|
|
@@ -73412,24 +73412,16 @@ var PopoverProvider = ({
|
|
|
73412
73412
|
...props
|
|
73413
73413
|
},
|
|
73414
73414
|
import_react156.default.createElement($3b117e43dc0ca95d$export$27c701ed9e449e99, null, children),
|
|
73415
|
-
import_react156.default.createElement(
|
|
73416
|
-
|
|
73415
|
+
import_react156.default.createElement($07b14b47974efb58$export$5b6b19405a83ff9d, { placement, offset: offset3, style: { outline: "none" } }, import_react156.default.createElement(
|
|
73416
|
+
Popover,
|
|
73417
73417
|
{
|
|
73418
|
-
|
|
73419
|
-
|
|
73420
|
-
|
|
73418
|
+
hasChrome,
|
|
73419
|
+
hideLabel: closeLabel,
|
|
73420
|
+
onHide: hasCloseButton ? onHide : void 0,
|
|
73421
|
+
padding
|
|
73421
73422
|
},
|
|
73422
|
-
|
|
73423
|
-
|
|
73424
|
-
{
|
|
73425
|
-
hasChrome,
|
|
73426
|
-
hideLabel: closeLabel,
|
|
73427
|
-
onHide: hasCloseButton ? onHide : void 0,
|
|
73428
|
-
padding
|
|
73429
|
-
},
|
|
73430
|
-
typeof popover == "function" ? popover({ onHide }) : popover
|
|
73431
|
-
)
|
|
73432
|
-
)
|
|
73423
|
+
typeof popover == "function" ? popover({ onHide }) : popover
|
|
73424
|
+
))
|
|
73433
73425
|
);
|
|
73434
73426
|
};
|
|
73435
73427
|
|
package/dist/manager/runtime.js
CHANGED
|
@@ -10740,7 +10740,7 @@ var CodeWrapper = styled.div(({ theme }) => ({
|
|
|
10740
10740
|
},
|
|
10741
10741
|
{
|
|
10742
10742
|
id: "renderComponent",
|
|
10743
|
-
label: "Render
|
|
10743
|
+
label: "Render your first component",
|
|
10744
10744
|
criteria: "A story finished rendering successfully",
|
|
10745
10745
|
subscribe: ({ api, done }) => api.on(
|
|
10746
10746
|
STORY_FINISHED,
|
|
@@ -10805,7 +10805,6 @@ export const Primary: Story = {
|
|
|
10805
10805
|
},
|
|
10806
10806
|
{
|
|
10807
10807
|
id: "moreComponents",
|
|
10808
|
-
after: ["renderComponent"],
|
|
10809
10808
|
label: "Add 5 components",
|
|
10810
10809
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "Storybook gets better as you add more components. Start with the easy ones, like Button or Avatar, and work your way up to more complex components, like Select, Autocomplete, or even full pages."), react_default.createElement(
|
|
10811
10810
|
"img",
|
|
@@ -10839,7 +10838,6 @@ export const Primary: Story = {
|
|
|
10839
10838
|
},
|
|
10840
10839
|
{
|
|
10841
10840
|
id: "moreStories",
|
|
10842
|
-
after: ["renderComponent"],
|
|
10843
10841
|
label: "Add 20 stories",
|
|
10844
10842
|
content: ({ api }) => react_default.createElement(react_default.Fragment, null, react_default.createElement("p", null, "More stories for your components means better documentation and more test coverage."), react_default.createElement(
|
|
10845
10843
|
"img",
|
|
@@ -10886,7 +10884,6 @@ export const Primary: Story = {
|
|
|
10886
10884
|
items: [
|
|
10887
10885
|
{
|
|
10888
10886
|
id: "controls",
|
|
10889
|
-
after: ["renderComponent"],
|
|
10890
10887
|
label: "Change a story with Controls",
|
|
10891
10888
|
available: () => !!globalThis?.FEATURES?.controls,
|
|
10892
10889
|
criteria: "Story args are updated",
|
|
@@ -10915,7 +10912,6 @@ export const Primary: Story = {
|
|
|
10915
10912
|
},
|
|
10916
10913
|
{
|
|
10917
10914
|
id: "viewports",
|
|
10918
|
-
after: ["renderComponent"],
|
|
10919
10915
|
label: "Check responsiveness with Viewports",
|
|
10920
10916
|
available: () => !!globalThis?.FEATURES?.viewport,
|
|
10921
10917
|
criteria: "Viewport global is updated",
|
|
@@ -10944,7 +10940,6 @@ export const Primary: Story = {
|
|
|
10944
10940
|
},
|
|
10945
10941
|
{
|
|
10946
10942
|
id: "organizeStories",
|
|
10947
|
-
after: ["renderComponent"],
|
|
10948
10943
|
label: "Group your components",
|
|
10949
10944
|
criteria: "A root node exists in the index",
|
|
10950
10945
|
subscribe: subscribeToIndex(
|
|
@@ -11085,7 +11080,6 @@ export default {
|
|
|
11085
11080
|
},
|
|
11086
11081
|
{
|
|
11087
11082
|
id: "writeInteractions",
|
|
11088
|
-
after: ["renderComponent"],
|
|
11089
11083
|
label: "Test functionality with interactions",
|
|
11090
11084
|
available: () => !!globalThis?.FEATURES?.interactions,
|
|
11091
11085
|
criteria: "At least one story with a play or test function",
|
|
@@ -18250,7 +18244,7 @@ var groupByType = (filters) => filters.reduce(
|
|
|
18250
18244
|
if (!(count === 0 && type === "built-in"))
|
|
18251
18245
|
return {
|
|
18252
18246
|
id: `filter-${type}-${id}`,
|
|
18253
|
-
content: react_default.createElement(ActionList.HoverItem, { targetId: `filter-${type}-${id}` }, react_default.createElement(ActionList.Action, { as: "label", tabIndex: -1, tooltip: toggleTooltip }, react_default.createElement(ActionList.Icon, null, isExcluded ? react_default.createElement(DeleteIcon, null) : isIncluded ? null : icon, react_default.createElement(
|
|
18247
|
+
content: react_default.createElement(ActionList.HoverItem, { targetId: `filter-${type}-${id}` }, react_default.createElement(ActionList.Action, { as: "label", ariaLabel: !1, tabIndex: -1, tooltip: toggleTooltip }, react_default.createElement(ActionList.Icon, null, isExcluded ? react_default.createElement(DeleteIcon, null) : isIncluded ? null : icon, react_default.createElement(
|
|
18254
18248
|
Form.Checkbox,
|
|
18255
18249
|
{
|
|
18256
18250
|
checked: isChecked,
|
|
@@ -18305,6 +18299,7 @@ var groupByType = (filters) => filters.reduce(
|
|
|
18305
18299
|
))), links.map((group) => react_default.createElement(ActionList, { key: group.map((link) => link.id).join("_") }, group.map((link) => react_default.createElement(Fragment, { key: link.id }, link.content)))), !hasUserTags && react_default.createElement(ActionList, { as: "div" }, react_default.createElement(ActionList.Item, { as: "div" }, react_default.createElement(
|
|
18306
18300
|
ActionList.Link,
|
|
18307
18301
|
{
|
|
18302
|
+
ariaLabel: !1,
|
|
18308
18303
|
href: api.getDocsUrl({ subpath: "writing-stories/tags#custom-tags" }),
|
|
18309
18304
|
target: "_blank"
|
|
18310
18305
|
},
|
|
@@ -2329,7 +2329,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2329
2329
|
import semver from "semver";
|
|
2330
2330
|
|
|
2331
2331
|
// src/manager-api/version.ts
|
|
2332
|
-
var version = "10.1.
|
|
2332
|
+
var version = "10.1.3";
|
|
2333
2333
|
|
|
2334
2334
|
// src/manager-api/modules/versions.ts
|
|
2335
2335
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f2mg11kr5cs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f2mg11kr5cs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f2mg11kr5cs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f2mg11kr5cs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f2mg11kr5cs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
join,
|
|
17
17
|
normalize,
|
|
18
18
|
resolve
|
|
19
|
-
} from "../_node-chunks/chunk-
|
|
20
|
-
import "../_node-chunks/chunk-
|
|
19
|
+
} from "../_node-chunks/chunk-EE622TFR.js";
|
|
20
|
+
import "../_node-chunks/chunk-YF6BQNR6.js";
|
|
21
21
|
|
|
22
22
|
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
23
23
|
var comma = 44, semicolon = 59, chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", intToChar = new Uint8Array(64), charToInt = new Uint8Array(128);
|
|
@@ -407,14 +407,14 @@ declare const prompt: {
|
|
|
407
407
|
error: string;
|
|
408
408
|
success: string;
|
|
409
409
|
abortable?: boolean;
|
|
410
|
-
}) => Promise<void>;
|
|
410
|
+
}) => Promise<"aborted" | void>;
|
|
411
411
|
executeTaskWithSpinner: (childProcessFactories: ((signal?: AbortSignal) => ExecaChildProcess) | ((signal?: AbortSignal) => ExecaChildProcess)[], { id, intro, error, success, abortable, }: {
|
|
412
412
|
id: string;
|
|
413
413
|
intro: string;
|
|
414
414
|
error: string;
|
|
415
415
|
success: string;
|
|
416
416
|
abortable?: boolean;
|
|
417
|
-
}) => Promise<void>;
|
|
417
|
+
}) => Promise<"aborted" | void>;
|
|
418
418
|
setPromptLibrary: (library: "clack") => void;
|
|
419
419
|
getPromptLibrary: () => "clack";
|
|
420
420
|
getPromptProvider: () => PromptProvider;
|
|
@@ -677,4 +677,4 @@ declare const once: {
|
|
|
677
677
|
};
|
|
678
678
|
declare const deprecate: (message: string) => void;
|
|
679
679
|
|
|
680
|
-
export { CLI_COLORS, ConsoleLogger, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
680
|
+
export { CLI_COLORS, ConsoleLogger, type LogLevel, type SpinnerInstance, StyledConsoleLogger, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f2mg11kr5cs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f2mg11kr5cs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f2mg11kr5cs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f2mg11kr5cs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f2mg11kr5cs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
once,
|
|
23
23
|
prompt,
|
|
24
24
|
protectUrls
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-2S4J6WRI.js";
|
|
26
|
+
import "../_node-chunks/chunk-4FES3Z32.js";
|
|
27
|
+
import "../_node-chunks/chunk-YF6BQNR6.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f2mg11kr5cs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f2mg11kr5cs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f2mg11kr5cs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f2mg11kr5cs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f2mg11kr5cs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -42,11 +42,11 @@ import {
|
|
|
42
42
|
WebpackCompilationError,
|
|
43
43
|
WebpackInvocationError,
|
|
44
44
|
WebpackMissingStatsError
|
|
45
|
-
} from "./_node-chunks/chunk-
|
|
46
|
-
import "./_node-chunks/chunk-
|
|
47
|
-
import "./_node-chunks/chunk-
|
|
48
|
-
import "./_node-chunks/chunk-
|
|
49
|
-
import "./_node-chunks/chunk-
|
|
45
|
+
} from "./_node-chunks/chunk-PDCQDYS4.js";
|
|
46
|
+
import "./_node-chunks/chunk-U6IY6QQN.js";
|
|
47
|
+
import "./_node-chunks/chunk-TTAIHANB.js";
|
|
48
|
+
import "./_node-chunks/chunk-4FES3Z32.js";
|
|
49
|
+
import "./_node-chunks/chunk-YF6BQNR6.js";
|
|
50
50
|
export {
|
|
51
51
|
AddonVitestPostinstallError,
|
|
52
52
|
AddonVitestPostinstallPrerequisiteCheckError,
|
|
@@ -32,7 +32,7 @@ declare const monorepoConfigs: {
|
|
|
32
32
|
};
|
|
33
33
|
type MonorepoType = keyof typeof monorepoConfigs | 'Workspaces' | undefined;
|
|
34
34
|
|
|
35
|
-
type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
|
|
35
|
+
type EventType = 'boot' | 'add' | 'dev' | 'build' | 'index' | 'upgrade' | 'multi-upgrade' | 'init' | 'init-step' | 'scaffolded-empty' | 'browser' | 'canceled' | 'error' | 'error-metadata' | 'version-update' | 'core-config' | 'remove' | 'save-story' | 'create-new-story-file' | 'create-new-story-file-search' | 'open-in-editor' | 'testing-module-watch-mode' | 'testing-module-completed-report' | 'testing-module-crash-report' | 'addon-test' | 'test-run' | 'addon-onboarding' | 'onboarding-survey' | 'onboarding-checklist-muted' | 'onboarding-checklist-status' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
|
|
36
36
|
interface Dependency {
|
|
37
37
|
version: string | undefined;
|
|
38
38
|
versionSpecifier?: string;
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_f2mg11kr5cs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_f2mg11kr5cs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_f2mg11kr5cs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_f2mg11kr5cs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_f2mg11kr5cs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_f2mg11kr5cs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -22,25 +22,25 @@ import {
|
|
|
22
22
|
sanitizeAddonName,
|
|
23
23
|
sanitizeError,
|
|
24
24
|
telemetry
|
|
25
|
-
} from "../_node-chunks/chunk-
|
|
26
|
-
import "../_node-chunks/chunk-
|
|
27
|
-
import "../_node-chunks/chunk-
|
|
28
|
-
import "../_node-chunks/chunk-
|
|
29
|
-
import "../_node-chunks/chunk-
|
|
30
|
-
import "../_node-chunks/chunk-
|
|
25
|
+
} from "../_node-chunks/chunk-RIFAW6Y4.js";
|
|
26
|
+
import "../_node-chunks/chunk-ABYOUG2G.js";
|
|
27
|
+
import "../_node-chunks/chunk-745ARPQW.js";
|
|
28
|
+
import "../_node-chunks/chunk-UQA3ZWVX.js";
|
|
29
|
+
import "../_node-chunks/chunk-OBA5XT44.js";
|
|
30
|
+
import "../_node-chunks/chunk-2S4J6WRI.js";
|
|
31
31
|
import {
|
|
32
32
|
getPrecedingUpgrade
|
|
33
|
-
} from "../_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-
|
|
33
|
+
} from "../_node-chunks/chunk-RCCMX64R.js";
|
|
34
|
+
import "../_node-chunks/chunk-W77J252D.js";
|
|
35
|
+
import "../_node-chunks/chunk-A7QREOLM.js";
|
|
36
|
+
import "../_node-chunks/chunk-V6NSKAAJ.js";
|
|
37
|
+
import "../_node-chunks/chunk-J33WT6V7.js";
|
|
38
|
+
import "../_node-chunks/chunk-EE622TFR.js";
|
|
39
|
+
import "../_node-chunks/chunk-TCNV3SSR.js";
|
|
40
|
+
import "../_node-chunks/chunk-NAZXVKZR.js";
|
|
41
|
+
import "../_node-chunks/chunk-TTAIHANB.js";
|
|
42
|
+
import "../_node-chunks/chunk-4FES3Z32.js";
|
|
43
|
+
import "../_node-chunks/chunk-YF6BQNR6.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { WhatsNewData } from 'storybook/internal/core-events';
|
|
|
8
8
|
import { FileSystemCache } from 'storybook/internal/common';
|
|
9
9
|
import { StoryIndexGenerator } from 'storybook/internal/core-server';
|
|
10
10
|
import { CsfFile } from 'storybook/internal/csf-tools';
|
|
11
|
+
import { LogLevel } from 'storybook/internal/node-logger';
|
|
11
12
|
import { Server, IncomingMessage, ServerResponse } from 'http';
|
|
12
13
|
import { Server as Server$1 } from 'net';
|
|
13
14
|
import { Channel as Channel$1 } from 'storybook/internal/channels';
|
|
@@ -2312,7 +2313,8 @@ interface CLIBaseOptions {
|
|
|
2312
2313
|
disableTelemetry?: boolean;
|
|
2313
2314
|
enableCrashReports?: boolean;
|
|
2314
2315
|
configDir?: string;
|
|
2315
|
-
loglevel?:
|
|
2316
|
+
loglevel?: LogLevel;
|
|
2317
|
+
logfile?: string | boolean;
|
|
2316
2318
|
quiet?: boolean;
|
|
2317
2319
|
}
|
|
2318
2320
|
interface CLIOptions extends CLIBaseOptions {
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_rvkdaqpp8e from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_rvkdaqpp8e from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_rvkdaqpp8e from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_rvkdaqpp8e.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_rvkdaqpp8e.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_rvkdaqpp8e.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.1";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|