@100mslive/react-native-room-kit 0.0.3 → 0.1.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 (857) hide show
  1. package/README.md +413 -11
  2. package/lib/commonjs/HMSInstanceSetup.js +3 -15
  3. package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
  4. package/lib/commonjs/HMSPrebuilt.js +17 -6
  5. package/lib/commonjs/HMSPrebuilt.js.map +1 -1
  6. package/lib/commonjs/HMSRoomSetup.js +76 -21
  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/assets/check.png +0 -0
  27. package/lib/commonjs/Icons/Check/assets/check@2x.png +0 -0
  28. package/lib/commonjs/Icons/Check/assets/check@3x.png +0 -0
  29. package/lib/commonjs/Icons/Check/index.js +34 -0
  30. package/lib/commonjs/Icons/Check/index.js.map +1 -0
  31. package/lib/commonjs/Icons/Chevron/index.js +5 -1
  32. package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
  33. package/lib/commonjs/Icons/Close/index.js +5 -1
  34. package/lib/commonjs/Icons/Close/index.js.map +1 -1
  35. package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
  36. package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  37. package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  38. package/lib/commonjs/Icons/Hamburger/index.js +34 -0
  39. package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
  40. package/lib/commonjs/Icons/Hand/index.js +6 -4
  41. package/lib/commonjs/Icons/Hand/index.js.map +1 -1
  42. package/lib/commonjs/Icons/Headphones/index.js +5 -1
  43. package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
  44. package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
  45. package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
  46. package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
  47. package/lib/commonjs/Icons/Maximize/index.js +34 -0
  48. package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
  49. package/lib/commonjs/Icons/Mic/index.js +5 -1
  50. package/lib/commonjs/Icons/Mic/index.js.map +1 -1
  51. package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
  52. package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
  53. package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
  54. package/lib/commonjs/Icons/Minimize/index.js +34 -0
  55. package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
  56. package/lib/commonjs/Icons/Participants/index.js +5 -1
  57. package/lib/commonjs/Icons/Participants/index.js.map +1 -1
  58. package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
  59. package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
  60. package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
  61. package/lib/commonjs/Icons/Pencil/index.js +34 -0
  62. package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
  63. package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
  64. package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
  65. package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
  66. package/lib/commonjs/Icons/Pin/index.js +34 -0
  67. package/lib/commonjs/Icons/Pin/index.js.map +1 -0
  68. package/lib/commonjs/Icons/Radio/assets/radio.png +0 -0
  69. package/lib/commonjs/Icons/Radio/assets/radio@2x.png +0 -0
  70. package/lib/commonjs/Icons/Radio/assets/radio@3x.png +0 -0
  71. package/lib/commonjs/Icons/Radio/index.js +30 -0
  72. package/lib/commonjs/Icons/Radio/index.js.map +1 -0
  73. package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
  74. package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
  75. package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
  76. package/lib/commonjs/Icons/Recording/index.js +34 -0
  77. package/lib/commonjs/Icons/Recording/index.js.map +1 -0
  78. package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
  79. package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
  80. package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
  81. package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
  82. package/lib/commonjs/Icons/Speaker/index.js +5 -1
  83. package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
  84. package/lib/commonjs/Icons/Star/assets/star.png +0 -0
  85. package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
  86. package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
  87. package/lib/commonjs/Icons/Star/index.js +34 -0
  88. package/lib/commonjs/Icons/Star/index.js.map +1 -0
  89. package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
  90. package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
  91. package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
  92. package/lib/commonjs/Icons/Stop/index.js +34 -0
  93. package/lib/commonjs/Icons/Stop/index.js.map +1 -0
  94. package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
  95. package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
  96. package/lib/commonjs/Icons/Wave/index.js +5 -1
  97. package/lib/commonjs/Icons/Wave/index.js.map +1 -1
  98. package/lib/commonjs/Icons/index.js +132 -0
  99. package/lib/commonjs/Icons/index.js.map +1 -1
  100. package/lib/commonjs/components/AvatarView.js +1 -2
  101. package/lib/commonjs/components/AvatarView.js.map +1 -1
  102. package/lib/commonjs/components/BackButton.js +8 -6
  103. package/lib/commonjs/components/BackButton.js.map +1 -1
  104. package/lib/commonjs/components/BottomSheet.js +157 -0
  105. package/lib/commonjs/components/BottomSheet.js.map +1 -0
  106. package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
  107. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
  108. package/lib/commonjs/components/CompanyLogo.js +38 -0
  109. package/lib/commonjs/components/CompanyLogo.js.map +1 -0
  110. package/lib/commonjs/components/CustomInput.js +2 -3
  111. package/lib/commonjs/components/CustomInput.js.map +1 -1
  112. package/lib/commonjs/components/DisplayView.js +12 -58
  113. package/lib/commonjs/components/DisplayView.js.map +1 -1
  114. package/lib/commonjs/components/EndRoomModalContent.js +85 -0
  115. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
  116. package/lib/commonjs/components/Footer.js +8 -9
  117. package/lib/commonjs/components/Footer.js.map +1 -1
  118. package/lib/commonjs/components/GridView.js +53 -7
  119. package/lib/commonjs/components/GridView.js.map +1 -1
  120. package/lib/commonjs/components/HMSBaseButton.js +66 -0
  121. package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
  122. package/lib/commonjs/components/HMSDangerButton.js +53 -0
  123. package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
  124. package/lib/commonjs/components/HMSHLSStreamLoading.js +65 -0
  125. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -0
  126. package/lib/commonjs/components/HMSLocalVideoView.js +41 -0
  127. package/lib/commonjs/components/HMSLocalVideoView.js.map +1 -0
  128. package/lib/commonjs/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -76
  129. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -0
  130. package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
  131. package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
  132. package/lib/commonjs/components/HMSManageLeave.js +91 -159
  133. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  134. package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
  135. package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
  136. package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
  137. package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
  138. package/lib/commonjs/components/HMSMeetingEnded.js +35 -0
  139. package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -0
  140. package/lib/commonjs/components/HMSPreviewEditName.js +7 -38
  141. package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
  142. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +71 -0
  143. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
  144. package/lib/commonjs/components/HMSPreviewJoinButton.js +26 -37
  145. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  146. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +45 -0
  147. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -0
  148. package/lib/commonjs/components/HMSPreviewPeersList.js +21 -33
  149. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  150. package/lib/commonjs/components/HMSPreviewSubtitle.js +43 -7
  151. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  152. package/lib/commonjs/components/HMSPreviewTile.js +18 -26
  153. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  154. package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
  155. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  156. package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
  157. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
  158. package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
  159. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
  160. package/lib/commonjs/components/HMSRoomOptions.js +22 -10
  161. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  162. package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -6
  163. package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
  164. package/lib/commonjs/components/HMSTextInput.js +66 -0
  165. package/lib/commonjs/components/HMSTextInput.js.map +1 -0
  166. package/lib/commonjs/components/Header.js +30 -30
  167. package/lib/commonjs/components/Header.js.map +1 -1
  168. package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
  169. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
  170. package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
  171. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
  172. package/lib/commonjs/components/Meeting.js +14 -3
  173. package/lib/commonjs/components/Meeting.js.map +1 -1
  174. package/lib/commonjs/components/MenuModal/Menu.js +1 -2
  175. package/lib/commonjs/components/MenuModal/Menu.js.map +1 -1
  176. package/lib/commonjs/components/MiniView.js +163 -0
  177. package/lib/commonjs/components/MiniView.js.map +1 -0
  178. package/lib/commonjs/components/Modals.js +35 -380
  179. package/lib/commonjs/components/Modals.js.map +1 -1
  180. package/lib/commonjs/components/PaginationDots.js +56 -0
  181. package/lib/commonjs/components/PaginationDots.js.map +1 -0
  182. package/lib/commonjs/components/Participants/ParticipantsList.js +1 -20
  183. package/lib/commonjs/components/Participants/ParticipantsList.js.map +1 -1
  184. package/lib/commonjs/components/ParticipantsCount.js +55 -0
  185. package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
  186. package/lib/commonjs/components/PeerMinimizedView.js +114 -0
  187. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
  188. package/lib/commonjs/components/PeerSettingsModalContent.js +69 -63
  189. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  190. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
  191. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
  192. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
  193. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  194. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
  195. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  196. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
  197. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  198. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
  199. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  200. package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
  201. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
  202. package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
  203. package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
  204. package/lib/commonjs/components/PressableIcon.js +15 -8
  205. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  206. package/lib/commonjs/components/Preview.js +93 -72
  207. package/lib/commonjs/components/Preview.js.map +1 -1
  208. package/lib/commonjs/components/RoomSettingsModalContent.js +228 -457
  209. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  210. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
  211. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  212. package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
  213. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
  214. package/lib/commonjs/components/Tile.js +29 -90
  215. package/lib/commonjs/components/Tile.js.map +1 -1
  216. package/lib/commonjs/components/TilesContainer.js +99 -10
  217. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  218. package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
  219. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
  220. package/lib/commonjs/components/WebrtcView.js +51 -0
  221. package/lib/commonjs/components/WebrtcView.js.map +1 -0
  222. package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
  223. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
  224. package/lib/commonjs/components/index.js +0 -11
  225. package/lib/commonjs/components/index.js.map +1 -1
  226. package/lib/commonjs/hooks/useHmsInstance.js +0 -1
  227. package/lib/commonjs/hooks/useHmsInstance.js.map +1 -1
  228. package/lib/commonjs/hooks-sdk-selectors.js +6 -1
  229. package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
  230. package/lib/commonjs/hooks-sdk.js +16 -1
  231. package/lib/commonjs/hooks-sdk.js.map +1 -1
  232. package/lib/commonjs/hooks-util-selectors.js +14 -1
  233. package/lib/commonjs/hooks-util-selectors.js.map +1 -1
  234. package/lib/commonjs/hooks-util.js +421 -98
  235. package/lib/commonjs/hooks-util.js.map +1 -1
  236. package/lib/commonjs/modules/HMSManager.js +23 -0
  237. package/lib/commonjs/modules/HMSManager.js.map +1 -0
  238. package/lib/commonjs/modules/parser.js +22 -0
  239. package/lib/commonjs/modules/parser.js.map +1 -0
  240. package/lib/commonjs/peerTrackNodeUtils.js +8 -3
  241. package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
  242. package/lib/commonjs/redux/actionTypes.js +20 -1
  243. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  244. package/lib/commonjs/redux/actions/index.js +65 -1
  245. package/lib/commonjs/redux/actions/index.js.map +1 -1
  246. package/lib/commonjs/redux/reducers/appState.js +70 -1
  247. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  248. package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
  249. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  250. package/lib/commonjs/redux/reducers/userState.js +3 -1
  251. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  252. package/lib/commonjs/utils/functions.js +51 -1
  253. package/lib/commonjs/utils/functions.js.map +1 -1
  254. package/lib/commonjs/utils/theme.js +63 -8
  255. package/lib/commonjs/utils/theme.js.map +1 -1
  256. package/lib/commonjs/utils/types.js +8 -2
  257. package/lib/commonjs/utils/types.js.map +1 -1
  258. package/lib/commonjs/utils.js +2 -2
  259. package/lib/commonjs/utils.js.map +1 -1
  260. package/lib/module/HMSInstanceSetup.js +3 -15
  261. package/lib/module/HMSInstanceSetup.js.map +1 -1
  262. package/lib/module/HMSPrebuilt.js +17 -5
  263. package/lib/module/HMSPrebuilt.js.map +1 -1
  264. package/lib/module/HMSRoomSetup.js +81 -26
  265. package/lib/module/HMSRoomSetup.js.map +1 -1
  266. package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  267. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  268. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  269. package/lib/module/Icons/AlertTriangle/index.js +26 -0
  270. package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
  271. package/lib/module/Icons/AnswerPhone/index.js +5 -1
  272. package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
  273. package/lib/module/Icons/BRB/assets/BRB.png +0 -0
  274. package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
  275. package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
  276. package/lib/module/Icons/BRB/index.js +27 -0
  277. package/lib/module/Icons/BRB/index.js.map +1 -0
  278. package/lib/module/Icons/Bluetooth/index.js +5 -1
  279. package/lib/module/Icons/Bluetooth/index.js.map +1 -1
  280. package/lib/module/Icons/Camera/index.js +5 -1
  281. package/lib/module/Icons/Camera/index.js.map +1 -1
  282. package/lib/module/Icons/Chat/index.js +5 -1
  283. package/lib/module/Icons/Chat/index.js.map +1 -1
  284. package/lib/module/Icons/Check/assets/check.png +0 -0
  285. package/lib/module/Icons/Check/assets/check@2x.png +0 -0
  286. package/lib/module/Icons/Check/assets/check@3x.png +0 -0
  287. package/lib/module/Icons/Check/index.js +26 -0
  288. package/lib/module/Icons/Check/index.js.map +1 -0
  289. package/lib/module/Icons/Chevron/index.js +5 -1
  290. package/lib/module/Icons/Chevron/index.js.map +1 -1
  291. package/lib/module/Icons/Close/index.js +5 -1
  292. package/lib/module/Icons/Close/index.js.map +1 -1
  293. package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
  294. package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  295. package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  296. package/lib/module/Icons/Hamburger/index.js +26 -0
  297. package/lib/module/Icons/Hamburger/index.js.map +1 -0
  298. package/lib/module/Icons/Hand/index.js +6 -4
  299. package/lib/module/Icons/Hand/index.js.map +1 -1
  300. package/lib/module/Icons/Headphones/index.js +5 -1
  301. package/lib/module/Icons/Headphones/index.js.map +1 -1
  302. package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
  303. package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
  304. package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
  305. package/lib/module/Icons/Maximize/index.js +26 -0
  306. package/lib/module/Icons/Maximize/index.js.map +1 -0
  307. package/lib/module/Icons/Mic/index.js +5 -1
  308. package/lib/module/Icons/Mic/index.js.map +1 -1
  309. package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
  310. package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
  311. package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
  312. package/lib/module/Icons/Minimize/index.js +26 -0
  313. package/lib/module/Icons/Minimize/index.js.map +1 -0
  314. package/lib/module/Icons/Participants/index.js +5 -1
  315. package/lib/module/Icons/Participants/index.js.map +1 -1
  316. package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
  317. package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
  318. package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
  319. package/lib/module/Icons/Pencil/index.js +26 -0
  320. package/lib/module/Icons/Pencil/index.js.map +1 -0
  321. package/lib/module/Icons/Pin/assets/pin.png +0 -0
  322. package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
  323. package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
  324. package/lib/module/Icons/Pin/index.js +26 -0
  325. package/lib/module/Icons/Pin/index.js.map +1 -0
  326. package/lib/module/Icons/Radio/assets/radio.png +0 -0
  327. package/lib/module/Icons/Radio/assets/radio@2x.png +0 -0
  328. package/lib/module/Icons/Radio/assets/radio@3x.png +0 -0
  329. package/lib/module/Icons/Radio/index.js +22 -0
  330. package/lib/module/Icons/Radio/index.js.map +1 -0
  331. package/lib/module/Icons/Recording/assets/recording.png +0 -0
  332. package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
  333. package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
  334. package/lib/module/Icons/Recording/index.js +26 -0
  335. package/lib/module/Icons/Recording/index.js.map +1 -0
  336. package/lib/module/Icons/RotateCamera/index.js +5 -1
  337. package/lib/module/Icons/RotateCamera/index.js.map +1 -1
  338. package/lib/module/Icons/ScreenShare/index.js +5 -1
  339. package/lib/module/Icons/ScreenShare/index.js.map +1 -1
  340. package/lib/module/Icons/Speaker/index.js +5 -1
  341. package/lib/module/Icons/Speaker/index.js.map +1 -1
  342. package/lib/module/Icons/Star/assets/star.png +0 -0
  343. package/lib/module/Icons/Star/assets/star@2x.png +0 -0
  344. package/lib/module/Icons/Star/assets/star@3x.png +0 -0
  345. package/lib/module/Icons/Star/index.js +26 -0
  346. package/lib/module/Icons/Star/index.js.map +1 -0
  347. package/lib/module/Icons/Stop/assets/stop.png +0 -0
  348. package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
  349. package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
  350. package/lib/module/Icons/Stop/index.js +26 -0
  351. package/lib/module/Icons/Stop/index.js.map +1 -0
  352. package/lib/module/Icons/ThreeDots/index.js +5 -1
  353. package/lib/module/Icons/ThreeDots/index.js.map +1 -1
  354. package/lib/module/Icons/Wave/index.js +5 -1
  355. package/lib/module/Icons/Wave/index.js.map +1 -1
  356. package/lib/module/Icons/index.js +12 -0
  357. package/lib/module/Icons/index.js.map +1 -1
  358. package/lib/module/components/AvatarView.js +1 -2
  359. package/lib/module/components/AvatarView.js.map +1 -1
  360. package/lib/module/components/BackButton.js +9 -7
  361. package/lib/module/components/BackButton.js.map +1 -1
  362. package/lib/module/components/BottomSheet.js +146 -0
  363. package/lib/module/components/BottomSheet.js.map +1 -0
  364. package/lib/module/components/ChangeNameModalContent.js +122 -0
  365. package/lib/module/components/ChangeNameModalContent.js.map +1 -0
  366. package/lib/module/components/CompanyLogo.js +30 -0
  367. package/lib/module/components/CompanyLogo.js.map +1 -0
  368. package/lib/module/components/CustomInput.js +2 -3
  369. package/lib/module/components/CustomInput.js.map +1 -1
  370. package/lib/module/components/DisplayView.js +16 -61
  371. package/lib/module/components/DisplayView.js.map +1 -1
  372. package/lib/module/components/EndRoomModalContent.js +76 -0
  373. package/lib/module/components/EndRoomModalContent.js.map +1 -0
  374. package/lib/module/components/Footer.js +9 -10
  375. package/lib/module/components/Footer.js.map +1 -1
  376. package/lib/module/components/GridView.js +55 -10
  377. package/lib/module/components/GridView.js.map +1 -1
  378. package/lib/module/components/HMSBaseButton.js +57 -0
  379. package/lib/module/components/HMSBaseButton.js.map +1 -0
  380. package/lib/module/components/HMSDangerButton.js +44 -0
  381. package/lib/module/components/HMSDangerButton.js.map +1 -0
  382. package/lib/module/components/HMSHLSStreamLoading.js +56 -0
  383. package/lib/module/components/HMSHLSStreamLoading.js.map +1 -0
  384. package/lib/module/components/HMSLocalVideoView.js +32 -0
  385. package/lib/module/components/HMSLocalVideoView.js.map +1 -0
  386. package/lib/module/components/{HMSSpeakerSettings.js → HMSManageAudioOutput.js} +70 -77
  387. package/lib/module/components/HMSManageAudioOutput.js.map +1 -0
  388. package/lib/module/components/HMSManageCameraRotation.js +5 -4
  389. package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
  390. package/lib/module/components/HMSManageLeave.js +95 -161
  391. package/lib/module/components/HMSManageLeave.js.map +1 -1
  392. package/lib/module/components/HMSManageLocalAudio.js +1 -9
  393. package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
  394. package/lib/module/components/HMSManageLocalVideo.js +1 -9
  395. package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
  396. package/lib/module/components/HMSMeetingEnded.js +26 -0
  397. package/lib/module/components/HMSMeetingEnded.js.map +1 -0
  398. package/lib/module/components/HMSPreviewEditName.js +7 -38
  399. package/lib/module/components/HMSPreviewEditName.js.map +1 -1
  400. package/lib/module/components/HMSPreviewHLSLiveIndicator.js +62 -0
  401. package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -0
  402. package/lib/module/components/HMSPreviewJoinButton.js +28 -39
  403. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  404. package/lib/module/components/HMSPreviewNetworkQuality.js +36 -0
  405. package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -0
  406. package/lib/module/components/HMSPreviewPeersList.js +21 -33
  407. package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
  408. package/lib/module/components/HMSPreviewSubtitle.js +43 -7
  409. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  410. package/lib/module/components/HMSPreviewTile.js +18 -26
  411. package/lib/module/components/HMSPreviewTile.js.map +1 -1
  412. package/lib/module/components/HMSPreviewTitle.js +14 -6
  413. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  414. package/lib/module/components/HMSPrimaryButton.js +44 -0
  415. package/lib/module/components/HMSPrimaryButton.js.map +1 -0
  416. package/lib/module/components/HMSRecordingIndicator.js +37 -0
  417. package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
  418. package/lib/module/components/HMSRoomOptions.js +23 -11
  419. package/lib/module/components/HMSRoomOptions.js.map +1 -1
  420. package/lib/module/components/HMSShowNetworkQuality.js +6 -7
  421. package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
  422. package/lib/module/components/HMSTextInput.js +57 -0
  423. package/lib/module/components/HMSTextInput.js.map +1 -0
  424. package/lib/module/components/Header.js +32 -32
  425. package/lib/module/components/Header.js.map +1 -1
  426. package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
  427. package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
  428. package/lib/module/components/LocalPeerScreenshareView.js +66 -0
  429. package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
  430. package/lib/module/components/Meeting.js +15 -4
  431. package/lib/module/components/Meeting.js.map +1 -1
  432. package/lib/module/components/MenuModal/Menu.js +1 -2
  433. package/lib/module/components/MenuModal/Menu.js.map +1 -1
  434. package/lib/module/components/MiniView.js +154 -0
  435. package/lib/module/components/MiniView.js.map +1 -0
  436. package/lib/module/components/Modals.js +37 -378
  437. package/lib/module/components/Modals.js.map +1 -1
  438. package/lib/module/components/PaginationDots.js +47 -0
  439. package/lib/module/components/PaginationDots.js.map +1 -0
  440. package/lib/module/components/Participants/ParticipantsList.js +1 -20
  441. package/lib/module/components/Participants/ParticipantsList.js.map +1 -1
  442. package/lib/module/components/ParticipantsCount.js +46 -0
  443. package/lib/module/components/ParticipantsCount.js.map +1 -0
  444. package/lib/module/components/PeerMinimizedView.js +104 -0
  445. package/lib/module/components/PeerMinimizedView.js.map +1 -0
  446. package/lib/module/components/PeerSettingsModalContent.js +72 -66
  447. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  448. package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
  449. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
  450. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
  451. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  452. package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
  453. package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  454. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
  455. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  456. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
  457. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  458. package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
  459. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
  460. package/lib/module/components/PeerVideoTile/index.js +2 -0
  461. package/lib/module/components/PeerVideoTile/index.js.map +1 -0
  462. package/lib/module/components/PressableIcon.js +15 -8
  463. package/lib/module/components/PressableIcon.js.map +1 -1
  464. package/lib/module/components/Preview.js +93 -72
  465. package/lib/module/components/Preview.js.map +1 -1
  466. package/lib/module/components/RoomSettingsModalContent.js +231 -459
  467. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  468. package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
  469. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  470. package/lib/module/components/StopRecordingModalContent.js +88 -0
  471. package/lib/module/components/StopRecordingModalContent.js.map +1 -0
  472. package/lib/module/components/Tile.js +30 -91
  473. package/lib/module/components/Tile.js.map +1 -1
  474. package/lib/module/components/TilesContainer.js +100 -10
  475. package/lib/module/components/TilesContainer.js.map +1 -1
  476. package/lib/module/components/UnmountAfterDelay.js +39 -0
  477. package/lib/module/components/UnmountAfterDelay.js.map +1 -0
  478. package/lib/module/components/WebrtcView.js +41 -0
  479. package/lib/module/components/WebrtcView.js.map +1 -0
  480. package/lib/module/components/WelcomeInMeeting.js +45 -0
  481. package/lib/module/components/WelcomeInMeeting.js.map +1 -0
  482. package/lib/module/components/index.js +0 -1
  483. package/lib/module/components/index.js.map +1 -1
  484. package/lib/module/hooks/useHmsInstance.js +0 -1
  485. package/lib/module/hooks/useHmsInstance.js.map +1 -1
  486. package/lib/module/hooks-sdk-selectors.js +4 -0
  487. package/lib/module/hooks-sdk-selectors.js.map +1 -1
  488. package/lib/module/hooks-sdk.js +16 -1
  489. package/lib/module/hooks-sdk.js.map +1 -1
  490. package/lib/module/hooks-util-selectors.js +12 -0
  491. package/lib/module/hooks-util-selectors.js.map +1 -1
  492. package/lib/module/hooks-util.js +417 -104
  493. package/lib/module/hooks-util.js.map +1 -1
  494. package/lib/module/modules/HMSManager.js +17 -0
  495. package/lib/module/modules/HMSManager.js.map +1 -0
  496. package/lib/module/modules/parser.js +16 -0
  497. package/lib/module/modules/parser.js.map +1 -0
  498. package/lib/module/peerTrackNodeUtils.js +6 -2
  499. package/lib/module/peerTrackNodeUtils.js.map +1 -1
  500. package/lib/module/redux/actionTypes.js +20 -1
  501. package/lib/module/redux/actionTypes.js.map +1 -1
  502. package/lib/module/redux/actions/index.js +54 -0
  503. package/lib/module/redux/actions/index.js.map +1 -1
  504. package/lib/module/redux/reducers/appState.js +70 -1
  505. package/lib/module/redux/reducers/appState.js.map +1 -1
  506. package/lib/module/redux/reducers/hmsStates.js +7 -1
  507. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  508. package/lib/module/redux/reducers/userState.js +3 -1
  509. package/lib/module/redux/reducers/userState.js.map +1 -1
  510. package/lib/module/utils/functions.js +47 -0
  511. package/lib/module/utils/functions.js.map +1 -1
  512. package/lib/module/utils/theme.js +58 -5
  513. package/lib/module/utils/theme.js.map +1 -1
  514. package/lib/module/utils/types.js +6 -1
  515. package/lib/module/utils/types.js.map +1 -1
  516. package/lib/module/utils.js +2 -2
  517. package/lib/module/utils.js.map +1 -1
  518. package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
  519. package/lib/typescript/HMSPrebuilt.d.ts +3 -3
  520. package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
  521. package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
  522. package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
  523. package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
  524. package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
  525. package/lib/typescript/Icons/BRB/index.d.ts +7 -0
  526. package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
  527. package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
  528. package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
  529. package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
  530. package/lib/typescript/Icons/Check/index.d.ts +7 -0
  531. package/lib/typescript/Icons/Check/index.d.ts.map +1 -0
  532. package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
  533. package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
  534. package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
  535. package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
  536. package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
  537. package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
  538. package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
  539. package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
  540. package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
  541. package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
  542. package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
  543. package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
  544. package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
  545. package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
  546. package/lib/typescript/Icons/Pin/index.d.ts +7 -0
  547. package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
  548. package/lib/typescript/Icons/Radio/index.d.ts +7 -0
  549. package/lib/typescript/Icons/Radio/index.d.ts.map +1 -0
  550. package/lib/typescript/Icons/Recording/index.d.ts +7 -0
  551. package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
  552. package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
  553. package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
  554. package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
  555. package/lib/typescript/Icons/Star/index.d.ts +7 -0
  556. package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
  557. package/lib/typescript/Icons/Stop/index.d.ts +7 -0
  558. package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
  559. package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
  560. package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
  561. package/lib/typescript/Icons/index.d.ts +12 -0
  562. package/lib/typescript/Icons/index.d.ts.map +1 -1
  563. package/lib/typescript/components/BackButton.d.ts.map +1 -1
  564. package/lib/typescript/components/BottomSheet.d.ts +25 -0
  565. package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
  566. package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
  567. package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
  568. package/lib/typescript/components/CompanyLogo.d.ts +7 -0
  569. package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
  570. package/lib/typescript/components/CustomInput.d.ts +1 -1
  571. package/lib/typescript/components/CustomInput.d.ts.map +1 -1
  572. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  573. package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
  574. package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
  575. package/lib/typescript/components/Footer.d.ts.map +1 -1
  576. package/lib/typescript/components/GridView.d.ts +3 -4
  577. package/lib/typescript/components/GridView.d.ts.map +1 -1
  578. package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
  579. package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
  580. package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
  581. package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
  582. package/lib/typescript/components/HMSHLSStreamLoading.d.ts +3 -0
  583. package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -0
  584. package/lib/typescript/components/HMSLocalVideoView.d.ts +3 -0
  585. package/lib/typescript/components/HMSLocalVideoView.d.ts.map +1 -0
  586. package/lib/typescript/components/HMSManageAudioOutput.d.ts +3 -0
  587. package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -0
  588. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  589. package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
  590. package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
  591. package/lib/typescript/components/HMSMeetingEnded.d.ts +3 -0
  592. package/lib/typescript/components/HMSMeetingEnded.d.ts.map +1 -0
  593. package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
  594. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts +3 -0
  595. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -0
  596. package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
  597. package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts +3 -0
  598. package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -0
  599. package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
  600. package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
  601. package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
  602. package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
  603. package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
  604. package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
  605. package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
  606. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
  607. package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
  608. package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
  609. package/lib/typescript/components/HMSTextInput.d.ts +10 -0
  610. package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
  611. package/lib/typescript/components/Header.d.ts.map +1 -1
  612. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
  613. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
  614. package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
  615. package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
  616. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  617. package/lib/typescript/components/MenuModal/Menu.d.ts.map +1 -1
  618. package/lib/typescript/components/MiniView.d.ts +9 -0
  619. package/lib/typescript/components/MiniView.d.ts.map +1 -0
  620. package/lib/typescript/components/Modals.d.ts +1 -16
  621. package/lib/typescript/components/Modals.d.ts.map +1 -1
  622. package/lib/typescript/components/PaginationDots.d.ts +6 -0
  623. package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
  624. package/lib/typescript/components/Participants/ParticipantsList.d.ts.map +1 -1
  625. package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
  626. package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
  627. package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
  628. package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
  629. package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
  630. package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
  631. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
  632. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
  633. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
  634. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
  635. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
  636. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
  637. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
  638. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
  639. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
  640. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
  641. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
  642. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
  643. package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
  644. package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
  645. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  646. package/lib/typescript/components/Preview.d.ts.map +1 -1
  647. package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
  648. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  649. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
  650. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
  651. package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
  652. package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
  653. package/lib/typescript/components/Tile.d.ts +12 -3
  654. package/lib/typescript/components/Tile.d.ts.map +1 -1
  655. package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
  656. package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
  657. package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
  658. package/lib/typescript/components/WebrtcView.d.ts +10 -0
  659. package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
  660. package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
  661. package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
  662. package/lib/typescript/components/index.d.ts +0 -1
  663. package/lib/typescript/components/index.d.ts.map +1 -1
  664. package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
  665. package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
  666. package/lib/typescript/hooks-sdk.d.ts +1 -0
  667. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  668. package/lib/typescript/hooks-util-selectors.d.ts +2 -0
  669. package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
  670. package/lib/typescript/hooks-util.d.ts +24 -4
  671. package/lib/typescript/hooks-util.d.ts.map +1 -1
  672. package/lib/typescript/modules/HMSManager.d.ts +4 -0
  673. package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
  674. package/lib/typescript/modules/parser.d.ts +3 -0
  675. package/lib/typescript/modules/parser.d.ts.map +1 -0
  676. package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
  677. package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
  678. package/lib/typescript/redux/actionTypes.d.ts +11 -1
  679. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  680. package/lib/typescript/redux/actions/index.d.ts +61 -3
  681. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  682. package/lib/typescript/redux/index.d.ts +10 -1
  683. package/lib/typescript/redux/index.d.ts.map +1 -1
  684. package/lib/typescript/redux/reducers/appState.d.ts +8 -0
  685. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  686. package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
  687. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  688. package/lib/typescript/redux/reducers/index.d.ts +10 -1
  689. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  690. package/lib/typescript/redux/reducers/userState.d.ts +3 -2
  691. package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
  692. package/lib/typescript/utils/functions.d.ts +14 -0
  693. package/lib/typescript/utils/functions.d.ts.map +1 -1
  694. package/lib/typescript/utils/theme.d.ts +7 -3
  695. package/lib/typescript/utils/theme.d.ts.map +1 -1
  696. package/lib/typescript/utils/types.d.ts +8 -4
  697. package/lib/typescript/utils/types.d.ts.map +1 -1
  698. package/package.json +11 -16
  699. package/src/HMSInstanceSetup.tsx +5 -31
  700. package/src/HMSPrebuilt.tsx +27 -8
  701. package/src/HMSRoomSetup.tsx +98 -23
  702. package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  703. package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  704. package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  705. package/src/Icons/AlertTriangle/index.tsx +33 -0
  706. package/src/Icons/AnswerPhone/index.tsx +7 -1
  707. package/src/Icons/BRB/assets/BRB.png +0 -0
  708. package/src/Icons/BRB/assets/BRB@2x.png +0 -0
  709. package/src/Icons/BRB/assets/BRB@3x.png +0 -0
  710. package/src/Icons/BRB/index.tsx +31 -0
  711. package/src/Icons/Bluetooth/index.tsx +7 -1
  712. package/src/Icons/Camera/index.tsx +7 -1
  713. package/src/Icons/Chat/index.tsx +7 -1
  714. package/src/Icons/Check/assets/check.png +0 -0
  715. package/src/Icons/Check/assets/check@2x.png +0 -0
  716. package/src/Icons/Check/assets/check@3x.png +0 -0
  717. package/src/Icons/Check/index.tsx +33 -0
  718. package/src/Icons/Chevron/index.tsx +7 -1
  719. package/src/Icons/Close/index.tsx +7 -1
  720. package/src/Icons/Hamburger/assets/hamburger.png +0 -0
  721. package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  722. package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  723. package/src/Icons/Hamburger/index.tsx +33 -0
  724. package/src/Icons/Hand/index.tsx +6 -3
  725. package/src/Icons/Headphones/index.tsx +7 -1
  726. package/src/Icons/Maximize/assets/maximize.png +0 -0
  727. package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
  728. package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
  729. package/src/Icons/Maximize/index.tsx +33 -0
  730. package/src/Icons/Mic/index.tsx +7 -1
  731. package/src/Icons/Minimize/assets/minimize.png +0 -0
  732. package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
  733. package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
  734. package/src/Icons/Minimize/index.tsx +33 -0
  735. package/src/Icons/Participants/index.tsx +7 -1
  736. package/src/Icons/Pencil/assets/pencil.png +0 -0
  737. package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
  738. package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
  739. package/src/Icons/Pencil/index.tsx +33 -0
  740. package/src/Icons/Pin/assets/pin.png +0 -0
  741. package/src/Icons/Pin/assets/pin@2x.png +0 -0
  742. package/src/Icons/Pin/assets/pin@3x.png +0 -0
  743. package/src/Icons/Pin/index.tsx +30 -0
  744. package/src/Icons/Radio/assets/radio.png +0 -0
  745. package/src/Icons/Radio/assets/radio@2x.png +0 -0
  746. package/src/Icons/Radio/assets/radio@3x.png +0 -0
  747. package/src/Icons/Radio/index.tsx +27 -0
  748. package/src/Icons/Recording/assets/recording.png +0 -0
  749. package/src/Icons/Recording/assets/recording@2x.png +0 -0
  750. package/src/Icons/Recording/assets/recording@3x.png +0 -0
  751. package/src/Icons/Recording/index.tsx +33 -0
  752. package/src/Icons/RotateCamera/index.tsx +7 -1
  753. package/src/Icons/ScreenShare/index.tsx +7 -1
  754. package/src/Icons/Speaker/index.tsx +12 -1
  755. package/src/Icons/Star/assets/star.png +0 -0
  756. package/src/Icons/Star/assets/star@2x.png +0 -0
  757. package/src/Icons/Star/assets/star@3x.png +0 -0
  758. package/src/Icons/Star/index.tsx +30 -0
  759. package/src/Icons/Stop/assets/stop.png +0 -0
  760. package/src/Icons/Stop/assets/stop@2x.png +0 -0
  761. package/src/Icons/Stop/assets/stop@3x.png +0 -0
  762. package/src/Icons/Stop/index.tsx +33 -0
  763. package/src/Icons/ThreeDots/index.tsx +7 -1
  764. package/src/Icons/Wave/index.tsx +7 -1
  765. package/src/Icons/index.ts +12 -0
  766. package/src/components/AvatarView.tsx +1 -2
  767. package/src/components/BackButton.tsx +9 -6
  768. package/src/components/BottomSheet.tsx +191 -0
  769. package/src/components/ChangeNameModalContent.tsx +157 -0
  770. package/src/components/CompanyLogo.tsx +35 -0
  771. package/src/components/CustomInput.tsx +2 -3
  772. package/src/components/DisplayView.tsx +16 -75
  773. package/src/components/EndRoomModalContent.tsx +90 -0
  774. package/src/components/Footer.tsx +7 -7
  775. package/src/components/GridView.tsx +91 -20
  776. package/src/components/HLSView.tsx +1 -1
  777. package/src/components/HMSBaseButton.tsx +91 -0
  778. package/src/components/HMSDangerButton.tsx +65 -0
  779. package/src/components/HMSHLSStreamLoading.tsx +68 -0
  780. package/src/components/HMSLocalVideoView.tsx +42 -0
  781. package/src/components/{HMSSpeakerSettings.tsx → HMSManageAudioOutput.tsx} +99 -78
  782. package/src/components/HMSManageCameraRotation.tsx +11 -8
  783. package/src/components/HMSManageLeave.tsx +107 -183
  784. package/src/components/HMSManageLocalAudio.tsx +1 -10
  785. package/src/components/HMSManageLocalVideo.tsx +1 -10
  786. package/src/components/HMSMeetingEnded.tsx +28 -0
  787. package/src/components/HMSPreviewEditName.tsx +4 -45
  788. package/src/components/HMSPreviewHLSLiveIndicator.tsx +66 -0
  789. package/src/components/HMSPreviewJoinButton.tsx +36 -51
  790. package/src/components/HMSPreviewNetworkQuality.tsx +43 -0
  791. package/src/components/HMSPreviewPeersList.tsx +25 -54
  792. package/src/components/HMSPreviewSubtitle.tsx +46 -6
  793. package/src/components/HMSPreviewTile.tsx +20 -31
  794. package/src/components/HMSPreviewTitle.tsx +18 -5
  795. package/src/components/HMSPrimaryButton.tsx +63 -0
  796. package/src/components/HMSRecordingIndicator.tsx +37 -0
  797. package/src/components/HMSRoomOptions.tsx +30 -16
  798. package/src/components/HMSShowNetworkQuality.tsx +7 -6
  799. package/src/components/HMSTextInput.tsx +78 -0
  800. package/src/components/Header.tsx +37 -36
  801. package/src/components/LocalPeerRegularVideoView.tsx +28 -0
  802. package/src/components/LocalPeerScreenshareView.tsx +72 -0
  803. package/src/components/Meeting.tsx +21 -3
  804. package/src/components/MenuModal/Menu.tsx +1 -1
  805. package/src/components/MiniView.tsx +213 -0
  806. package/src/components/Modals.tsx +5 -409
  807. package/src/components/PaginationDots.tsx +65 -0
  808. package/src/components/Participants/ParticipantsList.tsx +0 -24
  809. package/src/components/ParticipantsCount.tsx +52 -0
  810. package/src/components/PeerMinimizedView.tsx +131 -0
  811. package/src/components/PeerSettingsModalContent.tsx +108 -66
  812. package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
  813. package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
  814. package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
  815. package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
  816. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
  817. package/src/components/PeerVideoTile/VideoView.tsx +104 -0
  818. package/src/components/PeerVideoTile/index.ts +0 -0
  819. package/src/components/PressableIcon.tsx +15 -8
  820. package/src/components/Preview.tsx +150 -104
  821. package/src/components/RoomSettingsModalContent.tsx +234 -659
  822. package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
  823. package/src/components/StopRecordingModalContent.tsx +109 -0
  824. package/src/components/Tile.tsx +49 -90
  825. package/src/components/TilesContainer.tsx +116 -14
  826. package/src/components/UnmountAfterDelay.tsx +61 -0
  827. package/src/components/WebrtcView.tsx +72 -0
  828. package/src/components/WelcomeInMeeting.tsx +52 -0
  829. package/src/components/index.ts +0 -1
  830. package/src/hooks/useHmsInstance.ts +0 -1
  831. package/src/hooks-sdk-selectors.tsx +7 -0
  832. package/src/hooks-sdk.ts +18 -0
  833. package/src/hooks-util-selectors.tsx +21 -0
  834. package/src/hooks-util.ts +548 -130
  835. package/src/modules/HMSManager.ts +25 -0
  836. package/src/modules/parser.ts +22 -0
  837. package/src/peerTrackNodeUtils.tsx +13 -10
  838. package/src/redux/actionTypes.ts +28 -0
  839. package/src/redux/actions/index.ts +64 -2
  840. package/src/redux/reducers/appState.ts +65 -0
  841. package/src/redux/reducers/hmsStates.ts +15 -1
  842. package/src/redux/reducers/userState.ts +5 -2
  843. package/src/utils/functions.ts +48 -0
  844. package/src/utils/theme.ts +75 -5
  845. package/src/utils/types.ts +9 -4
  846. package/src/utils.ts +2 -2
  847. package/lib/commonjs/components/HMSSpeakerSettings.js.map +0 -1
  848. package/lib/commonjs/components/ZoomableView.js +0 -84
  849. package/lib/commonjs/components/ZoomableView.js.map +0 -1
  850. package/lib/module/components/HMSSpeakerSettings.js.map +0 -1
  851. package/lib/module/components/ZoomableView.js +0 -76
  852. package/lib/module/components/ZoomableView.js.map +0 -1
  853. package/lib/typescript/components/HMSSpeakerSettings.d.ts +0 -3
  854. package/lib/typescript/components/HMSSpeakerSettings.d.ts.map +0 -1
  855. package/lib/typescript/components/ZoomableView.d.ts +0 -6
  856. package/lib/typescript/components/ZoomableView.d.ts.map +0 -1
  857. package/src/components/ZoomableView.tsx +0 -91
@@ -1,505 +1,277 @@
1
- import React, { useRef } from 'react';
2
- import { View, StyleSheet, Text, Platform, ScrollView, Image, TouchableOpacity, Alert, InteractionManager } from 'react-native';
3
- import { HMSAudioFilePlayerNode, HMSUpdateListenerActions } from '@100mslive/react-native-hms';
1
+ import * as React from 'react';
2
+ import { View, StyleSheet, Text, TouchableOpacity } from 'react-native';
4
3
  import { useDispatch, useSelector } from 'react-redux';
5
- import Toast from 'react-native-simple-toast';
6
- import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
7
- import Ionicons from 'react-native-vector-icons/Ionicons';
8
- import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
9
- import EntypoIcons from 'react-native-vector-icons/Entypo';
10
- import DocumentPicker from 'react-native-document-picker';
11
- import { openSettings, requestNotifications } from 'react-native-permissions';
12
- import { COLORS } from '../utils/theme';
13
- import { changePipModeStatus, changeEnableHLSPlayerControls, changeShowHLSStats, changeShowCustomHLSPlayerControls } from '../redux/actions';
14
- import { ModalTypes, PipModes } from '../utils/types';
15
- import { parseMetadata } from '../utils/functions';
16
- import { getJoinConfig } from '../utils';
17
- import { HMSShareScreen } from './HMSShareScreen';
18
- import { ScreenShareIcon } from '../Icons';
19
- export const RoomSettingsModalContent = _ref => {
20
- var _localPeerRole$name, _localPeerRole$name2, _localPeerRole$permis, _localPeerRole$permis2, _localPeerRole$permis3, _localPeerRole$permis4, _localPeerRole$permis5, _localPeerRole$permis6, _localPeerRole$publis, _localPeerRole$name3, _localPeerRole$publis2, _localPeerRole$publis3;
21
- let {
22
- newAudioMixingMode,
23
- isAudioShared,
24
- //
25
- audioDeviceListenerAdded,
26
- muteAllTracksAudio,
4
+ import { ModalTypes } from '../utils/types';
5
+ import { groupIntoTriplets, parseMetadata } from '../utils/functions';
6
+ import { BRBIcon, HandIcon, ParticipantsIcon, PencilIcon, RecordingIcon, ScreenShareIcon } from '../Icons';
7
+ import { BottomSheet, useBottomSheetActions } from './BottomSheet';
8
+ import { useHMSInstance, useHMSRoomStyleSheet } from '../hooks-util';
9
+ import { useCanPublishScreen, useHMSActions } from '../hooks-sdk';
10
+ import { RoomSettingsModalDebugModeContent } from './RoomSettingsModalDebugModeContent';
11
+ import { setStartingOrStoppingRecording } from '../redux/actions';
12
+ import { ParticipantsCount } from './ParticipantsCount';
13
+ export const RoomSettingsModalContent = props => {
14
+ const {
27
15
  closeRoomSettingsModal,
28
- setModalVisible,
29
- setIsAudioShared,
30
- setAudioDeviceListenerAdded,
31
- setMuteAllTracksAudio
32
- } = _ref;
33
- // REFS
34
- const audioFilePlayerNodeRef = useRef(new HMSAudioFilePlayerNode('audio_file_player_node'));
35
-
36
- // REDUX STATES & DISPATCH
16
+ setModalVisible
17
+ } = props;
37
18
  const dispatch = useDispatch();
38
- const hmsInstance = useSelector(state => state.user.hmsInstance);
19
+ const hmsInstance = useHMSInstance();
39
20
  const debugMode = useSelector(state => state.user.debugMode);
40
- const localPeerRole = useSelector(state => {
41
- var _state$hmsStates$loca;
42
- return (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.role;
43
- });
44
- const localPeerMetadata = useSelector(state => {
45
- var _state$hmsStates$loca2;
46
- return (_state$hmsStates$loca2 = state.hmsStates.localPeer) === null || _state$hmsStates$loca2 === void 0 ? void 0 : _state$hmsStates$loca2.metadata;
47
- });
48
- const isHLSStreaming = useSelector(state => {
49
- var _state$hmsStates$room;
50
- return ((_state$hmsStates$room = state.hmsStates.room) === null || _state$hmsStates$room === void 0 || (_state$hmsStates$room = _state$hmsStates$room.hlsStreamingState) === null || _state$hmsStates$room === void 0 ? void 0 : _state$hmsStates$room.running) ?? false;
51
- });
52
- const rtmpAndRecording = useSelector(state => {
53
- var _state$hmsStates$room2;
54
- return ((_state$hmsStates$room2 = state.hmsStates.room) === null || _state$hmsStates$room2 === void 0 || (_state$hmsStates$room2 = _state$hmsStates$room2.browserRecordingState) === null || _state$hmsStates$room2 === void 0 ? void 0 : _state$hmsStates$room2.running) ?? false;
55
- });
56
- const pipModeStatus = useSelector(state => state.app.pipModeStatus);
57
- const showHLSStats = useSelector(state => state.app.joinConfig.showHLSStats);
58
- const enableHLSPlayerControls = useSelector(state => state.app.joinConfig.enableHLSPlayerControls);
59
- const showCustomHLSPlayerControls = useSelector(state => state.app.joinConfig.showCustomHLSPlayerControls);
60
-
61
- // CONSTANTS
62
- const parsedMetadata = parseMetadata(localPeerMetadata);
63
- const isPipModeUnavailable = pipModeStatus === PipModes.NOT_AVAILABLE;
21
+ const hmsActions = useHMSActions();
22
+ const {
23
+ registerOnModalHideAction
24
+ } = useBottomSheetActions();
64
25
 
65
- //#region FUNCTIONS
66
- const handleBRB = async () => {
67
- closeRoomSettingsModal();
68
- await (hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.changeMetadata(JSON.stringify({
69
- ...parsedMetadata,
70
- isBRBOn: !(parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isBRBOn),
71
- isHandRaised: false
72
- })).then(d => console.log('Change Metadata Success: ', d)).catch(e => console.log('Change Metadata Error: ', e)));
73
- };
74
- const onRaiseHandPress = async () => {
75
- closeRoomSettingsModal();
76
- await (hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.changeMetadata(JSON.stringify({
77
- ...parsedMetadata,
78
- isHandRaised: !(parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isHandRaised),
79
- isBRBOn: false
80
- })).then(d => console.log('Change Metadata Success: ', d)).catch(e => console.log('Change Metadata Error: ', e)));
81
- };
26
+ // #region Participants realted states and functions
82
27
  const onParticipantsPress = () => {
83
- InteractionManager.runAfterInteractions(() => {
84
- setModalVisible(ModalTypes.PARTICIPANTS, true);
28
+ // Register callback to be called when bottom sheet is hiddden
29
+ registerOnModalHideAction(() => {
30
+ setModalVisible(ModalTypes.PARTICIPANTS);
85
31
  });
86
- };
87
- const enterPipMode = async () => {
88
- if (isPipModeUnavailable) {
89
- return console.log('PIP mode unavailable on Deice!');
90
- }
91
- closeRoomSettingsModal();
92
- try {
93
- const isEnabled = await (hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.enablePipMode({
94
- aspectRatio: [16, 9],
95
- // for 16:9 aspect ratio
96
- endButton: true,
97
- videoButton: true,
98
- audioButton: true
99
- }));
100
- if (isEnabled === true) {
101
- dispatch(changePipModeStatus(PipModes.ACTIVE));
102
- }
103
- } catch (error) {
104
- console.log(error);
105
- }
106
- };
107
- const handleLocalRemoteAudiosMute = () => {
108
- closeRoomSettingsModal();
109
- hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.setPlaybackForAllAudio(!muteAllTracksAudio);
110
- setMuteAllTracksAudio(!muteAllTracksAudio);
111
- };
112
- const handleRemoteAudiosMute = async () => {
113
- closeRoomSettingsModal();
114
- await (hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.remoteMuteAllAudio().then(d => console.log('Remote Mute All Audio Success: ', d)).catch(e => console.log('Remote Mute All Audio Error: ', e)));
115
- };
116
- const handleHLSStreaming = () => {
117
- if (isHLSStreaming) {
118
- closeRoomSettingsModal();
119
- hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.stopHLSStreaming().then(d => console.log('Stop HLS Streaming Success: ', d)).catch(e => console.log('Stop HLS Streaming Error: ', e));
120
- } else {
121
- setModalVisible(ModalTypes.HLS_STREAMING, true);
122
- }
123
- };
124
- const handleRTMPAndRecording = () => {
125
- if (rtmpAndRecording) {
126
- closeRoomSettingsModal();
127
- hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.stopRtmpAndRecording().then(d => console.log('Stop RTMP And Recording Success: ', d)).catch(e => console.log('Stop RTMP And Recording Error: ', e));
128
- } else {
129
- setModalVisible(ModalTypes.RECORDING, true);
130
- }
131
- };
132
- const addRemoveAudioDeviceChangeListener = () => {
133
- closeRoomSettingsModal();
134
- if (hmsInstance) {
135
- if (audioDeviceListenerAdded) {
136
- setAudioDeviceListenerAdded(false);
137
- hmsInstance.removeEventListener(HMSUpdateListenerActions.ON_AUDIO_DEVICE_CHANGED);
138
- } else {
139
- setAudioDeviceListenerAdded(true);
140
- hmsInstance.setAudioDeviceChangeListener(data => {
141
- Toast.showWithGravity(`Audio Device Output changed to ${data === null || data === void 0 ? void 0 : data.device}`, Toast.LONG, Toast.TOP);
142
- });
143
- }
144
- }
145
- };
146
- const changeBulkRole = () => setModalVisible(ModalTypes.BULK_ROLE_CHANGE, true);
147
- const changeTrackState = () => setModalVisible(ModalTypes.CHANGE_TRACK_ROLE, true);
148
- const switchAudioOutput = () => {
149
- if (Platform.OS === 'android') {
150
- setModalVisible(ModalTypes.SWITCH_AUDIO_OUTPUT, true);
151
- } else {
152
- closeRoomSettingsModal();
153
- hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.switchAudioOutputUsingIOSUI();
154
- }
155
- };
156
- const changeAudioMode = () => setModalVisible(ModalTypes.CHANGE_AUDIO_MODE, true);
157
- const setAudioMixingMode = () => setModalVisible(ModalTypes.AUDIO_MIXING_MODE, true);
158
- const handleHLSPlayerAspectRatio = () => {
159
- setModalVisible(ModalTypes.HLS_PLAYER_ASPECT_RATIO, true);
160
- };
161
- const showRTCStats = () => setModalVisible(ModalTypes.RTC_STATS, true);
162
- const toggleShowHLSStats = () => {
163
- dispatch(changeShowHLSStats(!showHLSStats));
164
- setModalVisible(ModalTypes.DEFAULT);
165
- };
166
- const toggleEnableHLSPlayerControls = () => {
167
- dispatch(changeEnableHLSPlayerControls(!enableHLSPlayerControls));
168
- setModalVisible(ModalTypes.DEFAULT);
169
- };
170
- const toggleShowCustomHLSPlayerControls = () => {
171
- dispatch(changeShowCustomHLSPlayerControls(!showCustomHLSPlayerControls));
172
- setModalVisible(ModalTypes.DEFAULT);
173
- };
174
-
175
- // Android Audioshare
176
- const handleAudioShare = async () => {
177
- closeRoomSettingsModal();
178
- if (isAudioShared) {
179
- hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.stopAudioshare().then(d => {
180
- setIsAudioShared(false);
181
- console.log('Stop Audioshare Success: ', d);
182
- }).catch(e => console.log('Stop Audioshare Error: ', e));
183
- } else {
184
- // check notification permission on android platform
185
- // Audio share feature needs foreground service running. for Foreground service to keep running, we need active notification.
186
- if (Platform.OS === 'android') {
187
- const result = await requestNotifications(['alert', 'sound']);
188
- console.log('Notification Permission Result: ', result);
189
- if (result.status === 'blocked') {
190
- Alert.alert('Notification Permission is Blocked!', '100ms SDK needs notification permission to start audio share. Please allow notification from settings and try again!', [{
191
- text: 'cancel'
192
- }, {
193
- text: 'Go to Settings',
194
- onPress: () => openSettings()
195
- }], {
196
- cancelable: true
197
- });
198
- return;
199
- }
200
- }
201
- hmsInstance === null || hmsInstance === void 0 ? void 0 : hmsInstance.startAudioshare(newAudioMixingMode).then(d => {
202
- setIsAudioShared(true);
203
- console.log('Start Audioshare Success: ', d);
204
- }).catch(e => console.log('Start Audioshare Error: ', e));
205
- }
206
- };
207
-
208
- // iOS Audioshare
209
- const setAudioShareVolume = () => setModalVisible(ModalTypes.SET_AUDIO_SHARE_VOLUME, true);
210
32
 
211
- // iOS Audioshare
212
- const playAudioShare = () => {
33
+ // Close the current bottom sheet
213
34
  closeRoomSettingsModal();
214
- setTimeout(() => {
215
- DocumentPicker.pickSingle().then(result => {
216
- console.log('Document Picker Success: ', result);
217
- audioFilePlayerNodeRef.current.play(result === null || result === void 0 ? void 0 : result.uri, false, false).then(d => {
218
- console.log('Start Audioshare Success: ', d);
219
- }).catch(e => console.log('Start Audioshare Error: ', e));
220
- }).catch(e => console.log('Document Picker Error: ', e));
221
- }, 500);
222
35
  };
36
+ // #endregion
223
37
 
224
- // iOS Audioshare
225
- const stopAudioShare = () => {
38
+ // #region Screen Share related states and functions
39
+ const canPublishScreen = useCanPublishScreen();
40
+ const isLocalScreenShared = useSelector(state => state.hmsStates.isLocalScreenShared);
41
+ const handleScreenShareTogglePress = async () => {
226
42
  closeRoomSettingsModal();
227
- audioFilePlayerNodeRef.current.stop();
43
+ await hmsActions.setScreenShareEnabled(!isLocalScreenShared);
228
44
  };
45
+ // #endregion
229
46
 
230
- // iOS Audioshare
231
- const pauseAudioShare = () => {
47
+ // #region "BRB" and "Hand Raise" related states and functions
48
+ const localPeerMetadata = useSelector(state => {
49
+ var _state$hmsStates$loca;
50
+ return (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.metadata;
51
+ });
52
+ const parsedMetadata = parseMetadata(localPeerMetadata);
53
+ const isBRBOn = !!parsedMetadata.isBRBOn;
54
+ const isHandRaised = !!parsedMetadata.isHandRaised;
55
+ const toggleRaiseHand = async () => {
56
+ const newMetadata = {
57
+ ...parsedMetadata,
58
+ isBRBOn: false,
59
+ isHandRaised: !isHandRaised
60
+ };
232
61
  closeRoomSettingsModal();
233
- audioFilePlayerNodeRef.current.pause();
62
+ await hmsActions.changeMetadata(newMetadata);
234
63
  };
235
-
236
- // iOS Audioshare
237
- const resumeAudioShare = () => {
64
+ const toggleBRB = async () => {
65
+ const newMetadata = {
66
+ ...parsedMetadata,
67
+ isHandRaised: false,
68
+ isBRBOn: !isBRBOn
69
+ };
238
70
  closeRoomSettingsModal();
239
- audioFilePlayerNodeRef.current.resume();
71
+ await hmsActions.changeMetadata(newMetadata);
240
72
  };
73
+ // #endregion
241
74
 
242
- // iOS Audioshare
243
- const isAudioSharePlaying = () => {
244
- closeRoomSettingsModal();
245
- audioFilePlayerNodeRef.current.isPlaying().then(d => console.log('Audioshare isPlaying: ', d)).catch(e => console.log('Audioshare isPlaying: ', e));
75
+ // #region Recording related states and functions
76
+ const canStartRecording = useSelector(state => {
77
+ var _state$hmsStates$loca2;
78
+ return !!((_state$hmsStates$loca2 = state.hmsStates.localPeer) !== null && _state$hmsStates$loca2 !== void 0 && (_state$hmsStates$loca2 = _state$hmsStates$loca2.role) !== null && _state$hmsStates$loca2 !== void 0 && (_state$hmsStates$loca2 = _state$hmsStates$loca2.permissions) !== null && _state$hmsStates$loca2 !== void 0 && _state$hmsStates$loca2.browserRecording);
79
+ });
80
+ const isRecordingOn = useSelector(state => {
81
+ var _state$hmsStates$room;
82
+ return !!((_state$hmsStates$room = state.hmsStates.room) !== null && _state$hmsStates$room !== void 0 && (_state$hmsStates$room = _state$hmsStates$room.browserRecordingState) !== null && _state$hmsStates$room !== void 0 && _state$hmsStates$room.running);
83
+ });
84
+ const handleRecordingTogglePress = () => {
85
+ if (isRecordingOn) {
86
+ registerOnModalHideAction(() => {
87
+ setModalVisible(ModalTypes.STOP_RECORDING);
88
+ });
89
+ closeRoomSettingsModal();
90
+ } else {
91
+ dispatch(setStartingOrStoppingRecording(true));
92
+ hmsInstance.startRTMPOrRecording({
93
+ record: true
94
+ }).catch(() => dispatch(setStartingOrStoppingRecording(false)));
95
+ closeRoomSettingsModal();
96
+ }
246
97
  };
98
+ // #endregion
247
99
 
248
- // iOS Audioshare
249
- const getAudioShareDuration = () => {
250
- closeRoomSettingsModal();
251
- audioFilePlayerNodeRef.current.duration().then(d => console.log('Audioshare duration: ', d)).catch(e => console.log('Audioshare duration: ', e));
252
- };
100
+ // #region Change Name functions
101
+ const changeName = () => {
102
+ // Register callback to be called when bottom sheet is hiddden
103
+ registerOnModalHideAction(() => {
104
+ setModalVisible(ModalTypes.CHANGE_NAME);
105
+ });
253
106
 
254
- // iOS Audioshare
255
- const getAudioShareCurrentDuration = () => {
107
+ // Close the current bottom sheet
256
108
  closeRoomSettingsModal();
257
- audioFilePlayerNodeRef.current.currentDuration().then(d => console.log('Audioshare currentDuration: ', d)).catch(e => console.log('Audioshare currentDuration: ', e));
258
109
  };
259
- //#endregion
110
+ // #endregion
260
111
 
261
- return /*#__PURE__*/React.createElement(View, {
262
- style: styles.container
263
- }, /*#__PURE__*/React.createElement(View, {
264
- style: styles.chatHeaderContainer
265
- }, /*#__PURE__*/React.createElement(Text, {
266
- style: styles.chatHeading
267
- }, "More Options")), /*#__PURE__*/React.createElement(ScrollView, {
268
- style: styles.contentContainer,
269
- contentContainerStyle: styles.scrollContentContainer
270
- }, /*#__PURE__*/React.createElement(HMSShareScreen, {
271
- screenShareDelegate: /*#__PURE__*/React.createElement(ScreenShareDelegate, {
272
- closeRoomSettingsModal: closeRoomSettingsModal
273
- })
274
- }), /*#__PURE__*/React.createElement(TouchableOpacity, {
275
- onPress: handleBRB,
276
- style: styles.button
277
- }, /*#__PURE__*/React.createElement(Image, {
278
- source: require('../assets/brb.png'),
279
- style: styles.brbIcon
280
- }), /*#__PURE__*/React.createElement(Text, {
281
- style: styles.text
282
- }, parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isBRBOn ? 'Remove BRB' : 'Set BRB')), /*#__PURE__*/React.createElement(SettingItem, {
283
- onPress: onRaiseHandPress,
284
- text: parsedMetadata !== null && parsedMetadata !== void 0 && parsedMetadata.isHandRaised ? 'Low Your Hand' : 'Raise Hand',
285
- IconType: Ionicons,
286
- iconName: 'hand-left-outline'
287
- }), /*#__PURE__*/React.createElement(SettingItem, {
288
- onPress: onParticipantsPress,
289
- text: 'Participants',
290
- IconType: Ionicons,
291
- iconName: 'people'
292
- }), localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$name = localPeerRole.name) !== null && _localPeerRole$name !== void 0 && _localPeerRole$name.includes('hls-') ? /*#__PURE__*/React.createElement(SettingItem, {
293
- onPress: handleHLSPlayerAspectRatio,
294
- text: 'Change Aspect Ratio',
295
- IconType: MaterialCommunityIcons,
296
- iconName: 'aspect-ratio'
297
- }) : null, !(localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$name2 = localPeerRole.name) !== null && _localPeerRole$name2 !== void 0 && _localPeerRole$name2.includes('hls-')) ? /*#__PURE__*/React.createElement(SettingItem, {
298
- onPress: handleLocalRemoteAudiosMute,
299
- text: `${muteAllTracksAudio ? 'Unmute' : 'Mute'} Room`,
300
- IconType: Ionicons,
301
- iconName: muteAllTracksAudio ? 'mic-off-outline' : 'mic-outline'
302
- }) : null, debugMode && localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$permis = localPeerRole.permissions) !== null && _localPeerRole$permis !== void 0 && _localPeerRole$permis.hlsStreaming ? /*#__PURE__*/React.createElement(SettingItem, {
303
- onPress: handleHLSStreaming,
304
- text: `${isHLSStreaming === true ? 'Stop' : 'Start'} HLS Streaming`,
305
- IconType: Ionicons,
306
- iconName: "radio-outline"
307
- }) : null, debugMode && localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$permis2 = localPeerRole.permissions) !== null && _localPeerRole$permis2 !== void 0 && _localPeerRole$permis2.rtmpStreaming ? /*#__PURE__*/React.createElement(SettingItem, {
308
- onPress: handleRTMPAndRecording,
309
- text: rtmpAndRecording === true ? 'Stop RTMP And Recording' : 'Start RTMP or Recording',
310
- IconType: Ionicons,
311
- iconName: "recording-outline"
312
- }) : null, debugMode && localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$permis3 = localPeerRole.permissions) !== null && _localPeerRole$permis3 !== void 0 && _localPeerRole$permis3.changeRole ? /*#__PURE__*/React.createElement(SettingItem, {
313
- onPress: changeBulkRole,
314
- text: "Bulk Role Change",
315
- IconType: Ionicons,
316
- iconName: "people-outline"
317
- }) : null, debugMode && localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$permis4 = localPeerRole.permissions) !== null && _localPeerRole$permis4 !== void 0 && _localPeerRole$permis4.mute ? /*#__PURE__*/React.createElement(SettingItem, {
318
- onPress: handleRemoteAudiosMute,
319
- text: "Remote Mute All Audio Tracks",
320
- IconType: Ionicons,
321
- iconName: "mic-off-outline"
322
- }) : null, debugMode && (localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$permis5 = localPeerRole.permissions) !== null && _localPeerRole$permis5 !== void 0 && _localPeerRole$permis5.mute || localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$permis6 = localPeerRole.permissions) !== null && _localPeerRole$permis6 !== void 0 && _localPeerRole$permis6.unmute) ? /*#__PURE__*/React.createElement(SettingItem, {
323
- onPress: changeTrackState,
324
- text: "Change Track State For Role",
325
- IconType: MaterialIcons,
326
- iconName: "track-changes"
327
- }) : null, localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$publis = localPeerRole.publishSettings) !== null && _localPeerRole$publis !== void 0 && (_localPeerRole$publis = _localPeerRole$publis.allowed) !== null && _localPeerRole$publis !== void 0 && _localPeerRole$publis.includes('audio') ? /*#__PURE__*/React.createElement(SettingItem, {
328
- onPress: switchAudioOutput,
329
- text: "Switch Audio Output",
330
- IconType: MaterialCommunityIcons,
331
- iconName: "cast-audio"
332
- }) : null, !isPipModeUnavailable ? /*#__PURE__*/React.createElement(SettingItem, {
333
- onPress: enterPipMode,
334
- text: "Picture in Picture (PIP) Mode",
335
- IconType: MaterialCommunityIcons,
336
- iconName: "picture-in-picture-bottom-right"
337
- }) : null, debugMode ? /*#__PURE__*/React.createElement(React.Fragment, null, localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$name3 = localPeerRole.name) !== null && _localPeerRole$name3 !== void 0 && _localPeerRole$name3.includes('hls-') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SettingItem, {
338
- onPress: toggleShowHLSStats,
339
- text: showHLSStats ? 'Hide HLS Stats' : 'Show HLS Stats',
340
- IconType: MaterialCommunityIcons,
341
- iconName: 'clipboard-pulse-outline'
342
- }), /*#__PURE__*/React.createElement(SettingItem, {
343
- onPress: toggleEnableHLSPlayerControls,
344
- text: enableHLSPlayerControls ? 'Disable HLS Player Controls' : 'Enable HLS Player Controls',
345
- IconType: Ionicons,
346
- iconName: 'ios-settings-outline'
347
- }), /*#__PURE__*/React.createElement(SettingItem, {
348
- onPress: toggleShowCustomHLSPlayerControls,
349
- text: showCustomHLSPlayerControls ? 'Hide Custom HLS Player Controls' : 'Show Custom HLS Player Controls',
350
- IconType: Ionicons,
351
- iconName: 'ios-settings-outline'
352
- })) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SettingItem, {
353
- onPress: showRTCStats,
354
- text: "Show RTC Stats",
355
- IconType: MaterialCommunityIcons,
356
- iconName: 'clipboard-pulse-outline'
357
- })), Platform.OS === 'android' && localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$publis2 = localPeerRole.publishSettings) !== null && _localPeerRole$publis2 !== void 0 && (_localPeerRole$publis2 = _localPeerRole$publis2.allowed) !== null && _localPeerRole$publis2 !== void 0 && _localPeerRole$publis2.includes('audio') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SettingItem, {
358
- onPress: addRemoveAudioDeviceChangeListener,
359
- text: `${audioDeviceListenerAdded ? 'Remove' : 'Set'} Audio Output Change Listener`,
360
- IconType: MaterialCommunityIcons,
361
- iconName: "video-input-component"
362
- }), /*#__PURE__*/React.createElement(SettingItem, {
363
- onPress: handleAudioShare,
364
- text: `${isAudioShared ? 'Stop' : 'Start'} Audioshare`,
365
- IconType: Ionicons,
366
- iconName: "share-social-outline"
367
- }), /*#__PURE__*/React.createElement(SettingItem, {
368
- onPress: changeAudioMode,
369
- text: "Set Audio Mode",
370
- IconType: MaterialCommunityIcons,
371
- iconName: "call-split"
372
- }), /*#__PURE__*/React.createElement(SettingItem, {
373
- onPress: setAudioMixingMode,
374
- text: "Set Audio Mixing Mode",
375
- IconType: EntypoIcons,
376
- iconName: "sound-mix"
377
- })) : null, Platform.OS === 'ios' && getJoinConfig().audioMixer && localPeerRole !== null && localPeerRole !== void 0 && (_localPeerRole$publis3 = localPeerRole.publishSettings) !== null && _localPeerRole$publis3 !== void 0 && (_localPeerRole$publis3 = _localPeerRole$publis3.allowed) !== null && _localPeerRole$publis3 !== void 0 && _localPeerRole$publis3.includes('audio') ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SettingItem, {
378
- onPress: playAudioShare,
379
- text: "Play Audio Share",
380
- IconType: Ionicons,
381
- iconName: "play-outline"
382
- }), /*#__PURE__*/React.createElement(SettingItem, {
383
- onPress: stopAudioShare,
384
- text: "Stop Audio Share",
385
- IconType: Ionicons,
386
- iconName: "stop-outline"
387
- }), /*#__PURE__*/React.createElement(SettingItem, {
388
- onPress: setAudioShareVolume,
389
- text: "Set Audio Share Volume",
390
- IconType: Ionicons,
391
- iconName: "volume-high-outline"
392
- }), /*#__PURE__*/React.createElement(SettingItem, {
393
- onPress: pauseAudioShare,
394
- text: "Pause Audio Share",
395
- IconType: Ionicons,
396
- iconName: "pause-outline"
397
- }), /*#__PURE__*/React.createElement(SettingItem, {
398
- onPress: resumeAudioShare,
399
- text: "Resume Audio Share",
400
- IconType: Ionicons,
401
- iconName: "play-skip-forward-outline"
402
- }), /*#__PURE__*/React.createElement(SettingItem, {
403
- onPress: isAudioSharePlaying,
404
- text: "Is Audio Share Playing",
405
- IconType: MaterialCommunityIcons,
406
- iconName: "file-question-outline"
407
- }), /*#__PURE__*/React.createElement(SettingItem, {
408
- onPress: getAudioShareDuration,
409
- text: "Audio Share Duration",
410
- IconType: Ionicons,
411
- iconName: "timer-outline"
412
- }), /*#__PURE__*/React.createElement(SettingItem, {
413
- onPress: getAudioShareCurrentDuration,
414
- text: "Audio Share Current Duration",
415
- IconType: Ionicons,
416
- iconName: "timer-outline"
417
- })) : null) : null));
112
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(BottomSheet.Header, {
113
+ dismissModal: closeRoomSettingsModal,
114
+ heading: "Options"
115
+ }), /*#__PURE__*/React.createElement(BottomSheet.Divider, null), /*#__PURE__*/React.createElement(View, {
116
+ style: styles.contentContainer
117
+ }, groupIntoTriplets([{
118
+ id: 'participants',
119
+ icon: /*#__PURE__*/React.createElement(ParticipantsIcon, {
120
+ style: {
121
+ width: 20,
122
+ height: 20
123
+ }
124
+ }),
125
+ label: 'Participants',
126
+ pressHandler: onParticipantsPress,
127
+ isActive: false,
128
+ hide: false,
129
+ sibling: /*#__PURE__*/React.createElement(ParticipantsCount, null)
130
+ // parent
131
+ // children
132
+ }, {
133
+ id: 'share-screen',
134
+ icon: /*#__PURE__*/React.createElement(ScreenShareIcon, {
135
+ style: {
136
+ width: 20,
137
+ height: 20
138
+ }
139
+ }),
140
+ label: isLocalScreenShared ? 'Sharing Screen' : 'Share Screen',
141
+ pressHandler: handleScreenShareTogglePress,
142
+ isActive: !!isLocalScreenShared,
143
+ // Show active if screen is shared
144
+ hide: !canPublishScreen // Hide if can't publish screen
145
+ }, {
146
+ id: 'brb',
147
+ icon: /*#__PURE__*/React.createElement(BRBIcon, {
148
+ style: {
149
+ width: 20,
150
+ height: 20
151
+ }
152
+ }),
153
+ label: isBRBOn ? "I'm Back" : 'Be Right Back',
154
+ pressHandler: toggleBRB,
155
+ isActive: isBRBOn,
156
+ // Show active if `isBRBOn` is set on metadata
157
+ hide: false // Hide if can't publish screen
158
+ }, {
159
+ id: 'raise-hand',
160
+ icon: /*#__PURE__*/React.createElement(HandIcon, {
161
+ style: {
162
+ width: 20,
163
+ height: 20
164
+ }
165
+ }),
166
+ label: parsedMetadata.isHandRaised ? 'Hand Raised' : 'Raise Hand',
167
+ pressHandler: toggleRaiseHand,
168
+ isActive: isHandRaised,
169
+ // Show active if `isHandRaised` is set on metadata
170
+ hide: false // Hide if can't publish screen
171
+ }, {
172
+ id: 'start-recording',
173
+ icon: /*#__PURE__*/React.createElement(RecordingIcon, {
174
+ style: {
175
+ width: 20,
176
+ height: 20
177
+ }
178
+ }),
179
+ label: isRecordingOn ? 'Stop Recording' : 'Start Recording',
180
+ pressHandler: handleRecordingTogglePress,
181
+ isActive: !!isRecordingOn,
182
+ hide: !canStartRecording // Hide if can't publish screen
183
+ }, {
184
+ id: 'change-name',
185
+ icon: /*#__PURE__*/React.createElement(PencilIcon, {
186
+ style: {
187
+ width: 20,
188
+ height: 20
189
+ }
190
+ }),
191
+ label: 'Change Name',
192
+ pressHandler: changeName,
193
+ isActive: false,
194
+ hide: false
195
+ }].filter(itm => !itm.hide), true).map((itm, idx) => {
196
+ const isFirst = idx === 0;
197
+ return /*#__PURE__*/React.createElement(React.Fragment, {
198
+ key: idx.toString()
199
+ }, isFirst ? null : /*#__PURE__*/React.createElement(View, {
200
+ style: styles.rowSpacer
201
+ }), /*#__PURE__*/React.createElement(View, {
202
+ style: styles.row
203
+ }, itm.map((item, index) => {
204
+ const isFirst = index === 0;
205
+ return /*#__PURE__*/React.createElement(React.Fragment, {
206
+ key: item ? item.id : index.toString()
207
+ }, isFirst ? null : /*#__PURE__*/React.createElement(View, {
208
+ style: styles.colSpacer
209
+ }), /*#__PURE__*/React.createElement(View, {
210
+ style: styles.col
211
+ }, item ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SettingItem, {
212
+ icon: item.icon,
213
+ onPress: item.pressHandler,
214
+ text: item.label,
215
+ isActive: item.isActive
216
+ }), item.sibling) : null));
217
+ })));
218
+ })), debugMode ? /*#__PURE__*/React.createElement(RoomSettingsModalDebugModeContent, props) : null);
418
219
  };
419
- const SettingItem = _ref2 => {
220
+ const SettingItem = _ref => {
420
221
  let {
421
- onPress,
422
222
  text,
423
- iconName,
424
- IconType
425
- } = _ref2;
223
+ icon,
224
+ onPress,
225
+ isActive = false
226
+ } = _ref;
227
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
228
+ button: {
229
+ backgroundColor: theme.palette.surface_bright
230
+ },
231
+ text: {
232
+ color: theme.palette.on_surface_high,
233
+ fontFamily: `${typography.font_family}-SemiBold`
234
+ }
235
+ }));
426
236
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
427
- style: styles.button,
237
+ style: [styles.button, isActive ? hmsRoomStyles.button : null],
428
238
  onPress: onPress
429
- }, /*#__PURE__*/React.createElement(IconType, {
430
- name: iconName,
431
- size: 24,
432
- style: styles.icon
433
- }), /*#__PURE__*/React.createElement(Text, {
434
- style: styles.text
239
+ }, icon, /*#__PURE__*/React.createElement(Text, {
240
+ style: [styles.text, hmsRoomStyles.text],
241
+ numberOfLines: 2
435
242
  }, text));
436
243
  };
437
- const ScreenShareDelegate = _ref3 => {
438
- let {
439
- isLocalScreenShared,
440
- onPress,
441
- closeRoomSettingsModal
442
- } = _ref3;
443
- const handleScreenSharePress = () => {
444
- closeRoomSettingsModal();
445
- onPress === null || onPress === void 0 ? void 0 : onPress();
446
- };
447
- return /*#__PURE__*/React.createElement(TouchableOpacity, {
448
- onPress: handleScreenSharePress,
449
- style: styles.button
450
- }, /*#__PURE__*/React.createElement(ScreenShareIcon, {
451
- style: styles.icon
452
- }), /*#__PURE__*/React.createElement(Text, {
453
- style: styles.text
454
- }, isLocalScreenShared ? 'Stop Screen Share' : 'Screen Share'));
455
- };
456
244
  const styles = StyleSheet.create({
457
- container: {
458
- height: '100%',
459
- width: '100%',
460
- backgroundColor: COLORS.SURFACE.DEFAULT
245
+ contentContainer: {
246
+ marginHorizontal: 20
461
247
  },
462
- chatHeaderContainer: {
463
- height: 48,
464
- width: '80%',
465
- flexDirection: 'row',
466
- alignItems: 'center'
248
+ row: {
249
+ flexDirection: 'row'
467
250
  },
468
- chatHeading: {
469
- fontFamily: 'Inter-Medium',
470
- fontSize: 20,
471
- lineHeight: 24,
472
- letterSpacing: 0.15,
473
- color: COLORS.TEXT.HIGH_EMPHASIS,
474
- paddingRight: 12
251
+ rowSpacer: {
252
+ height: 16,
253
+ width: '100%'
475
254
  },
476
- contentContainer: {
255
+ col: {
477
256
  flex: 1,
478
- marginVertical: 4
257
+ position: 'relative'
479
258
  },
480
- scrollContentContainer: {
481
- paddingBottom: 52
482
- },
483
- brbIcon: {
484
- width: 24,
485
- height: 24,
486
- tintColor: COLORS.WHITE,
487
- marginRight: 12
259
+ colSpacer: {
260
+ width: 12,
261
+ height: '100%'
488
262
  },
489
263
  button: {
490
- flexDirection: 'row',
491
264
  alignItems: 'center',
492
- marginVertical: 12
265
+ borderRadius: 4,
266
+ paddingVertical: 8,
267
+ paddingHorizontal: 4
493
268
  },
494
269
  text: {
495
- fontFamily: 'Inter-Medium',
496
- fontSize: 14,
497
- lineHeight: 24,
498
- color: COLORS.TEXT.HIGH_EMPHASIS
499
- },
500
- icon: {
501
- color: COLORS.WHITE,
502
- marginRight: 12
270
+ textAlign: 'center',
271
+ fontSize: 12,
272
+ lineHeight: 16,
273
+ letterSpacing: 0.4,
274
+ marginTop: 8
503
275
  }
504
276
  });
505
277
  //# sourceMappingURL=RoomSettingsModalContent.js.map