@epam/ai-dial-conversation-panel 1.2.0-dev.89 → 1.2.0-dev.93
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/components/ConversationPanel/ConversationPanel.d.ts.map +1 -1
- package/components/NewChatButton/NewChatButton.d.ts +7 -0
- package/components/NewChatButton/NewChatButton.d.ts.map +1 -1
- package/index.js +144 -142
- package/models/panel-props.d.ts +16 -0
- package/models/panel-props.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationPanel/ConversationPanel.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyBlE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ConversationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationPanel/ConversationPanel.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyBlE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA4cxD,CAAC"}
|
|
@@ -10,6 +10,13 @@ export interface NewChatButtonProps {
|
|
|
10
10
|
labelClassName?: string;
|
|
11
11
|
/** Color overrides applied as CSS custom properties. */
|
|
12
12
|
colors?: NewChatButtonColors;
|
|
13
|
+
/**
|
|
14
|
+
* Extra class name(s) merged onto the button. The button is `h-[36px]` with
|
|
15
|
+
* the `shadow-chat-button` elevation by default, and both are merged rather
|
|
16
|
+
* than fixed, so a `h-*` or `shadow-*` utility passed here replaces them.
|
|
17
|
+
* The corner radius is not a class: it reads the kit's `--radius-control`.
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
13
20
|
}
|
|
14
21
|
/** Full-width button rendered at the top of the conversation panel to start a new chat. */
|
|
15
22
|
export declare const NewChatButton: FC<NewChatButtonProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewChatButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewChatButton/NewChatButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGpE,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"NewChatButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewChatButton/NewChatButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGpE,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2FAA2F;AAC3F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqChD,CAAC"}
|
package/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { PanelEmpty as c, PanelNoResults as l, SidebarOrientation as u, SidebarP
|
|
|
3
3
|
import { Button as f, ButtonVariant as p, ConfirmationPopup as m, ConfirmationPopupVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, Dropdown as v, ElementSize as y, EllipsisTooltip as b, FilterChips as x, GhostIconButton as S, Highlight as C, Input as w, Popup as T, PopupSize as E, ProgressBar as D, Search as O, Skeleton as ee, SkeletonVariant as k, Spinner as A, Tooltip as j, mergeClasses as te } from "@epam/ai-dial-ui-kit";
|
|
4
4
|
import { createElement as M, memo as N, useCallback as P, useEffect as F, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as I, useRef as L, useState as R } from "react";
|
|
5
5
|
import { Fragment as ae, jsx as z, jsxs as B } from "react/jsx-runtime";
|
|
6
|
-
import { IconAlertCircleFilled as oe, IconAlertTriangleFilled as V, IconCaretDownFilled as se, IconCaretRightFilled as ce, IconCheck as
|
|
6
|
+
import { IconAlertCircleFilled as oe, IconAlertTriangleFilled as V, IconCaretDownFilled as se, IconCaretRightFilled as ce, IconCheck as H, IconChevronDown as le, IconChevronUp as ue, IconClock as de, IconDotsVertical as U, IconFile as fe, IconFileZip as pe, IconJson as me, IconPlus as W, IconSparkles as G, IconX as he } from "@tabler/icons-react";
|
|
7
7
|
//#region src/constants/public-class-names.ts
|
|
8
|
-
var
|
|
8
|
+
var ge = {
|
|
9
9
|
newChatButton: "dial-cp-new-chat-button",
|
|
10
10
|
search: "dial-cp-search"
|
|
11
|
-
},
|
|
11
|
+
}, _e = typeof window < "u" ? ie : F;
|
|
12
12
|
function ve(e) {
|
|
13
13
|
if (e !== void 0) switch (typeof e) {
|
|
14
14
|
case "number": return e;
|
|
@@ -25,7 +25,7 @@ function ye({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i
|
|
|
25
25
|
height: t,
|
|
26
26
|
width: n
|
|
27
27
|
}), d = r || a === "only-height" && s !== void 0 || a === "only-width" && c !== void 0 || s !== void 0 && c !== void 0;
|
|
28
|
-
return
|
|
28
|
+
return _e(() => {
|
|
29
29
|
if (i === null || d) return;
|
|
30
30
|
let t = new ResizeObserver((e) => {
|
|
31
31
|
for (let t of e) {
|
|
@@ -58,7 +58,7 @@ function be(e) {
|
|
|
58
58
|
let t = L(() => {
|
|
59
59
|
throw Error("Cannot call during render.");
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return _e(() => {
|
|
62
62
|
t.current = e;
|
|
63
63
|
}, [e]), P((e) => t.current?.(e), [t]);
|
|
64
64
|
}
|
|
@@ -264,13 +264,13 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
|
|
|
264
264
|
a,
|
|
265
265
|
l
|
|
266
266
|
]);
|
|
267
|
-
return
|
|
267
|
+
return _e(() => {
|
|
268
268
|
v(w((r === "vertical" ? e?.scrollTop : e?.scrollLeft) ?? 0));
|
|
269
269
|
}, [
|
|
270
270
|
e,
|
|
271
271
|
r,
|
|
272
272
|
w
|
|
273
|
-
]),
|
|
273
|
+
]), _e(() => {
|
|
274
274
|
if (!e) return;
|
|
275
275
|
let t = () => {
|
|
276
276
|
v((t) => {
|
|
@@ -369,7 +369,7 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
369
369
|
top: r
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
}), [g, x]),
|
|
372
|
+
}), [g, x]), _e(() => {
|
|
373
373
|
if (!g) return;
|
|
374
374
|
let e = Array.from(g.children).filter((e, t) => {
|
|
375
375
|
if (e.hasAttribute("aria-hidden")) return !1;
|
|
@@ -455,25 +455,25 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
455
455
|
//#region src/types/virtual-row.ts
|
|
456
456
|
var Y = /* @__PURE__ */ function(e) {
|
|
457
457
|
return e.Header = "header", e.Item = "item", e;
|
|
458
|
-
}({}), Fe = (e) => `${60 + e * 23 % 35}%`,
|
|
458
|
+
}({}), Fe = (e) => `${60 + e * 23 % 35}%`, Ie = (e, t) => e ? t ? "pe-9" : "pe-2 group-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : "pe-3", Le = (e, t) => t.rows[e].kind === Y.Item ? 36 : e === 0 ? 24 : 56, Re = (e) => {
|
|
459
459
|
switch (e) {
|
|
460
460
|
case n.Shared: return n.Shared;
|
|
461
461
|
case n.Organization: return n.Organization;
|
|
462
462
|
default: return n.MyChats;
|
|
463
463
|
}
|
|
464
|
-
},
|
|
464
|
+
}, ze = (e, t) => {
|
|
465
465
|
let n = null;
|
|
466
466
|
for (let r of e) if (r.kind === Y.Header) n = r.groupKey;
|
|
467
467
|
else if (r.item.id === t) return n;
|
|
468
468
|
return null;
|
|
469
|
-
},
|
|
469
|
+
}, Be = (e, t, r) => {
|
|
470
470
|
let i = /* @__PURE__ */ new Set();
|
|
471
471
|
if (t != null && i.add(t), t === n.Pinned) {
|
|
472
472
|
let t = r.find((t) => t.id === e);
|
|
473
|
-
t && i.add(
|
|
473
|
+
t && i.add(Re(t.source));
|
|
474
474
|
} else i.add(n.Pinned);
|
|
475
475
|
return i;
|
|
476
|
-
},
|
|
476
|
+
}, Ve = (e, t, n, r) => {
|
|
477
477
|
let i = e.currentTarget.getBoundingClientRect();
|
|
478
478
|
if (e.clientY >= i.top + i.height / 2) return t;
|
|
479
479
|
let a = null, o = !1;
|
|
@@ -483,7 +483,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
483
483
|
a = e.item.id;
|
|
484
484
|
}
|
|
485
485
|
return null;
|
|
486
|
-
},
|
|
486
|
+
}, X = [
|
|
487
487
|
{
|
|
488
488
|
value: n.All,
|
|
489
489
|
labelKey: "all"
|
|
@@ -501,7 +501,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
501
501
|
labelKey: "organization"
|
|
502
502
|
}
|
|
503
503
|
], He = N(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => /* @__PURE__ */ z(x, {
|
|
504
|
-
items: I(() =>
|
|
504
|
+
items: I(() => X.filter(({ value: e }) => !i?.includes(e)).map(({ value: e, labelKey: n }) => ({
|
|
505
505
|
value: e,
|
|
506
506
|
label: t[n]
|
|
507
507
|
})), [t, i]),
|
|
@@ -511,7 +511,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
511
511
|
"aria-label": t.groupAriaLabel ?? "Filter chats",
|
|
512
512
|
className: "px-3 py-2",
|
|
513
513
|
chipClassName: te("!px-2", r)
|
|
514
|
-
})), Ue = { button: "_button_1vksy_1" }, We = N(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i }) => /* @__PURE__ */ z("div", {
|
|
514
|
+
})), Ue = { button: "_button_1vksy_1" }, We = N(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i, className: o }) => /* @__PURE__ */ z("div", {
|
|
515
515
|
className: "px-3 py-2",
|
|
516
516
|
style: r({
|
|
517
517
|
"--cp-new-chat-bg": i?.background,
|
|
@@ -521,8 +521,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
521
521
|
children: /* @__PURE__ */ B("button", {
|
|
522
522
|
onClick: t,
|
|
523
523
|
type: "button",
|
|
524
|
-
className: a("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", Ue.button,
|
|
525
|
-
children: [/* @__PURE__ */ z(
|
|
524
|
+
className: a("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", Ue.button, o, ge.newChatButton),
|
|
525
|
+
children: [/* @__PURE__ */ z(W, {
|
|
526
526
|
size: 18,
|
|
527
527
|
stroke: _,
|
|
528
528
|
className: "shrink-0",
|
|
@@ -570,7 +570,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
570
570
|
"aria-hidden": !0
|
|
571
571
|
}), /* @__PURE__ */ z(b, { text: e })]
|
|
572
572
|
});
|
|
573
|
-
},
|
|
573
|
+
}, Ke = ({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", itemIconBadgeClassName: u, taskBadgeClassName: d = "dial-caption-lead-semi-text", unreadIndicatorLabel: p = "Unread", rowGroupKey: m, rows: h, draggingId: b, dragOverId: x, allowedDropGroups: w, onDragStart: T, onDragEnd: E, onDragOver: D, onDragLeave: O, onDrop: A }) => {
|
|
574
574
|
let [j, te] = R(!1), M = L(null), N = P((t) => {
|
|
575
575
|
te(t), t && M.current && s?.(e, M.current);
|
|
576
576
|
}, [e, s]), F = o?.(e) ?? [], ne = F.length > 0, re = e.isIconLoading ? /* @__PURE__ */ z(ee, {
|
|
@@ -597,7 +597,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
597
597
|
children: p
|
|
598
598
|
})] })
|
|
599
599
|
}), re]
|
|
600
|
-
}), I =
|
|
600
|
+
}), I = Ie(ne, j), oe = e.showTaskBadge ? /* @__PURE__ */ B("span", {
|
|
601
601
|
className: a("flex h-5 shrink-0 items-center justify-center gap-0.5 rounded-full border pe-2 ps-1", Z.taskBadge, d),
|
|
602
602
|
children: [/* @__PURE__ */ z(de, {
|
|
603
603
|
size: 12,
|
|
@@ -609,16 +609,16 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
609
609
|
}, [O]), ce = P((t) => {
|
|
610
610
|
if (!m || !h || !A) return;
|
|
611
611
|
t.preventDefault();
|
|
612
|
-
let n =
|
|
612
|
+
let n = Ve(t, e.id, h, m);
|
|
613
613
|
A(e.id, m, n);
|
|
614
614
|
}, [
|
|
615
615
|
e.id,
|
|
616
616
|
h,
|
|
617
617
|
m,
|
|
618
618
|
A
|
|
619
|
-
]),
|
|
619
|
+
]), H = e.id === b, le = e.id === x, ue = m != null && (w?.has(m) ?? !1), fe = b != null;
|
|
620
620
|
return /* @__PURE__ */ B("li", {
|
|
621
|
-
className: a("group/conversation relative",
|
|
621
|
+
className: a("group/conversation relative", H && "cursor-grabbing opacity-50", le && ue && "rounded", le && ue && Z.dropZoneActive, fe && !H && !ue && "cursor-not-allowed"),
|
|
622
622
|
draggable: V || void 0,
|
|
623
623
|
onDragStart: V ? () => T?.(e.id) : void 0,
|
|
624
624
|
onDragEnd: V ? E : void 0,
|
|
@@ -657,7 +657,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
657
657
|
listClassName: "w-[200px]",
|
|
658
658
|
children: /* @__PURE__ */ z(S, {
|
|
659
659
|
ref: M,
|
|
660
|
-
icon: /* @__PURE__ */ z(
|
|
660
|
+
icon: /* @__PURE__ */ z(U, {
|
|
661
661
|
size: g.SM,
|
|
662
662
|
className: Z.triggerIcon,
|
|
663
663
|
"aria-hidden": !0,
|
|
@@ -670,7 +670,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
670
670
|
})
|
|
671
671
|
})]
|
|
672
672
|
});
|
|
673
|
-
},
|
|
673
|
+
}, qe = ({ index: e, style: t, rows: r, expandedGroups: i, onToggleGroup: a, listId: o, activeConversationId: s, searchQuery: c, onSelectConversation: l, getActions: u, onActionMenuOpen: d, actionsLabel: f, unreadIndicatorLabel: p, styles: m, draggingId: h, dragOverId: g, allowedDropGroups: _, onDragStart: v, onDragEnd: y, onDragOver: b, onDragLeave: x, onDrop: S }) => {
|
|
674
674
|
let C = r[e];
|
|
675
675
|
if (C.kind === Y.Header) {
|
|
676
676
|
let r = C.groupKey === n.Pinned;
|
|
@@ -696,7 +696,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
696
696
|
role: "presentation",
|
|
697
697
|
style: t,
|
|
698
698
|
className: "pt-1",
|
|
699
|
-
children: /* @__PURE__ */ z(
|
|
699
|
+
children: /* @__PURE__ */ z(Ke, {
|
|
700
700
|
item: C.item,
|
|
701
701
|
isActive: C.item.id === s,
|
|
702
702
|
searchQuery: c,
|
|
@@ -720,44 +720,44 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
720
720
|
onDrop: S
|
|
721
721
|
})
|
|
722
722
|
});
|
|
723
|
-
},
|
|
723
|
+
}, Je = (e, t) => t === n.All ? !0 : e.source === t, Ye = (e, t) => t ? e.title.toLowerCase().includes(t.toLowerCase()) : !0, Xe = new Set([
|
|
724
724
|
n.Pinned,
|
|
725
725
|
n.MyChats,
|
|
726
726
|
n.Shared,
|
|
727
727
|
n.Organization
|
|
728
|
-
]),
|
|
729
|
-
let { colors: E, typography: D, newChatButton: k, searchWrapperClassName: A } = m ?? {}, { title:
|
|
728
|
+
]), Ze = N(({ conversations: e, isLoading: t, isOpen: i, onSelectConversation: o, activeConversationId: s, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, activeFilter: S, onActiveFilterChange: C, isFilterTabsHidden: w = !1, hiddenSources: T }) => {
|
|
729
|
+
let { colors: E, typography: D, newChatButton: k, searchWrapperClassName: A, headerClassName: j, headerActionsClassName: te, newChatButtonClassName: M } = m ?? {}, { title: N, emptyLabel: re, noResultsLabel: ie, loadingLabel: ae = "Loading conversations", newChatLabel: oe, searchPlaceholder: V, searchClearLabel: se, filterLabels: ce, groupLabels: H, actionsLabel: le, unreadIndicatorLabel: ue, closeAriaLabel: de } = f, [U, fe] = R(""), [pe, me] = R(n.All);
|
|
730
730
|
F(() => {
|
|
731
|
-
S != null &&
|
|
731
|
+
S != null && me(S);
|
|
732
732
|
}, [S]);
|
|
733
|
-
let
|
|
734
|
-
|
|
735
|
-
}, []),
|
|
736
|
-
|
|
737
|
-
}, []),
|
|
738
|
-
|
|
733
|
+
let W = I(() => T?.length ? e.filter((e) => e.source == null || !T.includes(e.source)) : e, [e, T]), [G, he] = R(() => Xe), [_e, ve] = R(5), ye = ne(), be = L(null), K = L(null), [xe, Se] = R(null), [q, J] = R(null), [Ce, we] = R(null), Te = L(null), Ee = L(null), De = P(({ height: e }) => {
|
|
734
|
+
ve(Math.ceil(e / 36 * 2));
|
|
735
|
+
}, []), Oe = P((e) => {
|
|
736
|
+
fe(e ?? "");
|
|
737
|
+
}, []), ke = P((e) => {
|
|
738
|
+
he((t) => {
|
|
739
739
|
let n = new Set(t);
|
|
740
740
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
741
741
|
});
|
|
742
|
-
}, []),
|
|
743
|
-
|
|
744
|
-
}, []),
|
|
745
|
-
let n =
|
|
746
|
-
|
|
747
|
-
}, [
|
|
748
|
-
|
|
749
|
-
}, [
|
|
750
|
-
|
|
751
|
-
}, []),
|
|
752
|
-
|
|
753
|
-
}, []),
|
|
754
|
-
let r =
|
|
755
|
-
|
|
742
|
+
}, []), Ae = P(() => {
|
|
743
|
+
Te.current = null, Ee.current = null, Se(null), J(null), we(null);
|
|
744
|
+
}, []), je = P((e, t) => {
|
|
745
|
+
let n = Be(e, ze(t, e), W);
|
|
746
|
+
Te.current = e, Ee.current = n, Se(e), we(n);
|
|
747
|
+
}, [W]), Me = P(() => {
|
|
748
|
+
Ae();
|
|
749
|
+
}, [Ae]), Ne = P((e) => {
|
|
750
|
+
J(e);
|
|
751
|
+
}, []), Ie = P(() => {
|
|
752
|
+
J(null);
|
|
753
|
+
}, []), Re = P((e, t, n) => {
|
|
754
|
+
let r = Te.current, i = Ee.current;
|
|
755
|
+
Ae(), r != null && r !== e && i?.has(t) && x?.({
|
|
756
756
|
draggedId: r,
|
|
757
757
|
targetGroupKey: t,
|
|
758
758
|
afterId: n
|
|
759
759
|
});
|
|
760
|
-
}, [
|
|
760
|
+
}, [Ae, x]), Ve = r({
|
|
761
761
|
"--cp-item-hover": E?.itemHover,
|
|
762
762
|
"--cp-item-active": E?.itemActive,
|
|
763
763
|
"--cp-text": E?.text,
|
|
@@ -774,123 +774,123 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
774
774
|
"--cp-task-badge-bg": E?.taskBadgeBackground,
|
|
775
775
|
"--cp-task-badge-text": E?.taskBadgeText,
|
|
776
776
|
"--cp-unread-dot": E?.unreadDot
|
|
777
|
-
}), X = I(() =>
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
]),
|
|
777
|
+
}), X = I(() => W.filter((e) => Je(e, pe) && Ye(e, U)), [
|
|
778
|
+
W,
|
|
779
|
+
pe,
|
|
780
|
+
U
|
|
781
|
+
]), Ue = I(() => X.filter((e) => e.isPinned), [X]), Ge = I(() => X.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [X]), Ke = I(() => X.filter((e) => !e.isPinned && e.source === n.Shared), [X]), Ze = I(() => X.filter((e) => !e.isPinned && e.source === n.Organization), [X]), Qe = I(() => [
|
|
782
782
|
{
|
|
783
783
|
key: n.Pinned,
|
|
784
|
-
label:
|
|
785
|
-
items:
|
|
784
|
+
label: H?.pinned ?? "Pinned",
|
|
785
|
+
items: Ue
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
788
|
key: n.MyChats,
|
|
789
|
-
label:
|
|
790
|
-
items:
|
|
789
|
+
label: H?.myChats ?? "My chats",
|
|
790
|
+
items: Ge
|
|
791
791
|
},
|
|
792
792
|
{
|
|
793
793
|
key: n.Shared,
|
|
794
|
-
label:
|
|
795
|
-
items:
|
|
794
|
+
label: H?.shared ?? "Shared",
|
|
795
|
+
items: Ke
|
|
796
796
|
},
|
|
797
797
|
{
|
|
798
798
|
key: n.Organization,
|
|
799
|
-
label:
|
|
800
|
-
items:
|
|
799
|
+
label: H?.organization ?? "Organization",
|
|
800
|
+
items: Ze
|
|
801
801
|
}
|
|
802
802
|
], [
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
803
|
+
H,
|
|
804
|
+
Ue,
|
|
805
|
+
Ge,
|
|
806
|
+
Ke,
|
|
807
|
+
Ze
|
|
808
808
|
]), Q = I(() => {
|
|
809
809
|
let e = [];
|
|
810
|
-
for (let t of
|
|
810
|
+
for (let t of Qe) if (t.items.length !== 0 && (e.push({
|
|
811
811
|
kind: Y.Header,
|
|
812
812
|
groupKey: t.key,
|
|
813
813
|
label: t.label
|
|
814
|
-
}),
|
|
814
|
+
}), G.has(t.key))) for (let n of t.items) e.push({
|
|
815
815
|
kind: Y.Item,
|
|
816
816
|
item: n,
|
|
817
817
|
groupKey: t.key
|
|
818
818
|
});
|
|
819
819
|
return e;
|
|
820
|
-
}, [
|
|
820
|
+
}, [Qe, G]);
|
|
821
821
|
F(() => {
|
|
822
|
-
if (!s ||
|
|
822
|
+
if (!s || K.current === s) return;
|
|
823
823
|
let e = Q.findIndex((e) => e.kind === Y.Item && e.item.id === s);
|
|
824
|
-
e >= 0 && (
|
|
824
|
+
e >= 0 && (be.current?.scrollToRow({
|
|
825
825
|
index: e,
|
|
826
826
|
align: "smart",
|
|
827
827
|
behavior: "smooth"
|
|
828
|
-
}),
|
|
828
|
+
}), K.current = s);
|
|
829
829
|
}, [
|
|
830
830
|
s,
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
Qe,
|
|
832
|
+
G,
|
|
833
833
|
Q
|
|
834
834
|
]);
|
|
835
|
-
let
|
|
835
|
+
let $ = I(() => ({
|
|
836
836
|
rows: Q,
|
|
837
|
-
expandedGroups:
|
|
838
|
-
onToggleGroup:
|
|
839
|
-
listId:
|
|
837
|
+
expandedGroups: G,
|
|
838
|
+
onToggleGroup: ke,
|
|
839
|
+
listId: ye,
|
|
840
840
|
activeConversationId: s,
|
|
841
|
-
searchQuery:
|
|
841
|
+
searchQuery: U,
|
|
842
842
|
onSelectConversation: o,
|
|
843
843
|
getActions: _,
|
|
844
844
|
onActionMenuOpen: v,
|
|
845
|
-
actionsLabel:
|
|
846
|
-
unreadIndicatorLabel:
|
|
845
|
+
actionsLabel: le,
|
|
846
|
+
unreadIndicatorLabel: ue,
|
|
847
847
|
styles: {
|
|
848
848
|
groupHeaderClassName: D?.groupHeaderClassName,
|
|
849
849
|
itemTitleClassName: D?.itemTitleClassName,
|
|
850
850
|
itemIconBadgeClassName: m?.itemIconBadgeClassName,
|
|
851
851
|
taskBadgeClassName: m?.taskBadgeClassName
|
|
852
852
|
},
|
|
853
|
-
draggingId:
|
|
854
|
-
dragOverId:
|
|
855
|
-
allowedDropGroups:
|
|
856
|
-
onDragStart: (e) =>
|
|
857
|
-
onDragEnd:
|
|
858
|
-
onDragOver:
|
|
859
|
-
onDragLeave:
|
|
860
|
-
onDrop:
|
|
853
|
+
draggingId: xe,
|
|
854
|
+
dragOverId: q,
|
|
855
|
+
allowedDropGroups: Ce,
|
|
856
|
+
onDragStart: (e) => je(e, Q),
|
|
857
|
+
onDragEnd: Me,
|
|
858
|
+
onDragOver: Ne,
|
|
859
|
+
onDragLeave: Ie,
|
|
860
|
+
onDrop: Re
|
|
861
861
|
}), [
|
|
862
862
|
Q,
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
G,
|
|
864
|
+
ke,
|
|
865
|
+
ye,
|
|
866
866
|
s,
|
|
867
|
-
|
|
867
|
+
U,
|
|
868
868
|
o,
|
|
869
869
|
_,
|
|
870
870
|
v,
|
|
871
|
-
|
|
872
|
-
|
|
871
|
+
le,
|
|
872
|
+
ue,
|
|
873
873
|
D?.groupHeaderClassName,
|
|
874
874
|
D?.itemTitleClassName,
|
|
875
875
|
m?.itemIconBadgeClassName,
|
|
876
876
|
m?.taskBadgeClassName,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
Oe,
|
|
881
|
-
ke,
|
|
882
|
-
Ae,
|
|
877
|
+
xe,
|
|
878
|
+
q,
|
|
879
|
+
Ce,
|
|
883
880
|
je,
|
|
884
|
-
Me
|
|
885
|
-
|
|
881
|
+
Me,
|
|
882
|
+
Ne,
|
|
883
|
+
Ie,
|
|
884
|
+
Re
|
|
885
|
+
]), $e = W.length === 0, et = W.length > 0 && X.length === 0;
|
|
886
886
|
return /* @__PURE__ */ B(d, {
|
|
887
887
|
isOpen: i,
|
|
888
888
|
isOverlay: g,
|
|
889
889
|
orientation: u.Left,
|
|
890
|
-
title:
|
|
890
|
+
title: N,
|
|
891
891
|
labels: {
|
|
892
|
-
ariaLabel:
|
|
893
|
-
closeLabel:
|
|
892
|
+
ariaLabel: N,
|
|
893
|
+
closeLabel: de
|
|
894
894
|
},
|
|
895
895
|
onClose: y,
|
|
896
896
|
styles: {
|
|
@@ -900,36 +900,38 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
900
900
|
},
|
|
901
901
|
typography: { fontClassName: D?.fontClassName },
|
|
902
902
|
bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
|
|
903
|
-
cssVars:
|
|
903
|
+
cssVars: Ve,
|
|
904
904
|
titleClassName: D?.fontClassName,
|
|
905
|
-
headerClassName: "h-[64px]",
|
|
905
|
+
headerClassName: a("h-[64px]", j),
|
|
906
|
+
headerActionsClassName: te,
|
|
906
907
|
className: a(i ? "w-[324px] mobile:w-full" : "w-0", h)
|
|
907
908
|
},
|
|
908
909
|
rightActions: b,
|
|
909
910
|
children: [
|
|
910
911
|
/* @__PURE__ */ z(We, {
|
|
911
|
-
label:
|
|
912
|
+
label: oe,
|
|
912
913
|
onClick: p,
|
|
913
914
|
labelClassName: D?.newChatLabelClassName,
|
|
914
|
-
colors: k
|
|
915
|
+
colors: k,
|
|
916
|
+
className: M
|
|
915
917
|
}),
|
|
916
918
|
/* @__PURE__ */ z("div", {
|
|
917
919
|
role: "search",
|
|
918
|
-
className: a("px-3 py-2",
|
|
920
|
+
className: a("px-3 py-2", ge.search),
|
|
919
921
|
children: /* @__PURE__ */ z(O, {
|
|
920
922
|
wrapperClassName: a(Z.search, A),
|
|
921
|
-
value:
|
|
922
|
-
onChange:
|
|
923
|
-
placeholder:
|
|
924
|
-
clearLabel:
|
|
925
|
-
"aria-label":
|
|
923
|
+
value: U,
|
|
924
|
+
onChange: Oe,
|
|
925
|
+
placeholder: V,
|
|
926
|
+
clearLabel: se,
|
|
927
|
+
"aria-label": V
|
|
926
928
|
})
|
|
927
929
|
}),
|
|
928
930
|
!w && /* @__PURE__ */ z(He, {
|
|
929
|
-
activeTab:
|
|
930
|
-
labels:
|
|
931
|
+
activeTab: pe,
|
|
932
|
+
labels: ce,
|
|
931
933
|
onChange: (e) => {
|
|
932
|
-
|
|
934
|
+
me(e), C?.(e);
|
|
933
935
|
},
|
|
934
936
|
tabClassName: D?.tabClassName,
|
|
935
937
|
hiddenSources: T
|
|
@@ -938,7 +940,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
938
940
|
role: "status",
|
|
939
941
|
"aria-live": "polite",
|
|
940
942
|
className: "sr-only",
|
|
941
|
-
children: t ?
|
|
943
|
+
children: t ? ae : $e ? re : et ? ie : ""
|
|
942
944
|
}),
|
|
943
945
|
/* @__PURE__ */ z("div", {
|
|
944
946
|
className: "flex-1 overflow-hidden py-1 pe-3 ps-2",
|
|
@@ -951,22 +953,22 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
951
953
|
active: !0,
|
|
952
954
|
color: Z.skeletonColor
|
|
953
955
|
}, t))
|
|
954
|
-
}) :
|
|
955
|
-
listRef:
|
|
956
|
-
id:
|
|
956
|
+
}) : $e ? /* @__PURE__ */ z(c, { label: re }) : et ? /* @__PURE__ */ z(l, { label: ie }) : /* @__PURE__ */ z(Pe, {
|
|
957
|
+
listRef: be,
|
|
958
|
+
id: ye,
|
|
957
959
|
role: "list",
|
|
958
960
|
style: { height: "100%" },
|
|
959
|
-
rowComponent:
|
|
961
|
+
rowComponent: qe,
|
|
960
962
|
rowCount: Q.length,
|
|
961
|
-
rowHeight:
|
|
962
|
-
overscanCount:
|
|
963
|
-
onResize:
|
|
964
|
-
rowProps:
|
|
963
|
+
rowHeight: Le,
|
|
964
|
+
overscanCount: _e,
|
|
965
|
+
onResize: De,
|
|
966
|
+
rowProps: $
|
|
965
967
|
})
|
|
966
968
|
})
|
|
967
969
|
]
|
|
968
970
|
});
|
|
969
|
-
}),
|
|
971
|
+
}), Qe = 8e3, Q = "flex size-7 shrink-0 items-center justify-center", $ = {
|
|
970
972
|
root: "_root_11lia_1",
|
|
971
973
|
text: "_text_11lia_5",
|
|
972
974
|
textSecondary: "_textSecondary_11lia_9",
|
|
@@ -995,31 +997,31 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
995
997
|
size: y.Small,
|
|
996
998
|
"aria-expanded": !n,
|
|
997
999
|
"aria-controls": r,
|
|
998
|
-
icon: z(n ? ue :
|
|
1000
|
+
icon: z(n ? ue : le, {
|
|
999
1001
|
size: g.SM,
|
|
1000
1002
|
className: $.textSecondary,
|
|
1001
1003
|
stroke: _,
|
|
1002
1004
|
"aria-hidden": !0
|
|
1003
1005
|
}),
|
|
1004
1006
|
onClick: s,
|
|
1005
|
-
className:
|
|
1007
|
+
className: Q
|
|
1006
1008
|
}), /* @__PURE__ */ z(S, {
|
|
1007
1009
|
"aria-label": i.closeQueueAriaLabel,
|
|
1008
1010
|
size: y.Small,
|
|
1009
|
-
icon: /* @__PURE__ */ z(
|
|
1011
|
+
icon: /* @__PURE__ */ z(he, {
|
|
1010
1012
|
size: g.SM,
|
|
1011
1013
|
className: $.textSecondary,
|
|
1012
1014
|
stroke: _,
|
|
1013
1015
|
"aria-hidden": !0
|
|
1014
1016
|
}),
|
|
1015
1017
|
onClick: c,
|
|
1016
|
-
className:
|
|
1018
|
+
className: Q
|
|
1017
1019
|
})]
|
|
1018
1020
|
})]
|
|
1019
1021
|
});
|
|
1020
1022
|
}, et = [".dial", ".zip"], tt = (e) => {
|
|
1021
1023
|
let t = e.toLowerCase();
|
|
1022
|
-
return et.some((e) => t.endsWith(e)) ?
|
|
1024
|
+
return et.some((e) => t.endsWith(e)) ? pe : t.endsWith(".json") ? me : fe;
|
|
1023
1025
|
}, nt = ({ job: t, labels: n, onCancel: r, styles: i }) => {
|
|
1024
1026
|
let o = i?.typography, s = tt(t.fileName), c = t.status === e.Canceled;
|
|
1025
1027
|
return /* @__PURE__ */ B("div", {
|
|
@@ -1045,7 +1047,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1045
1047
|
}), /* @__PURE__ */ z(S, {
|
|
1046
1048
|
"aria-label": n.cancelJobAriaLabel(t.fileName),
|
|
1047
1049
|
size: y.Small,
|
|
1048
|
-
icon: /* @__PURE__ */ z(
|
|
1050
|
+
icon: /* @__PURE__ */ z(he, {
|
|
1049
1051
|
size: g.SM,
|
|
1050
1052
|
className: $.textSecondary,
|
|
1051
1053
|
stroke: _,
|
|
@@ -1057,7 +1059,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1057
1059
|
}),
|
|
1058
1060
|
t.status === e.Success && /* @__PURE__ */ z("span", {
|
|
1059
1061
|
className: "flex size-7 shrink-0 items-center justify-center",
|
|
1060
|
-
children: /* @__PURE__ */ z(
|
|
1062
|
+
children: /* @__PURE__ */ z(H, {
|
|
1061
1063
|
size: g.SM,
|
|
1062
1064
|
stroke: _,
|
|
1063
1065
|
className: $.successIcon,
|
|
@@ -1129,7 +1131,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
1129
1131
|
}, []);
|
|
1130
1132
|
if (F(() => {
|
|
1131
1133
|
if (!x) return;
|
|
1132
|
-
let e = setTimeout(i,
|
|
1134
|
+
let e = setTimeout(i, Qe);
|
|
1133
1135
|
return () => clearTimeout(e);
|
|
1134
1136
|
}, [x, i]), n.length === 0) return null;
|
|
1135
1137
|
let T = n.filter((t) => t.status === e.Failed).length;
|
|
@@ -1260,7 +1262,7 @@ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
|
|
|
1260
1262
|
tooltipProps: { tooltip: u.renameWithAiLabel },
|
|
1261
1263
|
disabled: h || n,
|
|
1262
1264
|
onClick: M,
|
|
1263
|
-
icon: h ? /* @__PURE__ */ z(A, { size: g.MD }) : /* @__PURE__ */ z(
|
|
1265
|
+
icon: h ? /* @__PURE__ */ z(A, { size: g.MD }) : /* @__PURE__ */ z(G, {
|
|
1264
1266
|
size: g.MD,
|
|
1265
1267
|
stroke: _
|
|
1266
1268
|
})
|
|
@@ -1271,4 +1273,4 @@ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
|
|
|
1271
1273
|
});
|
|
1272
1274
|
st.displayName = "RenameConversationPopup";
|
|
1273
1275
|
//#endregion
|
|
1274
|
-
export {
|
|
1276
|
+
export { ge as CONVERSATION_PANEL_CLASS, Ze as ConversationPanel, ot as ImportExportQueue, st as RenameConversationPopup, tt as getTransferFileIcon };
|
package/models/panel-props.d.ts
CHANGED
|
@@ -106,6 +106,22 @@ export interface ConversationPanelStyles {
|
|
|
106
106
|
itemIconBadgeClassName?: string;
|
|
107
107
|
/** Typography class applied to the task pill badge in each conversation row. Defaults to `'dial-caption-lead-semi-text'`. Colors come from the module stylesheet. */
|
|
108
108
|
taskBadgeClassName?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Extra class name(s) merged onto the panel's header bar. The header is
|
|
111
|
+
* `h-[64px]` by default; a `h-*` utility passed here replaces that height
|
|
112
|
+
* rather than losing to it, so a host does not need `!important` on
|
|
113
|
+
* `.dial-sb-header`.
|
|
114
|
+
*/
|
|
115
|
+
headerClassName?: string;
|
|
116
|
+
/** Extra class name(s) merged onto the header's trailing action cluster — `headerActions` and the panel toggle. */
|
|
117
|
+
headerActionsClassName?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Extra class name(s) merged onto the New chat button. Its `h-[36px]` height
|
|
120
|
+
* and `shadow-chat-button` elevation are merged, not fixed, so a `h-*` or
|
|
121
|
+
* `shadow-*` utility passed here replaces them. The corner radius is themed
|
|
122
|
+
* separately, through the kit's `--radius-control`.
|
|
123
|
+
*/
|
|
124
|
+
newChatButtonClassName?: string;
|
|
109
125
|
/**
|
|
110
126
|
* Extra CSS class merged onto the search field's wrapper. The wrapper's
|
|
111
127
|
* corner radius is themed with the `--cp-search-radius` custom property, so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-props.d.ts","sourceRoot":"","sources":["../../src/models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ACjD,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IAChD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;CAC7B;AAED,0EAA0E;AAC1E,MAAM,WAAW,gBAAgB;IAC/B,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,cAAc,EAAE,SAAS,CAAC;IAC1B,kEAAkE;IAClE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-conversation-panel",
|
|
3
3
|
"description": "Virtualized sidebar panel for browsing conversation history with grouping, tabs, and search",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.93",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"react-window": "^2.2.7",
|
|
21
21
|
"@tabler/icons-react": "^3.44.0",
|
|
22
|
-
"@epam/ai-dial-sidebar": "1.2.0-dev.
|
|
22
|
+
"@epam/ai-dial-sidebar": "1.2.0-dev.93"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^19.2.8",
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.93",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.15.0-dev.12"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|