@2uinc/frontend-component-xpert-chatbot 1.31.1-beta.1 → 1.31.1-beta.2

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.
@@ -13308,89 +13308,101 @@ function bi({ submitEventExternal: e }) {
13308
13308
  }, Tt = (Pt = a == null ? void 0 : a.animatedGraduate) == null ? void 0 : Pt.enabled, Ot = o != null && o.enabled ? h ? (Ze = o == null ? void 0 : o.style) == null ? void 0 : Ze.mobile : o == null ? void 0 : o.style : null;
13309
13309
  return (
13310
13310
  // do not remove this class as it's needed to turn off chatbot
13311
- /* @__PURE__ */ k.jsxs("div", { className: `xpert-chatbot${u ? "" : "--inline"}`, children: [
13312
- (o == null ? void 0 : o.enabled) && /* @__PURE__ */ k.jsx(
13313
- Sl,
13314
- {
13315
- showMessage: !N,
13316
- style: Ot,
13317
- onClose: Te,
13318
- onClick: he,
13319
- cookieName: `${i}-proactive-message-xpert-chatbot`,
13320
- children: /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
13321
- (o == null ? void 0 : o.textPrefix) && /* @__PURE__ */ k.jsx(
13322
- "span",
13323
- {
13324
- style: {
13325
- paddingRight: o != null && o.showEmoji ? "0" : "0.3rem"
13326
- },
13327
- children: (o == null ? void 0 : o.textPrefix) ?? ""
13328
- }
13329
- ),
13330
- (o == null ? void 0 : o.showEmoji) && /* @__PURE__ */ k.jsx(
13331
- "span",
13332
- {
13333
- role: "img",
13334
- "aria-label": "Hand wave emoji",
13335
- className: "xpert-chatbot-proactive-message__wave",
13336
- style: {
13337
- padding: o != null && o.textPrefix ? "0 0.3rem" : "0 0.3rem 0 0"
13338
- },
13339
- children: "👋"
13340
- }
13341
- ),
13342
- /* @__PURE__ */ k.jsx("span", { children: (o == null ? void 0 : o.text) ?? "" })
13343
- ] }) })
13344
- }
13345
- ),
13346
- Tt && u && /* @__PURE__ */ k.jsx(
13347
- qr,
13348
- {
13349
- handleFloatingActionButtonClick: pe
13350
- }
13351
- ),
13352
- !Tt && u && /* @__PURE__ */ k.jsx(
13353
- Ur,
13354
- {
13355
- handleFloatingActionButtonClick: pe
13356
- }
13357
- ),
13358
- u && /* @__PURE__ */ k.jsx(l0, {}),
13359
- N && !U && /* @__PURE__ */ k.jsx(Co, { isMounted: S, children: /* @__PURE__ */ k.jsx(
13360
- "div",
13361
- {
13362
- ref: H,
13363
- style: { display: "flex", flexDirection: "column", height: "100%" },
13364
- children: /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
13365
- u && /* @__PURE__ */ k.jsx(
13366
- kl,
13367
- {
13368
- onClose: Fe,
13369
- handleResizeButtonClick: xe,
13370
- isMounted: S,
13371
- setIsMounted: O
13372
- }
13373
- ),
13374
- /* @__PURE__ */ k.jsx(o0, {}),
13375
- v === ut.XPERT && /* @__PURE__ */ k.jsx(
13376
- oi,
13377
- {
13378
- handleChange: Xe,
13379
- handleFeedbackThumbSelection: Bt,
13380
- handleMessageLinkClicked: w,
13381
- handleSend: de,
13382
- inputRef: j,
13383
- isTestUser: m,
13384
- setLiveChatOpen: M,
13385
- submitEvent: W,
13386
- userInput: B
13387
- }
13388
- ),
13389
- v === ut.LIVECHAT && /* @__PURE__ */ k.jsx(yi, {})
13390
- ] })
13391
- }
13392
- ) })
13393
- ] })
13311
+ /* @__PURE__ */ k.jsxs(
13312
+ "div",
13313
+ {
13314
+ className: `xpert-chatbot${u ? "" : "--inline"}`,
13315
+ style: {
13316
+ position: "fixed",
13317
+ bottom: h ? "4.5rem" : ".5rem",
13318
+ right: "1.5rem",
13319
+ textAlign: "right"
13320
+ },
13321
+ children: [
13322
+ (o == null ? void 0 : o.enabled) && /* @__PURE__ */ k.jsx(
13323
+ Sl,
13324
+ {
13325
+ showMessage: !N,
13326
+ style: Ot,
13327
+ onClose: Te,
13328
+ onClick: he,
13329
+ cookieName: `${i}-proactive-message-xpert-chatbot`,
13330
+ children: /* @__PURE__ */ k.jsx("div", { className: "xpert-chatbot-proactive-message", children: /* @__PURE__ */ k.jsxs("div", { className: "xpert-chatbot-proactive-message__text", children: [
13331
+ (o == null ? void 0 : o.textPrefix) && /* @__PURE__ */ k.jsx(
13332
+ "span",
13333
+ {
13334
+ style: {
13335
+ paddingRight: o != null && o.showEmoji ? "0" : "0.3rem"
13336
+ },
13337
+ children: (o == null ? void 0 : o.textPrefix) ?? ""
13338
+ }
13339
+ ),
13340
+ (o == null ? void 0 : o.showEmoji) && /* @__PURE__ */ k.jsx(
13341
+ "span",
13342
+ {
13343
+ role: "img",
13344
+ "aria-label": "Hand wave emoji",
13345
+ className: "xpert-chatbot-proactive-message__wave",
13346
+ style: {
13347
+ padding: o != null && o.textPrefix ? "0 0.3rem" : "0 0.3rem 0 0"
13348
+ },
13349
+ children: "👋"
13350
+ }
13351
+ ),
13352
+ /* @__PURE__ */ k.jsx("span", { children: (o == null ? void 0 : o.text) ?? "" })
13353
+ ] }) })
13354
+ }
13355
+ ),
13356
+ Tt && u && /* @__PURE__ */ k.jsx(
13357
+ qr,
13358
+ {
13359
+ handleFloatingActionButtonClick: pe
13360
+ }
13361
+ ),
13362
+ !Tt && u && /* @__PURE__ */ k.jsx(
13363
+ Ur,
13364
+ {
13365
+ handleFloatingActionButtonClick: pe
13366
+ }
13367
+ ),
13368
+ u && /* @__PURE__ */ k.jsx(l0, {}),
13369
+ N && !U && /* @__PURE__ */ k.jsx(Co, { isMounted: S, children: /* @__PURE__ */ k.jsx(
13370
+ "div",
13371
+ {
13372
+ ref: H,
13373
+ style: { display: "flex", flexDirection: "column", height: "100%" },
13374
+ children: /* @__PURE__ */ k.jsxs(k.Fragment, { children: [
13375
+ u && /* @__PURE__ */ k.jsx(
13376
+ kl,
13377
+ {
13378
+ onClose: Fe,
13379
+ handleResizeButtonClick: xe,
13380
+ isMounted: S,
13381
+ setIsMounted: O
13382
+ }
13383
+ ),
13384
+ /* @__PURE__ */ k.jsx(o0, {}),
13385
+ v === ut.XPERT && /* @__PURE__ */ k.jsx(
13386
+ oi,
13387
+ {
13388
+ handleChange: Xe,
13389
+ handleFeedbackThumbSelection: Bt,
13390
+ handleMessageLinkClicked: w,
13391
+ handleSend: de,
13392
+ inputRef: j,
13393
+ isTestUser: m,
13394
+ setLiveChatOpen: M,
13395
+ submitEvent: W,
13396
+ userInput: B
13397
+ }
13398
+ ),
13399
+ v === ut.LIVECHAT && /* @__PURE__ */ k.jsx(yi, {})
13400
+ ] })
13401
+ }
13402
+ ) })
13403
+ ]
13404
+ }
13405
+ )
13394
13406
  );
13395
13407
  }
13396
13408
  bi.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.31.1-beta.1",
3
+ "version": "1.31.1-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"