@100mslive/react-native-room-kit 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (512) hide show
  1. package/README.md +1 -1
  2. package/lib/commonjs/HMSInstanceSetup.js +2 -2
  3. package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
  4. package/lib/commonjs/HMSPrebuilt.js +5 -7
  5. package/lib/commonjs/HMSPrebuilt.js.map +1 -1
  6. package/lib/commonjs/HMSRoomSetup.js +3 -3
  7. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  8. package/lib/commonjs/Icons/Chevron/index.js +5 -1
  9. package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
  10. package/lib/commonjs/Icons/Leave/index.js +5 -1
  11. package/lib/commonjs/Icons/Leave/index.js.map +1 -1
  12. package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
  13. package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
  14. package/lib/commonjs/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
  15. package/lib/commonjs/Icons/WelcomeHand/index.js +30 -0
  16. package/lib/commonjs/Icons/WelcomeHand/index.js.map +1 -0
  17. package/lib/commonjs/Icons/index.js +11 -0
  18. package/lib/commonjs/Icons/index.js.map +1 -1
  19. package/lib/commonjs/components/AnimatedFooter.js +2 -2
  20. package/lib/commonjs/components/AnimatedFooter.js.map +1 -1
  21. package/lib/commonjs/components/AnimatedHLSFooter.js +2 -2
  22. package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -1
  23. package/lib/commonjs/components/AnimatedHeader.js +2 -2
  24. package/lib/commonjs/components/AnimatedHeader.js.map +1 -1
  25. package/lib/commonjs/components/AvatarView.js +2 -2
  26. package/lib/commonjs/components/AvatarView.js.map +1 -1
  27. package/lib/commonjs/components/BackButton.js +2 -2
  28. package/lib/commonjs/components/BackButton.js.map +1 -1
  29. package/lib/commonjs/components/BottomSheet.js +2 -2
  30. package/lib/commonjs/components/BottomSheet.js.map +1 -1
  31. package/lib/commonjs/components/ChangeNameModalContent.js +25 -6
  32. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
  33. package/lib/commonjs/components/Chat/ChatBanner.js +2 -2
  34. package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
  35. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +3 -4
  36. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -1
  37. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +3 -4
  38. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -1
  39. package/lib/commonjs/components/Chat/ChatFilterItem.js +3 -4
  40. package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -1
  41. package/lib/commonjs/components/Chat/ChatFilterView.js +3 -4
  42. package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -1
  43. package/lib/commonjs/components/Chat/ChatList.js +3 -4
  44. package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
  45. package/lib/commonjs/components/Chat/ChatMessage.js +3 -4
  46. package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
  47. package/lib/commonjs/components/Chat/PinnedMessage.js +2 -2
  48. package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
  49. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +2 -2
  50. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -1
  51. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +7 -7
  52. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  53. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +3 -4
  54. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -1
  55. package/lib/commonjs/components/ChatAndParticipants/ChatView.js +3 -4
  56. package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -1
  57. package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js +15 -14
  58. package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
  59. package/lib/commonjs/components/DisplayView.js +2 -2
  60. package/lib/commonjs/components/DisplayView.js.map +1 -1
  61. package/lib/commonjs/components/EndRoomModalContent.js +2 -2
  62. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
  63. package/lib/commonjs/components/Footer.js +4 -5
  64. package/lib/commonjs/components/Footer.js.map +1 -1
  65. package/lib/commonjs/components/FullScreenVideoView.js +2 -2
  66. package/lib/commonjs/components/FullScreenVideoView.js.map +1 -1
  67. package/lib/commonjs/components/GridView.js +3 -4
  68. package/lib/commonjs/components/GridView.js.map +1 -1
  69. package/lib/commonjs/components/HLSFooter.js +2 -2
  70. package/lib/commonjs/components/HLSFooter.js.map +1 -1
  71. package/lib/commonjs/components/HLSView.js +2 -2
  72. package/lib/commonjs/components/HLSView.js.map +1 -1
  73. package/lib/commonjs/components/HMSBaseButton.js +2 -2
  74. package/lib/commonjs/components/HMSBaseButton.js.map +1 -1
  75. package/lib/commonjs/components/HMSChat.js +2 -2
  76. package/lib/commonjs/components/HMSChat.js.map +1 -1
  77. package/lib/commonjs/components/HMSDangerButton.js +4 -3
  78. package/lib/commonjs/components/HMSDangerButton.js.map +1 -1
  79. package/lib/commonjs/components/HMSHLSMessage.js +3 -4
  80. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -1
  81. package/lib/commonjs/components/HMSHLSMessageList.js +2 -2
  82. package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -1
  83. package/lib/commonjs/components/HMSHLSNotStarted.js +2 -2
  84. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  85. package/lib/commonjs/components/HMSHLSStreamLoading.js +6 -4
  86. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
  87. package/lib/commonjs/components/HMSHandRaiseNotification.js +2 -2
  88. package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -1
  89. package/lib/commonjs/components/HMSKeyboardAvoidingView.js +4 -5
  90. package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -1
  91. package/lib/commonjs/components/HMSLiveIndicator.js +5 -6
  92. package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -1
  93. package/lib/commonjs/components/HMSLocalScreenshareNotification.js +2 -2
  94. package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -1
  95. package/lib/commonjs/components/HMSLocalVideoView.js +2 -2
  96. package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
  97. package/lib/commonjs/components/HMSManageAudioOutput.js +2 -2
  98. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  99. package/lib/commonjs/components/HMSManageCameraRotation.js +2 -2
  100. package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
  101. package/lib/commonjs/components/HMSManageLeave.js +4 -3
  102. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  103. package/lib/commonjs/components/HMSManageLocalAudio.js +2 -2
  104. package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
  105. package/lib/commonjs/components/HMSManageLocalVideo.js +2 -2
  106. package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
  107. package/lib/commonjs/components/HMSManageRaiseHand.js +23 -11
  108. package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
  109. package/lib/commonjs/components/HMSMeetingEnded.js +2 -2
  110. package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
  111. package/lib/commonjs/components/HMSNotification.js +2 -2
  112. package/lib/commonjs/components/HMSNotification.js.map +1 -1
  113. package/lib/commonjs/components/HMSNotifications.js +2 -2
  114. package/lib/commonjs/components/HMSNotifications.js.map +1 -1
  115. package/lib/commonjs/components/HMSOverlayChatView.js +2 -2
  116. package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -1
  117. package/lib/commonjs/components/HMSPreviewEditName.js +2 -2
  118. package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
  119. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +5 -4
  120. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  121. package/lib/commonjs/components/HMSPreviewJoinButton.js +10 -5
  122. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  123. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +2 -2
  124. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
  125. package/lib/commonjs/components/HMSPreviewPeersList.js +2 -2
  126. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  127. package/lib/commonjs/components/HMSPreviewSubtitle.js +2 -2
  128. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  129. package/lib/commonjs/components/HMSPreviewTile.js +3 -3
  130. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  131. package/lib/commonjs/components/HMSPreviewTitle.js +2 -2
  132. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  133. package/lib/commonjs/components/HMSPrimaryButton.js +2 -2
  134. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -1
  135. package/lib/commonjs/components/HMSRecordingIndicator.js +6 -3
  136. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
  137. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +2 -2
  138. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -1
  139. package/lib/commonjs/components/HMSRoomOptions.js +2 -2
  140. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  141. package/lib/commonjs/components/HMSSendMessageInput.js +2 -2
  142. package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -1
  143. package/lib/commonjs/components/HMSTextInput.js +5 -5
  144. package/lib/commonjs/components/HMSTextInput.js.map +1 -1
  145. package/lib/commonjs/components/HMSVideoView.js +2 -2
  146. package/lib/commonjs/components/HMSVideoView.js.map +1 -1
  147. package/lib/commonjs/components/Header.js +4 -6
  148. package/lib/commonjs/components/Header.js.map +1 -1
  149. package/lib/commonjs/components/LocalPeerRegularVideoView.js +2 -2
  150. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -1
  151. package/lib/commonjs/components/LocalPeerScreenshareView.js +2 -2
  152. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
  153. package/lib/commonjs/components/Meeting.js +2 -2
  154. package/lib/commonjs/components/Meeting.js.map +1 -1
  155. package/lib/commonjs/components/MeetingScreenContent.js +2 -2
  156. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  157. package/lib/commonjs/components/MiniView.js +2 -2
  158. package/lib/commonjs/components/MiniView.js.map +1 -1
  159. package/lib/commonjs/components/Modals.js +2 -2
  160. package/lib/commonjs/components/Modals.js.map +1 -1
  161. package/lib/commonjs/components/OverlayContainer.js +2 -2
  162. package/lib/commonjs/components/OverlayContainer.js.map +1 -1
  163. package/lib/commonjs/components/OverlayedViews.js +3 -4
  164. package/lib/commonjs/components/OverlayedViews.js.map +1 -1
  165. package/lib/commonjs/components/PIPView.js +24 -18
  166. package/lib/commonjs/components/PIPView.js.map +1 -1
  167. package/lib/commonjs/components/PaginationDots.js +3 -4
  168. package/lib/commonjs/components/PaginationDots.js.map +1 -1
  169. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js +65 -0
  170. package/lib/commonjs/components/Participants/MultiRoleParticipantsList.js.map +1 -0
  171. package/lib/commonjs/components/Participants/ParticipantsAccordian.js +60 -0
  172. package/lib/commonjs/components/Participants/ParticipantsAccordian.js.map +1 -0
  173. package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js +25 -0
  174. package/lib/commonjs/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
  175. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js +61 -0
  176. package/lib/commonjs/components/Participants/ParticipantsGroupFooter.js.map +1 -0
  177. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +31 -31
  178. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  179. package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +3 -4
  180. package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -1
  181. package/lib/commonjs/components/Participants/ParticipantsItem.js +12 -21
  182. package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -1
  183. package/lib/commonjs/components/Participants/ParticipantsItemOption.js +3 -4
  184. package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -1
  185. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +4 -5
  186. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -1
  187. package/lib/commonjs/components/Participants/ParticipantsList.js +157 -22
  188. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  189. package/lib/commonjs/components/Participants/ParticipantsListFooter.js +43 -0
  190. package/lib/commonjs/components/Participants/ParticipantsListFooter.js.map +1 -0
  191. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +4 -4
  192. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
  193. package/lib/commonjs/components/Participants/index.js +11 -0
  194. package/lib/commonjs/components/Participants/index.js.map +1 -1
  195. package/lib/commonjs/components/ParticipantsCount.js +3 -4
  196. package/lib/commonjs/components/ParticipantsCount.js.map +1 -1
  197. package/lib/commonjs/components/PeerDisplayView.js +1 -2
  198. package/lib/commonjs/components/PeerDisplayView.js.map +1 -1
  199. package/lib/commonjs/components/PeerMinimizedView.js +3 -4
  200. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -1
  201. package/lib/commonjs/components/PeerRTCStatsContainer.js +3 -4
  202. package/lib/commonjs/components/PeerRTCStatsContainer.js.map +1 -1
  203. package/lib/commonjs/components/PeerRTCStatsView.js +1 -2
  204. package/lib/commonjs/components/PeerRTCStatsView.js.map +1 -1
  205. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +4 -5
  206. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
  207. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +2 -2
  208. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -1
  209. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +2 -2
  210. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -1
  211. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js +12 -7
  212. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
  213. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +22 -12
  214. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -1
  215. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +2 -2
  216. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  217. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +26 -12
  218. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  219. package/lib/commonjs/components/PeerVideoTile/VideoView.js +3 -4
  220. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
  221. package/lib/commonjs/components/PressableIcon.js +2 -2
  222. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  223. package/lib/commonjs/components/Preview.js +5 -1
  224. package/lib/commonjs/components/Preview.js.map +1 -1
  225. package/lib/commonjs/components/PreviewForRoleChangeModal.js +4 -10
  226. package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -1
  227. package/lib/commonjs/components/ReconnectionView.js +3 -4
  228. package/lib/commonjs/components/ReconnectionView.js.map +1 -1
  229. package/lib/commonjs/components/RoomSettingsModalContent.js +49 -13
  230. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  231. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +1 -1
  232. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  233. package/lib/commonjs/components/StatusBar.js +2 -2
  234. package/lib/commonjs/components/StatusBar.js.map +1 -1
  235. package/lib/commonjs/components/StopRecordingModalContent.js +2 -2
  236. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -1
  237. package/lib/commonjs/components/StreamingQualityModalContent.js +2 -2
  238. package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
  239. package/lib/commonjs/components/Tile.js +1 -2
  240. package/lib/commonjs/components/Tile.js.map +1 -1
  241. package/lib/commonjs/components/TilesContainer.js +1 -2
  242. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  243. package/lib/commonjs/components/UnmountAfterDelay.js +3 -4
  244. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -1
  245. package/lib/commonjs/components/WebrtcView.js +5 -5
  246. package/lib/commonjs/components/WebrtcView.js.map +1 -1
  247. package/lib/commonjs/components/WelcomeInMeeting.js +30 -9
  248. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
  249. package/lib/commonjs/components/styles.js +1 -2
  250. package/lib/commonjs/components/styles.js.map +1 -1
  251. package/lib/commonjs/hooks-sdk.js +46 -1
  252. package/lib/commonjs/hooks-sdk.js.map +1 -1
  253. package/lib/commonjs/hooks-util.js +133 -119
  254. package/lib/commonjs/hooks-util.js.map +1 -1
  255. package/lib/commonjs/redux/actionTypes.js +6 -5
  256. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  257. package/lib/commonjs/redux/actions/index.js +20 -4
  258. package/lib/commonjs/redux/actions/index.js.map +1 -1
  259. package/lib/commonjs/redux/index.js +1 -2
  260. package/lib/commonjs/redux/index.js.map +1 -1
  261. package/lib/commonjs/redux/reducers/appState.js +3 -4
  262. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  263. package/lib/commonjs/redux/reducers/chatWindow.js +1 -2
  264. package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
  265. package/lib/commonjs/redux/reducers/hmsStates.js +192 -22
  266. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  267. package/lib/commonjs/redux/reducers/index.js +1 -2
  268. package/lib/commonjs/redux/reducers/index.js.map +1 -1
  269. package/lib/commonjs/redux/reducers/message.js +3 -4
  270. package/lib/commonjs/redux/reducers/message.js.map +1 -1
  271. package/lib/commonjs/redux/reducers/userState.js +3 -4
  272. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  273. package/lib/commonjs/types.js +1 -2
  274. package/lib/commonjs/types.js.map +1 -1
  275. package/lib/commonjs/utils/dimension.js +2 -4
  276. package/lib/commonjs/utils/dimension.js.map +1 -1
  277. package/lib/commonjs/utils/functions.js.map +1 -1
  278. package/lib/commonjs/utils/theme.js +5 -10
  279. package/lib/commonjs/utils/theme.js.map +1 -1
  280. package/lib/commonjs/utils/types.js +13 -23
  281. package/lib/commonjs/utils/types.js.map +1 -1
  282. package/lib/commonjs/utils.js +1 -2
  283. package/lib/commonjs/utils.js.map +1 -1
  284. package/lib/module/HMSPrebuilt.js +2 -3
  285. package/lib/module/HMSPrebuilt.js.map +1 -1
  286. package/lib/module/HMSRoomSetup.js +1 -1
  287. package/lib/module/HMSRoomSetup.js.map +1 -1
  288. package/lib/module/Icons/Chevron/index.js +5 -1
  289. package/lib/module/Icons/Chevron/index.js.map +1 -1
  290. package/lib/module/Icons/Leave/index.js +5 -1
  291. package/lib/module/Icons/Leave/index.js.map +1 -1
  292. package/lib/module/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
  293. package/lib/module/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
  294. package/lib/module/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
  295. package/lib/module/Icons/WelcomeHand/index.js +22 -0
  296. package/lib/module/Icons/WelcomeHand/index.js.map +1 -0
  297. package/lib/module/Icons/index.js +1 -0
  298. package/lib/module/Icons/index.js.map +1 -1
  299. package/lib/module/components/ChangeNameModalContent.js +25 -6
  300. package/lib/module/components/ChangeNameModalContent.js.map +1 -1
  301. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +4 -3
  302. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -1
  303. package/lib/module/components/ChatAndParticipants/ParticipantsView.js +13 -12
  304. package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -1
  305. package/lib/module/components/Footer.js +1 -1
  306. package/lib/module/components/Footer.js.map +1 -1
  307. package/lib/module/components/HMSDangerButton.js +2 -1
  308. package/lib/module/components/HMSDangerButton.js.map +1 -1
  309. package/lib/module/components/HMSHLSStreamLoading.js +5 -3
  310. package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
  311. package/lib/module/components/HMSKeyboardAvoidingView.js +3 -4
  312. package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -1
  313. package/lib/module/components/HMSLiveIndicator.js +3 -3
  314. package/lib/module/components/HMSLiveIndicator.js.map +1 -1
  315. package/lib/module/components/HMSManageLeave.js +2 -1
  316. package/lib/module/components/HMSManageLeave.js.map +1 -1
  317. package/lib/module/components/HMSManageRaiseHand.js +22 -10
  318. package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
  319. package/lib/module/components/HMSPreviewHLSLiveIndicator.js +3 -2
  320. package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  321. package/lib/module/components/HMSPreviewJoinButton.js +9 -4
  322. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  323. package/lib/module/components/HMSPreviewTile.js +1 -1
  324. package/lib/module/components/HMSPreviewTile.js.map +1 -1
  325. package/lib/module/components/HMSRecordingIndicator.js +4 -1
  326. package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
  327. package/lib/module/components/HMSTextInput.js +3 -3
  328. package/lib/module/components/HMSTextInput.js.map +1 -1
  329. package/lib/module/components/PIPView.js +21 -13
  330. package/lib/module/components/PIPView.js.map +1 -1
  331. package/lib/module/components/Participants/MultiRoleParticipantsList.js +56 -0
  332. package/lib/module/components/Participants/MultiRoleParticipantsList.js.map +1 -0
  333. package/lib/module/components/Participants/ParticipantsAccordian.js +51 -0
  334. package/lib/module/components/Participants/ParticipantsAccordian.js.map +1 -0
  335. package/lib/module/components/Participants/ParticipantsAccordianExpanded.js +16 -0
  336. package/lib/module/components/Participants/ParticipantsAccordianExpanded.js.map +1 -0
  337. package/lib/module/components/Participants/ParticipantsGroupFooter.js +53 -0
  338. package/lib/module/components/Participants/ParticipantsGroupFooter.js.map +1 -0
  339. package/lib/module/components/Participants/ParticipantsGroupHeader.js +28 -27
  340. package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -1
  341. package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -1
  342. package/lib/module/components/Participants/ParticipantsItem.js +10 -18
  343. package/lib/module/components/Participants/ParticipantsItem.js.map +1 -1
  344. package/lib/module/components/Participants/ParticipantsItemOptions.js +1 -1
  345. package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -1
  346. package/lib/module/components/Participants/ParticipantsList.js +156 -21
  347. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  348. package/lib/module/components/Participants/ParticipantsListFooter.js +35 -0
  349. package/lib/module/components/Participants/ParticipantsListFooter.js.map +1 -0
  350. package/lib/module/components/Participants/ParticipantsSeachInput.js +2 -2
  351. package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
  352. package/lib/module/components/Participants/index.js +1 -0
  353. package/lib/module/components/Participants/index.js.map +1 -1
  354. package/lib/module/components/PeerVideoTile/AvatarView.js +1 -1
  355. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
  356. package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +11 -6
  357. package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -1
  358. package/lib/module/components/PeerVideoTile/PeerMetadata.js +21 -11
  359. package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -1
  360. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +22 -6
  361. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  362. package/lib/module/components/Preview.js +6 -2
  363. package/lib/module/components/Preview.js.map +1 -1
  364. package/lib/module/components/PreviewForRoleChangeModal.js +1 -6
  365. package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -1
  366. package/lib/module/components/RoomSettingsModalContent.js +49 -13
  367. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  368. package/lib/module/components/RoomSettingsModalDebugModeContent.js +1 -1
  369. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  370. package/lib/module/components/WebrtcView.js +2 -1
  371. package/lib/module/components/WebrtcView.js.map +1 -1
  372. package/lib/module/components/WelcomeInMeeting.js +29 -8
  373. package/lib/module/components/WelcomeInMeeting.js.map +1 -1
  374. package/lib/module/hooks-sdk.js +46 -1
  375. package/lib/module/hooks-sdk.js.map +1 -1
  376. package/lib/module/hooks-util.js +135 -122
  377. package/lib/module/hooks-util.js.map +1 -1
  378. package/lib/module/redux/actionTypes.js +4 -1
  379. package/lib/module/redux/actionTypes.js.map +1 -1
  380. package/lib/module/redux/actions/index.js +14 -1
  381. package/lib/module/redux/actions/index.js.map +1 -1
  382. package/lib/module/redux/reducers/hmsStates.js +191 -20
  383. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  384. package/lib/module/utils/functions.js.map +1 -1
  385. package/lib/module/utils/types.js +1 -0
  386. package/lib/module/utils/types.js.map +1 -1
  387. package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
  388. package/lib/typescript/Icons/Chevron/index.d.ts +1 -1
  389. package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
  390. package/lib/typescript/Icons/Leave/index.d.ts.map +1 -1
  391. package/lib/typescript/Icons/WelcomeHand/index.d.ts +7 -0
  392. package/lib/typescript/Icons/WelcomeHand/index.d.ts.map +1 -0
  393. package/lib/typescript/Icons/index.d.ts +1 -0
  394. package/lib/typescript/Icons/index.d.ts.map +1 -1
  395. package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
  396. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -1
  397. package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -1
  398. package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -1
  399. package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
  400. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -1
  401. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  402. package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
  403. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
  404. package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
  405. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
  406. package/lib/typescript/components/PIPView.d.ts +2 -1
  407. package/lib/typescript/components/PIPView.d.ts.map +1 -1
  408. package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts +7 -0
  409. package/lib/typescript/components/Participants/MultiRoleParticipantsList.d.ts.map +1 -0
  410. package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts +11 -0
  411. package/lib/typescript/components/Participants/ParticipantsAccordian.d.ts.map +1 -0
  412. package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts +9 -0
  413. package/lib/typescript/components/Participants/ParticipantsAccordianExpanded.d.ts.map +1 -0
  414. package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts +9 -0
  415. package/lib/typescript/components/Participants/ParticipantsGroupFooter.d.ts.map +1 -0
  416. package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +6 -3
  417. package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -1
  418. package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +0 -2
  419. package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -1
  420. package/lib/typescript/components/Participants/ParticipantsItem.d.ts +3 -3
  421. package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -1
  422. package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +2 -2
  423. package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -1
  424. package/lib/typescript/components/Participants/ParticipantsList.d.ts +3 -4
  425. package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
  426. package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts +6 -0
  427. package/lib/typescript/components/Participants/ParticipantsListFooter.d.ts.map +1 -0
  428. package/lib/typescript/components/Participants/index.d.ts +1 -0
  429. package/lib/typescript/components/Participants/index.d.ts.map +1 -1
  430. package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -1
  431. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +1 -0
  432. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -1
  433. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
  434. package/lib/typescript/components/Preview.d.ts.map +1 -1
  435. package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -1
  436. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  437. package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
  438. package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
  439. package/lib/typescript/hooks-sdk.d.ts +4 -0
  440. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  441. package/lib/typescript/hooks-util.d.ts +9 -19
  442. package/lib/typescript/hooks-util.d.ts.map +1 -1
  443. package/lib/typescript/redux/actionTypes.d.ts +4 -1
  444. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  445. package/lib/typescript/redux/actions/index.d.ts +13 -0
  446. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  447. package/lib/typescript/redux/index.d.ts +1 -1
  448. package/lib/typescript/redux/reducers/hmsStates.d.ts +16 -3
  449. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  450. package/lib/typescript/redux/reducers/index.d.ts +1 -1
  451. package/lib/typescript/utils/functions.d.ts +0 -1
  452. package/lib/typescript/utils/functions.d.ts.map +1 -1
  453. package/lib/typescript/utils/types.d.ts +1 -0
  454. package/lib/typescript/utils/types.d.ts.map +1 -1
  455. package/package.json +3 -4
  456. package/src/HMSPrebuilt.tsx +3 -6
  457. package/src/HMSRoomSetup.tsx +1 -1
  458. package/src/Icons/Chevron/index.tsx +9 -2
  459. package/src/Icons/Leave/index.tsx +7 -1
  460. package/src/Icons/WelcomeHand/assets/welcome-hand.png +0 -0
  461. package/src/Icons/WelcomeHand/assets/welcome-hand@2x.png +0 -0
  462. package/src/Icons/WelcomeHand/assets/welcome-hand@3x.png +0 -0
  463. package/src/Icons/WelcomeHand/index.tsx +27 -0
  464. package/src/Icons/index.ts +1 -0
  465. package/src/components/ChangeNameModalContent.tsx +28 -9
  466. package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +6 -3
  467. package/src/components/ChatAndParticipants/ParticipantsView.tsx +21 -13
  468. package/src/components/Footer.tsx +1 -1
  469. package/src/components/HMSDangerButton.tsx +2 -1
  470. package/src/components/HMSHLSStreamLoading.tsx +9 -3
  471. package/src/components/HMSKeyboardAvoidingView.tsx +3 -3
  472. package/src/components/HMSLiveIndicator.tsx +3 -3
  473. package/src/components/HMSManageLeave.tsx +2 -1
  474. package/src/components/HMSManageRaiseHand.tsx +20 -13
  475. package/src/components/HMSPreviewHLSLiveIndicator.tsx +3 -2
  476. package/src/components/HMSPreviewJoinButton.tsx +15 -4
  477. package/src/components/HMSPreviewTile.tsx +1 -1
  478. package/src/components/HMSRecordingIndicator.tsx +3 -1
  479. package/src/components/HMSTextInput.tsx +3 -3
  480. package/src/components/PIPView.tsx +34 -13
  481. package/src/components/Participants/MultiRoleParticipantsList.tsx +70 -0
  482. package/src/components/Participants/ParticipantsAccordian.tsx +70 -0
  483. package/src/components/Participants/ParticipantsAccordianExpanded.tsx +27 -0
  484. package/src/components/Participants/ParticipantsGroupFooter.tsx +65 -0
  485. package/src/components/Participants/ParticipantsGroupHeader.tsx +37 -37
  486. package/src/components/Participants/ParticipantsGroupOptions.tsx +1 -6
  487. package/src/components/Participants/ParticipantsItem.tsx +16 -33
  488. package/src/components/Participants/ParticipantsItemOptions.tsx +3 -3
  489. package/src/components/Participants/ParticipantsList.tsx +197 -34
  490. package/src/components/Participants/ParticipantsListFooter.tsx +45 -0
  491. package/src/components/Participants/ParticipantsSeachInput.tsx +2 -2
  492. package/src/components/Participants/index.ts +1 -0
  493. package/src/components/PeerVideoTile/AvatarView.tsx +1 -1
  494. package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +11 -6
  495. package/src/components/PeerVideoTile/PeerMetadata.tsx +21 -12
  496. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +25 -8
  497. package/src/components/Preview.tsx +23 -9
  498. package/src/components/PreviewForRoleChangeModal.tsx +1 -6
  499. package/src/components/RoomSettingsModalContent.tsx +44 -9
  500. package/src/components/RoomSettingsModalDebugModeContent.tsx +1 -1
  501. package/src/components/WebrtcView.tsx +10 -1
  502. package/src/components/WelcomeInMeeting.tsx +33 -5
  503. package/src/hooks-sdk.ts +58 -0
  504. package/src/hooks-util.ts +229 -193
  505. package/src/redux/actionTypes.ts +4 -1
  506. package/src/redux/actions/index.ts +17 -1
  507. package/src/redux/reducers/hmsStates.ts +269 -36
  508. package/src/utils/functions.ts +0 -1
  509. package/src/utils/types.ts +2 -0
  510. package/lib/commonjs/assets/welcome.png +0 -0
  511. package/lib/module/assets/welcome.png +0 -0
  512. package/src/assets/welcome.png +0 -0
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { Image, StyleSheet } from 'react-native';
3
+ import type { ImageProps } from 'react-native';
4
+
5
+ interface WelcomeHandIconProps extends Omit<ImageProps, 'source'> {}
6
+
7
+ export const WelcomeHandIcon: React.FC<WelcomeHandIconProps> = ({
8
+ style,
9
+ ...restProps
10
+ }) => {
11
+ return (
12
+ <Image
13
+ source={require('./assets/welcome-hand.png')}
14
+ style={[styles.icon, style]}
15
+ {...restProps}
16
+ />
17
+ );
18
+ };
19
+
20
+ const styles = StyleSheet.create({
21
+ icon: {
22
+ width: 64,
23
+ height: 64,
24
+ alignItems: 'center',
25
+ justifyContent: 'center',
26
+ },
27
+ });
@@ -37,3 +37,4 @@ export * from './Hamburger';
37
37
  export * from './Stop';
38
38
  export * from './Eye';
39
39
  export * from './Search';
40
+ export * from './WelcomeHand';
@@ -9,12 +9,13 @@ import {
9
9
  import { useSelector } from 'react-redux';
10
10
 
11
11
  import type { RootState } from '../redux';
12
- import { useHMSRoomStyleSheet } from '../hooks-util';
13
- import { BottomSheet } from './BottomSheet';
12
+ import { isPublishingAllowed, useHMSRoomStyleSheet, useModalType } from '../hooks-util';
13
+ import { BottomSheet, useBottomSheetActions } from './BottomSheet';
14
14
  import { ChevronIcon, CloseIcon } from '../Icons';
15
15
  import { HMSTextInput } from './HMSTextInput';
16
16
  import { HMSPrimaryButton } from './HMSPrimaryButton';
17
17
  import { useHMSActions } from '../hooks-sdk';
18
+ import { ModalTypes } from '../utils/types';
18
19
 
19
20
  export interface ChangeNameModalContentProps {
20
21
  dismissModal(): void;
@@ -27,10 +28,18 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
27
28
  const localPeerName = useSelector(
28
29
  (state: RootState) => state.hmsStates.localPeer?.name || ''
29
30
  );
31
+ const isPublisher = useSelector((state: RootState) => {
32
+ const localPeer = state.hmsStates.localPeer;
33
+ return localPeer ? isPublishingAllowed(localPeer) : false;
34
+ });
30
35
 
31
36
  const [name, setName] = React.useState(localPeerName);
32
37
  const [nameChangeLoading, setNameChangeLoading] = React.useState(false);
33
38
 
39
+ const { handleModalVisibleType } = useModalType();
40
+
41
+ const { registerOnModalHideAction } = useBottomSheetActions();
42
+
34
43
  const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
35
44
  headerText: {
36
45
  color: theme.palette.on_surface_high,
@@ -44,6 +53,11 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
44
53
  const handleBackPress = () => {
45
54
  Keyboard.dismiss();
46
55
 
56
+ // Open SETTINGS bottom sheet when current sheet is closed
57
+ registerOnModalHideAction(() => {
58
+ handleModalVisibleType(ModalTypes.SETTINGS);
59
+ });
60
+
47
61
  // Close current bottom sheet
48
62
  dismissModal();
49
63
  };
@@ -71,12 +85,15 @@ export const ChangeNameModalContent: React.FC<ChangeNameModalContentProps> = ({
71
85
  {/* Header */}
72
86
  <View style={styles.header}>
73
87
  <View style={styles.headerControls}>
74
- <TouchableOpacity
75
- onPress={handleBackPress}
76
- hitSlop={styles.closeIconHitSlop}
77
- >
78
- <ChevronIcon direction="left" />
79
- </TouchableOpacity>
88
+ {isPublisher ? null : (
89
+ <TouchableOpacity
90
+ onPress={handleBackPress}
91
+ hitSlop={styles.closeIconHitSlop}
92
+ style={styles.backIcon}
93
+ >
94
+ <ChevronIcon direction="left" />
95
+ </TouchableOpacity>
96
+ )}
80
97
 
81
98
  <Text style={[styles.headerText, hmsRoomStyles.headerText]}>
82
99
  Change Name
@@ -130,7 +147,6 @@ const styles = StyleSheet.create({
130
147
  fontSize: 16,
131
148
  lineHeight: 24,
132
149
  letterSpacing: 0.15,
133
- marginLeft: 8,
134
150
  },
135
151
  closeIconHitSlop: {
136
152
  bottom: 16,
@@ -138,6 +154,9 @@ const styles = StyleSheet.create({
138
154
  right: 16,
139
155
  top: 16,
140
156
  },
157
+ backIcon: {
158
+ marginRight: 8,
159
+ },
141
160
  contentContainer: {
142
161
  marginHorizontal: 24,
143
162
  },
@@ -8,7 +8,6 @@ import {
8
8
  useShowChatAndParticipants,
9
9
  } from '../../hooks-util';
10
10
  import type { RootState } from '../../redux';
11
- import { COLORS } from '../../utils/theme';
12
11
  import { ChatBottomSheetTabs } from '../../utils/types';
13
12
  import { setActiveChatBottomSheetTab } from '../../redux/actions';
14
13
 
@@ -25,6 +24,9 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
25
24
  );
26
25
 
27
26
  const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
27
+ headerTitleWrapper: {
28
+ backgroundColor: theme.palette.surface_default,
29
+ },
28
30
  tab: {
29
31
  backgroundColor: theme.palette.surface_bright,
30
32
  },
@@ -67,7 +69,9 @@ const _ChatAndParticipantsHeader: React.FC<WebrtcChatHeaderProps> = ({
67
69
  : null}
68
70
  </Text>
69
71
  ) : (
70
- <View style={styles.headerTitleWrapper}>
72
+ <View
73
+ style={[styles.headerTitleWrapper, hmsRoomStyles.headerTitleWrapper]}
74
+ >
71
75
  {visibleChatBottomSheetTabs.map((tab) => {
72
76
  const isActive = activeChatBottomSheetTab === tab;
73
77
 
@@ -118,7 +122,6 @@ const styles = StyleSheet.create({
118
122
  flexDirection: 'row',
119
123
  padding: 4,
120
124
  borderRadius: 8,
121
- backgroundColor: COLORS.SURFACE.DEFAULT,
122
125
  marginRight: 16,
123
126
  },
124
127
  tab: {
@@ -1,19 +1,20 @@
1
1
  import * as React from 'react';
2
2
  import { View, StyleSheet } from 'react-native';
3
3
 
4
- import { useFilteredParticipants } from '../../hooks-util';
5
4
  import { ParticipantsList, ParticipantsSearchInput } from '../Participants';
5
+ import { MultiRoleParticipantsList } from '../Participants/MultiRoleParticipantsList';
6
6
 
7
7
  type ParticipantsViewProps = {};
8
8
 
9
9
  export const ParticipantsView: React.FC<ParticipantsViewProps> = () => {
10
- const {
11
- data,
12
- searchText,
13
- formattedSearchText,
14
- setSearchText,
15
- setExpandedGroups,
16
- } = useFilteredParticipants();
10
+ const [searchText, setSearchText] = React.useState('');
11
+ const [selectedGroupId, setSelectedGroupId] = React.useState<string | null>(
12
+ null
13
+ );
14
+
15
+ const clearSelectedGroup = React.useCallback(() => {
16
+ setSelectedGroupId(null);
17
+ }, []);
17
18
 
18
19
  return (
19
20
  <>
@@ -23,11 +24,18 @@ export const ParticipantsView: React.FC<ParticipantsViewProps> = () => {
23
24
  />
24
25
 
25
26
  <View style={styles.listWrapper}>
26
- <ParticipantsList
27
- data={data}
28
- setExpandedGroups={setExpandedGroups}
29
- searchTextExists={formattedSearchText.length > 0}
30
- />
27
+ {selectedGroupId === null ? (
28
+ <MultiRoleParticipantsList
29
+ searchText={searchText}
30
+ onViewAllPress={setSelectedGroupId}
31
+ />
32
+ ) : (
33
+ <ParticipantsList
34
+ searchText={searchText}
35
+ selectedGroupId={selectedGroupId}
36
+ onBackPress={clearSelectedGroup}
37
+ />
38
+ )}
31
39
  </View>
32
40
  </>
33
41
  );
@@ -50,7 +50,7 @@ export const _Footer: React.FC<FooterProps> = () => {
50
50
  );
51
51
 
52
52
  const canShowOptions =
53
- canPublishScreen || canShowParticipants || canShowBRB || canStartRecording;
53
+ isViewer || canPublishScreen || canShowParticipants || canShowBRB || canStartRecording;
54
54
 
55
55
  const footerActionButtons = useMemo(() => {
56
56
  const actions = [];
@@ -3,6 +3,7 @@ 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 { COLORS } from '../utils/theme';
6
7
 
7
8
  export interface HMSDangerButtonProps {
8
9
  title: string;
@@ -34,7 +35,7 @@ export const HMSDangerButton: React.FC<HMSDangerButtonProps> = ({
34
35
  backgroundColor: theme.palette.alert_error_dim,
35
36
  },
36
37
  buttonText: {
37
- color: theme.palette.alert_error_brighter,
38
+ color: COLORS.WHITE,
38
39
  fontFamily: `${typography.font_family}-SemiBold`,
39
40
  },
40
41
  disabledText: {
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { View, ActivityIndicator, Text, StyleSheet } from 'react-native';
3
3
  import { useSelector } from 'react-redux';
4
4
 
5
- import { COLORS } from '../utils/theme';
5
+ import { hexToRgbA } from '../utils/theme';
6
6
  import type { RootState } from '../redux';
7
7
  import { HMSLocalVideoView } from './HMSLocalVideoView';
8
8
  import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
@@ -22,13 +22,20 @@ export const HMSHLSStreamLoading = () => {
22
22
  color: theme.palette.on_surface_high,
23
23
  fontFamily: `${typography.font_family}-Regular`,
24
24
  },
25
+ backdropContainer: {
26
+ backgroundColor: theme.palette.background_dim
27
+ ? hexToRgbA(theme.palette.background_dim, 0.7)
28
+ : undefined,
29
+ },
25
30
  }));
26
31
 
27
32
  return (
28
33
  <View style={[styles.container, hmsRoomStyles.container]}>
29
34
  {isLocalVideoMuted ? null : <HMSLocalVideoView />}
30
35
 
31
- <View style={styles.hlsLoaderContainer}>
36
+ <View
37
+ style={[styles.hlsLoaderContainer, hmsRoomStyles.backdropContainer]}
38
+ >
32
39
  <ActivityIndicator
33
40
  style={styles.hlsLoader}
34
41
  size={'large'}
@@ -52,7 +59,6 @@ const styles = StyleSheet.create({
52
59
  position: 'absolute',
53
60
  width: '100%',
54
61
  height: '100%',
55
- backgroundColor: COLORS.LOADING_BACKDROP,
56
62
  zIndex: 5,
57
63
  alignItems: 'center',
58
64
  justifyContent: 'center',
@@ -2,10 +2,10 @@ import * as React from 'react';
2
2
  import { Platform, StatusBar, useWindowDimensions } from 'react-native';
3
3
  import type { StyleProp, ViewStyle } from 'react-native';
4
4
  import Animated, {
5
+ useAnimatedKeyboard,
5
6
  useAnimatedStyle,
6
7
  useSharedValue,
7
8
  } from 'react-native-reanimated';
8
- import { useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller';
9
9
 
10
10
  export interface HMSKeyboardAvoidingViewProps {
11
11
  style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
@@ -16,7 +16,7 @@ export const HMSKeyboardAvoidingView: React.FC<
16
16
  > = ({ children, style }) => {
17
17
  const animatedViewRef = React.useRef<Animated.View>(null);
18
18
  const { height: windowHeight } = useWindowDimensions();
19
- const animatedKeyboard = useReanimatedKeyboardAnimation();
19
+ const animatedKeyboard = useAnimatedKeyboard();
20
20
 
21
21
  const initialPageY = useSharedValue(0);
22
22
 
@@ -33,7 +33,7 @@ export const HMSKeyboardAvoidingView: React.FC<
33
33
  }, []);
34
34
 
35
35
  const keyboardAvoidStyle = useAnimatedStyle(() => {
36
- const keyboardHeight = -animatedKeyboard.height.value;
36
+ const keyboardHeight = animatedKeyboard.height.value;
37
37
  return {
38
38
  transform: [
39
39
  {
@@ -14,7 +14,7 @@ import {
14
14
  useShowChatAndParticipants,
15
15
  } from '../hooks-util';
16
16
  import { EyeIcon } from '../Icons';
17
- import { hexToRgbA } from '../utils/theme';
17
+ import { COLORS, hexToRgbA } from '../utils/theme';
18
18
  import type { RootState } from '../redux';
19
19
 
20
20
  const _HMSLiveIndicator = () => {
@@ -23,7 +23,7 @@ const _HMSLiveIndicator = () => {
23
23
  (state: RootState) => state.hmsStates.room?.peerCount
24
24
  );
25
25
  const live = useSelector(
26
- (state: RootState) => !!state.hmsStates.room?.hlsStreamingState.running
26
+ (state: RootState) => !!state.hmsStates.room?.hlsStreamingState?.running
27
27
  );
28
28
 
29
29
  const hmsRoomStyles = useHMSRoomStyleSheet((theme, typograhy) => ({
@@ -31,7 +31,7 @@ const _HMSLiveIndicator = () => {
31
31
  backgroundColor: theme.palette.alert_error_default,
32
32
  },
33
33
  liveText: {
34
- color: theme.palette.alert_error_brighter,
34
+ color: COLORS.WHITE,
35
35
  fontFamily: `${typograhy.font_family}-SemiBold`,
36
36
  },
37
37
  viewers: {
@@ -10,6 +10,7 @@ import { PressableIcon } from './PressableIcon';
10
10
  import { BottomSheet } from './BottomSheet';
11
11
  import { StopIcon } from '../Icons';
12
12
  import { EndRoomModalContent } from './EndRoomModalContent';
13
+ import { COLORS } from '../utils/theme';
13
14
 
14
15
  export const HMSManageLeave: React.FC<LeaveButtonProps> = (props) => {
15
16
  // TODO: read current meeting joined state
@@ -93,7 +94,7 @@ const LeaveButton: React.FC<LeaveButtonProps> = (props) => {
93
94
  borderColor: theme.palette.alert_error_default,
94
95
  },
95
96
  icon: {
96
- tintColor: theme.palette.alert_error_brighter,
97
+ tintColor: COLORS.WHITE,
97
98
  },
98
99
  }));
99
100
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { useSelector, shallowEqual } from 'react-redux';
2
+ import { useSelector } from 'react-redux';
3
3
 
4
4
  import type { RootState } from '../redux';
5
5
  import { useHMSActions } from '../hooks-sdk';
@@ -10,24 +10,31 @@ import { parseMetadata } from '../utils/functions';
10
10
  export const HMSManageRaiseHand = () => {
11
11
  const hmsActions = useHMSActions();
12
12
  const localPeerMetadata = useSelector(
13
- (state: RootState) => parseMetadata(state.hmsStates.localPeer?.metadata),
14
- shallowEqual
13
+ (state: RootState) => state.hmsStates.localPeer?.metadata
14
+ );
15
+ const parsedLocalPeerMetadata = parseMetadata(localPeerMetadata);
16
+ const isBRBOn = !!parsedLocalPeerMetadata.isBRBOn;
17
+ const isHandRaised = useSelector(
18
+ (state: RootState) => !!state.hmsStates.localPeer?.isHandRaised
15
19
  );
16
20
 
17
21
  const toggleRaiseHand = async () => {
18
- const newMetadata = {
19
- ...localPeerMetadata,
20
- isHandRaised: !localPeerMetadata.isHandRaised,
21
- isBRBOn: false,
22
- };
23
- await hmsActions.changeMetadata(newMetadata);
22
+ if (isBRBOn) {
23
+ const newMetadata = {
24
+ ...parsedLocalPeerMetadata,
25
+ isBRBOn: false,
26
+ };
27
+ await hmsActions.changeMetadata(newMetadata);
28
+ }
29
+ if (isHandRaised) {
30
+ await hmsActions.lowerLocalPeerHand();
31
+ } else {
32
+ await hmsActions.raiseLocalPeerHand();
33
+ }
24
34
  };
25
35
 
26
36
  return (
27
- <PressableIcon
28
- onPress={toggleRaiseHand}
29
- active={localPeerMetadata.isHandRaised}
30
- >
37
+ <PressableIcon onPress={toggleRaiseHand} active={isHandRaised}>
31
38
  <HandIcon />
32
39
  </PressableIcon>
33
40
  );
@@ -4,6 +4,7 @@ import { useSelector } from 'react-redux';
4
4
 
5
5
  import type { RootState } from '../redux';
6
6
  import { useHMSRoomStyleSheet } from '../hooks-util';
7
+ import { COLORS } from '../utils/theme';
7
8
 
8
9
  export const HMSPreviewHLSLiveIndicator = () => {
9
10
  const isHLSStreaming = useSelector(
@@ -15,10 +16,10 @@ export const HMSPreviewHLSLiveIndicator = () => {
15
16
  backgroundColor: theme.palette.alert_error_default,
16
17
  },
17
18
  circle: {
18
- backgroundColor: theme.palette.on_surface_high,
19
+ backgroundColor: COLORS.WHITE,
19
20
  },
20
21
  text: {
21
- color: theme.palette.on_surface_high,
22
+ color: COLORS.WHITE,
22
23
  fontFamily: `${typography.font_family}-SemiBold`,
23
24
  },
24
25
  }));
@@ -6,7 +6,7 @@ import type { RootState } from '../redux';
6
6
  import { RadioIcon } from '../Icons';
7
7
  import {
8
8
  useHMSLayoutConfig,
9
- useHMSRoomStyle,
9
+ useHMSRoomStyleSheet,
10
10
  useShouldGoLive,
11
11
  } from '../hooks-util';
12
12
  import { HMSPrimaryButton } from './HMSPrimaryButton';
@@ -36,8 +36,13 @@ export const HMSPreviewJoinButton: React.FC<HMSPreviewJoinButtonProps> = ({
36
36
 
37
37
  const shouldGoLive = useShouldGoLive();
38
38
 
39
- const liveIconStyles = useHMSRoomStyle((theme) => ({
40
- tintColor: theme.palette.on_primary_low,
39
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme) => ({
40
+ disabledLiveIcon: {
41
+ tintColor: theme.palette.on_primary_low,
42
+ },
43
+ activeLiveIcon: {
44
+ tintColor: theme.palette.on_primary_high,
45
+ },
41
46
  }));
42
47
 
43
48
  const disabledJoin = userNameInvalid || loading;
@@ -54,7 +59,13 @@ export const HMSPreviewJoinButton: React.FC<HMSPreviewJoinButtonProps> = ({
54
59
  disabled={disabledJoin}
55
60
  leftComponent={
56
61
  shouldGoLive ? (
57
- <RadioIcon style={disabledJoin ? liveIconStyles : null} />
62
+ <RadioIcon
63
+ style={
64
+ disabledJoin
65
+ ? hmsRoomStyles.disabledLiveIcon
66
+ : hmsRoomStyles.activeLiveIcon
67
+ }
68
+ />
58
69
  ) : null
59
70
  }
60
71
  style={styles.button}
@@ -26,7 +26,7 @@ export const HMSPreviewTile: React.FC = () => {
26
26
  backgroundColor: COLORS.EXTENDED.PURPLE,
27
27
  },
28
28
  avatarText: {
29
- color: theme.palette.on_surface_high,
29
+ color: COLORS.WHITE,
30
30
  fontFamily: `${typography.font_family}-SemiBold`,
31
31
  },
32
32
  }));
@@ -11,7 +11,9 @@ export const HMSRecordingIndicator = () => {
11
11
  (state: RootState) => !!state.hmsStates.room?.browserRecordingState?.running
12
12
  );
13
13
  const startingOrStoppingRecording = useSelector(
14
- (state: RootState) => state.app.startingOrStoppingRecording
14
+ (state: RootState) =>
15
+ state.app.startingOrStoppingRecording ||
16
+ state.hmsStates.room?.browserRecordingState.initialising
15
17
  );
16
18
 
17
19
  const { on_surface_high: onSurfaceHighColor } = useHMSRoomColorPalette();
@@ -52,7 +52,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
52
52
  const handleInputBlur = () => setInputFocused(false);
53
53
 
54
54
  const {
55
- on_surface_low: onSurfaceLowColor,
55
+ on_surface_medium: onSurfaceMediumColor,
56
56
  on_surface_high: onSurfaceHighColor,
57
57
  } = useHMSRoomColorPalette();
58
58
 
@@ -91,7 +91,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
91
91
 
92
92
  // ICON STYLES
93
93
  sendIcon: {
94
- tintColor: theme.palette.on_surface_low,
94
+ tintColor: theme.palette.on_surface_medium,
95
95
  },
96
96
  focusedSendIcon: {
97
97
  tintColor: theme.palette.on_surface_high,
@@ -123,7 +123,7 @@ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
123
123
  autoCapitalize={resetProps.autoCapitalize ?? 'words'}
124
124
  autoCompleteType={resetProps.autoCompleteType ?? 'name'}
125
125
  placeholderTextColor={
126
- resetProps.placeholderTextColor ?? onSurfaceLowColor
126
+ resetProps.placeholderTextColor ?? onSurfaceMediumColor
127
127
  }
128
128
  selectionColor={resetProps.selectionColor ?? onSurfaceHighColor}
129
129
  onFocus={resetProps.onFocus ?? handleInputFocus}
@@ -1,28 +1,49 @@
1
1
  import * as React from 'react';
2
+ import { useSelector } from 'react-redux';
2
3
 
3
4
  import type { PeerTrackNode } from '../utils/types';
4
-
5
- import PeerDisplayView from './PeerDisplayView';
6
- import { getTrackForPIPView } from '../utils/functions';
5
+ import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
6
+ import type { RootState } from '../redux';
7
7
 
8
8
  type PIPViewProps = {
9
- pairedPeers: PeerTrackNode[][];
9
+ peerTrackNodes: PeerTrackNode[];
10
+ customView?: React.ReactElement | null;
10
11
  };
11
12
 
12
- const PIPView: React.FC<PIPViewProps> = ({ pairedPeers }) => {
13
- const preferedPeerTrack = getTrackForPIPView(pairedPeers);
13
+ const PIPView: React.FC<PIPViewProps> = ({ peerTrackNodes, customView }) => {
14
+ const memoDominantSpeakerIdRef = React.useRef<string | null>(null);
15
+
16
+ const dominantSpeakerId = useSelector((state: RootState) => {
17
+ const dominantSpeaker = state.hmsStates.activeSpeakers[0];
18
+
19
+ return dominantSpeaker?.peer.peerID ?? null;
20
+ });
21
+
22
+ if (dominantSpeakerId) {
23
+ memoDominantSpeakerIdRef.current = dominantSpeakerId;
24
+ }
25
+
26
+ if (customView) {
27
+ return customView;
28
+ }
29
+
30
+ const firstPeerTrackNode = peerTrackNodes[0];
31
+
32
+ const preferedPeerTrack =
33
+ (memoDominantSpeakerIdRef.current
34
+ ? peerTrackNodes.find(
35
+ (node) => node.peer.peerID === memoDominantSpeakerIdRef.current
36
+ )
37
+ : firstPeerTrackNode) ?? firstPeerTrackNode;
14
38
 
15
- // If no Peer is available
16
- if (!preferedPeerTrack?.peer) {
39
+ if (!preferedPeerTrack) {
17
40
  return null;
18
41
  }
19
42
 
20
43
  return (
21
- <PeerDisplayView
22
- isLocal={preferedPeerTrack?.peer?.isLocal}
23
- peer={preferedPeerTrack?.peer}
24
- videoTrack={preferedPeerTrack?.track}
25
- isDegraded={preferedPeerTrack?.isDegraded}
44
+ <PeerVideoTileView
45
+ key={preferedPeerTrack.id}
46
+ peerTrackNode={preferedPeerTrack}
26
47
  />
27
48
  );
28
49
  };
@@ -0,0 +1,70 @@
1
+ import * as React from 'react';
2
+ import { ScrollView, StyleSheet, Text, View } from 'react-native';
3
+
4
+ import { useFilteredParticipants, useHMSRoomStyle } from '../../hooks-util';
5
+ import { ParticipantsAccordian } from './ParticipantsAccordian';
6
+
7
+ export type MultiRoleParticipantsListProps = {
8
+ searchText: string;
9
+ onViewAllPress(groupId: string): void;
10
+ };
11
+
12
+ export const MultiRoleParticipantsList: React.FC<MultiRoleParticipantsListProps> = ({
13
+ searchText,
14
+ onViewAllPress
15
+ }) => {
16
+ const {
17
+ data,
18
+ formattedSearchText,
19
+ expandedGroup,
20
+ setExpandedGroup,
21
+ } = useFilteredParticipants(searchText);
22
+
23
+ const emptyTextStyles = useHMSRoomStyle((theme, typography) => ({
24
+ color: theme.palette.on_surface_medium,
25
+ fontFamily: `${typography.font_family}-SemiBold`,
26
+ }));
27
+
28
+ const searchTextExists = formattedSearchText.length > 0
29
+
30
+ if (searchTextExists && data.length <= 0) {
31
+ return (
32
+ <View style={styles.emptyContainer}>
33
+ <Text style={[styles.emptyText, emptyTextStyles]}>
34
+ No results found...
35
+ </Text>
36
+ </View>
37
+ );
38
+ }
39
+
40
+ return (
41
+ <ScrollView contentContainerStyle={{paddingBottom: 40}}>
42
+ {data.map(item => (
43
+ <ParticipantsAccordian
44
+ key={item.id}
45
+ open={expandedGroup === item.id}
46
+ data={item}
47
+ toggle={setExpandedGroup}
48
+ showViewAll={item.showViewAll}
49
+ onViewAllPress={onViewAllPress}
50
+ />
51
+ ))}
52
+ </ScrollView>
53
+ );
54
+ };
55
+
56
+ const styles = StyleSheet.create({
57
+ list: {
58
+ paddingBottom: 32,
59
+ },
60
+ emptyContainer: {
61
+ flex: 1,
62
+ alignItems: 'center',
63
+ justifyContent: 'center',
64
+ },
65
+ emptyText: {
66
+ fontSize: 14,
67
+ lineHeight: 20,
68
+ letterSpacing: 0.25,
69
+ },
70
+ });