@epam/ai-dial-catalog 1.3.0-dev.124 → 1.3.0-dev.126
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/index.js +119 -142
- package/{mapping-BcyG24Cg.js → mapping-Cxm9x6S-.js} +1 -1
- package/mapping.js +1 -2
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, E as t, S as n, T as r, _ as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, w as C, x as w, y as T } from "./mapping-
|
|
1
|
+
import { C as e, E as t, S as n, T as r, _ as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, w as C, x as w, y as T } from "./mapping-Cxm9x6S-.js";
|
|
2
2
|
import { CatalogEntityType as E, ConfirmationFooter as D, ConfirmationView as O, DESKTOP_BREAKPOINT_PX as k, DeploymentIcon as A, EntityHeader as j, EntityTypeLabel as M, FeaturedChip as ee, ItemHeader as te, MarkdownCodeBlock as N, MarkdownRenderer as ne, MarkdownWithPlaceholders as re, PanelEmptyState as ie, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ae, buildCssVars as oe, mergeClasses as P, useIsMobile as se } from "@epam/ai-dial-chat-shared";
|
|
3
3
|
import { Fragment as ce, createContext as le, memo as ue, startTransition as de, useCallback as F, useContext as fe, useEffect as I, useId as pe, useLayoutEffect as me, useMemo as L, useRef as R, useState as z } from "react";
|
|
4
4
|
import { Badge as he, BottomSheet as ge, Button as _e, ButtonAppearance as ve, ButtonDropdown as ye, ButtonVariant as be, CardShell as xe, Checkbox as Se, ConfirmationPopupVariant as Ce, DIAL_ICON_SIZE as B, DIAL_KIT_ICON_STROKE as V, DangerButton as we, Dropdown as Te, DropdownItemType as H, ElementSize as U, EllipsisTooltip as Ee, FolderPath as De, GhostButton as Oe, GhostIconButton as ke, Highlight as Ae, InlineSelect as je, InlineSelectTrigger as Me, Input as W, InteractiveTooltip as Ne, LinkButton as Pe, MenuItem as G, MenuItemMark as K, NeutralButton as Fe, NeutralIconButton as Ie, NoDataContent as Le, PrimaryButton as Re, ProgressBar as ze, RadioGroup as Be, Search as Ve, SegmentedControl as He, SideDrawer as Ue, Skeleton as We, SkeletonAvatarShape as q, Spinner as Ge, Tabs as Ke, ToggleIconButton as qe, Tooltip as Je, mergeClasses as Ye } from "@epam/ai-dial-ui-kit";
|
|
@@ -247,24 +247,28 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
247
247
|
})]
|
|
248
248
|
})]
|
|
249
249
|
});
|
|
250
|
-
}, sn = { icon: "_icon_a0p4u_1" }, cn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) =>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
className:
|
|
264
|
-
|
|
250
|
+
}, sn = { icon: "_icon_a0p4u_1" }, cn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
|
|
251
|
+
if (e == null || h(e) == null) return null;
|
|
252
|
+
let i = oe({
|
|
253
|
+
"--cat-cred-badge-halo": r?.halo,
|
|
254
|
+
"--cat-cred-badge-icon": r?.icon
|
|
255
|
+
});
|
|
256
|
+
return /* @__PURE__ */ J(Je, {
|
|
257
|
+
tooltip: t,
|
|
258
|
+
asChild: !0,
|
|
259
|
+
children: /* @__PURE__ */ J("span", {
|
|
260
|
+
role: "img",
|
|
261
|
+
"aria-label": t,
|
|
262
|
+
style: i,
|
|
263
|
+
className: P("absolute -end-1 -bottom-1 shrink-0", n),
|
|
264
|
+
children: /* @__PURE__ */ J(Qe, {
|
|
265
|
+
size: B.SM,
|
|
266
|
+
className: sn.icon,
|
|
267
|
+
"aria-hidden": !0
|
|
268
|
+
})
|
|
265
269
|
})
|
|
266
|
-
})
|
|
267
|
-
}
|
|
270
|
+
});
|
|
271
|
+
}, ln = {
|
|
268
272
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
269
273
|
starPop: "_starPop_po6zj_1"
|
|
270
274
|
}, un = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ J(qe, {
|
|
@@ -320,7 +324,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
320
324
|
d();
|
|
321
325
|
}), me(() => {
|
|
322
326
|
let e = r.current;
|
|
323
|
-
|
|
327
|
+
e && c !== 0 && (e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current)));
|
|
324
328
|
}, [c]), I(() => {
|
|
325
329
|
let e = r.current;
|
|
326
330
|
if (!e) return;
|
|
@@ -493,12 +497,12 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
493
497
|
]
|
|
494
498
|
});
|
|
495
499
|
}, Sn = ue(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, noFolderLabel: f, isReadonly: p, featuredChipStyle: m, markdownLabels: h }) => {
|
|
496
|
-
let g = e * n, _ = t.slice(g, g + n)
|
|
500
|
+
let g = e * n, _ = t.slice(g, g + n), v = {
|
|
501
|
+
top: e * 268,
|
|
502
|
+
height: 268
|
|
503
|
+
};
|
|
497
504
|
return /* @__PURE__ */ J("div", {
|
|
498
|
-
style:
|
|
499
|
-
top: e * 268,
|
|
500
|
-
height: 268
|
|
501
|
-
},
|
|
505
|
+
style: v,
|
|
502
506
|
className: "absolute flex w-full gap-5 pb-5",
|
|
503
507
|
children: Array.from({ length: n }, (e, t) => {
|
|
504
508
|
let n = _[t];
|
|
@@ -627,9 +631,8 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
627
631
|
}) : /* @__PURE__ */ J("span", {
|
|
628
632
|
className: P("min-w-0 break-words", t, Dn.valueText),
|
|
629
633
|
children: e
|
|
630
|
-
}), kn = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) =>
|
|
631
|
-
|
|
632
|
-
style: oe({
|
|
634
|
+
}), kn = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => {
|
|
635
|
+
let u = oe({
|
|
633
636
|
"--tv-section-heading": l?.sectionHeading,
|
|
634
637
|
"--tv-row-alt-bg": l?.rowAlt,
|
|
635
638
|
"--tv-label": l?.label,
|
|
@@ -637,31 +640,35 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
637
640
|
"--tv-value-true": l?.valueTrue,
|
|
638
641
|
"--tv-value-false": l?.valueFalse,
|
|
639
642
|
"--tv-value-text": l?.valueText
|
|
640
|
-
})
|
|
641
|
-
|
|
642
|
-
className:
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
})
|
|
643
|
+
});
|
|
644
|
+
return /* @__PURE__ */ J("div", {
|
|
645
|
+
className: "flex flex-col",
|
|
646
|
+
style: u,
|
|
647
|
+
children: t != null && t.length > 0 && /* @__PURE__ */ Y("section", { children: [/* @__PURE__ */ J("p", {
|
|
648
|
+
className: P("mt-0 mb-3", o, Dn.sectionHeading),
|
|
649
|
+
children: e
|
|
650
|
+
}), /* @__PURE__ */ J("ul", {
|
|
651
|
+
className: "m-0 list-none p-0",
|
|
652
|
+
children: t.map((e, t) => /* @__PURE__ */ Y("li", {
|
|
653
|
+
className: P("flex items-center rounded px-3 py-2", t % 2 == 0 ? Dn.rowAlt : void 0),
|
|
654
|
+
children: [/* @__PURE__ */ J("span", {
|
|
655
|
+
className: P(n, Dn.label, "w-2/5 shrink-0"),
|
|
656
|
+
children: e.label
|
|
657
|
+
}), /* @__PURE__ */ J("div", {
|
|
658
|
+
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
659
|
+
children: /* @__PURE__ */ J(On, {
|
|
660
|
+
value: e.value,
|
|
661
|
+
valueClassName: r,
|
|
662
|
+
valueTrueClassName: i,
|
|
663
|
+
checkIconClassName: a,
|
|
664
|
+
yesLabel: s,
|
|
665
|
+
noLabel: c
|
|
666
|
+
})
|
|
667
|
+
})]
|
|
668
|
+
}, e.label))
|
|
669
|
+
})] })
|
|
670
|
+
});
|
|
671
|
+
}, An = { sectionHeading: "_sectionHeading_148lj_1" }, jn = {
|
|
665
672
|
[Z.Python]: "Python",
|
|
666
673
|
[Z.Curl]: "cURL",
|
|
667
674
|
[Z.JavaScript]: "JavaScript"
|
|
@@ -891,10 +898,11 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
891
898
|
title: e
|
|
892
899
|
});
|
|
893
900
|
}
|
|
901
|
+
let a = (r?.orgFallbackBannerTitle ?? Vn)(n), o = (r?.orgFallbackBannerDescription ?? Hn)(n);
|
|
894
902
|
return /* @__PURE__ */ J(Bn, {
|
|
895
903
|
icon: i,
|
|
896
|
-
title:
|
|
897
|
-
description:
|
|
904
|
+
title: a,
|
|
905
|
+
description: o
|
|
898
906
|
});
|
|
899
907
|
}, qn = {
|
|
900
908
|
surface: "_surface_1q3s8_1",
|
|
@@ -907,17 +915,16 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
907
915
|
}, []), N = async () => {
|
|
908
916
|
if (j || y) return;
|
|
909
917
|
let e = o === t.ApiKey;
|
|
910
|
-
if (e && !D.trim())
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
M(!1);
|
|
918
|
+
if (e && !D.trim()) A(!0);
|
|
919
|
+
else {
|
|
920
|
+
M(!0), E(void 0);
|
|
921
|
+
try {
|
|
922
|
+
await l?.(e ? D : void 0) !== !1 && O("");
|
|
923
|
+
} catch (e) {
|
|
924
|
+
E(e instanceof Error ? e.message : String(e));
|
|
925
|
+
} finally {
|
|
926
|
+
M(!1);
|
|
927
|
+
}
|
|
921
928
|
}
|
|
922
929
|
}, ne = f?.loginActionLabel ?? "Log in", re = f?.logoutActionLabel ?? "Log out", ie = f?.addApiKeyActionLabel ?? "Add", ae = f?.deleteActionLabel ?? "Delete", oe = f?.credentialsSignedInLabel ?? "Signed in", se = f?.credentialsSignedOutLabel ?? "Signed out", ce = f?.addingApiKeyStatusLabel ?? "Adding", le = f?.apiKeyConfiguredMessage ?? "Key has been configured", ue = `${C}-header-hint`, de = c ? (f?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(c) : void 0, fe = s == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
|
|
923
930
|
return /* @__PURE__ */ Y("div", {
|
|
@@ -1127,18 +1134,17 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1127
1134
|
let [d, f] = z(""), [p, m] = z(!1), [h, g] = z(!1), [_, v] = z(!1), y = n === w.SignedIn, b = F((e) => {
|
|
1128
1135
|
f(e ?? ""), m(!1);
|
|
1129
1136
|
}, []), x = F(async () => {
|
|
1130
|
-
if (d.trim().length === 0)
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
g(!1);
|
|
1137
|
+
if (d.trim().length === 0) m(!0);
|
|
1138
|
+
else {
|
|
1139
|
+
g(!0);
|
|
1140
|
+
try {
|
|
1141
|
+
await a?.(e, {
|
|
1142
|
+
level: t,
|
|
1143
|
+
apiKey: d
|
|
1144
|
+
}), s();
|
|
1145
|
+
} finally {
|
|
1146
|
+
g(!1);
|
|
1147
|
+
}
|
|
1142
1148
|
}
|
|
1143
1149
|
}, [
|
|
1144
1150
|
e,
|
|
@@ -1158,17 +1164,17 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1158
1164
|
t,
|
|
1159
1165
|
o,
|
|
1160
1166
|
s
|
|
1161
|
-
]), C = c?.personalApiKeyPanelTitle ?? "Personal API key", T = c?.addApiKeyActionLabel ?? "Add", E = c?.deleteActionLabel ?? "Delete", D = c?.addingApiKeyStatusLabel ?? "Adding", O = c?.deletingStatusLabel ?? "Deleting", k = c?.apiKeyRequiredErrorMessage ?? "API key is required.", A = c?.personalApiKeyAddedMessage ?? "Personal key has been added", j = `catalog-item-${e.id}-${t}-api-key`, M = `${j}-header-hint`, ee = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r)
|
|
1167
|
+
]), C = c?.personalApiKeyPanelTitle ?? "Personal API key", T = c?.addApiKeyActionLabel ?? "Add", E = c?.deleteActionLabel ?? "Delete", D = c?.addingApiKeyStatusLabel ?? "Adding", O = c?.deletingStatusLabel ?? "Deleting", k = c?.apiKeyRequiredErrorMessage ?? "API key is required.", A = c?.personalApiKeyAddedMessage ?? "Personal key has been added", j = `catalog-item-${e.id}-${t}-api-key`, M = `${j}-header-hint`, ee = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r), N = oe({
|
|
1168
|
+
"--cat-details-divider": l?.divider,
|
|
1169
|
+
"--cat-cred-hint-text": l?.credentialsHintText,
|
|
1170
|
+
"--cat-cred-card-bg": l?.credentialsCardBackground,
|
|
1171
|
+
"--cat-cred-card-icon": l?.credentialsCardIcon,
|
|
1172
|
+
"--cat-cred-card-title-text": l?.credentialsCardTitleText,
|
|
1173
|
+
"--cat-cred-card-description-text": l?.credentialsCardDescriptionText
|
|
1174
|
+
});
|
|
1162
1175
|
return /* @__PURE__ */ Y("div", {
|
|
1163
1176
|
className: "flex w-[418px] flex-col",
|
|
1164
|
-
style:
|
|
1165
|
-
"--cat-details-divider": l?.divider,
|
|
1166
|
-
"--cat-cred-hint-text": l?.credentialsHintText,
|
|
1167
|
-
"--cat-cred-card-bg": l?.credentialsCardBackground,
|
|
1168
|
-
"--cat-cred-card-icon": l?.credentialsCardIcon,
|
|
1169
|
-
"--cat-cred-card-title-text": l?.credentialsCardTitleText,
|
|
1170
|
-
"--cat-cred-card-description-text": l?.credentialsCardDescriptionText
|
|
1171
|
-
}),
|
|
1177
|
+
style: N,
|
|
1172
1178
|
children: [
|
|
1173
1179
|
/* @__PURE__ */ J("div", {
|
|
1174
1180
|
className: "flex items-center gap-2 px-4 py-3",
|
|
@@ -1243,11 +1249,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1243
1249
|
});
|
|
1244
1250
|
}, nr = { name: "_name_gfs1p_1" }, rr = (e) => e.isMyApp === !0, ir = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
1245
1251
|
let [a, o] = z(!1), s = F(() => {
|
|
1246
|
-
|
|
1247
|
-
o((e) => !e);
|
|
1248
|
-
return;
|
|
1249
|
-
}
|
|
1250
|
-
t?.(e);
|
|
1252
|
+
n ? o((e) => !e) : t?.(e);
|
|
1251
1253
|
}, [
|
|
1252
1254
|
e,
|
|
1253
1255
|
t,
|
|
@@ -1319,11 +1321,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1319
1321
|
ve(!1);
|
|
1320
1322
|
}, [e.id]);
|
|
1321
1323
|
let ye = F(() => {
|
|
1322
|
-
|
|
1323
|
-
ve(!0);
|
|
1324
|
-
return;
|
|
1325
|
-
}
|
|
1326
|
-
a?.(e);
|
|
1324
|
+
o ? ve(!0) : a?.(e);
|
|
1327
1325
|
}, [
|
|
1328
1326
|
e,
|
|
1329
1327
|
a,
|
|
@@ -1455,19 +1453,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1455
1453
|
danger: i,
|
|
1456
1454
|
onClick: a
|
|
1457
1455
|
})), [rt]), at = M?.(e), ct = !re && !!ne && (at == null || at && !te), lt = !re && !!_ && !!v && e.isMyApp === !0 && (y?.(e) ?? !0), dt = rt.length === 1 && !je && !ct && !lt ? rt[0] : void 0, [ft, gt] = z(!1), vt = We === t.ApiKey && q !== r.ManageCredentials, yt = We === t.ApiKey && q === r.LogOut, xt = We !== t.ApiKey && q !== r.ManageCredentials && q === r.LogOut, Tt = F(() => {
|
|
1458
|
-
|
|
1459
|
-
S?.();
|
|
1460
|
-
return;
|
|
1461
|
-
}
|
|
1462
|
-
if (vt) {
|
|
1463
|
-
gt((e) => !e);
|
|
1464
|
-
return;
|
|
1465
|
-
}
|
|
1466
|
-
if (q === r.LogOut) {
|
|
1467
|
-
w?.();
|
|
1468
|
-
return;
|
|
1469
|
-
}
|
|
1470
|
-
b?.(e, { level: C.User });
|
|
1456
|
+
q === r.ManageCredentials ? S?.() : vt ? gt((e) => !e) : q === r.LogOut ? w?.() : b?.(e, { level: C.User });
|
|
1471
1457
|
}, [
|
|
1472
1458
|
q,
|
|
1473
1459
|
vt,
|
|
@@ -1709,10 +1695,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1709
1695
|
case " ":
|
|
1710
1696
|
e.preventDefault(), o.node.type === It.Folder ? r(o.node.id) : i(o.node.id);
|
|
1711
1697
|
break;
|
|
1712
|
-
case "Escape":
|
|
1713
|
-
e.preventDefault(), a();
|
|
1714
|
-
break;
|
|
1715
|
-
default: break;
|
|
1698
|
+
case "Escape": e.preventDefault(), a();
|
|
1716
1699
|
}
|
|
1717
1700
|
}, m = (e) => P("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
|
|
1718
1701
|
let a = e.id === u;
|
|
@@ -1970,19 +1953,21 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
1970
1953
|
}, e.label))
|
|
1971
1954
|
})] }), Er = ({ limits: e, layout: t = Ft.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
|
|
1972
1955
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1973
|
-
|
|
1956
|
+
if (d == null || d.length === 0) return null;
|
|
1957
|
+
let f = oe({
|
|
1958
|
+
"--lt-section-heading": u?.sectionHeading,
|
|
1959
|
+
"--lt-label": u?.label,
|
|
1960
|
+
"--lt-value-primary": u?.valuePrimary,
|
|
1961
|
+
"--lt-value-danger": u?.valueDanger,
|
|
1962
|
+
"--lt-divider": u?.divider,
|
|
1963
|
+
"--lt-progress-track": u?.progressTrack,
|
|
1964
|
+
"--lt-progress-fill-default": u?.progressFillDefault,
|
|
1965
|
+
"--lt-progress-fill-warning": u?.progressFillWarning,
|
|
1966
|
+
"--lt-progress-fill-danger": u?.progressFillDanger
|
|
1967
|
+
});
|
|
1968
|
+
return /* @__PURE__ */ Y("div", {
|
|
1974
1969
|
className: "flex flex-col gap-6",
|
|
1975
|
-
style:
|
|
1976
|
-
"--lt-section-heading": u?.sectionHeading,
|
|
1977
|
-
"--lt-label": u?.label,
|
|
1978
|
-
"--lt-value-primary": u?.valuePrimary,
|
|
1979
|
-
"--lt-value-danger": u?.valueDanger,
|
|
1980
|
-
"--lt-divider": u?.divider,
|
|
1981
|
-
"--lt-progress-track": u?.progressTrack,
|
|
1982
|
-
"--lt-progress-fill-default": u?.progressFillDefault,
|
|
1983
|
-
"--lt-progress-fill-warning": u?.progressFillWarning,
|
|
1984
|
-
"--lt-progress-fill-danger": u?.progressFillDanger
|
|
1985
|
-
}),
|
|
1970
|
+
style: f,
|
|
1986
1971
|
children: [d.map((e) => /* @__PURE__ */ J(Tr, {
|
|
1987
1972
|
group: e,
|
|
1988
1973
|
layout: t,
|
|
@@ -2170,7 +2155,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
2170
2155
|
"Everyone you shared it with loses access",
|
|
2171
2156
|
"Existing share links stop working",
|
|
2172
2157
|
"You keep full access — nothing is deleted"
|
|
2173
|
-
], Gr = (e) => e === t.ApiKey ? "Toolset API keys" : "Toolset credentials", Kr = (e) => e === C.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", qr = new Set([Q.Delete, Q.Unshare]), Jr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = zr, publishExpandedPaths: y, onPublishExpandedPathsChange: x, publishLoadingPaths: S, hasPublishWriteAccess: w, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: j, onPublishError: M, onCreatePublishFolder: ee, publishLabels: te, ruleSourceOptions: N = Br, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ae, isSharePrimary: se, onEdit: ce, onDownload: le, isDownloadVisible: ue, isDownloadPrimary: de, onLoadContentFile: fe, onLoadContentFilePreview: pe, renderContentFilePreview: me, renderContentFileTree: he, renderCredentials: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, texts: H, styles: U, limitsFooterNote: Ee }) => {
|
|
2158
|
+
], Gr = (e) => e === t.ApiKey ? "Toolset API keys" : "Toolset credentials", Kr = (e) => e === C.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", qr = /* @__PURE__ */ new Set([Q.Delete, Q.Unshare]), Jr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = zr, publishExpandedPaths: y, onPublishExpandedPathsChange: x, publishLoadingPaths: S, hasPublishWriteAccess: w, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: j, onPublishError: M, onCreatePublishFolder: ee, publishLabels: te, ruleSourceOptions: N = Br, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ae, isSharePrimary: se, onEdit: ce, onDownload: le, isDownloadVisible: ue, isDownloadPrimary: de, onLoadContentFile: fe, onLoadContentFilePreview: pe, renderContentFilePreview: me, renderContentFileTree: he, renderCredentials: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, texts: H, styles: U, limitsFooterNote: Ee }) => {
|
|
2174
2159
|
let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName: Ae = "dial-small-text", overviewValueTrueClassName: je = "dial-small-text", confirmMessageClassName: Me = "dial-small-text" } = U?.typography ?? {}, W = U?.colors, Ne = oe({
|
|
2175
2160
|
"--cat-details-backdrop": W?.backdrop,
|
|
2176
2161
|
"--cat-details-bg": W?.background,
|
|
@@ -2838,7 +2823,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
2838
2823
|
let r = !m;
|
|
2839
2824
|
h(r), r ? n?.(e.id, r) : _(!0);
|
|
2840
2825
|
}, y = i && !g ? () => i(e) : void 0, b = F((t) => {
|
|
2841
|
-
|
|
2826
|
+
i && !g && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
|
|
2842
2827
|
}, [
|
|
2843
2828
|
i,
|
|
2844
2829
|
e,
|
|
@@ -2967,7 +2952,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
2967
2952
|
}), a && e) {
|
|
2968
2953
|
e.style.transition = "height 280ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${i}px`;
|
|
2969
2954
|
let t = (n) => {
|
|
2970
|
-
n.target
|
|
2955
|
+
n.target === e && n.propertyName === "height" && (e.style.height = "", e.style.overflow = "", e.style.transition = "", e.removeEventListener("transitionend", t));
|
|
2971
2956
|
};
|
|
2972
2957
|
e.addEventListener("transitionend", t);
|
|
2973
2958
|
}
|
|
@@ -2988,7 +2973,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
2988
2973
|
if (t === 0) return;
|
|
2989
2974
|
se.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
|
|
2990
2975
|
let n = (t) => {
|
|
2991
|
-
t.target
|
|
2976
|
+
t.target === e && t.propertyName === "height" && r();
|
|
2992
2977
|
}, r = () => {
|
|
2993
2978
|
se.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2994
2979
|
}, i = setTimeout(r, 400);
|
|
@@ -3431,14 +3416,10 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
3431
3416
|
}), v = () => {
|
|
3432
3417
|
p(null), t();
|
|
3433
3418
|
}, y = (e, t) => {
|
|
3434
|
-
|
|
3435
|
-
p(e.key);
|
|
3436
|
-
return;
|
|
3437
|
-
}
|
|
3438
|
-
e.onClick?.({
|
|
3419
|
+
e.children?.length ? p(e.key) : (e.onClick?.({
|
|
3439
3420
|
key: e.key,
|
|
3440
3421
|
domEvent: t
|
|
3441
|
-
}), v();
|
|
3422
|
+
}), v());
|
|
3442
3423
|
};
|
|
3443
3424
|
return /* @__PURE__ */ Y(ge, {
|
|
3444
3425
|
open: e,
|
|
@@ -4136,7 +4117,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
4136
4117
|
}, [se]), rn = F(async (e) => (qt(e), Zt(void 0), nn(e)), [nn]), an = F(async (e, t) => {
|
|
4137
4118
|
for (let n = 0; n < Ui; n++) {
|
|
4138
4119
|
if (en.current !== e.id || t(await nn(e))) return;
|
|
4139
|
-
n <
|
|
4120
|
+
n < 2 && await y(Wi);
|
|
4140
4121
|
}
|
|
4141
4122
|
}, [nn]), on = R(null);
|
|
4142
4123
|
I(() => {
|
|
@@ -4511,11 +4492,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
4511
4492
|
value: n ?? t.find((t) => t.id === e)?.label ?? e ?? "",
|
|
4512
4493
|
placeholder: r,
|
|
4513
4494
|
onKeyDown: (e) => {
|
|
4514
|
-
|
|
4515
|
-
k();
|
|
4516
|
-
return;
|
|
4517
|
-
}
|
|
4518
|
-
b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
|
|
4495
|
+
e.key === "Escape" ? k() : b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
|
|
4519
4496
|
},
|
|
4520
4497
|
containerClassName: "w-full min-w-0",
|
|
4521
4498
|
wrapperClassName: P("cursor-pointer", m),
|
|
@@ -4606,7 +4583,7 @@ var Z = /* @__PURE__ */ function(e) {
|
|
|
4606
4583
|
label: m,
|
|
4607
4584
|
disabled: l,
|
|
4608
4585
|
onClick: async () => {
|
|
4609
|
-
if (!
|
|
4586
|
+
if (!l && e.canLogout) {
|
|
4610
4587
|
u(!0), f(void 0);
|
|
4611
4588
|
try {
|
|
4612
4589
|
await i(e.id), c(!1);
|
|
@@ -59,7 +59,7 @@ var t = /* @__PURE__ */ function(e) {
|
|
|
59
59
|
if (t == null) return;
|
|
60
60
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = getComputedStyle(e), a = parseFloat(i.paddingInlineStart) || 0, o = parseFloat(i.paddingInlineEnd) || 0;
|
|
61
61
|
r.left < n.left + a ? e.scrollLeft -= n.left + a - r.left : r.right > n.right - o && (e.scrollLeft += r.right - (n.right - o));
|
|
62
|
-
}, b = new Set([e.Prompt, e.Skill]), x = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, S = (e, t = {}) => {
|
|
62
|
+
}, b = /* @__PURE__ */ new Set([e.Prompt, e.Skill]), x = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, S = (e, t = {}) => {
|
|
63
63
|
let n = [], r = b.has(e.type), i = e.details;
|
|
64
64
|
return r || n.push(c.About), (r || i?.promptContent != null) && n.push(c.Content), i?.overview != null && n.push(c.Overview), i?.pricing != null && n.push(c.Pricing), i?.limits != null && n.push(c.Limits), i?.tools != null && n.push(c.Tools), !t.isConnectHidden && x(i?.api) && n.push(c.Api), n;
|
|
65
65
|
}, C = (e) => e === n.SignedIn, w = (e, t) => C(t === r.User ? e?.userStatus : e?.globalStatus), T = (e) => new Promise((t) => setTimeout(t, e)), E = (e) => {
|
package/mapping.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { g as CatalogDetailsTab, o as CatalogSortKey, h as CredentialStatus, n as CredentialsBadgeState, e as CredentialsBannerState, m as CredentialsLevel, r as CredentialsUiState, t as ToolsetAuthenticationType, p as buildCatalogTabs, l as filterCatalogItems, s as getCatalogDetailsTabs, d as getCredentialsBadgeState, f as getCredentialsBannerState, u as getCredentialsUiState, a as getSignedInLevel, i as getTopicOptions, c as sortCatalogItems };
|
|
1
|
+
export { y as CatalogDetailsTab, b as CatalogSortKey, x as CredentialStatus, S as CredentialsBadgeState, C as CredentialsBannerState, w as CredentialsLevel, T as CredentialsUiState, E as ToolsetAuthenticationType, u as buildCatalogTabs, h as filterCatalogItems, c as getCatalogDetailsTabs, n as getCredentialsBadgeState, r as getCredentialsBannerState, i as getCredentialsUiState, a as getSignedInLevel, _ as getTopicOptions, f as sortCatalogItems } from "./mapping-Cxm9x6S-.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-catalog",
|
|
3
3
|
"description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.126",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@tabler/icons-react": "^3.44.0",
|
|
30
30
|
"ag-grid-community": "^35.3.0",
|
|
31
|
-
"@epam/ai-dial-publish-panel": "1.3.0-dev.
|
|
31
|
+
"@epam/ai-dial-publish-panel": "1.3.0-dev.126"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.126",
|
|
36
36
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.20"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|