@tellescope/video-chat 1.44.2 → 1.44.3

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": "1.44.2",
3
+ "version": "1.44.3",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -34,13 +34,13 @@
34
34
  "@fontsource/roboto": "^4.5.1",
35
35
  "@mui/icons-material": "^5.0.1",
36
36
  "@mui/material": "^5.0.2",
37
- "@tellescope/constants": "^1.44.1",
38
- "@tellescope/react-components": "^1.44.2",
39
- "@tellescope/sdk": "^1.44.1",
40
- "@tellescope/types-client": "^1.44.1",
41
- "@tellescope/types-models": "^1.44.1",
37
+ "@tellescope/constants": "^1.44.3",
38
+ "@tellescope/react-components": "^1.44.3",
39
+ "@tellescope/sdk": "^1.44.3",
40
+ "@tellescope/types-client": "^1.44.3",
41
+ "@tellescope/types-models": "^1.44.3",
42
42
  "@tellescope/types-utilities": "^1.38.4",
43
- "@tellescope/utilities": "^1.44.1",
43
+ "@tellescope/utilities": "^1.44.3",
44
44
  "@typescript-eslint/eslint-plugin": "^4.33.0",
45
45
  "@typescript-eslint/parser": "^4.33.0",
46
46
  "amazon-chime-sdk-component-library-react": "^2.15.0",
@@ -55,7 +55,7 @@
55
55
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
56
56
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
57
57
  },
58
- "gitHead": "0cc5577e8e30f6f992296050c88c285f9d9625ea",
58
+ "gitHead": "4fda2d2df011837f0f9f450f9b293d7dfe6a2f5d",
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  }
package/src/controls.tsx CHANGED
@@ -12,10 +12,11 @@ import {
12
12
  Paper,
13
13
  Styled,
14
14
  Button,
15
+ Typography,
15
16
  } from "@tellescope/react-components"
16
17
  import { CurrentCallContext } from "./video_shared"
17
18
  import { useStartVideoCall } from "./video"
18
- import { useJoinVideoCall } from "."
19
+ import { ScreenShareIcon, useJoinVideoCall } from "."
19
20
 
20
21
  const DEFAULT_BUTTON_SIZE = 30
21
22
  interface ButtonProps {
@@ -79,9 +80,10 @@ export const LeaveMeeting = ({ onLeave, size=DEFAULT_BUTTON_SIZE } : LeaveMeetin
79
80
  interface ControlbarProps {
80
81
  spacing?: number,
81
82
  size?: number,
82
- showEndMeeting?: boolean
83
+ showEndMeeting?: boolean,
84
+ showScreenShare?: boolean,
83
85
  }
84
- export const ControlBar = ({ onLeave, style, spacing=15, size, showEndMeeting, } : ControlbarProps & LeaveMeetingProps & Styled) => {
86
+ export const ControlBar = ({ onLeave, style, spacing=15, size, showEndMeeting, showScreenShare, } : ControlbarProps & LeaveMeetingProps & Styled) => {
85
87
  const { isHost } = React.useContext(CurrentCallContext)
86
88
  const itemStyle = { marginLeft: spacing, marginRight: spacing }
87
89
 
@@ -94,6 +96,19 @@ export const ControlBar = ({ onLeave, style, spacing=15, size, showEndMeeting, }
94
96
  borderColor: 'white',
95
97
  }}
96
98
  >
99
+ {showScreenShare &&
100
+ <Flex column justifyContent="center" style={itemStyle}>
101
+ <Flex>
102
+ <ScreenShareIcon />
103
+ </Flex>
104
+
105
+ <Flex>
106
+ <Typography style={{ color: 'white', textAlign: 'center', fontSize: 11 }}>
107
+ Screen share
108
+ </Typography>
109
+ </Flex>
110
+ </Flex>
111
+ }
97
112
  <Flex style={itemStyle}>
98
113
  <VideoToggle size={size}/>
99
114
  </Flex>
@@ -447,4 +447,6 @@ export const VideoCallNative: React.JSXElementConstructor<VideoCallNativeProps>
447
447
  <ControlBar {...props} size={50} spacing={20} style={{ position: 'absolute', bottom: 20, width: '100%' }} />
448
448
  </Flex>
449
449
  )
450
- }
450
+ }
451
+
452
+ export const ScreenShareIcon = () => null
package/src/video.tsx CHANGED
@@ -36,6 +36,7 @@ import {
36
36
  useToggleLocalMute,
37
37
  useMeetingStatus,
38
38
  MeetingStatus,
39
+ ContentShareControl,
39
40
  // useRemoteVideoTileState,
40
41
  // useContentShareControls, // screen sharing
41
42
  } from 'amazon-chime-sdk-component-library-react';
@@ -367,4 +368,8 @@ export { VideoTileGrid }
367
368
  // unimplemented for web
368
369
  export const VideoCallNative: React.JSXElementConstructor<VideoCallNativeProps> = () => (
369
370
  null
370
- )
371
+ )
372
+
373
+ export const ScreenShareIcon = () => (
374
+ <ContentShareControl iconTitle="Screen Share" label="Share Screen" />
375
+ )