@videosdk.live/react-sdk
Advanced tools
Comparing version 0.1.13 to 0.1.14
@@ -31,3 +31,4 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
'connection-close': eventPrifix + "-connection-close", | ||
'switch-meeting': eventPrifix + "-switch-meeting" | ||
'switch-meeting': eventPrifix + "-switch-meeting", | ||
error: eventPrifix + "-error" | ||
}; | ||
@@ -83,3 +84,5 @@ var eventEmitter = new EventEmitter(); | ||
_ref$onSwitchMeeting = _ref.onSwitchMeeting, | ||
onSwitchMeeting = _ref$onSwitchMeeting === void 0 ? function () {} : _ref$onSwitchMeeting; | ||
onSwitchMeeting = _ref$onSwitchMeeting === void 0 ? function () {} : _ref$onSwitchMeeting, | ||
_ref$onError = _ref.onError, | ||
onError = _ref$onError === void 0 ? function () {} : _ref$onError; | ||
@@ -109,2 +112,3 @@ React.useEffect(function () { | ||
eventEmitter.on(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.on(events['error'], onError); | ||
return function () { | ||
@@ -133,2 +137,3 @@ eventEmitter.off(events['participant-joined'], onParticipantJoined); | ||
eventEmitter.off(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.off(events['error'], onError); | ||
}; | ||
@@ -183,3 +188,5 @@ }, []); | ||
_ref2$onSwitchMeeting = _ref2.onSwitchMeeting, | ||
onSwitchMeeting = _ref2$onSwitchMeeting === void 0 ? function () {} : _ref2$onSwitchMeeting; | ||
onSwitchMeeting = _ref2$onSwitchMeeting === void 0 ? function () {} : _ref2$onSwitchMeeting, | ||
_ref2$onError = _ref2.onError, | ||
onError = _ref2$onError === void 0 ? function () {} : _ref2$onError; | ||
React.useEffect(function () { | ||
@@ -208,2 +215,3 @@ eventEmitter.on(events['participant-joined'], onParticipantJoined); | ||
eventEmitter.on(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.on(events['error'], onError); | ||
return function () { | ||
@@ -232,2 +240,3 @@ eventEmitter.off(events['participant-joined'], onParticipantJoined); | ||
eventEmitter.off(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.off(events['error'], onError); | ||
}; | ||
@@ -496,2 +505,3 @@ }, []); | ||
meeting.off('switch-meeting', _handle_switch_meeting); | ||
meeting.off('error', _handle_error); | ||
} | ||
@@ -547,2 +557,6 @@ | ||
var _handle_error = function _handle_error(data) { | ||
eventEmitter.emit(events['error'], data); | ||
}; | ||
var _handle_switch_meeting = function _handle_switch_meeting(d) { | ||
@@ -582,2 +596,3 @@ eventEmitter.emit(events['switch-meeting'], d); | ||
meeting.on('switch-meeting', _handle_switch_meeting); | ||
meeting.on('error', _handle_error); | ||
meeting.localParticipant.on('stream-enabled', _handle_localParticipant_stream_enabled); | ||
@@ -1162,2 +1177,5 @@ meeting.localParticipant.on('stream-disabled', _handle_localParticipant_stream_disabled); | ||
var Constants = jsSdk.VideoSDK.Constants; | ||
exports.Constants = Constants; | ||
exports.MeetingConsumer = MeetingConsumer; | ||
@@ -1164,0 +1182,0 @@ exports.MeetingProvider = MeetingProvider; |
@@ -28,3 +28,4 @@ import React, { createContext, useEffect, useContext, useState, useRef, useMemo } from 'react'; | ||
'connection-close': eventPrifix + "-connection-close", | ||
'switch-meeting': eventPrifix + "-switch-meeting" | ||
'switch-meeting': eventPrifix + "-switch-meeting", | ||
error: eventPrifix + "-error" | ||
}; | ||
@@ -80,3 +81,5 @@ var eventEmitter = new EventEmitter(); | ||
_ref$onSwitchMeeting = _ref.onSwitchMeeting, | ||
onSwitchMeeting = _ref$onSwitchMeeting === void 0 ? function () {} : _ref$onSwitchMeeting; | ||
onSwitchMeeting = _ref$onSwitchMeeting === void 0 ? function () {} : _ref$onSwitchMeeting, | ||
_ref$onError = _ref.onError, | ||
onError = _ref$onError === void 0 ? function () {} : _ref$onError; | ||
@@ -106,2 +109,3 @@ useEffect(function () { | ||
eventEmitter.on(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.on(events['error'], onError); | ||
return function () { | ||
@@ -130,2 +134,3 @@ eventEmitter.off(events['participant-joined'], onParticipantJoined); | ||
eventEmitter.off(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.off(events['error'], onError); | ||
}; | ||
@@ -180,3 +185,5 @@ }, []); | ||
_ref2$onSwitchMeeting = _ref2.onSwitchMeeting, | ||
onSwitchMeeting = _ref2$onSwitchMeeting === void 0 ? function () {} : _ref2$onSwitchMeeting; | ||
onSwitchMeeting = _ref2$onSwitchMeeting === void 0 ? function () {} : _ref2$onSwitchMeeting, | ||
_ref2$onError = _ref2.onError, | ||
onError = _ref2$onError === void 0 ? function () {} : _ref2$onError; | ||
useEffect(function () { | ||
@@ -205,2 +212,3 @@ eventEmitter.on(events['participant-joined'], onParticipantJoined); | ||
eventEmitter.on(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.on(events['error'], onError); | ||
return function () { | ||
@@ -229,2 +237,3 @@ eventEmitter.off(events['participant-joined'], onParticipantJoined); | ||
eventEmitter.off(events['switch-meeting'], onSwitchMeeting); | ||
eventEmitter.off(events['error'], onError); | ||
}; | ||
@@ -493,2 +502,3 @@ }, []); | ||
meeting.off('switch-meeting', _handle_switch_meeting); | ||
meeting.off('error', _handle_error); | ||
} | ||
@@ -544,2 +554,6 @@ | ||
var _handle_error = function _handle_error(data) { | ||
eventEmitter.emit(events['error'], data); | ||
}; | ||
var _handle_switch_meeting = function _handle_switch_meeting(d) { | ||
@@ -579,2 +593,3 @@ eventEmitter.emit(events['switch-meeting'], d); | ||
meeting.on('switch-meeting', _handle_switch_meeting); | ||
meeting.on('error', _handle_error); | ||
meeting.localParticipant.on('stream-enabled', _handle_localParticipant_stream_enabled); | ||
@@ -1159,3 +1174,5 @@ meeting.localParticipant.on('stream-disabled', _handle_localParticipant_stream_disabled); | ||
export { MeetingConsumer, MeetingProvider, useConnection, useMeeting, useParticipant }; | ||
var Constants = VideoSDK.Constants; | ||
export { Constants, MeetingConsumer, MeetingProvider, useConnection, useMeeting, useParticipant }; | ||
//# sourceMappingURL=index.modern.js.map |
{ | ||
"name": "@videosdk.live/react-sdk", | ||
"version": "0.1.13", | ||
"version": "0.1.14", | ||
"license": "ISC", | ||
@@ -72,5 +72,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@videosdk.live/js-sdk": "^0.0.19", | ||
"@videosdk.live/js-sdk": "^0.0.20", | ||
"events": "^3.3.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245719
2045
+ Added@videosdk.live/js-sdk@0.0.20(transitive)
- Removed@videosdk.live/js-sdk@0.0.19(transitive)