@epam/ai-dial-conversation-panel 1.2.0-dev.48 → 1.2.0-dev.50

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,CAocxD,CAAC"}
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;AAIf,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyBlE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAucxD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ImportExportQueueRow.d.ts","sourceRoot":"","sources":["../../../src/components/ImportExportQueueRow/ImportExportQueueRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAgBnC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAI1C,wCAAwC;AACxC,MAAM,WAAW,yBAAyB;IACxC,4CAA4C;IAC5C,GAAG,EAAE,uBAAuB,CAAC;IAC7B,wDAAwD;IACxD,MAAM,EAAE,uBAAuB,CAAC;IAChC,uEAAuE;IACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAED,wFAAwF;AACxF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAsH9D,CAAC"}
1
+ {"version":3,"file":"ImportExportQueueRow.d.ts","sourceRoot":"","sources":["../../../src/components/ImportExportQueueRow/ImportExportQueueRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,2BAA2B,CAAC;AAgBnC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAI1C,wCAAwC;AACxC,MAAM,WAAW,yBAAyB;IACxC,4CAA4C;IAC5C,GAAG,EAAE,uBAAuB,CAAC;IAC7B,wDAAwD;IACxD,MAAM,EAAE,uBAAuB,CAAC;IAChC,uEAAuE;IACvE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAED,wFAAwF;AACxF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAyH9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NewChatButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewChatButton/NewChatButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGpE,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,2FAA2F;AAC3F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA4BhD,CAAC"}
1
+ {"version":3,"file":"NewChatButton.d.ts","sourceRoot":"","sources":["../../../src/components/NewChatButton/NewChatButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAQ,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGpE,iCAAiC;AACjC,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mFAAmF;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,2FAA2F;AAC3F,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA8BhD,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const CONVERSATION_PANEL_CLASS: {
2
+ /** The new-chat button. */
3
+ readonly newChatButton: "dial-cp-new-chat-button";
4
+ /** The `role="search"` wrapper around the conversation search field. */
5
+ readonly search: "dial-cp-search";
6
+ };
7
+ //# sourceMappingURL=public-class-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;IACnC,2BAA2B;;IAE3B,wEAAwE;;CAEhE,CAAC"}
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { CONVERSATION_PANEL_CLASS } from './constants/public-class-names';
1
2
  export { ConversationPanel } from './components/ConversationPanel/ConversationPanel';
2
3
  export { ImportExportQueue } from './components/ImportExportQueue/ImportExportQueue';
3
4
  export { RenameConversationPopup } from './components/RenameConversationPopup/RenameConversationPopup';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AACvG,YAAY,EACV,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,GACb,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AACvG,YAAY,EACV,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,EAC3B,uBAAuB,EACvB,gBAAgB,EAChB,YAAY,GACb,MAAM,sBAAsB,CAAC"}
package/index.js CHANGED
@@ -4,9 +4,12 @@ import { Button as f, ButtonVariant as p, ConfirmationPopup as m, ConfirmationPo
4
4
  import { createElement as te, memo as P, useCallback as F, useEffect as I, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, 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
6
  import { IconAlertCircleFilled as H, IconAlertTriangleFilled as oe, IconCaretDownFilled as se, IconCaretRightFilled as ce, IconCheck as U, IconChevronDown as le, IconChevronUp as ue, IconClock as de, IconDotsVertical as W, IconFile as fe, IconFileZip as pe, IconJson as me, IconPlus as he, IconSparkles as ge, IconX as _e } from "@tabler/icons-react";
7
- //#region ../../node_modules/react-window/dist/react-window.js
8
- var G = typeof window < "u" ? ie : I;
9
- function ve(e) {
7
+ //#region src/constants/public-class-names.ts
8
+ var ve = {
9
+ newChatButton: "dial-cp-new-chat-button",
10
+ search: "dial-cp-search"
11
+ }, G = typeof window < "u" ? ie : I;
12
+ function ye(e) {
10
13
  if (e !== void 0) switch (typeof e) {
11
14
  case "number": return e;
12
15
  case "string":
@@ -14,10 +17,10 @@ function ve(e) {
14
17
  break;
15
18
  }
16
19
  }
17
- function ye({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i, mode: a, style: o }) {
20
+ function be({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i, mode: a, style: o }) {
18
21
  let { styleHeight: s, styleWidth: c } = L(() => ({
19
- styleHeight: ve(o?.height),
20
- styleWidth: ve(o?.width)
22
+ styleHeight: ye(o?.height),
23
+ styleWidth: ye(o?.width)
21
24
  }), [o?.height, o?.width]), [l, u] = z({
22
25
  height: t,
23
26
  width: n
@@ -51,7 +54,7 @@ function ye({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i
51
54
  c
52
55
  ]);
53
56
  }
54
- function be(e) {
57
+ function xe(e) {
55
58
  let t = R(() => {
56
59
  throw Error("Cannot call during render.");
57
60
  });
@@ -60,7 +63,7 @@ function be(e) {
60
63
  }, [e]), F((e) => t.current?.(e), [t]);
61
64
  }
62
65
  var K = null;
63
- function xe(e = !1) {
66
+ function Se(e = !1) {
64
67
  if (K === null || e) {
65
68
  let e = document.createElement("div"), t = e.style;
66
69
  t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
@@ -69,8 +72,8 @@ function xe(e = !1) {
69
72
  }
70
73
  return K;
71
74
  }
72
- function Se({ containerElement: e, direction: t, isRtl: n, scrollOffset: r }) {
73
- if (t === "horizontal" && n) switch (xe()) {
75
+ function Ce({ containerElement: e, direction: t, isRtl: n, scrollOffset: r }) {
76
+ if (t === "horizontal" && n) switch (Se()) {
74
77
  case "negative": return -r;
75
78
  case "positive-descending":
76
79
  if (e) {
@@ -90,7 +93,7 @@ function J(e, t) {
90
93
  for (let n in e) if (!Object.is(t[n], e[n])) return !1;
91
94
  return !0;
92
95
  }
93
- function Ce({ cachedBounds: e, itemCount: t, itemSize: n }) {
96
+ function we({ cachedBounds: e, itemCount: t, itemSize: n }) {
94
97
  if (t === 0) return 0;
95
98
  if (typeof n == "number") return t * n;
96
99
  {
@@ -98,9 +101,9 @@ function Ce({ cachedBounds: e, itemCount: t, itemSize: n }) {
98
101
  return q(n !== void 0, "Unexpected bounds cache miss"), t * ((n.scrollOffset + n.size) / e.size);
99
102
  }
100
103
  }
101
- function we({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, containerScrollOffset: a, containerSize: o }) {
104
+ function Te({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, containerScrollOffset: a, containerSize: o }) {
102
105
  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 = Ce({
106
+ let s = we({
104
107
  cachedBounds: t,
105
108
  itemCount: r,
106
109
  itemSize: i
@@ -112,7 +115,7 @@ function we({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, co
112
115
  default: return a >= u && a <= l ? a : a < u ? u : l;
113
116
  }
114
117
  }
115
- function Te({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemCount: r, overscanCount: i }) {
118
+ function Ee({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemCount: r, overscanCount: i }) {
116
119
  let a = r - 1, o = 0, s = -1, c = 0, l = -1, u = 0;
117
120
  for (; u < a;) {
118
121
  let n = e.get(u);
@@ -131,7 +134,7 @@ function Te({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemC
131
134
  stopIndexOverscan: l
132
135
  };
133
136
  }
134
- function Ee({ itemCount: e, itemProps: t, itemSize: n }) {
137
+ function De({ itemCount: e, itemProps: t, itemSize: n }) {
135
138
  let r = /* @__PURE__ */ new Map();
136
139
  return {
137
140
  get(i) {
@@ -168,8 +171,8 @@ function Ee({ itemCount: e, itemProps: t, itemSize: n }) {
168
171
  }
169
172
  };
170
173
  }
171
- function De({ itemCount: e, itemProps: t, itemSize: n }) {
172
- return L(() => Ee({
174
+ function Oe({ itemCount: e, itemProps: t, itemSize: n }) {
175
+ return L(() => De({
173
176
  itemCount: e,
174
177
  itemProps: t,
175
178
  itemSize: n
@@ -179,7 +182,7 @@ function De({ itemCount: e, itemProps: t, itemSize: n }) {
179
182
  n
180
183
  ]);
181
184
  }
182
- function Oe({ containerSize: e, itemSize: t }) {
185
+ function ke({ containerSize: e, itemSize: t }) {
183
186
  let n;
184
187
  switch (typeof t) {
185
188
  case "string":
@@ -191,8 +194,8 @@ function Oe({ containerSize: e, itemSize: t }) {
191
194
  }
192
195
  return n;
193
196
  }
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
- let { height: u = n, width: d = n } = ye({
197
+ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0, direction: r, isRtl: i = !1, itemCount: a, itemProps: o, itemSize: s, onResize: c, overscanCount: l }) {
198
+ let { height: u = n, width: d = n } = be({
196
199
  defaultHeight: r === "vertical" ? n : void 0,
197
200
  defaultWidth: r === "horizontal" ? n : void 0,
198
201
  element: e,
@@ -201,7 +204,7 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
201
204
  }), f = R({
202
205
  height: 0,
203
206
  width: 0
204
- }), p = r === "vertical" ? u : d, m = Oe({
207
+ }), p = r === "vertical" ? u : d, m = ke({
205
208
  containerSize: p,
206
209
  itemSize: s
207
210
  });
@@ -218,11 +221,11 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
218
221
  c,
219
222
  d
220
223
  ]);
221
- let h = De({
224
+ let h = Oe({
222
225
  itemCount: a,
223
226
  itemProps: o,
224
227
  itemSize: m
225
- }), g = F((e) => h.get(e), [h]), [_, v] = z(() => Te({
228
+ }), g = F((e) => h.get(e), [h]), [_, v] = z(() => Ee({
226
229
  cachedBounds: h,
227
230
  containerScrollOffset: 0,
228
231
  containerSize: p,
@@ -233,7 +236,7 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
233
236
  startIndexOverscan: Math.min(a - 1, _.startIndexOverscan),
234
237
  stopIndexVisible: Math.min(a - 1, _.stopIndexVisible),
235
238
  stopIndexOverscan: Math.min(a - 1, _.stopIndexOverscan)
236
- }, C = F(() => Ce({
239
+ }, C = F(() => we({
237
240
  cachedBounds: h,
238
241
  itemCount: a,
239
242
  itemSize: m
@@ -241,9 +244,9 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
241
244
  h,
242
245
  a,
243
246
  m
244
- ]), w = F((t) => Te({
247
+ ]), w = F((t) => Ee({
245
248
  cachedBounds: h,
246
- containerScrollOffset: Se({
249
+ containerScrollOffset: Ce({
247
250
  containerElement: e,
248
251
  direction: r,
249
252
  isRtl: i,
@@ -271,9 +274,9 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
271
274
  if (!e) return;
272
275
  let t = () => {
273
276
  v((t) => {
274
- let { scrollLeft: n, scrollTop: o } = e, s = Te({
277
+ let { scrollLeft: n, scrollTop: o } = e, s = Ee({
275
278
  cachedBounds: h,
276
- containerScrollOffset: Se({
279
+ containerScrollOffset: Ce({
277
280
  containerElement: e,
278
281
  direction: r,
279
282
  isRtl: i,
@@ -299,8 +302,8 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
299
302
  ]), {
300
303
  getCellBounds: g,
301
304
  getEstimatedSize: C,
302
- scrollToIndex: be(({ align: t = "auto", containerScrollOffset: n, index: o }) => {
303
- let s = we({
305
+ scrollToIndex: xe(({ align: t = "auto", containerScrollOffset: n, index: o }) => {
306
+ let s = Te({
304
307
  align: t,
305
308
  cachedBounds: h,
306
309
  containerScrollOffset: n,
@@ -310,7 +313,7 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
310
313
  itemSize: m
311
314
  });
312
315
  if (e) {
313
- if (s = Se({
316
+ if (s = Ce({
314
317
  containerElement: e,
315
318
  direction: r,
316
319
  isRtl: i,
@@ -328,19 +331,19 @@ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n =
328
331
  stopIndexVisible: x
329
332
  };
330
333
  }
331
- function Ae(e) {
334
+ function je(e) {
332
335
  return L(() => e, Object.values(e));
333
336
  }
334
- function je(e, t) {
337
+ function Me(e, t) {
335
338
  let { ariaAttributes: n, style: r, ...i } = e, { ariaAttributes: a, style: o, ...s } = t;
336
339
  return J(n, a) && J(r, o) && J(i, s);
337
340
  }
338
- function Me(e) {
341
+ function Ne(e) {
339
342
  return typeof e == "object" && !!e && "getAverageRowHeight" in e && typeof e.getAverageRowHeight == "function";
340
343
  }
341
344
  var Y = "data-react-window-index";
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 = Ae(u), h = L(() => P(s, je), [s]), [g, _] = z(null), v = Me(l), { getCellBounds: y, getEstimatedSize: b, scrollToIndex: x, startIndexOverscan: S, startIndexVisible: C, stopIndexOverscan: w, stopIndexVisible: T } = ke({
345
+ function Pe({ 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 }) {
346
+ let m = je(u), h = L(() => P(s, Me), [s]), [g, _] = z(null), v = Ne(l), { getCellBounds: y, getEstimatedSize: b, scrollToIndex: x, startIndexOverscan: S, startIndexVisible: C, stopIndexOverscan: w, stopIndexVisible: T } = Ae({
344
347
  containerElement: g,
345
348
  containerStyle: f,
346
349
  defaultContainerSize: n,
@@ -452,25 +455,25 @@ function Ne({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
452
455
  //#region src/types/virtual-row.ts
453
456
  var X = /* @__PURE__ */ function(e) {
454
457
  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-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : "pe-3", Ie = (e, t) => t.rows[e].kind === X.Item ? 36 : e === 0 ? 24 : 56, Le = (e) => {
458
+ }({}), Fe = (e) => `${60 + e * 23 % 35}%`, Ie = (e, t) => e ? t ? "pe-9" : "pe-2 group-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : "pe-3", Le = (e, t) => t.rows[e].kind === X.Item ? 36 : e === 0 ? 24 : 56, Re = (e) => {
456
459
  switch (e) {
457
460
  case n.Shared: return n.Shared;
458
461
  case n.Organization: return n.Organization;
459
462
  default: return n.MyChats;
460
463
  }
461
- }, Re = (e, t) => {
464
+ }, ze = (e, t) => {
462
465
  let n = null;
463
466
  for (let r of e) if (r.kind === X.Header) n = r.groupKey;
464
467
  else if (r.item.id === t) return n;
465
468
  return null;
466
- }, ze = (e, t, r) => {
469
+ }, Be = (e, t, r) => {
467
470
  let i = /* @__PURE__ */ new Set();
468
471
  if (t != null && i.add(t), t === n.Pinned) {
469
472
  let t = r.find((t) => t.id === e);
470
- t && i.add(Le(t.source));
473
+ t && i.add(Re(t.source));
471
474
  } else i.add(n.Pinned);
472
475
  return i;
473
- }, Be = (e, t, n, r) => {
476
+ }, Ve = (e, t, n, r) => {
474
477
  let i = e.currentTarget.getBoundingClientRect();
475
478
  if (e.clientY >= i.top + i.height / 2) return t;
476
479
  let a = null, o = !1;
@@ -480,7 +483,7 @@ var X = /* @__PURE__ */ function(e) {
480
483
  a = e.item.id;
481
484
  }
482
485
  return null;
483
- }, Ve = [
486
+ }, He = [
484
487
  {
485
488
  value: n.All,
486
489
  labelKey: "all"
@@ -497,8 +500,8 @@ var X = /* @__PURE__ */ function(e) {
497
500
  value: n.Organization,
498
501
  labelKey: "organization"
499
502
  }
500
- ], He = P(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => {
501
- let a = Ve.filter(({ value: e }) => !i?.includes(e));
503
+ ], Ue = P(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => {
504
+ let a = He.filter(({ value: e }) => !i?.includes(e));
502
505
  return /* @__PURE__ */ B("div", {
503
506
  role: "group",
504
507
  "aria-label": t.groupAriaLabel ?? "Filter chats",
@@ -511,7 +514,7 @@ var X = /* @__PURE__ */ function(e) {
511
514
  className: N("min-w-max flex-1 justify-center rounded-full !px-2", r)
512
515
  }, i))
513
516
  });
514
- }), Ue = { button: "_button_1vksy_1" }, We = P(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i }) => /* @__PURE__ */ B("div", {
517
+ }), We = { button: "_button_1vksy_1" }, Ge = P(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i }) => /* @__PURE__ */ B("div", {
515
518
  className: "px-3 py-2",
516
519
  style: r({
517
520
  "--cp-new-chat-bg": i?.background,
@@ -521,11 +524,12 @@ var X = /* @__PURE__ */ function(e) {
521
524
  children: /* @__PURE__ */ V("button", {
522
525
  onClick: t,
523
526
  type: "button",
524
- 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", Ue.button),
527
+ 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", We.button, ve.newChatButton),
525
528
  children: [/* @__PURE__ */ B(he, {
526
529
  size: 18,
527
530
  stroke: _,
528
- className: "shrink-0"
531
+ className: "shrink-0",
532
+ "aria-hidden": !0
529
533
  }), /* @__PURE__ */ B("span", {
530
534
  className: n,
531
535
  children: e
@@ -569,7 +573,7 @@ var X = /* @__PURE__ */ function(e) {
569
573
  "aria-hidden": !0
570
574
  }), /* @__PURE__ */ B(b, { text: e })]
571
575
  });
572
- }, 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: A, onDrop: j }) => {
576
+ }, Ke = ({ 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: A, onDrop: j }) => {
573
577
  let [M, ee] = z(!1), N = R(null), te = F((t) => {
574
578
  ee(t), t && N.current && s?.(e, N.current);
575
579
  }, [e, s]), P = o?.(e) ?? [], I = P.length > 0, ne = e.isIconLoading ? /* @__PURE__ */ B(O, {
@@ -596,7 +600,7 @@ var X = /* @__PURE__ */ function(e) {
596
600
  children: p
597
601
  })] })
598
602
  }), ne]
599
- }), ie = Fe(I, M), L = e.showTaskBadge ? /* @__PURE__ */ V("span", {
603
+ }), ie = Ie(I, M), L = e.showTaskBadge ? /* @__PURE__ */ V("span", {
600
604
  className: a("flex h-5 shrink-0 items-center justify-center gap-0.5 rounded-full border pe-2 ps-1", Z.taskBadge, d),
601
605
  children: [/* @__PURE__ */ B(de, {
602
606
  size: 12,
@@ -608,7 +612,7 @@ var X = /* @__PURE__ */ function(e) {
608
612
  }, [A]), se = F((t) => {
609
613
  if (!m || !h || !j) return;
610
614
  t.preventDefault();
611
- let n = Be(t, e.id, h, m);
615
+ let n = Ve(t, e.id, h, m);
612
616
  j(e.id, m, n);
613
617
  }, [
614
618
  e.id,
@@ -669,7 +673,7 @@ var X = /* @__PURE__ */ function(e) {
669
673
  })
670
674
  })]
671
675
  });
672
- }, Ke = ({ 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, styles: m, draggingId: h, dragOverId: g, allowedDropGroups: _, onDragStart: v, onDragEnd: y, onDragOver: b, onDragLeave: x, onDrop: S }) => {
676
+ }, qe = ({ 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, styles: m, draggingId: h, dragOverId: g, allowedDropGroups: _, onDragStart: v, onDragEnd: y, onDragOver: b, onDragLeave: x, onDrop: S }) => {
673
677
  let C = r[e];
674
678
  if (C.kind === X.Header) {
675
679
  let r = C.groupKey === n.Pinned;
@@ -695,7 +699,7 @@ var X = /* @__PURE__ */ function(e) {
695
699
  role: "presentation",
696
700
  style: t,
697
701
  className: "pt-1",
698
- children: /* @__PURE__ */ B(Ge, {
702
+ children: /* @__PURE__ */ B(Ke, {
699
703
  item: C.item,
700
704
  isActive: C.item.id === s,
701
705
  searchQuery: c,
@@ -719,44 +723,44 @@ var X = /* @__PURE__ */ function(e) {
719
723
  onDrop: S
720
724
  })
721
725
  });
722
- }, qe = (e, t) => t === n.All ? !0 : e.source === t, Je = (e, t) => t ? e.title.toLowerCase().includes(t.toLowerCase()) : !0, Ye = new Set([
726
+ }, Je = (e, t) => t === n.All ? !0 : e.source === t, Ye = (e, t) => t ? e.title.toLowerCase().includes(t.toLowerCase()) : !0, Xe = new Set([
723
727
  n.Pinned,
724
728
  n.MyChats,
725
729
  n.Shared,
726
730
  n.Organization
727
- ]), Xe = P(({ conversations: e, isLoading: t, isOpen: i, onSelectConversation: o, activeConversationId: s, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, activeFilter: S, onActiveFilterChange: C, isFilterTabsHidden: w = !1, hiddenSources: T }) => {
731
+ ]), Ze = P(({ conversations: e, isLoading: t, isOpen: i, onSelectConversation: o, activeConversationId: s, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, activeFilter: S, onActiveFilterChange: C, isFilterTabsHidden: w = !1, hiddenSources: T }) => {
728
732
  let { colors: E, typography: k, newChatButton: A, searchWrapperClassName: j } = m ?? {}, { title: M, emptyLabel: ee, noResultsLabel: N, loadingLabel: te = "Loading conversations", newChatLabel: P, searchPlaceholder: re, searchClearLabel: ie, filterLabels: ae, groupLabels: H, actionsLabel: oe, unreadIndicatorLabel: se, closeAriaLabel: ce } = f, [U, le] = z(""), [ue, de] = z(n.All);
729
733
  I(() => {
730
734
  S != null && de(S);
731
735
  }, [S]);
732
- let W = L(() => T?.length ? e.filter((e) => e.source == null || !T.includes(e.source)) : e, [e, T]), [fe, pe] = z(() => Ye), [me, he] = z(5), ge = ne(), _e = R(null), G = R(null), [ve, ye] = z(null), [be, K] = z(null), [xe, Se] = z(null), q = R(null), J = R(null), Ce = F(({ height: e }) => {
736
+ let W = L(() => T?.length ? e.filter((e) => e.source == null || !T.includes(e.source)) : e, [e, T]), [fe, pe] = z(() => Xe), [me, he] = z(5), ge = ne(), _e = R(null), G = R(null), [ye, be] = z(null), [xe, K] = z(null), [Se, Ce] = z(null), q = R(null), J = R(null), we = F(({ height: e }) => {
733
737
  he(Math.ceil(e / 36 * 2));
734
- }, []), we = F((e) => {
735
- le(e ?? "");
736
738
  }, []), Te = F((e) => {
739
+ le(e ?? "");
740
+ }, []), Ee = F((e) => {
737
741
  pe((t) => {
738
742
  let n = new Set(t);
739
743
  return n.has(e) ? n.delete(e) : n.add(e), n;
740
744
  });
741
- }, []), Ee = F(() => {
742
- q.current = null, J.current = null, ye(null), K(null), Se(null);
743
- }, []), De = F((e, t) => {
744
- let n = ze(e, Re(t, e), W);
745
- q.current = e, J.current = n, ye(e), Se(n);
746
- }, [W]), Oe = F(() => {
747
- Ee();
748
- }, [Ee]), ke = F((e) => {
745
+ }, []), De = F(() => {
746
+ q.current = null, J.current = null, be(null), K(null), Ce(null);
747
+ }, []), Oe = F((e, t) => {
748
+ let n = Be(e, ze(t, e), W);
749
+ q.current = e, J.current = n, be(e), Ce(n);
750
+ }, [W]), ke = F(() => {
751
+ De();
752
+ }, [De]), Ae = F((e) => {
749
753
  K(e);
750
- }, []), Ae = F(() => {
754
+ }, []), je = F(() => {
751
755
  K(null);
752
- }, []), je = F((e, t, n) => {
756
+ }, []), Me = F((e, t, n) => {
753
757
  let r = q.current, i = J.current;
754
- Ee(), r != null && r !== e && i?.has(t) && x?.({
758
+ De(), r != null && r !== e && i?.has(t) && x?.({
755
759
  draggedId: r,
756
760
  targetGroupKey: t,
757
761
  afterId: n
758
762
  });
759
- }, [Ee, x]), Me = r({
763
+ }, [De, x]), Ne = r({
760
764
  "--cp-item-hover": E?.itemHover,
761
765
  "--cp-item-active": E?.itemActive,
762
766
  "--cp-text": E?.text,
@@ -773,40 +777,40 @@ var X = /* @__PURE__ */ function(e) {
773
777
  "--cp-task-badge-bg": E?.taskBadgeBackground,
774
778
  "--cp-task-badge-text": E?.taskBadgeText,
775
779
  "--cp-unread-dot": E?.unreadDot
776
- }), Y = L(() => W.filter((e) => qe(e, ue) && Je(e, U)), [
780
+ }), Y = L(() => W.filter((e) => Je(e, ue) && Ye(e, U)), [
777
781
  W,
778
782
  ue,
779
783
  U
780
- ]), Fe = L(() => Y.filter((e) => e.isPinned), [Y]), Le = L(() => Y.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [Y]), Be = L(() => Y.filter((e) => !e.isPinned && e.source === n.Shared), [Y]), Ve = L(() => Y.filter((e) => !e.isPinned && e.source === n.Organization), [Y]), Ue = L(() => [
784
+ ]), Ie = L(() => Y.filter((e) => e.isPinned), [Y]), Re = L(() => Y.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [Y]), Ve = L(() => Y.filter((e) => !e.isPinned && e.source === n.Shared), [Y]), He = L(() => Y.filter((e) => !e.isPinned && e.source === n.Organization), [Y]), We = L(() => [
781
785
  {
782
786
  key: n.Pinned,
783
787
  label: H?.pinned ?? "Pinned",
784
- items: Fe
788
+ items: Ie
785
789
  },
786
790
  {
787
791
  key: n.MyChats,
788
792
  label: H?.myChats ?? "My chats",
789
- items: Le
793
+ items: Re
790
794
  },
791
795
  {
792
796
  key: n.Shared,
793
797
  label: H?.shared ?? "Shared",
794
- items: Be
798
+ items: Ve
795
799
  },
796
800
  {
797
801
  key: n.Organization,
798
802
  label: H?.organization ?? "Organization",
799
- items: Ve
803
+ items: He
800
804
  }
801
805
  ], [
802
806
  H,
803
- Fe,
804
- Le,
805
- Be,
806
- Ve
807
+ Ie,
808
+ Re,
809
+ Ve,
810
+ He
807
811
  ]), Q = L(() => {
808
812
  let e = [];
809
- for (let t of Ue) if (t.items.length !== 0 && (e.push({
813
+ for (let t of We) if (t.items.length !== 0 && (e.push({
810
814
  kind: X.Header,
811
815
  groupKey: t.key,
812
816
  label: t.label
@@ -816,7 +820,7 @@ var X = /* @__PURE__ */ function(e) {
816
820
  groupKey: t.key
817
821
  });
818
822
  return e;
819
- }, [Ue, fe]);
823
+ }, [We, fe]);
820
824
  I(() => {
821
825
  if (!s || G.current === s) return;
822
826
  let e = Q.findIndex((e) => e.kind === X.Item && e.item.id === s);
@@ -827,14 +831,14 @@ var X = /* @__PURE__ */ function(e) {
827
831
  }), G.current = s);
828
832
  }, [
829
833
  s,
830
- Ue,
834
+ We,
831
835
  fe,
832
836
  Q
833
837
  ]);
834
- let Ge = L(() => ({
838
+ let Ke = L(() => ({
835
839
  rows: Q,
836
840
  expandedGroups: fe,
837
- onToggleGroup: Te,
841
+ onToggleGroup: Ee,
838
842
  listId: ge,
839
843
  activeConversationId: s,
840
844
  searchQuery: U,
@@ -849,18 +853,18 @@ var X = /* @__PURE__ */ function(e) {
849
853
  itemIconBadgeClassName: m?.itemIconBadgeClassName,
850
854
  taskBadgeClassName: m?.taskBadgeClassName
851
855
  },
852
- draggingId: ve,
853
- dragOverId: be,
854
- allowedDropGroups: xe,
855
- onDragStart: (e) => De(e, Q),
856
- onDragEnd: Oe,
857
- onDragOver: ke,
858
- onDragLeave: Ae,
859
- onDrop: je
856
+ draggingId: ye,
857
+ dragOverId: xe,
858
+ allowedDropGroups: Se,
859
+ onDragStart: (e) => Oe(e, Q),
860
+ onDragEnd: ke,
861
+ onDragOver: Ae,
862
+ onDragLeave: je,
863
+ onDrop: Me
860
864
  }), [
861
865
  Q,
862
866
  fe,
863
- Te,
867
+ Ee,
864
868
  ge,
865
869
  s,
866
870
  U,
@@ -873,15 +877,15 @@ var X = /* @__PURE__ */ function(e) {
873
877
  k?.itemTitleClassName,
874
878
  m?.itemIconBadgeClassName,
875
879
  m?.taskBadgeClassName,
876
- ve,
877
- be,
880
+ ye,
878
881
  xe,
879
- De,
882
+ Se,
880
883
  Oe,
881
884
  ke,
882
885
  Ae,
883
- je
884
- ]), Xe = W.length === 0, Ze = W.length > 0 && Y.length === 0;
886
+ je,
887
+ Me
888
+ ]), Ze = W.length === 0, Qe = W.length > 0 && Y.length === 0;
885
889
  return /* @__PURE__ */ V(d, {
886
890
  isOpen: i,
887
891
  isOverlay: g,
@@ -899,14 +903,14 @@ var X = /* @__PURE__ */ function(e) {
899
903
  },
900
904
  typography: { fontClassName: k?.fontClassName },
901
905
  bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
902
- cssVars: Me,
906
+ cssVars: Ne,
903
907
  titleClassName: k?.fontClassName,
904
908
  headerClassName: "h-[64px]",
905
909
  className: a(i ? "w-[324px] mobile:w-full" : "w-0", h)
906
910
  },
907
911
  rightActions: b,
908
912
  children: [
909
- /* @__PURE__ */ B(We, {
913
+ /* @__PURE__ */ B(Ge, {
910
914
  label: P,
911
915
  onClick: p,
912
916
  labelClassName: k?.newChatLabelClassName,
@@ -914,17 +918,17 @@ var X = /* @__PURE__ */ function(e) {
914
918
  }),
915
919
  /* @__PURE__ */ B("div", {
916
920
  role: "search",
917
- className: "px-3 py-2",
921
+ className: a("px-3 py-2", ve.search),
918
922
  children: /* @__PURE__ */ B(D, {
919
923
  wrapperClassName: a(Z.search, j),
920
924
  value: U,
921
- onChange: we,
925
+ onChange: Te,
922
926
  placeholder: re,
923
927
  clearLabel: ie,
924
928
  "aria-label": re
925
929
  })
926
930
  }),
927
- !w && /* @__PURE__ */ B(He, {
931
+ !w && /* @__PURE__ */ B(Ue, {
928
932
  activeTab: ue,
929
933
  labels: ae,
930
934
  onChange: (e) => {
@@ -937,7 +941,7 @@ var X = /* @__PURE__ */ function(e) {
937
941
  role: "status",
938
942
  "aria-live": "polite",
939
943
  className: "sr-only",
940
- children: t ? te : Xe ? ee : Ze ? N : ""
944
+ children: t ? te : Ze ? ee : Qe ? N : ""
941
945
  }),
942
946
  /* @__PURE__ */ B("div", {
943
947
  className: "flex-1 overflow-hidden py-1 pe-3 ps-2",
@@ -945,27 +949,27 @@ var X = /* @__PURE__ */ function(e) {
945
949
  className: "flex flex-col gap-3 px-2 py-3",
946
950
  children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ B(O, {
947
951
  avatar: { size: 24 },
948
- showTitle: { width: Pe(t) },
952
+ showTitle: { width: Fe(t) },
949
953
  paragraph: !1,
950
954
  active: !0,
951
955
  color: Z.skeletonColor
952
956
  }, t))
953
- }) : Xe ? /* @__PURE__ */ B(c, { label: ee }) : Ze ? /* @__PURE__ */ B(l, { label: N }) : /* @__PURE__ */ B(Ne, {
957
+ }) : Ze ? /* @__PURE__ */ B(c, { label: ee }) : Qe ? /* @__PURE__ */ B(l, { label: N }) : /* @__PURE__ */ B(Pe, {
954
958
  listRef: _e,
955
959
  id: ge,
956
960
  role: "list",
957
961
  style: { height: "100%" },
958
- rowComponent: Ke,
962
+ rowComponent: qe,
959
963
  rowCount: Q.length,
960
- rowHeight: Ie,
964
+ rowHeight: Le,
961
965
  overscanCount: me,
962
- onResize: Ce,
963
- rowProps: Ge
966
+ onResize: we,
967
+ rowProps: Ke
964
968
  })
965
969
  })
966
970
  ]
967
971
  });
968
- }), Ze = 8e3, Qe = "flex size-7 shrink-0 items-center justify-center", $ = {
972
+ }), Qe = 8e3, $e = "flex size-7 shrink-0 items-center justify-center", $ = {
969
973
  root: "_root_11lia_1",
970
974
  text: "_text_11lia_5",
971
975
  textSecondary: "_textSecondary_11lia_9",
@@ -974,7 +978,7 @@ var X = /* @__PURE__ */ function(e) {
974
978
  errorIcon: "_errorIcon_11lia_21",
975
979
  failureCount: "_failureCount_11lia_25",
976
980
  warningIcon: "_warningIcon_11lia_35"
977
- }, $e = ({ title: e, failedCount: t, isCollapsed: n, jobsId: r, labels: i, styles: o, onToggleCollapse: s, onClose: c }) => {
981
+ }, et = ({ title: e, failedCount: t, isCollapsed: n, jobsId: r, labels: i, styles: o, onToggleCollapse: s, onClose: c }) => {
978
982
  let l = o?.typography;
979
983
  return /* @__PURE__ */ V("div", {
980
984
  className: a($.divider, "mx-4 flex items-center justify-between py-3"),
@@ -1001,7 +1005,7 @@ var X = /* @__PURE__ */ function(e) {
1001
1005
  "aria-hidden": !0
1002
1006
  }),
1003
1007
  onClick: s,
1004
- className: Qe
1008
+ className: $e
1005
1009
  }), /* @__PURE__ */ B(x, {
1006
1010
  "aria-label": i.closeQueueAriaLabel,
1007
1011
  size: y.Small,
@@ -1012,15 +1016,15 @@ var X = /* @__PURE__ */ function(e) {
1012
1016
  "aria-hidden": !0
1013
1017
  }),
1014
1018
  onClick: c,
1015
- className: Qe
1019
+ className: $e
1016
1020
  })]
1017
1021
  })]
1018
1022
  });
1019
- }, et = [".dial", ".zip"], tt = (e) => {
1023
+ }, tt = [".dial", ".zip"], nt = (e) => {
1020
1024
  let t = e.toLowerCase();
1021
- return et.some((e) => t.endsWith(e)) ? pe : t.endsWith(".json") ? me : fe;
1022
- }, nt = ({ job: t, labels: n, onCancel: r, styles: i }) => {
1023
- let o = i?.typography, s = tt(t.fileName), c = t.status === e.Canceled;
1025
+ return tt.some((e) => t.endsWith(e)) ? pe : t.endsWith(".json") ? me : fe;
1026
+ }, rt = ({ job: t, labels: n, onCancel: r, styles: i }) => {
1027
+ let o = i?.typography, s = nt(t.fileName), c = t.status === e.Canceled;
1024
1028
  return /* @__PURE__ */ V("div", {
1025
1029
  className: "group flex items-center gap-2 px-4 py-2",
1026
1030
  children: [
@@ -1064,13 +1068,13 @@ var X = /* @__PURE__ */ function(e) {
1064
1068
  })
1065
1069
  }),
1066
1070
  t.status === e.Warning && /* @__PURE__ */ B(ee, {
1067
- tooltip: n.jobWarningMessage(t.warningCode),
1071
+ tooltip: n.jobWarningMessage(t.warningCode, t.warningNames),
1068
1072
  contentClassName: "!z-[80]",
1069
1073
  asChild: !0,
1070
1074
  children: /* @__PURE__ */ B("span", {
1071
1075
  className: "flex size-7 shrink-0 items-center justify-center",
1072
1076
  role: "img",
1073
- "aria-label": n.jobWarningMessage(t.warningCode),
1077
+ "aria-label": n.jobWarningMessage(t.warningCode, t.warningNames),
1074
1078
  tabIndex: 0,
1075
1079
  children: /* @__PURE__ */ B(oe, {
1076
1080
  size: g.SM,
@@ -1101,7 +1105,7 @@ var X = /* @__PURE__ */ function(e) {
1101
1105
  })
1102
1106
  ]
1103
1107
  });
1104
- }, rt = (e) => Math.round(e.reduce((e, t) => e + t.progress.percent, 0) / e.length), it = (t) => t.filter((t) => t.status !== e.InProgress).length, at = (e, t, n) => e && t ? n.closeQueueConfirmDescriptionMixed : t ? n.closeQueueConfirmDescriptionFailed : n.closeQueueConfirmDescriptionInProgress, ot = P(({ title: t, jobs: n, onClose: i, onCancel: o, labels: s, styles: c }) => {
1108
+ }, it = (e) => Math.round(e.reduce((e, t) => e + t.progress.percent, 0) / e.length), at = (t) => t.filter((t) => t.status !== e.InProgress).length, ot = (e, t, n) => e && t ? n.closeQueueConfirmDescriptionMixed : t ? n.closeQueueConfirmDescriptionFailed : n.closeQueueConfirmDescriptionInProgress, st = P(({ title: t, jobs: n, onClose: i, onCancel: o, labels: s, styles: c }) => {
1105
1109
  let [l, u] = z(!1), d = ne(), [f, p] = z(!1), g = c?.colors, _ = {
1106
1110
  ...r({
1107
1111
  "--cp-transfer-queue-bg": g?.background,
@@ -1128,7 +1132,7 @@ var X = /* @__PURE__ */ function(e) {
1128
1132
  }, []);
1129
1133
  if (I(() => {
1130
1134
  if (!x) return;
1131
- let e = setTimeout(i, Ze);
1135
+ let e = setTimeout(i, Qe);
1132
1136
  return () => clearTimeout(e);
1133
1137
  }, [x, i]), n.length === 0) return null;
1134
1138
  let T = n.filter((t) => t.status === e.Failed).length;
@@ -1138,7 +1142,7 @@ var X = /* @__PURE__ */ function(e) {
1138
1142
  style: _,
1139
1143
  className: a($.root, "w-[370px] max-w-[calc(100vw-2rem)] rounded-xl shadow-md", c?.rootClassName),
1140
1144
  children: [
1141
- /* @__PURE__ */ B($e, {
1145
+ /* @__PURE__ */ B(et, {
1142
1146
  title: t,
1143
1147
  failedCount: T,
1144
1148
  isCollapsed: l,
@@ -1149,15 +1153,15 @@ var X = /* @__PURE__ */ function(e) {
1149
1153
  onClose: S
1150
1154
  }),
1151
1155
  l && v && /* @__PURE__ */ B(E, {
1152
- value: rt(n),
1156
+ value: it(n),
1153
1157
  size: y.Small,
1154
1158
  "aria-label": s.queueProgressAriaLabel,
1155
- "aria-valuetext": s.queueProgressValueText(it(n), n.length)
1159
+ "aria-valuetext": s.queueProgressValueText(at(n), n.length)
1156
1160
  }),
1157
1161
  !l && /* @__PURE__ */ B("div", {
1158
1162
  id: d,
1159
1163
  className: a("flex max-h-[40vh] flex-col overflow-y-auto py-1", c?.bodyClassName),
1160
- children: n.map((e) => /* @__PURE__ */ B(nt, {
1164
+ children: n.map((e) => /* @__PURE__ */ B(rt, {
1161
1165
  job: e,
1162
1166
  labels: s,
1163
1167
  onCancel: o,
@@ -1167,7 +1171,7 @@ var X = /* @__PURE__ */ function(e) {
1167
1171
  /* @__PURE__ */ B(m, {
1168
1172
  open: f,
1169
1173
  header: s.closeQueueConfirmHeader,
1170
- description: at(v, b, s),
1174
+ description: ot(v, b, s),
1171
1175
  confirmLabel: s.closeLabel,
1172
1176
  cancelLabel: s.cancelLabel,
1173
1177
  variant: h.Danger,
@@ -1177,10 +1181,10 @@ var X = /* @__PURE__ */ function(e) {
1177
1181
  ]
1178
1182
  });
1179
1183
  });
1180
- ot.displayName = "ImportExportQueue";
1184
+ st.displayName = "ImportExportQueue";
1181
1185
  //#endregion
1182
1186
  //#region src/components/RenameConversationPopup/RenameConversationPopup.tsx
1183
- var st = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
1187
+ var ct = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
1184
1188
  let [f, m] = z(t), [h, v] = z(!1), [y, b] = z(null), S = R(null), E = R(!1), D = R(0);
1185
1189
  I(() => {
1186
1190
  let n = e && !E.current;
@@ -1268,6 +1272,6 @@ var st = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
1268
1272
  })
1269
1273
  });
1270
1274
  });
1271
- st.displayName = "RenameConversationPopup";
1275
+ ct.displayName = "RenameConversationPopup";
1272
1276
  //#endregion
1273
- export { Xe as ConversationPanel, ot as ImportExportQueue, st as RenameConversationPopup, tt as getTransferFileIcon };
1277
+ export { ve as CONVERSATION_PANEL_CLASS, Ze as ConversationPanel, st as ImportExportQueue, ct as RenameConversationPopup, nt as getTransferFileIcon };
@@ -10,8 +10,8 @@ export interface ImportExportQueueLabels {
10
10
  jobErrorMessage: (code: ConversationTransferErrorCode | undefined) => string;
11
11
  /** Returns the accessible name for a row's in-progress spinner. */
12
12
  jobProgressAriaLabel: (fileName: string) => string;
13
- /** Returns the tooltip text explaining what a warned job left out. */
14
- jobWarningMessage: (code: ConversationTransferWarningCode | undefined) => string;
13
+ /** Returns the tooltip and accessible text for a warning, with skipped file names when available. */
14
+ jobWarningMessage: (code: ConversationTransferWarningCode | undefined, names?: string[]) => string;
15
15
  /** Accessible name for the collapsed queue's aggregate progress bar. */
16
16
  queueProgressAriaLabel: string;
17
17
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"import-export-queue.d.ts","sourceRoot":"","sources":["../../src/models/import-export-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACvB,+BAA+B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,gFAAgF;IAChF,kBAAkB,EAAE,CAA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;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mCAAmC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,0DAA0D;AAC1D,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,6CAA6C;AAC7C,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,yEAAyE;IACzE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kCAAkC;IAClC,MAAM,EAAE,uBAAuB,CAAC;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
1
+ {"version":3,"file":"import-export-queue.d.ts","sourceRoot":"","sources":["../../src/models/import-export-queue.ts"],"names":[],"mappings":"AAAA,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AAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kCAAkC;IAClC,MAAM,EAAE,uBAAuB,CAAC;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
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.2.0-dev.48",
4
+ "version": "1.2.0-dev.50",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,11 +19,11 @@
19
19
  "dependencies": {
20
20
  "react-window": "^2.2.7",
21
21
  "@tabler/icons-react": "^3.44.0",
22
- "@epam/ai-dial-sidebar": "1.2.0-dev.48"
22
+ "@epam/ai-dial-sidebar": "1.2.0-dev.50"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.2.0-dev.48",
26
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.50",
27
27
  "@epam/ai-dial-ui-kit": "^0.15.0-dev.7"
28
28
  },
29
29
  "repository": {