@2uinc/frontend-component-xpert-chatbot 1.19.6-alpha.1 → 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.
@@ -761,31 +761,32 @@ const Co = /* @__PURE__ */ st(fu), du = {
761
761
  },
762
762
  {
763
763
  key: "email",
764
- name: "University Email or Email Address on Record",
764
+ name: "Email",
765
765
  validations: ["email"]
766
766
  },
767
+ {
768
+ key: "phone",
769
+ name: "Phone",
770
+ validations: null
771
+ },
767
772
  {
768
773
  key: "question",
769
- name: "Question/Describe your Issue",
774
+ name: "Question",
770
775
  validations: null
771
776
  }
772
777
  ],
773
- formHeader: "Digital Campus Support",
774
- privacyPolicyLink: null,
775
- privacyPolicyText: "",
776
- queueMessages: [
777
- "Thank you for contact us!",
778
- "You are in queue.",
779
- "Please wait while we connect you to the next available representative."
780
- ],
778
+ formHeader: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
779
+ privacyPolicyLink: "https://www.google.com",
780
+ privacyPolicyText: "Please note that GetSmarter will process your personal information in accordance with its privacy policy. You may receive transactional emails containing your chat conversation with GetSmarter.",
781
781
  socketUrl: "wss://4rqof1by76.execute-api.us-west-2.amazonaws.com/stg",
782
782
  sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
783
783
  options: {
784
784
  appId: "2U Inc",
785
785
  configId: "Degree | Support_Main_Flow_Xpert"
786
786
  },
787
- useOwnChat: !0,
788
- useSurvey: !1
787
+ queueMessages: [],
788
+ useSurvey: !1,
789
+ useOwnChat: !1
789
790
  }
790
791
  }
791
792
  }, pu = {
@@ -859,44 +860,19 @@ const Co = /* @__PURE__ */ st(fu), du = {
859
860
  },
860
861
  liveChat: {
861
862
  enabled: !0,
862
- form: [
863
- {
864
- key: "first_name",
865
- name: "First name",
866
- validations: null
867
- },
868
- {
869
- key: "last_name",
870
- name: "Last name",
871
- validations: null
872
- },
873
- {
874
- key: "email",
875
- name: "University Email or Email Address on Record",
876
- validations: ["email"]
877
- },
878
- {
879
- key: "question",
880
- name: "Question/Describe your Issue",
881
- validations: null
882
- }
883
- ],
884
- formHeader: "Digital Campus Support",
885
- privacyPolicyLink: null,
886
- privacyPolicyText: "",
887
- queueMessages: [
888
- "Thank you for contact us!",
889
- "You are in queue.",
890
- "Please wait while we connect you to the next available representative."
891
- ],
892
- socketUrl: "wss://4rqof1by76.execute-api.us-west-2.amazonaws.com/stg",
893
- sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
863
+ form: null,
864
+ formHeader: null,
894
865
  options: {
895
866
  appId: "2U Inc",
896
867
  configId: "Degree | Support_Main_Flow_Xpert"
897
868
  },
898
- useOwnChat: !0,
899
- useSurvey: !1
869
+ privacyPolicyLink: null,
870
+ privacyPolicyText: null,
871
+ queueMessages: [],
872
+ socketUrl: null,
873
+ sourceCode: "https://live-chat.ps.five9.com/Five9ChatPlugin.js",
874
+ useOwnChat: !1,
875
+ useSurvey: null
900
876
  }
901
877
  }
902
878
  }, hu = {
@@ -917,23 +893,28 @@ const Co = /* @__PURE__ */ st(fu), du = {
917
893
  payloadParams: null
918
894
  },
919
895
  webExperimentation: {
920
- enabled: !0,
921
- experimentName: "xpertChatbotExperiment"
896
+ enabled: !1,
897
+ experimentName: null
922
898
  },
923
899
  launchButton: {
924
900
  message: null,
925
- logoType: "edx",
901
+ logoType: null,
926
902
  animatedGraduate: {
927
- enabled: !1,
928
- delayMs: null
903
+ enabled: !0,
904
+ delayMs: 7e3
929
905
  },
930
906
  style: {
931
- backgroundColor: "#0E3639",
932
- padding: "0.9375rem 1.5625rem",
933
- iconWidth: "5rem",
907
+ backgroundColor: "transparent",
908
+ border: "none",
909
+ borderRadius: 0,
910
+ padding: 0,
911
+ iconWidth: "4.5rem",
934
912
  mobile: {
935
- backgroundColor: "#0E3639",
936
- padding: "0.9375rem 1.5625rem"
913
+ backgroundColor: "transparent",
914
+ border: "none",
915
+ borderRadius: 0,
916
+ padding: 0,
917
+ iconWidth: "4.5rem"
937
918
  }
938
919
  }
939
920
  },
@@ -944,11 +925,11 @@ const Co = /* @__PURE__ */ st(fu), du = {
944
925
  text: "I'm Xpert, an AI assistant to help you find things.",
945
926
  delayMs: 4e3,
946
927
  style: {
947
- bottom: "6.75rem",
948
- right: "1.75rem",
928
+ bottom: "7.5rem",
929
+ right: "2rem",
949
930
  mobile: {
950
- bottom: "10.75rem",
951
- right: "1.75rem"
931
+ bottom: "11.5rem",
932
+ right: "2rem"
952
933
  }
953
934
  }
954
935
  },
@@ -12756,7 +12737,7 @@ function Ri({ submitEventExternal: e }) {
12756
12737
  }, 6e4)), () => {
12757
12738
  clearInterval(Z), clearTimeout(ie);
12758
12739
  };
12759
- }, [a.enabled, a.prefix]), Ce(() => {
12740
+ }, [e, a.enabled, a.prefix]), Ce(() => {
12760
12741
  let Z, ie;
12761
12742
  return Z = setInterval(() => {
12762
12743
  o.enabled && (console.log("Chatbot - Finding Optimizely"), window.optimizely && window.experiments && (console.log("Chatbot - Optimizely found"), clearInterval(Z), clearTimeout(ie), L(!0)));
@@ -12953,7 +12934,7 @@ function Ri({ submitEventExternal: e }) {
12953
12934
  feedbackThumbType: ie
12954
12935
  }) : Se);
12955
12936
  s(ke), f(!1);
12956
- }, 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;
12957
12938
  return (
12958
12939
  // do not remove this class as it's needed to turn off chatbot
12959
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.6-alpha.1",
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"