storybook 10.1.0-alpha.13 → 10.1.0-alpha.14
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-WXP2XJ3O.js → chunk-P4F4UVXX.js} +1 -0
- package/dist/_browser-chunks/{chunk-BE2DAXKJ.js → chunk-SS2NHR7W.js} +4 -1
- package/dist/_browser-chunks/{syntaxhighlighter-WKBQ5RC7.js → syntaxhighlighter-IQDEPFLK.js} +1 -1
- package/dist/_node-chunks/{builder-manager-DWDUVXZM.js → builder-manager-FQ5J6V3U.js} +17 -12
- package/dist/_node-chunks/{camelcase-EETCRTJX.js → camelcase-VGUYV77Z.js} +7 -7
- package/dist/_node-chunks/{chunk-FCVNHU2F.js → chunk-2JR3QBT2.js} +7 -7
- package/dist/_node-chunks/chunk-3EBH66BB.js +23 -0
- package/dist/_node-chunks/{chunk-447655DM.js → chunk-4ZFHN3ZY.js} +6 -6
- package/dist/_node-chunks/{chunk-RUUNVQ6W.js → chunk-63PL4NNE.js} +9 -9
- package/dist/_node-chunks/{chunk-OVVZIUHS.js → chunk-A4KENTXT.js} +7 -7
- package/dist/_node-chunks/{chunk-XKRVQL2G.js → chunk-ALIA3J6S.js} +44 -10
- package/dist/_node-chunks/{chunk-4EJUC2SD.js → chunk-C2HKH2XQ.js} +31 -48
- package/dist/_node-chunks/{chunk-LPKSBF62.js → chunk-DQNBAQYT.js} +6 -6
- package/dist/_node-chunks/{chunk-MIA5324I.js → chunk-F74UHHR6.js} +7 -7
- package/dist/_node-chunks/{chunk-B76FDKVB.js → chunk-H5XWXVWR.js} +6 -6
- package/dist/_node-chunks/{chunk-WC2YEQHJ.js → chunk-JMP7YFX2.js} +6 -6
- package/dist/_node-chunks/{chunk-DPFYWXEA.js → chunk-JZR4DHG2.js} +19 -7
- package/dist/_node-chunks/{chunk-DIPKXLEP.js → chunk-KEA7CVMZ.js} +80 -13
- package/dist/_node-chunks/{chunk-CMYD2JNN.js → chunk-KF3WTAEP.js} +7 -7
- package/dist/_node-chunks/{chunk-URLNGLC2.js → chunk-LPPM7L5D.js} +10 -10
- package/dist/_node-chunks/{chunk-7IAVT2FU.js → chunk-MJUDR7HQ.js} +7 -7
- package/dist/_node-chunks/chunk-NPB4THZQ.js +18 -0
- package/dist/_node-chunks/chunk-NZBK3DSJ.js +29 -0
- package/dist/_node-chunks/{chunk-7KFHRNOT.js → chunk-Q2QUNQK6.js} +7 -7
- package/dist/_node-chunks/{chunk-CLUBH2LP.js → chunk-TMCKISJR.js} +65 -101
- package/dist/_node-chunks/chunk-TWK7AR3U.js +6024 -0
- package/dist/_node-chunks/{chunk-2W4GZCLE.js → chunk-V7CXWJXC.js} +7 -7
- package/dist/_node-chunks/{chunk-B7PGKETD.js → chunk-W4F3T6CY.js} +8 -8
- package/dist/_node-chunks/{chunk-Z2OWEMX3.js → chunk-WACDSFMO.js} +9 -9
- package/dist/_node-chunks/{chunk-MJM4TEMP.js → chunk-WVXZFQQU.js} +7 -7
- package/dist/_node-chunks/{chunk-LYEZOJ43.js → chunk-XBPE4PT7.js} +6 -6
- package/dist/_node-chunks/chunk-YMM6BYF2.js +61 -0
- package/dist/_node-chunks/{chunk-AZIPBEBK.js → chunk-ZGZKNZ5S.js} +6 -6
- package/dist/_node-chunks/{dist-22CLJ4BC.js → dist-DR3AP3RJ.js} +9 -9
- package/dist/_node-chunks/{globby-GR24TGSK.js → globby-D4FPSHY2.js} +9 -9
- package/dist/_node-chunks/{lib-G2LGVRPC.js → lib-ZEFOVNTK.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-W6P6IDDW.js → mdx-N42X6CFJ-PJF3ICCG.js} +8 -8
- package/dist/_node-chunks/{p-limit-K4FZHG2F.js → p-limit-CYQOFYPV.js} +7 -7
- package/dist/babel/index.js +10 -10
- package/dist/bin/core.js +12 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +9 -9
- package/dist/cli/index.d.ts +788 -1
- package/dist/cli/index.js +42 -5999
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.js +22 -21
- package/dist/components/index.d.ts +136 -26
- package/dist/components/index.js +3163 -2859
- package/dist/core-server/index.js +51 -108
- package/dist/core-server/presets/common-manager.js +5 -5
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +266 -35
- package/dist/csf/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +21553 -21158
- package/dist/manager/manager-stores.d.ts +1 -0
- package/dist/manager/manager-stores.js +23 -0
- package/dist/manager/runtime.js +6694 -719
- package/dist/manager-api/index.d.ts +1803 -2
- package/dist/manager-api/index.js +102 -8
- package/dist/mocking-utils/index.js +8 -8
- package/dist/node-logger/index.js +9 -9
- package/dist/preview/runtime.js +4 -1
- package/dist/preview-api/index.js +2 -2
- package/dist/server-errors.js +11 -11
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/telemetry/index.js +23 -23
- package/package.json +5 -1
- package/dist/_node-chunks/chunk-4ZJOH2UN.js +0 -61
- package/dist/_node-chunks/chunk-654SJIMS.js +0 -23
- package/dist/_node-chunks/chunk-JQ7RQS5Q.js +0 -26
- package/dist/_node-chunks/chunk-LEL5OSY3.js +0 -18
|
@@ -885,12 +885,12 @@ var parseUrl = (url) => {
|
|
|
885
885
|
updateRef: async (id, data) => {
|
|
886
886
|
let { [id]: ref, ...updated } = api.getRefs();
|
|
887
887
|
updated[id] = { ...ref, ...data };
|
|
888
|
-
let ordered = Object.keys(
|
|
888
|
+
let ordered = Object.keys(initialState2).reduce((obj, key) => (obj[key] = updated[key], obj), {});
|
|
889
889
|
await store2.setState({
|
|
890
890
|
refs: ordered
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
}, refs = !singleStory && global2.REFS || {},
|
|
893
|
+
}, refs = !singleStory && global2.REFS || {}, initialState2 = refs;
|
|
894
894
|
return runCheck && new Promise(async (resolve) => {
|
|
895
895
|
for (let ref of Object.values(refs))
|
|
896
896
|
await api.checkRef({ ...ref, stories: {} });
|
|
@@ -898,7 +898,7 @@ var parseUrl = (url) => {
|
|
|
898
898
|
}), {
|
|
899
899
|
api,
|
|
900
900
|
state: {
|
|
901
|
-
refs:
|
|
901
|
+
refs: initialState2
|
|
902
902
|
}
|
|
903
903
|
};
|
|
904
904
|
};
|
|
@@ -1874,6 +1874,10 @@ var init11 = ({
|
|
|
1874
1874
|
let { storyId, refId } = store2.getState();
|
|
1875
1875
|
return api.getData(storyId, refId);
|
|
1876
1876
|
},
|
|
1877
|
+
getIndex: () => {
|
|
1878
|
+
let { internal_index } = store2.getState();
|
|
1879
|
+
return internal_index;
|
|
1880
|
+
},
|
|
1877
1881
|
getParameters: (storyIdOrCombo, parameterName) => {
|
|
1878
1882
|
let { storyId, refId } = typeof storyIdOrCombo == "string" ? { storyId: storyIdOrCombo, refId: void 0 } : storyIdOrCombo, data = api.getData(storyId, refId);
|
|
1879
1883
|
if (["story", "docs"].includes(data?.type)) {
|
|
@@ -2325,7 +2329,7 @@ import { global as global8 } from "@storybook/global";
|
|
|
2325
2329
|
import semver from "semver";
|
|
2326
2330
|
|
|
2327
2331
|
// src/manager-api/version.ts
|
|
2328
|
-
var version = "10.1.0-alpha.
|
|
2332
|
+
var version = "10.1.0-alpha.14";
|
|
2329
2333
|
|
|
2330
2334
|
// src/manager-api/modules/versions.ts
|
|
2331
2335
|
var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.default)(1)(() => {
|
|
@@ -2357,17 +2361,19 @@ var { VERSIONCHECK } = global8, getVersionCheckData = (0, import_memoizerific2.d
|
|
|
2357
2361
|
return current && semver.prerelease(current.version) && next ? latest && semver.gt(latest.version, next.version) ? latest : next : latest;
|
|
2358
2362
|
},
|
|
2359
2363
|
// TODO: Move this to it's own "info" module later
|
|
2360
|
-
getDocsUrl: ({ subpath, versioned, renderer }) => {
|
|
2364
|
+
getDocsUrl: ({ asset, subpath, versioned, renderer }) => {
|
|
2361
2365
|
let {
|
|
2362
2366
|
versions: { latest, current }
|
|
2363
|
-
} = store2.getState(), url =
|
|
2364
|
-
if (
|
|
2367
|
+
} = store2.getState(), url = `https://storybook.js.org/${asset ? "docs-assets" : "docs"}/`;
|
|
2368
|
+
if (asset && current?.version)
|
|
2369
|
+
url += `${semver.major(current.version)}.${semver.minor(current.version)}/`;
|
|
2370
|
+
else if (versioned && current?.version && latest?.version) {
|
|
2365
2371
|
let versionDiff = semver.diff(latest.version, current.version);
|
|
2366
2372
|
versionDiff === "patch" || versionDiff === null || // assume latest version when current version is a 0.0.0 canary
|
|
2367
2373
|
semver.satisfies(current.version, "0.0.0", { includePrerelease: !0 }) || (url += `${semver.major(current.version)}.${semver.minor(current.version)}/`);
|
|
2368
2374
|
}
|
|
2369
2375
|
let [cleanedSubpath, hash] = subpath?.split("#") || [];
|
|
2370
|
-
if (cleanedSubpath && (url += `${cleanedSubpath}/`), renderer && typeof global8.STORYBOOK_RENDERER < "u") {
|
|
2376
|
+
if (cleanedSubpath && (url += asset ? cleanedSubpath : `${cleanedSubpath}/`), renderer && typeof global8.STORYBOOK_RENDERER < "u") {
|
|
2371
2377
|
let rendererName = global8.STORYBOOK_RENDERER;
|
|
2372
2378
|
rendererName && (url += `?renderer=${normalizeRendererName(rendererName)}`);
|
|
2373
2379
|
}
|
|
@@ -2868,6 +2874,92 @@ var testProviderStore = createTestProviderStore({
|
|
|
2868
2874
|
useTestProviderStore,
|
|
2869
2875
|
universalTestProviderStore
|
|
2870
2876
|
} = testProviderStore;
|
|
2877
|
+
|
|
2878
|
+
// src/shared/checklist-store/checklistData.state.ts
|
|
2879
|
+
var initialState = {
|
|
2880
|
+
items: {
|
|
2881
|
+
accessibilityTests: { status: "open" },
|
|
2882
|
+
autodocs: { status: "open" },
|
|
2883
|
+
ciTests: { status: "open" },
|
|
2884
|
+
controls: { status: "open" },
|
|
2885
|
+
coverage: { status: "open" },
|
|
2886
|
+
guidedTour: { status: "open" },
|
|
2887
|
+
installA11y: { status: "open" },
|
|
2888
|
+
installChromatic: { status: "open" },
|
|
2889
|
+
installDocs: { status: "open" },
|
|
2890
|
+
installVitest: { status: "open" },
|
|
2891
|
+
mdxDocs: { status: "open" },
|
|
2892
|
+
moreComponents: { status: "open" },
|
|
2893
|
+
moreStories: { status: "open" },
|
|
2894
|
+
onboardingSurvey: { status: "open" },
|
|
2895
|
+
organizeStories: { status: "open" },
|
|
2896
|
+
publishStorybook: { status: "open" },
|
|
2897
|
+
renderComponent: { status: "open" },
|
|
2898
|
+
runTests: { status: "open" },
|
|
2899
|
+
viewports: { status: "open" },
|
|
2900
|
+
visualTests: { status: "open" },
|
|
2901
|
+
whatsNewStorybook10: { status: "open" },
|
|
2902
|
+
writeInteractions: { status: "open" }
|
|
2903
|
+
},
|
|
2904
|
+
widget: {}
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
// src/shared/checklist-store/index.ts
|
|
2908
|
+
var UNIVERSAL_CHECKLIST_STORE_OPTIONS = {
|
|
2909
|
+
id: "storybook/checklist",
|
|
2910
|
+
initialState
|
|
2911
|
+
}, createChecklistStore = (universalChecklistStore2) => ({
|
|
2912
|
+
getValue: (id) => universalChecklistStore2.getState().items[id] ?? { status: "open", mutedAt: void 0 },
|
|
2913
|
+
accept: (id) => {
|
|
2914
|
+
universalChecklistStore2.setState((state) => ({
|
|
2915
|
+
...state,
|
|
2916
|
+
items: { ...state.items, [id]: { ...state.items[id], status: "accepted" } }
|
|
2917
|
+
}));
|
|
2918
|
+
},
|
|
2919
|
+
done: (id) => {
|
|
2920
|
+
universalChecklistStore2.setState((state) => ({
|
|
2921
|
+
...state,
|
|
2922
|
+
items: { ...state.items, [id]: { ...state.items[id], status: "done" } }
|
|
2923
|
+
}));
|
|
2924
|
+
},
|
|
2925
|
+
skip: (id) => {
|
|
2926
|
+
universalChecklistStore2.setState((state) => ({
|
|
2927
|
+
...state,
|
|
2928
|
+
items: { ...state.items, [id]: { ...state.items[id], status: "skipped" } }
|
|
2929
|
+
}));
|
|
2930
|
+
},
|
|
2931
|
+
reset: (id) => {
|
|
2932
|
+
universalChecklistStore2.setState((state) => ({
|
|
2933
|
+
...state,
|
|
2934
|
+
items: { ...state.items, [id]: { ...state.items[id], status: "open" } }
|
|
2935
|
+
}));
|
|
2936
|
+
},
|
|
2937
|
+
mute: (itemIds) => {
|
|
2938
|
+
universalChecklistStore2.setState((state) => ({
|
|
2939
|
+
...state,
|
|
2940
|
+
items: itemIds.reduce(
|
|
2941
|
+
(acc, id) => ({ ...acc, [id]: { ...state.items[id], mutedAt: Date.now() } }),
|
|
2942
|
+
state.items
|
|
2943
|
+
)
|
|
2944
|
+
}));
|
|
2945
|
+
},
|
|
2946
|
+
disable: (value) => {
|
|
2947
|
+
universalChecklistStore2.setState((state) => ({
|
|
2948
|
+
...state,
|
|
2949
|
+
widget: { ...state.widget, disable: value },
|
|
2950
|
+
items: Object.entries(state.items).reduce(
|
|
2951
|
+
(acc, [id, value2]) => ({ ...acc, [id]: { ...value2, mutedAt: void 0 } }),
|
|
2952
|
+
state.items
|
|
2953
|
+
)
|
|
2954
|
+
}));
|
|
2955
|
+
}
|
|
2956
|
+
});
|
|
2957
|
+
|
|
2958
|
+
// src/manager-api/stores/checklist.ts
|
|
2959
|
+
var universalChecklistStore = UniversalStore.create({
|
|
2960
|
+
...UNIVERSAL_CHECKLIST_STORE_OPTIONS,
|
|
2961
|
+
leader: globalThis.CONFIG_TYPE === "PRODUCTION"
|
|
2962
|
+
}), checklistStore = createChecklistStore(universalChecklistStore);
|
|
2871
2963
|
export {
|
|
2872
2964
|
ActiveTabs2 as ActiveTabs,
|
|
2873
2965
|
ManagerConsumer as Consumer,
|
|
@@ -2888,8 +2980,10 @@ export {
|
|
|
2888
2980
|
useStatusStore as experimental_useStatusStore,
|
|
2889
2981
|
useTestProviderStore as experimental_useTestProviderStore,
|
|
2890
2982
|
useUniversalStore as experimental_useUniversalStore,
|
|
2983
|
+
checklistStore as internal_checklistStore,
|
|
2891
2984
|
fullStatusStore as internal_fullStatusStore,
|
|
2892
2985
|
fullTestProviderStore as internal_fullTestProviderStore,
|
|
2986
|
+
universalChecklistStore as internal_universalChecklistStore,
|
|
2893
2987
|
universalStatusStore as internal_universalStatusStore,
|
|
2894
2988
|
universalTestProviderStore as internal_universalTestProviderStore,
|
|
2895
2989
|
isMacLike,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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-DQNBAQYT.js";
|
|
20
|
+
import "../_node-chunks/chunk-JMP7YFX2.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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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-W4F3T6CY.js";
|
|
26
|
+
import "../_node-chunks/chunk-A4KENTXT.js";
|
|
27
|
+
import "../_node-chunks/chunk-JMP7YFX2.js";
|
|
28
28
|
var export_instance = import_npmlog.default;
|
|
29
29
|
export {
|
|
30
30
|
CLI_COLORS,
|
package/dist/preview/runtime.js
CHANGED
|
@@ -34705,7 +34705,10 @@ var getQueryString = ({
|
|
|
34705
34705
|
}, getSelectionSpecifierFromPath = () => {
|
|
34706
34706
|
if (typeof document4 < "u") {
|
|
34707
34707
|
let queryStr = document4.location.search.slice(1), query = (0, import_picoquery2.parse)(queryStr), args = typeof query.args == "string" ? parseArgsParam(query.args) : void 0, globals = typeof query.globals == "string" ? parseArgsParam(query.globals) : void 0, viewMode = getFirstString(query.viewMode);
|
|
34708
|
-
(typeof viewMode != "string" || !viewMode
|
|
34708
|
+
if (typeof viewMode != "string" || !viewMode)
|
|
34709
|
+
viewMode = "story";
|
|
34710
|
+
else if (!viewMode.match(/docs|story/))
|
|
34711
|
+
return null;
|
|
34709
34712
|
let path = getFirstString(query.path), storyId = path ? pathToId(path) : getFirstString(query.id);
|
|
34710
34713
|
if (storyId)
|
|
34711
34714
|
return { storySpecifier: storyId, args, globals, viewMode };
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
useStoryContext,
|
|
49
49
|
userOrAutoTitle,
|
|
50
50
|
userOrAutoTitleFromSpecifier
|
|
51
|
-
} from "../_browser-chunks/chunk-
|
|
51
|
+
} from "../_browser-chunks/chunk-SS2NHR7W.js";
|
|
52
52
|
import {
|
|
53
53
|
pauseAnimations,
|
|
54
54
|
waitForAnimations
|
|
@@ -58,8 +58,8 @@ import {
|
|
|
58
58
|
combineParameters
|
|
59
59
|
} from "../_browser-chunks/chunk-VYJQ7RU5.js";
|
|
60
60
|
import "../_browser-chunks/chunk-3IAH5M2U.js";
|
|
61
|
-
import "../_browser-chunks/chunk-AS2HQEYC.js";
|
|
62
61
|
import "../_browser-chunks/chunk-QKODTO7K.js";
|
|
62
|
+
import "../_browser-chunks/chunk-AS2HQEYC.js";
|
|
63
63
|
import "../_browser-chunks/chunk-YKE5S47A.js";
|
|
64
64
|
import "../_browser-chunks/chunk-AIOS4NGK.js";
|
|
65
65
|
import "../_browser-chunks/chunk-GFLS4VP3.js";
|
package/dist/server-errors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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-LPPM7L5D.js";
|
|
46
|
+
import "./_node-chunks/chunk-XBPE4PT7.js";
|
|
47
|
+
import "./_node-chunks/chunk-KF3WTAEP.js";
|
|
48
|
+
import "./_node-chunks/chunk-A4KENTXT.js";
|
|
49
|
+
import "./_node-chunks/chunk-JMP7YFX2.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' | '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' | 'mocking' | 'automigrate' | 'migrate' | 'preview-first-load' | 'doctor';
|
|
36
36
|
interface Dependency {
|
|
37
37
|
version: string | undefined;
|
|
38
38
|
versionSpecifier?: string;
|
|
@@ -47,7 +47,7 @@ type StorybookMetadata = {
|
|
|
47
47
|
userSince?: number;
|
|
48
48
|
language: 'typescript' | 'javascript';
|
|
49
49
|
framework?: {
|
|
50
|
-
name
|
|
50
|
+
name?: string;
|
|
51
51
|
options?: any;
|
|
52
52
|
};
|
|
53
53
|
builder?: string;
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_yntchggdu3k from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_yntchggdu3k from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_yntchggdu3k from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_yntchggdu3k.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_yntchggdu3k.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_yntchggdu3k.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-
|
|
31
|
-
import "../_node-chunks/chunk-7IAVT2FU.js";
|
|
32
|
-
import "../_node-chunks/chunk-B7PGKETD.js";
|
|
25
|
+
} from "../_node-chunks/chunk-TMCKISJR.js";
|
|
26
|
+
import "../_node-chunks/chunk-NPB4THZQ.js";
|
|
27
|
+
import "../_node-chunks/chunk-C2HKH2XQ.js";
|
|
28
|
+
import "../_node-chunks/chunk-YMM6BYF2.js";
|
|
29
|
+
import "../_node-chunks/chunk-MJUDR7HQ.js";
|
|
30
|
+
import "../_node-chunks/chunk-W4F3T6CY.js";
|
|
33
31
|
import {
|
|
34
32
|
getPrecedingUpgrade
|
|
35
|
-
} from "../_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-H5XWXVWR.js";
|
|
34
|
+
import "../_node-chunks/chunk-ALIA3J6S.js";
|
|
35
|
+
import "../_node-chunks/chunk-JZR4DHG2.js";
|
|
36
|
+
import "../_node-chunks/chunk-WVXZFQQU.js";
|
|
37
|
+
import "../_node-chunks/chunk-NZBK3DSJ.js";
|
|
38
|
+
import "../_node-chunks/chunk-DQNBAQYT.js";
|
|
39
|
+
import "../_node-chunks/chunk-F74UHHR6.js";
|
|
40
|
+
import "../_node-chunks/chunk-4ZFHN3ZY.js";
|
|
41
|
+
import "../_node-chunks/chunk-KF3WTAEP.js";
|
|
42
|
+
import "../_node-chunks/chunk-A4KENTXT.js";
|
|
43
|
+
import "../_node-chunks/chunk-JMP7YFX2.js";
|
|
44
44
|
export {
|
|
45
45
|
ErrorCollector,
|
|
46
46
|
addToGlobalContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook",
|
|
3
|
-
"version": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.14",
|
|
4
4
|
"description": "Storybook: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -118,6 +118,10 @@
|
|
|
118
118
|
"default": "./dist/manager/globals.js"
|
|
119
119
|
},
|
|
120
120
|
"./internal/manager/globals-runtime": "./dist/manager/globals-runtime.js",
|
|
121
|
+
"./internal/manager/manager-stores": {
|
|
122
|
+
"types": "./dist/manager/manager-stores.d.ts",
|
|
123
|
+
"default": "./dist/manager/manager-stores.js"
|
|
124
|
+
},
|
|
121
125
|
"./internal/mocking-utils": {
|
|
122
126
|
"types": "./dist/mocking-utils/index.d.ts",
|
|
123
127
|
"default": "./dist/mocking-utils/index.js"
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.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-alpha.13",
|
|
16
|
-
"@storybook/addon-docs": "10.1.0-alpha.13",
|
|
17
|
-
"@storybook/addon-links": "10.1.0-alpha.13",
|
|
18
|
-
"@storybook/addon-onboarding": "10.1.0-alpha.13",
|
|
19
|
-
"storybook-addon-pseudo-states": "10.1.0-alpha.13",
|
|
20
|
-
"@storybook/addon-themes": "10.1.0-alpha.13",
|
|
21
|
-
"@storybook/addon-vitest": "10.1.0-alpha.13",
|
|
22
|
-
"@storybook/builder-vite": "10.1.0-alpha.13",
|
|
23
|
-
"@storybook/builder-webpack5": "10.1.0-alpha.13",
|
|
24
|
-
storybook: "10.1.0-alpha.13",
|
|
25
|
-
"@storybook/angular": "10.1.0-alpha.13",
|
|
26
|
-
"@storybook/ember": "10.1.0-alpha.13",
|
|
27
|
-
"@storybook/html-vite": "10.1.0-alpha.13",
|
|
28
|
-
"@storybook/nextjs": "10.1.0-alpha.13",
|
|
29
|
-
"@storybook/nextjs-vite": "10.1.0-alpha.13",
|
|
30
|
-
"@storybook/preact-vite": "10.1.0-alpha.13",
|
|
31
|
-
"@storybook/react-native-web-vite": "10.1.0-alpha.13",
|
|
32
|
-
"@storybook/react-vite": "10.1.0-alpha.13",
|
|
33
|
-
"@storybook/react-webpack5": "10.1.0-alpha.13",
|
|
34
|
-
"@storybook/server-webpack5": "10.1.0-alpha.13",
|
|
35
|
-
"@storybook/svelte-vite": "10.1.0-alpha.13",
|
|
36
|
-
"@storybook/sveltekit": "10.1.0-alpha.13",
|
|
37
|
-
"@storybook/vue3-vite": "10.1.0-alpha.13",
|
|
38
|
-
"@storybook/web-components-vite": "10.1.0-alpha.13",
|
|
39
|
-
sb: "10.1.0-alpha.13",
|
|
40
|
-
"@storybook/cli": "10.1.0-alpha.13",
|
|
41
|
-
"@storybook/codemod": "10.1.0-alpha.13",
|
|
42
|
-
"@storybook/core-webpack": "10.1.0-alpha.13",
|
|
43
|
-
"create-storybook": "10.1.0-alpha.13",
|
|
44
|
-
"@storybook/csf-plugin": "10.1.0-alpha.13",
|
|
45
|
-
"eslint-plugin-storybook": "10.1.0-alpha.13",
|
|
46
|
-
"@storybook/react-dom-shim": "10.1.0-alpha.13",
|
|
47
|
-
"@storybook/preset-create-react-app": "10.1.0-alpha.13",
|
|
48
|
-
"@storybook/preset-react-webpack": "10.1.0-alpha.13",
|
|
49
|
-
"@storybook/preset-server-webpack": "10.1.0-alpha.13",
|
|
50
|
-
"@storybook/html": "10.1.0-alpha.13",
|
|
51
|
-
"@storybook/preact": "10.1.0-alpha.13",
|
|
52
|
-
"@storybook/react": "10.1.0-alpha.13",
|
|
53
|
-
"@storybook/server": "10.1.0-alpha.13",
|
|
54
|
-
"@storybook/svelte": "10.1.0-alpha.13",
|
|
55
|
-
"@storybook/vue3": "10.1.0-alpha.13",
|
|
56
|
-
"@storybook/web-components": "10.1.0-alpha.13"
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
versions_default
|
|
61
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.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-DPFYWXEA.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,26 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
14
|
-
var isProduction = process.env.NODE_ENV === "production", prefix = "Invariant failed";
|
|
15
|
-
function invariant(condition, message) {
|
|
16
|
-
if (!condition) {
|
|
17
|
-
if (isProduction)
|
|
18
|
-
throw new Error(prefix);
|
|
19
|
-
var provided = typeof message == "function" ? message() : message, value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
20
|
-
throw new Error(value);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
invariant
|
|
26
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_h0pwn2pcb57 from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_h0pwn2pcb57 from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_h0pwn2pcb57 from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_h0pwn2pcb57.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_h0pwn2pcb57.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_h0pwn2pcb57.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.0-alpha.13";
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
version
|
|
18
|
-
};
|