@epam/ai-dial-conversation-panel 1.1.0-dev.111 → 1.1.0-dev.112
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/ConversationRow/ConversationRow.d.ts +2 -0
- package/components/ConversationRow/ConversationRow.d.ts.map +1 -1
- package/components/RowRenderer/RowRenderer.d.ts +1 -1
- package/components/RowRenderer/RowRenderer.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +278 -261
- package/models/panel-props.d.ts +6 -0
- package/models/panel-props.d.ts.map +1 -1
- package/models/virtual-row.d.ts +2 -0
- package/models/virtual-row.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationPanel/ConversationPanel.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AA6BlE,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":"AASA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AA6BlE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA6ZxD,CAAC"}
|
|
@@ -25,6 +25,8 @@ export interface ConversationRowProps {
|
|
|
25
25
|
itemIconBadgeClassName?: string;
|
|
26
26
|
/** CSS class applied to the task pill badge (background, border, text color, and typography). Defaults to `'border-tertiary bg-layer-base text-secondary dial-caption-semi-text tracking-[0.6px]'`. */
|
|
27
27
|
taskBadgeClassName?: string;
|
|
28
|
+
/** Accessible (visually hidden) label announced for the unread indicator dot. Defaults to `"Unread"`. */
|
|
29
|
+
unreadIndicatorLabel?: string;
|
|
28
30
|
/** Group this row belongs to — required to enable drag-and-drop. */
|
|
29
31
|
rowGroupKey?: FilterTab;
|
|
30
32
|
/** The full virtual rows array — used to compute drop position. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationRow.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationRow/ConversationRow.tsx"],"names":[],"mappings":"AACA,OAAO,EASL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAiD,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKpE,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,IAAI,EAAE,gBAAgB,CAAC;IACvB,qDAAqD;IACrD,QAAQ,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,YAAY,EAAE,CAAC;IACxD,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,CACjB,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,iBAAiB,KACvB,IAAI,CAAC;IACV,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yEAAyE;IACzE,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uMAAuM;IACvM,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mEAAmE;IACnE,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;IACpB,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,8FAA8F;IAC9F,iBAAiB,CAAC,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IAC1C,qDAAqD;IACrD,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,mDAAmD;IACnD,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gDAAgD;IAChD,MAAM,CAAC,EAAE,CACP,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,SAAS,EACzB,OAAO,EAAE,MAAM,GAAG,IAAI,KACnB,IAAI,CAAC;CACX;AAED,8GAA8G;AAC9G,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ConversationRow.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationRow/ConversationRow.tsx"],"names":[],"mappings":"AACA,OAAO,EASL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAiD,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MA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AAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,gDAAgD;IAChD,MAAM,CAAC,EAAE,CACP,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,SAAS,EACzB,OAAO,EAAE,MAAM,GAAG,IAAI,KACnB,IAAI,CAAC;CACX;AAED,8GAA8G;AAC9G,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAsNpD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RowComponentProps } from 'react-window';
|
|
2
2
|
import { RowRendererData } from '../../models/virtual-row';
|
|
3
3
|
/** Renders a single virtual row — either a collapsible group header or a conversation item. */
|
|
4
|
-
export declare const RowRenderer: ({ index, style, rows, expandedGroups, onToggleGroup, listId, activeConversationId, searchQuery, onSelectConversation, getActions, onActionMenuOpen, actionsLabel, styles, draggingId, dragOverId, allowedDropGroups, onDragStart, onDragEnd, onDragOver, onDragLeave, onDrop, }: RowComponentProps<RowRendererData>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const RowRenderer: ({ index, style, rows, expandedGroups, onToggleGroup, listId, activeConversationId, searchQuery, onSelectConversation, getActions, onActionMenuOpen, actionsLabel, unreadIndicatorLabel, styles, draggingId, dragOverId, allowedDropGroups, onDragStart, onDragEnd, onDragOver, onDragLeave, onDrop, }: RowComponentProps<RowRendererData>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=RowRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/RowRenderer/RowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAKhF,+FAA+F;AAC/F,eAAO,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"RowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/RowRenderer/RowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,0BAA0B,CAAC;AAKhF,+FAA+F;AAC/F,eAAO,MAAM,WAAW,GAAI,uSAuBzB,iBAAiB,CAAC,eAAe,CAAC,4CAsDpC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
._tabContainer_153ct_1{background-color:#0000;color:var(--text-tertiary,#c7cbd4)!important;border-color:#0000!important}._tabContainer_153ct_1:hover{background-color:#5c8dea0f;color:var(--text-secondary,#6b7280)!important}._tabContainer_153ct_1>span{text-align:center}._tabContainer_153ct_1._tabActive_153ct_13{background-color:#2764d912;color:var(--text-secondary,#6b7280)!important}._tabContainer_153ct_1._tabActive_153ct_13:hover{background-color:#5c8dea0f}.dial-input:not(.dial-input-error){transition:border-color .15s,box-shadow .15s;border-color:var(--stroke-tertiary,#e0e6f0)!important;border-radius:.75rem!important}.dial-input:not(.dial-input-error):not(:disabled):hover{border-color:var(--stroke-info,#124ace)!important}.dial-input:not(.dial-input-error):not(:disabled):active,.dial-input:not(.dial-input-error):not(:disabled):focus,.dial-input:not(.dial-input-error):not(:disabled):focus-within{border-color:var(--stroke-info,#124ace)!important;box-shadow:0 0 0 4px var(--bg-accent-primary-alpha,#7da4ff2e)!important}.dial-input-error{border-radius:.75rem!important}._button_1g5dd_1{background:var(--cp-new-chat-bg,var(--bg-control-neutral,#fcfcfc));color:var(--cp-new-chat-text,var(--text-accent,#1d4ed8))}.
|
|
1
|
+
._tabContainer_153ct_1{background-color:#0000;color:var(--text-tertiary,#c7cbd4)!important;border-color:#0000!important}._tabContainer_153ct_1:hover{background-color:#5c8dea0f;color:var(--text-secondary,#6b7280)!important}._tabContainer_153ct_1>span{text-align:center}._tabContainer_153ct_1._tabActive_153ct_13{background-color:#2764d912;color:var(--text-secondary,#6b7280)!important}._tabContainer_153ct_1._tabActive_153ct_13:hover{background-color:#5c8dea0f}.dial-input:not(.dial-input-error){transition:border-color .15s,box-shadow .15s;border-color:var(--stroke-tertiary,#e0e6f0)!important;border-radius:.75rem!important}.dial-input:not(.dial-input-error):not(:disabled):hover{border-color:var(--stroke-info,#124ace)!important}.dial-input:not(.dial-input-error):not(:disabled):active,.dial-input:not(.dial-input-error):not(:disabled):focus,.dial-input:not(.dial-input-error):not(:disabled):focus-within{border-color:var(--stroke-info,#124ace)!important;box-shadow:0 0 0 4px var(--bg-accent-primary-alpha,#7da4ff2e)!important}.dial-input-error{border-radius:.75rem!important}._button_1g5dd_1{background:var(--cp-new-chat-bg,var(--bg-control-neutral,#fcfcfc));color:var(--cp-new-chat-text,var(--text-accent,#1d4ed8))}._header_lsrg9_1,._item_lsrg9_5{color:var(--cp-text,var(--text-primary,#161b2d))}._item_lsrg9_5:hover{background:var(--cp-item-hover,var(--bg-layer-sunken,#eef1f7))}._item_lsrg9_5._itemActive_lsrg9_11{background:var(--cp-item-active,var(--bg-layer-sunken,#eef1f7));color:var(--cp-text,var(--text-primary,#161b2d))}._groupHeader_lsrg9_16{color:var(--cp-text-secondary,var(--text-tertiary,#c7cbd4))}._dropZoneActive_lsrg9_20{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow,0 0 #0000);--tw-ring-inset:inset;--tw-ring-color:var(--cp-drop-zone-ring,var(--stroke-info,#124ace))}._triggerActive_lsrg9_25{background:var(--cp-trigger-bg,var(--bg-control-accent-alpha-active,#2764d933))}._triggerActive_lsrg9_25 ._triggerIcon_lsrg9_28{color:var(--cp-trigger-icon,var(--text-accent,#1d4ed8))}._triggerIcon_lsrg9_28{color:var(--cp-trigger-icon-idle,var(--text-secondary,#6b7280))}._unreadDot_lsrg9_36{background:var(--cp-unread-dot,var(--text-accent,#1d4ed8))}
|
|
2
2
|
/*$vite$:1*/
|
package/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import { DeploymentIcon as e, buildCssVars as t, mergeClasses as n } from "@epam
|
|
|
2
2
|
import { PanelEmpty as r, PanelNoResults as i, SearchInput as a, SidebarOrientation as o, SidebarPanel as s } from "@epam/ai-dial-sidebar";
|
|
3
3
|
import { Button as c, DIAL_ICON_SIZE as l, DialDropdown as u, DialEllipsisTooltip as d, DialSkeleton as f, DialSkeletonVariant as p, DialTag as m, ElementSize as h, GhostIconButton as g, Highlight 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
|
-
import {
|
|
6
|
-
import { IconCaretDownFilled as
|
|
5
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
6
|
+
import { IconCaretDownFilled as M, IconCaretRightFilled as N, IconClock as P, IconDotsVertical as ee, IconPlus as te } from "@tabler/icons-react";
|
|
7
7
|
//#region ../../node_modules/react-window/dist/react-window.js
|
|
8
|
-
var
|
|
9
|
-
function
|
|
8
|
+
var F = typeof window < "u" ? T : S;
|
|
9
|
+
function I(e) {
|
|
10
10
|
if (e !== void 0) switch (typeof e) {
|
|
11
11
|
case "number": return e;
|
|
12
12
|
case "string":
|
|
@@ -14,15 +14,15 @@ function L(e) {
|
|
|
14
14
|
break;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function L({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i, mode: a, style: o }) {
|
|
18
18
|
let { styleHeight: s, styleWidth: c } = E(() => ({
|
|
19
|
-
styleHeight:
|
|
20
|
-
styleWidth:
|
|
19
|
+
styleHeight: I(o?.height),
|
|
20
|
+
styleWidth: I(o?.width)
|
|
21
21
|
}), [o?.height, o?.width]), [l, u] = O({
|
|
22
22
|
height: t,
|
|
23
23
|
width: n
|
|
24
24
|
}), d = r || a === "only-height" && s !== void 0 || a === "only-width" && c !== void 0 || s !== void 0 && c !== void 0;
|
|
25
|
-
return
|
|
25
|
+
return F(() => {
|
|
26
26
|
if (i === null || d) return;
|
|
27
27
|
let t = new ResizeObserver((e) => {
|
|
28
28
|
for (let t of e) {
|
|
@@ -51,26 +51,26 @@ function ee({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i
|
|
|
51
51
|
c
|
|
52
52
|
]);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ne(e) {
|
|
55
55
|
let t = D(() => {
|
|
56
56
|
throw Error("Cannot call during render.");
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return F(() => {
|
|
59
59
|
t.current = e;
|
|
60
60
|
}, [e]), x((e) => t.current?.(e), [t]);
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
if (
|
|
62
|
+
var R = null;
|
|
63
|
+
function re(e = !1) {
|
|
64
|
+
if (R === null || e) {
|
|
65
65
|
let e = document.createElement("div"), t = e.style;
|
|
66
66
|
t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
|
|
67
67
|
let n = document.createElement("div"), r = n.style;
|
|
68
|
-
return r.width = "100px", r.height = "100px", e.appendChild(n), document.body.appendChild(e), e.scrollLeft > 0 ?
|
|
68
|
+
return r.width = "100px", r.height = "100px", e.appendChild(n), document.body.appendChild(e), e.scrollLeft > 0 ? R = "positive-descending" : (e.scrollLeft = 1, R = e.scrollLeft === 0 ? "negative" : "positive-ascending"), document.body.removeChild(e), R;
|
|
69
69
|
}
|
|
70
|
-
return
|
|
70
|
+
return R;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
if (t === "horizontal" && n) switch (
|
|
72
|
+
function z({ containerElement: e, direction: t, isRtl: n, scrollOffset: r }) {
|
|
73
|
+
if (t === "horizontal" && n) switch (re()) {
|
|
74
74
|
case "negative": return -r;
|
|
75
75
|
case "positive-descending":
|
|
76
76
|
if (e) {
|
|
@@ -81,26 +81,26 @@ function B({ containerElement: e, direction: t, isRtl: n, scrollOffset: r }) {
|
|
|
81
81
|
}
|
|
82
82
|
return r;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function B(e, t = "Assertion error") {
|
|
85
85
|
if (!e) throw console.error(t), Error(t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function V(e, t) {
|
|
88
88
|
if (e === t) return !0;
|
|
89
|
-
if (!!e != !!t || (
|
|
89
|
+
if (!!e != !!t || (B(e !== void 0), B(t !== void 0), Object.keys(e).length !== Object.keys(t).length)) return !1;
|
|
90
90
|
for (let n in e) if (!Object.is(t[n], e[n])) return !1;
|
|
91
91
|
return !0;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ie({ cachedBounds: e, itemCount: t, itemSize: n }) {
|
|
94
94
|
if (t === 0) return 0;
|
|
95
95
|
if (typeof n == "number") return t * n;
|
|
96
96
|
{
|
|
97
97
|
let n = e.get(e.size === 0 ? 0 : e.size - 1);
|
|
98
|
-
return
|
|
98
|
+
return B(n !== void 0, "Unexpected bounds cache miss"), t * ((n.scrollOffset + n.size) / e.size);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function H({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, containerScrollOffset: a, containerSize: o }) {
|
|
102
102
|
if (n < 0 || n >= r) throw RangeError(`Invalid index specified: ${n}`, { cause: `Index ${n} is not within the range of 0 - ${r - 1}` });
|
|
103
|
-
let s =
|
|
103
|
+
let s = ie({
|
|
104
104
|
cachedBounds: t,
|
|
105
105
|
itemCount: r,
|
|
106
106
|
itemSize: i
|
|
@@ -112,7 +112,7 @@ function U({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, con
|
|
|
112
112
|
default: return a >= u && a <= l ? a : a < u ? u : l;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function U({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemCount: r, overscanCount: i }) {
|
|
116
116
|
let a = r - 1, o = 0, s = -1, c = 0, l = -1, u = 0;
|
|
117
117
|
for (; u < a;) {
|
|
118
118
|
let n = e.get(u);
|
|
@@ -131,11 +131,11 @@ function W({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemCo
|
|
|
131
131
|
stopIndexOverscan: l
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function W({ itemCount: e, itemProps: t, itemSize: n }) {
|
|
135
135
|
let r = /* @__PURE__ */ new Map();
|
|
136
136
|
return {
|
|
137
137
|
get(i) {
|
|
138
|
-
for (
|
|
138
|
+
for (B(i < e, `Invalid index ${i}`); r.size - 1 < i;) {
|
|
139
139
|
let e = r.size, a;
|
|
140
140
|
switch (typeof n) {
|
|
141
141
|
case "function":
|
|
@@ -151,14 +151,14 @@ function G({ itemCount: e, itemProps: t, itemSize: n }) {
|
|
|
151
151
|
});
|
|
152
152
|
else {
|
|
153
153
|
let t = r.get(e - 1);
|
|
154
|
-
|
|
154
|
+
B(t !== void 0, `Unexpected bounds cache miss for index ${i}`), r.set(e, {
|
|
155
155
|
scrollOffset: t.scrollOffset + t.size,
|
|
156
156
|
size: a
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
let a = r.get(i);
|
|
161
|
-
return
|
|
161
|
+
return B(a !== void 0, `Unexpected bounds cache miss for index ${i}`), a;
|
|
162
162
|
},
|
|
163
163
|
set(e, t) {
|
|
164
164
|
r.set(e, t);
|
|
@@ -168,8 +168,8 @@ function G({ itemCount: e, itemProps: t, itemSize: n }) {
|
|
|
168
168
|
}
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return E(() =>
|
|
171
|
+
function G({ itemCount: e, itemProps: t, itemSize: n }) {
|
|
172
|
+
return E(() => W({
|
|
173
173
|
itemCount: e,
|
|
174
174
|
itemProps: t,
|
|
175
175
|
itemSize: n
|
|
@@ -179,11 +179,11 @@ function K({ itemCount: e, itemProps: t, itemSize: n }) {
|
|
|
179
179
|
n
|
|
180
180
|
]);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function K({ containerSize: e, itemSize: t }) {
|
|
183
183
|
let n;
|
|
184
184
|
switch (typeof t) {
|
|
185
185
|
case "string":
|
|
186
|
-
|
|
186
|
+
B(t.endsWith("%"), `Invalid item size: "${t}"; string values must be percentages (e.g. "100%")`), B(e !== void 0, "Container size must be defined if a percentage item size is specified"), n = e * parseInt(t) / 100;
|
|
187
187
|
break;
|
|
188
188
|
default:
|
|
189
189
|
n = t;
|
|
@@ -191,8 +191,8 @@ function q({ containerSize: e, itemSize: t }) {
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
let { height: u = n, width: d = n } =
|
|
194
|
+
function ae({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0, direction: r, isRtl: i = !1, itemCount: a, itemProps: o, itemSize: s, onResize: c, overscanCount: l }) {
|
|
195
|
+
let { height: u = n, width: d = n } = L({
|
|
196
196
|
defaultHeight: r === "vertical" ? n : void 0,
|
|
197
197
|
defaultWidth: r === "horizontal" ? n : void 0,
|
|
198
198
|
element: e,
|
|
@@ -201,7 +201,7 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
201
201
|
}), f = D({
|
|
202
202
|
height: 0,
|
|
203
203
|
width: 0
|
|
204
|
-
}), p = r === "vertical" ? u : d, m =
|
|
204
|
+
}), p = r === "vertical" ? u : d, m = K({
|
|
205
205
|
containerSize: p,
|
|
206
206
|
itemSize: s
|
|
207
207
|
});
|
|
@@ -218,11 +218,11 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
218
218
|
c,
|
|
219
219
|
d
|
|
220
220
|
]);
|
|
221
|
-
let h =
|
|
221
|
+
let h = G({
|
|
222
222
|
itemCount: a,
|
|
223
223
|
itemProps: o,
|
|
224
224
|
itemSize: m
|
|
225
|
-
}), g = x((e) => h.get(e), [h]), [_, v] = O(() =>
|
|
225
|
+
}), g = x((e) => h.get(e), [h]), [_, v] = O(() => U({
|
|
226
226
|
cachedBounds: h,
|
|
227
227
|
containerScrollOffset: 0,
|
|
228
228
|
containerSize: p,
|
|
@@ -233,7 +233,7 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
233
233
|
startIndexOverscan: Math.min(a - 1, _.startIndexOverscan),
|
|
234
234
|
stopIndexVisible: Math.min(a - 1, _.stopIndexVisible),
|
|
235
235
|
stopIndexOverscan: Math.min(a - 1, _.stopIndexOverscan)
|
|
236
|
-
}, w = x(() =>
|
|
236
|
+
}, w = x(() => ie({
|
|
237
237
|
cachedBounds: h,
|
|
238
238
|
itemCount: a,
|
|
239
239
|
itemSize: m
|
|
@@ -241,9 +241,9 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
241
241
|
h,
|
|
242
242
|
a,
|
|
243
243
|
m
|
|
244
|
-
]), E = x((t) =>
|
|
244
|
+
]), E = x((t) => U({
|
|
245
245
|
cachedBounds: h,
|
|
246
|
-
containerScrollOffset:
|
|
246
|
+
containerScrollOffset: z({
|
|
247
247
|
containerElement: e,
|
|
248
248
|
direction: r,
|
|
249
249
|
isRtl: i,
|
|
@@ -261,19 +261,19 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
261
261
|
a,
|
|
262
262
|
l
|
|
263
263
|
]);
|
|
264
|
-
return
|
|
264
|
+
return F(() => {
|
|
265
265
|
v(E((r === "vertical" ? e?.scrollTop : e?.scrollLeft) ?? 0));
|
|
266
266
|
}, [
|
|
267
267
|
e,
|
|
268
268
|
r,
|
|
269
269
|
E
|
|
270
|
-
]),
|
|
270
|
+
]), F(() => {
|
|
271
271
|
if (!e) return;
|
|
272
272
|
let t = () => {
|
|
273
273
|
v((t) => {
|
|
274
|
-
let { scrollLeft: n, scrollTop: o } = e, s =
|
|
274
|
+
let { scrollLeft: n, scrollTop: o } = e, s = U({
|
|
275
275
|
cachedBounds: h,
|
|
276
|
-
containerScrollOffset:
|
|
276
|
+
containerScrollOffset: z({
|
|
277
277
|
containerElement: e,
|
|
278
278
|
direction: r,
|
|
279
279
|
isRtl: i,
|
|
@@ -283,7 +283,7 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
283
283
|
itemCount: a,
|
|
284
284
|
overscanCount: l
|
|
285
285
|
});
|
|
286
|
-
return
|
|
286
|
+
return V(s, t) ? t : s;
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
289
|
return e.addEventListener("scroll", t), () => {
|
|
@@ -299,8 +299,8 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
299
299
|
]), {
|
|
300
300
|
getCellBounds: g,
|
|
301
301
|
getEstimatedSize: w,
|
|
302
|
-
scrollToIndex:
|
|
303
|
-
let s =
|
|
302
|
+
scrollToIndex: ne(({ align: t = "auto", containerScrollOffset: n, index: o }) => {
|
|
303
|
+
let s = H({
|
|
304
304
|
align: t,
|
|
305
305
|
cachedBounds: h,
|
|
306
306
|
containerScrollOffset: n,
|
|
@@ -310,14 +310,14 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
310
310
|
itemSize: m
|
|
311
311
|
});
|
|
312
312
|
if (e) {
|
|
313
|
-
if (s =
|
|
313
|
+
if (s = z({
|
|
314
314
|
containerElement: e,
|
|
315
315
|
direction: r,
|
|
316
316
|
isRtl: i,
|
|
317
317
|
scrollOffset: s
|
|
318
318
|
}), typeof e.scrollTo != "function") {
|
|
319
319
|
let e = E(s);
|
|
320
|
-
|
|
320
|
+
V(_, e) || v(e);
|
|
321
321
|
}
|
|
322
322
|
return s;
|
|
323
323
|
}
|
|
@@ -328,19 +328,19 @@ function J({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
328
328
|
stopIndexVisible: S
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function oe(e) {
|
|
332
332
|
return E(() => e, Object.values(e));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function q(e, t) {
|
|
335
335
|
let { ariaAttributes: n, style: r, ...i } = e, { ariaAttributes: a, style: o, ...s } = t;
|
|
336
|
-
return
|
|
336
|
+
return V(n, a) && V(r, o) && V(i, s);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function J(e) {
|
|
339
339
|
return typeof e == "object" && !!e && "getAverageRowHeight" in e && typeof e.getAverageRowHeight == "function";
|
|
340
340
|
}
|
|
341
|
-
var
|
|
342
|
-
function
|
|
343
|
-
let m =
|
|
341
|
+
var se = "data-react-window-index";
|
|
342
|
+
function ce({ children: e, className: t, defaultHeight: n = 0, listRef: r, onResize: i, onRowsRendered: a, overscanCount: o = 3, rowComponent: s, rowCount: c, rowHeight: l, rowProps: u, tagName: d = "div", style: f, ...p }) {
|
|
343
|
+
let m = oe(u), h = E(() => b(s, q), [s]), [g, _] = O(null), v = J(l), { getCellBounds: x, getEstimatedSize: C, scrollToIndex: T, startIndexOverscan: D, startIndexVisible: k, stopIndexOverscan: j, stopIndexVisible: M } = ae({
|
|
344
344
|
containerElement: g,
|
|
345
345
|
containerStyle: f,
|
|
346
346
|
defaultContainerSize: n,
|
|
@@ -366,12 +366,12 @@ function se({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
366
366
|
top: r
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
}), [g, T]),
|
|
369
|
+
}), [g, T]), F(() => {
|
|
370
370
|
if (!g) return;
|
|
371
371
|
let e = Array.from(g.children).filter((e, t) => {
|
|
372
372
|
if (e.hasAttribute("aria-hidden")) return !1;
|
|
373
373
|
let n = `${D + t}`;
|
|
374
|
-
return e.setAttribute(
|
|
374
|
+
return e.setAttribute(se, n), !0;
|
|
375
375
|
});
|
|
376
376
|
if (v) return l.observeRowElements(e);
|
|
377
377
|
}, [
|
|
@@ -382,7 +382,7 @@ function se({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
382
382
|
j
|
|
383
383
|
]), S(() => {
|
|
384
384
|
D >= 0 && j >= 0 && a && a({
|
|
385
|
-
startIndex:
|
|
385
|
+
startIndex: k,
|
|
386
386
|
stopIndex: M
|
|
387
387
|
}, {
|
|
388
388
|
startIndex: D,
|
|
@@ -391,7 +391,7 @@ function se({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
391
391
|
}, [
|
|
392
392
|
a,
|
|
393
393
|
D,
|
|
394
|
-
|
|
394
|
+
k,
|
|
395
395
|
j,
|
|
396
396
|
M
|
|
397
397
|
]);
|
|
@@ -426,7 +426,7 @@ function se({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
426
426
|
m,
|
|
427
427
|
D,
|
|
428
428
|
j
|
|
429
|
-
]), P = /* @__PURE__ */
|
|
429
|
+
]), P = /* @__PURE__ */ A("div", {
|
|
430
430
|
"aria-hidden": !0,
|
|
431
431
|
style: {
|
|
432
432
|
height: C(),
|
|
@@ -454,25 +454,25 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
454
454
|
return e.Header = "header", e.Item = "item", e;
|
|
455
455
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
456
456
|
return e.All = "all", e.Pinned = "pinned", e.MyChats = "my-chats", e.Shared = "shared", e.Organization = "organization", e;
|
|
457
|
-
}({}),
|
|
457
|
+
}({}), le = (e) => `${60 + e * 23 % 35}%`, ue = (e, t) => e ? t ? "pe-9" : "pe-2 group-hover/conversation:pe-9" : "pe-3", de = (e, t) => t.rows[e].kind === Y.Item ? 36 : e === 0 ? 24 : 56, fe = (e) => {
|
|
458
458
|
switch (e) {
|
|
459
459
|
case X.Shared: return X.Shared;
|
|
460
460
|
case X.Organization: return X.Organization;
|
|
461
461
|
default: return X.MyChats;
|
|
462
462
|
}
|
|
463
|
-
},
|
|
463
|
+
}, pe = (e, t) => {
|
|
464
464
|
let n = null;
|
|
465
465
|
for (let r of e) if (r.kind === Y.Header) n = r.groupKey;
|
|
466
466
|
else if (r.item.id === t) return n;
|
|
467
467
|
return null;
|
|
468
|
-
},
|
|
468
|
+
}, me = (e, t, n) => {
|
|
469
469
|
let r = /* @__PURE__ */ new Set();
|
|
470
470
|
if (t != null && r.add(t), t === X.Pinned) {
|
|
471
471
|
let t = n.find((t) => t.id === e);
|
|
472
|
-
t && r.add(
|
|
472
|
+
t && r.add(fe(t.source));
|
|
473
473
|
} else r.add(X.Pinned);
|
|
474
474
|
return r;
|
|
475
|
-
},
|
|
475
|
+
}, he = (e, t, n, r) => {
|
|
476
476
|
let i = e.currentTarget.getBoundingClientRect();
|
|
477
477
|
if (e.clientY >= i.top + i.height / 2) return t;
|
|
478
478
|
let a = null, o = !1;
|
|
@@ -482,30 +482,30 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
482
482
|
a = e.item.id;
|
|
483
483
|
}
|
|
484
484
|
return null;
|
|
485
|
-
},
|
|
485
|
+
}, ge = {
|
|
486
486
|
tabContainer: "_tabContainer_153ct_1",
|
|
487
487
|
tabActive: "_tabActive_153ct_13"
|
|
488
|
-
},
|
|
488
|
+
}, _e = b(({ tabs: e, activeTabId: t, onTabChange: r, styles: i }) => {
|
|
489
489
|
let { tabClassName: a = "dial-tiny-semi-text" } = i?.typography ?? {};
|
|
490
|
-
return /* @__PURE__ */
|
|
490
|
+
return /* @__PURE__ */ A("div", {
|
|
491
491
|
className: "flex flex-nowrap gap-1",
|
|
492
492
|
role: "tablist",
|
|
493
493
|
children: e.map((e) => {
|
|
494
494
|
let i = t === e.id;
|
|
495
|
-
return /* @__PURE__ */
|
|
495
|
+
return /* @__PURE__ */ A("div", {
|
|
496
496
|
role: "tab",
|
|
497
497
|
"aria-selected": i,
|
|
498
498
|
className: "contents",
|
|
499
|
-
children: /* @__PURE__ */
|
|
499
|
+
children: /* @__PURE__ */ A(m, {
|
|
500
500
|
label: e.label,
|
|
501
501
|
selected: i,
|
|
502
502
|
onClick: () => r(e.id),
|
|
503
|
-
className: n("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", a,
|
|
503
|
+
className: n("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", a, ge.tabContainer, i && ge.tabActive)
|
|
504
504
|
})
|
|
505
505
|
}, e.id);
|
|
506
506
|
})
|
|
507
507
|
});
|
|
508
|
-
}),
|
|
508
|
+
}), ve = [
|
|
509
509
|
{
|
|
510
510
|
value: X.All,
|
|
511
511
|
labelKey: "all"
|
|
@@ -522,10 +522,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
522
522
|
value: X.Organization,
|
|
523
523
|
labelKey: "organization"
|
|
524
524
|
}
|
|
525
|
-
],
|
|
525
|
+
], ye = b(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text" }) => /* @__PURE__ */ A("div", {
|
|
526
526
|
className: "mx-3 my-2",
|
|
527
|
-
children: /* @__PURE__ */
|
|
528
|
-
tabs:
|
|
527
|
+
children: /* @__PURE__ */ A(_e, {
|
|
528
|
+
tabs: ve.map(({ value: e, labelKey: n }) => ({
|
|
529
529
|
id: e,
|
|
530
530
|
label: t[n]
|
|
531
531
|
})),
|
|
@@ -533,37 +533,38 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
533
533
|
onTabChange: (e) => n(e),
|
|
534
534
|
styles: { typography: { tabClassName: v(r, "flex-1") } }
|
|
535
535
|
})
|
|
536
|
-
})),
|
|
536
|
+
})), be = { button: "_button_1g5dd_1" }, xe = b(({ label: e, onClick: r, labelClassName: i = "dial-small-semi-text", colors: a }) => /* @__PURE__ */ A("div", {
|
|
537
537
|
className: "px-3 py-2",
|
|
538
538
|
style: t({
|
|
539
539
|
"--cp-new-chat-bg": a?.background,
|
|
540
540
|
"--cp-new-chat-text": a?.text
|
|
541
541
|
}),
|
|
542
|
-
children: /* @__PURE__ */
|
|
542
|
+
children: /* @__PURE__ */ j("button", {
|
|
543
543
|
onClick: r,
|
|
544
544
|
type: "button",
|
|
545
|
-
className: n("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 rounded-full px-3 py-1 shadow-sm hover:shadow-md active:shadow-xs",
|
|
546
|
-
children: [/* @__PURE__ */
|
|
545
|
+
className: n("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 rounded-full px-3 py-1 shadow-sm hover:shadow-md active:shadow-xs", be.button),
|
|
546
|
+
children: [/* @__PURE__ */ A(te, {
|
|
547
547
|
size: 18,
|
|
548
548
|
stroke: 2,
|
|
549
549
|
className: "shrink-0"
|
|
550
|
-
}), /* @__PURE__ */
|
|
550
|
+
}), /* @__PURE__ */ A("span", {
|
|
551
551
|
className: i,
|
|
552
552
|
children: e
|
|
553
553
|
})]
|
|
554
554
|
})
|
|
555
555
|
})), Z = {
|
|
556
556
|
skeletonColor: "var(--cp-skeleton-color, var(--bg-layer-4, #d1dbea))",
|
|
557
|
-
header: "
|
|
558
|
-
item: "
|
|
559
|
-
itemActive: "
|
|
560
|
-
groupHeader: "
|
|
561
|
-
dropZoneActive: "
|
|
562
|
-
triggerActive: "
|
|
563
|
-
triggerIcon: "
|
|
564
|
-
|
|
557
|
+
header: "_header_lsrg9_1",
|
|
558
|
+
item: "_item_lsrg9_5",
|
|
559
|
+
itemActive: "_itemActive_lsrg9_11",
|
|
560
|
+
groupHeader: "_groupHeader_lsrg9_16",
|
|
561
|
+
dropZoneActive: "_dropZoneActive_lsrg9_20",
|
|
562
|
+
triggerActive: "_triggerActive_lsrg9_25",
|
|
563
|
+
triggerIcon: "_triggerIcon_lsrg9_28",
|
|
564
|
+
unreadDot: "_unreadDot_lsrg9_36"
|
|
565
|
+
}, Se = ({ label: e, isExpanded: t, onToggle: r, listId: i, className: a = "dial-tiny-semi-text uppercase", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: l, onDrop: u }) => {
|
|
565
566
|
let f = o != null;
|
|
566
|
-
return /* @__PURE__ */
|
|
567
|
+
return /* @__PURE__ */ j("button", {
|
|
567
568
|
type: "button",
|
|
568
569
|
"aria-expanded": t,
|
|
569
570
|
"aria-controls": i,
|
|
@@ -578,93 +579,105 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
578
579
|
f && (e.preventDefault(), u?.(o, o, null));
|
|
579
580
|
} : void 0,
|
|
580
581
|
className: n("flex h-6 w-full items-center gap-1 rounded py-1 pe-3 text-start", a, Z.groupHeader, s && Z.dropZoneActive),
|
|
581
|
-
children: [t ? /* @__PURE__ */
|
|
582
|
+
children: [t ? /* @__PURE__ */ A(M, {
|
|
582
583
|
stroke: .5,
|
|
583
584
|
size: 12,
|
|
584
585
|
className: "shrink-0",
|
|
585
586
|
"aria-hidden": !0
|
|
586
|
-
}) : /* @__PURE__ */
|
|
587
|
+
}) : /* @__PURE__ */ A(N, {
|
|
587
588
|
stroke: .5,
|
|
588
589
|
size: 12,
|
|
589
590
|
className: "shrink-0 rtl:scale-x-[-1]",
|
|
590
591
|
"aria-hidden": !0
|
|
591
|
-
}), /* @__PURE__ */
|
|
592
|
+
}), /* @__PURE__ */ A(d, { text: e })]
|
|
592
593
|
});
|
|
593
|
-
},
|
|
594
|
-
let [L,
|
|
595
|
-
|
|
596
|
-
}, [t, s]),
|
|
594
|
+
}, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: s, actionsLabel: d = "More actions", itemTitleClassName: m = "dial-small-text", itemIconBadgeClassName: v, taskBadgeClassName: y = "border-tertiary bg-layer-base text-secondary dial-caption-semi-text uppercase tracking-[0.6px]", unreadIndicatorLabel: b = "Unread", rowGroupKey: S, rows: C, draggingId: w, dragOverId: T, allowedDropGroups: E, onDragStart: M, onDragEnd: N, onDragOver: te, onDragLeave: F, onDrop: I }) => {
|
|
595
|
+
let [L, ne] = O(!1), R = D(null), re = x((e) => {
|
|
596
|
+
ne(e), e && R.current && s?.(t, R.current);
|
|
597
|
+
}, [t, s]), z = o?.(t) ?? [], B = z.length > 0, V = t.isIconLoading ? /* @__PURE__ */ A(f, {
|
|
597
598
|
variant: p.Circular,
|
|
598
599
|
width: l.LG,
|
|
599
600
|
height: l.LG,
|
|
600
601
|
color: Z.skeletonColor,
|
|
601
602
|
"aria-hidden": !0
|
|
602
|
-
}) : /* @__PURE__ */
|
|
603
|
+
}) : /* @__PURE__ */ A(e, {
|
|
603
604
|
src: t.iconUrl,
|
|
604
605
|
size: l.LG,
|
|
605
606
|
initialsName: t.iconTooltip ?? "",
|
|
606
607
|
labels: { tooltip: t.iconTooltip },
|
|
607
608
|
styles: { badgeClassName: v }
|
|
608
|
-
}),
|
|
609
|
+
}), ie = /* @__PURE__ */ j("span", {
|
|
610
|
+
className: "flex shrink-0 items-center gap-1",
|
|
611
|
+
children: [/* @__PURE__ */ A("span", {
|
|
612
|
+
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
613
|
+
children: t.isUnread && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A("span", {
|
|
614
|
+
className: n("size-[5.33px] rounded-full", Z.unreadDot),
|
|
615
|
+
"aria-hidden": !0
|
|
616
|
+
}), /* @__PURE__ */ A("span", {
|
|
617
|
+
className: "sr-only",
|
|
618
|
+
children: b
|
|
619
|
+
})] })
|
|
620
|
+
}), V]
|
|
621
|
+
}), H = ue(B, L), U = t.showTaskBadge ? /* @__PURE__ */ j("span", {
|
|
609
622
|
className: n("flex h-5 shrink-0 items-center justify-center gap-0.5 rounded-full border pe-2 ps-1", y),
|
|
610
|
-
children: [/* @__PURE__ */
|
|
623
|
+
children: [/* @__PURE__ */ A(P, {
|
|
611
624
|
size: 12,
|
|
612
625
|
"aria-hidden": !0
|
|
613
626
|
}), t.taskBadgeLabel]
|
|
614
|
-
}) : void 0,
|
|
627
|
+
}) : void 0, W = S != null, G = x((e) => {
|
|
615
628
|
e.currentTarget.contains(e.relatedTarget) || F?.();
|
|
616
|
-
}, [F]),
|
|
617
|
-
if (!
|
|
629
|
+
}, [F]), K = x((e) => {
|
|
630
|
+
if (!S || !C || !I) return;
|
|
618
631
|
e.preventDefault();
|
|
619
|
-
let n =
|
|
620
|
-
I(t.id,
|
|
632
|
+
let n = he(e, t.id, C, S);
|
|
633
|
+
I(t.id, S, n);
|
|
621
634
|
}, [
|
|
622
635
|
t.id,
|
|
636
|
+
C,
|
|
623
637
|
S,
|
|
624
|
-
b,
|
|
625
638
|
I
|
|
626
|
-
]),
|
|
627
|
-
return /* @__PURE__ */
|
|
628
|
-
className: n("group/conversation relative",
|
|
629
|
-
draggable:
|
|
630
|
-
onDragStart:
|
|
631
|
-
onDragEnd:
|
|
632
|
-
onDragOver:
|
|
633
|
-
e.preventDefault(),
|
|
639
|
+
]), ae = t.id === w, oe = t.id === T, q = S != null && (E?.has(S) ?? !1), J = w != null;
|
|
640
|
+
return /* @__PURE__ */ j("li", {
|
|
641
|
+
className: n("group/conversation relative", ae && "cursor-grabbing opacity-50", oe && q && "rounded", oe && q && Z.dropZoneActive, J && !ae && !q && "cursor-not-allowed"),
|
|
642
|
+
draggable: W || void 0,
|
|
643
|
+
onDragStart: W ? () => M?.(t.id) : void 0,
|
|
644
|
+
onDragEnd: W ? N : void 0,
|
|
645
|
+
onDragOver: W ? (e) => {
|
|
646
|
+
e.preventDefault(), te?.(t.id);
|
|
634
647
|
} : void 0,
|
|
635
|
-
onDragLeave:
|
|
636
|
-
onDrop:
|
|
637
|
-
children: [/* @__PURE__ */
|
|
648
|
+
onDragLeave: W ? G : void 0,
|
|
649
|
+
onDrop: W ? K : void 0,
|
|
650
|
+
children: [/* @__PURE__ */ A("a", {
|
|
638
651
|
href: t.href,
|
|
639
652
|
className: "contents",
|
|
640
653
|
onClick: (e) => {
|
|
641
654
|
t.href && (e.preventDefault(), i(t.id));
|
|
642
655
|
},
|
|
643
|
-
children: /* @__PURE__ */
|
|
644
|
-
iconBefore:
|
|
645
|
-
label: /* @__PURE__ */
|
|
656
|
+
children: /* @__PURE__ */ A(c, {
|
|
657
|
+
iconBefore: ie,
|
|
658
|
+
label: /* @__PURE__ */ A(_, {
|
|
646
659
|
text: t.title,
|
|
647
660
|
query: a,
|
|
648
661
|
className: m,
|
|
649
662
|
maxLines: 1
|
|
650
663
|
}),
|
|
651
|
-
iconAfter:
|
|
664
|
+
iconAfter: U,
|
|
652
665
|
textClassName: "min-w-0 flex-1",
|
|
653
666
|
"aria-current": r ? "page" : void 0,
|
|
654
667
|
onClick: t.href ? void 0 : () => i(t.id),
|
|
655
668
|
tabIndex: t.href ? -1 : void 0,
|
|
656
669
|
className: n("h-8 w-full justify-start gap-2 rounded-xl py-2 ps-3", H, Z.item, r && Z.itemActive, L && Z.itemActive)
|
|
657
670
|
})
|
|
658
|
-
}), B && /* @__PURE__ */
|
|
671
|
+
}), B && /* @__PURE__ */ A("div", {
|
|
659
672
|
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"),
|
|
660
|
-
children: /* @__PURE__ */
|
|
661
|
-
items:
|
|
662
|
-
onOpenChange:
|
|
673
|
+
children: /* @__PURE__ */ A(u, {
|
|
674
|
+
items: z,
|
|
675
|
+
onOpenChange: re,
|
|
663
676
|
matchReferenceWidth: !1,
|
|
664
677
|
listClassName: "w-[140px] cp-dropdown-overlay",
|
|
665
|
-
children: /* @__PURE__ */
|
|
678
|
+
children: /* @__PURE__ */ A(g, {
|
|
666
679
|
ref: R,
|
|
667
|
-
icon: /* @__PURE__ */
|
|
680
|
+
icon: /* @__PURE__ */ A(ee, {
|
|
668
681
|
size: l.SM,
|
|
669
682
|
className: Z.triggerIcon,
|
|
670
683
|
"aria-hidden": !0
|
|
@@ -676,91 +689,92 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
676
689
|
})
|
|
677
690
|
})]
|
|
678
691
|
});
|
|
679
|
-
},
|
|
680
|
-
let
|
|
681
|
-
if (
|
|
682
|
-
let n =
|
|
683
|
-
return /* @__PURE__ */
|
|
692
|
+
}, we = ({ index: e, style: t, rows: n, expandedGroups: r, onToggleGroup: i, listId: a, activeConversationId: o, searchQuery: s, onSelectConversation: c, getActions: l, onActionMenuOpen: u, actionsLabel: d, unreadIndicatorLabel: f, styles: p, draggingId: m, dragOverId: h, allowedDropGroups: g, onDragStart: _, onDragEnd: v, onDragOver: y, onDragLeave: b, onDrop: x }) => {
|
|
693
|
+
let S = n[e];
|
|
694
|
+
if (S.kind === Y.Header) {
|
|
695
|
+
let n = S.groupKey === X.Pinned;
|
|
696
|
+
return /* @__PURE__ */ A("div", {
|
|
684
697
|
role: "presentation",
|
|
685
698
|
style: t,
|
|
686
699
|
className: e === 0 ? "pt-0" : "pt-8",
|
|
687
|
-
children: /* @__PURE__ */
|
|
688
|
-
label:
|
|
689
|
-
isExpanded: r.has(
|
|
690
|
-
onToggle: () => i(
|
|
700
|
+
children: /* @__PURE__ */ A(Se, {
|
|
701
|
+
label: S.label,
|
|
702
|
+
isExpanded: r.has(S.groupKey),
|
|
703
|
+
onToggle: () => i(S.groupKey),
|
|
691
704
|
listId: a,
|
|
692
|
-
className:
|
|
705
|
+
className: p?.groupHeaderClassName,
|
|
693
706
|
dropZoneGroupKey: n ? X.Pinned : void 0,
|
|
694
|
-
isDragOver: n &&
|
|
695
|
-
onDragOver: n ?
|
|
696
|
-
onDragLeave: n ?
|
|
697
|
-
onDrop: n ?
|
|
707
|
+
isDragOver: n && h === X.Pinned,
|
|
708
|
+
onDragOver: n ? y : void 0,
|
|
709
|
+
onDragLeave: n ? b : void 0,
|
|
710
|
+
onDrop: n ? x : void 0
|
|
698
711
|
})
|
|
699
712
|
});
|
|
700
713
|
}
|
|
701
|
-
return /* @__PURE__ */
|
|
714
|
+
return /* @__PURE__ */ A("div", {
|
|
702
715
|
role: "presentation",
|
|
703
716
|
style: t,
|
|
704
717
|
className: "pt-1",
|
|
705
|
-
children: /* @__PURE__ */
|
|
706
|
-
item:
|
|
707
|
-
isActive:
|
|
718
|
+
children: /* @__PURE__ */ A(Ce, {
|
|
719
|
+
item: S.item,
|
|
720
|
+
isActive: S.item.id === o,
|
|
708
721
|
searchQuery: s,
|
|
709
722
|
onSelectConversation: c,
|
|
710
723
|
getActions: l,
|
|
711
724
|
onActionMenuOpen: u,
|
|
712
725
|
actionsLabel: d,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
726
|
+
unreadIndicatorLabel: f,
|
|
727
|
+
itemTitleClassName: p?.itemTitleClassName,
|
|
728
|
+
itemIconBadgeClassName: p?.itemIconBadgeClassName,
|
|
729
|
+
taskBadgeClassName: p?.taskBadgeClassName,
|
|
730
|
+
rowGroupKey: S.groupKey,
|
|
717
731
|
rows: n,
|
|
718
|
-
draggingId:
|
|
719
|
-
dragOverId:
|
|
720
|
-
allowedDropGroups:
|
|
721
|
-
onDragStart:
|
|
722
|
-
onDragEnd:
|
|
723
|
-
onDragOver:
|
|
724
|
-
onDragLeave:
|
|
725
|
-
onDrop:
|
|
732
|
+
draggingId: m,
|
|
733
|
+
dragOverId: h,
|
|
734
|
+
allowedDropGroups: g,
|
|
735
|
+
onDragStart: _,
|
|
736
|
+
onDragEnd: v,
|
|
737
|
+
onDragOver: y,
|
|
738
|
+
onDragLeave: b,
|
|
739
|
+
onDrop: x
|
|
726
740
|
})
|
|
727
741
|
});
|
|
728
|
-
},
|
|
742
|
+
}, Te = (e, t) => t === X.All ? !0 : e.source === t, Ee = (e, t) => t ? e.title.toLowerCase().includes(t.toLowerCase()) : !0, De = new Set([
|
|
729
743
|
X.Pinned,
|
|
730
744
|
X.MyChats,
|
|
731
745
|
X.Shared,
|
|
732
746
|
X.Organization
|
|
733
|
-
]),
|
|
734
|
-
let { colors: M, typography: N, newChatButton: P } = h ?? {}, { title:
|
|
747
|
+
]), Oe = b(({ conversations: e, isLoading: c, isOpen: l, onSelectConversation: u, activeConversationId: d, labels: p, onNewChat: m, styles: h, className: g, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: w, activeFilter: T, onActiveFilterChange: k }) => {
|
|
748
|
+
let { colors: M, typography: N, newChatButton: P } = h ?? {}, { title: ee, emptyLabel: te, noResultsLabel: F, loadingLabel: I = "Loading conversations", newChatLabel: L, searchPlaceholder: ne, searchClearLabel: R, filterLabels: re, groupLabels: z, actionsLabel: B, unreadIndicatorLabel: V, closeAriaLabel: ie } = p, [H, U] = O(""), [W, G] = O(X.All);
|
|
735
749
|
S(() => {
|
|
736
|
-
T != null &&
|
|
750
|
+
T != null && G(T);
|
|
737
751
|
}, [T]);
|
|
738
|
-
let [
|
|
739
|
-
|
|
740
|
-
}, []),
|
|
741
|
-
|
|
752
|
+
let [K, ae] = O(() => De), [oe, q] = O(5), J = C(), se = D(null), ue = D(null), [fe, he] = O(null), [ge, _e] = O(null), [ve, be] = O(null), Se = D(null), Ce = D(null), Oe = x(({ height: e }) => {
|
|
753
|
+
q(Math.ceil(e / 36 * 2));
|
|
754
|
+
}, []), ke = x((e) => {
|
|
755
|
+
ae((t) => {
|
|
742
756
|
let n = new Set(t);
|
|
743
757
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
744
758
|
});
|
|
745
|
-
}, []),
|
|
746
|
-
|
|
747
|
-
}, []),
|
|
748
|
-
let r =
|
|
749
|
-
|
|
750
|
-
}, [e]),
|
|
751
|
-
|
|
752
|
-
}, [
|
|
753
|
-
|
|
754
|
-
}, []),
|
|
755
|
-
|
|
756
|
-
}, []),
|
|
757
|
-
let r =
|
|
758
|
-
|
|
759
|
+
}, []), Ae = x(() => {
|
|
760
|
+
Se.current = null, Ce.current = null, he(null), _e(null), be(null);
|
|
761
|
+
}, []), je = x((t, n) => {
|
|
762
|
+
let r = me(t, pe(n, t), e);
|
|
763
|
+
Se.current = t, Ce.current = r, he(t), be(r);
|
|
764
|
+
}, [e]), Me = x(() => {
|
|
765
|
+
Ae();
|
|
766
|
+
}, [Ae]), Ne = x((e) => {
|
|
767
|
+
_e(e);
|
|
768
|
+
}, []), Pe = x(() => {
|
|
769
|
+
_e(null);
|
|
770
|
+
}, []), Fe = x((e, t, n) => {
|
|
771
|
+
let r = Se.current, i = Ce.current;
|
|
772
|
+
Ae(), r != null && r !== e && i?.has(t) && w?.({
|
|
759
773
|
draggedId: r,
|
|
760
774
|
targetGroupKey: t,
|
|
761
775
|
afterId: n
|
|
762
776
|
});
|
|
763
|
-
}, [
|
|
777
|
+
}, [Ae, w]), Ie = t({
|
|
764
778
|
"--cp-bg": M?.background,
|
|
765
779
|
"--sb-border": M?.border,
|
|
766
780
|
"--cp-item-hover": M?.itemHover,
|
|
@@ -773,121 +787,124 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
773
787
|
"--cp-trigger-bg": M?.triggerBackground,
|
|
774
788
|
"--cp-trigger-icon": M?.triggerIcon,
|
|
775
789
|
"--cp-trigger-icon-idle": M?.triggerIconIdle,
|
|
776
|
-
"--cp-skeleton-color": M?.skeletonColor
|
|
777
|
-
|
|
790
|
+
"--cp-skeleton-color": M?.skeletonColor,
|
|
791
|
+
"--cp-unread-dot": M?.unreadDot
|
|
792
|
+
}), Q = E(() => e.filter((e) => Te(e, W) && Ee(e, H)), [
|
|
778
793
|
e,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
]),
|
|
794
|
+
W,
|
|
795
|
+
H
|
|
796
|
+
]), Le = E(() => Q.filter((e) => e.isPinned), [Q]), Re = E(() => Q.filter((e) => !e.isPinned && e.source !== X.Shared && e.source !== X.Organization), [Q]), ze = E(() => Q.filter((e) => !e.isPinned && e.source === X.Shared), [Q]), Be = E(() => Q.filter((e) => !e.isPinned && e.source === X.Organization), [Q]), Ve = E(() => [
|
|
782
797
|
{
|
|
783
798
|
key: X.Pinned,
|
|
784
|
-
label:
|
|
785
|
-
items:
|
|
799
|
+
label: z?.pinned ?? "Pinned",
|
|
800
|
+
items: Le
|
|
786
801
|
},
|
|
787
802
|
{
|
|
788
803
|
key: X.MyChats,
|
|
789
|
-
label:
|
|
790
|
-
items:
|
|
804
|
+
label: z?.myChats ?? "My chats",
|
|
805
|
+
items: Re
|
|
791
806
|
},
|
|
792
807
|
{
|
|
793
808
|
key: X.Shared,
|
|
794
|
-
label:
|
|
795
|
-
items:
|
|
809
|
+
label: z?.shared ?? "Shared",
|
|
810
|
+
items: ze
|
|
796
811
|
},
|
|
797
812
|
{
|
|
798
813
|
key: X.Organization,
|
|
799
|
-
label:
|
|
800
|
-
items:
|
|
814
|
+
label: z?.organization ?? "Organization",
|
|
815
|
+
items: Be
|
|
801
816
|
}
|
|
802
817
|
], [
|
|
803
|
-
|
|
804
|
-
Ie,
|
|
818
|
+
z,
|
|
805
819
|
Le,
|
|
806
820
|
Re,
|
|
807
|
-
ze
|
|
821
|
+
ze,
|
|
822
|
+
Be
|
|
808
823
|
]), $ = E(() => {
|
|
809
824
|
let e = [];
|
|
810
|
-
for (let t of
|
|
825
|
+
for (let t of Ve) if (t.items.length !== 0 && (e.push({
|
|
811
826
|
kind: Y.Header,
|
|
812
827
|
groupKey: t.key,
|
|
813
828
|
label: t.label
|
|
814
|
-
}),
|
|
829
|
+
}), K.has(t.key))) for (let n of t.items) e.push({
|
|
815
830
|
kind: Y.Item,
|
|
816
831
|
item: n,
|
|
817
832
|
groupKey: t.key
|
|
818
833
|
});
|
|
819
834
|
return e;
|
|
820
|
-
}, [
|
|
835
|
+
}, [Ve, K]);
|
|
821
836
|
S(() => {
|
|
822
|
-
if (!d ||
|
|
837
|
+
if (!d || ue.current === d) return;
|
|
823
838
|
let e = $.findIndex((e) => e.kind === Y.Item && e.item.id === d);
|
|
824
|
-
e >= 0 && (
|
|
839
|
+
e >= 0 && (se.current?.scrollToRow({
|
|
825
840
|
index: e,
|
|
826
841
|
align: "smart",
|
|
827
842
|
behavior: "smooth"
|
|
828
|
-
}),
|
|
843
|
+
}), ue.current = d);
|
|
829
844
|
}, [
|
|
830
845
|
d,
|
|
831
|
-
|
|
832
|
-
|
|
846
|
+
Ve,
|
|
847
|
+
K,
|
|
833
848
|
$
|
|
834
849
|
]);
|
|
835
|
-
let
|
|
850
|
+
let He = E(() => ({
|
|
836
851
|
rows: $,
|
|
837
|
-
expandedGroups:
|
|
838
|
-
onToggleGroup:
|
|
839
|
-
listId:
|
|
852
|
+
expandedGroups: K,
|
|
853
|
+
onToggleGroup: ke,
|
|
854
|
+
listId: J,
|
|
840
855
|
activeConversationId: d,
|
|
841
|
-
searchQuery:
|
|
856
|
+
searchQuery: H,
|
|
842
857
|
onSelectConversation: u,
|
|
843
858
|
getActions: _,
|
|
844
859
|
onActionMenuOpen: v,
|
|
845
|
-
actionsLabel:
|
|
860
|
+
actionsLabel: B,
|
|
861
|
+
unreadIndicatorLabel: V,
|
|
846
862
|
styles: {
|
|
847
863
|
groupHeaderClassName: N?.groupHeaderClassName,
|
|
848
864
|
itemTitleClassName: N?.itemTitleClassName,
|
|
849
865
|
itemIconBadgeClassName: h?.itemIconBadgeClassName,
|
|
850
866
|
taskBadgeClassName: h?.taskBadgeClassName
|
|
851
867
|
},
|
|
852
|
-
draggingId:
|
|
853
|
-
dragOverId:
|
|
854
|
-
allowedDropGroups:
|
|
855
|
-
onDragStart: (e) =>
|
|
856
|
-
onDragEnd:
|
|
857
|
-
onDragOver:
|
|
858
|
-
onDragLeave:
|
|
859
|
-
onDrop:
|
|
868
|
+
draggingId: fe,
|
|
869
|
+
dragOverId: ge,
|
|
870
|
+
allowedDropGroups: ve,
|
|
871
|
+
onDragStart: (e) => je(e, $),
|
|
872
|
+
onDragEnd: Me,
|
|
873
|
+
onDragOver: Ne,
|
|
874
|
+
onDragLeave: Pe,
|
|
875
|
+
onDrop: Fe
|
|
860
876
|
}), [
|
|
861
877
|
$,
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
878
|
+
K,
|
|
879
|
+
ke,
|
|
880
|
+
J,
|
|
865
881
|
d,
|
|
866
|
-
|
|
882
|
+
H,
|
|
867
883
|
u,
|
|
868
884
|
_,
|
|
869
885
|
v,
|
|
870
|
-
|
|
886
|
+
B,
|
|
887
|
+
V,
|
|
871
888
|
N?.groupHeaderClassName,
|
|
872
889
|
N?.itemTitleClassName,
|
|
873
890
|
h?.itemIconBadgeClassName,
|
|
874
891
|
h?.taskBadgeClassName,
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
Ae,
|
|
892
|
+
fe,
|
|
893
|
+
ge,
|
|
894
|
+
ve,
|
|
879
895
|
je,
|
|
880
896
|
Me,
|
|
881
897
|
Ne,
|
|
882
|
-
Pe
|
|
883
|
-
|
|
884
|
-
|
|
898
|
+
Pe,
|
|
899
|
+
Fe
|
|
900
|
+
]), Ue = e.length === 0, We = e.length > 0 && Q.length === 0;
|
|
901
|
+
return /* @__PURE__ */ j(s, {
|
|
885
902
|
isOpen: l,
|
|
886
903
|
orientation: o.Left,
|
|
887
|
-
title:
|
|
904
|
+
title: ee,
|
|
888
905
|
labels: {
|
|
889
|
-
ariaLabel:
|
|
890
|
-
closeLabel:
|
|
906
|
+
ariaLabel: ee,
|
|
907
|
+
closeLabel: ie
|
|
891
908
|
},
|
|
892
909
|
onClose: y,
|
|
893
910
|
styles: {
|
|
@@ -897,67 +914,67 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
897
914
|
},
|
|
898
915
|
typography: { fontClassName: N?.fontClassName },
|
|
899
916
|
bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
|
|
900
|
-
cssVars:
|
|
917
|
+
cssVars: Ie,
|
|
901
918
|
titleClassName: N?.fontClassName,
|
|
902
919
|
headerClassName: "h-[64px]",
|
|
903
920
|
className: n(l ? "w-[325px] border-s border-e mobile:w-full" : "w-0", g)
|
|
904
921
|
},
|
|
905
922
|
rightActions: b,
|
|
906
923
|
children: [
|
|
907
|
-
/* @__PURE__ */
|
|
908
|
-
label:
|
|
924
|
+
/* @__PURE__ */ A(xe, {
|
|
925
|
+
label: L,
|
|
909
926
|
onClick: m,
|
|
910
927
|
labelClassName: N?.newChatLabelClassName,
|
|
911
928
|
colors: P
|
|
912
929
|
}),
|
|
913
|
-
/* @__PURE__ */
|
|
914
|
-
value:
|
|
915
|
-
onChange:
|
|
930
|
+
/* @__PURE__ */ A(a, {
|
|
931
|
+
value: H,
|
|
932
|
+
onChange: U,
|
|
916
933
|
labels: {
|
|
917
|
-
placeholder:
|
|
918
|
-
clearLabel:
|
|
934
|
+
placeholder: ne,
|
|
935
|
+
clearLabel: R
|
|
919
936
|
}
|
|
920
937
|
}),
|
|
921
|
-
/* @__PURE__ */
|
|
922
|
-
activeTab:
|
|
923
|
-
labels:
|
|
938
|
+
/* @__PURE__ */ A(ye, {
|
|
939
|
+
activeTab: W,
|
|
940
|
+
labels: re,
|
|
924
941
|
onChange: (e) => {
|
|
925
|
-
|
|
942
|
+
G(e), k?.(e);
|
|
926
943
|
},
|
|
927
944
|
tabClassName: N?.tabClassName
|
|
928
945
|
}),
|
|
929
|
-
/* @__PURE__ */
|
|
946
|
+
/* @__PURE__ */ A("span", {
|
|
930
947
|
role: "status",
|
|
931
948
|
"aria-live": "polite",
|
|
932
949
|
className: "sr-only",
|
|
933
|
-
children: c ?
|
|
950
|
+
children: c ? I : Ue ? te : We ? F : ""
|
|
934
951
|
}),
|
|
935
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ A("div", {
|
|
936
953
|
className: "flex-1 overflow-hidden px-2 py-1",
|
|
937
|
-
children: c ? /* @__PURE__ */
|
|
954
|
+
children: c ? /* @__PURE__ */ A("div", {
|
|
938
955
|
className: "flex flex-col gap-3 px-2 py-3",
|
|
939
|
-
children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */
|
|
956
|
+
children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ A(f, {
|
|
940
957
|
avatar: { size: 24 },
|
|
941
|
-
showTitle: { width:
|
|
958
|
+
showTitle: { width: le(t) },
|
|
942
959
|
paragraph: !1,
|
|
943
960
|
active: !0,
|
|
944
961
|
color: Z.skeletonColor
|
|
945
962
|
}, t))
|
|
946
|
-
}) :
|
|
947
|
-
listRef:
|
|
948
|
-
id:
|
|
963
|
+
}) : Ue ? /* @__PURE__ */ A(r, { label: te }) : We ? /* @__PURE__ */ A(i, { label: F }) : /* @__PURE__ */ A(ce, {
|
|
964
|
+
listRef: se,
|
|
965
|
+
id: J,
|
|
949
966
|
role: "list",
|
|
950
967
|
style: { height: "100%" },
|
|
951
|
-
rowComponent:
|
|
968
|
+
rowComponent: we,
|
|
952
969
|
rowCount: $.length,
|
|
953
|
-
rowHeight:
|
|
954
|
-
overscanCount:
|
|
955
|
-
onResize:
|
|
956
|
-
rowProps:
|
|
970
|
+
rowHeight: de,
|
|
971
|
+
overscanCount: oe,
|
|
972
|
+
onResize: Oe,
|
|
973
|
+
rowProps: He
|
|
957
974
|
})
|
|
958
975
|
})
|
|
959
976
|
]
|
|
960
977
|
});
|
|
961
978
|
});
|
|
962
979
|
//#endregion
|
|
963
|
-
export {
|
|
980
|
+
export { Oe as ConversationPanel, X as FilterTab };
|
package/models/panel-props.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export interface ConversationItem {
|
|
|
34
34
|
showTaskBadge?: boolean;
|
|
35
35
|
/** Text shown inside the task badge. When `showTaskBadge` is `true` and this is omitted, the badge renders with no text. */
|
|
36
36
|
taskBadgeLabel?: string;
|
|
37
|
+
/** When `true`, an unread indicator dot is rendered before the row's leading icon. */
|
|
38
|
+
isUnread?: boolean;
|
|
37
39
|
}
|
|
38
40
|
/** Font overrides for the header title in `ConversationPanel`. */
|
|
39
41
|
export interface ConversationPanelTypography {
|
|
@@ -79,6 +81,8 @@ export interface ConversationColors {
|
|
|
79
81
|
triggerIconIdle?: string;
|
|
80
82
|
/** Shimmer color of the loading skeleton avatar. */
|
|
81
83
|
skeletonColor?: string;
|
|
84
|
+
/** Fill color of the unread indicator dot. Defaults to `--text-accent`. */
|
|
85
|
+
unreadDot?: string;
|
|
82
86
|
}
|
|
83
87
|
/** Combined style overrides (colors and typography) for `ConversationPanel`. */
|
|
84
88
|
export interface ConversationPanelStyles {
|
|
@@ -124,6 +128,8 @@ export interface ConversationPanelLabels {
|
|
|
124
128
|
};
|
|
125
129
|
/** Accessible label for the row actions trigger button. Defaults to `"More actions"`. */
|
|
126
130
|
actionsLabel?: string;
|
|
131
|
+
/** Accessible (visually hidden) label announced for the unread indicator dot. Defaults to `"Unread"`. */
|
|
132
|
+
unreadIndicatorLabel?: string;
|
|
127
133
|
/** Accessible label for the sidebar toggle icon button. Required when `onToggle` is provided. */
|
|
128
134
|
closeAriaLabel?: string;
|
|
129
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-props.d.ts","sourceRoot":"","sources":["../../src/models/panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,kCAAkC;AAClC,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,8DAA8D;AAC9D,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,kFAAkF;IAClF,OAAO,CA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Data {
|
|
|
56
56
|
onActionMenuOpen?: (item: ConversationItem, trigger: HTMLButtonElement) => void;
|
|
57
57
|
/** Accessible label for the actions trigger button. */
|
|
58
58
|
actionsLabel?: string;
|
|
59
|
+
/** Accessible (visually hidden) label announced for the unread indicator dot. */
|
|
60
|
+
unreadIndicatorLabel?: string;
|
|
59
61
|
/** Typography/class overrides applied to virtual row elements. */
|
|
60
62
|
styles?: RowStyles;
|
|
61
63
|
/** Id of the conversation currently being dragged. `null` when no drag is in progress. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-row.d.ts","sourceRoot":"","sources":["../../src/models/virtual-row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,wBAAwB;IACxB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;IAC5B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0DAA0D;AAC1D,MAAM,WAAW,mBAAmB;IAClC,wBAAwB;IACxB,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;IAC1B,kCAAkC;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,gDAAgD;AAChD,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC;AAE9D,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACxB,wDAAwD;IACxD,oBAAoB,CAAC,EAAE,MAAM,CAAC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AI,CAAC;IACtB,gDAAgD;IAChD,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gDAAgD;IAChD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,4EAA4E;IAC5E,MAAM,EAAE,CACN,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,SAAS,EACzB,OAAO,EAAE,MAAM,GAAG,IAAI,KACnB,IAAI,CAAC;CACX"}
|
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.112",
|
|
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.112",
|
|
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.112",
|
|
28
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.112"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|