@videosdk.live/react
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -5,4 +5,22 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React__default = _interopDefault(React); | ||
var EventEmitter = _interopDefault(require('events')); | ||
var js = require('@videosdk.live/js'); | ||
var eventPrifix = 'zn-meeting-react-sdk'; | ||
var events = { | ||
'participant-joined': eventPrifix + "-participant-joined", | ||
'participant-left': eventPrifix + "-participant-left", | ||
'speaker-changed': eventPrifix + "-speaker-changed", | ||
'presenter-changed': eventPrifix + "-presenter-changed", | ||
'main-participant-changed': eventPrifix + "-main-participant-changed", | ||
'entry-requested': eventPrifix + "-entry-requested", | ||
'entry-responded': eventPrifix + "-entry-responded", | ||
'recording-started': eventPrifix + "-recording-started", | ||
'recording-stopped': eventPrifix + "-recording-stopped", | ||
'chat-message': eventPrifix + "-chat-message", | ||
'meeting-joined': eventPrifix + "-meeting-joined", | ||
'meeting-left': eventPrifix + "-meeting-left" | ||
}; | ||
var eventEmitter = new EventEmitter(); | ||
var MeetingProviderContex = React.createContext(); | ||
@@ -298,2 +316,3 @@ var useMeeting = function useMeeting(_temp) { | ||
var join = function join() { | ||
console.log(js.ZujoSDK); | ||
var meeting = js.ZujoSDK.initMeeting(config); | ||
@@ -300,0 +319,0 @@ setMeeting(meeting); |
import React, { createContext, useEffect, useContext, useState, useRef } from 'react'; | ||
import EventEmitter from 'events'; | ||
import { ZujoSDK } from '@videosdk.live/js'; | ||
var eventPrifix = 'zn-meeting-react-sdk'; | ||
var events = { | ||
'participant-joined': eventPrifix + "-participant-joined", | ||
'participant-left': eventPrifix + "-participant-left", | ||
'speaker-changed': eventPrifix + "-speaker-changed", | ||
'presenter-changed': eventPrifix + "-presenter-changed", | ||
'main-participant-changed': eventPrifix + "-main-participant-changed", | ||
'entry-requested': eventPrifix + "-entry-requested", | ||
'entry-responded': eventPrifix + "-entry-responded", | ||
'recording-started': eventPrifix + "-recording-started", | ||
'recording-stopped': eventPrifix + "-recording-stopped", | ||
'chat-message': eventPrifix + "-chat-message", | ||
'meeting-joined': eventPrifix + "-meeting-joined", | ||
'meeting-left': eventPrifix + "-meeting-left" | ||
}; | ||
var eventEmitter = new EventEmitter(); | ||
var MeetingProviderContex = createContext(); | ||
@@ -294,2 +312,3 @@ var useMeeting = function useMeeting(_temp) { | ||
var join = function join() { | ||
console.log(ZujoSDK); | ||
var meeting = ZujoSDK.initMeeting(config); | ||
@@ -296,0 +315,0 @@ setMeeting(meeting); |
{ | ||
"name": "@videosdk.live/react", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
134651
1091
0