@tellescope/video-chat 0.0.85 → 0.0.88

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.88",
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.88",
37
+ "@tellescope/react-components": "^0.0.88",
38
+ "@tellescope/sdk": "^0.0.88",
39
+ "@tellescope/types-client": "^0.0.88",
40
+ "@tellescope/types-models": "^0.0.88",
41
+ "@tellescope/types-utilities": "^0.0.88",
42
+ "@tellescope/utilities": "^0.0.88",
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": "4b10380596321bae0cacb375daf0d1647a33ba4e",
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  }
package/src/index.ts CHANGED
@@ -3,12 +3,4 @@ export * from "./controls"
3
3
  export {
4
4
  CurrentCallContext,
5
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"
6
+ } from "./video_shared"
@@ -16,7 +16,6 @@ export class RNVideoRenderView extends React.Component<{ tileId: number, style?:
16
16
  setTimeout(() => {
17
17
  NativeFunction.bindVideoView(findNodeHandle(this), this.props.tileId);
18
18
  });
19
- // can try setting a longer timeout
20
19
  }
21
20
 
22
21
  componentWillUnmount() {
@@ -28,6 +27,5 @@ export class RNVideoRenderView extends React.Component<{ tileId: number, style?:
28
27
  }
29
28
  }
30
29
 
31
- // can try ts ignore and using RNVideoView as a second argument to this function
32
30
  // @ts-ignore
33
31
  const RNVideoRenderViewNative = requireNativeComponent('RNVideoView', RNVideoRenderView);
@@ -39,7 +39,7 @@ import {
39
39
  getSDKEventEmitter,
40
40
  MobileSDKEvent,
41
41
  NativeFunction,
42
- } from "./index"
42
+ } from "./index.native"
43
43
 
44
44
  interface TileState {
45
45
  isLocal: boolean,
@@ -178,7 +178,7 @@ export const SelfView = ({ style } : VideoViewProps) => {
178
178
  if (localTileId === null) return null // localTileId may be zero, don't return null on simple falsey check
179
179
 
180
180
  return (
181
- <RNVideoRenderView style={convert_CSS_to_RNStyles(style) ?? styles.video} tileId={localTileId}/>
181
+ <RNVideoRenderView style={convert_CSS_to_RNStyles(style) ?? styles.video} tileId={localTileId} />
182
182
  )
183
183
  }
184
184
 
@@ -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