@epam/ai-dial-catalog 1.1.15 → 1.1.17

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "./mapping-DtxJk1HM.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "./mapping-DUfJ_LJR.js";
2
2
  import { CatalogEntityType as b, DESKTOP_BREAKPOINT_PX as x, DeploymentIcon as S, EntityHeader as C, EntityTypeLabel as w, FeaturedChip as T, ItemHeader as E, MarkdownCodeBlock as D, MarkdownRenderer as O, MarkdownWithPlaceholders as ee, PanelEmptyState as te, ResourceSummary as ne, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as re, buildCssVars as ie, mergeClasses as k } from "@epam/ai-dial-chat-shared";
3
3
  import { Fragment as ae, memo as oe, useCallback as A, useEffect as j, useLayoutEffect as se, useMemo as M, useRef as N, useState as P } from "react";
4
4
  import { ButtonAppearance as F, ButtonDropdown as ce, ButtonVariant as le, CardShell as I, CloseButton as ue, DIAL_ICON_SIZE as L, DIAL_KIT_ICON_STROKE as R, DangerButton as de, Dropdown as fe, ElementSize as pe, EllipsisTooltip as me, FolderPath as he, GhostButton as ge, GhostIconButton as _e, Highlight as ve, InlineSelect as ye, InlineSelectTrigger as be, Input as xe, LinkButton as z, MenuItem as Se, MenuItemMark as Ce, NeutralButton as we, NeutralIconButton as Te, PrimaryButton as Ee, ProgressBar as De, RadioGroup as Oe, Search as ke, SegmentedControl as Ae, Skeleton as je, SkeletonAvatarShape as B, Spinner as Me, Tabs as Ne, ToggleIconButton as Pe, Tooltip as Fe, mergeClasses as V } from "@epam/ai-dial-ui-kit";
@@ -6,7 +6,7 @@ import { IconAlertTriangleFilled as Ie, IconArrowRight as Le, IconBuildingCommun
6
6
  import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
7
7
  import { PublishFooter as ut, PublishPanel as dt, derivePublishState as ft, usePublishFlow as pt } from "@epam/ai-dial-publish-panel";
8
8
  import { Grid as mt } from "@epam/ai-dial-ui-kit/grid";
9
- //#region src/types/code-language.ts
9
+ // src/types/code-language.ts
10
10
  var ht = /* @__PURE__ */ function(e) {
11
11
  return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
12
12
  }({}), K = /* @__PURE__ */ function(e) {
@@ -89,10 +89,10 @@ var ht = /* @__PURE__ */ function(e) {
89
89
  let n = r.current;
90
90
  if (!n) return;
91
91
  let i = Ct(n.parentElement), o = () => {
92
- let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = Z(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t);
92
+ let r = n.getBoundingClientRect(), o = i.getBoundingClientRect(), s = i.clientHeight, c = n.clientWidth, l = Z(c), u = Math.ceil(e / l), d = Math.max(0, o.top - r.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(s / 268) + 2 * t);
93
93
  a({
94
94
  startRow: f,
95
- endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
95
+ endRow: p,
96
96
  columnCount: l
97
97
  });
98
98
  };
@@ -174,24 +174,28 @@ var ht = /* @__PURE__ */ function(e) {
174
174
  })]
175
175
  })]
176
176
  });
177
- }, jt = { icon: "_icon_a0p4u_1" }, Mt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || g(e) == null ? null : /* @__PURE__ */ W(Fe, {
178
- tooltip: t,
179
- asChild: !0,
180
- children: /* @__PURE__ */ W("span", {
181
- role: "img",
182
- "aria-label": t,
183
- style: ie({
184
- "--cat-cred-badge-halo": r?.halo,
185
- "--cat-cred-badge-icon": r?.icon
186
- }),
187
- className: k("absolute -bottom-1 -end-1 shrink-0", n),
188
- children: /* @__PURE__ */ W(Ie, {
189
- size: L.SM,
190
- className: jt.icon,
191
- "aria-hidden": !0
177
+ }, jt = { icon: "_icon_a0p4u_1" }, Mt = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
178
+ if (e == null || g(e) == null) return null;
179
+ let i = ie({
180
+ "--cat-cred-badge-halo": r?.halo,
181
+ "--cat-cred-badge-icon": r?.icon
182
+ });
183
+ return /* @__PURE__ */ W(Fe, {
184
+ tooltip: t,
185
+ asChild: !0,
186
+ children: /* @__PURE__ */ W("span", {
187
+ role: "img",
188
+ "aria-label": t,
189
+ style: i,
190
+ className: k("absolute -bottom-1 -end-1 shrink-0", n),
191
+ children: /* @__PURE__ */ W(Ie, {
192
+ size: L.SM,
193
+ className: jt.icon,
194
+ "aria-hidden": !0
195
+ })
192
196
  })
193
- })
194
- }), Nt = {
197
+ });
198
+ }, Nt = {
195
199
  starFilledIcon: "_starFilledIcon_po6zj_1",
196
200
  starPop: "_starPop_po6zj_1"
197
201
  }, Pt = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ W(Pe, {
@@ -242,7 +246,7 @@ var ht = /* @__PURE__ */ function(e) {
242
246
  d();
243
247
  }), se(() => {
244
248
  let e = r.current;
245
- !e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
249
+ e && c !== 0 && (e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current)));
246
250
  }, [c]), j(() => {
247
251
  let e = r.current;
248
252
  if (!e) return;
@@ -294,7 +298,7 @@ var ht = /* @__PURE__ */ function(e) {
294
298
  }), x = !p && e.isFeatured === !0, S = !p && a?.(e) !== !1, C = !p || e.folder.length > 0, w = n ? (t) => {
295
299
  Vt(t) || n(e);
296
300
  } : void 0, E = A((t) => {
297
- !n || Vt(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
301
+ n && !Vt(t) && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
298
302
  }, [n, e]), D = A((t) => {
299
303
  t.stopPropagation();
300
304
  let n = !m;
@@ -388,12 +392,12 @@ var ht = /* @__PURE__ */ function(e) {
388
392
  ]
389
393
  });
390
394
  }, Ut = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f, featuredChipStyle: p }) => {
391
- let m = e * n, h = t.slice(m, m + n);
395
+ let m = e * n, h = t.slice(m, m + n), g = {
396
+ top: e * 268,
397
+ height: 268
398
+ };
392
399
  return /* @__PURE__ */ W("div", {
393
- style: {
394
- top: e * 268,
395
- height: 268
396
- },
400
+ style: g,
397
401
  className: "absolute flex w-full gap-5 pb-5",
398
402
  children: Array.from({ length: n }, (e, t) => {
399
403
  let n = h[t];
@@ -516,9 +520,8 @@ var ht = /* @__PURE__ */ function(e) {
516
520
  }) : /* @__PURE__ */ W("span", {
517
521
  className: k("min-w-0 break-words", t, Jt.valueText),
518
522
  children: e
519
- }), Xt = ({ 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 }) => /* @__PURE__ */ W("div", {
520
- className: "flex flex-col",
521
- style: ie({
523
+ }), Xt = ({ 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 }) => {
524
+ let u = ie({
522
525
  "--tv-section-heading": l?.sectionHeading,
523
526
  "--tv-row-alt-bg": l?.rowAlt,
524
527
  "--tv-label": l?.label,
@@ -526,31 +529,35 @@ var ht = /* @__PURE__ */ function(e) {
526
529
  "--tv-value-true": l?.valueTrue,
527
530
  "--tv-value-false": l?.valueFalse,
528
531
  "--tv-value-text": l?.valueText
529
- }),
530
- children: t != null && t.length > 0 && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
531
- className: k("mb-3 mt-0", o, Jt.sectionHeading),
532
- children: e
533
- }), /* @__PURE__ */ W("ul", {
534
- className: "m-0 list-none p-0",
535
- children: t.map((e, t) => /* @__PURE__ */ G("li", {
536
- className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? Jt.rowAlt : void 0),
537
- children: [/* @__PURE__ */ W("span", {
538
- className: k(n, Jt.label, "w-2/5 shrink-0"),
539
- children: e.label
540
- }), /* @__PURE__ */ W("div", {
541
- className: "flex w-3/5 min-w-0 items-center gap-1",
542
- children: /* @__PURE__ */ W(Yt, {
543
- value: e.value,
544
- valueClassName: r,
545
- valueTrueClassName: i,
546
- checkIconClassName: a,
547
- yesLabel: s,
548
- noLabel: c
549
- })
550
- })]
551
- }, e.label))
552
- })] })
553
- }), Zt = { sectionHeading: "_sectionHeading_148lj_1" }, Qt = {
532
+ });
533
+ return /* @__PURE__ */ W("div", {
534
+ className: "flex flex-col",
535
+ style: u,
536
+ children: t != null && t.length > 0 && /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ W("p", {
537
+ className: k("mb-3 mt-0", o, Jt.sectionHeading),
538
+ children: e
539
+ }), /* @__PURE__ */ W("ul", {
540
+ className: "m-0 list-none p-0",
541
+ children: t.map((e, t) => /* @__PURE__ */ G("li", {
542
+ className: k("flex items-center rounded px-3 py-2", t % 2 == 0 ? Jt.rowAlt : void 0),
543
+ children: [/* @__PURE__ */ W("span", {
544
+ className: k(n, Jt.label, "w-2/5 shrink-0"),
545
+ children: e.label
546
+ }), /* @__PURE__ */ W("div", {
547
+ className: "flex w-3/5 min-w-0 items-center gap-1",
548
+ children: /* @__PURE__ */ W(Yt, {
549
+ value: e.value,
550
+ valueClassName: r,
551
+ valueTrueClassName: i,
552
+ checkIconClassName: a,
553
+ yesLabel: s,
554
+ noLabel: c
555
+ })
556
+ })]
557
+ }, e.label))
558
+ })] })
559
+ });
560
+ }, Zt = { sectionHeading: "_sectionHeading_148lj_1" }, Qt = {
554
561
  [ht.Python]: "Python",
555
562
  [ht.Curl]: "cURL",
556
563
  [ht.JavaScript]: "JavaScript"
@@ -834,10 +841,11 @@ var ht = /* @__PURE__ */ function(e) {
834
841
  title: e
835
842
  });
836
843
  }
844
+ let a = (r?.orgFallbackBannerTitle ?? mn)(n), o = (r?.orgFallbackBannerDescription ?? hn)(n);
837
845
  return /* @__PURE__ */ W(pn, {
838
846
  icon: i,
839
- title: (r?.orgFallbackBannerTitle ?? mn)(n),
840
- description: (r?.orgFallbackBannerDescription ?? hn)(n)
847
+ title: a,
848
+ description: o
841
849
  });
842
850
  }, bn = {
843
851
  surface: "_surface_1q3s8_1",
@@ -854,18 +862,17 @@ var ht = /* @__PURE__ */ function(e) {
854
862
  ]), ee = A((e) => {
855
863
  S(e ?? ""), w(!1);
856
864
  }, []), te = A(async () => {
857
- if (x.trim().length === 0) {
858
- w(!0);
859
- return;
860
- }
861
- E(!0);
862
- try {
863
- await d?.(e, {
864
- level: t,
865
- apiKey: x
866
- }), S("");
867
- } finally {
868
- E(!1);
865
+ if (x.trim().length === 0) w(!0);
866
+ else {
867
+ E(!0);
868
+ try {
869
+ await d?.(e, {
870
+ level: t,
871
+ apiKey: x
872
+ }), S("");
873
+ } finally {
874
+ E(!1);
875
+ }
869
876
  }
870
877
  }, [
871
878
  e,
@@ -1048,18 +1055,17 @@ var ht = /* @__PURE__ */ function(e) {
1048
1055
  let [u, d] = P(""), [f, p] = P(!1), [m, h] = P(!1), [g, _] = P(!1), v = n === s.SignedIn, y = A((e) => {
1049
1056
  d(e ?? ""), p(!1);
1050
1057
  }, []), b = A(async () => {
1051
- if (u.trim().length === 0) {
1052
- p(!0);
1053
- return;
1054
- }
1055
- h(!0);
1056
- try {
1057
- await i?.(e, {
1058
- level: t,
1059
- apiKey: u
1060
- }), o();
1061
- } finally {
1062
- h(!1);
1058
+ if (u.trim().length === 0) p(!0);
1059
+ else {
1060
+ h(!0);
1061
+ try {
1062
+ await i?.(e, {
1063
+ level: t,
1064
+ apiKey: u
1065
+ }), o();
1066
+ } finally {
1067
+ h(!1);
1068
+ }
1063
1069
  }
1064
1070
  }, [
1065
1071
  e,
@@ -1147,11 +1153,7 @@ var ht = /* @__PURE__ */ function(e) {
1147
1153
  });
1148
1154
  }, kn = { name: "_name_gfs1p_1" }, An = (e) => e.isMyApp === !0, jn = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
1149
1155
  let [a, o] = P(!1), s = A(() => {
1150
- if (n) {
1151
- o((e) => !e);
1152
- return;
1153
- }
1154
- t?.(e);
1156
+ n ? o((e) => !e) : t?.(e);
1155
1157
  }, [
1156
1158
  e,
1157
1159
  t,
@@ -1223,11 +1225,7 @@ var ht = /* @__PURE__ */ function(e) {
1223
1225
  Se(!1);
1224
1226
  }, [e.id]);
1225
1227
  let Ce = A(() => {
1226
- if (a) {
1227
- Se(!0);
1228
- return;
1229
- }
1230
- i?.(e);
1228
+ a ? Se(!0) : i?.(e);
1231
1229
  }, [
1232
1230
  e,
1233
1231
  i,
@@ -1376,19 +1374,7 @@ var ht = /* @__PURE__ */ function(e) {
1376
1374
  Ae,
1377
1375
  Oe
1378
1376
  ]), [q, J] = P(!1), _t = rt === n.ApiKey && H !== y.ManageCredentials, Y = rt === n.ApiKey && H === y.LogOut, vt = rt !== n.ApiKey && H !== y.ManageCredentials && H === y.LogOut, yt = A(() => {
1379
- if (H === y.ManageCredentials) {
1380
- T?.();
1381
- return;
1382
- }
1383
- if (_t) {
1384
- J((e) => !e);
1385
- return;
1386
- }
1387
- if (H === y.LogOut) {
1388
- E?.();
1389
- return;
1390
- }
1391
- S?.(e, { level: v.User });
1377
+ H === y.ManageCredentials ? T?.() : _t ? J((e) => !e) : H === y.LogOut ? E?.() : S?.(e, { level: v.User });
1392
1378
  }, [
1393
1379
  H,
1394
1380
  _t,
@@ -1612,10 +1598,7 @@ var ht = /* @__PURE__ */ function(e) {
1612
1598
  case " ":
1613
1599
  e.preventDefault(), o.node.type === yt.Folder ? r(o.node.id) : i(o.node.id);
1614
1600
  break;
1615
- case "Escape":
1616
- e.preventDefault(), a();
1617
- break;
1618
- default: break;
1601
+ case "Escape": e.preventDefault(), a();
1619
1602
  }
1620
1603
  }, m = (e) => k("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-none", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
1621
1604
  let a = e.id === u;
@@ -1867,19 +1850,21 @@ var ht = /* @__PURE__ */ function(e) {
1867
1850
  }, e.label))
1868
1851
  })] }), $n = ({ limits: e, layout: t = vt.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 }) => {
1869
1852
  let d = e?.groups.filter((e) => e.rows.length > 0);
1870
- return d == null || d.length === 0 ? null : /* @__PURE__ */ G("div", {
1853
+ if (d == null || d.length === 0) return null;
1854
+ let f = ie({
1855
+ "--lt-section-heading": u?.sectionHeading,
1856
+ "--lt-label": u?.label,
1857
+ "--lt-value-primary": u?.valuePrimary,
1858
+ "--lt-value-danger": u?.valueDanger,
1859
+ "--lt-divider": u?.divider,
1860
+ "--lt-progress-track": u?.progressTrack,
1861
+ "--lt-progress-fill-default": u?.progressFillDefault,
1862
+ "--lt-progress-fill-warning": u?.progressFillWarning,
1863
+ "--lt-progress-fill-danger": u?.progressFillDanger
1864
+ });
1865
+ return /* @__PURE__ */ G("div", {
1871
1866
  className: "flex flex-col gap-6",
1872
- style: ie({
1873
- "--lt-section-heading": u?.sectionHeading,
1874
- "--lt-label": u?.label,
1875
- "--lt-value-primary": u?.valuePrimary,
1876
- "--lt-value-danger": u?.valueDanger,
1877
- "--lt-divider": u?.divider,
1878
- "--lt-progress-track": u?.progressTrack,
1879
- "--lt-progress-fill-default": u?.progressFillDefault,
1880
- "--lt-progress-fill-warning": u?.progressFillWarning,
1881
- "--lt-progress-fill-danger": u?.progressFillDanger
1882
- }),
1867
+ style: f,
1883
1868
  children: [d.map((e) => /* @__PURE__ */ W(Qn, {
1884
1869
  group: e,
1885
1870
  layout: t,
@@ -2006,7 +1991,7 @@ var ht = /* @__PURE__ */ function(e) {
2006
1991
  })
2007
1992
  ]
2008
1993
  }, e.name))
2009
- }), or = new Set([b.Prompt, b.Skill]), sr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, cr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), lr = async () => void 0, ur = [], dr = [], fr = [
1994
+ }), or = /* @__PURE__ */ new Set([b.Prompt, b.Skill]), sr = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, cr = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), lr = async () => void 0, ur = [], dr = [], fr = [
2010
1995
  "All shared configurations will be lost",
2011
1996
  "Users who rely on it will lose access",
2012
1997
  "Cannot be undone"
@@ -2022,7 +2007,7 @@ var ht = /* @__PURE__ */ function(e) {
2022
2007
  "Everyone you shared it with loses access",
2023
2008
  "Existing share links stop working",
2024
2009
  "You keep full access — nothing is deleted"
2025
- ], gr = (e) => e === n.ApiKey ? "Toolset API keys" : "Toolset credentials", _r = (e) => e === v.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", vr = new Set([q.Delete, q.Unshare]), yr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: l, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, isPublishPrimary: m, getPublishHistory: h, publishFolderItems: g = ur, publishExpandedPaths: _, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: w, onPublishError: T, onCreatePublishFolder: E, publishLabels: D, ruleSourceOptions: O = dr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: F, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: I, onDelete: L, onUnshare: de, isUnshareVisible: fe, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: z, styles: Se, limitsFooterNote: Ce }) => {
2010
+ ], gr = (e) => e === n.ApiKey ? "Toolset API keys" : "Toolset credentials", _r = (e) => e === v.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", vr = /* @__PURE__ */ new Set([q.Delete, q.Unshare]), yr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: s, onUseInChat: l, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, isPublishPrimary: m, getPublishHistory: h, publishFolderItems: g = ur, publishExpandedPaths: _, onPublishExpandedPathsChange: y, publishLoadingPaths: b, hasPublishWriteAccess: x, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: w, onPublishError: T, onCreatePublishFolder: E, publishLabels: D, ruleSourceOptions: O = dr, onFetchExistingRules: ee, shareOverlay: te, isShareVisible: ne, isSharePrimary: re, onEdit: ae, onDownload: oe, isDownloadVisible: se, isDownloadPrimary: F, onLoadContentFile: ce, onLoadContentFilePreview: le, renderContentFilePreview: I, onDelete: L, onUnshare: de, isUnshareVisible: fe, onRevokeShare: me, onFetchRecipientsCount: he, isRevokeShareVisible: ge, onUnpublish: ve, isUnpublishVisible: ye, onLogin: be, onLogout: xe, texts: z, styles: Se, limitsFooterNote: Ce }) => {
2026
2011
  let { subViewTitleClassName: we = "dial-body-semi-text", overviewSectionClassName: Te = "dial-caption-text", overviewLabelClassName: Ee = "dial-small-semi-text", overviewValueClassName: De = "dial-small-text", overviewValueTrueClassName: ke = "dial-small-text", confirmMessageClassName: Ae = "dial-small-text" } = Se?.typography ?? {}, B = Se?.colors, Me = ie({
2027
2012
  "--cat-details-backdrop": B?.backdrop,
2028
2013
  "--cat-details-bg": B?.background,
@@ -2246,13 +2231,7 @@ var ht = /* @__PURE__ */ function(e) {
2246
2231
  j(() => {
2247
2232
  if (!t) return;
2248
2233
  let e = (e) => {
2249
- if (e.key === "Escape") {
2250
- if (St != null) {
2251
- Vt();
2252
- return;
2253
- }
2254
- a();
2255
- }
2234
+ e.key === "Escape" && (St == null ? a() : Vt());
2256
2235
  };
2257
2236
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2258
2237
  }, [
@@ -2697,7 +2676,7 @@ var ht = /* @__PURE__ */ function(e) {
2697
2676
  let r = !m;
2698
2677
  h(r), r ? n?.(e.id, r) : _(!0);
2699
2678
  }, y = i && !g ? () => i(e) : void 0, b = A((t) => {
2700
- !i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2679
+ i && !g && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
2701
2680
  }, [
2702
2681
  i,
2703
2682
  e,
@@ -2830,7 +2809,7 @@ var ht = /* @__PURE__ */ function(e) {
2830
2809
  }), a && e) {
2831
2810
  e.style.transition = "height 280ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${i}px`;
2832
2811
  let t = (n) => {
2833
- n.target !== e || n.propertyName !== "height" || (e.style.height = "", e.style.overflow = "", e.style.transition = "", e.removeEventListener("transitionend", t));
2812
+ n.target === e && n.propertyName === "height" && (e.style.height = "", e.style.overflow = "", e.style.transition = "", e.removeEventListener("transitionend", t));
2834
2813
  };
2835
2814
  e.addEventListener("transitionend", t);
2836
2815
  }
@@ -2851,7 +2830,7 @@ var ht = /* @__PURE__ */ function(e) {
2851
2830
  if (t === 0) return;
2852
2831
  ue.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`;
2853
2832
  let n = (t) => {
2854
- t.target !== e || t.propertyName !== "height" || r();
2833
+ t.target === e && t.propertyName === "height" && r();
2855
2834
  }, r = () => {
2856
2835
  ue.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
2857
2836
  }, i = setTimeout(r, 400);
@@ -3532,7 +3511,7 @@ var ht = /* @__PURE__ */ function(e) {
3532
3511
  }, [I]), Gt = A(async (e) => (Pt(e), Rt(void 0), Ut(e)), [Ut]), Kt = A(async (e, t) => {
3533
3512
  for (let n = 0; n < Kr; n++) {
3534
3513
  if (Vt.current !== e.id || t(await Ut(e))) return;
3535
- n < Kr - 1 && await f(qr);
3514
+ n < 2 && await f(qr);
3536
3515
  }
3537
3516
  }, [Ut]), qt = N(null);
3538
3517
  j(() => {
@@ -3771,5 +3750,4 @@ var ht = /* @__PURE__ */ function(e) {
3771
3750
  ]
3772
3751
  });
3773
3752
  };
3774
- //#endregion
3775
3753
  export { At as AppIdentity, Ht as Card, Wt as CardGrid, Ut as CardRowRenderer, Jr as Catalog, yt as CatalogContentNodeType, bt as CatalogContentPreviewType, K as CatalogDetailsTab, gt as CatalogLimitStatus, u as CatalogSortKey, Y as CatalogViewMode, ht as CodeLanguage, Vn as ContentTab, s as CredentialStatus, Mt as CredentialsBadge, o as CredentialsBadgeState, v as CredentialsLevel, y as CredentialsUiState, _t as DeploymentSize, q as DetailsConfirmationKind, J as DetailsConfirmationVariant, yr as DetailsPanel, xr as FavoriteCard, wr as Favorites, Br as Filter, on as InfoCard, vt as LimitRowLayout, $n as LimitsTab, Ir as ListView, Ur as Toolbar, n as ToolsetAuthenticationType, Lt as TopicTag, h as buildCatalogTabs, i as filterCatalogItems, g as getCredentialsBadgeState, m as getCredentialsUiState, c as getSignedInLevel, p as getTopicOptions, r as sortCatalogItems, xt as useFavColumns, Ot as useScrollVirtualizer };
@@ -1,5 +1,5 @@
1
1
  import { CatalogEntityType as e } from "@epam/ai-dial-chat-shared";
2
- //#region src/types/toolset-auth.ts
2
+ // src/types/toolset-auth.ts
3
3
  var t = /* @__PURE__ */ function(e) {
4
4
  return e.None = "NONE", e.ApiKey = "API_KEY", e.OAuth = "OAUTH", e;
5
5
  }({}), n = /* @__PURE__ */ function(e) {
@@ -60,5 +60,4 @@ var t = /* @__PURE__ */ function(e) {
60
60
  if (e.isManageableByAdmin) return _(e.userStatus) ? o.PersonalCredentialsActive : _(e.globalStatus) ? o.OrgCredentialsActive : void 0;
61
61
  if (_(e.globalStatus) && e.isPublic && !_(e.userStatus)) return o.UsingOrgCredentials;
62
62
  };
63
- //#endregion
64
63
  export { o as _, v as a, t as b, p as c, f as d, c as f, a as g, n as h, S as i, u as l, s as m, C as n, y as o, d as p, b as r, g as s, x as t, l as u, r as v, i as y };
package/mapping.js CHANGED
@@ -1,2 +1 @@
1
- import { b as e, c as t, d as n, g as r, h as i, i as a, m as o, p as s, r as c, s as l, t as u, v as d, y as f } from "./mapping-DtxJk1HM.js";
2
- export { o as CatalogSortKey, i as CredentialStatus, r as CredentialsBadgeState, d as CredentialsLevel, f as CredentialsUiState, e as ToolsetAuthenticationType, l as buildCatalogTabs, n as filterCatalogItems, u as getCredentialsBadgeState, c as getCredentialsUiState, a as getSignedInLevel, s as getTopicOptions, t as sortCatalogItems };
1
+ export { m as CatalogSortKey, h as CredentialStatus, g as CredentialsBadgeState, v as CredentialsLevel, y as CredentialsUiState, b as ToolsetAuthenticationType, s as buildCatalogTabs, d as filterCatalogItems, t as getCredentialsBadgeState, r as getCredentialsUiState, i as getSignedInLevel, p as getTopicOptions, c as sortCatalogItems } from "./mapping-DUfJ_LJR.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.1.15",
4
+ "version": "1.1.17",
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.1.15"
31
+ "@epam/ai-dial-publish-panel": "1.1.17"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.1.15",
35
+ "@epam/ai-dial-chat-shared": "1.1.17",
36
36
  "@epam/ai-dial-ui-kit": "^0.14.2"
37
37
  },
38
38
  "repository": {