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