@epam/ai-dial-conversation-panel 1.1.0-dev.177 → 1.1.0-dev.178
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.
|
@@ -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,CAkaxD,CAAC"}
|
package/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { PanelEmpty as r, PanelNoResults as i, SearchInput as a, SidebarOrientat
|
|
|
3
3
|
import { Button as c, DIAL_ICON_SIZE as l, DialEllipsisTooltip as u, Dropdown as d, ElementSize as f, GhostIconButton as p, Highlight 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
|
-
import { IconCaretDownFilled as j, IconCaretRightFilled as M, IconClock as N, IconDotsVertical as
|
|
6
|
+
import { IconCaretDownFilled as j, IconCaretRightFilled as M, IconClock as N, IconDotsVertical as P, 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 F(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 I({ 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 R({ 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 H({ 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 ie({ 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 = H({
|
|
104
104
|
cachedBounds: t,
|
|
105
105
|
itemCount: r,
|
|
106
106
|
itemSize: i
|
|
@@ -112,7 +112,7 @@ function V({ 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 H({ 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 U({ 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 U({ 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 W({ 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 G({ containerSize: e, itemSize: t }) {
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
let { height: u = n, width: d = n } =
|
|
194
|
+
function q({ 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 K({ 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 K({ 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 K({ 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(() => H({
|
|
237
237
|
cachedBounds: h,
|
|
238
238
|
itemCount: a,
|
|
239
239
|
itemSize: m
|
|
@@ -241,9 +241,9 @@ function K({ 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 K({ 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 K({ 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 K({ 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 = ie({
|
|
304
304
|
align: t,
|
|
305
305
|
cachedBounds: h,
|
|
306
306
|
containerScrollOffset: n,
|
|
@@ -310,14 +310,14 @@ function K({ 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 K({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
328
328
|
stopIndexVisible: S
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function ae(e) {
|
|
332
332
|
return E(() => e, Object.values(e));
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function J(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 oe(e) {
|
|
339
339
|
return typeof e == "object" && !!e && "getAverageRowHeight" in e && typeof e.getAverageRowHeight == "function";
|
|
340
340
|
}
|
|
341
341
|
var se = "data-react-window-index";
|
|
342
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 =
|
|
343
|
+
let m = ae(u), h = E(() => b(s, J), [s]), [g, _] = O(null), v = oe(l), { getCellBounds: x, getEstimatedSize: C, scrollToIndex: T, startIndexOverscan: D, startIndexVisible: ee, stopIndexOverscan: A, stopIndexVisible: j } = q({
|
|
344
344
|
containerElement: g,
|
|
345
345
|
containerStyle: f,
|
|
346
346
|
defaultContainerSize: n,
|
|
@@ -366,7 +366,7 @@ function ce({ 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;
|
|
@@ -549,7 +549,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
549
549
|
onClick: r,
|
|
550
550
|
type: "button",
|
|
551
551
|
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),
|
|
552
|
-
children: [/* @__PURE__ */ k(
|
|
552
|
+
children: [/* @__PURE__ */ k(te, {
|
|
553
553
|
size: 18,
|
|
554
554
|
stroke: 2,
|
|
555
555
|
className: "shrink-0"
|
|
@@ -597,10 +597,10 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
597
597
|
"aria-hidden": !0
|
|
598
598
|
}), /* @__PURE__ */ k(u, { text: e })]
|
|
599
599
|
});
|
|
600
|
-
}, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: s, actionsLabel: u = "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:
|
|
601
|
-
let [
|
|
602
|
-
|
|
603
|
-
}, [t, s]),
|
|
600
|
+
}, Ce = ({ item: t, isActive: r, onSelectConversation: i, searchQuery: a = "", getActions: o, onActionMenuOpen: s, actionsLabel: u = "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 }) => {
|
|
601
|
+
let [L, ne] = O(!1), R = D(null), re = x((e) => {
|
|
602
|
+
ne(e), e && R.current && s?.(t, R.current);
|
|
603
|
+
}, [t, s]), z = o?.(t) ?? [], B = z.length > 0, V = t.isIconLoading ? /* @__PURE__ */ k(h, {
|
|
604
604
|
variant: g.Circular,
|
|
605
605
|
width: l.LG,
|
|
606
606
|
height: l.LG,
|
|
@@ -612,7 +612,7 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
612
612
|
initialsName: t.iconTooltip ?? "",
|
|
613
613
|
labels: { tooltip: t.iconTooltip },
|
|
614
614
|
styles: { badgeClassName: v }
|
|
615
|
-
}),
|
|
615
|
+
}), H = /* @__PURE__ */ A("span", {
|
|
616
616
|
className: "flex shrink-0 items-center",
|
|
617
617
|
children: [/* @__PURE__ */ k("span", {
|
|
618
618
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
@@ -623,36 +623,36 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
623
623
|
className: "sr-only",
|
|
624
624
|
children: b
|
|
625
625
|
})] })
|
|
626
|
-
}),
|
|
627
|
-
}),
|
|
626
|
+
}), V]
|
|
627
|
+
}), ie = ue(B, L), U = t.showTaskBadge ? /* @__PURE__ */ A("span", {
|
|
628
628
|
className: n("flex h-5 shrink-0 items-center justify-center gap-0.5 rounded-full border pe-2 ps-1", Z.taskBadge, y),
|
|
629
629
|
children: [/* @__PURE__ */ k(N, {
|
|
630
630
|
size: 12,
|
|
631
631
|
"aria-hidden": !0
|
|
632
632
|
}), t.taskBadgeLabel]
|
|
633
|
-
}) : void 0,
|
|
634
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
635
|
-
}, [
|
|
636
|
-
if (!S || !C || !
|
|
633
|
+
}) : void 0, W = S != null, G = x((e) => {
|
|
634
|
+
e.currentTarget.contains(e.relatedTarget) || F?.();
|
|
635
|
+
}, [F]), K = x((e) => {
|
|
636
|
+
if (!S || !C || !I) return;
|
|
637
637
|
e.preventDefault();
|
|
638
638
|
let n = he(e, t.id, C, S);
|
|
639
|
-
|
|
639
|
+
I(t.id, S, n);
|
|
640
640
|
}, [
|
|
641
641
|
t.id,
|
|
642
642
|
C,
|
|
643
643
|
S,
|
|
644
|
-
|
|
645
|
-
]),
|
|
644
|
+
I
|
|
645
|
+
]), q = t.id === w, ae = t.id === T, J = S != null && (E?.has(S) ?? !1), oe = w != null;
|
|
646
646
|
return /* @__PURE__ */ A("li", {
|
|
647
|
-
className: n("group/conversation relative",
|
|
648
|
-
draggable:
|
|
649
|
-
onDragStart:
|
|
650
|
-
onDragEnd:
|
|
651
|
-
onDragOver:
|
|
652
|
-
e.preventDefault(),
|
|
647
|
+
className: n("group/conversation relative", q && "cursor-grabbing opacity-50", ae && J && "rounded", ae && J && Z.dropZoneActive, oe && !q && !J && "cursor-not-allowed"),
|
|
648
|
+
draggable: W || void 0,
|
|
649
|
+
onDragStart: W ? () => j?.(t.id) : void 0,
|
|
650
|
+
onDragEnd: W ? M : void 0,
|
|
651
|
+
onDragOver: W ? (e) => {
|
|
652
|
+
e.preventDefault(), te?.(t.id);
|
|
653
653
|
} : void 0,
|
|
654
|
-
onDragLeave:
|
|
655
|
-
onDrop:
|
|
654
|
+
onDragLeave: W ? G : void 0,
|
|
655
|
+
onDrop: W ? K : void 0,
|
|
656
656
|
children: [/* @__PURE__ */ k("a", {
|
|
657
657
|
href: t.href,
|
|
658
658
|
className: "contents",
|
|
@@ -660,37 +660,37 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
660
660
|
t.href && (e.preventDefault(), i(t.id));
|
|
661
661
|
},
|
|
662
662
|
children: /* @__PURE__ */ k(c, {
|
|
663
|
-
iconBefore:
|
|
663
|
+
iconBefore: H,
|
|
664
664
|
label: /* @__PURE__ */ k(m, {
|
|
665
665
|
text: t.title,
|
|
666
666
|
query: a,
|
|
667
667
|
className: _,
|
|
668
668
|
maxLines: 1
|
|
669
669
|
}),
|
|
670
|
-
iconAfter:
|
|
670
|
+
iconAfter: U,
|
|
671
671
|
textClassName: "min-w-0 flex-1",
|
|
672
672
|
"aria-current": r ? "page" : void 0,
|
|
673
673
|
onClick: t.href ? void 0 : () => i(t.id),
|
|
674
674
|
tabIndex: t.href ? -1 : void 0,
|
|
675
|
-
className: n("h-8 w-full justify-start gap-2 rounded-xl py-2 ps-0",
|
|
675
|
+
className: n("h-8 w-full justify-start gap-2 rounded-xl py-2 ps-0", ie, Z.item, r && Z.itemActive, L && Z.itemActive)
|
|
676
676
|
})
|
|
677
|
-
}),
|
|
678
|
-
className: n("absolute inset-y-0 end-1 flex items-center",
|
|
677
|
+
}), B && /* @__PURE__ */ k("div", {
|
|
678
|
+
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"),
|
|
679
679
|
children: /* @__PURE__ */ k(d, {
|
|
680
|
-
items:
|
|
681
|
-
onOpenChange:
|
|
680
|
+
items: z,
|
|
681
|
+
onOpenChange: re,
|
|
682
682
|
matchReferenceWidth: !1,
|
|
683
683
|
listClassName: "w-[200px]",
|
|
684
684
|
children: /* @__PURE__ */ k(p, {
|
|
685
|
-
ref:
|
|
686
|
-
icon: /* @__PURE__ */ k(
|
|
685
|
+
ref: R,
|
|
686
|
+
icon: /* @__PURE__ */ k(P, {
|
|
687
687
|
size: l.SM,
|
|
688
688
|
className: Z.triggerIcon,
|
|
689
689
|
"aria-hidden": !0
|
|
690
690
|
}),
|
|
691
691
|
size: f.Small,
|
|
692
692
|
"aria-label": u,
|
|
693
|
-
className: n(
|
|
693
|
+
className: n(L && Z.triggerActive)
|
|
694
694
|
})
|
|
695
695
|
})
|
|
696
696
|
})]
|
|
@@ -750,212 +750,212 @@ 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: f, onNewChat: p, styles: m, className: g, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: w, activeFilter: T, onActiveFilterChange: ee }) => {
|
|
754
|
-
let { colors:
|
|
753
|
+
]), Oe = b(({ conversations: e, isLoading: c, isOpen: l, onSelectConversation: u, activeConversationId: d, labels: f, onNewChat: p, styles: m, className: g, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: w, activeFilter: T, onActiveFilterChange: ee, isFilterTabsHidden: j = !1 }) => {
|
|
754
|
+
let { colors: M, typography: N, newChatButton: P } = m ?? {}, { title: te, emptyLabel: F, noResultsLabel: I, loadingLabel: L = "Loading conversations", newChatLabel: ne, searchPlaceholder: R, searchClearLabel: re, filterLabels: z, groupLabels: B, actionsLabel: V, unreadIndicatorLabel: H, closeAriaLabel: ie } = f, [U, W] = O(""), [G, K] = O(X.All);
|
|
755
755
|
S(() => {
|
|
756
|
-
T != null &&
|
|
756
|
+
T != null && K(T);
|
|
757
757
|
}, [T]);
|
|
758
|
-
let [
|
|
759
|
-
|
|
760
|
-
}, []),
|
|
761
|
-
|
|
758
|
+
let [q, ae] = O(() => De), [J, oe] = O(5), se = C(), ue = D(null), fe = D(null), [he, ge] = O(null), [_e, ve] = O(null), [be, Se] = O(null), Ce = D(null), Oe = D(null), ke = x(({ height: e }) => {
|
|
759
|
+
oe(Math.ceil(e / 36 * 2));
|
|
760
|
+
}, []), Ae = x((e) => {
|
|
761
|
+
ae((t) => {
|
|
762
762
|
let n = new Set(t);
|
|
763
763
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
764
764
|
});
|
|
765
|
-
}, []),
|
|
766
|
-
|
|
767
|
-
}, []),
|
|
765
|
+
}, []), je = x(() => {
|
|
766
|
+
Ce.current = null, Oe.current = null, ge(null), ve(null), Se(null);
|
|
767
|
+
}, []), Me = x((t, n) => {
|
|
768
768
|
let r = me(t, pe(n, t), e);
|
|
769
|
-
|
|
770
|
-
}, [e]),
|
|
771
|
-
|
|
772
|
-
}, [
|
|
773
|
-
|
|
774
|
-
}, []),
|
|
775
|
-
|
|
776
|
-
}, []),
|
|
777
|
-
let r =
|
|
778
|
-
|
|
769
|
+
Ce.current = t, Oe.current = r, ge(t), Se(r);
|
|
770
|
+
}, [e]), Ne = x(() => {
|
|
771
|
+
je();
|
|
772
|
+
}, [je]), Pe = x((e) => {
|
|
773
|
+
ve(e);
|
|
774
|
+
}, []), Fe = x(() => {
|
|
775
|
+
ve(null);
|
|
776
|
+
}, []), Ie = x((e, t, n) => {
|
|
777
|
+
let r = Ce.current, i = Oe.current;
|
|
778
|
+
je(), r != null && r !== e && i?.has(t) && w?.({
|
|
779
779
|
draggedId: r,
|
|
780
780
|
targetGroupKey: t,
|
|
781
781
|
afterId: n
|
|
782
782
|
});
|
|
783
|
-
}, [
|
|
784
|
-
"--cp-item-hover":
|
|
785
|
-
"--cp-item-active":
|
|
786
|
-
"--cp-text":
|
|
787
|
-
"--cp-text-secondary":
|
|
788
|
-
"--cp-new-chat-bg":
|
|
789
|
-
"--cp-new-chat-text":
|
|
790
|
-
"--cp-new-chat-focus-outline":
|
|
791
|
-
"--cp-drop-zone-ring":
|
|
792
|
-
"--cp-trigger-bg":
|
|
793
|
-
"--cp-trigger-icon":
|
|
794
|
-
"--cp-trigger-icon-idle":
|
|
795
|
-
"--cp-skeleton-color":
|
|
796
|
-
"--cp-task-badge-border":
|
|
797
|
-
"--cp-task-badge-bg":
|
|
798
|
-
"--cp-task-badge-text":
|
|
799
|
-
"--cp-unread-dot":
|
|
800
|
-
}), Q = E(() => e.filter((e) => Te(e,
|
|
783
|
+
}, [je, w]), Le = t({
|
|
784
|
+
"--cp-item-hover": M?.itemHover,
|
|
785
|
+
"--cp-item-active": M?.itemActive,
|
|
786
|
+
"--cp-text": M?.text,
|
|
787
|
+
"--cp-text-secondary": M?.textSecondary,
|
|
788
|
+
"--cp-new-chat-bg": P?.background,
|
|
789
|
+
"--cp-new-chat-text": P?.text,
|
|
790
|
+
"--cp-new-chat-focus-outline": P?.focusOutline,
|
|
791
|
+
"--cp-drop-zone-ring": M?.dropZoneRing,
|
|
792
|
+
"--cp-trigger-bg": M?.triggerBackground,
|
|
793
|
+
"--cp-trigger-icon": M?.triggerIcon,
|
|
794
|
+
"--cp-trigger-icon-idle": M?.triggerIconIdle,
|
|
795
|
+
"--cp-skeleton-color": M?.skeletonColor,
|
|
796
|
+
"--cp-task-badge-border": M?.taskBadgeBorder,
|
|
797
|
+
"--cp-task-badge-bg": M?.taskBadgeBackground,
|
|
798
|
+
"--cp-task-badge-text": M?.taskBadgeText,
|
|
799
|
+
"--cp-unread-dot": M?.unreadDot
|
|
800
|
+
}), Q = E(() => e.filter((e) => Te(e, G) && Ee(e, U)), [
|
|
801
801
|
e,
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
]),
|
|
802
|
+
G,
|
|
803
|
+
U
|
|
804
|
+
]), Re = E(() => Q.filter((e) => e.isPinned), [Q]), ze = E(() => Q.filter((e) => !e.isPinned && e.source !== X.Shared && e.source !== X.Organization), [Q]), Be = E(() => Q.filter((e) => !e.isPinned && e.source === X.Shared), [Q]), Ve = E(() => Q.filter((e) => !e.isPinned && e.source === X.Organization), [Q]), He = E(() => [
|
|
805
805
|
{
|
|
806
806
|
key: X.Pinned,
|
|
807
|
-
label:
|
|
808
|
-
items:
|
|
807
|
+
label: B?.pinned ?? "Pinned",
|
|
808
|
+
items: Re
|
|
809
809
|
},
|
|
810
810
|
{
|
|
811
811
|
key: X.MyChats,
|
|
812
|
-
label:
|
|
813
|
-
items:
|
|
812
|
+
label: B?.myChats ?? "My chats",
|
|
813
|
+
items: ze
|
|
814
814
|
},
|
|
815
815
|
{
|
|
816
816
|
key: X.Shared,
|
|
817
|
-
label:
|
|
818
|
-
items:
|
|
817
|
+
label: B?.shared ?? "Shared",
|
|
818
|
+
items: Be
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
821
|
key: X.Organization,
|
|
822
|
-
label:
|
|
823
|
-
items:
|
|
822
|
+
label: B?.organization ?? "Organization",
|
|
823
|
+
items: Ve
|
|
824
824
|
}
|
|
825
825
|
], [
|
|
826
|
-
|
|
827
|
-
Le,
|
|
826
|
+
B,
|
|
828
827
|
Re,
|
|
829
828
|
ze,
|
|
830
|
-
Be
|
|
829
|
+
Be,
|
|
830
|
+
Ve
|
|
831
831
|
]), $ = E(() => {
|
|
832
832
|
let e = [];
|
|
833
|
-
for (let t of
|
|
833
|
+
for (let t of He) if (t.items.length !== 0 && (e.push({
|
|
834
834
|
kind: Y.Header,
|
|
835
835
|
groupKey: t.key,
|
|
836
836
|
label: t.label
|
|
837
|
-
}),
|
|
837
|
+
}), q.has(t.key))) for (let n of t.items) e.push({
|
|
838
838
|
kind: Y.Item,
|
|
839
839
|
item: n,
|
|
840
840
|
groupKey: t.key
|
|
841
841
|
});
|
|
842
842
|
return e;
|
|
843
|
-
}, [
|
|
843
|
+
}, [He, q]);
|
|
844
844
|
S(() => {
|
|
845
|
-
if (!d ||
|
|
845
|
+
if (!d || fe.current === d) return;
|
|
846
846
|
let e = $.findIndex((e) => e.kind === Y.Item && e.item.id === d);
|
|
847
|
-
e >= 0 && (
|
|
847
|
+
e >= 0 && (ue.current?.scrollToRow({
|
|
848
848
|
index: e,
|
|
849
849
|
align: "smart",
|
|
850
850
|
behavior: "smooth"
|
|
851
|
-
}),
|
|
851
|
+
}), fe.current = d);
|
|
852
852
|
}, [
|
|
853
853
|
d,
|
|
854
|
-
|
|
855
|
-
|
|
854
|
+
He,
|
|
855
|
+
q,
|
|
856
856
|
$
|
|
857
857
|
]);
|
|
858
|
-
let
|
|
858
|
+
let Ue = E(() => ({
|
|
859
859
|
rows: $,
|
|
860
|
-
expandedGroups:
|
|
861
|
-
onToggleGroup:
|
|
862
|
-
listId:
|
|
860
|
+
expandedGroups: q,
|
|
861
|
+
onToggleGroup: Ae,
|
|
862
|
+
listId: se,
|
|
863
863
|
activeConversationId: d,
|
|
864
|
-
searchQuery:
|
|
864
|
+
searchQuery: U,
|
|
865
865
|
onSelectConversation: u,
|
|
866
866
|
getActions: _,
|
|
867
867
|
onActionMenuOpen: v,
|
|
868
|
-
actionsLabel:
|
|
869
|
-
unreadIndicatorLabel:
|
|
868
|
+
actionsLabel: V,
|
|
869
|
+
unreadIndicatorLabel: H,
|
|
870
870
|
styles: {
|
|
871
|
-
groupHeaderClassName:
|
|
872
|
-
itemTitleClassName:
|
|
871
|
+
groupHeaderClassName: N?.groupHeaderClassName,
|
|
872
|
+
itemTitleClassName: N?.itemTitleClassName,
|
|
873
873
|
itemIconBadgeClassName: m?.itemIconBadgeClassName,
|
|
874
874
|
taskBadgeClassName: m?.taskBadgeClassName
|
|
875
875
|
},
|
|
876
|
-
draggingId:
|
|
877
|
-
dragOverId:
|
|
878
|
-
allowedDropGroups:
|
|
879
|
-
onDragStart: (e) =>
|
|
880
|
-
onDragEnd:
|
|
881
|
-
onDragOver:
|
|
882
|
-
onDragLeave:
|
|
883
|
-
onDrop:
|
|
876
|
+
draggingId: he,
|
|
877
|
+
dragOverId: _e,
|
|
878
|
+
allowedDropGroups: be,
|
|
879
|
+
onDragStart: (e) => Me(e, $),
|
|
880
|
+
onDragEnd: Ne,
|
|
881
|
+
onDragOver: Pe,
|
|
882
|
+
onDragLeave: Fe,
|
|
883
|
+
onDrop: Ie
|
|
884
884
|
}), [
|
|
885
885
|
$,
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
886
|
+
q,
|
|
887
|
+
Ae,
|
|
888
|
+
se,
|
|
889
889
|
d,
|
|
890
|
-
|
|
890
|
+
U,
|
|
891
891
|
u,
|
|
892
892
|
_,
|
|
893
893
|
v,
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
894
|
+
V,
|
|
895
|
+
H,
|
|
896
|
+
N?.groupHeaderClassName,
|
|
897
|
+
N?.itemTitleClassName,
|
|
898
898
|
m?.itemIconBadgeClassName,
|
|
899
899
|
m?.taskBadgeClassName,
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
je,
|
|
900
|
+
he,
|
|
901
|
+
_e,
|
|
902
|
+
be,
|
|
904
903
|
Me,
|
|
905
904
|
Ne,
|
|
906
905
|
Pe,
|
|
907
|
-
Fe
|
|
908
|
-
|
|
906
|
+
Fe,
|
|
907
|
+
Ie
|
|
908
|
+
]), We = e.length === 0, Ge = e.length > 0 && Q.length === 0;
|
|
909
909
|
return /* @__PURE__ */ A(s, {
|
|
910
910
|
isOpen: l,
|
|
911
911
|
orientation: o.Left,
|
|
912
912
|
title: te,
|
|
913
913
|
labels: {
|
|
914
914
|
ariaLabel: te,
|
|
915
|
-
closeLabel:
|
|
915
|
+
closeLabel: ie
|
|
916
916
|
},
|
|
917
917
|
onClose: y,
|
|
918
918
|
styles: {
|
|
919
919
|
colors: {
|
|
920
|
-
background:
|
|
921
|
-
border:
|
|
920
|
+
background: M?.background,
|
|
921
|
+
border: M?.border
|
|
922
922
|
},
|
|
923
|
-
typography: { fontClassName:
|
|
923
|
+
typography: { fontClassName: N?.fontClassName },
|
|
924
924
|
bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
|
|
925
|
-
cssVars:
|
|
926
|
-
titleClassName:
|
|
925
|
+
cssVars: Le,
|
|
926
|
+
titleClassName: N?.fontClassName,
|
|
927
927
|
headerClassName: "h-[64px]",
|
|
928
928
|
className: n(l ? "w-[324px] mobile:w-full" : "w-0", g)
|
|
929
929
|
},
|
|
930
930
|
rightActions: b,
|
|
931
931
|
children: [
|
|
932
932
|
/* @__PURE__ */ k(xe, {
|
|
933
|
-
label:
|
|
933
|
+
label: ne,
|
|
934
934
|
onClick: p,
|
|
935
|
-
labelClassName:
|
|
936
|
-
colors:
|
|
935
|
+
labelClassName: N?.newChatLabelClassName,
|
|
936
|
+
colors: P
|
|
937
937
|
}),
|
|
938
938
|
/* @__PURE__ */ k(a, {
|
|
939
|
-
value:
|
|
940
|
-
onChange:
|
|
939
|
+
value: U,
|
|
940
|
+
onChange: W,
|
|
941
941
|
labels: {
|
|
942
|
-
placeholder:
|
|
943
|
-
clearLabel:
|
|
942
|
+
placeholder: R,
|
|
943
|
+
clearLabel: re
|
|
944
944
|
}
|
|
945
945
|
}),
|
|
946
|
-
/* @__PURE__ */ k(ye, {
|
|
947
|
-
activeTab:
|
|
948
|
-
labels:
|
|
946
|
+
!j && /* @__PURE__ */ k(ye, {
|
|
947
|
+
activeTab: G,
|
|
948
|
+
labels: z,
|
|
949
949
|
onChange: (e) => {
|
|
950
|
-
|
|
950
|
+
K(e), ee?.(e);
|
|
951
951
|
},
|
|
952
|
-
tabClassName:
|
|
952
|
+
tabClassName: N?.tabClassName
|
|
953
953
|
}),
|
|
954
954
|
/* @__PURE__ */ k("span", {
|
|
955
955
|
role: "status",
|
|
956
956
|
"aria-live": "polite",
|
|
957
957
|
className: "sr-only",
|
|
958
|
-
children: c ?
|
|
958
|
+
children: c ? L : We ? F : Ge ? I : ""
|
|
959
959
|
}),
|
|
960
960
|
/* @__PURE__ */ k("div", {
|
|
961
961
|
className: "flex-1 overflow-hidden px-2 py-1",
|
|
@@ -968,17 +968,17 @@ var Y = /* @__PURE__ */ function(e) {
|
|
|
968
968
|
active: !0,
|
|
969
969
|
color: Z.skeletonColor
|
|
970
970
|
}, t))
|
|
971
|
-
}) :
|
|
972
|
-
listRef:
|
|
973
|
-
id:
|
|
971
|
+
}) : We ? /* @__PURE__ */ k(r, { label: F }) : Ge ? /* @__PURE__ */ k(i, { label: I }) : /* @__PURE__ */ k(ce, {
|
|
972
|
+
listRef: ue,
|
|
973
|
+
id: se,
|
|
974
974
|
role: "list",
|
|
975
975
|
style: { height: "100%" },
|
|
976
976
|
rowComponent: we,
|
|
977
977
|
rowCount: $.length,
|
|
978
978
|
rowHeight: de,
|
|
979
|
-
overscanCount:
|
|
980
|
-
onResize:
|
|
981
|
-
rowProps:
|
|
979
|
+
overscanCount: J,
|
|
980
|
+
onResize: ke,
|
|
981
|
+
rowProps: Ue
|
|
982
982
|
})
|
|
983
983
|
})
|
|
984
984
|
]
|
package/models/panel-props.d.ts
CHANGED
|
@@ -178,6 +178,12 @@ export interface ConversationPanelProps {
|
|
|
178
178
|
activeFilter?: FilterTab;
|
|
179
179
|
/** Called when the active filter tab changes. */
|
|
180
180
|
onActiveFilterChange?: (tab: FilterTab) => void;
|
|
181
|
+
/**
|
|
182
|
+
* When `true`, the filter tabs are not rendered and the list stays on
|
|
183
|
+
* whichever tab is active — `FilterTab.All` unless `activeFilter` says
|
|
184
|
+
* otherwise. Defaults to `false`.
|
|
185
|
+
*/
|
|
186
|
+
isFilterTabsHidden?: boolean;
|
|
181
187
|
}
|
|
182
188
|
/** Describes a completed drag-and-drop move in the conversation panel. */
|
|
183
189
|
export interface ConversationMove {
|
|
@@ -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;I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AI,CAAC;IACtD,gGAAgG;IAChG,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,iDAAiD;IACjD,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IAChD;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;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.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.178",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
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.
|
|
27
|
-
"@epam/ai-dial-sidebar": "1.1.0-dev.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.178",
|
|
27
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.178"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|