@100mslive/react-native-room-kit 0.0.1
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/LICENSE +20 -0
- package/README.md +25 -0
- package/lib/commonjs/HMSContainer.js +20 -0
- package/lib/commonjs/HMSContainer.js.map +1 -0
- package/lib/commonjs/HMSInstanceSetup.js +160 -0
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -0
- package/lib/commonjs/HMSPrebuilt.js +32 -0
- package/lib/commonjs/HMSPrebuilt.js.map +1 -0
- package/lib/commonjs/HMSRoomSetup.js +216 -0
- package/lib/commonjs/HMSRoomSetup.js.map +1 -0
- package/lib/commonjs/Icons/100ms/assets/hms-logo.png +0 -0
- package/lib/commonjs/Icons/100ms/assets/hms-logo@2x.png +0 -0
- package/lib/commonjs/Icons/100ms/assets/hms-logo@3x.png +0 -0
- package/lib/commonjs/Icons/100ms/index.js +30 -0
- package/lib/commonjs/Icons/100ms/index.js.map +1 -0
- package/lib/commonjs/Icons/Alert/assets/alert.png +0 -0
- package/lib/commonjs/Icons/Alert/assets/alert@2x.png +0 -0
- package/lib/commonjs/Icons/Alert/assets/alert@3x.png +0 -0
- package/lib/commonjs/Icons/Alert/index.js +30 -0
- package/lib/commonjs/Icons/Alert/index.js.map +1 -0
- package/lib/commonjs/Icons/Camera/assets/camera-muted.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-muted@2x.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-muted@3x.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-unmuted.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-unmuted@2x.png +0 -0
- package/lib/commonjs/Icons/Camera/assets/camera-unmuted@3x.png +0 -0
- package/lib/commonjs/Icons/Camera/index.js +31 -0
- package/lib/commonjs/Icons/Camera/index.js.map +1 -0
- package/lib/commonjs/Icons/Chat/assets/chat.png +0 -0
- package/lib/commonjs/Icons/Chat/assets/chat@2x.png +0 -0
- package/lib/commonjs/Icons/Chat/assets/chat@3x.png +0 -0
- package/lib/commonjs/Icons/Chat/index.js +30 -0
- package/lib/commonjs/Icons/Chat/index.js.map +1 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-down.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-down@2x.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-down@3x.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-left.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-left@2x.png +0 -0
- package/lib/commonjs/Icons/Chevron/assets/chevron-left@3x.png +0 -0
- package/lib/commonjs/Icons/Chevron/index.js +31 -0
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -0
- package/lib/commonjs/Icons/Clock/assets/clock.png +0 -0
- package/lib/commonjs/Icons/Clock/assets/clock@2x.png +0 -0
- package/lib/commonjs/Icons/Clock/assets/clock@3x.png +0 -0
- package/lib/commonjs/Icons/Clock/index.js +30 -0
- package/lib/commonjs/Icons/Clock/index.js.map +1 -0
- package/lib/commonjs/Icons/Close/assets/close.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close@2x.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close@3x.png +0 -0
- package/lib/commonjs/Icons/Close/index.js +30 -0
- package/lib/commonjs/Icons/Close/index.js.map +1 -0
- package/lib/commonjs/Icons/End/assets/end.png +0 -0
- package/lib/commonjs/Icons/End/assets/end@2x.png +0 -0
- package/lib/commonjs/Icons/End/assets/end@3x.png +0 -0
- package/lib/commonjs/Icons/End/index.js +30 -0
- package/lib/commonjs/Icons/End/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/assets/hand.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand@2x.png +0 -0
- package/lib/commonjs/Icons/Hand/assets/hand@3x.png +0 -0
- package/lib/commonjs/Icons/Hand/index.js +32 -0
- package/lib/commonjs/Icons/Hand/index.js.map +1 -0
- package/lib/commonjs/Icons/Leave/assets/leave.png +0 -0
- package/lib/commonjs/Icons/Leave/assets/leave@2x.png +0 -0
- package/lib/commonjs/Icons/Leave/assets/leave@3x.png +0 -0
- package/lib/commonjs/Icons/Leave/index.js +30 -0
- package/lib/commonjs/Icons/Leave/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/assets/mic-muted.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-muted@2x.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-muted@3x.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-unmuted.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-unmuted@2x.png +0 -0
- package/lib/commonjs/Icons/Mic/assets/mic-unmuted@3x.png +0 -0
- package/lib/commonjs/Icons/Mic/index.js +31 -0
- package/lib/commonjs/Icons/Mic/index.js.map +1 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_0.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_0@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_0@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_1.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_1@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_1@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_2.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_2@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_2@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_3.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_3@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_3@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_4.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_4@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_4@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_5.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_5@2x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/assets/network_5@3x.png +0 -0
- package/lib/commonjs/Icons/NetworkQuality/index.js +31 -0
- package/lib/commonjs/Icons/NetworkQuality/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/assets/participants.png +0 -0
- package/lib/commonjs/Icons/Participants/assets/participants@2x.png +0 -0
- package/lib/commonjs/Icons/Participants/assets/participants@3x.png +0 -0
- package/lib/commonjs/Icons/Participants/index.js +30 -0
- package/lib/commonjs/Icons/Participants/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/assets/rotate-camera.png +0 -0
- package/lib/commonjs/Icons/RotateCamera/assets/rotate-camera@2x.png +0 -0
- package/lib/commonjs/Icons/RotateCamera/assets/rotate-camera@3x.png +0 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +30 -0
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -0
- package/lib/commonjs/Icons/ScreenShare/assets/screen-share.png +0 -0
- package/lib/commonjs/Icons/ScreenShare/assets/screen-share@2x.png +0 -0
- package/lib/commonjs/Icons/ScreenShare/assets/screen-share@3x.png +0 -0
- package/lib/commonjs/Icons/ScreenShare/index.js +30 -0
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -0
- package/lib/commonjs/Icons/Send/assets/send.png +0 -0
- package/lib/commonjs/Icons/Send/assets/send@2x.png +0 -0
- package/lib/commonjs/Icons/Send/assets/send@3x.png +0 -0
- package/lib/commonjs/Icons/Send/index.js +30 -0
- package/lib/commonjs/Icons/Send/index.js.map +1 -0
- package/lib/commonjs/Icons/Settings/assets/settings.png +0 -0
- package/lib/commonjs/Icons/Settings/assets/settings@2x.png +0 -0
- package/lib/commonjs/Icons/Settings/assets/settings@3x.png +0 -0
- package/lib/commonjs/Icons/Settings/index.js +30 -0
- package/lib/commonjs/Icons/Settings/index.js.map +1 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-muted.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-muted@2x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker-muted@3x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker@2x.png +0 -0
- package/lib/commonjs/Icons/Speaker/assets/speaker@3x.png +0 -0
- package/lib/commonjs/Icons/Speaker/index.js +31 -0
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/assets/three-dots-vertical.png +0 -0
- package/lib/commonjs/Icons/ThreeDots/assets/three-dots-vertical@2x.png +0 -0
- package/lib/commonjs/Icons/ThreeDots/assets/three-dots-vertical@3x.png +0 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +31 -0
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -0
- package/lib/commonjs/Icons/index.js +215 -0
- package/lib/commonjs/Icons/index.js.map +1 -0
- package/lib/commonjs/assets/100ms-logo.png +0 -0
- package/lib/commonjs/assets/brb.png +0 -0
- package/lib/commonjs/assets/icon.png +0 -0
- package/lib/commonjs/assets/illustration.png +0 -0
- package/lib/commonjs/assets/network_0.png +0 -0
- package/lib/commonjs/assets/network_1.png +0 -0
- package/lib/commonjs/assets/network_2.png +0 -0
- package/lib/commonjs/assets/network_3.png +0 -0
- package/lib/commonjs/assets/network_4.png +0 -0
- package/lib/commonjs/assets/user_music.png +0 -0
- package/lib/commonjs/components/AvatarView.js +48 -0
- package/lib/commonjs/components/AvatarView.js.map +1 -0
- package/lib/commonjs/components/BackButton.js +42 -0
- package/lib/commonjs/components/BackButton.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatBanner.js +77 -0
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatList.js +51 -0
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -0
- package/lib/commonjs/components/Chat/ChatMessage.js +175 -0
- package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -0
- package/lib/commonjs/components/Chat/PinnedMessage.js +85 -0
- package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -0
- package/lib/commonjs/components/Chat/index.js +50 -0
- package/lib/commonjs/components/Chat/index.js.map +1 -0
- package/lib/commonjs/components/ChatWindow.js +608 -0
- package/lib/commonjs/components/ChatWindow.js.map +1 -0
- package/lib/commonjs/components/CustomButton.js +53 -0
- package/lib/commonjs/components/CustomButton.js.map +1 -0
- package/lib/commonjs/components/CustomHLSPlayerControls.js +81 -0
- package/lib/commonjs/components/CustomHLSPlayerControls.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +90 -0
- package/lib/commonjs/components/CustomInput.js.map +1 -0
- package/lib/commonjs/components/DefaultModal.js +104 -0
- package/lib/commonjs/components/DefaultModal.js.map +1 -0
- package/lib/commonjs/components/DisplayTrack.js +70 -0
- package/lib/commonjs/components/DisplayTrack.js.map +1 -0
- package/lib/commonjs/components/DisplayView.js +213 -0
- package/lib/commonjs/components/DisplayView.js.map +1 -0
- package/lib/commonjs/components/Footer.js +86 -0
- package/lib/commonjs/components/Footer.js.map +1 -0
- package/lib/commonjs/components/FullScreenIndicator.js +25 -0
- package/lib/commonjs/components/FullScreenIndicator.js.map +1 -0
- package/lib/commonjs/components/GridView.js +98 -0
- package/lib/commonjs/components/GridView.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerEmoticons.js +48 -0
- package/lib/commonjs/components/HLSPlayerEmoticons.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerStatsView.js +64 -0
- package/lib/commonjs/components/HLSPlayerStatsView.js.map +1 -0
- package/lib/commonjs/components/HLSView.js +141 -0
- package/lib/commonjs/components/HLSView.js.map +1 -0
- package/lib/commonjs/components/HMSChat.js +31 -0
- package/lib/commonjs/components/HMSChat.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +59 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js +42 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -0
- package/lib/commonjs/components/HMSManageLeave.js +286 -0
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -0
- package/lib/commonjs/components/HMSManageLocalAudio.js +46 -0
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -0
- package/lib/commonjs/components/HMSManageLocalVideo.js +46 -0
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -0
- package/lib/commonjs/components/HMSManageRaiseHand.js +48 -0
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewDeviceSettings.js +305 -0
- package/lib/commonjs/components/HMSPreviewDeviceSettings.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewEditName.js +63 -0
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js +56 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js +89 -0
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewSubtitle.js +32 -0
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewTile.js +138 -0
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -0
- package/lib/commonjs/components/HMSPreviewTitle.js +32 -0
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +105 -0
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -0
- package/lib/commonjs/components/HMSShareScreen.js +59 -0
- package/lib/commonjs/components/HMSShareScreen.js.map +1 -0
- package/lib/commonjs/components/HMSShowNetworkQuality.js +57 -0
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -0
- package/lib/commonjs/components/Header.js +177 -0
- package/lib/commonjs/components/Header.js.map +1 -0
- package/lib/commonjs/components/LiveButton.js +70 -0
- package/lib/commonjs/components/LiveButton.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +64 -0
- package/lib/commonjs/components/Meeting.js.map +1 -0
- package/lib/commonjs/components/MeetingScreenContent.js +98 -0
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -0
- package/lib/commonjs/components/MenuModal/Menu.js +250 -0
- package/lib/commonjs/components/MenuModal/Menu.js.map +1 -0
- package/lib/commonjs/components/MenuModal/MenuDivider.js +27 -0
- package/lib/commonjs/components/MenuModal/MenuDivider.js.map +1 -0
- package/lib/commonjs/components/MenuModal/MenuItem.js +60 -0
- package/lib/commonjs/components/MenuModal/MenuItem.js.map +1 -0
- package/lib/commonjs/components/MenuModal/index.js +27 -0
- package/lib/commonjs/components/MenuModal/index.js.map +1 -0
- package/lib/commonjs/components/Modals.js +1640 -0
- package/lib/commonjs/components/Modals.js.map +1 -0
- package/lib/commonjs/components/PIPView.js +33 -0
- package/lib/commonjs/components/PIPView.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsFilter.js +128 -0
- package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsHeader.js +67 -0
- package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js +274 -0
- package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +55 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -0
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js +27 -0
- package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +1 -0
- package/lib/commonjs/components/Participants/index.js +61 -0
- package/lib/commonjs/components/Participants/index.js.map +1 -0
- package/lib/commonjs/components/ParticipantsModal.js +43 -0
- package/lib/commonjs/components/ParticipantsModal.js.map +1 -0
- package/lib/commonjs/components/PeerDisplayView.js +79 -0
- package/lib/commonjs/components/PeerDisplayView.js.map +1 -0
- package/lib/commonjs/components/PeerRTCStatsContainer.js +70 -0
- package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -0
- package/lib/commonjs/components/PeerRTCStatsView.js +54 -0
- package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +241 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -0
- package/lib/commonjs/components/Picker.js +93 -0
- package/lib/commonjs/components/Picker.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +46 -0
- package/lib/commonjs/components/PressableIcon.js.map +1 -0
- package/lib/commonjs/components/Preview.js +86 -0
- package/lib/commonjs/components/Preview.js.map +1 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js +515 -0
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -0
- package/lib/commonjs/components/StatusBar.js +26 -0
- package/lib/commonjs/components/StatusBar.js.map +1 -0
- package/lib/commonjs/components/StreamingQualityModalContent.js +215 -0
- package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -0
- package/lib/commonjs/components/SwitchRow.js +49 -0
- package/lib/commonjs/components/SwitchRow.js.map +1 -0
- package/lib/commonjs/components/Tile.js +111 -0
- package/lib/commonjs/components/Tile.js.map +1 -0
- package/lib/commonjs/components/TilesContainer.js +38 -0
- package/lib/commonjs/components/TilesContainer.js.map +1 -0
- package/lib/commonjs/components/ZoomableView.js +84 -0
- package/lib/commonjs/components/ZoomableView.js.map +1 -0
- package/lib/commonjs/components/index.js +94 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/styles.js +965 -0
- package/lib/commonjs/components/styles.js.map +1 -0
- package/lib/commonjs/hooks/useHmsInstance.js +175 -0
- package/lib/commonjs/hooks/useHmsInstance.js.map +1 -0
- package/lib/commonjs/hooks-sdk-selectors.js +17 -0
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -0
- package/lib/commonjs/hooks-sdk.js +126 -0
- package/lib/commonjs/hooks-sdk.js.map +1 -0
- package/lib/commonjs/hooks-util-selectors.js +12 -0
- package/lib/commonjs/hooks-util-selectors.js.map +1 -0
- package/lib/commonjs/hooks-util.js +792 -0
- package/lib/commonjs/hooks-util.js.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +65 -0
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -0
- package/lib/commonjs/redux/actionTypes.js +75 -0
- package/lib/commonjs/redux/actionTypes.js.map +1 -0
- package/lib/commonjs/redux/actions/index.js +182 -0
- package/lib/commonjs/redux/actions/index.js.map +1 -0
- package/lib/commonjs/redux/index.js +12 -0
- package/lib/commonjs/redux/index.js.map +1 -0
- package/lib/commonjs/redux/reducers/appState.js +131 -0
- package/lib/commonjs/redux/reducers/appState.js.map +1 -0
- package/lib/commonjs/redux/reducers/chatWindow.js +45 -0
- package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -0
- package/lib/commonjs/redux/reducers/hmsStates.js +67 -0
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -0
- package/lib/commonjs/redux/reducers/index.js +22 -0
- package/lib/commonjs/redux/reducers/index.js.map +1 -0
- package/lib/commonjs/redux/reducers/message.js +43 -0
- package/lib/commonjs/redux/reducers/message.js.map +1 -0
- package/lib/commonjs/redux/reducers/userState.js +67 -0
- package/lib/commonjs/redux/reducers/userState.js.map +1 -0
- package/lib/commonjs/types.js +16 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/utils/dimension.js +64 -0
- package/lib/commonjs/utils/dimension.js.map +1 -0
- package/lib/commonjs/utils/functions.js +368 -0
- package/lib/commonjs/utils/functions.js.map +1 -0
- package/lib/commonjs/utils/getRoomLinkDetails.js +23 -0
- package/lib/commonjs/utils/getRoomLinkDetails.js.map +1 -0
- package/lib/commonjs/utils/hooks.js +46 -0
- package/lib/commonjs/utils/hooks.js.map +1 -0
- package/lib/commonjs/utils/theme.js +144 -0
- package/lib/commonjs/utils/theme.js.map +1 -0
- package/lib/commonjs/utils/types.js +104 -0
- package/lib/commonjs/utils/types.js.map +1 -0
- package/lib/commonjs/utils.js +30 -0
- package/lib/commonjs/utils.js.map +1 -0
- package/lib/module/HMSContainer.js +12 -0
- package/lib/module/HMSContainer.js.map +1 -0
- package/lib/module/HMSInstanceSetup.js +151 -0
- package/lib/module/HMSInstanceSetup.js.map +1 -0
- package/lib/module/HMSPrebuilt.js +22 -0
- package/lib/module/HMSPrebuilt.js.map +1 -0
- package/lib/module/HMSRoomSetup.js +206 -0
- package/lib/module/HMSRoomSetup.js.map +1 -0
- package/lib/module/Icons/100ms/assets/hms-logo.png +0 -0
- package/lib/module/Icons/100ms/assets/hms-logo@2x.png +0 -0
- package/lib/module/Icons/100ms/assets/hms-logo@3x.png +0 -0
- package/lib/module/Icons/100ms/index.js +22 -0
- package/lib/module/Icons/100ms/index.js.map +1 -0
- package/lib/module/Icons/Alert/assets/alert.png +0 -0
- package/lib/module/Icons/Alert/assets/alert@2x.png +0 -0
- package/lib/module/Icons/Alert/assets/alert@3x.png +0 -0
- package/lib/module/Icons/Alert/index.js +22 -0
- package/lib/module/Icons/Alert/index.js.map +1 -0
- package/lib/module/Icons/Camera/assets/camera-muted.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-muted@2x.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-muted@3x.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-unmuted.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-unmuted@2x.png +0 -0
- package/lib/module/Icons/Camera/assets/camera-unmuted@3x.png +0 -0
- package/lib/module/Icons/Camera/index.js +23 -0
- package/lib/module/Icons/Camera/index.js.map +1 -0
- package/lib/module/Icons/Chat/assets/chat.png +0 -0
- package/lib/module/Icons/Chat/assets/chat@2x.png +0 -0
- package/lib/module/Icons/Chat/assets/chat@3x.png +0 -0
- package/lib/module/Icons/Chat/index.js +22 -0
- package/lib/module/Icons/Chat/index.js.map +1 -0
- package/lib/module/Icons/Chevron/assets/chevron-down.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-down@2x.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-down@3x.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-left.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-left@2x.png +0 -0
- package/lib/module/Icons/Chevron/assets/chevron-left@3x.png +0 -0
- package/lib/module/Icons/Chevron/index.js +23 -0
- package/lib/module/Icons/Chevron/index.js.map +1 -0
- package/lib/module/Icons/Clock/assets/clock.png +0 -0
- package/lib/module/Icons/Clock/assets/clock@2x.png +0 -0
- package/lib/module/Icons/Clock/assets/clock@3x.png +0 -0
- package/lib/module/Icons/Clock/index.js +22 -0
- package/lib/module/Icons/Clock/index.js.map +1 -0
- package/lib/module/Icons/Close/assets/close.png +0 -0
- package/lib/module/Icons/Close/assets/close@2x.png +0 -0
- package/lib/module/Icons/Close/assets/close@3x.png +0 -0
- package/lib/module/Icons/Close/index.js +22 -0
- package/lib/module/Icons/Close/index.js.map +1 -0
- package/lib/module/Icons/End/assets/end.png +0 -0
- package/lib/module/Icons/End/assets/end@2x.png +0 -0
- package/lib/module/Icons/End/assets/end@3x.png +0 -0
- package/lib/module/Icons/End/index.js +22 -0
- package/lib/module/Icons/End/index.js.map +1 -0
- package/lib/module/Icons/Hand/assets/hand.png +0 -0
- package/lib/module/Icons/Hand/assets/hand@2x.png +0 -0
- package/lib/module/Icons/Hand/assets/hand@3x.png +0 -0
- package/lib/module/Icons/Hand/index.js +24 -0
- package/lib/module/Icons/Hand/index.js.map +1 -0
- package/lib/module/Icons/Leave/assets/leave.png +0 -0
- package/lib/module/Icons/Leave/assets/leave@2x.png +0 -0
- package/lib/module/Icons/Leave/assets/leave@3x.png +0 -0
- package/lib/module/Icons/Leave/index.js +22 -0
- package/lib/module/Icons/Leave/index.js.map +1 -0
- package/lib/module/Icons/Mic/assets/mic-muted.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-muted@2x.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-muted@3x.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-unmuted.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-unmuted@2x.png +0 -0
- package/lib/module/Icons/Mic/assets/mic-unmuted@3x.png +0 -0
- package/lib/module/Icons/Mic/index.js +23 -0
- package/lib/module/Icons/Mic/index.js.map +1 -0
- package/lib/module/Icons/NetworkQuality/assets/network_0.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_0@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_0@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_1.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_1@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_1@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_2.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_2@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_2@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_3.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_3@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_3@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_4.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_4@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_4@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_5.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_5@2x.png +0 -0
- package/lib/module/Icons/NetworkQuality/assets/network_5@3x.png +0 -0
- package/lib/module/Icons/NetworkQuality/index.js +23 -0
- package/lib/module/Icons/NetworkQuality/index.js.map +1 -0
- package/lib/module/Icons/Participants/assets/participants.png +0 -0
- package/lib/module/Icons/Participants/assets/participants@2x.png +0 -0
- package/lib/module/Icons/Participants/assets/participants@3x.png +0 -0
- package/lib/module/Icons/Participants/index.js +22 -0
- package/lib/module/Icons/Participants/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/assets/rotate-camera.png +0 -0
- package/lib/module/Icons/RotateCamera/assets/rotate-camera@2x.png +0 -0
- package/lib/module/Icons/RotateCamera/assets/rotate-camera@3x.png +0 -0
- package/lib/module/Icons/RotateCamera/index.js +22 -0
- package/lib/module/Icons/RotateCamera/index.js.map +1 -0
- package/lib/module/Icons/ScreenShare/assets/screen-share.png +0 -0
- package/lib/module/Icons/ScreenShare/assets/screen-share@2x.png +0 -0
- package/lib/module/Icons/ScreenShare/assets/screen-share@3x.png +0 -0
- package/lib/module/Icons/ScreenShare/index.js +22 -0
- package/lib/module/Icons/ScreenShare/index.js.map +1 -0
- package/lib/module/Icons/Send/assets/send.png +0 -0
- package/lib/module/Icons/Send/assets/send@2x.png +0 -0
- package/lib/module/Icons/Send/assets/send@3x.png +0 -0
- package/lib/module/Icons/Send/index.js +22 -0
- package/lib/module/Icons/Send/index.js.map +1 -0
- package/lib/module/Icons/Settings/assets/settings.png +0 -0
- package/lib/module/Icons/Settings/assets/settings@2x.png +0 -0
- package/lib/module/Icons/Settings/assets/settings@3x.png +0 -0
- package/lib/module/Icons/Settings/index.js +22 -0
- package/lib/module/Icons/Settings/index.js.map +1 -0
- package/lib/module/Icons/Speaker/assets/speaker-muted.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker-muted@2x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker-muted@3x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker@2x.png +0 -0
- package/lib/module/Icons/Speaker/assets/speaker@3x.png +0 -0
- package/lib/module/Icons/Speaker/index.js +23 -0
- package/lib/module/Icons/Speaker/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/assets/three-dots-vertical.png +0 -0
- package/lib/module/Icons/ThreeDots/assets/three-dots-vertical@2x.png +0 -0
- package/lib/module/Icons/ThreeDots/assets/three-dots-vertical@3x.png +0 -0
- package/lib/module/Icons/ThreeDots/index.js +23 -0
- package/lib/module/Icons/ThreeDots/index.js.map +1 -0
- package/lib/module/Icons/index.js +20 -0
- package/lib/module/Icons/index.js.map +1 -0
- package/lib/module/assets/100ms-logo.png +0 -0
- package/lib/module/assets/brb.png +0 -0
- package/lib/module/assets/icon.png +0 -0
- package/lib/module/assets/illustration.png +0 -0
- package/lib/module/assets/network_0.png +0 -0
- package/lib/module/assets/network_1.png +0 -0
- package/lib/module/assets/network_2.png +0 -0
- package/lib/module/assets/network_3.png +0 -0
- package/lib/module/assets/network_4.png +0 -0
- package/lib/module/assets/user_music.png +0 -0
- package/lib/module/components/AvatarView.js +39 -0
- package/lib/module/components/AvatarView.js.map +1 -0
- package/lib/module/components/BackButton.js +33 -0
- package/lib/module/components/BackButton.js.map +1 -0
- package/lib/module/components/Chat/ChatBanner.js +67 -0
- package/lib/module/components/Chat/ChatBanner.js.map +1 -0
- package/lib/module/components/Chat/ChatList.js +44 -0
- package/lib/module/components/Chat/ChatList.js.map +1 -0
- package/lib/module/components/Chat/ChatMessage.js +165 -0
- package/lib/module/components/Chat/ChatMessage.js.map +1 -0
- package/lib/module/components/Chat/PinnedMessage.js +75 -0
- package/lib/module/components/Chat/PinnedMessage.js.map +1 -0
- package/lib/module/components/Chat/index.js +5 -0
- package/lib/module/components/Chat/index.js.map +1 -0
- package/lib/module/components/ChatWindow.js +595 -0
- package/lib/module/components/ChatWindow.js.map +1 -0
- package/lib/module/components/CustomButton.js +46 -0
- package/lib/module/components/CustomButton.js.map +1 -0
- package/lib/module/components/CustomHLSPlayerControls.js +73 -0
- package/lib/module/components/CustomHLSPlayerControls.js.map +1 -0
- package/lib/module/components/CustomInput.js +83 -0
- package/lib/module/components/CustomInput.js.map +1 -0
- package/lib/module/components/DefaultModal.js +96 -0
- package/lib/module/components/DefaultModal.js.map +1 -0
- package/lib/module/components/DisplayTrack.js +63 -0
- package/lib/module/components/DisplayTrack.js.map +1 -0
- package/lib/module/components/DisplayView.js +203 -0
- package/lib/module/components/DisplayView.js.map +1 -0
- package/lib/module/components/Footer.js +76 -0
- package/lib/module/components/Footer.js.map +1 -0
- package/lib/module/components/FullScreenIndicator.js +17 -0
- package/lib/module/components/FullScreenIndicator.js.map +1 -0
- package/lib/module/components/GridView.js +90 -0
- package/lib/module/components/GridView.js.map +1 -0
- package/lib/module/components/HLSPlayerEmoticons.js +40 -0
- package/lib/module/components/HLSPlayerEmoticons.js.map +1 -0
- package/lib/module/components/HLSPlayerStatsView.js +56 -0
- package/lib/module/components/HLSPlayerStatsView.js.map +1 -0
- package/lib/module/components/HLSView.js +132 -0
- package/lib/module/components/HLSView.js.map +1 -0
- package/lib/module/components/HMSChat.js +22 -0
- package/lib/module/components/HMSChat.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +50 -0
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -0
- package/lib/module/components/HMSManageCameraRotation.js +33 -0
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -0
- package/lib/module/components/HMSManageLeave.js +276 -0
- package/lib/module/components/HMSManageLeave.js.map +1 -0
- package/lib/module/components/HMSManageLocalAudio.js +37 -0
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -0
- package/lib/module/components/HMSManageLocalVideo.js +37 -0
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -0
- package/lib/module/components/HMSManageRaiseHand.js +39 -0
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -0
- package/lib/module/components/HMSPreviewDeviceSettings.js +296 -0
- package/lib/module/components/HMSPreviewDeviceSettings.js.map +1 -0
- package/lib/module/components/HMSPreviewEditName.js +54 -0
- package/lib/module/components/HMSPreviewEditName.js.map +1 -0
- package/lib/module/components/HMSPreviewJoinButton.js +47 -0
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -0
- package/lib/module/components/HMSPreviewPeersList.js +80 -0
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -0
- package/lib/module/components/HMSPreviewSubtitle.js +23 -0
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -0
- package/lib/module/components/HMSPreviewTile.js +129 -0
- package/lib/module/components/HMSPreviewTile.js.map +1 -0
- package/lib/module/components/HMSPreviewTitle.js +23 -0
- package/lib/module/components/HMSPreviewTitle.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +96 -0
- package/lib/module/components/HMSRoomOptions.js.map +1 -0
- package/lib/module/components/HMSShareScreen.js +50 -0
- package/lib/module/components/HMSShareScreen.js.map +1 -0
- package/lib/module/components/HMSShowNetworkQuality.js +48 -0
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -0
- package/lib/module/components/Header.js +167 -0
- package/lib/module/components/Header.js.map +1 -0
- package/lib/module/components/LiveButton.js +61 -0
- package/lib/module/components/LiveButton.js.map +1 -0
- package/lib/module/components/Meeting.js +55 -0
- package/lib/module/components/Meeting.js.map +1 -0
- package/lib/module/components/MeetingScreenContent.js +89 -0
- package/lib/module/components/MeetingScreenContent.js.map +1 -0
- package/lib/module/components/MenuModal/Menu.js +242 -0
- package/lib/module/components/MenuModal/Menu.js.map +1 -0
- package/lib/module/components/MenuModal/MenuDivider.js +20 -0
- package/lib/module/components/MenuModal/MenuDivider.js.map +1 -0
- package/lib/module/components/MenuModal/MenuItem.js +53 -0
- package/lib/module/components/MenuModal/MenuItem.js.map +1 -0
- package/lib/module/components/MenuModal/index.js +4 -0
- package/lib/module/components/MenuModal/index.js.map +1 -0
- package/lib/module/components/Modals.js +1609 -0
- package/lib/module/components/Modals.js.map +1 -0
- package/lib/module/components/PIPView.js +23 -0
- package/lib/module/components/PIPView.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsFilter.js +121 -0
- package/lib/module/components/Participants/ParticipantsFilter.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsHeader.js +58 -0
- package/lib/module/components/Participants/ParticipantsHeader.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsList.js +264 -0
- package/lib/module/components/Participants/ParticipantsList.js.map +1 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js +45 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -0
- package/lib/module/components/Participants/SearchableParticipantsView.js +18 -0
- package/lib/module/components/Participants/SearchableParticipantsView.js.map +1 -0
- package/lib/module/components/Participants/index.js +6 -0
- package/lib/module/components/Participants/index.js.map +1 -0
- package/lib/module/components/ParticipantsModal.js +34 -0
- package/lib/module/components/ParticipantsModal.js.map +1 -0
- package/lib/module/components/PeerDisplayView.js +71 -0
- package/lib/module/components/PeerDisplayView.js.map +1 -0
- package/lib/module/components/PeerRTCStatsContainer.js +60 -0
- package/lib/module/components/PeerRTCStatsContainer.js.map +1 -0
- package/lib/module/components/PeerRTCStatsView.js +46 -0
- package/lib/module/components/PeerRTCStatsView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +233 -0
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -0
- package/lib/module/components/Picker.js +83 -0
- package/lib/module/components/Picker.js.map +1 -0
- package/lib/module/components/PressableIcon.js +37 -0
- package/lib/module/components/PressableIcon.js.map +1 -0
- package/lib/module/components/Preview.js +77 -0
- package/lib/module/components/Preview.js.map +1 -0
- package/lib/module/components/RoomSettingsModalContent.js +505 -0
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -0
- package/lib/module/components/StatusBar.js +17 -0
- package/lib/module/components/StatusBar.js.map +1 -0
- package/lib/module/components/StreamingQualityModalContent.js +205 -0
- package/lib/module/components/StreamingQualityModalContent.js.map +1 -0
- package/lib/module/components/SwitchRow.js +41 -0
- package/lib/module/components/SwitchRow.js.map +1 -0
- package/lib/module/components/Tile.js +104 -0
- package/lib/module/components/Tile.js.map +1 -0
- package/lib/module/components/TilesContainer.js +31 -0
- package/lib/module/components/TilesContainer.js.map +1 -0
- package/lib/module/components/ZoomableView.js +76 -0
- package/lib/module/components/ZoomableView.js.map +1 -0
- package/lib/module/components/index.js +9 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/styles.js +959 -0
- package/lib/module/components/styles.js.map +1 -0
- package/lib/module/hooks/useHmsInstance.js +174 -0
- package/lib/module/hooks/useHmsInstance.js.map +1 -0
- package/lib/module/hooks-sdk-selectors.js +9 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -0
- package/lib/module/hooks-sdk.js +115 -0
- package/lib/module/hooks-sdk.js.map +1 -0
- package/lib/module/hooks-util-selectors.js +5 -0
- package/lib/module/hooks-util-selectors.js.map +1 -0
- package/lib/module/hooks-util.js +772 -0
- package/lib/module/hooks-util.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +52 -0
- package/lib/module/peerTrackNodeUtils.js.map +1 -0
- package/lib/module/redux/actionTypes.js +67 -0
- package/lib/module/redux/actionTypes.js.map +1 -0
- package/lib/module/redux/actions/index.js +144 -0
- package/lib/module/redux/actions/index.js.map +1 -0
- package/lib/module/redux/index.js +4 -0
- package/lib/module/redux/index.js.map +1 -0
- package/lib/module/redux/reducers/appState.js +123 -0
- package/lib/module/redux/reducers/appState.js.map +1 -0
- package/lib/module/redux/reducers/chatWindow.js +38 -0
- package/lib/module/redux/reducers/chatWindow.js.map +1 -0
- package/lib/module/redux/reducers/hmsStates.js +60 -0
- package/lib/module/redux/reducers/hmsStates.js.map +1 -0
- package/lib/module/redux/reducers/index.js +14 -0
- package/lib/module/redux/reducers/index.js.map +1 -0
- package/lib/module/redux/reducers/message.js +34 -0
- package/lib/module/redux/reducers/message.js.map +1 -0
- package/lib/module/redux/reducers/userState.js +58 -0
- package/lib/module/redux/reducers/userState.js.map +1 -0
- package/lib/module/types.js +9 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/dimension.js +53 -0
- package/lib/module/utils/dimension.js.map +1 -0
- package/lib/module/utils/functions.js +338 -0
- package/lib/module/utils/functions.js.map +1 -0
- package/lib/module/utils/getRoomLinkDetails.js +16 -0
- package/lib/module/utils/getRoomLinkDetails.js.map +1 -0
- package/lib/module/utils/hooks.js +39 -0
- package/lib/module/utils/hooks.js.map +1 -0
- package/lib/module/utils/theme.js +134 -0
- package/lib/module/utils/theme.js.map +1 -0
- package/lib/module/utils/types.js +90 -0
- package/lib/module/utils/types.js.map +1 -0
- package/lib/module/utils.js +23 -0
- package/lib/module/utils.js.map +1 -0
- package/lib/typescript/HMSContainer.d.ts +3 -0
- package/lib/typescript/HMSContainer.d.ts.map +1 -0
- package/lib/typescript/HMSInstanceSetup.d.ts +3 -0
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts +18 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -0
- package/lib/typescript/HMSRoomSetup.d.ts +3 -0
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -0
- package/lib/typescript/Icons/100ms/index.d.ts +7 -0
- package/lib/typescript/Icons/100ms/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Alert/index.d.ts +7 -0
- package/lib/typescript/Icons/Alert/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Camera/index.d.ts +8 -0
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chat/index.d.ts +7 -0
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Chevron/index.d.ts +8 -0
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Clock/index.d.ts +7 -0
- package/lib/typescript/Icons/Clock/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Close/index.d.ts +7 -0
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -0
- package/lib/typescript/Icons/End/index.d.ts +7 -0
- package/lib/typescript/Icons/End/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts +7 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Leave/index.d.ts +7 -0
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts +8 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -0
- package/lib/typescript/Icons/NetworkQuality/index.d.ts +8 -0
- package/lib/typescript/Icons/NetworkQuality/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts +7 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts +7 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ScreenShare/index.d.ts +7 -0
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Send/index.d.ts +7 -0
- package/lib/typescript/Icons/Send/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Settings/index.d.ts +7 -0
- package/lib/typescript/Icons/Settings/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Speaker/index.d.ts +8 -0
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts +8 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -0
- package/lib/typescript/Icons/index.d.ts +20 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -0
- package/lib/typescript/components/AvatarView.d.ts +10 -0
- package/lib/typescript/components/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/BackButton.d.ts +5 -0
- package/lib/typescript/components/BackButton.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatBanner.d.ts +3 -0
- package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatList.d.ts +5 -0
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -0
- package/lib/typescript/components/Chat/ChatMessage.d.ts +8 -0
- package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -0
- package/lib/typescript/components/Chat/PinnedMessage.d.ts +3 -0
- package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -0
- package/lib/typescript/components/Chat/index.d.ts +5 -0
- package/lib/typescript/components/Chat/index.d.ts.map +1 -0
- package/lib/typescript/components/ChatWindow.d.ts +22 -0
- package/lib/typescript/components/ChatWindow.d.ts.map +1 -0
- package/lib/typescript/components/CustomButton.d.ts +14 -0
- package/lib/typescript/components/CustomButton.d.ts.map +1 -0
- package/lib/typescript/components/CustomHLSPlayerControls.d.ts +7 -0
- package/lib/typescript/components/CustomHLSPlayerControls.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +24 -0
- package/lib/typescript/components/CustomInput.d.ts.map +1 -0
- package/lib/typescript/components/DefaultModal.d.ts +15 -0
- package/lib/typescript/components/DefaultModal.d.ts.map +1 -0
- package/lib/typescript/components/DisplayTrack.d.ts +9 -0
- package/lib/typescript/components/DisplayTrack.d.ts.map +1 -0
- package/lib/typescript/components/DisplayView.d.ts +10 -0
- package/lib/typescript/components/DisplayView.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts +9 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -0
- package/lib/typescript/components/FullScreenIndicator.d.ts +3 -0
- package/lib/typescript/components/FullScreenIndicator.d.ts.map +1 -0
- package/lib/typescript/components/GridView.d.ts +14 -0
- package/lib/typescript/components/GridView.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerEmoticons.d.ts +2 -0
- package/lib/typescript/components/HLSPlayerEmoticons.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerStatsView.d.ts +6 -0
- package/lib/typescript/components/HLSPlayerStatsView.d.ts.map +1 -0
- package/lib/typescript/components/HLSView.d.ts +3 -0
- package/lib/typescript/components/HLSView.d.ts.map +1 -0
- package/lib/typescript/components/HMSChat.d.ts +3 -0
- package/lib/typescript/components/HMSChat.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts +3 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageCameraRotation.d.ts +3 -0
- package/lib/typescript/components/HMSManageCameraRotation.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLeave.d.ts +9 -0
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLocalAudio.d.ts +3 -0
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageLocalVideo.d.ts +3 -0
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -0
- package/lib/typescript/components/HMSManageRaiseHand.d.ts +3 -0
- package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewDeviceSettings.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewDeviceSettings.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts +5 -0
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts +7 -0
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts +5 -0
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts +6 -0
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewTile.d.ts +3 -0
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -0
- package/lib/typescript/components/HMSPreviewTitle.d.ts +6 -0
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts +6 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -0
- package/lib/typescript/components/HMSShareScreen.d.ts +9 -0
- package/lib/typescript/components/HMSShareScreen.d.ts.map +1 -0
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts +3 -0
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts +9 -0
- package/lib/typescript/components/Header.d.ts.map +1 -0
- package/lib/typescript/components/LiveButton.d.ts +17 -0
- package/lib/typescript/components/LiveButton.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts +8 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -0
- package/lib/typescript/components/MeetingScreenContent.d.ts +8 -0
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/Menu.d.ts +45 -0
- package/lib/typescript/components/MenuModal/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/MenuDivider.d.ts +6 -0
- package/lib/typescript/components/MenuModal/MenuDivider.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/MenuItem.d.ts +12 -0
- package/lib/typescript/components/MenuModal/MenuItem.d.ts.map +1 -0
- package/lib/typescript/components/MenuModal/index.d.ts +7 -0
- package/lib/typescript/components/MenuModal/index.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +96 -0
- package/lib/typescript/components/Modals.d.ts.map +1 -0
- package/lib/typescript/components/PIPView.d.ts +8 -0
- package/lib/typescript/components/PIPView.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +6 -0
- package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +9 -0
- package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts +7 -0
- package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -0
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts +8 -0
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -0
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +3 -0
- package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +1 -0
- package/lib/typescript/components/Participants/index.d.ts +6 -0
- package/lib/typescript/components/Participants/index.d.ts.map +1 -0
- package/lib/typescript/components/ParticipantsModal.d.ts +5 -0
- package/lib/typescript/components/ParticipantsModal.d.ts.map +1 -0
- package/lib/typescript/components/PeerDisplayView.d.ts +11 -0
- package/lib/typescript/components/PeerDisplayView.d.ts.map +1 -0
- package/lib/typescript/components/PeerRTCStatsContainer.d.ts +9 -0
- package/lib/typescript/components/PeerRTCStatsContainer.d.ts.map +1 -0
- package/lib/typescript/components/PeerRTCStatsView.d.ts +10 -0
- package/lib/typescript/components/PeerRTCStatsView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +13 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Picker.d.ts +9 -0
- package/lib/typescript/components/Picker.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts +11 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -0
- package/lib/typescript/components/Preview.d.ts +6 -0
- package/lib/typescript/components/Preview.d.ts.map +1 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -0
- package/lib/typescript/components/StatusBar.d.ts +7 -0
- package/lib/typescript/components/StatusBar.d.ts.map +1 -0
- package/lib/typescript/components/StreamingQualityModalContent.d.ts +9 -0
- package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -0
- package/lib/typescript/components/SwitchRow.d.ts +12 -0
- package/lib/typescript/components/SwitchRow.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -0
- package/lib/typescript/components/Tile.d.ts.map +1 -0
- package/lib/typescript/components/TilesContainer.d.ts +11 -0
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -0
- package/lib/typescript/components/ZoomableView.d.ts +6 -0
- package/lib/typescript/components/ZoomableView.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +9 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/components/styles.d.ts +945 -0
- package/lib/typescript/components/styles.d.ts.map +1 -0
- package/lib/typescript/hooks/useHmsInstance.d.ts +1 -0
- package/lib/typescript/hooks/useHmsInstance.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts +4 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk.d.ts +12 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -0
- package/lib/typescript/hooks-util-selectors.d.ts +3 -0
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -0
- package/lib/typescript/hooks-util.d.ts +53 -0
- package/lib/typescript/hooks-util.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +10 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -0
- package/lib/typescript/redux/actionTypes.d.ts +56 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -0
- package/lib/typescript/redux/actions/index.d.ts +199 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -0
- package/lib/typescript/redux/index.d.ts +55 -0
- package/lib/typescript/redux/index.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/appState.d.ts +32 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/chatWindow.d.ts +10 -0
- package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/hmsStates.d.ts +46 -0
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/index.d.ts +54 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/message.d.ts +12 -0
- package/lib/typescript/redux/reducers/message.d.ts.map +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts +26 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -0
- package/lib/typescript/types.d.ts +8 -0
- package/lib/typescript/types.d.ts.map +1 -0
- package/lib/typescript/utils/dimension.d.ts +15 -0
- package/lib/typescript/utils/dimension.d.ts.map +1 -0
- package/lib/typescript/utils/functions.d.ts +47 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -0
- package/lib/typescript/utils/getRoomLinkDetails.d.ts +5 -0
- package/lib/typescript/utils/getRoomLinkDetails.d.ts.map +1 -0
- package/lib/typescript/utils/hooks.d.ts +2 -0
- package/lib/typescript/utils/hooks.d.ts.map +1 -0
- package/lib/typescript/utils/theme.d.ts +126 -0
- package/lib/typescript/utils/theme.d.ts.map +1 -0
- package/lib/typescript/utils/types.d.ts +82 -0
- package/lib/typescript/utils/types.d.ts.map +1 -0
- package/lib/typescript/utils.d.ts +12 -0
- package/lib/typescript/utils.d.ts.map +1 -0
- package/package.json +182 -0
- package/src/HMSContainer.tsx +18 -0
- package/src/HMSInstanceSetup.tsx +196 -0
- package/src/HMSPrebuilt.tsx +36 -0
- package/src/HMSRoomSetup.tsx +281 -0
- package/src/Icons/100ms/assets/hms-logo.png +0 -0
- package/src/Icons/100ms/assets/hms-logo@2x.png +0 -0
- package/src/Icons/100ms/assets/hms-logo@3x.png +0 -0
- package/src/Icons/100ms/index.tsx +27 -0
- package/src/Icons/Alert/assets/alert.png +0 -0
- package/src/Icons/Alert/assets/alert@2x.png +0 -0
- package/src/Icons/Alert/assets/alert@3x.png +0 -0
- package/src/Icons/Alert/index.tsx +27 -0
- package/src/Icons/Camera/assets/camera-muted.png +0 -0
- package/src/Icons/Camera/assets/camera-muted@2x.png +0 -0
- package/src/Icons/Camera/assets/camera-muted@3x.png +0 -0
- package/src/Icons/Camera/assets/camera-unmuted.png +0 -0
- package/src/Icons/Camera/assets/camera-unmuted@2x.png +0 -0
- package/src/Icons/Camera/assets/camera-unmuted@3x.png +0 -0
- package/src/Icons/Camera/index.tsx +34 -0
- package/src/Icons/Chat/assets/chat.png +0 -0
- package/src/Icons/Chat/assets/chat@2x.png +0 -0
- package/src/Icons/Chat/assets/chat@3x.png +0 -0
- package/src/Icons/Chat/index.tsx +24 -0
- package/src/Icons/Chevron/assets/chevron-down.png +0 -0
- package/src/Icons/Chevron/assets/chevron-down@2x.png +0 -0
- package/src/Icons/Chevron/assets/chevron-down@3x.png +0 -0
- package/src/Icons/Chevron/assets/chevron-left.png +0 -0
- package/src/Icons/Chevron/assets/chevron-left@2x.png +0 -0
- package/src/Icons/Chevron/assets/chevron-left@3x.png +0 -0
- package/src/Icons/Chevron/index.tsx +34 -0
- package/src/Icons/Clock/assets/clock.png +0 -0
- package/src/Icons/Clock/assets/clock@2x.png +0 -0
- package/src/Icons/Clock/assets/clock@3x.png +0 -0
- package/src/Icons/Clock/index.tsx +27 -0
- package/src/Icons/Close/assets/close.png +0 -0
- package/src/Icons/Close/assets/close@2x.png +0 -0
- package/src/Icons/Close/assets/close@3x.png +0 -0
- package/src/Icons/Close/index.tsx +27 -0
- package/src/Icons/End/assets/end.png +0 -0
- package/src/Icons/End/assets/end@2x.png +0 -0
- package/src/Icons/End/assets/end@3x.png +0 -0
- package/src/Icons/End/index.tsx +24 -0
- package/src/Icons/Hand/assets/hand.png +0 -0
- package/src/Icons/Hand/assets/hand@2x.png +0 -0
- package/src/Icons/Hand/assets/hand@3x.png +0 -0
- package/src/Icons/Hand/index.tsx +27 -0
- package/src/Icons/Leave/assets/leave.png +0 -0
- package/src/Icons/Leave/assets/leave@2x.png +0 -0
- package/src/Icons/Leave/assets/leave@3x.png +0 -0
- package/src/Icons/Leave/index.tsx +27 -0
- package/src/Icons/Mic/assets/mic-muted.png +0 -0
- package/src/Icons/Mic/assets/mic-muted@2x.png +0 -0
- package/src/Icons/Mic/assets/mic-muted@3x.png +0 -0
- package/src/Icons/Mic/assets/mic-unmuted.png +0 -0
- package/src/Icons/Mic/assets/mic-unmuted@2x.png +0 -0
- package/src/Icons/Mic/assets/mic-unmuted@3x.png +0 -0
- package/src/Icons/Mic/index.tsx +34 -0
- package/src/Icons/NetworkQuality/assets/network_0.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_0@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_0@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_1.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_1@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_1@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_2.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_2@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_2@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_3.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_3@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_3@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_4.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_4@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_4@3x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_5.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_5@2x.png +0 -0
- package/src/Icons/NetworkQuality/assets/network_5@3x.png +0 -0
- package/src/Icons/NetworkQuality/index.tsx +42 -0
- package/src/Icons/Participants/assets/participants.png +0 -0
- package/src/Icons/Participants/assets/participants@2x.png +0 -0
- package/src/Icons/Participants/assets/participants@3x.png +0 -0
- package/src/Icons/Participants/index.tsx +27 -0
- package/src/Icons/RotateCamera/assets/rotate-camera.png +0 -0
- package/src/Icons/RotateCamera/assets/rotate-camera@2x.png +0 -0
- package/src/Icons/RotateCamera/assets/rotate-camera@3x.png +0 -0
- package/src/Icons/RotateCamera/index.tsx +27 -0
- package/src/Icons/ScreenShare/assets/screen-share.png +0 -0
- package/src/Icons/ScreenShare/assets/screen-share@2x.png +0 -0
- package/src/Icons/ScreenShare/assets/screen-share@3x.png +0 -0
- package/src/Icons/ScreenShare/index.tsx +27 -0
- package/src/Icons/Send/assets/send.png +0 -0
- package/src/Icons/Send/assets/send@2x.png +0 -0
- package/src/Icons/Send/assets/send@3x.png +0 -0
- package/src/Icons/Send/index.tsx +24 -0
- package/src/Icons/Settings/assets/settings.png +0 -0
- package/src/Icons/Settings/assets/settings@2x.png +0 -0
- package/src/Icons/Settings/assets/settings@3x.png +0 -0
- package/src/Icons/Settings/index.tsx +27 -0
- package/src/Icons/Speaker/assets/speaker-muted.png +0 -0
- package/src/Icons/Speaker/assets/speaker-muted@2x.png +0 -0
- package/src/Icons/Speaker/assets/speaker-muted@3x.png +0 -0
- package/src/Icons/Speaker/assets/speaker.png +0 -0
- package/src/Icons/Speaker/assets/speaker@2x.png +0 -0
- package/src/Icons/Speaker/assets/speaker@3x.png +0 -0
- package/src/Icons/Speaker/index.tsx +34 -0
- package/src/Icons/ThreeDots/assets/three-dots-vertical.png +0 -0
- package/src/Icons/ThreeDots/assets/three-dots-vertical@2x.png +0 -0
- package/src/Icons/ThreeDots/assets/three-dots-vertical@3x.png +0 -0
- package/src/Icons/ThreeDots/index.tsx +34 -0
- package/src/Icons/index.ts +19 -0
- package/src/assets/100ms-logo.png +0 -0
- package/src/assets/brb.png +0 -0
- package/src/assets/icon.png +0 -0
- package/src/assets/illustration.png +0 -0
- package/src/assets/network_0.png +0 -0
- package/src/assets/network_1.png +0 -0
- package/src/assets/network_2.png +0 -0
- package/src/assets/network_3.png +0 -0
- package/src/assets/network_4.png +0 -0
- package/src/assets/user_music.png +0 -0
- package/src/components/AvatarView.tsx +54 -0
- package/src/components/BackButton.tsx +42 -0
- package/src/components/Chat/ChatBanner.tsx +70 -0
- package/src/components/Chat/ChatList.tsx +60 -0
- package/src/components/Chat/ChatMessage.tsx +237 -0
- package/src/components/Chat/PinnedMessage.tsx +89 -0
- package/src/components/Chat/index.ts +4 -0
- package/src/components/ChatWindow.tsx +706 -0
- package/src/components/CustomButton.tsx +80 -0
- package/src/components/CustomHLSPlayerControls.tsx +92 -0
- package/src/components/CustomInput.tsx +139 -0
- package/src/components/DefaultModal.tsx +117 -0
- package/src/components/DisplayTrack.tsx +92 -0
- package/src/components/DisplayView.tsx +314 -0
- package/src/components/Footer.tsx +109 -0
- package/src/components/FullScreenIndicator.tsx +21 -0
- package/src/components/GridView.tsx +124 -0
- package/src/components/HLSPlayerEmoticons.tsx +60 -0
- package/src/components/HLSPlayerStatsView.tsx +68 -0
- package/src/components/HLSView.tsx +170 -0
- package/src/components/HMSChat.tsx +36 -0
- package/src/components/HMSHLSNotStarted.tsx +62 -0
- package/src/components/HMSManageCameraRotation.tsx +48 -0
- package/src/components/HMSManageLeave.tsx +349 -0
- package/src/components/HMSManageLocalAudio.tsx +49 -0
- package/src/components/HMSManageLocalVideo.tsx +49 -0
- package/src/components/HMSManageRaiseHand.tsx +48 -0
- package/src/components/HMSPreviewDeviceSettings.tsx +387 -0
- package/src/components/HMSPreviewEditName.tsx +63 -0
- package/src/components/HMSPreviewJoinButton.tsx +64 -0
- package/src/components/HMSPreviewPeersList.tsx +108 -0
- package/src/components/HMSPreviewSubtitle.tsx +26 -0
- package/src/components/HMSPreviewTile.tsx +152 -0
- package/src/components/HMSPreviewTitle.tsx +26 -0
- package/src/components/HMSRoomOptions.tsx +141 -0
- package/src/components/HMSShareScreen.tsx +71 -0
- package/src/components/HMSShowNetworkQuality.tsx +67 -0
- package/src/components/Header.tsx +185 -0
- package/src/components/LiveButton.tsx +77 -0
- package/src/components/Meeting.tsx +72 -0
- package/src/components/MeetingScreenContent.tsx +109 -0
- package/src/components/MenuModal/Menu.tsx +305 -0
- package/src/components/MenuModal/MenuDivider.tsx +22 -0
- package/src/components/MenuModal/MenuItem.tsx +67 -0
- package/src/components/MenuModal/index.ts +7 -0
- package/src/components/Modals.tsx +2103 -0
- package/src/components/PIPView.tsx +30 -0
- package/src/components/Participants/ParticipantsFilter.tsx +144 -0
- package/src/components/Participants/ParticipantsHeader.tsx +64 -0
- package/src/components/Participants/ParticipantsList.tsx +331 -0
- package/src/components/Participants/ParticipantsSeachInput.tsx +55 -0
- package/src/components/Participants/SearchableParticipantsView.tsx +21 -0
- package/src/components/Participants/index.ts +5 -0
- package/src/components/ParticipantsModal.tsx +46 -0
- package/src/components/PeerDisplayView.tsx +112 -0
- package/src/components/PeerRTCStatsContainer.tsx +82 -0
- package/src/components/PeerRTCStatsView.tsx +110 -0
- package/src/components/PeerSettingsModalContent.tsx +355 -0
- package/src/components/Picker.tsx +108 -0
- package/src/components/PressableIcon.tsx +54 -0
- package/src/components/Preview.tsx +108 -0
- package/src/components/RoomSettingsModalContent.tsx +743 -0
- package/src/components/StatusBar.tsx +22 -0
- package/src/components/StreamingQualityModalContent.tsx +266 -0
- package/src/components/SwitchRow.tsx +55 -0
- package/src/components/Tile.tsx +119 -0
- package/src/components/TilesContainer.tsx +48 -0
- package/src/components/ZoomableView.tsx +91 -0
- package/src/components/index.ts +8 -0
- package/src/components/styles.ts +961 -0
- package/src/hooks/useHmsInstance.ts +173 -0
- package/src/hooks-sdk-selectors.tsx +9 -0
- package/src/hooks-sdk.ts +156 -0
- package/src/hooks-util-selectors.tsx +4 -0
- package/src/hooks-util.ts +1124 -0
- package/src/index.ts +1 -0
- package/src/peerTrackNodeUtils.tsx +114 -0
- package/src/redux/actionTypes.ts +85 -0
- package/src/redux/actions/index.ts +196 -0
- package/src/redux/index.ts +8 -0
- package/src/redux/reducers/appState.ts +143 -0
- package/src/redux/reducers/chatWindow.ts +35 -0
- package/src/redux/reducers/hmsStates.ts +126 -0
- package/src/redux/reducers/index.ts +14 -0
- package/src/redux/reducers/message.ts +36 -0
- package/src/redux/reducers/userState.ts +88 -0
- package/src/types.ts +7 -0
- package/src/utils/dimension.ts +57 -0
- package/src/utils/functions.ts +522 -0
- package/src/utils/getRoomLinkDetails.ts +23 -0
- package/src/utils/hooks.ts +104 -0
- package/src/utils/theme.ts +130 -0
- package/src/utils/types.ts +95 -0
- package/src/utils.ts +24 -0
|
@@ -0,0 +1,1640 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SaveScreenshot = exports.RtcStatsModal = exports.RecordingModal = exports.RealTime = exports.LeaveRoomModal = exports.HlsStreamingModal = exports.EndRoomModal = exports.EndHlsModal = exports.ChangeVolumeModal = exports.ChangeTrackStateModal = exports.ChangeTrackStateForRoleModal = exports.ChangeSortingModal = exports.ChangeRoleModal = exports.ChangeRoleAccepteModal = exports.ChangeNameModal = exports.ChangeLayoutModal = exports.ChangeBulkRoleModal = exports.ChangeAudioOutputModal = exports.ChangeAudioModeModal = exports.ChangeAudioMixingModeModal = exports.ChangeAspectRatio = exports.AudioShareSetVolumeModal = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSimpleToast = _interopRequireDefault(require("react-native-simple-toast"));
|
|
10
|
+
var _reactRedux = require("react-redux");
|
|
11
|
+
var _reactNativeHms = require("@100mslive/react-native-hms");
|
|
12
|
+
var _Feather = _interopRequireDefault(require("react-native-vector-icons/Feather"));
|
|
13
|
+
var _Entypo = _interopRequireDefault(require("react-native-vector-icons/Entypo"));
|
|
14
|
+
var _MaterialCommunityIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialCommunityIcons"));
|
|
15
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
16
|
+
var _reactNativeSlider = require("@miblanchard/react-native-slider");
|
|
17
|
+
var _rnFetchBlob = _interopRequireDefault(require("rn-fetch-blob"));
|
|
18
|
+
var _reactNativeFs = _interopRequireDefault(require("react-native-fs"));
|
|
19
|
+
var _reactNativeShare = _interopRequireDefault(require("react-native-share"));
|
|
20
|
+
var _styles = require("./styles");
|
|
21
|
+
var _CustomButton = require("./CustomButton");
|
|
22
|
+
var _CustomInput = require("./CustomInput");
|
|
23
|
+
var _MenuModal = require("./MenuModal");
|
|
24
|
+
var _Picker = require("./Picker");
|
|
25
|
+
var _actions = require("../redux/actions");
|
|
26
|
+
var _functions = require("../utils/functions");
|
|
27
|
+
var _types = require("../utils/types");
|
|
28
|
+
var _theme = require("../utils/theme");
|
|
29
|
+
var _SwitchRow = require("./SwitchRow");
|
|
30
|
+
var _hooksUtil = require("../hooks-util");
|
|
31
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
34
|
+
const ChangeRoleModal = _ref => {
|
|
35
|
+
let {
|
|
36
|
+
cancelModal
|
|
37
|
+
} = _ref;
|
|
38
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
39
|
+
const peer = (0, _reactRedux.useSelector)(state => state.app.peerToUpdate);
|
|
40
|
+
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
41
|
+
const [newRole, setNewRole] = (0, _react.useState)(peer === null || peer === void 0 ? void 0 : peer.role);
|
|
42
|
+
const [request, setRequest] = (0, _react.useState)(false);
|
|
43
|
+
const [visible, setVisible] = (0, _react.useState)(false);
|
|
44
|
+
const hideMenu = () => setVisible(false);
|
|
45
|
+
const showMenu = () => setVisible(true);
|
|
46
|
+
const changeRole = () => {
|
|
47
|
+
instance === null || instance === void 0 ? void 0 : instance.changeRoleOfPeer(peer, newRole, !request).catch(e => {
|
|
48
|
+
console.log('Change Role of Peer Error: ', e);
|
|
49
|
+
_reactNativeSimpleToast.default.showWithGravity(e.message, _reactNativeSimpleToast.default.LONG, _reactNativeSimpleToast.default.TOP);
|
|
50
|
+
});
|
|
51
|
+
cancelModal();
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
54
|
+
style: _styles.styles.roleChangeModal
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
56
|
+
style: _styles.styles.roleChangeModalHeading
|
|
57
|
+
}, "Change Role"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
58
|
+
style: _styles.styles.roleChangeModalDescription
|
|
59
|
+
}, "Change the role of '", peer === null || peer === void 0 ? void 0 : peer.name, "' to"), /*#__PURE__*/_react.default.createElement(_MenuModal.Menu, {
|
|
60
|
+
visible: visible,
|
|
61
|
+
anchor: /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
62
|
+
style: _styles.styles.participantChangeRoleContainer,
|
|
63
|
+
onPress: showMenu
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
65
|
+
style: _styles.styles.participantFilterText,
|
|
66
|
+
numberOfLines: 1
|
|
67
|
+
}, newRole === null || newRole === void 0 ? void 0 : newRole.name), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
68
|
+
name: visible ? 'arrow-drop-up' : 'arrow-drop-down',
|
|
69
|
+
style: _styles.styles.participantFilterIcon,
|
|
70
|
+
size: 24
|
|
71
|
+
})),
|
|
72
|
+
onRequestClose: hideMenu,
|
|
73
|
+
style: _styles.styles.participantsMenuContainer
|
|
74
|
+
}, roles === null || roles === void 0 ? void 0 : roles.map(knownRole => {
|
|
75
|
+
return /*#__PURE__*/_react.default.createElement(_MenuModal.MenuItem, {
|
|
76
|
+
onPress: () => {
|
|
77
|
+
hideMenu();
|
|
78
|
+
setNewRole(knownRole);
|
|
79
|
+
},
|
|
80
|
+
key: knownRole.name
|
|
81
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
82
|
+
style: _styles.styles.participantMenuItem
|
|
83
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
84
|
+
style: _styles.styles.participantMenuItemName
|
|
85
|
+
}, knownRole === null || knownRole === void 0 ? void 0 : knownRole.name)));
|
|
86
|
+
})), !(peer !== null && peer !== void 0 && peer.isLocal) && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
87
|
+
style: _styles.styles.roleChangeModalPermissionContainer,
|
|
88
|
+
onPress: () => {
|
|
89
|
+
setRequest(!request);
|
|
90
|
+
}
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
92
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
93
|
+
}, request && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
94
|
+
name: "check",
|
|
95
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
96
|
+
size: 10
|
|
97
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
98
|
+
style: _styles.styles.roleChangeModalPermission
|
|
99
|
+
}, "Request permission from the user")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
100
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
101
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
102
|
+
title: "Cancel",
|
|
103
|
+
onPress: cancelModal,
|
|
104
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
105
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
106
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
107
|
+
title: "Change",
|
|
108
|
+
onPress: changeRole,
|
|
109
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
110
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
111
|
+
})));
|
|
112
|
+
};
|
|
113
|
+
exports.ChangeRoleModal = ChangeRoleModal;
|
|
114
|
+
const SaveScreenshot = _ref2 => {
|
|
115
|
+
let {
|
|
116
|
+
imageSource,
|
|
117
|
+
cancelModal
|
|
118
|
+
} = _ref2;
|
|
119
|
+
const peer = (0, _reactRedux.useSelector)(state => state.hmsStates.localPeer || undefined);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Get target path on external storage to save image
|
|
123
|
+
* @param {string} imageExtension file extension to use for image
|
|
124
|
+
* @param {string} peerName name of peer to use in image name
|
|
125
|
+
* @returns string - path on external storage to save image
|
|
126
|
+
*/
|
|
127
|
+
const getTargetPath = (imageExtension, peerName) => {
|
|
128
|
+
// formatting peer name
|
|
129
|
+
const formattedPeerName = peerName ? peerName.replace(/ /g, '-').toLowerCase() : '';
|
|
130
|
+
|
|
131
|
+
// name to use for image
|
|
132
|
+
const imageName = `${formattedPeerName}-snapshot-${Date.now()}.${imageExtension}`;
|
|
133
|
+
|
|
134
|
+
// directory for saving image
|
|
135
|
+
const targetDir = _reactNative.Platform.OS === 'ios' ? _rnFetchBlob.default.fs.dirs.DocumentDir : _rnFetchBlob.default.fs.dirs.DCIMDir;
|
|
136
|
+
const targetLocation = `${targetDir}/${imageName}`;
|
|
137
|
+
return targetLocation;
|
|
138
|
+
};
|
|
139
|
+
const saveToDisk = async () => {
|
|
140
|
+
try {
|
|
141
|
+
// Requesting External Storage permission to save image to disk
|
|
142
|
+
const permission = await (0, _functions.requestExternalStoragePermission)();
|
|
143
|
+
|
|
144
|
+
// checking External Storage permission and availability of image source that we have to save to disk
|
|
145
|
+
if (permission && peer && imageSource) {
|
|
146
|
+
// Waiting for Interactions (Modal Close Animation) to finish
|
|
147
|
+
_reactNative.InteractionManager.runAfterInteractions(async () => {
|
|
148
|
+
// image extension to use
|
|
149
|
+
const imageExtension = 'png';
|
|
150
|
+
|
|
151
|
+
// Removing `file://` from URI if it exists, to keep it consistent with `base64` image case
|
|
152
|
+
const source = imageSource.uri.replace('file://', '');
|
|
153
|
+
|
|
154
|
+
// Checking if source is the local file on device
|
|
155
|
+
const isSourceLocalFile = imageSource.uri.startsWith('file://');
|
|
156
|
+
|
|
157
|
+
// if source is local file on ios device then we don't need to do any file system operation
|
|
158
|
+
// We can use that local file to show preview window to user on ios
|
|
159
|
+
const targetLocation = isSourceLocalFile && _reactNative.Platform.OS === 'ios' ? source : getTargetPath(imageExtension, peer.name);
|
|
160
|
+
|
|
161
|
+
// if source is local file on android device, then we copy source file to target path
|
|
162
|
+
if (isSourceLocalFile) {
|
|
163
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
164
|
+
await _reactNativeFs.default.copyFile(source,
|
|
165
|
+
// Source Dir
|
|
166
|
+
targetLocation // Target Dir
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// if source is not local file, then we write to target path
|
|
171
|
+
else {
|
|
172
|
+
await _rnFetchBlob.default.fs.writeFile(targetLocation,
|
|
173
|
+
// Target Dir
|
|
174
|
+
source.replace('data:image/png;base64,', ''),
|
|
175
|
+
// Data to write to "Target Dir"
|
|
176
|
+
'base64');
|
|
177
|
+
}
|
|
178
|
+
_reactNativeShare.default.open({
|
|
179
|
+
url: 'file://' + targetLocation
|
|
180
|
+
}).then(_ref3 => {
|
|
181
|
+
let {
|
|
182
|
+
message
|
|
183
|
+
} = _ref3;
|
|
184
|
+
if (message.includes('SaveToCameraRoll')) {
|
|
185
|
+
_reactNativeSimpleToast.default.showWithGravity('Snapshot has been saved successfully', _reactNativeSimpleToast.default.LONG, _reactNativeSimpleToast.default.TOP);
|
|
186
|
+
}
|
|
187
|
+
cancelModal();
|
|
188
|
+
}).catch(error => console.log('share error -> ', error)).finally(() => {
|
|
189
|
+
// On Android, We have already saved image into DCIM dir
|
|
190
|
+
// Therefore, we can notify user about "save success" and close modal
|
|
191
|
+
if (_reactNative.Platform.OS === 'android') {
|
|
192
|
+
_reactNativeSimpleToast.default.showWithGravity('Snapshot has been saved successfully', _reactNativeSimpleToast.default.LONG, _reactNativeSimpleToast.default.TOP);
|
|
193
|
+
cancelModal();
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
} catch (error) {
|
|
199
|
+
console.warn('Snapshot Save Error: ', error);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
203
|
+
style: [{
|
|
204
|
+
flexGrow: 1
|
|
205
|
+
}, _styles.styles.volumeModalContainer]
|
|
206
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
207
|
+
style: _styles.styles.roleChangeModalHeading
|
|
208
|
+
}, peer ? `${peer.name}'s Snapshot` : 'Snapshot'), imageSource ? /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
209
|
+
source: imageSource,
|
|
210
|
+
style: _styles.styles.screenshotImage,
|
|
211
|
+
resizeMode: "contain"
|
|
212
|
+
}) : null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
213
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
214
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
215
|
+
title: "Cancel",
|
|
216
|
+
onPress: cancelModal,
|
|
217
|
+
viewStyle: [_styles.styles.roleChangeModalCancelButton, {
|
|
218
|
+
width: '40%'
|
|
219
|
+
}],
|
|
220
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
221
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
222
|
+
title: "Save to Disk",
|
|
223
|
+
onPress: saveToDisk,
|
|
224
|
+
viewStyle: [_styles.styles.roleChangeModalSuccessButton, {
|
|
225
|
+
width: '56%'
|
|
226
|
+
}],
|
|
227
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
228
|
+
})));
|
|
229
|
+
};
|
|
230
|
+
exports.SaveScreenshot = SaveScreenshot;
|
|
231
|
+
const ChangeVolumeModal = _ref4 => {
|
|
232
|
+
let {
|
|
233
|
+
cancelModal
|
|
234
|
+
} = _ref4;
|
|
235
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
236
|
+
const peer = (0, _reactRedux.useSelector)(state => state.app.peerToUpdate);
|
|
237
|
+
const [volume, setVolume] = (0, _react.useState)(0);
|
|
238
|
+
const changeVolume = () => {
|
|
239
|
+
if (peer !== null && peer !== void 0 && peer.audioTrack) {
|
|
240
|
+
instance === null || instance === void 0 ? void 0 : instance.setVolume(peer === null || peer === void 0 ? void 0 : peer.audioTrack, volume);
|
|
241
|
+
}
|
|
242
|
+
cancelModal();
|
|
243
|
+
};
|
|
244
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
245
|
+
style: _styles.styles.volumeModalContainer
|
|
246
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
247
|
+
style: _styles.styles.roleChangeModalHeading
|
|
248
|
+
}, "Set Volume"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
249
|
+
style: _styles.styles.volumeModalSlider
|
|
250
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
251
|
+
style: _styles.styles.roleChangeModalDescription
|
|
252
|
+
}, "Volume: ", volume), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
253
|
+
value: volume,
|
|
254
|
+
maximumValue: 10,
|
|
255
|
+
minimumValue: 0,
|
|
256
|
+
step: 1,
|
|
257
|
+
onValueChange: value => setVolume(value[0])
|
|
258
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
259
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
260
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
261
|
+
title: "Cancel",
|
|
262
|
+
onPress: cancelModal,
|
|
263
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
264
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
265
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
266
|
+
title: "Change",
|
|
267
|
+
onPress: changeVolume,
|
|
268
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
269
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
270
|
+
})));
|
|
271
|
+
};
|
|
272
|
+
exports.ChangeVolumeModal = ChangeVolumeModal;
|
|
273
|
+
const ChangeNameModal = _ref5 => {
|
|
274
|
+
let {
|
|
275
|
+
cancelModal
|
|
276
|
+
} = _ref5;
|
|
277
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
278
|
+
const peer = (0, _reactRedux.useSelector)(state => state.app.peerToUpdate);
|
|
279
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
280
|
+
const [name, setName] = (0, _react.useState)(peer === null || peer === void 0 ? void 0 : peer.name);
|
|
281
|
+
const changeName = () => {
|
|
282
|
+
if (name.length > 0) {
|
|
283
|
+
instance === null || instance === void 0 ? void 0 : instance.changeName(name).then(d => {
|
|
284
|
+
dispatch((0, _actions.saveUserData)({
|
|
285
|
+
userName: name
|
|
286
|
+
}));
|
|
287
|
+
console.log('Change Name Success: ', d);
|
|
288
|
+
}).catch(e => console.log('Change Name Error: ', e));
|
|
289
|
+
}
|
|
290
|
+
cancelModal();
|
|
291
|
+
};
|
|
292
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
293
|
+
style: _styles.styles.volumeModalContainer
|
|
294
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
295
|
+
style: _styles.styles.roleChangeModalHeading
|
|
296
|
+
}, "Change Name"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
297
|
+
style: _styles.styles.volumeModalSlider
|
|
298
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomInput.CustomInput, {
|
|
299
|
+
value: name,
|
|
300
|
+
onChangeText: setName,
|
|
301
|
+
inputStyle: _styles.styles.participantChangeNameInput,
|
|
302
|
+
placeholderTextColor: _theme.COLORS.TEXT.DISABLED,
|
|
303
|
+
placeholder: "Find what you\u2019re looking for"
|
|
304
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
305
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
306
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
307
|
+
title: "Cancel",
|
|
308
|
+
onPress: cancelModal,
|
|
309
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
310
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
311
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
312
|
+
title: "Change",
|
|
313
|
+
onPress: changeName,
|
|
314
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
315
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
316
|
+
})));
|
|
317
|
+
};
|
|
318
|
+
exports.ChangeNameModal = ChangeNameModal;
|
|
319
|
+
const RtcStatsModal = () => {
|
|
320
|
+
var _currentTrack$track;
|
|
321
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
322
|
+
const instance = (0, _reactRedux.useSelector)(state => state.user.hmsInstance);
|
|
323
|
+
const showStatsOnTiles = (0, _reactRedux.useSelector)(state => state.app.joinConfig.showStats);
|
|
324
|
+
const [localPeer, setLocalPeer] = (0, _react.useState)(null);
|
|
325
|
+
const [remotePeers, setRemotePeers] = (0, _react.useState)([]);
|
|
326
|
+
const [tracksListModalVisible, setTracksListModalVisible] = (0, _react.useState)(false);
|
|
327
|
+
const [currentTrack, setCurrentTrack] = (0, _react.useState)(null);
|
|
328
|
+
const hideMenu = () => setTracksListModalVisible(false);
|
|
329
|
+
const showMenu = () => setTracksListModalVisible(true);
|
|
330
|
+
const getStatsList = () => {
|
|
331
|
+
var _localPeer$audioTrack, _localPeer$videoTrack;
|
|
332
|
+
const list = [];
|
|
333
|
+
if (localPeer !== null && localPeer !== void 0 && (_localPeer$audioTrack = localPeer.audioTrack) !== null && _localPeer$audioTrack !== void 0 && _localPeer$audioTrack.trackId) {
|
|
334
|
+
list.push({
|
|
335
|
+
name: (localPeer === null || localPeer === void 0 ? void 0 : localPeer.name) + "'s audio",
|
|
336
|
+
peerId: localPeer === null || localPeer === void 0 ? void 0 : localPeer.peerID,
|
|
337
|
+
track: localPeer === null || localPeer === void 0 ? void 0 : localPeer.audioTrack
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
if (localPeer !== null && localPeer !== void 0 && (_localPeer$videoTrack = localPeer.videoTrack) !== null && _localPeer$videoTrack !== void 0 && _localPeer$videoTrack.trackId) {
|
|
341
|
+
list.push({
|
|
342
|
+
name: (localPeer === null || localPeer === void 0 ? void 0 : localPeer.name) + "'s video",
|
|
343
|
+
track: localPeer === null || localPeer === void 0 ? void 0 : localPeer.videoTrack
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
remotePeers.forEach(remotePeer => {
|
|
347
|
+
var _remotePeer$audioTrac, _remotePeer$videoTrac;
|
|
348
|
+
if (remotePeer !== null && remotePeer !== void 0 && (_remotePeer$audioTrac = remotePeer.audioTrack) !== null && _remotePeer$audioTrac !== void 0 && _remotePeer$audioTrac.trackId) {
|
|
349
|
+
list.push({
|
|
350
|
+
name: (remotePeer === null || remotePeer === void 0 ? void 0 : remotePeer.name) + "'s audio",
|
|
351
|
+
peerId: remotePeer === null || remotePeer === void 0 ? void 0 : remotePeer.peerID,
|
|
352
|
+
track: remotePeer === null || remotePeer === void 0 ? void 0 : remotePeer.audioTrack
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
if (remotePeer !== null && remotePeer !== void 0 && (_remotePeer$videoTrac = remotePeer.videoTrack) !== null && _remotePeer$videoTrac !== void 0 && _remotePeer$videoTrac.trackId) {
|
|
356
|
+
list.push({
|
|
357
|
+
name: (remotePeer === null || remotePeer === void 0 ? void 0 : remotePeer.name) + "'s video",
|
|
358
|
+
track: remotePeer === null || remotePeer === void 0 ? void 0 : remotePeer.videoTrack
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
return list;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
// Getting Local Peer from hms instance
|
|
366
|
+
(0, _react.useEffect)(() => {
|
|
367
|
+
if (instance) {
|
|
368
|
+
const updateLocalPeer = async () => {
|
|
369
|
+
setLocalPeer(await instance.getLocalPeer());
|
|
370
|
+
};
|
|
371
|
+
updateLocalPeer();
|
|
372
|
+
}
|
|
373
|
+
}, [instance]);
|
|
374
|
+
|
|
375
|
+
// Getting Remote Peers from hms instance
|
|
376
|
+
(0, _react.useEffect)(() => {
|
|
377
|
+
if (instance) {
|
|
378
|
+
const updateRemotePeers = async () => {
|
|
379
|
+
setRemotePeers(await instance.getRemotePeers());
|
|
380
|
+
};
|
|
381
|
+
updateRemotePeers();
|
|
382
|
+
}
|
|
383
|
+
}, [instance]);
|
|
384
|
+
const isCurrentTrackSelected = currentTrack !== null;
|
|
385
|
+
const statsList = getStatsList();
|
|
386
|
+
const firstTrackInStatsList = statsList.length > 0 ? statsList[0] : null;
|
|
387
|
+
|
|
388
|
+
// If currentTrack is null and we have valid item in StatsList
|
|
389
|
+
// then showing stats for the first valid item in StatsList
|
|
390
|
+
(0, _react.useEffect)(() => {
|
|
391
|
+
if (!isCurrentTrackSelected && firstTrackInStatsList) {
|
|
392
|
+
setCurrentTrack(firstTrackInStatsList);
|
|
393
|
+
}
|
|
394
|
+
}, [isCurrentTrackSelected, firstTrackInStatsList]);
|
|
395
|
+
const selectedTrackId = currentTrack ? currentTrack.peerId || ((_currentTrack$track = currentTrack.track) === null || _currentTrack$track === void 0 ? void 0 : _currentTrack$track.trackId) : null;
|
|
396
|
+
const rtcStatsData = (0, _reactRedux.useSelector)(state => selectedTrackId ? state.app.rtcStats[selectedTrackId] : null);
|
|
397
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
398
|
+
style: _styles.styles.participantContainer
|
|
399
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
400
|
+
style: _styles.styles.participantsHeaderContainer
|
|
401
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
402
|
+
style: _styles.styles.participantsHeading
|
|
403
|
+
}, "Stats for Nerds")), /*#__PURE__*/_react.default.createElement(_SwitchRow.SwitchRow, {
|
|
404
|
+
text: "Show Stats on Tiles",
|
|
405
|
+
value: showStatsOnTiles,
|
|
406
|
+
onChange: value => dispatch((0, _actions.changeShowStats)(value))
|
|
407
|
+
}), /*#__PURE__*/_react.default.createElement(_MenuModal.Menu, {
|
|
408
|
+
visible: tracksListModalVisible,
|
|
409
|
+
anchor: /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
410
|
+
style: _styles.styles.statsModalMenu,
|
|
411
|
+
onPress: showMenu
|
|
412
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
413
|
+
style: _styles.styles.participantFilterText,
|
|
414
|
+
numberOfLines: 1
|
|
415
|
+
}, (currentTrack === null || currentTrack === void 0 ? void 0 : currentTrack.name) ?? 'Choose'), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
416
|
+
name: tracksListModalVisible ? 'arrow-drop-up' : 'arrow-drop-down',
|
|
417
|
+
style: _styles.styles.participantFilterIcon,
|
|
418
|
+
size: 24
|
|
419
|
+
})),
|
|
420
|
+
onRequestClose: hideMenu,
|
|
421
|
+
style: _styles.styles.participantsMenuContainer
|
|
422
|
+
}, statsList.map(trackObj => {
|
|
423
|
+
var _trackObj$track;
|
|
424
|
+
return /*#__PURE__*/_react.default.createElement(_MenuModal.MenuItem, {
|
|
425
|
+
onPress: () => {
|
|
426
|
+
hideMenu();
|
|
427
|
+
setCurrentTrack(trackObj);
|
|
428
|
+
},
|
|
429
|
+
key: trackObj === null || trackObj === void 0 || (_trackObj$track = trackObj.track) === null || _trackObj$track === void 0 ? void 0 : _trackObj$track.trackId
|
|
430
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
431
|
+
style: _styles.styles.participantMenuItem
|
|
432
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
433
|
+
style: _styles.styles.participantMenuItemName
|
|
434
|
+
}, trackObj === null || trackObj === void 0 ? void 0 : trackObj.name)));
|
|
435
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
436
|
+
contentContainerStyle: Array.isArray(rtcStatsData) ? null : _styles.styles.statsModalCardContainer
|
|
437
|
+
}, rtcStatsData ? Array.isArray(rtcStatsData) ? /*#__PURE__*/_react.default.createElement(_reactNative.View, null, rtcStatsData.map(rtcStatsItem => {
|
|
438
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
439
|
+
style: {
|
|
440
|
+
marginBottom: 12
|
|
441
|
+
}
|
|
442
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
443
|
+
style: _styles.styles.statsModalCardDescription
|
|
444
|
+
}, rtcStatsItem.layer), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
445
|
+
style: _styles.styles.statsModalCardContainer
|
|
446
|
+
}, Object.entries(rtcStatsItem).filter(item => item[0] !== 'layer').map(item => {
|
|
447
|
+
const [key, value] = item;
|
|
448
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
449
|
+
style: _styles.styles.statsModalCard,
|
|
450
|
+
key: key
|
|
451
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
452
|
+
style: _styles.styles.statsModalCardHeading
|
|
453
|
+
}, key), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
454
|
+
style: _styles.styles.statsModalCardDescription
|
|
455
|
+
}, key === 'resolution' ? `Height: ${(value === null || value === void 0 ? void 0 : value.height) ?? 0}, Width: ${(value === null || value === void 0 ? void 0 : value.width) ?? 0}` : key === 'qualityLimitationReasons' ? value.reason : value));
|
|
456
|
+
})));
|
|
457
|
+
})) : Object.entries(rtcStatsData).map(item => {
|
|
458
|
+
const [key, value] = item;
|
|
459
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
460
|
+
style: _styles.styles.statsModalCard,
|
|
461
|
+
key: key
|
|
462
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
463
|
+
style: _styles.styles.statsModalCardHeading
|
|
464
|
+
}, key), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
465
|
+
style: _styles.styles.statsModalCardDescription
|
|
466
|
+
}, key === 'resolution' ? `Height: ${(value === null || value === void 0 ? void 0 : value.height) ?? 0}, Width: ${(value === null || value === void 0 ? void 0 : value.width) ?? 0}` : value));
|
|
467
|
+
}) : null));
|
|
468
|
+
};
|
|
469
|
+
exports.RtcStatsModal = RtcStatsModal;
|
|
470
|
+
const LeaveRoomModal = _ref6 => {
|
|
471
|
+
let {
|
|
472
|
+
onSuccess,
|
|
473
|
+
cancelModal
|
|
474
|
+
} = _ref6;
|
|
475
|
+
const onLeave = () => {
|
|
476
|
+
cancelModal();
|
|
477
|
+
onSuccess();
|
|
478
|
+
};
|
|
479
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
480
|
+
style: _styles.styles.volumeModalContainer
|
|
481
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
482
|
+
style: _styles.styles.participantMenuItem
|
|
483
|
+
}, /*#__PURE__*/_react.default.createElement(_Feather.default, {
|
|
484
|
+
name: "log-out",
|
|
485
|
+
style: _styles.styles.participantMenuItemIcon,
|
|
486
|
+
size: 24
|
|
487
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
488
|
+
style: _styles.styles.roleChangeModalHeading
|
|
489
|
+
}, "Leave Studio")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
490
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
491
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
492
|
+
style: _styles.styles.roleChangeModalDescription
|
|
493
|
+
}, "Others will continue after you leave. You can join the studio again.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
494
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
495
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
496
|
+
title: "Don\u2019t Leave",
|
|
497
|
+
onPress: cancelModal,
|
|
498
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
499
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
500
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
501
|
+
title: "Leave",
|
|
502
|
+
onPress: onLeave,
|
|
503
|
+
viewStyle: [_styles.styles.roleChangeModalSuccessButton, _styles.styles.errorContainer],
|
|
504
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
505
|
+
})));
|
|
506
|
+
};
|
|
507
|
+
exports.LeaveRoomModal = LeaveRoomModal;
|
|
508
|
+
const EndRoomModal = _ref7 => {
|
|
509
|
+
let {
|
|
510
|
+
onSuccess,
|
|
511
|
+
cancelModal
|
|
512
|
+
} = _ref7;
|
|
513
|
+
const onEnd = () => {
|
|
514
|
+
cancelModal();
|
|
515
|
+
onSuccess();
|
|
516
|
+
};
|
|
517
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
518
|
+
style: _styles.styles.volumeModalContainer
|
|
519
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
520
|
+
style: _styles.styles.participantMenuItem
|
|
521
|
+
}, /*#__PURE__*/_react.default.createElement(_Feather.default, {
|
|
522
|
+
name: "alert-triangle",
|
|
523
|
+
style: [_styles.styles.participantMenuItemIcon, _styles.styles.error],
|
|
524
|
+
size: 24
|
|
525
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
526
|
+
style: [_styles.styles.roleChangeModalHeading, _styles.styles.error]
|
|
527
|
+
}, "End Session")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
528
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
529
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
530
|
+
style: _styles.styles.roleChangeModalDescription
|
|
531
|
+
}, "The session will end for everyone and all the activities will stop. You can\u2019t undo this action.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
532
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
533
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
534
|
+
title: "Don\u2019t End",
|
|
535
|
+
onPress: cancelModal,
|
|
536
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
537
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
538
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
539
|
+
title: "End Session",
|
|
540
|
+
onPress: onEnd,
|
|
541
|
+
viewStyle: [_styles.styles.roleChangeModalSuccessButton, _styles.styles.errorContainer],
|
|
542
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
543
|
+
})));
|
|
544
|
+
};
|
|
545
|
+
exports.EndRoomModal = EndRoomModal;
|
|
546
|
+
const ChangeAudioOutputModal = _ref8 => {
|
|
547
|
+
let {
|
|
548
|
+
cancelModal
|
|
549
|
+
} = _ref8;
|
|
550
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
551
|
+
const [currentOutputDevice, setCurrentOutputDevice] = (0, _react.useState)(_reactNativeHms.HMSAudioDevice.SPEAKER_PHONE);
|
|
552
|
+
const [audioOutputDevicesList, setAudioOutputDevicesList] = (0, _react.useState)([]);
|
|
553
|
+
const switchAudioOutput = () => {
|
|
554
|
+
instance === null || instance === void 0 ? void 0 : instance.switchAudioOutput(currentOutputDevice);
|
|
555
|
+
cancelModal();
|
|
556
|
+
};
|
|
557
|
+
(0, _react.useEffect)(() => {
|
|
558
|
+
const getList = async () => {
|
|
559
|
+
setAudioOutputDevicesList(await (instance === null || instance === void 0 ? void 0 : instance.getAudioDevicesList()));
|
|
560
|
+
setCurrentOutputDevice(await (instance === null || instance === void 0 ? void 0 : instance.getAudioOutputRouteType()));
|
|
561
|
+
};
|
|
562
|
+
getList();
|
|
563
|
+
}, [instance]);
|
|
564
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
565
|
+
style: _styles.styles.roleChangeModal
|
|
566
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
567
|
+
style: _styles.styles.roleChangeModalHeading
|
|
568
|
+
}, "Switch Audio Output"), audioOutputDevicesList.map(device => {
|
|
569
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
570
|
+
key: device,
|
|
571
|
+
style: _styles.styles.roleChangeModalPermissionContainer,
|
|
572
|
+
onPress: () => {
|
|
573
|
+
setCurrentOutputDevice(device);
|
|
574
|
+
}
|
|
575
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
576
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
577
|
+
}, currentOutputDevice === device && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
578
|
+
name: "check",
|
|
579
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
580
|
+
size: 10
|
|
581
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
582
|
+
style: _styles.styles.roleChangeModalPermission
|
|
583
|
+
}, device));
|
|
584
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
585
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
586
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
587
|
+
title: "Cancel",
|
|
588
|
+
onPress: cancelModal,
|
|
589
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
590
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
591
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
592
|
+
title: "Change",
|
|
593
|
+
onPress: switchAudioOutput,
|
|
594
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
595
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
596
|
+
})));
|
|
597
|
+
};
|
|
598
|
+
exports.ChangeAudioOutputModal = ChangeAudioOutputModal;
|
|
599
|
+
const ChangeAspectRatio = _ref9 => {
|
|
600
|
+
let {
|
|
601
|
+
cancelModal
|
|
602
|
+
} = _ref9;
|
|
603
|
+
const {
|
|
604
|
+
height
|
|
605
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
606
|
+
const dispatch = (0, _reactRedux.useDispatch)();
|
|
607
|
+
const hlsPlayerAspectRatio = (0, _reactRedux.useSelector)(state => state.app.hlsAspectRatio);
|
|
608
|
+
const [selectedRatio, setSelectedRatio] = (0, _react.useState)(hlsPlayerAspectRatio);
|
|
609
|
+
const handleChangePress = () => {
|
|
610
|
+
cancelModal();
|
|
611
|
+
if (hlsPlayerAspectRatio.id !== selectedRatio.id) {
|
|
612
|
+
dispatch((0, _actions.changeHLSAspectRatio)(selectedRatio));
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
616
|
+
style: _styles.styles.roleChangeModal
|
|
617
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
618
|
+
style: _styles.styles.roleChangeModalHeading
|
|
619
|
+
}, "Change Aspect Ratio"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
620
|
+
style: _styles.styles.roleChangeModalDescription
|
|
621
|
+
}, "Current: ", hlsPlayerAspectRatio.id), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
622
|
+
style: {
|
|
623
|
+
maxHeight: height * 0.4
|
|
624
|
+
}
|
|
625
|
+
}, _types.SUPPORTED_ASPECT_RATIOS.map(ratio => {
|
|
626
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
627
|
+
key: ratio.id,
|
|
628
|
+
style: _styles.styles.roleChangeModalPermissionContainer,
|
|
629
|
+
onPress: () => setSelectedRatio(ratio)
|
|
630
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
631
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
632
|
+
}, selectedRatio.id === ratio.id ? /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
633
|
+
name: "check",
|
|
634
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
635
|
+
size: 10
|
|
636
|
+
}) : null), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
637
|
+
style: _styles.styles.roleChangeModalPermission
|
|
638
|
+
}, ratio.id));
|
|
639
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
640
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
641
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
642
|
+
title: "Cancel",
|
|
643
|
+
onPress: cancelModal,
|
|
644
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
645
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
646
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
647
|
+
title: "Change",
|
|
648
|
+
onPress: handleChangePress,
|
|
649
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
650
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
651
|
+
})));
|
|
652
|
+
};
|
|
653
|
+
exports.ChangeAspectRatio = ChangeAspectRatio;
|
|
654
|
+
const ChangeAudioModeModal = _ref10 => {
|
|
655
|
+
let {
|
|
656
|
+
cancelModal,
|
|
657
|
+
audioMode,
|
|
658
|
+
setAudioMode
|
|
659
|
+
} = _ref10;
|
|
660
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
661
|
+
const [currentAudioMode, setCurrentAudioMode] = (0, _react.useState)(audioMode);
|
|
662
|
+
const AudioModeList = ['MODE_NORMAL', 'MODE_RINGTONE', 'MODE_IN_CALL', 'MODE_IN_COMMUNICATION', 'MODE_CALL_SCREENING'];
|
|
663
|
+
const switchAudioMode = () => {
|
|
664
|
+
instance === null || instance === void 0 ? void 0 : instance.setAudioMode(currentAudioMode);
|
|
665
|
+
setAudioMode(currentAudioMode);
|
|
666
|
+
cancelModal();
|
|
667
|
+
};
|
|
668
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
669
|
+
style: _styles.styles.roleChangeModal
|
|
670
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
671
|
+
style: _styles.styles.roleChangeModalHeading
|
|
672
|
+
}, "Switch Audio Output"), AudioModeList.map(mode => {
|
|
673
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
674
|
+
key: mode,
|
|
675
|
+
style: _styles.styles.roleChangeModalPermissionContainer,
|
|
676
|
+
onPress: () => {
|
|
677
|
+
setCurrentAudioMode(AudioModeList.indexOf(mode));
|
|
678
|
+
}
|
|
679
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
680
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
681
|
+
}, currentAudioMode === AudioModeList.indexOf(mode) && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
682
|
+
name: "check",
|
|
683
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
684
|
+
size: 10
|
|
685
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
686
|
+
style: _styles.styles.roleChangeModalPermission
|
|
687
|
+
}, mode));
|
|
688
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
689
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
690
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
691
|
+
title: "Cancel",
|
|
692
|
+
onPress: cancelModal,
|
|
693
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
694
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
695
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
696
|
+
title: "Change",
|
|
697
|
+
onPress: switchAudioMode,
|
|
698
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
699
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
700
|
+
})));
|
|
701
|
+
};
|
|
702
|
+
exports.ChangeAudioModeModal = ChangeAudioModeModal;
|
|
703
|
+
const ChangeAudioMixingModeModal = _ref11 => {
|
|
704
|
+
let {
|
|
705
|
+
newAudioMixingMode,
|
|
706
|
+
cancelModal,
|
|
707
|
+
setNewAudioMixingMode
|
|
708
|
+
} = _ref11;
|
|
709
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
710
|
+
const changeAudioMixingMode = async () => {
|
|
711
|
+
await (instance === null || instance === void 0 ? void 0 : instance.setAudioMixingMode(newAudioMixingMode));
|
|
712
|
+
cancelModal();
|
|
713
|
+
};
|
|
714
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
715
|
+
style: _styles.styles.roleChangeModal
|
|
716
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
717
|
+
style: _styles.styles.roleChangeModalHeading
|
|
718
|
+
}, "Change Audio Mixing Mode"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
719
|
+
style: _styles.styles.roleChangeModalDescription
|
|
720
|
+
}, "TALK_ONLY : only data captured by mic will be streamed in the room, TALK_AND_MUSIC : data captured by mic as well as playback audio being captured from device will be streamed in the room, MUSIC_ONLY : only the playback audio being captured from device will be streamed in the room"), Object.keys(_reactNativeHms.HMSAudioMixingMode).map(audioMixingMode => {
|
|
721
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
722
|
+
key: audioMixingMode,
|
|
723
|
+
style: _styles.styles.roleChangeModalPermissionContainer,
|
|
724
|
+
onPress: () => {
|
|
725
|
+
setNewAudioMixingMode(audioMixingMode);
|
|
726
|
+
}
|
|
727
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
728
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
729
|
+
}, newAudioMixingMode === audioMixingMode && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
730
|
+
name: "check",
|
|
731
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
732
|
+
size: 10
|
|
733
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
734
|
+
style: _styles.styles.roleChangeModalPermission
|
|
735
|
+
}, audioMixingMode));
|
|
736
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
737
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
738
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
739
|
+
title: "Cancel",
|
|
740
|
+
onPress: cancelModal,
|
|
741
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
742
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
743
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
744
|
+
title: "Change",
|
|
745
|
+
onPress: changeAudioMixingMode,
|
|
746
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
747
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
748
|
+
})));
|
|
749
|
+
};
|
|
750
|
+
exports.ChangeAudioMixingModeModal = ChangeAudioMixingModeModal;
|
|
751
|
+
const ChangeSortingModal = _ref12 => {
|
|
752
|
+
let {
|
|
753
|
+
data,
|
|
754
|
+
selectedItem,
|
|
755
|
+
onItemSelected,
|
|
756
|
+
cancelModal
|
|
757
|
+
} = _ref12;
|
|
758
|
+
const [sortingType, setSortingType] = (0, _react.useState)(selectedItem || _types.SortingType.DEFAULT);
|
|
759
|
+
const changeSorting = () => {
|
|
760
|
+
onItemSelected(sortingType);
|
|
761
|
+
cancelModal();
|
|
762
|
+
};
|
|
763
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
764
|
+
style: _styles.styles.roleChangeModal
|
|
765
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
766
|
+
style: _styles.styles.roleChangeModalHeading
|
|
767
|
+
}, "Sorting Style"), /*#__PURE__*/_react.default.createElement(_Picker.CustomPicker, {
|
|
768
|
+
data: data,
|
|
769
|
+
selectedItem: sortingType,
|
|
770
|
+
onItemSelected: setSortingType,
|
|
771
|
+
viewStyle: _styles.styles.picker
|
|
772
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
773
|
+
style: _styles.styles.sortingButtonContainer
|
|
774
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
775
|
+
title: "Cancel",
|
|
776
|
+
onPress: cancelModal,
|
|
777
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
778
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
779
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
780
|
+
title: "Change",
|
|
781
|
+
onPress: changeSorting,
|
|
782
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
783
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
784
|
+
})));
|
|
785
|
+
};
|
|
786
|
+
exports.ChangeSortingModal = ChangeSortingModal;
|
|
787
|
+
const ChangeLayoutModal = _ref13 => {
|
|
788
|
+
let {
|
|
789
|
+
data,
|
|
790
|
+
selectedItem,
|
|
791
|
+
onItemSelected,
|
|
792
|
+
cancelModal
|
|
793
|
+
} = _ref13;
|
|
794
|
+
const [layout, setLayout] = (0, _react.useState)(selectedItem);
|
|
795
|
+
const changeLayout = () => {
|
|
796
|
+
onItemSelected(layout);
|
|
797
|
+
cancelModal();
|
|
798
|
+
};
|
|
799
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
800
|
+
style: _styles.styles.roleChangeModal
|
|
801
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
802
|
+
style: _styles.styles.roleChangeModalHeading
|
|
803
|
+
}, "Layout Style"), /*#__PURE__*/_react.default.createElement(_Picker.CustomPicker, {
|
|
804
|
+
data: data,
|
|
805
|
+
selectedItem: layout,
|
|
806
|
+
onItemSelected: setLayout,
|
|
807
|
+
viewStyle: _styles.styles.picker
|
|
808
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
809
|
+
style: _styles.styles.sortingButtonContainer
|
|
810
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
811
|
+
title: "Cancel",
|
|
812
|
+
onPress: cancelModal,
|
|
813
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
814
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
815
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
816
|
+
title: "Change",
|
|
817
|
+
onPress: changeLayout,
|
|
818
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
819
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
820
|
+
})));
|
|
821
|
+
};
|
|
822
|
+
exports.ChangeLayoutModal = ChangeLayoutModal;
|
|
823
|
+
const ChangeTrackStateForRoleModal = _ref14 => {
|
|
824
|
+
var _localPeerRole$permis, _localPeerRole$permis2;
|
|
825
|
+
let {
|
|
826
|
+
cancelModal
|
|
827
|
+
} = _ref14;
|
|
828
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
829
|
+
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
830
|
+
const localPeerRole = (0, _reactRedux.useSelector)(state => {
|
|
831
|
+
var _state$hmsStates$loca;
|
|
832
|
+
return (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.role;
|
|
833
|
+
});
|
|
834
|
+
const [role, setRole] = (0, _react.useState)(localPeerRole);
|
|
835
|
+
const [visible, setVisible] = (0, _react.useState)(false);
|
|
836
|
+
const [trackType, setTrackType] = (0, _react.useState)(_reactNativeHms.HMSTrackType.VIDEO);
|
|
837
|
+
const [trackState, setTrackState] = (0, _react.useState)(false);
|
|
838
|
+
const hideMenu = () => setVisible(false);
|
|
839
|
+
const showMenu = () => setVisible(true);
|
|
840
|
+
const changeTrackState = async () => {
|
|
841
|
+
const source = _reactNativeHms.HMSTrackSource.REGULAR;
|
|
842
|
+
await (instance === null || instance === void 0 ? void 0 : instance.changeTrackStateForRoles(trackState, trackType, source, [role]).then(d => console.log('Change Track State For Role Success: ', d)).catch(e => console.log('Change Track State For Role Error: ', e)));
|
|
843
|
+
cancelModal();
|
|
844
|
+
};
|
|
845
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
846
|
+
style: _styles.styles.roleChangeModal
|
|
847
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
848
|
+
style: _styles.styles.roleChangeModalHeading
|
|
849
|
+
}, "Change Track State For Role"), /*#__PURE__*/_react.default.createElement(_MenuModal.Menu, {
|
|
850
|
+
visible: visible,
|
|
851
|
+
anchor: /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
852
|
+
style: _styles.styles.participantChangeRoleContainer,
|
|
853
|
+
onPress: showMenu
|
|
854
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
855
|
+
style: _styles.styles.participantFilterText,
|
|
856
|
+
numberOfLines: 1
|
|
857
|
+
}, role === null || role === void 0 ? void 0 : role.name), /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
858
|
+
name: visible ? 'arrow-drop-up' : 'arrow-drop-down',
|
|
859
|
+
style: _styles.styles.participantFilterIcon,
|
|
860
|
+
size: 24
|
|
861
|
+
})),
|
|
862
|
+
onRequestClose: hideMenu,
|
|
863
|
+
style: _styles.styles.participantsMenuContainer
|
|
864
|
+
}, roles === null || roles === void 0 ? void 0 : roles.map(knownRole => {
|
|
865
|
+
return /*#__PURE__*/_react.default.createElement(_MenuModal.MenuItem, {
|
|
866
|
+
onPress: () => {
|
|
867
|
+
hideMenu();
|
|
868
|
+
setRole(knownRole);
|
|
869
|
+
},
|
|
870
|
+
key: knownRole.name
|
|
871
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
872
|
+
style: _styles.styles.participantMenuItem
|
|
873
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
874
|
+
style: _styles.styles.participantMenuItemName
|
|
875
|
+
}, knownRole === null || knownRole === void 0 ? void 0 : knownRole.name)));
|
|
876
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
877
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
878
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
879
|
+
style: _styles.styles.changeTrackStateRoleOptionHeading
|
|
880
|
+
}, 'Track State: '), (localPeerRole === null || localPeerRole === void 0 || (_localPeerRole$permis = localPeerRole.permissions) === null || _localPeerRole$permis === void 0 ? void 0 : _localPeerRole$permis.mute) && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
881
|
+
style: _styles.styles.changeTrackStateRoleOption,
|
|
882
|
+
onPress: () => setTrackState(true)
|
|
883
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
884
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
885
|
+
}, trackState && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
886
|
+
name: "check",
|
|
887
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
888
|
+
size: 10
|
|
889
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
890
|
+
style: _styles.styles.roleChangeModalPermission
|
|
891
|
+
}, "MUTE")), (localPeerRole === null || localPeerRole === void 0 || (_localPeerRole$permis2 = localPeerRole.permissions) === null || _localPeerRole$permis2 === void 0 ? void 0 : _localPeerRole$permis2.unmute) && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
892
|
+
style: _styles.styles.changeTrackStateRoleOption,
|
|
893
|
+
onPress: () => setTrackState(false)
|
|
894
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
895
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
896
|
+
}, !trackState && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
897
|
+
name: "check",
|
|
898
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
899
|
+
size: 10
|
|
900
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
901
|
+
style: _styles.styles.roleChangeModalPermission
|
|
902
|
+
}, "UNMUTE"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
903
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
904
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
905
|
+
style: _styles.styles.changeTrackStateRoleOptionHeading
|
|
906
|
+
}, 'Track Type: '), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
907
|
+
style: _styles.styles.changeTrackStateRoleOption,
|
|
908
|
+
onPress: () => setTrackType(_reactNativeHms.HMSTrackType.AUDIO)
|
|
909
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
910
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
911
|
+
}, trackType === _reactNativeHms.HMSTrackType.AUDIO && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
912
|
+
name: "check",
|
|
913
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
914
|
+
size: 10
|
|
915
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
916
|
+
style: _styles.styles.roleChangeModalPermission
|
|
917
|
+
}, _reactNativeHms.HMSTrackType.AUDIO)), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
918
|
+
style: _styles.styles.changeTrackStateRoleOption,
|
|
919
|
+
onPress: () => setTrackType(_reactNativeHms.HMSTrackType.VIDEO)
|
|
920
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
921
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
922
|
+
}, trackType === _reactNativeHms.HMSTrackType.VIDEO && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
923
|
+
name: "check",
|
|
924
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
925
|
+
size: 10
|
|
926
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
927
|
+
style: _styles.styles.roleChangeModalPermission
|
|
928
|
+
}, _reactNativeHms.HMSTrackType.VIDEO))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
929
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
930
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
931
|
+
title: "Cancel",
|
|
932
|
+
onPress: cancelModal,
|
|
933
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
934
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
935
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
936
|
+
title: "Change",
|
|
937
|
+
onPress: changeTrackState,
|
|
938
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
939
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
940
|
+
})));
|
|
941
|
+
};
|
|
942
|
+
exports.ChangeTrackStateForRoleModal = ChangeTrackStateForRoleModal;
|
|
943
|
+
const ChangeTrackStateModal = _ref15 => {
|
|
944
|
+
var _roleChangeRequest$re, _roleChangeRequest$su2;
|
|
945
|
+
let {
|
|
946
|
+
roleChangeRequest,
|
|
947
|
+
cancelModal
|
|
948
|
+
} = _ref15;
|
|
949
|
+
const localPeer = (0, _reactRedux.useSelector)(state => state.hmsStates.localPeer);
|
|
950
|
+
const changeLayout = () => {
|
|
951
|
+
var _roleChangeRequest$su;
|
|
952
|
+
if ((roleChangeRequest === null || roleChangeRequest === void 0 || (_roleChangeRequest$su = roleChangeRequest.suggestedRole) === null || _roleChangeRequest$su === void 0 ? void 0 : _roleChangeRequest$su.toLocaleLowerCase()) === 'video') {
|
|
953
|
+
var _localPeer$localVideo;
|
|
954
|
+
localPeer === null || localPeer === void 0 || (_localPeer$localVideo = localPeer.localVideoTrack()) === null || _localPeer$localVideo === void 0 ? void 0 : _localPeer$localVideo.setMute(false);
|
|
955
|
+
} else {
|
|
956
|
+
var _localPeer$localAudio;
|
|
957
|
+
localPeer === null || localPeer === void 0 || (_localPeer$localAudio = localPeer.localAudioTrack()) === null || _localPeer$localAudio === void 0 ? void 0 : _localPeer$localAudio.setMute(false);
|
|
958
|
+
}
|
|
959
|
+
cancelModal();
|
|
960
|
+
};
|
|
961
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
962
|
+
style: _styles.styles.roleChangeModal
|
|
963
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
964
|
+
style: _styles.styles.roleChangeModalHeading
|
|
965
|
+
}, "Change Track State Request"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
966
|
+
style: _styles.styles.roleChangeText
|
|
967
|
+
}, `${roleChangeRequest === null || roleChangeRequest === void 0 || (_roleChangeRequest$re = roleChangeRequest.requestedBy) === null || _roleChangeRequest$re === void 0 ? void 0 : _roleChangeRequest$re.toLocaleUpperCase()} requested to unmute your regular ${roleChangeRequest === null || roleChangeRequest === void 0 || (_roleChangeRequest$su2 = roleChangeRequest.suggestedRole) === null || _roleChangeRequest$su2 === void 0 ? void 0 : _roleChangeRequest$su2.toLocaleUpperCase()}`), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
968
|
+
style: _styles.styles.sortingButtonContainer
|
|
969
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
970
|
+
title: "Reject",
|
|
971
|
+
onPress: cancelModal,
|
|
972
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
973
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
974
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
975
|
+
title: "Accept",
|
|
976
|
+
onPress: changeLayout,
|
|
977
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
978
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
979
|
+
})));
|
|
980
|
+
};
|
|
981
|
+
exports.ChangeTrackStateModal = ChangeTrackStateModal;
|
|
982
|
+
const HlsStreamingModal = _ref16 => {
|
|
983
|
+
let {
|
|
984
|
+
cancelModal
|
|
985
|
+
} = _ref16;
|
|
986
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
987
|
+
const roomID = (0, _reactRedux.useSelector)(state => state.user.roomID);
|
|
988
|
+
const [hlsStreamingDetails, setHLSStreamingDetails] = (0, _react.useState)({
|
|
989
|
+
meetingUrl: roomID ? roomID + '?skip_preview=true' : '',
|
|
990
|
+
metadata: ''
|
|
991
|
+
});
|
|
992
|
+
const [startHlsRetry, setStartHlsRetry] = (0, _react.useState)(true);
|
|
993
|
+
const [hlsRecordingDetails, setHLSRecordingDetails] = (0, _react.useState)({
|
|
994
|
+
singleFilePerLayer: false,
|
|
995
|
+
videoOnDemand: false
|
|
996
|
+
});
|
|
997
|
+
const changeLayout = () => {
|
|
998
|
+
instance === null || instance === void 0 ? void 0 : instance.startHLSStreaming().then(d => console.log('Start HLS Streaming Success: ', d)).catch(err => {
|
|
999
|
+
if (startHlsRetry) {
|
|
1000
|
+
setStartHlsRetry(false);
|
|
1001
|
+
const hmsHLSConfig = new _reactNativeHms.HMSHLSConfig({
|
|
1002
|
+
hlsRecordingConfig: hlsRecordingDetails,
|
|
1003
|
+
meetingURLVariants: [hlsStreamingDetails]
|
|
1004
|
+
});
|
|
1005
|
+
instance === null || instance === void 0 ? void 0 : instance.startHLSStreaming(hmsHLSConfig).then(d => console.log('Start HLS Streaming Success: ', d)).catch(e => console.log('Start HLS Streaming Error: ', e));
|
|
1006
|
+
} else {
|
|
1007
|
+
console.log('Start HLS Streaming Error: ', err);
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1010
|
+
cancelModal();
|
|
1011
|
+
};
|
|
1012
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1013
|
+
style: _styles.styles.roleChangeModal
|
|
1014
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1015
|
+
style: _styles.styles.roleChangeModalHeading
|
|
1016
|
+
}, "HLS Streaming Details"), /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
1017
|
+
onChangeText: value => {
|
|
1018
|
+
setHLSStreamingDetails({
|
|
1019
|
+
...hlsStreamingDetails,
|
|
1020
|
+
meetingUrl: value
|
|
1021
|
+
});
|
|
1022
|
+
},
|
|
1023
|
+
placeholderTextColor: _theme.COLORS.SECONDARY.DEFAULT,
|
|
1024
|
+
placeholder: "Enter meeting url",
|
|
1025
|
+
style: _styles.styles.input,
|
|
1026
|
+
defaultValue: hlsStreamingDetails.meetingUrl,
|
|
1027
|
+
returnKeyType: "done",
|
|
1028
|
+
multiline: true,
|
|
1029
|
+
blurOnSubmit: true
|
|
1030
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1031
|
+
style: _styles.styles.checkboxButtonContainer,
|
|
1032
|
+
onPress: () => {
|
|
1033
|
+
setHLSRecordingDetails({
|
|
1034
|
+
...hlsRecordingDetails,
|
|
1035
|
+
singleFilePerLayer: !hlsRecordingDetails.singleFilePerLayer
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1039
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
1040
|
+
}, hlsRecordingDetails.singleFilePerLayer && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
1041
|
+
name: "check",
|
|
1042
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
1043
|
+
size: 10
|
|
1044
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1045
|
+
style: _styles.styles.roleChangeModalPermission
|
|
1046
|
+
}, "SingleFilePerLayer")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1047
|
+
style: _styles.styles.checkboxButtonContainer,
|
|
1048
|
+
onPress: () => {
|
|
1049
|
+
setHLSRecordingDetails({
|
|
1050
|
+
...hlsRecordingDetails,
|
|
1051
|
+
videoOnDemand: !hlsRecordingDetails.videoOnDemand
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1055
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
1056
|
+
}, hlsRecordingDetails.videoOnDemand && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
1057
|
+
name: "check",
|
|
1058
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
1059
|
+
size: 10
|
|
1060
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1061
|
+
style: _styles.styles.roleChangeModalPermission
|
|
1062
|
+
}, "VideoOnDemand")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1063
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1064
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1065
|
+
title: "Cancel",
|
|
1066
|
+
onPress: cancelModal,
|
|
1067
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1068
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1069
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1070
|
+
title: "Start",
|
|
1071
|
+
onPress: changeLayout,
|
|
1072
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1073
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1074
|
+
})));
|
|
1075
|
+
};
|
|
1076
|
+
exports.HlsStreamingModal = HlsStreamingModal;
|
|
1077
|
+
const RecordingModal = _ref17 => {
|
|
1078
|
+
var _recordingDetails$res, _recordingDetails$res2, _recordingDetails$res4, _recordingDetails$res5;
|
|
1079
|
+
let {
|
|
1080
|
+
recordingModal,
|
|
1081
|
+
setModalVisible
|
|
1082
|
+
} = _ref17;
|
|
1083
|
+
const instance = (0, _hooksUtil.useHMSInstance)();
|
|
1084
|
+
const roomID = (0, _reactRedux.useSelector)(state => state.user.roomID);
|
|
1085
|
+
const [resolutionDetails, setResolutionDetails] = (0, _react.useState)(false);
|
|
1086
|
+
const [recordingDetails, setRecordingDetails] = (0, _react.useState)({
|
|
1087
|
+
record: false,
|
|
1088
|
+
meetingURL: roomID ? roomID + '?token=beam_recording' : undefined
|
|
1089
|
+
});
|
|
1090
|
+
const changeLayout = () => {
|
|
1091
|
+
instance === null || instance === void 0 ? void 0 : instance.startRTMPOrRecording(recordingDetails).then(d => console.log('Start RTMP Or Recording Success: ', d)).catch(e => console.log('Start RTMP Or Recording Error: ', e));
|
|
1092
|
+
setModalVisible(_types.ModalTypes.DEFAULT);
|
|
1093
|
+
};
|
|
1094
|
+
return recordingModal ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1095
|
+
style: _styles.styles.roleChangeModal
|
|
1096
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1097
|
+
style: _styles.styles.roleChangeModalHeading
|
|
1098
|
+
}, "Recording Details"), /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
1099
|
+
onChangeText: value => {
|
|
1100
|
+
setRecordingDetails({
|
|
1101
|
+
...recordingDetails,
|
|
1102
|
+
meetingURL: value
|
|
1103
|
+
});
|
|
1104
|
+
},
|
|
1105
|
+
placeholderTextColor: _theme.COLORS.SECONDARY.DEFAULT,
|
|
1106
|
+
placeholder: "Enter meeting url",
|
|
1107
|
+
style: _styles.styles.input,
|
|
1108
|
+
defaultValue: recordingDetails.meetingURL || '',
|
|
1109
|
+
returnKeyType: "done",
|
|
1110
|
+
multiline: true,
|
|
1111
|
+
blurOnSubmit: true
|
|
1112
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, {
|
|
1113
|
+
onChangeText: value => {
|
|
1114
|
+
if (value === '') {
|
|
1115
|
+
setRecordingDetails({
|
|
1116
|
+
...recordingDetails,
|
|
1117
|
+
rtmpURLs: undefined
|
|
1118
|
+
});
|
|
1119
|
+
} else {
|
|
1120
|
+
setRecordingDetails({
|
|
1121
|
+
...recordingDetails,
|
|
1122
|
+
rtmpURLs: [value]
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
placeholderTextColor: _theme.COLORS.SECONDARY.DEFAULT,
|
|
1127
|
+
placeholder: "Enter rtmp url",
|
|
1128
|
+
style: _styles.styles.input,
|
|
1129
|
+
defaultValue: recordingDetails.rtmpURLs ? recordingDetails.rtmpURLs[0] : '',
|
|
1130
|
+
returnKeyType: "done",
|
|
1131
|
+
multiline: true,
|
|
1132
|
+
blurOnSubmit: true
|
|
1133
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1134
|
+
style: _styles.styles.checkboxButtonContainer,
|
|
1135
|
+
onPress: () => {
|
|
1136
|
+
setRecordingDetails({
|
|
1137
|
+
...recordingDetails,
|
|
1138
|
+
record: !recordingDetails.record
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1142
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
1143
|
+
}, recordingDetails.record && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
1144
|
+
name: "check",
|
|
1145
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
1146
|
+
size: 10
|
|
1147
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1148
|
+
style: _styles.styles.roleChangeModalPermission
|
|
1149
|
+
}, "Record")), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1150
|
+
style: _styles.styles.checkboxButtonContainer,
|
|
1151
|
+
onPress: () => {
|
|
1152
|
+
setResolutionDetails(!resolutionDetails);
|
|
1153
|
+
if (!resolutionDetails) {
|
|
1154
|
+
setModalVisible(_types.ModalTypes.RESOLUTION, true);
|
|
1155
|
+
setRecordingDetails({
|
|
1156
|
+
...recordingDetails,
|
|
1157
|
+
resolution: {
|
|
1158
|
+
height: 720,
|
|
1159
|
+
width: 1280
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
} else {
|
|
1163
|
+
setRecordingDetails({
|
|
1164
|
+
...recordingDetails,
|
|
1165
|
+
resolution: undefined
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1170
|
+
style: _styles.styles.roleChangeModalCheckBox
|
|
1171
|
+
}, resolutionDetails && /*#__PURE__*/_react.default.createElement(_Entypo.default, {
|
|
1172
|
+
name: "check",
|
|
1173
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
1174
|
+
size: 10
|
|
1175
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1176
|
+
style: _styles.styles.roleChangeModalPermission
|
|
1177
|
+
}, "Resolution")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1178
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1179
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1180
|
+
title: "Cancel",
|
|
1181
|
+
onPress: () => setModalVisible(_types.ModalTypes.DEFAULT),
|
|
1182
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1183
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1184
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1185
|
+
title: "Start",
|
|
1186
|
+
onPress: changeLayout,
|
|
1187
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1188
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1189
|
+
}))) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1190
|
+
style: _styles.styles.roleChangeModal
|
|
1191
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1192
|
+
style: _styles.styles.roleChangeModalHeading
|
|
1193
|
+
}, "Resolution Details"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1194
|
+
style: _styles.styles.resolutionContainer
|
|
1195
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1196
|
+
style: _styles.styles.resolutionDetails
|
|
1197
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1198
|
+
style: _styles.styles.interRegular
|
|
1199
|
+
}, "Height :"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1200
|
+
style: _styles.styles.resolutionValue
|
|
1201
|
+
}, (_recordingDetails$res = recordingDetails.resolution) === null || _recordingDetails$res === void 0 ? void 0 : _recordingDetails$res.height)), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
1202
|
+
value: (_recordingDetails$res2 = recordingDetails.resolution) === null || _recordingDetails$res2 === void 0 ? void 0 : _recordingDetails$res2.height,
|
|
1203
|
+
maximumValue: 1280,
|
|
1204
|
+
minimumValue: 480,
|
|
1205
|
+
step: 10,
|
|
1206
|
+
onValueChange: value => {
|
|
1207
|
+
var _recordingDetails$res3;
|
|
1208
|
+
setRecordingDetails({
|
|
1209
|
+
...recordingDetails,
|
|
1210
|
+
resolution: {
|
|
1211
|
+
height: parseInt(value),
|
|
1212
|
+
width: ((_recordingDetails$res3 = recordingDetails.resolution) === null || _recordingDetails$res3 === void 0 ? void 0 : _recordingDetails$res3.width) ?? 1280
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1217
|
+
style: _styles.styles.resolutionDetails
|
|
1218
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1219
|
+
style: _styles.styles.interRegular
|
|
1220
|
+
}, "Width :"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1221
|
+
style: _styles.styles.resolutionValue
|
|
1222
|
+
}, (_recordingDetails$res4 = recordingDetails.resolution) === null || _recordingDetails$res4 === void 0 ? void 0 : _recordingDetails$res4.width)), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
1223
|
+
value: (_recordingDetails$res5 = recordingDetails.resolution) === null || _recordingDetails$res5 === void 0 ? void 0 : _recordingDetails$res5.width,
|
|
1224
|
+
maximumValue: 1280,
|
|
1225
|
+
minimumValue: 500,
|
|
1226
|
+
step: 10,
|
|
1227
|
+
onValueChange: value => {
|
|
1228
|
+
var _recordingDetails$res6;
|
|
1229
|
+
setRecordingDetails({
|
|
1230
|
+
...recordingDetails,
|
|
1231
|
+
resolution: {
|
|
1232
|
+
width: parseInt(value),
|
|
1233
|
+
height: ((_recordingDetails$res6 = recordingDetails.resolution) === null || _recordingDetails$res6 === void 0 ? void 0 : _recordingDetails$res6.height) ?? 720
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1238
|
+
style: _styles.styles.sortingButtonContainer
|
|
1239
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1240
|
+
title: "Back",
|
|
1241
|
+
onPress: () => setModalVisible(_types.ModalTypes.RECORDING, true),
|
|
1242
|
+
viewStyle: _styles.styles.backButton,
|
|
1243
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1244
|
+
})));
|
|
1245
|
+
};
|
|
1246
|
+
exports.RecordingModal = RecordingModal;
|
|
1247
|
+
const ChangeRoleAccepteModal = _ref18 => {
|
|
1248
|
+
var _roleChangeRequest$re2, _roleChangeRequest$su3;
|
|
1249
|
+
let {
|
|
1250
|
+
instance,
|
|
1251
|
+
roleChangeRequest,
|
|
1252
|
+
cancelModal
|
|
1253
|
+
} = _ref18;
|
|
1254
|
+
const changeLayout = () => {
|
|
1255
|
+
instance === null || instance === void 0 ? void 0 : instance.acceptRoleChange();
|
|
1256
|
+
cancelModal();
|
|
1257
|
+
};
|
|
1258
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1259
|
+
style: _styles.styles.roleChangeModal
|
|
1260
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1261
|
+
style: _styles.styles.roleChangeModalHeading
|
|
1262
|
+
}, "Role Change Details"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1263
|
+
style: _styles.styles.roleChangeText
|
|
1264
|
+
}, `Role change requested by ${roleChangeRequest === null || roleChangeRequest === void 0 || (_roleChangeRequest$re2 = roleChangeRequest.requestedBy) === null || _roleChangeRequest$re2 === void 0 ? void 0 : _roleChangeRequest$re2.toLocaleUpperCase()}. Changing role to ${roleChangeRequest === null || roleChangeRequest === void 0 || (_roleChangeRequest$su3 = roleChangeRequest.suggestedRole) === null || _roleChangeRequest$su3 === void 0 ? void 0 : _roleChangeRequest$su3.toLocaleUpperCase()}`), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1265
|
+
style: _styles.styles.sortingButtonContainer
|
|
1266
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1267
|
+
title: "Reject",
|
|
1268
|
+
onPress: cancelModal,
|
|
1269
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1270
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1271
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1272
|
+
title: "Accept",
|
|
1273
|
+
onPress: changeLayout,
|
|
1274
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1275
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1276
|
+
})));
|
|
1277
|
+
};
|
|
1278
|
+
exports.ChangeRoleAccepteModal = ChangeRoleAccepteModal;
|
|
1279
|
+
const EndHlsModal = _ref19 => {
|
|
1280
|
+
let {
|
|
1281
|
+
onSuccess,
|
|
1282
|
+
cancelModal
|
|
1283
|
+
} = _ref19;
|
|
1284
|
+
const onEnd = () => {
|
|
1285
|
+
cancelModal();
|
|
1286
|
+
onSuccess();
|
|
1287
|
+
};
|
|
1288
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1289
|
+
style: _styles.styles.volumeModalContainer
|
|
1290
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1291
|
+
style: _styles.styles.participantMenuItem
|
|
1292
|
+
}, /*#__PURE__*/_react.default.createElement(_Feather.default, {
|
|
1293
|
+
name: "alert-triangle",
|
|
1294
|
+
style: [_styles.styles.participantMenuItemIcon, _styles.styles.error],
|
|
1295
|
+
size: 24
|
|
1296
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1297
|
+
style: [_styles.styles.roleChangeModalHeading, _styles.styles.error]
|
|
1298
|
+
}, "End live stream for all?")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1299
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1300
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1301
|
+
style: _styles.styles.roleChangeModalDescription
|
|
1302
|
+
}, "Your stream will end and everone will go offline immediately in this room. You can\u2019t undo this action.")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1303
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1304
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1305
|
+
title: "Don\u2019t End",
|
|
1306
|
+
onPress: cancelModal,
|
|
1307
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1308
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1309
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1310
|
+
title: "End Stream",
|
|
1311
|
+
onPress: onEnd,
|
|
1312
|
+
viewStyle: [_styles.styles.roleChangeModalSuccessButton, _styles.styles.errorContainer],
|
|
1313
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1314
|
+
})));
|
|
1315
|
+
};
|
|
1316
|
+
exports.EndHlsModal = EndHlsModal;
|
|
1317
|
+
const RealTime = _ref20 => {
|
|
1318
|
+
let {
|
|
1319
|
+
startedAt
|
|
1320
|
+
} = _ref20;
|
|
1321
|
+
const [hour, setHour] = (0, _react.useState)(0);
|
|
1322
|
+
const [minute, setMinute] = (0, _react.useState)(0);
|
|
1323
|
+
const [second, setSecond] = (0, _react.useState)(0);
|
|
1324
|
+
(0, _react.useEffect)(() => {
|
|
1325
|
+
if (startedAt) {
|
|
1326
|
+
const millisecs = Date.now() - startedAt.getTime();
|
|
1327
|
+
const [h, min, sec] = (0, _functions.getTime)(Math.abs(millisecs));
|
|
1328
|
+
if (h > 0) {
|
|
1329
|
+
setHour(h);
|
|
1330
|
+
}
|
|
1331
|
+
if (min > 0) {
|
|
1332
|
+
setMinute(min);
|
|
1333
|
+
}
|
|
1334
|
+
if (sec > 0) {
|
|
1335
|
+
setSecond(sec);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}, [startedAt]);
|
|
1339
|
+
(0, _react.useEffect)(() => {
|
|
1340
|
+
const updatePostInfo = setInterval(() => {
|
|
1341
|
+
setSecond(sec => sec + 1);
|
|
1342
|
+
}, 1000);
|
|
1343
|
+
return () => {
|
|
1344
|
+
clearInterval(updatePostInfo);
|
|
1345
|
+
};
|
|
1346
|
+
}, []);
|
|
1347
|
+
(0, _react.useEffect)(() => {
|
|
1348
|
+
if (second === 60) {
|
|
1349
|
+
setSecond(0);
|
|
1350
|
+
setMinute(min => min + 1);
|
|
1351
|
+
}
|
|
1352
|
+
}, [second]);
|
|
1353
|
+
(0, _react.useEffect)(() => {
|
|
1354
|
+
if (minute === 60) {
|
|
1355
|
+
setMinute(0);
|
|
1356
|
+
setHour(hr => hr + 1);
|
|
1357
|
+
}
|
|
1358
|
+
}, [minute]);
|
|
1359
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1360
|
+
style: _styles.styles.liveTextContainer
|
|
1361
|
+
}, hour > 0 && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1362
|
+
style: _styles.styles.liveTimeText
|
|
1363
|
+
}, hour < 10 ? '0' + hour : hour, ":"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1364
|
+
style: _styles.styles.liveTimeText
|
|
1365
|
+
}, minute < 10 ? '0' + minute : minute, ":"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1366
|
+
style: _styles.styles.liveTimeText
|
|
1367
|
+
}, second < 10 ? '0' + second : second));
|
|
1368
|
+
};
|
|
1369
|
+
exports.RealTime = RealTime;
|
|
1370
|
+
const AudioShareSetVolumeModal = _ref21 => {
|
|
1371
|
+
let {
|
|
1372
|
+
success,
|
|
1373
|
+
cancel
|
|
1374
|
+
} = _ref21;
|
|
1375
|
+
const [volume, setVolume] = (0, _react.useState)(0);
|
|
1376
|
+
const changeVolume = () => {
|
|
1377
|
+
success(volume);
|
|
1378
|
+
cancel();
|
|
1379
|
+
};
|
|
1380
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1381
|
+
style: _styles.styles.volumeModalContainer
|
|
1382
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1383
|
+
style: _styles.styles.roleChangeModalHeading
|
|
1384
|
+
}, "Set Volume"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1385
|
+
style: _styles.styles.volumeModalSlider
|
|
1386
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1387
|
+
style: _styles.styles.roleChangeModalDescription
|
|
1388
|
+
}, "Volume: ", volume), /*#__PURE__*/_react.default.createElement(_reactNativeSlider.Slider, {
|
|
1389
|
+
value: volume,
|
|
1390
|
+
maximumValue: 1,
|
|
1391
|
+
minimumValue: 0,
|
|
1392
|
+
step: 0.1,
|
|
1393
|
+
onValueChange: value => setVolume(value[0])
|
|
1394
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1395
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1396
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1397
|
+
title: "Cancel",
|
|
1398
|
+
onPress: cancel,
|
|
1399
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1400
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1401
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1402
|
+
title: "Change",
|
|
1403
|
+
onPress: changeVolume,
|
|
1404
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1405
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1406
|
+
})));
|
|
1407
|
+
};
|
|
1408
|
+
exports.AudioShareSetVolumeModal = AudioShareSetVolumeModal;
|
|
1409
|
+
var RoleSelection = /*#__PURE__*/function (RoleSelection) {
|
|
1410
|
+
RoleSelection["TARGET"] = "TARGET";
|
|
1411
|
+
RoleSelection["TO_CHANGE"] = "TO_CHANGE";
|
|
1412
|
+
return RoleSelection;
|
|
1413
|
+
}(RoleSelection || {});
|
|
1414
|
+
const ChangeBulkRoleModal = _ref22 => {
|
|
1415
|
+
let {
|
|
1416
|
+
cancelModal
|
|
1417
|
+
} = _ref22;
|
|
1418
|
+
const hmsInstance = (0, _reactRedux.useSelector)(state => state.user.hmsInstance);
|
|
1419
|
+
const roles = (0, _reactRedux.useSelector)(state => state.hmsStates.roles);
|
|
1420
|
+
const [showRolesSelectionView, setShowRolesSelectionView] = (0, _react.useState)(null);
|
|
1421
|
+
const [targetRole, setTargetRole] = (0, _react.useState)(null);
|
|
1422
|
+
const [rolesToChange, setRolesToChange] = (0, _react.useState)([]);
|
|
1423
|
+
const changeRole = async () => {
|
|
1424
|
+
if (!hmsInstance || !targetRole) {
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
hmsInstance.changeRoleOfPeersWithRoles(rolesToChange.filter(roleToChange => roleToChange.name !== targetRole.name), targetRole);
|
|
1428
|
+
cancelModal();
|
|
1429
|
+
};
|
|
1430
|
+
const handleRoleSelection = roleSelected => {
|
|
1431
|
+
if (showRolesSelectionView === RoleSelection.TARGET) {
|
|
1432
|
+
setTargetRole(roleSelected);
|
|
1433
|
+
} else {
|
|
1434
|
+
setRolesToChange(prevRolesToChange => {
|
|
1435
|
+
if (prevRolesToChange.findIndex(role => role.name === roleSelected.name) >= 0) {
|
|
1436
|
+
return prevRolesToChange.filter(role => role.name !== roleSelected.name);
|
|
1437
|
+
}
|
|
1438
|
+
return [...prevRolesToChange, roleSelected];
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
// if targetRole is not available, OR
|
|
1444
|
+
// role or rolesToChange is not available. then "Change" button should be disabled
|
|
1445
|
+
const changeSubmitDisabled = !targetRole || rolesToChange.length === 0;
|
|
1446
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1447
|
+
style: bulkRoleStyles.container
|
|
1448
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1449
|
+
style: _styles.styles.roleChangeModalHeading
|
|
1450
|
+
}, "Bulk Role Change"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1451
|
+
style: bulkRoleStyles.contentContainer
|
|
1452
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1453
|
+
style: bulkRoleStyles.row
|
|
1454
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1455
|
+
style: bulkRoleStyles.label
|
|
1456
|
+
}, "Select Roles to Change"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1457
|
+
style: bulkRoleStyles.btn,
|
|
1458
|
+
onPress: () => setShowRolesSelectionView(RoleSelection.TO_CHANGE)
|
|
1459
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1460
|
+
style: bulkRoleStyles.value,
|
|
1461
|
+
numberOfLines: 1
|
|
1462
|
+
}, rolesToChange.map(role => role.name).join(', ') || 'Select Roles'), /*#__PURE__*/_react.default.createElement(_MaterialCommunityIcons.default, {
|
|
1463
|
+
name: "chevron-right",
|
|
1464
|
+
size: 16,
|
|
1465
|
+
style: bulkRoleStyles.chevronIcon
|
|
1466
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1467
|
+
style: bulkRoleStyles.row
|
|
1468
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1469
|
+
style: bulkRoleStyles.label
|
|
1470
|
+
}, "Target Role"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1471
|
+
style: bulkRoleStyles.btn,
|
|
1472
|
+
onPress: () => setShowRolesSelectionView(RoleSelection.TARGET)
|
|
1473
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1474
|
+
style: bulkRoleStyles.value
|
|
1475
|
+
}, targetRole ? targetRole.name : 'Select Role'), /*#__PURE__*/_react.default.createElement(_MaterialCommunityIcons.default, {
|
|
1476
|
+
name: "chevron-right",
|
|
1477
|
+
size: 16,
|
|
1478
|
+
style: bulkRoleStyles.chevronIcon
|
|
1479
|
+
})))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1480
|
+
style: _styles.styles.roleChangeModalPermissionContainer
|
|
1481
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1482
|
+
title: "Cancel",
|
|
1483
|
+
onPress: cancelModal,
|
|
1484
|
+
viewStyle: _styles.styles.roleChangeModalCancelButton,
|
|
1485
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1486
|
+
}), /*#__PURE__*/_react.default.createElement(_CustomButton.CustomButton, {
|
|
1487
|
+
disabled: changeSubmitDisabled,
|
|
1488
|
+
title: "Change",
|
|
1489
|
+
onPress: changeRole,
|
|
1490
|
+
viewStyle: _styles.styles.roleChangeModalSuccessButton,
|
|
1491
|
+
textStyle: _styles.styles.roleChangeModalButtonText
|
|
1492
|
+
})), showRolesSelectionView ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1493
|
+
style: bulkRoleStyles.roleSelectionBackdrop
|
|
1494
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1495
|
+
style: bulkRoleStyles.roleSelectionContainer
|
|
1496
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1497
|
+
style: bulkRoleStyles.heading
|
|
1498
|
+
}, showRolesSelectionView === RoleSelection.TARGET ? 'Select Target Role' : 'Select Role to Change'), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
|
|
1499
|
+
centerContent: true,
|
|
1500
|
+
contentContainerStyle: bulkRoleStyles.scrollContainer
|
|
1501
|
+
}, roles.map(role => {
|
|
1502
|
+
const selected = showRolesSelectionView === RoleSelection.TARGET ? role.name === (targetRole === null || targetRole === void 0 ? void 0 : targetRole.name) : rolesToChange.findIndex(roleToChange => roleToChange.name === role.name) >= 0;
|
|
1503
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1504
|
+
key: role.name,
|
|
1505
|
+
style: bulkRoleStyles.roleBtn,
|
|
1506
|
+
onPress: () => handleRoleSelection(role)
|
|
1507
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
1508
|
+
style: bulkRoleStyles.checkboxContainer
|
|
1509
|
+
}, showRolesSelectionView === RoleSelection.TARGET ? /*#__PURE__*/_react.default.createElement(_MaterialCommunityIcons.default, {
|
|
1510
|
+
name: selected ? 'radiobox-marked' : 'radiobox-blank',
|
|
1511
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
1512
|
+
size: 20
|
|
1513
|
+
}) : /*#__PURE__*/_react.default.createElement(_MaterialCommunityIcons.default, {
|
|
1514
|
+
name: selected ? 'checkbox-outline' : 'checkbox-blank-outline',
|
|
1515
|
+
style: _styles.styles.roleChangeModalCheck,
|
|
1516
|
+
size: 24
|
|
1517
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1518
|
+
style: bulkRoleStyles.checkboxLabel
|
|
1519
|
+
}, role.name));
|
|
1520
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
1521
|
+
style: bulkRoleStyles.roleSelectionDone,
|
|
1522
|
+
onPress: () => setShowRolesSelectionView(null)
|
|
1523
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
1524
|
+
style: bulkRoleStyles.roleSelectionDoneText
|
|
1525
|
+
}, "Done")))) : null);
|
|
1526
|
+
};
|
|
1527
|
+
exports.ChangeBulkRoleModal = ChangeBulkRoleModal;
|
|
1528
|
+
const bulkRoleStyles = _reactNative.StyleSheet.create({
|
|
1529
|
+
container: {
|
|
1530
|
+
padding: 24,
|
|
1531
|
+
position: 'relative',
|
|
1532
|
+
height: 320
|
|
1533
|
+
},
|
|
1534
|
+
contentContainer: {
|
|
1535
|
+
flex: 1,
|
|
1536
|
+
justifyContent: 'center',
|
|
1537
|
+
marginTop: 24
|
|
1538
|
+
},
|
|
1539
|
+
row: {
|
|
1540
|
+
// flexGrow: 1,
|
|
1541
|
+
marginVertical: 20,
|
|
1542
|
+
flexDirection: 'row',
|
|
1543
|
+
alignItems: 'center',
|
|
1544
|
+
justifyContent: 'space-between'
|
|
1545
|
+
},
|
|
1546
|
+
label: {
|
|
1547
|
+
color: _theme.COLORS.TEXT.HIGH_EMPHASIS
|
|
1548
|
+
},
|
|
1549
|
+
value: {
|
|
1550
|
+
flex: 1,
|
|
1551
|
+
color: _theme.COLORS.TEXT.MEDIUM_EMPHASIS,
|
|
1552
|
+
textAlign: 'right'
|
|
1553
|
+
},
|
|
1554
|
+
toggleContainer: {
|
|
1555
|
+
width: 160,
|
|
1556
|
+
borderRadius: 6,
|
|
1557
|
+
backgroundColor: _theme.COLORS.SECONDARY.DARK,
|
|
1558
|
+
flexDirection: 'row',
|
|
1559
|
+
paddingVertical: 2,
|
|
1560
|
+
paddingHorizontal: 2
|
|
1561
|
+
},
|
|
1562
|
+
toggleItem: {
|
|
1563
|
+
flex: 1,
|
|
1564
|
+
alignItems: 'center',
|
|
1565
|
+
paddingVertical: 6
|
|
1566
|
+
},
|
|
1567
|
+
toggleActiveItem: {
|
|
1568
|
+
flex: 1,
|
|
1569
|
+
alignItems: 'center',
|
|
1570
|
+
paddingVertical: 6,
|
|
1571
|
+
borderRadius: 4,
|
|
1572
|
+
backgroundColor: _theme.COLORS.SECONDARY.DEFAULT
|
|
1573
|
+
},
|
|
1574
|
+
btn: {
|
|
1575
|
+
flex: 1,
|
|
1576
|
+
flexDirection: 'row',
|
|
1577
|
+
alignItems: 'center',
|
|
1578
|
+
justifyContent: 'flex-end',
|
|
1579
|
+
marginLeft: 4
|
|
1580
|
+
},
|
|
1581
|
+
chevronIcon: {
|
|
1582
|
+
color: _theme.COLORS.TEXT.MEDIUM_EMPHASIS
|
|
1583
|
+
},
|
|
1584
|
+
roleSelectionBackdrop: {
|
|
1585
|
+
position: 'absolute',
|
|
1586
|
+
top: 24,
|
|
1587
|
+
left: 24,
|
|
1588
|
+
width: '100%',
|
|
1589
|
+
height: '100%',
|
|
1590
|
+
shadowColor: _theme.COLORS.SURFACE.LIGHT,
|
|
1591
|
+
shadowOpacity: 0.5,
|
|
1592
|
+
shadowRadius: 24,
|
|
1593
|
+
padding: 8
|
|
1594
|
+
},
|
|
1595
|
+
roleSelectionContainer: {
|
|
1596
|
+
flex: 1,
|
|
1597
|
+
padding: 12,
|
|
1598
|
+
backgroundColor: _theme.COLORS.SURFACE.LIGHT,
|
|
1599
|
+
borderRadius: 8,
|
|
1600
|
+
borderWidth: 0.5,
|
|
1601
|
+
borderColor: _theme.COLORS.BORDER.LIGHT
|
|
1602
|
+
},
|
|
1603
|
+
heading: {
|
|
1604
|
+
fontSize: 16,
|
|
1605
|
+
lineHeight: 24,
|
|
1606
|
+
color: _theme.COLORS.TEXT.HIGH_EMPHASIS,
|
|
1607
|
+
marginVertical: 4,
|
|
1608
|
+
marginLeft: 4
|
|
1609
|
+
},
|
|
1610
|
+
scrollContainer: {
|
|
1611
|
+
paddingHorizontal: 12
|
|
1612
|
+
},
|
|
1613
|
+
checkboxContainer: {
|
|
1614
|
+
marginRight: 12,
|
|
1615
|
+
justifyContent: 'center',
|
|
1616
|
+
alignItems: 'center'
|
|
1617
|
+
},
|
|
1618
|
+
checkboxLabel: {
|
|
1619
|
+
color: _theme.COLORS.TEXT.MEDIUM_EMPHASIS
|
|
1620
|
+
},
|
|
1621
|
+
roleBtn: {
|
|
1622
|
+
paddingVertical: 12,
|
|
1623
|
+
flexDirection: 'row',
|
|
1624
|
+
alignItems: 'center'
|
|
1625
|
+
},
|
|
1626
|
+
roleSelectionDone: {
|
|
1627
|
+
flexDirection: 'row',
|
|
1628
|
+
alignItems: 'center',
|
|
1629
|
+
justifyContent: 'center',
|
|
1630
|
+
marginTop: 4,
|
|
1631
|
+
paddingVertical: 6
|
|
1632
|
+
},
|
|
1633
|
+
roleSelectionDoneText: {
|
|
1634
|
+
fontSize: 14,
|
|
1635
|
+
lineHeight: 22,
|
|
1636
|
+
fontFamily: 'Inter-Medium',
|
|
1637
|
+
color: _theme.COLORS.TEXT.HIGH_EMPHASIS
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
//# sourceMappingURL=Modals.js.map
|