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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (816) hide show
  1. package/README.md +413 -11
  2. package/lib/commonjs/HMSInstanceSetup.js +2 -1
  3. package/lib/commonjs/HMSInstanceSetup.js.map +1 -1
  4. package/lib/commonjs/HMSPrebuilt.js +4 -2
  5. package/lib/commonjs/HMSPrebuilt.js.map +1 -1
  6. package/lib/commonjs/HMSRoomSetup.js +39 -8
  7. package/lib/commonjs/HMSRoomSetup.js.map +1 -1
  8. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  9. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  10. package/lib/commonjs/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  11. package/lib/commonjs/Icons/AlertTriangle/index.js +34 -0
  12. package/lib/commonjs/Icons/AlertTriangle/index.js.map +1 -0
  13. package/lib/commonjs/Icons/AnswerPhone/index.js +5 -1
  14. package/lib/commonjs/Icons/AnswerPhone/index.js.map +1 -1
  15. package/lib/commonjs/Icons/BRB/assets/BRB.png +0 -0
  16. package/lib/commonjs/Icons/BRB/assets/BRB@2x.png +0 -0
  17. package/lib/commonjs/Icons/BRB/assets/BRB@3x.png +0 -0
  18. package/lib/commonjs/Icons/BRB/index.js +35 -0
  19. package/lib/commonjs/Icons/BRB/index.js.map +1 -0
  20. package/lib/commonjs/Icons/Bluetooth/index.js +5 -1
  21. package/lib/commonjs/Icons/Bluetooth/index.js.map +1 -1
  22. package/lib/commonjs/Icons/Camera/index.js +5 -1
  23. package/lib/commonjs/Icons/Camera/index.js.map +1 -1
  24. package/lib/commonjs/Icons/Chat/index.js +5 -1
  25. package/lib/commonjs/Icons/Chat/index.js.map +1 -1
  26. package/lib/commonjs/Icons/Check/index.js +5 -1
  27. package/lib/commonjs/Icons/Check/index.js.map +1 -1
  28. package/lib/commonjs/Icons/Chevron/index.js +5 -1
  29. package/lib/commonjs/Icons/Chevron/index.js.map +1 -1
  30. package/lib/commonjs/Icons/Close/index.js +5 -1
  31. package/lib/commonjs/Icons/Close/index.js.map +1 -1
  32. package/lib/commonjs/Icons/Hamburger/assets/hamburger.png +0 -0
  33. package/lib/commonjs/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  34. package/lib/commonjs/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  35. package/lib/commonjs/Icons/Hamburger/index.js +34 -0
  36. package/lib/commonjs/Icons/Hamburger/index.js.map +1 -0
  37. package/lib/commonjs/Icons/Hand/index.js +6 -4
  38. package/lib/commonjs/Icons/Hand/index.js.map +1 -1
  39. package/lib/commonjs/Icons/Headphones/index.js +5 -1
  40. package/lib/commonjs/Icons/Headphones/index.js.map +1 -1
  41. package/lib/commonjs/Icons/Maximize/assets/maximize.png +0 -0
  42. package/lib/commonjs/Icons/Maximize/assets/maximize@2x.png +0 -0
  43. package/lib/commonjs/Icons/Maximize/assets/maximize@3x.png +0 -0
  44. package/lib/commonjs/Icons/Maximize/index.js +34 -0
  45. package/lib/commonjs/Icons/Maximize/index.js.map +1 -0
  46. package/lib/commonjs/Icons/Mic/index.js +5 -1
  47. package/lib/commonjs/Icons/Mic/index.js.map +1 -1
  48. package/lib/commonjs/Icons/Minimize/assets/minimize.png +0 -0
  49. package/lib/commonjs/Icons/Minimize/assets/minimize@2x.png +0 -0
  50. package/lib/commonjs/Icons/Minimize/assets/minimize@3x.png +0 -0
  51. package/lib/commonjs/Icons/Minimize/index.js +34 -0
  52. package/lib/commonjs/Icons/Minimize/index.js.map +1 -0
  53. package/lib/commonjs/Icons/Participants/index.js +5 -1
  54. package/lib/commonjs/Icons/Participants/index.js.map +1 -1
  55. package/lib/commonjs/Icons/Pencil/assets/pencil.png +0 -0
  56. package/lib/commonjs/Icons/Pencil/assets/pencil@2x.png +0 -0
  57. package/lib/commonjs/Icons/Pencil/assets/pencil@3x.png +0 -0
  58. package/lib/commonjs/Icons/Pencil/index.js +34 -0
  59. package/lib/commonjs/Icons/Pencil/index.js.map +1 -0
  60. package/lib/commonjs/Icons/Pin/assets/pin.png +0 -0
  61. package/lib/commonjs/Icons/Pin/assets/pin@2x.png +0 -0
  62. package/lib/commonjs/Icons/Pin/assets/pin@3x.png +0 -0
  63. package/lib/commonjs/Icons/Pin/index.js +34 -0
  64. package/lib/commonjs/Icons/Pin/index.js.map +1 -0
  65. package/lib/commonjs/Icons/Radio/assets/radio-xlarge.png +0 -0
  66. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  67. package/lib/commonjs/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  68. package/lib/commonjs/Icons/Radio/index.js +29 -1
  69. package/lib/commonjs/Icons/Radio/index.js.map +1 -1
  70. package/lib/commonjs/Icons/Recording/assets/recording.png +0 -0
  71. package/lib/commonjs/Icons/Recording/assets/recording@2x.png +0 -0
  72. package/lib/commonjs/Icons/Recording/assets/recording@3x.png +0 -0
  73. package/lib/commonjs/Icons/Recording/index.js +34 -0
  74. package/lib/commonjs/Icons/Recording/index.js.map +1 -0
  75. package/lib/commonjs/Icons/RotateCamera/index.js +5 -1
  76. package/lib/commonjs/Icons/RotateCamera/index.js.map +1 -1
  77. package/lib/commonjs/Icons/ScreenShare/index.js +5 -1
  78. package/lib/commonjs/Icons/ScreenShare/index.js.map +1 -1
  79. package/lib/commonjs/Icons/Speaker/index.js +5 -1
  80. package/lib/commonjs/Icons/Speaker/index.js.map +1 -1
  81. package/lib/commonjs/Icons/Star/assets/star.png +0 -0
  82. package/lib/commonjs/Icons/Star/assets/star@2x.png +0 -0
  83. package/lib/commonjs/Icons/Star/assets/star@3x.png +0 -0
  84. package/lib/commonjs/Icons/Star/index.js +34 -0
  85. package/lib/commonjs/Icons/Star/index.js.map +1 -0
  86. package/lib/commonjs/Icons/Stop/assets/stop.png +0 -0
  87. package/lib/commonjs/Icons/Stop/assets/stop@2x.png +0 -0
  88. package/lib/commonjs/Icons/Stop/assets/stop@3x.png +0 -0
  89. package/lib/commonjs/Icons/Stop/index.js +34 -0
  90. package/lib/commonjs/Icons/Stop/index.js.map +1 -0
  91. package/lib/commonjs/Icons/ThreeDots/index.js +5 -1
  92. package/lib/commonjs/Icons/ThreeDots/index.js.map +1 -1
  93. package/lib/commonjs/Icons/Wave/index.js +5 -1
  94. package/lib/commonjs/Icons/Wave/index.js.map +1 -1
  95. package/lib/commonjs/Icons/index.js +110 -0
  96. package/lib/commonjs/Icons/index.js.map +1 -1
  97. package/lib/commonjs/components/AvatarView.js +1 -2
  98. package/lib/commonjs/components/AvatarView.js.map +1 -1
  99. package/lib/commonjs/components/BackButton.js +6 -4
  100. package/lib/commonjs/components/BackButton.js.map +1 -1
  101. package/lib/commonjs/components/BottomSheet.js +157 -0
  102. package/lib/commonjs/components/BottomSheet.js.map +1 -0
  103. package/lib/commonjs/components/ChangeNameModalContent.js +131 -0
  104. package/lib/commonjs/components/ChangeNameModalContent.js.map +1 -0
  105. package/lib/commonjs/components/CompanyLogo.js +38 -0
  106. package/lib/commonjs/components/CompanyLogo.js.map +1 -0
  107. package/lib/commonjs/components/CustomInput.js +2 -3
  108. package/lib/commonjs/components/CustomInput.js.map +1 -1
  109. package/lib/commonjs/components/DisplayView.js +15 -54
  110. package/lib/commonjs/components/DisplayView.js.map +1 -1
  111. package/lib/commonjs/components/EndRoomModalContent.js +85 -0
  112. package/lib/commonjs/components/EndRoomModalContent.js.map +1 -0
  113. package/lib/commonjs/components/Footer.js +17 -13
  114. package/lib/commonjs/components/Footer.js.map +1 -1
  115. package/lib/commonjs/components/GridView.js +53 -7
  116. package/lib/commonjs/components/GridView.js.map +1 -1
  117. package/lib/commonjs/components/HMSBaseButton.js +66 -0
  118. package/lib/commonjs/components/HMSBaseButton.js.map +1 -0
  119. package/lib/commonjs/components/HMSDangerButton.js +53 -0
  120. package/lib/commonjs/components/HMSDangerButton.js.map +1 -0
  121. package/lib/commonjs/components/HMSHLSNotStarted.js +27 -19
  122. package/lib/commonjs/components/HMSHLSNotStarted.js.map +1 -1
  123. package/lib/commonjs/components/HMSHLSStreamLoading.js +17 -8
  124. package/lib/commonjs/components/HMSHLSStreamLoading.js.map +1 -1
  125. package/lib/commonjs/components/HMSManageAudioOutput.js +41 -75
  126. package/lib/commonjs/components/HMSManageAudioOutput.js.map +1 -1
  127. package/lib/commonjs/components/HMSManageCameraRotation.js +5 -4
  128. package/lib/commonjs/components/HMSManageCameraRotation.js.map +1 -1
  129. package/lib/commonjs/components/HMSManageLeave.js +101 -128
  130. package/lib/commonjs/components/HMSManageLeave.js.map +1 -1
  131. package/lib/commonjs/components/HMSManageLocalAudio.js +1 -9
  132. package/lib/commonjs/components/HMSManageLocalAudio.js.map +1 -1
  133. package/lib/commonjs/components/HMSManageLocalVideo.js +1 -9
  134. package/lib/commonjs/components/HMSManageLocalVideo.js.map +1 -1
  135. package/lib/commonjs/components/HMSManageRaiseHand.js +2 -15
  136. package/lib/commonjs/components/HMSManageRaiseHand.js.map +1 -1
  137. package/lib/commonjs/components/HMSMeetingEnded.js +1 -2
  138. package/lib/commonjs/components/HMSMeetingEnded.js.map +1 -1
  139. package/lib/commonjs/components/HMSPreviewEditName.js +3 -37
  140. package/lib/commonjs/components/HMSPreviewEditName.js.map +1 -1
  141. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js +17 -10
  142. package/lib/commonjs/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  143. package/lib/commonjs/components/HMSPreviewJoinButton.js +23 -46
  144. package/lib/commonjs/components/HMSPreviewJoinButton.js.map +1 -1
  145. package/lib/commonjs/components/HMSPreviewNetworkQuality.js +5 -3
  146. package/lib/commonjs/components/HMSPreviewNetworkQuality.js.map +1 -1
  147. package/lib/commonjs/components/HMSPreviewPeersList.js +21 -10
  148. package/lib/commonjs/components/HMSPreviewPeersList.js.map +1 -1
  149. package/lib/commonjs/components/HMSPreviewSubtitle.js +22 -9
  150. package/lib/commonjs/components/HMSPreviewSubtitle.js.map +1 -1
  151. package/lib/commonjs/components/HMSPreviewTile.js +16 -8
  152. package/lib/commonjs/components/HMSPreviewTile.js.map +1 -1
  153. package/lib/commonjs/components/HMSPreviewTitle.js +14 -6
  154. package/lib/commonjs/components/HMSPreviewTitle.js.map +1 -1
  155. package/lib/commonjs/components/HMSPrimaryButton.js +53 -0
  156. package/lib/commonjs/components/HMSPrimaryButton.js.map +1 -0
  157. package/lib/commonjs/components/HMSRecordingIndicator.js +46 -0
  158. package/lib/commonjs/components/HMSRecordingIndicator.js.map +1 -0
  159. package/lib/commonjs/components/HMSRoomOptions.js +20 -7
  160. package/lib/commonjs/components/HMSRoomOptions.js.map +1 -1
  161. package/lib/commonjs/components/HMSShowNetworkQuality.js +5 -4
  162. package/lib/commonjs/components/HMSShowNetworkQuality.js.map +1 -1
  163. package/lib/commonjs/components/HMSTextInput.js +66 -0
  164. package/lib/commonjs/components/HMSTextInput.js.map +1 -0
  165. package/lib/commonjs/components/Header.js +30 -30
  166. package/lib/commonjs/components/Header.js.map +1 -1
  167. package/lib/commonjs/components/LocalPeerRegularVideoView.js +26 -0
  168. package/lib/commonjs/components/LocalPeerRegularVideoView.js.map +1 -0
  169. package/lib/commonjs/components/LocalPeerScreenshareView.js +76 -0
  170. package/lib/commonjs/components/LocalPeerScreenshareView.js.map +1 -0
  171. package/lib/commonjs/components/Meeting.js +8 -3
  172. package/lib/commonjs/components/Meeting.js.map +1 -1
  173. package/lib/commonjs/components/MeetingScreenContent.js +2 -1
  174. package/lib/commonjs/components/MeetingScreenContent.js.map +1 -1
  175. package/lib/commonjs/components/MiniView.js +163 -0
  176. package/lib/commonjs/components/MiniView.js.map +1 -0
  177. package/lib/commonjs/components/Modals.js +31 -116
  178. package/lib/commonjs/components/Modals.js.map +1 -1
  179. package/lib/commonjs/components/PaginationDots.js +56 -0
  180. package/lib/commonjs/components/PaginationDots.js.map +1 -0
  181. package/lib/commonjs/components/ParticipantsCount.js +55 -0
  182. package/lib/commonjs/components/ParticipantsCount.js.map +1 -0
  183. package/lib/commonjs/components/PeerMinimizedView.js +114 -0
  184. package/lib/commonjs/components/PeerMinimizedView.js.map +1 -0
  185. package/lib/commonjs/components/PeerSettingsModalContent.js +68 -51
  186. package/lib/commonjs/components/PeerSettingsModalContent.js.map +1 -1
  187. package/lib/commonjs/components/PeerVideoTile/AvatarView.js +76 -0
  188. package/lib/commonjs/components/PeerVideoTile/AvatarView.js.map +1 -0
  189. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js +44 -0
  190. package/lib/commonjs/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  191. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js +44 -0
  192. package/lib/commonjs/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  193. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js +74 -0
  194. package/lib/commonjs/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  195. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js +146 -0
  196. package/lib/commonjs/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  197. package/lib/commonjs/components/PeerVideoTile/VideoView.js +84 -0
  198. package/lib/commonjs/components/PeerVideoTile/VideoView.js.map +1 -0
  199. package/lib/commonjs/components/PeerVideoTile/index.js +2 -0
  200. package/lib/commonjs/components/PeerVideoTile/index.js.map +1 -0
  201. package/lib/commonjs/components/PressableIcon.js +15 -8
  202. package/lib/commonjs/components/PressableIcon.js.map +1 -1
  203. package/lib/commonjs/components/Preview.js +19 -6
  204. package/lib/commonjs/components/Preview.js.map +1 -1
  205. package/lib/commonjs/components/RoomSettingsModalContent.js +233 -362
  206. package/lib/commonjs/components/RoomSettingsModalContent.js.map +1 -1
  207. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js +295 -0
  208. package/lib/commonjs/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  209. package/lib/commonjs/components/StatusBar.js +7 -5
  210. package/lib/commonjs/components/StatusBar.js.map +1 -1
  211. package/lib/commonjs/components/StopRecordingModalContent.js +97 -0
  212. package/lib/commonjs/components/StopRecordingModalContent.js.map +1 -0
  213. package/lib/commonjs/components/Tile.js +29 -90
  214. package/lib/commonjs/components/Tile.js.map +1 -1
  215. package/lib/commonjs/components/TilesContainer.js +99 -10
  216. package/lib/commonjs/components/TilesContainer.js.map +1 -1
  217. package/lib/commonjs/components/UnmountAfterDelay.js +48 -0
  218. package/lib/commonjs/components/UnmountAfterDelay.js.map +1 -0
  219. package/lib/commonjs/components/WebrtcView.js +51 -0
  220. package/lib/commonjs/components/WebrtcView.js.map +1 -0
  221. package/lib/commonjs/components/WelcomeInMeeting.js +54 -0
  222. package/lib/commonjs/components/WelcomeInMeeting.js.map +1 -0
  223. package/lib/commonjs/hooks-sdk-selectors.js +6 -1
  224. package/lib/commonjs/hooks-sdk-selectors.js.map +1 -1
  225. package/lib/commonjs/hooks-sdk.js +16 -1
  226. package/lib/commonjs/hooks-sdk.js.map +1 -1
  227. package/lib/commonjs/hooks-util-selectors.js +8 -2
  228. package/lib/commonjs/hooks-util-selectors.js.map +1 -1
  229. package/lib/commonjs/hooks-util.js +315 -93
  230. package/lib/commonjs/hooks-util.js.map +1 -1
  231. package/lib/commonjs/modules/HMSManager.js +23 -0
  232. package/lib/commonjs/modules/HMSManager.js.map +1 -0
  233. package/lib/commonjs/modules/parser.js +22 -0
  234. package/lib/commonjs/modules/parser.js.map +1 -0
  235. package/lib/commonjs/peerTrackNodeUtils.js +8 -3
  236. package/lib/commonjs/peerTrackNodeUtils.js.map +1 -1
  237. package/lib/commonjs/redux/actionTypes.js +16 -1
  238. package/lib/commonjs/redux/actionTypes.js.map +1 -1
  239. package/lib/commonjs/redux/actions/index.js +51 -1
  240. package/lib/commonjs/redux/actions/index.js.map +1 -1
  241. package/lib/commonjs/redux/reducers/appState.js +57 -1
  242. package/lib/commonjs/redux/reducers/appState.js.map +1 -1
  243. package/lib/commonjs/redux/reducers/hmsStates.js +7 -1
  244. package/lib/commonjs/redux/reducers/hmsStates.js.map +1 -1
  245. package/lib/commonjs/redux/reducers/userState.js +3 -1
  246. package/lib/commonjs/redux/reducers/userState.js.map +1 -1
  247. package/lib/commonjs/utils/functions.js +51 -1
  248. package/lib/commonjs/utils/functions.js.map +1 -1
  249. package/lib/commonjs/utils/theme.js +62 -8
  250. package/lib/commonjs/utils/theme.js.map +1 -1
  251. package/lib/commonjs/utils/types.js +8 -1
  252. package/lib/commonjs/utils/types.js.map +1 -1
  253. package/lib/module/HMSInstanceSetup.js +2 -1
  254. package/lib/module/HMSInstanceSetup.js.map +1 -1
  255. package/lib/module/HMSPrebuilt.js +4 -2
  256. package/lib/module/HMSPrebuilt.js.map +1 -1
  257. package/lib/module/HMSRoomSetup.js +41 -10
  258. package/lib/module/HMSRoomSetup.js.map +1 -1
  259. package/lib/module/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  260. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  261. package/lib/module/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  262. package/lib/module/Icons/AlertTriangle/index.js +26 -0
  263. package/lib/module/Icons/AlertTriangle/index.js.map +1 -0
  264. package/lib/module/Icons/AnswerPhone/index.js +5 -1
  265. package/lib/module/Icons/AnswerPhone/index.js.map +1 -1
  266. package/lib/module/Icons/BRB/assets/BRB.png +0 -0
  267. package/lib/module/Icons/BRB/assets/BRB@2x.png +0 -0
  268. package/lib/module/Icons/BRB/assets/BRB@3x.png +0 -0
  269. package/lib/module/Icons/BRB/index.js +27 -0
  270. package/lib/module/Icons/BRB/index.js.map +1 -0
  271. package/lib/module/Icons/Bluetooth/index.js +5 -1
  272. package/lib/module/Icons/Bluetooth/index.js.map +1 -1
  273. package/lib/module/Icons/Camera/index.js +5 -1
  274. package/lib/module/Icons/Camera/index.js.map +1 -1
  275. package/lib/module/Icons/Chat/index.js +5 -1
  276. package/lib/module/Icons/Chat/index.js.map +1 -1
  277. package/lib/module/Icons/Check/index.js +5 -1
  278. package/lib/module/Icons/Check/index.js.map +1 -1
  279. package/lib/module/Icons/Chevron/index.js +5 -1
  280. package/lib/module/Icons/Chevron/index.js.map +1 -1
  281. package/lib/module/Icons/Close/index.js +5 -1
  282. package/lib/module/Icons/Close/index.js.map +1 -1
  283. package/lib/module/Icons/Hamburger/assets/hamburger.png +0 -0
  284. package/lib/module/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  285. package/lib/module/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  286. package/lib/module/Icons/Hamburger/index.js +26 -0
  287. package/lib/module/Icons/Hamburger/index.js.map +1 -0
  288. package/lib/module/Icons/Hand/index.js +6 -4
  289. package/lib/module/Icons/Hand/index.js.map +1 -1
  290. package/lib/module/Icons/Headphones/index.js +5 -1
  291. package/lib/module/Icons/Headphones/index.js.map +1 -1
  292. package/lib/module/Icons/Maximize/assets/maximize.png +0 -0
  293. package/lib/module/Icons/Maximize/assets/maximize@2x.png +0 -0
  294. package/lib/module/Icons/Maximize/assets/maximize@3x.png +0 -0
  295. package/lib/module/Icons/Maximize/index.js +26 -0
  296. package/lib/module/Icons/Maximize/index.js.map +1 -0
  297. package/lib/module/Icons/Mic/index.js +5 -1
  298. package/lib/module/Icons/Mic/index.js.map +1 -1
  299. package/lib/module/Icons/Minimize/assets/minimize.png +0 -0
  300. package/lib/module/Icons/Minimize/assets/minimize@2x.png +0 -0
  301. package/lib/module/Icons/Minimize/assets/minimize@3x.png +0 -0
  302. package/lib/module/Icons/Minimize/index.js +26 -0
  303. package/lib/module/Icons/Minimize/index.js.map +1 -0
  304. package/lib/module/Icons/Participants/index.js +5 -1
  305. package/lib/module/Icons/Participants/index.js.map +1 -1
  306. package/lib/module/Icons/Pencil/assets/pencil.png +0 -0
  307. package/lib/module/Icons/Pencil/assets/pencil@2x.png +0 -0
  308. package/lib/module/Icons/Pencil/assets/pencil@3x.png +0 -0
  309. package/lib/module/Icons/Pencil/index.js +26 -0
  310. package/lib/module/Icons/Pencil/index.js.map +1 -0
  311. package/lib/module/Icons/Pin/assets/pin.png +0 -0
  312. package/lib/module/Icons/Pin/assets/pin@2x.png +0 -0
  313. package/lib/module/Icons/Pin/assets/pin@3x.png +0 -0
  314. package/lib/module/Icons/Pin/index.js +26 -0
  315. package/lib/module/Icons/Pin/index.js.map +1 -0
  316. package/lib/module/Icons/Radio/assets/radio-xlarge.png +0 -0
  317. package/lib/module/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  318. package/lib/module/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  319. package/lib/module/Icons/Radio/index.js +30 -2
  320. package/lib/module/Icons/Radio/index.js.map +1 -1
  321. package/lib/module/Icons/Recording/assets/recording.png +0 -0
  322. package/lib/module/Icons/Recording/assets/recording@2x.png +0 -0
  323. package/lib/module/Icons/Recording/assets/recording@3x.png +0 -0
  324. package/lib/module/Icons/Recording/index.js +26 -0
  325. package/lib/module/Icons/Recording/index.js.map +1 -0
  326. package/lib/module/Icons/RotateCamera/index.js +5 -1
  327. package/lib/module/Icons/RotateCamera/index.js.map +1 -1
  328. package/lib/module/Icons/ScreenShare/index.js +5 -1
  329. package/lib/module/Icons/ScreenShare/index.js.map +1 -1
  330. package/lib/module/Icons/Speaker/index.js +5 -1
  331. package/lib/module/Icons/Speaker/index.js.map +1 -1
  332. package/lib/module/Icons/Star/assets/star.png +0 -0
  333. package/lib/module/Icons/Star/assets/star@2x.png +0 -0
  334. package/lib/module/Icons/Star/assets/star@3x.png +0 -0
  335. package/lib/module/Icons/Star/index.js +26 -0
  336. package/lib/module/Icons/Star/index.js.map +1 -0
  337. package/lib/module/Icons/Stop/assets/stop.png +0 -0
  338. package/lib/module/Icons/Stop/assets/stop@2x.png +0 -0
  339. package/lib/module/Icons/Stop/assets/stop@3x.png +0 -0
  340. package/lib/module/Icons/Stop/index.js +26 -0
  341. package/lib/module/Icons/Stop/index.js.map +1 -0
  342. package/lib/module/Icons/ThreeDots/index.js +5 -1
  343. package/lib/module/Icons/ThreeDots/index.js.map +1 -1
  344. package/lib/module/Icons/Wave/index.js +5 -1
  345. package/lib/module/Icons/Wave/index.js.map +1 -1
  346. package/lib/module/Icons/index.js +10 -0
  347. package/lib/module/Icons/index.js.map +1 -1
  348. package/lib/module/components/AvatarView.js +1 -2
  349. package/lib/module/components/AvatarView.js.map +1 -1
  350. package/lib/module/components/BackButton.js +6 -4
  351. package/lib/module/components/BackButton.js.map +1 -1
  352. package/lib/module/components/BottomSheet.js +146 -0
  353. package/lib/module/components/BottomSheet.js.map +1 -0
  354. package/lib/module/components/ChangeNameModalContent.js +122 -0
  355. package/lib/module/components/ChangeNameModalContent.js.map +1 -0
  356. package/lib/module/components/CompanyLogo.js +30 -0
  357. package/lib/module/components/CompanyLogo.js.map +1 -0
  358. package/lib/module/components/CustomInput.js +2 -3
  359. package/lib/module/components/CustomInput.js.map +1 -1
  360. package/lib/module/components/DisplayView.js +19 -57
  361. package/lib/module/components/DisplayView.js.map +1 -1
  362. package/lib/module/components/EndRoomModalContent.js +76 -0
  363. package/lib/module/components/EndRoomModalContent.js.map +1 -0
  364. package/lib/module/components/Footer.js +19 -15
  365. package/lib/module/components/Footer.js.map +1 -1
  366. package/lib/module/components/GridView.js +55 -10
  367. package/lib/module/components/GridView.js.map +1 -1
  368. package/lib/module/components/HMSBaseButton.js +57 -0
  369. package/lib/module/components/HMSBaseButton.js.map +1 -0
  370. package/lib/module/components/HMSDangerButton.js +44 -0
  371. package/lib/module/components/HMSDangerButton.js.map +1 -0
  372. package/lib/module/components/HMSHLSNotStarted.js +29 -21
  373. package/lib/module/components/HMSHLSNotStarted.js.map +1 -1
  374. package/lib/module/components/HMSHLSStreamLoading.js +17 -8
  375. package/lib/module/components/HMSHLSStreamLoading.js.map +1 -1
  376. package/lib/module/components/HMSManageAudioOutput.js +42 -77
  377. package/lib/module/components/HMSManageAudioOutput.js.map +1 -1
  378. package/lib/module/components/HMSManageCameraRotation.js +5 -4
  379. package/lib/module/components/HMSManageCameraRotation.js.map +1 -1
  380. package/lib/module/components/HMSManageLeave.js +104 -129
  381. package/lib/module/components/HMSManageLeave.js.map +1 -1
  382. package/lib/module/components/HMSManageLocalAudio.js +1 -9
  383. package/lib/module/components/HMSManageLocalAudio.js.map +1 -1
  384. package/lib/module/components/HMSManageLocalVideo.js +1 -9
  385. package/lib/module/components/HMSManageLocalVideo.js.map +1 -1
  386. package/lib/module/components/HMSManageRaiseHand.js +2 -15
  387. package/lib/module/components/HMSManageRaiseHand.js.map +1 -1
  388. package/lib/module/components/HMSMeetingEnded.js +1 -2
  389. package/lib/module/components/HMSMeetingEnded.js.map +1 -1
  390. package/lib/module/components/HMSPreviewEditName.js +3 -37
  391. package/lib/module/components/HMSPreviewEditName.js.map +1 -1
  392. package/lib/module/components/HMSPreviewHLSLiveIndicator.js +17 -10
  393. package/lib/module/components/HMSPreviewHLSLiveIndicator.js.map +1 -1
  394. package/lib/module/components/HMSPreviewJoinButton.js +26 -49
  395. package/lib/module/components/HMSPreviewJoinButton.js.map +1 -1
  396. package/lib/module/components/HMSPreviewNetworkQuality.js +6 -4
  397. package/lib/module/components/HMSPreviewNetworkQuality.js.map +1 -1
  398. package/lib/module/components/HMSPreviewPeersList.js +21 -10
  399. package/lib/module/components/HMSPreviewPeersList.js.map +1 -1
  400. package/lib/module/components/HMSPreviewSubtitle.js +22 -9
  401. package/lib/module/components/HMSPreviewSubtitle.js.map +1 -1
  402. package/lib/module/components/HMSPreviewTile.js +16 -8
  403. package/lib/module/components/HMSPreviewTile.js.map +1 -1
  404. package/lib/module/components/HMSPreviewTitle.js +14 -6
  405. package/lib/module/components/HMSPreviewTitle.js.map +1 -1
  406. package/lib/module/components/HMSPrimaryButton.js +44 -0
  407. package/lib/module/components/HMSPrimaryButton.js.map +1 -0
  408. package/lib/module/components/HMSRecordingIndicator.js +37 -0
  409. package/lib/module/components/HMSRecordingIndicator.js.map +1 -0
  410. package/lib/module/components/HMSRoomOptions.js +21 -8
  411. package/lib/module/components/HMSRoomOptions.js.map +1 -1
  412. package/lib/module/components/HMSShowNetworkQuality.js +6 -5
  413. package/lib/module/components/HMSShowNetworkQuality.js.map +1 -1
  414. package/lib/module/components/HMSTextInput.js +57 -0
  415. package/lib/module/components/HMSTextInput.js.map +1 -0
  416. package/lib/module/components/Header.js +32 -32
  417. package/lib/module/components/Header.js.map +1 -1
  418. package/lib/module/components/LocalPeerRegularVideoView.js +17 -0
  419. package/lib/module/components/LocalPeerRegularVideoView.js.map +1 -0
  420. package/lib/module/components/LocalPeerScreenshareView.js +66 -0
  421. package/lib/module/components/LocalPeerScreenshareView.js.map +1 -0
  422. package/lib/module/components/Meeting.js +9 -4
  423. package/lib/module/components/Meeting.js.map +1 -1
  424. package/lib/module/components/MeetingScreenContent.js +2 -1
  425. package/lib/module/components/MeetingScreenContent.js.map +1 -1
  426. package/lib/module/components/MiniView.js +154 -0
  427. package/lib/module/components/MiniView.js.map +1 -0
  428. package/lib/module/components/Modals.js +31 -114
  429. package/lib/module/components/Modals.js.map +1 -1
  430. package/lib/module/components/PaginationDots.js +47 -0
  431. package/lib/module/components/PaginationDots.js.map +1 -0
  432. package/lib/module/components/ParticipantsCount.js +46 -0
  433. package/lib/module/components/ParticipantsCount.js.map +1 -0
  434. package/lib/module/components/PeerMinimizedView.js +104 -0
  435. package/lib/module/components/PeerMinimizedView.js.map +1 -0
  436. package/lib/module/components/PeerSettingsModalContent.js +71 -54
  437. package/lib/module/components/PeerSettingsModalContent.js.map +1 -1
  438. package/lib/module/components/PeerVideoTile/AvatarView.js +66 -0
  439. package/lib/module/components/PeerVideoTile/AvatarView.js.map +1 -0
  440. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js +35 -0
  441. package/lib/module/components/PeerVideoTile/PeerAudioMutedIndicator.js.map +1 -0
  442. package/lib/module/components/PeerVideoTile/PeerMetadata.js +35 -0
  443. package/lib/module/components/PeerVideoTile/PeerMetadata.js.map +1 -0
  444. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js +65 -0
  445. package/lib/module/components/PeerVideoTile/PeerNameAndNetwork.js.map +1 -0
  446. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js +136 -0
  447. package/lib/module/components/PeerVideoTile/PeerVideoTileView.js.map +1 -0
  448. package/lib/module/components/PeerVideoTile/VideoView.js +75 -0
  449. package/lib/module/components/PeerVideoTile/VideoView.js.map +1 -0
  450. package/lib/module/components/PeerVideoTile/index.js +2 -0
  451. package/lib/module/components/PeerVideoTile/index.js.map +1 -0
  452. package/lib/module/components/PressableIcon.js +15 -8
  453. package/lib/module/components/PressableIcon.js.map +1 -1
  454. package/lib/module/components/Preview.js +19 -6
  455. package/lib/module/components/Preview.js.map +1 -1
  456. package/lib/module/components/RoomSettingsModalContent.js +234 -364
  457. package/lib/module/components/RoomSettingsModalContent.js.map +1 -1
  458. package/lib/module/components/RoomSettingsModalDebugModeContent.js +287 -0
  459. package/lib/module/components/RoomSettingsModalDebugModeContent.js.map +1 -0
  460. package/lib/module/components/StatusBar.js +7 -5
  461. package/lib/module/components/StatusBar.js.map +1 -1
  462. package/lib/module/components/StopRecordingModalContent.js +88 -0
  463. package/lib/module/components/StopRecordingModalContent.js.map +1 -0
  464. package/lib/module/components/Tile.js +30 -91
  465. package/lib/module/components/Tile.js.map +1 -1
  466. package/lib/module/components/TilesContainer.js +100 -10
  467. package/lib/module/components/TilesContainer.js.map +1 -1
  468. package/lib/module/components/UnmountAfterDelay.js +39 -0
  469. package/lib/module/components/UnmountAfterDelay.js.map +1 -0
  470. package/lib/module/components/WebrtcView.js +41 -0
  471. package/lib/module/components/WebrtcView.js.map +1 -0
  472. package/lib/module/components/WelcomeInMeeting.js +45 -0
  473. package/lib/module/components/WelcomeInMeeting.js.map +1 -0
  474. package/lib/module/hooks-sdk-selectors.js +4 -0
  475. package/lib/module/hooks-sdk-selectors.js.map +1 -1
  476. package/lib/module/hooks-sdk.js +16 -1
  477. package/lib/module/hooks-sdk.js.map +1 -1
  478. package/lib/module/hooks-util-selectors.js +8 -2
  479. package/lib/module/hooks-util-selectors.js.map +1 -1
  480. package/lib/module/hooks-util.js +310 -96
  481. package/lib/module/hooks-util.js.map +1 -1
  482. package/lib/module/modules/HMSManager.js +17 -0
  483. package/lib/module/modules/HMSManager.js.map +1 -0
  484. package/lib/module/modules/parser.js +16 -0
  485. package/lib/module/modules/parser.js.map +1 -0
  486. package/lib/module/peerTrackNodeUtils.js +6 -2
  487. package/lib/module/peerTrackNodeUtils.js.map +1 -1
  488. package/lib/module/redux/actionTypes.js +16 -1
  489. package/lib/module/redux/actionTypes.js.map +1 -1
  490. package/lib/module/redux/actions/index.js +42 -0
  491. package/lib/module/redux/actions/index.js.map +1 -1
  492. package/lib/module/redux/reducers/appState.js +57 -1
  493. package/lib/module/redux/reducers/appState.js.map +1 -1
  494. package/lib/module/redux/reducers/hmsStates.js +7 -1
  495. package/lib/module/redux/reducers/hmsStates.js.map +1 -1
  496. package/lib/module/redux/reducers/userState.js +3 -1
  497. package/lib/module/redux/reducers/userState.js.map +1 -1
  498. package/lib/module/utils/functions.js +47 -0
  499. package/lib/module/utils/functions.js.map +1 -1
  500. package/lib/module/utils/theme.js +57 -5
  501. package/lib/module/utils/theme.js.map +1 -1
  502. package/lib/module/utils/types.js +6 -0
  503. package/lib/module/utils/types.js.map +1 -1
  504. package/lib/typescript/HMSInstanceSetup.d.ts.map +1 -1
  505. package/lib/typescript/HMSPrebuilt.d.ts +1 -0
  506. package/lib/typescript/HMSPrebuilt.d.ts.map +1 -1
  507. package/lib/typescript/HMSRoomSetup.d.ts.map +1 -1
  508. package/lib/typescript/Icons/AlertTriangle/index.d.ts +7 -0
  509. package/lib/typescript/Icons/AlertTriangle/index.d.ts.map +1 -0
  510. package/lib/typescript/Icons/AnswerPhone/index.d.ts.map +1 -1
  511. package/lib/typescript/Icons/BRB/index.d.ts +7 -0
  512. package/lib/typescript/Icons/BRB/index.d.ts.map +1 -0
  513. package/lib/typescript/Icons/Bluetooth/index.d.ts.map +1 -1
  514. package/lib/typescript/Icons/Camera/index.d.ts.map +1 -1
  515. package/lib/typescript/Icons/Chat/index.d.ts.map +1 -1
  516. package/lib/typescript/Icons/Check/index.d.ts.map +1 -1
  517. package/lib/typescript/Icons/Chevron/index.d.ts.map +1 -1
  518. package/lib/typescript/Icons/Close/index.d.ts.map +1 -1
  519. package/lib/typescript/Icons/Hamburger/index.d.ts +7 -0
  520. package/lib/typescript/Icons/Hamburger/index.d.ts.map +1 -0
  521. package/lib/typescript/Icons/Hand/index.d.ts.map +1 -1
  522. package/lib/typescript/Icons/Headphones/index.d.ts.map +1 -1
  523. package/lib/typescript/Icons/Maximize/index.d.ts +7 -0
  524. package/lib/typescript/Icons/Maximize/index.d.ts.map +1 -0
  525. package/lib/typescript/Icons/Mic/index.d.ts.map +1 -1
  526. package/lib/typescript/Icons/Minimize/index.d.ts +7 -0
  527. package/lib/typescript/Icons/Minimize/index.d.ts.map +1 -0
  528. package/lib/typescript/Icons/Participants/index.d.ts.map +1 -1
  529. package/lib/typescript/Icons/Pencil/index.d.ts +7 -0
  530. package/lib/typescript/Icons/Pencil/index.d.ts.map +1 -0
  531. package/lib/typescript/Icons/Pin/index.d.ts +7 -0
  532. package/lib/typescript/Icons/Pin/index.d.ts.map +1 -0
  533. package/lib/typescript/Icons/Radio/index.d.ts +7 -3
  534. package/lib/typescript/Icons/Radio/index.d.ts.map +1 -1
  535. package/lib/typescript/Icons/Recording/index.d.ts +7 -0
  536. package/lib/typescript/Icons/Recording/index.d.ts.map +1 -0
  537. package/lib/typescript/Icons/RotateCamera/index.d.ts.map +1 -1
  538. package/lib/typescript/Icons/ScreenShare/index.d.ts.map +1 -1
  539. package/lib/typescript/Icons/Speaker/index.d.ts.map +1 -1
  540. package/lib/typescript/Icons/Star/index.d.ts +7 -0
  541. package/lib/typescript/Icons/Star/index.d.ts.map +1 -0
  542. package/lib/typescript/Icons/Stop/index.d.ts +7 -0
  543. package/lib/typescript/Icons/Stop/index.d.ts.map +1 -0
  544. package/lib/typescript/Icons/ThreeDots/index.d.ts.map +1 -1
  545. package/lib/typescript/Icons/Wave/index.d.ts.map +1 -1
  546. package/lib/typescript/Icons/index.d.ts +10 -0
  547. package/lib/typescript/Icons/index.d.ts.map +1 -1
  548. package/lib/typescript/components/BackButton.d.ts.map +1 -1
  549. package/lib/typescript/components/BottomSheet.d.ts +25 -0
  550. package/lib/typescript/components/BottomSheet.d.ts.map +1 -0
  551. package/lib/typescript/components/ChangeNameModalContent.d.ts +6 -0
  552. package/lib/typescript/components/ChangeNameModalContent.d.ts.map +1 -0
  553. package/lib/typescript/components/CompanyLogo.d.ts +7 -0
  554. package/lib/typescript/components/CompanyLogo.d.ts.map +1 -0
  555. package/lib/typescript/components/CustomInput.d.ts +1 -1
  556. package/lib/typescript/components/CustomInput.d.ts.map +1 -1
  557. package/lib/typescript/components/DisplayView.d.ts.map +1 -1
  558. package/lib/typescript/components/EndRoomModalContent.d.ts +6 -0
  559. package/lib/typescript/components/EndRoomModalContent.d.ts.map +1 -0
  560. package/lib/typescript/components/Footer.d.ts.map +1 -1
  561. package/lib/typescript/components/GridView.d.ts +3 -4
  562. package/lib/typescript/components/GridView.d.ts.map +1 -1
  563. package/lib/typescript/components/HMSBaseButton.d.ts +15 -0
  564. package/lib/typescript/components/HMSBaseButton.d.ts.map +1 -0
  565. package/lib/typescript/components/HMSDangerButton.d.ts +12 -0
  566. package/lib/typescript/components/HMSDangerButton.d.ts.map +1 -0
  567. package/lib/typescript/components/HMSHLSNotStarted.d.ts.map +1 -1
  568. package/lib/typescript/components/HMSHLSStreamLoading.d.ts.map +1 -1
  569. package/lib/typescript/components/HMSManageAudioOutput.d.ts.map +1 -1
  570. package/lib/typescript/components/HMSManageLeave.d.ts.map +1 -1
  571. package/lib/typescript/components/HMSManageLocalAudio.d.ts.map +1 -1
  572. package/lib/typescript/components/HMSManageLocalVideo.d.ts.map +1 -1
  573. package/lib/typescript/components/HMSManageRaiseHand.d.ts.map +1 -1
  574. package/lib/typescript/components/HMSPreviewEditName.d.ts.map +1 -1
  575. package/lib/typescript/components/HMSPreviewHLSLiveIndicator.d.ts.map +1 -1
  576. package/lib/typescript/components/HMSPreviewJoinButton.d.ts.map +1 -1
  577. package/lib/typescript/components/HMSPreviewNetworkQuality.d.ts.map +1 -1
  578. package/lib/typescript/components/HMSPreviewPeersList.d.ts.map +1 -1
  579. package/lib/typescript/components/HMSPreviewSubtitle.d.ts.map +1 -1
  580. package/lib/typescript/components/HMSPreviewTile.d.ts.map +1 -1
  581. package/lib/typescript/components/HMSPreviewTitle.d.ts.map +1 -1
  582. package/lib/typescript/components/HMSPrimaryButton.d.ts +12 -0
  583. package/lib/typescript/components/HMSPrimaryButton.d.ts.map +1 -0
  584. package/lib/typescript/components/HMSRecordingIndicator.d.ts +3 -0
  585. package/lib/typescript/components/HMSRecordingIndicator.d.ts.map +1 -0
  586. package/lib/typescript/components/HMSRoomOptions.d.ts.map +1 -1
  587. package/lib/typescript/components/HMSShowNetworkQuality.d.ts.map +1 -1
  588. package/lib/typescript/components/HMSTextInput.d.ts +10 -0
  589. package/lib/typescript/components/HMSTextInput.d.ts.map +1 -0
  590. package/lib/typescript/components/Header.d.ts.map +1 -1
  591. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts +6 -0
  592. package/lib/typescript/components/LocalPeerRegularVideoView.d.ts.map +1 -0
  593. package/lib/typescript/components/LocalPeerScreenshareView.d.ts +3 -0
  594. package/lib/typescript/components/LocalPeerScreenshareView.d.ts.map +1 -0
  595. package/lib/typescript/components/Meeting.d.ts.map +1 -1
  596. package/lib/typescript/components/MiniView.d.ts +9 -0
  597. package/lib/typescript/components/MiniView.d.ts.map +1 -0
  598. package/lib/typescript/components/Modals.d.ts +0 -7
  599. package/lib/typescript/components/Modals.d.ts.map +1 -1
  600. package/lib/typescript/components/PaginationDots.d.ts +6 -0
  601. package/lib/typescript/components/PaginationDots.d.ts.map +1 -0
  602. package/lib/typescript/components/ParticipantsCount.d.ts +3 -0
  603. package/lib/typescript/components/ParticipantsCount.d.ts.map +1 -0
  604. package/lib/typescript/components/PeerMinimizedView.d.ts +12 -0
  605. package/lib/typescript/components/PeerMinimizedView.d.ts.map +1 -0
  606. package/lib/typescript/components/PeerSettingsModalContent.d.ts +1 -0
  607. package/lib/typescript/components/PeerSettingsModalContent.d.ts.map +1 -1
  608. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts +9 -0
  609. package/lib/typescript/components/PeerVideoTile/AvatarView.d.ts.map +1 -0
  610. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts +6 -0
  611. package/lib/typescript/components/PeerVideoTile/PeerAudioMutedIndicator.d.ts.map +1 -0
  612. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts +6 -0
  613. package/lib/typescript/components/PeerVideoTile/PeerMetadata.d.ts.map +1 -0
  614. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts +10 -0
  615. package/lib/typescript/components/PeerVideoTile/PeerNameAndNetwork.d.ts.map +1 -0
  616. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts +10 -0
  617. package/lib/typescript/components/PeerVideoTile/PeerVideoTileView.d.ts.map +1 -0
  618. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts +13 -0
  619. package/lib/typescript/components/PeerVideoTile/VideoView.d.ts.map +1 -0
  620. package/lib/typescript/components/PeerVideoTile/index.d.ts +1 -0
  621. package/lib/typescript/components/PeerVideoTile/index.d.ts.map +1 -0
  622. package/lib/typescript/components/PressableIcon.d.ts.map +1 -1
  623. package/lib/typescript/components/Preview.d.ts.map +1 -1
  624. package/lib/typescript/components/RoomSettingsModalContent.d.ts +2 -2
  625. package/lib/typescript/components/RoomSettingsModalContent.d.ts.map +1 -1
  626. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts +17 -0
  627. package/lib/typescript/components/RoomSettingsModalDebugModeContent.d.ts.map +1 -0
  628. package/lib/typescript/components/StatusBar.d.ts +2 -1
  629. package/lib/typescript/components/StatusBar.d.ts.map +1 -1
  630. package/lib/typescript/components/StopRecordingModalContent.d.ts +6 -0
  631. package/lib/typescript/components/StopRecordingModalContent.d.ts.map +1 -0
  632. package/lib/typescript/components/Tile.d.ts +12 -3
  633. package/lib/typescript/components/Tile.d.ts.map +1 -1
  634. package/lib/typescript/components/TilesContainer.d.ts.map +1 -1
  635. package/lib/typescript/components/UnmountAfterDelay.d.ts +12 -0
  636. package/lib/typescript/components/UnmountAfterDelay.d.ts.map +1 -0
  637. package/lib/typescript/components/WebrtcView.d.ts +10 -0
  638. package/lib/typescript/components/WebrtcView.d.ts.map +1 -0
  639. package/lib/typescript/components/WelcomeInMeeting.d.ts +5 -0
  640. package/lib/typescript/components/WelcomeInMeeting.d.ts.map +1 -0
  641. package/lib/typescript/hooks-sdk-selectors.d.ts +2 -0
  642. package/lib/typescript/hooks-sdk-selectors.d.ts.map +1 -1
  643. package/lib/typescript/hooks-sdk.d.ts +1 -0
  644. package/lib/typescript/hooks-sdk.d.ts.map +1 -1
  645. package/lib/typescript/hooks-util-selectors.d.ts.map +1 -1
  646. package/lib/typescript/hooks-util.d.ts +15 -2
  647. package/lib/typescript/hooks-util.d.ts.map +1 -1
  648. package/lib/typescript/modules/HMSManager.d.ts +4 -0
  649. package/lib/typescript/modules/HMSManager.d.ts.map +1 -0
  650. package/lib/typescript/modules/parser.d.ts +3 -0
  651. package/lib/typescript/modules/parser.d.ts.map +1 -0
  652. package/lib/typescript/peerTrackNodeUtils.d.ts +1 -0
  653. package/lib/typescript/peerTrackNodeUtils.d.ts.map +1 -1
  654. package/lib/typescript/redux/actionTypes.d.ts +9 -1
  655. package/lib/typescript/redux/actionTypes.d.ts.map +1 -1
  656. package/lib/typescript/redux/actions/index.d.ts +45 -0
  657. package/lib/typescript/redux/actions/index.d.ts.map +1 -1
  658. package/lib/typescript/redux/index.d.ts +7 -0
  659. package/lib/typescript/redux/index.d.ts.map +1 -1
  660. package/lib/typescript/redux/reducers/appState.d.ts +5 -0
  661. package/lib/typescript/redux/reducers/appState.d.ts.map +1 -1
  662. package/lib/typescript/redux/reducers/hmsStates.d.ts +7 -1
  663. package/lib/typescript/redux/reducers/hmsStates.d.ts.map +1 -1
  664. package/lib/typescript/redux/reducers/index.d.ts +7 -0
  665. package/lib/typescript/redux/reducers/index.d.ts.map +1 -1
  666. package/lib/typescript/redux/reducers/userState.d.ts +1 -0
  667. package/lib/typescript/redux/reducers/userState.d.ts.map +1 -1
  668. package/lib/typescript/utils/functions.d.ts +14 -0
  669. package/lib/typescript/utils/functions.d.ts.map +1 -1
  670. package/lib/typescript/utils/theme.d.ts +6 -3
  671. package/lib/typescript/utils/theme.d.ts.map +1 -1
  672. package/lib/typescript/utils/types.d.ts +5 -0
  673. package/lib/typescript/utils/types.d.ts.map +1 -1
  674. package/package.json +4 -2
  675. package/src/HMSInstanceSetup.tsx +1 -0
  676. package/src/HMSPrebuilt.tsx +3 -2
  677. package/src/HMSRoomSetup.tsx +45 -8
  678. package/src/Icons/AlertTriangle/assets/alert-triangle.png +0 -0
  679. package/src/Icons/AlertTriangle/assets/alert-triangle@2x.png +0 -0
  680. package/src/Icons/AlertTriangle/assets/alert-triangle@3x.png +0 -0
  681. package/src/Icons/AlertTriangle/index.tsx +33 -0
  682. package/src/Icons/AnswerPhone/index.tsx +7 -1
  683. package/src/Icons/BRB/assets/BRB.png +0 -0
  684. package/src/Icons/BRB/assets/BRB@2x.png +0 -0
  685. package/src/Icons/BRB/assets/BRB@3x.png +0 -0
  686. package/src/Icons/BRB/index.tsx +31 -0
  687. package/src/Icons/Bluetooth/index.tsx +7 -1
  688. package/src/Icons/Camera/index.tsx +7 -1
  689. package/src/Icons/Chat/index.tsx +7 -1
  690. package/src/Icons/Check/index.tsx +7 -1
  691. package/src/Icons/Chevron/index.tsx +7 -1
  692. package/src/Icons/Close/index.tsx +7 -1
  693. package/src/Icons/Hamburger/assets/hamburger.png +0 -0
  694. package/src/Icons/Hamburger/assets/hamburger@2x.png +0 -0
  695. package/src/Icons/Hamburger/assets/hamburger@3x.png +0 -0
  696. package/src/Icons/Hamburger/index.tsx +33 -0
  697. package/src/Icons/Hand/index.tsx +6 -3
  698. package/src/Icons/Headphones/index.tsx +7 -1
  699. package/src/Icons/Maximize/assets/maximize.png +0 -0
  700. package/src/Icons/Maximize/assets/maximize@2x.png +0 -0
  701. package/src/Icons/Maximize/assets/maximize@3x.png +0 -0
  702. package/src/Icons/Maximize/index.tsx +33 -0
  703. package/src/Icons/Mic/index.tsx +7 -1
  704. package/src/Icons/Minimize/assets/minimize.png +0 -0
  705. package/src/Icons/Minimize/assets/minimize@2x.png +0 -0
  706. package/src/Icons/Minimize/assets/minimize@3x.png +0 -0
  707. package/src/Icons/Minimize/index.tsx +33 -0
  708. package/src/Icons/Participants/index.tsx +7 -1
  709. package/src/Icons/Pencil/assets/pencil.png +0 -0
  710. package/src/Icons/Pencil/assets/pencil@2x.png +0 -0
  711. package/src/Icons/Pencil/assets/pencil@3x.png +0 -0
  712. package/src/Icons/Pencil/index.tsx +33 -0
  713. package/src/Icons/Pin/assets/pin.png +0 -0
  714. package/src/Icons/Pin/assets/pin@2x.png +0 -0
  715. package/src/Icons/Pin/assets/pin@3x.png +0 -0
  716. package/src/Icons/Pin/index.tsx +30 -0
  717. package/src/Icons/Radio/assets/radio-xlarge.png +0 -0
  718. package/src/Icons/Radio/assets/radio-xlarge@2x.png +0 -0
  719. package/src/Icons/Radio/assets/radio-xlarge@3x.png +0 -0
  720. package/src/Icons/Radio/index.tsx +53 -4
  721. package/src/Icons/Recording/assets/recording.png +0 -0
  722. package/src/Icons/Recording/assets/recording@2x.png +0 -0
  723. package/src/Icons/Recording/assets/recording@3x.png +0 -0
  724. package/src/Icons/Recording/index.tsx +33 -0
  725. package/src/Icons/RotateCamera/index.tsx +7 -1
  726. package/src/Icons/ScreenShare/index.tsx +7 -1
  727. package/src/Icons/Speaker/index.tsx +12 -1
  728. package/src/Icons/Star/assets/star.png +0 -0
  729. package/src/Icons/Star/assets/star@2x.png +0 -0
  730. package/src/Icons/Star/assets/star@3x.png +0 -0
  731. package/src/Icons/Star/index.tsx +30 -0
  732. package/src/Icons/Stop/assets/stop.png +0 -0
  733. package/src/Icons/Stop/assets/stop@2x.png +0 -0
  734. package/src/Icons/Stop/assets/stop@3x.png +0 -0
  735. package/src/Icons/Stop/index.tsx +30 -0
  736. package/src/Icons/ThreeDots/index.tsx +7 -1
  737. package/src/Icons/Wave/index.tsx +7 -1
  738. package/src/Icons/index.ts +10 -0
  739. package/src/components/AvatarView.tsx +1 -2
  740. package/src/components/BackButton.tsx +6 -3
  741. package/src/components/BottomSheet.tsx +191 -0
  742. package/src/components/ChangeNameModalContent.tsx +157 -0
  743. package/src/components/CompanyLogo.tsx +35 -0
  744. package/src/components/CustomInput.tsx +2 -3
  745. package/src/components/DisplayView.tsx +17 -67
  746. package/src/components/EndRoomModalContent.tsx +90 -0
  747. package/src/components/Footer.tsx +38 -33
  748. package/src/components/GridView.tsx +91 -20
  749. package/src/components/HMSBaseButton.tsx +91 -0
  750. package/src/components/HMSDangerButton.tsx +65 -0
  751. package/src/components/HMSHLSNotStarted.tsx +26 -20
  752. package/src/components/HMSHLSStreamLoading.tsx +18 -7
  753. package/src/components/HMSManageAudioOutput.tsx +59 -90
  754. package/src/components/HMSManageCameraRotation.tsx +11 -8
  755. package/src/components/HMSManageLeave.tsx +115 -126
  756. package/src/components/HMSManageLocalAudio.tsx +1 -10
  757. package/src/components/HMSManageLocalVideo.tsx +1 -10
  758. package/src/components/HMSManageRaiseHand.tsx +2 -16
  759. package/src/components/HMSMeetingEnded.tsx +1 -2
  760. package/src/components/HMSPreviewEditName.tsx +2 -44
  761. package/src/components/HMSPreviewHLSLiveIndicator.tsx +17 -9
  762. package/src/components/HMSPreviewJoinButton.tsx +33 -71
  763. package/src/components/HMSPreviewNetworkQuality.tsx +7 -4
  764. package/src/components/HMSPreviewPeersList.tsx +23 -13
  765. package/src/components/HMSPreviewSubtitle.tsx +27 -11
  766. package/src/components/HMSPreviewTile.tsx +19 -8
  767. package/src/components/HMSPreviewTitle.tsx +18 -5
  768. package/src/components/HMSPrimaryButton.tsx +63 -0
  769. package/src/components/HMSRecordingIndicator.tsx +39 -0
  770. package/src/components/HMSRoomOptions.tsx +28 -8
  771. package/src/components/HMSShowNetworkQuality.tsx +7 -5
  772. package/src/components/HMSTextInput.tsx +78 -0
  773. package/src/components/Header.tsx +37 -36
  774. package/src/components/LocalPeerRegularVideoView.tsx +28 -0
  775. package/src/components/LocalPeerScreenshareView.tsx +72 -0
  776. package/src/components/Meeting.tsx +10 -3
  777. package/src/components/MeetingScreenContent.tsx +1 -1
  778. package/src/components/MiniView.tsx +213 -0
  779. package/src/components/Modals.tsx +1 -110
  780. package/src/components/PaginationDots.tsx +65 -0
  781. package/src/components/ParticipantsCount.tsx +52 -0
  782. package/src/components/PeerMinimizedView.tsx +131 -0
  783. package/src/components/PeerSettingsModalContent.tsx +110 -54
  784. package/src/components/PeerVideoTile/AvatarView.tsx +79 -0
  785. package/src/components/PeerVideoTile/PeerAudioMutedIndicator.tsx +41 -0
  786. package/src/components/PeerVideoTile/PeerMetadata.tsx +46 -0
  787. package/src/components/PeerVideoTile/PeerNameAndNetwork.tsx +81 -0
  788. package/src/components/PeerVideoTile/PeerVideoTileView.tsx +180 -0
  789. package/src/components/PeerVideoTile/VideoView.tsx +104 -0
  790. package/src/components/PeerVideoTile/index.ts +0 -0
  791. package/src/components/PressableIcon.tsx +15 -8
  792. package/src/components/Preview.tsx +24 -6
  793. package/src/components/RoomSettingsModalContent.tsx +237 -524
  794. package/src/components/RoomSettingsModalDebugModeContent.tsx +446 -0
  795. package/src/components/StatusBar.tsx +6 -4
  796. package/src/components/StopRecordingModalContent.tsx +111 -0
  797. package/src/components/Tile.tsx +49 -90
  798. package/src/components/TilesContainer.tsx +116 -14
  799. package/src/components/UnmountAfterDelay.tsx +61 -0
  800. package/src/components/WebrtcView.tsx +72 -0
  801. package/src/components/WelcomeInMeeting.tsx +52 -0
  802. package/src/hooks-sdk-selectors.tsx +7 -0
  803. package/src/hooks-sdk.ts +18 -0
  804. package/src/hooks-util-selectors.tsx +12 -1
  805. package/src/hooks-util.ts +420 -114
  806. package/src/modules/HMSManager.ts +25 -0
  807. package/src/modules/parser.ts +22 -0
  808. package/src/peerTrackNodeUtils.tsx +13 -10
  809. package/src/redux/actionTypes.ts +22 -0
  810. package/src/redux/actions/index.ts +53 -0
  811. package/src/redux/reducers/appState.ts +59 -0
  812. package/src/redux/reducers/hmsStates.ts +15 -1
  813. package/src/redux/reducers/userState.ts +3 -0
  814. package/src/utils/functions.ts +48 -0
  815. package/src/utils/theme.ts +74 -5
  816. package/src/utils/types.ts +6 -0
@@ -0,0 +1,25 @@
1
+ import { HMSManagerModule, getLogger } from '@100mslive/react-native-hms';
2
+ import type { HMSSDK } from '@100mslive/react-native-hms';
3
+ import type { Layout } from '@100mslive/types-prebuilt';
4
+
5
+ import { parseRoomLayout } from './parser';
6
+
7
+ export async function getRoomLayout(
8
+ hmsInstance: HMSSDK,
9
+ authToken: string,
10
+ endpoint?: string
11
+ ): Promise<Layout> {
12
+ getLogger()?.verbose('#Function getRoomLayout', {
13
+ id: hmsInstance.id,
14
+ authToken,
15
+ endpoint,
16
+ });
17
+
18
+ const layputAPIResponse: string = await HMSManagerModule.getRoomLayout({
19
+ id: hmsInstance.id,
20
+ authToken,
21
+ endpoint,
22
+ });
23
+
24
+ return parseRoomLayout(layputAPIResponse);
25
+ }
@@ -0,0 +1,22 @@
1
+ import type {
2
+ GetResponse as LayoutAPIResponse,
3
+ Layout,
4
+ } from '@100mslive/types-prebuilt';
5
+
6
+ export async function parseRoomLayout(response: string): Promise<Layout> {
7
+ try {
8
+ const parsedResponse: LayoutAPIResponse = JSON.parse(response);
9
+ if (!parsedResponse.data) {
10
+ return Promise.reject('Layout API response is corrupted!');
11
+ }
12
+
13
+ const firstLayout = parsedResponse.data[0];
14
+ if (!firstLayout) {
15
+ return Promise.reject('No Layout found for the Room!');
16
+ }
17
+
18
+ return firstLayout;
19
+ } catch (error) {
20
+ return Promise.reject(error);
21
+ }
22
+ }
@@ -13,11 +13,7 @@ export const degradeOrRestorePeerTrackNodes = (
13
13
  track: HMSTrack,
14
14
  isDegraded: boolean
15
15
  ): PeerTrackNode[] => {
16
- const uniqueId =
17
- peer.peerID +
18
- (track.type === HMSTrackType.VIDEO
19
- ? track?.source || HMSTrackSource.REGULAR
20
- : HMSTrackSource.REGULAR);
16
+ const uniqueId = createPeerTrackNodeUniqueId(peer, track);
21
17
 
22
18
  return peerTrackNodes.map((peerTrackNode) => {
23
19
  if (peerTrackNode.id !== uniqueId) {
@@ -101,14 +97,21 @@ export const peerTrackNodeExistForPeerAndTrack = (
101
97
  peer: HMSPeer,
102
98
  track: HMSTrack
103
99
  ): boolean => {
104
- const uniqueId =
105
- peer.peerID +
106
- (track.type === HMSTrackType.VIDEO
107
- ? track?.source || HMSTrackSource.REGULAR
108
- : HMSTrackSource.REGULAR);
100
+ const uniqueId = createPeerTrackNodeUniqueId(peer, track);
101
+
109
102
  return (
110
103
  peerTrackNodes.findIndex(
111
104
  (peerTrackNode) => peerTrackNode.id === uniqueId
112
105
  ) >= 0
113
106
  );
114
107
  };
108
+
109
+ export const createPeerTrackNodeUniqueId = (peer: HMSPeer, track: HMSTrack) => {
110
+ const uniqueId =
111
+ peer.peerID +
112
+ (track.type === HMSTrackType.VIDEO
113
+ ? track?.source || HMSTrackSource.REGULAR
114
+ : HMSTrackSource.REGULAR);
115
+
116
+ return uniqueId;
117
+ };
@@ -50,8 +50,22 @@ const SET_PEER_TO_UPDATE = 'SET_PEER_TO_UPDATE';
50
50
 
51
51
  const SET_MEETING_STATE = 'SET_MEETING_STATE';
52
52
 
53
+ const SET_INSET_VIEW_MINIMIZED = 'SET_INSET_VIEW_MINIMIZED';
54
+
55
+ const SET_MINI_VIEW_PEERTRACKNODE = 'SET_MINI_VIEW_PEERTRACKNODE';
56
+
57
+ const UPDATE_MINI_VIEW_PEERTRACKNODE = 'UPDATE_MINI_VIEW_PEERTRACKNODE';
58
+
59
+ const SET_LOCAL_PEERTRACKNODE = 'SET_LOCAL_PEERTRACKNODE';
60
+
61
+ const UPDATE_LOCAL_PEERTRACKNODE = 'UPDATE_LOCAL_PEERTRACKNODE';
62
+
53
63
  const SET_STARTING_HLS_STREAM = 'SET_STARTING_HLS_STREAM';
54
64
 
65
+ const SET_GRID_VIEW_ACTIVE_PAGE = 'SET_GRID_VIEW_ACTIVE_PAGE';
66
+
67
+ const SET_STARTING_OR_STOPPING_RECORDING = 'SET_STARTING_OR_STOPPING_RECORDING';
68
+
55
69
  export default {
56
70
  ADD_PINNED_MESSAGE,
57
71
  ADD_MESSAGE,
@@ -74,7 +88,14 @@ export default {
74
88
  SET_MODAL_TYPE,
75
89
  SET_PEER_TO_UPDATE,
76
90
  SET_MEETING_STATE,
91
+ SET_INSET_VIEW_MINIMIZED,
92
+ SET_MINI_VIEW_PEERTRACKNODE,
93
+ UPDATE_MINI_VIEW_PEERTRACKNODE,
94
+ SET_LOCAL_PEERTRACKNODE,
95
+ UPDATE_LOCAL_PEERTRACKNODE,
77
96
  SET_STARTING_HLS_STREAM,
97
+ SET_GRID_VIEW_ACTIVE_PAGE,
98
+ SET_STARTING_OR_STOPPING_RECORDING,
78
99
  };
79
100
 
80
101
  export enum HmsStateActionTypes {
@@ -90,4 +111,5 @@ export enum HmsStateActionTypes {
90
111
  SET_USER_NAME = 'SET_USER_NAME',
91
112
  ADD_TO_PREVIEW_PEERS_LIST = 'ADD_TO_PREVIEW_PEERS_LIST',
92
113
  REMOVE_FROM_PREVIEW_PEERS_LIST = 'REMOVE_FROM_PREVIEW_PEERS_LIST',
114
+ SET_LAYOUT_CONFIG = 'SET_LAYOUT_CONFIG',
93
115
  }
@@ -10,6 +10,8 @@ import type {
10
10
  HMSSDK,
11
11
  HMSSessionStore,
12
12
  } from '@100mslive/react-native-hms';
13
+ import type { Layout } from '@100mslive/types-prebuilt';
14
+
13
15
  import type {
14
16
  HMSIOSScreenShareConfig,
15
17
  ModalTypes,
@@ -31,6 +33,7 @@ export const setPrebuiltData = (data: {
31
33
  };
32
34
  ios?: HMSIOSScreenShareConfig;
33
35
  };
36
+ onLeave?: () => void;
34
37
  }) => ({
35
38
  type: HmsStateActionTypes.SET_PREBUILT_DATA,
36
39
  payload: data,
@@ -211,7 +214,57 @@ export const changeMeetingState = (meetingState: MeetingState) => ({
211
214
  payload: { meetingState },
212
215
  });
213
216
 
217
+ export const setInsetViewMinimized = (insetViewMinimized: boolean) => ({
218
+ type: actionTypes.SET_INSET_VIEW_MINIMIZED,
219
+ payload: { insetViewMinimized },
220
+ });
221
+
222
+ export const setMiniViewPeerTrackNode = (
223
+ miniviewPeerTrackNode: PeerTrackNode | null
224
+ ) => ({
225
+ type: actionTypes.SET_MINI_VIEW_PEERTRACKNODE,
226
+ payload: { miniviewPeerTrackNode },
227
+ });
228
+
229
+ export const updateMiniViewPeerTrackNode = (
230
+ data: Partial<Omit<PeerTrackNode, 'id'>>
231
+ ) => ({
232
+ type: actionTypes.UPDATE_MINI_VIEW_PEERTRACKNODE,
233
+ payload: data,
234
+ });
235
+
236
+ export const setLocalPeerTrackNode = (
237
+ localPeerTrackNode: PeerTrackNode | null
238
+ ) => ({
239
+ type: actionTypes.SET_LOCAL_PEERTRACKNODE,
240
+ payload: { localPeerTrackNode },
241
+ });
242
+
243
+ export const updateLocalPeerTrackNode = (
244
+ data: Partial<Omit<PeerTrackNode, 'id' | 'isDegraded'>>
245
+ ) => ({
246
+ type: actionTypes.UPDATE_LOCAL_PEERTRACKNODE,
247
+ payload: data,
248
+ });
249
+
214
250
  export const changeStartingHLSStream = (startingHLSStream: boolean) => ({
215
251
  type: actionTypes.SET_STARTING_HLS_STREAM,
216
252
  payload: { startingHLSStream },
217
253
  });
254
+
255
+ export const setLayoutConfig = (layoutConfig: Layout) => ({
256
+ type: HmsStateActionTypes.SET_LAYOUT_CONFIG,
257
+ layoutConfig,
258
+ });
259
+
260
+ export const setGridViewActivePage = (pageNumber: number) => ({
261
+ type: actionTypes.SET_GRID_VIEW_ACTIVE_PAGE,
262
+ payload: { gridViewActivePage: pageNumber },
263
+ });
264
+
265
+ export const setStartingOrStoppingRecording = (
266
+ startingOrStoppingRecording: boolean
267
+ ) => ({
268
+ type: actionTypes.SET_STARTING_OR_STOPPING_RECORDING,
269
+ payload: { startingOrStoppingRecording },
270
+ });
@@ -40,6 +40,11 @@ type IntialStateType = {
40
40
  peerToUpdate: HMSPeer | null;
41
41
  meetingState: MeetingState;
42
42
  startingHLSStream: boolean;
43
+ insetViewMinimized: boolean;
44
+ miniviewPeerTrackNode: null | PeerTrackNode;
45
+ localPeerTrackNode: null | PeerTrackNode;
46
+ gridViewActivePage: number;
47
+ startingOrStoppingRecording: boolean;
43
48
  };
44
49
 
45
50
  const INITIAL_STATE: IntialStateType = {
@@ -59,6 +64,11 @@ const INITIAL_STATE: IntialStateType = {
59
64
  peerToUpdate: null,
60
65
  meetingState: MeetingState.NOT_JOINED,
61
66
  startingHLSStream: false,
67
+ insetViewMinimized: false,
68
+ miniviewPeerTrackNode: null,
69
+ localPeerTrackNode: null,
70
+ gridViewActivePage: 0,
71
+ startingOrStoppingRecording: false,
62
72
  };
63
73
 
64
74
  const appReducer = (
@@ -140,8 +150,57 @@ const appReducer = (
140
150
  };
141
151
  case ActionTypes.SET_MEETING_STATE:
142
152
  return { ...state, meetingState: action.payload.meetingState };
153
+ case ActionTypes.SET_INSET_VIEW_MINIMIZED:
154
+ return {
155
+ ...state,
156
+ insetViewMinimized: action.payload.insetViewMinimized,
157
+ };
158
+ case ActionTypes.SET_MINI_VIEW_PEERTRACKNODE:
159
+ return {
160
+ ...state,
161
+ miniviewPeerTrackNode: action.payload.miniviewPeerTrackNode,
162
+ };
163
+ case ActionTypes.UPDATE_MINI_VIEW_PEERTRACKNODE: {
164
+ if (!state.miniviewPeerTrackNode) {
165
+ return state;
166
+ }
167
+ return {
168
+ ...state,
169
+ miniviewPeerTrackNode: {
170
+ ...state.miniviewPeerTrackNode,
171
+ ...action.payload,
172
+ },
173
+ };
174
+ }
175
+ case ActionTypes.SET_LOCAL_PEERTRACKNODE:
176
+ return {
177
+ ...state,
178
+ localPeerTrackNode: action.payload.localPeerTrackNode,
179
+ };
180
+ case ActionTypes.UPDATE_LOCAL_PEERTRACKNODE: {
181
+ if (!state.localPeerTrackNode) {
182
+ return state;
183
+ }
184
+ return {
185
+ ...state,
186
+ localPeerTrackNode: {
187
+ ...state.localPeerTrackNode,
188
+ ...action.payload,
189
+ },
190
+ };
191
+ }
143
192
  case ActionTypes.SET_STARTING_HLS_STREAM:
144
193
  return { ...state, startingHLSStream: action.payload.startingHLSStream };
194
+ case ActionTypes.SET_GRID_VIEW_ACTIVE_PAGE:
195
+ return {
196
+ ...state,
197
+ gridViewActivePage: action.payload.gridViewActivePage,
198
+ };
199
+ case ActionTypes.SET_STARTING_OR_STOPPING_RECORDING:
200
+ return {
201
+ ...state,
202
+ startingOrStoppingRecording: action.payload.startingOrStoppingRecording,
203
+ };
145
204
  case HmsStateActionTypes.CLEAR_STATES:
146
205
  return INITIAL_STATE;
147
206
  default:
@@ -4,6 +4,7 @@ import type {
4
4
  HMSRole,
5
5
  HMSRoom,
6
6
  } from '@100mslive/react-native-hms';
7
+ import type { Layout } from '@100mslive/types-prebuilt';
7
8
  import { HmsStateActionTypes } from '../actionTypes';
8
9
 
9
10
  type ActionType =
@@ -16,7 +17,8 @@ type ActionType =
16
17
  | SetRoomLocallyMutedAction
17
18
  | ResetAction
18
19
  | AddToPreviewPeersList
19
- | RemoveFromPreviewPeersList;
20
+ | RemoveFromPreviewPeersList
21
+ | SetLayoutConfig;
20
22
 
21
23
  type SetRoomAction = {
22
24
  type: HmsStateActionTypes.SET_ROOM_STATE;
@@ -67,6 +69,11 @@ type RemoveFromPreviewPeersList = {
67
69
  peerId: string;
68
70
  };
69
71
 
72
+ type SetLayoutConfig = {
73
+ type: HmsStateActionTypes.SET_LAYOUT_CONFIG;
74
+ layoutConfig: Layout;
75
+ };
76
+
70
77
  type IntialStateType = {
71
78
  isLocalAudioMuted: boolean | undefined;
72
79
  isLocalVideoMuted: boolean | undefined;
@@ -76,6 +83,7 @@ type IntialStateType = {
76
83
  localPeer: HMSLocalPeer | null;
77
84
  roles: HMSRole[];
78
85
  previewPeersList: HMSPeer[];
86
+ layoutConfig: Layout | null;
79
87
  };
80
88
 
81
89
  const INITIAL_STATE: IntialStateType = {
@@ -87,6 +95,7 @@ const INITIAL_STATE: IntialStateType = {
87
95
  localPeer: null,
88
96
  roles: [],
89
97
  previewPeersList: [],
98
+ layoutConfig: null,
90
99
  };
91
100
 
92
101
  const hmsStatesReducer = (
@@ -143,6 +152,11 @@ const hmsStatesReducer = (
143
152
  (prevPeer) => prevPeer.peerID !== action.peerId
144
153
  ),
145
154
  };
155
+ case HmsStateActionTypes.SET_LAYOUT_CONFIG:
156
+ return {
157
+ ...state,
158
+ layoutConfig: action.layoutConfig,
159
+ };
146
160
  case HmsStateActionTypes.CLEAR_STATES:
147
161
  return INITIAL_STATE;
148
162
  default:
@@ -25,6 +25,7 @@ type IntialStateType = {
25
25
  isHLSFlow: boolean;
26
26
  roles: HMSRole[];
27
27
  iosBuildConfig: HMSIOSScreenShareConfig | null;
28
+ onLeave: (() => void) | undefined;
28
29
  };
29
30
 
30
31
  const INITIAL_STATE: IntialStateType = {
@@ -40,6 +41,7 @@ const INITIAL_STATE: IntialStateType = {
40
41
  hmsSessionStore: null,
41
42
  spotlightTrackId: null,
42
43
  iosBuildConfig: null,
44
+ onLeave: undefined,
43
45
  };
44
46
 
45
47
  const userReducer = (
@@ -76,6 +78,7 @@ const userReducer = (
76
78
  state.endPoints = action.payload.options.endPoints;
77
79
  state.debugMode = action.payload.options.debugMode ?? false;
78
80
  state.iosBuildConfig = action.payload.options.ios ?? null;
81
+ state.onLeave = action.payload.onLeave;
79
82
 
80
83
  return state;
81
84
  case HmsStateActionTypes.CLEAR_STATES:
@@ -520,3 +520,51 @@ export const getTimeStringin12HourFormat = (time: Date) => {
520
520
  notation
521
521
  );
522
522
  };
523
+
524
+ /**
525
+ * @param totalNumber total number of tiles
526
+ * @returns list of pairs that can be made from total number of tiles
527
+ *
528
+ * Example: If totalNumber is `5`, then output will be = `[ [0, 1], [2, 3], [4] ]`;
529
+ */
530
+ export function groupIntoPairs(totalNumber: number) {
531
+ const pairs = [];
532
+ for (let i = 0; i < totalNumber; i += 2) {
533
+ if (i + 1 < totalNumber) {
534
+ pairs.push([i, i + 1]);
535
+ } else {
536
+ pairs.push([i]);
537
+ }
538
+ }
539
+ return pairs;
540
+ }
541
+
542
+ /**
543
+ * @param list array of items
544
+ * @returns list of triplets
545
+ *
546
+ * Example: If list is `[a, b, c, d]`, then output will be `[ [a, b, c], [d] ]`
547
+ */
548
+ export function groupIntoTriplets<T>(list: T[], fill?: boolean) {
549
+ const pairs = [];
550
+ const listLength = list.length;
551
+
552
+ for (let i = 0; i < listLength; i += 3) {
553
+ if (i + 2 < listLength) {
554
+ pairs.push([list[i], list[i + 1], list[i + 2]]);
555
+ } else if (i + 1 < listLength) {
556
+ const t = [list[i], list[i + 1]];
557
+ if (fill) {
558
+ t.push(undefined);
559
+ }
560
+ pairs.push(t);
561
+ } else {
562
+ const t = [list[i]];
563
+ if (fill) {
564
+ t.splice(1, 0, undefined, undefined);
565
+ }
566
+ pairs.push(t);
567
+ }
568
+ }
569
+ return pairs;
570
+ }
@@ -1,5 +1,9 @@
1
1
  import { StyleSheet } from 'react-native';
2
- import { Theme } from './types';
2
+ import type {
3
+ ColorPalette,
4
+ Theme,
5
+ Typography,
6
+ } from '@100mslive/types-prebuilt';
3
7
 
4
8
  export const FONTS = StyleSheet.create({
5
9
  H1: {
@@ -45,9 +49,48 @@ export const FONTS = StyleSheet.create({
45
49
  },
46
50
  });
47
51
 
48
- var APP_THEME: Theme = Theme.LIGHT;
49
- export const getAppTheme = () => APP_THEME;
50
- export const setAppTheme = (theme: Theme) => (APP_THEME = theme);
52
+ export const STATIC_COLOR_PALETTE: ColorPalette = {
53
+ primary_default: '#2572ED',
54
+ primary_bright: '#538DFF',
55
+ primary_dim: '#002D6D',
56
+ primary_disabled: '#004299',
57
+
58
+ on_primary_high: '#FFFFFF',
59
+ on_primary_medium: '#CCDAFF',
60
+ on_primary_low: '#84AAFF',
61
+
62
+ secondary_default: '#444954',
63
+ secondary_bright: '#70778B',
64
+ secondary_dim: '#293042',
65
+ secondary_disabled: '#404759',
66
+
67
+ on_secondary_high: '#ffffff',
68
+ on_secondary_medium: '#D3D9F0',
69
+ on_secondary_low: '#A4ABC0',
70
+
71
+ background_default: '#0B0E15',
72
+ background_dim: '#000000',
73
+
74
+ surface_default: '#191B23',
75
+ surface_bright: '#272A31',
76
+ surface_brighter: '#2E3038',
77
+ surface_dim: '#11131A',
78
+
79
+ on_surface_high: '#EFF0FA',
80
+ on_surface_medium: '#C5C6D0',
81
+ on_surface_low: '#8F9099',
82
+
83
+ border_default: '#1D1F27',
84
+ border_bright: '#272A31',
85
+ // border_primary: '#2471ED',
86
+
87
+ alert_success: '#36B37E',
88
+ alert_warning: '#FFAB00',
89
+ alert_error_default: '#C74E5B',
90
+ alert_error_bright: '#FFB2B6',
91
+ alert_error_brighter: '#FFEDEC',
92
+ alert_error_dim: '#270005',
93
+ };
51
94
 
52
95
  export const COLORS = {
53
96
  PRIMARY: {
@@ -98,7 +141,8 @@ export const COLORS = {
98
141
  },
99
142
  BACKGROUND: {
100
143
  DIM: '#000000',
101
- DIM_80: 'rgba(0, 0, 0, 0.8)',
144
+ DIM_80: 'rgba(0, 0, 0, 0.80)',
145
+ DIM_64: 'rgba(0, 0, 0, 0.64)',
102
146
  DEFAULT: '#0B0E15',
103
147
  DARK: '#090B0D',
104
148
  DARKER: '#040405',
@@ -133,3 +177,28 @@ export const COLORS = {
133
177
  },
134
178
  },
135
179
  };
180
+
181
+ export function hexToRgbA(hex: string, alpha: number = 1) {
182
+ if (!/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) {
183
+ return `rgba(0, 0, 0, ${alpha})`;
184
+ }
185
+ let c: any = hex.substring(1).split('');
186
+ if (c.length == 3) {
187
+ c = [c[0], c[0], c[1], c[1], c[2], c[2]];
188
+ }
189
+ c = '0x' + c.join('');
190
+
191
+ return `rgba(${[(c >> 16) & 255, (c >> 8) & 255, c & 255].join(
192
+ ', '
193
+ )}, ${alpha})`;
194
+ }
195
+
196
+ export const DEFAULT_TYPOGRAPHY: Typography = {
197
+ font_family: 'Inter',
198
+ };
199
+
200
+ export const DEFAULT_THEME: Required<Theme> = {
201
+ default: true,
202
+ name: 'static',
203
+ palette: STATIC_COLOR_PALETTE,
204
+ };
@@ -55,6 +55,7 @@ export enum ModalTypes {
55
55
  PEER_SETTINGS = 'peerSettings',
56
56
  STREAMING_QUALITY_SETTING = 'streamingQualitySetting',
57
57
  HLS_PLAYER_ASPECT_RATIO = 'hlsPlayerAspectRatio',
58
+ STOP_RECORDING = 'stopRecording',
58
59
  DEFAULT = '',
59
60
  }
60
61
 
@@ -92,3 +93,8 @@ export const SUPPORTED_ASPECT_RATIOS = [
92
93
  { value: 4 / 3, id: '4:3' },
93
94
  { value: 3 / 4, id: '3:4' },
94
95
  ];
96
+
97
+ export enum MaxTilesInOnePage {
98
+ IN_PORTRAIT = 6,
99
+ IN_LANDSCAPE = 2,
100
+ }