@videosdk.live/react-sdk 0.1.65 → 0.1.67

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.
@@ -39,7 +39,6 @@ var eventEmitter = new EventEmitter();
39
39
  eventEmitter.setMaxListeners(9999);
40
40
 
41
41
  var MeetingProviderContex = createContext();
42
-
43
42
  var useMeeting = function useMeeting(_temp) {
44
43
  var _ref = _temp === void 0 ? {} : _temp,
45
44
  _ref$onParticipantJoi = _ref.onParticipantJoined,
@@ -297,7 +296,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
297
296
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MeetingProviderContex.Consumer, null, children));
298
297
  };
299
298
 
300
- var version = "0.1.65";
299
+ var version = "0.1.66";
301
300
 
302
301
  var MeetingProvider = function MeetingProvider(_ref) {
303
302
  var children = _ref.children,
@@ -632,7 +631,6 @@ var MeetingProvider = function MeetingProvider(_ref) {
632
631
  participants.set(part.id, part);
633
632
  return participants;
634
633
  });
635
-
636
634
  if (data.participantId === (meetingRef === null || meetingRef === void 0 ? void 0 : (_meetingRef$current2 = meetingRef.current) === null || _meetingRef$current2 === void 0 ? void 0 : (_meetingRef$current2$ = _meetingRef$current2.localParticipant) === null || _meetingRef$current2$ === void 0 ? void 0 : _meetingRef$current2$.id)) {
637
635
  setLocalParticipant(function (participant) {
638
636
  participant.mode = data.mode;
@@ -898,7 +896,7 @@ var MeetingProvider = function MeetingProvider(_ref) {
898
896
  payload = _ref6.payload;
899
897
  try {
900
898
  var _meeting3 = meetingRef.current;
901
- var _temp2 = function () {
899
+ var _temp = function () {
902
900
  if (_meeting3) {
903
901
  return Promise.resolve(_meeting3.connectTo({
904
902
  meetingId: meetingId,
@@ -906,7 +904,7 @@ var MeetingProvider = function MeetingProvider(_ref) {
906
904
  })).then(function () {});
907
905
  }
908
906
  }();
909
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
907
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
910
908
  } catch (e) {
911
909
  return Promise.reject(e);
912
910
  }
@@ -1038,7 +1036,6 @@ var useParticipant = function useParticipant(participantId, _temp) {
1038
1036
  cam: false,
1039
1037
  share: false
1040
1038
  };
1041
-
1042
1039
  return {
1043
1040
  participants: participants,
1044
1041
  localParticipant: localParticipant,
@@ -1052,7 +1049,6 @@ var useParticipant = function useParticipant(participantId, _temp) {
1052
1049
  activeSpeakerId = _useMemo.activeSpeakerId,
1053
1050
  mainParticipant = _useMemo.mainParticipant,
1054
1051
  pinState = _useMemo.pinState;
1055
-
1056
1052
  var participant = participants === null || participants === void 0 ? void 0 : participants.get(participantId);
1057
1053
  var _useState5 = useState(participant === null || participant === void 0 ? void 0 : participant.webcamOn),
1058
1054
  webcamOn = _useState5[0],
@@ -1343,7 +1339,6 @@ var usePubSub = function usePubSub(topic, _temp) {
1343
1339
  messages = _useState[0],
1344
1340
  setMessages = _useState[1];
1345
1341
  var isSubscribed = useRef(false);
1346
-
1347
1342
  var publish = function publish(message, options) {
1348
1343
  if (meeting) {
1349
1344
  meeting.pubSub.publish(topic, message, options);
@@ -1385,7 +1380,6 @@ var usePubSub = function usePubSub(topic, _temp) {
1385
1380
  };
1386
1381
 
1387
1382
  var Constants = VideoSDK.Constants;
1388
-
1389
1383
  var createCameraVideoTrack = function createCameraVideoTrack(_ref) {
1390
1384
  var _ref$cameraId = _ref.cameraId,
1391
1385
  cameraId = _ref$cameraId === void 0 ? undefined : _ref$cameraId,
@@ -1409,7 +1403,6 @@ var createCameraVideoTrack = function createCameraVideoTrack(_ref) {
1409
1403
  return Promise.reject(e);
1410
1404
  }
1411
1405
  };
1412
-
1413
1406
  var createScreenShareVideoTrack = function createScreenShareVideoTrack(_ref2) {
1414
1407
  var _ref2$encoderConfig = _ref2.encoderConfig,
1415
1408
  encoderConfig = _ref2$encoderConfig === void 0 ? undefined : _ref2$encoderConfig,
@@ -1427,7 +1420,6 @@ var createScreenShareVideoTrack = function createScreenShareVideoTrack(_ref2) {
1427
1420
  return Promise.reject(e);
1428
1421
  }
1429
1422
  };
1430
-
1431
1423
  var createMicrophoneAudioTrack = function createMicrophoneAudioTrack(_ref3) {
1432
1424
  var _ref3$noiseConfig = _ref3.noiseConfig,
1433
1425
  noiseConfig = _ref3$noiseConfig === void 0 ? undefined : _ref3$noiseConfig,