@sawport/react-sdk 0.1.0-alpha.48 → 0.1.0-alpha.49
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 +20 -13
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42455,7 +42455,8 @@ Step 4: Click the blue "Join" button to join meeting.`,
|
|
|
42455
42455
|
style: {
|
|
42456
42456
|
position: "absolute",
|
|
42457
42457
|
top: 10,
|
|
42458
|
-
left: 0
|
|
42458
|
+
left: 0,
|
|
42459
|
+
cursor: "pointer"
|
|
42459
42460
|
}
|
|
42460
42461
|
}), /* @__PURE__ */ jsx(SvgCheckedCircle, {
|
|
42461
42462
|
className: "mb-4"
|
|
@@ -42597,27 +42598,27 @@ const Schedule = ({
|
|
|
42597
42598
|
className: "ml-2",
|
|
42598
42599
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
42599
42600
|
className: styles$2.reason,
|
|
42600
|
-
children: reason2 == null ? void 0 : reason2.truncate(30)
|
|
42601
|
+
children: reason2 === "Leave a voice note" ? "Voice note recording" : reason2 == null ? void 0 : reason2.truncate(30)
|
|
42601
42602
|
}), /* @__PURE__ */ jsx(Text, {
|
|
42602
42603
|
className: styles$2.schTime,
|
|
42603
42604
|
children: hooks(scheduledAt).calendar(null, {
|
|
42604
42605
|
lastDay: function() {
|
|
42605
|
-
return `[Yesterday at]
|
|
42606
|
+
return `[Yesterday at] hh:mm A - [${hooks(this).add(1, "hour").format("hh:mm A")}]`;
|
|
42606
42607
|
},
|
|
42607
42608
|
sameDay: function() {
|
|
42608
|
-
return `[Today at]
|
|
42609
|
+
return `[Today at] hh:mm A - [${hooks(this).add(1, "hour").format("hh:mm A")}]`;
|
|
42609
42610
|
},
|
|
42610
42611
|
nextDay: function() {
|
|
42611
|
-
return `[Tomorrow at]
|
|
42612
|
+
return `[Tomorrow at] hh:mm A - [${hooks(this).add(1, "hour").format("hh:mm A")}]`;
|
|
42612
42613
|
},
|
|
42613
42614
|
lastWeek: function() {
|
|
42614
|
-
return `[last] dddd [at]
|
|
42615
|
+
return `[last] dddd [at] hh:mm A - [${hooks(this).add(1, "hour").format("hh:mm A")}]`;
|
|
42615
42616
|
},
|
|
42616
42617
|
nextWeek: function() {
|
|
42617
|
-
return `dddd [at]
|
|
42618
|
+
return `dddd [at] hh:mm A - [${hooks(this).add(1, "hour").format("hh:mm A")}]`;
|
|
42618
42619
|
},
|
|
42619
42620
|
sameElse: function() {
|
|
42620
|
-
return `
|
|
42621
|
+
return `hh:mm A - [${hooks(this).add(1, "hour").format("hh:mm A")}]`;
|
|
42621
42622
|
}
|
|
42622
42623
|
})
|
|
42623
42624
|
})]
|
|
@@ -43008,7 +43009,7 @@ const Offline = react.exports.memo(({
|
|
|
43008
43009
|
touched,
|
|
43009
43010
|
errors
|
|
43010
43011
|
}), values.reason === "Leave a voice note" && /* @__PURE__ */ jsx("div", {
|
|
43011
|
-
className: "d-flex justify-content-between align-items-center mt-3",
|
|
43012
|
+
className: "d-flex justify-content-between align-items-center mt-3 pr-4",
|
|
43012
43013
|
children: url2 ? /* @__PURE__ */ jsx(Fragment, {
|
|
43013
43014
|
children: /* @__PURE__ */ jsxs("div", {
|
|
43014
43015
|
className: "d-flex align-items-center text-danger",
|
|
@@ -49200,7 +49201,7 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
49200
49201
|
try {
|
|
49201
49202
|
return navigator.mediaDevices.getUserMedia({
|
|
49202
49203
|
video: true,
|
|
49203
|
-
audio: true
|
|
49204
|
+
audio: { echoCancellation: true, noiseCancellation: true }
|
|
49204
49205
|
});
|
|
49205
49206
|
} catch (error) {
|
|
49206
49207
|
console.error(error);
|
|
@@ -49270,12 +49271,17 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
49270
49271
|
if (setUp) {
|
|
49271
49272
|
ref.current.peerConnection = new RTCPeerConnection(peerConnectionConfig);
|
|
49272
49273
|
}
|
|
49274
|
+
ref.current.localStream = null;
|
|
49273
49275
|
}
|
|
49274
49276
|
},
|
|
49275
49277
|
[ref, localVideoRef, remoteVideoRef]
|
|
49276
49278
|
);
|
|
49277
49279
|
const clearCalls = (append = {}) => {
|
|
49278
49280
|
ref.current.data = null;
|
|
49281
|
+
ref.current.remoteStream = null;
|
|
49282
|
+
ref.current.screenStream = null;
|
|
49283
|
+
ref.current.localICECandidates = [];
|
|
49284
|
+
ref.current.localVideoTrack = null;
|
|
49279
49285
|
setState({
|
|
49280
49286
|
isIncoming: false,
|
|
49281
49287
|
isOutgoing: false,
|
|
@@ -49495,6 +49501,7 @@ function useVideoCalling({ userId, conversation_id }) {
|
|
|
49495
49501
|
return () => clearTimeout(ref.current.timeout);
|
|
49496
49502
|
} else {
|
|
49497
49503
|
clearTimeout(ref.current.timeout);
|
|
49504
|
+
ref.current.timeout = null;
|
|
49498
49505
|
}
|
|
49499
49506
|
}, [isIncoming, ref]);
|
|
49500
49507
|
react.exports.useEffect(() => {
|
|
@@ -50074,7 +50081,7 @@ const WidgetInitOnlineHeader = ({
|
|
|
50074
50081
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
50075
50082
|
className: "d-flex justify-content-between align-items-center p-2 position-relative",
|
|
50076
50083
|
onClick: () => window.open(`${company == null ? void 0 : company.banner_url}`),
|
|
50077
|
-
children: [fileExtension === "video" ? /* @__PURE__ */ jsx("div", {
|
|
50084
|
+
children: [(company == null ? void 0 : company.marketing_media) && fileExtension === "video" ? /* @__PURE__ */ jsx("div", {
|
|
50078
50085
|
className: "video-wrapper",
|
|
50079
50086
|
children: /* @__PURE__ */ jsx("video", {
|
|
50080
50087
|
src: company == null ? void 0 : company.marketing_media,
|
|
@@ -50084,12 +50091,12 @@ const WidgetInitOnlineHeader = ({
|
|
|
50084
50091
|
muted: true,
|
|
50085
50092
|
className: "banner-video"
|
|
50086
50093
|
})
|
|
50087
|
-
}) : fileExtension === "image" ? /* @__PURE__ */ jsx("img", {
|
|
50094
|
+
}) : (company == null ? void 0 : company.marketing_media) && fileExtension === "image" ? /* @__PURE__ */ jsx("img", {
|
|
50088
50095
|
src: company == null ? void 0 : company.marketing_media,
|
|
50089
50096
|
alt: "Banner",
|
|
50090
50097
|
className: "banner-image"
|
|
50091
50098
|
}) : /* @__PURE__ */ jsx("p", {
|
|
50092
|
-
className: "
|
|
50099
|
+
className: "ml-3 p my-3",
|
|
50093
50100
|
style: {
|
|
50094
50101
|
fontSize: 18,
|
|
50095
50102
|
color: "#fff"
|