storybook 10.4.2 → 10.6.0
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/{Color-QOVTYR6E.js → Color-BT4BG5DT.js} +9 -6
- package/dist/_browser-chunks/{WithTooltip-65CFNBJE.js → WithTooltip-CDUNV5IS.js} +3 -2
- package/dist/_browser-chunks/chunk-3PFG54GG.js +232 -0
- package/dist/_browser-chunks/chunk-6YDLG6WW.js +18 -0
- package/dist/_browser-chunks/{chunk-YK43Z22A.js → chunk-7PIQR4A3.js} +1 -4
- package/dist/_browser-chunks/{chunk-2GLGVABT.js → chunk-A26ZOLVJ.js} +14 -0
- package/dist/_browser-chunks/chunk-B3TL3N57.js +102 -0
- package/dist/_browser-chunks/{chunk-V2VKKSMQ.js → chunk-BMXVGY4U.js} +103 -17
- package/dist/_browser-chunks/{chunk-QIIJQEST.js → chunk-D6P6QKH4.js} +15 -34
- package/dist/_browser-chunks/{chunk-ZCFV7BZB.js → chunk-DRQKCCAG.js} +1 -1
- package/dist/_browser-chunks/{chunk-IH6QJILI.js → chunk-GLOGC42D.js} +12 -6
- package/dist/_browser-chunks/{chunk-A242L54C.js → chunk-IMSF75WX.js} +5 -1
- package/dist/_browser-chunks/{chunk-NQJGOFZV.js → chunk-J3E3FSHW.js} +51 -0
- package/dist/_browser-chunks/chunk-KJ7GNWII.js +28 -0
- package/dist/_browser-chunks/chunk-KK3JJ3E4.js +111 -0
- package/dist/_browser-chunks/{chunk-2HVKLHKJ.js → chunk-LKJ5WGKT.js} +1 -1
- package/dist/_browser-chunks/{chunk-SZQXB3JV.js → chunk-M6YZR3ZW.js} +626 -252
- package/dist/_browser-chunks/chunk-MI5GWNNC.js +80 -0
- package/dist/_browser-chunks/{chunk-JK6U3MQW.js → chunk-MOVZJCSM.js} +17 -15
- package/dist/_browser-chunks/{chunk-ASKQZAOS.js → chunk-NQ3W4AUJ.js} +8 -0
- package/dist/_browser-chunks/chunk-NULBREPZ.js +43 -0
- package/dist/_browser-chunks/chunk-QC4HFS6K.js +41 -0
- package/dist/_browser-chunks/{chunk-Q5RYDXT3.js → chunk-QGGIYUMM.js} +10 -10
- package/dist/_browser-chunks/{chunk-SI6AKD4S.js → chunk-RDNWKK3U.js} +27 -33
- package/dist/_browser-chunks/{chunk-7YGTGCDG.js → chunk-SC67XZST.js} +1 -1
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/chunk-SZYFOQMT.js +25 -0
- package/dist/_browser-chunks/chunk-TYQWMAQX.js +53 -0
- package/dist/_browser-chunks/chunk-VM65THJG.js +704 -0
- package/dist/_browser-chunks/{chunk-JT6NUAUC.js → chunk-W22LQPXL.js} +70 -4
- package/dist/_browser-chunks/{chunk-MFQQ5L5I.js → chunk-XJE6FSX5.js} +1 -1
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-YMU7DBNR.js +19 -0
- package/dist/_browser-chunks/chunk-YPBWNTGF.js +13 -0
- package/dist/_browser-chunks/chunk-YX25HBUE.js +159 -0
- package/dist/_browser-chunks/{chunk-IYCKG66Y.js → chunk-Z3B64JMR.js} +58 -31
- package/dist/_browser-chunks/chunk-ZEHRUHTA.js +6 -0
- package/dist/_browser-chunks/chunk-ZF665KZD.js +9 -0
- package/dist/_browser-chunks/chunk-ZTJL6ODF.js +1511 -0
- package/dist/_browser-chunks/{formatter-EIJCOSYU.js → formatter-L2YTDE3Q.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-W7WJGI2T.js → syntaxhighlighter-4REYKNEV.js} +16 -68
- package/dist/_node-chunks/attached-runtime-OD2MHCQ2.js +278 -0
- package/dist/_node-chunks/{builder-manager-LFGO35U5.js → builder-manager-TBY7BTS6.js} +46 -19
- package/dist/_node-chunks/{camelcase-45NXQBQZ.js → camelcase-GPBUWO7L.js} +7 -7
- package/dist/_node-chunks/chunk-2BMSH5CU.js +33 -0
- package/dist/_node-chunks/{chunk-MLJ5DCGH.js → chunk-2J2NU66Q.js} +7 -25
- package/dist/_node-chunks/{chunk-L36PKDQP.js → chunk-2WYCRIJA.js} +53 -27
- package/dist/_node-chunks/chunk-4C4AXOGG.js +45 -0
- package/dist/_node-chunks/chunk-4CTPDGB7.js +104 -0
- package/dist/_node-chunks/{chunk-R7BVFC2D.js → chunk-4US4PNS3.js} +18 -9
- package/dist/_node-chunks/chunk-52XR72NR.js +64 -0
- package/dist/_node-chunks/{chunk-QHMIIPJD.js → chunk-5DGTSUE6.js} +17 -30
- package/dist/_node-chunks/chunk-5EYYAT2W.js +2487 -0
- package/dist/_node-chunks/{chunk-3MJQGFKY.js → chunk-5G6TGQDE.js} +11 -8
- package/dist/_node-chunks/chunk-5VUZRITZ.js +6769 -0
- package/dist/_node-chunks/chunk-5XWVTFUD.js +7160 -0
- package/dist/_node-chunks/chunk-5ZQGOLDE.js +80 -0
- package/dist/_node-chunks/chunk-6EPLEZFZ.js +1213 -0
- package/dist/_node-chunks/chunk-6WZPWJR4.js +86 -0
- package/dist/_node-chunks/{chunk-O7TSSZXM.js → chunk-7BA6K3X5.js} +44 -19
- package/dist/_node-chunks/{chunk-73L4GC4E.js → chunk-7L4K47Q6.js} +10 -10
- package/dist/_node-chunks/chunk-7LZUPCQB.js +43 -0
- package/dist/_node-chunks/{chunk-TAYACG5Y.js → chunk-ANRJD6WC.js} +9 -9
- package/dist/_node-chunks/{chunk-FODLNFCP.js → chunk-AWDYUSA7.js} +14 -36
- package/dist/_node-chunks/chunk-B6IHDMAH.js +23 -0
- package/dist/_node-chunks/{chunk-C4WK5T7L.js → chunk-DKPWMKSY.js} +6 -6
- package/dist/_node-chunks/{chunk-7WEMCKHC.js → chunk-DW727PJG.js} +543 -11
- package/dist/_node-chunks/chunk-EEWXQXZP.js +27 -0
- package/dist/_node-chunks/chunk-F5UFNM2U.js +98 -0
- package/dist/_node-chunks/{chunk-IDGTLYPU.js → chunk-FE5AV6EP.js} +7 -7
- package/dist/_node-chunks/chunk-FSXNZYNT.js +20 -0
- package/dist/_node-chunks/chunk-FTP3QZ7O.js +167 -0
- package/dist/_node-chunks/{chunk-V4WSMXU3.js → chunk-G4ZCAUZF.js} +37 -29
- package/dist/_node-chunks/chunk-GVZSAAZJ.js +49 -0
- package/dist/_node-chunks/chunk-HFXQZX54.js +409 -0
- package/dist/_node-chunks/chunk-HJMGUQVU.js +652 -0
- package/dist/_node-chunks/chunk-HVTJ6ETP.js +62 -0
- package/dist/_node-chunks/{chunk-JJ2VMJ7Z.js → chunk-ICU5OS5Q.js} +6 -6
- package/dist/_node-chunks/{chunk-ISPUBAVT.js → chunk-IMMVTA66.js} +7 -7
- package/dist/_node-chunks/{chunk-FL7EBVLJ.js → chunk-IQHYYTFR.js} +14698 -14834
- package/dist/_node-chunks/{chunk-BNXXMARY.js → chunk-IRHRSPSI.js} +6 -6
- package/dist/_node-chunks/chunk-IRIMEJJ3.js +166 -0
- package/dist/_node-chunks/{chunk-GD4AVVJ6.js → chunk-ISBS76F6.js} +764 -751
- package/dist/_node-chunks/chunk-J4Q2MOKA.js +25 -0
- package/dist/_node-chunks/chunk-K36QW2O3.js +192 -0
- package/dist/_node-chunks/{chunk-3BNLXRMT.js → chunk-LBGJYL6K.js} +6 -6
- package/dist/_node-chunks/chunk-MC4KT4LA.js +36 -0
- package/dist/_node-chunks/chunk-MQGAF7D5.js +118 -0
- package/dist/_node-chunks/{chunk-AKZIDWJD.js → chunk-N4PAIJ2W.js} +186 -135
- package/dist/_node-chunks/chunk-NQDYICFM.js +26 -0
- package/dist/_node-chunks/chunk-PDN6UNOP.js +118 -0
- package/dist/_node-chunks/chunk-PG6QDVJT.js +1140 -0
- package/dist/_node-chunks/{chunk-6YHOQD7F.js → chunk-PNNIQSR4.js} +5615 -293
- package/dist/_node-chunks/{chunk-HKR2K7HF.js → chunk-PPVCVHOS.js} +7 -7
- package/dist/_node-chunks/{chunk-7VTLE5YX.js → chunk-S76TV45M.js} +14 -13
- package/dist/_node-chunks/chunk-S7XIM54L.js +25 -0
- package/dist/_node-chunks/chunk-SC2O4JWO.js +11 -0
- package/dist/_node-chunks/chunk-UAW7LJY2.js +143 -0
- package/dist/_node-chunks/chunk-UF3LYQOO.js +19 -0
- package/dist/_node-chunks/chunk-VBSZV6KY.js +44 -0
- package/dist/_node-chunks/{chunk-AFCIL7SS.js → chunk-VGN5LGMI.js} +7 -7
- package/dist/_node-chunks/chunk-VT3VBFAX.js +1135 -0
- package/dist/_node-chunks/{chunk-ZFGCKAOI.js → chunk-XGT335GY.js} +109 -86
- package/dist/_node-chunks/chunk-XSINJFVF.js +87 -0
- package/dist/_node-chunks/{chunk-QGWCIQDL.js → chunk-XTZ2XLTY.js} +23 -8
- package/dist/_node-chunks/{globby-A5OBERQV.js → globby-MBJFQ4QO.js} +15 -13
- package/dist/_node-chunks/{lib-B44OSHMG.js → lib-OBLZOLLS.js} +7 -7
- package/dist/_node-chunks/local-runtime-QL5INIZ2.js +76 -0
- package/dist/_node-chunks/monorepo-KBAWAMFF.js +121 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-7TDELDWK.js +121 -0
- package/dist/_node-chunks/optimized-tests-XOQZOPAA.js +21 -0
- package/dist/_node-chunks/p-limit-OC7IM4Z4.js +20 -0
- package/dist/_node-chunks/pattern-copy-play-WEHXTRPC.js +809 -0
- package/dist/_node-chunks/relaxed-limits-WE3GWBOO.js +117 -0
- package/dist/_node-chunks/session-id-5SLMZUEO.js +23 -0
- package/dist/_node-chunks/setup-ODZF2RFR.js +287 -0
- package/dist/actions/decorator.d.ts +4 -3
- package/dist/actions/decorator.js +1 -1
- package/dist/actions/index.d.ts +47 -45
- package/dist/actions/index.js +1 -1
- package/dist/babel/index.d.ts +1929 -7591
- package/dist/babel/index.js +10 -10
- package/dist/backgrounds/index.d.ts +6 -0
- package/dist/backgrounds/index.js +15 -0
- package/dist/bin/core.js +2339 -102
- package/dist/bin/dispatcher.js +30 -19
- package/dist/bin/loader.js +12 -11
- package/dist/channels/index.d.ts +2 -127
- package/dist/channels/index.js +57 -97
- package/dist/chunk-BKd7G5t3.d.ts +61 -0
- package/dist/chunk-BW2saWbz.d.ts +916 -0
- package/dist/chunk-Br3Wsk04.d.ts +770 -0
- package/dist/chunk-BxCdsGId.d.ts +664 -0
- package/dist/chunk-By2eGsW5.d.ts +228 -0
- package/dist/chunk-ByoeRqRY.d.ts +253 -0
- package/dist/chunk-C7SCAuvd.d.ts +15 -0
- package/dist/chunk-CB2MeY3U.d.ts +12 -0
- package/dist/chunk-CFpRk_Kn.d.ts +575 -0
- package/dist/chunk-CSYKg21N.d.ts +164 -0
- package/dist/chunk-CrbgZRtX.d.ts +59 -0
- package/dist/chunk-D2MohGtK.d.ts +40 -0
- package/dist/chunk-D4hRFgkh.d.ts +281 -0
- package/dist/chunk-D4lKaBz7.d.ts +506 -0
- package/dist/chunk-DdLFxT9J.d.ts +1116 -0
- package/dist/chunk-Dv2j21_S.d.ts +10510 -0
- package/dist/chunk-OG_iMtt8.d.ts +191 -0
- package/dist/chunk-mKTEiqNQ.d.ts +78 -0
- package/dist/chunk-wK3zEWUl.d.ts +3627 -0
- package/dist/chunk-zQu03vfn.d.ts +18214 -0
- package/dist/cli/index.d.ts +282 -4317
- package/dist/cli/index.js +40 -19
- package/dist/cli/skills/content/index.d.ts +85 -0
- package/dist/cli/skills/content/index.js +363 -0
- package/dist/cli/tools/sdk/child-host.d.ts +67 -0
- package/dist/cli/tools/sdk/child-host.js +135 -0
- package/dist/cli/tools/sdk/index.d.ts +155 -0
- package/dist/cli/tools/sdk/index.js +47 -0
- package/dist/client-logger/index.d.ts +27 -26
- package/dist/client-logger/index.js +1 -1
- package/dist/common/index.d.ts +780 -2421
- package/dist/common/index.js +106 -22
- package/dist/component-meta/index.d.ts +327 -0
- package/dist/component-meta/index.js +488 -0
- package/dist/components/index.d.ts +1497 -1293
- package/dist/components/index.js +219 -169
- package/dist/core-events/index.d.ts +153 -354
- package/dist/core-events/index.js +1 -1
- package/dist/core-server/index.d.ts +2324 -1554
- package/dist/core-server/index.js +10157 -12738
- package/dist/core-server/presets/common-manager.js +679 -351
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +927 -299
- package/dist/csf/csf-utils.d.ts +2 -0
- package/dist/csf/csf-utils.js +19 -0
- package/dist/csf/index.d.ts +7 -2136
- package/dist/csf/index.js +221 -72
- package/dist/csf-tools/index.d.ts +664 -253
- package/dist/csf-tools/index.js +92 -21
- package/dist/docs-tools/index.d.ts +166 -92
- package/dist/docs-tools/index.js +18 -5
- package/dist/highlight/index.d.ts +5 -58
- package/dist/highlight/index.js +1 -1
- package/dist/instrumenter/index.d.ts +83 -99
- package/dist/instrumenter/index.js +2 -2
- package/dist/manager/globals-runtime.js +10538 -8155
- package/dist/manager/globals.d.ts +18 -17
- package/dist/manager/globals.js +2 -2
- package/dist/manager/manager-stores.d.ts +2 -1
- package/dist/manager/manager-stores.js +1 -1
- package/dist/manager/runtime.js +16098 -15244
- package/dist/manager-api/index.d.ts +2 -4060
- package/dist/manager-api/index.js +225 -194
- package/dist/manager-errors.d.ts +73 -628
- package/dist/manager-errors.js +11 -5
- package/dist/mocking-utils/index.d.ts +564 -789
- package/dist/mocking-utils/index.js +35 -90
- package/dist/mocking-utils/mocker-runtime.js +3 -3
- package/dist/node-logger/index.d.ts +423 -1953
- package/dist/node-logger/index.js +9 -9
- package/dist/oxc-parser/index.d.ts +53 -28
- package/dist/oxc-parser/index.js +62 -14
- package/dist/oxc-parser/worker.js +11 -11
- package/dist/preview/globals.d.ts +13 -12
- package/dist/preview/globals.js +1 -1
- package/dist/preview/runtime.js +6537 -3674
- package/dist/preview-api/index.d.ts +4 -1580
- package/dist/preview-api/index.js +41 -18
- package/dist/preview-errors.d.ts +121 -721
- package/dist/preview-errors.js +3 -3
- package/dist/router/index.d.ts +86 -728
- package/dist/router/index.js +29 -24
- package/dist/server-errors.d.ts +2 -918
- package/dist/server-errors.js +94 -12
- package/dist/shared/open-service/index.d.ts +3 -0
- package/dist/shared/open-service/index.js +116 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +76 -0
- package/dist/shared/open-service/toolsets/docs/public.d.ts +1330 -0
- package/dist/shared/open-service/toolsets/docs/public.js +1023 -0
- package/dist/telemetry/index.d.ts +197 -149
- package/dist/telemetry/index.js +38 -26
- package/dist/test/index.d.ts +97 -1319
- package/dist/test/index.js +1324 -5532
- package/dist/theming/create.d.ts +8 -45
- package/dist/theming/create.js +2 -2
- package/dist/theming/index.d.ts +136 -12749
- package/dist/theming/index.js +17 -5
- package/dist/types/index.d.ts +2 -3979
- package/dist/types/index.js +21 -8
- package/dist/viewport/index.d.ts +267 -319
- package/dist/viewport/index.js +6 -6
- package/package.json +64 -13
- package/dist/_browser-chunks/chunk-4AB3IUR2.js +0 -13
- package/dist/_browser-chunks/chunk-C3TKC4WX.js +0 -47
- package/dist/_browser-chunks/chunk-FNXWN6IK.js +0 -32
- package/dist/_browser-chunks/chunk-LCHBOIHN.js +0 -64
- package/dist/_browser-chunks/chunk-SL75JR6Y.js +0 -9
- package/dist/_browser-chunks/chunk-XLJZ7AOP.js +0 -779
- package/dist/_node-chunks/chunk-BOVST5A6.js +0 -84
- package/dist/_node-chunks/chunk-PU4IASEN.js +0 -1489
- package/dist/_node-chunks/chunk-U5UFYVZ7.js +0 -18
- package/dist/_node-chunks/chunk-VSZP3IVO.js +0 -1799
- package/dist/_node-chunks/p-limit-WM2X6HTW.js +0 -20
- package/dist/_node-chunks/session-id-U53AF2GP.js +0 -22
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getControlId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YPBWNTGF.js";
|
|
4
4
|
import "./chunk-NZMVUW5T.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IMSF75WX.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/color-name/index.js
|
|
11
11
|
var require_color_name = __commonJS({
|
|
@@ -611,7 +611,7 @@ function partialImpl(func, placeholder, ...partialArgs) {
|
|
|
611
611
|
};
|
|
612
612
|
return func.prototype && (partialed.prototype = Object.create(func.prototype)), partialed;
|
|
613
613
|
}
|
|
614
|
-
var placeholderSymbol = Symbol("partial.placeholder");
|
|
614
|
+
var placeholderSymbol = /* @__PURE__ */ Symbol("partial.placeholder");
|
|
615
615
|
partial.placeholder = placeholderSymbol;
|
|
616
616
|
|
|
617
617
|
// ../../node_modules/es-toolkit/dist/function/partialRight.mjs
|
|
@@ -625,7 +625,7 @@ function partialRightImpl(func, placeholder, ...partialArgs) {
|
|
|
625
625
|
};
|
|
626
626
|
return func.prototype && (partialedRight.prototype = Object.create(func.prototype)), partialedRight;
|
|
627
627
|
}
|
|
628
|
-
var placeholderSymbol2 = Symbol("partialRight.placeholder");
|
|
628
|
+
var placeholderSymbol2 = /* @__PURE__ */ Symbol("partialRight.placeholder");
|
|
629
629
|
partialRight.placeholder = placeholderSymbol2;
|
|
630
630
|
|
|
631
631
|
// ../../node_modules/es-toolkit/dist/function/retry.mjs
|
|
@@ -1022,6 +1022,7 @@ var Wrapper = styled.div({
|
|
|
1022
1022
|
}, ColorControl = ({
|
|
1023
1023
|
name,
|
|
1024
1024
|
storyId,
|
|
1025
|
+
controlsId,
|
|
1025
1026
|
value: initialValue,
|
|
1026
1027
|
onChange,
|
|
1027
1028
|
onFocus,
|
|
@@ -1029,12 +1030,13 @@ var Wrapper = styled.div({
|
|
|
1029
1030
|
presetColors,
|
|
1030
1031
|
maxPresetColors,
|
|
1031
1032
|
startOpen = !1,
|
|
1032
|
-
argType
|
|
1033
|
+
argType,
|
|
1034
|
+
required
|
|
1033
1035
|
}) => {
|
|
1034
1036
|
let debouncedOnChange = useCallback(debounce(onChange, 200), [onChange]), { value, realValue, updateValue, color, colorSpace, cycleColorSpace } = useColorInput(
|
|
1035
1037
|
initialValue,
|
|
1036
1038
|
debouncedOnChange
|
|
1037
|
-
), { presets, addPreset } = usePresets(presetColors ?? [], color, colorSpace, maxPresetColors), Picker = ColorPicker[colorSpace], readOnly = !!argType?.table?.readonly, controlId = getControlId(name, storyId);
|
|
1039
|
+
), { presets, addPreset } = usePresets(presetColors ?? [], color, colorSpace, maxPresetColors), Picker = ColorPicker[colorSpace], readOnly = !!argType?.table?.readonly, controlId = getControlId(name, storyId, controlsId);
|
|
1038
1040
|
return React.createElement(Wrapper, null, React.createElement("label", { htmlFor: controlId, className: "sb-sr-only" }, name), React.createElement(
|
|
1039
1041
|
Input,
|
|
1040
1042
|
{
|
|
@@ -1043,6 +1045,7 @@ var Wrapper = styled.div({
|
|
|
1043
1045
|
onChange: (e2) => updateValue(e2.target.value),
|
|
1044
1046
|
onFocus: (e2) => e2.target.select(),
|
|
1045
1047
|
readOnly,
|
|
1048
|
+
"aria-required": required || void 0,
|
|
1046
1049
|
placeholder: "Choose color..."
|
|
1047
1050
|
}
|
|
1048
1051
|
), React.createElement(
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk-LE2LTDW3.js";
|
|
7
7
|
import {
|
|
8
8
|
require_memoizerific
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DRQKCCAG.js";
|
|
10
10
|
import {
|
|
11
11
|
__commonJS,
|
|
12
12
|
__toESM
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IMSF75WX.js";
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/react-fast-compare/index.js
|
|
16
16
|
var require_react_fast_compare = __commonJS({
|
|
@@ -1497,6 +1497,7 @@ var { document: document2 } = global, match = (0, import_memoizerific.default)(1
|
|
|
1497
1497
|
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
1498
1498
|
`,
|
|
1499
1499
|
borderRadius: theme.appBorderRadius + 2,
|
|
1500
|
+
fontFamily: theme.typography.fonts.base,
|
|
1500
1501
|
fontSize: theme.typography.size.s1
|
|
1501
1502
|
} : {}
|
|
1502
1503
|
), Tooltip = React7.forwardRef(
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StorybookError
|
|
3
|
+
} from "./chunk-LKJ5WGKT.js";
|
|
4
|
+
import {
|
|
5
|
+
require_picocolors_browser
|
|
6
|
+
} from "./chunk-SC67XZST.js";
|
|
7
|
+
import {
|
|
8
|
+
__toESM
|
|
9
|
+
} from "./chunk-IMSF75WX.js";
|
|
10
|
+
|
|
11
|
+
// src/server-errors.ts
|
|
12
|
+
var import_picocolors = __toESM(require_picocolors_browser(), 1);
|
|
13
|
+
|
|
14
|
+
// src/shared/open-service/errors.ts
|
|
15
|
+
function formatIssuePath(path) {
|
|
16
|
+
return path?.length ? path.map((segment) => {
|
|
17
|
+
let key = typeof segment == "object" && segment !== null && "key" in segment ? segment.key : segment;
|
|
18
|
+
return typeof key == "number" ? `[${key}]` : `.${String(key)}`;
|
|
19
|
+
}).join("").replace(/^\./, "") : "";
|
|
20
|
+
}
|
|
21
|
+
function formatIssues(issues) {
|
|
22
|
+
return issues.map((issue) => {
|
|
23
|
+
let path = formatIssuePath(issue.path);
|
|
24
|
+
return path === "" ? issue.message : `${path}: ${issue.message}`;
|
|
25
|
+
}).join(`
|
|
26
|
+
`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// src/server-errors.ts
|
|
30
|
+
var OpenServiceValidationError = class extends StorybookError {
|
|
31
|
+
constructor(data) {
|
|
32
|
+
super({
|
|
33
|
+
name: "OpenServiceValidationError",
|
|
34
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
35
|
+
code: 5,
|
|
36
|
+
message: `Invalid ${data.phase} for ${data.kind} "${data.serviceId}.${data.name}":
|
|
37
|
+
${formatIssues(
|
|
38
|
+
data.issues
|
|
39
|
+
)}`
|
|
40
|
+
});
|
|
41
|
+
this.data = data;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var OpenServiceMissingServiceError = class extends StorybookError {
|
|
45
|
+
constructor(data) {
|
|
46
|
+
super({
|
|
47
|
+
name: "OpenServiceMissingServiceError",
|
|
48
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
49
|
+
code: 7,
|
|
50
|
+
message: `No registered service with id "${data.serviceId}" exists in this environment.`
|
|
51
|
+
});
|
|
52
|
+
this.data = data;
|
|
53
|
+
}
|
|
54
|
+
}, OpenServiceInternalServiceError = class extends StorybookError {
|
|
55
|
+
constructor(data) {
|
|
56
|
+
super({
|
|
57
|
+
name: "OpenServiceInternalServiceError",
|
|
58
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
59
|
+
code: 19,
|
|
60
|
+
message: `Service "${data.serviceId}" is internal. Pass { internal: true } to getService() only if you intentionally depend on an unstable OSA surface. Internal services may change without notice.`
|
|
61
|
+
});
|
|
62
|
+
this.data = data;
|
|
63
|
+
}
|
|
64
|
+
}, OpenServiceUnimplementedOperationError = class extends StorybookError {
|
|
65
|
+
constructor(data) {
|
|
66
|
+
super({
|
|
67
|
+
name: "OpenServiceUnimplementedOperationError",
|
|
68
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
69
|
+
code: 8,
|
|
70
|
+
message: `${data.kind[0].toUpperCase()}${data.kind.slice(1)} "${data.serviceId}.${data.name}" is not implemented for this environment.`
|
|
71
|
+
});
|
|
72
|
+
this.data = data;
|
|
73
|
+
}
|
|
74
|
+
}, OpenServiceInvalidStaticPathError = class extends StorybookError {
|
|
75
|
+
constructor(data) {
|
|
76
|
+
super({
|
|
77
|
+
name: "OpenServiceInvalidStaticPathError",
|
|
78
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
79
|
+
code: 10,
|
|
80
|
+
message: `Invalid static path "${data.path}" for query "${data.serviceId}.${data.name}": use a relative path with forward slashes and no ".." segments.`
|
|
81
|
+
});
|
|
82
|
+
this.data = data;
|
|
83
|
+
}
|
|
84
|
+
}, OpenServiceAsyncSchemaError = class extends StorybookError {
|
|
85
|
+
constructor(data) {
|
|
86
|
+
super({
|
|
87
|
+
name: "OpenServiceAsyncSchemaError",
|
|
88
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
89
|
+
code: 9,
|
|
90
|
+
message: `Async schema for ${data.kind} "${data.serviceId}.${data.name}" (${data.phase}): query input and output schemas must validate synchronously.`
|
|
91
|
+
});
|
|
92
|
+
this.data = data;
|
|
93
|
+
}
|
|
94
|
+
}, OpenServiceLoadedDrainExceededError = class extends StorybookError {
|
|
95
|
+
constructor(data) {
|
|
96
|
+
super({
|
|
97
|
+
name: "OpenServiceLoadedDrainExceededError",
|
|
98
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
99
|
+
code: 11,
|
|
100
|
+
message: `Query "${data.serviceId}.${data.name}".loaded(...) did not settle after ${data.iterations} drain iterations. Check for handlers that keep discovering new dependencies after every state change.`
|
|
101
|
+
});
|
|
102
|
+
this.data = data;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var OpenServiceMissingChannelError = class extends StorybookError {
|
|
106
|
+
constructor(data = {}) {
|
|
107
|
+
super({
|
|
108
|
+
name: "OpenServiceMissingChannelError",
|
|
109
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
110
|
+
code: 13,
|
|
111
|
+
message: data.serviceId ? `Cannot register service "${data.serviceId}": the Storybook addons channel is not installed in this runtime.` : "The Storybook addons channel is not installed in this runtime."
|
|
112
|
+
});
|
|
113
|
+
this.data = data;
|
|
114
|
+
}
|
|
115
|
+
}, OpenServiceRemoteCommandDisconnectedError = class extends StorybookError {
|
|
116
|
+
constructor(data) {
|
|
117
|
+
super({
|
|
118
|
+
name: "OpenServiceRemoteCommandDisconnectedError",
|
|
119
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
120
|
+
code: 14,
|
|
121
|
+
message: `Service "${data.serviceId}" was unregistered before a remote command resolved.`
|
|
122
|
+
});
|
|
123
|
+
this.data = data;
|
|
124
|
+
}
|
|
125
|
+
}, OpenServiceRemoteCommandUnhandledError = class extends StorybookError {
|
|
126
|
+
constructor(data) {
|
|
127
|
+
super({
|
|
128
|
+
name: "OpenServiceRemoteCommandUnhandledError",
|
|
129
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
130
|
+
code: 15,
|
|
131
|
+
message: data.delegated ? `The Storybook this runtime is attached to did not acknowledge remote command "${data.serviceId}.${data.commandName}" in time \u2014 it may be busy or unreachable. Retry; note the command may still have executed on that instance.` : `No runtime acknowledged remote command "${data.serviceId}.${data.commandName}"; its handler is not implemented in any connected runtime.`
|
|
132
|
+
});
|
|
133
|
+
this.data = data;
|
|
134
|
+
}
|
|
135
|
+
}, OpenServiceRemoteCommandConfigDriftError = class extends StorybookError {
|
|
136
|
+
constructor(data) {
|
|
137
|
+
super({
|
|
138
|
+
name: "OpenServiceRemoteCommandConfigDriftError",
|
|
139
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
140
|
+
code: 30,
|
|
141
|
+
message: `The Storybook this runtime is attached to reported it has no handler for remote command "${data.serviceId}.${data.commandName}". The two processes are running different configurations (for example a feature flag enabled in one but not the other). Restart the attached Storybook with a configuration matching this process.`
|
|
142
|
+
});
|
|
143
|
+
this.data = data;
|
|
144
|
+
}
|
|
145
|
+
}, OpenServiceOperationNameCollisionError = class extends StorybookError {
|
|
146
|
+
constructor(data) {
|
|
147
|
+
super({
|
|
148
|
+
name: "OpenServiceOperationNameCollisionError",
|
|
149
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
150
|
+
code: 16,
|
|
151
|
+
message: `Service "${data.serviceId}" cannot register "${data.operationName}" as both a query and a command.`
|
|
152
|
+
});
|
|
153
|
+
this.data = data;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
var OpenServiceMissingToolsetError = class extends StorybookError {
|
|
157
|
+
constructor(data) {
|
|
158
|
+
super({
|
|
159
|
+
name: "OpenServiceMissingToolsetError",
|
|
160
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
161
|
+
code: 23,
|
|
162
|
+
message: `No registered toolset with id "${data.toolsetId}" exists in this environment.`
|
|
163
|
+
});
|
|
164
|
+
this.data = data;
|
|
165
|
+
}
|
|
166
|
+
}, OpenServiceDuplicateToolsetError = class extends StorybookError {
|
|
167
|
+
constructor(data) {
|
|
168
|
+
super({
|
|
169
|
+
name: "OpenServiceDuplicateToolsetError",
|
|
170
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
171
|
+
code: 24,
|
|
172
|
+
message: `A toolset with id "${data.toolsetId}" is already registered. Each public toolset must be registered exactly once.`
|
|
173
|
+
});
|
|
174
|
+
this.data = data;
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var OpenServiceInvalidToolsetMethodIdError = class extends StorybookError {
|
|
178
|
+
constructor(data) {
|
|
179
|
+
super({
|
|
180
|
+
name: "OpenServiceInvalidToolsetMethodIdError",
|
|
181
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
182
|
+
code: 28,
|
|
183
|
+
message: `Invalid toolset method id "${data.methodId}". Expected exactly one separator: toolsetId.methodName.`
|
|
184
|
+
});
|
|
185
|
+
this.data = data;
|
|
186
|
+
}
|
|
187
|
+
}, OpenServiceDuplicateToolNameError = class extends StorybookError {
|
|
188
|
+
constructor(data) {
|
|
189
|
+
super({
|
|
190
|
+
name: "OpenServiceDuplicateToolNameError",
|
|
191
|
+
category: "CORE-COMMON" /* CORE_COMMON */,
|
|
192
|
+
code: 29,
|
|
193
|
+
message: data.transport === "mcp" ? `Derived MCP tool name "${data.derivedName}" collides between "${data.first}" and "${data.second}". Rename one toolset id or method key.` : `Derived CLI method name "${data.derivedName}" collides between "${data.first}" and "${data.second}" in the same toolset. Rename one method key.`
|
|
194
|
+
});
|
|
195
|
+
this.data = data;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
var StatusTypeIdMismatchError = class extends StorybookError {
|
|
199
|
+
constructor(data) {
|
|
200
|
+
super({
|
|
201
|
+
name: "StatusTypeIdMismatchError",
|
|
202
|
+
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
203
|
+
code: 16,
|
|
204
|
+
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
|
|
205
|
+
data.status,
|
|
206
|
+
null,
|
|
207
|
+
2
|
|
208
|
+
)}`
|
|
209
|
+
});
|
|
210
|
+
this.data = data;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
export {
|
|
215
|
+
OpenServiceValidationError,
|
|
216
|
+
OpenServiceMissingServiceError,
|
|
217
|
+
OpenServiceInternalServiceError,
|
|
218
|
+
OpenServiceUnimplementedOperationError,
|
|
219
|
+
OpenServiceInvalidStaticPathError,
|
|
220
|
+
OpenServiceAsyncSchemaError,
|
|
221
|
+
OpenServiceLoadedDrainExceededError,
|
|
222
|
+
OpenServiceMissingChannelError,
|
|
223
|
+
OpenServiceRemoteCommandDisconnectedError,
|
|
224
|
+
OpenServiceRemoteCommandUnhandledError,
|
|
225
|
+
OpenServiceRemoteCommandConfigDriftError,
|
|
226
|
+
OpenServiceOperationNameCollisionError,
|
|
227
|
+
OpenServiceMissingToolsetError,
|
|
228
|
+
OpenServiceDuplicateToolsetError,
|
|
229
|
+
OpenServiceInvalidToolsetMethodIdError,
|
|
230
|
+
OpenServiceDuplicateToolNameError,
|
|
231
|
+
StatusTypeIdMismatchError
|
|
232
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/backgrounds/constants.ts
|
|
2
|
+
var ADDON_ID = "storybook/background", PARAM_KEY = "backgrounds", GRID_PARAM_KEY = "grid", EVENTS = {
|
|
3
|
+
UPDATE: `${ADDON_ID}/update`
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// src/backgrounds/defaults.ts
|
|
7
|
+
var DEFAULT_BACKGROUNDS = {
|
|
8
|
+
light: { name: "light", value: "#F8F8F8" },
|
|
9
|
+
dark: { name: "dark", value: "#333" }
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
ADDON_ID,
|
|
14
|
+
PARAM_KEY,
|
|
15
|
+
GRID_PARAM_KEY,
|
|
16
|
+
EVENTS,
|
|
17
|
+
DEFAULT_BACKGROUNDS
|
|
18
|
+
};
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
uint32ArrayTag,
|
|
27
27
|
uint8ArrayTag,
|
|
28
28
|
uint8ClampedArrayTag
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Z3B64JMR.js";
|
|
30
30
|
|
|
31
31
|
// ../../node_modules/es-toolkit/dist/object/mapValues.mjs
|
|
32
32
|
function mapValues(object, getNewValue) {
|
|
@@ -239,9 +239,6 @@ function omit(obj, keys) {
|
|
|
239
239
|
return result;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
// ../../node_modules/es-toolkit/dist/string/words.mjs
|
|
243
|
-
var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+", "gu");
|
|
244
|
-
|
|
245
242
|
// ../../node_modules/es-toolkit/dist/object/toMerged.mjs
|
|
246
243
|
function toMerged(target, source) {
|
|
247
244
|
return mergeWith(clone(target), source, function mergeRecursively(targetValue, sourceValue) {
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Channel
|
|
3
|
+
} from "./chunk-KK3JJ3E4.js";
|
|
4
|
+
|
|
5
|
+
// src/channels/mock-channel.ts
|
|
6
|
+
function mockChannel() {
|
|
7
|
+
return new Channel({
|
|
8
|
+
transport: { setHandler: () => {
|
|
9
|
+
}, send: () => {
|
|
10
|
+
} }
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
1
14
|
// src/shared/constants/tags.ts
|
|
2
15
|
var Tag = {
|
|
3
16
|
/** Indicates that autodocs should be generated for this component */
|
|
@@ -23,6 +36,7 @@ var Tag = {
|
|
|
23
36
|
}, USER_TAG_FILTER = (tag) => (entry, excluded) => excluded ? !entry.tags?.includes(tag) : !!entry.tags?.includes(tag);
|
|
24
37
|
|
|
25
38
|
export {
|
|
39
|
+
mockChannel,
|
|
26
40
|
Tag,
|
|
27
41
|
BUILT_IN_FILTERS,
|
|
28
42
|
USER_TAG_FILTER
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import {
|
|
2
|
+
array,
|
|
3
|
+
custom,
|
|
4
|
+
looseObject,
|
|
5
|
+
object,
|
|
6
|
+
optional,
|
|
7
|
+
record,
|
|
8
|
+
string,
|
|
9
|
+
undefined_,
|
|
10
|
+
void_
|
|
11
|
+
} from "./chunk-VM65THJG.js";
|
|
12
|
+
|
|
13
|
+
// src/measure/constants.ts
|
|
14
|
+
var ADDON_ID = "storybook/measure-addon", TOOL_ID = `${ADDON_ID}/tool`, PARAM_KEY = "measureEnabled", EVENTS = {
|
|
15
|
+
RESULT: `${ADDON_ID}/result`,
|
|
16
|
+
REQUEST: `${ADDON_ID}/request`,
|
|
17
|
+
CLEAR: `${ADDON_ID}/clear`
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// src/outline/constants.ts
|
|
21
|
+
var ADDON_ID2 = "storybook/outline", PARAM_KEY2 = "outline";
|
|
22
|
+
|
|
23
|
+
// src/shared/open-service/services/docgen/definition.ts
|
|
24
|
+
import { defineService } from "storybook/open-service";
|
|
25
|
+
|
|
26
|
+
// src/shared/open-service/services/docgen/paths.ts
|
|
27
|
+
function docgenQueryStaticPath(id) {
|
|
28
|
+
return `${id}.json`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// src/shared/open-service/services/docgen/definition.ts
|
|
32
|
+
var docgenInputSchema = object({ id: string() }), argTypesSchema = custom(
|
|
33
|
+
(value) => typeof value == "object" && value !== null && !Array.isArray(value)
|
|
34
|
+
), docgenErrorSchema = object({
|
|
35
|
+
name: string(),
|
|
36
|
+
message: string()
|
|
37
|
+
}), docgenJsDocTagsSchema = record(string(), array(string())), docgenComponentFields = {
|
|
38
|
+
name: string(),
|
|
39
|
+
path: string(),
|
|
40
|
+
description: optional(string()),
|
|
41
|
+
summary: optional(string()),
|
|
42
|
+
jsDocTags: docgenJsDocTagsSchema,
|
|
43
|
+
argTypes: optional(argTypesSchema),
|
|
44
|
+
error: optional(docgenErrorSchema)
|
|
45
|
+
}, docgenSubcomponentFields = {
|
|
46
|
+
...docgenComponentFields,
|
|
47
|
+
import: optional(string())
|
|
48
|
+
}, docgenSubcomponentSchema = looseObject(docgenSubcomponentFields), docgenPayloadSchema = looseObject({
|
|
49
|
+
id: string(),
|
|
50
|
+
...docgenComponentFields,
|
|
51
|
+
subcomponents: optional(record(string(), docgenSubcomponentSchema))
|
|
52
|
+
}), docgenOutputSchema = optional(docgenPayloadSchema), docgenServiceDef = defineService({
|
|
53
|
+
id: "core/docgen",
|
|
54
|
+
internal: !0,
|
|
55
|
+
description: "Component documentation (name, description, props, JSDoc tags) keyed by component id.",
|
|
56
|
+
initialState: { components: {} },
|
|
57
|
+
queries: {
|
|
58
|
+
docgen: {
|
|
59
|
+
description: "Returns the docgen payload for one component id, or undefined when not loaded.",
|
|
60
|
+
input: docgenInputSchema,
|
|
61
|
+
output: docgenOutputSchema,
|
|
62
|
+
handler: (input, ctx) => ctx.self.state.components[input.id],
|
|
63
|
+
load: async (input, ctx) => {
|
|
64
|
+
await ctx.self.commands.extractDocgen(input);
|
|
65
|
+
},
|
|
66
|
+
staticPath: (input) => docgenQueryStaticPath(input.id)
|
|
67
|
+
},
|
|
68
|
+
docgenForAllComponents: {
|
|
69
|
+
description: "Returns docgen payloads for every component in the story index.",
|
|
70
|
+
input: void_(),
|
|
71
|
+
output: record(string(), docgenPayloadSchema),
|
|
72
|
+
handler: (_input, ctx) => ctx.self.state.components,
|
|
73
|
+
load: async (_input, ctx) => {
|
|
74
|
+
await ctx.self.commands.extractAllDocgen(void 0);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
commands: {
|
|
79
|
+
extractDocgen: {
|
|
80
|
+
description: "Resolves the story entry for a component id, runs the registered provider chain, writes the result into state, and returns it (or undefined when no provider produced docgen).",
|
|
81
|
+
input: docgenInputSchema,
|
|
82
|
+
output: docgenOutputSchema
|
|
83
|
+
// Handler is supplied at registration time so it can close over the story index and the
|
|
84
|
+
// composed experimental_docgenProvider chain.
|
|
85
|
+
},
|
|
86
|
+
extractAllDocgen: {
|
|
87
|
+
description: "Extracts docgen for every component id in the story index by invoking `extractDocgen` for each.",
|
|
88
|
+
input: undefined_(),
|
|
89
|
+
output: void_()
|
|
90
|
+
// Handler is supplied at registration time so it can close over the story index.
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export {
|
|
96
|
+
ADDON_ID,
|
|
97
|
+
TOOL_ID,
|
|
98
|
+
PARAM_KEY,
|
|
99
|
+
ADDON_ID2,
|
|
100
|
+
PARAM_KEY2,
|
|
101
|
+
docgenServiceDef
|
|
102
|
+
};
|