@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
@@ -1,21 +1,42 @@
1
1
  import * as React from 'react';
2
- import { View, StyleSheet, Image } from 'react-native';
2
+ import { View, StyleSheet, Text } from 'react-native';
3
+ import { WelcomeHandIcon } from '../Icons';
4
+ import { useHMSRoomStyleSheet } from '../hooks-util';
3
5
  export const WelcomeInMeeting = () => {
4
- return /*#__PURE__*/React.createElement(View, {
5
- style: styles.container
6
- }, /*#__PURE__*/React.createElement(Image, {
7
- source: require('../assets/welcome.png'),
8
- style: {
9
- width: 149,
10
- height: 152
6
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
7
+ title: {
8
+ color: theme.palette.on_surface_high,
9
+ fontFamily: `${typography.font_family}-SemiBold`
10
+ },
11
+ subtitle: {
12
+ color: theme.palette.on_surface_medium,
13
+ fontFamily: `${typography.font_family}-Regular`
11
14
  }
12
15
  }));
16
+ return /*#__PURE__*/React.createElement(View, {
17
+ style: styles.container
18
+ }, /*#__PURE__*/React.createElement(WelcomeHandIcon, null), /*#__PURE__*/React.createElement(Text, {
19
+ style: [styles.title, hmsRoomStyles.title]
20
+ }, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
21
+ style: [styles.subtitle, hmsRoomStyles.subtitle]
22
+ }, "Sit back and relax."));
13
23
  };
14
24
  const styles = StyleSheet.create({
15
25
  container: {
16
26
  flex: 1,
17
27
  alignItems: 'center',
18
28
  justifyContent: 'center'
29
+ },
30
+ title: {
31
+ fontSize: 24,
32
+ lineHeight: 32,
33
+ marginTop: 24
34
+ },
35
+ subtitle: {
36
+ fontSize: 16,
37
+ lineHeight: 24,
38
+ letterSpacing: 0.5,
39
+ marginTop: 8
19
40
  }
20
41
  });
21
42
  //# sourceMappingURL=WelcomeInMeeting.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","StyleSheet","Image","WelcomeInMeeting","createElement","style","styles","container","source","require","width","height","create","flex","alignItems","justifyContent"],"sourceRoot":"../../../src","sources":["components/WelcomeInMeeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,UAAU,EAAEC,KAAK,QAAQ,cAAc;AAItD,OAAO,MAAMC,gBAAiD,GAAGA,CAAA,KAAM;EACrE,oBACEJ,KAAA,CAAAK,aAAA,CAACJ,IAAI;IAACK,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BR,KAAA,CAAAK,aAAA,CAACF,KAAK;IACJM,MAAM,EAAEC,OAAO,CAAC,uBAAuB,CAAE;IACzCJ,KAAK,EAAE;MAAEK,KAAK,EAAE,GAAG;MAAEC,MAAM,EAAE;IAAI;EAAE,CACpC,CACG,CAAC;AAEX,CAAC;AAED,MAAML,MAAM,GAAGL,UAAU,CAACW,MAAM,CAAC;EAC/BL,SAAS,EAAE;IACTM,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC"}
1
+ {"version":3,"names":["React","View","StyleSheet","Text","WelcomeHandIcon","useHMSRoomStyleSheet","WelcomeInMeeting","hmsRoomStyles","theme","typography","title","color","palette","on_surface_high","fontFamily","font_family","subtitle","on_surface_medium","createElement","style","styles","container","create","flex","alignItems","justifyContent","fontSize","lineHeight","marginTop","letterSpacing"],"sourceRoot":"../../../src","sources":["components/WelcomeInMeeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAErD,SAASC,eAAe,QAAQ,UAAU;AAC1C,SAASC,oBAAoB,QAAQ,eAAe;AAIpD,OAAO,MAAMC,gBAAiD,GAAGA,CAAA,KAAM;EACrE,MAAMC,aAAa,GAAGF,oBAAoB,CAAC,CAACG,KAAK,EAAEC,UAAU,MAAM;IACjEC,KAAK,EAAE;MACLC,KAAK,EAAEH,KAAK,CAACI,OAAO,CAACC,eAAe;MACpCC,UAAU,EAAG,GAAEL,UAAU,CAACM,WAAY;IACxC,CAAC;IACDC,QAAQ,EAAE;MACRL,KAAK,EAAEH,KAAK,CAACI,OAAO,CAACK,iBAAiB;MACtCH,UAAU,EAAG,GAAEL,UAAU,CAACM,WAAY;IACxC;EACF,CAAC,CAAC,CAAC;EAEH,oBACEf,KAAA,CAAAkB,aAAA,CAACjB,IAAI;IAACkB,KAAK,EAAEC,MAAM,CAACC;EAAU,gBAC5BrB,KAAA,CAAAkB,aAAA,CAACd,eAAe,MAAE,CAAC,eAEnBJ,KAAA,CAAAkB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACC,MAAM,CAACV,KAAK,EAAEH,aAAa,CAACG,KAAK;EAAE,GAAC,UAAc,CAAC,eAEjEV,KAAA,CAAAkB,aAAA,CAACf,IAAI;IAACgB,KAAK,EAAE,CAACC,MAAM,CAACJ,QAAQ,EAAET,aAAa,CAACS,QAAQ;EAAE,GAAC,qBAElD,CACF,CAAC;AAEX,CAAC;AAED,MAAMI,MAAM,GAAGlB,UAAU,CAACoB,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDf,KAAK,EAAE;IACLgB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE;EACb,CAAC;EACDZ,QAAQ,EAAE;IACRU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdE,aAAa,EAAE,GAAG;IAClBD,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
@@ -118,13 +118,58 @@ export const useHMSActions = () => {
118
118
  return Promise.reject(error);
119
119
  }
120
120
  }, []);
121
+ const raiseLocalPeerHand = useCallback(async () => {
122
+ const state = store.getState();
123
+ const hmsInstance = state.user.hmsInstance;
124
+ if (!hmsInstance) {
125
+ return Promise.reject('HMSSDK Instance is not available!');
126
+ }
127
+ try {
128
+ const result = await hmsInstance.raiseLocalPeerHand();
129
+ console.log('Raise Local Peer Hand Success: ', result);
130
+ } catch (error) {
131
+ console.log('Raise Local Peer Hand Error: ', error);
132
+ return Promise.reject(error);
133
+ }
134
+ }, []);
135
+ const lowerLocalPeerHand = useCallback(async () => {
136
+ const state = store.getState();
137
+ const hmsInstance = state.user.hmsInstance;
138
+ if (!hmsInstance) {
139
+ return Promise.reject('HMSSDK Instance is not available!');
140
+ }
141
+ try {
142
+ const result = await hmsInstance.lowerLocalPeerHand();
143
+ console.log('Lower Local Peer Hand Success: ', result);
144
+ } catch (error) {
145
+ console.log('Lower Local Peer Hand Error: ', error);
146
+ return Promise.reject(error);
147
+ }
148
+ }, []);
149
+ const lowerRemotePeerHand = useCallback(async peer => {
150
+ const state = store.getState();
151
+ const hmsInstance = state.user.hmsInstance;
152
+ if (!hmsInstance) {
153
+ return Promise.reject('HMSSDK Instance is not available!');
154
+ }
155
+ try {
156
+ const result = await hmsInstance.lowerRemotePeerHand(peer);
157
+ console.log('Lower Remote Peer Hand Success: ', result);
158
+ } catch (error) {
159
+ console.log('Lower Remote Peer Hand Error: ', error);
160
+ return Promise.reject(error);
161
+ }
162
+ }, []);
121
163
  return {
122
164
  setLocalAudioEnabled,
123
165
  setLocalVideoEnabled,
124
166
  switchCamera,
125
167
  setScreenShareEnabled,
126
168
  changeMetadata,
127
- changeName
169
+ changeName,
170
+ raiseLocalPeerHand,
171
+ lowerLocalPeerHand,
172
+ lowerRemotePeerHand
128
173
  };
129
174
  };
130
175
  //# sourceMappingURL=hooks-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useDispatch","useSelector","useStore","setIsLocalAudioMutedState","setIsLocalScreenSharedState","setIsLocalVideoMutedState","selectAllowedTracksToPublish","selectCanPublishTrack","useCallback","useAllowedTracksToPublish","useCanPublishAudio","state","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","store","setLocalAudioEnabled","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setMute","error","setLocalVideoEnabled","localVideoTrack","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","changeMetadata","metadata","parsedMetadata","JSON","stringify","changeName","name"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,aAAa;AAGhE,SACEC,yBAAyB,EACzBC,2BAA2B,EAC3BC,yBAAyB,QACpB,iBAAiB;AACxB,SACEC,4BAA4B,EAC5BC,qBAAqB,QAChB,uBA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ioMutedState","setIsLocalScreenSharedState","setIsLocalVideoMutedState","selectAllowedTracksToPublish","selectCanPublishTrack","useCallback","useAllowedTracksToPublish","useCanPublishAudio","state","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","store","setLocalAudioEnabled","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setMute","error","setLocalVideoEnabled","localVideoTrack","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","changeMetadata","metadata","parsedMetadata","JSON","stringify","changeName","name","raiseLocalPeerHand","lowerLocalPeerHand","lowerRemotePeerHand","peer"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,aAAa;AAGhE,SACEC,yBAAyB,EACzBC,2BAA2B,EAC3BC,yBAAyB,QACpB,iBAAiB;AACxB,SACEC,4BAA4B,EAC5BC,qBAAqB,QAChB,uBAAuB;AAC9B,SAASC,WAAW,QAAQ,OAAO;AAGnC,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,OAAOR,WAAW,CAACK,4BAA4B,CAAC;AAClD,CAAC;AAED,OAAO,MAAMI,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAOT,WAAW,CAAEU,KAAgB,IAClCJ,qBAAqB,CAACI,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAOX,WAAW,CAAEU,KAAgB,IAClCJ,qBAAqB,CAACI,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAED,OAAO,MAAME,mBAAmB,GAAGA,CAAA,KAAM;EACvC,OAAOZ,WAAW,CAAEU,KAAgB,IAClCJ,qBAAqB,CAACI,KAAK,EAAE,QAAQ,CACvC,CAAC;AACH,CAAC;AAED,OAAO,MAAMG,aAAa,GAAGA,CAAA,KAAM;EACjC,MAAMC,QAAQ,GAAGf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C,MAAM,CAAC,mCAAmC,CAAC;IAC5D;IAEA,IAAI;MACF,MAAMU,MAAM,GAAG,MAAMF,WAAW,CAACe,kBAAkB,CAAC,CAAC;MACrDX,OAAO,CAACC,GAAG,CAAC,iCAAiC,EAAEH,MAAM,CAAC;IACxD,CAAC,CAAC,OAAOP,KAAK,EAAE;MACdS,OAAO,CAACC,GAAG,CAAC,+BAA+B,EAAEV,KAAK,CAAC;MACnD,OAAOJ,OAAO,CAACC,MAAM,CAACG,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMqB,mBAAmB,GAAGvC,WAAW,CACrC,MAAOwC,IAAa,IAAoB;IACtC,MAAMrC,KAAgB,GAAGK,KAAK,CAACG,QAAQ,CAAC,CAAC;IACzC,MAAMY,WAAW,GAAGpB,KAAK,CAACqB,IAAI,CAACD,WAAW;IAE1C,IAAI,CAACA,WAAW,EAAE;MAChB,OAAOT,OAAO,CAACC,MAAM,CAAC,mCAAmC,CAAC;IAC5D;IAEA,IAAI;MACF,MAAMU,MAAM,GAAG,MAAMF,WAAW,CAACgB,mBAAmB,CAACC,IAAI,CAAC;MAC1Db,OAAO,CAACC,GAAG,CAAC,kCAAkC,EAAEH,MAAM,CAAC;IACzD,CAAC,CAAC,OAAOP,KAAK,EAAE;MACdS,OAAO,CAACC,GAAG,CAAC,gCAAgC,EAAEV,KAAK,CAAC;MACpD,OAAOJ,OAAO,CAACC,MAAM,CAACG,KAAK,CAAC;IAC9B;EACF,CAAC,EACD,EACF,CAAC;EAED,OAAO;IACLT,oBAAoB;IACpBU,oBAAoB;IACpBE,YAAY;IACZC,qBAAqB;IACrBQ,cAAc;IACdK,UAAU;IACVE,kBAAkB;IAClBC,kBAAkB;IAClBC;EACF,CAAC;AACH,CAAC"}
@@ -3,13 +3,13 @@ import { HMSConfig, HMSMessage, HMSMessageRecipientType, HMSPIPListenerActions,
3
3
  } from '@100mslive/react-native-hms';
4
4
  import Toast from 'react-native-simple-toast';
5
5
  import { useRef, useCallback, useEffect, useState, useMemo, useContext } from 'react';
6
- import { MaxTilesInOnePage, ModalTypes, PipModes } from './utils/types';
7
- import { createPeerTrackNode, parseMetadata } from './utils/functions';
6
+ import { MaxTilesInOnePage, ModalTypes, PeerListRefreshInterval, PipModes } from './utils/types';
7
+ import { createPeerTrackNode } from './utils/functions';
8
8
  import { batch, shallowEqual, useDispatch, useSelector, useStore } from 'react-redux';
9
- import { addMessage, addNotification, addParticipant, addPinnedMessage, addScreenshareTile, addUpdateParticipant, changeMeetingState, changePipModeStatus, changeStartingHLSStream, clearStore, removeNotification, removeParticipant, removeScreenshareTile, saveUserData, setActiveChatBottomSheetTab, setActiveSpeakers, setFullScreenPeerTrackNode, setHMSLocalPeerState, setHMSRoleState, setHMSRoomState, setIsLocalAudioMutedState, setIsLocalVideoMutedState, setLayoutConfig, setLocalPeerTrackNode, setMiniViewPeerTrackNode, setModalType, setReconnecting, setRoleChangeRequest, setStartingOrStoppingRecording, updateFullScreenPeerTrackNode, updateLocalPeerTrackNode, updateMiniViewPeerTrackNode, updateScreenshareTile } from './redux/actions';
9
+ import { addMessage, addNotification, addParticipant, addParticipants, addPinnedMessage, addScreenshareTile, addUpdateParticipant, changeMeetingState, changePipModeStatus, changeStartingHLSStream, clearStore, removeNotification, removeParticipant, removeParticipants, removeScreenshareTile, replaceParticipantsList, saveUserData, setActiveChatBottomSheetTab, setActiveSpeakers, setFullScreenPeerTrackNode, setHMSLocalPeerState, setHMSRoleState, setHMSRoomState, setIsLocalAudioMutedState, setIsLocalVideoMutedState, setLayoutConfig, setLocalPeerTrackNode, setMiniViewPeerTrackNode, setModalType, setReconnecting, setRoleChangeRequest, setStartingOrStoppingRecording, updateFullScreenPeerTrackNode, updateLocalPeerTrackNode, updateMiniViewPeerTrackNode, updateScreenshareTile } from './redux/actions';
10
10
  import { createPeerTrackNodeUniqueId, degradeOrRestorePeerTrackNodes, peerTrackNodeExistForPeer, peerTrackNodeExistForPeerAndTrack, removePeerTrackNodes, removePeerTrackNodesWithTrack, replacePeerTrackNodes, replacePeerTrackNodesWithTrack } from './peerTrackNodeUtils';
11
11
  import { MeetingState } from './types';
12
- import { AppState, InteractionManager, Keyboard, LayoutAnimation, Platform } from 'react-native';
12
+ import { InteractionManager, Keyboard, Platform } from 'react-native';
13
13
  import { NavigationContext } from '@react-navigation/native';
14
14
  import { useIsLandscapeOrientation, useIsPortraitOrientation } from './utils/dimension';
15
15
  import { selectChatLayoutConfig, selectConferencingScreenConfig, selectIsHLSViewer, selectLayoutConfigForRole, selectShouldGoLive, selectVideoTileLayoutConfig } from './hooks-util-selectors';
@@ -21,6 +21,7 @@ export const useHMSListeners = setPeerTrackNodes => {
21
21
  const updateLocalPeer = useUpdateHMSLocalPeer(hmsInstance);
22
22
  useHMSRoomUpdate(hmsInstance);
23
23
  useHMSPeersUpdate(hmsInstance, updateLocalPeer, setPeerTrackNodes);
24
+ useHMSPeerListUpdated(hmsInstance);
24
25
  useHMSTrackUpdate(hmsInstance, updateLocalPeer, setPeerTrackNodes);
25
26
  };
26
27
  const useHMSRoomUpdate = hmsInstance => {
@@ -216,11 +217,11 @@ const useHMSPeersUpdate = (hmsInstance, updateLocalPeer, setPeerTrackNodes) => {
216
217
  }
217
218
  return;
218
219
  }
219
- if (type === HMSPeerUpdate.METADATA_CHANGED || type === HMSPeerUpdate.NAME_CHANGED || type === HMSPeerUpdate.NETWORK_QUALITY_UPDATED) {
220
+ if (type === HMSPeerUpdate.METADATA_CHANGED || type === HMSPeerUpdate.HAND_RAISED_CHANGED || type === HMSPeerUpdate.NAME_CHANGED || type === HMSPeerUpdate.NETWORK_QUALITY_UPDATED) {
220
221
  dispatch(addUpdateParticipant(peer));
221
222
  const reduxState = store.getState();
222
- if (type === HMSPeerUpdate.METADATA_CHANGED) {
223
- const handRaised = parseMetadata(peer.metadata).isHandRaised;
223
+ if (type === HMSPeerUpdate.HAND_RAISED_CHANGED) {
224
+ const handRaised = peer.isHandRaised;
224
225
  if (handRaised) {
225
226
  var _selectedLayoutConfig, _peer$role11, _reduxState$hmsStates;
226
227
  const {
@@ -283,6 +284,25 @@ const useHMSPeersUpdate = (hmsInstance, updateLocalPeer, setPeerTrackNodes) => {
283
284
  };
284
285
  }, [hmsInstance]);
285
286
  };
287
+ const useHMSPeerListUpdated = hmsInstance => {
288
+ const dispatch = useDispatch();
289
+ useEffect(() => {
290
+ const peerListUpdateHandler = _ref2 => {
291
+ let {
292
+ addedPeers,
293
+ removedPeers
294
+ } = _ref2;
295
+ batch(() => {
296
+ dispatch(addParticipants(addedPeers));
297
+ dispatch(removeParticipants(removedPeers));
298
+ });
299
+ };
300
+ hmsInstance.addEventListener(HMSUpdateListenerActions.ON_PEER_LIST_UPDATED, peerListUpdateHandler);
301
+ return () => {
302
+ hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_PEER_LIST_UPDATED);
303
+ };
304
+ }, [hmsInstance]);
305
+ };
286
306
  export const isPublishingAllowed = peer => {
287
307
  var _peer$role12, _peer$role13;
288
308
  return (((_peer$role12 = peer.role) === null || _peer$role12 === void 0 || (_peer$role12 = _peer$role12.publishSettings) === null || _peer$role12 === void 0 ? void 0 : _peer$role12.allowed) && ((_peer$role13 = peer.role) === null || _peer$role13 === void 0 || (_peer$role13 = _peer$role13.publishSettings) === null || _peer$role13 === void 0 || (_peer$role13 = _peer$role13.allowed) === null || _peer$role13 === void 0 ? void 0 : _peer$role13.length) > 0) ?? false;
@@ -291,13 +311,13 @@ const useHMSTrackUpdate = (hmsInstance, updateLocalPeer, setPeerTrackNodes) => {
291
311
  const dispatch = useDispatch();
292
312
  const store = useStore();
293
313
  useEffect(() => {
294
- const trackUpdateHandler = _ref2 => {
314
+ const trackUpdateHandler = _ref3 => {
295
315
  var _reduxState$hmsStates2, _selectVideoTileLayou2;
296
316
  let {
297
317
  peer,
298
318
  track,
299
319
  type
300
- } = _ref2;
320
+ } = _ref3;
301
321
  const reduxState = store.getState();
302
322
  const fullScreenPeerTrackNode = reduxState.app.fullScreenPeerTrackNode;
303
323
  const miniviewPeerTrackNode = reduxState.app.miniviewPeerTrackNode;
@@ -747,10 +767,10 @@ export const useHMSSessionStore = () => {
747
767
  const hmsInstance = useHMSInstance();
748
768
  const dispatch = useDispatch();
749
769
  useEffect(() => {
750
- const onSessionStoreAvailableListener = _ref3 => {
770
+ const onSessionStoreAvailableListener = _ref4 => {
751
771
  let {
752
772
  sessionStore
753
- } = _ref3;
773
+ } = _ref4;
754
774
  // Saving `sessionStore` reference in `redux`
755
775
  dispatch(saveUserData({
756
776
  hmsSessionStore: sessionStore
@@ -854,18 +874,14 @@ export const usePIPListener = () => {
854
874
  const dispatch = useDispatch();
855
875
  const isPipModeActive = useSelector(state => state.app.pipModeStatus === PipModes.ACTIVE);
856
876
  useEffect(() => {
857
- if (isPipModeActive) {
858
- const appStateListener = () => {
859
- LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);
860
- dispatch(changePipModeStatus(PipModes.INACTIVE));
861
- };
862
- AppState.addEventListener('focus', appStateListener);
863
- return () => {
864
- AppState.removeEventListener('focus', appStateListener);
865
- dispatch(changePipModeStatus(PipModes.INACTIVE));
866
- };
867
- }
868
- }, [isPipModeActive]);
877
+ const pipModeChangedHandler = data => {
878
+ dispatch(changePipModeStatus(data.isInPictureInPictureMode ? PipModes.ACTIVE : PipModes.INACTIVE));
879
+ };
880
+ hmsInstance.addEventListener(HMSPIPListenerActions.ON_PIP_MODE_CHANGED, pipModeChangedHandler);
881
+ return () => {
882
+ hmsInstance.removeEventListener(HMSPIPListenerActions.ON_PIP_MODE_CHANGED);
883
+ };
884
+ }, []);
869
885
 
870
886
  // Check if PIP is supported or not
871
887
  useEffect(() => {
@@ -1039,17 +1055,15 @@ export const useHMSConfig = () => {
1039
1055
  username: storeState.user.userName,
1040
1056
  captureNetworkQualityInPreview: true,
1041
1057
  endpoint: (_storeState$user$endP3 = storeState.user.endPoints) === null || _storeState$user$endP3 === void 0 ? void 0 : _storeState$user$endP3.init
1042
- // metadata: JSON.stringify({isHandRaised: true}), // To join with hand raised
1043
1058
  });
1044
-
1045
1059
  return hmsConfig;
1046
1060
  }, [hmsInstance]);
1047
1061
  const updateConfig = useCallback(data => {
1048
1062
  if (!hmsConfig) {
1049
1063
  throw new Error('No HMSConfig is available to update!');
1050
1064
  }
1051
- Object.entries(data).forEach(_ref4 => {
1052
- let [key, value] = _ref4;
1065
+ Object.entries(data).forEach(_ref5 => {
1066
+ let [key, value] = _ref5;
1053
1067
  // @ts-ignore
1054
1068
  hmsConfig[key] = value;
1055
1069
  });
@@ -1141,21 +1155,69 @@ export const useLandscapeChatViewVisible = () => {
1141
1155
  const isLandscapeOrientation = useIsLandscapeOrientation();
1142
1156
  return pipModeNotActive && isLandscapeOrientation && overlayChatVisible;
1143
1157
  };
1144
- export const useFilteredParticipants = () => {
1145
- var _sortedRoles$;
1158
+ export const useOffStageParticipants = () => {
1159
+ const dispatch = useDispatch();
1160
+ const hmsInstance = useHMSInstance();
1161
+ const offStageRoles = useHMSLayoutConfig(layoutConfig => {
1162
+ var _layoutConfig$screens;
1163
+ return (layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens = layoutConfig.screens) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.conferencing) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.default) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.elements) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.on_stage_exp) === null || _layoutConfig$screens === void 0 ? void 0 : _layoutConfig$screens.off_stage_roles) || null;
1164
+ });
1165
+ const [participantsTotalCounts, setParticipantsTotalCounts] = useState({});
1166
+ useEffect(() => {
1167
+ if (offStageRoles) {
1168
+ let mounted = true;
1169
+ const createIterator = async forRole => {
1170
+ const iterator = hmsInstance.getPeerListIterator({
1171
+ byRoleName: forRole,
1172
+ limit: 10
1173
+ });
1174
+ const participants = await iterator.next();
1175
+ if (mounted) {
1176
+ dispatch(replaceParticipantsList(participants, forRole));
1177
+ setParticipantsTotalCounts(prev => ({
1178
+ ...prev,
1179
+ [forRole]: iterator.totalCount
1180
+ }));
1181
+ }
1182
+ };
1183
+ const createIteratorForRoles = () => {
1184
+ offStageRoles.forEach(role => {
1185
+ createIterator(role);
1186
+ });
1187
+ };
1188
+ createIteratorForRoles();
1189
+ const intervalId = setInterval(() => {
1190
+ createIteratorForRoles();
1191
+ }, PeerListRefreshInterval);
1192
+ return () => {
1193
+ mounted = false;
1194
+ clearInterval(intervalId);
1195
+ };
1196
+ }
1197
+ }, [offStageRoles]);
1198
+ return participantsTotalCounts;
1199
+ };
1200
+ export const useFilteredParticipants = filterText => {
1201
+ var _participantsAccordia;
1146
1202
  const roles = useSelector(state => state.hmsStates.roles);
1147
1203
  const onStageRole = useHMSLayoutConfig(layoutConfig => {
1148
- var _layoutConfig$screens;
1149
- return (layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens = layoutConfig.screens) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.conferencing) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.default) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.elements) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.on_stage_exp) === null || _layoutConfig$screens === void 0 ? void 0 : _layoutConfig$screens.on_stage_role) || null;
1204
+ var _layoutConfig$screens2;
1205
+ return (layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens2 = layoutConfig.screens) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.conferencing) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.default) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.elements) === null || _layoutConfig$screens2 === void 0 || (_layoutConfig$screens2 = _layoutConfig$screens2.on_stage_exp) === null || _layoutConfig$screens2 === void 0 ? void 0 : _layoutConfig$screens2.on_stage_role) || null;
1150
1206
  });
1151
- const [searchText, setSearchText] = useState('');
1152
- const formattedSearchText = searchText.trim().toLowerCase();
1153
- const participants = useSelector(state => state.hmsStates.participants);
1154
- const peerGroups = useMemo(() => {
1155
- return groupParticipantsAsPerRole(participants, formattedSearchText);
1156
- }, [formattedSearchText, participants]);
1207
+ const offStageParticipantsTotalCounts = useOffStageParticipants();
1208
+ const formattedSearchText = filterText.trim().toLowerCase();
1209
+ const groupedParticipants = useSelector(state => state.hmsStates.groupedParticipants);
1157
1210
  const sortedRoles = useMemo(() => {
1158
- return roles.filter(role => peerGroups.has(role.name)).sort((a, b) => {
1211
+ return roles.filter(role => {
1212
+ if (!role.name || role.name.startsWith('_')) {
1213
+ return false;
1214
+ }
1215
+ return true;
1216
+
1217
+ // const list = groupedParticipants[role.name!];
1218
+
1219
+ // return list && list.length > 0;
1220
+ }).sort((a, b) => {
1159
1221
  var _a$publishSettings, _b$publishSettings;
1160
1222
  if (onStageRole) {
1161
1223
  if (a.name === onStageRole && b.name === onStageRole) {
@@ -1178,96 +1240,47 @@ export const useFilteredParticipants = () => {
1178
1240
  }
1179
1241
  return 1;
1180
1242
  });
1181
- }, [peerGroups, onStageRole, roles]);
1182
- const firstGroupName = peerGroups.has('hand-raised') ? 'hand-raised' : (_sortedRoles$ = sortedRoles[0]) === null || _sortedRoles$ === void 0 ? void 0 : _sortedRoles$.name;
1183
- const [expandedGroups, setExpandedGroups] = useState(firstGroupName ? [firstGroupName] : []);
1184
- const groupedList = useMemo(() => {
1185
- let list = [];
1186
- const handRaisedPeers = peerGroups.get('hand-raised');
1187
- if (handRaisedPeers) {
1188
- const expanded = expandedGroups.includes('hand-raised');
1189
- list.push({
1190
- type: expanded ? 'EXPANDED_HEADER' : 'COLLAPSED_HEADER',
1191
- key: 'hand-raised',
1192
- data: {
1193
- label: `Hand Raised (${handRaisedPeers.length})`,
1194
- itemsLength: handRaisedPeers.length
1195
- }
1196
- });
1197
- if (expanded) {
1198
- list = list.concat(handRaisedPeers.map((peer, idx, arr) => {
1199
- const isLast = arr.length - 1 === idx;
1200
- return {
1201
- data: peer,
1202
- key: `${peer.peerID}--${'hand-raised'}`,
1203
- type: isLast ? 'LAST_ITEM' : 'REGULAR_ITEM'
1204
- };
1205
- }));
1206
- }
1207
- }
1243
+ },
1244
+ // [groupedParticipants, onStageRole, roles]
1245
+ [onStageRole, roles]);
1246
+ const participantsAccordianData = useMemo(() => {
1247
+ const t = [];
1248
+ const filteredHandRaisedPeers = [];
1208
1249
  sortedRoles.forEach(role => {
1209
- const peers = peerGroups.get(role.name);
1210
- if (peers) {
1211
- const expanded = expandedGroups.includes(role.name);
1212
- list.push({
1213
- type: expanded ? 'EXPANDED_HEADER' : 'COLLAPSED_HEADER',
1214
- key: role.name,
1215
- data: {
1216
- label: `${role.name} (${peers.length})`,
1217
- role: role,
1218
- itemsLength: peers.length
1219
- }
1250
+ const list = groupedParticipants[role.name];
1251
+ const filteredList = Array.isArray(list) && formattedSearchText.length > 0 ? list.filter(peer => peer.name.toLowerCase().includes(formattedSearchText)) : list;
1252
+ if (Array.isArray(filteredList) && filteredList.length > 0) {
1253
+ filteredHandRaisedPeers.push(filteredList);
1254
+ const offStageRoleTotalCount = offStageParticipantsTotalCounts[role.name];
1255
+ const firstTen = filteredList.slice(0, 10);
1256
+ t.push({
1257
+ id: role.name,
1258
+ label: `${role.name} (${typeof offStageRoleTotalCount === 'number' ? offStageRoleTotalCount : filteredList.length})`,
1259
+ showViewAll: typeof offStageRoleTotalCount === 'number' && formattedSearchText.length <= 0 ? offStageRoleTotalCount > 10 : filteredList.length > 10,
1260
+ data: firstTen
1220
1261
  });
1221
- if (expanded) {
1222
- list = list.concat(peers.map((peer, idx, arr) => {
1223
- const isLast = arr.length - 1 === idx;
1224
- return {
1225
- data: peer,
1226
- key: `${peer.peerID}--${role.name}`,
1227
- type: isLast ? 'LAST_ITEM' : 'REGULAR_ITEM'
1228
- };
1229
- }));
1230
- }
1231
1262
  }
1232
1263
  });
1233
- return list;
1234
- }, [expandedGroups, peerGroups, sortedRoles]);
1264
+ const handRaisedParticipants = filteredHandRaisedPeers.flat().filter(participant => participant.isHandRaised);
1265
+ const firstTenHandRaisedParticipants = handRaisedParticipants.slice(0, 10);
1266
+ if (handRaisedParticipants.length > 0) {
1267
+ t.unshift({
1268
+ id: 'hand-raised',
1269
+ label: `Hand Raised (${handRaisedParticipants.length})`,
1270
+ showViewAll: handRaisedParticipants.length > 10,
1271
+ data: firstTenHandRaisedParticipants
1272
+ });
1273
+ }
1274
+ return t;
1275
+ }, [formattedSearchText, groupedParticipants, offStageParticipantsTotalCounts, sortedRoles]);
1276
+ const [expandedGroup, setExpandedGroup] = useState(((_participantsAccordia = participantsAccordianData[0]) === null || _participantsAccordia === void 0 ? void 0 : _participantsAccordia.id) ?? null);
1235
1277
  return {
1236
- data: groupedList,
1237
- searchText,
1278
+ data: participantsAccordianData,
1238
1279
  formattedSearchText,
1239
- setSearchText,
1240
- expandedGroups,
1241
- setExpandedGroups
1280
+ expandedGroup,
1281
+ setExpandedGroup
1242
1282
  };
1243
1283
  };
1244
- const groupParticipantsAsPerRole = (participants, searchText) => {
1245
- const groups = new Map();
1246
- for (const participant of participants) {
1247
- const participantRole = participant.role;
1248
- if (!participantRole) {
1249
- continue;
1250
- }
1251
- if (searchText.length <= 0 || participant.name.toLowerCase().includes(searchText)) {
1252
- if (!groups.has(participantRole.name)) {
1253
- groups.set(participantRole.name, []);
1254
- }
1255
- const group = groups.get(participantRole.name);
1256
- if (!group) {
1257
- continue;
1258
- }
1259
- group.push(participant);
1260
- if (parseMetadata(participant.metadata).isHandRaised) {
1261
- if (!groups.has('hand-raised')) {
1262
- groups.set('hand-raised', []);
1263
- }
1264
- const group = groups.get('hand-raised');
1265
- if (group) group.push(participant);
1266
- }
1267
- }
1268
- }
1269
- return groups;
1270
- };
1271
1284
  export const useShouldGoLive = () => {
1272
1285
  const shouldGoLive = useSelector(selectShouldGoLive);
1273
1286
  return shouldGoLive;
@@ -1444,10 +1457,10 @@ export const useSendMessage = () => {
1444
1457
  type: 'SET_TYPED_MESSAGE',
1445
1458
  typedMessage: ''
1446
1459
  });
1447
- const handleMessageID = _ref5 => {
1460
+ const handleMessageID = _ref6 => {
1448
1461
  let {
1449
1462
  messageId
1450
- } = _ref5;
1463
+ } = _ref6;
1451
1464
  const localPeer = reduxStore.getState().hmsStates.localPeer;
1452
1465
  if (messageId) {
1453
1466
  Keyboard.dismiss();