@epam/ai-dial-conversation-panel 1.1.0-dev.127 → 1.1.0-dev.129
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 +24 -24
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeploymentIcon as e, buildCssVars as t, mergeClasses as n } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { PanelEmpty as r, PanelNoResults as i, SearchInput as a, SidebarOrientation as o, SidebarPanel as s } from "@epam/ai-dial-sidebar";
|
|
3
|
-
import { Button as c, DIAL_ICON_SIZE as l,
|
|
3
|
+
import { Button as c, DIAL_ICON_SIZE as l, DialEllipsisTooltip as u, DialTag as d, Dropdown as f, ElementSize as p, GhostIconButton as m, Highlight as h, Skeleton as g, SkeletonVariant as _, mergeClasses as v } from "@epam/ai-dial-ui-kit";
|
|
4
4
|
import { createElement as y, memo as b, useCallback as x, useEffect as S, useId as C, useImperativeHandle as w, useLayoutEffect as T, useMemo as E, useRef as D, useState as O } from "react";
|
|
5
5
|
import { Fragment as ee, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
6
6
|
import { IconCaretDownFilled as j, IconCaretRightFilled as M, IconClock as N, IconDotsVertical as te, IconPlus as ne } from "@tabler/icons-react";
|
|
@@ -501,7 +501,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
501
501
|
role: "tab",
|
|
502
502
|
"aria-selected": t,
|
|
503
503
|
className: "contents",
|
|
504
|
-
children: /* @__PURE__ */ k(
|
|
504
|
+
children: /* @__PURE__ */ k(d, {
|
|
505
505
|
label: e.label,
|
|
506
506
|
selected: t,
|
|
507
507
|
onClick: () => i(e.id),
|
|
@@ -568,7 +568,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
568
568
|
triggerActive: "_triggerActive_1qyc3_27",
|
|
569
569
|
triggerIcon: "_triggerIcon_1qyc3_30",
|
|
570
570
|
unreadDot: "_unreadDot_1qyc3_38"
|
|
571
|
-
}, Se = ({ label: e, isExpanded: t, onToggle: r, listId: i, className: a = "dial-tiny-
|
|
571
|
+
}, Se = ({ label: e, isExpanded: t, onToggle: r, listId: i, className: a = "dial-tiny-lead-text", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: l, onDrop: d }) => {
|
|
572
572
|
let f = o != null;
|
|
573
573
|
return /* @__PURE__ */ A("button", {
|
|
574
574
|
type: "button",
|
|
@@ -582,7 +582,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
582
582
|
f && (e.currentTarget.contains(e.relatedTarget) || l?.());
|
|
583
583
|
} : void 0,
|
|
584
584
|
onDrop: f ? (e) => {
|
|
585
|
-
f && (e.preventDefault(),
|
|
585
|
+
f && (e.preventDefault(), d?.(o, o, null));
|
|
586
586
|
} : void 0,
|
|
587
587
|
className: n("flex h-6 w-full items-center gap-1 rounded py-1 pe-3 text-start", a, Z.groupHeader, s && Z.dropZoneActive),
|
|
588
588
|
children: [t ? /* @__PURE__ */ k(j, {
|
|
@@ -595,13 +595,13 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
595
595
|
size: 12,
|
|
596
596
|
className: "shrink-0 rtl:scale-x-[-1]",
|
|
597
597
|
"aria-hidden": !0
|
|
598
|
-
}), /* @__PURE__ */ k(
|
|
598
|
+
}), /* @__PURE__ */ k(u, { text: e })]
|
|
599
599
|
});
|
|
600
|
-
}, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: s, actionsLabel:
|
|
600
|
+
}, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: s, actionsLabel: u = "More actions", itemTitleClassName: d = "dial-small-text", itemIconBadgeClassName: v, taskBadgeClassName: y = "dial-caption-semi-text uppercase tracking-[0.6px]", unreadIndicatorLabel: b = "Unread", rowGroupKey: S, rows: C, draggingId: w, dragOverId: T, allowedDropGroups: E, onDragStart: j, onDragEnd: M, onDragOver: ne, onDragLeave: P, onDrop: F }) => {
|
|
601
601
|
let [I, re] = O(!1), L = D(null), ie = x((e) => {
|
|
602
602
|
re(e), e && L.current && s?.(t, L.current);
|
|
603
|
-
}, [t, s]), R = o?.(t) ?? [], z = R.length > 0, B = t.isIconLoading ? /* @__PURE__ */ k(
|
|
604
|
-
variant:
|
|
603
|
+
}, [t, s]), R = o?.(t) ?? [], z = R.length > 0, B = t.isIconLoading ? /* @__PURE__ */ k(g, {
|
|
604
|
+
variant: _.Circular,
|
|
605
605
|
width: l.LG,
|
|
606
606
|
height: l.LG,
|
|
607
607
|
color: Z.skeletonColor,
|
|
@@ -661,10 +661,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
661
661
|
},
|
|
662
662
|
children: /* @__PURE__ */ k(c, {
|
|
663
663
|
iconBefore: ae,
|
|
664
|
-
label: /* @__PURE__ */ k(
|
|
664
|
+
label: /* @__PURE__ */ k(h, {
|
|
665
665
|
text: t.title,
|
|
666
666
|
query: a,
|
|
667
|
-
className:
|
|
667
|
+
className: d,
|
|
668
668
|
maxLines: 1
|
|
669
669
|
}),
|
|
670
670
|
iconAfter: H,
|
|
@@ -676,20 +676,20 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
676
676
|
})
|
|
677
677
|
}), z && /* @__PURE__ */ k("div", {
|
|
678
678
|
className: n("absolute inset-y-0 end-1 flex items-center", I ? "opacity-100" : "opacity-0 group-focus-within/conversation:opacity-100 group-hover/conversation:opacity-100"),
|
|
679
|
-
children: /* @__PURE__ */ k(
|
|
679
|
+
children: /* @__PURE__ */ k(f, {
|
|
680
680
|
items: R,
|
|
681
681
|
onOpenChange: ie,
|
|
682
682
|
matchReferenceWidth: !1,
|
|
683
|
-
listClassName: "w-[140px]
|
|
684
|
-
children: /* @__PURE__ */ k(
|
|
683
|
+
listClassName: "w-[140px]",
|
|
684
|
+
children: /* @__PURE__ */ k(m, {
|
|
685
685
|
ref: L,
|
|
686
686
|
icon: /* @__PURE__ */ k(te, {
|
|
687
687
|
size: l.SM,
|
|
688
688
|
className: Z.triggerIcon,
|
|
689
689
|
"aria-hidden": !0
|
|
690
690
|
}),
|
|
691
|
-
size:
|
|
692
|
-
"aria-label":
|
|
691
|
+
size: p.Small,
|
|
692
|
+
"aria-label": u,
|
|
693
693
|
className: n(I && Z.triggerActive)
|
|
694
694
|
})
|
|
695
695
|
})
|
|
@@ -750,8 +750,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
750
750
|
X.MyChats,
|
|
751
751
|
X.Shared,
|
|
752
752
|
X.Organization
|
|
753
|
-
]), Oe = b(({ conversations: e, isLoading: c, isOpen: l, onSelectConversation: u, activeConversationId: d, labels:
|
|
754
|
-
let { colors: j, typography: M, newChatButton: N } =
|
|
753
|
+
]), Oe = b(({ conversations: e, isLoading: c, isOpen: l, onSelectConversation: u, activeConversationId: d, labels: f, onNewChat: p, styles: m, className: h, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: w, activeFilter: T, onActiveFilterChange: ee }) => {
|
|
754
|
+
let { colors: j, typography: M, newChatButton: N } = m ?? {}, { title: te, emptyLabel: ne, noResultsLabel: P, loadingLabel: F = "Loading conversations", newChatLabel: I, searchPlaceholder: re, searchClearLabel: L, filterLabels: ie, groupLabels: R, actionsLabel: z, unreadIndicatorLabel: B, closeAriaLabel: ae } = f, [V, H] = O(""), [U, W] = O(X.All);
|
|
755
755
|
S(() => {
|
|
756
756
|
T != null && W(T);
|
|
757
757
|
}, [T]);
|
|
@@ -870,8 +870,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
870
870
|
styles: {
|
|
871
871
|
groupHeaderClassName: M?.groupHeaderClassName,
|
|
872
872
|
itemTitleClassName: M?.itemTitleClassName,
|
|
873
|
-
itemIconBadgeClassName:
|
|
874
|
-
taskBadgeClassName:
|
|
873
|
+
itemIconBadgeClassName: m?.itemIconBadgeClassName,
|
|
874
|
+
taskBadgeClassName: m?.taskBadgeClassName
|
|
875
875
|
},
|
|
876
876
|
draggingId: fe,
|
|
877
877
|
dragOverId: ge,
|
|
@@ -895,8 +895,8 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
895
895
|
B,
|
|
896
896
|
M?.groupHeaderClassName,
|
|
897
897
|
M?.itemTitleClassName,
|
|
898
|
-
|
|
899
|
-
|
|
898
|
+
m?.itemIconBadgeClassName,
|
|
899
|
+
m?.taskBadgeClassName,
|
|
900
900
|
fe,
|
|
901
901
|
ge,
|
|
902
902
|
ve,
|
|
@@ -925,13 +925,13 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
925
925
|
cssVars: Ie,
|
|
926
926
|
titleClassName: M?.fontClassName,
|
|
927
927
|
headerClassName: "h-[64px]",
|
|
928
|
-
className: n(l ? "w-[324px] mobile:w-full" : "w-0",
|
|
928
|
+
className: n(l ? "w-[324px] mobile:w-full" : "w-0", h)
|
|
929
929
|
},
|
|
930
930
|
rightActions: b,
|
|
931
931
|
children: [
|
|
932
932
|
/* @__PURE__ */ k(xe, {
|
|
933
933
|
label: I,
|
|
934
|
-
onClick:
|
|
934
|
+
onClick: p,
|
|
935
935
|
labelClassName: M?.newChatLabelClassName,
|
|
936
936
|
colors: N
|
|
937
937
|
}),
|
|
@@ -961,7 +961,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
961
961
|
className: "flex-1 overflow-hidden px-2 py-1",
|
|
962
962
|
children: c ? /* @__PURE__ */ k("div", {
|
|
963
963
|
className: "flex flex-col gap-3 px-2 py-3",
|
|
964
|
-
children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ k(
|
|
964
|
+
children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ k(g, {
|
|
965
965
|
avatar: { size: 24 },
|
|
966
966
|
showTitle: { width: le(t) },
|
|
967
967
|
paragraph: !1,
|
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.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.129",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"react-window": "^2.2.7",
|
|
21
|
-
"@epam/ai-dial-kit": "1.1.0-dev.
|
|
21
|
+
"@epam/ai-dial-kit": "1.1.0-dev.129",
|
|
22
22
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^19.0.0",
|
|
26
26
|
"@tabler/icons-react": "^3.0.0",
|
|
27
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
28
|
-
"@epam/ai-dial-sidebar": "1.1.0-dev.
|
|
27
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.129",
|
|
28
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.129"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|