@sawport/react-sdk 1.2.5-alpha.6 → 1.2.5-alpha.7

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
@@ -121089,7 +121089,8 @@ const VideoCall = ({ userId, conversation_id, brandColor }) => {
121089
121089
  try {
121090
121090
  await startScreenShare();
121091
121091
  } catch (error2) {
121092
- console.error("Failed to start screen share:", error2);
121092
+ const message = error2 instanceof Error ? error2.message : String(error2);
121093
+ y.error(`Failed to start screen share: ${message}`, { autoClose: 3e3 });
121093
121094
  }
121094
121095
  },
121095
121096
  stopScreenSharing: async () => {
@@ -121100,7 +121101,8 @@ const VideoCall = ({ userId, conversation_id, brandColor }) => {
121100
121101
  try {
121101
121102
  await stopScreenShare();
121102
121103
  } catch (error2) {
121103
- console.error("Failed to stop screen share:", error2);
121104
+ const message = error2 instanceof Error ? error2.message : String(error2);
121105
+ y.error(`Failed to stop screen share: ${message}`, { autoClose: 3e3 });
121104
121106
  }
121105
121107
  },
121106
121108
  screenShared: (transformedLocalParticipant == null ? void 0 : transformedLocalParticipant.screenShared) || false,