@100mslive/react-native-room-kit 1.0.2-beta.0 → 1.0.2
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/HMSRoomSetup.js +1 -0
- package/lib/commonjs/HMSRoomSetup.js.map +1 -1
- package/lib/commonjs/Icons/BRB/index.js +2 -0
- package/lib/commonjs/Icons/BRB/index.js.map +1 -1
- package/lib/commonjs/Icons/Hand/index.js +2 -0
- package/lib/commonjs/Icons/Hand/index.js.map +1 -1
- package/lib/commonjs/Icons/Leave/index.js +2 -0
- package/lib/commonjs/Icons/Leave/index.js.map +1 -1
- package/lib/commonjs/Icons/Mic/index.js +2 -0
- package/lib/commonjs/Icons/Mic/index.js.map +1 -1
- package/lib/commonjs/Icons/Stop/index.js +2 -0
- package/lib/commonjs/Icons/Stop/index.js.map +1 -1
- package/lib/commonjs/components/BackButton.js +2 -0
- package/lib/commonjs/components/BackButton.js.map +1 -1
- package/lib/commonjs/components/BottomSheet.js +7 -1
- package/lib/commonjs/components/BottomSheet.js.map +1 -1
- package/lib/commonjs/components/ChangeNameModalContent.js +5 -0
- package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +5 -0
- package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/commonjs/components/CompanyLogo.js +2 -0
- package/lib/commonjs/components/CompanyLogo.js.map +1 -1
- package/lib/commonjs/components/EndRoomModalContent.js +6 -1
- package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
- package/lib/commonjs/components/HMSBaseButton.js +2 -0
- package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
- package/lib/commonjs/components/HMSChat.js +2 -0
- package/lib/commonjs/components/HMSChat.js.map +1 -1
- package/lib/commonjs/components/HMSDangerButton.js +2 -0
- package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
- package/lib/commonjs/components/HMSLiveIndicator.js +6 -1
- package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js +3 -0
- package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/commonjs/components/HMSManageAudioOutput.js +32 -2
- package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/commonjs/components/HMSManageCameraRotation.js +2 -0
- package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/commonjs/components/HMSManageLeave.js +3 -1
- package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalAudio.js +2 -0
- package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/commonjs/components/HMSManageLocalVideo.js +2 -0
- package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/commonjs/components/HMSManageRaiseHand.js +2 -0
- package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/commonjs/components/HMSNotification.js +2 -0
- package/lib/commonjs/components/HMSNotification.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewEditName.js +2 -0
- package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewJoinButton.js +2 -0
- package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewSubtitle.js +8 -0
- package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/commonjs/components/HMSPreviewTitle.js +2 -0
- package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
- package/lib/commonjs/components/HMSPrimaryButton.js +2 -0
- package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
- package/lib/commonjs/components/HMSRoomOptions.js +2 -0
- package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
- package/lib/commonjs/components/HMSSendMessageInput.js +3 -0
- package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
- package/lib/commonjs/components/HMSTextInput.js +1 -0
- package/lib/commonjs/components/HMSTextInput.js.map +1 -1
- package/lib/commonjs/components/LeaveRoomBottomSheet.js +7 -0
- package/lib/commonjs/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +4 -0
- package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsItem.js +2 -0
- package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +2 -0
- package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js +8 -1
- package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +3 -0
- package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +3 -0
- package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js +13 -1
- package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/commonjs/hooks-util.js +2 -1
- package/lib/commonjs/hooks-util.js.map +1 -1
- package/lib/commonjs/redux/reducers/hmsStates.js +15 -4
- package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
- package/lib/commonjs/utils/constants.js +114 -0
- package/lib/commonjs/utils/constants.js.map +1 -0
- package/lib/module/HMSRoomSetup.js +1 -0
- package/lib/module/HMSRoomSetup.js.map +1 -1
- package/lib/module/Icons/BRB/index.js +2 -0
- package/lib/module/Icons/BRB/index.js.map +1 -1
- package/lib/module/Icons/Hand/index.js +2 -0
- package/lib/module/Icons/Hand/index.js.map +1 -1
- package/lib/module/Icons/Leave/index.js +2 -0
- package/lib/module/Icons/Leave/index.js.map +1 -1
- package/lib/module/Icons/Mic/index.js +2 -0
- package/lib/module/Icons/Mic/index.js.map +1 -1
- package/lib/module/Icons/Stop/index.js +2 -0
- package/lib/module/Icons/Stop/index.js.map +1 -1
- package/lib/module/components/BackButton.js +2 -0
- package/lib/module/components/BackButton.js.map +1 -1
- package/lib/module/components/BottomSheet.js +7 -1
- package/lib/module/components/BottomSheet.js.map +1 -1
- package/lib/module/components/ChangeNameModalContent.js +5 -0
- package/lib/module/components/ChangeNameModalContent.js.map +1 -1
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +5 -0
- package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
- package/lib/module/components/CompanyLogo.js +2 -0
- package/lib/module/components/CompanyLogo.js.map +1 -1
- package/lib/module/components/EndRoomModalContent.js +6 -1
- package/lib/module/components/EndRoomModalContent.js.map +1 -1
- package/lib/module/components/HMSBaseButton.js +2 -0
- package/lib/module/components/HMSBaseButton.js.map +1 -1
- package/lib/module/components/HMSChat.js +2 -0
- package/lib/module/components/HMSChat.js.map +1 -1
- package/lib/module/components/HMSDangerButton.js +2 -0
- package/lib/module/components/HMSDangerButton.js.map +1 -1
- package/lib/module/components/HMSLiveIndicator.js +6 -1
- package/lib/module/components/HMSLiveIndicator.js.map +1 -1
- package/lib/module/components/HMSLocalScreenshareNotification.js +3 -0
- package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -1
- package/lib/module/components/HMSManageAudioOutput.js +32 -2
- package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
- package/lib/module/components/HMSManageCameraRotation.js +2 -0
- package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
- package/lib/module/components/HMSManageLeave.js +3 -1
- package/lib/module/components/HMSManageLeave.js.map +1 -1
- package/lib/module/components/HMSManageLocalAudio.js +2 -0
- package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
- package/lib/module/components/HMSManageLocalVideo.js +2 -0
- package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
- package/lib/module/components/HMSManageRaiseHand.js +2 -0
- package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
- package/lib/module/components/HMSNotification.js +2 -0
- package/lib/module/components/HMSNotification.js.map +1 -1
- package/lib/module/components/HMSPreviewEditName.js +2 -0
- package/lib/module/components/HMSPreviewEditName.js.map +1 -1
- package/lib/module/components/HMSPreviewJoinButton.js +2 -0
- package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
- package/lib/module/components/HMSPreviewSubtitle.js +8 -0
- package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
- package/lib/module/components/HMSPreviewTitle.js +2 -0
- package/lib/module/components/HMSPreviewTitle.js.map +1 -1
- package/lib/module/components/HMSPrimaryButton.js +2 -0
- package/lib/module/components/HMSPrimaryButton.js.map +1 -1
- package/lib/module/components/HMSRoomOptions.js +2 -0
- package/lib/module/components/HMSRoomOptions.js.map +1 -1
- package/lib/module/components/HMSSendMessageInput.js +3 -0
- package/lib/module/components/HMSSendMessageInput.js.map +1 -1
- package/lib/module/components/HMSTextInput.js +1 -0
- package/lib/module/components/HMSTextInput.js.map +1 -1
- package/lib/module/components/LeaveRoomBottomSheet.js +7 -0
- package/lib/module/components/LeaveRoomBottomSheet.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsGroupHeader.js +4 -0
- package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsItem.js +2 -0
- package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
- package/lib/module/components/Participants/ParticipantsSeachInput.js +2 -0
- package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
- package/lib/module/components/PeerSettingsModalContent.js +8 -1
- package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +3 -0
- package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +3 -0
- package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
- package/lib/module/components/RoomSettingsModalContent.js +13 -1
- package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
- package/lib/module/hooks-util.js +2 -1
- package/lib/module/hooks-util.js.map +1 -1
- package/lib/module/redux/reducers/hmsStates.js +15 -4
- package/lib/module/redux/reducers/hmsStates.js.map +1 -1
- package/lib/module/utils/constants.js +108 -0
- package/lib/module/utils/constants.js.map +1 -0
- package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
- package/lib/typescript/Icons/BRB/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Leave/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
- package/lib/typescript/Icons/Stop/index.d.ts.map +1 -1
- package/lib/typescript/components/BackButton.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet.d.ts +4 -1
- package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
- package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
- package/lib/typescript/components/CompanyLogo.d.ts.map +1 -1
- package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
- package/lib/typescript/components/HMSBaseButton.d.ts +2 -1
- package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSChat.d.ts.map +1 -1
- package/lib/typescript/components/HMSDangerButton.d.ts +2 -0
- package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -1
- package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
- package/lib/typescript/components/HMSManageCameraRotation.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/HMSManageRaiseHand.d.ts.map +1 -1
- package/lib/typescript/components/HMSNotification.d.ts +2 -1
- package/lib/typescript/components/HMSNotification.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
- package/lib/typescript/components/HMSPrimaryButton.d.ts +2 -0
- package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -1
- package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
- package/lib/typescript/components/HMSSendMessageInput.d.ts.map +1 -1
- package/lib/typescript/components/HMSTextInput.d.ts +2 -1
- package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
- package/lib/typescript/components/LeaveRoomBottomSheet.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
- package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
- package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
- package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
- package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
- package/lib/typescript/hooks-util.d.ts.map +1 -1
- package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
- package/lib/typescript/utils/constants.d.ts +101 -0
- package/lib/typescript/utils/constants.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/HMSRoomSetup.tsx +1 -0
- package/src/Icons/BRB/index.tsx +2 -0
- package/src/Icons/Hand/index.tsx +6 -0
- package/src/Icons/Leave/index.tsx +2 -0
- package/src/Icons/Mic/index.tsx +6 -0
- package/src/Icons/Stop/index.tsx +2 -0
- package/src/components/BackButton.tsx +2 -0
- package/src/components/BottomSheet.tsx +10 -3
- package/src/components/ChangeNameModalContent.tsx +8 -1
- package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +26 -2
- package/src/components/CompanyLogo.tsx +2 -0
- package/src/components/EndRoomModalContent.tsx +13 -3
- package/src/components/HMSBaseButton.tsx +4 -1
- package/src/components/HMSChat.tsx +6 -1
- package/src/components/HMSDangerButton.tsx +4 -0
- package/src/components/HMSLiveIndicator.tsx +4 -3
- package/src/components/HMSLocalScreenshareNotification.tsx +3 -0
- package/src/components/HMSManageAudioOutput.tsx +35 -3
- package/src/components/HMSManageCameraRotation.tsx +2 -0
- package/src/components/HMSManageLeave.tsx +2 -0
- package/src/components/HMSManageLocalAudio.tsx +2 -0
- package/src/components/HMSManageLocalVideo.tsx +2 -0
- package/src/components/HMSManageRaiseHand.tsx +2 -1
- package/src/components/HMSNotification.tsx +4 -2
- package/src/components/HMSPreviewEditName.tsx +2 -1
- package/src/components/HMSPreviewJoinButton.tsx +6 -0
- package/src/components/HMSPreviewSubtitle.tsx +9 -6
- package/src/components/HMSPreviewTitle.tsx +2 -1
- package/src/components/HMSPrimaryButton.tsx +4 -0
- package/src/components/HMSRoomOptions.tsx +2 -1
- package/src/components/HMSSendMessageInput.tsx +3 -0
- package/src/components/HMSTextInput.tsx +3 -0
- package/src/components/LeaveRoomBottomSheet.tsx +7 -1
- package/src/components/Participants/ParticipantsGroupHeader.tsx +12 -2
- package/src/components/Participants/ParticipantsItem.tsx +2 -1
- package/src/components/Participants/ParticipantsSeachInput.tsx +2 -0
- package/src/components/PeerSettingsModalContent.tsx +9 -1
- package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +3 -0
- package/src/components/PeerVideoTile/PeerVideoTileView.tsx +3 -0
- package/src/components/RoomSettingsModalContent.tsx +14 -0
- package/src/hooks-util.ts +3 -2
- package/src/redux/reducers/hmsStates.ts +19 -7
- package/src/utils/constants.ts +146 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare const TestIds: {
|
|
2
|
+
readonly back_button: "back-button";
|
|
3
|
+
readonly company_logo: "company-logo";
|
|
4
|
+
readonly manage_audio_output: "change-audio-output-button";
|
|
5
|
+
readonly switch_camera: "switch-camera-button";
|
|
6
|
+
readonly switch_camera_disabled: "switch-camera-disabled-button";
|
|
7
|
+
readonly mic_muted_btn: "mic-muted-button";
|
|
8
|
+
readonly mic_unmuted_btn: "mic-unmuted-button";
|
|
9
|
+
readonly mic_muted_icon: "mic-muted-icon";
|
|
10
|
+
readonly mic_unmuted_icon: "mic-unmuted-icon";
|
|
11
|
+
readonly camera_muted_btn: "camera-muted-button";
|
|
12
|
+
readonly camera_unmuted_btn: "camera-unmuted-button";
|
|
13
|
+
readonly enter_name: "enter-name-input";
|
|
14
|
+
readonly go_live_btn: "go-live-button";
|
|
15
|
+
readonly join_now_btn: "join-now-button";
|
|
16
|
+
readonly title: "preview-title-text";
|
|
17
|
+
readonly subtitle: "preview-subtitle-text";
|
|
18
|
+
readonly live_text: "live-text";
|
|
19
|
+
readonly peer_count_icon: "peer-count-icon";
|
|
20
|
+
readonly peer_count: "peer-count-text";
|
|
21
|
+
readonly notification_sharing_screen: "notification-sharing-screen-text";
|
|
22
|
+
readonly notification_stop_screen_share_btn: "notification-stop-screen-share-button";
|
|
23
|
+
readonly brb_icon: "brb-icon";
|
|
24
|
+
readonly hand_icon: "hand-icon";
|
|
25
|
+
readonly hand_off_icon: "hand-off-icon";
|
|
26
|
+
readonly tile_options: "tile-three-dots-button";
|
|
27
|
+
readonly tile_user_name: "tile-user-name";
|
|
28
|
+
readonly tile_network_icon: "tile-network-icon";
|
|
29
|
+
readonly tile_modal_heading: "tile-modal-heading";
|
|
30
|
+
readonly tile_modal_subheading: "tile-modal-subheading";
|
|
31
|
+
readonly tile_modal_close_btn: "tile-modal-close-button";
|
|
32
|
+
readonly tile_modal_change_name_btn: "tile-modal-change-name-button";
|
|
33
|
+
readonly change_name_modal_heading: "change-name-modal-heading";
|
|
34
|
+
readonly change_name_input: "change-name-input";
|
|
35
|
+
readonly change_name_modal_close_btn: "change-name-modal-close-button";
|
|
36
|
+
readonly change_name_modal_cta: "change-name-modal-cta";
|
|
37
|
+
readonly footer_leave_btn: "footer-leave-button";
|
|
38
|
+
readonly leave_icon: "leave-icon";
|
|
39
|
+
readonly leave_description: "leave-description";
|
|
40
|
+
readonly leave_cta: "leave-cta";
|
|
41
|
+
readonly stop_icon: "stop-icon";
|
|
42
|
+
readonly end_session_description: "end-session-description";
|
|
43
|
+
readonly end_session_cta: "end-session-cta";
|
|
44
|
+
readonly end_stream_description: "end-stream-description";
|
|
45
|
+
readonly end_stream_cta: "end-stream-cta";
|
|
46
|
+
readonly end_confirmation_close_btn: "end-confirmation-close-btn";
|
|
47
|
+
readonly end_confirmation_cta: "end-confirmation-cta";
|
|
48
|
+
readonly end_confirmation_heading: "end-confirmation-heading";
|
|
49
|
+
readonly end_confirmation_description: "end-confirmation-description";
|
|
50
|
+
readonly hand_raise_btn: "hand-raise-button";
|
|
51
|
+
readonly hand_raised_btn: "hand-raised-button";
|
|
52
|
+
readonly open_chat_btn: "open-chat-button";
|
|
53
|
+
readonly close_chat_btn: "close-chat-button";
|
|
54
|
+
readonly enter_message_input: "enter-message-input";
|
|
55
|
+
readonly send_message_cta: "send-message-cta";
|
|
56
|
+
readonly room_options_btn: "room-options-button";
|
|
57
|
+
readonly room_modal_heading: "room-modal-heading";
|
|
58
|
+
readonly room_modal_close_btn: "room-modal-close-button";
|
|
59
|
+
readonly room_modal_participants_btn: "room-modal-participants-button";
|
|
60
|
+
readonly room_modal_share_screen_btn: "room-modal-share-screen-button";
|
|
61
|
+
readonly room_modal_stop_screen_share_btn: "room-modal-stop-screen-share-button";
|
|
62
|
+
readonly room_modal_brb_btn: "room-modal-brb-button";
|
|
63
|
+
readonly room_modal_stop_brb_btn: "room-modal-stop-brb-button";
|
|
64
|
+
readonly room_modal_hand_raise_btn: "room-modal-hand-raise-button";
|
|
65
|
+
readonly room_modal_hand_raised_btn: "room-modal-hand-raised-button";
|
|
66
|
+
readonly room_modal_start_recording_btn: "room-modal-start-recording-button";
|
|
67
|
+
readonly room_modal_stop_recording_btn: "room-modal-stop-recording-button";
|
|
68
|
+
readonly room_modal_change_name_btn: "room-modal-change-name-button";
|
|
69
|
+
readonly participants_heading: "participants-heading";
|
|
70
|
+
readonly participants_heading_active: "participants-heading--active";
|
|
71
|
+
readonly participants_heading_btn: "participants-heading-button";
|
|
72
|
+
readonly chat_heading: "chat-heading";
|
|
73
|
+
readonly chat_heading_active: "chat-heading--active";
|
|
74
|
+
readonly chat_heading_btn: "chat-heading-button";
|
|
75
|
+
readonly participants_close_btn: "participants-close-button";
|
|
76
|
+
readonly search_participant_input: "search-participant-input";
|
|
77
|
+
readonly participants_group_name: "participants-group-name";
|
|
78
|
+
readonly participants_group_back_btn: "participants-group-back-button";
|
|
79
|
+
readonly participants_group_expand_btn: "participants-group-expand-button";
|
|
80
|
+
readonly participants_group_collapse_btn: "participants-group-collapse-button";
|
|
81
|
+
readonly participant_name: "participant-name";
|
|
82
|
+
readonly audio_modal_heading: "audio-modal-heading";
|
|
83
|
+
readonly audio_modal_close_btn: "audio-modal-close-button";
|
|
84
|
+
readonly audio_modal_empty_text: "audio-modal-empty-text";
|
|
85
|
+
readonly automatic_audio_device_btn: "automatic-audio-device-button";
|
|
86
|
+
readonly automatic_audio_device_text: "automatic-audio-device-text";
|
|
87
|
+
readonly automatic_audio_device_active: "automatic-audio-device--active";
|
|
88
|
+
readonly phone_speaker_audio_device_btn: "phone-speaker-audio-device-button";
|
|
89
|
+
readonly phone_speaker_audio_device_text: "phone-speaker-audio-device-text";
|
|
90
|
+
readonly phone_speaker_audio_device_active: "phone-speaker-audio-device--active";
|
|
91
|
+
readonly wired_headset_audio_device_btn: "wired-headset-audio-device-button";
|
|
92
|
+
readonly wired_headset_audio_device_text: "wired-headset-audio-device-text";
|
|
93
|
+
readonly wired_headset_audio_device_active: "wired-headset-audio-device--active";
|
|
94
|
+
readonly earpiece_audio_device_btn: "earpiece-audio-device-button";
|
|
95
|
+
readonly earpiece_audio_device_text: "earpiece-audio-device-text";
|
|
96
|
+
readonly earpiece_audio_device_active: "earpiece-audio-device--active";
|
|
97
|
+
readonly bluetooth_audio_device_btn: "bluetooth-audio-device-button";
|
|
98
|
+
readonly bluetooth_audio_device_text: "bluetooth-audio-device-text";
|
|
99
|
+
readonly bluetooth_audio_device_active: "bluetooth-audio-device--active";
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@100mslive/react-native-room-kit",
|
|
3
|
-
"version": "1.0.2
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"typescript": "^5.0.2"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@100mslive/react-native-hms": "1.9.1
|
|
82
|
+
"@100mslive/react-native-hms": "1.9.1",
|
|
83
83
|
"@react-native-community/blur": "^4.3.2",
|
|
84
84
|
"@react-native-masked-view/masked-view": "^0.2.9",
|
|
85
85
|
"@shopify/flash-list": "^1.4.3",
|
package/src/HMSRoomSetup.tsx
CHANGED
|
@@ -133,6 +133,7 @@ export const HMSRoomSetup = () => {
|
|
|
133
133
|
console.log('Start HLS Streaming Error: ', e);
|
|
134
134
|
if (!ignoreHLSStreamPromise.current) {
|
|
135
135
|
console.log('Unable to go live at the moment: ', e);
|
|
136
|
+
dispatch(changeStartingHLSStream(false));
|
|
136
137
|
// prebuiltCleanUp();
|
|
137
138
|
}
|
|
138
139
|
}
|
package/src/Icons/BRB/index.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
import { TestIds } from '../../utils/constants';
|
|
6
7
|
|
|
7
8
|
interface BRBIconProps extends Omit<ImageProps, 'source'> {}
|
|
8
9
|
|
|
@@ -13,6 +14,7 @@ export const BRBIcon: React.FC<BRBIconProps> = ({ style, ...restProps }) => {
|
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<Image
|
|
17
|
+
testID={TestIds.brb_icon}
|
|
16
18
|
source={require('./assets/BRB.png')}
|
|
17
19
|
style={[styles.icon, iconStyles, style]}
|
|
18
20
|
{...restProps}
|
package/src/Icons/Hand/index.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
import { TestIds } from '../../utils/constants';
|
|
6
7
|
|
|
7
8
|
interface HandIconProps extends Omit<ImageProps, 'source'> {
|
|
8
9
|
type?: 'off' | 'on';
|
|
@@ -19,6 +20,11 @@ export const HandIcon: React.FC<HandIconProps> = ({
|
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<Image
|
|
23
|
+
testID={
|
|
24
|
+
type === 'on'
|
|
25
|
+
? TestIds.hand_icon
|
|
26
|
+
: TestIds.hand_off_icon
|
|
27
|
+
}
|
|
22
28
|
source={
|
|
23
29
|
type === 'on'
|
|
24
30
|
? require('./assets/hand.png')
|
|
@@ -3,6 +3,7 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
import { TestIds } from '../../utils/constants';
|
|
6
7
|
|
|
7
8
|
interface LeaveIconProps extends Omit<ImageProps, 'source'> {}
|
|
8
9
|
|
|
@@ -16,6 +17,7 @@ export const LeaveIcon: React.FC<LeaveIconProps> = ({
|
|
|
16
17
|
|
|
17
18
|
return (
|
|
18
19
|
<Image
|
|
20
|
+
testID={TestIds.leave_icon}
|
|
19
21
|
source={require('./assets/leave.png')}
|
|
20
22
|
style={[styles.icon, iconStyles, style]}
|
|
21
23
|
{...restProps}
|
package/src/Icons/Mic/index.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
import { TestIds } from '../../utils/constants';
|
|
6
7
|
|
|
7
8
|
interface MicIconProps extends Omit<ImageProps, 'source'> {
|
|
8
9
|
muted: boolean;
|
|
@@ -19,6 +20,11 @@ export const MicIcon: React.FC<MicIconProps> = ({
|
|
|
19
20
|
|
|
20
21
|
return (
|
|
21
22
|
<Image
|
|
23
|
+
testID={
|
|
24
|
+
muted
|
|
25
|
+
? TestIds.mic_muted_icon
|
|
26
|
+
: TestIds.mic_unmuted_icon
|
|
27
|
+
}
|
|
22
28
|
source={
|
|
23
29
|
muted
|
|
24
30
|
? require('./assets/mic-muted.png')
|
package/src/Icons/Stop/index.tsx
CHANGED
|
@@ -3,6 +3,7 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useHMSRoomStyle } from '../../hooks-util';
|
|
6
|
+
import { TestIds } from '../../utils/constants';
|
|
6
7
|
|
|
7
8
|
interface StopIconProps extends Omit<ImageProps, 'source'> {}
|
|
8
9
|
|
|
@@ -13,6 +14,7 @@ export const StopIcon: React.FC<StopIconProps> = ({ style, ...restProps }) => {
|
|
|
13
14
|
|
|
14
15
|
return (
|
|
15
16
|
<Image
|
|
17
|
+
testID={TestIds.stop_icon}
|
|
16
18
|
source={require('./assets/stop.png')}
|
|
17
19
|
style={[styles.icon, iconStyles, style]}
|
|
18
20
|
{...restProps}
|
|
@@ -5,6 +5,7 @@ import { NavigationContext } from '@react-navigation/native';
|
|
|
5
5
|
import { PressableIcon } from './PressableIcon';
|
|
6
6
|
import { ChevronIcon } from '../Icons';
|
|
7
7
|
import { useHMSRoomStyle } from '../hooks-util';
|
|
8
|
+
import { TestIds } from '../utils/constants';
|
|
8
9
|
|
|
9
10
|
export interface BackButtonProps {}
|
|
10
11
|
|
|
@@ -27,6 +28,7 @@ export const BackButton: React.FC<BackButtonProps> = () => {
|
|
|
27
28
|
|
|
28
29
|
return (
|
|
29
30
|
<PressableIcon
|
|
31
|
+
testID={TestIds.back_button}
|
|
30
32
|
style={[styles.button, buttonStyles]}
|
|
31
33
|
rounded={true}
|
|
32
34
|
border={false}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import Modal from 'react-native-modal';
|
|
3
3
|
import type { ReactNativeModal } from 'react-native-modal';
|
|
4
4
|
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
5
|
-
import type { StyleProp, ViewStyle } from 'react-native';
|
|
5
|
+
import type { StyleProp, TextProps, TouchableOpacityProps, ViewStyle } from 'react-native';
|
|
6
6
|
|
|
7
7
|
import { CloseIcon } from '../Icons';
|
|
8
8
|
import {
|
|
@@ -66,12 +66,18 @@ interface HeaderProps {
|
|
|
66
66
|
dismissModal(): void;
|
|
67
67
|
heading: string;
|
|
68
68
|
subheading?: string;
|
|
69
|
+
headingTestID?: TextProps['testID'];
|
|
70
|
+
subheadingTestID?: TextProps['testID'];
|
|
71
|
+
closeIconTestID?: TouchableOpacityProps['testID'];
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
const BottomSheetHeader: React.FC<HeaderProps> = ({
|
|
72
75
|
dismissModal,
|
|
73
76
|
heading,
|
|
74
77
|
subheading,
|
|
78
|
+
headingTestID,
|
|
79
|
+
subheadingTestID,
|
|
80
|
+
closeIconTestID,
|
|
75
81
|
}) => {
|
|
76
82
|
const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
|
|
77
83
|
headerText: {
|
|
@@ -87,18 +93,19 @@ const BottomSheetHeader: React.FC<HeaderProps> = ({
|
|
|
87
93
|
return (
|
|
88
94
|
<View style={styles.header}>
|
|
89
95
|
<View>
|
|
90
|
-
<Text style={[styles.headerText, hmsRoomStyles.headerText]}>
|
|
96
|
+
<Text testID={headingTestID} style={[styles.headerText, hmsRoomStyles.headerText]}>
|
|
91
97
|
{heading}
|
|
92
98
|
</Text>
|
|
93
99
|
|
|
94
100
|
{subheading ? (
|
|
95
|
-
<Text style={[styles.subheadingText, hmsRoomStyles.subheadingText]}>
|
|
101
|
+
<Text testID={subheadingTestID} style={[styles.subheadingText, hmsRoomStyles.subheadingText]}>
|
|
96
102
|
{subheading}
|
|
97
103
|
</Text>
|
|
98
104
|
) : null}
|
|
99
105
|
</View>
|
|
100
106
|
|
|
101
107
|
<TouchableOpacity
|
|
108
|
+
testID={closeIconTestID}
|
|
102
109
|
onPress={dismissModal}
|
|
103
110
|
hitSlop={styles.closeIconHitSlop}
|
|
104
111
|
>
|
|
@@ -16,6 +16,7 @@ import { HMSTextInput } from './HMSTextInput';
|
|
|
16
16
|
import { HMSPrimaryButton } from './HMSPrimaryButton';
|
|
17
17
|
import { useHMSActions } from '../hooks-sdk';
|
|
18
18
|
import { ModalTypes } from '../utils/types';
|
|
19
|
+
import { TestIds } from '../utils/constants';
|
|
19
20
|
|
|
20
21
|
export interface ChangeNameModalContentProps {
|
|
21
22
|
dismissModal(): void;
|
|
@@ -95,12 +96,16 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
|
|
|
95
96
|
</TouchableOpacity>
|
|
96
97
|
)}
|
|
97
98
|
|
|
98
|
-
<Text
|
|
99
|
+
<Text
|
|
100
|
+
testID={TestIds.change_name_modal_heading}
|
|
101
|
+
style={[styles.headerText, hmsRoomStyles.headerText]}
|
|
102
|
+
>
|
|
99
103
|
Change Name
|
|
100
104
|
</Text>
|
|
101
105
|
</View>
|
|
102
106
|
|
|
103
107
|
<TouchableOpacity
|
|
108
|
+
testID={TestIds.change_name_modal_close_btn}
|
|
104
109
|
onPress={handleClosePress}
|
|
105
110
|
hitSlop={styles.closeIconHitSlop}
|
|
106
111
|
>
|
|
@@ -114,6 +119,7 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
|
|
|
114
119
|
{/* Content */}
|
|
115
120
|
<View style={styles.contentContainer}>
|
|
116
121
|
<HMSTextInput
|
|
122
|
+
testID={TestIds.change_name_input}
|
|
117
123
|
style={styles.textInput}
|
|
118
124
|
value={name}
|
|
119
125
|
autoFocus={true}
|
|
@@ -121,6 +127,7 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
|
|
|
121
127
|
/>
|
|
122
128
|
|
|
123
129
|
<HMSPrimaryButton
|
|
130
|
+
testId={TestIds.change_name_modal_cta}
|
|
124
131
|
loading={nameChangeLoading}
|
|
125
132
|
onPress={changeName}
|
|
126
133
|
title="Change"
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import type { RootState } from '../../redux';
|
|
11
11
|
import { ChatBottomSheetTabs } from '../../utils/types';
|
|
12
12
|
import { setActiveChatBottomSheetTab } from '../../redux/actions';
|
|
13
|
+
import { TestIds } from '../../utils/constants';
|
|
13
14
|
|
|
14
15
|
interface WebrtcChatHeaderProps {
|
|
15
16
|
onClosePress?: () => void;
|
|
@@ -61,7 +62,16 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
|
|
|
61
62
|
}
|
|
62
63
|
>
|
|
63
64
|
{visibleChatBottomSheetTabs.length === 1 ? (
|
|
64
|
-
<Text
|
|
65
|
+
<Text
|
|
66
|
+
testID={
|
|
67
|
+
visibleChatBottomSheetTabs[0] === 'Participants'
|
|
68
|
+
? TestIds.participants_heading
|
|
69
|
+
: visibleChatBottomSheetTabs[0] === 'Chat'
|
|
70
|
+
? TestIds.chat_heading
|
|
71
|
+
: undefined
|
|
72
|
+
}
|
|
73
|
+
style={[styles.headerTitle, hmsRoomStyles.activeHeaderTitle]}
|
|
74
|
+
>
|
|
65
75
|
{visibleChatBottomSheetTabs[0]}
|
|
66
76
|
{visibleChatBottomSheetTabs[0] === 'Participants' &&
|
|
67
77
|
typeof peersCount === 'number'
|
|
@@ -78,10 +88,24 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
|
|
|
78
88
|
return (
|
|
79
89
|
<TouchableOpacity
|
|
80
90
|
key={tab}
|
|
91
|
+
testID={
|
|
92
|
+
tab === 'Participants'
|
|
93
|
+
? TestIds.participants_heading_btn
|
|
94
|
+
: tab === 'Chat'
|
|
95
|
+
? TestIds.chat_heading_btn
|
|
96
|
+
: undefined
|
|
97
|
+
}
|
|
81
98
|
style={[styles.tab, isActive ? hmsRoomStyles.tab : null]}
|
|
82
99
|
onPress={() => dispatch(setActiveChatBottomSheetTab(tab))}
|
|
83
100
|
>
|
|
84
101
|
<Text
|
|
102
|
+
testID={
|
|
103
|
+
tab === 'Participants'
|
|
104
|
+
? (isActive ? TestIds.participants_heading_active : TestIds.participants_heading)
|
|
105
|
+
: tab === 'Chat'
|
|
106
|
+
? (isActive ? TestIds.chat_heading_active : TestIds.chat_heading)
|
|
107
|
+
: undefined
|
|
108
|
+
}
|
|
85
109
|
style={[
|
|
86
110
|
styles.headerTitle,
|
|
87
111
|
hmsRoomStyles.headerTitle,
|
|
@@ -99,7 +123,7 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
|
|
|
99
123
|
</View>
|
|
100
124
|
)}
|
|
101
125
|
|
|
102
|
-
<TouchableOpacity onPress={onClosePress}>
|
|
126
|
+
<TouchableOpacity testID={TestIds.participants_close_btn} onPress={onClosePress}>
|
|
103
127
|
<CloseIcon />
|
|
104
128
|
</TouchableOpacity>
|
|
105
129
|
</View>
|
|
@@ -3,6 +3,7 @@ import { Image, StyleSheet } from 'react-native';
|
|
|
3
3
|
import type { ImageProps } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useHMSLayoutConfig } from '../hooks-util';
|
|
6
|
+
import { TestIds } from '../utils/constants';
|
|
6
7
|
|
|
7
8
|
interface CompanyLogoProps extends Omit<ImageProps, 'source'> {}
|
|
8
9
|
|
|
@@ -20,6 +21,7 @@ export const CompanyLogo: React.FC<CompanyLogoProps> = ({
|
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
23
|
<Image
|
|
24
|
+
testID={TestIds.company_logo}
|
|
23
25
|
source={{ uri: logoSource }}
|
|
24
26
|
style={[styles.icon, style]}
|
|
25
27
|
{...restProps}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { useSelector } from 'react-redux';
|
|
2
3
|
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
4
|
|
|
4
5
|
import { useHMSRoomStyleSheet, useLeaveMethods } from '../hooks-util';
|
|
5
6
|
import { AlertTriangleIcon, CloseIcon } from '../Icons';
|
|
6
7
|
import { HMSDangerButton } from './HMSDangerButton';
|
|
7
|
-
import { useSelector } from 'react-redux';
|
|
8
8
|
import type { RootState } from '../redux';
|
|
9
9
|
import { OnLeaveReason } from '../utils/types';
|
|
10
|
+
import { TestIds } from '../utils/constants';
|
|
10
11
|
|
|
11
12
|
export interface EndRoomModalContentProps {
|
|
12
13
|
dismissModal(): void;
|
|
@@ -48,7 +49,10 @@ export const EndRoomModalContent: React.FC<EndRoomModalContentProps> = ({
|
|
|
48
49
|
<View style={styles.headerControls}>
|
|
49
50
|
<AlertTriangleIcon />
|
|
50
51
|
|
|
51
|
-
<Text
|
|
52
|
+
<Text
|
|
53
|
+
testID={TestIds.end_confirmation_heading}
|
|
54
|
+
style={[styles.headerText, hmsRoomStyles.headerText]}
|
|
55
|
+
>
|
|
52
56
|
{canStream && isStreaming
|
|
53
57
|
? 'End Stream'
|
|
54
58
|
: canEndRoom
|
|
@@ -58,13 +62,18 @@ export const EndRoomModalContent: React.FC<EndRoomModalContentProps> = ({
|
|
|
58
62
|
</View>
|
|
59
63
|
|
|
60
64
|
<TouchableOpacity
|
|
65
|
+
testID={TestIds.end_confirmation_close_btn}
|
|
61
66
|
onPress={dismissModal}
|
|
62
67
|
hitSlop={styles.closeIconHitSlop}
|
|
63
68
|
>
|
|
64
69
|
<CloseIcon />
|
|
65
70
|
</TouchableOpacity>
|
|
66
71
|
</View>
|
|
67
|
-
|
|
72
|
+
|
|
73
|
+
<Text
|
|
74
|
+
testID={TestIds.end_confirmation_description}
|
|
75
|
+
style={[styles.text, hmsRoomStyles.text]}
|
|
76
|
+
>
|
|
68
77
|
{canStream && isStreaming
|
|
69
78
|
? 'The stream will end for everyone after they’ve watched it.'
|
|
70
79
|
: canEndRoom
|
|
@@ -72,6 +81,7 @@ export const EndRoomModalContent: React.FC<EndRoomModalContentProps> = ({
|
|
|
72
81
|
: 'Others will continue after you leave. You can join the session again.'}
|
|
73
82
|
</Text>
|
|
74
83
|
<HMSDangerButton
|
|
84
|
+
testID={TestIds.end_confirmation_cta}
|
|
75
85
|
loading={false}
|
|
76
86
|
onPress={() => {
|
|
77
87
|
if (canStream && isStreaming) {
|
|
@@ -6,12 +6,13 @@ import {
|
|
|
6
6
|
TouchableHighlight,
|
|
7
7
|
View,
|
|
8
8
|
} from 'react-native';
|
|
9
|
-
import type { StyleProp, ViewStyle, TextStyle, ColorValue } from 'react-native';
|
|
9
|
+
import type { StyleProp, ViewStyle, TextStyle, ColorValue, TouchableHighlightProps } from 'react-native';
|
|
10
10
|
|
|
11
11
|
export interface HMSBaseButtonProps {
|
|
12
12
|
title: string;
|
|
13
13
|
loading: boolean;
|
|
14
14
|
onPress(): void;
|
|
15
|
+
testID?: TouchableHighlightProps['testID'];
|
|
15
16
|
underlayColor?: ColorValue | undefined;
|
|
16
17
|
loaderColor?: ColorValue | undefined;
|
|
17
18
|
style?: StyleProp<ViewStyle>;
|
|
@@ -21,6 +22,7 @@ export interface HMSBaseButtonProps {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export const HMSBaseButton: React.FC<HMSBaseButtonProps> = ({
|
|
25
|
+
testID,
|
|
24
26
|
underlayColor,
|
|
25
27
|
loaderColor,
|
|
26
28
|
title,
|
|
@@ -33,6 +35,7 @@ export const HMSBaseButton: React.FC<HMSBaseButtonProps> = ({
|
|
|
33
35
|
}) => {
|
|
34
36
|
return (
|
|
35
37
|
<TouchableHighlight
|
|
38
|
+
testID={testID}
|
|
36
39
|
underlayColor={underlayColor}
|
|
37
40
|
style={[styles.button, style]}
|
|
38
41
|
onPress={onPress}
|
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { ChatIcon } from '../Icons';
|
|
4
4
|
import { PressableIcon } from './PressableIcon';
|
|
5
5
|
import { useShowChatAndParticipants } from '../hooks-util';
|
|
6
|
+
import { TestIds } from '../utils/constants';
|
|
6
7
|
|
|
7
8
|
export const HMSChat = () => {
|
|
8
9
|
const { overlayChatVisible, show, hide } = useShowChatAndParticipants();
|
|
@@ -16,7 +17,11 @@ export const HMSChat = () => {
|
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
return (
|
|
19
|
-
<PressableIcon
|
|
20
|
+
<PressableIcon
|
|
21
|
+
testID={overlayChatVisible ? TestIds.close_chat_btn : TestIds.open_chat_btn}
|
|
22
|
+
onPress={toggleChatWindow}
|
|
23
|
+
active={overlayChatVisible}
|
|
24
|
+
>
|
|
20
25
|
<ChatIcon />
|
|
21
26
|
</PressableIcon>
|
|
22
27
|
);
|
|
@@ -3,12 +3,14 @@ import type { StyleProp, ViewStyle } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
|
|
5
5
|
import { HMSBaseButton } from './HMSBaseButton';
|
|
6
|
+
import type { HMSBaseButtonProps } from './HMSBaseButton';
|
|
6
7
|
import { COLORS } from '../utils/theme';
|
|
7
8
|
|
|
8
9
|
export interface HMSDangerButtonProps {
|
|
9
10
|
title: string;
|
|
10
11
|
loading: boolean;
|
|
11
12
|
onPress(): void;
|
|
13
|
+
testID?: HMSBaseButtonProps['testID'];
|
|
12
14
|
style?: StyleProp<ViewStyle>;
|
|
13
15
|
disabled?: boolean;
|
|
14
16
|
leftComponent?: React.ReactElement | null;
|
|
@@ -18,6 +20,7 @@ export const HMSDangerButton: React.FC<HMSDangerButtonProps> = ({
|
|
|
18
20
|
title,
|
|
19
21
|
loading,
|
|
20
22
|
onPress,
|
|
23
|
+
testID,
|
|
21
24
|
style,
|
|
22
25
|
disabled,
|
|
23
26
|
leftComponent,
|
|
@@ -45,6 +48,7 @@ export const HMSDangerButton: React.FC<HMSDangerButtonProps> = ({
|
|
|
45
48
|
|
|
46
49
|
return (
|
|
47
50
|
<HMSBaseButton
|
|
51
|
+
testID={testID}
|
|
48
52
|
loaderColor={alertErrorBrighterColor}
|
|
49
53
|
loading={loading}
|
|
50
54
|
onPress={onPress}
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
import { EyeIcon } from '../Icons';
|
|
17
17
|
import { COLORS, hexToRgbA } from '../utils/theme';
|
|
18
18
|
import type { RootState } from '../redux';
|
|
19
|
+
import { TestIds } from '../utils/constants';
|
|
19
20
|
|
|
20
21
|
const _HMSLiveIndicator = () => {
|
|
21
22
|
const isHLSViewer = useIsHLSViewer();
|
|
@@ -62,7 +63,7 @@ const _HMSLiveIndicator = () => {
|
|
|
62
63
|
<View style={styles.container}>
|
|
63
64
|
{/* Live */}
|
|
64
65
|
<View style={[styles.live, hmsRoomStyles.live]}>
|
|
65
|
-
<Text style={[styles.liveText, hmsRoomStyles.liveText]}>LIVE</Text>
|
|
66
|
+
<Text testID={TestIds.live_text} style={[styles.liveText, hmsRoomStyles.liveText]}>LIVE</Text>
|
|
66
67
|
</View>
|
|
67
68
|
|
|
68
69
|
{/* Viewer Count */}
|
|
@@ -72,9 +73,9 @@ const _HMSLiveIndicator = () => {
|
|
|
72
73
|
onPress={showParticipantsSheet}
|
|
73
74
|
disabled={!canShowParticipants}
|
|
74
75
|
>
|
|
75
|
-
<EyeIcon />
|
|
76
|
+
<EyeIcon testID={TestIds.peer_count_icon} />
|
|
76
77
|
|
|
77
|
-
<Text style={[styles.count, hmsRoomStyles.count]}>
|
|
78
|
+
<Text testID={TestIds.peer_count} style={[styles.count, hmsRoomStyles.count]}>
|
|
78
79
|
{previewPeerCount}
|
|
79
80
|
</Text>
|
|
80
81
|
</TouchableOpacity>
|
|
@@ -6,6 +6,7 @@ import { HMSDangerButton } from './HMSDangerButton';
|
|
|
6
6
|
import { HMSNotification } from './HMSNotification';
|
|
7
7
|
import { useHMSRoomStyle } from '../hooks-util';
|
|
8
8
|
import { NotificationTypes } from '../types';
|
|
9
|
+
import { TestIds } from '../utils/constants';
|
|
9
10
|
|
|
10
11
|
export interface HMSLocalScreenshareNotificationProps {}
|
|
11
12
|
|
|
@@ -28,9 +29,11 @@ export const HMSLocalScreenshareNotification: React.FC<
|
|
|
28
29
|
autoDismiss={false}
|
|
29
30
|
style={notificationStyle}
|
|
30
31
|
text={'You are sharing your screen'}
|
|
32
|
+
textTestID={TestIds.notification_sharing_screen}
|
|
31
33
|
icon={<ScreenShareIcon />}
|
|
32
34
|
cta={
|
|
33
35
|
<HMSDangerButton
|
|
36
|
+
testID={TestIds.notification_stop_screen_share_btn}
|
|
34
37
|
loading={false}
|
|
35
38
|
onPress={stopScreenshare}
|
|
36
39
|
title="Stop"
|