@2uinc/frontend-component-xpert-chatbot 1.40.6-beta.8 → 1.40.6
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 +57 -66
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -4215,72 +4215,63 @@ function Ni({
|
|
|
4215
4215
|
120
|
|
4216
4216
|
)}px`);
|
|
4217
4217
|
};
|
|
4218
|
-
return /* @__PURE__ */ _.jsxs(
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
V.preventDefault(), t(g), X();
|
|
4276
|
-
},
|
|
4277
|
-
"aria-label": "Send message",
|
|
4278
|
-
children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
|
4279
|
-
}
|
|
4280
|
-
)
|
|
4281
|
-
]
|
|
4282
|
-
}
|
|
4283
|
-
);
|
|
4218
|
+
return /* @__PURE__ */ _.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: n }, children: [
|
|
4219
|
+
/* @__PURE__ */ _.jsx(
|
|
4220
|
+
"textarea",
|
|
4221
|
+
{
|
|
4222
|
+
"data-testid": "ConversationInput",
|
|
4223
|
+
disabled: F,
|
|
4224
|
+
value: g,
|
|
4225
|
+
ref: r,
|
|
4226
|
+
onInput: w,
|
|
4227
|
+
onChange: P,
|
|
4228
|
+
placeholder: "Write a message",
|
|
4229
|
+
cols: "5",
|
|
4230
|
+
rows: "1",
|
|
4231
|
+
maxLength: u?.input?.maxLength ?? 5e3,
|
|
4232
|
+
onKeyDown: x,
|
|
4233
|
+
style: {
|
|
4234
|
+
margin: "0",
|
|
4235
|
+
borderRadius: "1rem",
|
|
4236
|
+
boxSizing: "border-box",
|
|
4237
|
+
fontFamily: "inherit",
|
|
4238
|
+
fontSize: "1rem",
|
|
4239
|
+
// required to avoid IOS mobile scaling when input is focused
|
|
4240
|
+
fontWeight: "300",
|
|
4241
|
+
lineHeight: "1.56rem",
|
|
4242
|
+
minHeight: "3.25rem",
|
|
4243
|
+
padding: "12.5px 45px 12.5px 12.5px",
|
|
4244
|
+
resize: "none",
|
|
4245
|
+
width: "100%",
|
|
4246
|
+
outlineColor: s
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
),
|
|
4250
|
+
T && c || p || m ? /* @__PURE__ */ _.jsx(
|
|
4251
|
+
"button",
|
|
4252
|
+
{
|
|
4253
|
+
"data-testid": "Stop",
|
|
4254
|
+
className: "xpert-chatbot-popup__input--stop-btn",
|
|
4255
|
+
onClick: (V) => {
|
|
4256
|
+
V.preventDefault(), l();
|
|
4257
|
+
},
|
|
4258
|
+
"aria-label": "Stop streaming",
|
|
4259
|
+
children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
|
|
4260
|
+
}
|
|
4261
|
+
) : /* @__PURE__ */ _.jsx(
|
|
4262
|
+
"button",
|
|
4263
|
+
{
|
|
4264
|
+
"data-testid": "Send",
|
|
4265
|
+
disabled: F,
|
|
4266
|
+
className: "xpert-chatbot-popup__input--send-btn",
|
|
4267
|
+
onClick: (V) => {
|
|
4268
|
+
V.preventDefault(), t(g), X();
|
|
4269
|
+
},
|
|
4270
|
+
"aria-label": "Send message",
|
|
4271
|
+
children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
|
|
4272
|
+
}
|
|
4273
|
+
)
|
|
4274
|
+
] });
|
|
4284
4275
|
}
|
|
4285
4276
|
Ni.propTypes = {
|
|
4286
4277
|
containerStyle: A.shape(),
|