@tellescope/video-chat 0.0.83 → 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.83",
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.83",
37
- "@tellescope/react-components": "^0.0.83",
38
- "@tellescope/sdk": "^0.0.83",
39
- "@tellescope/types-client": "^0.0.83",
40
- "@tellescope/types-models": "^0.0.83",
41
- "@tellescope/types-utilities": "^0.0.83",
42
- "@tellescope/utilities": "^0.0.83",
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": "dcd7caa7dd899e0eaab8cc5b1e85cf65ffaebe76",
57
+ "gitHead": "018463e2097028e656cb0c38ed8322ec48a17e86",
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  }
@@ -1,2 +1,14 @@
1
- export * from "./video"
2
- export * from "./controls"
1
+ export * from "./video"
2
+ export * from "./controls"
3
+ export {
4
+ CurrentCallContext,
5
+ useCurrentCallContext,
6
+ } from "./video_shared"
7
+ export {
8
+ RNVideoRenderView,
9
+ } from "./native/RNVideoRenderView"
10
+ export {
11
+ MobileSDKEvent,
12
+ NativeFunction,
13
+ getSDKEventEmitter,
14
+ } from "./native/bridge"
package/src/index.ts CHANGED
@@ -1,5 +1,14 @@
1
1
  export * from "./video"
2
2
  export * from "./controls"
3
+ export {
4
+ CurrentCallContext,
5
+ useCurrentCallContext,
6
+ } from "./video_shared"
3
7
  export {
4
8
  RNVideoRenderView,
5
- } from "./native/RNVideoRenderView"
9
+ } from "./native/RNVideoRenderView"
10
+ export {
11
+ MobileSDKEvent,
12
+ NativeFunction,
13
+ getSDKEventEmitter,
14
+ } from "./native/bridge"
@@ -27,22 +27,19 @@ import {
27
27
  } from "@tellescope/react-components/lib/esm/mui.native"
28
28
 
29
29
  import {
30
- CurrentCallContext,
31
30
  JoinVideoCallReturnType,
32
31
  StartVideoCallReturnType,
33
32
  VideoProps,
34
33
  AttendeeDisplayInfo,
35
34
  VideoViewProps,
36
35
  } from "./video_shared"
37
-
38
36
  import {
37
+ CurrentCallContext,
38
+ RNVideoRenderView,
39
39
  getSDKEventEmitter,
40
40
  MobileSDKEvent,
41
41
  NativeFunction,
42
- } from "./native/bridge"
43
- import { RNVideoRenderView } from "./native/RNVideoRenderView"
44
-
45
- export { CurrentCallContext }
42
+ } from "./index"
46
43
 
47
44
  interface TileState {
48
45
  isLocal: boolean,
@@ -196,7 +193,7 @@ export const useStartVideoCall = (): StartVideoCallReturnType => {
196
193
  setStarting(true)
197
194
  try {
198
195
  const { id, meeting, host } = await session.api.meetings.start_meeting({ attendees: initialAttendees })
199
- NativeFunction.startMeeting(meeting.Meeting, host.info.Attendee)
196
+ NativeFunction.startMeeting(meeting.Meeting, host.info)
200
197
 
201
198
  setMeeting(meeting.Meeting)
202
199
  setIsHost(true)
@@ -248,11 +245,11 @@ export const useJoinVideoCall = (): JoinVideoCallReturnType => {
248
245
  const meetings = await session.api.meetings.my_meetings()
249
246
  const meeting = meetings.find(m => m.id === meetingInfo)
250
247
  meetingInfo = meeting?.meetingInfo as { Meeting: MeetingInfo }
251
- 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}
252
249
  }
253
250
  if (!meetingInfo || typeof meetingInfo === 'string' || !attendeeInfo) return
254
251
 
255
- NativeFunction.startMeeting(meetingInfo.Meeting ?? meetingInfo, attendeeInfo.Attendee ?? attendeeInfo)
252
+ NativeFunction.startMeeting(meetingInfo.Meeting ?? meetingInfo, attendeeInfo)
256
253
  }
257
254
 
258
255
  const leaveMeeting = () => setMeeting(undefined)
package/src/video.tsx CHANGED
@@ -38,10 +38,10 @@ import {
38
38
  // useRemoteVideoTileState,
39
39
  // useContentShareControls, // screen sharing
40
40
  } from 'amazon-chime-sdk-component-library-react';
41
-
42
41
  import {
43
42
  CurrentCallContext,
44
-
43
+ } from "./index"
44
+ import {
45
45
  AttendeeDisplayInfo,
46
46
  VideoProps,
47
47
  VideoViewProps,
@@ -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