@epam/ai-dial-conversation-messages 1.4.0-dev.12 → 1.4.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/components/MessageActions/MessageActions.d.ts.map +1 -1
- package/components/MessageBubble/AssistantMessageBubble.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +196 -195
- package/models/message-actions.d.ts +1 -1
- package/models/message-actions.d.ts.map +1 -1
- package/models/message-bubble.d.ts +2 -0
- package/models/message-bubble.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageActions.d.ts","sourceRoot":"","sources":["../../../src/components/MessageActions/MessageActions.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAKxE,uIAAuI;AACvI,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"MessageActions.d.ts","sourceRoot":"","sources":["../../../src/components/MessageActions/MessageActions.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,EAAE,EAA4C,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAKxE,uIAAuI;AACvI,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAuQlD,CAAC"}
|
|
@@ -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;AAc/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;AAc/E,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAqRlE,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
._activeRating_ygoee_1{color:var(--ma-active-rating-text,var(--text-accent,#1d4ed8))}._time_16pwx_2{color:var(--cm-timestamp-text,var(--text-secondary,#57647a))}._userBubble_17fln_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-sunken,#eef1f7))}._collapsibleText_17fln_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_17fln_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_17fln_15:after{content:"";pointer-events:none;inset-inline:0;background:linear-gradient(to bottom, var(--cm-bubble-fade-start,var(--shadow-xs-2,#161b2d08)), var(--cm-bubble-user-bg,var(--bg-layer-sunken,#eef1f7)));height:3rem;position:absolute;bottom:0}@media (prefers-reduced-motion:reduce){._collapsibleText_17fln_6{transition:none}}._startersDivider_17fln_31{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_17fln_35{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}._button_tqo4d_3._button_tqo4d_3{color:var(--cm-reply-text,var(--text-primary,#161b2d));background:var(--cm-reply-background,var(--bg-layer-raised,#fcfcfc))!important}._button_tqo4d_3._button_tqo4d_3:hover{color:var(--cm-reply-text,var(--text-primary,#161b2d));background:var(--cm-reply-hover-background,var(--bg-layer-base,#f5f7fa))!important}._label_1nohb_1{color:var(--cst-text,var(--text-secondary,#57647a))}
|
|
2
2
|
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.collapse{visibility:collapse}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-s-0{inset-inline-start:0}.top-0{top:0}.left-0{left:0}.z-50{z-index:50}.-ms-1{margin-inline-start:-.25rem}.ms-auto{margin-inline-start:auto}.-me-1{margin-inline-end:-.25rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.h-8{height:2rem}.h-\[422px\]\!{height:422px!important}.h-full{height:100%}.min-h-8{min-height:2rem}.w-\[calc\(100\%\+8px\)\]{width:calc(100% + 8px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[640px\]{max-width:640px}.max-w-\[calc\(100vw-16px\)\]{max-width:calc(100vw - 16px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-11{min-width:2.75rem}.min-w-\[40px\]{min-width:40px}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.rounded-ss-2xl{border-start-start-radius:1rem}.rounded-se-2xl{border-start-end-radius:1rem}.rounded-se-md{border-start-end-radius:.375rem}.rounded-ee-2xl{border-end-end-radius:1rem}.rounded-ee-md{border-end-end-radius:.375rem}.rounded-es-2xl{border-end-start-radius:1rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-6{padding-inline:1.5rem}.py-4{padding-block:1rem}.ps-1{padding-inline-start:.25rem}.pe-1{padding-inline-end:.25rem}.pt-5{padding-top:1.25rem}.text-center{text-align:center}.text-start{text-align:start}.wrap-anywhere{overflow-wrap:anywhere}.whitespace-nowrap{white-space:nowrap}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:1px 10px 25px 12px var(--tw-shadow-color,var(--shadow-lg,#2764d914));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.group-focus-within\/message\:opacity-100:is(:where(.group\/message):focus-within *){opacity:1}@media (hover:hover){.group-hover\:
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.collapse{visibility:collapse}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-s-0{inset-inline-start:0}.top-0{top:0}.left-0{left:0}.z-50{z-index:50}.-ms-1{margin-inline-start:-.25rem}.ms-auto{margin-inline-start:auto}.-me-1{margin-inline-end:-.25rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.h-8{height:2rem}.h-\[422px\]\!{height:422px!important}.h-full{height:100%}.min-h-8{min-height:2rem}.w-\[calc\(100\%\+8px\)\]{width:calc(100% + 8px)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\[640px\]{max-width:640px}.max-w-\[calc\(100vw-16px\)\]{max-width:calc(100vw - 16px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-11{min-width:2.75rem}.min-w-\[40px\]{min-width:40px}.flex-1{flex:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.rounded-ss-2xl{border-start-start-radius:1rem}.rounded-se-2xl{border-start-end-radius:1rem}.rounded-se-md{border-start-end-radius:.375rem}.rounded-ee-2xl{border-end-end-radius:1rem}.rounded-ee-md{border-end-end-radius:.375rem}.rounded-es-2xl{border-end-start-radius:1rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.px-1{padding-inline:.25rem}.px-2{padding-inline:.5rem}.px-6{padding-inline:1.5rem}.py-4{padding-block:1rem}.ps-1{padding-inline-start:.25rem}.pe-1{padding-inline-end:.25rem}.pt-5{padding-top:1.25rem}.text-center{text-align:center}.text-start{text-align:start}.wrap-anywhere{overflow-wrap:anywhere}.whitespace-nowrap{white-space:nowrap}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:1px 10px 25px 12px var(--tw-shadow-color,var(--shadow-lg,#2764d914));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.group-focus-within\/message\:opacity-100:is(:where(.group\/message):focus-within *){opacity:1}@media (hover:hover){.group-hover\:visible:is(:where(.group):hover *){visibility:visible}.group-hover\/message\:opacity-100:is(:where(.group\/message):hover *){opacity:1}}.rtl\:scale-x-\[-1\]:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:-1;scale:var(--tw-scale-x) var(--tw-scale-y)}@media (max-width:1279px){.mobile\:h-11{height:2.75rem}.mobile\:min-h-11{min-height:2.75rem}}.\[\&\>\.cm-bubble-markdown\>div\>\*\:first-child\]\:indent-\[var\(--cm-bubble-first-line-indent\,0px\)\]>.cm-bubble-markdown>div>:first-child{text-indent:var(--cm-bubble-first-line-indent,0px)}.\[\&\>div\>\*\:first-child\]\:mt-0>div>:first-child{margin-top:0}.\[\&\>div\>\*\:last-child\]\:mb-0>div>:last-child{margin-bottom:0}@media (hover:none){.\[\@media\(hover\:none\)\]\:opacity-100{opacity:1}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
|
package/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { AttachmentType as e, CopyIconButton as t, DeploymentIcon as n, MDMessageViewer as r, MessageRating as i, MessageRole as a, ResponseFormat as o, buildCssVars as s, buildInlineSegmentSource as c, createInlineSegmentComponents as l, createRehypeInlineSegments as u, mergeClasses as d, useCollapsedText as f } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { AttachmentGroup as p } from "@epam/ai-dial-attachment-input";
|
|
3
|
-
import { Button as m, ButtonVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, ElementSize as v, GhostIconButton as y, InfoMessageNotification as b, LinkButton as x, LiveRegion as S, LiveRegionElement as C, NeutralButton as w, Popup as T, PopupSize as
|
|
4
|
-
import { memo as
|
|
5
|
-
import { IconArrowBackUp as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { createPortal as
|
|
3
|
+
import { Button as m, ButtonVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, ElementSize as v, GhostIconButton as y, InfoMessageNotification as b, LinkButton as x, LiveRegion as S, LiveRegionElement as C, NeutralButton as w, Popup as T, PopupSize as E, Select as ee, Textarea as D, Tooltip as O } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { memo as k, useCallback as A, useEffect as j, useId as M, useLayoutEffect as N, useMemo as P, useRef as te, useState as F } from "react";
|
|
5
|
+
import { IconArrowBackUp as I, IconChevronDown as L, IconChevronUp as ne, IconMarkdown as re, IconPencilMinus as ie, IconRefresh as ae, IconThumbDown as R, IconThumbDownFilled as oe, IconThumbUp as se, IconThumbUpFilled as ce, IconTrashX as le } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
7
|
+
import { createPortal as ue } from "react-dom";
|
|
8
8
|
//#region src/constants/public-class-names.ts
|
|
9
9
|
var H = {
|
|
10
10
|
userBubble: "dial-cm-user-bubble",
|
|
11
11
|
assistantContent: "dial-cm-assistant-content"
|
|
12
12
|
}, de = 4, fe = (e) => {
|
|
13
|
-
let t =
|
|
14
|
-
return
|
|
13
|
+
let t = te(null), [n, r] = F(0);
|
|
14
|
+
return j(() => {
|
|
15
15
|
if (!e) return;
|
|
16
16
|
let n = t.current;
|
|
17
17
|
if (n == null) return;
|
|
@@ -36,7 +36,7 @@ var H = {
|
|
|
36
36
|
"pre-wrap",
|
|
37
37
|
"pre-line",
|
|
38
38
|
"break-spaces"
|
|
39
|
-
]),
|
|
39
|
+
]), he = (e) => {
|
|
40
40
|
let t = document.createElement(e.tagName.toLowerCase());
|
|
41
41
|
pe.forEach((n) => {
|
|
42
42
|
let r = e.getAttribute(n);
|
|
@@ -44,30 +44,30 @@ var H = {
|
|
|
44
44
|
});
|
|
45
45
|
let { whiteSpace: n } = window.getComputedStyle(e);
|
|
46
46
|
return me.has(n) && (t.style.whiteSpace = "pre-wrap"), t;
|
|
47
|
-
},
|
|
47
|
+
}, U = (e) => e instanceof SVGElement || window.getComputedStyle(e).display === "none", W = (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) || U(e)) return null;
|
|
54
|
+
let n = he(e);
|
|
55
55
|
return e.childNodes.forEach((e) => {
|
|
56
|
-
let r =
|
|
56
|
+
let r = W(e, t);
|
|
57
57
|
r && n.appendChild(r);
|
|
58
58
|
}), n;
|
|
59
|
-
},
|
|
59
|
+
}, G = (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 = he(i);
|
|
63
63
|
e.appendChild(r), r = e, i = i.parentElement;
|
|
64
64
|
}
|
|
65
65
|
return r;
|
|
66
|
-
},
|
|
66
|
+
}, K = (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 ?
|
|
69
|
+
let i = W(r, e);
|
|
70
|
+
return i ? G(i, r.parentElement, t) : null;
|
|
71
71
|
}, ge = (e) => {
|
|
72
72
|
let t = window.getSelection();
|
|
73
73
|
if (!t || t.isCollapsed || t.rangeCount === 0 || !e.clipboardData) return;
|
|
@@ -75,148 +75,148 @@ var H = {
|
|
|
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 = K(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
|
-
}, _e = { activeRating: "_activeRating_ygoee_1" }, ve = 2e3, ye = ({ 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: w = !1, className: T, labels:
|
|
83
|
-
let { tooltips:
|
|
84
|
-
|
|
85
|
-
let
|
|
86
|
-
clearTimeout(
|
|
87
|
-
}, []),
|
|
88
|
-
l?.(),
|
|
82
|
+
}, _e = { activeRating: "_activeRating_ygoee_1" }, ve = 2e3, ye = ({ 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: w = !1, className: T, labels: E, colors: ee }) => {
|
|
83
|
+
let { tooltips: D, ariaLabels: O } = E ?? {}, [k, M] = F(null), [N, P] = F(""), I = te(void 0);
|
|
84
|
+
j(() => () => clearTimeout(I.current), []);
|
|
85
|
+
let L = A(() => {
|
|
86
|
+
clearTimeout(I.current), I.current = setTimeout(() => M(null), ve);
|
|
87
|
+
}, []), ne = n != null || o != null || c != null || l != null || u != null || f != null || p != null || b != null || x != null, ue = s({ "--ma-active-rating-text": ee?.activeRatingText }), H = A(() => {
|
|
88
|
+
l?.(), M("copy"), P(e === a.User ? O?.copiedMessageStatus ?? "Message copied to clipboard" : O?.copiedStatus ?? "Copied to clipboard"), L();
|
|
89
89
|
}, [
|
|
90
90
|
l,
|
|
91
91
|
e,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
]), de =
|
|
96
|
-
u?.(),
|
|
92
|
+
O?.copiedStatus,
|
|
93
|
+
O?.copiedMessageStatus,
|
|
94
|
+
L
|
|
95
|
+
]), de = A(() => {
|
|
96
|
+
u?.(), M("markdown"), P(O?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), L();
|
|
97
97
|
}, [
|
|
98
98
|
u,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
O?.copiedMarkdownStatus,
|
|
100
|
+
L
|
|
101
101
|
]);
|
|
102
|
-
return
|
|
102
|
+
return ne ? /* @__PURE__ */ V("div", {
|
|
103
103
|
role: "toolbar",
|
|
104
|
-
"aria-label":
|
|
105
|
-
style:
|
|
106
|
-
className: d("flex items-center gap-1", !h && "
|
|
104
|
+
"aria-label": O?.actionsGroup ?? "Message actions",
|
|
105
|
+
style: ue,
|
|
106
|
+
className: d("flex items-center gap-1", !h && "invisible group-hover:visible", T),
|
|
107
107
|
children: [
|
|
108
108
|
b,
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ B(S, {
|
|
110
110
|
visuallyHidden: !0,
|
|
111
111
|
as: C.Span,
|
|
112
|
-
children:
|
|
112
|
+
children: N
|
|
113
113
|
}),
|
|
114
|
-
e === a.User ? /* @__PURE__ */
|
|
115
|
-
l && /* @__PURE__ */
|
|
114
|
+
e === a.User ? /* @__PURE__ */ V(z, { children: [
|
|
115
|
+
l && /* @__PURE__ */ B(t, {
|
|
116
116
|
iconSize: g.SM,
|
|
117
117
|
onClick: H,
|
|
118
118
|
size: v.Small,
|
|
119
|
-
isCopied:
|
|
120
|
-
copyLabel:
|
|
121
|
-
copiedLabel:
|
|
122
|
-
ariaLabel:
|
|
119
|
+
isCopied: k === "copy",
|
|
120
|
+
copyLabel: D?.copyMessage ?? "Copy message",
|
|
121
|
+
copiedLabel: D?.copied ?? "Copied!",
|
|
122
|
+
ariaLabel: O?.copyMessage ?? "Copy message",
|
|
123
123
|
isDisabled: w
|
|
124
124
|
}),
|
|
125
|
-
n && /* @__PURE__ */
|
|
126
|
-
icon: /* @__PURE__ */
|
|
125
|
+
n && /* @__PURE__ */ B(y, {
|
|
126
|
+
icon: /* @__PURE__ */ B(ie, {
|
|
127
127
|
size: g.SM,
|
|
128
128
|
"aria-hidden": !0,
|
|
129
129
|
stroke: _
|
|
130
130
|
}),
|
|
131
131
|
size: v.Small,
|
|
132
|
-
"aria-label":
|
|
133
|
-
tooltipProps: { tooltip:
|
|
132
|
+
"aria-label": O?.editMessage ?? "Edit message",
|
|
133
|
+
tooltipProps: { tooltip: D?.edit ?? "Edit" },
|
|
134
134
|
onClick: n,
|
|
135
135
|
onMouseEnter: r,
|
|
136
136
|
onFocus: r,
|
|
137
137
|
disabled: w
|
|
138
138
|
}),
|
|
139
|
-
o && /* @__PURE__ */
|
|
140
|
-
icon: /* @__PURE__ */
|
|
139
|
+
o && /* @__PURE__ */ B(y, {
|
|
140
|
+
icon: /* @__PURE__ */ B(le, {
|
|
141
141
|
size: g.SM,
|
|
142
142
|
"aria-hidden": !0,
|
|
143
143
|
stroke: _
|
|
144
144
|
}),
|
|
145
145
|
size: v.Small,
|
|
146
|
-
"aria-label":
|
|
147
|
-
tooltipProps: { tooltip:
|
|
146
|
+
"aria-label": O?.deleteMessage ?? "Delete message",
|
|
147
|
+
tooltipProps: { tooltip: D?.delete ?? "Delete" },
|
|
148
148
|
onClick: o,
|
|
149
149
|
disabled: w
|
|
150
150
|
})
|
|
151
|
-
] }) : /* @__PURE__ */
|
|
152
|
-
c && /* @__PURE__ */
|
|
153
|
-
icon: /* @__PURE__ */
|
|
151
|
+
] }) : /* @__PURE__ */ V(z, { children: [
|
|
152
|
+
c && /* @__PURE__ */ B(y, {
|
|
153
|
+
icon: /* @__PURE__ */ B(ae, {
|
|
154
154
|
size: g.SM,
|
|
155
155
|
"aria-hidden": !0,
|
|
156
156
|
stroke: _
|
|
157
157
|
}),
|
|
158
158
|
size: v.Small,
|
|
159
|
-
"aria-label":
|
|
160
|
-
tooltipProps: { tooltip:
|
|
159
|
+
"aria-label": O?.regenerateResponse ?? "Regenerate response",
|
|
160
|
+
tooltipProps: { tooltip: D?.regenerate ?? "Regenerate" },
|
|
161
161
|
onClick: c,
|
|
162
162
|
disabled: w
|
|
163
163
|
}),
|
|
164
|
-
l && /* @__PURE__ */
|
|
164
|
+
l && /* @__PURE__ */ B(t, {
|
|
165
165
|
iconSize: g.SM,
|
|
166
166
|
onClick: H,
|
|
167
167
|
size: v.Small,
|
|
168
|
-
isCopied:
|
|
169
|
-
copyLabel:
|
|
170
|
-
copiedLabel:
|
|
171
|
-
ariaLabel:
|
|
168
|
+
isCopied: k === "copy",
|
|
169
|
+
copyLabel: D?.copy ?? "Copy",
|
|
170
|
+
copiedLabel: D?.copied ?? "Copied!",
|
|
171
|
+
ariaLabel: O?.copyResponse ?? "Copy response",
|
|
172
172
|
isDisabled: w
|
|
173
173
|
}),
|
|
174
|
-
u && /* @__PURE__ */
|
|
174
|
+
u && /* @__PURE__ */ B(t, {
|
|
175
175
|
iconSize: g.SM,
|
|
176
176
|
onClick: de,
|
|
177
177
|
size: v.Small,
|
|
178
|
-
isCopied:
|
|
179
|
-
iconCopy: /* @__PURE__ */
|
|
178
|
+
isCopied: k === "markdown",
|
|
179
|
+
iconCopy: /* @__PURE__ */ B(re, {
|
|
180
180
|
size: g.SM,
|
|
181
181
|
"aria-hidden": !0,
|
|
182
182
|
stroke: _
|
|
183
183
|
}),
|
|
184
|
-
copyLabel:
|
|
185
|
-
copiedLabel:
|
|
186
|
-
ariaLabel:
|
|
184
|
+
copyLabel: D?.copyMarkdown ?? "Copy as Markdown",
|
|
185
|
+
copiedLabel: D?.copiedMarkdown ?? "Copied!",
|
|
186
|
+
ariaLabel: O?.copyAsMarkdown ?? "Copy as markdown",
|
|
187
187
|
isDisabled: w
|
|
188
188
|
}),
|
|
189
|
-
f && /* @__PURE__ */
|
|
190
|
-
icon: m === i.Like ? /* @__PURE__ */
|
|
189
|
+
f && /* @__PURE__ */ B(y, {
|
|
190
|
+
icon: m === i.Like ? /* @__PURE__ */ B(ce, {
|
|
191
191
|
className: _e.activeRating,
|
|
192
192
|
size: g.SM,
|
|
193
193
|
"aria-hidden": !0
|
|
194
|
-
}) : /* @__PURE__ */
|
|
194
|
+
}) : /* @__PURE__ */ B(se, {
|
|
195
195
|
size: g.SM,
|
|
196
196
|
"aria-hidden": !0,
|
|
197
197
|
stroke: _
|
|
198
198
|
}),
|
|
199
199
|
size: v.Small,
|
|
200
|
-
"aria-label":
|
|
200
|
+
"aria-label": O?.likeResponse ?? "Like response",
|
|
201
201
|
"aria-pressed": m === i.Like,
|
|
202
|
-
tooltipProps: { tooltip:
|
|
202
|
+
tooltipProps: { tooltip: D?.like ?? "Like" },
|
|
203
203
|
onClick: f,
|
|
204
204
|
disabled: w
|
|
205
205
|
}),
|
|
206
|
-
p && /* @__PURE__ */
|
|
207
|
-
icon: m === i.Dislike ? /* @__PURE__ */
|
|
206
|
+
p && /* @__PURE__ */ B(y, {
|
|
207
|
+
icon: m === i.Dislike ? /* @__PURE__ */ B(oe, {
|
|
208
208
|
className: _e.activeRating,
|
|
209
209
|
size: g.SM,
|
|
210
210
|
"aria-hidden": !0
|
|
211
|
-
}) : /* @__PURE__ */
|
|
211
|
+
}) : /* @__PURE__ */ B(R, {
|
|
212
212
|
size: g.SM,
|
|
213
213
|
"aria-hidden": !0,
|
|
214
214
|
stroke: _
|
|
215
215
|
}),
|
|
216
216
|
size: v.Small,
|
|
217
|
-
"aria-label":
|
|
217
|
+
"aria-label": O?.dislikeResponse ?? "Dislike response",
|
|
218
218
|
"aria-pressed": m === i.Dislike,
|
|
219
|
-
tooltipProps: { tooltip:
|
|
219
|
+
tooltipProps: { tooltip: D?.dislike ?? "Dislike" },
|
|
220
220
|
onClick: p,
|
|
221
221
|
disabled: w
|
|
222
222
|
})
|
|
@@ -225,8 +225,8 @@ var H = {
|
|
|
225
225
|
]
|
|
226
226
|
}) : null;
|
|
227
227
|
}, be = (e) => {
|
|
228
|
-
let [t, n] =
|
|
229
|
-
return
|
|
228
|
+
let [t, n] = F(() => /* @__PURE__ */ new Date());
|
|
229
|
+
return j(() => {
|
|
230
230
|
let t = setInterval(() => n(/* @__PURE__ */ new Date()), e);
|
|
231
231
|
return () => clearInterval(t);
|
|
232
232
|
}, [e]), t;
|
|
@@ -272,10 +272,10 @@ var H = {
|
|
|
272
272
|
return r.format(0, "second");
|
|
273
273
|
}, De = { time: "_time_16pwx_2" }, Oe = 6e4, ke = "opacity-0 transition-opacity group-hover/message:opacity-100 group-focus-within/message:opacity-100 [@media(hover:none)]:opacity-100", Ae = ({ timestamp: e, locale: t, className: n = "dial-small-text" }) => {
|
|
274
274
|
let r = be(Oe), i = Ce(e);
|
|
275
|
-
return i == null ? null : /* @__PURE__ */
|
|
275
|
+
return i == null ? null : /* @__PURE__ */ B(O, {
|
|
276
276
|
tooltip: we(i, t),
|
|
277
277
|
asChild: !0,
|
|
278
|
-
children: /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ B("time", {
|
|
279
279
|
dateTime: e,
|
|
280
280
|
tabIndex: 0,
|
|
281
281
|
className: d("px-1 whitespace-nowrap", De.time, n, ke),
|
|
@@ -289,12 +289,12 @@ var H = {
|
|
|
289
289
|
collapsedText: "_collapsedText_17fln_15",
|
|
290
290
|
startersDivider: "_startersDivider_17fln_31",
|
|
291
291
|
text: "_text_17fln_35"
|
|
292
|
-
}, je = "[&>.cm-bubble-markdown>div>*:first-child]:indent-[var(--cm-bubble-first-line-indent,0px)]", Me = ({ text: t, contentRef: i, styles: c, actions: l, hasAlwaysVisibleActions: u, timestamp: f, locale: m, isStreaming: h, attachments: g, beforeContent: _, responseFormat: v, afterContent: y, hasThinkingPlaceholder: b = !0, starters: x, onSelectStarter: S,
|
|
293
|
-
let { colors:
|
|
292
|
+
}, je = "[&>.cm-bubble-markdown>div>*:first-child]:indent-[var(--cm-bubble-first-line-indent,0px)]", Me = ({ text: t, contentRef: i, styles: c, actions: l, hasAlwaysVisibleActions: u, timestamp: f, locale: m, isStreaming: h, attachments: g, beforeContent: _, responseFormat: v, afterContent: y, hasThinkingPlaceholder: b = !0, starters: x, onSelectStarter: S, isStarterSelectionDisabled: C = !1, deploymentIconUrl: T, deploymentDisplayName: E, markdownComponents: ee, markdownClassNames: D, markdownUrlTransform: O, onAttachmentClick: k, onDownloadAll: A, isAttachmentDownloadable: j, onAttachmentRetry: M, codeBlockTheme: N, tableOnOpenInCanvas: te, labels: F, selectedAttachmentId: I }) => {
|
|
293
|
+
let { colors: L, typography: ne, className: re, bubbleClassName: ie, timestampClassName: ae } = c ?? {}, R = f == null ? void 0 : /* @__PURE__ */ B(Ae, {
|
|
294
294
|
timestamp: f,
|
|
295
295
|
locale: m,
|
|
296
296
|
className: ae
|
|
297
|
-
}), { attachmentClickLabel: oe, attachmentDownloadLabel: se, attachmentRetryLabel: ce, attachmentOpenInNewTabLabel: le, startersAriaLabel: ue = "Quick reply buttons", thinkingLabel:
|
|
297
|
+
}), { attachmentClickLabel: oe, attachmentDownloadLabel: se, attachmentRetryLabel: ce, attachmentOpenInNewTabLabel: le, startersAriaLabel: ue = "Quick reply buttons", thinkingLabel: de, codeBlockCopyLabel: pe, codeBlockCopiedLabel: me, codeBlockDownloadLabel: he, tableCopyLabel: U, tableCopiedLabel: W, tableDownloadCsvLabel: G, tableOpenInCanvasLabel: K, tableDownloadFilename: _e, tableScrollRegionAriaLabel: ve, mathScrollRegionAriaLabel: be, assistantMessageAriaLabel: q = "Assistant message", deploymentIconFallbackLabel: J = "AI" } = F ?? {}, xe = P(() => ({
|
|
298
298
|
copyLabel: U,
|
|
299
299
|
copiedLabel: W,
|
|
300
300
|
downloadCsvLabel: G,
|
|
@@ -304,137 +304,138 @@ var H = {
|
|
|
304
304
|
W,
|
|
305
305
|
G,
|
|
306
306
|
K
|
|
307
|
-
]),
|
|
308
|
-
"--cm-bubble-text":
|
|
309
|
-
"--cm-starters-divider":
|
|
310
|
-
"--cm-timestamp-text":
|
|
311
|
-
"--cm-bubble-first-line-indent":
|
|
312
|
-
}),
|
|
313
|
-
return /* @__PURE__ */
|
|
307
|
+
]), Y = h ? (g ?? []).filter((t) => t.type !== e.Audio) : g ?? [], X = !!t?.trim(), Z = !X && !b, { slotRef: Q, firstLineIndent: Se } = fe(_ != null && X), Ce = s({
|
|
308
|
+
"--cm-bubble-text": L?.text,
|
|
309
|
+
"--cm-starters-divider": L?.startersDivider,
|
|
310
|
+
"--cm-timestamp-text": L?.timestampText,
|
|
311
|
+
"--cm-bubble-first-line-indent": Se
|
|
312
|
+
}), we = d($.text, ne?.fontClassName), Te = !!(T || E);
|
|
313
|
+
return /* @__PURE__ */ V("div", {
|
|
314
314
|
role: "group",
|
|
315
|
-
"aria-label":
|
|
316
|
-
style:
|
|
315
|
+
"aria-label": q,
|
|
316
|
+
style: Ce,
|
|
317
317
|
onCopy: ge,
|
|
318
318
|
className: d("group/message flex w-full items-start gap-3", re),
|
|
319
|
-
children: [
|
|
320
|
-
src:
|
|
319
|
+
children: [Te && /* @__PURE__ */ B(n, {
|
|
320
|
+
src: T,
|
|
321
321
|
size: 28,
|
|
322
|
-
initialsName:
|
|
323
|
-
labels: { tooltip:
|
|
324
|
-
}), /* @__PURE__ */
|
|
322
|
+
initialsName: E || J,
|
|
323
|
+
labels: { tooltip: E ?? J }
|
|
324
|
+
}), /* @__PURE__ */ V("div", {
|
|
325
325
|
className: "flex w-full max-w-full min-w-0 flex-col items-start gap-5",
|
|
326
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ V("div", {
|
|
327
327
|
className: d("flex w-full max-w-full min-w-0 flex-col items-start gap-4", ie),
|
|
328
328
|
children: [
|
|
329
|
-
_ != null && !
|
|
329
|
+
_ != null && !X && /* @__PURE__ */ B("div", {
|
|
330
330
|
className: "min-w-0",
|
|
331
331
|
children: _
|
|
332
332
|
}),
|
|
333
|
-
(
|
|
333
|
+
(X || h) && /* @__PURE__ */ V("div", {
|
|
334
334
|
"aria-live": "polite",
|
|
335
335
|
"aria-atomic": "false",
|
|
336
|
-
className: d(
|
|
337
|
-
children: [_ != null &&
|
|
338
|
-
ref:
|
|
336
|
+
className: d(we, Z ? "absolute" : "relative", "max-w-full min-w-0 text-start", _ != null && X && je, H.assistantContent),
|
|
337
|
+
children: [_ != null && X && /* @__PURE__ */ B("div", {
|
|
338
|
+
ref: Q,
|
|
339
339
|
className: "absolute inset-s-0 top-0",
|
|
340
340
|
children: _
|
|
341
|
-
}), !
|
|
341
|
+
}), !Z && /* @__PURE__ */ B("div", {
|
|
342
342
|
ref: i,
|
|
343
343
|
className: "cm-bubble-markdown max-w-full min-w-0 wrap-anywhere",
|
|
344
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ B(r, {
|
|
345
345
|
content: t ?? "",
|
|
346
346
|
isPlainText: v === o.PlainText,
|
|
347
347
|
isStreaming: h,
|
|
348
|
-
thinkingLabel:
|
|
348
|
+
thinkingLabel: de,
|
|
349
349
|
components: ee,
|
|
350
|
-
classNames:
|
|
351
|
-
urlTransform:
|
|
352
|
-
codeBlockCopyLabel:
|
|
353
|
-
codeBlockCopiedLabel:
|
|
354
|
-
codeBlockDownloadLabel:
|
|
355
|
-
codeBlockTheme:
|
|
356
|
-
tableActionLabels:
|
|
357
|
-
tableDownloadFilename:
|
|
358
|
-
tableOnOpenInCanvas:
|
|
359
|
-
tableScrollRegionAriaLabel:
|
|
360
|
-
mathScrollRegionAriaLabel:
|
|
350
|
+
classNames: D,
|
|
351
|
+
urlTransform: O,
|
|
352
|
+
codeBlockCopyLabel: pe,
|
|
353
|
+
codeBlockCopiedLabel: me,
|
|
354
|
+
codeBlockDownloadLabel: he,
|
|
355
|
+
codeBlockTheme: N,
|
|
356
|
+
tableActionLabels: xe,
|
|
357
|
+
tableDownloadFilename: _e,
|
|
358
|
+
tableOnOpenInCanvas: te,
|
|
359
|
+
tableScrollRegionAriaLabel: ve,
|
|
360
|
+
mathScrollRegionAriaLabel: be
|
|
361
361
|
})
|
|
362
362
|
})]
|
|
363
363
|
}),
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
-
attachments:
|
|
366
|
-
onAttachmentClick:
|
|
364
|
+
/* @__PURE__ */ B(p, {
|
|
365
|
+
attachments: Y,
|
|
366
|
+
onAttachmentClick: k ? (e) => {
|
|
367
367
|
let t = g?.find((t) => t.id === e);
|
|
368
|
-
t &&
|
|
368
|
+
t && k(t);
|
|
369
369
|
} : void 0,
|
|
370
|
-
onDownloadAll:
|
|
371
|
-
isAttachmentDownloadable:
|
|
372
|
-
onRetry:
|
|
370
|
+
onDownloadAll: A,
|
|
371
|
+
isAttachmentDownloadable: j,
|
|
372
|
+
onRetry: M,
|
|
373
373
|
labels: {
|
|
374
374
|
clickLabel: oe,
|
|
375
375
|
downloadLabel: se,
|
|
376
376
|
retryLabel: ce,
|
|
377
377
|
openInNewTabLabel: le
|
|
378
378
|
},
|
|
379
|
-
selectedAttachmentId:
|
|
379
|
+
selectedAttachmentId: I
|
|
380
380
|
}),
|
|
381
381
|
y,
|
|
382
|
-
/* @__PURE__ */
|
|
382
|
+
/* @__PURE__ */ B(ye, {
|
|
383
383
|
...l,
|
|
384
384
|
isAlwaysVisible: u,
|
|
385
|
-
trailingContent:
|
|
385
|
+
trailingContent: R == null ? l?.trailingContent : /* @__PURE__ */ V(z, { children: [l?.trailingContent, R] }),
|
|
386
386
|
role: a.Assistant
|
|
387
387
|
})
|
|
388
388
|
]
|
|
389
|
-
}), x && x.length > 0 && S && /* @__PURE__ */
|
|
389
|
+
}), x && x.length > 0 && S && /* @__PURE__ */ B("div", {
|
|
390
390
|
role: "list",
|
|
391
391
|
"aria-label": ue,
|
|
392
392
|
className: d("flex w-full flex-wrap gap-2 border-t pt-5", $.startersDivider),
|
|
393
|
-
children: x.map((e, t) => /* @__PURE__ */
|
|
393
|
+
children: x.map((e, t) => /* @__PURE__ */ B("div", {
|
|
394
394
|
role: "listitem",
|
|
395
395
|
className: "min-w-[40px]",
|
|
396
|
-
children: /* @__PURE__ */
|
|
396
|
+
children: /* @__PURE__ */ B(w, {
|
|
397
397
|
label: e.title,
|
|
398
398
|
className: "min-w-[40px]",
|
|
399
|
+
disabled: C,
|
|
399
400
|
onClick: () => S(e)
|
|
400
401
|
})
|
|
401
402
|
}, t))
|
|
402
403
|
})]
|
|
403
404
|
})]
|
|
404
405
|
});
|
|
405
|
-
}, Ne = ({ labels: { titleText: e = "Model switched.", bodyText: t } }) => /* @__PURE__ */
|
|
406
|
+
}, Ne = ({ labels: { titleText: e = "Model switched.", bodyText: t } }) => /* @__PURE__ */ B(b, {
|
|
406
407
|
title: e,
|
|
407
408
|
message: t,
|
|
408
409
|
textClassName: "flex-row flex-wrap gap-1"
|
|
409
410
|
}), Pe = /* @__PURE__ */ function(e) {
|
|
410
411
|
return e.Bottom = "Bottom", e.Top = "Top", e;
|
|
411
|
-
}({}), Fe = 10, Ie = "[&>div>*:first-child]:mt-0 [&>div>*:last-child]:mb-0", Le = [], Re = ({ text: e, contentRef: t, position: n = Pe.Bottom, styles: i, actions: o, hasAlwaysVisibleActions: m, timestamp: h, locale: _, attachments: y, collapsedLineCount: b = Fe, labels: S, textSegments: C, onAttachmentClick: w, onDownloadAll: T, isAttachmentDownloadable:
|
|
412
|
-
let { colors:
|
|
412
|
+
}({}), Fe = 10, Ie = "[&>div>*:first-child]:mt-0 [&>div>*:last-child]:mb-0", Le = [], Re = ({ text: e, contentRef: t, position: n = Pe.Bottom, styles: i, actions: o, hasAlwaysVisibleActions: m, timestamp: h, locale: _, attachments: y, collapsedLineCount: b = Fe, labels: S, textSegments: C, onAttachmentClick: w, onDownloadAll: T, isAttachmentDownloadable: E, onAttachmentRetry: ee, selectedAttachmentId: D, markdownClassNames: O, markdownUrlTransform: k, codeBlockTheme: A, tableOnOpenInCanvas: j }) => {
|
|
413
|
+
let { colors: N, typography: te, className: F, bubbleClassName: I, timestampClassName: re } = i ?? {}, ie = h == null ? void 0 : /* @__PURE__ */ B(Ae, {
|
|
413
414
|
timestamp: h,
|
|
414
415
|
locale: _,
|
|
415
|
-
className:
|
|
416
|
-
}), { showMoreLabel:
|
|
417
|
-
copyLabel:
|
|
418
|
-
copiedLabel:
|
|
419
|
-
downloadCsvLabel:
|
|
420
|
-
openInCanvasLabel:
|
|
416
|
+
className: re
|
|
417
|
+
}), { showMoreLabel: ae = "Show more", showLessLabel: R = "Show less", showMoreAriaLabel: oe, showLessAriaLabel: se, attachmentClickLabel: ce, attachmentDownloadLabel: le, attachmentRetryLabel: ue, attachmentOpenInNewTabLabel: de, userMessageAriaLabel: fe = "User message", codeBlockCopyLabel: pe, codeBlockCopiedLabel: me, codeBlockDownloadLabel: he, tableCopyLabel: U, tableCopiedLabel: W, tableDownloadCsvLabel: G, tableOpenInCanvasLabel: K, tableDownloadFilename: _e, tableScrollRegionAriaLabel: ve, mathScrollRegionAriaLabel: be } = S ?? {}, q = P(() => ({
|
|
418
|
+
copyLabel: U,
|
|
419
|
+
copiedLabel: W,
|
|
420
|
+
downloadCsvLabel: G,
|
|
421
|
+
openInCanvasLabel: K
|
|
421
422
|
}), [
|
|
423
|
+
U,
|
|
422
424
|
W,
|
|
423
425
|
G,
|
|
424
|
-
K
|
|
425
|
-
he
|
|
426
|
+
K
|
|
426
427
|
]), { textRef: J, isTextCollapsed: xe, isOverflowing: Y, collapsedMaxHeight: X, expandedMaxHeight: Z, isCollapsed: Q, toggleCollapsed: Se } = f({
|
|
427
428
|
text: e ?? "",
|
|
428
429
|
collapsedLineCount: b
|
|
429
430
|
}), Ce = s({
|
|
430
|
-
"--cm-bubble-user-bg":
|
|
431
|
-
"--cm-bubble-user-border":
|
|
432
|
-
"--cm-bubble-fade-start":
|
|
433
|
-
"--cm-bubble-text":
|
|
434
|
-
"--cm-timestamp-text":
|
|
431
|
+
"--cm-bubble-user-bg": N?.userBackground,
|
|
432
|
+
"--cm-bubble-user-border": N?.userBorder,
|
|
433
|
+
"--cm-bubble-fade-start": N?.fadeStart,
|
|
434
|
+
"--cm-bubble-text": N?.text,
|
|
435
|
+
"--cm-timestamp-text": N?.timestampText,
|
|
435
436
|
"--cm-bubble-collapsed-height": Y ? `${X}px` : void 0,
|
|
436
437
|
"--cm-bubble-expanded-height": Y ? `${Z}px` : void 0
|
|
437
|
-
}), we = n === Pe.Top ? "rounded-ee-md rounded-se-2xl" : "rounded-se-md rounded-ee-2xl", Te = d($.text,
|
|
438
|
+
}), we = n === Pe.Top ? "rounded-ee-md rounded-se-2xl" : "rounded-se-md rounded-ee-2xl", Te = d($.text, te?.fontClassName), { markdownSource: Ee, segmentRehypePlugins: De, segmentComponents: Oe } = P(() => {
|
|
438
439
|
if (C == null) return {
|
|
439
440
|
markdownSource: e ?? "",
|
|
440
441
|
segmentRehypePlugins: Le,
|
|
@@ -446,66 +447,66 @@ var H = {
|
|
|
446
447
|
segmentRehypePlugins: [u(n)],
|
|
447
448
|
segmentComponents: l(n)
|
|
448
449
|
};
|
|
449
|
-
}, [e, C]), ke =
|
|
450
|
-
return /* @__PURE__ */
|
|
450
|
+
}, [e, C]), ke = oe ?? ae, je = se ?? R, Me = Q ? ae : R, Ne = Q ? ke : je, Re = Q ? L : ne, ze = M();
|
|
451
|
+
return /* @__PURE__ */ B("div", {
|
|
451
452
|
role: "group",
|
|
452
453
|
"aria-label": fe,
|
|
453
454
|
style: Ce,
|
|
454
455
|
onCopy: ge,
|
|
455
|
-
className: d("group/message flex w-full",
|
|
456
|
-
children: /* @__PURE__ */
|
|
456
|
+
className: d("group/message flex w-full", F),
|
|
457
|
+
children: /* @__PURE__ */ V("div", {
|
|
457
458
|
className: "ms-auto flex w-fit max-w-full min-w-0 flex-col items-end gap-4",
|
|
458
459
|
children: [
|
|
459
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ B(p, {
|
|
460
461
|
attachments: y ?? [],
|
|
461
462
|
onAttachmentClick: w ? (e) => {
|
|
462
463
|
let t = y?.find((t) => t.id === e);
|
|
463
464
|
t && w(t);
|
|
464
465
|
} : void 0,
|
|
465
466
|
onDownloadAll: T,
|
|
466
|
-
isAttachmentDownloadable:
|
|
467
|
-
onRetry:
|
|
467
|
+
isAttachmentDownloadable: E,
|
|
468
|
+
onRetry: ee,
|
|
468
469
|
labels: {
|
|
469
|
-
clickLabel:
|
|
470
|
-
downloadLabel:
|
|
471
|
-
retryLabel:
|
|
470
|
+
clickLabel: ce,
|
|
471
|
+
downloadLabel: le,
|
|
472
|
+
retryLabel: ue,
|
|
472
473
|
openInNewTabLabel: de
|
|
473
474
|
},
|
|
474
475
|
styles: { className: "max-w-[640px]" },
|
|
475
|
-
selectedAttachmentId:
|
|
476
|
+
selectedAttachmentId: D
|
|
476
477
|
}),
|
|
477
|
-
e && /* @__PURE__ */
|
|
478
|
-
className: d($.userBubble, "flex w-fit max-w-full min-w-0 items-center justify-end rounded-ss-2xl rounded-es-2xl border px-6 py-4 wrap-anywhere", we,
|
|
479
|
-
children: /* @__PURE__ */
|
|
478
|
+
e && /* @__PURE__ */ B("div", {
|
|
479
|
+
className: d($.userBubble, "flex w-fit max-w-full min-w-0 items-center justify-end rounded-ss-2xl rounded-es-2xl border px-6 py-4 wrap-anywhere", we, I, H.userBubble),
|
|
480
|
+
children: /* @__PURE__ */ V("div", {
|
|
480
481
|
className: "flex min-w-0 flex-col items-start",
|
|
481
|
-
children: [/* @__PURE__ */
|
|
482
|
+
children: [/* @__PURE__ */ B("div", {
|
|
482
483
|
id: ze,
|
|
483
484
|
ref: t,
|
|
484
485
|
className: d("relative -ms-1 -me-1 w-[calc(100%+8px)] overflow-hidden ps-1 pe-1", Y && $.collapsibleText, Y && !Q && $.expandedText, xe && $.collapsedText),
|
|
485
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ B("div", {
|
|
486
487
|
ref: J,
|
|
487
488
|
className: d(Te, "max-w-full min-w-0 text-start", Ie),
|
|
488
|
-
children: /* @__PURE__ */
|
|
489
|
+
children: /* @__PURE__ */ B(r, {
|
|
489
490
|
content: Ee,
|
|
490
491
|
isRawHtmlEnabled: !1,
|
|
491
492
|
rehypePlugins: De,
|
|
492
493
|
components: Oe,
|
|
493
|
-
classNames:
|
|
494
|
-
urlTransform:
|
|
494
|
+
classNames: O,
|
|
495
|
+
urlTransform: k,
|
|
495
496
|
codeBlockCopyLabel: pe,
|
|
496
497
|
codeBlockCopiedLabel: me,
|
|
497
|
-
codeBlockDownloadLabel:
|
|
498
|
-
codeBlockTheme:
|
|
498
|
+
codeBlockDownloadLabel: he,
|
|
499
|
+
codeBlockTheme: A,
|
|
499
500
|
tableActionLabels: q,
|
|
500
501
|
tableDownloadFilename: _e,
|
|
501
|
-
tableOnOpenInCanvas:
|
|
502
|
+
tableOnOpenInCanvas: j,
|
|
502
503
|
tableScrollRegionAriaLabel: ve,
|
|
503
504
|
mathScrollRegionAriaLabel: be
|
|
504
505
|
})
|
|
505
506
|
})
|
|
506
|
-
}), Y && /* @__PURE__ */
|
|
507
|
-
label: /* @__PURE__ */ z
|
|
508
|
-
iconBefore: /* @__PURE__ */
|
|
507
|
+
}), Y && /* @__PURE__ */ B(x, {
|
|
508
|
+
label: /* @__PURE__ */ B(z, { children: Me }),
|
|
509
|
+
iconBefore: /* @__PURE__ */ B(Re, {
|
|
509
510
|
size: g.SM,
|
|
510
511
|
"aria-hidden": "true"
|
|
511
512
|
}),
|
|
@@ -518,24 +519,24 @@ var H = {
|
|
|
518
519
|
})]
|
|
519
520
|
})
|
|
520
521
|
}),
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ B(ye, {
|
|
522
523
|
...o,
|
|
523
524
|
isAlwaysVisible: m,
|
|
524
|
-
leadingContent:
|
|
525
|
+
leadingContent: ie == null ? o?.leadingContent : /* @__PURE__ */ V(z, { children: [ie, o?.leadingContent] }),
|
|
525
526
|
role: a.User
|
|
526
527
|
})
|
|
527
528
|
]
|
|
528
529
|
})
|
|
529
530
|
});
|
|
530
|
-
}, ze = ({ role: e, beforeContent: t, textSegments: n, onAttachmentClick: r, responseFormat: i, markdownComponents: o, markdownUrlTransform: s, ...c }) => e === a.Status ? /* @__PURE__ */
|
|
531
|
+
}, ze = ({ role: e, beforeContent: t, textSegments: n, onAttachmentClick: r, responseFormat: i, markdownComponents: o, markdownUrlTransform: s, ...c }) => e === a.Status ? /* @__PURE__ */ B(Ne, { labels: {
|
|
531
532
|
titleText: c.labels?.statusTitleText,
|
|
532
533
|
bodyText: c.labels?.statusBodyText ?? ""
|
|
533
|
-
} }) : e === a.User ? /* @__PURE__ */
|
|
534
|
+
} }) : e === a.User ? /* @__PURE__ */ B(Re, {
|
|
534
535
|
...c,
|
|
535
536
|
textSegments: n,
|
|
536
537
|
markdownUrlTransform: s,
|
|
537
538
|
onAttachmentClick: r
|
|
538
|
-
}) : /* @__PURE__ */
|
|
539
|
+
}) : /* @__PURE__ */ B(Me, {
|
|
539
540
|
...c,
|
|
540
541
|
beforeContent: t,
|
|
541
542
|
responseFormat: i,
|
|
@@ -549,11 +550,11 @@ var H = {
|
|
|
549
550
|
"--cm-reply-background": c?.background,
|
|
550
551
|
"--cm-reply-hover-background": c?.hoverBackground,
|
|
551
552
|
"--cm-reply-text": c?.text
|
|
552
|
-
}), [b, x] =
|
|
553
|
+
}), [b, x] = F({
|
|
553
554
|
x: 0,
|
|
554
555
|
y: 0
|
|
555
556
|
});
|
|
556
|
-
if (
|
|
557
|
+
if (N(() => {
|
|
557
558
|
if (!e || !t.current) return;
|
|
558
559
|
let n = t.current.getBoundingClientRect(), r = window.visualViewport, i = r?.offsetLeft ?? 0, a = r?.offsetTop ?? 0, o = r?.width ?? document.documentElement.clientWidth, s = r?.height ?? document.documentElement.clientHeight, c = e.top - n.height - 8 >= a + 8 ? e.top - n.height - 8 : e.bottom + 8;
|
|
559
560
|
x({
|
|
@@ -570,28 +571,28 @@ var H = {
|
|
|
570
571
|
i.reply
|
|
571
572
|
]), !g) return null;
|
|
572
573
|
let C = null;
|
|
573
|
-
return e ? C = i.selectionAvailable : r > 0 && (C = /* @__PURE__ */
|
|
574
|
+
return e ? C = i.selectionAvailable : r > 0 && (C = /* @__PURE__ */ B("span", { children: i.attachmentAdded }, r)), ue(/* @__PURE__ */ V(z, { children: [e && /* @__PURE__ */ B("div", {
|
|
574
575
|
ref: t,
|
|
575
576
|
className: d("fixed top-0 left-0 z-50 max-w-[calc(100vw-16px)]", u),
|
|
576
577
|
style: {
|
|
577
578
|
...y,
|
|
578
579
|
transform: `translate(${b.x}px, ${b.y}px)`
|
|
579
580
|
},
|
|
580
|
-
children: /* @__PURE__ */
|
|
581
|
+
children: /* @__PURE__ */ B(m, {
|
|
581
582
|
variant: h.Neutral,
|
|
582
583
|
size: v.Small,
|
|
583
584
|
label: i.reply,
|
|
584
585
|
onClick: n,
|
|
585
586
|
textClassName: p,
|
|
586
587
|
className: d(Be.button, "h-8 min-h-8 min-w-11 px-2 shadow-lg mobile:h-11 mobile:min-h-11", f),
|
|
587
|
-
iconAfter: /* @__PURE__ */
|
|
588
|
+
iconAfter: /* @__PURE__ */ B(I, {
|
|
588
589
|
size: 16,
|
|
589
590
|
stroke: _,
|
|
590
591
|
"aria-hidden": "true",
|
|
591
592
|
className: "rtl:scale-x-[-1]"
|
|
592
593
|
})
|
|
593
594
|
})
|
|
594
|
-
}), /* @__PURE__ */
|
|
595
|
+
}), /* @__PURE__ */ B(S, {
|
|
595
596
|
visuallyHidden: !0,
|
|
596
597
|
children: C
|
|
597
598
|
})] }), g);
|
|
@@ -599,7 +600,7 @@ var H = {
|
|
|
599
600
|
let a = Ce(e);
|
|
600
601
|
if (a == null) return null;
|
|
601
602
|
let { kind: o, text: c } = Te(a, /* @__PURE__ */ new Date(), t), l = c;
|
|
602
|
-
return o === q.Today ? l = (n?.today ?? Ue)(c) : o === q.Yesterday && (l = (n?.yesterday ?? We)(c)), /* @__PURE__ */
|
|
603
|
+
return o === q.Today ? l = (n?.today ?? Ue)(c) : o === q.Yesterday && (l = (n?.yesterday ?? We)(c)), /* @__PURE__ */ B("time", {
|
|
603
604
|
dateTime: e,
|
|
604
605
|
className: d("self-center text-center", He.label, r),
|
|
605
606
|
style: s({ "--cst-text": i?.text }),
|
|
@@ -607,17 +608,17 @@ var H = {
|
|
|
607
608
|
});
|
|
608
609
|
}, Ke = /* @__PURE__ */ function(e) {
|
|
609
610
|
return e.UiBug = "UI bug", e.OveractiveRefusal = "Overactive refusal", e.IncompleteResponse = "Incomplete response", e.ShouldHaveTriggeredThinking = "Should have triggered thinking", e.ShouldHaveSearchedTheWeb = "Should have searched the web", e;
|
|
610
|
-
}({}), qe =
|
|
611
|
-
let { title: i = "Send negative feedback", feedbackTypeLabel: a = "What type of feedback you want to give?", selectPlaceholder: o = "Select", commentPlaceholder: s = "Type an optional comment to your feedback", sendLabel: c = "Send", categoryLabels: l } = r ?? {}, [u, d] =
|
|
611
|
+
}({}), qe = k(({ onClose: e, onSubmit: t, isCommentEnabled: n = !0, labels: r }) => {
|
|
612
|
+
let { title: i = "Send negative feedback", feedbackTypeLabel: a = "What type of feedback you want to give?", selectPlaceholder: o = "Select", commentPlaceholder: s = "Type an optional comment to your feedback", sendLabel: c = "Send", categoryLabels: l } = r ?? {}, [u, d] = F(""), [f, p] = F(""), m = P(() => Object.values(Ke).map((e) => ({
|
|
612
613
|
value: e,
|
|
613
614
|
label: l?.[e] ?? e
|
|
614
|
-
})), [l]), g =
|
|
615
|
+
})), [l]), g = A(() => {
|
|
615
616
|
t(f.trim() ? `${u}: ${f.trim()}` : u);
|
|
616
617
|
}, [
|
|
617
618
|
u,
|
|
618
619
|
f,
|
|
619
620
|
t
|
|
620
|
-
]), _ =
|
|
621
|
+
]), _ = P(() => [{
|
|
621
622
|
label: c,
|
|
622
623
|
variant: h.Primary,
|
|
623
624
|
disabled: !u,
|
|
@@ -627,16 +628,16 @@ var H = {
|
|
|
627
628
|
g,
|
|
628
629
|
c
|
|
629
630
|
]);
|
|
630
|
-
return /* @__PURE__ */
|
|
631
|
+
return /* @__PURE__ */ B(T, {
|
|
631
632
|
open: !0,
|
|
632
633
|
header: i,
|
|
633
634
|
onClose: e,
|
|
634
|
-
size:
|
|
635
|
+
size: E.Sm,
|
|
635
636
|
className: "h-[422px]!",
|
|
636
637
|
mainButtons: _,
|
|
637
|
-
children: /* @__PURE__ */
|
|
638
|
+
children: /* @__PURE__ */ V("div", {
|
|
638
639
|
className: "flex h-full flex-col gap-4 px-6 py-4",
|
|
639
|
-
children: [/* @__PURE__ */
|
|
640
|
+
children: [/* @__PURE__ */ B(ee, {
|
|
640
641
|
labelProps: {
|
|
641
642
|
label: a,
|
|
642
643
|
required: !0
|
|
@@ -645,7 +646,7 @@ var H = {
|
|
|
645
646
|
value: u,
|
|
646
647
|
placeholder: o,
|
|
647
648
|
onChange: (e) => d(e)
|
|
648
|
-
}), n && /* @__PURE__ */
|
|
649
|
+
}), n && /* @__PURE__ */ B(D, {
|
|
649
650
|
value: f,
|
|
650
651
|
placeholder: s,
|
|
651
652
|
onChange: (e) => p(e ?? ""),
|
|
@@ -68,7 +68,7 @@ export interface MessageActionsProps {
|
|
|
68
68
|
role?: MessageRole;
|
|
69
69
|
/** Extra class(es) on the root element. */
|
|
70
70
|
className?: string;
|
|
71
|
-
/** Shows actions permanently
|
|
71
|
+
/** Shows actions permanently; otherwise the toolbar is hidden (no pointer, focus or tooltips) until an ancestor `group` is hovered. */
|
|
72
72
|
isAlwaysVisible?: boolean;
|
|
73
73
|
/** Disables every action button in the toolbar. Defaults to `false`. */
|
|
74
74
|
isDisabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-actions.d.ts","sourceRoot":"","sources":["../../src/models/message-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC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xD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mBAAmB;IAClC,oCAAoC;IACpC,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,uCAAuC;IACvC,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC;AAED,uGAAuG;AACvG,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,gDAAgD;AAChD,MAAM,WAAW,mBAAmB;IAClC,4HAA4H;IAC5H,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"message-actions.d.ts","sourceRoot":"","sources":["../../src/models/message-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,+FAA+F;AAC/F,MAAM,WAAW,qBAAqB;IACpC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,0GAA0G;AAC1G,MAAM,WAAW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AAM,IAAI,CAAC;IACpB,8EAA8E;IAC9E,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kDAAkD;IAClD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2EAA2E;IAC3E,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,2GAA2G;IAC3G,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,wGAAwG;IACxG,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,uBAAuB;IACvB,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
@@ -188,6 +188,8 @@ export interface AssistantMessageBubbleProps extends BaseMessageBubbleProps {
|
|
|
188
188
|
starters?: StarterOption[];
|
|
189
189
|
/** Fires with the clicked `StarterOption`. */
|
|
190
190
|
onSelectStarter?: (starter: StarterOption) => void;
|
|
191
|
+
/** When `true`, the quick-reply buttons render disabled and `onSelectStarter` never fires. Defaults to `false`. */
|
|
192
|
+
isStarterSelectionDisabled?: boolean;
|
|
191
193
|
/** Content rendered between the message body and the actions bar (e.g. a stages panel). */
|
|
192
194
|
afterContent?: ReactNode;
|
|
193
195
|
/** When `false`, no thinking placeholder renders while streaming before the first token, so `afterContent` starts level with the avatar. Defaults to `true`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-bubble.d.ts","sourceRoot":"","sources":["../../src/models/message-bubble.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,0BAA0B,EAC1B,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E,OAAO,CAAC;IACjC,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2DAA2D;IAC3D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC;AAED,kGAAkG;AAClG,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,GAC1D,IAAI,CACF,sBAAsB,EACtB,UAAU,GAAG,oBAAoB,GAAG,cAAc,CACnD,GAAG;IACF,8DAA8D;IAC9D,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
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.4.0-dev.
|
|
4
|
+
"version": "1.4.0-dev.126",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.css",
|
|
8
|
+
"**/*.scss"
|
|
9
|
+
],
|
|
6
10
|
"type": "module",
|
|
7
11
|
"main": "./index.js",
|
|
8
12
|
"module": "./index.js",
|
|
@@ -19,12 +23,12 @@
|
|
|
19
23
|
"dependencies": {
|
|
20
24
|
"@tabler/icons-react": "^3.50.0",
|
|
21
25
|
"react-markdown": "^10.1.0",
|
|
22
|
-
"@epam/ai-dial-attachment-input": "1.4.0-dev.
|
|
26
|
+
"@epam/ai-dial-attachment-input": "1.4.0-dev.126"
|
|
23
27
|
},
|
|
24
28
|
"peerDependencies": {
|
|
25
29
|
"react": "^19.2.8",
|
|
26
30
|
"react-dom": "^19.2.8",
|
|
27
|
-
"@epam/ai-dial-chat-shared": "1.4.0-dev.
|
|
31
|
+
"@epam/ai-dial-chat-shared": "1.4.0-dev.126",
|
|
28
32
|
"@epam/ai-dial-ui-kit": "^0.16.0"
|
|
29
33
|
},
|
|
30
34
|
"repository": {
|