@videosdk.live/react-sdk 0.1.80 → 0.1.82

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
@@ -300,7 +300,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
300
300
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MeetingProviderContex.Consumer, null, children));
301
301
  };
302
302
 
303
- var version = "0.1.80";
303
+ var version = "0.1.82";
304
304
 
305
305
  var MeetingProvider = function MeetingProvider(_ref) {
306
306
  var children = _ref.children,
@@ -656,7 +656,8 @@ var MeetingProvider = function MeetingProvider(_ref) {
656
656
  var part = participants.get(data.participantId);
657
657
  part.mode = data.mode;
658
658
  participants.set(part.id, part);
659
- return participants;
659
+ var participantsToSet = new Map(participants);
660
+ return participantsToSet;
660
661
  });
661
662
  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)) {
662
663
  setLocalParticipant(function (participant) {
@@ -1205,8 +1206,9 @@ var useParticipant = function useParticipant(participantId, _temp) {
1205
1206
  var remove = function remove() {
1206
1207
  participant === null || participant === void 0 ? void 0 : participant.remove();
1207
1208
  };
1208
- var captureImage = function captureImage(_ref2) {
1209
- var height = _ref2.height,
1209
+ var captureImage = function captureImage(_temp2) {
1210
+ var _ref2 = _temp2 === void 0 ? {} : _temp2,
1211
+ height = _ref2.height,
1210
1212
  width = _ref2.width;
1211
1213
  return Promise.resolve(participant === null || participant === void 0 ? void 0 : participant.captureImage({
1212
1214
  height: height,