@sawport/react-sdk 1.2.5-alpha.8 → 1.2.5-alpha.9

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
@@ -104851,8 +104851,7 @@ const Offline = memo(
104851
104851
  customer,
104852
104852
  fields,
104853
104853
  offlineMode,
104854
- timezone: companyTimezone,
104855
- inviteLink
104854
+ timezone: companyTimezone
104856
104855
  }) => {
104857
104856
  var _a2, _b, _c, _d, _e, _f, _g, _h, _i2, _j, _k, _l, _m;
104858
104857
  const callRequestOptions = [
@@ -105039,7 +105038,6 @@ const Offline = memo(
105039
105038
  (i2) => sendConversationInvite({
105040
105039
  customer_id: customer == null ? void 0 : customer.id,
105041
105040
  conversation_id,
105042
- invite_link: computedInviteLink,
105043
105041
  email: i2.email,
105044
105042
  name: i2.name
105045
105043
  })
@@ -105147,10 +105145,6 @@ const Offline = memo(
105147
105145
  const removeInvitee = (email2) => {
105148
105146
  setInvitees((prev2) => prev2.filter((i2) => i2.email !== email2));
105149
105147
  };
105150
- const computedInviteLink = useMemo$2(
105151
- () => inviteLink || (typeof window !== "undefined" ? window.location.href : ""),
105152
- [inviteLink]
105153
- );
105154
105148
  return /* @__PURE__ */ jsxs("div", { className: "offline py-2 px-1 m-auto", children: [
105155
105149
  scheduled ? /* @__PURE__ */ jsx(
105156
105150
  Done$1,
@@ -119955,7 +119949,6 @@ const CallInviteModal = ({
119955
119949
  const payload = {
119956
119950
  customer_id: customerId,
119957
119951
  conversation_id: conversationId,
119958
- invite_link: "https://meet.sawport.com",
119959
119952
  email: form.email,
119960
119953
  name: form.fullName
119961
119954
  };
@@ -120145,16 +120138,11 @@ const Controls = ({
120145
120138
  stopScreenSharing,
120146
120139
  screenShared,
120147
120140
  conversationId,
120148
- inviteLink,
120149
120141
  brandColor,
120150
120142
  localParticipant,
120151
120143
  isMobile: isMobile2
120152
120144
  }) => {
120153
120145
  const [inviteModalOpen, setInviteModalOpen] = React__default.useState(false);
120154
- const computedInviteLink = useMemo$2(
120155
- () => inviteLink || (typeof window !== "undefined" ? window.location.href : ""),
120156
- [inviteLink]
120157
- );
120158
120146
  const audioOn = (localParticipant == null ? void 0 : localParticipant.audioOn) ?? true;
120159
120147
  const videoOn = (localParticipant == null ? void 0 : localParticipant.videoOn) ?? true;
120160
120148
  return /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -120219,7 +120207,6 @@ const Controls = ({
120219
120207
  onCancel: () => setInviteModalOpen(false),
120220
120208
  conversationId,
120221
120209
  customerId: useUserStore.getState().user.id,
120222
- inviteLink: computedInviteLink,
120223
120210
  brandColor
120224
120211
  }
120225
120212
  )
@@ -120241,7 +120228,6 @@ const VideoChat = ({
120241
120228
  remoteParticipants = [],
120242
120229
  allParticipants = [],
120243
120230
  conversationId,
120244
- inviteLink,
120245
120231
  brandColor,
120246
120232
  isConnecting = false
120247
120233
  }) => {
@@ -120325,7 +120311,6 @@ const VideoChat = ({
120325
120311
  screenShared,
120326
120312
  isRecording,
120327
120313
  conversationId,
120328
- inviteLink,
120329
120314
  brandColor,
120330
120315
  localParticipant,
120331
120316
  isMobile: isMobile2
@@ -120672,10 +120657,7 @@ const incomingModalStyles = {
120672
120657
  const VideoChat$1 = memo(VideoChat);
120673
120658
  const VideoCall = ({ userId, conversation_id, brandColor }) => {
120674
120659
  const sessionToken = useUserStore((state) => state.sessionToken) || "";
120675
- const socketUrl = useMemo$2(
120676
- () => "https://api.dev.sawport.com",
120677
- []
120678
- );
120660
+ const socketUrl = useMemo$2(() => sawportConfig.baseURL, []);
120679
120661
  const [isIncomingCall, setIsIncomingCall] = useState$1(false);
120680
120662
  const [incomingCallerInfo, setIncomingCallerInfo] = useState$1({});
120681
120663
  const [isAnswering, setIsAnswering] = useState$1(false);