@100mslive/react-native-room-kit 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Icons/CC/assets/cc-off-med.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-off-med@2x.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-off-med@3x.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-on-med.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-on-med@2x.png +0 -0
- package/lib/commonjs/Icons/CC/assets/cc-on-med@3x.png +0 -0
- package/lib/commonjs/Icons/CC/index.js +39 -0
- package/lib/commonjs/Icons/CC/index.js.map +1 -0
- package/lib/commonjs/Icons/Close/assets/close-med.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close-med@2x.png +0 -0
- package/lib/commonjs/Icons/Close/assets/close-med@3x.png +0 -0
- package/lib/commonjs/Icons/Close/index.js +7 -2
- package/lib/commonjs/Icons/Close/index.js.map +1 -1
- package/lib/commonjs/Icons/Maximize/assets/maximize-med.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize-med@2x.png +0 -0
- package/lib/commonjs/Icons/Maximize/assets/maximize-med@3x.png +0 -0
- package/lib/commonjs/Icons/Maximize/index.js +7 -2
- package/lib/commonjs/Icons/Maximize/index.js.map +1 -1
- package/lib/commonjs/Icons/Minimize/assets/minimize-med.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize-med@2x.png +0 -0
- package/lib/commonjs/Icons/Minimize/assets/minimize-med@3x.png +0 -0
- package/lib/commonjs/Icons/Minimize/index.js +7 -2
- package/lib/commonjs/Icons/Minimize/index.js.map +1 -1
- package/lib/commonjs/Icons/index.js +11 -0
- package/lib/commonjs/Icons/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedHeader.js +1 -11
- package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatBanner.js +1 -0
- package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
- package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/commonjs/components/Chat/ChatList.js +4 -2
- package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +2 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/commonjs/components/DisplayView.js +1 -9
- package/lib/commonjs/components/DisplayView.js.map +1 -1
- package/lib/commonjs/components/Footer.js +7 -44
- package/lib/commonjs/components/Footer.js.map +1 -1
- package/lib/commonjs/components/HLSAnimatedDescriptionPane.js +30 -0
- package/lib/commonjs/components/HLSAnimatedDescriptionPane.js.map +1 -0
- package/lib/commonjs/components/HLSChatFooterView.js +51 -0
- package/lib/commonjs/components/HLSChatFooterView.js.map +1 -0
- package/lib/commonjs/components/HLSChatHeaderView.js +130 -0
- package/lib/commonjs/components/HLSChatHeaderView.js.map +1 -0
- package/lib/commonjs/components/HLSChatMessages.js +55 -0
- package/lib/commonjs/components/HLSChatMessages.js.map +1 -0
- package/lib/commonjs/components/HLSChatView.js +49 -0
- package/lib/commonjs/components/HLSChatView.js.map +1 -0
- package/lib/commonjs/components/HLSDescriptionPane.js +145 -0
- package/lib/commonjs/components/HLSDescriptionPane.js.map +1 -0
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js +70 -0
- package/lib/commonjs/components/HLSDescriptionPaneHeader.js.map +1 -0
- package/lib/commonjs/components/HLSFooter.js +1 -1
- package/lib/commonjs/components/HLSFooter.js.map +1 -1
- package/lib/commonjs/components/HLSHandRaiseButton.js +38 -0
- package/lib/commonjs/components/HLSHandRaiseButton.js.map +1 -0
- package/lib/commonjs/components/HLSManageChatTextInput.js +90 -0
- package/lib/commonjs/components/HLSManageChatTextInput.js.map +1 -0
- package/lib/commonjs/components/HLSNotifications.js +32 -0
- package/lib/commonjs/components/HLSNotifications.js.map +1 -0
- package/lib/commonjs/components/{HLSView.js → HLSPlayer.js} +34 -37
- package/lib/commonjs/components/HLSPlayer.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerContainer.js +64 -0
- package/lib/commonjs/components/HLSPlayerContainer.js.map +1 -0
- package/lib/commonjs/components/HLSPlayerControls.js +87 -0
- package/lib/commonjs/components/HLSPlayerControls.js.map +1 -0
- package/lib/commonjs/components/HLSRecordingStatusText.js +31 -0
- package/lib/commonjs/components/HLSRecordingStatusText.js.map +1 -0
- package/lib/commonjs/components/HLSRoomOptionsButton.js +25 -0
- package/lib/commonjs/components/HLSRoomOptionsButton.js.map +1 -0
- package/lib/commonjs/components/HLSStreamStartedTime.js +69 -0
- package/lib/commonjs/components/HLSStreamStartedTime.js.map +1 -0
- package/lib/commonjs/components/HLSViewerScreenContent.js +61 -0
- package/lib/commonjs/components/HLSViewerScreenContent.js.map +1 -0
- package/lib/commonjs/components/HMSHLSNotStarted.js +15 -7
- package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js +5 -1
- package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/commonjs/components/HMSLiveViewerCount.js +2 -4
- package/lib/commonjs/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +3 -2
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSNotifications.js +3 -1
- package/lib/commonjs/components/HMSNotifications.js.map +1 -1
- package/lib/commonjs/components/HMSOverlayChatView.js +7 -4
- package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
- package/lib/commonjs/components/Meeting.js +3 -1
- package/lib/commonjs/components/Meeting.js.map +1 -1
- package/lib/commonjs/components/MeetingScreenContent.js +2 -9
- package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
- package/lib/commonjs/components/OverlayedViews.js +1 -1
- package/lib/commonjs/components/OverlayedViews.js.map +1 -1
- package/lib/commonjs/components/PressableIcon.js +1 -2
- package/lib/commonjs/components/PressableIcon.js.map +1 -1
- package/lib/commonjs/hooks-util.js +128 -5
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/actionTypes.js +4 -0
- package/lib/commonjs/redux/actionTypes.js.map +1 -1
- package/lib/commonjs/redux/actions/index.js +17 -3
- package/lib/commonjs/redux/actions/index.js.map +1 -1
- package/lib/commonjs/redux/reducers/appState.js +17 -1
- package/lib/commonjs/redux/reducers/appState.js.map +1 -1
- package/lib/module/Icons/CC/assets/cc-off-med.png +0 -0
- package/lib/module/Icons/CC/assets/cc-off-med@2x.png +0 -0
- package/lib/module/Icons/CC/assets/cc-off-med@3x.png +0 -0
- package/lib/module/Icons/CC/assets/cc-on-med.png +0 -0
- package/lib/module/Icons/CC/assets/cc-on-med@2x.png +0 -0
- package/lib/module/Icons/CC/assets/cc-on-med@3x.png +0 -0
- package/lib/module/Icons/CC/index.js +31 -0
- package/lib/module/Icons/CC/index.js.map +1 -0
- package/lib/module/Icons/Close/assets/close-med.png +0 -0
- package/lib/module/Icons/Close/assets/close-med@2x.png +0 -0
- package/lib/module/Icons/Close/assets/close-med@3x.png +0 -0
- package/lib/module/Icons/Close/index.js +7 -2
- package/lib/module/Icons/Close/index.js.map +1 -1
- package/lib/module/Icons/Maximize/assets/maximize-med.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize-med@2x.png +0 -0
- package/lib/module/Icons/Maximize/assets/maximize-med@3x.png +0 -0
- package/lib/module/Icons/Maximize/index.js +7 -2
- package/lib/module/Icons/Maximize/index.js.map +1 -1
- package/lib/module/Icons/Minimize/assets/minimize-med.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize-med@2x.png +0 -0
- package/lib/module/Icons/Minimize/assets/minimize-med@3x.png +0 -0
- package/lib/module/Icons/Minimize/index.js +7 -2
- package/lib/module/Icons/Minimize/index.js.map +1 -1
- package/lib/module/Icons/index.js +1 -0
- package/lib/module/Icons/index.js.map +1 -1
- package/lib/module/components/AnimatedHeader.js +1 -11
- package/lib/module/components/AnimatedHeader.js.map +1 -1
- package/lib/module/components/Chat/ChatBanner.js +1 -0
- package/lib/module/components/Chat/ChatBanner.js.map +1 -1
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +10 -7
- package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
- package/lib/module/components/Chat/ChatList.js +4 -2
- package/lib/module/components/Chat/ChatList.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -2
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
- package/lib/module/components/DisplayView.js +3 -11
- package/lib/module/components/DisplayView.js.map +1 -1
- package/lib/module/components/Footer.js +9 -46
- package/lib/module/components/Footer.js.map +1 -1
- package/lib/module/components/HLSAnimatedDescriptionPane.js +21 -0
- package/lib/module/components/HLSAnimatedDescriptionPane.js.map +1 -0
- package/lib/module/components/HLSChatFooterView.js +42 -0
- package/lib/module/components/HLSChatFooterView.js.map +1 -0
- package/lib/module/components/HLSChatHeaderView.js +121 -0
- package/lib/module/components/HLSChatHeaderView.js.map +1 -0
- package/lib/module/components/HLSChatMessages.js +46 -0
- package/lib/module/components/HLSChatMessages.js.map +1 -0
- package/lib/module/components/HLSChatView.js +40 -0
- package/lib/module/components/HLSChatView.js.map +1 -0
- package/lib/module/components/HLSDescriptionPane.js +136 -0
- package/lib/module/components/HLSDescriptionPane.js.map +1 -0
- package/lib/module/components/HLSDescriptionPaneHeader.js +61 -0
- package/lib/module/components/HLSDescriptionPaneHeader.js.map +1 -0
- package/lib/module/components/HLSFooter.js +2 -2
- package/lib/module/components/HLSFooter.js.map +1 -1
- package/lib/module/components/HLSHandRaiseButton.js +29 -0
- package/lib/module/components/HLSHandRaiseButton.js.map +1 -0
- package/lib/module/components/HLSManageChatTextInput.js +81 -0
- package/lib/module/components/HLSManageChatTextInput.js.map +1 -0
- package/lib/module/components/HLSNotifications.js +24 -0
- package/lib/module/components/HLSNotifications.js.map +1 -0
- package/lib/module/components/{HLSView.js → HLSPlayer.js} +35 -38
- package/lib/module/components/HLSPlayer.js.map +1 -0
- package/lib/module/components/HLSPlayerContainer.js +56 -0
- package/lib/module/components/HLSPlayerContainer.js.map +1 -0
- package/lib/module/components/HLSPlayerControls.js +81 -0
- package/lib/module/components/HLSPlayerControls.js.map +1 -0
- package/lib/module/components/HLSRecordingStatusText.js +22 -0
- package/lib/module/components/HLSRecordingStatusText.js.map +1 -0
- package/lib/module/components/HLSRoomOptionsButton.js +16 -0
- package/lib/module/components/HLSRoomOptionsButton.js.map +1 -0
- package/lib/module/components/HLSStreamStartedTime.js +60 -0
- package/lib/module/components/HLSStreamStartedTime.js.map +1 -0
- package/lib/module/components/HLSViewerScreenContent.js +53 -0
- package/lib/module/components/HLSViewerScreenContent.js.map +1 -0
- package/lib/module/components/HMSHLSNotStarted.js +15 -7
- package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js +5 -1
- package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
- package/lib/module/components/HMSLiveViewerCount.js +3 -5
- package/lib/module/components/HMSLiveViewerCount.js.map +1 -1
- package/lib/module/components/HMSNotification.js +4 -3
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSNotifications.js +3 -1
- package/lib/module/components/HMSNotifications.js.map +1 -1
- package/lib/module/components/HMSOverlayChatView.js +5 -2
- package/lib/module/components/HMSOverlayChatView.js.map +1 -1
- package/lib/module/components/Meeting.js +4 -2
- package/lib/module/components/Meeting.js.map +1 -1
- package/lib/module/components/MeetingScreenContent.js +3 -10
- package/lib/module/components/MeetingScreenContent.js.map +1 -1
- package/lib/module/components/OverlayedViews.js +2 -2
- package/lib/module/components/OverlayedViews.js.map +1 -1
- package/lib/module/components/PressableIcon.js +1 -2
- package/lib/module/components/PressableIcon.js.map +1 -1
- package/lib/module/hooks-util.js +125 -5
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/actionTypes.js +4 -0
- package/lib/module/redux/actionTypes.js.map +1 -1
- package/lib/module/redux/actions/index.js +12 -0
- package/lib/module/redux/actions/index.js.map +1 -1
- package/lib/module/redux/reducers/appState.js +17 -1
- package/lib/module/redux/reducers/appState.js.map +1 -1
- package/lib/typescript/Icons/CC/index.d.ts +9 -0
- package/lib/typescript/Icons/CC/index.d.ts.map +1 -0
- package/lib/typescript/Icons/Close/index.d.ts +1 -0
- package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Maximize/index.d.ts +1 -0
- package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Minimize/index.d.ts +1 -0
- package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -1
- package/lib/typescript/Icons/index.d.ts +1 -0
- package/lib/typescript/Icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +4 -1
- package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -1
- package/lib/typescript/components/Chat/ChatList.d.ts +4 -1
- package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -1
- package/lib/typescript/components/DisplayView.d.ts.map +1 -1
- package/lib/typescript/components/Footer.d.ts.map +1 -1
- package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts +10 -0
- package/lib/typescript/components/HLSAnimatedDescriptionPane.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatFooterView.d.ts +3 -0
- package/lib/typescript/components/HLSChatFooterView.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatHeaderView.d.ts +7 -0
- package/lib/typescript/components/HLSChatHeaderView.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatMessages.d.ts +3 -0
- package/lib/typescript/components/HLSChatMessages.d.ts.map +1 -0
- package/lib/typescript/components/HLSChatView.d.ts +3 -0
- package/lib/typescript/components/HLSChatView.d.ts.map +1 -0
- package/lib/typescript/components/HLSDescriptionPane.d.ts +6 -0
- package/lib/typescript/components/HLSDescriptionPane.d.ts.map +1 -0
- package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts +9 -0
- package/lib/typescript/components/HLSDescriptionPaneHeader.d.ts.map +1 -0
- package/lib/typescript/components/HLSHandRaiseButton.d.ts +3 -0
- package/lib/typescript/components/HLSHandRaiseButton.d.ts.map +1 -0
- package/lib/typescript/components/HLSManageChatTextInput.d.ts +3 -0
- package/lib/typescript/components/HLSManageChatTextInput.d.ts.map +1 -0
- package/lib/typescript/components/HLSNotifications.d.ts +3 -0
- package/lib/typescript/components/HLSNotifications.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayer.d.ts +4 -0
- package/lib/typescript/components/HLSPlayer.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerContainer.d.ts +4 -0
- package/lib/typescript/components/HLSPlayerContainer.d.ts.map +1 -0
- package/lib/typescript/components/HLSPlayerControls.d.ts +4 -0
- package/lib/typescript/components/HLSPlayerControls.d.ts.map +1 -0
- package/lib/typescript/components/HLSRecordingStatusText.d.ts +9 -0
- package/lib/typescript/components/HLSRecordingStatusText.d.ts.map +1 -0
- package/lib/typescript/components/HLSRoomOptionsButton.d.ts +3 -0
- package/lib/typescript/components/HLSRoomOptionsButton.d.ts.map +1 -0
- package/lib/typescript/components/HLSStreamStartedTime.d.ts +6 -0
- package/lib/typescript/components/HLSStreamStartedTime.d.ts.map +1 -0
- package/lib/typescript/components/HLSViewerScreenContent.d.ts +6 -0
- package/lib/typescript/components/HLSViewerScreenContent.d.ts.map +1 -0
- package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +2 -0
- package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveViewerCount.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotifications.d.ts.map +1 -1
- package/lib/typescript/components/HMSOverlayChatView.d.ts +2 -2
- package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -1
- package/lib/typescript/components/Meeting.d.ts.map +1 -1
- package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
- package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts +20 -1
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/actionTypes.d.ts +2 -0
- package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
- package/lib/typescript/redux/actions/index.d.ts +12 -0
- package/lib/typescript/redux/actions/index.d.ts.map +1 -1
- package/lib/typescript/redux/index.d.ts +2 -0
- package/lib/typescript/redux/index.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/appState.d.ts +2 -0
- package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/index.d.ts +2 -0
- package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/Icons/CC/assets/cc-off-med.png +0 -0
- package/src/Icons/CC/assets/cc-off-med@2x.png +0 -0
- package/src/Icons/CC/assets/cc-off-med@3x.png +0 -0
- package/src/Icons/CC/assets/cc-on-med.png +0 -0
- package/src/Icons/CC/assets/cc-on-med@2x.png +0 -0
- package/src/Icons/CC/assets/cc-on-med@3x.png +0 -0
- package/src/Icons/CC/index.tsx +51 -0
- package/src/Icons/Close/assets/close-med.png +0 -0
- package/src/Icons/Close/assets/close-med@2x.png +0 -0
- package/src/Icons/Close/assets/close-med@3x.png +0 -0
- package/src/Icons/Close/index.tsx +19 -3
- package/src/Icons/Maximize/assets/maximize-med.png +0 -0
- package/src/Icons/Maximize/assets/maximize-med@2x.png +0 -0
- package/src/Icons/Maximize/assets/maximize-med@3x.png +0 -0
- package/src/Icons/Maximize/index.tsx +19 -3
- package/src/Icons/Minimize/assets/minimize-med.png +0 -0
- package/src/Icons/Minimize/assets/minimize-med@2x.png +0 -0
- package/src/Icons/Minimize/assets/minimize-med@3x.png +0 -0
- package/src/Icons/Minimize/index.tsx +19 -3
- package/src/Icons/index.ts +1 -0
- package/src/components/AnimatedHeader.tsx +1 -9
- package/src/components/Chat/ChatBanner.tsx +1 -0
- package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +16 -8
- package/src/components/Chat/ChatList.tsx +4 -1
- package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +6 -1
- package/src/components/DisplayView.tsx +9 -23
- package/src/components/Footer.tsx +8 -77
- package/src/components/HLSAnimatedDescriptionPane.tsx +36 -0
- package/src/components/HLSChatFooterView.tsx +53 -0
- package/src/components/HLSChatHeaderView.tsx +165 -0
- package/src/components/HLSChatMessages.tsx +62 -0
- package/src/components/HLSChatView.tsx +55 -0
- package/src/components/HLSDescriptionPane.tsx +168 -0
- package/src/components/HLSDescriptionPaneHeader.tsx +78 -0
- package/src/components/HLSFooter.tsx +2 -2
- package/src/components/HLSHandRaiseButton.tsx +41 -0
- package/src/components/HLSManageChatTextInput.tsx +98 -0
- package/src/components/HLSNotifications.tsx +33 -0
- package/src/components/{HLSView.tsx → HLSPlayer.tsx} +80 -77
- package/src/components/HLSPlayerContainer.tsx +67 -0
- package/src/components/HLSPlayerControls.tsx +101 -0
- package/src/components/HLSRecordingStatusText.tsx +50 -0
- package/src/components/HLSRoomOptionsButton.tsx +19 -0
- package/src/components/HLSStreamStartedTime.tsx +79 -0
- package/src/components/HLSViewerScreenContent.tsx +96 -0
- package/src/components/HMSHLSNotStarted.tsx +18 -7
- package/src/components/HMSKeyboardAvoidingView.tsx +16 -6
- package/src/components/HMSLiveViewerCount.tsx +2 -8
- package/src/components/HMSNotification.tsx +20 -14
- package/src/components/HMSNotifications.tsx +3 -1
- package/src/components/HMSOverlayChatView.tsx +10 -3
- package/src/components/Meeting.tsx +9 -1
- package/src/components/MeetingScreenContent.tsx +3 -7
- package/src/components/OverlayedViews.tsx +2 -2
- package/src/components/PressableIcon.tsx +1 -3
- package/src/hooks-util.ts +185 -6
- package/src/redux/actionTypes.ts +6 -0
- package/src/redux/actions/index.ts +10 -0
- package/src/redux/reducers/appState.ts +16 -0
- package/lib/commonjs/components/HLSView.js.map +0 -1
- package/lib/module/components/HLSView.js.map +0 -1
- package/lib/typescript/components/HLSView.d.ts +0 -4
- package/lib/typescript/components/HLSView.d.ts.map +0 -1
|
@@ -19,7 +19,7 @@ import { MessageOptionsBottomSheet } from './Chat/MessageOptionsBottomSheet';
|
|
|
19
19
|
import { PeerBlockedFromChat } from './Chat/PeerBlockedFromChat';
|
|
20
20
|
const colors = ['rgba(0, 0, 0, 0)', 'rgba(255, 255, 255, 1)', 'rgba(255, 255, 255, 1)'];
|
|
21
21
|
const colorLocations = [0, 0.4, 1];
|
|
22
|
-
export const
|
|
22
|
+
export const HMSOverlayChatView = ({
|
|
23
23
|
offset
|
|
24
24
|
}) => {
|
|
25
25
|
const footerHeight = useFooterHeight();
|
|
@@ -50,7 +50,10 @@ export const HLSChatView = ({
|
|
|
50
50
|
}), chatState.enabled ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
|
|
51
51
|
style: styles.filterSheetWrapper
|
|
52
52
|
}, /*#__PURE__*/React.createElement(ChatFilterBottomSheetOpener, {
|
|
53
|
-
|
|
53
|
+
overlay: true,
|
|
54
|
+
useFilterModal: true,
|
|
55
|
+
showActionBtn: true,
|
|
56
|
+
useActionModal: true
|
|
54
57
|
})), isLocalPeerBlockedFromChat ? /*#__PURE__*/React.createElement(PeerBlockedFromChat, {
|
|
55
58
|
style: styles.peerBlocked
|
|
56
59
|
}) : isAllowedToSendMessage && isSelectedChatRecipient ? /*#__PURE__*/React.createElement(HMSSendMessageInput, null) : null) : /*#__PURE__*/React.createElement(ChatPaused, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useSelector","StyleSheet","View","LinearGradient","MaskedView","useDerivedValue","interpolate","HMSKeyboardAvoidingView","HMSSendMessageInput","HMSHLSMessageList","useFooterHeight","useHMSNotificationsHeight","ChatFilterBottomSheetOpener","ChatMoreActionsModal","ChatFilterBottomSheet","ChatPaused","useHMSChatState","useIsAllowedToSendMessage","useIsLocalPeerBlockedFromChat","PinnedMessages","MessageOptionsBottomSheet","PeerBlockedFromChat","colors","colorLocations","
|
|
1
|
+
{"version":3,"names":["React","useSelector","StyleSheet","View","LinearGradient","MaskedView","useDerivedValue","interpolate","HMSKeyboardAvoidingView","HMSSendMessageInput","HMSHLSMessageList","useFooterHeight","useHMSNotificationsHeight","ChatFilterBottomSheetOpener","ChatMoreActionsModal","ChatFilterBottomSheet","ChatPaused","useHMSChatState","useIsAllowedToSendMessage","useIsLocalPeerBlockedFromChat","PinnedMessages","MessageOptionsBottomSheet","PeerBlockedFromChat","colors","colorLocations","HMSOverlayChatView","offset","footerHeight","hmsNotificationsHeight","chatState","isAllowedToSendMessage","isLocalPeerBlockedFromChat","isSelectedChatRecipient","state","chatWindow","sendTo","chatBottomOffset","value","createElement","Fragment","bottomOffset","maskElement","pointerEvents","style","absoluteFill","locations","insetMode","enabled","styles","filterSheetWrapper","overlay","useFilterModal","showActionBtn","useActionModal","peerBlocked","chatPaused","create","marginHorizontal","marginTop","marginBottom"],"sourceRoot":"../../../src","sources":["components/HMSOverlayChatView.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,cAAc,MAAM,8BAA8B;AACzD,OAAOC,UAAU,MAAM,uCAAuC;AAC9D,SAASC,eAAe,EAAEC,WAAW,QAAQ,yBAAyB;AAItE,SAASC,uBAAuB,QAAQ,2BAA2B;AACnE,SAASC,mBAAmB,QAAQ,uBA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AAK,EAAEK,MAAM,CAACO;EAAW,CAAE,CAEnC,CAAC,eAE1BvD,KAAA,CAAAsC,aAAA,CAACjB,yBAAyB,MAAE,CAAC,eAC7BrB,KAAA,CAAAsC,aAAA,CAACvB,qBAAqB,MAAE,CAAC,eACzBf,KAAA,CAAAsC,aAAA,CAACxB,oBAAoB;IAACY,MAAM,EAAEA;EAAO,CAAE,CACvC,CAAC;AAEP,CAAC;AAED,MAAMsB,MAAM,GAAG9C,UAAU,CAACsD,MAAM,CAAC;EAC/BP,kBAAkB,EAAE;IAClBQ,gBAAgB,EAAE,CAAC;IACnBC,SAAS,EAAE;EACb,CAAC;EACDH,UAAU,EAAE;IACVE,gBAAgB,EAAE,CAAC;IACnBE,YAAY,EAAE;EAChB,CAAC;EACDL,WAAW,EAAE;IACXG,gBAAgB,EAAE,CAAC;IACnBE,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,13 +2,15 @@ import * as React from 'react';
|
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
import { useSelector } from 'react-redux';
|
|
4
4
|
import { useRTCStatsListeners } from '../utils/hooks';
|
|
5
|
-
import { clearPendingModalTasks, useAutoPip, useBackButtonPress, useFetchHMSRoles, useHMSMessages, useHMSNetworkQualityUpdate, useHMSPIPRoomLeave, useHMSReconnection, useHMSRemovedFromRoomUpdate, useHMSRoomStyle, useLandscapeImmersiveMode, usePIPListener, useSetDefaultChatRecipient } from '../hooks-util';
|
|
5
|
+
import { clearPendingModalTasks, useAutoPip, useBackButtonPress, useFetchHMSRoles, useHMSMessages, useHMSNetworkQualityUpdate, useHMSPIPRoomLeave, useHMSReconnection, useHMSRemovedFromRoomUpdate, useHMSRoomStyle, useIsHLSViewer, useLandscapeImmersiveMode, usePIPListener, useSetDefaultChatRecipient } from '../hooks-util';
|
|
6
6
|
import { MeetingScreenContent } from './MeetingScreenContent';
|
|
7
7
|
import { HMSHLSStreamLoading } from './HMSHLSStreamLoading';
|
|
8
|
+
import { HLSViewerScreenContent } from './HLSViewerScreenContent';
|
|
8
9
|
export const Meeting = ({
|
|
9
10
|
peerTrackNodes
|
|
10
11
|
}) => {
|
|
11
12
|
const startingHLSStream = useSelector(state => state.app.startingHLSStream);
|
|
13
|
+
const isHLSViewer = useIsHLSViewer();
|
|
12
14
|
|
|
13
15
|
// TODO: Fetch latest Room and localPeer on mount of this component?
|
|
14
16
|
|
|
@@ -51,7 +53,7 @@ export const Meeting = ({
|
|
|
51
53
|
}
|
|
52
54
|
return /*#__PURE__*/React.createElement(View, {
|
|
53
55
|
style: [styles.container, containerStyles]
|
|
54
|
-
}, /*#__PURE__*/React.createElement(MeetingScreenContent, {
|
|
56
|
+
}, isHLSViewer ? /*#__PURE__*/React.createElement(HLSViewerScreenContent, null) : /*#__PURE__*/React.createElement(MeetingScreenContent, {
|
|
55
57
|
peerTrackNodes: peerTrackNodes
|
|
56
58
|
}));
|
|
57
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","useSelector","useRTCStatsListeners","clearPendingModalTasks","useAutoPip","useBackButtonPress","useFetchHMSRoles","useHMSMessages","useHMSNetworkQualityUpdate","useHMSPIPRoomLeave","useHMSReconnection","useHMSRemovedFromRoomUpdate","useHMSRoomStyle","useLandscapeImmersiveMode","usePIPListener","useSetDefaultChatRecipient","MeetingScreenContent","HMSHLSStreamLoading","Meeting","peerTrackNodes","startingHLSStream","state","app","length","useEffect","containerStyles","theme","backgroundColor","palette","background_dim","createElement","style","styles","container","create","flex","flexDirection"],"sourceRoot":"../../../src","sources":["components/Meeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SACEC,sBAAsB,EACtBC,UAAU,EACVC,kBAAkB,EAClBC,gBAAgB,EAChBC,cAAc,EACdC,0BAA0B,EAC1BC,kBAAkB,EAClBC,kBAAkB,EAClBC,2BAA2B,EAC3BC,eAAe,EACfC,yBAAyB,EACzBC,cAAc,EACdC,0BAA0B,QACrB,eAAe;AACtB,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,uBAAuB;
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","View","useSelector","useRTCStatsListeners","clearPendingModalTasks","useAutoPip","useBackButtonPress","useFetchHMSRoles","useHMSMessages","useHMSNetworkQualityUpdate","useHMSPIPRoomLeave","useHMSReconnection","useHMSRemovedFromRoomUpdate","useHMSRoomStyle","useIsHLSViewer","useLandscapeImmersiveMode","usePIPListener","useSetDefaultChatRecipient","MeetingScreenContent","HMSHLSStreamLoading","HLSViewerScreenContent","Meeting","peerTrackNodes","startingHLSStream","state","app","isHLSViewer","length","useEffect","containerStyles","theme","backgroundColor","palette","background_dim","createElement","style","styles","container","create","flex","flexDirection"],"sourceRoot":"../../../src","sources":["components/Meeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,WAAW,QAAQ,aAAa;AAGzC,SAASC,oBAAoB,QAAQ,gBAAgB;AACrD,SACEC,sBAAsB,EACtBC,UAAU,EACVC,kBAAkB,EAClBC,gBAAgB,EAChBC,cAAc,EACdC,0BAA0B,EAC1BC,kBAAkB,EAClBC,kBAAkB,EAClBC,2BAA2B,EAC3BC,eAAe,EACfC,cAAc,EACdC,yBAAyB,EACzBC,cAAc,EACdC,0BAA0B,QACrB,eAAe;AACtB,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,mBAAmB,QAAQ,uBAAuB;AAE3D,SAASC,sBAAsB,QAAQ,0BAA0B;AAMjE,OAAO,MAAMC,OAA+B,GAAGA,CAAC;EAAEC;AAAe,CAAC,KAAK;EACrE,MAAMC,iBAAiB,G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AS,EAAE;IACTE,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,10 +7,9 @@ import { HeaderFooterHideDelayMs, PipModes } from '../utils/types';
|
|
|
7
7
|
import { Footer } from './Footer';
|
|
8
8
|
import { DisplayView } from './DisplayView';
|
|
9
9
|
import { Header } from './Header';
|
|
10
|
-
import {
|
|
10
|
+
import { useKeyboardState } from '../hooks-util';
|
|
11
11
|
import { HMSStatusBar } from './StatusBar';
|
|
12
12
|
import { AnimatedFooter } from './AnimatedFooter';
|
|
13
|
-
import { HLSFooter } from './HLSFooter';
|
|
14
13
|
import { AnimatedHeader } from './AnimatedHeader';
|
|
15
14
|
// import { ReconnectionView } from './ReconnectionView';
|
|
16
15
|
|
|
@@ -18,7 +17,6 @@ export const MeetingScreenContent = ({
|
|
|
18
17
|
peerTrackNodes
|
|
19
18
|
}) => {
|
|
20
19
|
const offset = useSharedValue(1);
|
|
21
|
-
const isHLSViewer = useIsHLSViewer();
|
|
22
20
|
const timerIdRef = useRef(null);
|
|
23
21
|
const [controlsHidden, setControlsHidden] = useState(false);
|
|
24
22
|
const isPipModeActive = useSelector(state => state.app.pipModeStatus === PipModes.ACTIVE);
|
|
@@ -76,15 +74,10 @@ export const MeetingScreenContent = ({
|
|
|
76
74
|
style: styles.container
|
|
77
75
|
}, isPipModeActive ? null : /*#__PURE__*/React.createElement(AnimatedHeader, {
|
|
78
76
|
offset: offset
|
|
79
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
|
80
|
-
transparent: isHLSViewer,
|
|
81
|
-
showControls: !isHLSViewer
|
|
82
|
-
})), /*#__PURE__*/React.createElement(DisplayView, {
|
|
77
|
+
}, /*#__PURE__*/React.createElement(Header, null)), /*#__PURE__*/React.createElement(DisplayView, {
|
|
83
78
|
offset: offset,
|
|
84
79
|
peerTrackNodes: peerTrackNodes
|
|
85
|
-
}), isPipModeActive ? null :
|
|
86
|
-
offset: offset
|
|
87
|
-
}) : /*#__PURE__*/React.createElement(AnimatedFooter, {
|
|
80
|
+
}), isPipModeActive ? null : /*#__PURE__*/React.createElement(AnimatedFooter, {
|
|
88
81
|
offset: offset
|
|
89
82
|
}, /*#__PURE__*/React.createElement(Footer, null)))));
|
|
90
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useRef","useState","useEffect","StyleSheet","View","Keyboard","useSelector","Easing","KeyboardState","cancelAnimation","runOnJS","useSharedValue","withTiming","Gesture","GestureDetector","HeaderFooterHideDelayMs","PipModes","Footer","DisplayView","Header","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useRef","useState","useEffect","StyleSheet","View","Keyboard","useSelector","Easing","KeyboardState","cancelAnimation","runOnJS","useSharedValue","withTiming","Gesture","GestureDetector","HeaderFooterHideDelayMs","PipModes","Footer","DisplayView","Header","useKeyboardState","HMSStatusBar","AnimatedFooter","AnimatedHeader","MeetingScreenContent","peerTrackNodes","offset","timerIdRef","controlsHidden","setControlsHidden","isPipModeActive","state","app","pipModeStatus","ACTIVE","keyboardState","dismissKeyboard","dismiss","clearTimer","current","clearTimeout","toggleControls","fromTimeout","value","OPEN","OPENING","duration","easing","ease","finished","setTimeout","tapGesture","Tap","onEnd","requireExternalGestureToFail","createElement","style","styles","container","hidden","barStyle","gesture","collapsable","create","flex","position","takeLessSpaceAsItCan","reconnectionWrapper"],"sourceRoot":"../../../src","sources":["components/MeetingScreenContent.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AACvE,SAASC,UAAU,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AACzD,SAASC,WAAW,QAAQ,aAAa;AACzC,SACEC,MAAM,EACNC,aAAa,EACbC,eAAe,EACfC,OAAO,EACPC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,SAASC,OAAO,EAAEC,eAAe,QAAQ,8BAA8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E9D,KAAA,CAAAyD,aAAA,CAACzC,eAAe;IAAC+C,OAAO,EAAEV;EAAW,gBACnCrD,KAAA,CAAAyD,aAAA,CAACnD,IAAI;IAAC0D,WAAW,EAAE,KAAM;IAACN,KAAK,EAAEC,MAAM,CAACC;EAAU,GAC/C5B,eAAe,GAAG,IAAI,gBACrBhC,KAAA,CAAAyD,aAAA,CAAChC,cAAc;IAACG,MAAM,EAAEA;EAAO,gBAC7B5B,KAAA,CAAAyD,aAAA,CAACpC,MAAM,MAAE,CACK,CACjB,eAEDrB,KAAA,CAAAyD,aAAA,CAACrC,WAAW;IAACQ,MAAM,EAAEA,MAAO;IAACD,cAAc,EAAEA;EAAe,CAAE,CAAC,EAE9DK,eAAe,GAAG,IAAI,gBACrBhC,KAAA,CAAAyD,aAAA,CAACjC,cAAc;IAACI,MAAM,EAAEA;EAAO,gBAC7B5B,KAAA,CAAAyD,aAAA,CAACtC,MAAM,MAAE,CACK,CAEd,CACS,CACb,CAAC;AAEX,CAAC;AAED,MAAMwC,MAAM,GAAGtD,UAAU,CAAC4D,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,IAAI,EAAE,CAAC;IACPC,QAAQ,EAAE;EACZ,CAAC;EACDC,oBAAoB,EAAE;IACpBF,IAAI,EAAE;EACR,CAAC;EACDG,mBAAmB,EAAE;IACnBH,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HMSNotifications } from './HMSNotifications';
|
|
3
3
|
import { OverlayContainer } from './OverlayContainer';
|
|
4
|
-
import {
|
|
4
|
+
import { HMSOverlayChatView } from './HMSOverlayChatView';
|
|
5
5
|
import { useShowChatAndParticipants } from '../hooks-util';
|
|
6
6
|
const _OverlayedViews = ({
|
|
7
7
|
offset,
|
|
@@ -12,7 +12,7 @@ const _OverlayedViews = ({
|
|
|
12
12
|
} = useShowChatAndParticipants();
|
|
13
13
|
return /*#__PURE__*/React.createElement(OverlayContainer.Overlay, {
|
|
14
14
|
animatedStyle: animatedStyle
|
|
15
|
-
}, overlayChatVisible ? /*#__PURE__*/React.createElement(
|
|
15
|
+
}, overlayChatVisible ? /*#__PURE__*/React.createElement(HMSOverlayChatView, {
|
|
16
16
|
offset: offset
|
|
17
17
|
}) : null, /*#__PURE__*/React.createElement(HMSNotifications, null));
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","HMSNotifications","OverlayContainer","
|
|
1
|
+
{"version":3,"names":["React","HMSNotifications","OverlayContainer","HMSOverlayChatView","useShowChatAndParticipants","_OverlayedViews","offset","animatedStyle","overlayChatVisible","createElement","Overlay","OverlayedViews","memo"],"sourceRoot":"../../../src","sources":["components/OverlayedViews.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAG9B,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,gBAAgB,QAAQ,oBAAoB;AAErD,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,0BAA0B,QAAQ,eAAe;AAM1D,MAAMC,eAA8C,GAAGA,CAAC;EACtDC,MAAM;EACNC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAmB,CAAC,GAAGJ,0BAA0B,CAAC,CAAC;EAE3D,oBACEJ,KAAA,CAAAS,aAAA,CAACP,gBAAgB,CAACQ,OAAO;IAACH,aAAa,EAAEA;EAAc,GACpDC,kBAAkB,gBAAGR,KAAA,CAAAS,aAAA,CAACN,kBAAkB;IAACG,MAAM,EAAEA;EAAO,CAAE,CAAC,GAAG,IAAI,eAEnEN,KAAA,CAAAS,aAAA,CAACR,gBAAgB,MAAE,CACK,CAAC;AAE/B,CAAC;AAED,OAAO,MAAMU,cAAc,gBAAGX,KAAK,CAACY,IAAI,CAACP,eAAe,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { GestureDetector, Gesture } from 'react-native-gesture-handler';
|
|
5
5
|
import { useHMSRoomStyleSheet, useIsHLSViewer } from '../hooks-util';
|
|
6
|
-
import { hexToRgbA } from '../utils/theme';
|
|
7
6
|
export const PressableIcon = ({
|
|
8
7
|
children,
|
|
9
8
|
style,
|
|
@@ -15,7 +14,7 @@ export const PressableIcon = ({
|
|
|
15
14
|
const isHLSViewer = useIsHLSViewer();
|
|
16
15
|
const hmsRoomStyles = useHMSRoomStyleSheet(theme => ({
|
|
17
16
|
pressable: {
|
|
18
|
-
backgroundColor: isHLSViewer ? theme.palette.
|
|
17
|
+
backgroundColor: isHLSViewer ? theme.palette.surface_default : undefined
|
|
19
18
|
},
|
|
20
19
|
border: {
|
|
21
20
|
borderColor: theme.palette.border_bright
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","TouchableOpacity","GestureDetector","Gesture","useHMSRoomStyleSheet","useIsHLSViewer","
|
|
1
|
+
{"version":3,"names":["React","StyleSheet","TouchableOpacity","GestureDetector","Gesture","useHMSRoomStyleSheet","useIsHLSViewer","PressableIcon","children","style","active","rounded","border","restProps","isHLSViewer","hmsRoomStyles","theme","pressable","backgroundColor","palette","surface_default","undefined","borderColor","border_bright","surface_brighter","tapGesture","useMemo","Tap","createElement","gesture","_extends","styles","borderRadius","withBorder","create","padding","alignSelf","borderWidth"],"sourceRoot":"../../../src","sources":["components/PressableIcon.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAE3D,SAASC,eAAe,EAAEC,OAAO,QAAQ,8BAA8B;AAEvE,SAASC,oBAAoB,EAAEC,cAAc,QAAQ,eAAe;AASpE,OAAO,MAAMC,aAA2C,GAAGA,CAAC;EAC1DC,QAAQ;EACRC,KAAK;EACLC,MAAM,GAAG,KAAK;EACdC,OAAO,GAAG,KAAK;EACfC,M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C;IACfG,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE;EACb,CAAC;EACDH,UAAU,EAAE;IACVI,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/hooks-util.js
CHANGED
|
@@ -17,7 +17,8 @@ import { getRoomLayout } from './modules/HMSManager';
|
|
|
17
17
|
import { DEFAULT_THEME, DEFAULT_TYPOGRAPHY } from './utils/theme';
|
|
18
18
|
import { NotificationTypes } from './types';
|
|
19
19
|
import { KeyboardState, useSharedValue } from 'react-native-reanimated';
|
|
20
|
-
import { useHMSActions } from './hooks-sdk';
|
|
20
|
+
import { useCanPublishAudio, useCanPublishScreen, useCanPublishVideo, useHMSActions } from './hooks-sdk';
|
|
21
|
+
import { useSafeAreaFrame, useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
21
22
|
export const useHMSListeners = setPeerTrackNodes => {
|
|
22
23
|
const hmsInstance = useHMSInstance();
|
|
23
24
|
const updateLocalPeer = useUpdateHMSLocalPeer(hmsInstance);
|
|
@@ -668,7 +669,7 @@ export const useHMSSessionStoreListeners = gridViewRef => {
|
|
|
668
669
|
spotlightTrackId: id
|
|
669
670
|
}));
|
|
670
671
|
// Scroll to start of the list
|
|
671
|
-
(_gridViewRef$current = gridViewRef.current) === null || _gridViewRef$current === void 0 || (_gridViewRef$current = _gridViewRef$current.getRegularTilesFlatlistRef().current) === null || _gridViewRef$current === void 0 || _gridViewRef$current.scrollToOffset({
|
|
672
|
+
gridViewRef === null || gridViewRef === void 0 || (_gridViewRef$current = gridViewRef.current) === null || _gridViewRef$current === void 0 || (_gridViewRef$current = _gridViewRef$current.getRegularTilesFlatlistRef().current) === null || _gridViewRef$current === void 0 || _gridViewRef$current.scrollToOffset({
|
|
672
673
|
animated: true,
|
|
673
674
|
offset: 0
|
|
674
675
|
});
|
|
@@ -1208,6 +1209,7 @@ export const useHMSConfig = () => {
|
|
|
1208
1209
|
};
|
|
1209
1210
|
};
|
|
1210
1211
|
export const useShowChatAndParticipants = () => {
|
|
1212
|
+
const isHLSViewer = useIsHLSViewer();
|
|
1211
1213
|
const dispatch = useDispatch();
|
|
1212
1214
|
const {
|
|
1213
1215
|
modalVisibleType,
|
|
@@ -1216,7 +1218,7 @@ export const useShowChatAndParticipants = () => {
|
|
|
1216
1218
|
const overlayChatLayout = useHMSChatLayoutConfig(chatConfig => chatConfig === null || chatConfig === void 0 ? void 0 : chatConfig.is_overlay);
|
|
1217
1219
|
const canShowChat = useHMSConferencingScreenConfig(conferencingScreenConfig => {
|
|
1218
1220
|
var _conferencingScreenCo2;
|
|
1219
|
-
return !!(conferencingScreenConfig !== null && conferencingScreenConfig !== void 0 && (_conferencingScreenCo2 = conferencingScreenConfig.elements) !== null && _conferencingScreenCo2 !== void 0 && _conferencingScreenCo2.chat);
|
|
1221
|
+
return !!(conferencingScreenConfig !== null && conferencingScreenConfig !== void 0 && (_conferencingScreenCo2 = conferencingScreenConfig.elements) !== null && _conferencingScreenCo2 !== void 0 && _conferencingScreenCo2.chat) && !isHLSViewer;
|
|
1220
1222
|
});
|
|
1221
1223
|
const canShowParticipants = useHMSConferencingScreenConfig(conferencingScreenConfig => {
|
|
1222
1224
|
var _conferencingScreenCo3;
|
|
@@ -1708,13 +1710,14 @@ export const useBackButtonPress = () => {
|
|
|
1708
1710
|
}, [handleBackPress, handleModalVisibleType]);
|
|
1709
1711
|
};
|
|
1710
1712
|
export const useLandscapeImmersiveMode = () => {
|
|
1713
|
+
const isHLSViewer = useIsHLSViewer();
|
|
1711
1714
|
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
1712
1715
|
useEffect(() => {
|
|
1713
|
-
if (isLandscapeOrientation) {
|
|
1716
|
+
if (!isHLSViewer && isLandscapeOrientation) {
|
|
1714
1717
|
WindowController.hideSystemBars();
|
|
1715
1718
|
return WindowController.showSystemBars;
|
|
1716
1719
|
}
|
|
1717
|
-
}, [isLandscapeOrientation]);
|
|
1720
|
+
}, [isHLSViewer, isLandscapeOrientation]);
|
|
1718
1721
|
};
|
|
1719
1722
|
export const useHLSCuedPolls = () => {
|
|
1720
1723
|
const dispatch = useDispatch();
|
|
@@ -2087,4 +2090,121 @@ export const useAllowBlockingPeerFromChat = () => {
|
|
|
2087
2090
|
return (config === null || config === void 0 || (_config$real_time_con = config.real_time_controls) === null || _config$real_time_con === void 0 ? void 0 : _config$real_time_con.can_block_user) ?? false;
|
|
2088
2091
|
});
|
|
2089
2092
|
};
|
|
2093
|
+
export const useCanShowRoomOptionsButton = () => {
|
|
2094
|
+
const canPublishAudio = useCanPublishAudio();
|
|
2095
|
+
const canPublishVideo = useCanPublishVideo();
|
|
2096
|
+
const canPublishScreen = useCanPublishScreen();
|
|
2097
|
+
const isViewer = !(canPublishAudio || canPublishVideo || canPublishScreen);
|
|
2098
|
+
const editUsernameDisabled = useSelector(state => state.app.editUsernameDisabled);
|
|
2099
|
+
const [isNoiseCancellationAvailable, setIsNoiseCancellationAvailable] = useState(false);
|
|
2100
|
+
const noiseCancellationPlugin = useSelector(state => state.hmsStates.noiseCancellationPlugin);
|
|
2101
|
+
useEffect(() => {
|
|
2102
|
+
if (noiseCancellationPlugin) {
|
|
2103
|
+
let mounted = true;
|
|
2104
|
+
noiseCancellationPlugin.isNoiseCancellationAvailable().then(isAvailable => {
|
|
2105
|
+
if (mounted) {
|
|
2106
|
+
setIsNoiseCancellationAvailable(isAvailable);
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
return () => {
|
|
2110
|
+
mounted = false;
|
|
2111
|
+
};
|
|
2112
|
+
}
|
|
2113
|
+
}, [noiseCancellationPlugin]);
|
|
2114
|
+
const canShowBRB = useHMSLayoutConfig(layoutConfig => {
|
|
2115
|
+
var _layoutConfig$screens3;
|
|
2116
|
+
return !!(layoutConfig !== null && layoutConfig !== void 0 && (_layoutConfig$screens3 = layoutConfig.screens) !== null && _layoutConfig$screens3 !== void 0 && (_layoutConfig$screens3 = _layoutConfig$screens3.conferencing) !== null && _layoutConfig$screens3 !== void 0 && (_layoutConfig$screens3 = _layoutConfig$screens3.default) !== null && _layoutConfig$screens3 !== void 0 && (_layoutConfig$screens3 = _layoutConfig$screens3.elements) !== null && _layoutConfig$screens3 !== void 0 && _layoutConfig$screens3.brb);
|
|
2117
|
+
});
|
|
2118
|
+
const canStartRecording = useSelector(state => {
|
|
2119
|
+
var _state$hmsStates$loca9;
|
|
2120
|
+
return !!((_state$hmsStates$loca9 = state.hmsStates.localPeer) !== null && _state$hmsStates$loca9 !== void 0 && (_state$hmsStates$loca9 = _state$hmsStates$loca9.role) !== null && _state$hmsStates$loca9 !== void 0 && (_state$hmsStates$loca9 = _state$hmsStates$loca9.permissions) !== null && _state$hmsStates$loca9 !== void 0 && _state$hmsStates$loca9.browserRecording);
|
|
2121
|
+
});
|
|
2122
|
+
const canReadOrWritePoll = useSelector(state => {
|
|
2123
|
+
var _state$hmsStates$loca10;
|
|
2124
|
+
const permissions = (_state$hmsStates$loca10 = state.hmsStates.localPeer) === null || _state$hmsStates$loca10 === void 0 || (_state$hmsStates$loca10 = _state$hmsStates$loca10.role) === null || _state$hmsStates$loca10 === void 0 ? void 0 : _state$hmsStates$loca10.permissions;
|
|
2125
|
+
return (permissions === null || permissions === void 0 ? void 0 : permissions.pollRead) || (permissions === null || permissions === void 0 ? void 0 : permissions.pollWrite);
|
|
2126
|
+
});
|
|
2127
|
+
const {
|
|
2128
|
+
canShowParticipants
|
|
2129
|
+
} = useShowChatAndParticipants();
|
|
2130
|
+
const canEditUsernameFromRoomModal = isViewer && !editUsernameDisabled;
|
|
2131
|
+
const canShowOptions = canShowParticipants || canPublishScreen || canShowBRB || canStartRecording || canEditUsernameFromRoomModal || canReadOrWritePoll || isNoiseCancellationAvailable;
|
|
2132
|
+
return canShowOptions;
|
|
2133
|
+
};
|
|
2134
|
+
export const useHLSViewsConstraints = () => {
|
|
2135
|
+
const hlsFullScreen = useSelector(state => state.app.hlsFullScreen);
|
|
2136
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
2137
|
+
const {
|
|
2138
|
+
width: safeAreaWidthFrame,
|
|
2139
|
+
height: safeAreaHeightFrame
|
|
2140
|
+
} = useSafeAreaFrame();
|
|
2141
|
+
const {
|
|
2142
|
+
top: topInset,
|
|
2143
|
+
bottom: bottomInset,
|
|
2144
|
+
left: leftInset,
|
|
2145
|
+
right: rightInset
|
|
2146
|
+
} = useSafeAreaInsets();
|
|
2147
|
+
const playerWrapperConstraints = hlsFullScreen ? {
|
|
2148
|
+
width: safeAreaWidthFrame - leftInset - rightInset,
|
|
2149
|
+
height: isLandscapeOrientation ? safeAreaHeightFrame : safeAreaHeightFrame - topInset - bottomInset
|
|
2150
|
+
} : {
|
|
2151
|
+
width: isLandscapeOrientation ? (safeAreaWidthFrame - leftInset - rightInset) * 0.6 : safeAreaWidthFrame,
|
|
2152
|
+
height: isLandscapeOrientation ? safeAreaHeightFrame : safeAreaWidthFrame * 9 / 16
|
|
2153
|
+
};
|
|
2154
|
+
const chatWrapperConstraints = {
|
|
2155
|
+
width: isLandscapeOrientation ? safeAreaWidthFrame - playerWrapperConstraints.width - leftInset : playerWrapperConstraints.width,
|
|
2156
|
+
height: isLandscapeOrientation ? playerWrapperConstraints.height : safeAreaHeightFrame - playerWrapperConstraints.height - topInset
|
|
2157
|
+
};
|
|
2158
|
+
const descriptionPaneConstraints = chatWrapperConstraints;
|
|
2159
|
+
return {
|
|
2160
|
+
playerWrapperConstraints,
|
|
2161
|
+
chatWrapperConstraints,
|
|
2162
|
+
descriptionPaneConstraints
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
export const useHLSPlayerConstraints = () => {
|
|
2166
|
+
const hlsFullScreen = useSelector(state => state.app.hlsFullScreen);
|
|
2167
|
+
const isLandscapeOrientation = useIsLandscapeOrientation();
|
|
2168
|
+
const resolution = useHMSHLSPlayerResolution();
|
|
2169
|
+
const {
|
|
2170
|
+
playerWrapperConstraints
|
|
2171
|
+
} = useHLSViewsConstraints();
|
|
2172
|
+
const wrapperWidth = playerWrapperConstraints.width;
|
|
2173
|
+
const wrapperHeight = playerWrapperConstraints.height;
|
|
2174
|
+
if (!resolution) {
|
|
2175
|
+
return {
|
|
2176
|
+
width: wrapperWidth,
|
|
2177
|
+
height: wrapperHeight
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2180
|
+
const sr = resolution.width / resolution.height; // stream width/height ratio
|
|
2181
|
+
const wr = wrapperWidth / wrapperHeight; // Wrapper width/height ratio
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* Handling Landscape Orientation for both Full and Normal screen
|
|
2185
|
+
*/
|
|
2186
|
+
if (isLandscapeOrientation) {
|
|
2187
|
+
return sr > 1 || sr > wr ? {
|
|
2188
|
+
width: wrapperWidth,
|
|
2189
|
+
height: wrapperWidth / sr
|
|
2190
|
+
} : {
|
|
2191
|
+
width: sr * wrapperHeight,
|
|
2192
|
+
height: wrapperHeight
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
/**
|
|
2197
|
+
* Handling Portrait Orientation
|
|
2198
|
+
*/
|
|
2199
|
+
if (hlsFullScreen) {
|
|
2200
|
+
return {
|
|
2201
|
+
width: sr > wr ? wrapperWidth : wrapperHeight * sr,
|
|
2202
|
+
height: sr > wr ? wrapperWidth / sr : wrapperHeight
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
return {
|
|
2206
|
+
width: wrapperHeight * sr,
|
|
2207
|
+
height: wrapperHeight
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2090
2210
|
//# sourceMappingURL=hooks-util.js.map
|