@100mslive/react-native-room-kit 0.0.4 → 0.1.0
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/README.md +413 -11
- package/lib/commonjs/HMSInstanceSetup.js +2 -1
- package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
- package/lib/commonjs/HMSPrebuilt.js +4 -2
- package/lib/commonjs/HMSPrebuilt.js.map +1 -1
- package/lib/commonjs/HMSRoomSetup.js +39 -8
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
- package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
- package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/commonjs/Icons/BRB/index.js +35 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -0
- package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
- package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
- package/lib/commonjs/Icons/Camera/index.js +5 -1
- package/lib/commonjs/Icons/Camera/index.js.map +1 -1
- package/lib/commonjs/Icons/Chat/index.js +5 -1
- package/lib/commonjs/Icons/Chat/index.js.map +1 -1
- package/lib/commonjs/Icons/Check/index.js +5 -1
- package/lib/commonjs/Icons/Check/index.js.map +1 -1
- package/lib/commonjs/Icons/Chevron/index.js +5 -1
- package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
- package/lib/commonjs/Icons/Close/index.js +5 -1
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/commonjs/Icons/Hamburger/index.js +34 -0
- package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
- package/lib/commonjs/Icons/Hand/index.js +6 -4
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Headphones/index.js +5 -1
- package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +34 -0
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
- package/lib/commonjs/Icons/Mic/index.js +5 -1
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +34 -0
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
- package/lib/commonjs/Icons/Participants/index.js +5 -1
- package/lib/commonjs/Icons/Participants/index.js.map +1 -1
- package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/commonjs/Icons/Pencil/index.js +34 -0
- package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
- package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/commonjs/Icons/Pin/index.js +34 -0
- package/lib/commonjs/Icons/Pin/index.js.map +1 -0
- package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/commonjs/Icons/Recording/index.js +34 -0
- package/lib/commonjs/Icons/Recording/index.js.map +1 -0
- package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
- package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
- package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
- package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
- package/lib/commonjs/Icons/Speaker/index.js +5 -1
- package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
- package/lib/commonjs/Icons/Star/assets/star.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
- package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
- package/lib/commonjs/Icons/Star/index.js +34 -0
- package/lib/commonjs/Icons/Star/index.js.map +1 -0
- package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/commonjs/Icons/Stop/index.js +34 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -0
- package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
- package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
- package/lib/commonjs/Icons/Wave/index.js +5 -1
- package/lib/commonjs/Icons/Wave/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +110 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AvatarView.js +1 -2
- package/lib/commonjs/components/AvatarView.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +6 -4
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +157 -0
- package/lib/commonjs/components/BottomSheet.js.map +1 -0
- package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
- package/lib/commonjs/components/CompanyLogo.js +38 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -0
- package/lib/commonjs/components/CustomInput.js +2 -3
- package/lib/commonjs/components/CustomInput.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +12 -52
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +85 -0
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
- package/lib/commonjs/components/Footer.js +8 -9
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/GridView.js +53 -7
- package/lib/commonjs/components/GridView.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +66 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
- package/lib/commonjs/components/HMSDangerButton.js +53 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
- package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
- package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +91 -106
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
- package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
- package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
- package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTile.js +16 -8
- package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
- package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/commonjs/components/HMSRoomOptions.js +20 -7
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
- package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +66 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -0
- package/lib/commonjs/components/Header.js +30 -30
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
- package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
- package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/commonjs/components/Meeting.js +7 -3
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MiniView.js +163 -0
- package/lib/commonjs/components/MiniView.js.map +1 -0
- package/lib/commonjs/components/Modals.js +31 -116
- package/lib/commonjs/components/Modals.js.map +1 -1
- package/lib/commonjs/components/PaginationDots.js +56 -0
- package/lib/commonjs/components/PaginationDots.js.map +1 -0
- package/lib/commonjs/components/ParticipantsCount.js +55 -0
- package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
- package/lib/commonjs/components/PeerMinimizedView.js +114 -0
- package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
- package/lib/commonjs/components/PeerSettingsModalContent.js +68 -51
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
- package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
- package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
- package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
- package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
- package/lib/commonjs/components/PressableIcon.js +15 -8
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/components/Preview.js +19 -6
- package/lib/commonjs/components/Preview.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +232 -362
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
- package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
- package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
- package/lib/commonjs/components/Tile.js +29 -90
- package/lib/commonjs/components/Tile.js.map +1 -1
- package/lib/commonjs/components/TilesContainer.js +99 -10
- package/lib/commonjs/components/TilesContainer.js.map +1 -1
- package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
- package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
- package/lib/commonjs/components/WebrtcView.js +51 -0
- package/lib/commonjs/components/WebrtcView.js.map +1 -0
- package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
- package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
- package/lib/commonjs/hooks-sdk-selectors.js +6 -1
- package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
- package/lib/commonjs/hooks-sdk.js +16 -1
- package/lib/commonjs/hooks-sdk.js.map +1 -1
- package/lib/commonjs/hooks-util-selectors.js +8 -2
- package/lib/commonjs/hooks-util-selectors.js.map +1 -1
- package/lib/commonjs/hooks-util.js +315 -93
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/modules/HMSManager.js +23 -0
- package/lib/commonjs/modules/HMSManager.js.map +1 -0
- package/lib/commonjs/modules/parser.js +22 -0
- package/lib/commonjs/modules/parser.js.map +1 -0
- package/lib/commonjs/peerTrackNodeUtils.js +8 -3
- package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +16 -1
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +51 -1
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +57 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/redux/reducers/userState.js +3 -1
- package/lib/commonjs/redux/reducers/userState.js.map +1 -1
- package/lib/commonjs/utils/functions.js +51 -1
- package/lib/commonjs/utils/functions.js.map +1 -1
- package/lib/commonjs/utils/theme.js +62 -8
- package/lib/commonjs/utils/theme.js.map +1 -1
- package/lib/commonjs/utils/types.js +8 -1
- package/lib/commonjs/utils/types.js.map +1 -1
- package/lib/module/HMSInstanceSetup.js +2 -1
- package/lib/module/HMSInstanceSetup.js.map +1 -1
- package/lib/module/HMSPrebuilt.js +4 -2
- package/lib/module/HMSPrebuilt.js.map +1 -1
- package/lib/module/HMSRoomSetup.js +41 -10
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/lib/module/Icons/AlertTriangle/index.js +26 -0
- package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
- package/lib/module/Icons/AnswerPhone/index.js +5 -1
- package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
- package/lib/module/Icons/BRB/assets/BRB.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
- package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
- package/lib/module/Icons/BRB/index.js +27 -0
- package/lib/module/Icons/BRB/index.js.map +1 -0
- package/lib/module/Icons/Bluetooth/index.js +5 -1
- package/lib/module/Icons/Bluetooth/index.js.map +1 -1
- package/lib/module/Icons/Camera/index.js +5 -1
- package/lib/module/Icons/Camera/index.js.map +1 -1
- package/lib/module/Icons/Chat/index.js +5 -1
- package/lib/module/Icons/Chat/index.js.map +1 -1
- package/lib/module/Icons/Check/index.js +5 -1
- package/lib/module/Icons/Check/index.js.map +1 -1
- package/lib/module/Icons/Chevron/index.js +5 -1
- package/lib/module/Icons/Chevron/index.js.map +1 -1
- package/lib/module/Icons/Close/index.js +5 -1
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/lib/module/Icons/Hamburger/index.js +26 -0
- package/lib/module/Icons/Hamburger/index.js.map +1 -0
- package/lib/module/Icons/Hand/index.js +6 -4
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Headphones/index.js +5 -1
- package/lib/module/Icons/Headphones/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +26 -0
- package/lib/module/Icons/Maximize/index.js.map +1 -0
- package/lib/module/Icons/Mic/index.js +5 -1
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +26 -0
- package/lib/module/Icons/Minimize/index.js.map +1 -0
- package/lib/module/Icons/Participants/index.js +5 -1
- package/lib/module/Icons/Participants/index.js.map +1 -1
- package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/lib/module/Icons/Pencil/index.js +26 -0
- package/lib/module/Icons/Pencil/index.js.map +1 -0
- package/lib/module/Icons/Pin/assets/pin.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
- package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
- package/lib/module/Icons/Pin/index.js +26 -0
- package/lib/module/Icons/Pin/index.js.map +1 -0
- package/lib/module/Icons/Recording/assets/recording.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
- package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
- package/lib/module/Icons/Recording/index.js +26 -0
- package/lib/module/Icons/Recording/index.js.map +1 -0
- package/lib/module/Icons/RotateCamera/index.js +5 -1
- package/lib/module/Icons/RotateCamera/index.js.map +1 -1
- package/lib/module/Icons/ScreenShare/index.js +5 -1
- package/lib/module/Icons/ScreenShare/index.js.map +1 -1
- package/lib/module/Icons/Speaker/index.js +5 -1
- package/lib/module/Icons/Speaker/index.js.map +1 -1
- package/lib/module/Icons/Star/assets/star.png +0 -0
- package/lib/module/Icons/Star/assets/star@2x.png +0 -0
- package/lib/module/Icons/Star/assets/star@3x.png +0 -0
- package/lib/module/Icons/Star/index.js +26 -0
- package/lib/module/Icons/Star/index.js.map +1 -0
- package/lib/module/Icons/Stop/assets/stop.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
- package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
- package/lib/module/Icons/Stop/index.js +26 -0
- package/lib/module/Icons/Stop/index.js.map +1 -0
- package/lib/module/Icons/ThreeDots/index.js +5 -1
- package/lib/module/Icons/ThreeDots/index.js.map +1 -1
- package/lib/module/Icons/Wave/index.js +5 -1
- package/lib/module/Icons/Wave/index.js.map +1 -1
- package/lib/module/Icons/index.js +10 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AvatarView.js +1 -2
- package/lib/module/components/AvatarView.js.map +1 -1
- package/lib/module/components/BackButton.js +6 -4
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +146 -0
- package/lib/module/components/BottomSheet.js.map +1 -0
- package/lib/module/components/ChangeNameModalContent.js +122 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -0
- package/lib/module/components/CompanyLogo.js +30 -0
- package/lib/module/components/CompanyLogo.js.map +1 -0
- package/lib/module/components/CustomInput.js +2 -3
- package/lib/module/components/CustomInput.js.map +1 -1
- package/lib/module/components/DisplayView.js +16 -55
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +76 -0
- package/lib/module/components/EndRoomModalContent.js.map +1 -0
- package/lib/module/components/Footer.js +9 -10
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/GridView.js +55 -10
- package/lib/module/components/GridView.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +57 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -0
- package/lib/module/components/HMSDangerButton.js +44 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -0
- package/lib/module/components/HMSHLSStreamLoading.js +17 -8
- package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +42 -77
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageCameraRotation.js +5 -4
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +94 -107
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +1 -9
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +1 -9
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSMeetingEnded.js +1 -2
- package/lib/module/components/HMSMeetingEnded.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +3 -37
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
- package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +26 -49
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
- package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSPreviewPeersList.js +21 -10
- package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +22 -9
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTile.js +16 -8
- package/lib/module/components/HMSPreviewTile.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +14 -6
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +44 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -0
- package/lib/module/components/HMSRecordingIndicator.js +37 -0
- package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
- package/lib/module/components/HMSRoomOptions.js +21 -8
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSShowNetworkQuality.js +6 -5
- package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +57 -0
- package/lib/module/components/HMSTextInput.js.map +1 -0
- package/lib/module/components/Header.js +32 -32
- package/lib/module/components/Header.js.map +1 -1
- package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
- package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
- package/lib/module/components/LocalPeerScreenshareView.js +66 -0
- package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
- package/lib/module/components/Meeting.js +8 -4
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MiniView.js +154 -0
- package/lib/module/components/MiniView.js.map +1 -0
- package/lib/module/components/Modals.js +31 -114
- package/lib/module/components/Modals.js.map +1 -1
- package/lib/module/components/PaginationDots.js +47 -0
- package/lib/module/components/PaginationDots.js.map +1 -0
- package/lib/module/components/ParticipantsCount.js +46 -0
- package/lib/module/components/ParticipantsCount.js.map +1 -0
- package/lib/module/components/PeerMinimizedView.js +104 -0
- package/lib/module/components/PeerMinimizedView.js.map +1 -0
- package/lib/module/components/PeerSettingsModalContent.js +71 -54
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
- package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
- package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
- package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
- package/lib/module/components/PeerVideoTile/index.js +2 -0
- package/lib/module/components/PeerVideoTile/index.js.map +1 -0
- package/lib/module/components/PressableIcon.js +15 -8
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/components/Preview.js +19 -6
- package/lib/module/components/Preview.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +233 -364
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
- package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
- package/lib/module/components/StopRecordingModalContent.js +88 -0
- package/lib/module/components/StopRecordingModalContent.js.map +1 -0
- package/lib/module/components/Tile.js +30 -91
- package/lib/module/components/Tile.js.map +1 -1
- package/lib/module/components/TilesContainer.js +100 -10
- package/lib/module/components/TilesContainer.js.map +1 -1
- package/lib/module/components/UnmountAfterDelay.js +39 -0
- package/lib/module/components/UnmountAfterDelay.js.map +1 -0
- package/lib/module/components/WebrtcView.js +41 -0
- package/lib/module/components/WebrtcView.js.map +1 -0
- package/lib/module/components/WelcomeInMeeting.js +45 -0
- package/lib/module/components/WelcomeInMeeting.js.map +1 -0
- package/lib/module/hooks-sdk-selectors.js +4 -0
- package/lib/module/hooks-sdk-selectors.js.map +1 -1
- package/lib/module/hooks-sdk.js +16 -1
- package/lib/module/hooks-sdk.js.map +1 -1
- package/lib/module/hooks-util-selectors.js +8 -2
- package/lib/module/hooks-util-selectors.js.map +1 -1
- package/lib/module/hooks-util.js +310 -96
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/modules/HMSManager.js +17 -0
- package/lib/module/modules/HMSManager.js.map +1 -0
- package/lib/module/modules/parser.js +16 -0
- package/lib/module/modules/parser.js.map +1 -0
- package/lib/module/peerTrackNodeUtils.js +6 -2
- package/lib/module/peerTrackNodeUtils.js.map +1 -1
- package/lib/module/redux/actionTypes.js +16 -1
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +42 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +57 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +7 -1
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/redux/reducers/userState.js +3 -1
- package/lib/module/redux/reducers/userState.js.map +1 -1
- package/lib/module/utils/functions.js +47 -0
- package/lib/module/utils/functions.js.map +1 -1
- package/lib/module/utils/theme.js +57 -5
- package/lib/module/utils/theme.js.map +1 -1
- package/lib/module/utils/types.js +6 -0
- package/lib/module/utils/types.js.map +1 -1
- package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
- package/lib/typescript/HMSPrebuilt.d.ts +1 -0
- package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
- package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
- package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts +7 -0
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Check/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
- package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
- package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Pin/index.d.ts +7 -0
- package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Recording/index.d.ts +7 -0
- package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
- package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
- package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Star/index.d.ts +7 -0
- package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Stop/index.d.ts +7 -0
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
- package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +10 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +25 -0
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
- package/lib/typescript/components/CompanyLogo.d.ts +7 -0
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
- package/lib/typescript/components/CustomInput.d.ts +1 -1
- package/lib/typescript/components/CustomInput.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/GridView.d.ts +3 -4
- package/lib/typescript/components/GridView.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
- package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +10 -0
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
- package/lib/typescript/components/Header.d.ts.map +1 -1
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
- package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
- package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MiniView.d.ts +9 -0
- package/lib/typescript/components/MiniView.d.ts.map +1 -0
- package/lib/typescript/components/Modals.d.ts +0 -7
- package/lib/typescript/components/Modals.d.ts.map +1 -1
- package/lib/typescript/components/PaginationDots.d.ts +6 -0
- package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
- package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
- package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
- package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
- package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
- package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
- package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
- package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/components/Preview.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
- package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
- package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
- package/lib/typescript/components/Tile.d.ts +12 -3
- package/lib/typescript/components/Tile.d.ts.map +1 -1
- package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
- package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
- package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
- package/lib/typescript/components/WebrtcView.d.ts +10 -0
- package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
- package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
- package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-sdk.d.ts +1 -0
- package/lib/typescript/hooks-sdk.d.ts.map +1 -1
- package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +15 -2
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/modules/HMSManager.d.ts +4 -0
- package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
- package/lib/typescript/modules/parser.d.ts +3 -0
- package/lib/typescript/modules/parser.d.ts.map +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
- package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +9 -1
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +45 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +7 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +5 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +7 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/userState.d.ts +1 -0
- package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
- package/lib/typescript/utils/functions.d.ts +14 -0
- package/lib/typescript/utils/functions.d.ts.map +1 -1
- package/lib/typescript/utils/theme.d.ts +6 -3
- package/lib/typescript/utils/theme.d.ts.map +1 -1
- package/lib/typescript/utils/types.d.ts +5 -0
- package/lib/typescript/utils/types.d.ts.map +1 -1
- package/package.json +3 -1
- package/src/HMSInstanceSetup.tsx +1 -0
- package/src/HMSPrebuilt.tsx +3 -2
- package/src/HMSRoomSetup.tsx +45 -8
- package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
- package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
- package/src/Icons/AlertTriangle/index.tsx +33 -0
- package/src/Icons/AnswerPhone/index.tsx +7 -1
- package/src/Icons/BRB/assets/BRB.png +0 -0
- package/src/Icons/BRB/assets/BRB@2x.png +0 -0
- package/src/Icons/BRB/assets/BRB@3x.png +0 -0
- package/src/Icons/BRB/index.tsx +31 -0
- package/src/Icons/Bluetooth/index.tsx +7 -1
- package/src/Icons/Camera/index.tsx +7 -1
- package/src/Icons/Chat/index.tsx +7 -1
- package/src/Icons/Check/index.tsx +7 -1
- package/src/Icons/Chevron/index.tsx +7 -1
- package/src/Icons/Close/index.tsx +7 -1
- package/src/Icons/Hamburger/assets/hamburger.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
- package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
- package/src/Icons/Hamburger/index.tsx +33 -0
- package/src/Icons/Hand/index.tsx +6 -3
- package/src/Icons/Headphones/index.tsx +7 -1
- package/src/Icons/Maximize/assets/maximize.png +0 -0
- package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +33 -0
- package/src/Icons/Mic/index.tsx +7 -1
- package/src/Icons/Minimize/assets/minimize.png +0 -0
- package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +33 -0
- package/src/Icons/Participants/index.tsx +7 -1
- package/src/Icons/Pencil/assets/pencil.png +0 -0
- package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
- package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
- package/src/Icons/Pencil/index.tsx +33 -0
- package/src/Icons/Pin/assets/pin.png +0 -0
- package/src/Icons/Pin/assets/pin@2x.png +0 -0
- package/src/Icons/Pin/assets/pin@3x.png +0 -0
- package/src/Icons/Pin/index.tsx +30 -0
- package/src/Icons/Recording/assets/recording.png +0 -0
- package/src/Icons/Recording/assets/recording@2x.png +0 -0
- package/src/Icons/Recording/assets/recording@3x.png +0 -0
- package/src/Icons/Recording/index.tsx +33 -0
- package/src/Icons/RotateCamera/index.tsx +7 -1
- package/src/Icons/ScreenShare/index.tsx +7 -1
- package/src/Icons/Speaker/index.tsx +12 -1
- package/src/Icons/Star/assets/star.png +0 -0
- package/src/Icons/Star/assets/star@2x.png +0 -0
- package/src/Icons/Star/assets/star@3x.png +0 -0
- package/src/Icons/Star/index.tsx +30 -0
- package/src/Icons/Stop/assets/stop.png +0 -0
- package/src/Icons/Stop/assets/stop@2x.png +0 -0
- package/src/Icons/Stop/assets/stop@3x.png +0 -0
- package/src/Icons/Stop/index.tsx +33 -0
- package/src/Icons/ThreeDots/index.tsx +7 -1
- package/src/Icons/Wave/index.tsx +7 -1
- package/src/Icons/index.ts +10 -0
- package/src/components/AvatarView.tsx +1 -2
- package/src/components/BackButton.tsx +6 -3
- package/src/components/BottomSheet.tsx +191 -0
- package/src/components/ChangeNameModalContent.tsx +157 -0
- package/src/components/CompanyLogo.tsx +35 -0
- package/src/components/CustomInput.tsx +2 -3
- package/src/components/DisplayView.tsx +16 -65
- package/src/components/EndRoomModalContent.tsx +90 -0
- package/src/components/Footer.tsx +7 -7
- package/src/components/GridView.tsx +91 -20
- package/src/components/HLSView.tsx +1 -1
- package/src/components/HMSBaseButton.tsx +91 -0
- package/src/components/HMSDangerButton.tsx +65 -0
- package/src/components/HMSHLSStreamLoading.tsx +18 -7
- package/src/components/HMSManageAudioOutput.tsx +59 -90
- package/src/components/HMSManageCameraRotation.tsx +11 -8
- package/src/components/HMSManageLeave.tsx +104 -109
- package/src/components/HMSManageLocalAudio.tsx +1 -10
- package/src/components/HMSManageLocalVideo.tsx +1 -10
- package/src/components/HMSMeetingEnded.tsx +1 -2
- package/src/components/HMSPreviewEditName.tsx +2 -44
- package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
- package/src/components/HMSPreviewJoinButton.tsx +33 -71
- package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
- package/src/components/HMSPreviewPeersList.tsx +23 -13
- package/src/components/HMSPreviewSubtitle.tsx +27 -11
- package/src/components/HMSPreviewTile.tsx +19 -8
- package/src/components/HMSPreviewTitle.tsx +18 -5
- package/src/components/HMSPrimaryButton.tsx +63 -0
- package/src/components/HMSRecordingIndicator.tsx +37 -0
- package/src/components/HMSRoomOptions.tsx +28 -8
- package/src/components/HMSShowNetworkQuality.tsx +7 -5
- package/src/components/HMSTextInput.tsx +78 -0
- package/src/components/Header.tsx +37 -36
- package/src/components/LocalPeerRegularVideoView.tsx +28 -0
- package/src/components/LocalPeerScreenshareView.tsx +72 -0
- package/src/components/Meeting.tsx +10 -3
- package/src/components/MiniView.tsx +213 -0
- package/src/components/Modals.tsx +1 -110
- package/src/components/PaginationDots.tsx +65 -0
- package/src/components/ParticipantsCount.tsx +52 -0
- package/src/components/PeerMinimizedView.tsx +131 -0
- package/src/components/PeerSettingsModalContent.tsx +110 -54
- package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
- package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
- package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
- package/src/components/PeerVideoTile/VideoView.tsx +104 -0
- package/src/components/PeerVideoTile/index.ts +0 -0
- package/src/components/PressableIcon.tsx +15 -8
- package/src/components/Preview.tsx +24 -6
- package/src/components/RoomSettingsModalContent.tsx +236 -524
- package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
- package/src/components/StopRecordingModalContent.tsx +109 -0
- package/src/components/Tile.tsx +49 -90
- package/src/components/TilesContainer.tsx +116 -14
- package/src/components/UnmountAfterDelay.tsx +61 -0
- package/src/components/WebrtcView.tsx +72 -0
- package/src/components/WelcomeInMeeting.tsx +52 -0
- package/src/hooks-sdk-selectors.tsx +7 -0
- package/src/hooks-sdk.ts +18 -0
- package/src/hooks-util-selectors.tsx +12 -1
- package/src/hooks-util.ts +420 -115
- package/src/modules/HMSManager.ts +25 -0
- package/src/modules/parser.ts +22 -0
- package/src/peerTrackNodeUtils.tsx +13 -10
- package/src/redux/actionTypes.ts +22 -0
- package/src/redux/actions/index.ts +51 -0
- package/src/redux/reducers/appState.ts +56 -0
- package/src/redux/reducers/hmsStates.ts +15 -1
- package/src/redux/reducers/userState.ts +3 -0
- package/src/utils/functions.ts +48 -0
- package/src/utils/theme.ts +74 -5
- package/src/utils/types.ts +6 -0
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
import React, { useRef, useState, useImperativeHandle } from 'react';
|
|
2
|
-
import { View, FlatList } from 'react-native';
|
|
2
|
+
import { View, FlatList, StyleSheet } from 'react-native';
|
|
3
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
3
4
|
import { DefaultModal } from './DefaultModal';
|
|
4
5
|
import { SaveScreenshot } from './Modals';
|
|
5
6
|
import { TilesContainer } from './TilesContainer';
|
|
6
|
-
|
|
7
|
+
import { MiniView } from './MiniView';
|
|
8
|
+
import { PaginationDots } from './PaginationDots';
|
|
9
|
+
import { setGridViewActivePage } from '../redux/actions';
|
|
10
|
+
const FLATLIST_VIEWABILITY_CONFIG = {
|
|
11
|
+
waitForInteraction: true,
|
|
12
|
+
itemVisiblePercentThreshold: 80
|
|
13
|
+
};
|
|
14
|
+
export const GridView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
7
15
|
let {
|
|
8
16
|
pairedPeers,
|
|
9
17
|
onPeerTileMorePress
|
|
10
18
|
} = _ref;
|
|
11
|
-
|
|
19
|
+
const dispatch = useDispatch();
|
|
12
20
|
const [screenshotData, setScreenshotData] = useState(null);
|
|
13
21
|
const hmsViewRefs = useRef({});
|
|
14
22
|
const flatlistRef = useRef(null);
|
|
23
|
+
const insetTileBoundingBoxRef = useRef(null);
|
|
24
|
+
const miniviewPeerTrackNodeExists = useSelector(state => !!state.app.miniviewPeerTrackNode);
|
|
15
25
|
|
|
16
26
|
// We are setting `captureViewScreenshot` method on ref passed to GridView component
|
|
17
27
|
// `captureViewScreenshot` method can be called to with PeerTrackNode to capture the HmsView Snapshot
|
|
@@ -60,11 +70,26 @@ const GridView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60
70
|
var _item$;
|
|
61
71
|
return (_item$ = item[0]) === null || _item$ === void 0 ? void 0 : _item$.id;
|
|
62
72
|
}, []);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
73
|
+
const _handleLayoutChange = React.useCallback(_ref3 => {
|
|
74
|
+
let {
|
|
75
|
+
nativeEvent
|
|
76
|
+
} = _ref3;
|
|
77
|
+
insetTileBoundingBoxRef.current = nativeEvent.layout;
|
|
78
|
+
}, []);
|
|
79
|
+
const _handleViewableItemsChanged = React.useCallback(info => {
|
|
80
|
+
const firstViewable = info.viewableItems[0];
|
|
81
|
+
if (firstViewable !== null && firstViewable !== void 0 && firstViewable.isViewable && typeof firstViewable.index === 'number') {
|
|
82
|
+
dispatch(setGridViewActivePage(firstViewable.index));
|
|
66
83
|
}
|
|
67
|
-
},
|
|
84
|
+
}, []);
|
|
85
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
86
|
+
style: styles.container
|
|
87
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
88
|
+
style: styles.tilesArea
|
|
89
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
90
|
+
onLayout: _handleLayoutChange,
|
|
91
|
+
style: styles.measureLayoutView
|
|
92
|
+
}), /*#__PURE__*/React.createElement(FlatList, {
|
|
68
93
|
ref: flatlistRef,
|
|
69
94
|
horizontal: true,
|
|
70
95
|
data: pairedPeers,
|
|
@@ -75,8 +100,15 @@ const GridView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
75
100
|
showsHorizontalScrollIndicator: false,
|
|
76
101
|
renderItem: _renderItem,
|
|
77
102
|
numColumns: 1,
|
|
78
|
-
keyExtractor: _keyExtractor
|
|
79
|
-
|
|
103
|
+
keyExtractor: _keyExtractor,
|
|
104
|
+
onViewableItemsChanged: _handleViewableItemsChanged,
|
|
105
|
+
viewabilityConfig: FLATLIST_VIEWABILITY_CONFIG
|
|
106
|
+
}), pairedPeers.length > 0 && miniviewPeerTrackNodeExists ? /*#__PURE__*/React.createElement(MiniView, {
|
|
107
|
+
boundingBoxRef: insetTileBoundingBoxRef,
|
|
108
|
+
onMoreOptionsPress: onPeerTileMorePress
|
|
109
|
+
}) : null), pairedPeers.length > 1 ? /*#__PURE__*/React.createElement(PaginationDots, {
|
|
110
|
+
list: pairedPeers
|
|
111
|
+
}) : null, /*#__PURE__*/React.createElement(DefaultModal, {
|
|
80
112
|
modalPosiion: "center",
|
|
81
113
|
modalVisible: !!screenshotData,
|
|
82
114
|
setModalVisible: () => setScreenshotData(null)
|
|
@@ -86,5 +118,18 @@ const GridView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
86
118
|
})));
|
|
87
119
|
});
|
|
88
120
|
GridView.displayName = 'GridView';
|
|
89
|
-
|
|
121
|
+
const styles = StyleSheet.create({
|
|
122
|
+
container: {
|
|
123
|
+
flex: 1
|
|
124
|
+
},
|
|
125
|
+
tilesArea: {
|
|
126
|
+
flex: 1,
|
|
127
|
+
position: 'relative'
|
|
128
|
+
},
|
|
129
|
+
measureLayoutView: {
|
|
130
|
+
position: 'absolute',
|
|
131
|
+
width: '100%',
|
|
132
|
+
height: '100%'
|
|
133
|
+
}
|
|
134
|
+
});
|
|
90
135
|
//# sourceMappingURL=GridView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","useState","useImperativeHandle","View","FlatList","DefaultModal","SaveScreenshot","TilesContainer","GridView","forwardRef","_ref","ref","pairedPeers","onPeerTileMorePress","screenshotData","setScreenshotData","hmsViewRefs","flatlistRef","captureViewScreenshot","node","_hmsViewRef$capture","hmsViewRef","current","id","console","warn","capture","call","then","imageBase64","log","peer","source","uri","catch","error","getFlatlistRef","setHmsViewRefs","useCallback","viewId","_renderItem","_ref2","item","createElement","peerTrackNodes","_keyExtractor","_item$","style","
|
|
1
|
+
{"version":3,"names":["React","useRef","useState","useImperativeHandle","View","FlatList","StyleSheet","useDispatch","useSelector","DefaultModal","SaveScreenshot","TilesContainer","MiniView","PaginationDots","setGridViewActivePage","FLATLIST_VIEWABILITY_CONFIG","waitForInteraction","itemVisiblePercentThreshold","GridView","forwardRef","_ref","ref","pairedPeers","onPeerTileMorePress","dispatch","screenshotData","setScreenshotData","hmsViewRefs","flatlistRef","insetTileBoundingBoxRef","miniviewPeerTrackNodeExists","state","app","miniviewPeerTrackNode","captureViewScreenshot","node","_hmsViewRef$capture","hmsViewRef","current","id","console","warn","capture","call","then","imageBase64","log","peer","source","uri","catch","error","getFlatlistRef","setHmsViewRefs","useCallback","viewId","_renderItem","_ref2","item","createElement","peerTrackNodes","_keyExtractor","_item$","_handleLayoutChange","_ref3","nativeEvent","layout","_handleViewableItemsChanged","info","firstViewable","viewableItems","isViewable","index","style","styles","container","tilesArea","onLayout","measureLayoutView","horizontal","data","initialNumToRender","maxToRenderPerBatch","windowSize","pagingEnabled","showsHorizontalScrollIndicator","renderItem","numColumns","keyExtractor","onViewableItemsChanged","viewabilityConfig","length","boundingBoxRef","onMoreOptionsPress","list","modalPosiion","modalVisible","setModalVisible","imageSource","cancelModal","displayName","create","flex","position","width","height"],"sourceRoot":"../../../src","sources":["components/GridView.tsx"],"mappings":"AAAA,OA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{ ActivityIndicator, StyleSheet, Text, TouchableHighlight, View } from 'react-native';
|
|
3
|
+
export const HMSBaseButton = _ref => {
|
|
4
|
+
let {
|
|
5
|
+
underlayColor,
|
|
6
|
+
loaderColor,
|
|
7
|
+
title,
|
|
8
|
+
loading,
|
|
9
|
+
onPress,
|
|
10
|
+
style,
|
|
11
|
+
textStyle,
|
|
12
|
+
disabled,
|
|
13
|
+
leftComponent
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/React.createElement(TouchableHighlight, {
|
|
16
|
+
underlayColor: underlayColor,
|
|
17
|
+
style: [styles.button, style],
|
|
18
|
+
onPress: onPress,
|
|
19
|
+
disabled: disabled
|
|
20
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
21
|
+
size: 'small',
|
|
22
|
+
color: loaderColor,
|
|
23
|
+
style: styles.loader
|
|
24
|
+
}) : null, /*#__PURE__*/React.createElement(View, {
|
|
25
|
+
style: [styles.buttonContentWrapper, loading ? styles.hiddenView : null]
|
|
26
|
+
}, leftComponent, /*#__PURE__*/React.createElement(Text, {
|
|
27
|
+
style: [styles.text, textStyle]
|
|
28
|
+
}, title))));
|
|
29
|
+
};
|
|
30
|
+
const styles = StyleSheet.create({
|
|
31
|
+
button: {
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
paddingHorizontal: 16,
|
|
34
|
+
paddingVertical: 8,
|
|
35
|
+
borderRadius: 8,
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center'
|
|
38
|
+
},
|
|
39
|
+
buttonContentWrapper: {
|
|
40
|
+
flexDirection: 'row',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
justifyContent: 'center'
|
|
43
|
+
},
|
|
44
|
+
text: {
|
|
45
|
+
fontSize: 16,
|
|
46
|
+
lineHeight: 24,
|
|
47
|
+
letterSpacing: 0.5,
|
|
48
|
+
marginHorizontal: 8
|
|
49
|
+
},
|
|
50
|
+
loader: {
|
|
51
|
+
position: 'absolute'
|
|
52
|
+
},
|
|
53
|
+
hiddenView: {
|
|
54
|
+
opacity: 0
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=HMSBaseButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","StyleSheet","Text","TouchableHighlight","View","HMSBaseButton","_ref","underlayColor","loaderColor","title","loading","onPress","style","textStyle","disabled","leftComponent","createElement","styles","button","Fragment","size","color","loader","buttonContentWrapper","hiddenView","text","create","flexDirection","paddingHorizontal","paddingVertical","borderRadius","alignItems","justifyContent","fontSize","lineHeight","letterSpacing","marginHorizontal","position","opacity"],"sourceRoot":"../../../src","sources":["components/HMSBaseButton.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,iBAAiB,EACjBC,UAAU,EACVC,IAAI,EACJC,kBAAkB,EAClBC,IAAI,QACC,cAAc;AAerB,OAAO,MAAMC,aAA2C,GAAGC,IAAA,IAUrD;EAAA,IAVsD;IAC1DC,aAAa;IACbC,WAAW;IACXC,KAAK;IACLC,OAAO;IACPC,OAAO;IACPC,KAAK;IACLC,SAAS;IACTC,QAAQ;IACRC;EACF,CAAC,GAAAT,IAAA;EACC,oBACEP,KAAA,CAAAiB,aAAA,CAACb,kBAAkB;IACjBI,aAAa,EAAEA,aAAc;IAC7BK,KAAK,EAAE,CAACK,MAAM,CAACC,MAAM,EAAEN,KAAK,CAAE;IAC9BD,OAAO,EAAEA,OAAQ;IACjBG,QAAQ,EAAEA;EAAS,gBAEnBf,KAAA,CAAAiB,aAAA,CAAAjB,KAAA,CAAAoB,QAAA,QACGT,OAAO,gBACNX,KAAA,CAAAiB,aAAA,CAAChB,iBAAiB;IAChBoB,IAAI,EAAE,OAAQ;IACdC,KAAK,EAAEb,WAAY;IACnBI,KAAK,EAAEK,MAAM,CAACK;EAAO,CACtB,CAAC,GACA,IAAI,eAERvB,KAAA,CAAAiB,aAAA,CAACZ,IAAI;IACHQ,KAAK,EAAE,CACLK,MAAM,CAACM,oBAAoB,EAC3Bb,OAAO,GAAGO,MAAM,CAACO,UAAU,GAAG,IAAI;EAClC,GAEDT,aAAa,eAEdhB,KAAA,CAAAiB,aAAA,CAACd,IAAI;IAACU,KAAK,EAAE,CAACK,MAAM,CAACQ,IAAI,EAAEZ,SAAS;EAAE,GAAEJ,KAAY,CAChD,CACN,CACgB,CAAC;AAEzB,CAAC;AAED,MAAMQ,MAAM,GAAGhB,UAAU,CAACyB,MAAM,CAAC;EAC/BR,MAAM,EAAE;IACNS,aAAa,EAAE,KAAK;IACpBC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDT,oBAAoB,EAAE;IACpBI,aAAa,EAAE,KAAK;IACpBI,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDP,IAAI,EAAE;IACJQ,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,GAAG;IAClBC,gBAAgB,EAAE;EACpB,CAAC;EACDd,MAAM,EAAE;IACNe,QAAQ,EAAE;EACZ,CAAC;EACDb,UAAU,EAAE;IACVc,OAAO,EAAE;EACX;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
|
|
3
|
+
import { HMSBaseButton } from './HMSBaseButton';
|
|
4
|
+
export const HMSDangerButton = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
title,
|
|
7
|
+
loading,
|
|
8
|
+
onPress,
|
|
9
|
+
style,
|
|
10
|
+
disabled,
|
|
11
|
+
leftComponent
|
|
12
|
+
} = _ref;
|
|
13
|
+
const {
|
|
14
|
+
alert_error_dim: alertErrorDimColor,
|
|
15
|
+
alert_error_brighter: alertErrorBrighterColor
|
|
16
|
+
} = useHMSRoomColorPalette();
|
|
17
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
18
|
+
button: {
|
|
19
|
+
backgroundColor: theme.palette.alert_error_default
|
|
20
|
+
},
|
|
21
|
+
disabledButton: {
|
|
22
|
+
backgroundColor: theme.palette.alert_error_dim
|
|
23
|
+
},
|
|
24
|
+
buttonText: {
|
|
25
|
+
color: theme.palette.alert_error_brighter,
|
|
26
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
27
|
+
},
|
|
28
|
+
disabledText: {
|
|
29
|
+
color: theme.palette.alert_error_bright
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
return /*#__PURE__*/React.createElement(HMSBaseButton, {
|
|
33
|
+
loaderColor: alertErrorBrighterColor,
|
|
34
|
+
loading: loading,
|
|
35
|
+
onPress: onPress,
|
|
36
|
+
title: title,
|
|
37
|
+
underlayColor: alertErrorDimColor,
|
|
38
|
+
disabled: disabled,
|
|
39
|
+
leftComponent: leftComponent,
|
|
40
|
+
style: [hmsRoomStyles.button, disabled ? hmsRoomStyles.disabledButton : null, style],
|
|
41
|
+
textStyle: [hmsRoomStyles.buttonText, disabled ? hmsRoomStyles.disabledText : null]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=HMSDangerButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useHMSRoomColorPalette","useHMSRoomStyleSheet","HMSBaseButton","HMSDangerButton","_ref","title","loading","onPress","style","disabled","leftComponent","alert_error_dim","alertErrorDimColor","alert_error_brighter","alertErrorBrighterColor","hmsRoomStyles","theme","typography","button","backgroundColor","palette","alert_error_default","disabledButton","buttonText","color","fontFamily","font_family","disabledText","alert_error_bright","createElement","loaderColor","underlayColor","textStyle"],"sourceRoot":"../../../src","sources":["components/HMSDangerButton.tsx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,EACxBd,QAAQ,GAAGM,aAAa,CAACY,YAAY,GAAG,IAAI;EAC5C,CACH,CAAC;AAEN,CAAC"}
|
|
@@ -3,25 +3,37 @@ import { View, ActivityIndicator, Text, StyleSheet } from 'react-native';
|
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { COLORS } from '../utils/theme';
|
|
5
5
|
import { HMSLocalVideoView } from './HMSLocalVideoView';
|
|
6
|
+
import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
|
|
6
7
|
export const HMSHLSStreamLoading = () => {
|
|
7
8
|
const isLocalVideoMuted = useSelector(state => state.hmsStates.isLocalVideoMuted);
|
|
9
|
+
const {
|
|
10
|
+
primary_default: primaryDefaultColor
|
|
11
|
+
} = useHMSRoomColorPalette();
|
|
12
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
13
|
+
container: {
|
|
14
|
+
backgroundColor: theme.palette.background_dim
|
|
15
|
+
},
|
|
16
|
+
text: {
|
|
17
|
+
color: theme.palette.on_surface_high,
|
|
18
|
+
fontFamily: `${typography.font_family}-Regular`
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
8
21
|
return /*#__PURE__*/React.createElement(View, {
|
|
9
|
-
style: styles.container
|
|
22
|
+
style: [styles.container, hmsRoomStyles.container]
|
|
10
23
|
}, isLocalVideoMuted ? null : /*#__PURE__*/React.createElement(HMSLocalVideoView, null), /*#__PURE__*/React.createElement(View, {
|
|
11
24
|
style: styles.hlsLoaderContainer
|
|
12
25
|
}, /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
13
26
|
style: styles.hlsLoader,
|
|
14
27
|
size: 'large',
|
|
15
|
-
color:
|
|
28
|
+
color: primaryDefaultColor
|
|
16
29
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
17
|
-
style: styles.hlsLoaderText
|
|
30
|
+
style: [styles.hlsLoaderText, hmsRoomStyles.text]
|
|
18
31
|
}, "Starting live stream...")));
|
|
19
32
|
};
|
|
20
33
|
const styles = StyleSheet.create({
|
|
21
34
|
container: {
|
|
22
35
|
flex: 1,
|
|
23
|
-
position: 'relative'
|
|
24
|
-
backgroundColor: COLORS.BACKGROUND.DIM
|
|
36
|
+
position: 'relative'
|
|
25
37
|
},
|
|
26
38
|
hlsLoaderContainer: {
|
|
27
39
|
position: 'absolute',
|
|
@@ -36,10 +48,7 @@ const styles = StyleSheet.create({
|
|
|
36
48
|
marginBottom: 30
|
|
37
49
|
},
|
|
38
50
|
hlsLoaderText: {
|
|
39
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
40
51
|
fontSize: 16,
|
|
41
|
-
fontFamily: 'Inter',
|
|
42
|
-
fontWeight: '400',
|
|
43
52
|
lineHeight: 24,
|
|
44
53
|
letterSpacing: 0.5
|
|
45
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","ActivityIndicator","Text","StyleSheet","useSelector","COLORS","HMSLocalVideoView","HMSHLSStreamLoading","isLocalVideoMuted","state","hmsStates","
|
|
1
|
+
{"version":3,"names":["React","View","ActivityIndicator","Text","StyleSheet","useSelector","COLORS","HMSLocalVideoView","useHMSRoomColorPalette","useHMSRoomStyleSheet","HMSHLSStreamLoading","isLocalVideoMuted","state","hmsStates","primary_default","primaryDefaultColor","hmsRoomStyles","theme","typography","container","backgroundColor","palette","background_dim","text","color","on_surface_high","fontFamily","font_family","createElement","style","styles","hlsLoaderContainer","hlsLoader","size","hlsLoaderText","create","flex","position","width","height","LOADING_BACKDROP","zIndex","alignItems","justifyContent","marginBottom","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../src","sources":["components/HMSHLSStreamLoading.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,iBAAiB,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AACxE,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,MAAM,QAAQ,gBAAgB;AA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,MAAM,CAAC;EAC/BhB,SAAS,EAAE;IACTiB,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDN,kBAAkB,EAAE;IAClBM,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdnB,eAAe,EAAEd,MAAM,CAACkC,gBAAgB;IACxCC,MAAM,EAAE,CAAC;IACTC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDX,SAAS,EAAE;IACTY,YAAY,EAAE;EAChB,CAAC;EACDV,aAAa,EAAE;IACbW,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Modal from 'react-native-modal';
|
|
3
2
|
import { Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
4
3
|
import Toast from 'react-native-simple-toast';
|
|
5
4
|
import { useSelector } from 'react-redux';
|
|
6
5
|
import { HMSUpdateListenerActions, HMSAudioDevice } from '@100mslive/react-native-hms';
|
|
7
6
|
import { AnswerPhoneIcon, BluetoothIcon, CheckIcon, HeadphonesIcon, SpeakerIcon, WaveIcon } from '../Icons';
|
|
8
7
|
import { PressableIcon } from './PressableIcon';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { useHMSInstance } from '../hooks-util';
|
|
8
|
+
import { useHMSInstance, useHMSRoomStyleSheet } from '../hooks-util';
|
|
9
|
+
import { BottomSheet } from './BottomSheet';
|
|
12
10
|
export const HMSManageAudioOutput = () => {
|
|
13
11
|
const hmsInstance = useHMSInstance();
|
|
14
12
|
const [settingsModalVisible, setSettingsModalVisible] = React.useState(false);
|
|
@@ -82,85 +80,56 @@ export const HMSManageAudioOutput = () => {
|
|
|
82
80
|
hmsInstance.switchAudioOutput(device);
|
|
83
81
|
setSettingsModalVisible(false);
|
|
84
82
|
};
|
|
83
|
+
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
84
|
+
headerText: {
|
|
85
|
+
color: theme.palette.on_surface_high,
|
|
86
|
+
fontFamily: `${typography.font_family}-Medium`
|
|
87
|
+
},
|
|
88
|
+
text: {
|
|
89
|
+
color: theme.palette.on_surface_high,
|
|
90
|
+
fontFamily: `${typography.font_family}-SemiBold`
|
|
91
|
+
},
|
|
92
|
+
divider: {
|
|
93
|
+
backgroundColor: theme.palette.border_default
|
|
94
|
+
}
|
|
95
|
+
}));
|
|
85
96
|
return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(PressableIcon, {
|
|
86
97
|
onPress: handleSpeakerChange
|
|
87
98
|
}, Platform.OS === 'ios' ? /*#__PURE__*/React.createElement(SpeakerIcon, {
|
|
88
99
|
muted: false
|
|
89
|
-
}) : getIcon(currentAudioOutputDevice || HMSAudioDevice.AUTOMATIC)), /*#__PURE__*/React.createElement(
|
|
100
|
+
}) : getIcon(currentAudioOutputDevice || HMSAudioDevice.AUTOMATIC)), /*#__PURE__*/React.createElement(BottomSheet, {
|
|
90
101
|
isVisible: settingsModalVisible,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
useNativeDriverForBackdrop: true,
|
|
99
|
-
hideModalContentWhileAnimating: true
|
|
100
|
-
// swipeDirection={['up', 'down']}
|
|
101
|
-
// swipe
|
|
102
|
-
,
|
|
103
|
-
style: styles.modal
|
|
104
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
105
|
-
style: styles.container
|
|
106
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
107
|
-
style: styles.header
|
|
108
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
109
|
-
style: styles.headerText
|
|
110
|
-
}, "Audio Output"), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
111
|
-
onPress: dismissModal,
|
|
112
|
-
hitSlop: styles.closeIconHitSlop
|
|
113
|
-
}, /*#__PURE__*/React.createElement(CloseIcon, null))), availableAudioOutputDevices.length === 0 ? /*#__PURE__*/React.createElement(View, {
|
|
102
|
+
dismissModal: dismissModal
|
|
103
|
+
}, /*#__PURE__*/React.createElement(BottomSheet.Header, {
|
|
104
|
+
dismissModal: dismissModal,
|
|
105
|
+
heading: "Audio Output"
|
|
106
|
+
}), /*#__PURE__*/React.createElement(BottomSheet.Divider, null), /*#__PURE__*/React.createElement(View, {
|
|
107
|
+
style: styles.contentContainer
|
|
108
|
+
}, availableAudioOutputDevices.length === 0 ? /*#__PURE__*/React.createElement(View, {
|
|
114
109
|
style: styles.emptyView
|
|
115
110
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
116
|
-
style: styles.itemText
|
|
111
|
+
style: [styles.itemText, hmsRoomStyles.text]
|
|
117
112
|
}, "No other devices available!")) : /*#__PURE__*/React.createElement(ScrollView, {
|
|
118
113
|
showsVerticalScrollIndicator: true
|
|
119
|
-
}, availableAudioOutputDevices.sort((a, b) => audioDeviceSortOrder[a] - audioDeviceSortOrder[b]).map(device =>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
114
|
+
}, availableAudioOutputDevices.sort((a, b) => audioDeviceSortOrder[a] - audioDeviceSortOrder[b]).map((device, index) => {
|
|
115
|
+
const isFirst = index === 0;
|
|
116
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
117
|
+
key: device
|
|
118
|
+
}, isFirst ? null : /*#__PURE__*/React.createElement(View, {
|
|
119
|
+
style: [styles.divider, hmsRoomStyles.divider]
|
|
120
|
+
}), /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
121
|
+
style: styles.audioDeviceItem,
|
|
122
|
+
onPress: () => handleSelectAudioDevice(device)
|
|
123
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
124
|
+
style: styles.itemTextWrapper
|
|
125
|
+
}, getIcon(device === HMSAudioDevice.AUTOMATIC && currentAudioOutputDevice ? currentAudioOutputDevice : device), /*#__PURE__*/React.createElement(Text, {
|
|
126
|
+
style: [styles.itemText, hmsRoomStyles.text]
|
|
127
|
+
}, getDescription(device, currentAudioOutputDevice))), device === currentAudioOutputDevice ? /*#__PURE__*/React.createElement(CheckIcon, null) : null));
|
|
128
|
+
})))));
|
|
131
129
|
};
|
|
132
130
|
const styles = StyleSheet.create({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
justifyContent: 'flex-end'
|
|
136
|
-
},
|
|
137
|
-
container: {
|
|
138
|
-
backgroundColor: COLORS.BACKGROUND.DEFAULT,
|
|
139
|
-
borderTopLeftRadius: 16,
|
|
140
|
-
borderTopRightRadius: 16,
|
|
141
|
-
paddingTop: 24,
|
|
142
|
-
paddingHorizontal: 16,
|
|
143
|
-
paddingBottom: 32
|
|
144
|
-
},
|
|
145
|
-
header: {
|
|
146
|
-
flexDirection: 'row',
|
|
147
|
-
alignItems: 'center',
|
|
148
|
-
justifyContent: 'space-between',
|
|
149
|
-
marginBottom: 16
|
|
150
|
-
},
|
|
151
|
-
headerText: {
|
|
152
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
153
|
-
fontSize: 16,
|
|
154
|
-
fontFamily: 'Inter',
|
|
155
|
-
fontWeight: '500',
|
|
156
|
-
lineHeight: 24,
|
|
157
|
-
letterSpacing: 0.15
|
|
158
|
-
},
|
|
159
|
-
closeIconHitSlop: {
|
|
160
|
-
bottom: 16,
|
|
161
|
-
left: 16,
|
|
162
|
-
right: 16,
|
|
163
|
-
top: 16
|
|
131
|
+
contentContainer: {
|
|
132
|
+
marginHorizontal: 24
|
|
164
133
|
},
|
|
165
134
|
itemTextWrapper: {
|
|
166
135
|
flexDirection: 'row',
|
|
@@ -169,10 +138,7 @@ const styles = StyleSheet.create({
|
|
|
169
138
|
},
|
|
170
139
|
itemText: {
|
|
171
140
|
marginHorizontal: 16,
|
|
172
|
-
color: COLORS.SURFACE.ON_SURFACE.HIGH,
|
|
173
141
|
fontSize: 14,
|
|
174
|
-
fontFamily: 'Inter',
|
|
175
|
-
fontWeight: '600',
|
|
176
142
|
lineHeight: 20,
|
|
177
143
|
letterSpacing: 0.1
|
|
178
144
|
},
|
|
@@ -188,8 +154,7 @@ const styles = StyleSheet.create({
|
|
|
188
154
|
paddingVertical: 20
|
|
189
155
|
},
|
|
190
156
|
divider: {
|
|
191
|
-
height: 1
|
|
192
|
-
backgroundColor: COLORS.BORDER.DEFAULT
|
|
157
|
+
height: 1
|
|
193
158
|
}
|
|
194
159
|
});
|
|
195
160
|
const getIcon = ofDevice => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","Platform","ScrollView","StyleSheet","Text","TouchableOpacity","View","Toast","useSelector","HMSUpdateListenerActions","HMSAudioDevice","AnswerPhoneIcon","BluetoothIcon","CheckIcon","HeadphonesIcon","SpeakerIcon","WaveIcon","PressableIcon","useHMSInstance","useHMSRoomStyleSheet","BottomSheet","HMSManageAudioOutput","hmsInstance","settingsModalVisible","setSettingsModalVisible","useState","currentAudioOutputDevice","setCurrentAudioOutputDevice","availableAudioOutputDevices","setAvailableAudioOutputDevices","debugMode","state","user","useEffect","OS","ignore","getCurrentAudioOutputDevice","device","getAudioOutputRouteType","getAvailableAudioOutputDevices","devices","getAudioDevicesList","dismissModal","handleSpeakerChange","switchAudioOutputUsingIOSUI","length","then","setAudioDeviceChangeListener","data","showWithGravity","LONG","TOP","removeEventListener","ON_AUDIO_DEVICE_CHANGED","handleSelectAudioDevice","switchAudioOutput","hmsRoomStyles","theme","typography","headerText","color","palette","on_surface_high","fontFamily","font_family","text","divider","backgroundColor","border_default","createElement","onPress","muted","getIcon","AUTOMATIC","isVisible","Header","heading","Divider","style","styles","contentContainer","emptyView","itemText","showsVerticalScrollIndicator","sort","a","b","audioDeviceSortOrder","map","index","isFirst","Fragment","key","audioDeviceItem","itemTextWrapper","getDescription","create","marginHorizontal","flexDirection","alignItems","justifyContent","fontSize","lineHeight","letterSpacing","height","paddingVertical","ofDevice","BLUETOOTH","EARPIECE","SPEAKER_PHONE","WIRED_HEADSET","currentDevice"],"sourceRoot":"../../../src","sources":["components/HMSManageAudioOutput.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EACRC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAChBC,IAAI,QACC,cAAc;AACrB,OAAOC,KAAK,MAAM,2BAA2B;AAC7C,SAASC,WAAW,QAAQ,aAAa;AACzC,SACEC,wBAAwB,EACxBC,cAAc,QACT,6BAA6B;AAEpC,SACEC,eAAe,EACfC,aAAa,EACbC,SAAS,EACTC,cAAc,EACdC,WAAW,EACXC,QAAQ,QACH,UAAU;AACjB,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,cAAc,EAAEC,oBAAoB,QAAQ,eAAe;AAEpE,SAASC,WAAW,QAAQ,eAAe;AAE3C,OAAO,MAAMC,oBAA8B,GAAGA,CAAA,KAAM;EAClD,MAAMC,WAAW,GAAGJ,cAAc,CAAC,CAAC;EACpC,MAAM,CAACK,oBAAoB,EAAEC,uBAAuB,CAAC,GAAGxB,KAAK,CAACyB,QAAQ,CAAC,KAAK,CAAC;EAE7E,MAAM,CAACC,wBAAwB,EAAEC,2BAA2B,CAAC,GAC3D3B,KAAK,CAACyB,QAAQ,CAAwB,IAAI,CAAC;EAC7C,MAAM,CAACG,2BAA2B,EAAEC,8BAA8B,CAAC,GACjE7B,KAAK,CAACyB,QAAQ,CAAmB,EAAE,CAAC;EAEtC,MAAMK,SAAS,GAAGtB,WAAW,CAAEuB,KAAgB,IAAKA,KAAK,CAACC,IAAI,CAACF,SAAS,CAAC;;EAEzE;EACA9B,KAAK,CAACiC,SAAS,C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G,aAAa;MAC/B,OAAO,SAAS;IAClB,KAAKnG,cAAc,CAACoG,aAAa;MAC/B,OAAO,UAAU;EACrB;AACF,CAAC;AAED,MAAMvB,oBAAoB,GAAG;EAC3B,CAAC7E,cAAc,CAAC+D,SAAS,GAAG,CAAC;EAC7B,CAAC/D,cAAc,CAACmG,aAAa,GAAG,CAAC;EACjC,CAACnG,cAAc,CAACoG,aAAa,GAAG,CAAC;EACjC,CAACpG,cAAc,CAACkG,QAAQ,GAAG,CAAC;EAC5B,CAAClG,cAAc,CAACiG,SAAS,GAAG;AAC9B,CAAU"}
|
|
@@ -2,8 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
3
|
import { RotateCameraIcon } from '../Icons';
|
|
4
4
|
import { useCanPublishVideo, useHMSActions } from '../hooks-sdk';
|
|
5
|
-
import { COLORS } from '../utils/theme';
|
|
6
5
|
import { PressableIcon } from './PressableIcon';
|
|
6
|
+
import { useHMSRoomStyle } from '../hooks-util';
|
|
7
7
|
export const HMSManageCameraRotation = () => {
|
|
8
8
|
const canPublishVideo = useCanPublishVideo();
|
|
9
9
|
if (!canPublishVideo) {
|
|
@@ -21,13 +21,14 @@ const RotateCameraButton = () => {
|
|
|
21
21
|
}
|
|
22
22
|
await hmsActions.switchCamera();
|
|
23
23
|
};
|
|
24
|
+
const cameraIconStyles = useHMSRoomStyle(theme => ({
|
|
25
|
+
tintColor: isLocalVideoMuted ? theme.palette.on_surface_low : theme.palette.on_surface_high
|
|
26
|
+
}), [isLocalVideoMuted]);
|
|
24
27
|
return /*#__PURE__*/React.createElement(PressableIcon, {
|
|
25
28
|
onPress: handleVideoMuteTogglePress,
|
|
26
29
|
disabled: isLocalVideoMuted
|
|
27
30
|
}, /*#__PURE__*/React.createElement(RotateCameraIcon, {
|
|
28
|
-
style:
|
|
29
|
-
tintColor: isLocalVideoMuted ? COLORS.SURFACE.ON_SURFACE.LOW : COLORS.SURFACE.ON_SURFACE.HIGH
|
|
30
|
-
}
|
|
31
|
+
style: cameraIconStyles
|
|
31
32
|
}));
|
|
32
33
|
};
|
|
33
34
|
//# sourceMappingURL=HMSManageCameraRotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","RotateCameraIcon","useCanPublishVideo","useHMSActions","
|
|
1
|
+
{"version":3,"names":["React","useSelector","RotateCameraIcon","useCanPublishVideo","useHMSActions","PressableIcon","useHMSRoomStyle","HMSManageCameraRotation","canPublishVideo","createElement","RotateCameraButton","hmsActions","isLocalVideoMuted","state","hmsStates","handleVideoMuteTogglePress","switchCamera","cameraIconStyles","theme","tintColor","palette","on_surface_low","on_surface_high","onPress","disabled","style"],"sourceRoot":"../../../src","sources":["components/HMSManageCameraRotation.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAEhE,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,eAAe,QAAQ,eAAe;AAE/C,OAAO,MAAMC,uBAAuB,GAAGA,CAAA,KAAM;EAC3C,MAAMC,eAAe,GAAGL,kBAAkB,CAAC,CAAC;EAE5C,IAAI,CAACK,eAAe,EAAE;IACpB,OAAO,IAAI;EACb;EAEA,oBAAOR,KAAA,CAAAS,aAAA,CAACC,kBAAkB,MAAE,CAAC;AAC/B,CAAC;AAED,MAAMA,kBAAkB,GAAGA,CAAA,KAAM;EAC/B,MAAMC,UAAU,GAAGP,aAAa,CAAC,CAAC;EAClC;EACA,MAAMQ,iBAAiB,GAAGX,WAAW,CAClCY,KAAgB,IAAKA,KAAK,CAACC,SAAS,CAACF,iBACxC,CAAC;EAED,MAAMG,0BAA0B,GAAG,MAAAA,CAAA,KAAY;IAC7C,IAAIH,iBAAiB,EAAE;MACrB;IACF;IACA,MAAMD,UAAU,CAACK,YAAY,C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