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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (914) hide show
  1. package/README.md +1 -10
  2. package/lib/commonjs/HMSPrebuilt.js +6 -6
  3. package/lib/commonjs/HMSPrebuilt.js.map +1 -1
  4. package/lib/commonjs/HMSRoomSetup.js +27 -30
  5. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  6. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
  7. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
  8. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
  9. package/lib/commonjs/Icons/AlertTriangle/index.js +2 -1
  10. package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -1
  11. package/lib/commonjs/Icons/Eye/assets/eye-on-small.png +0 -0
  12. package/lib/commonjs/Icons/Eye/assets/eye-on-small@2x.png +0 -0
  13. package/lib/commonjs/Icons/Eye/assets/eye-on-small@3x.png +0 -0
  14. package/lib/commonjs/Icons/Eye/index.js +35 -0
  15. package/lib/commonjs/Icons/Eye/index.js.map +1 -0
  16. package/lib/commonjs/Icons/Person/assets/person-left.png +0 -0
  17. package/lib/commonjs/Icons/Person/assets/person-left@2x.png +0 -0
  18. package/lib/commonjs/Icons/Person/assets/person-left@3x.png +0 -0
  19. package/lib/commonjs/Icons/Person/assets/person-off.png +0 -0
  20. package/lib/commonjs/Icons/Person/assets/person-off@2x.png +0 -0
  21. package/lib/commonjs/Icons/Person/assets/person-off@3x.png +0 -0
  22. package/lib/commonjs/Icons/Person/assets/person-rectangle.png +0 -0
  23. package/lib/commonjs/Icons/Person/assets/person-rectangle@2x.png +0 -0
  24. package/lib/commonjs/Icons/Person/assets/person-rectangle@3x.png +0 -0
  25. package/lib/commonjs/Icons/Person/index.js +2 -1
  26. package/lib/commonjs/Icons/Person/index.js.map +1 -1
  27. package/lib/commonjs/Icons/Search/assets/search.png +0 -0
  28. package/lib/commonjs/Icons/Search/assets/search@2x.png +0 -0
  29. package/lib/commonjs/Icons/Search/assets/search@3x.png +0 -0
  30. package/lib/commonjs/Icons/Search/index.js +34 -0
  31. package/lib/commonjs/Icons/Search/index.js.map +1 -0
  32. package/lib/commonjs/Icons/index.js +22 -0
  33. package/lib/commonjs/Icons/index.js.map +1 -1
  34. package/lib/commonjs/assets/audio-level-white.json +1271 -0
  35. package/lib/commonjs/assets/empty-chat-illustration/empty-chat.png +0 -0
  36. package/lib/commonjs/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
  37. package/lib/commonjs/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
  38. package/lib/commonjs/assets/welcome.png +0 -0
  39. package/lib/commonjs/components/AnimatedFooter.js +35 -0
  40. package/lib/commonjs/components/AnimatedFooter.js.map +1 -0
  41. package/lib/commonjs/components/AnimatedHLSFooter.js +36 -0
  42. package/lib/commonjs/components/AnimatedHLSFooter.js.map +1 -0
  43. package/lib/commonjs/components/AnimatedHeader.js +44 -0
  44. package/lib/commonjs/components/AnimatedHeader.js.map +1 -0
  45. package/lib/commonjs/components/BottomSheet.js +6 -3
  46. package/lib/commonjs/components/BottomSheet.js.map +1 -1
  47. package/lib/commonjs/components/ChangeNameModalContent.js +0 -12
  48. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -1
  49. package/lib/commonjs/components/Chat/ChatBanner.js +35 -55
  50. package/lib/commonjs/components/Chat/ChatBanner.js.map +1 -1
  51. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js +83 -0
  52. package/lib/commonjs/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
  53. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js +69 -0
  54. package/lib/commonjs/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
  55. package/lib/commonjs/components/Chat/ChatFilterItem.js +71 -0
  56. package/lib/commonjs/components/Chat/ChatFilterItem.js.map +1 -0
  57. package/lib/commonjs/components/Chat/ChatFilterView.js +198 -0
  58. package/lib/commonjs/components/Chat/ChatFilterView.js.map +1 -0
  59. package/lib/commonjs/components/Chat/ChatList.js +6 -6
  60. package/lib/commonjs/components/Chat/ChatList.js.map +1 -1
  61. package/lib/commonjs/components/Chat/ChatMessage.js +35 -135
  62. package/lib/commonjs/components/Chat/ChatMessage.js.map +1 -1
  63. package/lib/commonjs/components/Chat/PinnedMessage.js +39 -43
  64. package/lib/commonjs/components/Chat/PinnedMessage.js.map +1 -1
  65. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +42 -0
  66. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
  67. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js +105 -0
  68. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
  69. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js +66 -0
  70. package/lib/commonjs/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
  71. package/lib/commonjs/components/ChatAndParticipants/ChatView.js +37 -0
  72. package/lib/commonjs/components/ChatAndParticipants/ChatView.js.map +1 -0
  73. package/lib/commonjs/components/{Participants/SearchableParticipantsView.js → ChatAndParticipants/ParticipantsView.js} +24 -12
  74. package/lib/commonjs/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
  75. package/lib/commonjs/components/ChatAndParticipants/index.js +17 -0
  76. package/lib/commonjs/components/ChatAndParticipants/index.js.map +1 -0
  77. package/lib/commonjs/components/CompanyLogo.js +4 -3
  78. package/lib/commonjs/components/CompanyLogo.js.map +1 -1
  79. package/lib/commonjs/components/DefaultModal.js +2 -6
  80. package/lib/commonjs/components/DefaultModal.js.map +1 -1
  81. package/lib/commonjs/components/DisplayView.js +6 -19
  82. package/lib/commonjs/components/DisplayView.js.map +1 -1
  83. package/lib/commonjs/components/EndRoomModalContent.js +20 -6
  84. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -1
  85. package/lib/commonjs/components/Footer.js +37 -28
  86. package/lib/commonjs/components/Footer.js.map +1 -1
  87. package/lib/commonjs/components/FullScreenVideoView.js +74 -0
  88. package/lib/commonjs/components/FullScreenVideoView.js.map +1 -0
  89. package/lib/commonjs/components/GridView.js +129 -48
  90. package/lib/commonjs/components/GridView.js.map +1 -1
  91. package/lib/commonjs/components/{ParticipantsModal.js → HLSFooter.js} +19 -27
  92. package/lib/commonjs/components/HLSFooter.js.map +1 -0
  93. package/lib/commonjs/components/HLSView.js +10 -22
  94. package/lib/commonjs/components/HLSView.js.map +1 -1
  95. package/lib/commonjs/components/HMSChat.js +15 -14
  96. package/lib/commonjs/components/HMSChat.js.map +1 -1
  97. package/lib/commonjs/components/HMSHLSMessage.js +67 -0
  98. package/lib/commonjs/components/HMSHLSMessage.js.map +1 -0
  99. package/lib/commonjs/components/HMSHLSMessageList.js +58 -0
  100. package/lib/commonjs/components/HMSHLSMessageList.js.map +1 -0
  101. package/lib/commonjs/components/HMSHLSNotStarted.js +1 -6
  102. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  103. package/lib/commonjs/components/HMSHandRaiseNotification.js +84 -0
  104. package/lib/commonjs/components/HMSHandRaiseNotification.js.map +1 -0
  105. package/lib/commonjs/components/HMSKeyboardAvoidingView.js +49 -0
  106. package/lib/commonjs/components/HMSKeyboardAvoidingView.js.map +1 -0
  107. package/lib/commonjs/components/HMSLiveIndicator.js +105 -0
  108. package/lib/commonjs/components/HMSLiveIndicator.js.map +1 -0
  109. package/lib/commonjs/components/HMSLocalScreenshareNotification.js +38 -0
  110. package/lib/commonjs/components/HMSLocalScreenshareNotification.js.map +1 -0
  111. package/lib/commonjs/components/HMSLocalVideoView.js +4 -23
  112. package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -1
  113. package/lib/commonjs/components/HMSManageAudioOutput.js +7 -1
  114. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  115. package/lib/commonjs/components/HMSManageLeave.js +33 -11
  116. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  117. package/lib/commonjs/components/HMSNotification.js +96 -0
  118. package/lib/commonjs/components/HMSNotification.js.map +1 -0
  119. package/lib/commonjs/components/HMSNotifications.js +114 -0
  120. package/lib/commonjs/components/HMSNotifications.js.map +1 -0
  121. package/lib/commonjs/components/HMSOverlayChatView.js +30 -0
  122. package/lib/commonjs/components/HMSOverlayChatView.js.map +1 -0
  123. package/lib/commonjs/components/HMSPreviewJoinButton.js +1 -2
  124. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  125. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +1 -1
  126. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
  127. package/lib/commonjs/components/HMSPreviewSubtitle.js +1 -3
  128. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  129. package/lib/commonjs/components/HMSPreviewTitle.js +1 -3
  130. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  131. package/lib/commonjs/components/HMSRecordingIndicator.js +6 -2
  132. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -1
  133. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js +30 -0
  134. package/lib/commonjs/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
  135. package/lib/commonjs/components/HMSSendMessageInput.js +57 -0
  136. package/lib/commonjs/components/HMSSendMessageInput.js.map +1 -0
  137. package/lib/commonjs/components/HMSTextInput.js +98 -12
  138. package/lib/commonjs/components/HMSTextInput.js.map +1 -1
  139. package/lib/commonjs/components/HMSVideoView.js +43 -0
  140. package/lib/commonjs/components/HMSVideoView.js.map +1 -0
  141. package/lib/commonjs/components/Header.js +19 -123
  142. package/lib/commonjs/components/Header.js.map +1 -1
  143. package/lib/commonjs/components/LocalPeerScreenshareView.js +1 -7
  144. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -1
  145. package/lib/commonjs/components/Meeting.js +6 -5
  146. package/lib/commonjs/components/Meeting.js.map +1 -1
  147. package/lib/commonjs/components/MeetingScreenContent.js +21 -8
  148. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  149. package/lib/commonjs/components/MenuModal/Menu.js +2 -2
  150. package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
  151. package/lib/commonjs/components/MiniView.js +8 -3
  152. package/lib/commonjs/components/MiniView.js.map +1 -1
  153. package/lib/commonjs/components/Modals.js +88 -317
  154. package/lib/commonjs/components/Modals.js.map +1 -1
  155. package/lib/commonjs/components/OverlayContainer.js +41 -0
  156. package/lib/commonjs/components/OverlayContainer.js.map +1 -0
  157. package/lib/commonjs/components/OverlayedViews.js +22 -0
  158. package/lib/commonjs/components/OverlayedViews.js.map +1 -0
  159. package/lib/commonjs/components/PaginationDots.js +4 -4
  160. package/lib/commonjs/components/PaginationDots.js.map +1 -1
  161. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js +131 -0
  162. package/lib/commonjs/components/Participants/ParticipantsGroupHeader.js.map +1 -0
  163. package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js +80 -0
  164. package/lib/commonjs/components/Participants/ParticipantsGroupOptions.js.map +1 -0
  165. package/lib/commonjs/components/Participants/ParticipantsItem.js +132 -0
  166. package/lib/commonjs/components/Participants/ParticipantsItem.js.map +1 -0
  167. package/lib/commonjs/components/Participants/ParticipantsItemOption.js +46 -0
  168. package/lib/commonjs/components/Participants/ParticipantsItemOption.js.map +1 -0
  169. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js +220 -0
  170. package/lib/commonjs/components/Participants/ParticipantsItemOptions.js.map +1 -0
  171. package/lib/commonjs/components/Participants/ParticipantsList.js +40 -224
  172. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  173. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js +36 -30
  174. package/lib/commonjs/components/Participants/ParticipantsSeachInput.js.map +1 -1
  175. package/lib/commonjs/components/Participants/index.js +0 -33
  176. package/lib/commonjs/components/Participants/index.js.map +1 -1
  177. package/lib/commonjs/components/PeerMinimizedView.js +1 -1
  178. package/lib/commonjs/components/PeerSettingsModalContent.js +47 -123
  179. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  180. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +19 -5
  181. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -1
  182. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js +45 -0
  183. package/lib/commonjs/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
  184. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js +202 -0
  185. package/lib/commonjs/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
  186. package/lib/commonjs/components/PeerVideoTile/{PeerAudioMutedIndicator.js → PeerAudioIndicator.js} +30 -4
  187. package/lib/commonjs/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
  188. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +10 -2
  189. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  190. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +38 -17
  191. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  192. package/lib/commonjs/components/PeerVideoTile/VideoView.js +43 -10
  193. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -1
  194. package/lib/commonjs/components/PressableIcon.js +10 -5
  195. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  196. package/lib/commonjs/components/Preview.js +5 -14
  197. package/lib/commonjs/components/Preview.js.map +1 -1
  198. package/lib/commonjs/components/PreviewForRoleChangeModal.js +332 -0
  199. package/lib/commonjs/components/PreviewForRoleChangeModal.js.map +1 -0
  200. package/lib/commonjs/components/ReconnectionView.js +66 -0
  201. package/lib/commonjs/components/ReconnectionView.js.map +1 -0
  202. package/lib/commonjs/components/RoomSettingsModalContent.js +25 -34
  203. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  204. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +31 -70
  205. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  206. package/lib/commonjs/components/StreamingQualityModalContent.js +8 -9
  207. package/lib/commonjs/components/StreamingQualityModalContent.js.map +1 -1
  208. package/lib/commonjs/components/TilesContainer.js +31 -9
  209. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  210. package/lib/commonjs/components/WebrtcView.js +11 -14
  211. package/lib/commonjs/components/WebrtcView.js.map +1 -1
  212. package/lib/commonjs/components/WelcomeInMeeting.js +7 -31
  213. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -1
  214. package/lib/commonjs/components/index.js +0 -33
  215. package/lib/commonjs/components/index.js.map +1 -1
  216. package/lib/commonjs/hooks-util-selectors.js +43 -9
  217. package/lib/commonjs/hooks-util-selectors.js.map +1 -1
  218. package/lib/commonjs/hooks-util.js +619 -213
  219. package/lib/commonjs/hooks-util.js.map +1 -1
  220. package/lib/commonjs/modules/HMSManager.js +3 -3
  221. package/lib/commonjs/modules/HMSManager.js.map +1 -1
  222. package/lib/commonjs/modules/parser.js +2 -3
  223. package/lib/commonjs/modules/parser.js.map +1 -1
  224. package/lib/commonjs/redux/actionTypes.js +25 -1
  225. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  226. package/lib/commonjs/redux/actions/index.js +90 -1
  227. package/lib/commonjs/redux/actions/index.js.map +1 -1
  228. package/lib/commonjs/redux/reducers/appState.js +77 -2
  229. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  230. package/lib/commonjs/redux/reducers/chatWindow.js +3 -7
  231. package/lib/commonjs/redux/reducers/chatWindow.js.map +1 -1
  232. package/lib/commonjs/redux/reducers/hmsStates.js +70 -7
  233. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  234. package/lib/commonjs/utils/functions.js +10 -3
  235. package/lib/commonjs/utils/functions.js.map +1 -1
  236. package/lib/commonjs/utils/theme.js +2 -0
  237. package/lib/commonjs/utils/theme.js.map +1 -1
  238. package/lib/commonjs/utils/types.js +9 -3
  239. package/lib/commonjs/utils/types.js.map +1 -1
  240. package/lib/commonjs/utils.js +8 -1
  241. package/lib/commonjs/utils.js.map +1 -1
  242. package/lib/module/HMSPrebuilt.js +6 -6
  243. package/lib/module/HMSPrebuilt.js.map +1 -1
  244. package/lib/module/HMSRoomSetup.js +29 -32
  245. package/lib/module/HMSRoomSetup.js.map +1 -1
  246. package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
  247. package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
  248. package/lib/module/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
  249. package/lib/module/Icons/AlertTriangle/index.js +2 -1
  250. package/lib/module/Icons/AlertTriangle/index.js.map +1 -1
  251. package/lib/module/Icons/Eye/assets/eye-on-small.png +0 -0
  252. package/lib/module/Icons/Eye/assets/eye-on-small@2x.png +0 -0
  253. package/lib/module/Icons/Eye/assets/eye-on-small@3x.png +0 -0
  254. package/lib/module/Icons/Eye/index.js +27 -0
  255. package/lib/module/Icons/Eye/index.js.map +1 -0
  256. package/lib/module/Icons/Person/assets/person-left.png +0 -0
  257. package/lib/module/Icons/Person/assets/person-left@2x.png +0 -0
  258. package/lib/module/Icons/Person/assets/person-left@3x.png +0 -0
  259. package/lib/module/Icons/Person/assets/person-off.png +0 -0
  260. package/lib/module/Icons/Person/assets/person-off@2x.png +0 -0
  261. package/lib/module/Icons/Person/assets/person-off@3x.png +0 -0
  262. package/lib/module/Icons/Person/assets/person-rectangle.png +0 -0
  263. package/lib/module/Icons/Person/assets/person-rectangle@2x.png +0 -0
  264. package/lib/module/Icons/Person/assets/person-rectangle@3x.png +0 -0
  265. package/lib/module/Icons/Person/index.js +2 -1
  266. package/lib/module/Icons/Person/index.js.map +1 -1
  267. package/lib/module/Icons/Search/assets/search.png +0 -0
  268. package/lib/module/Icons/Search/assets/search@2x.png +0 -0
  269. package/lib/module/Icons/Search/assets/search@3x.png +0 -0
  270. package/lib/module/Icons/Search/index.js +26 -0
  271. package/lib/module/Icons/Search/index.js.map +1 -0
  272. package/lib/module/Icons/index.js +2 -0
  273. package/lib/module/Icons/index.js.map +1 -1
  274. package/lib/module/assets/audio-level-white.json +1271 -0
  275. package/lib/module/assets/empty-chat-illustration/empty-chat.png +0 -0
  276. package/lib/module/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
  277. package/lib/module/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
  278. package/lib/module/assets/welcome.png +0 -0
  279. package/lib/module/components/AnimatedFooter.js +26 -0
  280. package/lib/module/components/AnimatedFooter.js.map +1 -0
  281. package/lib/module/components/AnimatedHLSFooter.js +27 -0
  282. package/lib/module/components/AnimatedHLSFooter.js.map +1 -0
  283. package/lib/module/components/AnimatedHeader.js +35 -0
  284. package/lib/module/components/AnimatedHeader.js.map +1 -0
  285. package/lib/module/components/BottomSheet.js +6 -3
  286. package/lib/module/components/BottomSheet.js.map +1 -1
  287. package/lib/module/components/ChangeNameModalContent.js +2 -14
  288. package/lib/module/components/ChangeNameModalContent.js.map +1 -1
  289. package/lib/module/components/Chat/ChatBanner.js +36 -55
  290. package/lib/module/components/Chat/ChatBanner.js.map +1 -1
  291. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js +74 -0
  292. package/lib/module/components/Chat/ChatFilterBottomSheetOpener.js.map +1 -0
  293. package/lib/module/components/Chat/ChatFilterBottomSheetView.js +60 -0
  294. package/lib/module/components/Chat/ChatFilterBottomSheetView.js.map +1 -0
  295. package/lib/module/components/Chat/ChatFilterItem.js +62 -0
  296. package/lib/module/components/Chat/ChatFilterItem.js.map +1 -0
  297. package/lib/module/components/Chat/ChatFilterView.js +189 -0
  298. package/lib/module/components/Chat/ChatFilterView.js.map +1 -0
  299. package/lib/module/components/Chat/ChatList.js +6 -6
  300. package/lib/module/components/Chat/ChatList.js.map +1 -1
  301. package/lib/module/components/Chat/ChatMessage.js +36 -135
  302. package/lib/module/components/Chat/ChatMessage.js.map +1 -1
  303. package/lib/module/components/Chat/PinnedMessage.js +40 -43
  304. package/lib/module/components/Chat/PinnedMessage.js.map +1 -1
  305. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js +33 -0
  306. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.js.map +1 -0
  307. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js +96 -0
  308. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsHeader.js.map +1 -0
  309. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js +57 -0
  310. package/lib/module/components/ChatAndParticipants/ChatAndParticipantsView.js.map +1 -0
  311. package/lib/module/components/ChatAndParticipants/ChatView.js +28 -0
  312. package/lib/module/components/ChatAndParticipants/ChatView.js.map +1 -0
  313. package/lib/module/components/ChatAndParticipants/ParticipantsView.js +30 -0
  314. package/lib/module/components/ChatAndParticipants/ParticipantsView.js.map +1 -0
  315. package/lib/module/components/ChatAndParticipants/index.js +2 -0
  316. package/lib/module/components/ChatAndParticipants/index.js.map +1 -0
  317. package/lib/module/components/CompanyLogo.js +4 -3
  318. package/lib/module/components/CompanyLogo.js.map +1 -1
  319. package/lib/module/components/DefaultModal.js +2 -6
  320. package/lib/module/components/DefaultModal.js.map +1 -1
  321. package/lib/module/components/DisplayView.js +7 -20
  322. package/lib/module/components/DisplayView.js.map +1 -1
  323. package/lib/module/components/EndRoomModalContent.js +20 -6
  324. package/lib/module/components/EndRoomModalContent.js.map +1 -1
  325. package/lib/module/components/Footer.js +39 -30
  326. package/lib/module/components/Footer.js.map +1 -1
  327. package/lib/module/components/FullScreenVideoView.js +64 -0
  328. package/lib/module/components/FullScreenVideoView.js.map +1 -0
  329. package/lib/module/components/GridView.js +130 -49
  330. package/lib/module/components/GridView.js.map +1 -1
  331. package/lib/module/components/HLSFooter.js +26 -0
  332. package/lib/module/components/HLSFooter.js.map +1 -0
  333. package/lib/module/components/HLSView.js +11 -23
  334. package/lib/module/components/HLSView.js.map +1 -1
  335. package/lib/module/components/HMSChat.js +16 -15
  336. package/lib/module/components/HMSChat.js.map +1 -1
  337. package/lib/module/components/HMSHLSMessage.js +58 -0
  338. package/lib/module/components/HMSHLSMessage.js.map +1 -0
  339. package/lib/module/components/HMSHLSMessageList.js +49 -0
  340. package/lib/module/components/HMSHLSMessageList.js.map +1 -0
  341. package/lib/module/components/HMSHLSNotStarted.js +2 -7
  342. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  343. package/lib/module/components/HMSHandRaiseNotification.js +75 -0
  344. package/lib/module/components/HMSHandRaiseNotification.js.map +1 -0
  345. package/lib/module/components/HMSKeyboardAvoidingView.js +40 -0
  346. package/lib/module/components/HMSKeyboardAvoidingView.js.map +1 -0
  347. package/lib/module/components/HMSLiveIndicator.js +96 -0
  348. package/lib/module/components/HMSLiveIndicator.js.map +1 -0
  349. package/lib/module/components/HMSLocalScreenshareNotification.js +29 -0
  350. package/lib/module/components/HMSLocalScreenshareNotification.js.map +1 -0
  351. package/lib/module/components/HMSLocalVideoView.js +4 -23
  352. package/lib/module/components/HMSLocalVideoView.js.map +1 -1
  353. package/lib/module/components/HMSManageAudioOutput.js +8 -2
  354. package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
  355. package/lib/module/components/HMSManageLeave.js +35 -13
  356. package/lib/module/components/HMSManageLeave.js.map +1 -1
  357. package/lib/module/components/HMSNotification.js +87 -0
  358. package/lib/module/components/HMSNotification.js.map +1 -0
  359. package/lib/module/components/HMSNotifications.js +105 -0
  360. package/lib/module/components/HMSNotifications.js.map +1 -0
  361. package/lib/module/components/HMSOverlayChatView.js +20 -0
  362. package/lib/module/components/HMSOverlayChatView.js.map +1 -0
  363. package/lib/module/components/HMSPreviewJoinButton.js +2 -3
  364. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  365. package/lib/module/components/HMSPreviewNetworkQuality.js +1 -1
  366. package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
  367. package/lib/module/components/HMSPreviewSubtitle.js +2 -4
  368. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  369. package/lib/module/components/HMSPreviewTitle.js +2 -4
  370. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  371. package/lib/module/components/HMSRecordingIndicator.js +6 -2
  372. package/lib/module/components/HMSRecordingIndicator.js.map +1 -1
  373. package/lib/module/components/HMSRoleChangeDeclinedNotification.js +21 -0
  374. package/lib/module/components/HMSRoleChangeDeclinedNotification.js.map +1 -0
  375. package/lib/module/components/HMSSendMessageInput.js +48 -0
  376. package/lib/module/components/HMSSendMessageInput.js.map +1 -0
  377. package/lib/module/components/HMSTextInput.js +99 -13
  378. package/lib/module/components/HMSTextInput.js.map +1 -1
  379. package/lib/module/components/HMSVideoView.js +34 -0
  380. package/lib/module/components/HMSVideoView.js.map +1 -0
  381. package/lib/module/components/Header.js +18 -123
  382. package/lib/module/components/Header.js.map +1 -1
  383. package/lib/module/components/LocalPeerScreenshareView.js +1 -6
  384. package/lib/module/components/LocalPeerScreenshareView.js.map +1 -1
  385. package/lib/module/components/Meeting.js +8 -7
  386. package/lib/module/components/Meeting.js.map +1 -1
  387. package/lib/module/components/MeetingScreenContent.js +23 -10
  388. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  389. package/lib/module/components/MenuModal/Menu.js +2 -2
  390. package/lib/module/components/MenuModal/Menu.js.map +1 -1
  391. package/lib/module/components/MiniView.js +8 -3
  392. package/lib/module/components/MiniView.js.map +1 -1
  393. package/lib/module/components/Modals.js +88 -313
  394. package/lib/module/components/Modals.js.map +1 -1
  395. package/lib/module/components/OverlayContainer.js +32 -0
  396. package/lib/module/components/OverlayContainer.js.map +1 -0
  397. package/lib/module/components/OverlayedViews.js +13 -0
  398. package/lib/module/components/OverlayedViews.js.map +1 -0
  399. package/lib/module/components/PaginationDots.js +4 -4
  400. package/lib/module/components/PaginationDots.js.map +1 -1
  401. package/lib/module/components/Participants/ParticipantsGroupHeader.js +121 -0
  402. package/lib/module/components/Participants/ParticipantsGroupHeader.js.map +1 -0
  403. package/lib/module/components/Participants/ParticipantsGroupOptions.js +71 -0
  404. package/lib/module/components/Participants/ParticipantsGroupOptions.js.map +1 -0
  405. package/lib/module/components/Participants/ParticipantsItem.js +123 -0
  406. package/lib/module/components/Participants/ParticipantsItem.js.map +1 -0
  407. package/lib/module/components/Participants/ParticipantsItemOption.js +37 -0
  408. package/lib/module/components/Participants/ParticipantsItemOption.js.map +1 -0
  409. package/lib/module/components/Participants/ParticipantsItemOptions.js +211 -0
  410. package/lib/module/components/Participants/ParticipantsItemOptions.js.map +1 -0
  411. package/lib/module/components/Participants/ParticipantsList.js +42 -225
  412. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  413. package/lib/module/components/Participants/ParticipantsSeachInput.js +37 -30
  414. package/lib/module/components/Participants/ParticipantsSeachInput.js.map +1 -1
  415. package/lib/module/components/Participants/index.js +0 -3
  416. package/lib/module/components/Participants/index.js.map +1 -1
  417. package/lib/module/components/PeerMinimizedView.js +1 -1
  418. package/lib/module/components/PeerSettingsModalContent.js +50 -126
  419. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  420. package/lib/module/components/PeerVideoTile/AvatarView.js +19 -5
  421. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -1
  422. package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js +36 -0
  423. package/lib/module/components/PeerVideoTile/HMSFullScreenButton.js.map +1 -0
  424. package/lib/module/components/PeerVideoTile/HMSPinchGesture.js +193 -0
  425. package/lib/module/components/PeerVideoTile/HMSPinchGesture.js.map +1 -0
  426. package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js +60 -0
  427. package/lib/module/components/PeerVideoTile/PeerAudioIndicator.js.map +1 -0
  428. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +11 -3
  429. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -1
  430. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +41 -20
  431. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -1
  432. package/lib/module/components/PeerVideoTile/VideoView.js +43 -10
  433. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -1
  434. package/lib/module/components/PressableIcon.js +11 -6
  435. package/lib/module/components/PressableIcon.js.map +1 -1
  436. package/lib/module/components/Preview.js +6 -13
  437. package/lib/module/components/Preview.js.map +1 -1
  438. package/lib/module/components/PreviewForRoleChangeModal.js +322 -0
  439. package/lib/module/components/PreviewForRoleChangeModal.js.map +1 -0
  440. package/lib/module/components/ReconnectionView.js +56 -0
  441. package/lib/module/components/ReconnectionView.js.map +1 -0
  442. package/lib/module/components/RoomSettingsModalContent.js +27 -36
  443. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  444. package/lib/module/components/RoomSettingsModalDebugModeContent.js +31 -70
  445. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -1
  446. package/lib/module/components/StreamingQualityModalContent.js +8 -8
  447. package/lib/module/components/StreamingQualityModalContent.js.map +1 -1
  448. package/lib/module/components/TilesContainer.js +31 -9
  449. package/lib/module/components/TilesContainer.js.map +1 -1
  450. package/lib/module/components/WebrtcView.js +11 -14
  451. package/lib/module/components/WebrtcView.js.map +1 -1
  452. package/lib/module/components/WelcomeInMeeting.js +8 -32
  453. package/lib/module/components/WelcomeInMeeting.js.map +1 -1
  454. package/lib/module/components/index.js +0 -3
  455. package/lib/module/components/index.js.map +1 -1
  456. package/lib/module/hooks-util-selectors.js +38 -8
  457. package/lib/module/hooks-util-selectors.js.map +1 -1
  458. package/lib/module/hooks-util.js +615 -213
  459. package/lib/module/hooks-util.js.map +1 -1
  460. package/lib/module/modules/HMSManager.js +3 -3
  461. package/lib/module/modules/HMSManager.js.map +1 -1
  462. package/lib/module/modules/parser.js +2 -3
  463. package/lib/module/modules/parser.js.map +1 -1
  464. package/lib/module/redux/actionTypes.js +25 -1
  465. package/lib/module/redux/actionTypes.js.map +1 -1
  466. package/lib/module/redux/actions/index.js +74 -0
  467. package/lib/module/redux/actions/index.js.map +1 -1
  468. package/lib/module/redux/reducers/appState.js +78 -2
  469. package/lib/module/redux/reducers/appState.js.map +1 -1
  470. package/lib/module/redux/reducers/chatWindow.js +3 -7
  471. package/lib/module/redux/reducers/chatWindow.js.map +1 -1
  472. package/lib/module/redux/reducers/hmsStates.js +70 -7
  473. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  474. package/lib/module/utils/functions.js +8 -2
  475. package/lib/module/utils/functions.js.map +1 -1
  476. package/lib/module/utils/theme.js +2 -0
  477. package/lib/module/utils/theme.js.map +1 -1
  478. package/lib/module/utils/types.js +6 -2
  479. package/lib/module/utils/types.js.map +1 -1
  480. package/lib/module/utils.js +6 -0
  481. package/lib/module/utils.js.map +1 -1
  482. package/lib/typescript/HMSPrebuilt.d.ts +1 -0
  483. package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
  484. package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
  485. package/lib/typescript/Icons/AlertTriangle/index.d.ts +1 -0
  486. package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -1
  487. package/lib/typescript/Icons/Eye/index.d.ts +8 -0
  488. package/lib/typescript/Icons/Eye/index.d.ts.map +1 -0
  489. package/lib/typescript/Icons/Person/index.d.ts +1 -0
  490. package/lib/typescript/Icons/Person/index.d.ts.map +1 -1
  491. package/lib/typescript/Icons/Search/index.d.ts +7 -0
  492. package/lib/typescript/Icons/Search/index.d.ts.map +1 -0
  493. package/lib/typescript/Icons/index.d.ts +2 -0
  494. package/lib/typescript/Icons/index.d.ts.map +1 -1
  495. package/lib/typescript/components/AnimatedFooter.d.ts +8 -0
  496. package/lib/typescript/components/AnimatedFooter.d.ts.map +1 -0
  497. package/lib/typescript/components/AnimatedHLSFooter.d.ts +11 -0
  498. package/lib/typescript/components/AnimatedHLSFooter.d.ts.map +1 -0
  499. package/lib/typescript/components/AnimatedHeader.d.ts +7 -0
  500. package/lib/typescript/components/AnimatedHeader.d.ts.map +1 -0
  501. package/lib/typescript/components/BottomSheet.d.ts +4 -1
  502. package/lib/typescript/components/BottomSheet.d.ts.map +1 -1
  503. package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -1
  504. package/lib/typescript/components/Chat/ChatBanner.d.ts +1 -1
  505. package/lib/typescript/components/Chat/ChatBanner.d.ts.map +1 -1
  506. package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts +6 -0
  507. package/lib/typescript/components/Chat/ChatFilterBottomSheetOpener.d.ts.map +1 -0
  508. package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts +6 -0
  509. package/lib/typescript/components/Chat/ChatFilterBottomSheetView.d.ts.map +1 -0
  510. package/lib/typescript/components/Chat/ChatFilterItem.d.ts +12 -0
  511. package/lib/typescript/components/Chat/ChatFilterItem.d.ts.map +1 -0
  512. package/lib/typescript/components/Chat/ChatFilterView.d.ts +6 -0
  513. package/lib/typescript/components/Chat/ChatFilterView.d.ts.map +1 -0
  514. package/lib/typescript/components/Chat/ChatList.d.ts.map +1 -1
  515. package/lib/typescript/components/Chat/ChatMessage.d.ts +2 -2
  516. package/lib/typescript/components/Chat/ChatMessage.d.ts.map +1 -1
  517. package/lib/typescript/components/Chat/PinnedMessage.d.ts.map +1 -1
  518. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts +3 -0
  519. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.d.ts.map +1 -0
  520. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts +7 -0
  521. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsHeader.d.ts.map +1 -0
  522. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts +3 -0
  523. package/lib/typescript/components/ChatAndParticipants/ChatAndParticipantsView.d.ts.map +1 -0
  524. package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts +6 -0
  525. package/lib/typescript/components/ChatAndParticipants/ChatView.d.ts.map +1 -0
  526. package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts +5 -0
  527. package/lib/typescript/components/ChatAndParticipants/ParticipantsView.d.ts.map +1 -0
  528. package/lib/typescript/components/ChatAndParticipants/index.d.ts +2 -0
  529. package/lib/typescript/components/ChatAndParticipants/index.d.ts.map +1 -0
  530. package/lib/typescript/components/CompanyLogo.d.ts.map +1 -1
  531. package/lib/typescript/components/DefaultModal.d.ts.map +1 -1
  532. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  533. package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -1
  534. package/lib/typescript/components/Footer.d.ts +0 -2
  535. package/lib/typescript/components/Footer.d.ts.map +1 -1
  536. package/lib/typescript/components/FullScreenVideoView.d.ts +3 -0
  537. package/lib/typescript/components/FullScreenVideoView.d.ts.map +1 -0
  538. package/lib/typescript/components/GridView.d.ts +12 -1
  539. package/lib/typescript/components/GridView.d.ts.map +1 -1
  540. package/lib/typescript/components/HLSFooter.d.ts +8 -0
  541. package/lib/typescript/components/HLSFooter.d.ts.map +1 -0
  542. package/lib/typescript/components/HLSView.d.ts.map +1 -1
  543. package/lib/typescript/components/HMSBaseButton.d.ts +2 -2
  544. package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -1
  545. package/lib/typescript/components/HMSChat.d.ts.map +1 -1
  546. package/lib/typescript/components/HMSHLSMessage.d.ts +8 -0
  547. package/lib/typescript/components/HMSHLSMessage.d.ts.map +1 -0
  548. package/lib/typescript/components/HMSHLSMessageList.d.ts +3 -0
  549. package/lib/typescript/components/HMSHLSMessageList.d.ts.map +1 -0
  550. package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
  551. package/lib/typescript/components/HMSHandRaiseNotification.d.ts +10 -0
  552. package/lib/typescript/components/HMSHandRaiseNotification.d.ts.map +1 -0
  553. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts +8 -0
  554. package/lib/typescript/components/HMSKeyboardAvoidingView.d.ts.map +1 -0
  555. package/lib/typescript/components/HMSLiveIndicator.d.ts +3 -0
  556. package/lib/typescript/components/HMSLiveIndicator.d.ts.map +1 -0
  557. package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts +5 -0
  558. package/lib/typescript/components/HMSLocalScreenshareNotification.d.ts.map +1 -0
  559. package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -1
  560. package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
  561. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  562. package/lib/typescript/components/HMSNotification.d.ts +15 -0
  563. package/lib/typescript/components/HMSNotification.d.ts.map +1 -0
  564. package/lib/typescript/components/HMSNotifications.d.ts +5 -0
  565. package/lib/typescript/components/HMSNotifications.d.ts.map +1 -0
  566. package/lib/typescript/components/HMSOverlayChatView.d.ts +3 -0
  567. package/lib/typescript/components/HMSOverlayChatView.d.ts.map +1 -0
  568. package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
  569. package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
  570. package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
  571. package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
  572. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -1
  573. package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts +9 -0
  574. package/lib/typescript/components/HMSRoleChangeDeclinedNotification.d.ts.map +1 -0
  575. package/lib/typescript/components/HMSSendMessageInput.d.ts +9 -0
  576. package/lib/typescript/components/HMSSendMessageInput.d.ts.map +1 -0
  577. package/lib/typescript/components/HMSTextInput.d.ts +20 -6
  578. package/lib/typescript/components/HMSTextInput.d.ts.map +1 -1
  579. package/lib/typescript/components/HMSVideoView.d.ts +6 -0
  580. package/lib/typescript/components/HMSVideoView.d.ts.map +1 -0
  581. package/lib/typescript/components/Header.d.ts +3 -2
  582. package/lib/typescript/components/Header.d.ts.map +1 -1
  583. package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -1
  584. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  585. package/lib/typescript/components/MeetingScreenContent.d.ts.map +1 -1
  586. package/lib/typescript/components/MiniView.d.ts.map +1 -1
  587. package/lib/typescript/components/Modals.d.ts +1 -21
  588. package/lib/typescript/components/Modals.d.ts.map +1 -1
  589. package/lib/typescript/components/OverlayContainer.d.ts +9 -0
  590. package/lib/typescript/components/OverlayContainer.d.ts.map +1 -0
  591. package/lib/typescript/components/OverlayedViews.d.ts +4 -0
  592. package/lib/typescript/components/OverlayedViews.d.ts.map +1 -0
  593. package/lib/typescript/components/PaginationDots.d.ts +3 -0
  594. package/lib/typescript/components/PaginationDots.d.ts.map +1 -1
  595. package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts +9 -0
  596. package/lib/typescript/components/Participants/ParticipantsGroupHeader.d.ts.map +1 -0
  597. package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts +8 -0
  598. package/lib/typescript/components/Participants/ParticipantsGroupOptions.d.ts.map +1 -0
  599. package/lib/typescript/components/Participants/ParticipantsItem.d.ts +9 -0
  600. package/lib/typescript/components/Participants/ParticipantsItem.d.ts.map +1 -0
  601. package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts +12 -0
  602. package/lib/typescript/components/Participants/ParticipantsItemOption.d.ts.map +1 -0
  603. package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts +10 -0
  604. package/lib/typescript/components/Participants/ParticipantsItemOptions.d.ts.map +1 -0
  605. package/lib/typescript/components/Participants/ParticipantsList.d.ts +4 -2
  606. package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
  607. package/lib/typescript/components/Participants/ParticipantsSeachInput.d.ts.map +1 -1
  608. package/lib/typescript/components/Participants/index.d.ts +0 -3
  609. package/lib/typescript/components/Participants/index.d.ts.map +1 -1
  610. package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
  611. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +4 -0
  612. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -1
  613. package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts +7 -0
  614. package/lib/typescript/components/PeerVideoTile/HMSFullScreenButton.d.ts.map +1 -0
  615. package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts +7 -0
  616. package/lib/typescript/components/PeerVideoTile/HMSPinchGesture.d.ts.map +1 -0
  617. package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts +8 -0
  618. package/lib/typescript/components/PeerVideoTile/PeerAudioIndicator.d.ts.map +1 -0
  619. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -1
  620. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +2 -1
  621. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -1
  622. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +1 -0
  623. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -1
  624. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  625. package/lib/typescript/components/Preview.d.ts.map +1 -1
  626. package/lib/typescript/components/PreviewForRoleChangeModal.d.ts +3 -0
  627. package/lib/typescript/components/PreviewForRoleChangeModal.d.ts.map +1 -0
  628. package/lib/typescript/components/ReconnectionView.d.ts +4 -0
  629. package/lib/typescript/components/ReconnectionView.d.ts.map +1 -0
  630. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  631. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -1
  632. package/lib/typescript/components/StreamingQualityModalContent.d.ts.map +1 -1
  633. package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
  634. package/lib/typescript/components/WebrtcView.d.ts.map +1 -1
  635. package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -1
  636. package/lib/typescript/components/index.d.ts +0 -3
  637. package/lib/typescript/components/index.d.ts.map +1 -1
  638. package/lib/typescript/hooks-util-selectors.d.ts +7 -2
  639. package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
  640. package/lib/typescript/hooks-util.d.ts +53 -23
  641. package/lib/typescript/hooks-util.d.ts.map +1 -1
  642. package/lib/typescript/modules/HMSManager.d.ts +1 -1
  643. package/lib/typescript/modules/HMSManager.d.ts.map +1 -1
  644. package/lib/typescript/modules/parser.d.ts +1 -1
  645. package/lib/typescript/modules/parser.d.ts.map +1 -1
  646. package/lib/typescript/redux/actionTypes.d.ts +16 -1
  647. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  648. package/lib/typescript/redux/actions/index.d.ts +92 -4
  649. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  650. package/lib/typescript/redux/index.d.ts +22 -2
  651. package/lib/typescript/redux/index.d.ts.map +1 -1
  652. package/lib/typescript/redux/reducers/appState.d.ts +10 -0
  653. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  654. package/lib/typescript/redux/reducers/chatWindow.d.ts +6 -6
  655. package/lib/typescript/redux/reducers/chatWindow.d.ts.map +1 -1
  656. package/lib/typescript/redux/reducers/hmsStates.d.ts +32 -4
  657. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  658. package/lib/typescript/redux/reducers/index.d.ts +22 -2
  659. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  660. package/lib/typescript/redux/reducers/userState.d.ts +1 -0
  661. package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
  662. package/lib/typescript/utils/functions.d.ts +3 -1
  663. package/lib/typescript/utils/functions.d.ts.map +1 -1
  664. package/lib/typescript/utils/theme.d.ts +1 -1
  665. package/lib/typescript/utils/theme.d.ts.map +1 -1
  666. package/lib/typescript/utils/types.d.ts +6 -2
  667. package/lib/typescript/utils/types.d.ts.map +1 -1
  668. package/lib/typescript/utils.d.ts +5 -0
  669. package/lib/typescript/utils.d.ts.map +1 -1
  670. package/package.json +13 -8
  671. package/src/HMSPrebuilt.tsx +10 -10
  672. package/src/HMSRoomSetup.tsx +50 -28
  673. package/src/Icons/AlertTriangle/assets/alert-triangle-filled.png +0 -0
  674. package/src/Icons/AlertTriangle/assets/alert-triangle-filled@2x.png +0 -0
  675. package/src/Icons/AlertTriangle/assets/alert-triangle-filled@3x.png +0 -0
  676. package/src/Icons/AlertTriangle/index.tsx +9 -2
  677. package/src/Icons/Eye/assets/eye-on-small.png +0 -0
  678. package/src/Icons/Eye/assets/eye-on-small@2x.png +0 -0
  679. package/src/Icons/Eye/assets/eye-on-small@3x.png +0 -0
  680. package/src/Icons/Eye/index.tsx +36 -0
  681. package/src/Icons/Person/assets/person-left.png +0 -0
  682. package/src/Icons/Person/assets/person-left@2x.png +0 -0
  683. package/src/Icons/Person/assets/person-left@3x.png +0 -0
  684. package/src/Icons/Person/assets/person-off.png +0 -0
  685. package/src/Icons/Person/assets/person-off@2x.png +0 -0
  686. package/src/Icons/Person/assets/person-off@3x.png +0 -0
  687. package/src/Icons/Person/assets/person-rectangle.png +0 -0
  688. package/src/Icons/Person/assets/person-rectangle@2x.png +0 -0
  689. package/src/Icons/Person/assets/person-rectangle@3x.png +0 -0
  690. package/src/Icons/Person/index.tsx +13 -2
  691. package/src/Icons/Search/assets/search.png +0 -0
  692. package/src/Icons/Search/assets/search@2x.png +0 -0
  693. package/src/Icons/Search/assets/search@3x.png +0 -0
  694. package/src/Icons/Search/index.tsx +33 -0
  695. package/src/Icons/index.ts +2 -0
  696. package/src/assets/audio-level-white.json +1271 -0
  697. package/src/assets/empty-chat-illustration/empty-chat.png +0 -0
  698. package/src/assets/empty-chat-illustration/empty-chat@2x.png +0 -0
  699. package/src/assets/empty-chat-illustration/empty-chat@3x.png +0 -0
  700. package/src/assets/welcome.png +0 -0
  701. package/src/components/AnimatedFooter.tsx +37 -0
  702. package/src/components/AnimatedHLSFooter.tsx +43 -0
  703. package/src/components/AnimatedHeader.tsx +53 -0
  704. package/src/components/BottomSheet.tsx +8 -4
  705. package/src/components/ChangeNameModalContent.tsx +2 -11
  706. package/src/components/Chat/ChatBanner.tsx +37 -52
  707. package/src/components/Chat/ChatFilterBottomSheetOpener.tsx +88 -0
  708. package/src/components/Chat/ChatFilterBottomSheetView.tsx +81 -0
  709. package/src/components/Chat/ChatFilterItem.tsx +71 -0
  710. package/src/components/Chat/ChatFilterView.tsx +250 -0
  711. package/src/components/Chat/ChatList.tsx +16 -12
  712. package/src/components/Chat/ChatMessage.tsx +48 -197
  713. package/src/components/Chat/PinnedMessage.tsx +45 -45
  714. package/src/components/ChatAndParticipants/ChatAndParticipantsBottomSheet.tsx +38 -0
  715. package/src/components/ChatAndParticipants/ChatAndParticipantsHeader.tsx +140 -0
  716. package/src/components/ChatAndParticipants/ChatAndParticipantsView.tsx +84 -0
  717. package/src/components/ChatAndParticipants/ChatView.tsx +42 -0
  718. package/src/components/ChatAndParticipants/ParticipantsView.tsx +41 -0
  719. package/src/components/ChatAndParticipants/index.ts +1 -0
  720. package/src/components/CompanyLogo.tsx +3 -2
  721. package/src/components/DefaultModal.tsx +4 -6
  722. package/src/components/DisplayView.tsx +10 -26
  723. package/src/components/EndRoomModalContent.tsx +32 -7
  724. package/src/components/Footer.tsx +93 -58
  725. package/src/components/FullScreenVideoView.tsx +77 -0
  726. package/src/components/GridView.tsx +186 -65
  727. package/src/components/HLSFooter.tsx +32 -0
  728. package/src/components/HLSView.tsx +5 -32
  729. package/src/components/HMSBaseButton.tsx +2 -2
  730. package/src/components/HMSChat.tsx +12 -25
  731. package/src/components/HMSHLSMessage.tsx +72 -0
  732. package/src/components/HMSHLSMessageList.tsx +60 -0
  733. package/src/components/HMSHLSNotStarted.tsx +8 -19
  734. package/src/components/HMSHandRaiseNotification.tsx +101 -0
  735. package/src/components/HMSKeyboardAvoidingView.tsx +58 -0
  736. package/src/components/HMSLiveIndicator.tsx +124 -0
  737. package/src/components/HMSLocalScreenshareNotification.tsx +41 -0
  738. package/src/components/HMSLocalVideoView.tsx +4 -31
  739. package/src/components/HMSManageAudioOutput.tsx +14 -2
  740. package/src/components/HMSManageLeave.tsx +46 -19
  741. package/src/components/HMSNotification.tsx +126 -0
  742. package/src/components/HMSNotifications.tsx +154 -0
  743. package/src/components/HMSOverlayChatView.tsx +36 -0
  744. package/src/components/HMSPreviewJoinButton.tsx +6 -3
  745. package/src/components/HMSPreviewNetworkQuality.tsx +3 -1
  746. package/src/components/HMSPreviewSubtitle.tsx +2 -6
  747. package/src/components/HMSPreviewTitle.tsx +2 -6
  748. package/src/components/HMSRecordingIndicator.tsx +13 -2
  749. package/src/components/HMSRoleChangeDeclinedNotification.tsx +25 -0
  750. package/src/components/HMSSendMessageInput.tsx +59 -0
  751. package/src/components/HMSTextInput.tsx +157 -23
  752. package/src/components/HMSVideoView.tsx +43 -0
  753. package/src/components/Header.tsx +25 -133
  754. package/src/components/LocalPeerScreenshareView.tsx +0 -6
  755. package/src/components/Meeting.tsx +15 -8
  756. package/src/components/MeetingScreenContent.tsx +28 -11
  757. package/src/components/MiniView.tsx +10 -4
  758. package/src/components/Modals.tsx +112 -370
  759. package/src/components/OverlayContainer.tsx +31 -0
  760. package/src/components/OverlayedViews.tsx +22 -0
  761. package/src/components/PaginationDots.tsx +9 -8
  762. package/src/components/Participants/ParticipantsGroupHeader.tsx +145 -0
  763. package/src/components/Participants/ParticipantsGroupOptions.tsx +87 -0
  764. package/src/components/Participants/ParticipantsItem.tsx +170 -0
  765. package/src/components/Participants/ParticipantsItemOption.tsx +52 -0
  766. package/src/components/Participants/ParticipantsItemOptions.tsx +262 -0
  767. package/src/components/Participants/ParticipantsList.tsx +68 -278
  768. package/src/components/Participants/ParticipantsSeachInput.tsx +37 -35
  769. package/src/components/Participants/index.ts +0 -3
  770. package/src/components/PeerMinimizedView.tsx +1 -1
  771. package/src/components/PeerSettingsModalContent.tsx +44 -191
  772. package/src/components/PeerVideoTile/AvatarView.tsx +43 -5
  773. package/src/components/PeerVideoTile/HMSFullScreenButton.tsx +56 -0
  774. package/src/components/PeerVideoTile/HMSPinchGesture.tsx +176 -0
  775. package/src/components/PeerVideoTile/PeerAudioIndicator.tsx +78 -0
  776. package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +15 -2
  777. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +172 -115
  778. package/src/components/PeerVideoTile/VideoView.tsx +59 -9
  779. package/src/components/PressableIcon.tsx +26 -13
  780. package/src/components/Preview.tsx +17 -24
  781. package/src/components/PreviewForRoleChangeModal.tsx +448 -0
  782. package/src/components/ReconnectionView.tsx +73 -0
  783. package/src/components/RoomSettingsModalContent.tsx +32 -30
  784. package/src/components/RoomSettingsModalDebugModeContent.tsx +11 -65
  785. package/src/components/StreamingQualityModalContent.tsx +8 -8
  786. package/src/components/TilesContainer.tsx +54 -24
  787. package/src/components/WebrtcView.tsx +29 -19
  788. package/src/components/WelcomeInMeeting.tsx +5 -34
  789. package/src/components/index.ts +0 -3
  790. package/src/hooks-util-selectors.tsx +69 -6
  791. package/src/hooks-util.ts +852 -270
  792. package/src/modules/HMSManager.ts +3 -3
  793. package/src/modules/parser.ts +3 -4
  794. package/src/redux/actionTypes.ts +33 -0
  795. package/src/redux/actions/index.ts +96 -1
  796. package/src/redux/reducers/appState.ts +83 -1
  797. package/src/redux/reducers/chatWindow.ts +12 -5
  798. package/src/redux/reducers/hmsStates.ts +136 -4
  799. package/src/redux/reducers/userState.ts +1 -1
  800. package/src/utils/functions.ts +9 -0
  801. package/src/utils/theme.ts +3 -1
  802. package/src/utils/types.ts +6 -2
  803. package/src/utils.ts +6 -0
  804. package/lib/commonjs/assets/100ms-logo.png +0 -0
  805. package/lib/commonjs/assets/brb.png +0 -0
  806. package/lib/commonjs/assets/icon.png +0 -0
  807. package/lib/commonjs/assets/illustration.png +0 -0
  808. package/lib/commonjs/assets/network_0.png +0 -0
  809. package/lib/commonjs/assets/network_1.png +0 -0
  810. package/lib/commonjs/assets/network_2.png +0 -0
  811. package/lib/commonjs/assets/network_3.png +0 -0
  812. package/lib/commonjs/assets/network_4.png +0 -0
  813. package/lib/commonjs/assets/user_music.png +0 -0
  814. package/lib/commonjs/components/ChatWindow.js +0 -608
  815. package/lib/commonjs/components/ChatWindow.js.map +0 -1
  816. package/lib/commonjs/components/CustomInput.js +0 -89
  817. package/lib/commonjs/components/CustomInput.js.map +0 -1
  818. package/lib/commonjs/components/DisplayTrack.js +0 -70
  819. package/lib/commonjs/components/DisplayTrack.js.map +0 -1
  820. package/lib/commonjs/components/HMSShareScreen.js +0 -59
  821. package/lib/commonjs/components/HMSShareScreen.js.map +0 -1
  822. package/lib/commonjs/components/HMSShowNetworkQuality.js +0 -56
  823. package/lib/commonjs/components/HMSShowNetworkQuality.js.map +0 -1
  824. package/lib/commonjs/components/LiveButton.js +0 -70
  825. package/lib/commonjs/components/LiveButton.js.map +0 -1
  826. package/lib/commonjs/components/Participants/ParticipantsFilter.js +0 -128
  827. package/lib/commonjs/components/Participants/ParticipantsFilter.js.map +0 -1
  828. package/lib/commonjs/components/Participants/ParticipantsHeader.js +0 -67
  829. package/lib/commonjs/components/Participants/ParticipantsHeader.js.map +0 -1
  830. package/lib/commonjs/components/Participants/SearchableParticipantsView.js.map +0 -1
  831. package/lib/commonjs/components/ParticipantsModal.js.map +0 -1
  832. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
  833. package/lib/commonjs/components/Picker.js +0 -93
  834. package/lib/commonjs/components/Picker.js.map +0 -1
  835. package/lib/module/assets/100ms-logo.png +0 -0
  836. package/lib/module/assets/brb.png +0 -0
  837. package/lib/module/assets/icon.png +0 -0
  838. package/lib/module/assets/illustration.png +0 -0
  839. package/lib/module/assets/network_0.png +0 -0
  840. package/lib/module/assets/network_1.png +0 -0
  841. package/lib/module/assets/network_2.png +0 -0
  842. package/lib/module/assets/network_3.png +0 -0
  843. package/lib/module/assets/network_4.png +0 -0
  844. package/lib/module/assets/user_music.png +0 -0
  845. package/lib/module/components/ChatWindow.js +0 -595
  846. package/lib/module/components/ChatWindow.js.map +0 -1
  847. package/lib/module/components/CustomInput.js +0 -82
  848. package/lib/module/components/CustomInput.js.map +0 -1
  849. package/lib/module/components/DisplayTrack.js +0 -63
  850. package/lib/module/components/DisplayTrack.js.map +0 -1
  851. package/lib/module/components/HMSShareScreen.js +0 -50
  852. package/lib/module/components/HMSShareScreen.js.map +0 -1
  853. package/lib/module/components/HMSShowNetworkQuality.js +0 -47
  854. package/lib/module/components/HMSShowNetworkQuality.js.map +0 -1
  855. package/lib/module/components/LiveButton.js +0 -61
  856. package/lib/module/components/LiveButton.js.map +0 -1
  857. package/lib/module/components/Participants/ParticipantsFilter.js +0 -121
  858. package/lib/module/components/Participants/ParticipantsFilter.js.map +0 -1
  859. package/lib/module/components/Participants/ParticipantsHeader.js +0 -58
  860. package/lib/module/components/Participants/ParticipantsHeader.js.map +0 -1
  861. package/lib/module/components/Participants/SearchableParticipantsView.js +0 -18
  862. package/lib/module/components/Participants/SearchableParticipantsView.js.map +0 -1
  863. package/lib/module/components/ParticipantsModal.js +0 -34
  864. package/lib/module/components/ParticipantsModal.js.map +0 -1
  865. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +0 -35
  866. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +0 -1
  867. package/lib/module/components/Picker.js +0 -83
  868. package/lib/module/components/Picker.js.map +0 -1
  869. package/lib/typescript/components/ChatWindow.d.ts +0 -22
  870. package/lib/typescript/components/ChatWindow.d.ts.map +0 -1
  871. package/lib/typescript/components/CustomInput.d.ts +0 -24
  872. package/lib/typescript/components/CustomInput.d.ts.map +0 -1
  873. package/lib/typescript/components/DisplayTrack.d.ts +0 -9
  874. package/lib/typescript/components/DisplayTrack.d.ts.map +0 -1
  875. package/lib/typescript/components/HMSShareScreen.d.ts +0 -9
  876. package/lib/typescript/components/HMSShareScreen.d.ts.map +0 -1
  877. package/lib/typescript/components/HMSShowNetworkQuality.d.ts +0 -3
  878. package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +0 -1
  879. package/lib/typescript/components/LiveButton.d.ts +0 -17
  880. package/lib/typescript/components/LiveButton.d.ts.map +0 -1
  881. package/lib/typescript/components/Participants/ParticipantsFilter.d.ts +0 -6
  882. package/lib/typescript/components/Participants/ParticipantsFilter.d.ts.map +0 -1
  883. package/lib/typescript/components/Participants/ParticipantsHeader.d.ts +0 -9
  884. package/lib/typescript/components/Participants/ParticipantsHeader.d.ts.map +0 -1
  885. package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts +0 -3
  886. package/lib/typescript/components/Participants/SearchableParticipantsView.d.ts.map +0 -1
  887. package/lib/typescript/components/ParticipantsModal.d.ts +0 -5
  888. package/lib/typescript/components/ParticipantsModal.d.ts.map +0 -1
  889. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +0 -6
  890. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +0 -1
  891. package/lib/typescript/components/Picker.d.ts +0 -9
  892. package/lib/typescript/components/Picker.d.ts.map +0 -1
  893. package/src/assets/100ms-logo.png +0 -0
  894. package/src/assets/brb.png +0 -0
  895. package/src/assets/icon.png +0 -0
  896. package/src/assets/illustration.png +0 -0
  897. package/src/assets/network_0.png +0 -0
  898. package/src/assets/network_1.png +0 -0
  899. package/src/assets/network_2.png +0 -0
  900. package/src/assets/network_3.png +0 -0
  901. package/src/assets/network_4.png +0 -0
  902. package/src/assets/user_music.png +0 -0
  903. package/src/components/ChatWindow.tsx +0 -706
  904. package/src/components/CustomInput.tsx +0 -138
  905. package/src/components/DisplayTrack.tsx +0 -92
  906. package/src/components/HMSShareScreen.tsx +0 -71
  907. package/src/components/HMSShowNetworkQuality.tsx +0 -68
  908. package/src/components/LiveButton.tsx +0 -77
  909. package/src/components/Participants/ParticipantsFilter.tsx +0 -144
  910. package/src/components/Participants/ParticipantsHeader.tsx +0 -64
  911. package/src/components/Participants/SearchableParticipantsView.tsx +0 -21
  912. package/src/components/ParticipantsModal.tsx +0 -46
  913. package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +0 -41
  914. package/src/components/Picker.tsx +0 -108
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HMSPinchGesture = void 0;
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _reactNativeGestureHandler = require("react-native-gesture-handler");
9
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ const HMSPinchGesture = _ref => {
13
+ let {
14
+ children,
15
+ style
16
+ } = _ref;
17
+ /**
18
+ * - Dimensions of Animated View
19
+ * This will be used to apply transformations as per width and height of Animated Views
20
+ */
21
+ const dimensions = (0, _reactNativeReanimated.useSharedValue)({
22
+ width: 0,
23
+ height: 0
24
+ });
25
+
26
+ /**
27
+ * - Tracking number of active pointers in pinch gesture
28
+ * "Focal point" is used as an origin point for scaling the view
29
+ * when active number of pointers change, focal point is also changed causing a flicker effect
30
+ *
31
+ * To remove flicker effect, when `numberOfPointers` change, we calculate the amount of change in focal point
32
+ * and use the `(new focal point) + (amount of change in focal point)` to apply transformations
33
+ */
34
+ const numberOfPointers = (0, _reactNativeReanimated.useSharedValue)(0);
35
+
36
+ /**
37
+ * - Current focal point to apply scaling
38
+ * "Focal point" is used as an origin point for scaling the view
39
+ * > We transform the "center of View" to the "focal point", "apply scaling" and then "undo the transformation"
40
+ */
41
+ const focalPoint = (0, _reactNativeReanimated.useSharedValue)({
42
+ x: 0,
43
+ y: 0
44
+ });
45
+ const adjustedFocalPoint = (0, _reactNativeReanimated.useSharedValue)({
46
+ x: 0,
47
+ y: 0
48
+ });
49
+
50
+ /**
51
+ * - focal point captured at the start of the pinch gesture
52
+ * We use this point to calculate the amount of translation of focal point
53
+ * `
54
+ * translation = (current focal point) - (focal point at the start of the gesture)
55
+ * `
56
+ * then translation value is amount of swipe(pan) gesture user has applied while scaling
57
+ * we can use this calculated value as a translation value, similar to what we get in `pan gesture`
58
+ */
59
+ const focalPointAtStart = (0, _reactNativeReanimated.useSharedValue)({
60
+ x: 0,
61
+ y: 0
62
+ });
63
+
64
+ /**
65
+ * - x,y coords representing the amount by which focal point shifted due to change in `numberOfPointers`
66
+ * e.g. focal point when `numberOfPointers = 2` - (20, 100)
67
+ * focal point when `numberOfPointers` reduced to `1` - (40, 300)
68
+ *
69
+ * focal point got shifted by `20` points on x-axis and `200` points on y-axis. Thus, `focalShift = (20, 200)`
70
+ *
71
+ * Usage: TODO
72
+ */
73
+ const focalShift = (0, _reactNativeReanimated.useSharedValue)({
74
+ x: 0,
75
+ y: 0
76
+ });
77
+ const scale = (0, _reactNativeReanimated.useSharedValue)(1);
78
+ const savedScale = (0, _reactNativeReanimated.useSharedValue)(1);
79
+ const translation = (0, _reactNativeReanimated.useSharedValue)({
80
+ x: 0,
81
+ y: 0
82
+ });
83
+ const savedTranslation = (0, _reactNativeReanimated.useSharedValue)({
84
+ x: 0,
85
+ y: 0
86
+ });
87
+ const handleLayoutChange = React.useCallback(_ref2 => {
88
+ let {
89
+ nativeEvent
90
+ } = _ref2;
91
+ dimensions.value = {
92
+ width: nativeEvent.layout.width,
93
+ height: nativeEvent.layout.height
94
+ };
95
+ }, []);
96
+ const panGesture = _reactNativeGestureHandler.Gesture.Pan().maxPointers(1).onUpdate(e => {
97
+ translation.value = {
98
+ x: e.translationX + savedTranslation.value.x,
99
+ y: e.translationY + savedTranslation.value.y
100
+ };
101
+ }).onEnd(() => {
102
+ savedTranslation.value = translation.value;
103
+ });
104
+ const pinchGesture = _reactNativeGestureHandler.Gesture.Pinch().onStart(e => {
105
+ numberOfPointers.value = e.numberOfPointers;
106
+ focalPointAtStart.value = {
107
+ x: e.focalX,
108
+ y: e.focalY
109
+ };
110
+ adjustedFocalPoint.value = {
111
+ x: e.focalX - focalShift.value.x,
112
+ // subtracting "focal point shift" value from "current focal point", we will get "focal point before the shift", and apply transformations on the that focal point
113
+ y: e.focalY - focalShift.value.y // subtracting "focal point shift" value from "current focal point", we will get "focal point before the shift", and apply transformations on the that focal point
114
+ };
115
+ }).onUpdate(e => {
116
+ // Calculating `focal point` shift values when `numberOfPointers` changes
117
+ if (numberOfPointers.value !== e.numberOfPointers) {
118
+ numberOfPointers.value = e.numberOfPointers;
119
+ focalShift.value = {
120
+ x: e.focalX - (focalPoint.value.x - focalShift.value.x),
121
+ y: e.focalY - (focalPoint.value.y - focalShift.value.y)
122
+ };
123
+ }
124
+ adjustedFocalPoint.value = {
125
+ x: e.focalX - focalShift.value.x,
126
+ // subtracting "focal point shift" value from "current focal point", we will get "focal point before the shift", and apply transformations on the that focal point
127
+ y: e.focalY - focalShift.value.y // subtracting "focal point shift" value from "current focal point", we will get "focal point before the shift", and apply transformations on the that focal point
128
+ };
129
+
130
+ // Applying translations
131
+ translation.value = {
132
+ x: adjustedFocalPoint.value.x - focalPointAtStart.value.x +
133
+ // subtracting "focal point position capturred at start of gesture" from "adjusted focal point position" we will get the translation value
134
+ savedTranslation.value.x,
135
+ // Adding current translation to previous Translation to make it a continuous gesture
136
+ y: adjustedFocalPoint.value.y - focalPointAtStart.value.y +
137
+ // subtracting "focal point position capturred at start of gesture" from "adjusted focal point position" we will get the translation value
138
+ savedTranslation.value.y // Adding current translation to previous Translation to make it a continuous gesture
139
+ };
140
+
141
+ // saving focal point to apply scaling on correct position
142
+ focalPoint.value = {
143
+ x: e.focalX,
144
+ y: e.focalY
145
+ };
146
+ scale.value = Math.min(Math.max(savedScale.value * e.scale, 0.94), 5.2);
147
+ }).onEnd(() => {
148
+ if (scale.value < 1) {
149
+ scale.value = (0, _reactNativeReanimated.withSpring)(1, {
150
+ damping: 100,
151
+ stiffness: 200
152
+ });
153
+ savedScale.value = 1;
154
+ translation.value = {
155
+ x: 0,
156
+ y: 0
157
+ };
158
+ } else if (scale.value > 5) {
159
+ scale.value = (0, _reactNativeReanimated.withSpring)(5, {
160
+ damping: 100,
161
+ stiffness: 200
162
+ });
163
+ savedScale.value = 5;
164
+ } else {
165
+ savedScale.value = scale.value;
166
+ }
167
+ focalShift.value = {
168
+ x: 0,
169
+ y: 0
170
+ };
171
+ savedTranslation.value = translation.value;
172
+ });
173
+ const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
174
+ transform: [{
175
+ translateX: translation.value.x
176
+ }, {
177
+ translateY: translation.value.y
178
+ }, {
179
+ translateX: focalPointAtStart.value.x - dimensions.value.width / 2
180
+ }, {
181
+ translateY: focalPointAtStart.value.y - dimensions.value.height / 2
182
+ }, {
183
+ scale: scale.value
184
+ }, {
185
+ translateX: -(focalPointAtStart.value.x - dimensions.value.width / 2)
186
+ }, {
187
+ translateY: -(focalPointAtStart.value.y - dimensions.value.height / 2)
188
+ }]
189
+ }));
190
+ return /*#__PURE__*/React.createElement(_reactNativeGestureHandler.GestureDetector, {
191
+ gesture: _reactNativeGestureHandler.Gesture.Exclusive(panGesture, pinchGesture)
192
+ }, /*#__PURE__*/React.createElement(_reactNativeReanimated.default.View, {
193
+ style: {
194
+ flex: 1
195
+ }
196
+ }, /*#__PURE__*/React.createElement(_reactNativeReanimated.default.View, {
197
+ onLayout: handleLayoutChange,
198
+ style: [style, animatedStyle]
199
+ }, children)));
200
+ };
201
+ exports.HMSPinchGesture = HMSPinchGesture;
202
+ //# sourceMappingURL=HMSPinchGesture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNativeGestureHandler","_reactNativeReanimated","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","HMSPinchGesture","_ref","children","style","dimensions","useSharedValue","width","height","numberOfPointers","focalPoint","x","y","adjustedFocalPoint","focalPointAtStart","focalShift","scale","savedScale","translation","savedTranslation","handleLayoutChange","useCallback","_ref2","nativeEvent","value","layout","panGesture","Gesture","Pan","maxPointers","onUpdate","e","translationX","translationY","onEnd","pinchGesture","Pinch","onStart","focalX","focalY","Math","min","max","withSpring","damping","stiffness","animatedStyle","useAnimatedStyle","transform","translateX","translateY","createElement","GestureDetector","gesture","Exclusive","View","flex","onLayout","exports"],"sourceRoot":"../../../../src","sources":["components/PeerVideoTile/HMSPinchGesture.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAH,uBAAA,CAAAC,OAAA;AAIiC,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAL,wBAAAS,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAA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C,CAAC,CAAC;EAEH,oBACElC,KAAA,CAAA6E,aAAA,CAAC1E,0BAAA,CAAA2E,eAAe;IAACC,OAAO,EAAE1B,kCAAO,CAAC2B,SAAS,CAAC5B,UAAU,EAAES,YAAY;EAAE,gBACpE7D,KAAA,CAAA6E,aAAA,CAACzE,sBAAA,CAAAQ,OAAQ,CAACqE,IAAI;IAACnD,KAAK,EAAE;MAAEoD,IAAI,EAAE;IAAE;EAAE,gBAChClF,KAAA,CAAA6E,aAAA,CAACzE,sBAAA,CAAAQ,OAAQ,CAACqE,IAAI;IACZE,QAAQ,EAAErC,kBAAmB;IAC7BhB,KAAK,EAAE,CAACA,KAAK,EAAE0C,aAAa;EAAE,GAE7B3C,QACY,CACF,CACA,CAAC;AAEtB,CAAC;AAACuD,OAAA,CAAAzD,eAAA,GAAAA,eAAA"}
@@ -3,17 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.PeerAudioMutedIndicator = void 0;
6
+ exports.PeerAudioIndicator = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
+ var _reactRedux = require("react-redux");
10
+ var _lottieReactNative = _interopRequireDefault(require("lottie-react-native"));
9
11
  var _Icons = require("../../Icons");
10
12
  var _hooksUtil = require("../../hooks-util");
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
- const PeerAudioMutedIndicator = _ref => {
16
+ const PeerAudioIndicator = _ref => {
14
17
  let {
18
+ peer,
15
19
  isMuted
16
20
  } = _ref;
21
+ const activeSpeaker = (0, _reactRedux.useSelector)(state => state.hmsStates.activeSpeakers.findIndex(activeSpeaker => activeSpeaker.peer.peerID === peer.peerID) >= 0);
17
22
  const iconWrapperStyles = (0, _hooksUtil.useHMSRoomStyle)(theme => ({
18
23
  backgroundColor: theme.palette.secondary_dim
19
24
  }));
@@ -25,9 +30,19 @@ const PeerAudioMutedIndicator = _ref => {
25
30
  style: styles.icon
26
31
  }));
27
32
  }
33
+ if (activeSpeaker) {
34
+ return /*#__PURE__*/React.createElement(_reactNative.View, {
35
+ style: [styles.speakerIconWrapper, iconWrapperStyles]
36
+ }, /*#__PURE__*/React.createElement(_lottieReactNative.default, {
37
+ style: styles.speakerIcon,
38
+ source: require('../../assets/audio-level-white.json'),
39
+ autoPlay: true,
40
+ loop: true
41
+ }));
42
+ }
28
43
  return null;
29
44
  };
30
- exports.PeerAudioMutedIndicator = PeerAudioMutedIndicator;
45
+ exports.PeerAudioIndicator = PeerAudioIndicator;
31
46
  const styles = _reactNative.StyleSheet.create({
32
47
  iconWrapper: {
33
48
  position: 'absolute',
@@ -39,6 +54,17 @@ const styles = _reactNative.StyleSheet.create({
39
54
  icon: {
40
55
  width: 16,
41
56
  height: 16
57
+ },
58
+ speakerIconWrapper: {
59
+ position: 'absolute',
60
+ top: 8,
61
+ right: 8,
62
+ padding: 0,
63
+ borderRadius: 16
64
+ },
65
+ speakerIcon: {
66
+ width: 32,
67
+ height: 32
42
68
  }
43
69
  });
44
- //# sourceMappingURL=PeerAudioMutedIndicator.js.map
70
+ //# sourceMappingURL=PeerAudioIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactRedux","_lottieReactNative","_interopRequireDefault","_Icons","_hooksUtil","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","PeerAudioIndicator","_ref","peer","isMuted","activeSpeaker","useSelector","state","hmsStates","activeSpeakers","findIndex","peerID","iconWrapperStyles","useHMSRoomStyle","theme","backgroundColor","palette","secondary_dim","createElement","View","style","styles","iconWrapper","MicIcon","muted","icon","speakerIconWrapper","speakerIcon","source","autoPlay","loop","exports","StyleSheet","create","position","top","right","padding","borderRadius","width","height"],"sourceRoot":"../../../../src","sources":["components/PeerVideoTile/PeerAudioIndicator.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAAmD,SAAAI,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAZ,wBAAAQ,GAAA,EAAAI,WAAA,SAAAA,WAAA,I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AK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV;AACF,CAAC,CAAC"}
@@ -19,10 +19,11 @@ const PeerNameAndNetwork = _ref => {
19
19
  trackSource,
20
20
  networkQuality
21
21
  } = _ref;
22
+ const isScreenTrackSource = trackSource && trackSource === _reactNativeHms.HMSTrackSource.SCREEN;
22
23
  const showTrackSource = trackSource && trackSource !== _reactNativeHms.HMSTrackSource.REGULAR;
23
24
  const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)((theme, typography) => ({
24
25
  contentContainer: {
25
- backgroundColor: (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
26
+ backgroundColor: theme.palette.background_dim && (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
26
27
  },
27
28
  name: {
28
29
  color: theme.palette.on_surface_high,
@@ -33,7 +34,9 @@ const PeerNameAndNetwork = _ref => {
33
34
  style: styles.container
34
35
  }, /*#__PURE__*/React.createElement(_reactNative.View, {
35
36
  style: [styles.contentContainer, hmsRoomStyles.contentContainer]
36
- }, /*#__PURE__*/React.createElement(_reactNative.Text, {
37
+ }, isScreenTrackSource ? /*#__PURE__*/React.createElement(_Icons.ScreenShareIcon, {
38
+ style: styles.screenShareIcon
39
+ }) : null, /*#__PURE__*/React.createElement(_reactNative.Text, {
37
40
  style: [styles.name, hmsRoomStyles.name],
38
41
  numberOfLines: 1,
39
42
  ellipsizeMode: showTrackSource ? 'middle' : 'tail'
@@ -67,6 +70,11 @@ const styles = _reactNative.StyleSheet.create({
67
70
  lineHeight: 20,
68
71
  letterSpacing: 0.25
69
72
  },
73
+ screenShareIcon: {
74
+ width: 20,
75
+ height: 20,
76
+ marginRight: 6
77
+ },
70
78
  networkIcon: {
71
79
  marginLeft: 4
72
80
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeHms","_theme","_Icons","_hooksUtil","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","PeerNameAndNetwork","_ref","name","isLocal","trackSource","networkQuality","showTrackSource","HMSTrackSource","REGULAR","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","contentContainer","backgroundColor","hexToRgbA","palette","background_dim","color","on_surface_high","fontFamily","font_family","createElement","View","style","styles","container","Text","numberOfLines","ellipsizeMode","NetworkQualityIcon","quality","networkIcon","exports","StyleSheet","create","position","bottom","width","flexDirection","paddingVertical","paddingHorizontal","borderRadius","marginLeft","marginRight","flexGrow","flexShrink","fontSize","lineHeight","letterSpacing"],"sourceRoot":"../../../../src","sources":["components/PeerVideoTile/PeerNameAndNetwork.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAAwD,SAAAM,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,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}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeHms","_theme","_Icons","_hooksUtil","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","PeerNameAndNetwork","_ref","name","isLocal","trackSource","networkQuality","isScreenTrackSource","HMSTrackSource","SCREEN","showTrackSource","REGULAR","hmsRoomStyles","useHMSRoomStyleSheet","theme","typography","contentContainer","backgroundColor","palette","background_dim","hexToRgbA","color","on_surface_high","fontFamily","font_family","createElement","View","style","styles","container","ScreenShareIcon","screenShareIcon","Text","numberOfLines","ellipsizeMode","NetworkQualityIcon","quality","networkIcon","exports","StyleSheet","create","position","bottom","width","flexDirection","paddingVertical","paddingHorizontal","borderRadius","marginLeft","marginRight","flexGrow","flexShrink","fontSize","lineHeight","letterSpacing","height"],"sourceRoot":"../../../../src","sources":["components/PeerVideoTile/PeerNameAndNetwork.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAAwD,SAAAM,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAA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E;IAChB4B,aAAa,EAAE,KAAK;IACpBC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,CAAC;IACpBC,YAAY,EAAE,CAAC;IACfC,UAAU,EAAE,CAAC;IAAE;IACfC,WAAW,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,CAAE;EAC5B,CAAC;;EACD9C,IAAI,EAAE;IACJ+C,QAAQ,EAAE,CAAC;IACXC,UAAU,EAAE,CAAC;IACbC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE;EACjB,CAAC;EACDvB,eAAe,EAAE;IACfY,KAAK,EAAE,EAAE;IACTY,MAAM,EAAE,EAAE;IACVN,WAAW,EAAE;EACf,CAAC;EACDZ,WAAW,EAAE;IACXW,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
@@ -7,12 +7,11 @@ exports._PeerVideoTileView = exports.PeerVideoTileView = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _reactNativeHms = require("@100mslive/react-native-hms");
10
- var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
11
10
  var _reactRedux = require("react-redux");
12
11
  var _VideoView = require("./VideoView");
13
12
  var _AvatarView = require("./AvatarView");
14
13
  var _PeerMetadata = require("./PeerMetadata");
15
- var _PeerAudioMutedIndicator = require("./PeerAudioMutedIndicator");
14
+ var _PeerAudioIndicator = require("./PeerAudioIndicator");
16
15
  var _PressableIcon = require("../PressableIcon");
17
16
  var _Icons = require("../../Icons");
18
17
  var _theme = require("../../utils/theme");
@@ -21,6 +20,7 @@ var _UnmountAfterDelay = require("../UnmountAfterDelay");
21
20
  var _functions = require("../../utils/functions");
22
21
  var _hooksSdkSelectors = require("../../hooks-sdk-selectors");
23
22
  var _hooksUtil = require("../../hooks-util");
23
+ var _HMSFullScreenButton = require("./HMSFullScreenButton");
24
24
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
25
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
26
  const _PeerVideoTileView = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
@@ -28,6 +28,7 @@ const _PeerVideoTileView = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
28
28
  let {
29
29
  peerTrackNode,
30
30
  onMoreOptionsPress,
31
+ zoomIn,
31
32
  insetMode = false
32
33
  } = _ref;
33
34
  const unmountAfterDelayRef = React.useRef(null);
@@ -45,7 +46,7 @@ const _PeerVideoTileView = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
45
46
  const show = () => {
46
47
  var _unmountAfterDelayRef;
47
48
  setMounted(true);
48
- (_unmountAfterDelayRef = unmountAfterDelayRef.current) === null || _unmountAfterDelayRef === void 0 ? void 0 : _unmountAfterDelayRef.resetTimer();
49
+ (_unmountAfterDelayRef = unmountAfterDelayRef.current) === null || _unmountAfterDelayRef === void 0 || _unmountAfterDelayRef.resetTimer();
49
50
  };
50
51
  const hide = () => {
51
52
  setMounted(false);
@@ -57,7 +58,7 @@ const _PeerVideoTileView = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
57
58
  if (insetMode) {
58
59
  show();
59
60
  }
60
- onMoreOptionsPress(peerTrackNode);
61
+ onMoreOptionsPress === null || onMoreOptionsPress === void 0 || onMoreOptionsPress(peerTrackNode);
61
62
  }, [peerTrackNode, onMoreOptionsPress, insetMode]);
62
63
  const {
63
64
  peer,
@@ -66,16 +67,36 @@ const _PeerVideoTileView = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
66
67
  } = peerTrackNode;
67
68
  const peerCanPublishAudio = (0, _hooksSdkSelectors.selectCanPublishTrackForRole)(peer.role, 'audio');
68
69
  const peerCanPublishVideo = (0, _hooksSdkSelectors.selectCanPublishTrackForRole)(peer.role, 'video');
69
- const iconWrapperStyles = (0, _hooksUtil.useHMSRoomStyle)(theme => ({
70
- backgroundColor: (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
70
+ const allowedToPublish = (0, _reactRedux.useSelector)(state => {
71
+ const allowed = (0, _hooksSdkSelectors.selectAllowedTracksToPublish)(state);
72
+ return (allowed && allowed.length > 0) ?? false;
73
+ });
74
+ const localPeerPermissions = (0, _reactRedux.useSelector)(state => {
75
+ var _state$hmsStates$loca;
76
+ const permissions = (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 || (_state$hmsStates$loca = _state$hmsStates$loca.role) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.permissions;
77
+ return permissions && (permissions.changeRole || permissions.mute || permissions.unmute || permissions.removeOthers);
78
+ });
79
+ const hmsRoomStyles = (0, _hooksUtil.useHMSRoomStyleSheet)(theme => ({
80
+ iconWrapperStyles: {
81
+ backgroundColor: theme.palette.background_dim && (0, _theme.hexToRgbA)(theme.palette.background_dim, 0.64)
82
+ },
83
+ avatarContainer: {
84
+ backgroundColor: theme.palette.surface_default
85
+ }
71
86
  }));
87
+ const trackSource = track === null || track === void 0 ? void 0 : track.source;
88
+ const screenShareTile = !!trackSource && trackSource === _reactNativeHms.HMSTrackSource.SCREEN;
89
+ const showingVideoTrack = peerCanPublishVideo && track && track.trackId && track.type === _reactNativeHms.HMSTrackType.VIDEO && track.isMute() === false;
72
90
  return /*#__PURE__*/React.createElement(_reactNative.View, {
73
91
  style: styles.container
74
92
  }, /*#__PURE__*/React.createElement(_AvatarView.AvatarView, {
75
93
  name: peer.name,
76
- videoView: peerCanPublishVideo && track && track.trackId && track.isMute() === false ? /*#__PURE__*/React.createElement(_VideoView.VideoView, {
94
+ avatarContainerStyles: insetMode ? hmsRoomStyles.avatarContainer : null,
95
+ isInset: insetMode,
96
+ videoView: showingVideoTrack ? /*#__PURE__*/React.createElement(_VideoView.VideoView, {
77
97
  ref: hmsViewRef,
78
98
  peer: peer,
99
+ zoomIn: zoomIn,
79
100
  trackId: track.trackId,
80
101
  isDegraded: isDegraded,
81
102
  overlay: insetMode,
@@ -83,34 +104,34 @@ const _PeerVideoTileView = /*#__PURE__*/React.forwardRef((_ref, hmsViewRef) => {
83
104
  }) : null
84
105
  }), /*#__PURE__*/React.createElement(_PeerMetadata.PeerMetadata, {
85
106
  metadata: peer.metadata
86
- }), peerCanPublishAudio ? /*#__PURE__*/React.createElement(_PeerAudioMutedIndicator.PeerAudioMutedIndicator, {
87
- isMuted: (_peer$audioTrack = peer.audioTrack) === null || _peer$audioTrack === void 0 ? void 0 : _peer$audioTrack.isMute()
107
+ }), screenShareTile && showingVideoTrack ? /*#__PURE__*/React.createElement(_HMSFullScreenButton.HMSFullScreenButton, {
108
+ peerTrackNode: peerTrackNode
109
+ }) : peerCanPublishAudio ? /*#__PURE__*/React.createElement(_PeerAudioIndicator.PeerAudioIndicator, {
110
+ isMuted: (_peer$audioTrack = peer.audioTrack) === null || _peer$audioTrack === void 0 ? void 0 : _peer$audioTrack.isMute(),
111
+ peer: peer
88
112
  }) : null, insetMode ? null : /*#__PURE__*/React.createElement(_PeerNameAndNetwork.PeerNameAndNetwork, {
89
113
  name: peer.name,
90
114
  isLocal: peer.isLocal,
91
- trackSource: track === null || track === void 0 ? void 0 : track.source,
115
+ trackSource: trackSource,
92
116
  networkQuality: (_peer$networkQuality = peer.networkQuality) === null || _peer$networkQuality === void 0 ? void 0 : _peer$networkQuality.downlinkQuality
93
117
  }), insetMode ? /*#__PURE__*/React.createElement(_reactNative.Pressable, {
94
118
  style: styles.pressable,
95
119
  onPress: handleTilePress
96
- }) : null, insetMode ? /*#__PURE__*/React.createElement(_UnmountAfterDelay.UnmountAfterDelay, {
120
+ }) : null, !onMoreOptionsPress || track && (track === null || track === void 0 ? void 0 : track.source) !== _reactNativeHms.HMSTrackSource.REGULAR ? null : insetMode ? /*#__PURE__*/React.createElement(_UnmountAfterDelay.UnmountAfterDelay, {
97
121
  ref: unmountAfterDelayRef,
98
122
  visible: mounted,
99
123
  onUnmount: hide
100
- }, /*#__PURE__*/React.createElement(_reactNativeReanimated.default.View, {
101
- entering: _reactNativeReanimated.FadeIn,
102
- exiting: _reactNativeReanimated.FadeOut
103
124
  }, /*#__PURE__*/React.createElement(_PressableIcon.PressableIcon, {
104
125
  activeOpacity: 0.7,
105
- style: [styles.iconWrapper, iconWrapperStyles],
126
+ style: [styles.iconWrapper, hmsRoomStyles.iconWrapperStyles],
106
127
  border: false,
107
128
  onPress: handleOptionsPress
108
129
  }, /*#__PURE__*/React.createElement(_Icons.ThreeDotsIcon, {
109
130
  stack: "vertical",
110
131
  style: styles.icon
111
- })))) : /*#__PURE__*/React.createElement(_PressableIcon.PressableIcon, {
132
+ }))) : !allowedToPublish || !localPeerPermissions ? null : /*#__PURE__*/React.createElement(_PressableIcon.PressableIcon, {
112
133
  activeOpacity: 0.7,
113
- style: [styles.iconWrapper, iconWrapperStyles],
134
+ style: [styles.iconWrapper, hmsRoomStyles.iconWrapperStyles],
114
135
  border: false,
115
136
  onPress: handleOptionsPress
116
137
  }, /*#__PURE__*/React.createElement(_Icons.ThreeDotsIcon, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeHms","_reactNativeReanimated","_reactRedux","_VideoView","_AvatarView","_PeerMetadata","_PeerAudioMutedIndicator","_PressableIcon","_Icons","_theme","_PeerNameAndNetwork","_UnmountAfterDelay","_functions","_hooksSdkSelectors","_hooksUtil","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_PeerVideoTileView","forwardRef","_ref","hmsViewRef","_peer$audioTrack","_peer$networkQuality","peerTrackNode","onMoreOptionsPress","insetMode","unmountAfterDelayRef","useRef","mounted","setMounted","useState","onSpotlight","useSelector","state","isTileOnSpotlight","user","spotlightTrackId","tileVideoTrack","track","peerRegularAudioTrack","peer","audioTrack","peerAuxTracks","auxiliaryTracks","show","_unmountAfterDelayRef","current","resetTimer","hide","handleTilePress","handleOptionsPress","useCallback","isDegraded","peerCanPublishAudio","selectCanPublishTrackForRole","role","peerCanPublishVideo","iconWrapperStyles","useHMSRoomStyle","theme","backgroundColor","hexToRgbA","palette","background_dim","createElement","View","style","styles","container","AvatarView","name","videoView","trackId","isMute","VideoView","ref","overlay","scaleType","source","HMSTrackSource","REGULAR","HMSVideoViewMode","ASPECT_FIT","ASPECT_FILL","PeerMetadata","metadata","PeerAudioMutedIndicator","isMuted","PeerNameAndNetwork","isLocal","trackSource","networkQuality","downlinkQuality","Pressable","pressable","onPress","UnmountAfterDelay","visible","onUnmount","entering","FadeIn","exiting","FadeOut","PressableIcon","activeOpacity","iconWrapper","border","ThreeDotsIcon","stack","icon","exports","StyleSheet","create","flex","position","bottom","right","padding","borderRadius","width","height","PeerVideoTileView","memo"],"sourceRoot":"../../../../src","sources":["components/PeerVideoTile/PeerVideoTileView.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAEA,IAAAG,sBAAA,GAAAJ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EAAE;EAChB,CAAC;EACDT,IAAI,EAAE;IACJU,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACV,CAAC;EACD1B,SAAS,EAAE;IACToB,QAAQ,EAAE,UAAU;IACpBK,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEK,MAAMC,iBAAiB,gBAAGjJ,KAAK,CAACkJ,IAAI,CAACzG,kBAAkB,CAAC;AAAC6F,OAAA,CAAAW,iBAAA,GAAAA,iBAAA"}
1
+ {"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeHms","_reactRedux","_VideoView","_AvatarView","_PeerMetadata","_PeerAudioIndicator","_PressableIcon","_Icons","_theme","_PeerNameAndNetwork","_UnmountAfterDelay","_functions","_hooksSdkSelectors","_hooksUtil","_HMSFullScreenButton","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_PeerVideoTileView","forwardRef","_ref","hmsViewRef","_peer$audioTrack","_peer$networkQuality","peerTrackNode","onMoreOptionsPress","zoomIn","insetMode","unmountAfterDelayRef","useRef","mounted","setMounted","useState","onSpotlight","useSelector","state","isTileOnSpotlight","user","spotlightTrackId","tileVideoTrack","track","peerRegularAudioTrack","peer","audioTrack","peerAuxTracks","auxiliaryTracks","show","_unmountAfterDelayRef","current","resetTimer","hide","handleTilePress","handleOptionsPress","useCallback","isDegraded","peerCanPublishAudio","selectCanPublishTrackForRole","role","peerCanPublishVideo","allowedToPublish","allowed","selectAllowedTracksToPublish","length","localPeerPermissions","_state$hmsStates$loca","permissions","hmsStates","localPeer","changeRole","mute","unmute","removeOthers","hmsRoomStyles","useHMSRoomStyleSheet","theme","iconWrapperStyles","backgroundColor","palette","background_dim","hexToRgbA","avatarContainer","surface_default","trackSource","source","screenShareTile","HMSTrackSource","SCREEN","showingVideoTrack","trackId","type","HMSTrackType","VIDEO","isMute","createElement","View","style","styles","container","AvatarView","name","avatarContainerStyles","isInset","videoView","VideoView","ref","overlay","scaleType","REGULAR","HMSVideoViewMode","ASPECT_FIT","ASPECT_FILL","PeerMetadata","metadata","HMSFullScreenButton","PeerAudioIndicator","isMuted","PeerNameAndNetwork","isLocal","networkQuality","downlinkQuality","Pressable","pressable","onPress","UnmountAfterDelay","visible","onUnmount","PressableIcon","activeOpacity","iconWrapper","border","ThreeDotsIcon","stack","icon","exports","StyleSheet","create","flex","position","bottom","right","padding","borderRadius","width","height","PeerVideoTileView","memo"],"sourceRoot":"../../../../src","sources":["components/PeerVideoTile/PeerVideoTileView.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAMA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AACA,IAAAW,mBAAA,GAAAX,OAAA;AACA,IAAAY,kBAAA,GAAAZ,OAAA;AAEA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,kBAAA,GAAAd,OAAA;AAIA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,oBAAA,GAAAhB,OAAA;AAA4D,SAAAiB,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAnB,wBAAAuB,GAAA,E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