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

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.
@@ -893,23 +893,28 @@ const Co = /* @__PURE__ */ st(fu), du = {
893
893
  payloadParams: null
894
894
  },
895
895
  webExperimentation: {
896
- enabled: !0,
897
- experimentName: "xpertChatbotExperiment"
896
+ enabled: !1,
897
+ experimentName: null
898
898
  },
899
899
  launchButton: {
900
900
  message: null,
901
- logoType: "edx",
901
+ logoType: null,
902
902
  animatedGraduate: {
903
- enabled: !1,
904
- delayMs: null
903
+ enabled: !0,
904
+ delayMs: 7e3
905
905
  },
906
906
  style: {
907
- backgroundColor: "#0E3639",
908
- padding: "0.9375rem 1.5625rem",
909
- iconWidth: "5rem",
907
+ backgroundColor: "transparent",
908
+ border: "none",
909
+ borderRadius: 0,
910
+ padding: 0,
911
+ iconWidth: "4.5rem",
910
912
  mobile: {
911
- backgroundColor: "#0E3639",
912
- padding: "0.9375rem 1.5625rem"
913
+ backgroundColor: "transparent",
914
+ border: "none",
915
+ borderRadius: 0,
916
+ padding: 0,
917
+ iconWidth: "4.5rem"
913
918
  }
914
919
  }
915
920
  },
@@ -920,11 +925,11 @@ const Co = /* @__PURE__ */ st(fu), du = {
920
925
  text: "I'm Xpert, an AI assistant to help you find things.",
921
926
  delayMs: 4e3,
922
927
  style: {
923
- bottom: "6.75rem",
924
- right: "1.75rem",
928
+ bottom: "7.5rem",
929
+ right: "2rem",
925
930
  mobile: {
926
- bottom: "10.75rem",
927
- right: "1.75rem"
931
+ bottom: "11.5rem",
932
+ right: "2rem"
928
933
  }
929
934
  }
930
935
  },
@@ -12732,7 +12737,7 @@ function Ri({ submitEventExternal: e }) {
12732
12737
  }, 6e4)), () => {
12733
12738
  clearInterval(Z), clearTimeout(ie);
12734
12739
  };
12735
- }, [a.enabled, a.prefix]), Ce(() => {
12740
+ }, [e, a.enabled, a.prefix]), Ce(() => {
12736
12741
  let Z, ie;
12737
12742
  return Z = setInterval(() => {
12738
12743
  o.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(Z), clearTimeout(ie), L(!0)));
@@ -12929,7 +12934,7 @@ function Ri({ submitEventExternal: e }) {
12929
12934
  feedbackThumbType: ie
12930
12935
  }) : Se);
12931
12936
  s(ke), f(!1);
12932
- }, Te = ((It = r.animatedGraduate) == null ? void 0 : It.enabled) && o.enabled && $ === "A", je = i.enabled ? d ? i.style.mobile : i.style : null;
12937
+ }, Te = (It = r.animatedGraduate) == null ? void 0 : It.enabled, je = i.enabled ? d ? i.style.mobile : i.style : null;
12933
12938
  return (
12934
12939
  // do not remove this class as it's needed to turn off chatbot
12935
12940
  /* @__PURE__ */ y.jsxs("div", { className: "xpert_chatbot", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.19.5",
3
+ "version": "1.20.0-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"