@2uinc/frontend-component-xpert-chatbot 1.7.0-beta.1 → 1.7.0-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.
@@ -175,11 +175,9 @@ const Jl = {
175
175
  }, tu = {
176
176
  xpertKey: "get-smarter",
177
177
  chatApi: {
178
- endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/chatservice",
178
+ endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
179
179
  payloadParams: {
180
- context: {
181
- uri: "five9_faq"
182
- }
180
+ use_case: "GET_SMARTER"
183
181
  }
184
182
  },
185
183
  primaryColor: "#E31A82",
@@ -883,7 +881,7 @@ var hu = pn.exports;
883
881
  const No = /* @__PURE__ */ nt(hu), gu = {
884
882
  xpertKey: "exec-ed-ss-olc-moodle",
885
883
  chatApi: {
886
- endpoint: "https://xpert-platform-services-api.stg.ai.2u.com/xpert/omnichannel",
884
+ endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
887
885
  payloadParams: {
888
886
  use_case: "LOG_OUT"
889
887
  }
@@ -905,11 +903,16 @@ const No = /* @__PURE__ */ nt(hu), gu = {
905
903
  launchButton: {
906
904
  message: {
907
905
  enabled: !0,
908
- text: "Chat with us",
906
+ text: "Chat to us",
909
907
  style: {
910
908
  color: "#E31A82",
911
- right: "1rem",
912
- fontFamily: "system-ui"
909
+ right: "1.5rem",
910
+ fontFamily: "system-ui",
911
+ mobile: {
912
+ color: "#E31A82",
913
+ right: "1.50rem",
914
+ fontFamily: "system-ui"
915
+ }
913
916
  }
914
917
  },
915
918
  style: {
@@ -10361,7 +10364,7 @@ function Qh(e) {
10361
10364
  }
10362
10365
  const ir = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iNDgiPjxwYXRoIGQ9Ik0yODEtMjQwcS0xNCAwLTI3LjUtMTRUMjQwLTI4MnYtOThoNTAwdi0zNDBoMTAwcTE0IDAgMjcgMTR0MTMgMjl2NTk2TDcyMS0yNDBIMjgxWk04MC0yODB2LTU1OHEwLTE0IDEzLTI4dDI3LTE0aDUxOXExNSAwIDI4IDEzLjV0MTMgMjguNXYzNTZxMCAxNC0xMyAyOHQtMjggMTRIMjQwTDgwLTI4MFptNTQwLTIyMHYtMzIwSDE0MHYzMjBoNDgwWm0tNDgwIDB2LTMyMCAzMjBaIiBmaWxsPSIjRkZGRkZGIi8+PC9zdmc+";
10363
10366
  const Yh = 991, Hh = () => {
10364
- var n, r;
10367
+ var n;
10365
10368
  const e = vt(Yh), { launchButton: t } = We(Ge);
10366
10369
  return (n = t.message) != null && n.enabled ? /* @__PURE__ */ k.jsx(
10367
10370
  "div",
@@ -10370,7 +10373,7 @@ const Yh = 991, Hh = () => {
10370
10373
  "aria-live": "assertive",
10371
10374
  "aria-label": t == null ? void 0 : t.message.text,
10372
10375
  className: "xpert_chatbot__launch-button-message",
10373
- style: e ? { ...(r = t.message.mobile) == null ? void 0 : r.style } : { ...t.message.style },
10376
+ style: e ? { ...t.message.style.mobile } : { ...t.message.style },
10374
10377
  children: t.message.text
10375
10378
  }
10376
10379
  ) : null;
@@ -10392,6 +10395,10 @@ function Xr({ submitEventExternal: e }) {
10392
10395
  conversationScreen: l
10393
10396
  } = We(Ge), u = vt(Vh), [, s] = we(!1), [c, p] = we(Wh), [m, d] = we(!1), [T, x] = we(!1), [j, v] = we(!1), [C, S] = we(""), [W, q] = we(!1), [M, P] = we(!0), [H, G] = we(!1), [K, A] = we(!1), [b, I] = we(!1), z = tt(null), L = tt(null), U = tt(null), _ = He.get(`${t}-test`) === "1", V = Yt(
10394
10397
  ({ name: R, payload: oe }) => {
10398
+ console.log(
10399
+ "serTracking.defaultProperties",
10400
+ r == null ? void 0 : r.defaultProperties
10401
+ );
10395
10402
  const me = No(r.defaultProperties, oe);
10396
10403
  e ? e({ name: R, payload: me }) : U.current.track(
10397
10404
  // TODO: this is untestable - create a custom hook to get submit event function.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.7.0-beta.1",
3
+ "version": "1.7.0-beta.2",
4
4
  "homepage": "/app/plugins/xpert-chatbot/frontend/build/",
5
5
  "repository": {
6
6
  "type": "git",