@epam/ai-dial-conversation-panel 1.4.0-dev.12 → 1.4.0-dev.122
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/RowLink/RowLink.d.ts +2 -2
- package/components/RowLink/RowLink.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +63 -63
- package/package.json +7 -3
- package/utils/click.d.ts +7 -0
- package/utils/click.d.ts.map +1 -0
|
@@ -2,11 +2,11 @@ import { Button } from '@epam/ai-dial-ui-kit';
|
|
|
2
2
|
import { ComponentProps, FC } from 'react';
|
|
3
3
|
/** Props for `RowLink`. */
|
|
4
4
|
export interface RowLinkProps extends Omit<ComponentProps<typeof Button>, 'href' | 'onClick' | 'tabIndex'> {
|
|
5
|
-
/** Browser-navigable URL of the row; when set, the
|
|
5
|
+
/** Browser-navigable URL of the row; when set, the row is a link and a plain click calls `onSelect` instead of navigating. */
|
|
6
6
|
href?: string;
|
|
7
7
|
/** Called when the row is activated. */
|
|
8
8
|
onSelect: () => void;
|
|
9
9
|
}
|
|
10
|
-
/** The activatable area of a list row:
|
|
10
|
+
/** The activatable area of a list row: one kit `Button`, rendered as a link when `href` is set and as a button otherwise. */
|
|
11
11
|
export declare const RowLink: FC<RowLinkProps>;
|
|
12
12
|
//# sourceMappingURL=RowLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowLink.d.ts","sourceRoot":"","sources":["../../../src/components/RowLink/RowLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"RowLink.d.ts","sourceRoot":"","sources":["../../../src/components/RowLink/RowLink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,EAAE,EAAc,MAAM,OAAO,CAAC;AAG5D,2BAA2B;AAC3B,MAAM,WAAW,YAAa,SAAQ,IAAI,CACxC,cAAc,CAAC,OAAO,MAAM,CAAC,EAC7B,MAAM,GAAG,SAAS,GAAG,UAAU,CAChC;IACC,8HAA8H;IAC9H,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,6HAA6H;AAC7H,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAepC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
._guideLine_1fnby_7:before{top:0;bottom:-2px;content:"";background:var(--cp-project-guide-line,var(--stroke-tertiary,#e0e6f0));pointer-events:none;width:1px;position:absolute;inset-inline-start:20px}._guideLineFirst_1fnby_18:before{top:5px}._guideLineLast_1fnby_22:before{bottom:5px}._chevron_1fnby_27:hover ._projectIcon_1fnby_27{color:var(--cp-trigger-icon,var(--text-accent,#1d4ed8))}._seeAllText_1fnby_31,._projectIcon_1fnby_27{color:var(--cp-text-secondary,var(--text-secondary,#57647a))}._item_slsie_2{color:var(--cp-text,var(--text-primary,#161b2d));border-radius:var(--cp-row-radius,.75rem)}._item_slsie_2:hover,._item_slsie_2:focus-visible,:focus-visible>._item_slsie_2{background:var(--cp-item-hover,var(--bg-control-accent-alpha,#2764d90f))}._item_slsie_2._itemActive_slsie_17{background:var(--cp-item-active,var(--bg-control-accent-alpha,#2764d90f));color:var(--cp-text,var(--text-primary,#161b2d))}._row_slsie_27:hover ._item_slsie_2:not(._itemActive_slsie_17){background:var(--cp-item-hover,var(--bg-control-accent-alpha,#2764d90f))}._itemIndicator_slsie_35{border-radius:var(--cp-row-radius,9999px)}._indicatorDot_slsie_39{border:1.5px solid var(--cp-indicator-dot,var(--stroke-secondary,#d1dbea))}._groupHeader_slsie_43{color:var(--cp-text-secondary,var(--text-tertiary,#848e9c))}._groupHeaderIndicator_slsie_48{color:var(--cp-text-secondary,var(--text-secondary,#57647a))}._dropZoneActive_slsie_52{box-shadow:inset 0 0 0 1px var(--cp-drop-zone-ring,var(--stroke-accent,#1d4ed8))}._trigger_slsie_57._trigger_slsie_57:hover,._triggerActive_slsie_58{background:var(--cp-trigger-bg,var(--bg-control-accent-alpha-active,#2764d933))}._trigger_slsie_57._trigger_slsie_57:hover ._triggerIcon_slsie_61,._triggerActive_slsie_58 ._triggerIcon_slsie_61{color:var(--cp-trigger-icon,var(--text-accent,#1d4ed8))}._triggerIcon_slsie_61{color:var(--cp-trigger-icon-idle,var(--text-secondary,#57647a))}._unreadDot_slsie_70{background:var(--cp-unread-dot,var(--text-accent,#1d4ed8))}._search_slsie_78{border-radius:var(--cp-search-radius,9999px)}._list_slsie_89{font-family:var(--cp-list-font-family,inherit)}._title_mvx21_2,._title_mvx21_2:hover{color:var(--cp-list-header-title,var(--text-secondary,#57647a))}._title_mvx21_2:focus-visible{color:var(--cp-list-header-title-focus,var(--text-primary,#161b2d))}._filterValue_mvx21_12{color:var(--cp-list-header-filter-value,var(--text-secondary,#57647a))}._filterIndicator_mvx21_17{background-color:var(--cp-list-header-filter-indicator,var(--text-accent,#1d4ed8))}._button_vjird_1{background:var(--cp-new-chat-bg,var(--bg-control-neutral,#fcfcfc));color:var(--cp-new-chat-text,var(--text-accent,#1d4ed8))}._button_vjird_1._button_vjird_1:focus-visible{outline:1px solid var(--cp-new-chat-focus-outline,var(--stroke-focus,#161b2d));outline-offset:0}
|
|
2
2
|
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.inset-y-0{inset-block:0}.inset-s-2{inset-inline-start:.5rem}.-inset-e-0\.5{inset-inline-end:-.125rem}.inset-e-1{inset-inline-end:.25rem}.inset-e-2{inset-inline-end:.5rem}.-top-0\.5{top:-.125rem}.block{display:block}.
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.relative{position:relative}.static{position:static}.inset-y-0{inset-block:0}.inset-s-2{inset-inline-start:.5rem}.-inset-e-0\.5{inset-inline-end:-.125rem}.inset-e-1{inset-inline-end:.25rem}.inset-e-2{inset-inline-end:.5rem}.-top-0\.5{top:-.125rem}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.\!size-6{width:1.5rem!important;height:1.5rem!important}.size-1\.5{width:.375rem;height:.375rem}.size-6{width:1.5rem;height:1.5rem}.size-6\!{width:1.5rem!important;height:1.5rem!important}.size-\[7\.11px\]{width:7.11px;height:7.11px}.h-6{height:1.5rem}.h-6\!{height:1.5rem!important}.h-8{height:2rem}.h-\[36px\]{height:36px}.h-\[64px\]{height:64px}.h-\[120px\]{height:120px}.\!min-h-0{min-height:0!important}.min-h-0{min-height:0}.min-h-0\!{min-height:0!important}.min-h-6{min-height:1.5rem}.w-0{width:0}.w-\[200px\]{width:200px}.w-\[324px\]{width:324px}.w-full{width:100%}.max-w-full{max-width:100%}.\!min-w-0{min-width:0!important}.min-w-0{min-width:0}.min-w-0\!{min-width:0!important}.flex-1{flex:1}.shrink-0{flex-shrink:0}.cursor-grabbing{cursor:grabbing}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded{border-radius:4px}.rounded-full{border-radius:3.40282e38px}.rounded-full\!{border-radius:3.40282e38px!important}.border{border-style:var(--tw-border-style);border-width:1px}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1\!{padding:.25rem!important}.\!px-2{padding-inline:.5rem!important}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-2\!{padding-inline:.5rem!important}.px-3{padding-inline:.75rem}.px-6{padding-inline:1.5rem}.py-1{padding-block:.25rem}.py-1\!{padding-block:.25rem!important}.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.py-4{padding-block:1rem}.ps-2{padding-inline-start:.5rem}.ps-3{padding-inline-start:.75rem}.ps-7{padding-inline-start:1.75rem}.pe-2{padding-inline-end:.5rem}.pe-2\!{padding-inline-end:.5rem!important}.pe-3{padding-inline-end:.75rem}.pe-9{padding-inline-end:2.25rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-8{padding-top:2rem}.pb-2{padding-bottom:.5rem}.text-start{text-align:start}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-100{opacity:1}.shadow-chat-button{--tw-shadow:0 2px 12px 0 var(--tw-shadow-color,var(--shadow-xs-1,#2764d933)), 0 2px 6px 0 var(--tw-shadow-color,var(--shadow-xs-2,#161b2d08));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.duration-150{--tw-duration:.15s;transition-duration:.15s}.group-focus-within\/conversation\:pe-9:is(:where(.group\/conversation):focus-within *){padding-inline-end:2.25rem}.group-focus-within\/conversation\:opacity-0:is(:where(.group\/conversation):focus-within *){opacity:0}.group-focus-within\/conversation\:opacity-100:is(:where(.group\/conversation):focus-within *){opacity:1}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.group-hover\/conversation\:pe-9:is(:where(.group\/conversation):hover *){padding-inline-end:2.25rem}.group-hover\/conversation\:opacity-0:is(:where(.group\/conversation):hover *){opacity:0}.group-hover\/conversation\:opacity-100:is(:where(.group\/conversation):hover *){opacity:1}}.group-focus-visible\:opacity-100:is(:where(.group):focus-visible *){opacity:1}.after\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}@media (hover:hover){.hover\:shadow-xs:hover{--tw-shadow:0 0 8px 1px var(--tw-shadow-color,var(--shadow-xs-1,#2764d933));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.focus-visible\:shadow-xs:focus-visible,.active\:shadow-xs:active{--tw-shadow:0 0 8px 1px var(--tw-shadow-color,var(--shadow-xs-1,#2764d933));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.rtl\:scale-x-\[-1\]:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:-1;scale:var(--tw-scale-x) var(--tw-scale-y)}@media (max-width:1279px){.mobile\:w-full{width:100%}.mobile\:opacity-0{opacity:0}.mobile\:opacity-100{opacity:1}}.\[\&_svg\]\:size-4\! svg{width:1rem!important;height:1rem!important}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
package/index.js
CHANGED
|
@@ -1090,20 +1090,20 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1090
1090
|
})
|
|
1091
1091
|
})
|
|
1092
1092
|
});
|
|
1093
|
-
}), Ct = ({ href: e, onSelect: t,
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
})
|
|
1106
|
-
}
|
|
1093
|
+
}), Ct = (e) => e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey, wt = ({ href: e, onSelect: t, ...n }) => {
|
|
1094
|
+
let r = (n) => {
|
|
1095
|
+
if (e) {
|
|
1096
|
+
if (n.defaultPrevented || Ct(n)) return;
|
|
1097
|
+
n.preventDefault();
|
|
1098
|
+
}
|
|
1099
|
+
t();
|
|
1100
|
+
};
|
|
1101
|
+
return /* @__PURE__ */ W(f, {
|
|
1102
|
+
...n,
|
|
1103
|
+
href: e,
|
|
1104
|
+
onClick: r
|
|
1105
|
+
});
|
|
1106
|
+
}, Tt = I(({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", unreadItemTitleClassName: u = "dial-small-semi-text", itemIconBadgeClassName: d, unreadIndicatorLabel: f = "Unread", variant: p = X.Avatar, nesting: h, rowGroupKey: g, rows: _, draggingId: v, dragOverId: y, allowedDropGroups: b, onDragStart: S, onDragEnd: C, onDragOver: w, onDragLeave: T, onDrop: E }) => {
|
|
1107
1107
|
let { menuItems: D, hasActions: O, isMenuOpen: k, handleOpenChange: M, handleOpen: N } = xt(e, o, s), P = B(() => ({ tooltip: e.iconTooltip }), [e.iconTooltip]), F = B(() => ({ badgeClassName: d }), [d]), I = p === X.Indicator, R = e.leadingIcon ? /* @__PURE__ */ W("span", {
|
|
1108
1108
|
className: "flex size-6 shrink-0 items-center justify-center",
|
|
1109
1109
|
children: e.leadingIcon
|
|
@@ -1161,7 +1161,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1161
1161
|
} : void 0,
|
|
1162
1162
|
onDragLeave: V ? H : void 0,
|
|
1163
1163
|
onDrop: V ? U : void 0,
|
|
1164
|
-
children: [/* @__PURE__ */ W(
|
|
1164
|
+
children: [/* @__PURE__ */ W(wt, {
|
|
1165
1165
|
href: e.href,
|
|
1166
1166
|
onSelect: () => r(e.id),
|
|
1167
1167
|
iconBefore: I ? te : R,
|
|
@@ -1184,7 +1184,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1184
1184
|
variant: p
|
|
1185
1185
|
})]
|
|
1186
1186
|
});
|
|
1187
|
-
}),
|
|
1187
|
+
}), Et = I(({ project: e, isActive: t, isExpanded: n = !0, listId: r, onSelectProject: i, onToggleProject: o, searchQuery: s = "", getActions: c, onActionMenuOpen: l, actionsLabel: u = "More actions", expandLabel: d = "Expand project", collapseLabel: f = "Collapse project", unreadIndicatorLabel: p = "Unread", titleClassName: g = "dial-small-text" }) => {
|
|
1188
1188
|
let { menuItems: v, hasActions: y, isMenuOpen: S, handleOpenChange: C, handleOpen: w } = xt(e, c, l), T = o != null, E = (e) => e.preventDefault(), D = !n && e.conversations.some((e) => e.isUnread) ? /* @__PURE__ */ G("span", {
|
|
1189
1189
|
className: "flex size-6 shrink-0 items-center justify-center",
|
|
1190
1190
|
children: [/* @__PURE__ */ W("span", {
|
|
@@ -1199,7 +1199,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1199
1199
|
"aria-level": 1,
|
|
1200
1200
|
className: a("group/conversation relative", $.row),
|
|
1201
1201
|
children: [
|
|
1202
|
-
/* @__PURE__ */ W(
|
|
1202
|
+
/* @__PURE__ */ W(wt, {
|
|
1203
1203
|
href: e.href,
|
|
1204
1204
|
onSelect: () => i(e.id),
|
|
1205
1205
|
iconBefore: /* @__PURE__ */ W("span", {
|
|
@@ -1255,12 +1255,12 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1255
1255
|
})
|
|
1256
1256
|
]
|
|
1257
1257
|
});
|
|
1258
|
-
}),
|
|
1258
|
+
}), Dt = (e) => `See all chats in ${e}`, Ot = I(({ project: e, position: t, onSeeAll: n, label: r = "See all", ariaLabel: i = Dt, getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", titleClassName: l = "dial-small-text" }) => {
|
|
1259
1259
|
let { menuItems: u, hasActions: d, isMenuOpen: f, handleOpenChange: p, handleOpen: m } = xt(e, o, s), h = ct(t);
|
|
1260
1260
|
return /* @__PURE__ */ G("li", {
|
|
1261
1261
|
...h,
|
|
1262
1262
|
className: a("group/conversation relative", $.row, h.className),
|
|
1263
|
-
children: [/* @__PURE__ */ W(
|
|
1263
|
+
children: [/* @__PURE__ */ W(wt, {
|
|
1264
1264
|
href: e.href,
|
|
1265
1265
|
onSelect: () => n(e.id),
|
|
1266
1266
|
label: /* @__PURE__ */ W("span", {
|
|
@@ -1278,14 +1278,14 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1278
1278
|
actionsLabel: c
|
|
1279
1279
|
})]
|
|
1280
1280
|
});
|
|
1281
|
-
}),
|
|
1281
|
+
}), kt = (e, t) => t ? e === 0 ? "pt-2" : "pt-4" : e === 0 ? "pt-0" : "pt-8", At = ({ index: e, style: t, rows: r, expandedGroups: i, onToggleGroup: a, listId: o, activeConversationId: s, searchQuery: c, onSelectConversation: l, getActions: u, onActionMenuOpen: d, actionsLabel: f, unreadIndicatorLabel: p, activeProjectId: m, onSelectProject: h, onSelectProjectConversation: g, onSeeAll: _, getProjectActions: v, onProjectActionMenuOpen: y, seeAllLabel: b, seeAllAriaLabel: x, onToggleProject: S, expandProjectLabel: C, collapseProjectLabel: w, styles: T, rowVariant: E = X.Avatar, projectConversationVariant: D = X.Indicator, draggingId: O, dragOverId: k, allowedDropGroups: A, onDragStart: j, onDragEnd: M, onDragOver: N, onDragLeave: P, onDrop: F }) => {
|
|
1282
1282
|
let I = r[e], L = E === X.Indicator;
|
|
1283
1283
|
if (I.kind === Z.Header) {
|
|
1284
1284
|
let r = I.groupKey === n.Pinned;
|
|
1285
1285
|
return /* @__PURE__ */ W("div", {
|
|
1286
1286
|
role: "listitem",
|
|
1287
1287
|
style: t,
|
|
1288
|
-
className:
|
|
1288
|
+
className: kt(e, L),
|
|
1289
1289
|
children: /* @__PURE__ */ W(bt, {
|
|
1290
1290
|
variant: E,
|
|
1291
1291
|
label: I.label,
|
|
@@ -1305,7 +1305,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1305
1305
|
role: "presentation",
|
|
1306
1306
|
style: t,
|
|
1307
1307
|
className: "pt-0.5",
|
|
1308
|
-
children: /* @__PURE__ */ W(
|
|
1308
|
+
children: /* @__PURE__ */ W(Et, {
|
|
1309
1309
|
project: I.project,
|
|
1310
1310
|
isActive: I.project.id === m,
|
|
1311
1311
|
isExpanded: I.isExpanded,
|
|
@@ -1325,7 +1325,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1325
1325
|
role: "presentation",
|
|
1326
1326
|
style: t,
|
|
1327
1327
|
className: "pt-0.5",
|
|
1328
|
-
children: /* @__PURE__ */ W(
|
|
1328
|
+
children: /* @__PURE__ */ W(Ot, {
|
|
1329
1329
|
project: I.project,
|
|
1330
1330
|
position: I,
|
|
1331
1331
|
onSeeAll: _,
|
|
@@ -1340,7 +1340,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1340
1340
|
role: "presentation",
|
|
1341
1341
|
style: t,
|
|
1342
1342
|
className: "pt-0.5",
|
|
1343
|
-
children: /* @__PURE__ */ W(
|
|
1343
|
+
children: /* @__PURE__ */ W(Tt, {
|
|
1344
1344
|
variant: D,
|
|
1345
1345
|
nesting: I,
|
|
1346
1346
|
item: I.item,
|
|
@@ -1356,7 +1356,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1356
1356
|
role: "presentation",
|
|
1357
1357
|
style: t,
|
|
1358
1358
|
className: L ? "pt-0.5" : "pt-1",
|
|
1359
|
-
children: /* @__PURE__ */ W(
|
|
1359
|
+
children: /* @__PURE__ */ W(Tt, {
|
|
1360
1360
|
variant: E,
|
|
1361
1361
|
item: I.item,
|
|
1362
1362
|
isActive: I.item.id === s,
|
|
@@ -1381,13 +1381,13 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1381
1381
|
onDrop: F
|
|
1382
1382
|
})
|
|
1383
1383
|
});
|
|
1384
|
-
},
|
|
1384
|
+
}, jt = /* @__PURE__ */ new Set([
|
|
1385
1385
|
n.Pinned,
|
|
1386
1386
|
n.MyChats,
|
|
1387
1387
|
n.Shared,
|
|
1388
1388
|
n.Organization
|
|
1389
|
-
]),
|
|
1390
|
-
let { colors: D, typography: O, itemIconBadgeClassName: k } = S ?? {}, { emptyLabel: j, emptyDescription: M, noResultsLabel: N, noResultsDescription: P, sharedEmptyDescription: F = P, tabEmptyLabels: I, loadingLabel: te = "Loading conversations", updatingTitlesLabel: z = "Updating conversation names", groupLabels: U, actionsLabel: ne, unreadIndicatorLabel: re, seeAllLabel: K, seeAllAriaLabel: ie, expandProjectLabel: ae, collapseProjectLabel: oe } = d, { projects: se, onSelectProject: ce, onSelectConversation: le, onSeeAll: ue, onToggleProject: de, getActions: fe, onActionMenuOpen: q, activeProjectId: me, conversationRowVariant: he } = x ?? {}, ge = B(() => h?.length ? e.filter((e) => e.source == null || !h.includes(e.source)) : e, [e, h]), [J, _e] = H(() =>
|
|
1389
|
+
]), Mt = [], Nt = I(({ conversations: e, isLoading: t, isUpdatingTitles: i = !1, preserveActiveSearchResult: o = !1, onSelectConversation: s, activeConversationId: u, labels: d, searchQuery: f = "", activeFilter: p = n.All, activeTypeFilter: m = Y.All, hiddenSources: h, rowVariant: g, getActions: _, onActionMenuOpen: v, onMoveConversation: y, onVisibleConversationIdsChange: b, pinnedProjects: x, styles: S, id: T, className: E }) => {
|
|
1390
|
+
let { colors: D, typography: O, itemIconBadgeClassName: k } = S ?? {}, { emptyLabel: j, emptyDescription: M, noResultsLabel: N, noResultsDescription: P, sharedEmptyDescription: F = P, tabEmptyLabels: I, loadingLabel: te = "Loading conversations", updatingTitlesLabel: z = "Updating conversation names", groupLabels: U, actionsLabel: ne, unreadIndicatorLabel: re, seeAllLabel: K, seeAllAriaLabel: ie, expandProjectLabel: ae, collapseProjectLabel: oe } = d, { projects: se, onSelectProject: ce, onSelectConversation: le, onSeeAll: ue, onToggleProject: de, getActions: fe, onActionMenuOpen: q, activeProjectId: me, conversationRowVariant: he } = x ?? {}, ge = B(() => h?.length ? e.filter((e) => e.source == null || !h.includes(e.source)) : e, [e, h]), [J, _e] = H(() => jt), [ve, ye] = H(5), be = ee(), xe = V(null), Se = V(null), [Ce, we] = H(null), [Te, Ee] = H(null), [De, Oe] = H(null), ke = V(null), Ae = V(null), je = L(({ height: e }) => {
|
|
1391
1391
|
ye(dt(e));
|
|
1392
1392
|
}, []), Me = L((e) => {
|
|
1393
1393
|
_e((t) => {
|
|
@@ -1463,7 +1463,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1463
1463
|
activeFilter: p,
|
|
1464
1464
|
activeTypeFilter: m,
|
|
1465
1465
|
hiddenSources: h
|
|
1466
|
-
}) :
|
|
1466
|
+
}) : Mt, [
|
|
1467
1467
|
se,
|
|
1468
1468
|
f,
|
|
1469
1469
|
p,
|
|
@@ -1506,7 +1506,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1506
1506
|
]), Q = B(() => {
|
|
1507
1507
|
let e = [];
|
|
1508
1508
|
for (let t of et) {
|
|
1509
|
-
let r = t.key === n.Pinned ? Ge :
|
|
1509
|
+
let r = t.key === n.Pinned ? Ge : Mt;
|
|
1510
1510
|
if ((t.items.length !== 0 || r.length !== 0) && (e.push({
|
|
1511
1511
|
kind: Z.Header,
|
|
1512
1512
|
groupKey: t.key,
|
|
@@ -1621,12 +1621,12 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1621
1621
|
Ie,
|
|
1622
1622
|
Le,
|
|
1623
1623
|
Re
|
|
1624
|
-
]), gt = f !== "" || p !== n.All || m !== Y.All, yt = We.length === 0 && Ge.length === 0, bt = yt && gt, xt = yt && !gt, St = bt && f === "" && m === Y.All ? I?.[p] : void 0, Ct = St?.label ?? N, wt = p === n.Shared && f === "" ? F : P, Tt = St?.description ?? wt, Et = !t && !yt, Dt = V(null), Ot = V(null),
|
|
1624
|
+
]), gt = f !== "" || p !== n.All || m !== Y.All, yt = We.length === 0 && Ge.length === 0, bt = yt && gt, xt = yt && !gt, St = bt && f === "" && m === Y.All ? I?.[p] : void 0, Ct = St?.label ?? N, wt = p === n.Shared && f === "" ? F : P, Tt = St?.description ?? wt, Et = !t && !yt, Dt = V(null), Ot = V(null), kt = V(b);
|
|
1625
1625
|
R(() => {
|
|
1626
|
-
|
|
1626
|
+
kt.current = b;
|
|
1627
1627
|
}, [b]);
|
|
1628
1628
|
let Nt = L((e) => {
|
|
1629
|
-
Ot.current && pt(Ot.current, e) || (Ot.current = e,
|
|
1629
|
+
Ot.current && pt(Ot.current, e) || (Ot.current = e, kt.current?.(e));
|
|
1630
1630
|
}, []), Pt = L((e) => {
|
|
1631
1631
|
Dt.current = e, Nt(ft(Q, e));
|
|
1632
1632
|
}, [Q, Nt]);
|
|
@@ -1664,7 +1664,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1664
1664
|
id: be,
|
|
1665
1665
|
role: "list",
|
|
1666
1666
|
style: { height: "100%" },
|
|
1667
|
-
rowComponent:
|
|
1667
|
+
rowComponent: At,
|
|
1668
1668
|
rowCount: Q.length,
|
|
1669
1669
|
rowHeight: lt,
|
|
1670
1670
|
overscanCount: ve,
|
|
@@ -1673,11 +1673,11 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1673
1673
|
rowProps: ut
|
|
1674
1674
|
})]
|
|
1675
1675
|
});
|
|
1676
|
-
}),
|
|
1676
|
+
}), Pt = {
|
|
1677
1677
|
title: "_title_mvx21_2",
|
|
1678
1678
|
filterValue: "_filterValue_mvx21_12",
|
|
1679
1679
|
filterIndicator: "_filterIndicator_mvx21_17"
|
|
1680
|
-
},
|
|
1680
|
+
}, Ft = "!size-6 !min-h-0 !min-w-0 !p-1", It = [
|
|
1681
1681
|
{
|
|
1682
1682
|
value: n.All,
|
|
1683
1683
|
getLabel: (e) => e.all
|
|
@@ -1694,7 +1694,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1694
1694
|
value: n.Organization,
|
|
1695
1695
|
getLabel: (e) => e.organization
|
|
1696
1696
|
}
|
|
1697
|
-
],
|
|
1697
|
+
], Lt = [
|
|
1698
1698
|
{
|
|
1699
1699
|
value: Y.All,
|
|
1700
1700
|
getLabel: (e) => e.all
|
|
@@ -1707,7 +1707,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1707
1707
|
value: Y.Task,
|
|
1708
1708
|
getLabel: (e) => e.task ?? "Task"
|
|
1709
1709
|
}
|
|
1710
|
-
],
|
|
1710
|
+
], Rt = I(({ labels: e, isExpanded: t = !0, onToggleExpanded: i, controlsId: o, searchQuery: s = "", isSearchOpen: c = !1, onSearchChange: l, onSearchOpenChange: u, activeFilter: d = n.All, onFilterChange: f, activeTypeFilter: p = Y.All, onTypeFilterChange: v, hiddenSources: y, actions: x, styles: S, className: C }) => {
|
|
1711
1711
|
let w = S?.typography?.titleClassName ?? "dial-tiny-lead-semi-text", T = S?.typography?.searchTextClassName ?? "dial-tiny-text", D = S?.colors?.filterValue, O = V(null), A = V(null), j = V(c), M = e.filterLabels.groupAriaLabel ?? "Filter chats", N = e.filterActiveLabel ?? "Filters applied", P = ee(), F = d !== n.All || p !== Y.All, I = l != null && u != null;
|
|
1712
1712
|
R(() => {
|
|
1713
1713
|
c ? A.current?.focus() : j.current && O.current?.focus(), j.current = c;
|
|
@@ -1725,18 +1725,18 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1725
1725
|
className: "min-w-0 flex-1 truncate text-start",
|
|
1726
1726
|
children: e
|
|
1727
1727
|
}), /* @__PURE__ */ W("span", {
|
|
1728
|
-
className: a("shrink-0",
|
|
1728
|
+
className: a("shrink-0", Pt.filterValue),
|
|
1729
1729
|
style: n,
|
|
1730
1730
|
children: t
|
|
1731
1731
|
})] }), o = [];
|
|
1732
1732
|
if (v) {
|
|
1733
|
-
let e =
|
|
1733
|
+
let e = Lt.map(({ value: e, getLabel: n }) => ({
|
|
1734
1734
|
key: e,
|
|
1735
1735
|
label: n(t),
|
|
1736
1736
|
mark: E.Check,
|
|
1737
1737
|
checked: e === p,
|
|
1738
1738
|
onClick: () => v(e)
|
|
1739
|
-
})), n =
|
|
1739
|
+
})), n = Lt.find(({ value: e }) => e === p);
|
|
1740
1740
|
o.push({
|
|
1741
1741
|
key: "filter-type",
|
|
1742
1742
|
label: t.type ?? "Type",
|
|
@@ -1745,7 +1745,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1745
1745
|
});
|
|
1746
1746
|
}
|
|
1747
1747
|
if (f) {
|
|
1748
|
-
let e =
|
|
1748
|
+
let e = It.filter(({ value: e }) => !y?.includes(e)), n = e.find(({ value: e }) => e === d);
|
|
1749
1749
|
o.push({
|
|
1750
1750
|
key: "filter-origin",
|
|
1751
1751
|
label: t.origin ?? "Origin",
|
|
@@ -1798,7 +1798,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1798
1798
|
"aria-hidden": !0
|
|
1799
1799
|
}),
|
|
1800
1800
|
size: _.Small,
|
|
1801
|
-
className:
|
|
1801
|
+
className: Ft,
|
|
1802
1802
|
"aria-label": e.searchCloseLabel,
|
|
1803
1803
|
onClick: z
|
|
1804
1804
|
})]
|
|
@@ -1815,7 +1815,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1815
1815
|
"aria-expanded": t,
|
|
1816
1816
|
"aria-controls": o,
|
|
1817
1817
|
onClick: i,
|
|
1818
|
-
className: a("group flex items-center gap-1 rounded",
|
|
1818
|
+
className: a("group flex items-center gap-1 rounded", Pt.title),
|
|
1819
1819
|
children: [se, t ? /* @__PURE__ */ W(ae, {
|
|
1820
1820
|
size: m.SM,
|
|
1821
1821
|
stroke: h,
|
|
@@ -1828,7 +1828,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1828
1828
|
"aria-hidden": !0
|
|
1829
1829
|
})]
|
|
1830
1830
|
}) : /* @__PURE__ */ W("span", {
|
|
1831
|
-
className:
|
|
1831
|
+
className: Pt.title,
|
|
1832
1832
|
children: se
|
|
1833
1833
|
}), /* @__PURE__ */ G("div", {
|
|
1834
1834
|
className: "flex items-center gap-2",
|
|
@@ -1841,7 +1841,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1841
1841
|
"aria-hidden": !0
|
|
1842
1842
|
}),
|
|
1843
1843
|
size: _.Small,
|
|
1844
|
-
className:
|
|
1844
|
+
className: Ft,
|
|
1845
1845
|
"aria-label": e.searchOpenLabel,
|
|
1846
1846
|
onClick: te
|
|
1847
1847
|
}),
|
|
@@ -1858,11 +1858,11 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1858
1858
|
"aria-hidden": !0
|
|
1859
1859
|
}), F && /* @__PURE__ */ W("span", {
|
|
1860
1860
|
"aria-hidden": !0,
|
|
1861
|
-
className: a(
|
|
1861
|
+
className: a(Pt.filterIndicator, "absolute -inset-e-0.5 -top-0.5 size-1.5 rounded-full")
|
|
1862
1862
|
})]
|
|
1863
1863
|
}),
|
|
1864
1864
|
size: _.Small,
|
|
1865
|
-
className:
|
|
1865
|
+
className: Ft,
|
|
1866
1866
|
"aria-label": M,
|
|
1867
1867
|
"aria-describedby": F ? P : void 0
|
|
1868
1868
|
})
|
|
@@ -1876,7 +1876,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1876
1876
|
]
|
|
1877
1877
|
})]
|
|
1878
1878
|
});
|
|
1879
|
-
}),
|
|
1879
|
+
}), zt = I(({ conversations: e, isLoading: t, isUpdatingTitles: r, preserveActiveSearchResult: i, onSelectConversation: o, activeConversationId: s, labels: c, requestedFilter: l, isFilterHidden: u = !1, onFilterChange: d, isTypeFilterHidden: f = !1, onTypeFilterChange: p, hiddenSources: m, headerActions: h, getActions: g, onActionMenuOpen: _, onMoveConversation: v, onVisibleConversationIdsChange: y, pinnedProjects: b, styles: x, listClassName: S, className: C }) => {
|
|
1880
1880
|
let w = ee(), [T, E] = H(""), [D, O] = H(!1), [k, A] = H(!0), [j, M] = H(n.All), [N, P] = H(Y.All);
|
|
1881
1881
|
R(() => {
|
|
1882
1882
|
l != null && M(l);
|
|
@@ -1895,7 +1895,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1895
1895
|
className: a("flex min-h-0 flex-1 flex-col px-1 pt-4", C, pe.listSection),
|
|
1896
1896
|
children: [/* @__PURE__ */ W("div", {
|
|
1897
1897
|
className: "px-3 pb-2",
|
|
1898
|
-
children: /* @__PURE__ */ W(
|
|
1898
|
+
children: /* @__PURE__ */ W(Rt, {
|
|
1899
1899
|
labels: c,
|
|
1900
1900
|
isExpanded: k,
|
|
1901
1901
|
onToggleExpanded: B,
|
|
@@ -1916,7 +1916,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1916
1916
|
hidden: !k,
|
|
1917
1917
|
inert: !k,
|
|
1918
1918
|
className: k ? "flex min-h-0 flex-1 flex-col" : "hidden",
|
|
1919
|
-
children: /* @__PURE__ */ W(
|
|
1919
|
+
children: /* @__PURE__ */ W(Nt, {
|
|
1920
1920
|
id: w,
|
|
1921
1921
|
conversations: e,
|
|
1922
1922
|
isLoading: t,
|
|
@@ -1940,7 +1940,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1940
1940
|
})
|
|
1941
1941
|
})]
|
|
1942
1942
|
});
|
|
1943
|
-
}),
|
|
1943
|
+
}), Bt = [
|
|
1944
1944
|
{
|
|
1945
1945
|
value: n.All,
|
|
1946
1946
|
labelKey: "all"
|
|
@@ -1957,8 +1957,8 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1957
1957
|
value: n.Organization,
|
|
1958
1958
|
labelKey: "organization"
|
|
1959
1959
|
}
|
|
1960
|
-
],
|
|
1961
|
-
let a = B(() =>
|
|
1960
|
+
], Vt = I(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => {
|
|
1961
|
+
let a = B(() => Bt.filter(({ value: e }) => !i?.includes(e)).map(({ value: e, labelKey: n }) => ({
|
|
1962
1962
|
value: e,
|
|
1963
1963
|
label: t[n]
|
|
1964
1964
|
})), [t, i]);
|
|
@@ -1971,7 +1971,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1971
1971
|
className: "px-3 py-2",
|
|
1972
1972
|
chipClassName: N("px-2!", r)
|
|
1973
1973
|
});
|
|
1974
|
-
}),
|
|
1974
|
+
}), Ht = { button: "_button_vjird_1" }, Ut = I(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i, className: o }) => {
|
|
1975
1975
|
let s = r({
|
|
1976
1976
|
"--cp-new-chat-bg": i?.background,
|
|
1977
1977
|
"--cp-new-chat-text": i?.text,
|
|
@@ -1990,10 +1990,10 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
1990
1990
|
"aria-hidden": !0
|
|
1991
1991
|
}),
|
|
1992
1992
|
onClick: t,
|
|
1993
|
-
className: a("h-[36px] w-full gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs",
|
|
1993
|
+
className: a("h-[36px] w-full gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", Ht.button, o, pe.newChatButton)
|
|
1994
1994
|
})
|
|
1995
1995
|
});
|
|
1996
|
-
}),
|
|
1996
|
+
}), Wt = I(({ conversations: e, isLoading: t, isUpdatingTitles: i, preserveActiveSearchResult: o, isOpen: s, onSelectConversation: c, activeConversationId: l, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, onVisibleConversationIdsChange: S, activeFilter: C, onActiveFilterChange: w, isFilterTabsHidden: T = !1, hiddenSources: E, pinnedProjects: D }) => {
|
|
1997
1997
|
let { colors: O, typography: A, newChatButton: j, searchWrapperClassName: M, headerClassName: N, headerActionsClassName: P, newChatButtonClassName: F } = m ?? {}, { title: I, emptyLabel: ee, emptyDescription: te, noResultsLabel: z, noResultsDescription: V, sharedEmptyDescription: U, tabEmptyLabels: ne, loadingLabel: re, updatingTitlesLabel: K, newChatLabel: ie, searchPlaceholder: ae, searchClearLabel: oe, filterLabels: se, groupLabels: ce, actionsLabel: le, unreadIndicatorLabel: ue, seeAllLabel: de, seeAllAriaLabel: fe, expandProjectLabel: q, collapseProjectLabel: me, closeAriaLabel: he } = f, [ge, J] = H(""), [_e, ve] = H(n.All);
|
|
1998
1998
|
R(() => {
|
|
1999
1999
|
C != null && ve(C);
|
|
@@ -2079,7 +2079,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
2079
2079
|
},
|
|
2080
2080
|
rightActions: b,
|
|
2081
2081
|
children: [
|
|
2082
|
-
/* @__PURE__ */ W(
|
|
2082
|
+
/* @__PURE__ */ W(Ut, {
|
|
2083
2083
|
label: ie,
|
|
2084
2084
|
onClick: p,
|
|
2085
2085
|
labelClassName: A?.newChatLabelClassName,
|
|
@@ -2098,7 +2098,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
2098
2098
|
"aria-label": ae
|
|
2099
2099
|
})
|
|
2100
2100
|
}),
|
|
2101
|
-
!T && /* @__PURE__ */ W(
|
|
2101
|
+
!T && /* @__PURE__ */ W(Vt, {
|
|
2102
2102
|
activeTab: _e,
|
|
2103
2103
|
labels: se,
|
|
2104
2104
|
onChange: (e) => {
|
|
@@ -2107,7 +2107,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
2107
2107
|
tabClassName: A?.tabClassName,
|
|
2108
2108
|
hiddenSources: E
|
|
2109
2109
|
}),
|
|
2110
|
-
/* @__PURE__ */ W(
|
|
2110
|
+
/* @__PURE__ */ W(Nt, {
|
|
2111
2111
|
conversations: e,
|
|
2112
2112
|
isLoading: t,
|
|
2113
2113
|
isUpdatingTitles: i,
|
|
@@ -2127,7 +2127,7 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
2127
2127
|
})
|
|
2128
2128
|
]
|
|
2129
2129
|
});
|
|
2130
|
-
}),
|
|
2130
|
+
}), Gt = I(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
|
|
2131
2131
|
let [f, g] = H(t), [_, v] = H(!1), [y, x] = H(null), E = V(null), k = V(!1), A = V(0);
|
|
2132
2132
|
R(() => {
|
|
2133
2133
|
let n = e && !k.current;
|
|
@@ -2229,6 +2229,6 @@ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__P
|
|
|
2229
2229
|
})
|
|
2230
2230
|
});
|
|
2231
2231
|
});
|
|
2232
|
-
|
|
2232
|
+
Gt.displayName = "RenameConversationPopup";
|
|
2233
2233
|
//#endregion
|
|
2234
|
-
export { pe as CONVERSATION_PANEL_CLASS,
|
|
2234
|
+
export { pe as CONVERSATION_PANEL_CLASS, Nt as ConversationList, Rt as ConversationListHeader, zt as ConversationListSection, Wt as ConversationPanel, X as ConversationRowVariant, Y as ConversationTypeFilter, Gt as RenameConversationPopup };
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
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.4.0-dev.
|
|
4
|
+
"version": "1.4.0-dev.122",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.css",
|
|
8
|
+
"**/*.scss"
|
|
9
|
+
],
|
|
6
10
|
"type": "module",
|
|
7
11
|
"main": "./index.js",
|
|
8
12
|
"module": "./index.js",
|
|
@@ -19,11 +23,11 @@
|
|
|
19
23
|
"dependencies": {
|
|
20
24
|
"react-window": "^2.5.3",
|
|
21
25
|
"@tabler/icons-react": "^3.50.0",
|
|
22
|
-
"@epam/ai-dial-sidebar": "1.4.0-dev.
|
|
26
|
+
"@epam/ai-dial-sidebar": "1.4.0-dev.122"
|
|
23
27
|
},
|
|
24
28
|
"peerDependencies": {
|
|
25
29
|
"react": "^19.2.8",
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.4.0-dev.
|
|
30
|
+
"@epam/ai-dial-chat-shared": "1.4.0-dev.122",
|
|
27
31
|
"@epam/ai-dial-ui-kit": "^0.16.0"
|
|
28
32
|
},
|
|
29
33
|
"repository": {
|
package/utils/click.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns whether a click asks the browser for its own handling (new tab, new window, download).
|
|
4
|
+
* @param event - the click event of a link
|
|
5
|
+
*/
|
|
6
|
+
export declare const isModifiedClick: (event: MouseEvent) => boolean;
|
|
7
|
+
//# sourceMappingURL=click.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"click.d.ts","sourceRoot":"","sources":["../../src/utils/click.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,UAAU,KAAG,OAKtC,CAAC"}
|