@100mslive/react-native-room-kit 0.0.4 → 0.2.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 (816) hide show
  1. package/README.md +413 -11
  2. package/lib/commonjs/HMSInstanceSetup.js +2 -1
  3. package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
  4. package/lib/commonjs/HMSPrebuilt.js +4 -2
  5. package/lib/commonjs/HMSPrebuilt.js.map +1 -1
  6. package/lib/commonjs/HMSRoomSetup.js +39 -8
  7. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  8. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  9. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  10. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  11. package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
  12. package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
  13. package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
  14. package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
  15. package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
  16. package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
  17. package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
  18. package/lib/commonjs/Icons/BRB/index.js +35 -0
  19. package/lib/commonjs/Icons/BRB/index.js.map +1 -0
  20. package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
  21. package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
  22. package/lib/commonjs/Icons/Camera/index.js +5 -1
  23. package/lib/commonjs/Icons/Camera/index.js.map +1 -1
  24. package/lib/commonjs/Icons/Chat/index.js +5 -1
  25. package/lib/commonjs/Icons/Chat/index.js.map +1 -1
  26. package/lib/commonjs/Icons/Check/index.js +5 -1
  27. package/lib/commonjs/Icons/Check/index.js.map +1 -1
  28. package/lib/commonjs/Icons/Chevron/index.js +5 -1
  29. package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
  30. package/lib/commonjs/Icons/Close/index.js +5 -1
  31. package/lib/commonjs/Icons/Close/index.js.map +1 -1
  32. package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
  33. package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  34. package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  35. package/lib/commonjs/Icons/Hamburger/index.js +34 -0
  36. package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
  37. package/lib/commonjs/Icons/Hand/index.js +6 -4
  38. package/lib/commonjs/Icons/Hand/index.js.map +1 -1
  39. package/lib/commonjs/Icons/Headphones/index.js +5 -1
  40. package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
  41. package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
  42. package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
  43. package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
  44. package/lib/commonjs/Icons/Maximize/index.js +34 -0
  45. package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
  46. package/lib/commonjs/Icons/Mic/index.js +5 -1
  47. package/lib/commonjs/Icons/Mic/index.js.map +1 -1
  48. package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
  49. package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
  50. package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
  51. package/lib/commonjs/Icons/Minimize/index.js +34 -0
  52. package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
  53. package/lib/commonjs/Icons/Participants/index.js +5 -1
  54. package/lib/commonjs/Icons/Participants/index.js.map +1 -1
  55. package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
  56. package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
  57. package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
  58. package/lib/commonjs/Icons/Pencil/index.js +34 -0
  59. package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
  60. package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
  61. package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
  62. package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
  63. package/lib/commonjs/Icons/Pin/index.js +34 -0
  64. package/lib/commonjs/Icons/Pin/index.js.map +1 -0
  65. package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
  66. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  67. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  68. package/lib/commonjs/Icons/Radio/index.js +29 -1
  69. package/lib/commonjs/Icons/Radio/index.js.map +1 -1
  70. package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
  71. package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
  72. package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
  73. package/lib/commonjs/Icons/Recording/index.js +34 -0
  74. package/lib/commonjs/Icons/Recording/index.js.map +1 -0
  75. package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
  76. package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
  77. package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
  78. package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
  79. package/lib/commonjs/Icons/Speaker/index.js +5 -1
  80. package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
  81. package/lib/commonjs/Icons/Star/assets/star.png +0 -0
  82. package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
  83. package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
  84. package/lib/commonjs/Icons/Star/index.js +34 -0
  85. package/lib/commonjs/Icons/Star/index.js.map +1 -0
  86. package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
  87. package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
  88. package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
  89. package/lib/commonjs/Icons/Stop/index.js +34 -0
  90. package/lib/commonjs/Icons/Stop/index.js.map +1 -0
  91. package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
  92. package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
  93. package/lib/commonjs/Icons/Wave/index.js +5 -1
  94. package/lib/commonjs/Icons/Wave/index.js.map +1 -1
  95. package/lib/commonjs/Icons/index.js +110 -0
  96. package/lib/commonjs/Icons/index.js.map +1 -1
  97. package/lib/commonjs/components/AvatarView.js +1 -2
  98. package/lib/commonjs/components/AvatarView.js.map +1 -1
  99. package/lib/commonjs/components/BackButton.js +6 -4
  100. package/lib/commonjs/components/BackButton.js.map +1 -1
  101. package/lib/commonjs/components/BottomSheet.js +157 -0
  102. package/lib/commonjs/components/BottomSheet.js.map +1 -0
  103. package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
  104. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
  105. package/lib/commonjs/components/CompanyLogo.js +38 -0
  106. package/lib/commonjs/components/CompanyLogo.js.map +1 -0
  107. package/lib/commonjs/components/CustomInput.js +2 -3
  108. package/lib/commonjs/components/CustomInput.js.map +1 -1
  109. package/lib/commonjs/components/DisplayView.js +15 -54
  110. package/lib/commonjs/components/DisplayView.js.map +1 -1
  111. package/lib/commonjs/components/EndRoomModalContent.js +85 -0
  112. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
  113. package/lib/commonjs/components/Footer.js +17 -13
  114. package/lib/commonjs/components/Footer.js.map +1 -1
  115. package/lib/commonjs/components/GridView.js +53 -7
  116. package/lib/commonjs/components/GridView.js.map +1 -1
  117. package/lib/commonjs/components/HMSBaseButton.js +66 -0
  118. package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
  119. package/lib/commonjs/components/HMSDangerButton.js +53 -0
  120. package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
  121. package/lib/commonjs/components/HMSHLSNotStarted.js +27 -19
  122. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  123. package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
  124. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
  125. package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
  126. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  127. package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
  128. package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
  129. package/lib/commonjs/components/HMSManageLeave.js +101 -128
  130. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  131. package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
  132. package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
  133. package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
  134. package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
  135. package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
  136. package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
  137. package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
  138. package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
  139. package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
  140. package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
  141. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
  142. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  143. package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
  144. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  145. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
  146. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
  147. package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
  148. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  149. package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
  150. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  151. package/lib/commonjs/components/HMSPreviewTile.js +16 -8
  152. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  153. package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
  154. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  155. package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
  156. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
  157. package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
  158. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
  159. package/lib/commonjs/components/HMSRoomOptions.js +20 -7
  160. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  161. package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
  162. package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
  163. package/lib/commonjs/components/HMSTextInput.js +66 -0
  164. package/lib/commonjs/components/HMSTextInput.js.map +1 -0
  165. package/lib/commonjs/components/Header.js +30 -30
  166. package/lib/commonjs/components/Header.js.map +1 -1
  167. package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
  168. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
  169. package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
  170. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
  171. package/lib/commonjs/components/Meeting.js +8 -3
  172. package/lib/commonjs/components/Meeting.js.map +1 -1
  173. package/lib/commonjs/components/MeetingScreenContent.js +2 -1
  174. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  175. package/lib/commonjs/components/MiniView.js +163 -0
  176. package/lib/commonjs/components/MiniView.js.map +1 -0
  177. package/lib/commonjs/components/Modals.js +31 -116
  178. package/lib/commonjs/components/Modals.js.map +1 -1
  179. package/lib/commonjs/components/PaginationDots.js +56 -0
  180. package/lib/commonjs/components/PaginationDots.js.map +1 -0
  181. package/lib/commonjs/components/ParticipantsCount.js +55 -0
  182. package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
  183. package/lib/commonjs/components/PeerMinimizedView.js +114 -0
  184. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
  185. package/lib/commonjs/components/PeerSettingsModalContent.js +68 -51
  186. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  187. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
  188. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
  189. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
  190. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  191. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
  192. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  193. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
  194. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  195. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
  196. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  197. package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
  198. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
  199. package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
  200. package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
  201. package/lib/commonjs/components/PressableIcon.js +15 -8
  202. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  203. package/lib/commonjs/components/Preview.js +19 -6
  204. package/lib/commonjs/components/Preview.js.map +1 -1
  205. package/lib/commonjs/components/RoomSettingsModalContent.js +233 -362
  206. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  207. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
  208. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  209. package/lib/commonjs/components/StatusBar.js +7 -5
  210. package/lib/commonjs/components/StatusBar.js.map +1 -1
  211. package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
  212. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
  213. package/lib/commonjs/components/Tile.js +29 -90
  214. package/lib/commonjs/components/Tile.js.map +1 -1
  215. package/lib/commonjs/components/TilesContainer.js +99 -10
  216. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  217. package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
  218. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
  219. package/lib/commonjs/components/WebrtcView.js +51 -0
  220. package/lib/commonjs/components/WebrtcView.js.map +1 -0
  221. package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
  222. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
  223. package/lib/commonjs/hooks-sdk-selectors.js +6 -1
  224. package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
  225. package/lib/commonjs/hooks-sdk.js +16 -1
  226. package/lib/commonjs/hooks-sdk.js.map +1 -1
  227. package/lib/commonjs/hooks-util-selectors.js +8 -2
  228. package/lib/commonjs/hooks-util-selectors.js.map +1 -1
  229. package/lib/commonjs/hooks-util.js +315 -93
  230. package/lib/commonjs/hooks-util.js.map +1 -1
  231. package/lib/commonjs/modules/HMSManager.js +23 -0
  232. package/lib/commonjs/modules/HMSManager.js.map +1 -0
  233. package/lib/commonjs/modules/parser.js +22 -0
  234. package/lib/commonjs/modules/parser.js.map +1 -0
  235. package/lib/commonjs/peerTrackNodeUtils.js +8 -3
  236. package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
  237. package/lib/commonjs/redux/actionTypes.js +16 -1
  238. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  239. package/lib/commonjs/redux/actions/index.js +51 -1
  240. package/lib/commonjs/redux/actions/index.js.map +1 -1
  241. package/lib/commonjs/redux/reducers/appState.js +57 -1
  242. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  243. package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
  244. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  245. package/lib/commonjs/redux/reducers/userState.js +3 -1
  246. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  247. package/lib/commonjs/utils/functions.js +51 -1
  248. package/lib/commonjs/utils/functions.js.map +1 -1
  249. package/lib/commonjs/utils/theme.js +62 -8
  250. package/lib/commonjs/utils/theme.js.map +1 -1
  251. package/lib/commonjs/utils/types.js +8 -1
  252. package/lib/commonjs/utils/types.js.map +1 -1
  253. package/lib/module/HMSInstanceSetup.js +2 -1
  254. package/lib/module/HMSInstanceSetup.js.map +1 -1
  255. package/lib/module/HMSPrebuilt.js +4 -2
  256. package/lib/module/HMSPrebuilt.js.map +1 -1
  257. package/lib/module/HMSRoomSetup.js +41 -10
  258. package/lib/module/HMSRoomSetup.js.map +1 -1
  259. package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  260. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  261. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  262. package/lib/module/Icons/AlertTriangle/index.js +26 -0
  263. package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
  264. package/lib/module/Icons/AnswerPhone/index.js +5 -1
  265. package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
  266. package/lib/module/Icons/BRB/assets/BRB.png +0 -0
  267. package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
  268. package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
  269. package/lib/module/Icons/BRB/index.js +27 -0
  270. package/lib/module/Icons/BRB/index.js.map +1 -0
  271. package/lib/module/Icons/Bluetooth/index.js +5 -1
  272. package/lib/module/Icons/Bluetooth/index.js.map +1 -1
  273. package/lib/module/Icons/Camera/index.js +5 -1
  274. package/lib/module/Icons/Camera/index.js.map +1 -1
  275. package/lib/module/Icons/Chat/index.js +5 -1
  276. package/lib/module/Icons/Chat/index.js.map +1 -1
  277. package/lib/module/Icons/Check/index.js +5 -1
  278. package/lib/module/Icons/Check/index.js.map +1 -1
  279. package/lib/module/Icons/Chevron/index.js +5 -1
  280. package/lib/module/Icons/Chevron/index.js.map +1 -1
  281. package/lib/module/Icons/Close/index.js +5 -1
  282. package/lib/module/Icons/Close/index.js.map +1 -1
  283. package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
  284. package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  285. package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  286. package/lib/module/Icons/Hamburger/index.js +26 -0
  287. package/lib/module/Icons/Hamburger/index.js.map +1 -0
  288. package/lib/module/Icons/Hand/index.js +6 -4
  289. package/lib/module/Icons/Hand/index.js.map +1 -1
  290. package/lib/module/Icons/Headphones/index.js +5 -1
  291. package/lib/module/Icons/Headphones/index.js.map +1 -1
  292. package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
  293. package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
  294. package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
  295. package/lib/module/Icons/Maximize/index.js +26 -0
  296. package/lib/module/Icons/Maximize/index.js.map +1 -0
  297. package/lib/module/Icons/Mic/index.js +5 -1
  298. package/lib/module/Icons/Mic/index.js.map +1 -1
  299. package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
  300. package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
  301. package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
  302. package/lib/module/Icons/Minimize/index.js +26 -0
  303. package/lib/module/Icons/Minimize/index.js.map +1 -0
  304. package/lib/module/Icons/Participants/index.js +5 -1
  305. package/lib/module/Icons/Participants/index.js.map +1 -1
  306. package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
  307. package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
  308. package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
  309. package/lib/module/Icons/Pencil/index.js +26 -0
  310. package/lib/module/Icons/Pencil/index.js.map +1 -0
  311. package/lib/module/Icons/Pin/assets/pin.png +0 -0
  312. package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
  313. package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
  314. package/lib/module/Icons/Pin/index.js +26 -0
  315. package/lib/module/Icons/Pin/index.js.map +1 -0
  316. package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
  317. package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  318. package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  319. package/lib/module/Icons/Radio/index.js +30 -2
  320. package/lib/module/Icons/Radio/index.js.map +1 -1
  321. package/lib/module/Icons/Recording/assets/recording.png +0 -0
  322. package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
  323. package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
  324. package/lib/module/Icons/Recording/index.js +26 -0
  325. package/lib/module/Icons/Recording/index.js.map +1 -0
  326. package/lib/module/Icons/RotateCamera/index.js +5 -1
  327. package/lib/module/Icons/RotateCamera/index.js.map +1 -1
  328. package/lib/module/Icons/ScreenShare/index.js +5 -1
  329. package/lib/module/Icons/ScreenShare/index.js.map +1 -1
  330. package/lib/module/Icons/Speaker/index.js +5 -1
  331. package/lib/module/Icons/Speaker/index.js.map +1 -1
  332. package/lib/module/Icons/Star/assets/star.png +0 -0
  333. package/lib/module/Icons/Star/assets/star@2x.png +0 -0
  334. package/lib/module/Icons/Star/assets/star@3x.png +0 -0
  335. package/lib/module/Icons/Star/index.js +26 -0
  336. package/lib/module/Icons/Star/index.js.map +1 -0
  337. package/lib/module/Icons/Stop/assets/stop.png +0 -0
  338. package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
  339. package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
  340. package/lib/module/Icons/Stop/index.js +26 -0
  341. package/lib/module/Icons/Stop/index.js.map +1 -0
  342. package/lib/module/Icons/ThreeDots/index.js +5 -1
  343. package/lib/module/Icons/ThreeDots/index.js.map +1 -1
  344. package/lib/module/Icons/Wave/index.js +5 -1
  345. package/lib/module/Icons/Wave/index.js.map +1 -1
  346. package/lib/module/Icons/index.js +10 -0
  347. package/lib/module/Icons/index.js.map +1 -1
  348. package/lib/module/components/AvatarView.js +1 -2
  349. package/lib/module/components/AvatarView.js.map +1 -1
  350. package/lib/module/components/BackButton.js +6 -4
  351. package/lib/module/components/BackButton.js.map +1 -1
  352. package/lib/module/components/BottomSheet.js +146 -0
  353. package/lib/module/components/BottomSheet.js.map +1 -0
  354. package/lib/module/components/ChangeNameModalContent.js +122 -0
  355. package/lib/module/components/ChangeNameModalContent.js.map +1 -0
  356. package/lib/module/components/CompanyLogo.js +30 -0
  357. package/lib/module/components/CompanyLogo.js.map +1 -0
  358. package/lib/module/components/CustomInput.js +2 -3
  359. package/lib/module/components/CustomInput.js.map +1 -1
  360. package/lib/module/components/DisplayView.js +19 -57
  361. package/lib/module/components/DisplayView.js.map +1 -1
  362. package/lib/module/components/EndRoomModalContent.js +76 -0
  363. package/lib/module/components/EndRoomModalContent.js.map +1 -0
  364. package/lib/module/components/Footer.js +19 -15
  365. package/lib/module/components/Footer.js.map +1 -1
  366. package/lib/module/components/GridView.js +55 -10
  367. package/lib/module/components/GridView.js.map +1 -1
  368. package/lib/module/components/HMSBaseButton.js +57 -0
  369. package/lib/module/components/HMSBaseButton.js.map +1 -0
  370. package/lib/module/components/HMSDangerButton.js +44 -0
  371. package/lib/module/components/HMSDangerButton.js.map +1 -0
  372. package/lib/module/components/HMSHLSNotStarted.js +29 -21
  373. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  374. package/lib/module/components/HMSHLSStreamLoading.js +17 -8
  375. package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
  376. package/lib/module/components/HMSManageAudioOutput.js +42 -77
  377. package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
  378. package/lib/module/components/HMSManageCameraRotation.js +5 -4
  379. package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
  380. package/lib/module/components/HMSManageLeave.js +104 -129
  381. package/lib/module/components/HMSManageLeave.js.map +1 -1
  382. package/lib/module/components/HMSManageLocalAudio.js +1 -9
  383. package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
  384. package/lib/module/components/HMSManageLocalVideo.js +1 -9
  385. package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
  386. package/lib/module/components/HMSManageRaiseHand.js +2 -15
  387. package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
  388. package/lib/module/components/HMSMeetingEnded.js +1 -2
  389. package/lib/module/components/HMSMeetingEnded.js.map +1 -1
  390. package/lib/module/components/HMSPreviewEditName.js +3 -37
  391. package/lib/module/components/HMSPreviewEditName.js.map +1 -1
  392. package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
  393. package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  394. package/lib/module/components/HMSPreviewJoinButton.js +26 -49
  395. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  396. package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
  397. package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
  398. package/lib/module/components/HMSPreviewPeersList.js +21 -10
  399. package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
  400. package/lib/module/components/HMSPreviewSubtitle.js +22 -9
  401. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  402. package/lib/module/components/HMSPreviewTile.js +16 -8
  403. package/lib/module/components/HMSPreviewTile.js.map +1 -1
  404. package/lib/module/components/HMSPreviewTitle.js +14 -6
  405. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  406. package/lib/module/components/HMSPrimaryButton.js +44 -0
  407. package/lib/module/components/HMSPrimaryButton.js.map +1 -0
  408. package/lib/module/components/HMSRecordingIndicator.js +37 -0
  409. package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
  410. package/lib/module/components/HMSRoomOptions.js +21 -8
  411. package/lib/module/components/HMSRoomOptions.js.map +1 -1
  412. package/lib/module/components/HMSShowNetworkQuality.js +6 -5
  413. package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
  414. package/lib/module/components/HMSTextInput.js +57 -0
  415. package/lib/module/components/HMSTextInput.js.map +1 -0
  416. package/lib/module/components/Header.js +32 -32
  417. package/lib/module/components/Header.js.map +1 -1
  418. package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
  419. package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
  420. package/lib/module/components/LocalPeerScreenshareView.js +66 -0
  421. package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
  422. package/lib/module/components/Meeting.js +9 -4
  423. package/lib/module/components/Meeting.js.map +1 -1
  424. package/lib/module/components/MeetingScreenContent.js +2 -1
  425. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  426. package/lib/module/components/MiniView.js +154 -0
  427. package/lib/module/components/MiniView.js.map +1 -0
  428. package/lib/module/components/Modals.js +31 -114
  429. package/lib/module/components/Modals.js.map +1 -1
  430. package/lib/module/components/PaginationDots.js +47 -0
  431. package/lib/module/components/PaginationDots.js.map +1 -0
  432. package/lib/module/components/ParticipantsCount.js +46 -0
  433. package/lib/module/components/ParticipantsCount.js.map +1 -0
  434. package/lib/module/components/PeerMinimizedView.js +104 -0
  435. package/lib/module/components/PeerMinimizedView.js.map +1 -0
  436. package/lib/module/components/PeerSettingsModalContent.js +71 -54
  437. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  438. package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
  439. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
  440. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
  441. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  442. package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
  443. package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  444. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
  445. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  446. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
  447. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  448. package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
  449. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
  450. package/lib/module/components/PeerVideoTile/index.js +2 -0
  451. package/lib/module/components/PeerVideoTile/index.js.map +1 -0
  452. package/lib/module/components/PressableIcon.js +15 -8
  453. package/lib/module/components/PressableIcon.js.map +1 -1
  454. package/lib/module/components/Preview.js +19 -6
  455. package/lib/module/components/Preview.js.map +1 -1
  456. package/lib/module/components/RoomSettingsModalContent.js +234 -364
  457. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  458. package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
  459. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  460. package/lib/module/components/StatusBar.js +7 -5
  461. package/lib/module/components/StatusBar.js.map +1 -1
  462. package/lib/module/components/StopRecordingModalContent.js +88 -0
  463. package/lib/module/components/StopRecordingModalContent.js.map +1 -0
  464. package/lib/module/components/Tile.js +30 -91
  465. package/lib/module/components/Tile.js.map +1 -1
  466. package/lib/module/components/TilesContainer.js +100 -10
  467. package/lib/module/components/TilesContainer.js.map +1 -1
  468. package/lib/module/components/UnmountAfterDelay.js +39 -0
  469. package/lib/module/components/UnmountAfterDelay.js.map +1 -0
  470. package/lib/module/components/WebrtcView.js +41 -0
  471. package/lib/module/components/WebrtcView.js.map +1 -0
  472. package/lib/module/components/WelcomeInMeeting.js +45 -0
  473. package/lib/module/components/WelcomeInMeeting.js.map +1 -0
  474. package/lib/module/hooks-sdk-selectors.js +4 -0
  475. package/lib/module/hooks-sdk-selectors.js.map +1 -1
  476. package/lib/module/hooks-sdk.js +16 -1
  477. package/lib/module/hooks-sdk.js.map +1 -1
  478. package/lib/module/hooks-util-selectors.js +8 -2
  479. package/lib/module/hooks-util-selectors.js.map +1 -1
  480. package/lib/module/hooks-util.js +310 -96
  481. package/lib/module/hooks-util.js.map +1 -1
  482. package/lib/module/modules/HMSManager.js +17 -0
  483. package/lib/module/modules/HMSManager.js.map +1 -0
  484. package/lib/module/modules/parser.js +16 -0
  485. package/lib/module/modules/parser.js.map +1 -0
  486. package/lib/module/peerTrackNodeUtils.js +6 -2
  487. package/lib/module/peerTrackNodeUtils.js.map +1 -1
  488. package/lib/module/redux/actionTypes.js +16 -1
  489. package/lib/module/redux/actionTypes.js.map +1 -1
  490. package/lib/module/redux/actions/index.js +42 -0
  491. package/lib/module/redux/actions/index.js.map +1 -1
  492. package/lib/module/redux/reducers/appState.js +57 -1
  493. package/lib/module/redux/reducers/appState.js.map +1 -1
  494. package/lib/module/redux/reducers/hmsStates.js +7 -1
  495. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  496. package/lib/module/redux/reducers/userState.js +3 -1
  497. package/lib/module/redux/reducers/userState.js.map +1 -1
  498. package/lib/module/utils/functions.js +47 -0
  499. package/lib/module/utils/functions.js.map +1 -1
  500. package/lib/module/utils/theme.js +57 -5
  501. package/lib/module/utils/theme.js.map +1 -1
  502. package/lib/module/utils/types.js +6 -0
  503. package/lib/module/utils/types.js.map +1 -1
  504. package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
  505. package/lib/typescript/HMSPrebuilt.d.ts +1 -0
  506. package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
  507. package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
  508. package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
  509. package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
  510. package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
  511. package/lib/typescript/Icons/BRB/index.d.ts +7 -0
  512. package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
  513. package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
  514. package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
  515. package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
  516. package/lib/typescript/Icons/Check/index.d.ts.map +1 -1
  517. package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
  518. package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
  519. package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
  520. package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
  521. package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
  522. package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
  523. package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
  524. package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
  525. package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
  526. package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
  527. package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
  528. package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
  529. package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
  530. package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
  531. package/lib/typescript/Icons/Pin/index.d.ts +7 -0
  532. package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
  533. package/lib/typescript/Icons/Radio/index.d.ts +7 -3
  534. package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
  535. package/lib/typescript/Icons/Recording/index.d.ts +7 -0
  536. package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
  537. package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
  538. package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
  539. package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
  540. package/lib/typescript/Icons/Star/index.d.ts +7 -0
  541. package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
  542. package/lib/typescript/Icons/Stop/index.d.ts +7 -0
  543. package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
  544. package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
  545. package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
  546. package/lib/typescript/Icons/index.d.ts +10 -0
  547. package/lib/typescript/Icons/index.d.ts.map +1 -1
  548. package/lib/typescript/components/BackButton.d.ts.map +1 -1
  549. package/lib/typescript/components/BottomSheet.d.ts +25 -0
  550. package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
  551. package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
  552. package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
  553. package/lib/typescript/components/CompanyLogo.d.ts +7 -0
  554. package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
  555. package/lib/typescript/components/CustomInput.d.ts +1 -1
  556. package/lib/typescript/components/CustomInput.d.ts.map +1 -1
  557. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  558. package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
  559. package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
  560. package/lib/typescript/components/Footer.d.ts.map +1 -1
  561. package/lib/typescript/components/GridView.d.ts +3 -4
  562. package/lib/typescript/components/GridView.d.ts.map +1 -1
  563. package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
  564. package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
  565. package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
  566. package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
  567. package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
  568. package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
  569. package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
  570. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  571. package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
  572. package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
  573. package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
  574. package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
  575. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
  576. package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
  577. package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
  578. package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
  579. package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
  580. package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
  581. package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
  582. package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
  583. package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
  584. package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
  585. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
  586. package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
  587. package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
  588. package/lib/typescript/components/HMSTextInput.d.ts +10 -0
  589. package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
  590. package/lib/typescript/components/Header.d.ts.map +1 -1
  591. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
  592. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
  593. package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
  594. package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
  595. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  596. package/lib/typescript/components/MiniView.d.ts +9 -0
  597. package/lib/typescript/components/MiniView.d.ts.map +1 -0
  598. package/lib/typescript/components/Modals.d.ts +0 -7
  599. package/lib/typescript/components/Modals.d.ts.map +1 -1
  600. package/lib/typescript/components/PaginationDots.d.ts +6 -0
  601. package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
  602. package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
  603. package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
  604. package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
  605. package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
  606. package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
  607. package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
  608. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
  609. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
  610. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
  611. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
  612. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
  613. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
  614. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
  615. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
  616. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
  617. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
  618. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
  619. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
  620. package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
  621. package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
  622. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  623. package/lib/typescript/components/Preview.d.ts.map +1 -1
  624. package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
  625. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  626. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
  627. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
  628. package/lib/typescript/components/StatusBar.d.ts +2 -1
  629. package/lib/typescript/components/StatusBar.d.ts.map +1 -1
  630. package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
  631. package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
  632. package/lib/typescript/components/Tile.d.ts +12 -3
  633. package/lib/typescript/components/Tile.d.ts.map +1 -1
  634. package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
  635. package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
  636. package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
  637. package/lib/typescript/components/WebrtcView.d.ts +10 -0
  638. package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
  639. package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
  640. package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
  641. package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
  642. package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
  643. package/lib/typescript/hooks-sdk.d.ts +1 -0
  644. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  645. package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
  646. package/lib/typescript/hooks-util.d.ts +15 -2
  647. package/lib/typescript/hooks-util.d.ts.map +1 -1
  648. package/lib/typescript/modules/HMSManager.d.ts +4 -0
  649. package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
  650. package/lib/typescript/modules/parser.d.ts +3 -0
  651. package/lib/typescript/modules/parser.d.ts.map +1 -0
  652. package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
  653. package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
  654. package/lib/typescript/redux/actionTypes.d.ts +9 -1
  655. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  656. package/lib/typescript/redux/actions/index.d.ts +45 -0
  657. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  658. package/lib/typescript/redux/index.d.ts +7 -0
  659. package/lib/typescript/redux/index.d.ts.map +1 -1
  660. package/lib/typescript/redux/reducers/appState.d.ts +5 -0
  661. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  662. package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
  663. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  664. package/lib/typescript/redux/reducers/index.d.ts +7 -0
  665. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  666. package/lib/typescript/redux/reducers/userState.d.ts +1 -0
  667. package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
  668. package/lib/typescript/utils/functions.d.ts +14 -0
  669. package/lib/typescript/utils/functions.d.ts.map +1 -1
  670. package/lib/typescript/utils/theme.d.ts +6 -3
  671. package/lib/typescript/utils/theme.d.ts.map +1 -1
  672. package/lib/typescript/utils/types.d.ts +5 -0
  673. package/lib/typescript/utils/types.d.ts.map +1 -1
  674. package/package.json +4 -2
  675. package/src/HMSInstanceSetup.tsx +1 -0
  676. package/src/HMSPrebuilt.tsx +3 -2
  677. package/src/HMSRoomSetup.tsx +45 -8
  678. package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  679. package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  680. package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  681. package/src/Icons/AlertTriangle/index.tsx +33 -0
  682. package/src/Icons/AnswerPhone/index.tsx +7 -1
  683. package/src/Icons/BRB/assets/BRB.png +0 -0
  684. package/src/Icons/BRB/assets/BRB@2x.png +0 -0
  685. package/src/Icons/BRB/assets/BRB@3x.png +0 -0
  686. package/src/Icons/BRB/index.tsx +31 -0
  687. package/src/Icons/Bluetooth/index.tsx +7 -1
  688. package/src/Icons/Camera/index.tsx +7 -1
  689. package/src/Icons/Chat/index.tsx +7 -1
  690. package/src/Icons/Check/index.tsx +7 -1
  691. package/src/Icons/Chevron/index.tsx +7 -1
  692. package/src/Icons/Close/index.tsx +7 -1
  693. package/src/Icons/Hamburger/assets/hamburger.png +0 -0
  694. package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  695. package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  696. package/src/Icons/Hamburger/index.tsx +33 -0
  697. package/src/Icons/Hand/index.tsx +6 -3
  698. package/src/Icons/Headphones/index.tsx +7 -1
  699. package/src/Icons/Maximize/assets/maximize.png +0 -0
  700. package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
  701. package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
  702. package/src/Icons/Maximize/index.tsx +33 -0
  703. package/src/Icons/Mic/index.tsx +7 -1
  704. package/src/Icons/Minimize/assets/minimize.png +0 -0
  705. package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
  706. package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
  707. package/src/Icons/Minimize/index.tsx +33 -0
  708. package/src/Icons/Participants/index.tsx +7 -1
  709. package/src/Icons/Pencil/assets/pencil.png +0 -0
  710. package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
  711. package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
  712. package/src/Icons/Pencil/index.tsx +33 -0
  713. package/src/Icons/Pin/assets/pin.png +0 -0
  714. package/src/Icons/Pin/assets/pin@2x.png +0 -0
  715. package/src/Icons/Pin/assets/pin@3x.png +0 -0
  716. package/src/Icons/Pin/index.tsx +30 -0
  717. package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
  718. package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  719. package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  720. package/src/Icons/Radio/index.tsx +53 -4
  721. package/src/Icons/Recording/assets/recording.png +0 -0
  722. package/src/Icons/Recording/assets/recording@2x.png +0 -0
  723. package/src/Icons/Recording/assets/recording@3x.png +0 -0
  724. package/src/Icons/Recording/index.tsx +33 -0
  725. package/src/Icons/RotateCamera/index.tsx +7 -1
  726. package/src/Icons/ScreenShare/index.tsx +7 -1
  727. package/src/Icons/Speaker/index.tsx +12 -1
  728. package/src/Icons/Star/assets/star.png +0 -0
  729. package/src/Icons/Star/assets/star@2x.png +0 -0
  730. package/src/Icons/Star/assets/star@3x.png +0 -0
  731. package/src/Icons/Star/index.tsx +30 -0
  732. package/src/Icons/Stop/assets/stop.png +0 -0
  733. package/src/Icons/Stop/assets/stop@2x.png +0 -0
  734. package/src/Icons/Stop/assets/stop@3x.png +0 -0
  735. package/src/Icons/Stop/index.tsx +30 -0
  736. package/src/Icons/ThreeDots/index.tsx +7 -1
  737. package/src/Icons/Wave/index.tsx +7 -1
  738. package/src/Icons/index.ts +10 -0
  739. package/src/components/AvatarView.tsx +1 -2
  740. package/src/components/BackButton.tsx +6 -3
  741. package/src/components/BottomSheet.tsx +191 -0
  742. package/src/components/ChangeNameModalContent.tsx +157 -0
  743. package/src/components/CompanyLogo.tsx +35 -0
  744. package/src/components/CustomInput.tsx +2 -3
  745. package/src/components/DisplayView.tsx +17 -67
  746. package/src/components/EndRoomModalContent.tsx +90 -0
  747. package/src/components/Footer.tsx +38 -33
  748. package/src/components/GridView.tsx +91 -20
  749. package/src/components/HMSBaseButton.tsx +91 -0
  750. package/src/components/HMSDangerButton.tsx +65 -0
  751. package/src/components/HMSHLSNotStarted.tsx +26 -20
  752. package/src/components/HMSHLSStreamLoading.tsx +18 -7
  753. package/src/components/HMSManageAudioOutput.tsx +59 -90
  754. package/src/components/HMSManageCameraRotation.tsx +11 -8
  755. package/src/components/HMSManageLeave.tsx +115 -126
  756. package/src/components/HMSManageLocalAudio.tsx +1 -10
  757. package/src/components/HMSManageLocalVideo.tsx +1 -10
  758. package/src/components/HMSManageRaiseHand.tsx +2 -16
  759. package/src/components/HMSMeetingEnded.tsx +1 -2
  760. package/src/components/HMSPreviewEditName.tsx +2 -44
  761. package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
  762. package/src/components/HMSPreviewJoinButton.tsx +33 -71
  763. package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
  764. package/src/components/HMSPreviewPeersList.tsx +23 -13
  765. package/src/components/HMSPreviewSubtitle.tsx +27 -11
  766. package/src/components/HMSPreviewTile.tsx +19 -8
  767. package/src/components/HMSPreviewTitle.tsx +18 -5
  768. package/src/components/HMSPrimaryButton.tsx +63 -0
  769. package/src/components/HMSRecordingIndicator.tsx +39 -0
  770. package/src/components/HMSRoomOptions.tsx +28 -8
  771. package/src/components/HMSShowNetworkQuality.tsx +7 -5
  772. package/src/components/HMSTextInput.tsx +78 -0
  773. package/src/components/Header.tsx +37 -36
  774. package/src/components/LocalPeerRegularVideoView.tsx +28 -0
  775. package/src/components/LocalPeerScreenshareView.tsx +72 -0
  776. package/src/components/Meeting.tsx +10 -3
  777. package/src/components/MeetingScreenContent.tsx +1 -1
  778. package/src/components/MiniView.tsx +213 -0
  779. package/src/components/Modals.tsx +1 -110
  780. package/src/components/PaginationDots.tsx +65 -0
  781. package/src/components/ParticipantsCount.tsx +52 -0
  782. package/src/components/PeerMinimizedView.tsx +131 -0
  783. package/src/components/PeerSettingsModalContent.tsx +110 -54
  784. package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
  785. package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
  786. package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
  787. package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
  788. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
  789. package/src/components/PeerVideoTile/VideoView.tsx +104 -0
  790. package/src/components/PeerVideoTile/index.ts +0 -0
  791. package/src/components/PressableIcon.tsx +15 -8
  792. package/src/components/Preview.tsx +24 -6
  793. package/src/components/RoomSettingsModalContent.tsx +237 -524
  794. package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
  795. package/src/components/StatusBar.tsx +6 -4
  796. package/src/components/StopRecordingModalContent.tsx +111 -0
  797. package/src/components/Tile.tsx +49 -90
  798. package/src/components/TilesContainer.tsx +116 -14
  799. package/src/components/UnmountAfterDelay.tsx +61 -0
  800. package/src/components/WebrtcView.tsx +72 -0
  801. package/src/components/WelcomeInMeeting.tsx +52 -0
  802. package/src/hooks-sdk-selectors.tsx +7 -0
  803. package/src/hooks-sdk.ts +18 -0
  804. package/src/hooks-util-selectors.tsx +12 -1
  805. package/src/hooks-util.ts +420 -114
  806. package/src/modules/HMSManager.ts +25 -0
  807. package/src/modules/parser.ts +22 -0
  808. package/src/peerTrackNodeUtils.tsx +13 -10
  809. package/src/redux/actionTypes.ts +22 -0
  810. package/src/redux/actions/index.ts +53 -0
  811. package/src/redux/reducers/appState.ts +59 -0
  812. package/src/redux/reducers/hmsStates.ts +15 -1
  813. package/src/redux/reducers/userState.ts +3 -0
  814. package/src/utils/functions.ts +48 -0
  815. package/src/utils/theme.ts +74 -5
  816. package/src/utils/types.ts +6 -0
@@ -1,104 +1,43 @@
1
1
  import React from 'react';
2
- import { View, Text, TouchableOpacity } from 'react-native';
2
+ import { useSelector } from 'react-redux';
3
+ import { View } from 'react-native';
3
4
  import { HMSTrackSource } from '@100mslive/react-native-hms';
4
- import Feather from 'react-native-vector-icons/Feather';
5
- import Ionicons from 'react-native-vector-icons/Ionicons';
6
- import { styles } from './styles';
7
- import { parseMetadata } from '../utils/functions';
8
- import { DisplayTrack } from './DisplayTrack';
9
- import { COLORS } from '../utils/theme';
10
- import { useIsPortraitOrientation } from '../utils/dimension';
11
- const TileUnmemoized = _ref => {
12
- var _peerTrackNode$peer, _peerTrackNode$track, _peerTrackNode$track2, _peerTrackNode$peer2, _peerTrackNode$peer3;
5
+ import PeerRTCStatsContainer from './PeerRTCStatsContainer';
6
+ import { LocalPeerScreenshareView } from './LocalPeerScreenshareView';
7
+ import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
8
+ const _Tile = _ref => {
9
+ var _peerTrackNode$track, _peerTrackNode$track2, _peerTrackNode$track3;
13
10
  let {
11
+ aspectRatio,
12
+ width,
13
+ height,
14
14
  onPeerTileMorePress,
15
15
  peerTrackNode,
16
- totalTilesInContainer,
17
- setHmsViewRefs
16
+ setHmsViewRefs,
17
+ style
18
18
  } = _ref;
19
- const isPortraitOrientation = useIsPortraitOrientation();
20
- const parsedMetadata = parseMetadata(peerTrackNode === null || peerTrackNode === void 0 || (_peerTrackNode$peer = peerTrackNode.peer) === null || _peerTrackNode$peer === void 0 ? void 0 : _peerTrackNode$peer.metadata);
21
- const oneTileStyle = {
22
- width: '100%',
23
- height: '100%'
24
- };
25
- const twoTileStyle = {
26
- width: '100%',
27
- height: '50%'
28
- };
29
- const threeTileStyle = {
30
- width: '100%',
31
- height: '33.3333%'
32
- };
33
- const fourTileStyle = {
34
- width: '50%',
35
- height: '50%'
36
- };
37
- const oneTileStyleLandscape = {
38
- width: '100%',
39
- height: '100%'
40
- };
41
- const twoTileStyleLandscape = {
42
- width: '50%',
43
- height: '100%'
44
- };
45
- const threeTileStyleLandscape = {
46
- width: '33.3333%',
47
- height: '100%'
48
- };
49
- const fourTileStyleLandscape = {
50
- width: '50%',
51
- height: '50%'
52
- };
19
+ const showStatsOnTiles = useSelector(state => state.app.joinConfig.showStats);
20
+ const trackSource = (_peerTrackNode$track = peerTrackNode.track) === null || _peerTrackNode$track === void 0 ? void 0 : _peerTrackNode$track.source;
21
+ const isNonRegularTrack = trackSource && trackSource !== HMSTrackSource.REGULAR;
53
22
  return /*#__PURE__*/React.createElement(View, {
54
23
  style: [{
55
- borderWidth: 1
56
- }, (peerTrackNode === null || peerTrackNode === void 0 || (_peerTrackNode$track = peerTrackNode.track) === null || _peerTrackNode$track === void 0 ? void 0 : _peerTrackNode$track.source) !== undefined && (peerTrackNode === null || peerTrackNode === void 0 || (_peerTrackNode$track2 = peerTrackNode.track) === null || _peerTrackNode$track2 === void 0 ? void 0 : _peerTrackNode$track2.source) !== HMSTrackSource.REGULAR ? styles.gridTile : isPortraitOrientation ? totalTilesInContainer === 1 ? oneTileStyle : totalTilesInContainer === 2 ? twoTileStyle : totalTilesInContainer === 3 ? threeTileStyle : fourTileStyle : totalTilesInContainer === 1 ? oneTileStyleLandscape : totalTilesInContainer === 2 ? twoTileStyleLandscape : totalTilesInContainer === 3 ? threeTileStyleLandscape : fourTileStyleLandscape]
57
- }, /*#__PURE__*/React.createElement(DisplayTrack
58
- // saving HmsView ref in collection with uniqueId as key
59
- , {
24
+ position: 'relative'
25
+ }, {
26
+ width,
27
+ height,
28
+ aspectRatio
29
+ }, style]
30
+ }, isNonRegularTrack && peerTrackNode.peer.isLocal ? /*#__PURE__*/React.createElement(LocalPeerScreenshareView, null) : /*#__PURE__*/React.createElement(PeerVideoTileView, {
60
31
  ref: ref => setHmsViewRefs(peerTrackNode.id, ref),
61
- isLocal: peerTrackNode === null || peerTrackNode === void 0 || (_peerTrackNode$peer2 = peerTrackNode.peer) === null || _peerTrackNode$peer2 === void 0 ? void 0 : _peerTrackNode$peer2.isLocal,
62
- peer: peerTrackNode === null || peerTrackNode === void 0 ? void 0 : peerTrackNode.peer,
63
- videoTrack: peerTrackNode === null || peerTrackNode === void 0 ? void 0 : peerTrackNode.track,
64
- videoStyles: styles.generalTile,
65
- isDegraded: peerTrackNode === null || peerTrackNode === void 0 ? void 0 : peerTrackNode.isDegraded
66
- }), /*#__PURE__*/React.createElement(View, {
67
- style: styles.morePeerOptionsContainer
68
- }, /*#__PURE__*/React.createElement(TouchableOpacity, {
69
- onPress: () => onPeerTileMorePress(peerTrackNode),
70
- style: {
71
- padding: 8,
72
- backgroundColor: COLORS.SECONDARY.DISABLED,
73
- borderRadius: 18
74
- }
75
- }, /*#__PURE__*/React.createElement(Feather, {
76
- name: "more-horizontal",
77
- style: styles.mic,
78
- size: 20
79
- }))), (peerTrackNode === null || peerTrackNode === void 0 || (_peerTrackNode$peer3 = peerTrackNode.peer) === null || _peerTrackNode$peer3 === void 0 || (_peerTrackNode$peer3 = _peerTrackNode$peer3.audioTrack) === null || _peerTrackNode$peer3 === void 0 ? void 0 : _peerTrackNode$peer3.isMute()) && /*#__PURE__*/React.createElement(View, {
80
- style: styles.micContainer
81
- }, /*#__PURE__*/React.createElement(Feather, {
82
- name: "mic-off",
83
- style: styles.mic,
84
- size: 20
85
- })), parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isBRBOn ? /*#__PURE__*/React.createElement(View, {
86
- style: styles.status
87
- }, /*#__PURE__*/React.createElement(View, {
88
- style: styles.brbOnContainer
89
- }, /*#__PURE__*/React.createElement(Text, {
90
- style: styles.brbOn
91
- }, "BRB"))) : null, parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isHandRaised ? /*#__PURE__*/React.createElement(View, {
92
- style: styles.status
93
- }, /*#__PURE__*/React.createElement(Ionicons, {
94
- name: "hand-left",
95
- style: {
96
- color: COLORS.TWIN.YELLOW
97
- },
98
- size: 20
99
- })) : null);
32
+ peerTrackNode: peerTrackNode,
33
+ onMoreOptionsPress: onPeerTileMorePress
34
+ }), showStatsOnTiles ? /*#__PURE__*/React.createElement(PeerRTCStatsContainer, {
35
+ trackId: (_peerTrackNode$track2 = peerTrackNode.track) === null || _peerTrackNode$track2 === void 0 ? void 0 : _peerTrackNode$track2.trackId,
36
+ peerId: peerTrackNode.peer.peerID,
37
+ trackSource: (_peerTrackNode$track3 = peerTrackNode.track) === null || _peerTrackNode$track3 === void 0 ? void 0 : _peerTrackNode$track3.source
38
+ }) : null);
100
39
  };
101
- const Tile = /*#__PURE__*/React.memo(TileUnmemoized);
40
+ const Tile = /*#__PURE__*/React.memo(_Tile);
102
41
  Tile.displayName = 'Tile';
103
42
  export { Tile };
104
43
  //# sourceMappingURL=Tile.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Text","TouchableOpacity","HMSTrackSource","Feather","Ionicons","styles","parseMetadata","DisplayTrack","COLORS","useIsPortraitOrientation","TileUnmemoized","_ref","_peerTrackNode$peer","_peerTrackNode$track","_peerTrackNode$track2","_peerTrackNode$peer2","_peerTrackNode$peer3","onPeerTileMorePress","peerTrackNode","totalTilesInContainer","setHmsViewRefs","isPortraitOrientation","parsedMetadata","peer","metadata","oneTileStyle","width","height","twoTileStyle","threeTileStyle","fourTileStyle","oneTileStyleLandscape","twoTileStyleLandscape","threeTileStyleLandscape","fourTileStyleLandscape","createElement","style","borderWidth","track","source","undefined","REGULAR","gridTile","ref","id","isLocal","videoTrack","videoStyles","generalTile","isDegraded","morePeerOptionsContainer","onPress","padding","backgroundColor","SECONDARY","DISABLED","borderRadius","name","mic","size","audioTrack","isMute","micContainer","isBRBOn","status","brbOnContainer","brbOn","isHandRaised","color","TWIN","YELLOW","Tile","memo","displayName"],"sourceRoot":"../../../src","sources":["components/Tile.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAOC,OAAO,MAAM,mCAAmC;AACvD,OAAOC,QAAQ,MAAM,oCAAoC;AAGzD,SAASC,MAAM,QAAQ,UAAU;AAEjC,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,MAAM,QAAQ,gBAAgB;AAEvC,SAASC,wBAAwB,QAAQ,oBAAoB;AAS7D,MAAMC,cAAmC,GAAGC,IAAA,IAKtC;EAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,qBAAA,EAAAC,oBAAA,EAAAC,oBAAA;EAAA,IALuC;IAC3CC,mBAAmB;IACnBC,aAAa;IACbC,qBAAqB;IACrBC;EACF,CAAC,GAAAT,IAAA;EACC,MAAMU,qBAAqB,GAAGZ,wBAAwB,CAAC,CAAC;EACxD,MAAMa,cAAc,GAAGhB,aAAa,CAACY,aAAa,aAAbA,aAAa,gBAAAN,mBAAA,GAAbM,aAAa,CAAEK,IAAI,cAAAX,mBAAA,uBAAnBA,mBAAA,CAAqBY,QAAQ,CAAC;EAEnE,MAAMC,YAAY,GAAG;IAAEC,KAAK,EAAE,MAAM;IAAEC,MAAM,EAAE;EAAO,CAAC;EACtD,MAAMC,YAAY,GAAG;IAAEF,KAAK,EAAE,MAAM;IAAEC,MAAM,EAAE;EAAM,CAAC;EACrD,MAAME,cAAc,GAAG;IAAEH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AACqC,KAAK,EAAE/B,MAAM,CAACyD;EAAa,gBAC/BhE,KAAA,CAAAqC,aAAA,CAAChC,OAAO;IAACsD,IAAI,EAAC,SAAS;IAACrB,KAAK,EAAE/B,MAAM,CAACqD,GAAI;IAACC,IAAI,EAAE;EAAG,CAAE,CAClD,CACP,EACArC,cAAc,aAAdA,cAAc,eAAdA,cAAc,CAAEyC,OAAO,gBACtBjE,KAAA,CAAAqC,aAAA,CAACpC,IAAI;IAACqC,KAAK,EAAE/B,MAAM,CAAC2D;EAAO,gBACzBlE,KAAA,CAAAqC,aAAA,CAACpC,IAAI;IAACqC,KAAK,EAAE/B,MAAM,CAAC4D;EAAe,gBACjCnE,KAAA,CAAAqC,aAAA,CAACnC,IAAI;IAACoC,KAAK,EAAE/B,MAAM,CAAC6D;EAAM,GAAC,KAAS,CAChC,CACF,CAAC,GACL,IAAI,EACP5C,cAAc,aAAdA,cAAc,eAAdA,cAAc,CAAE6C,YAAY,gBAC3BrE,KAAA,CAAAqC,aAAA,CAACpC,IAAI;IAACqC,KAAK,EAAE/B,MAAM,CAAC2D;EAAO,gBACzBlE,KAAA,CAAAqC,aAAA,CAAC/B,QAAQ;IACPqD,IAAI,EAAC,WAAW;IAChBrB,KAAK,EAAE;MAAEgC,KAAK,EAAE5D,MAAM,CAAC6D,IAAI,CAACC;IAAO,CAAE;IACrCX,IAAI,EAAE;EAAG,CACV,CACG,CAAC,GACL,IACA,CAAC;AAEX,CAAC;AAED,MAAMY,IAAI,gBAAGzE,KAAK,CAAC0E,IAAI,CAAC9D,cAAc,CAAC;AAEvC6D,IAAI,CAACE,WAAW,GAAG,MAAM;AAEzB,SAASF,IAAI"}
1
+ {"version":3,"names":["React","useSelector","View","HMSTrackSource","PeerRTCStatsContainer","LocalPeerScreenshareView","PeerVideoTileView","_Tile","_ref","_peerTrackNode$track","_peerTrackNode$track2","_peerTrackNode$track3","aspectRatio","width","height","onPeerTileMorePress","peerTrackNode","setHmsViewRefs","style","showStatsOnTiles","state","app","joinConfig","showStats","trackSource","track","source","isNonRegularTrack","REGULAR","createElement","position","peer","isLocal","ref","id","onMoreOptionsPress","trackId","peerId","peerID","Tile","memo","displayName"],"sourceRoot":"../../../src","sources":["components/Tile.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,cAAc,QAAQ,6BAA6B;AAI5D,OAAOC,qBAAqB,MAAM,yBAAyB;AAE3D,SAASC,wBAAwB,QAAQ,4BAA4B;AACrE,SAASC,iBAAiB,QAAQ,mCAAmC;AAoBrE,MAAMC,KAA0B,GAAGC,IAAA,IAQ7B;EAAA,IAAAC,oBAAA,EAAAC,qBAAA,EAAAC,qBAAA;EAAA,IAR8B;IAClCC,WAAW;IACXC,KAAK;IACLC,MAAM;IACNC,mBAAmB;IACnBC,aAAa;IACbC,cAAc;IACdC;EACF,CAAC,GAAAV,IAAA;EACC,MAAMW,gBAAgB,GAAGlB,WAAW,CACjCmB,KAAgB,IAAKA,KAAK,CAACC,GAAG,CAACC,UAAU,CAACC,SAC7C,CAAC;EAED,MAAMC,WAAW,IAAAf,oBAAA,GAAGO,aAAa,CAACS,KAAK,cAAAhB,oBAAA,uBAAnBA,oBAAA,CAAqBiB,MAAM;EAC/C,MAAMC,iBAAiB,GACrBH,WAAW,IAAIA,WAAW,KAAKrB,cAAc,CAACyB,OAAO;EAEvD,oBACE5B,KAAA,CAAA6B,aAAA,CAAC3B,IAAI;IACHgB,KAAK,EAAE,CAAC;MAAEY,QAAQ,EAAE;IAAW,CAAC,EAAE;MAAEjB,KAAK;MAAEC,MAAM;MAAEF;IAAY,CAAC,EAAEM,KAAK;EAAE,GAExES,iBAAiB,IAAIX,aAAa,CAACe,IAAI,CAACC,OAAO,gBAC9ChC,KAAA,CAAA6B,aAAA,CAACxB,wBAAwB,MAAE,CAAC,gBAE5BL,KAAA,CAAA6B,aAAA,CAACvB,iBAAiB;IAChB2B,GAAG,EAAGA,GAAG,IAAKhB,cAAc,CAACD,aAAa,CAACkB,EAAE,EAAED,GAAG,CAAE;IACpDjB,aAAa,EAAEA,aAAc;IAC7BmB,kBAAkB,EAAEpB;EAAoB,CACzC,CACF,EAEAI,gBAAgB,gBACfnB,KAAA,CAAA6B,aAAA,CAACzB,qBAAqB;IACpBgC,OAAO,GAAA1B,qBAAA,GAAEM,aAAa,CAACS,KAAK,cAAAf,qBAAA,uBAAnBA,qBAAA,CAAqB0B,OAAQ;IACtCC,MAAM,EAAErB,aAAa,CAACe,IAAI,CAACO,MAAO;IAClCd,WAAW,GAAAb,qBAAA,GAAEK,aAAa,CAACS,KAAK,cAAAd,qBAAA,uBAAnBA,qBAAA,CAAqBe;EAAO,CAC1C,CAAC,GACA,IACA,CAAC;AAEX,CAAC;AAED,MAAMa,IAAI,gBAAGvC,KAAK,CAACwC,IAAI,CAACjC,KAAK,CAAC;AAE9BgC,IAAI,CAACE,WAAW,GAAG,MAAM;AAEzB,SAASF,IAAI"}
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import { View, Dimensions } from 'react-native';
3
3
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
4
- import { styles } from './styles';
5
4
  import { Tile } from './Tile';
6
- const TilesContainerUnmemoized = _ref => {
5
+ import { useIsLandscapeOrientation } from '../utils/dimension';
6
+ import { groupIntoPairs } from '../utils/functions';
7
+ const _TilesContainer = _ref => {
7
8
  let {
8
9
  peerTrackNodes,
9
10
  setHmsViewRefs,
@@ -13,19 +14,108 @@ const TilesContainerUnmemoized = _ref => {
13
14
  left,
14
15
  right
15
16
  } = useSafeAreaInsets();
17
+ const isLandscapeOrientation = useIsLandscapeOrientation();
18
+ const stylesConfig = computeTileWidthAndHeight(peerTrackNodes.length, isLandscapeOrientation);
19
+
20
+ // In this layout, Tile will take as much height and width as possible
21
+ // Width and Height of Tile are independent of each other
22
+ const growableTileLayout = peerTrackNodes.length <= 4;
16
23
  return /*#__PURE__*/React.createElement(View, {
17
- style: [styles.page, {
24
+ style: [
25
+ // If tile are growable, then we want whatever remaining space to be between them
26
+ {
27
+ justifyContent: growableTileLayout ? 'space-between' : 'center'
28
+ }, {
18
29
  width: Dimensions.get('window').width - left - right
19
30
  }]
20
- }, peerTrackNodes === null || peerTrackNodes === void 0 ? void 0 : peerTrackNodes.map((peerTrackNode, _idx, arr) => /*#__PURE__*/React.createElement(Tile, {
21
- key: peerTrackNode.id,
22
- setHmsViewRefs: setHmsViewRefs,
23
- onPeerTileMorePress: onPeerTileMorePress,
24
- peerTrackNode: peerTrackNode,
25
- totalTilesInContainer: arr.length
31
+ }, peerTrackNodes.length <= 3 ?
32
+ /*#__PURE__*/
33
+ // Use 1 Column Layout
34
+ React.createElement(React.Fragment, null, peerTrackNodes.map(peerTrackNode => {
35
+ return /*#__PURE__*/React.createElement(Tile, {
36
+ key: peerTrackNode.id,
37
+ setHmsViewRefs: setHmsViewRefs,
38
+ onPeerTileMorePress: onPeerTileMorePress,
39
+ peerTrackNode: peerTrackNode,
40
+ height: stylesConfig.height,
41
+ width: stylesConfig.width,
42
+ aspectRatio: stylesConfig.aspectRatio
43
+ });
44
+ })) :
45
+ /*#__PURE__*/
46
+ // Use Grid Layout
47
+ React.createElement(React.Fragment, null, groupIntoPairs(peerTrackNodes.length).map((pair, idx) => {
48
+ const peerTrackNodesPair = pair.map(nodeIndex => peerTrackNodes[nodeIndex]);
49
+ const isFirstPairGroup = idx === 0;
50
+ return /*#__PURE__*/React.createElement(View, {
51
+ key: peerTrackNodesPair.map(peerTrackNode => peerTrackNode.id).join(','),
52
+ style: {
53
+ justifyContent: peerTrackNodesPair.length === 1 ? 'center' : 'space-between',
54
+ flexDirection: 'row',
55
+ flex: growableTileLayout ? 1 : 0,
56
+ marginTop: isFirstPairGroup ? 0 : 8
57
+ }
58
+ }, peerTrackNodesPair.map(peerTrackNode => {
59
+ return /*#__PURE__*/React.createElement(Tile, {
60
+ key: peerTrackNode.id,
61
+ setHmsViewRefs: setHmsViewRefs,
62
+ onPeerTileMorePress: onPeerTileMorePress,
63
+ peerTrackNode: peerTrackNode,
64
+ height: stylesConfig.height,
65
+ width: stylesConfig.width,
66
+ aspectRatio: stylesConfig.aspectRatio
67
+ });
68
+ }));
26
69
  })));
27
70
  };
28
- const TilesContainer = /*#__PURE__*/React.memo(TilesContainerUnmemoized);
71
+ const TilesContainer = /*#__PURE__*/React.memo(_TilesContainer);
29
72
  TilesContainer.displayName = 'TilesContainer';
30
73
  export { TilesContainer };
74
+
75
+ // Utility Functions
76
+
77
+ const oneTileStyle = {
78
+ width: '100%',
79
+ height: '100%'
80
+ }; // 1 Column Layout
81
+ const twoTileStyle = {
82
+ width: '100%',
83
+ height: '49.4444%'
84
+ }; // 1 Column Layout
85
+ const threeTileStyle = {
86
+ width: '100%',
87
+ height: '32.6666%'
88
+ }; // 1 Column Layout
89
+
90
+ const fourTileStyle = {
91
+ width: '49%',
92
+ height: '100%'
93
+ }; // Grid Layout when Width and Height has no-correlatiom
94
+ const fiveAndSixTileStyle = {
95
+ width: '49%',
96
+ aspectRatio: 1
97
+ }; // Grid Layout when width and Height as fixed aspectRatio
98
+
99
+ const oneTileStyleLandscape = {
100
+ width: '100%',
101
+ height: '100%'
102
+ };
103
+ const twoTileStyleLandscape = {
104
+ width: '50%',
105
+ height: '100%'
106
+ };
107
+ const threeTileStyleLandscape = {
108
+ width: '33.3333%',
109
+ height: '100%'
110
+ };
111
+ const fourTileStyleLandscape = {
112
+ width: '50%',
113
+ height: '50%'
114
+ };
115
+ function computeTileWidthAndHeight(totalTiles, isLandscapeOrientation) {
116
+ return (isLandscapeOrientation ? [oneTileStyleLandscape, twoTileStyleLandscape, threeTileStyleLandscape, fourTileStyleLandscape][Math.min(totalTiles - 1, 3)] : [oneTileStyle, twoTileStyle, threeTileStyle, fourTileStyle, fiveAndSixTileStyle][Math.min(totalTiles - 1, 4)]) || {
117
+ width: '100%',
118
+ height: '100%'
119
+ };
120
+ }
31
121
  //# sourceMappingURL=TilesContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Dimensions","useSafeAreaInsets","styles","Tile","TilesContainerUnmemoized","_ref","peerTrackNodes","setHmsViewRefs","onPeerTileMorePress","left","right","createElement","style","page","width","get","map","peerTrackNode","_idx","arr","key","id","totalTilesInContainer","length","TilesContainer","memo","displayName"],"sourceRoot":"../../../src","sources":["components/TilesContainer.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAGlE,SAASC,MAAM,QAAQ,UAAU;AAEjC,SAASC,IAAI,QAAQ,QAAQ;AAS7B,MAAMC,wBAAuD,GAAGC,IAAA,IAI1D;EAAA,IAJ2D;IAC/DC,cAAc;IACdC,cAAc;IACdC;EACF,CAAC,GAAAH,IAAA;EACC,MAAM;IAAEI,IAAI;IAAEC;EAAM,CAAC,GAAGT,iBAAiB,CAAC,CAAC;EAE3C,oBACEH,KAAA,CAAAa,aAAA,CAACZ,IAAI;IACHa,KAAK,EAAE,CACLV,MAAM,CAACW,IAAI,EACX;MAAEC,KAAK,EAAEd,UAAU,CAACe,GAAG,CAAC,QAAQ,CAAC,CAACD,KAAK,GAAGL,IAAI,GAAGC;IAAM,CAAC;EACxD,GAEDJ,cAAc,aAAdA,cAAc,uBAAdA,cAAc,CAAEU,GAAG,CAAC,CAACC,aAAa,EAAEC,IAAI,EAAEC,GAAG,kBAC5CrB,KAAA,CAAAa,aAAA,CAACR,IAAI;IACHiB,GAAG,EAAEH,aAAa,CAACI,EAAG;IACtBd,cAAc,EAAEA,cAAe;IAC/BC,mBAAmB,EAAEA,mBAAoB;IACzCS,aAAa,EAAEA,aAAc;IAC7BK,qBAAqB,EAAEH,GAAG,CAACI;EAAO,CACnC,CACF,CACG,CAAC;AAEX,CAAC;AAED,MAAMC,cAAc,gBAAG1B,KAAK,CAAC2B,IAAI,CAACrB,wBAAwB,CAAC;AAE3DoB,cAAc,CAACE,WAAW,GAAG,gBAAgB;AAE7C,SAASF,cAAc"}
1
+ {"version":3,"names":["React","View","Dimensions","useSafeAreaInsets","Tile","useIsLandscapeOrientation","groupIntoPairs","_TilesContainer","_ref","peerTrackNodes","setHmsViewRefs","onPeerTileMorePress","left","right","isLandscapeOrientation","stylesConfig","computeTileWidthAndHeight","length","growableTileLayout","createElement","style","justifyContent","width","get","Fragment","map","peerTrackNode","key","id","height","aspectRatio","pair","idx","peerTrackNodesPair","nodeIndex","isFirstPairGroup","join","flexDirection","flex","marginTop","TilesContainer","memo","displayName","oneTileStyle","twoTileStyle","threeTileStyle","fourTileStyle","fiveAndSixTileStyle","oneTileStyleLandscape","twoTileStyleLandscape","threeTileStyleLandscape","fourTileStyleLandscape","totalTiles","Math","min"],"sourceRoot":"../../../src","sources":["components/TilesContainer.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,iBAAiB,QAAQ,gCAAgC;AAGlE,SAASC,IAAI,QAAQ,QAAQ;AAE7B,SAASC,yBAAyB,QAAQ,oBAAoB;AAC9D,SAASC,cAAc,QAAQ,oBAAoB;AAQnD,MAAMC,eAA8C,GAAGC,IAAA,IAIjD;EAAA,IAJkD;IACtDC,cAAc;IACdC,cAAc;IACdC;EACF,CAAC,GAAAH,IAAA;EACC,MAAM;IAAEI,IAAI;IAAEC;EAAM,CAAC,GAAGV,iBAAiB,CAAC,CAAC;EAC3C,MAAMW,sBAAsB,GAAGT,yBAAyB,CAAC,CAAC;EAE1D,MAAMU,YAAY,GAAGC,yBAAyB,CAC5CP,cAAc,CAACQ,MAAM,EACrBH,sBACF,CAAC;;EAED;EACA;EACA,MAAMI,kBAAkB,GAAGT,cAAc,CAACQ,MAAM,IAAI,CAAC;EAErD,oBACEjB,KAAA,CAAAmB,aAAA,CAAClB,IAAI;IACHmB,KAAK,EAAE;IACL;IAC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AEO,MAAM,EAAE;AAAO,CAAC;AAC/D,MAAMoB,qBAAqB,GAAG;EAAE3B,KAAK,EAAE,KAAK;EAAEO,MAAM,EAAE;AAAO,CAAC;AAC9D,MAAMqB,uBAAuB,GAAG;EAAE5B,KAAK,EAAE,UAAU;EAAEO,MAAM,EAAE;AAAO,CAAC;AACrE,MAAMsB,sBAAsB,GAAG;EAAE7B,KAAK,EAAE,KAAK;EAAEO,MAAM,EAAE;AAAM,CAAC;AAE9D,SAASb,yBAAyBA,CAChCoC,UAAkB,EAClBtC,sBAA+B,EAK/B;EACA,OACE,CAACA,sBAAsB,GACnB,CACEkC,qBAAqB,EACrBC,qBAAqB,EACrBC,uBAAuB,EACvBC,sBAAsB,CACvB,CAACE,IAAI,CAACC,GAAG,CAACF,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAC9B,CACET,YAAY,EACZC,YAAY,EACZC,cAAc,EACdC,aAAa,EACbC,mBAAmB,CACpB,CAACM,IAAI,CAACC,GAAG,CAACF,UAAU,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;IAAE9B,KAAK,EAAE,MAAM;IAAEO,MAAM,EAAE;EAAO,CAAC;AAE5E"}
@@ -0,0 +1,39 @@
1
+ import * as React from 'react';
2
+ export const UnmountAfterDelay = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3
+ let {
4
+ delay = 4000,
5
+ children,
6
+ visible,
7
+ onUnmount
8
+ } = _ref;
9
+ const timeoutId = React.useRef(null);
10
+ const setTimer = React.useCallback(() => {
11
+ if (timeoutId.current) {
12
+ clearTimeout(timeoutId.current);
13
+ }
14
+ timeoutId.current = setTimeout(() => {
15
+ onUnmount();
16
+ timeoutId.current = null;
17
+ }, delay);
18
+ }, [delay]);
19
+ const clearTimer = React.useCallback(() => {
20
+ if (timeoutId.current) {
21
+ clearTimeout(timeoutId.current);
22
+ timeoutId.current = null;
23
+ }
24
+ }, []);
25
+ React.useImperativeHandle(ref, () => ({
26
+ resetTimer: () => {
27
+ clearTimer();
28
+ setTimer();
29
+ }
30
+ }), [setTimer]);
31
+ React.useEffect(() => {
32
+ if (visible) {
33
+ setTimer();
34
+ return clearTimer;
35
+ }
36
+ }, [visible, setTimer, clearTimer]);
37
+ return visible ? children : null;
38
+ });
39
+ //# sourceMappingURL=UnmountAfterDelay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","UnmountAfterDelay","forwardRef","_ref","ref","delay","children","visible","onUnmount","timeoutId","useRef","setTimer","useCallback","current","clearTimeout","setTimeout","clearTimer","useImperativeHandle","resetTimer","useEffect"],"sourceRoot":"../../../src","sources":["components/UnmountAfterDelay.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAiB9B,OAAO,MAAMC,iBAAiB,gBAAGD,KAAK,CAACE,UAAU,CAG/C,CAAAC,IAAA,EAAiDC,GAAG,KAAK;EAAA,IAAxD;IAAEC,KAAK,GAAG,IAAI;IAAEC,QAAQ;IAAEC,OAAO;IAAEC;EAAU,CAAC,GAAAL,IAAA;EAC/C,MAAMM,SAAS,GAAGT,KAAK,CAACU,MAAM,CAAwB,IAAI,CAAC;EAE3D,MAAMC,QAAQ,GAAGX,KAAK,CAACY,WAAW,CAAC,MAAM;IACvC,IAAIH,SAAS,CAACI,OAAO,EAAE;MACrBC,YAAY,CAACL,SAAS,CAACI,OAAO,CAAC;IACjC;IACAJ,SAAS,CAACI,OAAO,GAAGE,UAAU,CAAC,MAAM;MACnCP,SAAS,CAAC,CAAC;MACXC,SAAS,CAACI,OAAO,GAAG,IAAI;IAC1B,CAAC,EAAER,KAAK,CAAC;EACX,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,MAAMW,UAAU,GAAGhB,KAAK,CAACY,WAAW,CAAC,MAAM;IACzC,IAAIH,SAAS,CAACI,OAAO,EAAE;MACrBC,YAAY,CAACL,SAAS,CAACI,OAAO,CAAC;MAC/BJ,SAAS,CAACI,OAAO,GAAG,IAAI;IAC1B;EACF,CAAC,EAAE,EAAE,CAAC;EAENb,KAAK,CAACiB,mBAAmB,CACvBb,GAAG,EACH,OAAO;IACLc,UAAU,EAAEA,CAAA,KAAM;MAChBF,UAAU,CAAC,CAAC;MACZL,QAAQ,CAAC,CAAC;IACZ;EACF,CAAC,CAAC,EACF,CAACA,QAAQ,CACX,CAAC;EAEDX,KAAK,CAACmB,SAAS,CAAC,MAAM;IACpB,IAAIZ,OAAO,EAAE;MACXI,QAAQ,CAAC,CAAC;MAEV,OAAOK,UAAU;IACnB;EACF,CAAC,EAAE,CAACT,OAAO,EAAEI,QAAQ,EAAEK,UAAU,CAAC,CAAC;EAEnC,OAAOT,OAAO,GAAGD,QAAQ,GAAG,IAAI;AAClC,CAAC,CAAC"}
@@ -0,0 +1,41 @@
1
+ import React, { useMemo } from 'react';
2
+ import { useSelector } from 'react-redux';
3
+ import { MaxTilesInOnePage, PipModes } from '../utils/types';
4
+ import { pairData } from '../utils/functions';
5
+ import { GridView } from './GridView';
6
+ import PIPView from './PIPView';
7
+ import { useIsPortraitOrientation } from '../utils/dimension';
8
+ import { LocalPeerRegularVideoView } from './LocalPeerRegularVideoView';
9
+ import { WelcomeInMeeting } from './WelcomeInMeeting';
10
+ export const WebrtcView = /*#__PURE__*/React.forwardRef((_ref, gridViewRef) => {
11
+ let {
12
+ peerTrackNodes,
13
+ handlePeerTileMorePress
14
+ } = _ref;
15
+ const isPortrait = useIsPortraitOrientation();
16
+ const isPipModeActive = useSelector(state => state.app.pipModeStatus === PipModes.ACTIVE);
17
+
18
+ // State to track active spotlight trackId
19
+ const spotlightTrackId = useSelector(state => state.user.spotlightTrackId);
20
+ const pairedPeers = useMemo(() => pairData(peerTrackNodes, isPortrait ? MaxTilesInOnePage.IN_PORTRAIT : MaxTilesInOnePage.IN_LANDSCAPE, spotlightTrackId), [peerTrackNodes, spotlightTrackId, isPortrait]);
21
+ const canShowTiles = useSelector(state => !!state.app.localPeerTrackNode || pairedPeers.length > 0);
22
+ if (!canShowTiles) {
23
+ return /*#__PURE__*/React.createElement(WelcomeInMeeting, null);
24
+ }
25
+ if (isPipModeActive) {
26
+ return /*#__PURE__*/React.createElement(PIPView, {
27
+ pairedPeers: pairedPeers
28
+ });
29
+ }
30
+ if (pairedPeers.length > 0) {
31
+ return /*#__PURE__*/React.createElement(GridView, {
32
+ ref: gridViewRef,
33
+ onPeerTileMorePress: handlePeerTileMorePress,
34
+ pairedPeers: pairedPeers
35
+ });
36
+ }
37
+ return /*#__PURE__*/React.createElement(LocalPeerRegularVideoView, {
38
+ onMoreOptionsPress: handlePeerTileMorePress
39
+ });
40
+ });
41
+ //# sourceMappingURL=WebrtcView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","useSelector","MaxTilesInOnePage","PipModes","pairData","GridView","PIPView","useIsPortraitOrientation","LocalPeerRegularVideoView","WelcomeInMeeting","WebrtcView","forwardRef","_ref","gridViewRef","peerTrackNodes","handlePeerTileMorePress","isPortrait","isPipModeActive","state","app","pipModeStatus","ACTIVE","spotlightTrackId","user","pairedPeers","IN_PORTRAIT","IN_LANDSCAPE","canShowTiles","localPeerTrackNode","length","createElement","ref","onPeerTileMorePress","onMoreOptionsPress"],"sourceRoot":"../../../src","sources":["components/WebrtcView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,WAAW,QAAQ,aAAa;AAEzC,SAASC,iBAAiB,EAAEC,QAAQ,QAAQ,gBAAgB;AAE5D,SAASC,QAAQ,QAAQ,oBAAoB;AAE7C,SAASC,QAAQ,QAAQ,YAAY;AAErC,OAAOC,OAAO,MAAM,WAAW;AAC/B,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,gBAAgB,QAAQ,oBAAoB;AAOrD,OAAO,MAAMC,UAAU,gBAAGX,KAAK,CAACY,UAAU,CACxC,CAAAC,IAAA,EAA8CC,WAAW,KAAK;EAAA,IAA7D;IAA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@@
1
+ import * as React from 'react';
2
+ import { View, Text, StyleSheet } from 'react-native';
3
+ import { useHMSRoomStyleSheet } from '../hooks-util';
4
+ export const WelcomeInMeeting = () => {
5
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
6
+ heading: {
7
+ fontFamily: `${typography.font_family}-Bold`,
8
+ color: theme.palette.on_surface_high
9
+ },
10
+ description: {
11
+ fontFamily: `${typography.font_family}-Medium`,
12
+ color: theme.palette.on_surface_medium
13
+ }
14
+ }));
15
+ return /*#__PURE__*/React.createElement(View, {
16
+ style: styles.container
17
+ }, /*#__PURE__*/React.createElement(Text, {
18
+ style: [styles.heading, hmsRoomStyles.heading]
19
+ }, "Welcome!"), /*#__PURE__*/React.createElement(Text, {
20
+ style: [styles.description, hmsRoomStyles.description]
21
+ }, "You're the first one here."), /*#__PURE__*/React.createElement(Text, {
22
+ style: [styles.description, hmsRoomStyles.description]
23
+ }, "Sit back and relax till the others join."));
24
+ };
25
+ const styles = StyleSheet.create({
26
+ container: {
27
+ flex: 1,
28
+ alignItems: 'center',
29
+ justifyContent: 'center'
30
+ },
31
+ heading: {
32
+ fontSize: 28,
33
+ lineHeight: 36,
34
+ letterSpacing: 0.1,
35
+ textAlign: 'center',
36
+ paddingBottom: 32
37
+ },
38
+ description: {
39
+ fontSize: 16,
40
+ lineHeight: 24,
41
+ letterSpacing: 0.15,
42
+ textAlign: 'center'
43
+ }
44
+ });
45
+ //# sourceMappingURL=WelcomeInMeeting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","Text","StyleSheet","useHMSRoomStyleSheet","WelcomeInMeeting","hmsRoomStyles","theme","typography","heading","fontFamily","font_family","color","palette","on_surface_high","description","on_surface_medium","createElement","style","styles","container","create","flex","alignItems","justifyContent","fontSize","lineHeight","letterSpacing","textAlign","paddingBottom"],"sourceRoot":"../../../src","sources":["components/WelcomeInMeeting.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC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,EAAE,QAAQ;IACnBC,aAAa,EAAE;EACjB,CAAC;EACDd,WAAW,EAAE;IACXU,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAE,IAAI;IACnBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC"}
@@ -6,4 +6,8 @@ export const selectCanPublishTrack = (state, track) => {
6
6
  var _selectAllowedTracksT;
7
7
  return ((_selectAllowedTracksT = selectAllowedTracksToPublish(state)) === null || _selectAllowedTracksT === void 0 ? void 0 : _selectAllowedTracksT.includes(track)) ?? false;
8
8
  };
9
+ export const selectCanPublishTrackForRole = (role, track) => {
10
+ var _role$publishSettings;
11
+ return (role === null || role === void 0 || (_role$publishSettings = role.publishSettings) === null || _role$publishSettings === void 0 || (_role$publishSettings = _role$publishSettings.allowed) === null || _role$publishSettings === void 0 ? void 0 : _role$publishSettings.includes(track)) ?? false;
12
+ };
9
13
  //# sourceMappingURL=hooks-sdk-selectors.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["selectAllowedTracksToPublish","state","_state$hmsStates$loca","hmsStates","localPeer","role","publishSettings","allowed","selectCanPublishTrack","track","_selectAllowedTracksT","includes"],"sourceRoot":"../../src","sources":["hooks-sdk-selectors.tsx"],"mappings":"AAEA,OAAO,MAAMA,4BAA4B,GAAIC,KAAgB;EAAA,IAAAC,qBAAA;EAAA,QAAAA,qBAAA,GAC3DD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,gBAAAA,qBAAA,GAAzBA,qBAAA,CAA2BG,IAAI,cAAAH,qBAAA,gBAAAA,qBAAA,GAA/BA,qBAAA,CAAiCI,eAAe,cAAAJ,qBAAA,uBAAhDA,qBAAA,CAAkDK,OAAO;AAAA;AAE3D,OAAO,MAAMC,qBAAqB,GAAGA,CACnCP,KAAgB,EAChBQ,KAAmC;EAAA,IAAAC,qBAAA;EAAA,OAChC,EAAAA,qBAAA,GAAAV,4BAA4B,CAACC,KAAK,CAAC,cAAAS,qBAAA,uBAAnCA,qBAAA,CAAqCC,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA"}
1
+ {"version":3,"names":["selectAllowedTracksToPublish","state","_state$hmsStates$loca","hmsStates","localPeer","role","publishSettings","allowed","selectCanPublishTrack","track","_selectAllowedTracksT","includes","selectCanPublishTrackForRole","_role$publishSettings"],"sourceRoot":"../../src","sources":["hooks-sdk-selectors.tsx"],"mappings":"AAIA,OAAO,MAAMA,4BAA4B,GAAIC,KAAgB;EAAA,IAAAC,qBAAA;EAAA,QAAAA,qBAAA,GAC3DD,KAAK,CAACE,SAAS,CAACC,SAAS,cAAAF,qBAAA,gBAAAA,qBAAA,GAAzBA,qBAAA,CAA2BG,IAAI,cAAAH,qBAAA,gBAAAA,qBAAA,GAA/BA,qBAAA,CAAiCI,eAAe,cAAAJ,qBAAA,uBAAhDA,qBAAA,CAAkDK,OAAO;AAAA;AAE3D,OAAO,MAAMC,qBAAqB,GAAGA,CACnCP,KAAgB,EAChBQ,KAAmC;EAAA,IAAAC,qBAAA;EAAA,OAChC,EAAAA,qBAAA,GAAAV,4BAA4B,CAACC,KAAK,CAAC,cAAAS,qBAAA,uBAAnCA,qBAAA,CAAqCC,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA;AAElE,OAAO,MAAMG,4BAA4B,GAAGA,CAC1CP,IAAyB,EACzBI,KAAmC;EAAA,IAAAI,qBAAA;EAAA,OAChC,CAAAR,IAAI,aAAJA,IAAI,gBAAAQ,qBAAA,GAAJR,IAAI,CAAEC,eAAe,cAAAO,qBAAA,gBAAAA,qBAAA,GAArBA,qBAAA,CAAuBN,OAAO,cAAAM,qBAAA,uBAA9BA,qBAAA,CAAgCF,QAAQ,CAACF,KAAK,CAAC,KAAI,KAAK;AAAA"}
@@ -104,12 +104,27 @@ export const useHMSActions = () => {
104
104
  return Promise.reject(error);
105
105
  }
106
106
  }, []);
107
+ const changeName = useCallback(async name => {
108
+ const state = store.getState();
109
+ const hmsInstance = state.user.hmsInstance;
110
+ if (!hmsInstance) {
111
+ return Promise.reject('HMSSDK Instance is not available!');
112
+ }
113
+ try {
114
+ const result = await hmsInstance.changeName(name);
115
+ console.log('Change Name Success: ', result);
116
+ } catch (error) {
117
+ console.log('Change Name Error: ', error);
118
+ return Promise.reject(error);
119
+ }
120
+ }, []);
107
121
  return {
108
122
  setLocalAudioEnabled,
109
123
  setLocalVideoEnabled,
110
124
  switchCamera,
111
125
  setScreenShareEnabled,
112
- changeMetadata
126
+ changeMetadata,
127
+ changeName
113
128
  };
114
129
  };
115
130
  //# sourceMappingURL=hooks-sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useDispatch","useSelector","useStore","setIsLocalAudioMutedState","setIsLocalScreenSharedState","setIsLocalVideoMutedState","selectAllowedTracksToPublish","selectCanPublishTrack","useCallback","useAllowedTracksToPublish","useCanPublishAudio","state","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","store","setLocalAudioEnabled","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setMute","error","setLocalVideoEnabled","localVideoTrack","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","changeMetadata","metadata","parsedMetadata","JSON","stringify"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,aAAa;AAGhE,SACEC,yBAAyB,EACzBC,2BAA2B,EAC3BC,yBAAyB,QACpB,iBAAiB;AACxB,SACEC,4BAA4B,EAC5BC,qBAAqB,QAChB,uBAAuB;AAC9B,SAASC,WAAW,QAAQ,OAAO;AAEnC,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,OAAOR,WAAW,CAACK,4BAA4B,CAAC;AAClD,CAAC;AAED,OAAO,MAAMI,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAOT,WAAW,CAAEU,KAAgB,IAClCJ,qBAAqB,CAACI,KAAK,EAAE,OAAO,CACt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,CAAC,2BAA2B,EAAEH,MAAM,CAAC;IAClD,CAAC,CAAC,OAAOP,KAAK,EAAE;MACdS,OAAO,CAACC,GAAG,CAAC,yBAAyB,EAAEV,KAAK,CAAC;MAC7C,OAAOJ,OAAO,CAACC,MAAM,CAACG,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLT,oBAAoB;IACpBU,oBAAoB;IACpBE,YAAY;IACZC,qBAAqB;IACrBQ;EACF,CAAC;AACH,CAAC"}
1
+ {"version":3,"names":["useDispatch","useSelector","useStore","setIsLocalAudioMutedState","setIsLocalScreenSharedState","setIsLocalVideoMutedState","selectAllowedTracksToPublish","selectCanPublishTrack","useCallback","useAllowedTracksToPublish","useCanPublishAudio","state","useCanPublishVideo","useCanPublishScreen","useHMSActions","dispatch","store","setLocalAudioEnabled","enable","getState","localPeer","hmsStates","Promise","reject","localAudioTrack","setMute","error","setLocalVideoEnabled","localVideoTrack","switchCamera","setScreenShareEnabled","hmsInstance","user","result","startScreenshare","console","log","stopScreenshare","changeMetadata","metadata","parsedMetadata","JSON","stringify","changeName","name"],"sourceRoot":"../../src","sources":["hooks-sdk.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,aAAa;AAGhE,SACEC,yBAAyB,EACzBC,2BAA2B,EAC3BC,yBAAyB,QACpB,iBAAiB;AACxB,SACEC,4BAA4B,EAC5BC,qBAAqB,QAChB,uBAAuB;AAC9B,SAASC,WAAW,QAAQ,OAAO;AAEnC,OAAO,MAAMC,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,OAAOR,WAAW,CAACK,4BAA4B,CAAC;AAClD,CAAC;AAED,OAAO,MAAMI,kBAAkB,GAAGA,CAAA,KAAM;EACtC,OAAOT,WAAW,CAAEU,KAAgB,IAClCJ,qBAAqB,CAACI,KAAK,EAAE,OAAO,CACtC,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,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,KAAK,EAAE;MACdS,OAAO,CAACC,GAAG,CAAC,yBAAyB,EAAEV,KAAK,CAAC;MAC7C,OAAOJ,OAAO,CAACC,MAAM,CAACG,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMiB,UAAU,GAAGnC,WAAW,CAAC,MAAOoC,IAAY,IAAoB;IACpE,MAAMjC,KAAgB,GAAGK,KAAK,CAACG,QAAQ,CAAC,CAAC;IACzC,MAAMY,WAAW,GAAGpB,KAAK,CAACqB,IAAI,CAACD,WAAW;IAE1C,IAAI,CAACA,WAAW,EAAE;MAChB,OAAOT,OAAO,CAACC,MAAM,CAAC,mCAAmC,CAAC;IAC5D;IAEA,IAAI;MACF,MAAMU,MAAM,GAAG,MAAMF,WAAW,CAACY,UAAU,CAACC,IAAI,CAAC;MACjDT,OAAO,CAACC,GAAG,CAAC,uBAAuB,EAAEH,MAAM,CAAC;IAC9C,CAAC,CAAC,OAAOP,KAAK,EAAE;MACdS,OAAO,CAACC,GAAG,CAAC,qBAAqB,EAAEV,KAAK,CAAC;MACzC,OAAOJ,OAAO,CAACC,MAAM,CAACG,KAAK,CAAC;IAC9B;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLT,oBAAoB;IACpBU,oBAAoB;IACpBE,YAAY;IACZC,qBAAqB;IACrBQ,cAAc;IACdK;EACF,CAAC;AACH,CAAC"}
@@ -1,11 +1,17 @@
1
+ import { JoinForm_JoinBtnType } from '@100mslive/types-prebuilt/elements/join_form';
1
2
  export const selectIsHLSViewer = peer => {
2
3
  var _peer$role;
3
4
  return (peer === null || peer === void 0 || (_peer$role = peer.role) === null || _peer$role === void 0 || (_peer$role = _peer$role.name) === null || _peer$role === void 0 ? void 0 : _peer$role.includes('hls')) ?? false;
4
5
  };
5
6
  export const selectShouldGoLive = state => {
6
- var _state$hmsStates$room, _state$hmsStates$loca;
7
+ var _state$hmsStates$room, _layoutConfig$screens, _state$hmsStates$loca;
8
+ const layoutConfig = state.hmsStates.layoutConfig;
7
9
  const isHLSStreaming = (_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.hlsStreamingState.running;
8
- const canStartHLSStreaming = (_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 || (_state$hmsStates$loca = _state$hmsStates$loca.permissions) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.hlsStreaming;
10
+ const joinButtonType = layoutConfig === null || layoutConfig === void 0 || (_layoutConfig$screens = layoutConfig.screens) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.preview) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.default) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.elements) === null || _layoutConfig$screens === void 0 || (_layoutConfig$screens = _layoutConfig$screens.join_form) === null || _layoutConfig$screens === void 0 ? void 0 : _layoutConfig$screens.join_btn_type;
11
+ const canStartHLSStreaming = joinButtonType === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE || joinButtonType === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_ONLY ?
12
+ // can start if `joinButtonType` is `JOIN_BTN_TYPE_JOIN_AND_GO_LIVE`
13
+ joinButtonType === JoinForm_JoinBtnType.JOIN_BTN_TYPE_JOIN_AND_GO_LIVE : // Check if the Role has permission to start HLS Stream
14
+ (_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 || (_state$hmsStates$loca = _state$hmsStates$loca.permissions) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.hlsStreaming;
9
15
  return canStartHLSStreaming && !isHLSStreaming;
10
16
  };
11
17
  //# sourceMappingURL=hooks-util-selectors.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["selectIsHLSViewer","peer","_peer$role","role","name","includes","selectShouldGoLive","state","_state$hmsStates$room","_state$hmsStates$loca","isHLSStreaming","hmsStates","room","hlsStreamingState","running","canStartHLSStreaming","localPeer","permissions","hlsStreaming"],"sourceRoot":"../../src","sources":["hooks-util-selectors.tsx"],"mappings":"AAIA,OAAO,MAAMA,iBAAiB,GAAIC,IAAgC;EAAA,IAAAC,UAAA;EAAA,OAChE,CAAAD,IAAI,aAAJA,IAAI,gBAAAC,UAAA,GAAJD,IAAI,CAAEE,IAAI,cAAAD,UAAA,gBAAAA,UAAA,GAAVA,UAAA,CAAYE,IAAI,cAAAF,UAAA,uBAAhBA,UAAA,CAAkBG,QAAQ,CAAC,KAAK,CAAC,KAAI,KAAK;AAAA;AAE5C,OAAO,MAAMC,kBAAkB,GAAIC,KAAgB,IAAK;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EACtD,MAAMC,cAAc,IAAAF,qBAAA,GAAGD,KAAK,CAACI,SAAS,CAACC,IAAI,cAAAJ,qBAAA,uBAApBA,qBAAA,CAAsBK,iBAAiB,CAACC,OAAO;EACtE,MAAMC,oBAAoB,IAAAN,qBAAA,GACxBF,KAAK,CAACI,SAAS,CAACK,SAAS,cAAAP,qBAAA,gBAAAA,qBAAA,GAAzBA,qBAAA,CAA2BN,IAAI,cAAAM,qBAAA,gBAAAA,qBAAA,GAA/BA,qBAAA,CAAiCQ,WAAW,cAAAR,qBAAA,uBAA5CA,qBAAA,CAA8CS,YAAY;EAE5D,OAAOH,oBAAoB,IAAI,CAACL,cAAc;AAChD,CAAC"}
1
+ {"version":3,"names":["JoinForm_JoinBtnType","selectIsHLSViewer","peer","_peer$role","role","name","includes","selectShouldGoLive","state","_state$hmsStates$room","_layoutConfig$screens","_state$hmsStates$loca","layoutConfig","hmsStates","isHLSStreaming","room","hlsStreamingState","running","joinButtonType","screens","preview","default","elements","join_form","join_btn_type","canStartHLSStre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