@epam/ai-dial-conversation-messages 1.3.0-dev.124 → 1.3.0-dev.126

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.
Files changed (2) hide show
  1. package/index.js +88 -88
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -6,10 +6,10 @@ import { IconArrowBackUp as A, IconChevronDown as te, IconChevronUp as ne, IconM
6
6
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
7
7
  import { createPortal as L } from "react-dom";
8
8
  //#region src/constants/public-class-names.ts
9
- var ce = {
9
+ var R = {
10
10
  userBubble: "dial-cm-user-bubble",
11
11
  assistantContent: "dial-cm-assistant-content"
12
- }, R = 4, le = (e) => {
12
+ }, z = 4, ce = (e) => {
13
13
  let t = O(null), [n, r] = k(0);
14
14
  return T(() => {
15
15
  if (!e) return;
@@ -22,78 +22,78 @@ var ce = {
22
22
  return i.observe(n), () => i.disconnect();
23
23
  }, [e]), {
24
24
  slotRef: t,
25
- firstLineIndent: e ? `calc(${n}px + ${R}px)` : void 0
25
+ firstLineIndent: e ? `calc(${n}px + ${z}px)` : void 0
26
26
  };
27
- }, ue = [
27
+ }, le = [
28
28
  "href",
29
29
  "src",
30
30
  "alt",
31
31
  "colspan",
32
32
  "rowspan",
33
33
  "start"
34
- ], de = new Set([
34
+ ], ue = /* @__PURE__ */ new Set([
35
35
  "pre",
36
36
  "pre-wrap",
37
37
  "pre-line",
38
38
  "break-spaces"
39
- ]), z = (e) => {
39
+ ]), B = (e) => {
40
40
  let t = document.createElement(e.tagName.toLowerCase());
41
- ue.forEach((n) => {
41
+ le.forEach((n) => {
42
42
  let r = e.getAttribute(n);
43
43
  r !== null && t.setAttribute(n, r);
44
44
  });
45
45
  let { whiteSpace: n } = window.getComputedStyle(e);
46
- return de.has(n) && (t.style.whiteSpace = "pre-wrap"), t;
47
- }, fe = (e) => e instanceof SVGElement || window.getComputedStyle(e).display === "none", B = (e, t) => {
46
+ return ue.has(n) && (t.style.whiteSpace = "pre-wrap"), t;
47
+ }, de = (e) => e instanceof SVGElement || window.getComputedStyle(e).display === "none", V = (e, t) => {
48
48
  if (!t.intersectsNode(e)) return null;
49
49
  if (e.nodeType === Node.TEXT_NODE) {
50
50
  let n = e.data, r = e === t.startContainer ? t.startOffset : 0, i = e === t.endContainer ? t.endOffset : n.length;
51
51
  return document.createTextNode(n.slice(r, i));
52
52
  }
53
- if (!(e instanceof Element) || fe(e)) return null;
54
- let n = z(e);
53
+ if (!(e instanceof Element) || de(e)) return null;
54
+ let n = B(e);
55
55
  return e.childNodes.forEach((e) => {
56
- let r = B(e, t);
56
+ let r = V(e, t);
57
57
  r && n.appendChild(r);
58
58
  }), n;
59
- }, pe = (e, t, n) => {
59
+ }, fe = (e, t, n) => {
60
60
  let r = e, i = t;
61
61
  for (; i && i !== n && n.contains(i);) {
62
- let e = z(i);
62
+ let e = B(i);
63
63
  e.appendChild(r), r = e, i = i.parentElement;
64
64
  }
65
65
  return r;
66
- }, me = (e, t) => {
66
+ }, pe = (e, t) => {
67
67
  let n = e.commonAncestorContainer, r = n instanceof Element ? n : n.parentElement;
68
68
  if (!r) return null;
69
- let i = B(r, e);
70
- return i ? pe(i, r.parentElement, t) : null;
71
- }, he = (e) => {
69
+ let i = V(r, e);
70
+ return i ? fe(i, r.parentElement, t) : null;
71
+ }, me = (e) => {
72
72
  let t = window.getSelection();
73
73
  if (!t || t.isCollapsed || t.rangeCount === 0 || !e.clipboardData) return;
74
74
  let n = t.toString();
75
75
  if (!n) return;
76
76
  let r = document.createElement("div");
77
77
  for (let n = 0; n < t.rangeCount; n++) {
78
- let i = me(t.getRangeAt(n), e.currentTarget);
78
+ let i = pe(t.getRangeAt(n), e.currentTarget);
79
79
  i && r.appendChild(i);
80
80
  }
81
81
  e.clipboardData.setData("text/html", r.innerHTML), e.clipboardData.setData("text/plain", n), e.preventDefault();
82
- }, V = { activeRating: "_activeRating_ygoee_1" }, H = 2e3, ge = ({ role: e = a.User, onEdit: n, onEditHover: r, onDelete: o, onRegenerate: c, onCopy: l, onCopyMarkdown: u, onLike: f, onDislike: p, activeRating: m, isAlwaysVisible: h, leadingContent: b, trailingContent: x, isDisabled: S = !1, className: C, labels: T, colors: ee }) => {
83
- let { tooltips: E, ariaLabels: D } = T ?? {}, [O, A] = k(null), [te, ne] = k(""), L = n != null || o != null || c != null || l != null || u != null || f != null || p != null || b != null || x != null, ce = s({ "--ma-active-rating-text": ee?.activeRatingText }), R = w(() => {
84
- l?.(), A("copy"), ne(e === a.User ? D?.copiedMessageStatus ?? "Message copied to clipboard" : D?.copiedStatus ?? "Copied to clipboard"), setTimeout(() => A(null), H);
82
+ }, H = { activeRating: "_activeRating_ygoee_1" }, U = 2e3, he = ({ role: e = a.User, onEdit: n, onEditHover: r, onDelete: o, onRegenerate: c, onCopy: l, onCopyMarkdown: u, onLike: f, onDislike: p, activeRating: m, isAlwaysVisible: h, leadingContent: b, trailingContent: x, isDisabled: S = !1, className: C, labels: T, colors: ee }) => {
83
+ let { tooltips: E, ariaLabels: D } = T ?? {}, [O, A] = k(null), [te, ne] = k(""), L = n != null || o != null || c != null || l != null || u != null || f != null || p != null || b != null || x != null, R = s({ "--ma-active-rating-text": ee?.activeRatingText }), z = w(() => {
84
+ l?.(), A("copy"), ne(e === a.User ? D?.copiedMessageStatus ?? "Message copied to clipboard" : D?.copiedStatus ?? "Copied to clipboard"), setTimeout(() => A(null), U);
85
85
  }, [
86
86
  l,
87
87
  e,
88
88
  D?.copiedStatus,
89
89
  D?.copiedMessageStatus
90
- ]), le = w(() => {
91
- u?.(), A("markdown"), ne(D?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), setTimeout(() => A(null), H);
90
+ ]), ce = w(() => {
91
+ u?.(), A("markdown"), ne(D?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), setTimeout(() => A(null), U);
92
92
  }, [u, D?.copiedMarkdownStatus]);
93
93
  return L ? /* @__PURE__ */ I("div", {
94
94
  role: "toolbar",
95
95
  "aria-label": D?.actionsGroup ?? "Message actions",
96
- style: ce,
96
+ style: R,
97
97
  className: d("flex items-center gap-1", !h && "opacity-0 group-hover:opacity-100", C),
98
98
  children: [
99
99
  b,
@@ -106,7 +106,7 @@ var ce = {
106
106
  e === a.User ? /* @__PURE__ */ I(P, { children: [
107
107
  l && /* @__PURE__ */ F(t, {
108
108
  iconSize: g.SM,
109
- onClick: R,
109
+ onClick: z,
110
110
  size: v.Small,
111
111
  isCopied: O === "copy",
112
112
  copyLabel: E?.copyMessage ?? "Copy message",
@@ -155,7 +155,7 @@ var ce = {
155
155
  }),
156
156
  l && /* @__PURE__ */ F(t, {
157
157
  iconSize: g.SM,
158
- onClick: R,
158
+ onClick: z,
159
159
  size: v.Small,
160
160
  isCopied: O === "copy",
161
161
  copyLabel: E?.copy ?? "Copy",
@@ -165,7 +165,7 @@ var ce = {
165
165
  }),
166
166
  u && /* @__PURE__ */ F(t, {
167
167
  iconSize: g.SM,
168
- onClick: le,
168
+ onClick: ce,
169
169
  size: v.Small,
170
170
  isCopied: O === "markdown",
171
171
  iconCopy: /* @__PURE__ */ F(re, {
@@ -180,7 +180,7 @@ var ce = {
180
180
  }),
181
181
  f && /* @__PURE__ */ F(y, {
182
182
  icon: m === i.Like ? /* @__PURE__ */ F(se, {
183
- className: V.activeRating,
183
+ className: H.activeRating,
184
184
  size: g.SM,
185
185
  "aria-hidden": !0
186
186
  }) : /* @__PURE__ */ F(oe, {
@@ -197,7 +197,7 @@ var ce = {
197
197
  }),
198
198
  p && /* @__PURE__ */ F(y, {
199
199
  icon: m === i.Dislike ? /* @__PURE__ */ F(ae, {
200
- className: V.activeRating,
200
+ className: H.activeRating,
201
201
  size: g.SM,
202
202
  "aria-hidden": !0
203
203
  }) : /* @__PURE__ */ F(M, {
@@ -216,43 +216,43 @@ var ce = {
216
216
  x
217
217
  ]
218
218
  }) : null;
219
- }, U = (e) => {
219
+ }, W = (e) => {
220
220
  let [t, n] = k(() => /* @__PURE__ */ new Date());
221
221
  return T(() => {
222
222
  let t = setInterval(() => n(/* @__PURE__ */ new Date()), e);
223
223
  return () => clearInterval(t);
224
224
  }, [e]), t;
225
- }, W = /* @__PURE__ */ function(e) {
225
+ }, G = /* @__PURE__ */ function(e) {
226
226
  return e.Today = "today", e.Yesterday = "yesterday", e.Absolute = "absolute", e;
227
- }({}), G = {
227
+ }({}), K = {
228
228
  hour: "numeric",
229
229
  minute: "2-digit"
230
- }, K = {
230
+ }, q = {
231
231
  year: "numeric",
232
232
  month: "short",
233
233
  day: "numeric",
234
- ...G
235
- }, q = 60, J = 60 * q, Y = 24 * J, _e = [
234
+ ...K
235
+ }, ge = 60, J = 3600, Y = 24 * J, _e = [
236
236
  ["year", 365 * Y],
237
237
  ["month", 30 * Y],
238
238
  ["week", 7 * Y],
239
239
  ["day", Y],
240
240
  ["hour", J],
241
- ["minute", q]
241
+ ["minute", ge]
242
242
  ], ve = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), ye = (e) => {
243
243
  if (!e) return null;
244
244
  let t = new Date(e);
245
245
  return Number.isNaN(t.getTime()) ? null : t;
246
- }, X = (e, t) => new Intl.DateTimeFormat(t, K).format(e), be = (e, t, n) => {
246
+ }, X = (e, t) => new Intl.DateTimeFormat(t, q).format(e), be = (e, t, n) => {
247
247
  let r = new Date(t.getFullYear(), t.getMonth(), t.getDate() - 1);
248
248
  return ve(e, t) ? {
249
- kind: W.Today,
250
- text: new Intl.DateTimeFormat(n, G).format(e)
249
+ kind: G.Today,
250
+ text: new Intl.DateTimeFormat(n, K).format(e)
251
251
  } : ve(e, r) ? {
252
- kind: W.Yesterday,
253
- text: new Intl.DateTimeFormat(n, G).format(e)
252
+ kind: G.Yesterday,
253
+ text: new Intl.DateTimeFormat(n, K).format(e)
254
254
  } : {
255
- kind: W.Absolute,
255
+ kind: G.Absolute,
256
256
  text: X(e, n)
257
257
  };
258
258
  }, xe = (e, t, n) => {
@@ -263,7 +263,7 @@ var ce = {
263
263
  }
264
264
  return r.format(0, "second");
265
265
  }, Z = 6e4, Se = "opacity-0 transition-opacity group-hover/message:opacity-100 group-focus-within/message:opacity-100 [@media(hover:none)]:opacity-100", Ce = ({ timestamp: e, locale: t, className: n = "dial-small-text text-secondary" }) => {
266
- let r = U(Z), i = ye(e);
266
+ let r = W(Z), i = ye(e);
267
267
  return i == null ? null : /* @__PURE__ */ F(C, {
268
268
  tooltip: X(i, t),
269
269
  asChild: !0,
@@ -286,17 +286,17 @@ var ce = {
286
286
  timestamp: f,
287
287
  locale: m,
288
288
  className: N
289
- }), { attachmentClickLabel: R, attachmentDownloadLabel: ue, attachmentRetryLabel: de, attachmentOpenInNewTabLabel: z, startersAriaLabel: fe = "Quick reply buttons", thinkingLabel: B, codeBlockCopyLabel: pe, codeBlockCopiedLabel: me, codeBlockDownloadLabel: V, tableCopyLabel: H, tableCopiedLabel: U, tableDownloadCsvLabel: W, tableOpenInCanvasLabel: G, tableDownloadFilename: K, tableScrollRegionAriaLabel: q, mathScrollRegionAriaLabel: J, assistantMessageAriaLabel: Y = "Assistant message", deploymentIconFallbackLabel: _e = "AI" } = ie ?? {}, ve = D(() => ({
290
- copyLabel: H,
291
- copiedLabel: U,
292
- downloadCsvLabel: W,
293
- openInCanvasLabel: G
289
+ }), { attachmentClickLabel: z, attachmentDownloadLabel: le, attachmentRetryLabel: ue, attachmentOpenInNewTabLabel: B, startersAriaLabel: de = "Quick reply buttons", thinkingLabel: V, codeBlockCopyLabel: fe, codeBlockCopiedLabel: pe, codeBlockDownloadLabel: H, tableCopyLabel: U, tableCopiedLabel: W, tableDownloadCsvLabel: G, tableOpenInCanvasLabel: K, tableDownloadFilename: q, tableScrollRegionAriaLabel: ge, mathScrollRegionAriaLabel: J, assistantMessageAriaLabel: Y = "Assistant message", deploymentIconFallbackLabel: _e = "AI" } = ie ?? {}, ve = D(() => ({
290
+ copyLabel: U,
291
+ copiedLabel: W,
292
+ downloadCsvLabel: G,
293
+ openInCanvasLabel: K
294
294
  }), [
295
- H,
296
295
  U,
297
296
  W,
298
- G
299
- ]), ye = h ? (g ?? []).filter((t) => t.type !== e.Audio) : g ?? [], X = !!t?.trim(), { slotRef: be, firstLineIndent: xe } = le(_ != null && X), Z = s({
297
+ G,
298
+ K
299
+ ]), ye = h ? (g ?? []).filter((t) => t.type !== e.Audio) : g ?? [], X = !!t?.trim(), { slotRef: be, firstLineIndent: xe } = ce(_ != null && X), Z = s({
300
300
  "--cm-bubble-text": M?.text,
301
301
  "--cm-starters-divider": M?.startersDivider,
302
302
  "--cm-bubble-first-line-indent": xe
@@ -305,7 +305,7 @@ var ce = {
305
305
  role: "group",
306
306
  "aria-label": Y,
307
307
  style: Z,
308
- onCopy: he,
308
+ onCopy: me,
309
309
  className: d("group/message flex w-full items-start gap-3", oe),
310
310
  children: [$ && /* @__PURE__ */ F(n, {
311
311
  src: w,
@@ -324,7 +324,7 @@ var ce = {
324
324
  (X || h && b) && /* @__PURE__ */ I("div", {
325
325
  "aria-live": "polite",
326
326
  "aria-atomic": "false",
327
- className: d(Se, "relative max-w-full min-w-0 text-start", _ != null && X && we, ce.assistantContent),
327
+ className: d(Se, "relative max-w-full min-w-0 text-start", _ != null && X && we, R.assistantContent),
328
328
  children: [_ != null && X && /* @__PURE__ */ F("div", {
329
329
  ref: be,
330
330
  className: "absolute inset-s-0 top-0",
@@ -336,18 +336,18 @@ var ce = {
336
336
  content: t ?? "",
337
337
  isPlainText: v === o.PlainText,
338
338
  isStreaming: h,
339
- thinkingLabel: B,
339
+ thinkingLabel: V,
340
340
  components: ee,
341
341
  classNames: E,
342
342
  urlTransform: O,
343
- codeBlockCopyLabel: pe,
344
- codeBlockCopiedLabel: me,
345
- codeBlockDownloadLabel: V,
343
+ codeBlockCopyLabel: fe,
344
+ codeBlockCopiedLabel: pe,
345
+ codeBlockDownloadLabel: H,
346
346
  codeBlockTheme: ne,
347
347
  tableActionLabels: ve,
348
- tableDownloadFilename: K,
348
+ tableDownloadFilename: q,
349
349
  tableOnOpenInCanvas: re,
350
- tableScrollRegionAriaLabel: q,
350
+ tableScrollRegionAriaLabel: ge,
351
351
  mathScrollRegionAriaLabel: J
352
352
  })
353
353
  })]
@@ -361,15 +361,15 @@ var ce = {
361
361
  onDownloadAll: A,
362
362
  onRetry: te,
363
363
  labels: {
364
- clickLabel: R,
365
- downloadLabel: ue,
366
- retryLabel: de,
367
- openInNewTabLabel: z
364
+ clickLabel: z,
365
+ downloadLabel: le,
366
+ retryLabel: ue,
367
+ openInNewTabLabel: B
368
368
  },
369
369
  selectedAttachmentId: j
370
370
  }),
371
371
  y,
372
- /* @__PURE__ */ F(ge, {
372
+ /* @__PURE__ */ F(he, {
373
373
  ...l,
374
374
  isAlwaysVisible: u,
375
375
  trailingContent: L == null ? l?.trailingContent : /* @__PURE__ */ I(P, { children: [l?.trailingContent, L] }),
@@ -378,7 +378,7 @@ var ce = {
378
378
  ]
379
379
  }), x && x.length > 0 && C && /* @__PURE__ */ F("div", {
380
380
  role: "list",
381
- "aria-label": fe,
381
+ "aria-label": de,
382
382
  className: d("flex w-full flex-wrap gap-2 border-t pt-5", Q.startersDivider),
383
383
  children: x.map((e, t) => /* @__PURE__ */ F("div", {
384
384
  role: "listitem",
@@ -407,16 +407,16 @@ var ce = {
407
407
  timestamp: h,
408
408
  locale: _,
409
409
  className: se
410
- }), { showMoreLabel: L = "Show more", showLessLabel: R = "Show less", showMoreAriaLabel: le, showLessAriaLabel: ue, attachmentClickLabel: de, attachmentDownloadLabel: z, attachmentRetryLabel: fe, attachmentOpenInNewTabLabel: B, userMessageAriaLabel: pe = "User message", codeBlockCopyLabel: me, codeBlockCopiedLabel: V, codeBlockDownloadLabel: H, tableCopyLabel: U, tableCopiedLabel: W, tableDownloadCsvLabel: G, tableOpenInCanvasLabel: K, tableDownloadFilename: q, tableScrollRegionAriaLabel: J, mathScrollRegionAriaLabel: Y } = S ?? {}, _e = D(() => ({
411
- copyLabel: U,
412
- copiedLabel: W,
413
- downloadCsvLabel: G,
414
- openInCanvasLabel: K
410
+ }), { showMoreLabel: L = "Show more", showLessLabel: z = "Show less", showMoreAriaLabel: ce, showLessAriaLabel: le, attachmentClickLabel: ue, attachmentDownloadLabel: B, attachmentRetryLabel: de, attachmentOpenInNewTabLabel: V, userMessageAriaLabel: fe = "User message", codeBlockCopyLabel: pe, codeBlockCopiedLabel: H, codeBlockDownloadLabel: U, tableCopyLabel: W, tableCopiedLabel: G, tableDownloadCsvLabel: K, tableOpenInCanvasLabel: q, tableDownloadFilename: ge, tableScrollRegionAriaLabel: J, mathScrollRegionAriaLabel: Y } = S ?? {}, _e = D(() => ({
411
+ copyLabel: W,
412
+ copiedLabel: G,
413
+ downloadCsvLabel: K,
414
+ openInCanvasLabel: q
415
415
  }), [
416
- U,
417
416
  W,
418
417
  G,
419
- K
418
+ K,
419
+ q
420
420
  ]), { textRef: ve, isTextCollapsed: ye, isOverflowing: X, collapsedMaxHeight: be, expandedMaxHeight: xe, isCollapsed: Z, toggleCollapsed: Se } = f({
421
421
  text: e ?? "",
422
422
  collapsedLineCount: b
@@ -439,12 +439,12 @@ var ce = {
439
439
  segmentRehypePlugins: [u(n)],
440
440
  segmentComponents: l(n)
441
441
  };
442
- }, [e, C]), Ne = le ?? L, Pe = ue ?? R, Fe = Z ? L : R, Ie = Z ? Ne : Pe, Le = Z ? te : ne, Re = ee();
442
+ }, [e, C]), Ne = ce ?? L, Pe = le ?? z, Fe = Z ? L : z, Ie = Z ? Ne : Pe, Le = Z ? te : ne, Re = ee();
443
443
  return /* @__PURE__ */ F("div", {
444
444
  role: "group",
445
- "aria-label": pe,
445
+ "aria-label": fe,
446
446
  style: we,
447
- onCopy: he,
447
+ onCopy: me,
448
448
  className: d("group/message flex w-full", ae),
449
449
  children: /* @__PURE__ */ I("div", {
450
450
  className: "ms-auto flex w-fit max-w-full min-w-0 flex-col items-end gap-4",
@@ -458,16 +458,16 @@ var ce = {
458
458
  onDownloadAll: T,
459
459
  onRetry: E,
460
460
  labels: {
461
- clickLabel: de,
462
- downloadLabel: z,
463
- retryLabel: fe,
464
- openInNewTabLabel: B
461
+ clickLabel: ue,
462
+ downloadLabel: B,
463
+ retryLabel: de,
464
+ openInNewTabLabel: V
465
465
  },
466
466
  styles: { className: "max-w-[640px]" },
467
467
  selectedAttachmentId: O
468
468
  }),
469
469
  e && /* @__PURE__ */ F("div", {
470
- className: d(Q.userBubble, "flex w-fit items-center justify-end rounded-ss-2xl rounded-es-2xl border px-6 py-4", $, oe, ce.userBubble),
470
+ className: d(Q.userBubble, "flex w-fit items-center justify-end rounded-ss-2xl rounded-es-2xl border px-6 py-4", $, oe, R.userBubble),
471
471
  children: /* @__PURE__ */ I("div", {
472
472
  className: "flex min-w-0 flex-col items-start",
473
473
  children: [/* @__PURE__ */ F("div", {
@@ -484,12 +484,12 @@ var ce = {
484
484
  components: Me,
485
485
  classNames: k,
486
486
  urlTransform: A,
487
- codeBlockCopyLabel: me,
488
- codeBlockCopiedLabel: V,
489
- codeBlockDownloadLabel: H,
487
+ codeBlockCopyLabel: pe,
488
+ codeBlockCopiedLabel: H,
489
+ codeBlockDownloadLabel: U,
490
490
  codeBlockTheme: re,
491
491
  tableActionLabels: _e,
492
- tableDownloadFilename: q,
492
+ tableDownloadFilename: ge,
493
493
  tableOnOpenInCanvas: ie,
494
494
  tableScrollRegionAriaLabel: J,
495
495
  mathScrollRegionAriaLabel: Y
@@ -510,7 +510,7 @@ var ce = {
510
510
  })]
511
511
  })
512
512
  }),
513
- /* @__PURE__ */ F(ge, {
513
+ /* @__PURE__ */ F(he, {
514
514
  ...o,
515
515
  isAlwaysVisible: m,
516
516
  leadingContent: N == null ? o?.leadingContent : /* @__PURE__ */ I(P, { children: [N, o?.leadingContent] }),
@@ -589,11 +589,11 @@ var ce = {
589
589
  let i = ye(e);
590
590
  if (i == null) return null;
591
591
  let { kind: a, text: o } = be(i, /* @__PURE__ */ new Date(), t), s = o;
592
- return a === W.Today ? s = (n?.today ?? Pe)(o) : a === W.Yesterday && (s = (n?.yesterday ?? Fe)(o)), /* @__PURE__ */ F("time", {
592
+ return a === G.Today ? s = (n?.today ?? Pe)(o) : a === G.Yesterday && (s = (n?.yesterday ?? Fe)(o)), /* @__PURE__ */ F("time", {
593
593
  dateTime: e,
594
594
  className: d("self-center text-center", r),
595
595
  children: s
596
596
  });
597
597
  };
598
598
  //#endregion
599
- export { $ as AssistantMessageBubble, Ee as BubblePosition, ce as CONVERSATION_MESSAGES_CLASS, Ie as ConversationStartTimestamp, ge as MessageActions, je as MessageBubble, Ne as MessageSelectionReply, Te as StatusMessageBubble, Ae as UserMessageBubble };
599
+ export { $ as AssistantMessageBubble, Ee as BubblePosition, R as CONVERSATION_MESSAGES_CLASS, Ie as ConversationStartTimestamp, he as MessageActions, je as MessageBubble, Ne as MessageSelectionReply, Te as StatusMessageBubble, Ae as UserMessageBubble };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-messages",
3
3
  "description": "Message bubble components for rendering conversation history with actions and source citations",
4
- "version": "1.3.0-dev.124",
4
+ "version": "1.3.0-dev.126",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,12 +19,12 @@
19
19
  "dependencies": {
20
20
  "@tabler/icons-react": "^3.44.0",
21
21
  "react-markdown": "^10.1.0",
22
- "@epam/ai-dial-attachment-input": "1.3.0-dev.124"
22
+ "@epam/ai-dial-attachment-input": "1.3.0-dev.126"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
26
  "react-dom": "^19.2.8",
27
- "@epam/ai-dial-chat-shared": "1.3.0-dev.124",
27
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.126",
28
28
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.20"
29
29
  },
30
30
  "repository": {