@sawport/react-sdk 0.1.0-alpha.58 → 0.1.0-alpha.59

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
@@ -67739,7 +67739,7 @@ const Offline = react.exports.memo(({
67739
67739
  children: [/* @__PURE__ */ jsxs(Button$1, {
67740
67740
  type: "primary",
67741
67741
  htmlType: "submit",
67742
- disabled: isLoading,
67742
+ disabled: isLoading || isRecording,
67743
67743
  className: styles$2.scheduleBtn + " mt-1 mb-1 py-1 px-4 col",
67744
67744
  children: [isLoading ? /* @__PURE__ */ jsx(SpinFC$1, {
67745
67745
  size: "sm",
@@ -67747,6 +67747,7 @@ const Offline = react.exports.memo(({
67747
67747
  }) : "", calendar2 ? "Update Call" : "Request Call"]
67748
67748
  }), /* @__PURE__ */ jsx(Button$1, {
67749
67749
  outline: "true",
67750
+ disabled: isRecording,
67750
67751
  style: {
67751
67752
  borderColor: hexcode
67752
67753
  },
@@ -73096,6 +73097,7 @@ function useVideoCalling({ userId, conversation_id }) {
73096
73097
  ref.current.screenStream = null;
73097
73098
  ref.current.localICECandidates = [];
73098
73099
  ref.current.localVideoTrack = null;
73100
+ ref.current.connected = false;
73099
73101
  setState({
73100
73102
  isIncoming: false,
73101
73103
  isOutgoing: false,
@@ -74377,6 +74379,7 @@ const ChatMode = react.exports.memo(({
74377
74379
  },
74378
74380
  setState: _setState
74379
74381
  } = useRequest({
74382
+ loadOnMount: !!(customer == null ? void 0 : customer.id),
74380
74383
  asyncRequest: getConnectedWait,
74381
74384
  params: [{
74382
74385
  customer: customer == null ? void 0 : customer.id