storybook 10.4.2 → 10.5.7
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-7X4HQR7L.js} +2 -2
- package/dist/_browser-chunks/{chunk-QIIJQEST.js → chunk-4PUEAVR7.js} +15 -34
- package/dist/_browser-chunks/chunk-5FAQJLSD.js +101 -0
- package/dist/_browser-chunks/{chunk-YK43Z22A.js → chunk-5GYAEUAU.js} +1 -1
- package/dist/_browser-chunks/chunk-6YDLG6WW.js +18 -0
- package/dist/_browser-chunks/{chunk-2GLGVABT.js → chunk-A26ZOLVJ.js} +14 -0
- package/dist/_browser-chunks/{chunk-NQJGOFZV.js → chunk-DFGA7I22.js} +51 -0
- package/dist/_browser-chunks/{chunk-ZCFV7BZB.js → chunk-DRQKCCAG.js} +1 -1
- package/dist/_browser-chunks/chunk-FLUL445Z.js +159 -0
- package/dist/_browser-chunks/{chunk-IH6QJILI.js → chunk-GLOGC42D.js} +12 -6
- package/dist/_browser-chunks/{chunk-JK6U3MQW.js → chunk-GPBLMYGI.js} +13 -15
- package/dist/_browser-chunks/chunk-GWNTJ7C3.js +21 -0
- package/dist/_browser-chunks/{chunk-A242L54C.js → chunk-IMSF75WX.js} +5 -1
- package/dist/_browser-chunks/chunk-IUGBVGDA.js +80 -0
- package/dist/_browser-chunks/chunk-KK3JJ3E4.js +111 -0
- package/dist/_browser-chunks/chunk-KUHYVZJN.js +153 -0
- package/dist/_browser-chunks/{chunk-ASKQZAOS.js → chunk-NQ3W4AUJ.js} +8 -0
- package/dist/_browser-chunks/{chunk-SI6AKD4S.js → chunk-OA6XKWIN.js} +17 -22
- 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-7YGTGCDG.js → chunk-SC67XZST.js} +1 -1
- package/dist/_browser-chunks/chunk-SFVA4SBT.js +683 -0
- package/dist/_browser-chunks/{chunk-SZQXB3JV.js → chunk-SNLGT2ZI.js} +595 -210
- package/dist/_browser-chunks/{chunk-JT6NUAUC.js → chunk-W22LQPXL.js} +70 -4
- package/dist/_browser-chunks/chunk-W6Y3UHOT.js +1861 -0
- package/dist/_browser-chunks/{chunk-V2VKKSMQ.js → chunk-X5VVFFFE.js} +87 -1
- package/dist/_browser-chunks/chunk-YI2IBIQS.js +7 -0
- package/dist/_browser-chunks/chunk-YPBWNTGF.js +13 -0
- package/dist/_browser-chunks/{chunk-IYCKG66Y.js → chunk-Z3B64JMR.js} +58 -31
- package/dist/_browser-chunks/{formatter-EIJCOSYU.js → formatter-L2YTDE3Q.js} +2 -2
- package/dist/_browser-chunks/{syntaxhighlighter-W7WJGI2T.js → syntaxhighlighter-QEQV7K2Y.js} +15 -67
- package/dist/_node-chunks/{builder-manager-LFGO35U5.js → builder-manager-SYUIZ3YR.js} +45 -19
- package/dist/_node-chunks/{camelcase-45NXQBQZ.js → camelcase-56MHUKLD.js} +7 -7
- package/dist/_node-chunks/chunk-2ZXZGW35.js +20 -0
- package/dist/_node-chunks/{chunk-TAYACG5Y.js → chunk-3KWZUKIJ.js} +9 -9
- package/dist/_node-chunks/{chunk-HKR2K7HF.js → chunk-4XX73STB.js} +6 -6
- package/dist/_node-chunks/{chunk-73L4GC4E.js → chunk-57EPATSG.js} +10 -10
- package/dist/_node-chunks/{chunk-7VTLE5YX.js → chunk-5EYNHKVG.js} +12 -11
- package/dist/_node-chunks/{chunk-R7BVFC2D.js → chunk-5SSDLDTJ.js} +18 -9
- package/dist/_node-chunks/{chunk-7WEMCKHC.js → chunk-BKV2AHET.js} +163 -9
- package/dist/_node-chunks/{chunk-6YHOQD7F.js → chunk-BOL6OWVM.js} +3313 -200
- package/dist/_node-chunks/{chunk-VSZP3IVO.js → chunk-BVQV5AQI.js} +1887 -103
- package/dist/_node-chunks/{chunk-ISPUBAVT.js → chunk-DMSSK5V7.js} +7 -7
- package/dist/_node-chunks/chunk-DPXVO6NW.js +23 -0
- package/dist/_node-chunks/chunk-DRKKE7WX.js +85 -0
- package/dist/_node-chunks/chunk-FDJYLTPT.js +654 -0
- package/dist/_node-chunks/{chunk-L36PKDQP.js → chunk-FVPBTK6Q.js} +43 -23
- package/dist/_node-chunks/chunk-GTBJHD7H.js +43 -0
- package/dist/_node-chunks/chunk-HGQEN5BB.js +33 -0
- package/dist/_node-chunks/chunk-HXJGHWQF.js +20 -0
- package/dist/_node-chunks/{chunk-C4WK5T7L.js → chunk-I3EOE2DR.js} +6 -6
- package/dist/_node-chunks/{chunk-3BNLXRMT.js → chunk-IDSUOV3G.js} +6 -6
- package/dist/_node-chunks/chunk-IN7NJS2T.js +40 -0
- package/dist/_node-chunks/chunk-KD5NGLH7.js +118 -0
- package/dist/_node-chunks/{chunk-V4WSMXU3.js → chunk-KIY3O3SC.js} +7 -7
- package/dist/_node-chunks/{chunk-FL7EBVLJ.js → chunk-LEFX2TGG.js} +6013 -1397
- package/dist/_node-chunks/{chunk-QHMIIPJD.js → chunk-LISHZJOF.js} +22 -13
- package/dist/_node-chunks/{chunk-GD4AVVJ6.js → chunk-LQX45LAM.js} +12 -30
- package/dist/_node-chunks/{chunk-ZFGCKAOI.js → chunk-MMWXZYX6.js} +103 -50
- package/dist/_node-chunks/{chunk-3MJQGFKY.js → chunk-OS6I5BZG.js} +11 -8
- package/dist/_node-chunks/chunk-QEBWU6LU.js +25 -0
- package/dist/_node-chunks/chunk-RW6CS4VF.js +35 -0
- package/dist/_node-chunks/{chunk-AFCIL7SS.js → chunk-STC3JUUJ.js} +7 -7
- package/dist/_node-chunks/{chunk-O7TSSZXM.js → chunk-TWPZPMFT.js} +6 -6
- package/dist/_node-chunks/{chunk-IDGTLYPU.js → chunk-TWWDCALS.js} +7 -7
- package/dist/_node-chunks/chunk-U4OORGLD.js +53 -0
- package/dist/_node-chunks/chunk-UMBKBPP5.js +33 -0
- package/dist/_node-chunks/{chunk-QGWCIQDL.js → chunk-UWEHU3AF.js} +9 -8
- package/dist/_node-chunks/chunk-VLAMGE2J.js +118 -0
- package/dist/_node-chunks/chunk-VRYTK5KC.js +62 -0
- package/dist/_node-chunks/{chunk-PU4IASEN.js → chunk-XYZ5NBEV.js} +1241 -71
- package/dist/_node-chunks/{chunk-AKZIDWJD.js → chunk-Y6WAHW2B.js} +55 -100
- package/dist/_node-chunks/{chunk-FODLNFCP.js → chunk-YGMEVHTF.js} +7 -7
- package/dist/_node-chunks/chunk-Z35MCY7K.js +767 -0
- package/dist/_node-chunks/{chunk-BNXXMARY.js → chunk-ZGQ7HJL4.js} +6 -6
- package/dist/_node-chunks/{globby-A5OBERQV.js → globby-5UZDOYO6.js} +12 -12
- package/dist/_node-chunks/{lib-B44OSHMG.js → lib-4TDV2HIG.js} +7 -7
- package/dist/_node-chunks/monorepo-7R4NQ2IG.js +122 -0
- package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-XW2MTZDH.js +122 -0
- package/dist/_node-chunks/optimized-tests-5J6VSNWX.js +22 -0
- package/dist/_node-chunks/p-limit-YO2INT34.js +20 -0
- package/dist/_node-chunks/pattern-copy-play-3IY6KXXL.js +809 -0
- package/dist/_node-chunks/relaxed-limits-PUF3NMZ4.js +118 -0
- package/dist/_node-chunks/session-id-QG3BH4RA.js +23 -0
- package/dist/_node-chunks/setup-XCCD5YHG.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 +1928 -7590
- 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 +1278 -107
- package/dist/bin/dispatcher.js +29 -18
- package/dist/bin/loader.js +12 -11
- package/dist/channels/index.d.ts +2 -127
- package/dist/channels/index.js +38 -93
- package/dist/chunk-BKd7G5t3.d.ts +61 -0
- package/dist/chunk-BW2saWbz.d.ts +916 -0
- package/dist/chunk-BoJt3T-D.d.ts +14 -0
- package/dist/chunk-BxCdsGId.d.ts +664 -0
- package/dist/chunk-By2eGsW5.d.ts +228 -0
- package/dist/chunk-CB2MeY3U.d.ts +12 -0
- package/dist/chunk-CMHAf_uD.d.ts +75 -0
- package/dist/chunk-CSYKg21N.d.ts +164 -0
- package/dist/chunk-CkNMGLRh.d.ts +1065 -0
- package/dist/chunk-Cp-ouEY1.d.ts +14698 -0
- package/dist/chunk-CrbgZRtX.d.ts +59 -0
- package/dist/chunk-D4hRFgkh.d.ts +281 -0
- package/dist/chunk-D4lKaBz7.d.ts +506 -0
- package/dist/chunk-DPAvE_Bb.d.ts +808 -0
- package/dist/chunk-DgWlWC_3.d.ts +170 -0
- package/dist/chunk-Dv2j21_S.d.ts +10510 -0
- package/dist/chunk-mKTEiqNQ.d.ts +78 -0
- package/dist/chunk-wK3zEWUl.d.ts +3627 -0
- package/dist/cli/index.d.ts +272 -4317
- package/dist/cli/index.js +34 -19
- package/dist/client-logger/index.d.ts +27 -26
- package/dist/client-logger/index.js +1 -1
- package/dist/common/index.d.ts +709 -2502
- package/dist/common/index.js +69 -20
- package/dist/components/index.d.ts +1494 -1291
- package/dist/components/index.js +94 -63
- package/dist/core-events/index.d.ts +153 -354
- package/dist/core-events/index.js +1 -1
- package/dist/core-server/index.d.ts +1472 -1554
- package/dist/core-server/index.js +16666 -16687
- package/dist/core-server/presets/common-manager.js +513 -306
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +649 -295
- package/dist/csf/index.d.ts +6 -2136
- package/dist/csf/index.js +193 -40
- package/dist/csf-tools/index.d.ts +282 -253
- package/dist/csf-tools/index.js +10 -9
- package/dist/docs-tools/index.d.ts +164 -92
- package/dist/docs-tools/index.js +15 -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 +10023 -7814
- 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 +16183 -15394
- package/dist/manager-api/index.d.ts +2 -4060
- package/dist/manager-api/index.js +186 -163
- package/dist/manager-errors.d.ts +74 -628
- package/dist/manager-errors.js +10 -4
- 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 +40 -28
- package/dist/oxc-parser/index.js +45 -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 +6135 -3375
- package/dist/preview-api/index.d.ts +4 -1580
- package/dist/preview-api/index.js +39 -16
- package/dist/preview-errors.d.ts +122 -721
- package/dist/preview-errors.js +1 -1
- package/dist/router/index.d.ts +86 -728
- package/dist/router/index.js +20 -19
- package/dist/server-errors.d.ts +361 -834
- package/dist/server-errors.js +34 -10
- package/dist/shared/open-service/index.d.ts +2 -0
- package/dist/shared/open-service/index.js +19 -0
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +74 -0
- package/dist/telemetry/index.d.ts +173 -149
- package/dist/telemetry/index.js +33 -26
- package/dist/test/index.d.ts +97 -1320
- package/dist/test/index.js +1292 -5466
- 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 +31 -6
- package/dist/viewport/index.d.ts +267 -319
- package/dist/viewport/index.js +6 -6
- package/package.json +29 -11
- 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-JJ2VMJ7Z.js +0 -20
- package/dist/_node-chunks/chunk-MLJ5DCGH.js +0 -51
- package/dist/_node-chunks/chunk-U5UFYVZ7.js +0 -18
- 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({
|
|
@@ -1,36 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
StatusTypeIdMismatchError
|
|
3
|
-
} from "./chunk-C3TKC4WX.js";
|
|
4
|
-
import {
|
|
5
|
-
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
2
|
+
StatusTypeIdMismatchError as StatusTypeIdMismatchError3
|
|
6
3
|
} from "./chunk-MFQQ5L5I.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
require_picocolors_browser
|
|
12
|
-
} from "./chunk-7YGTGCDG.js";
|
|
5
|
+
StatusTypeIdMismatchError
|
|
6
|
+
} from "./chunk-KUHYVZJN.js";
|
|
13
7
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
|
|
17
|
-
// src/server-errors.ts
|
|
18
|
-
var import_picocolors = __toESM(require_picocolors_browser(), 1);
|
|
19
|
-
var StatusTypeIdMismatchError3 = class extends StorybookError {
|
|
20
|
-
constructor(data) {
|
|
21
|
-
super({
|
|
22
|
-
name: "StatusTypeIdMismatchError",
|
|
23
|
-
category: "CORE-SERVER" /* CORE_SERVER */,
|
|
24
|
-
code: 16,
|
|
25
|
-
message: `Status has typeId "${data.status.typeId}" but was added to store with typeId "${data.typeId}". Full status: ${JSON.stringify(
|
|
26
|
-
data.status,
|
|
27
|
-
null,
|
|
28
|
-
2
|
|
29
|
-
)}`
|
|
30
|
-
});
|
|
31
|
-
this.data = data;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
8
|
+
StatusTypeIdMismatchError as StatusTypeIdMismatchError2
|
|
9
|
+
} from "./chunk-IUGBVGDA.js";
|
|
34
10
|
|
|
35
11
|
// src/shared/status-store/index.ts
|
|
36
12
|
var STATUS_VALUE_PREFIX = "status-value:", STATUS_VALUES = [
|
|
@@ -39,6 +15,7 @@ var STATUS_VALUE_PREFIX = "status-value:", STATUS_VALUES = [
|
|
|
39
15
|
"status-value:new",
|
|
40
16
|
"status-value:modified",
|
|
41
17
|
"status-value:affected",
|
|
18
|
+
"status-value:reviewing",
|
|
42
19
|
"status-value:warning",
|
|
43
20
|
"status-value:error",
|
|
44
21
|
"status-value:unknown"
|
|
@@ -47,7 +24,10 @@ var STATUS_VALUE_PREFIX = "status-value:", STATUS_VALUES = [
|
|
|
47
24
|
let candidate = `${STATUS_VALUE_PREFIX}${shortName}`;
|
|
48
25
|
return STATUS_VALUES.includes(candidate) ? candidate : void 0;
|
|
49
26
|
}, statusValueShortName = (value) => value === "status-value:affected" ? "related" : value.slice(STATUS_VALUE_PREFIX.length);
|
|
50
|
-
var CHANGE_DETECTION_STATUS_TYPE_ID = "storybook/change-detection",
|
|
27
|
+
var CHANGE_DETECTION_STATUS_TYPE_ID = "storybook/change-detection", REVIEW_STATUS_TYPE_ID = "storybook/review", NON_AGGREGATED_STATUS_TYPE_IDS = [
|
|
28
|
+
CHANGE_DETECTION_STATUS_TYPE_ID,
|
|
29
|
+
REVIEW_STATUS_TYPE_ID
|
|
30
|
+
], UNIVERSAL_STATUS_STORE_OPTIONS = {
|
|
51
31
|
id: "storybook/status",
|
|
52
32
|
leader: !0,
|
|
53
33
|
initialState: {}
|
|
@@ -116,18 +96,17 @@ function createStatusStore({
|
|
|
116
96
|
if (status.typeId !== typeId)
|
|
117
97
|
switch (environment) {
|
|
118
98
|
case "server":
|
|
119
|
-
throw new
|
|
99
|
+
throw new StatusTypeIdMismatchError({
|
|
120
100
|
status,
|
|
121
101
|
typeId
|
|
122
102
|
});
|
|
123
103
|
case "manager":
|
|
124
|
-
throw new
|
|
104
|
+
throw new StatusTypeIdMismatchError2({
|
|
125
105
|
status,
|
|
126
106
|
typeId
|
|
127
107
|
});
|
|
128
|
-
case "preview":
|
|
129
108
|
default:
|
|
130
|
-
throw new
|
|
109
|
+
throw new StatusTypeIdMismatchError3({
|
|
131
110
|
status,
|
|
132
111
|
typeId
|
|
133
112
|
});
|
|
@@ -168,6 +147,8 @@ export {
|
|
|
168
147
|
toStatusValue,
|
|
169
148
|
statusValueShortName,
|
|
170
149
|
CHANGE_DETECTION_STATUS_TYPE_ID,
|
|
150
|
+
REVIEW_STATUS_TYPE_ID,
|
|
151
|
+
NON_AGGREGATED_STATUS_TYPE_IDS,
|
|
171
152
|
UNIVERSAL_STATUS_STORE_OPTIONS,
|
|
172
153
|
countStatusesByValue,
|
|
173
154
|
createStatusStore
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
array,
|
|
3
|
+
custom,
|
|
4
|
+
looseObject,
|
|
5
|
+
object,
|
|
6
|
+
optional,
|
|
7
|
+
record,
|
|
8
|
+
string,
|
|
9
|
+
undefined_,
|
|
10
|
+
void_
|
|
11
|
+
} from "./chunk-W6Y3UHOT.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
|
+
description: "Component documentation (name, description, props, JSDoc tags) keyed by component id.",
|
|
55
|
+
initialState: { components: {} },
|
|
56
|
+
queries: {
|
|
57
|
+
docgen: {
|
|
58
|
+
description: "Returns the docgen payload for one component id, or undefined when not loaded.",
|
|
59
|
+
input: docgenInputSchema,
|
|
60
|
+
output: docgenOutputSchema,
|
|
61
|
+
handler: (input, ctx) => ctx.self.state.components[input.id],
|
|
62
|
+
load: async (input, ctx) => {
|
|
63
|
+
await ctx.self.commands.extractDocgen(input);
|
|
64
|
+
},
|
|
65
|
+
staticPath: (input) => docgenQueryStaticPath(input.id)
|
|
66
|
+
},
|
|
67
|
+
docgenForAllComponents: {
|
|
68
|
+
description: "Returns docgen payloads for every component in the story index.",
|
|
69
|
+
input: void_(),
|
|
70
|
+
output: record(string(), docgenPayloadSchema),
|
|
71
|
+
handler: (_input, ctx) => ctx.self.state.components,
|
|
72
|
+
load: async (_input, ctx) => {
|
|
73
|
+
await ctx.self.commands.extractAllDocgen(void 0);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
commands: {
|
|
78
|
+
extractDocgen: {
|
|
79
|
+
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).",
|
|
80
|
+
input: docgenInputSchema,
|
|
81
|
+
output: docgenOutputSchema
|
|
82
|
+
// Handler is supplied at registration time so it can close over the story index and the
|
|
83
|
+
// composed experimental_docgenProvider chain.
|
|
84
|
+
},
|
|
85
|
+
extractAllDocgen: {
|
|
86
|
+
description: "Extracts docgen for every component id in the story index by invoking `extractDocgen` for each.",
|
|
87
|
+
input: undefined_(),
|
|
88
|
+
output: void_()
|
|
89
|
+
// Handler is supplied at registration time so it can close over the story index.
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
ADDON_ID,
|
|
96
|
+
TOOL_ID,
|
|
97
|
+
PARAM_KEY,
|
|
98
|
+
ADDON_ID2,
|
|
99
|
+
PARAM_KEY2,
|
|
100
|
+
docgenServiceDef
|
|
101
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -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
|
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createBrowserStaticLoader,
|
|
3
|
+
getService,
|
|
4
|
+
registerService
|
|
5
|
+
} from "./chunk-W6Y3UHOT.js";
|
|
6
|
+
import {
|
|
7
|
+
seedQueryState
|
|
8
|
+
} from "./chunk-QC4HFS6K.js";
|
|
9
|
+
import {
|
|
10
|
+
isEqual
|
|
11
|
+
} from "./chunk-Z3B64JMR.js";
|
|
12
|
+
|
|
13
|
+
// src/shared/open-service/use-service-command.ts
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
function useServiceCommand(service, commandName) {
|
|
16
|
+
return React.useMemo(
|
|
17
|
+
() => service.commands[commandName],
|
|
18
|
+
[service, commandName]
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// src/shared/open-service/use-service-query.ts
|
|
23
|
+
import * as React2 from "react";
|
|
24
|
+
function useServiceQuery(query, input, selector) {
|
|
25
|
+
let subscriptionKeyRef = React2.useRef(null), snapshotRef = React2.useRef(void 0);
|
|
26
|
+
(subscriptionKeyRef.current === null || subscriptionKeyRef.current.query !== query || !isEqual(subscriptionKeyRef.current.input, input) || subscriptionKeyRef.current.selector !== selector) && (subscriptionKeyRef.current = { query, input, selector }, snapshotRef.current = selector ? seedQueryState(query, input, selector) : seedQueryState(query, input));
|
|
27
|
+
let subscriptionKey = subscriptionKeyRef.current, subscribe = React2.useCallback(
|
|
28
|
+
(listener) => {
|
|
29
|
+
let { query: q, input: i, selector: s } = subscriptionKey, onQueryState = (queryState) => {
|
|
30
|
+
snapshotRef.current = queryState, listener();
|
|
31
|
+
};
|
|
32
|
+
return s ? q.subscribe(i, s, onQueryState) : q.subscribe(i, onQueryState);
|
|
33
|
+
},
|
|
34
|
+
[subscriptionKey]
|
|
35
|
+
), getSnapshot = React2.useCallback(() => snapshotRef.current, []);
|
|
36
|
+
return React2.useSyncExternalStore(subscribe, getSnapshot);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// src/shared/open-service/manager.ts
|
|
40
|
+
var getService2 = getService;
|
|
41
|
+
function registerService2(definition, registration) {
|
|
42
|
+
return registerService(definition, registration, {
|
|
43
|
+
relay: !0,
|
|
44
|
+
staticLoader: createBrowserStaticLoader()
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
1
48
|
// ../../node_modules/dequal/dist/index.mjs
|
|
2
49
|
var has = Object.prototype.hasOwnProperty;
|
|
3
50
|
function find(iter, tar, key) {
|
|
@@ -78,6 +125,10 @@ function uniq(arr) {
|
|
|
78
125
|
}
|
|
79
126
|
|
|
80
127
|
export {
|
|
128
|
+
useServiceCommand,
|
|
129
|
+
useServiceQuery,
|
|
130
|
+
getService2 as getService,
|
|
131
|
+
registerService2 as registerService,
|
|
81
132
|
dequal,
|
|
82
133
|
countBy,
|
|
83
134
|
partition,
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import {
|
|
2
|
+
mapValues,
|
|
3
|
+
pickBy
|
|
4
|
+
} from "./chunk-5GYAEUAU.js";
|
|
5
|
+
import {
|
|
6
|
+
isPlainObject
|
|
7
|
+
} from "./chunk-Z3B64JMR.js";
|
|
8
|
+
import {
|
|
9
|
+
dedent
|
|
10
|
+
} from "./chunk-3LY4VQVK.js";
|
|
11
|
+
|
|
12
|
+
// src/preview-api/modules/store/parameters.ts
|
|
13
|
+
var combineParameters = (...parameterSets) => {
|
|
14
|
+
let mergeKeys = {}, definedParametersSets = parameterSets.filter(Boolean), combined = definedParametersSets.reduce((acc, parameters) => (Object.entries(parameters).forEach(([key, value]) => {
|
|
15
|
+
let existing = acc[key];
|
|
16
|
+
Array.isArray(value) || typeof existing > "u" ? acc[key] = value : isPlainObject(value) && isPlainObject(existing) ? mergeKeys[key] = !0 : typeof value < "u" && (acc[key] = value);
|
|
17
|
+
}), acc), {});
|
|
18
|
+
return Object.keys(mergeKeys).forEach((key) => {
|
|
19
|
+
let mergeValues = definedParametersSets.filter(Boolean).map((p) => p[key]).filter((value) => typeof value < "u");
|
|
20
|
+
mergeValues.every((value) => isPlainObject(value)) ? combined[key] = combineParameters(...mergeValues) : combined[key] = mergeValues[mergeValues.length - 1];
|
|
21
|
+
}), combined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// src/preview-api/modules/store/filterArgTypes.ts
|
|
25
|
+
var matches = (name, descriptor) => Array.isArray(descriptor) ? descriptor.includes(name) : name.match(descriptor), filterArgTypes = (argTypes, include, exclude) => !include && !exclude ? argTypes : argTypes && pickBy(argTypes, (argType, key) => {
|
|
26
|
+
let name = argType.name || key.toString();
|
|
27
|
+
return !!(!include || matches(name, include)) && (!exclude || !matches(name, exclude));
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// src/preview-api/modules/store/inferControls.ts
|
|
31
|
+
import { logger } from "storybook/internal/client-logger";
|
|
32
|
+
var inferControl = (argType, name, matchers) => {
|
|
33
|
+
let { type, options } = argType;
|
|
34
|
+
if (type) {
|
|
35
|
+
if (matchers.color && matchers.color.test(name)) {
|
|
36
|
+
let controlType = type.name;
|
|
37
|
+
if (controlType === "string")
|
|
38
|
+
return { control: { type: "color" } };
|
|
39
|
+
controlType !== "enum" && logger.warn(
|
|
40
|
+
`Addon controls: Control of type color only supports string, received "${controlType}" instead`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
if (matchers.date && matchers.date.test(name))
|
|
44
|
+
return { control: { type: "date" } };
|
|
45
|
+
switch (type.name) {
|
|
46
|
+
case "array":
|
|
47
|
+
return { control: { type: "object" } };
|
|
48
|
+
case "boolean":
|
|
49
|
+
return { control: { type: "boolean" } };
|
|
50
|
+
case "string":
|
|
51
|
+
return { control: { type: "text" } };
|
|
52
|
+
case "number":
|
|
53
|
+
return { control: { type: "number" } };
|
|
54
|
+
case "enum": {
|
|
55
|
+
let { value } = type;
|
|
56
|
+
return { control: { type: value?.length <= 5 ? "radio" : "select" }, options: value };
|
|
57
|
+
}
|
|
58
|
+
case "function":
|
|
59
|
+
case "symbol":
|
|
60
|
+
return null;
|
|
61
|
+
default:
|
|
62
|
+
return { control: { type: options ? "select" : "object" } };
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}, inferControls = (context) => {
|
|
66
|
+
let {
|
|
67
|
+
argTypes,
|
|
68
|
+
parameters: { __isArgsStory, controls: { include = null, exclude = null, matchers = {} } = {} }
|
|
69
|
+
} = context;
|
|
70
|
+
if (!__isArgsStory)
|
|
71
|
+
return argTypes;
|
|
72
|
+
let filteredArgTypes = filterArgTypes(argTypes, include, exclude), withControls = mapValues(filteredArgTypes, (argType, name) => argType?.type && inferControl(argType, name.toString(), matchers));
|
|
73
|
+
return combineParameters(withControls, filteredArgTypes);
|
|
74
|
+
};
|
|
75
|
+
inferControls.secondPass = !0;
|
|
76
|
+
|
|
77
|
+
// src/preview-api/modules/store/inferArgTypes.ts
|
|
78
|
+
import { logger as logger2 } from "storybook/internal/client-logger";
|
|
79
|
+
var inferType = (value, name, visited, cache) => {
|
|
80
|
+
let type = typeof value;
|
|
81
|
+
switch (type) {
|
|
82
|
+
case "boolean":
|
|
83
|
+
case "string":
|
|
84
|
+
case "number":
|
|
85
|
+
case "function":
|
|
86
|
+
case "symbol":
|
|
87
|
+
return { name: type };
|
|
88
|
+
default:
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
if (value) {
|
|
92
|
+
if (cache.has(value))
|
|
93
|
+
return cache.get(value);
|
|
94
|
+
if (visited.has(value))
|
|
95
|
+
return logger2.warn(dedent`
|
|
96
|
+
We've detected a cycle in arg '${name}'. Args should be JSON-serializable.
|
|
97
|
+
|
|
98
|
+
Consider using the mapping feature or fully custom args:
|
|
99
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
100
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
101
|
+
`), { name: "other", value: "cyclic object" };
|
|
102
|
+
visited.add(value);
|
|
103
|
+
let result;
|
|
104
|
+
return Array.isArray(value) ? result = { name: "array", value: value.length > 0 ? inferType(value[0], name, visited, cache) : { name: "other", value: "unknown" } } : result = { name: "object", value: mapValues(value, (field) => inferType(field, name, visited, cache)) }, visited.delete(value), cache.set(value, result), result;
|
|
105
|
+
}
|
|
106
|
+
return { name: "object", value: {} };
|
|
107
|
+
}, inferArgTypes = (context) => {
|
|
108
|
+
let { id, argTypes: userArgTypes = {}, initialArgs = {} } = context, cache = /* @__PURE__ */ new Map(), argTypes = Object.fromEntries(
|
|
109
|
+
Object.entries(initialArgs).filter(([key]) => !userArgTypes[key]?.type).map(([key, arg]) => [
|
|
110
|
+
key,
|
|
111
|
+
{
|
|
112
|
+
name: key,
|
|
113
|
+
type: inferType(arg, `${id}.${key}`, /* @__PURE__ */ new Set(), cache)
|
|
114
|
+
}
|
|
115
|
+
])
|
|
116
|
+
), userArgTypesNames = mapValues(userArgTypes, (argType, key) => ({
|
|
117
|
+
name: key
|
|
118
|
+
}));
|
|
119
|
+
return combineParameters(argTypes, userArgTypesNames, userArgTypes);
|
|
120
|
+
};
|
|
121
|
+
inferArgTypes.secondPass = !0;
|
|
122
|
+
|
|
123
|
+
// src/docs-tools/argTypes/docgenServiceArgTypes.ts
|
|
124
|
+
function mergeServiceArgTypes({
|
|
125
|
+
payload,
|
|
126
|
+
storyId,
|
|
127
|
+
parameters,
|
|
128
|
+
initialArgs,
|
|
129
|
+
customArgTypes
|
|
130
|
+
}) {
|
|
131
|
+
let merged = combineParameters(payload.argTypes ?? {}, customArgTypes ?? {}), withInferredTypes = inferArgTypes({
|
|
132
|
+
id: storyId,
|
|
133
|
+
argTypes: merged,
|
|
134
|
+
initialArgs: initialArgs ?? {}
|
|
135
|
+
});
|
|
136
|
+
return inferControls({
|
|
137
|
+
argTypes: withInferredTypes,
|
|
138
|
+
// The manager can render this before the preview reports `storyPrepared`, so `parameters` may be
|
|
139
|
+
// undefined; `inferControls` reads `parameters.__isArgsStory` and would throw. An empty object
|
|
140
|
+
// makes it a no-op until prepared parameters arrive and trigger a re-render.
|
|
141
|
+
parameters: parameters ?? {}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function getServiceSubcomponentArgTypes(payload) {
|
|
145
|
+
return Object.fromEntries(
|
|
146
|
+
Object.entries(payload.subcomponents ?? {}).flatMap(
|
|
147
|
+
([name, subcomponent]) => subcomponent.argTypes ? [[name, subcomponent.argTypes]] : []
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export {
|
|
153
|
+
combineParameters,
|
|
154
|
+
inferArgTypes,
|
|
155
|
+
filterArgTypes,
|
|
156
|
+
inferControls,
|
|
157
|
+
mergeServiceArgTypes,
|
|
158
|
+
getServiceSubcomponentArgTypes
|
|
159
|
+
};
|
|
@@ -109,7 +109,8 @@ var color = {
|
|
|
109
109
|
positive: "#427C27",
|
|
110
110
|
warning: "#7A4100",
|
|
111
111
|
negative: "#C23400",
|
|
112
|
-
critical: "#FFFFFF"
|
|
112
|
+
critical: "#FFFFFF",
|
|
113
|
+
agentic: "#723aa6"
|
|
113
114
|
},
|
|
114
115
|
bgColor: {
|
|
115
116
|
default: color.lightest,
|
|
@@ -118,7 +119,8 @@ var color = {
|
|
|
118
119
|
positive: "#F1FFEB",
|
|
119
120
|
warning: "#FFF7EB",
|
|
120
121
|
negative: "#FFF0EB",
|
|
121
|
-
critical: "#D13800"
|
|
122
|
+
critical: "#D13800",
|
|
123
|
+
agentic: "#f5f0fa"
|
|
122
124
|
},
|
|
123
125
|
borderColor: {
|
|
124
126
|
default: color.border,
|
|
@@ -127,7 +129,8 @@ var color = {
|
|
|
127
129
|
positive: "#BFE7AC",
|
|
128
130
|
warning: "#FFCE85",
|
|
129
131
|
negative: "#FFC3AD",
|
|
130
|
-
critical: "hsl(16 100% 100% / 0)"
|
|
132
|
+
critical: "hsl(16 100% 100% / 0)",
|
|
133
|
+
agentic: "#e1d2ef"
|
|
131
134
|
}
|
|
132
135
|
},
|
|
133
136
|
dark: {
|
|
@@ -140,7 +143,8 @@ var color = {
|
|
|
140
143
|
positive: "#86CE64",
|
|
141
144
|
warning: "#FFAD33",
|
|
142
145
|
negative: "#FF6933",
|
|
143
|
-
critical: "#FF6933"
|
|
146
|
+
critical: "#FF6933",
|
|
147
|
+
agentic: "#b07fdc"
|
|
144
148
|
},
|
|
145
149
|
bgColor: {
|
|
146
150
|
default: "#222325",
|
|
@@ -149,7 +153,8 @@ var color = {
|
|
|
149
153
|
positive: "hsl(101 100% 100% / 0)",
|
|
150
154
|
warning: "hsl(101 100% 100% / 0)",
|
|
151
155
|
negative: "hsl(101 100% 100% / 0)",
|
|
152
|
-
critical: "hsl(101 100% 100% / 0)"
|
|
156
|
+
critical: "hsl(101 100% 100% / 0)",
|
|
157
|
+
agentic: "rgba(114,58,166,0.15)"
|
|
153
158
|
},
|
|
154
159
|
borderColor: {
|
|
155
160
|
default: "hsl(0 0% 100% / 0.1)",
|
|
@@ -158,7 +163,8 @@ var color = {
|
|
|
158
163
|
positive: "hsl(101 52% 64% / 0.15)",
|
|
159
164
|
warning: "hsl(36 100% 64% / 0.15)",
|
|
160
165
|
negative: "hsl(16 100% 64% / 0.15)",
|
|
161
|
-
critical: "#FF6933"
|
|
166
|
+
critical: "#FF6933",
|
|
167
|
+
agentic: "rgba(114,58,166,0.35)"
|
|
162
168
|
}
|
|
163
169
|
}
|
|
164
170
|
};
|