@tellescope/video-chat 0.0.85 → 0.0.86

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/video-chat",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -33,13 +33,13 @@
33
33
  "@fontsource/roboto": "^4.5.1",
34
34
  "@mui/icons-material": "^5.0.1",
35
35
  "@mui/material": "^5.0.2",
36
- "@tellescope/constants": "^0.0.85",
37
- "@tellescope/react-components": "^0.0.85",
38
- "@tellescope/sdk": "^0.0.85",
39
- "@tellescope/types-client": "^0.0.85",
40
- "@tellescope/types-models": "^0.0.85",
41
- "@tellescope/types-utilities": "^0.0.85",
42
- "@tellescope/utilities": "^0.0.85",
36
+ "@tellescope/constants": "^0.0.86",
37
+ "@tellescope/react-components": "^0.0.86",
38
+ "@tellescope/sdk": "^0.0.86",
39
+ "@tellescope/types-client": "^0.0.86",
40
+ "@tellescope/types-models": "^0.0.86",
41
+ "@tellescope/types-utilities": "^0.0.86",
42
+ "@tellescope/utilities": "^0.0.86",
43
43
  "@typescript-eslint/eslint-plugin": "^4.33.0",
44
44
  "@typescript-eslint/parser": "^4.33.0",
45
45
  "amazon-chime-sdk-component-library-react": "^2.12.0",
@@ -54,7 +54,7 @@
54
54
  "react": "^17.0.2",
55
55
  "react-dom": "^17.0.2"
56
56
  },
57
- "gitHead": "47925dd3a6948c55f0ac0468b15e72e30a590841",
57
+ "gitHead": "018463e2097028e656cb0c38ed8322ec48a17e86",
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  }
@@ -193,7 +193,7 @@ export const useStartVideoCall = (): StartVideoCallReturnType => {
193
193
  setStarting(true)
194
194
  try {
195
195
  const { id, meeting, host } = await session.api.meetings.start_meeting({ attendees: initialAttendees })
196
- NativeFunction.startMeeting(meeting.Meeting, host.info.Attendee)
196
+ NativeFunction.startMeeting(meeting.Meeting, host.info)
197
197
 
198
198
  setMeeting(meeting.Meeting)
199
199
  setIsHost(true)
@@ -245,11 +245,11 @@ export const useJoinVideoCall = (): JoinVideoCallReturnType => {
245
245
  const meetings = await session.api.meetings.my_meetings()
246
246
  const meeting = meetings.find(m => m.id === meetingInfo)
247
247
  meetingInfo = meeting?.meetingInfo as { Meeting: MeetingInfo }
248
- attendeeInfo = meeting?.attendees.find?.(a => a.id === session.userInfo.id)?.info as { Attendee: AttendeeInfo }
248
+ attendeeInfo = { Attendee: meeting?.attendees.find?.(a => a.id === session.userInfo.id)?.info as AttendeeInfo}
249
249
  }
250
250
  if (!meetingInfo || typeof meetingInfo === 'string' || !attendeeInfo) return
251
251
 
252
- NativeFunction.startMeeting(meetingInfo.Meeting ?? meetingInfo, attendeeInfo.Attendee ?? attendeeInfo)
252
+ NativeFunction.startMeeting(meetingInfo.Meeting ?? meetingInfo, attendeeInfo)
253
253
  }
254
254
 
255
255
  const leaveMeeting = () => setMeeting(undefined)
package/src/video.tsx CHANGED
@@ -155,7 +155,7 @@ export const useJoinVideoCall = (props?: JoinVideoCallProps): JoinVideoCallRetur
155
155
  const meetings = await session.api.meetings.my_meetings()
156
156
  const meeting = meetings.find(m => m.id === meetingInfo)
157
157
  meetingInfo = meeting?.meetingInfo as { Meeting: MeetingInfo }
158
- attendeeInfo = meeting?.attendees.find?.(a => a.id === session.userInfo.id)?.info as { Attendee: AttendeeInfo }
158
+ attendeeInfo = { Attendee: meeting?.attendees.find?.(a => a.id === session.userInfo.id)?.info as AttendeeInfo}
159
159
  }
160
160
  if (!meetingInfo || typeof meetingInfo === 'string' || !attendeeInfo) return
161
161