@sawport/react-sdk 0.1.0-alpha.71 → 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 +6 -3
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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(),
|
|
@@ -74880,7 +74880,9 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
74880
74880
|
audio: false
|
|
74881
74881
|
});
|
|
74882
74882
|
} catch (e2) {
|
|
74883
|
-
|
|
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
|
|
75832
|
+
children: ["You have ", customerCount, " customer(s) ahead!"]
|
|
75830
75833
|
}), /* @__PURE__ */ jsx(LongestWaitime, {})]
|
|
75831
75834
|
})
|
|
75832
75835
|
}), /* @__PURE__ */ jsx("div", {
|