@epam/ai-dial-conversation-panel 1.1.0-dev.240 → 1.1.0-dev.244

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.
Files changed (2) hide show
  1. package/index.js +10 -10
  2. 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, SidebarOrientation as a, SidebarPanel as o } from "@epam/ai-dial-sidebar";
3
- import { Button as s, DIAL_ICON_SIZE as c, DialEllipsisTooltip as l, Dropdown as u, ElementSize as d, GhostIconButton as f, Highlight as p, Search as m, Skeleton as h, SkeletonVariant as g, Tag as _, mergeClasses as v } from "@epam/ai-dial-ui-kit";
3
+ import { Button as s, DIAL_ICON_SIZE as c, Dropdown as l, ElementSize as u, EllipsisTooltip as d, GhostIconButton as f, Highlight as p, Search as m, Skeleton as h, SkeletonVariant as g, Tag 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 P, IconPlus as te } from "@tabler/icons-react";
@@ -576,7 +576,7 @@ var Y = /* @__PURE__ */ function(e) {
576
576
  triggerActive: "_triggerActive_1qyc3_27",
577
577
  triggerIcon: "_triggerIcon_1qyc3_30",
578
578
  unreadDot: "_unreadDot_1qyc3_38"
579
- }, Se = ({ label: e, isExpanded: t, onToggle: r, listId: i, className: a = "dial-tiny-lead-text", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: u, onDrop: d }) => {
579
+ }, Se = ({ label: e, isExpanded: t, onToggle: r, listId: i, className: a = "dial-tiny-lead-text", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: l, onDrop: u }) => {
580
580
  let f = o != null;
581
581
  return /* @__PURE__ */ A("button", {
582
582
  type: "button",
@@ -587,10 +587,10 @@ var Y = /* @__PURE__ */ function(e) {
587
587
  f && (e.preventDefault(), c?.(o));
588
588
  } : void 0,
589
589
  onDragLeave: f ? (e) => {
590
- f && (e.currentTarget.contains(e.relatedTarget) || u?.());
590
+ f && (e.currentTarget.contains(e.relatedTarget) || l?.());
591
591
  } : void 0,
592
592
  onDrop: f ? (e) => {
593
- f && (e.preventDefault(), d?.(o, o, null));
593
+ f && (e.preventDefault(), u?.(o, o, null));
594
594
  } : void 0,
595
595
  className: n("flex h-6 w-full items-center gap-1 rounded py-1 pe-3 text-start", a, Z.groupHeader, s && Z.dropZoneActive),
596
596
  children: [t ? /* @__PURE__ */ k(j, {
@@ -603,12 +603,12 @@ var Y = /* @__PURE__ */ function(e) {
603
603
  size: 12,
604
604
  className: "shrink-0 rtl:scale-x-[-1]",
605
605
  "aria-hidden": !0
606
- }), /* @__PURE__ */ k(l, { text: e })]
606
+ }), /* @__PURE__ */ k(d, { text: e })]
607
607
  });
608
- }, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: l, actionsLabel: m = "More actions", itemTitleClassName: _ = "dial-small-text", itemIconBadgeClassName: v, taskBadgeClassName: y = "dial-caption-lead-semi-text", unreadIndicatorLabel: b = "Unread", rowGroupKey: S, rows: C, draggingId: w, dragOverId: T, allowedDropGroups: E, onDragStart: j, onDragEnd: M, onDragOver: te, onDragLeave: F, onDrop: I }) => {
608
+ }, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: d, actionsLabel: m = "More actions", itemTitleClassName: _ = "dial-small-text", itemIconBadgeClassName: v, taskBadgeClassName: y = "dial-caption-lead-semi-text", unreadIndicatorLabel: b = "Unread", rowGroupKey: S, rows: C, draggingId: w, dragOverId: T, allowedDropGroups: E, onDragStart: j, onDragEnd: M, onDragOver: te, onDragLeave: F, onDrop: I }) => {
609
609
  let [L, ne] = O(!1), R = D(null), re = x((e) => {
610
- ne(e), e && R.current && l?.(t, R.current);
611
- }, [t, l]), z = o?.(t) ?? [], B = z.length > 0, V = t.isIconLoading ? /* @__PURE__ */ k(h, {
610
+ ne(e), e && R.current && d?.(t, R.current);
611
+ }, [t, d]), z = o?.(t) ?? [], B = z.length > 0, V = t.isIconLoading ? /* @__PURE__ */ k(h, {
612
612
  variant: g.Circular,
613
613
  width: c.LG,
614
614
  height: c.LG,
@@ -684,7 +684,7 @@ var Y = /* @__PURE__ */ function(e) {
684
684
  })
685
685
  }), B && /* @__PURE__ */ k("div", {
686
686
  className: n("absolute inset-y-0 end-1 flex items-center", L ? "opacity-100" : "opacity-0 group-focus-within/conversation:opacity-100 group-hover/conversation:opacity-100"),
687
- children: /* @__PURE__ */ k(u, {
687
+ children: /* @__PURE__ */ k(l, {
688
688
  items: z,
689
689
  onOpenChange: re,
690
690
  matchReferenceWidth: !1,
@@ -696,7 +696,7 @@ var Y = /* @__PURE__ */ function(e) {
696
696
  className: Z.triggerIcon,
697
697
  "aria-hidden": !0
698
698
  }),
699
- size: d.Small,
699
+ size: u.Small,
700
700
  "aria-label": m,
701
701
  className: n(L && Z.triggerActive)
702
702
  })
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.240",
4
+ "version": "1.1.0-dev.244",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "react-window": "^2.2.7",
21
- "@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
21
+ "@epam/ai-dial-ui-kit": "^0.14.0-dev.4"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^19.0.0",
25
25
  "@tabler/icons-react": "^3.0.0",
26
- "@epam/ai-dial-chat-shared": "1.1.0-dev.240",
27
- "@epam/ai-dial-sidebar": "1.1.0-dev.240"
26
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.244",
27
+ "@epam/ai-dial-sidebar": "1.1.0-dev.244"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",