@2uinc/frontend-component-xpert-chatbot 1.19.1 → 1.19.3-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.
@@ -991,8 +991,10 @@ const Co = /* @__PURE__ */ st(fu), du = {
991
991
  animatedGraduate: null,
992
992
  style: {
993
993
  backgroundColor: "#0E3639",
994
+ background: "#0E3639",
994
995
  mobile: {
995
- backgroundColor: "#0E3639"
996
+ backgroundColor: "#0E3639",
997
+ background: "#0E3639"
996
998
  }
997
999
  }
998
1000
  },
@@ -1020,7 +1022,8 @@ const Co = /* @__PURE__ */ st(fu), du = {
1020
1022
  prompts: null,
1021
1023
  userMessageBubble: {
1022
1024
  style: {
1023
- backgroundColor: "#0E3639"
1025
+ backgroundColor: "#0E3639",
1026
+ background: "#0E3639"
1024
1027
  }
1025
1028
  },
1026
1029
  conversationHistory: {
@@ -10863,6 +10866,7 @@ function Dl({ handleResizeButtonClick: e, setIsMounted: t }) {
10863
10866
  "aria-label": "Expand xpert dialog width",
10864
10867
  style: {
10865
10868
  backgroundColor: "transparent",
10869
+ background: "transparent",
10866
10870
  border: "none",
10867
10871
  padding: "0",
10868
10872
  cursor: "pointer"
@@ -10889,6 +10893,7 @@ function Dl({ handleResizeButtonClick: e, setIsMounted: t }) {
10889
10893
  "aria-label": "Shrink xpert dialog width",
10890
10894
  style: {
10891
10895
  backgroundColor: "transparent",
10896
+ background: "transparent",
10892
10897
  border: "none",
10893
10898
  padding: "0",
10894
10899
  cursor: "pointer"
@@ -10944,6 +10949,7 @@ function Rl({
10944
10949
  {
10945
10950
  style: {
10946
10951
  backgroundColor: "transparent",
10952
+ background: "transparent",
10947
10953
  border: "none",
10948
10954
  padding: "0",
10949
10955
  color: "white",
@@ -12655,6 +12661,7 @@ function Ri({ submitEventExternal: e }) {
12655
12661
  );
12656
12662
  const P = Rt(
12657
12663
  ({ name: Z, payload: ie }) => {
12664
+ if (!a.enabled) return;
12658
12665
  const ke = Co(a == null ? void 0 : a.payloadParams, ie);
12659
12666
  e ? e({ name: Z, payload: ke }) : A.current.track(
12660
12667
  // TODO: this is untestable - create a custom hook to get submit event function.
@@ -12662,7 +12669,7 @@ function Ri({ submitEventExternal: e }) {
12662
12669
  ke
12663
12670
  );
12664
12671
  },
12665
- [e, a.payloadParams]
12672
+ [e, a.enabled, a == null ? void 0 : a.payloadParams]
12666
12673
  ), M = Rt(async () => {
12667
12674
  if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
12668
12675
  try {
@@ -12711,7 +12718,7 @@ function Ri({ submitEventExternal: e }) {
12711
12718
  let Z, ie;
12712
12719
  return a.enabled && (Z = setInterval(() => {
12713
12720
  var Se;
12714
- console.log("Chatbot - Finding Segment"), (Se = window.analytics) != null && Se.track && (console.log("Chatbot - Segment found"), A.current = window.analytics, clearInterval(Z), clearTimeout(ie), z(!0));
12721
+ console.log("Chatbot - Finding Segment"), ((Se = window.analytics) != null && Se.track || e) && (console.log("Chatbot - Segment found"), A.current = window.analytics, clearInterval(Z), clearTimeout(ie), z(!0));
12715
12722
  }, 1e3), ie = setTimeout(() => {
12716
12723
  clearInterval(Z);
12717
12724
  }, 6e4)), () => {
@@ -12745,7 +12752,7 @@ function Ri({ submitEventExternal: e }) {
12745
12752
  return o.enabled && !o.experimentName && console.log(
12746
12753
  `Chatbot - Experiment not setup: ${l}, ${$}, ${window.optimizely}`
12747
12754
  ), _ || console.log(`Chatbot - Test user not setup: ${l}, ${_}`), null;
12748
- if (a.prefix && !((Pt = A == null ? void 0 : A.current) != null && Pt.track) && !e)
12755
+ if (a.enabled && a.prefix && !((Pt = A == null ? void 0 : A.current) != null && Pt.track) && !e)
12749
12756
  return console.log(`Chatbot - Segment not setup: ${l}`), null;
12750
12757
  const p = () => {
12751
12758
  q(""), O.current.value = "", O.current.style.height = "auto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.19.1",
3
+ "version": "1.19.3-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"