@100mslive/react-native-room-kit 0.0.4 → 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 (777) 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/Recording/assets/recording.png +0 -0
  66. package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
  67. package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
  68. package/lib/commonjs/Icons/Recording/index.js +34 -0
  69. package/lib/commonjs/Icons/Recording/index.js.map +1 -0
  70. package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
  71. package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
  72. package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
  73. package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
  74. package/lib/commonjs/Icons/Speaker/index.js +5 -1
  75. package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
  76. package/lib/commonjs/Icons/Star/assets/star.png +0 -0
  77. package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
  78. package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
  79. package/lib/commonjs/Icons/Star/index.js +34 -0
  80. package/lib/commonjs/Icons/Star/index.js.map +1 -0
  81. package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
  82. package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
  83. package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
  84. package/lib/commonjs/Icons/Stop/index.js +34 -0
  85. package/lib/commonjs/Icons/Stop/index.js.map +1 -0
  86. package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
  87. package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
  88. package/lib/commonjs/Icons/Wave/index.js +5 -1
  89. package/lib/commonjs/Icons/Wave/index.js.map +1 -1
  90. package/lib/commonjs/Icons/index.js +110 -0
  91. package/lib/commonjs/Icons/index.js.map +1 -1
  92. package/lib/commonjs/components/AvatarView.js +1 -2
  93. package/lib/commonjs/components/AvatarView.js.map +1 -1
  94. package/lib/commonjs/components/BackButton.js +6 -4
  95. package/lib/commonjs/components/BackButton.js.map +1 -1
  96. package/lib/commonjs/components/BottomSheet.js +157 -0
  97. package/lib/commonjs/components/BottomSheet.js.map +1 -0
  98. package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
  99. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
  100. package/lib/commonjs/components/CompanyLogo.js +38 -0
  101. package/lib/commonjs/components/CompanyLogo.js.map +1 -0
  102. package/lib/commonjs/components/CustomInput.js +2 -3
  103. package/lib/commonjs/components/CustomInput.js.map +1 -1
  104. package/lib/commonjs/components/DisplayView.js +12 -52
  105. package/lib/commonjs/components/DisplayView.js.map +1 -1
  106. package/lib/commonjs/components/EndRoomModalContent.js +85 -0
  107. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
  108. package/lib/commonjs/components/Footer.js +8 -9
  109. package/lib/commonjs/components/Footer.js.map +1 -1
  110. package/lib/commonjs/components/GridView.js +53 -7
  111. package/lib/commonjs/components/GridView.js.map +1 -1
  112. package/lib/commonjs/components/HMSBaseButton.js +66 -0
  113. package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
  114. package/lib/commonjs/components/HMSDangerButton.js +53 -0
  115. package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
  116. package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
  117. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
  118. package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
  119. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  120. package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
  121. package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
  122. package/lib/commonjs/components/HMSManageLeave.js +91 -106
  123. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  124. package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
  125. package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
  126. package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
  127. package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
  128. package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
  129. package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
  130. package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
  131. package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
  132. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
  133. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  134. package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
  135. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  136. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
  137. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
  138. package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
  139. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  140. package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
  141. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  142. package/lib/commonjs/components/HMSPreviewTile.js +16 -8
  143. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  144. package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
  145. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  146. package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
  147. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
  148. package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
  149. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
  150. package/lib/commonjs/components/HMSRoomOptions.js +20 -7
  151. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  152. package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
  153. package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
  154. package/lib/commonjs/components/HMSTextInput.js +66 -0
  155. package/lib/commonjs/components/HMSTextInput.js.map +1 -0
  156. package/lib/commonjs/components/Header.js +30 -30
  157. package/lib/commonjs/components/Header.js.map +1 -1
  158. package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
  159. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
  160. package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
  161. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
  162. package/lib/commonjs/components/Meeting.js +7 -3
  163. package/lib/commonjs/components/Meeting.js.map +1 -1
  164. package/lib/commonjs/components/MiniView.js +163 -0
  165. package/lib/commonjs/components/MiniView.js.map +1 -0
  166. package/lib/commonjs/components/Modals.js +31 -116
  167. package/lib/commonjs/components/Modals.js.map +1 -1
  168. package/lib/commonjs/components/PaginationDots.js +56 -0
  169. package/lib/commonjs/components/PaginationDots.js.map +1 -0
  170. package/lib/commonjs/components/ParticipantsCount.js +55 -0
  171. package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
  172. package/lib/commonjs/components/PeerMinimizedView.js +114 -0
  173. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
  174. package/lib/commonjs/components/PeerSettingsModalContent.js +68 -51
  175. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  176. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
  177. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
  178. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
  179. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  180. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
  181. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  182. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
  183. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  184. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
  185. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  186. package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
  187. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
  188. package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
  189. package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
  190. package/lib/commonjs/components/PressableIcon.js +15 -8
  191. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  192. package/lib/commonjs/components/Preview.js +19 -6
  193. package/lib/commonjs/components/Preview.js.map +1 -1
  194. package/lib/commonjs/components/RoomSettingsModalContent.js +232 -362
  195. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  196. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
  197. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  198. package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
  199. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
  200. package/lib/commonjs/components/Tile.js +29 -90
  201. package/lib/commonjs/components/Tile.js.map +1 -1
  202. package/lib/commonjs/components/TilesContainer.js +99 -10
  203. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  204. package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
  205. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
  206. package/lib/commonjs/components/WebrtcView.js +51 -0
  207. package/lib/commonjs/components/WebrtcView.js.map +1 -0
  208. package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
  209. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
  210. package/lib/commonjs/hooks-sdk-selectors.js +6 -1
  211. package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
  212. package/lib/commonjs/hooks-sdk.js +16 -1
  213. package/lib/commonjs/hooks-sdk.js.map +1 -1
  214. package/lib/commonjs/hooks-util-selectors.js +8 -2
  215. package/lib/commonjs/hooks-util-selectors.js.map +1 -1
  216. package/lib/commonjs/hooks-util.js +315 -93
  217. package/lib/commonjs/hooks-util.js.map +1 -1
  218. package/lib/commonjs/modules/HMSManager.js +23 -0
  219. package/lib/commonjs/modules/HMSManager.js.map +1 -0
  220. package/lib/commonjs/modules/parser.js +22 -0
  221. package/lib/commonjs/modules/parser.js.map +1 -0
  222. package/lib/commonjs/peerTrackNodeUtils.js +8 -3
  223. package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
  224. package/lib/commonjs/redux/actionTypes.js +16 -1
  225. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  226. package/lib/commonjs/redux/actions/index.js +51 -1
  227. package/lib/commonjs/redux/actions/index.js.map +1 -1
  228. package/lib/commonjs/redux/reducers/appState.js +57 -1
  229. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  230. package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
  231. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  232. package/lib/commonjs/redux/reducers/userState.js +3 -1
  233. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  234. package/lib/commonjs/utils/functions.js +51 -1
  235. package/lib/commonjs/utils/functions.js.map +1 -1
  236. package/lib/commonjs/utils/theme.js +62 -8
  237. package/lib/commonjs/utils/theme.js.map +1 -1
  238. package/lib/commonjs/utils/types.js +8 -1
  239. package/lib/commonjs/utils/types.js.map +1 -1
  240. package/lib/module/HMSInstanceSetup.js +2 -1
  241. package/lib/module/HMSInstanceSetup.js.map +1 -1
  242. package/lib/module/HMSPrebuilt.js +4 -2
  243. package/lib/module/HMSPrebuilt.js.map +1 -1
  244. package/lib/module/HMSRoomSetup.js +41 -10
  245. package/lib/module/HMSRoomSetup.js.map +1 -1
  246. package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  247. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  248. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  249. package/lib/module/Icons/AlertTriangle/index.js +26 -0
  250. package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
  251. package/lib/module/Icons/AnswerPhone/index.js +5 -1
  252. package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
  253. package/lib/module/Icons/BRB/assets/BRB.png +0 -0
  254. package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
  255. package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
  256. package/lib/module/Icons/BRB/index.js +27 -0
  257. package/lib/module/Icons/BRB/index.js.map +1 -0
  258. package/lib/module/Icons/Bluetooth/index.js +5 -1
  259. package/lib/module/Icons/Bluetooth/index.js.map +1 -1
  260. package/lib/module/Icons/Camera/index.js +5 -1
  261. package/lib/module/Icons/Camera/index.js.map +1 -1
  262. package/lib/module/Icons/Chat/index.js +5 -1
  263. package/lib/module/Icons/Chat/index.js.map +1 -1
  264. package/lib/module/Icons/Check/index.js +5 -1
  265. package/lib/module/Icons/Check/index.js.map +1 -1
  266. package/lib/module/Icons/Chevron/index.js +5 -1
  267. package/lib/module/Icons/Chevron/index.js.map +1 -1
  268. package/lib/module/Icons/Close/index.js +5 -1
  269. package/lib/module/Icons/Close/index.js.map +1 -1
  270. package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
  271. package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  272. package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  273. package/lib/module/Icons/Hamburger/index.js +26 -0
  274. package/lib/module/Icons/Hamburger/index.js.map +1 -0
  275. package/lib/module/Icons/Hand/index.js +6 -4
  276. package/lib/module/Icons/Hand/index.js.map +1 -1
  277. package/lib/module/Icons/Headphones/index.js +5 -1
  278. package/lib/module/Icons/Headphones/index.js.map +1 -1
  279. package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
  280. package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
  281. package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
  282. package/lib/module/Icons/Maximize/index.js +26 -0
  283. package/lib/module/Icons/Maximize/index.js.map +1 -0
  284. package/lib/module/Icons/Mic/index.js +5 -1
  285. package/lib/module/Icons/Mic/index.js.map +1 -1
  286. package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
  287. package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
  288. package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
  289. package/lib/module/Icons/Minimize/index.js +26 -0
  290. package/lib/module/Icons/Minimize/index.js.map +1 -0
  291. package/lib/module/Icons/Participants/index.js +5 -1
  292. package/lib/module/Icons/Participants/index.js.map +1 -1
  293. package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
  294. package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
  295. package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
  296. package/lib/module/Icons/Pencil/index.js +26 -0
  297. package/lib/module/Icons/Pencil/index.js.map +1 -0
  298. package/lib/module/Icons/Pin/assets/pin.png +0 -0
  299. package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
  300. package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
  301. package/lib/module/Icons/Pin/index.js +26 -0
  302. package/lib/module/Icons/Pin/index.js.map +1 -0
  303. package/lib/module/Icons/Recording/assets/recording.png +0 -0
  304. package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
  305. package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
  306. package/lib/module/Icons/Recording/index.js +26 -0
  307. package/lib/module/Icons/Recording/index.js.map +1 -0
  308. package/lib/module/Icons/RotateCamera/index.js +5 -1
  309. package/lib/module/Icons/RotateCamera/index.js.map +1 -1
  310. package/lib/module/Icons/ScreenShare/index.js +5 -1
  311. package/lib/module/Icons/ScreenShare/index.js.map +1 -1
  312. package/lib/module/Icons/Speaker/index.js +5 -1
  313. package/lib/module/Icons/Speaker/index.js.map +1 -1
  314. package/lib/module/Icons/Star/assets/star.png +0 -0
  315. package/lib/module/Icons/Star/assets/star@2x.png +0 -0
  316. package/lib/module/Icons/Star/assets/star@3x.png +0 -0
  317. package/lib/module/Icons/Star/index.js +26 -0
  318. package/lib/module/Icons/Star/index.js.map +1 -0
  319. package/lib/module/Icons/Stop/assets/stop.png +0 -0
  320. package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
  321. package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
  322. package/lib/module/Icons/Stop/index.js +26 -0
  323. package/lib/module/Icons/Stop/index.js.map +1 -0
  324. package/lib/module/Icons/ThreeDots/index.js +5 -1
  325. package/lib/module/Icons/ThreeDots/index.js.map +1 -1
  326. package/lib/module/Icons/Wave/index.js +5 -1
  327. package/lib/module/Icons/Wave/index.js.map +1 -1
  328. package/lib/module/Icons/index.js +10 -0
  329. package/lib/module/Icons/index.js.map +1 -1
  330. package/lib/module/components/AvatarView.js +1 -2
  331. package/lib/module/components/AvatarView.js.map +1 -1
  332. package/lib/module/components/BackButton.js +6 -4
  333. package/lib/module/components/BackButton.js.map +1 -1
  334. package/lib/module/components/BottomSheet.js +146 -0
  335. package/lib/module/components/BottomSheet.js.map +1 -0
  336. package/lib/module/components/ChangeNameModalContent.js +122 -0
  337. package/lib/module/components/ChangeNameModalContent.js.map +1 -0
  338. package/lib/module/components/CompanyLogo.js +30 -0
  339. package/lib/module/components/CompanyLogo.js.map +1 -0
  340. package/lib/module/components/CustomInput.js +2 -3
  341. package/lib/module/components/CustomInput.js.map +1 -1
  342. package/lib/module/components/DisplayView.js +16 -55
  343. package/lib/module/components/DisplayView.js.map +1 -1
  344. package/lib/module/components/EndRoomModalContent.js +76 -0
  345. package/lib/module/components/EndRoomModalContent.js.map +1 -0
  346. package/lib/module/components/Footer.js +9 -10
  347. package/lib/module/components/Footer.js.map +1 -1
  348. package/lib/module/components/GridView.js +55 -10
  349. package/lib/module/components/GridView.js.map +1 -1
  350. package/lib/module/components/HMSBaseButton.js +57 -0
  351. package/lib/module/components/HMSBaseButton.js.map +1 -0
  352. package/lib/module/components/HMSDangerButton.js +44 -0
  353. package/lib/module/components/HMSDangerButton.js.map +1 -0
  354. package/lib/module/components/HMSHLSStreamLoading.js +17 -8
  355. package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
  356. package/lib/module/components/HMSManageAudioOutput.js +42 -77
  357. package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
  358. package/lib/module/components/HMSManageCameraRotation.js +5 -4
  359. package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
  360. package/lib/module/components/HMSManageLeave.js +94 -107
  361. package/lib/module/components/HMSManageLeave.js.map +1 -1
  362. package/lib/module/components/HMSManageLocalAudio.js +1 -9
  363. package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
  364. package/lib/module/components/HMSManageLocalVideo.js +1 -9
  365. package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
  366. package/lib/module/components/HMSMeetingEnded.js +1 -2
  367. package/lib/module/components/HMSMeetingEnded.js.map +1 -1
  368. package/lib/module/components/HMSPreviewEditName.js +3 -37
  369. package/lib/module/components/HMSPreviewEditName.js.map +1 -1
  370. package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
  371. package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  372. package/lib/module/components/HMSPreviewJoinButton.js +26 -49
  373. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  374. package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
  375. package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
  376. package/lib/module/components/HMSPreviewPeersList.js +21 -10
  377. package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
  378. package/lib/module/components/HMSPreviewSubtitle.js +22 -9
  379. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  380. package/lib/module/components/HMSPreviewTile.js +16 -8
  381. package/lib/module/components/HMSPreviewTile.js.map +1 -1
  382. package/lib/module/components/HMSPreviewTitle.js +14 -6
  383. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  384. package/lib/module/components/HMSPrimaryButton.js +44 -0
  385. package/lib/module/components/HMSPrimaryButton.js.map +1 -0
  386. package/lib/module/components/HMSRecordingIndicator.js +37 -0
  387. package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
  388. package/lib/module/components/HMSRoomOptions.js +21 -8
  389. package/lib/module/components/HMSRoomOptions.js.map +1 -1
  390. package/lib/module/components/HMSShowNetworkQuality.js +6 -5
  391. package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
  392. package/lib/module/components/HMSTextInput.js +57 -0
  393. package/lib/module/components/HMSTextInput.js.map +1 -0
  394. package/lib/module/components/Header.js +32 -32
  395. package/lib/module/components/Header.js.map +1 -1
  396. package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
  397. package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
  398. package/lib/module/components/LocalPeerScreenshareView.js +66 -0
  399. package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
  400. package/lib/module/components/Meeting.js +8 -4
  401. package/lib/module/components/Meeting.js.map +1 -1
  402. package/lib/module/components/MiniView.js +154 -0
  403. package/lib/module/components/MiniView.js.map +1 -0
  404. package/lib/module/components/Modals.js +31 -114
  405. package/lib/module/components/Modals.js.map +1 -1
  406. package/lib/module/components/PaginationDots.js +47 -0
  407. package/lib/module/components/PaginationDots.js.map +1 -0
  408. package/lib/module/components/ParticipantsCount.js +46 -0
  409. package/lib/module/components/ParticipantsCount.js.map +1 -0
  410. package/lib/module/components/PeerMinimizedView.js +104 -0
  411. package/lib/module/components/PeerMinimizedView.js.map +1 -0
  412. package/lib/module/components/PeerSettingsModalContent.js +71 -54
  413. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  414. package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
  415. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
  416. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
  417. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  418. package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
  419. package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  420. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
  421. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  422. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
  423. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  424. package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
  425. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
  426. package/lib/module/components/PeerVideoTile/index.js +2 -0
  427. package/lib/module/components/PeerVideoTile/index.js.map +1 -0
  428. package/lib/module/components/PressableIcon.js +15 -8
  429. package/lib/module/components/PressableIcon.js.map +1 -1
  430. package/lib/module/components/Preview.js +19 -6
  431. package/lib/module/components/Preview.js.map +1 -1
  432. package/lib/module/components/RoomSettingsModalContent.js +233 -364
  433. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  434. package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
  435. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  436. package/lib/module/components/StopRecordingModalContent.js +88 -0
  437. package/lib/module/components/StopRecordingModalContent.js.map +1 -0
  438. package/lib/module/components/Tile.js +30 -91
  439. package/lib/module/components/Tile.js.map +1 -1
  440. package/lib/module/components/TilesContainer.js +100 -10
  441. package/lib/module/components/TilesContainer.js.map +1 -1
  442. package/lib/module/components/UnmountAfterDelay.js +39 -0
  443. package/lib/module/components/UnmountAfterDelay.js.map +1 -0
  444. package/lib/module/components/WebrtcView.js +41 -0
  445. package/lib/module/components/WebrtcView.js.map +1 -0
  446. package/lib/module/components/WelcomeInMeeting.js +45 -0
  447. package/lib/module/components/WelcomeInMeeting.js.map +1 -0
  448. package/lib/module/hooks-sdk-selectors.js +4 -0
  449. package/lib/module/hooks-sdk-selectors.js.map +1 -1
  450. package/lib/module/hooks-sdk.js +16 -1
  451. package/lib/module/hooks-sdk.js.map +1 -1
  452. package/lib/module/hooks-util-selectors.js +8 -2
  453. package/lib/module/hooks-util-selectors.js.map +1 -1
  454. package/lib/module/hooks-util.js +310 -96
  455. package/lib/module/hooks-util.js.map +1 -1
  456. package/lib/module/modules/HMSManager.js +17 -0
  457. package/lib/module/modules/HMSManager.js.map +1 -0
  458. package/lib/module/modules/parser.js +16 -0
  459. package/lib/module/modules/parser.js.map +1 -0
  460. package/lib/module/peerTrackNodeUtils.js +6 -2
  461. package/lib/module/peerTrackNodeUtils.js.map +1 -1
  462. package/lib/module/redux/actionTypes.js +16 -1
  463. package/lib/module/redux/actionTypes.js.map +1 -1
  464. package/lib/module/redux/actions/index.js +42 -0
  465. package/lib/module/redux/actions/index.js.map +1 -1
  466. package/lib/module/redux/reducers/appState.js +57 -1
  467. package/lib/module/redux/reducers/appState.js.map +1 -1
  468. package/lib/module/redux/reducers/hmsStates.js +7 -1
  469. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  470. package/lib/module/redux/reducers/userState.js +3 -1
  471. package/lib/module/redux/reducers/userState.js.map +1 -1
  472. package/lib/module/utils/functions.js +47 -0
  473. package/lib/module/utils/functions.js.map +1 -1
  474. package/lib/module/utils/theme.js +57 -5
  475. package/lib/module/utils/theme.js.map +1 -1
  476. package/lib/module/utils/types.js +6 -0
  477. package/lib/module/utils/types.js.map +1 -1
  478. package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
  479. package/lib/typescript/HMSPrebuilt.d.ts +1 -0
  480. package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
  481. package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
  482. package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
  483. package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
  484. package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
  485. package/lib/typescript/Icons/BRB/index.d.ts +7 -0
  486. package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
  487. package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
  488. package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
  489. package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
  490. package/lib/typescript/Icons/Check/index.d.ts.map +1 -1
  491. package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
  492. package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
  493. package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
  494. package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
  495. package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
  496. package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
  497. package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
  498. package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
  499. package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
  500. package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
  501. package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
  502. package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
  503. package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
  504. package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
  505. package/lib/typescript/Icons/Pin/index.d.ts +7 -0
  506. package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
  507. package/lib/typescript/Icons/Recording/index.d.ts +7 -0
  508. package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
  509. package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
  510. package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
  511. package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
  512. package/lib/typescript/Icons/Star/index.d.ts +7 -0
  513. package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
  514. package/lib/typescript/Icons/Stop/index.d.ts +7 -0
  515. package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
  516. package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
  517. package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
  518. package/lib/typescript/Icons/index.d.ts +10 -0
  519. package/lib/typescript/Icons/index.d.ts.map +1 -1
  520. package/lib/typescript/components/BackButton.d.ts.map +1 -1
  521. package/lib/typescript/components/BottomSheet.d.ts +25 -0
  522. package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
  523. package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
  524. package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
  525. package/lib/typescript/components/CompanyLogo.d.ts +7 -0
  526. package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
  527. package/lib/typescript/components/CustomInput.d.ts +1 -1
  528. package/lib/typescript/components/CustomInput.d.ts.map +1 -1
  529. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  530. package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
  531. package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
  532. package/lib/typescript/components/Footer.d.ts.map +1 -1
  533. package/lib/typescript/components/GridView.d.ts +3 -4
  534. package/lib/typescript/components/GridView.d.ts.map +1 -1
  535. package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
  536. package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
  537. package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
  538. package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
  539. package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
  540. package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
  541. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  542. package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
  543. package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
  544. package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
  545. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
  546. package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
  547. package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
  548. package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
  549. package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
  550. package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
  551. package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
  552. package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
  553. package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
  554. package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
  555. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
  556. package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
  557. package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
  558. package/lib/typescript/components/HMSTextInput.d.ts +10 -0
  559. package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
  560. package/lib/typescript/components/Header.d.ts.map +1 -1
  561. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
  562. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
  563. package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
  564. package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
  565. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  566. package/lib/typescript/components/MiniView.d.ts +9 -0
  567. package/lib/typescript/components/MiniView.d.ts.map +1 -0
  568. package/lib/typescript/components/Modals.d.ts +0 -7
  569. package/lib/typescript/components/Modals.d.ts.map +1 -1
  570. package/lib/typescript/components/PaginationDots.d.ts +6 -0
  571. package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
  572. package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
  573. package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
  574. package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
  575. package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
  576. package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
  577. package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
  578. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
  579. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
  580. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
  581. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
  582. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
  583. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
  584. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
  585. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
  586. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
  587. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
  588. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
  589. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
  590. package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
  591. package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
  592. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  593. package/lib/typescript/components/Preview.d.ts.map +1 -1
  594. package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
  595. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  596. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
  597. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
  598. package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
  599. package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
  600. package/lib/typescript/components/Tile.d.ts +12 -3
  601. package/lib/typescript/components/Tile.d.ts.map +1 -1
  602. package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
  603. package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
  604. package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
  605. package/lib/typescript/components/WebrtcView.d.ts +10 -0
  606. package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
  607. package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
  608. package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
  609. package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
  610. package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
  611. package/lib/typescript/hooks-sdk.d.ts +1 -0
  612. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  613. package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
  614. package/lib/typescript/hooks-util.d.ts +15 -2
  615. package/lib/typescript/hooks-util.d.ts.map +1 -1
  616. package/lib/typescript/modules/HMSManager.d.ts +4 -0
  617. package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
  618. package/lib/typescript/modules/parser.d.ts +3 -0
  619. package/lib/typescript/modules/parser.d.ts.map +1 -0
  620. package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
  621. package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
  622. package/lib/typescript/redux/actionTypes.d.ts +9 -1
  623. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  624. package/lib/typescript/redux/actions/index.d.ts +45 -0
  625. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  626. package/lib/typescript/redux/index.d.ts +7 -0
  627. package/lib/typescript/redux/index.d.ts.map +1 -1
  628. package/lib/typescript/redux/reducers/appState.d.ts +5 -0
  629. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  630. package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
  631. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  632. package/lib/typescript/redux/reducers/index.d.ts +7 -0
  633. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  634. package/lib/typescript/redux/reducers/userState.d.ts +1 -0
  635. package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
  636. package/lib/typescript/utils/functions.d.ts +14 -0
  637. package/lib/typescript/utils/functions.d.ts.map +1 -1
  638. package/lib/typescript/utils/theme.d.ts +6 -3
  639. package/lib/typescript/utils/theme.d.ts.map +1 -1
  640. package/lib/typescript/utils/types.d.ts +5 -0
  641. package/lib/typescript/utils/types.d.ts.map +1 -1
  642. package/package.json +3 -1
  643. package/src/HMSInstanceSetup.tsx +1 -0
  644. package/src/HMSPrebuilt.tsx +3 -2
  645. package/src/HMSRoomSetup.tsx +45 -8
  646. package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  647. package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  648. package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  649. package/src/Icons/AlertTriangle/index.tsx +33 -0
  650. package/src/Icons/AnswerPhone/index.tsx +7 -1
  651. package/src/Icons/BRB/assets/BRB.png +0 -0
  652. package/src/Icons/BRB/assets/BRB@2x.png +0 -0
  653. package/src/Icons/BRB/assets/BRB@3x.png +0 -0
  654. package/src/Icons/BRB/index.tsx +31 -0
  655. package/src/Icons/Bluetooth/index.tsx +7 -1
  656. package/src/Icons/Camera/index.tsx +7 -1
  657. package/src/Icons/Chat/index.tsx +7 -1
  658. package/src/Icons/Check/index.tsx +7 -1
  659. package/src/Icons/Chevron/index.tsx +7 -1
  660. package/src/Icons/Close/index.tsx +7 -1
  661. package/src/Icons/Hamburger/assets/hamburger.png +0 -0
  662. package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  663. package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  664. package/src/Icons/Hamburger/index.tsx +33 -0
  665. package/src/Icons/Hand/index.tsx +6 -3
  666. package/src/Icons/Headphones/index.tsx +7 -1
  667. package/src/Icons/Maximize/assets/maximize.png +0 -0
  668. package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
  669. package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
  670. package/src/Icons/Maximize/index.tsx +33 -0
  671. package/src/Icons/Mic/index.tsx +7 -1
  672. package/src/Icons/Minimize/assets/minimize.png +0 -0
  673. package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
  674. package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
  675. package/src/Icons/Minimize/index.tsx +33 -0
  676. package/src/Icons/Participants/index.tsx +7 -1
  677. package/src/Icons/Pencil/assets/pencil.png +0 -0
  678. package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
  679. package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
  680. package/src/Icons/Pencil/index.tsx +33 -0
  681. package/src/Icons/Pin/assets/pin.png +0 -0
  682. package/src/Icons/Pin/assets/pin@2x.png +0 -0
  683. package/src/Icons/Pin/assets/pin@3x.png +0 -0
  684. package/src/Icons/Pin/index.tsx +30 -0
  685. package/src/Icons/Recording/assets/recording.png +0 -0
  686. package/src/Icons/Recording/assets/recording@2x.png +0 -0
  687. package/src/Icons/Recording/assets/recording@3x.png +0 -0
  688. package/src/Icons/Recording/index.tsx +33 -0
  689. package/src/Icons/RotateCamera/index.tsx +7 -1
  690. package/src/Icons/ScreenShare/index.tsx +7 -1
  691. package/src/Icons/Speaker/index.tsx +12 -1
  692. package/src/Icons/Star/assets/star.png +0 -0
  693. package/src/Icons/Star/assets/star@2x.png +0 -0
  694. package/src/Icons/Star/assets/star@3x.png +0 -0
  695. package/src/Icons/Star/index.tsx +30 -0
  696. package/src/Icons/Stop/assets/stop.png +0 -0
  697. package/src/Icons/Stop/assets/stop@2x.png +0 -0
  698. package/src/Icons/Stop/assets/stop@3x.png +0 -0
  699. package/src/Icons/Stop/index.tsx +33 -0
  700. package/src/Icons/ThreeDots/index.tsx +7 -1
  701. package/src/Icons/Wave/index.tsx +7 -1
  702. package/src/Icons/index.ts +10 -0
  703. package/src/components/AvatarView.tsx +1 -2
  704. package/src/components/BackButton.tsx +6 -3
  705. package/src/components/BottomSheet.tsx +191 -0
  706. package/src/components/ChangeNameModalContent.tsx +157 -0
  707. package/src/components/CompanyLogo.tsx +35 -0
  708. package/src/components/CustomInput.tsx +2 -3
  709. package/src/components/DisplayView.tsx +16 -65
  710. package/src/components/EndRoomModalContent.tsx +90 -0
  711. package/src/components/Footer.tsx +7 -7
  712. package/src/components/GridView.tsx +91 -20
  713. package/src/components/HLSView.tsx +1 -1
  714. package/src/components/HMSBaseButton.tsx +91 -0
  715. package/src/components/HMSDangerButton.tsx +65 -0
  716. package/src/components/HMSHLSStreamLoading.tsx +18 -7
  717. package/src/components/HMSManageAudioOutput.tsx +59 -90
  718. package/src/components/HMSManageCameraRotation.tsx +11 -8
  719. package/src/components/HMSManageLeave.tsx +104 -109
  720. package/src/components/HMSManageLocalAudio.tsx +1 -10
  721. package/src/components/HMSManageLocalVideo.tsx +1 -10
  722. package/src/components/HMSMeetingEnded.tsx +1 -2
  723. package/src/components/HMSPreviewEditName.tsx +2 -44
  724. package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
  725. package/src/components/HMSPreviewJoinButton.tsx +33 -71
  726. package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
  727. package/src/components/HMSPreviewPeersList.tsx +23 -13
  728. package/src/components/HMSPreviewSubtitle.tsx +27 -11
  729. package/src/components/HMSPreviewTile.tsx +19 -8
  730. package/src/components/HMSPreviewTitle.tsx +18 -5
  731. package/src/components/HMSPrimaryButton.tsx +63 -0
  732. package/src/components/HMSRecordingIndicator.tsx +37 -0
  733. package/src/components/HMSRoomOptions.tsx +28 -8
  734. package/src/components/HMSShowNetworkQuality.tsx +7 -5
  735. package/src/components/HMSTextInput.tsx +78 -0
  736. package/src/components/Header.tsx +37 -36
  737. package/src/components/LocalPeerRegularVideoView.tsx +28 -0
  738. package/src/components/LocalPeerScreenshareView.tsx +72 -0
  739. package/src/components/Meeting.tsx +10 -3
  740. package/src/components/MiniView.tsx +213 -0
  741. package/src/components/Modals.tsx +1 -110
  742. package/src/components/PaginationDots.tsx +65 -0
  743. package/src/components/ParticipantsCount.tsx +52 -0
  744. package/src/components/PeerMinimizedView.tsx +131 -0
  745. package/src/components/PeerSettingsModalContent.tsx +110 -54
  746. package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
  747. package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
  748. package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
  749. package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
  750. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
  751. package/src/components/PeerVideoTile/VideoView.tsx +104 -0
  752. package/src/components/PeerVideoTile/index.ts +0 -0
  753. package/src/components/PressableIcon.tsx +15 -8
  754. package/src/components/Preview.tsx +24 -6
  755. package/src/components/RoomSettingsModalContent.tsx +236 -524
  756. package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
  757. package/src/components/StopRecordingModalContent.tsx +109 -0
  758. package/src/components/Tile.tsx +49 -90
  759. package/src/components/TilesContainer.tsx +116 -14
  760. package/src/components/UnmountAfterDelay.tsx +61 -0
  761. package/src/components/WebrtcView.tsx +72 -0
  762. package/src/components/WelcomeInMeeting.tsx +52 -0
  763. package/src/hooks-sdk-selectors.tsx +7 -0
  764. package/src/hooks-sdk.ts +18 -0
  765. package/src/hooks-util-selectors.tsx +12 -1
  766. package/src/hooks-util.ts +420 -115
  767. package/src/modules/HMSManager.ts +25 -0
  768. package/src/modules/parser.ts +22 -0
  769. package/src/peerTrackNodeUtils.tsx +13 -10
  770. package/src/redux/actionTypes.ts +22 -0
  771. package/src/redux/actions/index.ts +51 -0
  772. package/src/redux/reducers/appState.ts +56 -0
  773. package/src/redux/reducers/hmsStates.ts +15 -1
  774. package/src/redux/reducers/userState.ts +3 -0
  775. package/src/utils/functions.ts +48 -0
  776. package/src/utils/theme.ts +74 -5
  777. package/src/utils/types.ts +6 -0
@@ -2,23 +2,38 @@ import * as React from 'react';
2
2
  import { StyleSheet, Text, View } from 'react-native';
3
3
  import { useSelector } from 'react-redux';
4
4
 
5
- import { COLORS } from '../utils/theme';
6
5
  import type { RootState } from '../redux';
6
+ import { useHMSRoomStyleSheet } from '../hooks-util';
7
7
 
8
8
  export interface HMSPreviewPeersListProps {}
9
9
 
10
10
  export const HMSPreviewPeersList: React.FC<HMSPreviewPeersListProps> = () => {
11
- const previewPeersList = useSelector(
12
- (state: RootState) => state.hmsStates.previewPeersList
11
+ const previewPeerCount = useSelector(
12
+ (state: RootState) => state.hmsStates.room?.peerCount
13
13
  );
14
14
 
15
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
16
+ container: {
17
+ backgroundColor: theme.palette.surface_default,
18
+ borderColor: theme.palette.border_default,
19
+ },
20
+ text: {
21
+ color: theme.palette.on_surface_high,
22
+ fontFamily: `${typography.font_family}-SemiBold`,
23
+ },
24
+ }));
25
+
26
+ if (typeof previewPeerCount !== 'number') {
27
+ return null;
28
+ }
29
+
15
30
  return (
16
- <View style={styles.container}>
17
- <Text style={[styles.text, styles.textSpacer]}>
18
- {previewPeersList.length === 0
31
+ <View style={[styles.container, hmsRoomStyles.container]}>
32
+ <Text style={[styles.text, hmsRoomStyles.text, styles.textSpacer]}>
33
+ {previewPeerCount <= 0
19
34
  ? 'You are the first to join'
20
- : `${previewPeersList.length} ${
21
- previewPeersList.length > 1 ? 'others' : 'other'
35
+ : `${previewPeerCount} ${
36
+ previewPeerCount > 1 ? 'others' : 'other'
22
37
  } in session`}
23
38
  </Text>
24
39
  </View>
@@ -28,18 +43,13 @@ export const HMSPreviewPeersList: React.FC<HMSPreviewPeersListProps> = () => {
28
43
  const styles = StyleSheet.create({
29
44
  container: {
30
45
  alignItems: 'center',
31
- backgroundColor: COLORS.SURFACE.DEFAULT,
32
46
  paddingVertical: 8,
33
47
  paddingHorizontal: 12,
34
48
  borderRadius: 20,
35
- borderColor: COLORS.BORDER.DEFAULT,
36
49
  borderWidth: 1,
37
50
  },
38
51
  text: {
39
- color: COLORS.SURFACE.ON_SURFACE.HIGH,
40
52
  fontSize: 14,
41
- fontFamily: 'Inter',
42
- fontWeight: '600',
43
53
  lineHeight: 24,
44
54
  },
45
55
  textSpacer: {
@@ -1,8 +1,11 @@
1
1
  import * as React from 'react';
2
+ import { useSelector } from 'react-redux';
2
3
  import { StyleSheet, Text } from 'react-native';
4
+ import type { StyleProp, TextStyle } from 'react-native';
3
5
 
4
- import { COLORS } from '../utils/theme';
5
6
  import { useCanPublishAudio, useCanPublishVideo } from '../hooks-sdk';
7
+ import { useHMSRoomStyle } from '../hooks-util';
8
+ import type { RootState } from '../redux';
6
9
 
7
10
  export interface HMSPreviewSubtitleProps {
8
11
  subtitle?: string;
@@ -14,35 +17,48 @@ export const HMSPreviewSubtitle: React.FC<HMSPreviewSubtitleProps> = ({
14
17
  const canPublishAudio = useCanPublishAudio();
15
18
  const canPublishVideo = useCanPublishVideo();
16
19
 
20
+ const hmsRoomPreviewSubtitle = useSelector((state: RootState) => {
21
+ const layoutConfig = state.hmsStates.layoutConfig;
22
+
23
+ return layoutConfig?.screens?.preview?.default?.elements?.preview_header
24
+ ?.sub_title;
25
+ });
26
+
27
+ const titleStyles = useHMSRoomStyle((theme, typography) => ({
28
+ color: theme.palette.on_surface_medium,
29
+ fontFamily: `${typography.font_family}-Regular`,
30
+ }));
31
+
32
+ const textStyles: StyleProp<TextStyle> = [styles.title, titleStyles];
33
+
17
34
  if (subtitle) {
18
- return <Text style={styles.title}>{subtitle}</Text>;
35
+ return <Text style={textStyles}>{subtitle}</Text>;
36
+ }
37
+
38
+ if (hmsRoomPreviewSubtitle) {
39
+ return <Text style={textStyles}>{hmsRoomPreviewSubtitle}</Text>;
19
40
  }
20
41
 
21
42
  if (canPublishAudio && canPublishVideo) {
22
43
  return (
23
- <Text style={styles.title}>
24
- Setup your audio and video before joining
25
- </Text>
44
+ <Text style={textStyles}>Setup your audio and video before joining</Text>
26
45
  );
27
46
  }
28
47
 
29
48
  if (canPublishAudio) {
30
- return <Text style={styles.title}>Setup your audio before joining</Text>;
49
+ return <Text style={textStyles}>Setup your audio before joining</Text>;
31
50
  }
32
51
 
33
52
  if (canPublishVideo) {
34
- return <Text style={styles.title}>Setup your video before joining</Text>;
53
+ return <Text style={textStyles}>Setup your video before joining</Text>;
35
54
  }
36
55
 
37
- return <Text style={styles.title}>Enter your name before joining</Text>;
56
+ return <Text style={textStyles}>Enter your name before joining</Text>;
38
57
  };
39
58
 
40
59
  const styles = StyleSheet.create({
41
60
  title: {
42
- color: COLORS.SURFACE.ON_SURFACE.MEDIUM,
43
61
  fontSize: 14,
44
- fontFamily: 'Inter',
45
- fontWeight: '400',
46
62
  lineHeight: 20,
47
63
  marginTop: 4,
48
64
  textAlign: 'center',
@@ -7,6 +7,7 @@ import type { RootState } from '../redux';
7
7
  import { getInitials } from '../utils/functions';
8
8
  import { COLORS } from '../utils/theme';
9
9
  import { HMSLocalVideoView } from './HMSLocalVideoView';
10
+ import { useHMSRoomStyleSheet } from '../hooks-util';
10
11
 
11
12
  export const HMSPreviewTile: React.FC = () => {
12
13
  const isLocalVideoMuted = useSelector(
@@ -17,15 +18,30 @@ export const HMSPreviewTile: React.FC = () => {
17
18
  );
18
19
  const userName = useSelector((state: RootState) => state.user.userName);
19
20
 
21
+ const roomStyles = useHMSRoomStyleSheet((theme, typography) => ({
22
+ container: {
23
+ backgroundColor: theme.palette.background_dim,
24
+ },
25
+ avatar: {
26
+ backgroundColor: COLORS.EXTENDED.PURPLE,
27
+ },
28
+ avatarText: {
29
+ color: theme.palette.on_surface_high,
30
+ fontFamily: `${typography.font_family}-SemiBold`,
31
+ },
32
+ }));
33
+
20
34
  return (
21
- <View style={styles.modalContainer}>
35
+ <View style={[styles.modalContainer, roomStyles.container]}>
22
36
  {isLocalVideoMuted || !localVideoTrackId ? (
23
37
  <View style={styles.avatarContainer}>
24
- <View style={styles.avatar}>
38
+ <View style={[styles.avatar, roomStyles.avatar]}>
25
39
  {userName.length === 0 ? (
26
40
  <PersonIcon style={styles.avatarIcon} />
27
41
  ) : (
28
- <Text style={styles.avatarText}>{getInitials(userName)}</Text>
42
+ <Text style={[styles.avatarText, roomStyles.avatarText]}>
43
+ {getInitials(userName)}
44
+ </Text>
29
45
  )}
30
46
  </View>
31
47
  </View>
@@ -40,7 +56,6 @@ const styles = StyleSheet.create({
40
56
  modalContainer: {
41
57
  flex: 1,
42
58
  position: 'relative',
43
- backgroundColor: COLORS.BACKGROUND.DIM,
44
59
  overflow: 'hidden',
45
60
  },
46
61
  hmsView: {
@@ -54,7 +69,6 @@ const styles = StyleSheet.create({
54
69
  avatar: {
55
70
  width: 88,
56
71
  aspectRatio: 1,
57
- backgroundColor: COLORS.EXTENDED.PURPLE,
58
72
  borderRadius: 44,
59
73
  justifyContent: 'center',
60
74
  alignItems: 'center',
@@ -64,10 +78,7 @@ const styles = StyleSheet.create({
64
78
  height: 40,
65
79
  },
66
80
  avatarText: {
67
- color: COLORS.SURFACE.ON_SURFACE.HIGH,
68
81
  fontSize: 34,
69
- fontFamily: 'Inter',
70
- fontWeight: '600',
71
82
  lineHeight: 40,
72
83
  letterSpacing: 0.25,
73
84
  },
@@ -1,7 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { StyleSheet, Text } from 'react-native';
3
+ import { useSelector } from 'react-redux';
3
4
 
4
- import { COLORS } from '../utils/theme';
5
+ import { useHMSRoomStyle } from '../hooks-util';
6
+ import type { RootState } from '../redux';
5
7
 
6
8
  export interface HMSPreviewTitleProps {
7
9
  title?: string;
@@ -10,15 +12,26 @@ export interface HMSPreviewTitleProps {
10
12
  export const HMSPreviewTitle: React.FC<HMSPreviewTitleProps> = ({
11
13
  title = 'Get Started',
12
14
  }) => {
13
- return <Text style={styles.title}>{title}</Text>;
15
+ const hmsRoomPreviewTitle = useSelector((state: RootState) => {
16
+ const layoutConfig = state.hmsStates.layoutConfig;
17
+
18
+ const previewTitle =
19
+ layoutConfig?.screens?.preview?.default?.elements?.preview_header?.title;
20
+
21
+ return previewTitle || title;
22
+ });
23
+
24
+ const titleStyles = useHMSRoomStyle((theme, typography) => ({
25
+ color: theme.palette.on_surface_high,
26
+ fontFamily: `${typography.font_family}-SemiBold`,
27
+ }));
28
+
29
+ return <Text style={[styles.title, titleStyles]}>{hmsRoomPreviewTitle}</Text>;
14
30
  };
15
31
 
16
32
  const styles = StyleSheet.create({
17
33
  title: {
18
- color: COLORS.SURFACE.ON_SURFACE.HIGH,
19
34
  fontSize: 24,
20
- fontFamily: 'Inter',
21
- fontWeight: '600',
22
35
  lineHeight: 32,
23
36
  textAlign: 'center',
24
37
  },
@@ -0,0 +1,63 @@
1
+ import * as React from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+
4
+ import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
5
+ import { HMSBaseButton } from './HMSBaseButton';
6
+
7
+ export interface HMSPrimaryButtonProps {
8
+ title: string;
9
+ loading: boolean;
10
+ onPress(): void;
11
+ style?: StyleProp<ViewStyle>;
12
+ disabled?: boolean;
13
+ leftComponent?: React.ReactElement | null;
14
+ }
15
+
16
+ export const HMSPrimaryButton: React.FC<HMSPrimaryButtonProps> = ({
17
+ title,
18
+ loading,
19
+ onPress,
20
+ style,
21
+ disabled,
22
+ leftComponent,
23
+ }) => {
24
+ const { primary_dim: primaryDarkColor, on_primary_high: onPrimaryHighColor } =
25
+ useHMSRoomColorPalette();
26
+
27
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
28
+ button: {
29
+ backgroundColor: theme.palette.primary_default,
30
+ },
31
+ disabledButton: {
32
+ backgroundColor: theme.palette.primary_disabled,
33
+ },
34
+ buttonText: {
35
+ color: theme.palette.on_primary_high,
36
+ fontFamily: `${typography.font_family}-SemiBold`,
37
+ },
38
+ disabledText: {
39
+ color: theme.palette.on_primary_low,
40
+ },
41
+ }));
42
+
43
+ return (
44
+ <HMSBaseButton
45
+ loaderColor={onPrimaryHighColor}
46
+ loading={loading}
47
+ onPress={onPress}
48
+ title={title}
49
+ underlayColor={primaryDarkColor}
50
+ disabled={disabled}
51
+ leftComponent={leftComponent}
52
+ style={[
53
+ hmsRoomStyles.button,
54
+ disabled ? hmsRoomStyles.disabledButton : null,
55
+ style,
56
+ ]}
57
+ textStyle={[
58
+ hmsRoomStyles.buttonText,
59
+ disabled ? hmsRoomStyles.disabledText : null,
60
+ ]}
61
+ />
62
+ );
63
+ };
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import { useSelector } from 'react-redux';
3
+ import { ActivityIndicator, StyleSheet } from 'react-native';
4
+
5
+ import type { RootState } from '../redux';
6
+ import { RecordingIcon } from '../Icons';
7
+ import { useHMSRoomColorPalette, useHMSRoomStyle } from '../hooks-util';
8
+
9
+ export const HMSRecordingIndicator = () => {
10
+ const isRecordingOn = useSelector(
11
+ (state: RootState) => !!state.hmsStates.room?.browserRecordingState?.running
12
+ );
13
+ const startingOrStoppingRecording = useSelector((state: RootState) => state.app.startingOrStoppingRecording);
14
+
15
+ const { on_surface_high: onSurfaceHighColor } = useHMSRoomColorPalette();
16
+
17
+ const iconStyles = useHMSRoomStyle((theme) => ({
18
+ tintColor: theme.palette.alert_error_default
19
+ }));
20
+
21
+ if (startingOrStoppingRecording) {
22
+ return <ActivityIndicator size={"small"} color={onSurfaceHighColor} />
23
+ }
24
+
25
+ if (isRecordingOn) {
26
+ return <RecordingIcon style={[styles.icon, iconStyles]} />;
27
+ }
28
+
29
+ return null;
30
+ }
31
+
32
+ const styles = StyleSheet.create({
33
+ icon: {
34
+ width: 24,
35
+ height: 24,
36
+ },
37
+ });
@@ -3,7 +3,7 @@ import { View } from 'react-native';
3
3
  import { HMSAudioMixingMode, HMSAudioMode } from '@100mslive/react-native-hms';
4
4
 
5
5
  import { PressableIcon } from './PressableIcon';
6
- import { ThreeDotsIcon } from '../Icons';
6
+ import { HamburgerIcon } from '../Icons';
7
7
  import { DefaultModal } from './DefaultModal';
8
8
  import { RoomSettingsModalContent } from './RoomSettingsModalContent';
9
9
  import {
@@ -18,6 +18,9 @@ import {
18
18
  } from './Modals';
19
19
  import { ModalTypes } from '../utils/types';
20
20
  import { useModalType } from '../hooks-util';
21
+ import { BottomSheet } from './BottomSheet';
22
+ import { ChangeNameModalContent } from './ChangeNameModalContent';
23
+ import { StopRecordingModalContent } from './StopRecordingModalContent';
21
24
 
22
25
  interface HMSRoomOptionsProps {}
23
26
 
@@ -44,14 +47,13 @@ export const HMSRoomOptions: React.FC<HMSRoomOptionsProps> = () => {
44
47
  return (
45
48
  <View>
46
49
  <PressableIcon onPress={onSettingsPress}>
47
- <ThreeDotsIcon stack="vertical" />
50
+ <HamburgerIcon />
48
51
  </PressableIcon>
49
52
 
50
- <DefaultModal
51
- animationIn={'slideInUp'}
52
- animationOut={'slideOutDown'}
53
- modalVisible={modalVisible === ModalTypes.SETTINGS}
54
- setModalVisible={dismissModal}
53
+ <BottomSheet
54
+ isVisible={modalVisible === ModalTypes.SETTINGS}
55
+ dismissModal={dismissModal}
56
+ animationOutTiming={700}
55
57
  >
56
58
  <RoomSettingsModalContent
57
59
  newAudioMixingMode={newAudioMixingMode}
@@ -64,7 +66,25 @@ export const HMSRoomOptions: React.FC<HMSRoomOptionsProps> = () => {
64
66
  setIsAudioShared={setIsAudioShared}
65
67
  setMuteAllTracksAudio={setMuteAllTracksAudio}
66
68
  />
67
- </DefaultModal>
69
+ </BottomSheet>
70
+
71
+ <BottomSheet
72
+ isVisible={modalVisible === ModalTypes.CHANGE_NAME}
73
+ dismissModal={dismissModal}
74
+ avoidKeyboard={true}
75
+ animationOutTiming={700}
76
+ >
77
+ <ChangeNameModalContent dismissModal={dismissModal} />
78
+ </BottomSheet>
79
+
80
+ <BottomSheet
81
+ isVisible={modalVisible === ModalTypes.STOP_RECORDING}
82
+ dismissModal={dismissModal}
83
+ animationOutTiming={800}
84
+ >
85
+ <StopRecordingModalContent dismissModal={dismissModal} />
86
+ </BottomSheet>
87
+
68
88
  <DefaultModal
69
89
  animationIn={'slideInUp'}
70
90
  animationOut={'slideOutDown'}
@@ -3,9 +3,8 @@ import { useSelector } from 'react-redux';
3
3
  import { StyleSheet, Image } from 'react-native';
4
4
 
5
5
  import type { RootState } from '../redux';
6
- import { COLORS } from '../utils/theme';
7
6
  import { CustomButton } from './CustomButton';
8
- import { useHMSInstance } from '../hooks-util';
7
+ import { useHMSInstance, useHMSRoomStyle } from '../hooks-util';
9
8
 
10
9
  export const HMSShowNetworkQuality = () => {
11
10
  const hmsInstance = useHMSInstance();
@@ -20,11 +19,16 @@ export const HMSShowNetworkQuality = () => {
20
19
  return () => hmsInstance.disableNetworkQualityUpdates();
21
20
  }, [hmsInstance]);
22
21
 
22
+ const iconContainer = useHMSRoomStyle((theme) => ({
23
+ backgroundColor: theme.palette.border_bright,
24
+ borderColor: theme.palette.border_bright,
25
+ }));
26
+
23
27
  return (
24
28
  <CustomButton
25
29
  onPress={() => {}}
26
30
  disabled={true}
27
- viewStyle={styles.singleIconContainer}
31
+ viewStyle={[styles.singleIconContainer, iconContainer]}
28
32
  LeftIcon={
29
33
  <Image
30
34
  resizeMode="contain"
@@ -53,8 +57,6 @@ const styles = StyleSheet.create({
53
57
  },
54
58
  singleIconContainer: {
55
59
  padding: 8,
56
- backgroundColor: COLORS.BORDER.LIGHT,
57
- borderColor: COLORS.BORDER.LIGHT,
58
60
  borderWidth: 1,
59
61
  width: 'auto',
60
62
  height: 48,
@@ -0,0 +1,78 @@
1
+ import * as React from 'react';
2
+ import { Platform, StyleSheet, TextInput } from 'react-native';
3
+ import type { StyleProp, TextStyle } from 'react-native';
4
+
5
+ import { useHMSRoomColorPalette, useHMSRoomStyleSheet } from '../hooks-util';
6
+
7
+ export interface HMSTextInputProps {
8
+ value: string;
9
+ onChangeText(text: string): void;
10
+ style?: StyleProp<TextStyle>;
11
+ autoFocus?: boolean;
12
+ }
13
+
14
+ export const HMSTextInput: React.FC<HMSTextInputProps> = ({
15
+ value,
16
+ onChangeText,
17
+ style,
18
+ autoFocus,
19
+ }) => {
20
+ const [inputFocused, setInputFocused] = React.useState(false);
21
+
22
+ const handleInputFocus = () => setInputFocused(true);
23
+
24
+ const handleInputBlur = () => setInputFocused(false);
25
+
26
+ const {
27
+ on_surface_low: onSurfaceLowColor,
28
+ on_surface_high: onSurfaceHighColor,
29
+ } = useHMSRoomColorPalette();
30
+
31
+ const hmsRoomStyles = useHMSRoomStyleSheet((theme, typography) => ({
32
+ input: {
33
+ backgroundColor: theme.palette.surface_default,
34
+ color: theme.palette.on_surface_high,
35
+ borderColor: theme.palette.surface_default,
36
+ fontFamily: `${typography.font_family}-Regular`,
37
+ },
38
+ focusedInput: {
39
+ borderColor: theme.palette.primary_default,
40
+ borderWidth: 2,
41
+ },
42
+ }));
43
+
44
+ return (
45
+ <TextInput
46
+ style={[
47
+ styles.input,
48
+ hmsRoomStyles.input,
49
+ inputFocused ? hmsRoomStyles.focusedInput : null,
50
+ style,
51
+ ]}
52
+ value={value}
53
+ onChangeText={onChangeText}
54
+ placeholder="Enter Name..."
55
+ autoCapitalize="words"
56
+ autoCompleteType="name"
57
+ placeholderTextColor={onSurfaceLowColor}
58
+ selectionColor={onSurfaceHighColor}
59
+ onFocus={handleInputFocus}
60
+ onBlur={handleInputBlur}
61
+ autoFocus={autoFocus}
62
+ />
63
+ );
64
+ };
65
+
66
+ const styles = StyleSheet.create({
67
+ input: {
68
+ flex: 1,
69
+ height: 50,
70
+ textAlignVertical: 'center',
71
+ paddingHorizontal: 16,
72
+ borderRadius: 8,
73
+ fontSize: 16,
74
+ lineHeight: Platform.OS === 'android' ? 24 : undefined,
75
+ letterSpacing: 0.5,
76
+ borderWidth: 2,
77
+ },
78
+ });
@@ -1,18 +1,16 @@
1
1
  import React, { memo } from 'react';
2
- import { View, StyleSheet, Text } from 'react-native';
2
+ import { View, StyleSheet } from 'react-native';
3
3
  import Animated, {
4
4
  useAnimatedProps,
5
5
  useAnimatedStyle,
6
6
  } from 'react-native-reanimated';
7
7
  import type { SharedValue } from 'react-native-reanimated';
8
8
 
9
- import { COLORS } from '../utils/theme';
10
- import { HMSManageLeave } from './HMSManageLeave';
11
9
  import { HMSManageCameraRotation } from './HMSManageCameraRotation';
12
- import { useIsHLSViewer } from '../hooks-util';
13
- import { HmsLogoIcon } from '../Icons';
14
- import { useSelector } from 'react-redux';
15
- import type { RootState } from '../redux';
10
+ import { useHMSRoomStyle, useIsHLSViewer } from '../hooks-util';
11
+ import { HMSManageAudioOutput } from './HMSManageAudioOutput';
12
+ import { HMSRecordingIndicator } from './HMSRecordingIndicator';
13
+ import { CompanyLogo } from './CompanyLogo';
16
14
 
17
15
  interface HeaderProps {
18
16
  offset: SharedValue<number>;
@@ -20,10 +18,7 @@ interface HeaderProps {
20
18
 
21
19
  export const _Header: React.FC<HeaderProps> = ({ offset }) => {
22
20
  const isHLSViewer = useIsHLSViewer();
23
- const roomName = useSelector(
24
- (state: RootState) => state.hmsStates.room?.name
25
- );
26
- const debugMode = useSelector((state: RootState) => state.user.debugMode);
21
+
27
22
  const animatedStyles = useAnimatedStyle(() => {
28
23
  return {
29
24
  opacity: offset.value,
@@ -39,50 +34,56 @@ export const _Header: React.FC<HeaderProps> = ({ offset }) => {
39
34
  };
40
35
  }, []);
41
36
 
37
+ const containerStyles = useHMSRoomStyle((theme) => ({
38
+ backgroundColor: theme.palette.background_dim,
39
+ }));
40
+
42
41
  return (
43
42
  <Animated.View style={animatedStyles} animatedProps={animatedProps}>
44
- {isHLSViewer ? (
45
- <View style={styles.hlsContainer}>
46
- <HmsLogoIcon />
43
+ <View style={[styles.container, containerStyles]}>
44
+ <View style={styles.logoContainer}>
45
+ <CompanyLogo style={styles.logo} />
47
46
 
48
- {debugMode && roomName ? (
49
- <Text style={styles.roomName}>{roomName}</Text>
50
- ) : null}
47
+ <HMSRecordingIndicator />
51
48
  </View>
52
- ) : (
53
- <View style={styles.container}>
54
- <HMSManageLeave />
55
- <HMSManageCameraRotation />
49
+
50
+ <View style={styles.controls}>
51
+ {isHLSViewer ? null : (
52
+ <View style={styles.cameraRotationWrapper}>
53
+ <HMSManageCameraRotation />
54
+ </View>
55
+ )}
56
+
57
+ <HMSManageAudioOutput />
56
58
  </View>
57
- )}
59
+ </View>
58
60
  </Animated.View>
59
61
  );
60
62
  };
61
63
 
62
64
  const styles = StyleSheet.create({
63
65
  container: {
64
- paddingVertical: 8,
66
+ paddingTop: 8,
67
+ paddingBottom: 16,
65
68
  paddingHorizontal: 16,
66
- backgroundColor: COLORS.BACKGROUND.DIM,
67
69
  flexDirection: 'row',
68
70
  alignItems: 'center',
69
71
  justifyContent: 'space-between',
70
72
  },
71
- hlsContainer: {
72
- padding: 16,
73
- paddingTop: 8,
73
+ logoContainer: {
74
+ flexDirection: 'row',
75
+ alignItems: 'center'
76
+ },
77
+ logo: {
78
+ marginRight: 12
79
+ },
80
+ controls: {
74
81
  flexDirection: 'row',
75
82
  alignItems: 'center',
83
+ marginLeft: 16,
76
84
  },
77
- roomName: {
78
- flex: 1,
79
- fontFamily: 'Inter',
80
- fontSize: 15,
81
- fontWeight: '500',
82
- color: COLORS.SURFACE.ON_SURFACE.HIGH,
83
- lineHeight: 20,
84
- letterSpacing: 0.1,
85
- marginLeft: 24,
85
+ cameraRotationWrapper: {
86
+ marginRight: 16
86
87
  },
87
88
  });
88
89
 
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { useSelector } from 'react-redux';
3
+
4
+ import { PeerVideoTileView } from './PeerVideoTile/PeerVideoTileView';
5
+ import type { PeerVideoTileViewProps } from './PeerVideoTile/PeerVideoTileView';
6
+ import type { RootState } from '../redux';
7
+
8
+ export interface LocalPeerRegularVideoViewProps
9
+ extends Omit<PeerVideoTileViewProps, 'peerTrackNode'> {}
10
+
11
+ export const LocalPeerRegularVideoView: React.FC<
12
+ LocalPeerRegularVideoViewProps
13
+ > = ({ onMoreOptionsPress }) => {
14
+ const localPeerTrackNode = useSelector(
15
+ (state: RootState) => state.app.localPeerTrackNode
16
+ );
17
+
18
+ if (!localPeerTrackNode) {
19
+ return null;
20
+ }
21
+
22
+ return (
23
+ <PeerVideoTileView
24
+ peerTrackNode={localPeerTrackNode}
25
+ onMoreOptionsPress={onMoreOptionsPress}
26
+ />
27
+ );
28
+ };