@stream-io/video-react-native-sdk 0.0.10 → 0.0.12

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 (1050) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +2 -2
  3. package/dist/commonjs/components/Call/CallContent/CallContent.js +133 -0
  4. package/dist/commonjs/components/Call/CallContent/CallContent.js.map +1 -0
  5. package/dist/commonjs/components/Call/CallContent/index.js +17 -0
  6. package/dist/commonjs/components/Call/CallContent/index.js.map +1 -0
  7. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js +61 -0
  8. package/dist/commonjs/components/Call/CallControls/AcceptCallButton.js.map +1 -0
  9. package/dist/commonjs/components/Call/CallControls/CallControls.js +52 -0
  10. package/dist/commonjs/components/Call/CallControls/CallControls.js.map +1 -0
  11. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js +77 -0
  12. package/dist/commonjs/components/Call/CallControls/CallControlsButton.js.map +1 -0
  13. package/dist/commonjs/components/Call/CallControls/ChatButton.js +86 -0
  14. package/dist/commonjs/components/Call/CallControls/ChatButton.js.map +1 -0
  15. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js +77 -0
  16. package/dist/commonjs/components/Call/CallControls/HangupCallButton.js.map +1 -0
  17. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js +44 -0
  18. package/dist/commonjs/components/Call/CallControls/IncomingCallControls.js.map +1 -0
  19. package/dist/commonjs/components/Call/CallControls/LobbyControls.js +34 -0
  20. package/dist/commonjs/components/Call/CallControls/LobbyControls.js.map +1 -0
  21. package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js +46 -0
  22. package/dist/commonjs/components/Call/CallControls/OutgoingCallControls.js.map +1 -0
  23. package/dist/commonjs/components/Call/CallControls/ReactionButton.js +71 -0
  24. package/dist/commonjs/components/Call/CallControls/ReactionButton.js.map +1 -0
  25. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js +74 -0
  26. package/dist/commonjs/components/Call/CallControls/RejectCallButton.js.map +1 -0
  27. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js +68 -0
  28. package/dist/commonjs/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
  29. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js +58 -0
  30. package/dist/commonjs/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
  31. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js +58 -0
  32. package/dist/commonjs/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -0
  33. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js +68 -0
  34. package/dist/commonjs/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
  35. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js +56 -0
  36. package/dist/commonjs/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
  37. package/dist/commonjs/components/Call/CallControls/index.js +160 -0
  38. package/dist/commonjs/components/Call/CallControls/index.js.map +1 -0
  39. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js +143 -0
  40. package/dist/commonjs/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -0
  41. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js +76 -0
  42. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -0
  43. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +101 -0
  44. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -0
  45. package/dist/commonjs/components/Call/CallLayout/index.js +28 -0
  46. package/dist/commonjs/components/Call/CallLayout/index.js.map +1 -0
  47. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js +241 -0
  48. package/dist/commonjs/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -0
  49. package/dist/commonjs/components/Call/CallParticipantsList/index.js +17 -0
  50. package/dist/commonjs/components/Call/CallParticipantsList/index.js.map +1 -0
  51. package/dist/commonjs/components/Call/CallTopView/CallTopView.js +121 -0
  52. package/dist/commonjs/components/Call/CallTopView/CallTopView.js.map +1 -0
  53. package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js +107 -0
  54. package/dist/commonjs/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
  55. package/dist/commonjs/components/Call/CallTopView/index.js +28 -0
  56. package/dist/commonjs/components/Call/CallTopView/index.js.map +1 -0
  57. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js +73 -0
  58. package/dist/commonjs/components/Call/Lobby/JoinCallButton.js.map +1 -0
  59. package/dist/commonjs/components/Call/Lobby/Lobby.js +185 -0
  60. package/dist/commonjs/components/Call/Lobby/Lobby.js.map +1 -0
  61. package/dist/commonjs/components/Call/Lobby/index.js +28 -0
  62. package/dist/commonjs/components/Call/Lobby/index.js.map +1 -0
  63. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js +118 -0
  64. package/dist/commonjs/components/Call/RingingCallContent/IncomingCall.js.map +1 -0
  65. package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js +33 -0
  66. package/dist/commonjs/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -0
  67. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js +110 -0
  68. package/dist/commonjs/components/Call/RingingCallContent/OutgoingCall.js.map +1 -0
  69. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js +72 -0
  70. package/dist/commonjs/components/Call/RingingCallContent/RingingCallContent.js.map +1 -0
  71. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js +117 -0
  72. package/dist/commonjs/components/Call/RingingCallContent/UserInfo.js.map +1 -0
  73. package/dist/commonjs/components/Call/RingingCallContent/index.js +39 -0
  74. package/dist/commonjs/components/Call/RingingCallContent/index.js.map +1 -0
  75. package/dist/commonjs/components/Call/index.js +83 -0
  76. package/dist/commonjs/components/Call/index.js.map +1 -0
  77. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +170 -0
  78. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -0
  79. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +154 -0
  80. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -0
  81. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js +74 -0
  82. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -0
  83. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js +11 -0
  84. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -0
  85. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +150 -0
  86. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -0
  87. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js +146 -0
  88. package/dist/commonjs/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -0
  89. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +98 -0
  90. package/dist/commonjs/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -0
  91. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js +83 -0
  92. package/dist/commonjs/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -0
  93. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js +63 -0
  94. package/dist/commonjs/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -0
  95. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js +90 -0
  96. package/dist/commonjs/components/Participant/ParticipantView/ParticipantView.js.map +1 -0
  97. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js +193 -0
  98. package/dist/commonjs/components/Participant/ParticipantView/VideoRenderer.js.map +1 -0
  99. package/dist/commonjs/components/Participant/ParticipantView/index.js +72 -0
  100. package/dist/commonjs/components/Participant/ParticipantView/index.js.map +1 -0
  101. package/dist/commonjs/components/Participant/index.js +28 -0
  102. package/dist/commonjs/components/Participant/index.js.map +1 -0
  103. package/dist/commonjs/components/index.js +39 -0
  104. package/dist/commonjs/components/index.js.map +1 -0
  105. package/dist/commonjs/components/utility/Avatar.js +77 -0
  106. package/dist/commonjs/components/utility/Avatar.js.map +1 -0
  107. package/dist/commonjs/components/utility/index.js +17 -0
  108. package/dist/commonjs/components/utility/index.js.map +1 -0
  109. package/dist/commonjs/constants/TestIds.js +40 -0
  110. package/dist/commonjs/constants/TestIds.js.map +1 -0
  111. package/dist/commonjs/constants/index.js +38 -0
  112. package/dist/commonjs/constants/index.js.map +1 -0
  113. package/dist/commonjs/contexts/StreamVideoContext.js +111 -0
  114. package/dist/commonjs/contexts/StreamVideoContext.js.map +1 -0
  115. package/dist/commonjs/contexts/ThemeContext.js +59 -0
  116. package/dist/commonjs/contexts/ThemeContext.js.map +1 -0
  117. package/dist/commonjs/contexts/index.js +28 -0
  118. package/dist/commonjs/contexts/index.js.map +1 -0
  119. package/dist/commonjs/hooks/index.js +61 -0
  120. package/dist/commonjs/hooks/index.js.map +1 -0
  121. package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +32 -0
  122. package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js.map +1 -0
  123. package/dist/commonjs/hooks/push/index.js +22 -0
  124. package/dist/commonjs/hooks/push/index.js.map +1 -0
  125. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js +28 -0
  126. package/dist/commonjs/hooks/push/useInitAndroidTokenAndRest.js.map +1 -0
  127. package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js +69 -0
  128. package/dist/commonjs/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -0
  129. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js +123 -0
  130. package/dist/commonjs/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
  131. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js +89 -0
  132. package/dist/commonjs/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -0
  133. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js +68 -0
  134. package/dist/commonjs/hooks/push/useProcessPushCallEffect.js.map +1 -0
  135. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js +122 -0
  136. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -0
  137. package/dist/commonjs/hooks/useIncallManager.js +32 -0
  138. package/dist/commonjs/hooks/useIncallManager.js.map +1 -0
  139. package/dist/commonjs/hooks/usePermissionNotification.js +44 -0
  140. package/dist/commonjs/hooks/usePermissionNotification.js.map +1 -0
  141. package/dist/commonjs/hooks/usePermissionRequest.js +68 -0
  142. package/dist/commonjs/hooks/usePermissionRequest.js.map +1 -0
  143. package/dist/commonjs/icons/Back.js +22 -0
  144. package/dist/commonjs/icons/Back.js.map +1 -0
  145. package/dist/commonjs/icons/CameraSwitch.js +22 -0
  146. package/dist/commonjs/icons/CameraSwitch.js.map +1 -0
  147. package/dist/commonjs/icons/Chat.js +22 -0
  148. package/dist/commonjs/icons/Chat.js.map +1 -0
  149. package/dist/commonjs/icons/Mic.js +25 -0
  150. package/dist/commonjs/icons/Mic.js.map +1 -0
  151. package/dist/commonjs/icons/MicOff.js +22 -0
  152. package/dist/commonjs/icons/MicOff.js.map +1 -0
  153. package/dist/commonjs/icons/Participants.js +24 -0
  154. package/dist/commonjs/icons/Participants.js.map +1 -0
  155. package/dist/commonjs/icons/Phone.js +22 -0
  156. package/dist/commonjs/icons/Phone.js.map +1 -0
  157. package/dist/commonjs/icons/PhoneDown.js +24 -0
  158. package/dist/commonjs/icons/PhoneDown.js.map +1 -0
  159. package/dist/commonjs/icons/PinVertical.js +22 -0
  160. package/dist/commonjs/icons/PinVertical.js.map +1 -0
  161. package/dist/commonjs/icons/Reaction.js +22 -0
  162. package/dist/commonjs/icons/Reaction.js.map +1 -0
  163. package/dist/commonjs/icons/ScreenShare.js +38 -0
  164. package/dist/commonjs/icons/ScreenShare.js.map +1 -0
  165. package/dist/commonjs/icons/Settings.js +24 -0
  166. package/dist/commonjs/icons/Settings.js.map +1 -0
  167. package/dist/commonjs/icons/Spotlight.js +24 -0
  168. package/dist/commonjs/icons/Spotlight.js.map +1 -0
  169. package/dist/commonjs/icons/ThreeDots.js +34 -0
  170. package/dist/commonjs/icons/ThreeDots.js.map +1 -0
  171. package/dist/commonjs/icons/TopViewBackground.js +38 -0
  172. package/dist/commonjs/icons/TopViewBackground.js.map +1 -0
  173. package/dist/commonjs/icons/Video.js +22 -0
  174. package/dist/commonjs/icons/Video.js.map +1 -0
  175. package/dist/commonjs/icons/VideoSlash.js +24 -0
  176. package/dist/commonjs/icons/VideoSlash.js.map +1 -0
  177. package/dist/commonjs/icons/index.js +182 -0
  178. package/dist/commonjs/icons/index.js.map +1 -0
  179. package/dist/commonjs/index.js +172 -0
  180. package/dist/commonjs/index.js.map +1 -0
  181. package/dist/commonjs/providers/MediaStreamManagement.js +148 -0
  182. package/dist/commonjs/providers/MediaStreamManagement.js.map +1 -0
  183. package/dist/commonjs/providers/StreamCall.js +49 -0
  184. package/dist/commonjs/providers/StreamCall.js.map +1 -0
  185. package/dist/commonjs/providers/StreamVideo.js +76 -0
  186. package/dist/commonjs/providers/StreamVideo.js.map +1 -0
  187. package/dist/commonjs/providers/index.js +39 -0
  188. package/dist/commonjs/providers/index.js.map +1 -0
  189. package/dist/commonjs/theme/colors.js +51 -0
  190. package/dist/commonjs/theme/colors.js.map +1 -0
  191. package/dist/commonjs/theme/constants.js +59 -0
  192. package/dist/commonjs/theme/constants.js.map +1 -0
  193. package/dist/commonjs/theme/index.js +28 -0
  194. package/dist/commonjs/theme/index.js.map +1 -0
  195. package/dist/commonjs/theme/theme.js +230 -0
  196. package/dist/commonjs/theme/theme.js.map +1 -0
  197. package/dist/commonjs/theme/types.js +6 -0
  198. package/dist/commonjs/theme/types.js.map +1 -0
  199. package/dist/commonjs/translations/en.json +14 -0
  200. package/dist/commonjs/translations/index.js +13 -0
  201. package/dist/commonjs/translations/index.js.map +1 -0
  202. package/dist/commonjs/utils/StreamVideoRN/index.js +71 -0
  203. package/dist/commonjs/utils/StreamVideoRN/index.js.map +1 -0
  204. package/dist/commonjs/utils/StreamVideoRN/types.js +6 -0
  205. package/dist/commonjs/utils/StreamVideoRN/types.js.map +1 -0
  206. package/dist/commonjs/utils/hooks/index.js +39 -0
  207. package/dist/commonjs/utils/hooks/index.js.map +1 -0
  208. package/dist/commonjs/utils/hooks/useAppStateListener.js +43 -0
  209. package/dist/commonjs/utils/hooks/useAppStateListener.js.map +1 -0
  210. package/dist/commonjs/utils/hooks/useDebouncedValue.js +24 -0
  211. package/dist/commonjs/utils/hooks/useDebouncedValue.js.map +1 -0
  212. package/dist/commonjs/utils/hooks/usePrevious.js +16 -0
  213. package/dist/commonjs/utils/hooks/usePrevious.js.map +1 -0
  214. package/dist/commonjs/utils/index.js +52 -0
  215. package/dist/commonjs/utils/index.js.map +1 -0
  216. package/dist/commonjs/utils/internal/optionalLibs.js +31 -0
  217. package/dist/commonjs/utils/internal/optionalLibs.js.map +1 -0
  218. package/dist/commonjs/utils/push/android.js +146 -0
  219. package/dist/commonjs/utils/push/android.js.map +1 -0
  220. package/dist/commonjs/utils/push/ios.js +46 -0
  221. package/dist/commonjs/utils/push/ios.js.map +1 -0
  222. package/dist/commonjs/utils/push/libs.js +39 -0
  223. package/dist/commonjs/utils/push/libs.js.map +1 -0
  224. package/dist/commonjs/utils/push/rxSubjects.js +49 -0
  225. package/dist/commonjs/utils/push/rxSubjects.js.map +1 -0
  226. package/dist/commonjs/utils/push/utils.js +55 -0
  227. package/dist/commonjs/utils/push/utils.js.map +1 -0
  228. package/dist/commonjs/utils/setClientDetails.js +51 -0
  229. package/dist/commonjs/utils/setClientDetails.js.map +1 -0
  230. package/dist/commonjs/version.js +9 -0
  231. package/dist/commonjs/version.js.map +1 -0
  232. package/dist/module/components/Call/CallContent/CallContent.js +124 -0
  233. package/dist/module/components/Call/CallContent/CallContent.js.map +1 -0
  234. package/dist/module/components/Call/CallContent/index.js.map +1 -0
  235. package/dist/module/components/Call/CallControls/AcceptCallButton.js +54 -0
  236. package/dist/module/components/Call/CallControls/AcceptCallButton.js.map +1 -0
  237. package/dist/module/components/Call/CallControls/CallControls.js +45 -0
  238. package/dist/module/components/Call/CallControls/CallControls.js.map +1 -0
  239. package/dist/module/components/Call/CallControls/CallControlsButton.js +69 -0
  240. package/dist/module/components/Call/CallControls/CallControlsButton.js.map +1 -0
  241. package/dist/module/components/Call/CallControls/ChatButton.js +79 -0
  242. package/dist/module/components/Call/CallControls/ChatButton.js.map +1 -0
  243. package/dist/module/components/Call/CallControls/HangupCallButton.js +69 -0
  244. package/dist/module/components/Call/CallControls/HangupCallButton.js.map +1 -0
  245. package/dist/module/components/Call/CallControls/IncomingCallControls.js +37 -0
  246. package/dist/module/components/Call/CallControls/IncomingCallControls.js.map +1 -0
  247. package/dist/module/components/Call/CallControls/LobbyControls.js +27 -0
  248. package/dist/module/components/Call/CallControls/LobbyControls.js.map +1 -0
  249. package/dist/module/components/Call/CallControls/OutgoingCallControls.js +39 -0
  250. package/dist/module/components/Call/CallControls/OutgoingCallControls.js.map +1 -0
  251. package/dist/module/components/Call/CallControls/ReactionButton.js +63 -0
  252. package/dist/module/components/Call/CallControls/ReactionButton.js.map +1 -0
  253. package/dist/module/components/Call/CallControls/RejectCallButton.js +67 -0
  254. package/dist/module/components/Call/CallControls/RejectCallButton.js.map +1 -0
  255. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js +61 -0
  256. package/dist/module/components/Call/CallControls/ToggleAudioPreviewButton.js.map +1 -0
  257. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js +51 -0
  258. package/dist/module/components/Call/CallControls/ToggleAudioPublishingButton.js.map +1 -0
  259. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js +51 -0
  260. package/dist/module/components/Call/CallControls/ToggleCameraFaceButton.js.map +1 -0
  261. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js +61 -0
  262. package/dist/module/components/Call/CallControls/ToggleVideoPreviewButton.js.map +1 -0
  263. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js +49 -0
  264. package/dist/module/components/Call/CallControls/ToggleVideoPublishingButton.js.map +1 -0
  265. package/dist/module/components/Call/CallControls/index.js.map +1 -0
  266. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js +134 -0
  267. package/dist/module/components/Call/CallControls/internal/ReactionsPicker.js.map +1 -0
  268. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js +69 -0
  269. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -0
  270. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +94 -0
  271. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -0
  272. package/dist/module/components/Call/CallLayout/index.js.map +1 -0
  273. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js +232 -0
  274. package/dist/module/components/Call/CallParticipantsList/CallParticipantsList.js.map +1 -0
  275. package/dist/module/components/Call/CallParticipantsList/index.js.map +1 -0
  276. package/dist/module/components/Call/CallTopView/CallTopView.js +112 -0
  277. package/dist/module/components/Call/CallTopView/CallTopView.js.map +1 -0
  278. package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js +100 -0
  279. package/dist/module/components/Call/CallTopView/ParticipantsInfoBadge.js.map +1 -0
  280. package/dist/module/components/Call/CallTopView/index.js.map +1 -0
  281. package/dist/module/components/Call/Lobby/JoinCallButton.js +66 -0
  282. package/dist/module/components/Call/Lobby/JoinCallButton.js.map +1 -0
  283. package/dist/module/components/Call/Lobby/Lobby.js +178 -0
  284. package/dist/module/components/Call/Lobby/Lobby.js.map +1 -0
  285. package/dist/module/components/Call/Lobby/index.js.map +1 -0
  286. package/dist/module/components/Call/RingingCallContent/IncomingCall.js +110 -0
  287. package/dist/module/components/Call/RingingCallContent/IncomingCall.js.map +1 -0
  288. package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js +25 -0
  289. package/dist/module/components/Call/RingingCallContent/JoiningCallIndicator.js.map +1 -0
  290. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js +103 -0
  291. package/dist/module/components/Call/RingingCallContent/OutgoingCall.js.map +1 -0
  292. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js +65 -0
  293. package/dist/module/components/Call/RingingCallContent/RingingCallContent.js.map +1 -0
  294. package/dist/module/components/Call/RingingCallContent/UserInfo.js +109 -0
  295. package/dist/module/components/Call/RingingCallContent/UserInfo.js.map +1 -0
  296. package/dist/module/components/Call/RingingCallContent/index.js.map +1 -0
  297. package/dist/module/components/Call/index.js.map +1 -0
  298. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +161 -0
  299. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +1 -0
  300. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +145 -0
  301. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +1 -0
  302. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js +64 -0
  303. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/common.js.map +1 -0
  304. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +4 -0
  305. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -0
  306. package/dist/module/components/Participant/FloatingParticipantView/index.js +143 -0
  307. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -0
  308. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js +139 -0
  309. package/dist/module/components/Participant/ParticipantView/ParticipantLabel.js.map +1 -0
  310. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +91 -0
  311. package/dist/module/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +1 -0
  312. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js +75 -0
  313. package/dist/module/components/Participant/ParticipantView/ParticipantReaction.js.map +1 -0
  314. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js +56 -0
  315. package/dist/module/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +1 -0
  316. package/dist/module/components/Participant/ParticipantView/ParticipantView.js +83 -0
  317. package/dist/module/components/Participant/ParticipantView/ParticipantView.js.map +1 -0
  318. package/dist/module/components/Participant/ParticipantView/VideoRenderer.js +184 -0
  319. package/dist/module/components/Participant/ParticipantView/VideoRenderer.js.map +1 -0
  320. package/dist/module/components/Participant/ParticipantView/index.js.map +1 -0
  321. package/dist/module/components/Participant/index.js.map +1 -0
  322. package/dist/module/components/index.js.map +1 -0
  323. package/dist/module/components/utility/Avatar.js +70 -0
  324. package/dist/module/components/utility/Avatar.js.map +1 -0
  325. package/dist/module/components/utility/index.js.map +1 -0
  326. package/dist/module/constants/TestIds.js +30 -0
  327. package/dist/module/constants/TestIds.js.map +1 -0
  328. package/dist/module/constants/index.js +28 -0
  329. package/dist/module/constants/index.js.map +1 -0
  330. package/dist/module/contexts/StreamVideoContext.js +101 -0
  331. package/dist/module/contexts/StreamVideoContext.js.map +1 -0
  332. package/dist/module/contexts/ThemeContext.js +46 -0
  333. package/dist/module/contexts/ThemeContext.js.map +1 -0
  334. package/dist/module/contexts/index.js.map +1 -0
  335. package/dist/module/hooks/index.js.map +1 -0
  336. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +26 -0
  337. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js.map +1 -0
  338. package/dist/module/hooks/push/index.js +16 -0
  339. package/dist/module/hooks/push/index.js.map +1 -0
  340. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js +22 -0
  341. package/dist/module/hooks/push/useInitAndroidTokenAndRest.js.map +1 -0
  342. package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js +63 -0
  343. package/dist/module/hooks/push/useIosCallKeepEventsSetupEffect.js.map +1 -0
  344. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js +116 -0
  345. package/dist/module/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +1 -0
  346. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js +83 -0
  347. package/dist/module/hooks/push/useIosVoipPushEventsSetupEffect.js.map +1 -0
  348. package/dist/module/hooks/push/useProcessPushCallEffect.js +61 -0
  349. package/dist/module/hooks/push/useProcessPushCallEffect.js.map +1 -0
  350. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js +113 -0
  351. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -0
  352. package/dist/module/hooks/useIncallManager.js +24 -0
  353. package/dist/module/hooks/useIncallManager.js.map +1 -0
  354. package/dist/module/hooks/usePermissionNotification.js +37 -0
  355. package/dist/module/hooks/usePermissionNotification.js.map +1 -0
  356. package/dist/module/hooks/usePermissionRequest.js +61 -0
  357. package/dist/module/hooks/usePermissionRequest.js.map +1 -0
  358. package/dist/module/icons/Back.js +14 -0
  359. package/dist/module/icons/Back.js.map +1 -0
  360. package/dist/module/icons/CameraSwitch.js +14 -0
  361. package/dist/module/icons/CameraSwitch.js.map +1 -0
  362. package/dist/module/icons/Chat.js +14 -0
  363. package/dist/module/icons/Chat.js.map +1 -0
  364. package/dist/module/icons/Mic.js +17 -0
  365. package/dist/module/icons/Mic.js.map +1 -0
  366. package/dist/module/icons/MicOff.js +14 -0
  367. package/dist/module/icons/MicOff.js.map +1 -0
  368. package/dist/module/icons/Participants.js +16 -0
  369. package/dist/module/icons/Participants.js.map +1 -0
  370. package/dist/module/icons/Phone.js +14 -0
  371. package/dist/module/icons/Phone.js.map +1 -0
  372. package/dist/module/icons/PhoneDown.js +16 -0
  373. package/dist/module/icons/PhoneDown.js.map +1 -0
  374. package/dist/module/icons/PinVertical.js +14 -0
  375. package/dist/module/icons/PinVertical.js.map +1 -0
  376. package/dist/module/icons/Reaction.js +14 -0
  377. package/dist/module/icons/Reaction.js.map +1 -0
  378. package/dist/module/icons/ScreenShare.js +28 -0
  379. package/dist/module/icons/ScreenShare.js.map +1 -0
  380. package/dist/module/icons/Settings.js +14 -0
  381. package/dist/module/icons/Settings.js.map +1 -0
  382. package/dist/module/icons/Spotlight.js +16 -0
  383. package/dist/module/icons/Spotlight.js.map +1 -0
  384. package/dist/module/icons/ThreeDots.js +26 -0
  385. package/dist/module/icons/ThreeDots.js.map +1 -0
  386. package/dist/module/icons/TopViewBackground.js +30 -0
  387. package/dist/module/icons/TopViewBackground.js.map +1 -0
  388. package/dist/module/icons/Video.js +14 -0
  389. package/dist/module/icons/Video.js.map +1 -0
  390. package/dist/module/icons/VideoSlash.js +16 -0
  391. package/dist/module/icons/VideoSlash.js.map +1 -0
  392. package/dist/module/icons/index.js.map +1 -0
  393. package/dist/module/index.js +35 -0
  394. package/dist/module/index.js.map +1 -0
  395. package/dist/module/providers/MediaStreamManagement.js +139 -0
  396. package/dist/module/providers/MediaStreamManagement.js.map +1 -0
  397. package/dist/module/providers/StreamCall.js +41 -0
  398. package/dist/module/providers/StreamCall.js.map +1 -0
  399. package/dist/module/providers/StreamVideo.js +66 -0
  400. package/dist/module/providers/StreamVideo.js.map +1 -0
  401. package/dist/module/providers/index.js.map +1 -0
  402. package/dist/module/theme/colors.js +44 -0
  403. package/dist/module/theme/colors.js.map +1 -0
  404. package/dist/module/theme/constants.js +53 -0
  405. package/dist/module/theme/constants.js.map +1 -0
  406. package/dist/module/theme/index.js +7 -0
  407. package/dist/module/theme/index.js.map +1 -0
  408. package/dist/module/theme/theme.js +223 -0
  409. package/dist/module/theme/theme.js.map +1 -0
  410. package/dist/module/theme/types.js.map +1 -0
  411. package/dist/module/translations/en.json +14 -0
  412. package/dist/module/translations/index.js +5 -0
  413. package/dist/module/translations/index.js.map +1 -0
  414. package/dist/module/utils/StreamVideoRN/index.js +64 -0
  415. package/dist/module/utils/StreamVideoRN/index.js.map +1 -0
  416. package/dist/module/utils/StreamVideoRN/types.js.map +1 -0
  417. package/dist/module/utils/hooks/index.js.map +1 -0
  418. package/dist/module/utils/hooks/useAppStateListener.js +36 -0
  419. package/dist/module/utils/hooks/useAppStateListener.js.map +1 -0
  420. package/dist/module/utils/hooks/useDebouncedValue.js +19 -0
  421. package/dist/module/utils/hooks/useDebouncedValue.js.map +1 -0
  422. package/dist/module/utils/hooks/usePrevious.js +9 -0
  423. package/dist/module/utils/hooks/usePrevious.js.map +1 -0
  424. package/dist/module/utils/index.js +27 -0
  425. package/dist/module/utils/index.js.map +1 -0
  426. package/dist/module/utils/internal/optionalLibs.js +23 -0
  427. package/dist/module/utils/internal/optionalLibs.js.map +1 -0
  428. package/dist/module/utils/push/android.js +137 -0
  429. package/dist/module/utils/push/android.js.map +1 -0
  430. package/dist/module/utils/push/ios.js +38 -0
  431. package/dist/module/utils/push/ios.js.map +1 -0
  432. package/dist/module/utils/push/libs.js +31 -0
  433. package/dist/module/utils/push/libs.js.map +1 -0
  434. package/dist/module/utils/push/rxSubjects.js +39 -0
  435. package/dist/module/utils/push/rxSubjects.js.map +1 -0
  436. package/dist/module/utils/push/utils.js +47 -0
  437. package/dist/module/utils/push/utils.js.map +1 -0
  438. package/dist/module/utils/setClientDetails.js +44 -0
  439. package/dist/module/utils/setClientDetails.js.map +1 -0
  440. package/dist/module/version.js +2 -0
  441. package/dist/module/version.js.map +1 -0
  442. package/dist/typescript/components/Call/CallContent/CallContent.d.ts +27 -0
  443. package/dist/typescript/components/Call/CallContent/CallContent.d.ts.map +1 -0
  444. package/dist/typescript/components/Call/CallContent/index.d.ts +2 -0
  445. package/dist/typescript/components/Call/CallContent/index.d.ts.map +1 -0
  446. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts +23 -0
  447. package/dist/typescript/components/Call/CallControls/AcceptCallButton.d.ts.map +1 -0
  448. package/dist/typescript/components/Call/CallControls/CallControls.d.ts +17 -0
  449. package/dist/typescript/components/Call/CallControls/CallControls.d.ts.map +1 -0
  450. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts +37 -0
  451. package/dist/typescript/components/Call/CallControls/CallControlsButton.d.ts.map +1 -0
  452. package/dist/typescript/components/Call/CallControls/ChatButton.d.ts +21 -0
  453. package/dist/typescript/components/Call/CallControls/ChatButton.d.ts.map +1 -0
  454. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts +23 -0
  455. package/dist/typescript/components/Call/CallControls/HangupCallButton.d.ts.map +1 -0
  456. package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts +15 -0
  457. package/dist/typescript/components/Call/CallControls/IncomingCallControls.d.ts.map +1 -0
  458. package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts +5 -0
  459. package/dist/typescript/components/Call/CallControls/LobbyControls.d.ts.map +1 -0
  460. package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts +11 -0
  461. package/dist/typescript/components/Call/CallControls/OutgoingCallControls.d.ts.map +1 -0
  462. package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts +15 -0
  463. package/dist/typescript/components/Call/CallControls/ReactionButton.d.ts.map +1 -0
  464. package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts +24 -0
  465. package/dist/typescript/components/Call/CallControls/RejectCallButton.d.ts.map +1 -0
  466. package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts +15 -0
  467. package/dist/typescript/components/Call/CallControls/ToggleAudioPreviewButton.d.ts.map +1 -0
  468. package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts +15 -0
  469. package/dist/typescript/components/Call/CallControls/ToggleAudioPublishingButton.d.ts.map +1 -0
  470. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts +15 -0
  471. package/dist/typescript/components/Call/CallControls/ToggleCameraFaceButton.d.ts.map +1 -0
  472. package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts +15 -0
  473. package/dist/typescript/components/Call/CallControls/ToggleVideoPreviewButton.d.ts.map +1 -0
  474. package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts +15 -0
  475. package/dist/typescript/components/Call/CallControls/ToggleVideoPublishingButton.d.ts.map +1 -0
  476. package/dist/typescript/components/Call/CallControls/index.d.ts +15 -0
  477. package/dist/typescript/components/Call/CallControls/index.d.ts.map +1 -0
  478. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts +10 -0
  479. package/dist/typescript/components/Call/CallControls/internal/ReactionsPicker.d.ts.map +1 -0
  480. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts +20 -0
  481. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -0
  482. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +17 -0
  483. package/dist/typescript/components/Call/CallLayout/CallParticipantsSpotlight.d.ts.map +1 -0
  484. package/dist/typescript/components/Call/CallLayout/index.d.ts +3 -0
  485. package/dist/typescript/components/Call/CallLayout/index.d.ts.map +1 -0
  486. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts +35 -0
  487. package/dist/typescript/components/Call/CallParticipantsList/CallParticipantsList.d.ts.map +1 -0
  488. package/dist/typescript/components/Call/CallParticipantsList/index.d.ts +2 -0
  489. package/dist/typescript/components/Call/CallParticipantsList/index.d.ts.map +1 -0
  490. package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts +29 -0
  491. package/dist/typescript/components/Call/CallTopView/CallTopView.d.ts.map +1 -0
  492. package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +11 -0
  493. package/dist/typescript/components/Call/CallTopView/ParticipantsInfoBadge.d.ts.map +1 -0
  494. package/dist/typescript/components/Call/CallTopView/index.d.ts +3 -0
  495. package/dist/typescript/components/Call/CallTopView/index.d.ts.map +1 -0
  496. package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts +12 -0
  497. package/dist/typescript/components/Call/Lobby/JoinCallButton.d.ts.map +1 -0
  498. package/dist/typescript/components/Call/Lobby/Lobby.d.ts +24 -0
  499. package/dist/typescript/components/Call/Lobby/Lobby.d.ts.map +1 -0
  500. package/dist/typescript/components/Call/Lobby/index.d.ts +3 -0
  501. package/dist/typescript/components/Call/Lobby/index.d.ts.map +1 -0
  502. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts +40 -0
  503. package/dist/typescript/components/Call/RingingCallContent/IncomingCall.d.ts.map +1 -0
  504. package/dist/typescript/components/Call/RingingCallContent/JoiningCallIndicator.d.ts +2 -0
  505. package/dist/typescript/components/Call/RingingCallContent/JoiningCallIndicator.d.ts.map +1 -0
  506. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts +22 -0
  507. package/dist/typescript/components/Call/RingingCallContent/OutgoingCall.d.ts.map +1 -0
  508. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts +35 -0
  509. package/dist/typescript/components/Call/RingingCallContent/RingingCallContent.d.ts.map +1 -0
  510. package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts +14 -0
  511. package/dist/typescript/components/Call/RingingCallContent/UserInfo.d.ts.map +1 -0
  512. package/dist/typescript/components/Call/RingingCallContent/index.d.ts +4 -0
  513. package/dist/typescript/components/Call/RingingCallContent/index.d.ts.map +1 -0
  514. package/dist/typescript/components/Call/index.d.ts +8 -0
  515. package/dist/typescript/components/Call/index.d.ts.map +1 -0
  516. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts +4 -0
  517. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts.map +1 -0
  518. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts +5 -0
  519. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts.map +1 -0
  520. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +39 -0
  521. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/common.d.ts.map +1 -0
  522. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +5 -0
  523. package/dist/typescript/components/Participant/FloatingParticipantView/FloatingView/index.d.ts.map +1 -0
  524. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts +32 -0
  525. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -0
  526. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts +10 -0
  527. package/dist/typescript/components/Participant/ParticipantView/ParticipantLabel.d.ts.map +1 -0
  528. package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts +7 -0
  529. package/dist/typescript/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts.map +1 -0
  530. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts +17 -0
  531. package/dist/typescript/components/Participant/ParticipantView/ParticipantReaction.d.ts.map +1 -0
  532. package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts +10 -0
  533. package/dist/typescript/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts.map +1 -0
  534. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts +70 -0
  535. package/dist/typescript/components/Participant/ParticipantView/ParticipantView.d.ts.map +1 -0
  536. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts +12 -0
  537. package/dist/typescript/components/Participant/ParticipantView/VideoRenderer.d.ts.map +1 -0
  538. package/dist/typescript/components/Participant/ParticipantView/index.d.ts +7 -0
  539. package/dist/typescript/components/Participant/ParticipantView/index.d.ts.map +1 -0
  540. package/dist/typescript/components/Participant/index.d.ts +3 -0
  541. package/dist/typescript/components/Participant/index.d.ts.map +1 -0
  542. package/dist/typescript/components/index.d.ts +4 -0
  543. package/dist/typescript/components/index.d.ts.map +1 -0
  544. package/dist/typescript/components/utility/Avatar.d.ts +43 -0
  545. package/dist/typescript/components/utility/Avatar.d.ts.map +1 -0
  546. package/dist/typescript/components/utility/index.d.ts +2 -0
  547. package/dist/typescript/components/utility/index.d.ts.map +1 -0
  548. package/dist/typescript/constants/TestIds.d.ts +26 -0
  549. package/dist/typescript/constants/TestIds.d.ts.map +1 -0
  550. package/dist/typescript/constants/index.d.ts +14 -0
  551. package/dist/typescript/constants/index.d.ts.map +1 -0
  552. package/dist/typescript/contexts/StreamVideoContext.d.ts +20 -0
  553. package/dist/typescript/contexts/StreamVideoContext.d.ts.map +1 -0
  554. package/dist/typescript/contexts/ThemeContext.d.ts +23 -0
  555. package/dist/typescript/contexts/ThemeContext.d.ts.map +1 -0
  556. package/dist/typescript/contexts/index.d.ts +3 -0
  557. package/dist/typescript/contexts/index.d.ts.map +1 -0
  558. package/dist/typescript/hooks/index.d.ts +6 -0
  559. package/dist/typescript/hooks/index.d.ts.map +1 -0
  560. package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts +6 -0
  561. package/dist/typescript/hooks/internal/useCallMediaStreamCleanup.d.ts.map +1 -0
  562. package/dist/typescript/hooks/push/index.d.ts +6 -0
  563. package/dist/typescript/hooks/push/index.d.ts.map +1 -0
  564. package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts +5 -0
  565. package/dist/typescript/hooks/push/useInitAndroidTokenAndRest.d.ts.map +1 -0
  566. package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts +5 -0
  567. package/dist/typescript/hooks/push/useIosCallKeepEventsSetupEffect.d.ts.map +1 -0
  568. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +5 -0
  569. package/dist/typescript/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts.map +1 -0
  570. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts +6 -0
  571. package/dist/typescript/hooks/push/useIosVoipPushEventsSetupEffect.d.ts.map +1 -0
  572. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts +8 -0
  573. package/dist/typescript/hooks/push/useProcessPushCallEffect.d.ts.map +1 -0
  574. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts +7 -0
  575. package/dist/typescript/hooks/useAndroidKeepCallAliveEffect.d.ts.map +1 -0
  576. package/dist/typescript/hooks/useIncallManager.d.ts +14 -0
  577. package/dist/typescript/hooks/useIncallManager.d.ts.map +1 -0
  578. package/dist/typescript/hooks/usePermissionNotification.d.ts +19 -0
  579. package/dist/typescript/hooks/usePermissionNotification.d.ts.map +1 -0
  580. package/dist/typescript/hooks/usePermissionRequest.d.ts +2 -0
  581. package/dist/typescript/hooks/usePermissionRequest.d.ts.map +1 -0
  582. package/dist/typescript/icons/Back.d.ts +7 -0
  583. package/dist/typescript/icons/Back.d.ts.map +1 -0
  584. package/dist/typescript/icons/CameraSwitch.d.ts +7 -0
  585. package/dist/typescript/icons/CameraSwitch.d.ts.map +1 -0
  586. package/dist/typescript/icons/Chat.d.ts +7 -0
  587. package/dist/typescript/icons/Chat.d.ts.map +1 -0
  588. package/dist/typescript/icons/Mic.d.ts +7 -0
  589. package/dist/typescript/icons/Mic.d.ts.map +1 -0
  590. package/dist/typescript/icons/MicOff.d.ts +7 -0
  591. package/dist/typescript/icons/MicOff.d.ts.map +1 -0
  592. package/dist/typescript/icons/Participants.d.ts +7 -0
  593. package/dist/typescript/icons/Participants.d.ts.map +1 -0
  594. package/dist/typescript/icons/Phone.d.ts +7 -0
  595. package/dist/typescript/icons/Phone.d.ts.map +1 -0
  596. package/dist/typescript/icons/PhoneDown.d.ts +7 -0
  597. package/dist/typescript/icons/PhoneDown.d.ts.map +1 -0
  598. package/dist/typescript/icons/PinVertical.d.ts +7 -0
  599. package/dist/typescript/icons/PinVertical.d.ts.map +1 -0
  600. package/dist/typescript/icons/Reaction.d.ts +7 -0
  601. package/dist/typescript/icons/Reaction.d.ts.map +1 -0
  602. package/dist/typescript/icons/ScreenShare.d.ts +7 -0
  603. package/dist/typescript/icons/ScreenShare.d.ts.map +1 -0
  604. package/dist/typescript/icons/Settings.d.ts +6 -0
  605. package/dist/typescript/icons/Settings.d.ts.map +1 -0
  606. package/dist/typescript/icons/Spotlight.d.ts +7 -0
  607. package/dist/typescript/icons/Spotlight.d.ts.map +1 -0
  608. package/dist/typescript/icons/ThreeDots.d.ts +6 -0
  609. package/dist/typescript/icons/ThreeDots.d.ts.map +1 -0
  610. package/dist/typescript/icons/TopViewBackground.d.ts +14 -0
  611. package/dist/typescript/icons/TopViewBackground.d.ts.map +1 -0
  612. package/dist/typescript/icons/Video.d.ts +7 -0
  613. package/dist/typescript/icons/Video.d.ts.map +1 -0
  614. package/dist/typescript/icons/VideoSlash.d.ts +7 -0
  615. package/dist/typescript/icons/VideoSlash.d.ts.map +1 -0
  616. package/dist/typescript/icons/index.d.ts +17 -0
  617. package/dist/typescript/icons/index.d.ts.map +1 -0
  618. package/dist/typescript/index.d.ts +17 -0
  619. package/dist/typescript/index.d.ts.map +1 -0
  620. package/dist/typescript/providers/MediaStreamManagement.d.ts +46 -0
  621. package/dist/typescript/providers/MediaStreamManagement.d.ts.map +1 -0
  622. package/dist/typescript/providers/StreamCall.d.ts +23 -0
  623. package/dist/typescript/providers/StreamCall.d.ts.map +1 -0
  624. package/dist/typescript/providers/StreamVideo.d.ts +15 -0
  625. package/dist/typescript/providers/StreamVideo.d.ts.map +1 -0
  626. package/dist/typescript/providers/index.d.ts +4 -0
  627. package/dist/typescript/providers/index.d.ts.map +1 -0
  628. package/dist/typescript/theme/colors.d.ts +40 -0
  629. package/dist/typescript/theme/colors.d.ts.map +1 -0
  630. package/dist/typescript/theme/constants.d.ts +48 -0
  631. package/dist/typescript/theme/constants.d.ts.map +1 -0
  632. package/dist/typescript/theme/index.d.ts +4 -0
  633. package/dist/typescript/theme/index.d.ts.map +1 -0
  634. package/dist/typescript/theme/theme.d.ts +196 -0
  635. package/dist/typescript/theme/theme.d.ts.map +1 -0
  636. package/dist/typescript/theme/types.d.ts +30 -0
  637. package/dist/typescript/theme/types.d.ts.map +1 -0
  638. package/dist/typescript/translations/index.d.ts +17 -0
  639. package/dist/typescript/translations/index.d.ts.map +1 -0
  640. package/dist/typescript/utils/StreamVideoRN/index.d.ts +28 -0
  641. package/dist/typescript/utils/StreamVideoRN/index.d.ts.map +1 -0
  642. package/dist/typescript/utils/StreamVideoRN/types.d.ts +95 -0
  643. package/dist/typescript/utils/StreamVideoRN/types.d.ts.map +1 -0
  644. package/dist/typescript/utils/hooks/index.d.ts +4 -0
  645. package/dist/typescript/utils/hooks/index.d.ts.map +1 -0
  646. package/dist/typescript/utils/hooks/useAppStateListener.d.ts +2 -0
  647. package/dist/typescript/utils/hooks/useAppStateListener.d.ts.map +1 -0
  648. package/dist/typescript/utils/hooks/useDebouncedValue.d.ts +8 -0
  649. package/dist/typescript/utils/hooks/useDebouncedValue.d.ts.map +1 -0
  650. package/dist/typescript/utils/hooks/usePrevious.d.ts +2 -0
  651. package/dist/typescript/utils/hooks/usePrevious.d.ts.map +1 -0
  652. package/dist/typescript/utils/index.d.ts +5 -0
  653. package/dist/typescript/utils/index.d.ts.map +1 -0
  654. package/dist/typescript/utils/internal/optionalLibs.d.ts +6 -0
  655. package/dist/typescript/utils/internal/optionalLibs.d.ts.map +1 -0
  656. package/dist/typescript/utils/push/android.d.ts +9 -0
  657. package/dist/typescript/utils/push/android.d.ts.map +1 -0
  658. package/dist/typescript/utils/push/ios.d.ts +6 -0
  659. package/dist/typescript/utils/push/ios.d.ts.map +1 -0
  660. package/dist/typescript/utils/push/libs.d.ts +10 -0
  661. package/dist/typescript/utils/push/libs.d.ts.map +1 -0
  662. package/dist/typescript/utils/push/rxSubjects.d.ts +29 -0
  663. package/dist/typescript/utils/push/rxSubjects.d.ts.map +1 -0
  664. package/dist/typescript/utils/push/utils.d.ts +14 -0
  665. package/dist/typescript/utils/push/utils.d.ts.map +1 -0
  666. package/dist/typescript/utils/setClientDetails.d.ts +2 -0
  667. package/dist/typescript/utils/setClientDetails.d.ts.map +1 -0
  668. package/dist/typescript/version.d.ts +2 -0
  669. package/dist/typescript/version.d.ts.map +1 -0
  670. package/expo-config-plugin/dist/index.js +18 -14
  671. package/expo-config-plugin/dist/withAndroidManifest.js +6 -5
  672. package/expo-config-plugin/dist/withAndroidPermissions.js +5 -4
  673. package/expo-config-plugin/dist/withAppDelegate.js +8 -7
  674. package/expo-config-plugin/dist/withMainApplication.js +8 -7
  675. package/expo-config-plugin/dist/withiOSInfoPlist.js +5 -4
  676. package/package.json +18 -6
  677. package/src/components/Call/CallControls/ToggleAudioPreviewButton.tsx +3 -3
  678. package/src/components/Call/CallControls/ToggleVideoPreviewButton.tsx +4 -3
  679. package/src/components/Call/Lobby/Lobby.tsx +6 -3
  680. package/src/components/Call/RingingCallContent/OutgoingCall.tsx +5 -3
  681. package/src/components/Participant/ParticipantView/VideoRenderer.tsx +6 -3
  682. package/src/hooks/internal/useCallMediaStreamCleanup.ts +1 -0
  683. package/src/index.ts +41 -0
  684. package/src/providers/MediaStreamManagement.tsx +80 -51
  685. package/src/providers/StreamVideo.tsx +0 -2
  686. package/src/translations/en.json +1 -3
  687. package/src/utils/StreamVideoRN/index.ts +0 -21
  688. package/src/utils/setClientDetails.ts +1 -1
  689. package/src/version.ts +1 -0
  690. package/dist/index.d.ts +0 -16
  691. package/dist/index.js +0 -32
  692. package/dist/index.js.map +0 -1
  693. package/dist/jest-setup.d.ts +0 -1
  694. package/dist/jest-setup.js +0 -38
  695. package/dist/jest-setup.js.map +0 -1
  696. package/dist/src/components/Call/CallContent/CallContent.d.ts +0 -26
  697. package/dist/src/components/Call/CallContent/CallContent.js +0 -84
  698. package/dist/src/components/Call/CallContent/CallContent.js.map +0 -1
  699. package/dist/src/components/Call/CallContent/index.d.ts +0 -1
  700. package/dist/src/components/Call/CallContent/index.js.map +0 -1
  701. package/dist/src/components/Call/CallControls/AcceptCallButton.d.ts +0 -22
  702. package/dist/src/components/Call/CallControls/AcceptCallButton.js +0 -32
  703. package/dist/src/components/Call/CallControls/AcceptCallButton.js.map +0 -1
  704. package/dist/src/components/Call/CallControls/CallControls.d.ts +0 -16
  705. package/dist/src/components/Call/CallControls/CallControls.js +0 -34
  706. package/dist/src/components/Call/CallControls/CallControls.js.map +0 -1
  707. package/dist/src/components/Call/CallControls/CallControlsButton.d.ts +0 -36
  708. package/dist/src/components/Call/CallControls/CallControlsButton.js +0 -48
  709. package/dist/src/components/Call/CallControls/CallControlsButton.js.map +0 -1
  710. package/dist/src/components/Call/CallControls/ChatButton.d.ts +0 -20
  711. package/dist/src/components/Call/CallControls/ChatButton.js +0 -45
  712. package/dist/src/components/Call/CallControls/ChatButton.js.map +0 -1
  713. package/dist/src/components/Call/CallControls/HangupCallButton.d.ts +0 -22
  714. package/dist/src/components/Call/CallControls/HangupCallButton.js +0 -47
  715. package/dist/src/components/Call/CallControls/HangupCallButton.js.map +0 -1
  716. package/dist/src/components/Call/CallControls/IncomingCallControls.d.ts +0 -14
  717. package/dist/src/components/Call/CallControls/IncomingCallControls.js +0 -21
  718. package/dist/src/components/Call/CallControls/IncomingCallControls.js.map +0 -1
  719. package/dist/src/components/Call/CallControls/LobbyControls.d.ts +0 -4
  720. package/dist/src/components/Call/CallControls/LobbyControls.js +0 -22
  721. package/dist/src/components/Call/CallControls/LobbyControls.js.map +0 -1
  722. package/dist/src/components/Call/CallControls/OutgoingCallControls.d.ts +0 -10
  723. package/dist/src/components/Call/CallControls/OutgoingCallControls.js +0 -25
  724. package/dist/src/components/Call/CallControls/OutgoingCallControls.js.map +0 -1
  725. package/dist/src/components/Call/CallControls/ReactionButton.d.ts +0 -14
  726. package/dist/src/components/Call/CallControls/ReactionButton.js +0 -47
  727. package/dist/src/components/Call/CallControls/ReactionButton.js.map +0 -1
  728. package/dist/src/components/Call/CallControls/RejectCallButton.d.ts +0 -23
  729. package/dist/src/components/Call/CallControls/RejectCallButton.js +0 -41
  730. package/dist/src/components/Call/CallControls/RejectCallButton.js.map +0 -1
  731. package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.d.ts +0 -14
  732. package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.js +0 -30
  733. package/dist/src/components/Call/CallControls/ToggleAudioPreviewButton.js.map +0 -1
  734. package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.d.ts +0 -14
  735. package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.js +0 -25
  736. package/dist/src/components/Call/CallControls/ToggleAudioPublishingButton.js.map +0 -1
  737. package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.d.ts +0 -14
  738. package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.js +0 -26
  739. package/dist/src/components/Call/CallControls/ToggleCameraFaceButton.js.map +0 -1
  740. package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.d.ts +0 -14
  741. package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.js +0 -30
  742. package/dist/src/components/Call/CallControls/ToggleVideoPreviewButton.js.map +0 -1
  743. package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.d.ts +0 -14
  744. package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.js +0 -25
  745. package/dist/src/components/Call/CallControls/ToggleVideoPublishingButton.js.map +0 -1
  746. package/dist/src/components/Call/CallControls/index.d.ts +0 -14
  747. package/dist/src/components/Call/CallControls/index.js.map +0 -1
  748. package/dist/src/components/Call/CallControls/internal/ReactionsPicker.d.ts +0 -9
  749. package/dist/src/components/Call/CallControls/internal/ReactionsPicker.js +0 -134
  750. package/dist/src/components/Call/CallControls/internal/ReactionsPicker.js.map +0 -1
  751. package/dist/src/components/Call/CallLayout/CallParticipantsGrid.d.ts +0 -19
  752. package/dist/src/components/Call/CallLayout/CallParticipantsGrid.js +0 -45
  753. package/dist/src/components/Call/CallLayout/CallParticipantsGrid.js.map +0 -1
  754. package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.d.ts +0 -16
  755. package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.js +0 -76
  756. package/dist/src/components/Call/CallLayout/CallParticipantsSpotlight.js.map +0 -1
  757. package/dist/src/components/Call/CallLayout/index.d.ts +0 -2
  758. package/dist/src/components/Call/CallLayout/index.js.map +0 -1
  759. package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.d.ts +0 -34
  760. package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.js +0 -157
  761. package/dist/src/components/Call/CallParticipantsList/CallParticipantsList.js.map +0 -1
  762. package/dist/src/components/Call/CallParticipantsList/index.d.ts +0 -1
  763. package/dist/src/components/Call/CallParticipantsList/index.js.map +0 -1
  764. package/dist/src/components/Call/CallTopView/CallTopView.d.ts +0 -28
  765. package/dist/src/components/Call/CallTopView/CallTopView.js +0 -73
  766. package/dist/src/components/Call/CallTopView/CallTopView.js.map +0 -1
  767. package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.d.ts +0 -10
  768. package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.js +0 -77
  769. package/dist/src/components/Call/CallTopView/ParticipantsInfoBadge.js.map +0 -1
  770. package/dist/src/components/Call/CallTopView/index.d.ts +0 -2
  771. package/dist/src/components/Call/CallTopView/index.js.map +0 -1
  772. package/dist/src/components/Call/Lobby/JoinCallButton.d.ts +0 -11
  773. package/dist/src/components/Call/Lobby/JoinCallButton.js +0 -51
  774. package/dist/src/components/Call/Lobby/JoinCallButton.js.map +0 -1
  775. package/dist/src/components/Call/Lobby/Lobby.d.ts +0 -23
  776. package/dist/src/components/Call/Lobby/Lobby.js +0 -149
  777. package/dist/src/components/Call/Lobby/Lobby.js.map +0 -1
  778. package/dist/src/components/Call/Lobby/index.d.ts +0 -2
  779. package/dist/src/components/Call/Lobby/index.js.map +0 -1
  780. package/dist/src/components/Call/RingingCallContent/IncomingCall.d.ts +0 -39
  781. package/dist/src/components/Call/RingingCallContent/IncomingCall.js +0 -72
  782. package/dist/src/components/Call/RingingCallContent/IncomingCall.js.map +0 -1
  783. package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.d.ts +0 -1
  784. package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.js +0 -18
  785. package/dist/src/components/Call/RingingCallContent/JoiningCallIndicator.js.map +0 -1
  786. package/dist/src/components/Call/RingingCallContent/OutgoingCall.d.ts +0 -21
  787. package/dist/src/components/Call/RingingCallContent/OutgoingCall.js +0 -81
  788. package/dist/src/components/Call/RingingCallContent/OutgoingCall.js.map +0 -1
  789. package/dist/src/components/Call/RingingCallContent/RingingCallContent.d.ts +0 -34
  790. package/dist/src/components/Call/RingingCallContent/RingingCallContent.js +0 -41
  791. package/dist/src/components/Call/RingingCallContent/RingingCallContent.js.map +0 -1
  792. package/dist/src/components/Call/RingingCallContent/UserInfo.d.ts +0 -13
  793. package/dist/src/components/Call/RingingCallContent/UserInfo.js +0 -82
  794. package/dist/src/components/Call/RingingCallContent/UserInfo.js.map +0 -1
  795. package/dist/src/components/Call/RingingCallContent/index.d.ts +0 -3
  796. package/dist/src/components/Call/RingingCallContent/index.js.map +0 -1
  797. package/dist/src/components/Call/index.d.ts +0 -7
  798. package/dist/src/components/Call/index.js.map +0 -1
  799. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.d.ts +0 -3
  800. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js +0 -145
  801. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/AnimatedFloatingView.js.map +0 -1
  802. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.d.ts +0 -4
  803. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js +0 -126
  804. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/ReanimatedFloatingView.js.map +0 -1
  805. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.d.ts +0 -38
  806. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.js +0 -59
  807. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/common.js.map +0 -1
  808. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.d.ts +0 -4
  809. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.js +0 -6
  810. package/dist/src/components/Participant/FloatingParticipantView/FloatingView/index.js.map +0 -1
  811. package/dist/src/components/Participant/FloatingParticipantView/index.d.ts +0 -31
  812. package/dist/src/components/Participant/FloatingParticipantView/index.js +0 -95
  813. package/dist/src/components/Participant/FloatingParticipantView/index.js.map +0 -1
  814. package/dist/src/components/Participant/ParticipantView/ParticipantLabel.d.ts +0 -9
  815. package/dist/src/components/Participant/ParticipantView/ParticipantLabel.js +0 -113
  816. package/dist/src/components/Participant/ParticipantView/ParticipantLabel.js.map +0 -1
  817. package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.d.ts +0 -6
  818. package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js +0 -51
  819. package/dist/src/components/Participant/ParticipantView/ParticipantNetworkQualityIndicator.js.map +0 -1
  820. package/dist/src/components/Participant/ParticipantView/ParticipantReaction.d.ts +0 -16
  821. package/dist/src/components/Participant/ParticipantView/ParticipantReaction.js +0 -55
  822. package/dist/src/components/Participant/ParticipantView/ParticipantReaction.js.map +0 -1
  823. package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.d.ts +0 -9
  824. package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.js +0 -38
  825. package/dist/src/components/Participant/ParticipantView/ParticipantVideoFallback.js.map +0 -1
  826. package/dist/src/components/Participant/ParticipantView/ParticipantView.d.ts +0 -69
  827. package/dist/src/components/Participant/ParticipantView/ParticipantView.js +0 -51
  828. package/dist/src/components/Participant/ParticipantView/ParticipantView.js.map +0 -1
  829. package/dist/src/components/Participant/ParticipantView/VideoRenderer.d.ts +0 -11
  830. package/dist/src/components/Participant/ParticipantView/VideoRenderer.js +0 -148
  831. package/dist/src/components/Participant/ParticipantView/VideoRenderer.js.map +0 -1
  832. package/dist/src/components/Participant/ParticipantView/index.d.ts +0 -6
  833. package/dist/src/components/Participant/ParticipantView/index.js.map +0 -1
  834. package/dist/src/components/Participant/index.d.ts +0 -2
  835. package/dist/src/components/Participant/index.js.map +0 -1
  836. package/dist/src/components/index.d.ts +0 -3
  837. package/dist/src/components/index.js.map +0 -1
  838. package/dist/src/components/utility/Avatar.d.ts +0 -42
  839. package/dist/src/components/utility/Avatar.js +0 -50
  840. package/dist/src/components/utility/Avatar.js.map +0 -1
  841. package/dist/src/components/utility/index.d.ts +0 -1
  842. package/dist/src/components/utility/index.js.map +0 -1
  843. package/dist/src/constants/TestIds.d.ts +0 -25
  844. package/dist/src/constants/TestIds.js +0 -30
  845. package/dist/src/constants/TestIds.js.map +0 -1
  846. package/dist/src/constants/index.d.ts +0 -13
  847. package/dist/src/constants/index.js +0 -32
  848. package/dist/src/constants/index.js.map +0 -1
  849. package/dist/src/contexts/StreamVideoContext.d.ts +0 -19
  850. package/dist/src/contexts/StreamVideoContext.js +0 -82
  851. package/dist/src/contexts/StreamVideoContext.js.map +0 -1
  852. package/dist/src/contexts/ThemeContext.d.ts +0 -22
  853. package/dist/src/contexts/ThemeContext.js +0 -33
  854. package/dist/src/contexts/ThemeContext.js.map +0 -1
  855. package/dist/src/contexts/index.d.ts +0 -2
  856. package/dist/src/contexts/index.js.map +0 -1
  857. package/dist/src/hooks/index.d.ts +0 -5
  858. package/dist/src/hooks/index.js.map +0 -1
  859. package/dist/src/hooks/internal/useCallMediaStreamCleanup.d.ts +0 -5
  860. package/dist/src/hooks/internal/useCallMediaStreamCleanup.js +0 -25
  861. package/dist/src/hooks/internal/useCallMediaStreamCleanup.js.map +0 -1
  862. package/dist/src/hooks/push/index.d.ts +0 -5
  863. package/dist/src/hooks/push/index.js +0 -15
  864. package/dist/src/hooks/push/index.js.map +0 -1
  865. package/dist/src/hooks/push/useInitAndroidTokenAndRest.d.ts +0 -4
  866. package/dist/src/hooks/push/useInitAndroidTokenAndRest.js +0 -20
  867. package/dist/src/hooks/push/useInitAndroidTokenAndRest.js.map +0 -1
  868. package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.d.ts +0 -4
  869. package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.js +0 -46
  870. package/dist/src/hooks/push/useIosCallKeepEventsSetupEffect.js.map +0 -1
  871. package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.d.ts +0 -4
  872. package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.js +0 -116
  873. package/dist/src/hooks/push/useIosCallkeepWithCallingStateEffect.js.map +0 -1
  874. package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.d.ts +0 -5
  875. package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.js +0 -78
  876. package/dist/src/hooks/push/useIosVoipPushEventsSetupEffect.js.map +0 -1
  877. package/dist/src/hooks/push/useProcessPushCallEffect.d.ts +0 -7
  878. package/dist/src/hooks/push/useProcessPushCallEffect.js +0 -58
  879. package/dist/src/hooks/push/useProcessPushCallEffect.js.map +0 -1
  880. package/dist/src/hooks/useAndroidKeepCallAliveEffect.d.ts +0 -6
  881. package/dist/src/hooks/useAndroidKeepCallAliveEffect.js +0 -102
  882. package/dist/src/hooks/useAndroidKeepCallAliveEffect.js.map +0 -1
  883. package/dist/src/hooks/useIncallManager.d.ts +0 -13
  884. package/dist/src/hooks/useIncallManager.js +0 -17
  885. package/dist/src/hooks/useIncallManager.js.map +0 -1
  886. package/dist/src/hooks/usePermissionNotification.d.ts +0 -18
  887. package/dist/src/hooks/usePermissionNotification.js +0 -38
  888. package/dist/src/hooks/usePermissionNotification.js.map +0 -1
  889. package/dist/src/hooks/usePermissionRequest.d.ts +0 -1
  890. package/dist/src/hooks/usePermissionRequest.js +0 -60
  891. package/dist/src/hooks/usePermissionRequest.js.map +0 -1
  892. package/dist/src/icons/Back.d.ts +0 -6
  893. package/dist/src/icons/Back.js +0 -5
  894. package/dist/src/icons/Back.js.map +0 -1
  895. package/dist/src/icons/CameraSwitch.d.ts +0 -6
  896. package/dist/src/icons/CameraSwitch.js +0 -5
  897. package/dist/src/icons/CameraSwitch.js.map +0 -1
  898. package/dist/src/icons/Chat.d.ts +0 -6
  899. package/dist/src/icons/Chat.js +0 -5
  900. package/dist/src/icons/Chat.js.map +0 -1
  901. package/dist/src/icons/Mic.d.ts +0 -6
  902. package/dist/src/icons/Mic.js +0 -6
  903. package/dist/src/icons/Mic.js.map +0 -1
  904. package/dist/src/icons/MicOff.d.ts +0 -6
  905. package/dist/src/icons/MicOff.js +0 -5
  906. package/dist/src/icons/MicOff.js.map +0 -1
  907. package/dist/src/icons/Participants.d.ts +0 -6
  908. package/dist/src/icons/Participants.js +0 -5
  909. package/dist/src/icons/Participants.js.map +0 -1
  910. package/dist/src/icons/Phone.d.ts +0 -6
  911. package/dist/src/icons/Phone.js +0 -5
  912. package/dist/src/icons/Phone.js.map +0 -1
  913. package/dist/src/icons/PhoneDown.d.ts +0 -6
  914. package/dist/src/icons/PhoneDown.js +0 -6
  915. package/dist/src/icons/PhoneDown.js.map +0 -1
  916. package/dist/src/icons/PinVertical.d.ts +0 -6
  917. package/dist/src/icons/PinVertical.js +0 -5
  918. package/dist/src/icons/PinVertical.js.map +0 -1
  919. package/dist/src/icons/Reaction.d.ts +0 -6
  920. package/dist/src/icons/Reaction.js +0 -5
  921. package/dist/src/icons/Reaction.js.map +0 -1
  922. package/dist/src/icons/ScreenShare.d.ts +0 -6
  923. package/dist/src/icons/ScreenShare.js +0 -11
  924. package/dist/src/icons/ScreenShare.js.map +0 -1
  925. package/dist/src/icons/Settings.d.ts +0 -5
  926. package/dist/src/icons/Settings.js +0 -7
  927. package/dist/src/icons/Settings.js.map +0 -1
  928. package/dist/src/icons/Spotlight.d.ts +0 -6
  929. package/dist/src/icons/Spotlight.js +0 -5
  930. package/dist/src/icons/Spotlight.js.map +0 -1
  931. package/dist/src/icons/ThreeDots.d.ts +0 -5
  932. package/dist/src/icons/ThreeDots.js +0 -7
  933. package/dist/src/icons/ThreeDots.js.map +0 -1
  934. package/dist/src/icons/TopViewBackground.d.ts +0 -13
  935. package/dist/src/icons/TopViewBackground.js +0 -9
  936. package/dist/src/icons/TopViewBackground.js.map +0 -1
  937. package/dist/src/icons/Video.d.ts +0 -6
  938. package/dist/src/icons/Video.js +0 -5
  939. package/dist/src/icons/Video.js.map +0 -1
  940. package/dist/src/icons/VideoSlash.d.ts +0 -6
  941. package/dist/src/icons/VideoSlash.js +0 -6
  942. package/dist/src/icons/VideoSlash.js.map +0 -1
  943. package/dist/src/icons/index.d.ts +0 -16
  944. package/dist/src/icons/index.js.map +0 -1
  945. package/dist/src/providers/MediaDevices.d.ts +0 -9
  946. package/dist/src/providers/MediaDevices.js +0 -40
  947. package/dist/src/providers/MediaDevices.js.map +0 -1
  948. package/dist/src/providers/MediaStreamManagement.d.ts +0 -45
  949. package/dist/src/providers/MediaStreamManagement.js +0 -92
  950. package/dist/src/providers/MediaStreamManagement.js.map +0 -1
  951. package/dist/src/providers/StreamCall.d.ts +0 -22
  952. package/dist/src/providers/StreamCall.js +0 -36
  953. package/dist/src/providers/StreamCall.js.map +0 -1
  954. package/dist/src/providers/StreamVideo.d.ts +0 -14
  955. package/dist/src/providers/StreamVideo.js +0 -52
  956. package/dist/src/providers/StreamVideo.js.map +0 -1
  957. package/dist/src/providers/index.d.ts +0 -3
  958. package/dist/src/providers/index.js.map +0 -1
  959. package/dist/src/theme/colors.d.ts +0 -39
  960. package/dist/src/theme/colors.js +0 -46
  961. package/dist/src/theme/colors.js.map +0 -1
  962. package/dist/src/theme/constants.d.ts +0 -47
  963. package/dist/src/theme/constants.js +0 -51
  964. package/dist/src/theme/constants.js.map +0 -1
  965. package/dist/src/theme/index.d.ts +0 -3
  966. package/dist/src/theme/index.js +0 -7
  967. package/dist/src/theme/index.js.map +0 -1
  968. package/dist/src/theme/theme.d.ts +0 -195
  969. package/dist/src/theme/theme.js +0 -219
  970. package/dist/src/theme/theme.js.map +0 -1
  971. package/dist/src/theme/types.d.ts +0 -29
  972. package/dist/src/theme/types.js.map +0 -1
  973. package/dist/src/translations/en.json +0 -16
  974. package/dist/src/translations/index.d.ts +0 -18
  975. package/dist/src/translations/index.js +0 -3
  976. package/dist/src/translations/index.js.map +0 -1
  977. package/dist/src/utils/StreamVideoRN/index.d.ts +0 -37
  978. package/dist/src/utils/StreamVideoRN/index.js +0 -74
  979. package/dist/src/utils/StreamVideoRN/index.js.map +0 -1
  980. package/dist/src/utils/StreamVideoRN/permissions.d.ts +0 -5
  981. package/dist/src/utils/StreamVideoRN/permissions.js +0 -17
  982. package/dist/src/utils/StreamVideoRN/permissions.js.map +0 -1
  983. package/dist/src/utils/StreamVideoRN/types.d.ts +0 -94
  984. package/dist/src/utils/StreamVideoRN/types.js.map +0 -1
  985. package/dist/src/utils/hooks/index.d.ts +0 -3
  986. package/dist/src/utils/hooks/index.js.map +0 -1
  987. package/dist/src/utils/hooks/useAppStateListener.d.ts +0 -1
  988. package/dist/src/utils/hooks/useAppStateListener.js +0 -37
  989. package/dist/src/utils/hooks/useAppStateListener.js.map +0 -1
  990. package/dist/src/utils/hooks/useDebouncedValue.d.ts +0 -7
  991. package/dist/src/utils/hooks/useDebouncedValue.js +0 -18
  992. package/dist/src/utils/hooks/useDebouncedValue.js.map +0 -1
  993. package/dist/src/utils/hooks/usePrevious.d.ts +0 -1
  994. package/dist/src/utils/hooks/usePrevious.js +0 -9
  995. package/dist/src/utils/hooks/usePrevious.js.map +0 -1
  996. package/dist/src/utils/index.d.ts +0 -4
  997. package/dist/src/utils/index.js +0 -28
  998. package/dist/src/utils/index.js.map +0 -1
  999. package/dist/src/utils/internal/optionalLibs.d.ts +0 -5
  1000. package/dist/src/utils/internal/optionalLibs.js +0 -23
  1001. package/dist/src/utils/internal/optionalLibs.js.map +0 -1
  1002. package/dist/src/utils/push/android.d.ts +0 -8
  1003. package/dist/src/utils/push/android.js +0 -131
  1004. package/dist/src/utils/push/android.js.map +0 -1
  1005. package/dist/src/utils/push/ios.d.ts +0 -5
  1006. package/dist/src/utils/push/ios.js +0 -37
  1007. package/dist/src/utils/push/ios.js.map +0 -1
  1008. package/dist/src/utils/push/libs.d.ts +0 -9
  1009. package/dist/src/utils/push/libs.js +0 -34
  1010. package/dist/src/utils/push/libs.js.map +0 -1
  1011. package/dist/src/utils/push/rxSubjects.d.ts +0 -28
  1012. package/dist/src/utils/push/rxSubjects.js +0 -31
  1013. package/dist/src/utils/push/rxSubjects.js.map +0 -1
  1014. package/dist/src/utils/push/utils.d.ts +0 -13
  1015. package/dist/src/utils/push/utils.js +0 -48
  1016. package/dist/src/utils/push/utils.js.map +0 -1
  1017. package/dist/src/utils/setClientDetails.d.ts +0 -1
  1018. package/dist/src/utils/setClientDetails.js +0 -49
  1019. package/dist/src/utils/setClientDetails.js.map +0 -1
  1020. package/dist/version.d.ts +0 -1
  1021. package/dist/version.js +0 -2
  1022. package/dist/version.js.map +0 -1
  1023. package/expo-config-plugin/dist/index.js.map +0 -1
  1024. package/expo-config-plugin/dist/withAndroidManifest.js.map +0 -1
  1025. package/expo-config-plugin/dist/withAndroidPermissions.js.map +0 -1
  1026. package/expo-config-plugin/dist/withAppDelegate.js.map +0 -1
  1027. package/expo-config-plugin/dist/withMainApplication.js.map +0 -1
  1028. package/expo-config-plugin/dist/withiOSInfoPlist.js.map +0 -1
  1029. package/index.ts +0 -41
  1030. package/src/providers/MediaDevices.tsx +0 -59
  1031. package/src/utils/StreamVideoRN/permissions.ts +0 -25
  1032. /package/dist/{src → module}/components/Call/CallContent/index.js +0 -0
  1033. /package/dist/{src → module}/components/Call/CallControls/index.js +0 -0
  1034. /package/dist/{src → module}/components/Call/CallLayout/index.js +0 -0
  1035. /package/dist/{src → module}/components/Call/CallParticipantsList/index.js +0 -0
  1036. /package/dist/{src → module}/components/Call/CallTopView/index.js +0 -0
  1037. /package/dist/{src → module}/components/Call/Lobby/index.js +0 -0
  1038. /package/dist/{src → module}/components/Call/RingingCallContent/index.js +0 -0
  1039. /package/dist/{src → module}/components/Call/index.js +0 -0
  1040. /package/dist/{src → module}/components/Participant/ParticipantView/index.js +0 -0
  1041. /package/dist/{src → module}/components/Participant/index.js +0 -0
  1042. /package/dist/{src → module}/components/index.js +0 -0
  1043. /package/dist/{src → module}/components/utility/index.js +0 -0
  1044. /package/dist/{src → module}/contexts/index.js +0 -0
  1045. /package/dist/{src → module}/hooks/index.js +0 -0
  1046. /package/dist/{src → module}/icons/index.js +0 -0
  1047. /package/dist/{src → module}/providers/index.js +0 -0
  1048. /package/dist/{src → module}/theme/types.js +0 -0
  1049. /package/dist/{src → module}/utils/StreamVideoRN/types.js +0 -0
  1050. /package/dist/{src → module}/utils/hooks/index.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"names":["generateCallTitle","memberUserIds","totalMembersToShow","supportedAmountOfMemberUserIds","slice","length","join","allMembersExceptLast","lastMember","generateParticipantTitle","memberUserId","getInitialsOfName","name","names","split","initials","substring","toUpperCase"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA;AACA,OAAO,MAAMA,iBAAiB,GAAGA,CAC/BC,aAAuB,EACvBC,kBAA2B,KACxB;EACH,MAAMC,8BAA8B,GAAGF,aAAa,CAACG,KAAK,CACxD,CAAC,EACDF,kBACF,CAAC;EACD,IACEA,kBAAkB,IAClBC,8BAA8B,CAACE,MAAM,GAAGH,kBAAkB,EAC1D;IACA,OAAOC,8BAA8B,CAACG,IAAI,CAAC,OAAO,CAAC;EACrD;EAEA,MAAMC,oBAAoB,GAAGJ,8BAA8B,CAACC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EACxE,MAAMI,UAAU,GAAGL,8BAA8B,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAC9D,OAAQ,GAAEG,oBAAoB,CAACD,IAAI,CAAC,IAAI,CAAE,SAAQE,UAAW,EAAC;AAChE,CAAC;;AAED;AACA,OAAO,MAAMC,wBAAwB,GAAIC,YAAoB,IAAK;EAChE,OAAOA,YAAY,CAACL,MAAM,GAAG,EAAE,GAC3BK,YAAY,CAACN,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GACjCM,YAAY;AAClB,CAAC;;AAED;AACA,OAAO,MAAMC,iBAAiB,GAAIC,IAAY,IAAK;EACjD,MAAMC,KAAK,GAAGD,IAAI,CAACE,KAAK,CAAC,GAAG,CAAC;EAC7B,IAAIC,QAAQ,GAAGF,KAAK,CAAC,CAAC,CAAC,CAACG,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EACrD,IAAIJ,KAAK,CAACR,MAAM,GAAG,CAAC,EAAE;IACpBU,QAAQ,IAAIF,KAAK,CAACA,KAAK,CAACR,MAAM,GAAG,CAAC,CAAC,CAACW,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EACnE;EACA,OAAOF,QAAQ;AACjB,CAAC;AAED,cAAc,iBAAiB"}
@@ -0,0 +1,23 @@
1
+ let gestureHandler;
2
+ let reanimated;
3
+ try {
4
+ gestureHandler = require('react-native-gesture-handler');
5
+ } catch (e) {}
6
+ try {
7
+ reanimated = require('react-native-reanimated');
8
+ } catch (e) {}
9
+ export const getReanimatedLib = function () {
10
+ let onPackageNotFound = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
11
+ if (!reanimated) {
12
+ onPackageNotFound();
13
+ }
14
+ return reanimated;
15
+ };
16
+ export const getGestureHandlerLib = function () {
17
+ let onPackageNotFound = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
18
+ if (!gestureHandler) {
19
+ onPackageNotFound();
20
+ }
21
+ return gestureHandler;
22
+ };
23
+ //# sourceMappingURL=optionalLibs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["gestureHandler","reanimated","require","e","getReanimatedLib","onPackageNotFound","arguments","length","undefined","getGestureHandlerLib"],"sourceRoot":"../../../../src","sources":["utils/internal/optionalLibs.ts"],"mappings":"AAGA,IAAIA,cAA8C;AAClD,IAAIC,UAAsC;AAE1C,IAAI;EACFD,cAAc,GAAGE,OAAO,CAAC,8BAA8B,CAAC;AAC1D,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,IAAI;EACFF,UAAU,GAAGC,OAAO,CAAC,yBAAyB,CAAC;AACjD,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,OAAO,MAAMC,gBAAgB,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCC,iBAAiB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,MAAM,CAAC,CAAC;EAC3D,IAAI,CAACL,UAAU,EAAE;IACfI,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOJ,UAAU;AACnB,CAAC;AAED,OAAO,MAAMQ,oBAAoB,GAAG,SAAAA,CAAA,EAAkC;EAAA,IAAjCJ,iBAAiB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,MAAM,CAAC,CAAC;EAC/D,IAAI,CAACN,cAAc,EAAE;IACnBK,iBAAiB,CAAC,CAAC;EACrB;EACA,OAAOL,cAAc;AACvB,CAAC"}
@@ -0,0 +1,137 @@
1
+ import notifee, { EventType } from '@notifee/react-native';
2
+ import { Platform } from 'react-native';
3
+ import { getFirebaseMessagingLib } from './libs';
4
+ import { pushAcceptedIncomingCallCId$, pushRejectedIncomingCallCId$, pushTappedIncomingCallCId$ } from './rxSubjects';
5
+ import { processCallFromPushInBackground } from './utils';
6
+ const ACCEPT_CALL_ACTION_ID = 'accept';
7
+ const DECLINE_CALL_ACTION_ID = 'decline';
8
+ /** Setup Firebase push message handler **/
9
+ export function setupFirebaseHandlerAndroid(pushConfig) {
10
+ if (Platform.OS !== 'android') {
11
+ return;
12
+ }
13
+ const messaging = getFirebaseMessagingLib();
14
+ messaging().setBackgroundMessageHandler(async msg => await firebaseMessagingOnMessageHandler(msg, pushConfig));
15
+ // messaging().onMessage(firebaseMessagingOnMessageHandler); // this is to listen to foreground messages, which we dont need for now
16
+ notifee.onBackgroundEvent(async event => {
17
+ // NOTE: When app was opened from a quit state, we will never hit this when on accept event as app will open and the click event will go to foreground
18
+ await onNotifeeEvent(event, pushConfig);
19
+ });
20
+ notifee.onForegroundEvent(event => {
21
+ // NOTE: When app was opened from a quit state, we will never hit this when on accept event as app will open and go to foreground immediately
22
+ onNotifeeEvent(event, pushConfig);
23
+ });
24
+ }
25
+
26
+ /** Send token to stream, create notification channel, */
27
+ export async function initAndroidPushToken(client, pushConfig) {
28
+ if (Platform.OS !== 'android') {
29
+ return;
30
+ }
31
+ const messaging = getFirebaseMessagingLib();
32
+ const token = await messaging().getToken();
33
+ const push_provider_name = pushConfig.android.pushProviderName;
34
+ await client.addDevice(token, 'firebase', push_provider_name);
35
+ }
36
+ const firebaseMessagingOnMessageHandler = async (message, pushConfig) => {
37
+ if (Platform.OS !== 'android') {
38
+ return;
39
+ }
40
+ /* Example data from firebase
41
+ "message": {
42
+ "data": {
43
+ call_cid: 'audio_room:dcc1638c-e90d-4dcb-bf3b-8fa7767bfbb0',
44
+ call_display_name: '',
45
+ created_by_display_name: 'tommaso',
46
+ created_by_id: 'tommaso-03dcddb7-e9e2-42ec-b2f3-5043aac666ee',
47
+ receiver_id: 'martin-21824f17-319b-401b-a61b-fcab646f0d3f',
48
+ sender: 'stream.video',
49
+ type: 'call.live_started',
50
+ version: 'v2'
51
+ },
52
+ // other stuff
53
+ }
54
+ */
55
+ const data = message.data;
56
+ if (!data || data.sender !== 'stream.video') {
57
+ return;
58
+ }
59
+ await notifee.createChannel(pushConfig.android.incomingCallChannel);
60
+ const {
61
+ getTitle,
62
+ getBody
63
+ } = pushConfig.android.incomingCallNotificationTextGetters;
64
+ const channelId = pushConfig.android.incomingCallChannel.id;
65
+ const createdUserName = data.created_by_display_name;
66
+ await notifee.displayNotification({
67
+ title: getTitle(createdUserName),
68
+ body: getBody(createdUserName),
69
+ data,
70
+ android: {
71
+ channelId,
72
+ pressAction: {
73
+ id: 'default',
74
+ launchActivity: 'default' // open the app when the notification is pressed
75
+ },
76
+
77
+ actions: [{
78
+ title: 'Decline',
79
+ pressAction: {
80
+ id: DECLINE_CALL_ACTION_ID
81
+ }
82
+ }, {
83
+ title: 'Accept',
84
+ pressAction: {
85
+ id: ACCEPT_CALL_ACTION_ID,
86
+ launchActivity: 'default' // open the app when the notification is pressed
87
+ }
88
+ }],
89
+
90
+ timeoutAfter: 60000 // 60 seconds, after which the notification will be dismissed automatically
91
+ }
92
+ });
93
+ };
94
+
95
+ const onNotifeeEvent = async (event, pushConfig) => {
96
+ const {
97
+ type,
98
+ detail
99
+ } = event;
100
+ const {
101
+ notification,
102
+ pressAction
103
+ } = detail;
104
+ const notificationId = notification === null || notification === void 0 ? void 0 : notification.id;
105
+ const data = notification === null || notification === void 0 ? void 0 : notification.data;
106
+ if (!data || !pressAction || !notificationId || data.sender !== 'stream.video') {
107
+ return;
108
+ }
109
+
110
+ // we can safely cast to string because the data is from "stream.video"
111
+ const call_cid = data.call_cid;
112
+
113
+ // check if we have observers for the call cid (this means the app is in the foreground state)
114
+ const hasObservers = pushAcceptedIncomingCallCId$.observed && pushRejectedIncomingCallCId$.observed;
115
+
116
+ // Check if we need to decline the call
117
+ const didPressDecline = type === EventType.ACTION_PRESS && pressAction.id === DECLINE_CALL_ACTION_ID;
118
+ const didDismiss = type === EventType.DISMISSED;
119
+ const mustDecline = didPressDecline || didDismiss;
120
+ // Check if we need to accept the call
121
+ const mustAccept = type === EventType.ACTION_PRESS && pressAction.id === ACCEPT_CALL_ACTION_ID;
122
+ if (mustAccept) {
123
+ pushAcceptedIncomingCallCId$.next(call_cid);
124
+ // NOTE: accept will be handled by the app with rxjs observers as the app will go to foreground always
125
+ } else if (mustDecline) {
126
+ pushRejectedIncomingCallCId$.next(call_cid);
127
+ if (hasObservers) {
128
+ // if we had observers we can return here as the observers will handle the call as the app is in the foreground state
129
+ return;
130
+ }
131
+ await processCallFromPushInBackground(pushConfig, call_cid, 'decline');
132
+ } else if (type === EventType.PRESS) {
133
+ pushTappedIncomingCallCId$.next(call_cid);
134
+ // pressed state will be handled by the app with rxjs observers as the app will go to foreground always
135
+ }
136
+ };
137
+ //# sourceMappingURL=android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["notifee","EventType","Platform","getFirebaseMessagingLib","pushAcceptedIncomingCallCId$","pushRejectedIncomingCallCId$","pushTappedIncomingCallCId$","processCallFromPushInBackground","ACCEPT_CALL_ACTION_ID","DECLINE_CALL_ACTION_ID","setupFirebaseHandlerAndroid","pushConfig","OS","messaging","setBackgroundMessageHandler","msg","firebaseMessagingOnMessageHandler","onBackgroundEvent","event","onNotifeeEvent","onForegroundEvent","initAndroidPushToken","client","token","getToken","push_provider_name","android","pushProviderName","addDevice","message","data","sender","createChannel","incomingCallChannel","getTitle","getBody","incomingCallNotificationTextGetters","channelId","id","createdUserName","created_by_display_name","displayNotification","title","body","pressAction","launchActivity","actions","timeoutAfter","type","detail","notification","notificationId","call_cid","hasObservers","observed","didPressDecline","ACTION_PRESS","didDismiss","DISMISSED","mustDecline","mustAccept","next","PRESS"],"sourceRoot":"../../../../src","sources":["utils/push/android.ts"],"mappings":"AAAA,OAAOA,OAAO,IAAIC,SAAS,QAAe,uBAAuB;AAGjE,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,uBAAuB,QAAQ,QAAQ;AAChD,SACEC,4BAA4B,EAC5BC,4BAA4B,EAC5BC,0BAA0B,QACrB,cAAc;AACrB,SAASC,+BAA+B,QAAQ,SAAS;AAEzD,MAAMC,qBAAqB,GAAG,QAAQ;AACtC,MAAMC,sBAAsB,GAAG,SAAS;AAIxC;AACA,OAAO,SAASC,2BAA2BA,CAACC,UAAsB,EAAE;EAClE,IAAIT,QAAQ,CAACU,EAAE,KAAK,SAAS,EAAE;IAC7B;EACF;EACA,MAAMC,SAAS,GAAGV,uBAAuB,CAAC,CAAC;EAC3CU,SAAS,CAAC,CAAC,CAACC,2BAA2B,CACrC,MAAOC,GAAG,IAAK,MAAMC,iCAAiC,CAACD,GAAG,EAAEJ,UAAU,CACxE,CAAC;EACD;EACAX,OAAO,CAACiB,iBAAiB,CAAC,MAAOC,KAAK,IAAK;IACzC;IACA,MAAMC,cAAc,CAACD,KAAK,EAAEP,UAAU,CAAC;EACzC,CAAC,CAAC;EACFX,OAAO,CAACoB,iBAAiB,CAAEF,KAAK,IAAK;IACnC;IACAC,cAAc,CAACD,KAAK,EAAEP,UAAU,CAAC;EACnC,CAAC,CAAC;AACJ;;AAEA;AACA,OAAO,eAAeU,oBAAoBA,CACxCC,MAAyB,EACzBX,UAAsB,EACtB;EACA,IAAIT,QAAQ,CAACU,EAAE,KAAK,SAAS,EAAE;IAC7B;EACF;EACA,MAAMC,SAAS,GAAGV,uBAAuB,CAAC,CAAC;EAC3C,MAAMoB,KAAK,GAAG,MAAMV,SAAS,CAAC,CAAC,CAACW,QAAQ,CAAC,CAAC;EAC1C,MAAMC,kBAAkB,GAAGd,UAAU,CAACe,OAAO,CAACC,gBAAgB;EAC9D,MAAML,MAAM,CAACM,SAAS,CAACL,KAAK,EAAE,UAAU,EAAEE,kBAAkB,CAAC;AAC/D;AAEA,MAAMT,iCAAiC,GAAG,MAAAA,CACxCa,OAA6C,EAC7ClB,UAAsB,KACnB;EACH,IAAIT,QAAQ,CAACU,EAAE,KAAK,SAAS,EAAE;IAC7B;EACF;EACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE,MAAMkB,IAAI,GAAGD,OAAO,CAACC,IAAI;EACzB,IAAI,CAACA,IAAI,IAAIA,IAAI,CAACC,MAAM,KAAK,cAAc,EAAE;IAC3C;EACF;EACA,MAAM/B,OAAO,CAACgC,aAAa,CAACrB,UAAU,CAACe,OAAO,CAACO,mBAAmB,CAAC;EACnE,MAAM;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,GACzBxB,UAAU,CAACe,OAAO,CAACU,mCAAmC;EACxD,MAAMC,SAAS,GAAG1B,UAAU,CAACe,OAAO,CAACO,mBAAmB,CAACK,EAAE;EAC3D,MAAMC,eAAe,GAAGT,IAAI,CAACU,uBAAuB;EACpD,MAAMxC,OAAO,CAACyC,mBAAmB,CAAC;IAChCC,KAAK,EAAER,QAAQ,CAACK,eAAe,CAAC;IAChCI,IAAI,EAAER,OAAO,CAACI,eAAe,CAAC;IAC9BT,IAAI;IACJJ,OAAO,EAAE;MACPW,SAAS;MACTO,WAAW,EAAE;QACXN,EAAE,EAAE,SAAS;QACbO,cAAc,EAAE,SAAS,CAAE;MAC7B,CAAC;;MACDC,OAAO,EAAE,CACP;QACEJ,KAAK,EAAE,SAAS;QAChBE,WAAW,EAAE;UACXN,EAAE,EAAE7B;QACN;MACF,CAAC,EACD;QACEiC,KAAK,EAAE,QAAQ;QACfE,WAAW,EAAE;UACXN,EAAE,EAAE9B,qBAAqB;UACzBqC,cAAc,EAAE,SAAS,CAAE;QAC7B;MACF,CAAC,CACF;;MACDE,YAAY,EAAE,KAAK,CAAE;IACvB;EACF,CAAC,CAAC;AACJ,CAAC;;AAED,MAAM5B,cAAc,GAAG,MAAAA,CAAOD,KAAY,EAAEP,UAAsB,KAAK;EACrE,MAAM;IAAEqC,IAAI;IAAEC;EAAO,CAAC,GAAG/B,KAAK;EAC9B,MAAM;IAAEgC,YAAY;IAAEN;EAAY,CAAC,GAAGK,MAAM;EAC5C,MAAME,cAAc,GAAGD,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAEZ,EAAE;EACvC,MAAMR,IAAI,GAAGoB,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAEpB,IAAI;EAC/B,IACE,CAACA,IAAI,IACL,CAACc,WAAW,IACZ,CAACO,cAAc,IACfrB,IAAI,CAACC,MAAM,KAAK,cAAc,EAC9B;IACA;EACF;;EAEA;EACA,MAAMqB,QAAQ,GAAGtB,IAAI,CAACsB,QAAkB;;EAExC;EACA,MAAMC,YAAY,GAChBjD,4BAA4B,CAACkD,QAAQ,IACrCjD,4BAA4B,CAACiD,QAAQ;;EAEvC;EACA,MAAMC,eAAe,GACnBP,IAAI,KAAK/C,SAAS,CAACuD,YAAY,IAC/BZ,WAAW,CAACN,EAAE,KAAK7B,sBAAsB;EAC3C,MAAMgD,UAAU,GAAGT,IAAI,KAAK/C,SAAS,CAACyD,SAAS;EAC/C,MAAMC,WAAW,GAAGJ,eAAe,IAAIE,UAAU;EACjD;EACA,MAAMG,UAAU,GACdZ,IAAI,KAAK/C,SAAS,CAACuD,YAAY,IAAIZ,WAAW,CAACN,EAAE,KAAK9B,qBAAqB;EAC7E,IAAIoD,UAAU,EAAE;IACdxD,4BAA4B,CAACyD,IAAI,CAACT,QAAQ,CAAC;IAC3C;EACF,CAAC,MAAM,IAAIO,WAAW,EAAE;IACtBtD,4BAA4B,CAACwD,IAAI,CAACT,QAAQ,CAAC;IAC3C,IAAIC,YAAY,EAAE;MAChB;MACA;IACF;IACA,MAAM9C,+BAA+B,CAACI,UAAU,EAAEyC,QAAQ,EAAE,SAAS,CAAC;EACxE,CAAC,MAAM,IAAIJ,IAAI,KAAK/C,SAAS,CAAC6D,KAAK,EAAE;IACnCxD,0BAA0B,CAACuD,IAAI,CAACT,QAAQ,CAAC;IACzC;EACF;AACF,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { pushAcceptedIncomingCallCId$, voipPushNotificationCallCId$, voipCallkeepCallOnForegroundMap$, voipCallkeepAcceptedCallOnNativeDialerMap$ } from './rxSubjects';
2
+ import { processCallFromPushInBackground } from './utils';
3
+ export const iosCallkeepAcceptCall = (call_cid, callUUIDFromCallkeep) => {
4
+ if (!shouldProcessCallFromCallkeep(call_cid, callUUIDFromCallkeep)) {
5
+ return;
6
+ }
7
+ // to call end callkeep later if ended in app and not through callkeep
8
+ voipCallkeepAcceptedCallOnNativeDialerMap$.next({
9
+ uuid: callUUIDFromCallkeep,
10
+ cid: call_cid
11
+ });
12
+ // to process the call in the app
13
+ pushAcceptedIncomingCallCId$.next(call_cid);
14
+ // no need to keep these references anymore
15
+ voipCallkeepCallOnForegroundMap$.next(undefined);
16
+ };
17
+ export const iosCallkeepRejectCall = async (call_cid, callUUIDFromCallkeep, pushConfig) => {
18
+ if (!shouldProcessCallFromCallkeep(call_cid, callUUIDFromCallkeep)) {
19
+ return;
20
+ }
21
+ // no need to keep these references anymore
22
+ voipCallkeepAcceptedCallOnNativeDialerMap$.next(undefined);
23
+ voipCallkeepCallOnForegroundMap$.next(undefined);
24
+ voipPushNotificationCallCId$.next(undefined);
25
+ await processCallFromPushInBackground(pushConfig, call_cid, 'decline');
26
+ };
27
+
28
+ /**
29
+ * Helper function to determine if the answer/end call event from callkeep must be processed
30
+ * Just checks if we have a valid call_cid and acts as a type guard for call_cid
31
+ */
32
+ const shouldProcessCallFromCallkeep = (call_cid, callUUIDFromCallkeep) => {
33
+ if (!call_cid || !callUUIDFromCallkeep) {
34
+ return false;
35
+ }
36
+ return true;
37
+ };
38
+ //# sourceMappingURL=ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pushAcceptedIncomingCallCId$","voipPushNotificationCallCId$","voipCallkeepCallOnForegroundMap$","voipCallkeepAcceptedCallOnNativeDialerMap$","processCallFromPushInBackground","iosCallkeepAcceptCall","call_cid","callUUIDFromCallkeep","shouldProcessCallFromCallkeep","next","uuid","cid","undefined","iosCallkeepRejectCall","pushConfig"],"sourceRoot":"../../../../src","sources":["utils/push/ios.ts"],"mappings":"AACA,SACEA,4BAA4B,EAC5BC,4BAA4B,EAC5BC,gCAAgC,EAChCC,0CAA0C,QACrC,cAAc;AACrB,SAASC,+BAA+B,QAAQ,SAAS;AAIzD,OAAO,MAAMC,qBAAqB,GAAGA,CACnCC,QAA4B,EAC5BC,oBAA4B,KACzB;EACH,IAAI,CAACC,6BAA6B,CAACF,QAAQ,EAAEC,oBAAoB,CAAC,EAAE;IAClE;EACF;EACA;EACAJ,0CAA0C,CAACM,IAAI,CAAC;IAC9CC,IAAI,EAAEH,oBAAoB;IAC1BI,GAAG,EAAEL;EACP,CAAC,CAAC;EACF;EACAN,4BAA4B,CAACS,IAAI,CAACH,QAAQ,CAAC;EAC3C;EACAJ,gCAAgC,CAACO,IAAI,CAACG,SAAS,CAAC;AAClD,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAG,MAAAA,CACnCP,QAA4B,EAC5BC,oBAA4B,EAC5BO,UAAsB,KACnB;EACH,IAAI,CAACN,6BAA6B,CAACF,QAAQ,EAAEC,oBAAoB,CAAC,EAAE;IAClE;EACF;EACA;EACAJ,0CAA0C,CAACM,IAAI,CAACG,SAAS,CAAC;EAC1DV,gCAAgC,CAACO,IAAI,CAACG,SAAS,CAAC;EAChDX,4BAA4B,CAACQ,IAAI,CAACG,SAAS,CAAC;EAC5C,MAAMR,+BAA+B,CAACU,UAAU,EAAER,QAAQ,EAAE,SAAS,CAAC;AACxE,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAME,6BAA6B,GAAGA,CACpCF,QAA4B,EAC5BC,oBAA4B,KACL;EACvB,IAAI,CAACD,QAAQ,IAAI,CAACC,oBAAoB,EAAE;IACtC,OAAO,KAAK;EACd;EACA,OAAO,IAAI;AACb,CAAC"}
@@ -0,0 +1,31 @@
1
+ let callkeep;
2
+ let messaging;
3
+ let voipPushNotification;
4
+ try {
5
+ callkeep = require('react-native-callkeep').default;
6
+ } catch (e) {}
7
+ try {
8
+ messaging = require('@react-native-firebase/messaging').default;
9
+ } catch (e) {}
10
+ try {
11
+ voipPushNotification = require('react-native-voip-push-notification').default;
12
+ } catch (e) {}
13
+ export function getCallKeepLib() {
14
+ if (!callkeep) {
15
+ throw Error('react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions');
16
+ }
17
+ return callkeep;
18
+ }
19
+ export function getFirebaseMessagingLib() {
20
+ if (!messaging) {
21
+ throw Error('react-native-firebase library is not installed. Please see https://rnfirebase.io/messaging/usage#installation for installation instructions');
22
+ }
23
+ return messaging;
24
+ }
25
+ export function getVoipPushNotificationLib() {
26
+ if (!voipPushNotification) {
27
+ throw Error("react-native-voip-push-notification library is not installed. Please install it using 'yarn add react-native-voip-push-notification' or 'npm install react-native-voip-push-notification'");
28
+ }
29
+ return voipPushNotification;
30
+ }
31
+ //# sourceMappingURL=libs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["callkeep","messaging","voipPushNotification","require","default","e","getCallKeepLib","Error","getFirebaseMessagingLib","getVoipPushNotificationLib"],"sourceRoot":"../../../../src","sources":["utils/push/libs.ts"],"mappings":"AAQA,IAAIA,QAAoC;AACxC,IAAIC,SAA4C;AAChD,IAAIC,oBAA0D;AAE9D,IAAI;EACFF,QAAQ,GAAGG,OAAO,CAAC,uBAAuB,CAAC,CAACC,OAAO;AACrD,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,IAAI;EACFJ,SAAS,GAAGE,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;AACjE,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,IAAI;EACFH,oBAAoB,GAAGC,OAAO,CAAC,qCAAqC,CAAC,CAACC,OAAO;AAC/E,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,OAAO,SAASC,cAAcA,CAAA,EAAG;EAC/B,IAAI,CAACN,QAAQ,EAAE;IACb,MAAMO,KAAK,CACT,oKACF,CAAC;EACH;EACA,OAAOP,QAAQ;AACjB;AAEA,OAAO,SAASQ,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACP,SAAS,EAAE;IACd,MAAMM,KAAK,CACT,6IACF,CAAC;EACH;EACA,OAAON,SAAS;AAClB;AAEA,OAAO,SAASQ,0BAA0BA,CAAA,EAAG;EAC3C,IAAI,CAACP,oBAAoB,EAAE;IACzB,MAAMK,KAAK,CACT,2LACF,CAAC;EACH;EACA,OAAOL,oBAAoB;AAC7B"}
@@ -0,0 +1,39 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+
3
+ /**
4
+ * This rxjs subject is used to store the call cid of the accepted incoming call from push notification
5
+ * Note: it is should be subscribed only when a user has connected to the websocket of Stream
6
+ */
7
+ export const pushAcceptedIncomingCallCId$ = new BehaviorSubject(undefined);
8
+
9
+ /**
10
+ * This rxjs subject is used to store the call cid of the tapped incoming call from push notification it is neither accepted nor rejected yet
11
+ * Note: it should be subscribed only when a user has connected to the websocket of Stream
12
+ */
13
+ export const pushTappedIncomingCallCId$ = new BehaviorSubject(undefined);
14
+
15
+ /**
16
+ * This rxjs subject is used to store the call cid of the accepted incoming call from push notification
17
+ * Note: it should be subscribed only when a user has connected to the websocket of Stream
18
+ */
19
+ export const pushRejectedIncomingCallCId$ = new BehaviorSubject(undefined);
20
+
21
+ /**
22
+ * This rxjs subject is used to store the call cid of the incoming call from ios voip pushkit notification
23
+ */
24
+ export const voipPushNotificationCallCId$ = new BehaviorSubject(undefined);
25
+
26
+ /** The pair of cid of a call and its corresponding uuid created in the native side */
27
+
28
+ /*
29
+ * This rxjs subject should only used to store the CallkeepMap
30
+ * for the incoming call when on foreground
31
+ * or in other words, when we get didDisplayIncomingCall from callkeep lib
32
+ */
33
+ export const voipCallkeepCallOnForegroundMap$ = new BehaviorSubject(undefined);
34
+
35
+ /*
36
+ * This rxjs subject should only used to store the CallkeepMap when it was accepted in the native dialer
37
+ */
38
+ export const voipCallkeepAcceptedCallOnNativeDialerMap$ = new BehaviorSubject(undefined);
39
+ //# sourceMappingURL=rxSubjects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BehaviorSubject","pushAcceptedIncomingCallCId$","undefined","pushTappedIncomingCallCId$","pushRejectedIncomingCallCId$","voipPushNotificationCallCId$","voipCallkeepCallOnForegroundMap$","voipCallkeepAcceptedCallOnNativeDialerMap$"],"sourceRoot":"../../../../src","sources":["utils/push/rxSubjects.ts"],"mappings":"AAAA,SAASA,eAAe,QAAQ,MAAM;;AAEtC;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,IAAID,eAAe,CAE7DE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACA,OAAO,MAAMC,0BAA0B,GAAG,IAAIH,eAAe,CAE3DE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA;AACA,OAAO,MAAME,4BAA4B,GAAG,IAAIJ,eAAe,CAE7DE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA,OAAO,MAAMG,4BAA4B,GAAG,IAAIL,eAAe,CAE7DE,SAAS,CAAC;;AAEZ;;AAMA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,gCAAgC,GAAG,IAAIN,eAAe,CAEjEE,SAAS,CAAC;;AAEZ;AACA;AACA;AACA,OAAO,MAAMK,0CAA0C,GAAG,IAAIP,eAAe,CAE3EE,SAAS,CAAC"}
@@ -0,0 +1,47 @@
1
+ /* An action for the notification or callkeep and app does not have JS context setup yet, so we need to do two steps:
2
+ 1. we need to create a new client and connect the user to decline the call
3
+ 2. this is because the app is in background state and we don't have a client to get the call and do an action
4
+ */
5
+ export const processCallFromPushInBackground = async (pushConfig, call_cid, action) => {
6
+ let videoClient;
7
+ try {
8
+ videoClient = await pushConfig.createStreamVideoClient();
9
+ if (!videoClient) {
10
+ return;
11
+ }
12
+ } catch (e) {
13
+ console.log('failed to create video client and connect user', e);
14
+ return;
15
+ }
16
+ await processCallFromPush(videoClient, call_cid, action);
17
+ };
18
+
19
+ /**
20
+ * This function is used process the call from push notifications due to incoming call
21
+ * It does the following steps:
22
+ * 1. Get the call from the client if present or create a new call
23
+ * 2. Fetch the latest state of the call from the server if its not already in ringing state
24
+ * 3. Join or leave the call based on the user's action.
25
+ */
26
+ export const processCallFromPush = async (client, call_cid, action) => {
27
+ let callFromPush;
28
+ try {
29
+ callFromPush = await client.onRingingCall(call_cid);
30
+ } catch (e) {
31
+ console.log('failed to fetch call from push notification', e);
32
+ return;
33
+ }
34
+ // note: when action was pressed, we dont need to do anything as the only thing is to do is to get the call which adds it to the client
35
+ try {
36
+ if (action === 'accept') {
37
+ await callFromPush.join();
38
+ } else if (action === 'decline') {
39
+ await callFromPush.leave({
40
+ reject: true
41
+ });
42
+ }
43
+ } catch (e) {
44
+ console.log('failed to process call from push notification', e, action);
45
+ }
46
+ };
47
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["processCallFromPushInBackground","pushConfig","call_cid","action","videoClient","createStreamVideoClient","e","console","log","processCallFromPush","client","callFromPush","onRingingCall","join","leave","reject"],"sourceRoot":"../../../../src","sources":["utils/push/utils.ts"],"mappings":"AAKA;AACA;AACA;AACA;AACA,OAAO,MAAMA,+BAA+B,GAAG,MAAAA,CAC7CC,UAAsB,EACtBC,QAAgB,EAChBC,MAAiD,KAC9C;EACH,IAAIC,WAA0C;EAE9C,IAAI;IACFA,WAAW,GAAG,MAAMH,UAAU,CAACI,uBAAuB,CAAC,CAAC;IACxD,IAAI,CAACD,WAAW,EAAE;MAChB;IACF;EACF,CAAC,CAAC,OAAOE,CAAC,EAAE;IACVC,OAAO,CAACC,GAAG,CAAC,gDAAgD,EAAEF,CAAC,CAAC;IAChE;EACF;EACA,MAAMG,mBAAmB,CAACL,WAAW,EAAEF,QAAQ,EAAEC,MAAM,CAAC;AAC1D,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,mBAAmB,GAAG,MAAAA,CACjCC,MAAyB,EACzBR,QAAgB,EAChBC,MAAwC,KACrC;EACH,IAAIQ,YAAkB;EACtB,IAAI;IACFA,YAAY,GAAG,MAAMD,MAAM,CAACE,aAAa,CAACV,QAAQ,CAAC;EACrD,CAAC,CAAC,OAAOI,CAAC,EAAE;IACVC,OAAO,CAACC,GAAG,CAAC,6CAA6C,EAAEF,CAAC,CAAC;IAC7D;EACF;EACA;EACA,IAAI;IACF,IAAIH,MAAM,KAAK,QAAQ,EAAE;MACvB,MAAMQ,YAAY,CAACE,IAAI,CAAC,CAAC;IAC3B,CAAC,MAAM,IAAIV,MAAM,KAAK,SAAS,EAAE;MAC/B,MAAMQ,YAAY,CAACG,KAAK,CAAC;QAAEC,MAAM,EAAE;MAAK,CAAC,CAAC;IAC5C;EACF,CAAC,CAAC,OAAOT,CAAC,EAAE;IACVC,OAAO,CAACC,GAAG,CAAC,+CAA+C,EAAEF,CAAC,EAAEH,MAAM,CAAC;EACzE;AACF,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { setSdkInfo, setDeviceInfo, setOSInfo, SfuModels } from '@stream-io/video-client';
2
+ import { Platform } from 'react-native';
3
+ import { version } from '../version';
4
+ const [major, minor, patch] = version.split('.');
5
+ export const setClientDetails = () => {
6
+ setSdkInfo({
7
+ type: SfuModels.SdkType.REACT_NATIVE,
8
+ major,
9
+ minor,
10
+ patch
11
+ });
12
+ let osName = Platform.OS;
13
+ if (Platform.OS === 'ios') {
14
+ // example: "iOS" | "iPadOS"
15
+ osName = Platform.constants.systemName;
16
+ }
17
+ let osVersion = '';
18
+ if (Platform.OS === 'android') {
19
+ // example: "33" - its more OS API level than consumer version
20
+ osVersion = Platform.constants.Version.toString();
21
+ } else if (Platform.OS === 'ios') {
22
+ // example: "16.2"
23
+ osVersion = Platform.constants.osVersion;
24
+ }
25
+ setOSInfo({
26
+ name: osName,
27
+ version: osVersion,
28
+ architecture: ''
29
+ });
30
+ let deviceName = '';
31
+ if (Platform.OS === 'android') {
32
+ // Example: "Google Pixel 7"
33
+ const prefix = Platform.constants.Manufacturer.toLowerCase() === Platform.constants.Brand.toLowerCase() ? Platform.constants.Manufacturer : `${Platform.constants.Manufacturer} ${Platform.constants.Brand}`;
34
+ deviceName = `${prefix} ${Platform.constants.Model}`;
35
+ } else if (Platform.OS === 'ios') {
36
+ // note: osName check is necessary because Platform.isPad is not reliable
37
+ deviceName = Platform.isPad || osName === 'iPadOS' ? 'iPad' : 'iPhone';
38
+ }
39
+ setDeviceInfo({
40
+ name: deviceName,
41
+ version: ''
42
+ });
43
+ };
44
+ //# sourceMappingURL=setClientDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["setSdkInfo","setDeviceInfo","setOSInfo","SfuModels","Platform","version","major","minor","patch","split","setClientDetails","type","SdkType","REACT_NATIVE","osName","OS","constants","systemName","osVersion","Version","toString","name","architecture","deviceName","prefix","Manufacturer","toLowerCase","Brand","Model","isPad"],"sourceRoot":"../../../src","sources":["utils/setClientDetails.ts"],"mappings":"AAAA,SACEA,UAAU,EACVC,aAAa,EACbC,SAAS,EACTC,SAAS,QACJ,yBAAyB;AAChC,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,OAAO,QAAQ,YAAY;AAEpC,MAAM,CAACC,KAAK,EAAEC,KAAK,EAAEC,KAAK,CAAC,GAAGH,OAAO,CAACI,KAAK,CAAC,GAAG,CAAC;AAEhD,OAAO,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EACpCV,UAAU,CAAC;IACTW,IAAI,EAAER,SAAS,CAACS,OAAO,CAACC,YAAY;IACpCP,KAAK;IACLC,KAAK;IACLC;EACF,CAAC,CAAC;EAEF,IAAIM,MAAc,GAAGV,QAAQ,CAACW,EAAE;EAChC,IAAIX,QAAQ,CAACW,EAAE,KAAK,KAAK,EAAE;IACzB;IACAD,MAAM,GAAGV,QAAQ,CAACY,SAAS,CAACC,UAAU;EACxC;EAEA,IAAIC,SAAS,GAAG,EAAE;EAClB,IAAId,QAAQ,CAACW,EAAE,KAAK,SAAS,EAAE;IAC7B;IACAG,SAAS,GAAGd,QAAQ,CAACY,SAAS,CAACG,OAAO,CAACC,QAAQ,CAAC,CAAC;EACnD,CAAC,MAAM,IAAIhB,QAAQ,CAACW,EAAE,KAAK,KAAK,EAAE;IAChC;IACAG,SAAS,GAAGd,QAAQ,CAACY,SAAS,CAACE,SAAS;EAC1C;EAEAhB,SAAS,CAAC;IACRmB,IAAI,EAAEP,MAAM;IACZT,OAAO,EAAEa,SAAS;IAClBI,YAAY,EAAE;EAChB,CAAC,CAAC;EAEF,IAAIC,UAAU,GAAG,EAAE;EACnB,IAAInB,QAAQ,CAACW,EAAE,KAAK,SAAS,EAAE;IAC7B;IACA,MAAMS,MAAM,GACVpB,QAAQ,CAACY,SAAS,CAACS,YAAY,CAACC,WAAW,CAAC,CAAC,KAC7CtB,QAAQ,CAACY,SAAS,CAACW,KAAK,CAACD,WAAW,CAAC,CAAC,GAClCtB,QAAQ,CAACY,SAAS,CAACS,YAAY,GAC9B,GAAErB,QAAQ,CAACY,SAAS,CAACS,YAAa,IAAGrB,QAAQ,CAACY,SAAS,CAACW,KAAM,EAAC;IACtEJ,UAAU,GAAI,GAAEC,MAAO,IAAGpB,QAAQ,CAACY,SAAS,CAACY,KAAM,EAAC;EACtD,CAAC,MAAM,IAAIxB,QAAQ,CAACW,EAAE,KAAK,KAAK,EAAE;IAChC;IACAQ,UAAU,GAAGnB,QAAQ,CAACyB,KAAK,IAAIf,MAAM,KAAK,QAAQ,GAAG,MAAM,GAAG,QAAQ;EACxE;EAEAb,aAAa,CAAC;IACZoB,IAAI,EAAEE,UAAU;IAChBlB,OAAO,EAAE;EACX,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export const version = '0.0.12';
2
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["version"],"sourceRoot":"../../src","sources":["version.ts"],"mappings":"AAAA,OAAO,MAAMA,OAAO,GAAG,QAAQ"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { CallTopViewProps } from '../CallTopView';
3
+ import { CallParticipantsGridProps } from '../CallLayout';
4
+ import { CallControlProps } from '../CallControls';
5
+ import { FloatingParticipantViewProps } from '../../Participant';
6
+ export type CallParticipantsComponentProps = Pick<CallParticipantsGridProps, 'CallParticipantsList' | 'ParticipantLabel' | 'ParticipantNetworkQualityIndicator' | 'ParticipantReaction' | 'ParticipantVideoFallback' | 'ParticipantView' | 'VideoRenderer'> & {
7
+ /**
8
+ * Component to customize the CallTopView component.
9
+ */
10
+ CallTopView?: React.ComponentType<CallTopViewProps> | null;
11
+ /**
12
+ * Component to customize the CallControls component.
13
+ */
14
+ CallControls?: React.ComponentType<CallControlProps> | null;
15
+ /**
16
+ * Component to customize the FloatingParticipantView.
17
+ */
18
+ FloatingParticipantView?: React.ComponentType<FloatingParticipantViewProps> | null;
19
+ };
20
+ export type CallContentProps = Pick<CallControlProps, 'onHangupCallHandler'> & Pick<CallTopViewProps, 'onBackPressed' | 'onParticipantInfoPress' | 'ParticipantsInfoBadge'> & CallParticipantsComponentProps & {
21
+ /**
22
+ * This switches the participant's layout between the grid and the spotlight mode.
23
+ */
24
+ layout?: 'grid' | 'spotlight';
25
+ };
26
+ export declare const CallContent: ({ onBackPressed, onParticipantInfoPress, onHangupCallHandler, CallParticipantsList, CallTopView, CallControls, FloatingParticipantView, ParticipantLabel, ParticipantNetworkQualityIndicator, ParticipantReaction, ParticipantVideoFallback, ParticipantView, ParticipantsInfoBadge, VideoRenderer, layout, }: CallContentProps) => JSX.Element;
27
+ //# sourceMappingURL=CallContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/CallContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,yBAAyB,EAG1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAEL,4BAA4B,EAE7B,MAAM,mBAAmB,CAAC;AAG3B,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,yBAAyB,EACvB,sBAAsB,GACtB,kBAAkB,GAClB,oCAAoC,GACpC,qBAAqB,GACrB,0BAA0B,GAC1B,iBAAiB,GACjB,eAAe,CAClB,GAAG;IACF;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAC3D;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;IAC5D;;OAEG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,4BAA4B,CAAC,GAAG,IAAI,CAAC;CACpF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,qBAAqB,CAAC,GAC1E,IAAI,CACF,gBAAgB,EAChB,eAAe,GAAG,wBAAwB,GAAG,uBAAuB,CACrE,GACD,8BAA8B,GAAG;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC/B,CAAC;AAEJ,eAAO,MAAM,WAAW,kTAgBrB,gBAAgB,gBAiHlB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './CallContent';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallContent/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The props for the Accept Call button.
3
+ */
4
+ type AcceptCallButtonProps = {
5
+ /**
6
+ * Handler to be called when the accept call button is pressed.
7
+ */
8
+ onPressHandler?: () => void;
9
+ /**
10
+ * Handler to be called after the incoming call is accepted.
11
+ *
12
+ * Note: If the `onPressHandler` is passed this handler will not be executed.
13
+ */
14
+ onAcceptCallHandler?: () => void;
15
+ };
16
+ /**
17
+ * Button to accept a call.
18
+ *
19
+ * Mostly calls call.join() internally.
20
+ */
21
+ export declare const AcceptCallButton: ({ onPressHandler, onAcceptCallHandler, }: AcceptCallButtonProps) => JSX.Element;
22
+ export {};
23
+ //# sourceMappingURL=AcceptCallButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AcceptCallButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/AcceptCallButton.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,KAAK,qBAAqB,GAAG;IAC3B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6CAG1B,qBAAqB,gBAkCvB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ViewProps } from 'react-native';
2
+ /**
3
+ * Props for the CallControls Component.
4
+ */
5
+ export type CallControlProps = Pick<ViewProps, 'style'> & {
6
+ /**
7
+ * Handler to override the hang up handler when the hangup button is pressed.
8
+ * @returns void
9
+ */
10
+ onHangupCallHandler?: () => void;
11
+ };
12
+ /**
13
+ * A list/row of controls (mute audio/video, toggle front/back camera, hangup call etc.)
14
+ * the user can trigger within an active call.
15
+ */
16
+ export declare const CallControls: ({ style, onHangupCallHandler, }: CallControlProps) => JSX.Element;
17
+ //# sourceMappingURL=CallControls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/CallControls.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ3D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACxD;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,oCAGtB,gBAAgB,gBAmBlB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { ColorValue, PressableProps, View } from 'react-native';
3
+ import { Theme } from '../../../theme/theme';
4
+ interface CallControlsButtonProps {
5
+ /**
6
+ * `onPress` handler called when a single tap gesture is detected.
7
+ */
8
+ onPress?: PressableProps['onPress'];
9
+ /**
10
+ * The background color of the button rendered.
11
+ */
12
+ color?: ColorValue;
13
+ /**
14
+ * Boolean to enable/disable the button
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * Style to the Pressable button.
19
+ */
20
+ style?: Theme['callControlsButton'];
21
+ /**
22
+ * Sets the height, width and border-radius (half the value) of the button.
23
+ */
24
+ size?: number;
25
+ /**
26
+ * Accessibility label for the button.
27
+ */
28
+ testID?: string;
29
+ /**
30
+ * Invoked on mount and layout changes with
31
+ * {nativeEvent: { layout: {x, y, width, height}}}.
32
+ */
33
+ onLayout?: View['props']['onLayout'];
34
+ }
35
+ export declare const CallControlsButton: (props: React.PropsWithChildren<CallControlsButtonProps>) => JSX.Element;
36
+ export {};
37
+ //# sourceMappingURL=CallControlsButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CallControlsButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/CallControlsButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EAEV,cAAc,EAEd,IAAI,EACL,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,UAAU,uBAAuB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,kBAAkB,UACtB,MAAM,iBAAiB,CAAC,uBAAuB,CAAC,gBA0DxD,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The props for the Chat Button in the Call Controls.
3
+ */
4
+ export type ChatButtonProps = {
5
+ /**
6
+ * Handler to be called when the chat button is pressed.
7
+ * @returns void
8
+ */
9
+ onPressHandler?: () => void;
10
+ /**
11
+ * The count of the current unread message to be displayed above on the Chat button.
12
+ */
13
+ unreadBadgeCount?: number;
14
+ };
15
+ /**
16
+ * Button to open the Chat window while in the call.
17
+ *
18
+ * This call also display the unread count indicator/badge is there messages that are unread.
19
+ */
20
+ export declare const ChatButton: ({ onPressHandler, unreadBadgeCount, }: ChatButtonProps) => JSX.Element;
21
+ //# sourceMappingURL=ChatButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/ChatButton.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,0CAGpB,eAAe,gBAUjB,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The props for the Hang up call button in the Call Controls.
3
+ */
4
+ export type HangUpCallButtonProps = {
5
+ /**
6
+ * Handler to override the hang up handler when the hangup button is pressed.
7
+ * @returns void
8
+ */
9
+ onPressHandler?: () => void;
10
+ /**
11
+ * Handler to be called when the call is hanged up.
12
+ *
13
+ * Note: If the `onPressHandler` is passed this handler will not be executed.
14
+ */
15
+ onHangupCallHandler?: () => void;
16
+ };
17
+ /**
18
+ * Button to hangup a call.
19
+ *
20
+ * Mostly calls call.leave() internally.
21
+ */
22
+ export declare const HangUpCallButton: ({ onPressHandler, onHangupCallHandler, }: HangUpCallButtonProps) => JSX.Element;
23
+ //# sourceMappingURL=HangupCallButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HangupCallButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/HangupCallButton.tsx"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,6CAG1B,qBAAqB,gBAoCvB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Props for the IncomingCallControls Component.
3
+ */
4
+ export type IncomingCallControlsProps = {
5
+ /**
6
+ * Handler to be executed when an incoming call is accepted
7
+ */
8
+ onAcceptCallHandler?: () => void;
9
+ /**
10
+ * Handler to be executed when an incoming call is rejected
11
+ */
12
+ onRejectCallHandler?: () => void;
13
+ };
14
+ export declare const IncomingCallControls: ({ onAcceptCallHandler, onRejectCallHandler, }: IncomingCallControlsProps) => JSX.Element;
15
+ //# sourceMappingURL=IncomingCallControls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IncomingCallControls.d.ts","sourceRoot":"","sources":["../../../../../src/components/Call/CallControls/IncomingCallControls.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,oBAAoB,kDAG9B,yBAAyB,gBAW3B,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Controls for the Lobby Component
3
+ */
4
+ export declare const LobbyControls: () => JSX.Element;
5
+ //# sourceMappingURL=LobbyControls.d.ts.map