@sawport/react-sdk 0.1.0-alpha.70 → 0.1.0-alpha.72

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.
package/dist/index.js CHANGED
@@ -68913,7 +68913,7 @@ const Offline = reactExports.memo(({
68913
68913
  });
68914
68914
  formData.append("timezone", timezone2);
68915
68915
  formData.append("continent", continent);
68916
- formData.append("access_platform", "online");
68916
+ formData.append("access_platform", "web");
68917
68917
  await schedule(formData);
68918
68918
  }
68919
68919
  setState({
@@ -69412,7 +69412,7 @@ function WidgetInitForm({
69412
69412
  const shape = {
69413
69413
  name: create$4().min(3).required(),
69414
69414
  email: create$4().email().required(),
69415
- message: create$4().min(7).required()
69415
+ message: create$4().min(7, "Message must be at least 7 characters").required("Message is a required field")
69416
69416
  };
69417
69417
  const possibleShape = {
69418
69418
  account: create$3().required().min(10).positive(),
@@ -69515,7 +69515,7 @@ function WidgetInitForm({
69515
69515
  source_url,
69516
69516
  continent,
69517
69517
  timezone: timezone2,
69518
- access_platform: "online"
69518
+ access_platform: "web"
69519
69519
  }, "post");
69520
69520
  }, {
69521
69521
  onError: (err) => {
@@ -74880,7 +74880,9 @@ function useVideoCalling({ userId, conversation_id }) {
74880
74880
  audio: false
74881
74881
  });
74882
74882
  } catch (e2) {
74883
- toast.error("Could not share the screen, please check the error and try again. " + e2);
74883
+ if (e2.message !== "Permission denied") {
74884
+ toast.error("Could not share the screen, please check the error and try again. " + e2);
74885
+ }
74884
74886
  }
74885
74887
  const { peerConnection, localStream, screenStream } = ref.current;
74886
74888
  if (screenStream) {
@@ -75725,6 +75727,7 @@ const WidgetFormDisplay = reactExports.memo(({
75725
75727
  setState({
75726
75728
  chatInit: false,
75727
75729
  chatClose: true,
75730
+ agent: void 0,
75728
75731
  companyClosed: companyIsClosed,
75729
75732
  ...extraState
75730
75733
  });
@@ -75826,7 +75829,7 @@ const WidgetFormDisplay = reactExports.memo(({
75826
75829
  paddingLeft: "4%",
75827
75830
  backgroundColor: `${hex_code}`
75828
75831
  },
75829
- children: ["You have ", customerCount, " customer(s) ahead of you!"]
75832
+ children: ["You have ", customerCount, " customer(s) ahead!"]
75830
75833
  }), /* @__PURE__ */ jsx(LongestWaitime, {})]
75831
75834
  })
75832
75835
  }), /* @__PURE__ */ jsx("div", {