@2uinc/frontend-component-xpert-chatbot 1.35.8-beta.1 → 1.35.8-beta.3
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/dist/lib/index.min.js +26 -62
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -20097,55 +20097,36 @@ const ua = ({
|
|
20097
20097
|
const { disableScroll: s, hasError: l } = se(Ze), { isConversationLoading: c } = se(wt), d = t || c, h = Je(null), p = Je(null);
|
20098
20098
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
20099
20099
|
/* @__PURE__ */ v.jsx(
|
20100
|
-
"
|
20100
|
+
"section",
|
20101
20101
|
{
|
20102
|
+
id: "chat-content",
|
20103
|
+
ref: p,
|
20104
|
+
"aria-live": "polite",
|
20105
|
+
"aria-relevant": "additions",
|
20106
|
+
"aria-atomic": "false",
|
20107
|
+
"aria-label": "Chat conversation",
|
20108
|
+
"aria-busy": d,
|
20102
20109
|
style: {
|
20103
|
-
backgroundColor: "#fff",
|
20104
|
-
padding: "10px",
|
20105
20110
|
display: "flex",
|
20106
|
-
flexDirection: "column"
|
20107
|
-
alignItems: "center",
|
20108
|
-
justifyContent: "center"
|
20111
|
+
flexDirection: "column"
|
20109
20112
|
},
|
20110
|
-
children:
|
20111
|
-
|
20112
|
-
{
|
20113
|
-
|
20114
|
-
|
20115
|
-
|
20116
|
-
|
20117
|
-
|
20118
|
-
|
20119
|
-
|
20120
|
-
|
20121
|
-
|
20122
|
-
|
20123
|
-
overflowY: "auto",
|
20124
|
-
position: "relative",
|
20125
|
-
height: "100%",
|
20126
|
-
width: "100%",
|
20127
|
-
scrollbarWidth: "none",
|
20128
|
-
msOverflowStyle: "none"
|
20113
|
+
children: n.map((f, b) => {
|
20114
|
+
const { role: m } = f, _ = `${m}-${b}`;
|
20115
|
+
return m === "error" ? /* @__PURE__ */ v.jsx(ui, { content: f == null ? void 0 : f.content }, _) : m === "notification" ? /* @__PURE__ */ v.jsx(tu, { message: f }, _) : ["agent", "assistant", "info", "user"].includes(m) ? /* @__PURE__ */ v.jsx(
|
20116
|
+
ia,
|
20117
|
+
{
|
20118
|
+
index: b,
|
20119
|
+
isTestUser: e,
|
20120
|
+
message: f,
|
20121
|
+
messageRef: h,
|
20122
|
+
setLiveChatOpen: i,
|
20123
|
+
submitEvent: u,
|
20124
|
+
onFeedbackThumbSelection: r,
|
20125
|
+
onMessageLinkClicked: a
|
20129
20126
|
},
|
20130
|
-
|
20131
|
-
|
20132
|
-
|
20133
|
-
ia,
|
20134
|
-
{
|
20135
|
-
index: b,
|
20136
|
-
isTestUser: e,
|
20137
|
-
message: f,
|
20138
|
-
messageRef: h,
|
20139
|
-
setLiveChatOpen: i,
|
20140
|
-
submitEvent: u,
|
20141
|
-
onFeedbackThumbSelection: r,
|
20142
|
-
onMessageLinkClicked: a
|
20143
|
-
},
|
20144
|
-
_
|
20145
|
-
) : null;
|
20146
|
-
})
|
20147
|
-
}
|
20148
|
-
)
|
20127
|
+
_
|
20128
|
+
) : null;
|
20129
|
+
})
|
20149
20130
|
}
|
20150
20131
|
),
|
20151
20132
|
d && /* @__PURE__ */ v.jsx(td, { disableScroll: s }),
|
@@ -20275,24 +20256,7 @@ const rd = ({ chatContentRef: e, messages: t }) => {
|
|
20275
20256
|
"button",
|
20276
20257
|
{
|
20277
20258
|
onClick: u,
|
20278
|
-
|
20279
|
-
position: "relative",
|
20280
|
-
margin: "auto",
|
20281
|
-
zIndex: 1e3,
|
20282
|
-
backgroundColor: "white",
|
20283
|
-
color: "black",
|
20284
|
-
border: "1px solid #EBEBEB",
|
20285
|
-
borderRadius: "50%",
|
20286
|
-
padding: ".25rem .75rem .5rem .75rem",
|
20287
|
-
display: "flex",
|
20288
|
-
alignItems: "center",
|
20289
|
-
justifyContent: "center",
|
20290
|
-
cursor: "pointer",
|
20291
|
-
boxShadow: "0 2px 5px rgba(0, 0, 0, 0.2)",
|
20292
|
-
fontSize: "1.25rem",
|
20293
|
-
bottom: "10rem",
|
20294
|
-
width: "2.5rem"
|
20295
|
-
},
|
20259
|
+
className: "xpert_chatbot__scroll-to-last-message-button",
|
20296
20260
|
"aria-label": "Scroll to bottom",
|
20297
20261
|
children: "↓"
|
20298
20262
|
}
|