@huddle01/react
Advanced tools
Comparing version 0.0.13 to 0.0.14-beta.0
@@ -13,2 +13,8 @@ import { MediaStream as _MediaStream } from 'react-native-webrtc'; | ||
'lobby:failed': [Error]; | ||
'lobby:metadata': [{ | ||
peers: { | ||
avatarUrl: string; | ||
displayName: string; | ||
}[]; | ||
}]; | ||
'room:joined': [Map<string, _IPeer>]; | ||
@@ -60,2 +66,8 @@ 'room:failed': [any]; | ||
'lobby:failed': [Error]; | ||
'lobby:metadata': [{ | ||
peers: { | ||
avatarUrl: string; | ||
displayName: string; | ||
}[]; | ||
}]; | ||
'room:joined': [Map<string, _IPeer>]; | ||
@@ -62,0 +74,0 @@ 'room:failed': [any]; |
@@ -0,1 +1,5 @@ | ||
export type TRoomMetaPeer = { | ||
avatarUrl: string; | ||
displayName: string; | ||
}; | ||
declare const useLobby: () => { | ||
@@ -13,4 +17,5 @@ isLoading: boolean; | ||
error: Error | null; | ||
previewPeers: TRoomMetaPeer[]; | ||
}; | ||
export default useLobby; | ||
//# sourceMappingURL=useLobby.d.ts.map |
@@ -395,2 +395,6 @@ 'use strict'; | ||
setError = _useState4[1]; | ||
var _useState5 = React.useState([]), | ||
_useState6 = objectWithoutProperties._slicedToArray(_useState5, 2), | ||
previewPeers = _useState6[0], | ||
setPreviewPeers = _useState6[1]; | ||
@@ -440,2 +444,6 @@ // funcs | ||
}); | ||
webCore.huddleClient.on('lobby:metadata', function (_ref2) { | ||
var peers = _ref2.peers; | ||
setPreviewPeers(peers); | ||
}); | ||
}, []); | ||
@@ -447,3 +455,4 @@ return { | ||
leaveLobby: leaveLobby, | ||
error: error | ||
error: error, | ||
previewPeers: previewPeers | ||
}; | ||
@@ -450,0 +459,0 @@ }; |
@@ -395,2 +395,6 @@ 'use strict'; | ||
setError = _useState4[1]; | ||
var _useState5 = React.useState([]), | ||
_useState6 = objectWithoutProperties._slicedToArray(_useState5, 2), | ||
previewPeers = _useState6[0], | ||
setPreviewPeers = _useState6[1]; | ||
@@ -440,2 +444,6 @@ // funcs | ||
}); | ||
webCore.huddleClient.on('lobby:metadata', function (_ref2) { | ||
var peers = _ref2.peers; | ||
setPreviewPeers(peers); | ||
}); | ||
}, []); | ||
@@ -447,3 +455,4 @@ return { | ||
leaveLobby: leaveLobby, | ||
error: error | ||
error: error, | ||
previewPeers: previewPeers | ||
}; | ||
@@ -450,0 +459,0 @@ }; |
@@ -393,2 +393,6 @@ import { b as useHuddle01AtomValue, _ as _objectSpread2, c as _defineProperty, u as useHuddle01Atom, d as _toPropertyKey, a as useMeAtom, i as initialHuddle01State, e as initialMeState } from '../../dist/me.atom-255e381d.esm.js'; | ||
setError = _useState4[1]; | ||
var _useState5 = useState([]), | ||
_useState6 = _slicedToArray(_useState5, 2), | ||
previewPeers = _useState6[0], | ||
setPreviewPeers = _useState6[1]; | ||
@@ -438,2 +442,6 @@ // funcs | ||
}); | ||
huddleClient.on('lobby:metadata', function (_ref2) { | ||
var peers = _ref2.peers; | ||
setPreviewPeers(peers); | ||
}); | ||
}, []); | ||
@@ -445,3 +453,4 @@ return { | ||
leaveLobby: leaveLobby, | ||
error: error | ||
error: error, | ||
previewPeers: previewPeers | ||
}; | ||
@@ -448,0 +457,0 @@ }; |
{ | ||
"name": "@huddle01/react", | ||
"version": "0.0.13", | ||
"version": "0.0.14-beta.0", | ||
"description": "The Huddle01 React SDK offers a comprehensive suite of hooks, methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.", | ||
@@ -40,3 +40,3 @@ "main": "dist/huddle01-react.cjs.js", | ||
"dependencies": { | ||
"@huddle01/web-core": "0.0.15", | ||
"@huddle01/web-core": "0.0.16-beta.0", | ||
"jotai": "^2.0.3", | ||
@@ -43,0 +43,0 @@ "react": "18.2.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
219564
5672
+ Added@huddle01/web-core@0.0.16-beta.0(transitive)
- Removed@huddle01/web-core@0.0.15(transitive)