@epam/ai-dial-conversation-panel 1.0.11 → 1.0.12
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":"AAYA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyBlE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ConversationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationPanel/ConversationPanel.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyBlE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA4axD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationRow.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationRow/ConversationRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAEV,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAUL,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;AAK3D,mCAAmC;AACnC,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,IAAI,EAAE,gBAAgB,CAAC;IACvB,qDAAqD;IACrD,QAAQ,EAAE,O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,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":"AAAA,OAAO,EAEL,SAAS,EAEV,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAUL,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;AAK3D,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,4IAA4I;IAC5I,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yGAAyG;IACzG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,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,CA0NpD,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.
|
|
1
|
+
._button_1vksy_1{background:var(--cp-new-chat-bg,var(--bg-control-neutral,#fcfcfc));color:var(--cp-new-chat-text,var(--text-accent,#1d4ed8));border-radius:var(--radius-control,9999px)}._button_1vksy_1:focus-visible{outline:1px solid var(--cp-new-chat-focus-outline,var(--stroke-focus-black,#161b2d));outline-offset:0}._item_4o50q_2{color:var(--cp-text,var(--text-primary,#161b2d));border-radius:var(--cp-row-radius,.75rem)}._item_4o50q_2:hover{background:var(--cp-item-hover,var(--bg-control-accent-alpha,#2764d90f))}._item_4o50q_2._itemActive_4o50q_15{background:var(--cp-item-active,var(--bg-control-accent-alpha,#2764d90f));color:var(--cp-text,var(--text-primary,#161b2d))}._groupHeader_4o50q_20{color:var(--cp-text-secondary,var(--text-tertiary,#848e9c))}._taskBadge_4o50q_24{border-color:var(--cp-task-badge-border,var(--stroke-tertiary,#e0e6f0));background:var(--cp-task-badge-bg,var(--bg-layer-base,#f5f7fa));color:var(--cp-task-badge-text,var(--text-secondary,#57647a))}._dropZoneActive_4o50q_30{--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_4o50q_35{background:var(--cp-trigger-bg,var(--bg-control-accent-alpha-active,#2764d933))}._triggerActive_4o50q_35 ._triggerIcon_4o50q_38{color:var(--cp-trigger-icon,var(--text-accent,#1d4ed8))}._triggerIcon_4o50q_38{color:var(--cp-trigger-icon-idle,var(--text-secondary,#57647a))}._unreadDot_4o50q_46{background:var(--cp-unread-dot,var(--text-accent,#1d4ed8))}._search_4o50q_54{border-radius:var(--cp-search-radius,9999px)}._root_11lia_1{background:var(--cp-transfer-queue-bg,var(--bg-layer-base,#f5f7fa))}._text_11lia_5{color:var(--cp-transfer-queue-text,var(--text-primary,#161b2d))}._textSecondary_11lia_9{color:var(--cp-transfer-queue-text-secondary,var(--text-secondary,#57647a))}._divider_11lia_13{border-block-end:1px solid var(--cp-transfer-queue-divider,var(--stroke-tertiary,#e0e6f0))}._successIcon_11lia_17{color:var(--cp-transfer-queue-success-icon,var(--text-accent-primary,#2764d9))}._errorIcon_11lia_21{color:var(--cp-transfer-queue-error-icon,var(--text-error,#ae2f2f))}._failureCount_11lia_25{background:var(--cp-transfer-queue-failure-count-bg,var(--bg-control-error,#ae2f2f));color:var(--cp-transfer-queue-failure-count-text,var(--text-control-permanent,#fcfcfc))}._warningIcon_11lia_35{color:var(--cp-transfer-queue-warning-icon,var(--text-warning-icon,#eec840))}
|
|
2
2
|
/*$vite$:1*/
|
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConversationTransferJobStatus as e, DeploymentIcon as t, FilterTab as n, buildCssVars as r, getUtf8ByteLength as i, mergeClasses as a, sanitizeConversationName as o, stripTrailingDots as s } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { PanelEmpty as c, PanelNoResults as l, SidebarOrientation as u, SidebarPanel as d } from "@epam/ai-dial-sidebar";
|
|
3
|
-
import { Button as f, ButtonVariant as p, ConfirmationPopup as m, ConfirmationPopupVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, Dropdown as v, ElementSize as y, EllipsisTooltip as b, GhostIconButton as x, Highlight as S, Input as C, Popup as w, PopupSize as T, ProgressBar as E, Search as D, Skeleton as O, SkeletonVariant as ee, Spinner as k, Tag as A, TagAppearance as j, Tooltip as te, mergeClasses as
|
|
4
|
-
import { createElement as
|
|
3
|
+
import { Button as f, ButtonVariant as p, ConfirmationPopup as m, ConfirmationPopupVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, Dropdown as v, ElementSize as y, EllipsisTooltip as b, GhostIconButton as x, Highlight as S, Input as C, Popup as w, PopupSize as T, ProgressBar as E, Search as D, Skeleton as O, SkeletonVariant as ee, Spinner as k, Tag as A, TagAppearance as j, Tooltip as te, mergeClasses as ne } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { createElement as M, memo as N, useCallback as P, useEffect as F, useId as re, useImperativeHandle as ie, useLayoutEffect as I, useMemo as L, useRef as R, useState as z } from "react";
|
|
5
5
|
import { Fragment as ae, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
6
|
-
import { IconAlertCircleFilled as H, IconAlertTriangleFilled as
|
|
6
|
+
import { IconAlertCircleFilled as H, IconAlertTriangleFilled as oe, IconCaretDownFilled as U, IconCaretRightFilled as se, IconCheck as ce, IconChevronDown as le, IconChevronUp as W, IconClock as ue, IconDotsVertical as de, IconFile as fe, IconFileZip as pe, IconJson as me, IconPlus as he, IconSparkles as ge, IconX as _e } from "@tabler/icons-react";
|
|
7
7
|
//#region ../../node_modules/react-window/dist/react-window.js
|
|
8
|
-
var G = typeof window < "u" ?
|
|
8
|
+
var G = typeof window < "u" ? I : F;
|
|
9
9
|
function ve(e) {
|
|
10
10
|
if (e !== void 0) switch (typeof e) {
|
|
11
11
|
case "number": return e;
|
|
@@ -191,7 +191,7 @@ function Oe({ containerSize: e, itemSize: t }) {
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0, direction: r, isRtl: i = !1, itemCount: a, itemProps: o, itemSize: s, onResize: c, overscanCount: l }) {
|
|
195
195
|
let { height: u = n, width: d = n } = ye({
|
|
196
196
|
defaultHeight: r === "vertical" ? n : void 0,
|
|
197
197
|
defaultWidth: r === "horizontal" ? n : void 0,
|
|
@@ -205,7 +205,7 @@ function Y({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
205
205
|
containerSize: p,
|
|
206
206
|
itemSize: s
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
I(() => {
|
|
209
209
|
if (typeof c == "function") {
|
|
210
210
|
let e = f.current;
|
|
211
211
|
(e.height !== u || e.width !== d) && (c({
|
|
@@ -328,7 +328,7 @@ function Y({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0
|
|
|
328
328
|
stopIndexVisible: x
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Y(e) {
|
|
332
332
|
return L(() => e, Object.values(e));
|
|
333
333
|
}
|
|
334
334
|
function Ae(e, t) {
|
|
@@ -340,7 +340,7 @@ function je(e) {
|
|
|
340
340
|
}
|
|
341
341
|
var Me = "data-react-window-index";
|
|
342
342
|
function Ne({ 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 = Y(u), h = L(() => N(s, Ae), [s]), [g, _] = z(null), v = je(l), { getCellBounds: y, getEstimatedSize: b, scrollToIndex: x, startIndexOverscan: S, startIndexVisible: C, stopIndexOverscan: w, stopIndexVisible: T } = ke({
|
|
344
344
|
containerElement: g,
|
|
345
345
|
containerStyle: f,
|
|
346
346
|
defaultContainerSize: n,
|
|
@@ -351,7 +351,7 @@ function Ne({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
351
351
|
onResize: i,
|
|
352
352
|
overscanCount: o
|
|
353
353
|
});
|
|
354
|
-
|
|
354
|
+
ie(r, () => ({
|
|
355
355
|
get element() {
|
|
356
356
|
return g;
|
|
357
357
|
},
|
|
@@ -399,7 +399,7 @@ function Ne({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
399
399
|
let e = [];
|
|
400
400
|
if (c > 0) for (let t = S; t <= w; t++) {
|
|
401
401
|
let n = y(t);
|
|
402
|
-
e.push(/* @__PURE__ */
|
|
402
|
+
e.push(/* @__PURE__ */ M(h, {
|
|
403
403
|
...m,
|
|
404
404
|
ariaAttributes: {
|
|
405
405
|
"aria-posinset": t + 1,
|
|
@@ -434,7 +434,7 @@ function Ne({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
434
434
|
zIndex: -1
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
|
-
return
|
|
437
|
+
return M(d, {
|
|
438
438
|
role: "list",
|
|
439
439
|
...p,
|
|
440
440
|
className: t,
|
|
@@ -452,25 +452,25 @@ function Ne({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
|
|
|
452
452
|
//#region src/types/virtual-row.ts
|
|
453
453
|
var X = /* @__PURE__ */ function(e) {
|
|
454
454
|
return e.Header = "header", e.Item = "item", e;
|
|
455
|
-
}({}), Pe = (e) => `${60 + e * 23 % 35}%`, Fe = (e, t) => e ? t ? "pe-9" : "pe-2 group-hover/conversation:pe-9" : "pe-3", Ie = (e, t) => t.rows[e].kind === X.Item ? 36 : e === 0 ? 24 : 56,
|
|
455
|
+
}({}), Pe = (e) => `${60 + e * 23 % 35}%`, Fe = (e, t) => e ? t ? "pe-9" : "pe-2 group-hover/conversation:pe-9" : "pe-3", Ie = (e, t) => t.rows[e].kind === X.Item ? 36 : e === 0 ? 24 : 56, Le = (e) => {
|
|
456
456
|
switch (e) {
|
|
457
457
|
case n.Shared: return n.Shared;
|
|
458
458
|
case n.Organization: return n.Organization;
|
|
459
459
|
default: return n.MyChats;
|
|
460
460
|
}
|
|
461
|
-
},
|
|
461
|
+
}, Re = (e, t) => {
|
|
462
462
|
let n = null;
|
|
463
463
|
for (let r of e) if (r.kind === X.Header) n = r.groupKey;
|
|
464
464
|
else if (r.item.id === t) return n;
|
|
465
465
|
return null;
|
|
466
|
-
},
|
|
466
|
+
}, ze = (e, t, r) => {
|
|
467
467
|
let i = /* @__PURE__ */ new Set();
|
|
468
468
|
if (t != null && i.add(t), t === n.Pinned) {
|
|
469
469
|
let t = r.find((t) => t.id === e);
|
|
470
|
-
t && i.add(
|
|
470
|
+
t && i.add(Le(t.source));
|
|
471
471
|
} else i.add(n.Pinned);
|
|
472
472
|
return i;
|
|
473
|
-
},
|
|
473
|
+
}, Z = (e, t, n, r) => {
|
|
474
474
|
let i = e.currentTarget.getBoundingClientRect();
|
|
475
475
|
if (e.clientY >= i.top + i.height / 2) return t;
|
|
476
476
|
let a = null, o = !1;
|
|
@@ -506,9 +506,9 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
506
506
|
appearance: j.Selectable,
|
|
507
507
|
selected: e === i,
|
|
508
508
|
onClick: () => n(i),
|
|
509
|
-
className:
|
|
509
|
+
className: ne("flex-1 justify-center rounded-full", r)
|
|
510
510
|
}, i))
|
|
511
|
-
})), He = { button: "
|
|
511
|
+
})), He = { button: "_button_1vksy_1" }, Ue = N(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i }) => /* @__PURE__ */ B("div", {
|
|
512
512
|
className: "px-3 py-2",
|
|
513
513
|
style: r({
|
|
514
514
|
"--cp-new-chat-bg": i?.background,
|
|
@@ -518,7 +518,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
518
518
|
children: /* @__PURE__ */ V("button", {
|
|
519
519
|
onClick: t,
|
|
520
520
|
type: "button",
|
|
521
|
-
className: a("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2
|
|
521
|
+
className: a("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", He.button),
|
|
522
522
|
children: [/* @__PURE__ */ B(he, {
|
|
523
523
|
size: 18,
|
|
524
524
|
stroke: _,
|
|
@@ -530,14 +530,15 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
530
530
|
})
|
|
531
531
|
})), Q = {
|
|
532
532
|
skeletonColor: "var(--cp-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
533
|
-
item: "
|
|
534
|
-
itemActive: "
|
|
535
|
-
groupHeader: "
|
|
536
|
-
taskBadge: "
|
|
537
|
-
dropZoneActive: "
|
|
538
|
-
triggerActive: "
|
|
539
|
-
triggerIcon: "
|
|
540
|
-
unreadDot: "
|
|
533
|
+
item: "_item_4o50q_2",
|
|
534
|
+
itemActive: "_itemActive_4o50q_15",
|
|
535
|
+
groupHeader: "_groupHeader_4o50q_20",
|
|
536
|
+
taskBadge: "_taskBadge_4o50q_24",
|
|
537
|
+
dropZoneActive: "_dropZoneActive_4o50q_30",
|
|
538
|
+
triggerActive: "_triggerActive_4o50q_35",
|
|
539
|
+
triggerIcon: "_triggerIcon_4o50q_38",
|
|
540
|
+
unreadDot: "_unreadDot_4o50q_46",
|
|
541
|
+
search: "_search_4o50q_54"
|
|
541
542
|
}, We = ({ label: e, isExpanded: t, onToggle: n, listId: r, className: i = "dial-tiny-lead-text", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: l, onDrop: u }) => {
|
|
542
543
|
let d = o != null;
|
|
543
544
|
return /* @__PURE__ */ V("button", {
|
|
@@ -555,7 +556,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
555
556
|
d && (e.preventDefault(), u?.(o, o, null));
|
|
556
557
|
} : void 0,
|
|
557
558
|
className: a("flex h-6 w-full items-center gap-1 rounded py-1 pe-3 text-start", i, Q.groupHeader, s && Q.dropZoneActive),
|
|
558
|
-
children: [t ? /* @__PURE__ */ B(
|
|
559
|
+
children: [t ? /* @__PURE__ */ B(U, {
|
|
559
560
|
size: 12,
|
|
560
561
|
className: "shrink-0",
|
|
561
562
|
"aria-hidden": !0
|
|
@@ -566,8 +567,8 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
566
567
|
}), /* @__PURE__ */ B(b, { text: e })]
|
|
567
568
|
});
|
|
568
569
|
}, Ge = ({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", itemIconBadgeClassName: u, taskBadgeClassName: d = "dial-caption-lead-semi-text", unreadIndicatorLabel: p = "Unread", rowGroupKey: m, rows: h, draggingId: b, dragOverId: C, allowedDropGroups: w, onDragStart: T, onDragEnd: E, onDragOver: D, onDragLeave: k, onDrop: A }) => {
|
|
569
|
-
let [j, te] = z(!1),
|
|
570
|
-
te(t), t &&
|
|
570
|
+
let [j, te] = z(!1), ne = R(null), M = P((t) => {
|
|
571
|
+
te(t), t && ne.current && s?.(e, ne.current);
|
|
571
572
|
}, [e, s]), N = o?.(e) ?? [], F = N.length > 0, re = e.isIconLoading ? /* @__PURE__ */ B(O, {
|
|
572
573
|
variant: ee.Circular,
|
|
573
574
|
width: g.LG,
|
|
@@ -580,7 +581,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
580
581
|
initialsName: e.iconTooltip ?? "",
|
|
581
582
|
labels: { tooltip: e.iconTooltip },
|
|
582
583
|
styles: { badgeClassName: u }
|
|
583
|
-
}),
|
|
584
|
+
}), ie = /* @__PURE__ */ V("span", {
|
|
584
585
|
className: "flex shrink-0 items-center",
|
|
585
586
|
children: [/* @__PURE__ */ B("span", {
|
|
586
587
|
className: "relative flex size-3 shrink-0 items-center justify-center",
|
|
@@ -592,36 +593,36 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
592
593
|
children: p
|
|
593
594
|
})] })
|
|
594
595
|
}), re]
|
|
595
|
-
}),
|
|
596
|
+
}), I = Fe(F, j), L = e.showTaskBadge ? /* @__PURE__ */ V("span", {
|
|
596
597
|
className: a("flex h-5 shrink-0 items-center justify-center gap-0.5 rounded-full border pe-2 ps-1", Q.taskBadge, d),
|
|
597
598
|
children: [/* @__PURE__ */ B(ue, {
|
|
598
599
|
size: 12,
|
|
599
600
|
"aria-hidden": !0,
|
|
600
601
|
stroke: _
|
|
601
602
|
}), e.taskBadgeLabel]
|
|
602
|
-
}) : void 0, H = m != null,
|
|
603
|
+
}) : void 0, H = m != null, oe = P((e) => {
|
|
603
604
|
e.currentTarget.contains(e.relatedTarget) || k?.();
|
|
604
|
-
}, [k]),
|
|
605
|
+
}, [k]), U = P((t) => {
|
|
605
606
|
if (!m || !h || !A) return;
|
|
606
607
|
t.preventDefault();
|
|
607
|
-
let n =
|
|
608
|
+
let n = Z(t, e.id, h, m);
|
|
608
609
|
A(e.id, m, n);
|
|
609
610
|
}, [
|
|
610
611
|
e.id,
|
|
611
612
|
h,
|
|
612
613
|
m,
|
|
613
614
|
A
|
|
614
|
-
]), se = e.id === b, ce = e.id === C,
|
|
615
|
+
]), se = e.id === b, ce = e.id === C, le = m != null && (w?.has(m) ?? !1), W = b != null;
|
|
615
616
|
return /* @__PURE__ */ V("li", {
|
|
616
|
-
className: a("group/conversation relative", se && "cursor-grabbing opacity-50", ce &&
|
|
617
|
+
className: a("group/conversation relative", se && "cursor-grabbing opacity-50", ce && le && "rounded", ce && le && Q.dropZoneActive, W && !se && !le && "cursor-not-allowed"),
|
|
617
618
|
draggable: H || void 0,
|
|
618
619
|
onDragStart: H ? () => T?.(e.id) : void 0,
|
|
619
620
|
onDragEnd: H ? E : void 0,
|
|
620
621
|
onDragOver: H ? (t) => {
|
|
621
622
|
t.preventDefault(), D?.(e.id);
|
|
622
623
|
} : void 0,
|
|
623
|
-
onDragLeave: H ?
|
|
624
|
-
onDrop: H ?
|
|
624
|
+
onDragLeave: H ? oe : void 0,
|
|
625
|
+
onDrop: H ? U : void 0,
|
|
625
626
|
children: [/* @__PURE__ */ B("a", {
|
|
626
627
|
href: e.href,
|
|
627
628
|
className: "contents",
|
|
@@ -629,7 +630,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
629
630
|
e.href && (t.preventDefault(), r(e.id));
|
|
630
631
|
},
|
|
631
632
|
children: /* @__PURE__ */ B(f, {
|
|
632
|
-
iconBefore:
|
|
633
|
+
iconBefore: ie,
|
|
633
634
|
label: /* @__PURE__ */ B(S, {
|
|
634
635
|
text: e.title,
|
|
635
636
|
query: i,
|
|
@@ -641,17 +642,17 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
641
642
|
"aria-current": n ? "page" : void 0,
|
|
642
643
|
onClick: e.href ? void 0 : () => r(e.id),
|
|
643
644
|
tabIndex: e.href ? -1 : void 0,
|
|
644
|
-
className: a("h-8 w-full justify-start gap-2
|
|
645
|
+
className: a("h-8 w-full justify-start gap-2 py-2 ps-0 after:pointer-events-none", I, Q.item, n && Q.itemActive, j && Q.itemActive)
|
|
645
646
|
})
|
|
646
647
|
}), F && /* @__PURE__ */ B("div", {
|
|
647
648
|
className: a("absolute inset-y-0 end-1 flex items-center", j ? "opacity-100" : "opacity-0 group-focus-within/conversation:opacity-100 group-hover/conversation:opacity-100"),
|
|
648
649
|
children: /* @__PURE__ */ B(v, {
|
|
649
650
|
items: N,
|
|
650
|
-
onOpenChange:
|
|
651
|
+
onOpenChange: M,
|
|
651
652
|
matchReferenceWidth: !1,
|
|
652
653
|
listClassName: "w-[200px]",
|
|
653
654
|
children: /* @__PURE__ */ B(x, {
|
|
654
|
-
ref:
|
|
655
|
+
ref: ne,
|
|
655
656
|
icon: /* @__PURE__ */ B(de, {
|
|
656
657
|
size: g.SM,
|
|
657
658
|
className: Q.triggerIcon,
|
|
@@ -721,38 +722,38 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
721
722
|
n.Shared,
|
|
722
723
|
n.Organization
|
|
723
724
|
]), Xe = N(({ conversations: e, isLoading: t, isOpen: i, onSelectConversation: o, activeConversationId: s, labels: f, onNewChat: p, styles: m, className: h, getActions: g, onActionMenuOpen: _, onToggle: v, headerActions: y, onMoveConversation: b, activeFilter: x, onActiveFilterChange: S, isFilterTabsHidden: C = !1 }) => {
|
|
724
|
-
let { colors: w, typography: T, newChatButton: E } = m ?? {}, { title:
|
|
725
|
+
let { colors: w, typography: T, newChatButton: E, searchWrapperClassName: ee } = m ?? {}, { title: k, emptyLabel: A, noResultsLabel: j, loadingLabel: te = "Loading conversations", newChatLabel: ne, searchPlaceholder: M, searchClearLabel: N, filterLabels: ie, groupLabels: I, actionsLabel: ae, unreadIndicatorLabel: H, closeAriaLabel: oe } = f, [U, se] = z(""), [ce, le] = z(n.All);
|
|
725
726
|
F(() => {
|
|
726
|
-
x != null &&
|
|
727
|
+
x != null && le(x);
|
|
727
728
|
}, [x]);
|
|
728
|
-
let [W,
|
|
729
|
-
|
|
730
|
-
}, []), Se = P((e) => {
|
|
731
|
-
oe(e ?? "");
|
|
729
|
+
let [W, ue] = z(() => Ye), [de, fe] = z(5), pe = re(), me = R(null), he = R(null), [ge, _e] = z(null), [G, ve] = z(null), [ye, be] = z(null), K = R(null), xe = R(null), Se = P(({ height: e }) => {
|
|
730
|
+
fe(Math.ceil(e / 36 * 2));
|
|
732
731
|
}, []), q = P((e) => {
|
|
733
|
-
|
|
732
|
+
se(e ?? "");
|
|
733
|
+
}, []), J = P((e) => {
|
|
734
|
+
ue((t) => {
|
|
734
735
|
let n = new Set(t);
|
|
735
736
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
736
737
|
});
|
|
737
|
-
}, []),
|
|
738
|
-
|
|
739
|
-
}, []),
|
|
740
|
-
let r =
|
|
741
|
-
|
|
742
|
-
}, [e]),
|
|
743
|
-
|
|
744
|
-
}, [
|
|
745
|
-
|
|
746
|
-
}, []),
|
|
747
|
-
|
|
748
|
-
}, []),
|
|
749
|
-
let r =
|
|
750
|
-
|
|
738
|
+
}, []), Ce = P(() => {
|
|
739
|
+
K.current = null, xe.current = null, _e(null), ve(null), be(null);
|
|
740
|
+
}, []), we = P((t, n) => {
|
|
741
|
+
let r = ze(t, Re(n, t), e);
|
|
742
|
+
K.current = t, xe.current = r, _e(t), be(r);
|
|
743
|
+
}, [e]), Te = P(() => {
|
|
744
|
+
Ce();
|
|
745
|
+
}, [Ce]), Ee = P((e) => {
|
|
746
|
+
ve(e);
|
|
747
|
+
}, []), De = P(() => {
|
|
748
|
+
ve(null);
|
|
749
|
+
}, []), Oe = P((e, t, n) => {
|
|
750
|
+
let r = K.current, i = xe.current;
|
|
751
|
+
Ce(), r != null && r !== e && i?.has(t) && b?.({
|
|
751
752
|
draggedId: r,
|
|
752
753
|
targetGroupKey: t,
|
|
753
754
|
afterId: n
|
|
754
755
|
});
|
|
755
|
-
}, [
|
|
756
|
+
}, [Ce, b]), ke = r({
|
|
756
757
|
"--cp-item-hover": w?.itemHover,
|
|
757
758
|
"--cp-item-active": w?.itemActive,
|
|
758
759
|
"--cp-text": w?.text,
|
|
@@ -769,40 +770,40 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
769
770
|
"--cp-task-badge-bg": w?.taskBadgeBackground,
|
|
770
771
|
"--cp-task-badge-text": w?.taskBadgeText,
|
|
771
772
|
"--cp-unread-dot": w?.unreadDot
|
|
772
|
-
}), Y = L(() => e.filter((e) => qe(e,
|
|
773
|
+
}), Y = L(() => e.filter((e) => qe(e, ce) && Je(e, U)), [
|
|
773
774
|
e,
|
|
774
|
-
|
|
775
|
+
ce,
|
|
775
776
|
U
|
|
776
|
-
]),
|
|
777
|
+
]), Ae = L(() => Y.filter((e) => e.isPinned), [Y]), je = L(() => Y.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [Y]), Me = L(() => Y.filter((e) => !e.isPinned && e.source === n.Shared), [Y]), Fe = L(() => Y.filter((e) => !e.isPinned && e.source === n.Organization), [Y]), Le = L(() => [
|
|
777
778
|
{
|
|
778
779
|
key: n.Pinned,
|
|
779
780
|
label: I?.pinned ?? "Pinned",
|
|
780
|
-
items:
|
|
781
|
+
items: Ae
|
|
781
782
|
},
|
|
782
783
|
{
|
|
783
784
|
key: n.MyChats,
|
|
784
785
|
label: I?.myChats ?? "My chats",
|
|
785
|
-
items:
|
|
786
|
+
items: je
|
|
786
787
|
},
|
|
787
788
|
{
|
|
788
789
|
key: n.Shared,
|
|
789
790
|
label: I?.shared ?? "Shared",
|
|
790
|
-
items:
|
|
791
|
+
items: Me
|
|
791
792
|
},
|
|
792
793
|
{
|
|
793
794
|
key: n.Organization,
|
|
794
795
|
label: I?.organization ?? "Organization",
|
|
795
|
-
items:
|
|
796
|
+
items: Fe
|
|
796
797
|
}
|
|
797
798
|
], [
|
|
798
799
|
I,
|
|
799
|
-
ke,
|
|
800
800
|
Ae,
|
|
801
801
|
je,
|
|
802
|
-
Me
|
|
802
|
+
Me,
|
|
803
|
+
Fe
|
|
803
804
|
]), Z = L(() => {
|
|
804
805
|
let e = [];
|
|
805
|
-
for (let t of
|
|
806
|
+
for (let t of Le) if (t.items.length !== 0 && (e.push({
|
|
806
807
|
kind: X.Header,
|
|
807
808
|
groupKey: t.key,
|
|
808
809
|
label: t.label
|
|
@@ -812,79 +813,79 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
812
813
|
groupKey: t.key
|
|
813
814
|
});
|
|
814
815
|
return e;
|
|
815
|
-
}, [
|
|
816
|
+
}, [Le, W]);
|
|
816
817
|
F(() => {
|
|
817
|
-
if (!s ||
|
|
818
|
+
if (!s || he.current === s) return;
|
|
818
819
|
let e = Z.findIndex((e) => e.kind === X.Item && e.item.id === s);
|
|
819
|
-
e >= 0 && (
|
|
820
|
+
e >= 0 && (me.current?.scrollToRow({
|
|
820
821
|
index: e,
|
|
821
822
|
align: "smart",
|
|
822
823
|
behavior: "smooth"
|
|
823
|
-
}),
|
|
824
|
+
}), he.current = s);
|
|
824
825
|
}, [
|
|
825
826
|
s,
|
|
826
|
-
|
|
827
|
+
Le,
|
|
827
828
|
W,
|
|
828
829
|
Z
|
|
829
830
|
]);
|
|
830
|
-
let
|
|
831
|
+
let Be = L(() => ({
|
|
831
832
|
rows: Z,
|
|
832
833
|
expandedGroups: W,
|
|
833
|
-
onToggleGroup:
|
|
834
|
-
listId:
|
|
834
|
+
onToggleGroup: J,
|
|
835
|
+
listId: pe,
|
|
835
836
|
activeConversationId: s,
|
|
836
837
|
searchQuery: U,
|
|
837
838
|
onSelectConversation: o,
|
|
838
839
|
getActions: g,
|
|
839
840
|
onActionMenuOpen: _,
|
|
840
|
-
actionsLabel:
|
|
841
|
-
unreadIndicatorLabel:
|
|
841
|
+
actionsLabel: ae,
|
|
842
|
+
unreadIndicatorLabel: H,
|
|
842
843
|
styles: {
|
|
843
844
|
groupHeaderClassName: T?.groupHeaderClassName,
|
|
844
845
|
itemTitleClassName: T?.itemTitleClassName,
|
|
845
846
|
itemIconBadgeClassName: m?.itemIconBadgeClassName,
|
|
846
847
|
taskBadgeClassName: m?.taskBadgeClassName
|
|
847
848
|
},
|
|
848
|
-
draggingId:
|
|
849
|
-
dragOverId:
|
|
850
|
-
allowedDropGroups:
|
|
851
|
-
onDragStart: (e) =>
|
|
852
|
-
onDragEnd:
|
|
853
|
-
onDragOver:
|
|
854
|
-
onDragLeave:
|
|
855
|
-
onDrop:
|
|
849
|
+
draggingId: ge,
|
|
850
|
+
dragOverId: G,
|
|
851
|
+
allowedDropGroups: ye,
|
|
852
|
+
onDragStart: (e) => we(e, Z),
|
|
853
|
+
onDragEnd: Te,
|
|
854
|
+
onDragOver: Ee,
|
|
855
|
+
onDragLeave: De,
|
|
856
|
+
onDrop: Oe
|
|
856
857
|
}), [
|
|
857
858
|
Z,
|
|
858
859
|
W,
|
|
859
|
-
|
|
860
|
-
|
|
860
|
+
J,
|
|
861
|
+
pe,
|
|
861
862
|
s,
|
|
862
863
|
U,
|
|
863
864
|
o,
|
|
864
865
|
g,
|
|
865
866
|
_,
|
|
866
|
-
ie,
|
|
867
867
|
ae,
|
|
868
|
+
H,
|
|
868
869
|
T?.groupHeaderClassName,
|
|
869
870
|
T?.itemTitleClassName,
|
|
870
871
|
m?.itemIconBadgeClassName,
|
|
871
872
|
m?.taskBadgeClassName,
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
Ce,
|
|
873
|
+
ge,
|
|
874
|
+
G,
|
|
875
|
+
ye,
|
|
876
876
|
we,
|
|
877
877
|
Te,
|
|
878
878
|
Ee,
|
|
879
|
-
De
|
|
880
|
-
|
|
879
|
+
De,
|
|
880
|
+
Oe
|
|
881
|
+
]), He = e.length === 0, We = e.length > 0 && Y.length === 0;
|
|
881
882
|
return /* @__PURE__ */ V(d, {
|
|
882
883
|
isOpen: i,
|
|
883
884
|
orientation: u.Left,
|
|
884
|
-
title:
|
|
885
|
+
title: k,
|
|
885
886
|
labels: {
|
|
886
|
-
ariaLabel:
|
|
887
|
-
closeLabel:
|
|
887
|
+
ariaLabel: k,
|
|
888
|
+
closeLabel: oe
|
|
888
889
|
},
|
|
889
890
|
onClose: v,
|
|
890
891
|
styles: {
|
|
@@ -894,7 +895,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
894
895
|
},
|
|
895
896
|
typography: { fontClassName: T?.fontClassName },
|
|
896
897
|
bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
|
|
897
|
-
cssVars:
|
|
898
|
+
cssVars: ke,
|
|
898
899
|
titleClassName: T?.fontClassName,
|
|
899
900
|
headerClassName: "h-[64px]",
|
|
900
901
|
className: a(i ? "w-[324px] mobile:w-full" : "w-0", h)
|
|
@@ -902,7 +903,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
902
903
|
rightActions: y,
|
|
903
904
|
children: [
|
|
904
905
|
/* @__PURE__ */ B(Ue, {
|
|
905
|
-
label:
|
|
906
|
+
label: ne,
|
|
906
907
|
onClick: p,
|
|
907
908
|
labelClassName: T?.newChatLabelClassName,
|
|
908
909
|
colors: E
|
|
@@ -911,19 +912,19 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
911
912
|
role: "search",
|
|
912
913
|
className: "px-3 py-2",
|
|
913
914
|
children: /* @__PURE__ */ B(D, {
|
|
914
|
-
wrapperClassName:
|
|
915
|
+
wrapperClassName: a(Q.search, ee),
|
|
915
916
|
value: U,
|
|
916
|
-
onChange:
|
|
917
|
+
onChange: q,
|
|
917
918
|
placeholder: M,
|
|
918
|
-
clearLabel:
|
|
919
|
+
clearLabel: N,
|
|
919
920
|
"aria-label": M
|
|
920
921
|
})
|
|
921
922
|
}),
|
|
922
923
|
!C && /* @__PURE__ */ B(Ve, {
|
|
923
|
-
activeTab:
|
|
924
|
-
labels:
|
|
924
|
+
activeTab: ce,
|
|
925
|
+
labels: ie,
|
|
925
926
|
onChange: (e) => {
|
|
926
|
-
|
|
927
|
+
le(e), S?.(e);
|
|
927
928
|
},
|
|
928
929
|
tabClassName: T?.tabClassName
|
|
929
930
|
}),
|
|
@@ -931,7 +932,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
931
932
|
role: "status",
|
|
932
933
|
"aria-live": "polite",
|
|
933
934
|
className: "sr-only",
|
|
934
|
-
children: t ?
|
|
935
|
+
children: t ? te : He ? A : We ? j : ""
|
|
935
936
|
}),
|
|
936
937
|
/* @__PURE__ */ B("div", {
|
|
937
938
|
className: "flex-1 overflow-hidden px-2 py-1",
|
|
@@ -944,17 +945,17 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
944
945
|
active: !0,
|
|
945
946
|
color: Q.skeletonColor
|
|
946
947
|
}, t))
|
|
947
|
-
}) :
|
|
948
|
-
listRef:
|
|
949
|
-
id:
|
|
948
|
+
}) : He ? /* @__PURE__ */ B(c, { label: A }) : We ? /* @__PURE__ */ B(l, { label: j }) : /* @__PURE__ */ B(Ne, {
|
|
949
|
+
listRef: me,
|
|
950
|
+
id: pe,
|
|
950
951
|
role: "list",
|
|
951
952
|
style: { height: "100%" },
|
|
952
953
|
rowComponent: Ke,
|
|
953
954
|
rowCount: Z.length,
|
|
954
955
|
rowHeight: Ie,
|
|
955
|
-
overscanCount:
|
|
956
|
-
onResize:
|
|
957
|
-
rowProps:
|
|
956
|
+
overscanCount: de,
|
|
957
|
+
onResize: Se,
|
|
958
|
+
rowProps: Be
|
|
958
959
|
})
|
|
959
960
|
})
|
|
960
961
|
]
|
|
@@ -988,7 +989,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
988
989
|
size: y.Small,
|
|
989
990
|
"aria-expanded": !n,
|
|
990
991
|
"aria-controls": r,
|
|
991
|
-
icon: B(n ?
|
|
992
|
+
icon: B(n ? W : le, {
|
|
992
993
|
size: g.SM,
|
|
993
994
|
className: $.textSecondary,
|
|
994
995
|
stroke: _,
|
|
@@ -1066,7 +1067,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
1066
1067
|
role: "img",
|
|
1067
1068
|
"aria-label": n.jobWarningMessage(t.warningCode),
|
|
1068
1069
|
tabIndex: 0,
|
|
1069
|
-
children: /* @__PURE__ */ B(
|
|
1070
|
+
children: /* @__PURE__ */ B(oe, {
|
|
1070
1071
|
size: g.SM,
|
|
1071
1072
|
className: $.warningIcon,
|
|
1072
1073
|
"aria-hidden": !0
|
|
@@ -1197,7 +1198,7 @@ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
|
|
|
1197
1198
|
O
|
|
1198
1199
|
]), te = P((e) => {
|
|
1199
1200
|
e.key === "Enter" && j();
|
|
1200
|
-
}, [j]),
|
|
1201
|
+
}, [j]), ne = P(async () => {
|
|
1201
1202
|
if (h) return;
|
|
1202
1203
|
let e = ++D.current;
|
|
1203
1204
|
v(!0), b(null);
|
|
@@ -1215,8 +1216,8 @@ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
|
|
|
1215
1216
|
h,
|
|
1216
1217
|
l,
|
|
1217
1218
|
u.renameWithAiError
|
|
1218
|
-
]),
|
|
1219
|
-
return
|
|
1219
|
+
]), M;
|
|
1220
|
+
return M = ee ? u.nameTooLongError : y ?? r ?? void 0, /* @__PURE__ */ B(w, {
|
|
1220
1221
|
open: e,
|
|
1221
1222
|
header: u.popupTitle,
|
|
1222
1223
|
size: T.Sm,
|
|
@@ -1244,7 +1245,7 @@ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
|
|
|
1244
1245
|
inputRef: S,
|
|
1245
1246
|
value: f,
|
|
1246
1247
|
placeholder: u.inputPlaceholder,
|
|
1247
|
-
error:
|
|
1248
|
+
error: M,
|
|
1248
1249
|
onChange: (e) => m(o(e ?? "")),
|
|
1249
1250
|
onKeyDown: te
|
|
1250
1251
|
})
|
|
@@ -1252,7 +1253,7 @@ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
|
|
|
1252
1253
|
"aria-label": u.renameWithAiLabel,
|
|
1253
1254
|
tooltipProps: { tooltip: u.renameWithAiLabel },
|
|
1254
1255
|
disabled: h || n,
|
|
1255
|
-
onClick:
|
|
1256
|
+
onClick: ne,
|
|
1256
1257
|
icon: h ? /* @__PURE__ */ B(k, { size: g.MD }) : /* @__PURE__ */ B(ge, {
|
|
1257
1258
|
size: g.MD,
|
|
1258
1259
|
stroke: _
|
package/models/panel-props.d.ts
CHANGED
|
@@ -106,6 +106,13 @@ export interface ConversationPanelStyles {
|
|
|
106
106
|
itemIconBadgeClassName?: string;
|
|
107
107
|
/** Typography class applied to the task pill badge in each conversation row. Defaults to `'dial-caption-lead-semi-text'`. Colors come from the module stylesheet. */
|
|
108
108
|
taskBadgeClassName?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Extra CSS class merged onto the search field's wrapper. The wrapper's
|
|
111
|
+
* corner radius is themed with the `--cp-search-radius` custom property, so
|
|
112
|
+
* this is only needed for anything the panel's own stylesheet does not
|
|
113
|
+
* cover; a `rounded-*` utility passed here still wins over that property.
|
|
114
|
+
*/
|
|
115
|
+
searchWrapperClassName?: string;
|
|
109
116
|
}
|
|
110
117
|
/** Localised labels and text content for `ConversationPanel`. */
|
|
111
118
|
export interface ConversationPanelLabels {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel-props.d.ts","sourceRoot":"","sources":["../../src/models/panel-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,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;IACrB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,8DAA8D;AAC9D,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,yD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;IACtB,uEAAuE;IACvE,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8FAA8F;IAC9F,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,YAAY,EAAE,CAAC;IACxD,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,CACjB,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,iBAAiB,KACvB,IAAI,CAAC;IACV,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,8DAA8D;IAC9D,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,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.0.
|
|
4
|
+
"version": "1.0.12",
|
|
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.0.
|
|
27
|
-
"@epam/ai-dial-sidebar": "1.0.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.0.12",
|
|
27
|
+
"@epam/ai-dial-sidebar": "1.0.12"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|