@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.
- package/index.js +88 -88
- 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
|
|
9
|
+
var R = {
|
|
10
10
|
userBubble: "dial-cm-user-bubble",
|
|
11
11
|
assistantContent: "dial-cm-assistant-content"
|
|
12
|
-
},
|
|
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 + ${
|
|
25
|
+
firstLineIndent: e ? `calc(${n}px + ${z}px)` : void 0
|
|
26
26
|
};
|
|
27
|
-
},
|
|
27
|
+
}, le = [
|
|
28
28
|
"href",
|
|
29
29
|
"src",
|
|
30
30
|
"alt",
|
|
31
31
|
"colspan",
|
|
32
32
|
"rowspan",
|
|
33
33
|
"start"
|
|
34
|
-
],
|
|
34
|
+
], ue = /* @__PURE__ */ new Set([
|
|
35
35
|
"pre",
|
|
36
36
|
"pre-wrap",
|
|
37
37
|
"pre-line",
|
|
38
38
|
"break-spaces"
|
|
39
|
-
]),
|
|
39
|
+
]), B = (e) => {
|
|
40
40
|
let t = document.createElement(e.tagName.toLowerCase());
|
|
41
|
-
|
|
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
|
|
47
|
-
},
|
|
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) ||
|
|
54
|
-
let n =
|
|
53
|
+
if (!(e instanceof Element) || de(e)) return null;
|
|
54
|
+
let n = B(e);
|
|
55
55
|
return e.childNodes.forEach((e) => {
|
|
56
|
-
let r =
|
|
56
|
+
let r = V(e, t);
|
|
57
57
|
r && n.appendChild(r);
|
|
58
58
|
}), n;
|
|
59
|
-
},
|
|
59
|
+
}, fe = (e, t, n) => {
|
|
60
60
|
let r = e, i = t;
|
|
61
61
|
for (; i && i !== n && n.contains(i);) {
|
|
62
|
-
let e =
|
|
62
|
+
let e = B(i);
|
|
63
63
|
e.appendChild(r), r = e, i = i.parentElement;
|
|
64
64
|
}
|
|
65
65
|
return r;
|
|
66
|
-
},
|
|
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 =
|
|
70
|
-
return i ?
|
|
71
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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,
|
|
84
|
-
l?.(), A("copy"), ne(e === a.User ? D?.copiedMessageStatus ?? "Message copied to clipboard" : D?.copiedStatus ?? "Copied to clipboard"), setTimeout(() => A(null),
|
|
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
|
-
]),
|
|
91
|
-
u?.(), A("markdown"), ne(D?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), setTimeout(() => A(null),
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
},
|
|
225
|
+
}, G = /* @__PURE__ */ function(e) {
|
|
226
226
|
return e.Today = "today", e.Yesterday = "yesterday", e.Absolute = "absolute", e;
|
|
227
|
-
}({}),
|
|
227
|
+
}({}), K = {
|
|
228
228
|
hour: "numeric",
|
|
229
229
|
minute: "2-digit"
|
|
230
|
-
},
|
|
230
|
+
}, q = {
|
|
231
231
|
year: "numeric",
|
|
232
232
|
month: "short",
|
|
233
233
|
day: "numeric",
|
|
234
|
-
...
|
|
235
|
-
},
|
|
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",
|
|
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,
|
|
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:
|
|
250
|
-
text: new Intl.DateTimeFormat(n,
|
|
249
|
+
kind: G.Today,
|
|
250
|
+
text: new Intl.DateTimeFormat(n, K).format(e)
|
|
251
251
|
} : ve(e, r) ? {
|
|
252
|
-
kind:
|
|
253
|
-
text: new Intl.DateTimeFormat(n,
|
|
252
|
+
kind: G.Yesterday,
|
|
253
|
+
text: new Intl.DateTimeFormat(n, K).format(e)
|
|
254
254
|
} : {
|
|
255
|
-
kind:
|
|
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 =
|
|
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:
|
|
290
|
-
copyLabel:
|
|
291
|
-
copiedLabel:
|
|
292
|
-
downloadCsvLabel:
|
|
293
|
-
openInCanvasLabel:
|
|
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
|
-
|
|
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:
|
|
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,
|
|
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:
|
|
339
|
+
thinkingLabel: V,
|
|
340
340
|
components: ee,
|
|
341
341
|
classNames: E,
|
|
342
342
|
urlTransform: O,
|
|
343
|
-
codeBlockCopyLabel:
|
|
344
|
-
codeBlockCopiedLabel:
|
|
345
|
-
codeBlockDownloadLabel:
|
|
343
|
+
codeBlockCopyLabel: fe,
|
|
344
|
+
codeBlockCopiedLabel: pe,
|
|
345
|
+
codeBlockDownloadLabel: H,
|
|
346
346
|
codeBlockTheme: ne,
|
|
347
347
|
tableActionLabels: ve,
|
|
348
|
-
tableDownloadFilename:
|
|
348
|
+
tableDownloadFilename: q,
|
|
349
349
|
tableOnOpenInCanvas: re,
|
|
350
|
-
tableScrollRegionAriaLabel:
|
|
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:
|
|
365
|
-
downloadLabel:
|
|
366
|
-
retryLabel:
|
|
367
|
-
openInNewTabLabel:
|
|
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(
|
|
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":
|
|
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:
|
|
411
|
-
copyLabel:
|
|
412
|
-
copiedLabel:
|
|
413
|
-
downloadCsvLabel:
|
|
414
|
-
openInCanvasLabel:
|
|
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 =
|
|
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":
|
|
445
|
+
"aria-label": fe,
|
|
446
446
|
style: we,
|
|
447
|
-
onCopy:
|
|
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:
|
|
462
|
-
downloadLabel:
|
|
463
|
-
retryLabel:
|
|
464
|
-
openInNewTabLabel:
|
|
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,
|
|
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:
|
|
488
|
-
codeBlockCopiedLabel:
|
|
489
|
-
codeBlockDownloadLabel:
|
|
487
|
+
codeBlockCopyLabel: pe,
|
|
488
|
+
codeBlockCopiedLabel: H,
|
|
489
|
+
codeBlockDownloadLabel: U,
|
|
490
490
|
codeBlockTheme: re,
|
|
491
491
|
tableActionLabels: _e,
|
|
492
|
-
tableDownloadFilename:
|
|
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(
|
|
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 ===
|
|
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,
|
|
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.
|
|
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.
|
|
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.
|
|
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": {
|