@epam/ai-dial-conversation-messages 1.2.0-dev.1 → 1.2.0-dev.102
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/MessageBubble/AssistantMessageBubble.d.ts.map +1 -1
- package/components/MessageBubble/UserMessageBubble.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +7 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +162 -156
- package/models/message-bubble.d.ts +2 -6
- package/models/message-bubble.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/AssistantMessageBubble.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,EAAE,
|
|
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;AAY/E,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAgNlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/UserMessageBubble.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UserMessageBubble.d.ts","sourceRoot":"","sources":["../../../src/components/MessageBubble/UserMessageBubble.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAO1E,kGAAkG;AAClG,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAmKxD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CONVERSATION_MESSAGES_CLASS: {
|
|
2
|
+
/** The user message's bubble element. */
|
|
3
|
+
readonly userBubble: "dial-cm-user-bubble";
|
|
4
|
+
/** The assistant message's streamed content region. */
|
|
5
|
+
readonly assistantContent: "dial-cm-assistant-content";
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=public-class-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,2BAA2B;IACtC,yCAAyC;;IAEzC,uDAAuD;;CAE/C,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
._activeRating_ygoee_1{color:var(--ma-active-rating-text,var(--text-accent,#1d4ed8))}._userBubble_cq829_1{border-color:var(--cm-bubble-user-border,var(--stroke-secondary,#d1dbea));background:var(--cm-bubble-user-bg,var(--bg-layer-sunken,#eef1f7))}._collapsibleText_cq829_6{max-height:var(--cm-bubble-collapsed-height);transition:max-height .2s ease-out}._expandedText_cq829_11{max-height:var(--cm-bubble-expanded-height)}._collapsedText_cq829_15:after{content:"";pointer-events:none;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;left:0;right:0}@media (prefers-reduced-motion:reduce){._collapsibleText_cq829_6{transition:none}}._startersDivider_cq829_26{border-color:var(--cm-starters-divider,var(--stroke-secondary,#d1dbea))}._text_cq829_30{color:var(--cm-bubble-text,var(--text-primary,#161b2d))}
|
|
2
|
-
/*$vite$:1
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.collapse{visibility:collapse}.static{position:static}.absolute{position:absolute}.relative{position:relative}.start-0{inset-inline-start:0}.top-0{top:0}.me-1{margin-inline-end:.25rem}.ms-auto{margin-inline-start:auto}.mt-3{margin-top:.75rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.min-w-\[40px\]{min-width:40px}.max-w-\[640px\]{max-width:640px}.max-w-full{max-width:100%}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.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}.overflow-hidden{overflow:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-ee-2xl{border-end-end-radius:1rem}.rounded-ee-md{border-end-end-radius:.375rem}.rounded-es-2xl{border-end-start-radius:1rem}.rounded-se-2xl{border-start-end-radius:1rem}.rounded-se-md{border-start-end-radius:.375rem}.rounded-ss-2xl{border-start-start-radius:1rem}.border{border-width:1px}.border-t{border-top-width:1px}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pt-5{padding-top:1.25rem}.text-start{text-align:start}.opacity-0{opacity:0}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.group:hover .group-hover\:opacity-100{opacity:1}.\[\&\>\.cm-bubble-markdown\>div\>\*\:first-child\]\:indent-\[var\(--cm-bubble-first-line-indent\2c 0px\)\]>.cm-bubble-markdown>div>:first-child{text-indent:var(--cm-bubble-first-line-indent,0)}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { CONVERSATION_MESSAGES_CLASS } from './constants/public-class-names';
|
|
1
2
|
export { MessageBubble } from './components/MessageBubble/MessageBubble';
|
|
2
3
|
export { UserMessageBubble } from './components/MessageBubble/UserMessageBubble';
|
|
3
4
|
export { AssistantMessageBubble } from './components/MessageBubble/AssistantMessageBubble';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AttachmentType as e, CopyIconButton as t, DeploymentIcon as n, MDMessageViewer as r, MessageRating as i, MessageRole as a, buildCssVars as o, mergeClasses as s, useCollapsedText as c } from "@epam/ai-dial-chat-shared";
|
|
2
2
|
import { AttachmentGroup as l } from "@epam/ai-dial-attachment-input";
|
|
3
3
|
import { DIAL_ICON_SIZE as u, DIAL_KIT_ICON_STROKE as d, ElementSize as f, InfoMessageNotification as p, LinkButton as m, NeutralButton as h, ToggleIconButton as g } from "@epam/ai-dial-ui-kit";
|
|
4
|
-
import { useCallback as _, useEffect as v, useId as y,
|
|
5
|
-
import { IconChevronDown as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
//#region src/
|
|
8
|
-
var
|
|
9
|
-
|
|
4
|
+
import { useCallback as _, useEffect as v, useId as y, useMemo as b, useRef as x, useState as S } from "react";
|
|
5
|
+
import { IconChevronDown as C, IconChevronUp as w, IconMarkdown as T, IconPencilMinus as E, IconRefresh as D, IconThumbDown as O, IconThumbDownFilled as k, IconThumbUp as A, IconThumbUpFilled as j, IconTrashX as M } from "@tabler/icons-react";
|
|
6
|
+
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
7
|
+
//#region src/constants/public-class-names.ts
|
|
8
|
+
var I = {
|
|
9
|
+
userBubble: "dial-cm-user-bubble",
|
|
10
|
+
assistantContent: "dial-cm-assistant-content"
|
|
11
|
+
}, L = 4, R = (e) => {
|
|
12
|
+
let t = x(null), [n, r] = S(0);
|
|
10
13
|
return v(() => {
|
|
11
14
|
if (!e) return;
|
|
12
15
|
let n = t.current;
|
|
@@ -18,215 +21,218 @@ var F = 4, I = (e) => {
|
|
|
18
21
|
return i.observe(n), () => i.disconnect();
|
|
19
22
|
}, [e]), {
|
|
20
23
|
slotRef: t,
|
|
21
|
-
firstLineIndent: e ? `calc(${n}px + ${
|
|
24
|
+
firstLineIndent: e ? `calc(${n}px + ${L}px)` : void 0
|
|
22
25
|
};
|
|
23
|
-
},
|
|
24
|
-
let { tooltips:
|
|
25
|
-
p?.(), H("copy"), W(
|
|
26
|
-
}, [p,
|
|
27
|
-
m?.(), H("markdown"), W(
|
|
28
|
-
}, [m,
|
|
29
|
-
return G ? /* @__PURE__ */
|
|
26
|
+
}, z = { activeRating: "_activeRating_ygoee_1" }, B = 2e3, V = ({ role: e = a.User, onEdit: n, onEditHover: r, onDelete: c, onRegenerate: l, onCopy: p, onCopyMarkdown: m, onLike: h, onDislike: v, activeRating: y, isAlwaysVisible: b, isDisabled: x = !1, className: C, labels: w, colors: I }) => {
|
|
27
|
+
let { tooltips: L, ariaLabels: R } = w ?? {}, [V, H] = S(null), [U, W] = S(""), G = n != null || c != null || l != null || p != null || m != null || h != null || v != null, K = o({ "--ma-active-rating-text": I?.activeRatingText }), q = _(() => {
|
|
28
|
+
p?.(), H("copy"), W(R?.copiedStatus ?? "Copied to clipboard"), setTimeout(() => H(null), B);
|
|
29
|
+
}, [p, R?.copiedStatus]), J = _(() => {
|
|
30
|
+
m?.(), H("markdown"), W(R?.copiedMarkdownStatus ?? "Copied as Markdown to clipboard"), setTimeout(() => H(null), B);
|
|
31
|
+
}, [m, R?.copiedMarkdownStatus]);
|
|
32
|
+
return G ? /* @__PURE__ */ F("div", {
|
|
30
33
|
role: "toolbar",
|
|
31
|
-
"aria-label":
|
|
34
|
+
"aria-label": R?.actionsGroup ?? "Message actions",
|
|
32
35
|
style: K,
|
|
33
36
|
className: s("flex gap-1", !b && "opacity-0 group-hover:opacity-100", C),
|
|
34
|
-
children: [/* @__PURE__ */
|
|
37
|
+
children: [/* @__PURE__ */ P("span", {
|
|
35
38
|
role: "status",
|
|
36
39
|
"aria-live": "polite",
|
|
37
40
|
className: "sr-only",
|
|
38
41
|
children: U
|
|
39
|
-
}), e === a.User ? /* @__PURE__ */
|
|
40
|
-
icon: /* @__PURE__ */
|
|
42
|
+
}), e === a.User ? /* @__PURE__ */ F(N, { children: [n && /* @__PURE__ */ P(g, {
|
|
43
|
+
icon: /* @__PURE__ */ P(E, {
|
|
41
44
|
size: u.SM,
|
|
42
45
|
"aria-hidden": !0,
|
|
43
46
|
stroke: d
|
|
44
47
|
}),
|
|
45
48
|
size: f.Small,
|
|
46
|
-
"aria-label":
|
|
47
|
-
tooltipProps: { tooltip:
|
|
49
|
+
"aria-label": R?.editMessage ?? "Edit message",
|
|
50
|
+
tooltipProps: { tooltip: L?.edit ?? "Edit" },
|
|
48
51
|
onClick: n,
|
|
49
52
|
onMouseEnter: r,
|
|
50
53
|
onFocus: r,
|
|
51
|
-
disabled:
|
|
52
|
-
}), c && /* @__PURE__ */
|
|
53
|
-
icon: /* @__PURE__ */
|
|
54
|
+
disabled: x
|
|
55
|
+
}), c && /* @__PURE__ */ P(g, {
|
|
56
|
+
icon: /* @__PURE__ */ P(M, {
|
|
54
57
|
size: u.SM,
|
|
55
58
|
"aria-hidden": !0,
|
|
56
59
|
stroke: d
|
|
57
60
|
}),
|
|
58
61
|
size: f.Small,
|
|
59
|
-
"aria-label":
|
|
60
|
-
tooltipProps: { tooltip:
|
|
62
|
+
"aria-label": R?.deleteMessage ?? "Delete message",
|
|
63
|
+
tooltipProps: { tooltip: L?.delete ?? "Delete" },
|
|
61
64
|
onClick: c,
|
|
62
|
-
disabled:
|
|
63
|
-
})] }) : /* @__PURE__ */
|
|
64
|
-
l && /* @__PURE__ */
|
|
65
|
-
icon: /* @__PURE__ */
|
|
65
|
+
disabled: x
|
|
66
|
+
})] }) : /* @__PURE__ */ F(N, { children: [
|
|
67
|
+
l && /* @__PURE__ */ P(g, {
|
|
68
|
+
icon: /* @__PURE__ */ P(D, {
|
|
66
69
|
size: u.SM,
|
|
67
70
|
"aria-hidden": !0,
|
|
68
71
|
stroke: d
|
|
69
72
|
}),
|
|
70
73
|
size: f.Small,
|
|
71
|
-
"aria-label":
|
|
72
|
-
tooltipProps: { tooltip:
|
|
74
|
+
"aria-label": R?.regenerateResponse ?? "Regenerate response",
|
|
75
|
+
tooltipProps: { tooltip: L?.regenerate ?? "Regenerate" },
|
|
73
76
|
onClick: l,
|
|
74
|
-
disabled:
|
|
77
|
+
disabled: x
|
|
75
78
|
}),
|
|
76
|
-
p && /* @__PURE__ */
|
|
79
|
+
p && /* @__PURE__ */ P(t, {
|
|
77
80
|
iconSize: u.SM,
|
|
78
81
|
onClick: q,
|
|
79
82
|
size: f.Small,
|
|
80
83
|
isCopied: V === "copy",
|
|
81
|
-
copyLabel:
|
|
82
|
-
copiedLabel:
|
|
83
|
-
ariaLabel:
|
|
84
|
-
isDisabled:
|
|
84
|
+
copyLabel: L?.copy ?? "Copy",
|
|
85
|
+
copiedLabel: L?.copied ?? "Copied!",
|
|
86
|
+
ariaLabel: R?.copyResponse ?? "Copy response",
|
|
87
|
+
isDisabled: x
|
|
85
88
|
}),
|
|
86
|
-
m && /* @__PURE__ */
|
|
89
|
+
m && /* @__PURE__ */ P(t, {
|
|
87
90
|
iconSize: u.SM,
|
|
88
91
|
onClick: J,
|
|
89
92
|
size: f.Small,
|
|
90
93
|
isCopied: V === "markdown",
|
|
91
|
-
iconCopy: /* @__PURE__ */
|
|
94
|
+
iconCopy: /* @__PURE__ */ P(T, {
|
|
92
95
|
size: u.SM,
|
|
93
96
|
"aria-hidden": !0,
|
|
94
97
|
stroke: d
|
|
95
98
|
}),
|
|
96
|
-
copyLabel:
|
|
97
|
-
copiedLabel:
|
|
98
|
-
ariaLabel:
|
|
99
|
-
isDisabled:
|
|
99
|
+
copyLabel: L?.copyMarkdown ?? "Copy as Markdown",
|
|
100
|
+
copiedLabel: L?.copiedMarkdown ?? "Copied!",
|
|
101
|
+
ariaLabel: R?.copyAsMarkdown ?? "Copy as markdown",
|
|
102
|
+
isDisabled: x
|
|
100
103
|
}),
|
|
101
|
-
h && /* @__PURE__ */
|
|
102
|
-
icon: y === i.Like ? /* @__PURE__ */
|
|
103
|
-
className:
|
|
104
|
+
h && /* @__PURE__ */ P(g, {
|
|
105
|
+
icon: y === i.Like ? /* @__PURE__ */ P(j, {
|
|
106
|
+
className: z.activeRating,
|
|
104
107
|
size: u.SM,
|
|
105
108
|
"aria-hidden": !0
|
|
106
|
-
}) : /* @__PURE__ */
|
|
109
|
+
}) : /* @__PURE__ */ P(A, {
|
|
107
110
|
size: u.SM,
|
|
108
111
|
"aria-hidden": !0,
|
|
109
112
|
stroke: d
|
|
110
113
|
}),
|
|
111
114
|
size: f.Small,
|
|
112
|
-
"aria-label":
|
|
115
|
+
"aria-label": R?.likeResponse ?? "Like response",
|
|
113
116
|
"aria-pressed": y === i.Like,
|
|
114
|
-
tooltipProps: { tooltip:
|
|
117
|
+
tooltipProps: { tooltip: L?.like ?? "Like" },
|
|
115
118
|
onClick: h,
|
|
116
|
-
disabled:
|
|
119
|
+
disabled: x
|
|
117
120
|
}),
|
|
118
|
-
v && /* @__PURE__ */
|
|
119
|
-
icon: y === i.Dislike ? /* @__PURE__ */
|
|
120
|
-
className:
|
|
121
|
+
v && /* @__PURE__ */ P(g, {
|
|
122
|
+
icon: y === i.Dislike ? /* @__PURE__ */ P(k, {
|
|
123
|
+
className: z.activeRating,
|
|
121
124
|
size: u.SM,
|
|
122
125
|
"aria-hidden": !0
|
|
123
|
-
}) : /* @__PURE__ */
|
|
126
|
+
}) : /* @__PURE__ */ P(O, {
|
|
124
127
|
size: u.SM,
|
|
125
128
|
"aria-hidden": !0,
|
|
126
129
|
stroke: d
|
|
127
130
|
}),
|
|
128
131
|
size: f.Small,
|
|
129
|
-
"aria-label":
|
|
132
|
+
"aria-label": R?.dislikeResponse ?? "Dislike response",
|
|
130
133
|
"aria-pressed": y === i.Dislike,
|
|
131
|
-
tooltipProps: { tooltip:
|
|
134
|
+
tooltipProps: { tooltip: L?.dislike ?? "Dislike" },
|
|
132
135
|
onClick: v,
|
|
133
|
-
disabled:
|
|
136
|
+
disabled: x
|
|
134
137
|
})
|
|
135
138
|
] })]
|
|
136
139
|
}) : null;
|
|
137
|
-
},
|
|
140
|
+
}, H = {
|
|
138
141
|
userBubble: "_userBubble_cq829_1",
|
|
139
142
|
collapsibleText: "_collapsibleText_cq829_6",
|
|
140
143
|
expandedText: "_expandedText_cq829_11",
|
|
141
144
|
collapsedText: "_collapsedText_cq829_15",
|
|
142
145
|
startersDivider: "_startersDivider_cq829_26",
|
|
143
146
|
text: "_text_cq829_30"
|
|
144
|
-
},
|
|
145
|
-
let { colors:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
}, U = "[&>.cm-bubble-markdown>div>*:first-child]:indent-[var(--cm-bubble-first-line-indent,0px)]", W = ({ text: t, styles: i, actions: c, hasAlwaysVisibleActions: u, isStreaming: d, attachments: f, beforeContent: p, afterContent: m, starters: g, onSelectStarter: _, deploymentIconUrl: v, deploymentDisplayName: y, markdownComponents: x, markdownClassNames: S, markdownUrlTransform: C, onAttachmentClick: w, onDownloadAll: T, onAttachmentRetry: E, codeBlockTheme: D, tableOnOpenInCanvas: O, labels: k, selectedAttachmentId: A }) => {
|
|
148
|
+
let { colors: j, typography: M, className: N, bubbleClassName: L } = i ?? {}, { attachmentClickLabel: z, attachmentRetryLabel: B, attachmentOpenInNewTabLabel: W, startersAriaLabel: G = "Quick reply buttons", thinkingLabel: K, codeBlockCopyLabel: q, codeBlockCopiedLabel: J, tableCopyLabel: Y, tableCopiedLabel: X, tableDownloadCsvLabel: Z, tableOpenInCanvasLabel: Q, tableDownloadFilename: ee, tableScrollRegionAriaLabel: te, assistantMessageAriaLabel: ne = "Assistant message", deploymentIconFallbackLabel: $ = "AI" } = k ?? {}, re = b(() => ({
|
|
149
|
+
copyLabel: Y,
|
|
150
|
+
copiedLabel: X,
|
|
151
|
+
downloadCsvLabel: Z,
|
|
152
|
+
openInCanvasLabel: Q
|
|
153
|
+
}), [
|
|
154
|
+
Y,
|
|
155
|
+
X,
|
|
156
|
+
Z,
|
|
157
|
+
Q
|
|
158
|
+
]), ie = d ? (f ?? []).filter((t) => t.type !== e.Audio) : f ?? [], { slotRef: ae, firstLineIndent: oe } = R(p != null && !!t), se = o({
|
|
159
|
+
"--cm-bubble-text": j?.text,
|
|
160
|
+
"--cm-starters-divider": j?.startersDivider,
|
|
161
|
+
"--cm-bubble-first-line-indent": oe
|
|
162
|
+
}), ce = s(H.text, M?.fontClassName), le = !!(v || y);
|
|
163
|
+
return /* @__PURE__ */ F("div", {
|
|
151
164
|
role: "group",
|
|
152
|
-
"aria-label":
|
|
153
|
-
style:
|
|
154
|
-
className: s("flex w-full items-start gap-3",
|
|
155
|
-
children: [
|
|
165
|
+
"aria-label": ne,
|
|
166
|
+
style: se,
|
|
167
|
+
className: s("flex w-full items-start gap-3", N),
|
|
168
|
+
children: [le && /* @__PURE__ */ P(n, {
|
|
156
169
|
src: v,
|
|
157
170
|
size: 28,
|
|
158
|
-
initialsName: y ||
|
|
159
|
-
labels: { tooltip: y ??
|
|
160
|
-
}), /* @__PURE__ */
|
|
171
|
+
initialsName: y || $,
|
|
172
|
+
labels: { tooltip: y ?? $ }
|
|
173
|
+
}), /* @__PURE__ */ F("div", {
|
|
161
174
|
className: "flex w-full min-w-0 max-w-full flex-col items-start gap-5",
|
|
162
|
-
children: [/* @__PURE__ */
|
|
163
|
-
className: s("flex w-full min-w-0 max-w-full flex-col items-start gap-4",
|
|
175
|
+
children: [/* @__PURE__ */ F("div", {
|
|
176
|
+
className: s("flex w-full min-w-0 max-w-full flex-col items-start gap-4", L),
|
|
164
177
|
children: [
|
|
165
|
-
p != null && !t && /* @__PURE__ */
|
|
178
|
+
p != null && !t && /* @__PURE__ */ P("div", {
|
|
166
179
|
className: "min-w-0",
|
|
167
180
|
children: p
|
|
168
181
|
}),
|
|
169
|
-
(t || d) && /* @__PURE__ */
|
|
182
|
+
(t || d) && /* @__PURE__ */ F("div", {
|
|
170
183
|
"aria-live": "polite",
|
|
171
184
|
"aria-atomic": "false",
|
|
172
|
-
className: s(
|
|
173
|
-
children: [p != null && t && /* @__PURE__ */
|
|
174
|
-
ref:
|
|
185
|
+
className: s(ce, "relative min-w-0 max-w-full text-start", p != null && t && U, I.assistantContent),
|
|
186
|
+
children: [p != null && t && /* @__PURE__ */ P("div", {
|
|
187
|
+
ref: ae,
|
|
175
188
|
className: "absolute start-0 top-0",
|
|
176
189
|
children: p
|
|
177
|
-
}), /* @__PURE__ */
|
|
190
|
+
}), /* @__PURE__ */ P("div", {
|
|
178
191
|
className: "cm-bubble-markdown min-w-0 max-w-full",
|
|
179
|
-
children: /* @__PURE__ */
|
|
192
|
+
children: /* @__PURE__ */ P(r, {
|
|
180
193
|
content: t ?? "",
|
|
181
194
|
isStreaming: d,
|
|
182
|
-
thinkingLabel:
|
|
183
|
-
components:
|
|
184
|
-
classNames:
|
|
185
|
-
urlTransform:
|
|
186
|
-
codeBlockCopyLabel:
|
|
187
|
-
codeBlockCopiedLabel:
|
|
188
|
-
codeBlockTheme:
|
|
189
|
-
tableActionLabels:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
copiedLabel: X,
|
|
194
|
-
downloadCsvLabel: Z,
|
|
195
|
-
openInCanvasLabel: ee
|
|
196
|
-
},
|
|
197
|
-
tableDownloadFilename: te,
|
|
198
|
-
tableOnOpenInCanvas: D,
|
|
199
|
-
tableScrollRegionAriaLabel: ne
|
|
195
|
+
thinkingLabel: K,
|
|
196
|
+
components: x,
|
|
197
|
+
classNames: S,
|
|
198
|
+
urlTransform: C,
|
|
199
|
+
codeBlockCopyLabel: q,
|
|
200
|
+
codeBlockCopiedLabel: J,
|
|
201
|
+
codeBlockTheme: D,
|
|
202
|
+
tableActionLabels: re,
|
|
203
|
+
tableDownloadFilename: ee,
|
|
204
|
+
tableOnOpenInCanvas: O,
|
|
205
|
+
tableScrollRegionAriaLabel: te
|
|
200
206
|
})
|
|
201
207
|
})]
|
|
202
208
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ P(l, {
|
|
204
210
|
attachments: ie,
|
|
205
|
-
onAttachmentClick: (e) =>
|
|
206
|
-
onDownloadAll:
|
|
207
|
-
onRetry:
|
|
211
|
+
onAttachmentClick: (e) => w?.(f?.find((t) => t.id === e)),
|
|
212
|
+
onDownloadAll: T,
|
|
213
|
+
onRetry: E,
|
|
208
214
|
labels: {
|
|
209
|
-
clickLabel:
|
|
210
|
-
retryLabel:
|
|
211
|
-
openInNewTabLabel:
|
|
215
|
+
clickLabel: z,
|
|
216
|
+
retryLabel: B,
|
|
217
|
+
openInNewTabLabel: W
|
|
212
218
|
},
|
|
213
|
-
selectedAttachmentId:
|
|
219
|
+
selectedAttachmentId: A
|
|
214
220
|
}),
|
|
215
221
|
m,
|
|
216
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ P(V, {
|
|
217
223
|
...c,
|
|
218
224
|
isAlwaysVisible: u,
|
|
219
225
|
role: a.Assistant
|
|
220
226
|
})
|
|
221
227
|
]
|
|
222
|
-
}), g && g.length > 0 && _ && /* @__PURE__ */
|
|
228
|
+
}), g && g.length > 0 && _ && /* @__PURE__ */ P("div", {
|
|
223
229
|
role: "list",
|
|
224
|
-
"aria-label":
|
|
225
|
-
className: s("flex w-full flex-wrap gap-2 border-t pt-5",
|
|
226
|
-
children: g.map((e, t) => /* @__PURE__ */
|
|
230
|
+
"aria-label": G,
|
|
231
|
+
className: s("flex w-full flex-wrap gap-2 border-t pt-5", H.startersDivider),
|
|
232
|
+
children: g.map((e, t) => /* @__PURE__ */ P("div", {
|
|
227
233
|
role: "listitem",
|
|
228
234
|
className: "min-w-[40px]",
|
|
229
|
-
children: /* @__PURE__ */
|
|
235
|
+
children: /* @__PURE__ */ P(h, {
|
|
230
236
|
label: e.title,
|
|
231
237
|
className: "min-w-[40px]",
|
|
232
238
|
onClick: () => _(e)
|
|
@@ -235,84 +241,84 @@ var F = 4, I = (e) => {
|
|
|
235
241
|
})]
|
|
236
242
|
})]
|
|
237
243
|
});
|
|
238
|
-
},
|
|
244
|
+
}, G = ({ labels: { titleText: e = "Model switched.", bodyText: t } }) => /* @__PURE__ */ P("div", {
|
|
239
245
|
role: "status",
|
|
240
246
|
"aria-live": "polite",
|
|
241
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ P(p, {
|
|
242
248
|
title: e,
|
|
243
249
|
message: t,
|
|
244
250
|
textClassName: "flex-row flex-wrap gap-1"
|
|
245
251
|
})
|
|
246
|
-
}),
|
|
252
|
+
}), K = /* @__PURE__ */ function(e) {
|
|
247
253
|
return e.Bottom = "Bottom", e.Top = "Top", e;
|
|
248
|
-
}({}),
|
|
249
|
-
let { colors:
|
|
254
|
+
}({}), q = 10, J = ({ text: e, position: t = K.Bottom, styles: n, actions: r, hasAlwaysVisibleActions: i, attachments: d, collapsedLineCount: p = q, labels: h, beforeContent: g, onAttachmentClick: _, onDownloadAll: v, onAttachmentRetry: b, selectedAttachmentId: x }) => {
|
|
255
|
+
let { colors: S, typography: T, className: E, bubbleClassName: D } = n ?? {}, { showMoreLabel: O = "Show more", showLessLabel: k = "Show less", showMoreAriaLabel: A, showLessAriaLabel: j, attachmentClickLabel: M, attachmentRetryLabel: L, attachmentOpenInNewTabLabel: R, userMessageAriaLabel: z = "User message" } = h ?? {}, { textRef: B, isTextCollapsed: U, isOverflowing: W, collapsedMaxHeight: G, expandedMaxHeight: J, isCollapsed: Y, toggleCollapsed: X } = c({
|
|
250
256
|
text: e ?? "",
|
|
251
257
|
collapsedLineCount: p
|
|
252
|
-
}),
|
|
253
|
-
"--cm-bubble-user-bg":
|
|
254
|
-
"--cm-bubble-user-border":
|
|
255
|
-
"--cm-bubble-fade-start":
|
|
256
|
-
"--cm-bubble-text":
|
|
257
|
-
"--cm-bubble-collapsed-height":
|
|
258
|
-
"--cm-bubble-expanded-height":
|
|
259
|
-
}),
|
|
260
|
-
return /* @__PURE__ */
|
|
258
|
+
}), Z = o({
|
|
259
|
+
"--cm-bubble-user-bg": S?.userBackground,
|
|
260
|
+
"--cm-bubble-user-border": S?.userBorder,
|
|
261
|
+
"--cm-bubble-fade-start": S?.fadeStart,
|
|
262
|
+
"--cm-bubble-text": S?.text,
|
|
263
|
+
"--cm-bubble-collapsed-height": W ? `${G}px` : void 0,
|
|
264
|
+
"--cm-bubble-expanded-height": W ? `${J}px` : void 0
|
|
265
|
+
}), Q = t === K.Top ? "rounded-ee-md rounded-se-2xl" : "rounded-se-md rounded-ee-2xl", ee = s(H.text, T?.fontClassName), te = A ?? O, ne = j ?? k, $ = Y ? O : k, re = Y ? te : ne, ie = Y ? C : w, ae = y();
|
|
266
|
+
return /* @__PURE__ */ P("div", {
|
|
261
267
|
role: "group",
|
|
262
|
-
"aria-label":
|
|
263
|
-
style:
|
|
268
|
+
"aria-label": z,
|
|
269
|
+
style: Z,
|
|
264
270
|
className: s("flex w-full", E),
|
|
265
|
-
children: /* @__PURE__ */
|
|
271
|
+
children: /* @__PURE__ */ F("div", {
|
|
266
272
|
className: "ms-auto flex w-fit min-w-0 max-w-full flex-col items-end gap-4",
|
|
267
273
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ P(l, {
|
|
269
275
|
attachments: d ?? [],
|
|
270
276
|
onAttachmentClick: (e) => _?.(d?.find((t) => t.id === e)),
|
|
271
277
|
onDownloadAll: v,
|
|
272
278
|
onRetry: b,
|
|
273
279
|
labels: {
|
|
274
|
-
clickLabel:
|
|
275
|
-
retryLabel:
|
|
276
|
-
openInNewTabLabel:
|
|
280
|
+
clickLabel: M,
|
|
281
|
+
retryLabel: L,
|
|
282
|
+
openInNewTabLabel: R
|
|
277
283
|
},
|
|
278
284
|
styles: { className: "max-w-[640px]" },
|
|
279
285
|
selectedAttachmentId: x
|
|
280
286
|
}),
|
|
281
|
-
(e || g != null) && /* @__PURE__ */
|
|
282
|
-
className: s(
|
|
283
|
-
children: /* @__PURE__ */
|
|
287
|
+
(e || g != null) && /* @__PURE__ */ P("div", {
|
|
288
|
+
className: s(H.userBubble, "flex w-fit items-center justify-end rounded-es-2xl rounded-ss-2xl border px-6 py-4", Q, D, I.userBubble),
|
|
289
|
+
children: /* @__PURE__ */ F("div", {
|
|
284
290
|
className: "flex min-w-0 flex-col items-start",
|
|
285
291
|
children: [
|
|
286
|
-
e && /* @__PURE__ */
|
|
287
|
-
id:
|
|
288
|
-
className: s("relative overflow-hidden",
|
|
289
|
-
children: /* @__PURE__ */
|
|
290
|
-
ref:
|
|
292
|
+
e && /* @__PURE__ */ P("div", {
|
|
293
|
+
id: ae,
|
|
294
|
+
className: s("relative overflow-hidden", W && H.collapsibleText, W && !Y && H.expandedText, U && H.collapsedText),
|
|
295
|
+
children: /* @__PURE__ */ F("p", {
|
|
296
|
+
ref: B,
|
|
291
297
|
className: s(ee, "whitespace-pre-wrap text-start [overflow-wrap:anywhere]"),
|
|
292
|
-
children: [g != null && /* @__PURE__ */
|
|
298
|
+
children: [g != null && /* @__PURE__ */ P("span", {
|
|
293
299
|
className: "me-1",
|
|
294
300
|
children: g
|
|
295
301
|
}), e]
|
|
296
302
|
})
|
|
297
303
|
}),
|
|
298
|
-
g != null && !e && /* @__PURE__ */
|
|
299
|
-
|
|
300
|
-
label: /* @__PURE__ */ N
|
|
301
|
-
iconBefore: /* @__PURE__ */
|
|
304
|
+
g != null && !e && /* @__PURE__ */ P("div", { children: g }),
|
|
305
|
+
W && /* @__PURE__ */ P(m, {
|
|
306
|
+
label: /* @__PURE__ */ P(N, { children: $ }),
|
|
307
|
+
iconBefore: /* @__PURE__ */ P(ie, {
|
|
302
308
|
size: u.SM,
|
|
303
309
|
"aria-hidden": "true"
|
|
304
310
|
}),
|
|
305
|
-
"aria-label":
|
|
306
|
-
"aria-expanded": !
|
|
307
|
-
"aria-controls":
|
|
311
|
+
"aria-label": re,
|
|
312
|
+
"aria-expanded": !Y,
|
|
313
|
+
"aria-controls": ae,
|
|
308
314
|
className: "mt-3",
|
|
309
|
-
onClick:
|
|
315
|
+
onClick: X,
|
|
310
316
|
size: f.Small
|
|
311
317
|
})
|
|
312
318
|
]
|
|
313
319
|
})
|
|
314
320
|
}),
|
|
315
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ P(V, {
|
|
316
322
|
...r,
|
|
317
323
|
isAlwaysVisible: i,
|
|
318
324
|
role: a.User
|
|
@@ -320,14 +326,14 @@ var F = 4, I = (e) => {
|
|
|
320
326
|
]
|
|
321
327
|
})
|
|
322
328
|
});
|
|
323
|
-
},
|
|
329
|
+
}, Y = ({ role: e, beforeContent: t, onAttachmentClick: n, markdownComponents: r, markdownUrlTransform: i, ...o }) => e === a.Status ? /* @__PURE__ */ P(G, { labels: {
|
|
324
330
|
titleText: o.labels?.statusTitleText,
|
|
325
331
|
bodyText: o.labels?.statusBodyText ?? ""
|
|
326
|
-
} }) : e === a.User ? /* @__PURE__ */
|
|
332
|
+
} }) : e === a.User ? /* @__PURE__ */ P(J, {
|
|
327
333
|
...o,
|
|
328
334
|
beforeContent: t,
|
|
329
335
|
onAttachmentClick: n
|
|
330
|
-
}) : /* @__PURE__ */
|
|
336
|
+
}) : /* @__PURE__ */ P(W, {
|
|
331
337
|
...o,
|
|
332
338
|
beforeContent: t,
|
|
333
339
|
markdownComponents: r,
|
|
@@ -335,4 +341,4 @@ var F = 4, I = (e) => {
|
|
|
335
341
|
onAttachmentClick: n
|
|
336
342
|
});
|
|
337
343
|
//#endregion
|
|
338
|
-
export {
|
|
344
|
+
export { W as AssistantMessageBubble, K as BubblePosition, I as CONVERSATION_MESSAGES_CLASS, V as MessageActions, Y as MessageBubble, G as StatusMessageBubble, J as UserMessageBubble };
|
|
@@ -67,12 +67,8 @@ export interface AssistantMessageBubbleLabels extends MessageBubbleLabels {
|
|
|
67
67
|
codeBlockCopyLabel?: string;
|
|
68
68
|
/** aria-label for the code block copy button after copying. */
|
|
69
69
|
codeBlockCopiedLabel?: string;
|
|
70
|
-
/** Label for
|
|
71
|
-
|
|
72
|
-
/** Label for copying a Markdown table as text. */
|
|
73
|
-
tableCopyTxtLabel?: string;
|
|
74
|
-
/** Label for copying a Markdown table as Markdown. */
|
|
75
|
-
tableCopyMarkdownLabel?: string;
|
|
70
|
+
/** Label for the copy action on a Markdown table (copies as Markdown format). */
|
|
71
|
+
tableCopyLabel?: string;
|
|
76
72
|
/** Status announced after a Markdown table has been copied. */
|
|
77
73
|
tableCopiedLabel?: string;
|
|
78
74
|
/** Label for downloading a Markdown table as CSV. */
|
|
@@ -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,WAAW,EACX,aAAa,EACd,MAAM,2BAA2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ble components for rendering conversation history with actions and source citations",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.102",
|
|
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.2.0-dev.
|
|
22
|
+
"@epam/ai-dial-attachment-input": "1.2.0-dev.102"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": "^19.2.8",
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
27
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.102",
|
|
27
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.12"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|