@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/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +8 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/index.native.d.ts +3 -0
- package/lib/cjs/index.native.d.ts.map +1 -1
- package/lib/cjs/index.native.js +10 -0
- package/lib/cjs/index.native.js.map +1 -1
- package/lib/cjs/video.d.ts.map +1 -1
- package/lib/cjs/video.js +6 -6
- package/lib/cjs/video.js.map +1 -1
- package/lib/cjs/video.native.d.ts +1 -2
- package/lib/cjs/video.native.d.ts.map +1 -1
- package/lib/cjs/video.native.js +32 -35
- package/lib/cjs/video.native.js.map +1 -1
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/index.native.d.ts +3 -0
- package/lib/esm/index.native.d.ts.map +1 -1
- package/lib/esm/index.native.js +3 -0
- package/lib/esm/index.native.js.map +1 -1
- package/lib/esm/video.d.ts.map +1 -1
- package/lib/esm/video.js +2 -2
- package/lib/esm/video.js.map +1 -1
- package/lib/esm/video.native.d.ts +1 -2
- package/lib/esm/video.native.d.ts.map +1 -1
- package/lib/esm/video.native.js +9 -12
- package/lib/esm/video.native.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/index.native.ts +14 -2
- package/src/index.ts +10 -1
- package/src/video.native.tsx +6 -9
- package/src/video.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/video-chat",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
37
|
-
"@tellescope/react-components": "^0.0.
|
|
38
|
-
"@tellescope/sdk": "^0.0.
|
|
39
|
-
"@tellescope/types-client": "^0.0.
|
|
40
|
-
"@tellescope/types-models": "^0.0.
|
|
41
|
-
"@tellescope/types-utilities": "^0.0.
|
|
42
|
-
"@tellescope/utilities": "^0.0.
|
|
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": "
|
|
57
|
+
"gitHead": "018463e2097028e656cb0c38ed8322ec48a17e86",
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
}
|
package/src/index.native.ts
CHANGED
|
@@ -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"
|
package/src/video.native.tsx
CHANGED
|
@@ -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 "./
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|