@epam/ai-dial-conversation-messages 1.3.0-dev.10 → 1.3.0-dev.13
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":"AssistantMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/AssistantMessageBubble.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAa/E,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AssistantMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/AssistantMessageBubble.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAa/E,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAyOlE,CAAC"}
|
package/index.js
CHANGED
|
@@ -44,51 +44,51 @@ var z = {
|
|
|
44
44
|
});
|
|
45
45
|
let { whiteSpace: n } = window.getComputedStyle(e);
|
|
46
46
|
return U.has(n) && (t.style.whiteSpace = "pre-wrap"), t;
|
|
47
|
-
},
|
|
47
|
+
}, re = (e) => e instanceof SVGElement || window.getComputedStyle(e).display === "none", G = (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) ||
|
|
53
|
+
if (!(e instanceof Element) || re(e)) return null;
|
|
54
54
|
let n = W(e);
|
|
55
55
|
return e.childNodes.forEach((e) => {
|
|
56
|
-
let r =
|
|
56
|
+
let r = G(e, t);
|
|
57
57
|
r && n.appendChild(r);
|
|
58
58
|
}), n;
|
|
59
|
-
},
|
|
59
|
+
}, ie = (e, t, n) => {
|
|
60
60
|
let r = e, i = t;
|
|
61
61
|
for (; i && i !== n && n.contains(i);) {
|
|
62
62
|
let e = W(i);
|
|
63
63
|
e.appendChild(r), r = e, i = i.parentElement;
|
|
64
64
|
}
|
|
65
65
|
return r;
|
|
66
|
-
},
|
|
66
|
+
}, ae = (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 = G(r, e);
|
|
70
|
+
return i ? ie(i, r.parentElement, t) : null;
|
|
71
|
+
}, oe = (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 = ae(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
|
-
},
|
|
82
|
+
}, K = { activeRating: "_activeRating_ygoee_1" }, q = 2e3, se = ({ role: e = a.User, onEdit: n, onEditHover: r, onDelete: o, onRegenerate: l, onCopy: u, onCopyMarkdown: d, onLike: f, onDislike: _, activeRating: v, isAlwaysVisible: y, isDisabled: x = !1, className: S, labels: C, colors: ee }) => {
|
|
83
83
|
let { tooltips: w, ariaLabels: E } = C ?? {}, [D, O] = T(null), [R, z] = T(""), B = n != null || o != null || l != null || u != null || d != null || f != null || _ != null, V = s({ "--ma-active-rating-text": ee?.activeRatingText }), H = b(() => {
|
|
84
|
-
u?.(), O("copy"), z(e === a.User ? E?.copiedMessageStatus ?? "Message copied to clipboard" : E?.copiedStatus ?? "Copied to clipboard"), setTimeout(() => O(null),
|
|
84
|
+
u?.(), O("copy"), z(e === a.User ? E?.copiedMessageStatus ?? "Message copied to clipboard" : E?.copiedStatus ?? "Copied to clipboard"), setTimeout(() => O(null), q);
|
|
85
85
|
}, [
|
|
86
86
|
u,
|
|
87
87
|
e,
|
|
88
88
|
E?.copiedStatus,
|
|
89
89
|
E?.copiedMessageStatus
|
|
90
90
|
]), U = b(() => {
|
|
91
|
-
d?.(), O("markdown"), z(E?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), setTimeout(() => O(null),
|
|
91
|
+
d?.(), O("markdown"), z(E?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), setTimeout(() => O(null), q);
|
|
92
92
|
}, [d, E?.copiedMarkdownStatus]);
|
|
93
93
|
return B ? /* @__PURE__ */ L("div", {
|
|
94
94
|
role: "toolbar",
|
|
@@ -177,7 +177,7 @@ var z = {
|
|
|
177
177
|
}),
|
|
178
178
|
f && /* @__PURE__ */ I(g, {
|
|
179
179
|
icon: v === i.Like ? /* @__PURE__ */ I(te, {
|
|
180
|
-
className:
|
|
180
|
+
className: K.activeRating,
|
|
181
181
|
size: p.SM,
|
|
182
182
|
"aria-hidden": !0
|
|
183
183
|
}) : /* @__PURE__ */ I(P, {
|
|
@@ -194,7 +194,7 @@ var z = {
|
|
|
194
194
|
}),
|
|
195
195
|
_ && /* @__PURE__ */ I(g, {
|
|
196
196
|
icon: v === i.Dislike ? /* @__PURE__ */ I(N, {
|
|
197
|
-
className:
|
|
197
|
+
className: K.activeRating,
|
|
198
198
|
size: p.SM,
|
|
199
199
|
"aria-hidden": !0
|
|
200
200
|
}) : /* @__PURE__ */ I(M, {
|
|
@@ -211,55 +211,55 @@ var z = {
|
|
|
211
211
|
})
|
|
212
212
|
] })]
|
|
213
213
|
}) : null;
|
|
214
|
-
},
|
|
214
|
+
}, J = {
|
|
215
215
|
userBubble: "_userBubble_cq829_1",
|
|
216
216
|
collapsibleText: "_collapsibleText_cq829_6",
|
|
217
217
|
expandedText: "_expandedText_cq829_11",
|
|
218
218
|
collapsedText: "_collapsedText_cq829_15",
|
|
219
219
|
startersDivider: "_startersDivider_cq829_26",
|
|
220
220
|
text: "_text_cq829_30"
|
|
221
|
-
},
|
|
222
|
-
let { colors: P, typography: te, className: ne, bubbleClassName: F } = l ?? {}, { attachmentClickLabel: R, attachmentDownloadLabel: B, attachmentRetryLabel: H, attachmentOpenInNewTabLabel: U, startersAriaLabel: W = "Quick reply buttons", thinkingLabel:
|
|
223
|
-
copyLabel:
|
|
224
|
-
copiedLabel:
|
|
225
|
-
downloadCsvLabel:
|
|
226
|
-
openInCanvasLabel:
|
|
221
|
+
}, ce = "[&>.cm-bubble-markdown>div>*:first-child]:indent-[var(--cm-bubble-first-line-indent,0px)]", Y = ({ text: t, contentRef: i, styles: l, actions: d, hasAlwaysVisibleActions: f, isStreaming: p, attachments: m, beforeContent: h, responseFormat: g, afterContent: _, hasThinkingPlaceholder: v = !0, starters: b, onSelectStarter: x, deploymentIconUrl: S, deploymentDisplayName: C, markdownComponents: w, markdownClassNames: T, markdownUrlTransform: E, onAttachmentClick: D, onDownloadAll: O, onAttachmentRetry: k, codeBlockTheme: A, tableOnOpenInCanvas: j, labels: M, selectedAttachmentId: N }) => {
|
|
222
|
+
let { colors: P, typography: te, className: ne, bubbleClassName: F } = l ?? {}, { attachmentClickLabel: R, attachmentDownloadLabel: B, attachmentRetryLabel: H, attachmentOpenInNewTabLabel: U, startersAriaLabel: W = "Quick reply buttons", thinkingLabel: re, codeBlockCopyLabel: G, codeBlockCopiedLabel: ie, codeBlockDownloadLabel: ae, tableCopyLabel: K, tableCopiedLabel: q, tableDownloadCsvLabel: Y, tableOpenInCanvasLabel: X, tableDownloadFilename: Z, tableScrollRegionAriaLabel: le, mathScrollRegionAriaLabel: Q, assistantMessageAriaLabel: ue = "Assistant message", deploymentIconFallbackLabel: de = "AI" } = M ?? {}, fe = ee(() => ({
|
|
223
|
+
copyLabel: K,
|
|
224
|
+
copiedLabel: q,
|
|
225
|
+
downloadCsvLabel: Y,
|
|
226
|
+
openInCanvasLabel: X
|
|
227
227
|
}), [
|
|
228
|
+
K,
|
|
228
229
|
q,
|
|
229
|
-
|
|
230
|
-
X
|
|
231
|
-
|
|
232
|
-
]), fe = p ? (m ?? []).filter((t) => t.type !== e.Audio) : m ?? [], { slotRef: pe, firstLineIndent: me } = V(h != null && !!t), he = s({
|
|
230
|
+
Y,
|
|
231
|
+
X
|
|
232
|
+
]), pe = p ? (m ?? []).filter((t) => t.type !== e.Audio) : m ?? [], $ = !!t?.trim(), { slotRef: me, firstLineIndent: he } = V(h != null && $), ge = s({
|
|
233
233
|
"--cm-bubble-text": P?.text,
|
|
234
234
|
"--cm-starters-divider": P?.startersDivider,
|
|
235
|
-
"--cm-bubble-first-line-indent":
|
|
236
|
-
}),
|
|
235
|
+
"--cm-bubble-first-line-indent": he
|
|
236
|
+
}), _e = c(J.text, te?.fontClassName), ve = !!(S || C);
|
|
237
237
|
return /* @__PURE__ */ L("div", {
|
|
238
238
|
role: "group",
|
|
239
|
-
"aria-label":
|
|
240
|
-
style:
|
|
241
|
-
onCopy:
|
|
239
|
+
"aria-label": ue,
|
|
240
|
+
style: ge,
|
|
241
|
+
onCopy: oe,
|
|
242
242
|
className: c("flex w-full items-start gap-3", ne),
|
|
243
|
-
children: [
|
|
243
|
+
children: [ve && /* @__PURE__ */ I(n, {
|
|
244
244
|
src: S,
|
|
245
245
|
size: 28,
|
|
246
|
-
initialsName: C ||
|
|
247
|
-
labels: { tooltip: C ??
|
|
246
|
+
initialsName: C || de,
|
|
247
|
+
labels: { tooltip: C ?? de }
|
|
248
248
|
}), /* @__PURE__ */ L("div", {
|
|
249
249
|
className: "flex w-full min-w-0 max-w-full flex-col items-start gap-5",
|
|
250
250
|
children: [/* @__PURE__ */ L("div", {
|
|
251
251
|
className: c("flex w-full min-w-0 max-w-full flex-col items-start gap-4", F),
|
|
252
252
|
children: [
|
|
253
|
-
h != null &&
|
|
253
|
+
h != null && !$ && /* @__PURE__ */ I("div", {
|
|
254
254
|
className: "min-w-0",
|
|
255
255
|
children: h
|
|
256
256
|
}),
|
|
257
|
-
(
|
|
257
|
+
($ || p && v) && /* @__PURE__ */ L("div", {
|
|
258
258
|
"aria-live": "polite",
|
|
259
259
|
"aria-atomic": "false",
|
|
260
|
-
className: c(
|
|
261
|
-
children: [h != null &&
|
|
262
|
-
ref:
|
|
260
|
+
className: c(_e, "relative min-w-0 max-w-full text-start", h != null && $ && ce, z.assistantContent),
|
|
261
|
+
children: [h != null && $ && /* @__PURE__ */ I("div", {
|
|
262
|
+
ref: me,
|
|
263
263
|
className: "absolute start-0 top-0",
|
|
264
264
|
children: h
|
|
265
265
|
}), /* @__PURE__ */ I("div", {
|
|
@@ -269,24 +269,24 @@ var z = {
|
|
|
269
269
|
content: t ?? "",
|
|
270
270
|
isPlainText: g === o.PlainText,
|
|
271
271
|
isStreaming: p,
|
|
272
|
-
thinkingLabel:
|
|
272
|
+
thinkingLabel: re,
|
|
273
273
|
components: w,
|
|
274
274
|
classNames: T,
|
|
275
275
|
urlTransform: E,
|
|
276
|
-
codeBlockCopyLabel:
|
|
277
|
-
codeBlockCopiedLabel:
|
|
278
|
-
codeBlockDownloadLabel:
|
|
276
|
+
codeBlockCopyLabel: G,
|
|
277
|
+
codeBlockCopiedLabel: ie,
|
|
278
|
+
codeBlockDownloadLabel: ae,
|
|
279
279
|
codeBlockTheme: A,
|
|
280
|
-
tableActionLabels:
|
|
281
|
-
tableDownloadFilename:
|
|
280
|
+
tableActionLabels: fe,
|
|
281
|
+
tableDownloadFilename: Z,
|
|
282
282
|
tableOnOpenInCanvas: j,
|
|
283
|
-
tableScrollRegionAriaLabel:
|
|
284
|
-
mathScrollRegionAriaLabel:
|
|
283
|
+
tableScrollRegionAriaLabel: le,
|
|
284
|
+
mathScrollRegionAriaLabel: Q
|
|
285
285
|
})
|
|
286
286
|
})]
|
|
287
287
|
}),
|
|
288
288
|
/* @__PURE__ */ I(u, {
|
|
289
|
-
attachments:
|
|
289
|
+
attachments: pe,
|
|
290
290
|
onAttachmentClick: D ? (e) => {
|
|
291
291
|
let t = m?.find((t) => t.id === e);
|
|
292
292
|
t && D(t);
|
|
@@ -302,7 +302,7 @@ var z = {
|
|
|
302
302
|
selectedAttachmentId: N
|
|
303
303
|
}),
|
|
304
304
|
_,
|
|
305
|
-
/* @__PURE__ */ I(
|
|
305
|
+
/* @__PURE__ */ I(se, {
|
|
306
306
|
...d,
|
|
307
307
|
isAlwaysVisible: f,
|
|
308
308
|
role: a.Assistant
|
|
@@ -311,7 +311,7 @@ var z = {
|
|
|
311
311
|
}), b && b.length > 0 && x && /* @__PURE__ */ I("div", {
|
|
312
312
|
role: "list",
|
|
313
313
|
"aria-label": W,
|
|
314
|
-
className: c("flex w-full flex-wrap gap-2 border-t pt-5",
|
|
314
|
+
className: c("flex w-full flex-wrap gap-2 border-t pt-5", J.startersDivider),
|
|
315
315
|
children: b.map((e, t) => /* @__PURE__ */ I("div", {
|
|
316
316
|
role: "listitem",
|
|
317
317
|
className: "min-w-[40px]",
|
|
@@ -324,7 +324,7 @@ var z = {
|
|
|
324
324
|
})]
|
|
325
325
|
})]
|
|
326
326
|
});
|
|
327
|
-
},
|
|
327
|
+
}, X = ({ labels: { titleText: e = "Model switched.", bodyText: t } }) => /* @__PURE__ */ I("div", {
|
|
328
328
|
role: "status",
|
|
329
329
|
"aria-live": "polite",
|
|
330
330
|
children: /* @__PURE__ */ I(_, {
|
|
@@ -332,25 +332,25 @@ var z = {
|
|
|
332
332
|
message: t,
|
|
333
333
|
textClassName: "flex-row flex-wrap gap-1"
|
|
334
334
|
})
|
|
335
|
-
}),
|
|
335
|
+
}), Z = /* @__PURE__ */ function(e) {
|
|
336
336
|
return e.Bottom = "Bottom", e.Top = "Top", e;
|
|
337
|
-
}({}),
|
|
338
|
-
let { colors: C, typography: ee, className: w, bubbleClassName: T } = r ?? {}, { showMoreLabel: E = "Show more", showLessLabel: k = "Show less", showMoreAriaLabel: A, showLessAriaLabel: j, attachmentClickLabel: M, attachmentDownloadLabel: N, attachmentRetryLabel: P, attachmentOpenInNewTabLabel: te, userMessageAriaLabel: ne = "User message" } = m ?? {}, { textRef: R, isTextCollapsed: B, isOverflowing: V, collapsedMaxHeight: H, expandedMaxHeight: U, isCollapsed: W, toggleCollapsed:
|
|
337
|
+
}({}), le = 10, Q = ({ text: e, contentRef: t, position: n = Z.Bottom, styles: r, actions: i, hasAlwaysVisibleActions: o, attachments: d, collapsedLineCount: f = le, labels: m, textSegments: g, onAttachmentClick: _, onDownloadAll: y, onAttachmentRetry: b, selectedAttachmentId: x }) => {
|
|
338
|
+
let { colors: C, typography: ee, className: w, bubbleClassName: T } = r ?? {}, { showMoreLabel: E = "Show more", showLessLabel: k = "Show less", showMoreAriaLabel: A, showLessAriaLabel: j, attachmentClickLabel: M, attachmentDownloadLabel: N, attachmentRetryLabel: P, attachmentOpenInNewTabLabel: te, userMessageAriaLabel: ne = "User message" } = m ?? {}, { textRef: R, isTextCollapsed: B, isOverflowing: V, collapsedMaxHeight: H, expandedMaxHeight: U, isCollapsed: W, toggleCollapsed: re } = l({
|
|
339
339
|
text: e ?? "",
|
|
340
340
|
collapsedLineCount: f
|
|
341
|
-
}),
|
|
341
|
+
}), G = s({
|
|
342
342
|
"--cm-bubble-user-bg": C?.userBackground,
|
|
343
343
|
"--cm-bubble-user-border": C?.userBorder,
|
|
344
344
|
"--cm-bubble-fade-start": C?.fadeStart,
|
|
345
345
|
"--cm-bubble-text": C?.text,
|
|
346
346
|
"--cm-bubble-collapsed-height": V ? `${H}px` : void 0,
|
|
347
347
|
"--cm-bubble-expanded-height": V ? `${U}px` : void 0
|
|
348
|
-
}),
|
|
348
|
+
}), ie = n === Z.Top ? "rounded-ee-md rounded-se-2xl" : "rounded-se-md rounded-ee-2xl", ae = c(J.text, ee?.fontClassName), K = A ?? E, q = j ?? k, ce = W ? E : k, Y = W ? K : q, X = W ? D : O, Q = S();
|
|
349
349
|
return /* @__PURE__ */ I("div", {
|
|
350
350
|
role: "group",
|
|
351
351
|
"aria-label": ne,
|
|
352
|
-
style:
|
|
353
|
-
onCopy:
|
|
352
|
+
style: G,
|
|
353
|
+
onCopy: oe,
|
|
354
354
|
className: c("flex w-full", w),
|
|
355
355
|
children: /* @__PURE__ */ L("div", {
|
|
356
356
|
className: "ms-auto flex w-fit min-w-0 max-w-full flex-col items-end gap-4",
|
|
@@ -373,34 +373,34 @@ var z = {
|
|
|
373
373
|
selectedAttachmentId: x
|
|
374
374
|
}),
|
|
375
375
|
e && /* @__PURE__ */ I("div", {
|
|
376
|
-
className: c(
|
|
376
|
+
className: c(J.userBubble, "flex w-fit items-center justify-end rounded-es-2xl rounded-ss-2xl border px-6 py-4", ie, T, z.userBubble),
|
|
377
377
|
children: /* @__PURE__ */ L("div", {
|
|
378
378
|
className: "flex min-w-0 flex-col items-start",
|
|
379
379
|
children: [/* @__PURE__ */ I("div", {
|
|
380
|
-
id:
|
|
380
|
+
id: Q,
|
|
381
381
|
ref: t,
|
|
382
|
-
className: c("relative -me-1 -ms-1 w-[calc(100%+8px)] overflow-hidden pe-1 ps-1", V &&
|
|
382
|
+
className: c("relative -me-1 -ms-1 w-[calc(100%+8px)] overflow-hidden pe-1 ps-1", V && J.collapsibleText, V && !W && J.expandedText, B && J.collapsedText),
|
|
383
383
|
children: /* @__PURE__ */ I("p", {
|
|
384
384
|
ref: R,
|
|
385
|
-
className: c(
|
|
385
|
+
className: c(ae, "whitespace-pre-wrap text-start [overflow-wrap:anywhere]"),
|
|
386
386
|
children: g ?? e
|
|
387
387
|
})
|
|
388
388
|
}), V && /* @__PURE__ */ I(v, {
|
|
389
|
-
label: /* @__PURE__ */ I(F, { children:
|
|
390
|
-
iconBefore: /* @__PURE__ */ I(
|
|
389
|
+
label: /* @__PURE__ */ I(F, { children: ce }),
|
|
390
|
+
iconBefore: /* @__PURE__ */ I(X, {
|
|
391
391
|
size: p.SM,
|
|
392
392
|
"aria-hidden": "true"
|
|
393
393
|
}),
|
|
394
|
-
"aria-label":
|
|
394
|
+
"aria-label": Y,
|
|
395
395
|
"aria-expanded": !W,
|
|
396
|
-
"aria-controls":
|
|
396
|
+
"aria-controls": Q,
|
|
397
397
|
className: "mt-3",
|
|
398
|
-
onClick:
|
|
398
|
+
onClick: re,
|
|
399
399
|
size: h.Small
|
|
400
400
|
})]
|
|
401
401
|
})
|
|
402
402
|
}),
|
|
403
|
-
/* @__PURE__ */ I(
|
|
403
|
+
/* @__PURE__ */ I(se, {
|
|
404
404
|
...i,
|
|
405
405
|
isAlwaysVisible: o,
|
|
406
406
|
role: a.User
|
|
@@ -408,21 +408,21 @@ var z = {
|
|
|
408
408
|
]
|
|
409
409
|
})
|
|
410
410
|
});
|
|
411
|
-
},
|
|
411
|
+
}, ue = ({ role: e, beforeContent: t, textSegments: n, onAttachmentClick: r, responseFormat: i, markdownComponents: o, markdownUrlTransform: s, ...c }) => e === a.Status ? /* @__PURE__ */ I(X, { labels: {
|
|
412
412
|
titleText: c.labels?.statusTitleText,
|
|
413
413
|
bodyText: c.labels?.statusBodyText ?? ""
|
|
414
|
-
} }) : e === a.User ? /* @__PURE__ */ I(
|
|
414
|
+
} }) : e === a.User ? /* @__PURE__ */ I(Q, {
|
|
415
415
|
...c,
|
|
416
416
|
textSegments: n,
|
|
417
417
|
onAttachmentClick: r
|
|
418
|
-
}) : /* @__PURE__ */ I(
|
|
418
|
+
}) : /* @__PURE__ */ I(Y, {
|
|
419
419
|
...c,
|
|
420
420
|
beforeContent: t,
|
|
421
421
|
responseFormat: i,
|
|
422
422
|
markdownComponents: o,
|
|
423
423
|
markdownUrlTransform: s,
|
|
424
424
|
onAttachmentClick: r
|
|
425
|
-
}),
|
|
425
|
+
}), de = { button: "_button_tqo4d_3" }, fe = ({ rect: e, actionRef: t, onReply: n, addedRevision: r, labels: i, styles: a, portalContainer: o }) => {
|
|
426
426
|
let { colors: l, typography: u, className: p, buttonClassName: g } = a ?? {}, _ = u?.fontClassName ?? "dial-small-text", v = o === void 0 ? typeof document > "u" ? null : document.body : o, y = s({
|
|
427
427
|
"--cm-reply-background": l?.background,
|
|
428
428
|
"--cm-reply-hover-background": l?.hoverBackground,
|
|
@@ -459,7 +459,7 @@ var z = {
|
|
|
459
459
|
label: i.reply,
|
|
460
460
|
onClick: n,
|
|
461
461
|
textClassName: _,
|
|
462
|
-
className: c(
|
|
462
|
+
className: c(de.button, "h-8 min-h-8 min-w-11 px-2 shadow-lg mobile:h-11 mobile:min-h-11", g),
|
|
463
463
|
iconAfter: /* @__PURE__ */ I(E, {
|
|
464
464
|
size: 16,
|
|
465
465
|
stroke: m,
|
|
@@ -475,4 +475,4 @@ var z = {
|
|
|
475
475
|
})] }), v) : null;
|
|
476
476
|
};
|
|
477
477
|
//#endregion
|
|
478
|
-
export {
|
|
478
|
+
export { Y as AssistantMessageBubble, Z as BubblePosition, z as CONVERSATION_MESSAGES_CLASS, se as MessageActions, ue as MessageBubble, fe as MessageSelectionReply, X as StatusMessageBubble, Q 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.13",
|
|
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.13"
|
|
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.13",
|
|
28
28
|
"@epam/ai-dial-ui-kit": "^0.15.0"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|