@stream-io/video-react-native-sdk 0.0.1-alpha.141

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 (360) hide show
  1. package/CHANGELOG.md +739 -0
  2. package/LICENSE +219 -0
  3. package/README.md +19 -0
  4. package/dist/__tests__/components/ActiveCall.test.d.ts +1 -0
  5. package/dist/__tests__/components/ActiveCall.test.js +89 -0
  6. package/dist/__tests__/components/ActiveCall.test.js.map +1 -0
  7. package/dist/__tests__/components/Avatar.test.d.ts +1 -0
  8. package/dist/__tests__/components/Avatar.test.js +34 -0
  9. package/dist/__tests__/components/Avatar.test.js.map +1 -0
  10. package/dist/__tests__/components/ParticipantView.test.d.ts +1 -0
  11. package/dist/__tests__/components/ParticipantView.test.js +66 -0
  12. package/dist/__tests__/components/ParticipantView.test.js.map +1 -0
  13. package/dist/__tests__/mocks/call.d.ts +2 -0
  14. package/dist/__tests__/mocks/call.js +21 -0
  15. package/dist/__tests__/mocks/call.js.map +1 -0
  16. package/dist/__tests__/mocks/client.d.ts +2 -0
  17. package/dist/__tests__/mocks/client.js +31 -0
  18. package/dist/__tests__/mocks/client.js.map +1 -0
  19. package/dist/__tests__/mocks/participant.d.ts +3 -0
  20. package/dist/__tests__/mocks/participant.js +25 -0
  21. package/dist/__tests__/mocks/participant.js.map +1 -0
  22. package/dist/__tests__/utils/RNTLTools.d.ts +15 -0
  23. package/dist/__tests__/utils/RNTLTools.js +54 -0
  24. package/dist/__tests__/utils/RNTLTools.js.map +1 -0
  25. package/dist/index.d.ts +9 -0
  26. package/dist/index.js +39 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/jest-setup.d.ts +1 -0
  29. package/dist/jest-setup.js +34 -0
  30. package/dist/jest-setup.js.map +1 -0
  31. package/dist/src/components/ActiveCall.d.ts +18 -0
  32. package/dist/src/components/ActiveCall.js +117 -0
  33. package/dist/src/components/ActiveCall.js.map +1 -0
  34. package/dist/src/components/Avatar.d.ts +25 -0
  35. package/dist/src/components/Avatar.js +55 -0
  36. package/dist/src/components/Avatar.js.map +1 -0
  37. package/dist/src/components/CallControlsButton.d.ts +22 -0
  38. package/dist/src/components/CallControlsButton.js +43 -0
  39. package/dist/src/components/CallControlsButton.js.map +1 -0
  40. package/dist/src/components/CallControlsView.d.ts +9 -0
  41. package/dist/src/components/CallControlsView.js +95 -0
  42. package/dist/src/components/CallControlsView.js.map +1 -0
  43. package/dist/src/components/CallParticipantsBadge.d.ts +1 -0
  44. package/dist/src/components/CallParticipantsBadge.js +48 -0
  45. package/dist/src/components/CallParticipantsBadge.js.map +1 -0
  46. package/dist/src/components/CallParticipantsInfoView.d.ts +21 -0
  47. package/dist/src/components/CallParticipantsInfoView.js +213 -0
  48. package/dist/src/components/CallParticipantsInfoView.js.map +1 -0
  49. package/dist/src/components/CallParticipantsList.d.ts +25 -0
  50. package/dist/src/components/CallParticipantsList.js +124 -0
  51. package/dist/src/components/CallParticipantsList.js.map +1 -0
  52. package/dist/src/components/CallParticipantsOptions.d.ts +8 -0
  53. package/dist/src/components/CallParticipantsOptions.js +189 -0
  54. package/dist/src/components/CallParticipantsOptions.js.map +1 -0
  55. package/dist/src/components/CallParticipantsSpotlightView.d.ts +1 -0
  56. package/dist/src/components/CallParticipantsSpotlightView.js +40 -0
  57. package/dist/src/components/CallParticipantsSpotlightView.js.map +1 -0
  58. package/dist/src/components/CallParticipantsView.d.ts +1 -0
  59. package/dist/src/components/CallParticipantsView.js +31 -0
  60. package/dist/src/components/CallParticipantsView.js.map +1 -0
  61. package/dist/src/components/IncomingCallView.d.ts +1 -0
  62. package/dist/src/components/IncomingCallView.js +98 -0
  63. package/dist/src/components/IncomingCallView.js.map +1 -0
  64. package/dist/src/components/LobbyView.d.ts +1 -0
  65. package/dist/src/components/LobbyView.js +215 -0
  66. package/dist/src/components/LobbyView.js.map +1 -0
  67. package/dist/src/components/LocalVideoView.d.ts +34 -0
  68. package/dist/src/components/LocalVideoView.js +100 -0
  69. package/dist/src/components/LocalVideoView.js.map +1 -0
  70. package/dist/src/components/NetworkQualityIndicator.d.ts +8 -0
  71. package/dist/src/components/NetworkQualityIndicator.js +36 -0
  72. package/dist/src/components/NetworkQualityIndicator.js.map +1 -0
  73. package/dist/src/components/OutgoingCallView.d.ts +1 -0
  74. package/dist/src/components/OutgoingCallView.js +103 -0
  75. package/dist/src/components/OutgoingCallView.js.map +1 -0
  76. package/dist/src/components/ParticipantReaction.d.ts +7 -0
  77. package/dist/src/components/ParticipantReaction.js +45 -0
  78. package/dist/src/components/ParticipantReaction.js.map +1 -0
  79. package/dist/src/components/ParticipantView.d.ts +42 -0
  80. package/dist/src/components/ParticipantView.js +256 -0
  81. package/dist/src/components/ParticipantView.js.map +1 -0
  82. package/dist/src/components/ReactionsModal.d.ts +7 -0
  83. package/dist/src/components/ReactionsModal.js +65 -0
  84. package/dist/src/components/ReactionsModal.js.map +1 -0
  85. package/dist/src/components/ToggleAudioButton.d.ts +1 -0
  86. package/dist/src/components/ToggleAudioButton.js +78 -0
  87. package/dist/src/components/ToggleAudioButton.js.map +1 -0
  88. package/dist/src/components/ToggleVideoButton.d.ts +1 -0
  89. package/dist/src/components/ToggleVideoButton.js +78 -0
  90. package/dist/src/components/ToggleVideoButton.js.map +1 -0
  91. package/dist/src/components/UserInfoView.d.ts +13 -0
  92. package/dist/src/components/UserInfoView.js +82 -0
  93. package/dist/src/components/UserInfoView.js.map +1 -0
  94. package/dist/src/components/VideoRenderer.d.ts +65 -0
  95. package/dist/src/components/VideoRenderer.js +18 -0
  96. package/dist/src/components/VideoRenderer.js.map +1 -0
  97. package/dist/src/components/index.d.ts +12 -0
  98. package/dist/src/components/index.js +29 -0
  99. package/dist/src/components/index.js.map +1 -0
  100. package/dist/src/constants/A11yLabels.d.ts +20 -0
  101. package/dist/src/constants/A11yLabels.js +29 -0
  102. package/dist/src/constants/A11yLabels.js.map +1 -0
  103. package/dist/src/constants/index.d.ts +11 -0
  104. package/dist/src/constants/index.js +30 -0
  105. package/dist/src/constants/index.js.map +1 -0
  106. package/dist/src/contexts/StreamVideoContext/createStoreContext.d.ts +14 -0
  107. package/dist/src/contexts/StreamVideoContext/createStoreContext.js +100 -0
  108. package/dist/src/contexts/StreamVideoContext/createStoreContext.js.map +1 -0
  109. package/dist/src/contexts/StreamVideoContext/index.d.ts +30 -0
  110. package/dist/src/contexts/StreamVideoContext/index.js +18 -0
  111. package/dist/src/contexts/StreamVideoContext/index.js.map +1 -0
  112. package/dist/src/contexts/index.d.ts +1 -0
  113. package/dist/src/contexts/index.js +18 -0
  114. package/dist/src/contexts/index.js.map +1 -0
  115. package/dist/src/hooks/index.d.ts +10 -0
  116. package/dist/src/hooks/index.js +27 -0
  117. package/dist/src/hooks/index.js.map +1 -0
  118. package/dist/src/hooks/useCallControls.d.ts +14 -0
  119. package/dist/src/hooks/useCallControls.js +148 -0
  120. package/dist/src/hooks/useCallControls.js.map +1 -0
  121. package/dist/src/hooks/useCallCycleEffect.d.ts +8 -0
  122. package/dist/src/hooks/useCallCycleEffect.js +62 -0
  123. package/dist/src/hooks/useCallCycleEffect.js.map +1 -0
  124. package/dist/src/hooks/useCallKeep.d.ts +11 -0
  125. package/dist/src/hooks/useCallKeep.js +41 -0
  126. package/dist/src/hooks/useCallKeep.js.map +1 -0
  127. package/dist/src/hooks/useCreateStreamVideoClient.d.ts +33 -0
  128. package/dist/src/hooks/useCreateStreamVideoClient.js +40 -0
  129. package/dist/src/hooks/useCreateStreamVideoClient.js.map +1 -0
  130. package/dist/src/hooks/useIncallManager.d.ts +13 -0
  131. package/dist/src/hooks/useIncallManager.js +24 -0
  132. package/dist/src/hooks/useIncallManager.js.map +1 -0
  133. package/dist/src/hooks/useLocalVideoStream.d.ts +7 -0
  134. package/dist/src/hooks/useLocalVideoStream.js +34 -0
  135. package/dist/src/hooks/useLocalVideoStream.js.map +1 -0
  136. package/dist/src/hooks/useMutingState.d.ts +12 -0
  137. package/dist/src/hooks/useMutingState.js +25 -0
  138. package/dist/src/hooks/useMutingState.js.map +1 -0
  139. package/dist/src/hooks/usePermissionNotification.d.ts +18 -0
  140. package/dist/src/hooks/usePermissionNotification.js +33 -0
  141. package/dist/src/hooks/usePermissionNotification.js.map +1 -0
  142. package/dist/src/hooks/usePermissionRequest.d.ts +1 -0
  143. package/dist/src/hooks/usePermissionRequest.js +62 -0
  144. package/dist/src/hooks/usePermissionRequest.js.map +1 -0
  145. package/dist/src/hooks/usePublishMediaStreams.d.ts +6 -0
  146. package/dist/src/hooks/usePublishMediaStreams.js +49 -0
  147. package/dist/src/hooks/usePublishMediaStreams.js.map +1 -0
  148. package/dist/src/icons/ArrowRight.d.ts +5 -0
  149. package/dist/src/icons/ArrowRight.js +9 -0
  150. package/dist/src/icons/ArrowRight.js.map +1 -0
  151. package/dist/src/icons/CameraSwitch.d.ts +5 -0
  152. package/dist/src/icons/CameraSwitch.js +9 -0
  153. package/dist/src/icons/CameraSwitch.js.map +1 -0
  154. package/dist/src/icons/Chat.d.ts +5 -0
  155. package/dist/src/icons/Chat.js +9 -0
  156. package/dist/src/icons/Chat.js.map +1 -0
  157. package/dist/src/icons/Cross.d.ts +5 -0
  158. package/dist/src/icons/Cross.js +9 -0
  159. package/dist/src/icons/Cross.js.map +1 -0
  160. package/dist/src/icons/Mic.d.ts +5 -0
  161. package/dist/src/icons/Mic.js +10 -0
  162. package/dist/src/icons/Mic.js.map +1 -0
  163. package/dist/src/icons/MicOff.d.ts +5 -0
  164. package/dist/src/icons/MicOff.js +9 -0
  165. package/dist/src/icons/MicOff.js.map +1 -0
  166. package/dist/src/icons/Participants.d.ts +5 -0
  167. package/dist/src/icons/Participants.js +9 -0
  168. package/dist/src/icons/Participants.js.map +1 -0
  169. package/dist/src/icons/Phone.d.ts +5 -0
  170. package/dist/src/icons/Phone.js +9 -0
  171. package/dist/src/icons/Phone.js.map +1 -0
  172. package/dist/src/icons/PhoneDown.d.ts +5 -0
  173. package/dist/src/icons/PhoneDown.js +10 -0
  174. package/dist/src/icons/PhoneDown.js.map +1 -0
  175. package/dist/src/icons/Pin.d.ts +5 -0
  176. package/dist/src/icons/Pin.js +9 -0
  177. package/dist/src/icons/Pin.js.map +1 -0
  178. package/dist/src/icons/Reaction.d.ts +5 -0
  179. package/dist/src/icons/Reaction.js +9 -0
  180. package/dist/src/icons/Reaction.js.map +1 -0
  181. package/dist/src/icons/ScreenShare.d.ts +5 -0
  182. package/dist/src/icons/ScreenShare.js +40 -0
  183. package/dist/src/icons/ScreenShare.js.map +1 -0
  184. package/dist/src/icons/Settings.d.ts +5 -0
  185. package/dist/src/icons/Settings.js +34 -0
  186. package/dist/src/icons/Settings.js.map +1 -0
  187. package/dist/src/icons/Spotlight.d.ts +5 -0
  188. package/dist/src/icons/Spotlight.js +9 -0
  189. package/dist/src/icons/Spotlight.js.map +1 -0
  190. package/dist/src/icons/ThreeDots.d.ts +5 -0
  191. package/dist/src/icons/ThreeDots.js +11 -0
  192. package/dist/src/icons/ThreeDots.js.map +1 -0
  193. package/dist/src/icons/Video.d.ts +5 -0
  194. package/dist/src/icons/Video.js +9 -0
  195. package/dist/src/icons/Video.js.map +1 -0
  196. package/dist/src/icons/VideoDisabled.d.ts +5 -0
  197. package/dist/src/icons/VideoDisabled.js +10 -0
  198. package/dist/src/icons/VideoDisabled.js.map +1 -0
  199. package/dist/src/icons/VideoOff.d.ts +5 -0
  200. package/dist/src/icons/VideoOff.js +10 -0
  201. package/dist/src/icons/VideoOff.js.map +1 -0
  202. package/dist/src/icons/VideoSlash.d.ts +5 -0
  203. package/dist/src/icons/VideoSlash.js +10 -0
  204. package/dist/src/icons/VideoSlash.js.map +1 -0
  205. package/dist/src/icons/index.d.ts +19 -0
  206. package/dist/src/icons/index.js +36 -0
  207. package/dist/src/icons/index.js.map +1 -0
  208. package/dist/src/providers/MediaDevices.d.ts +9 -0
  209. package/dist/src/providers/MediaDevices.js +43 -0
  210. package/dist/src/providers/MediaDevices.js.map +1 -0
  211. package/dist/src/providers/StreamCall.d.ts +81 -0
  212. package/dist/src/providers/StreamCall.js +74 -0
  213. package/dist/src/providers/StreamCall.js.map +1 -0
  214. package/dist/src/providers/StreamVideo.d.ts +10 -0
  215. package/dist/src/providers/StreamVideo.js +66 -0
  216. package/dist/src/providers/StreamVideo.js.map +1 -0
  217. package/dist/src/providers/index.d.ts +2 -0
  218. package/dist/src/providers/index.js +19 -0
  219. package/dist/src/providers/index.js.map +1 -0
  220. package/dist/src/theme/avatar.d.ts +2 -0
  221. package/dist/src/theme/avatar.js +11 -0
  222. package/dist/src/theme/avatar.js.map +1 -0
  223. package/dist/src/theme/button.d.ts +2 -0
  224. package/dist/src/theme/button.js +11 -0
  225. package/dist/src/theme/button.js.map +1 -0
  226. package/dist/src/theme/colors.d.ts +3 -0
  227. package/dist/src/theme/colors.js +49 -0
  228. package/dist/src/theme/colors.js.map +1 -0
  229. package/dist/src/theme/constants.d.ts +47 -0
  230. package/dist/src/theme/constants.js +54 -0
  231. package/dist/src/theme/constants.js.map +1 -0
  232. package/dist/src/theme/fonts.d.ts +2 -0
  233. package/dist/src/theme/fonts.js +67 -0
  234. package/dist/src/theme/fonts.js.map +1 -0
  235. package/dist/src/theme/icon.d.ts +2 -0
  236. package/dist/src/theme/icon.js +11 -0
  237. package/dist/src/theme/icon.js.map +1 -0
  238. package/dist/src/theme/index.d.ts +2 -0
  239. package/dist/src/theme/index.js +26 -0
  240. package/dist/src/theme/index.js.map +1 -0
  241. package/dist/src/theme/margin.d.ts +2 -0
  242. package/dist/src/theme/margin.js +11 -0
  243. package/dist/src/theme/margin.js.map +1 -0
  244. package/dist/src/theme/padding.d.ts +2 -0
  245. package/dist/src/theme/padding.js +11 -0
  246. package/dist/src/theme/padding.js.map +1 -0
  247. package/dist/src/theme/rounded.d.ts +2 -0
  248. package/dist/src/theme/rounded.js +11 -0
  249. package/dist/src/theme/rounded.js.map +1 -0
  250. package/dist/src/theme/spacing.d.ts +2 -0
  251. package/dist/src/theme/spacing.js +11 -0
  252. package/dist/src/theme/spacing.js.map +1 -0
  253. package/dist/src/theme/types.d.ts +45 -0
  254. package/dist/src/theme/types.js +3 -0
  255. package/dist/src/theme/types.js.map +1 -0
  256. package/dist/src/utils/StreamVideoRN.d.ts +25 -0
  257. package/dist/src/utils/StreamVideoRN.js +23 -0
  258. package/dist/src/utils/StreamVideoRN.js.map +1 -0
  259. package/dist/src/utils/hooks/index.d.ts +3 -0
  260. package/dist/src/utils/hooks/index.js +20 -0
  261. package/dist/src/utils/hooks/index.js.map +1 -0
  262. package/dist/src/utils/hooks/useAppStateListener.d.ts +1 -0
  263. package/dist/src/utils/hooks/useAppStateListener.js +41 -0
  264. package/dist/src/utils/hooks/useAppStateListener.js.map +1 -0
  265. package/dist/src/utils/hooks/useDebouncedValue.d.ts +7 -0
  266. package/dist/src/utils/hooks/useDebouncedValue.js +22 -0
  267. package/dist/src/utils/hooks/useDebouncedValue.js.map +1 -0
  268. package/dist/src/utils/hooks/usePrevious.d.ts +1 -0
  269. package/dist/src/utils/hooks/usePrevious.js +13 -0
  270. package/dist/src/utils/hooks/usePrevious.js.map +1 -0
  271. package/dist/src/utils/index.d.ts +5 -0
  272. package/dist/src/utils/index.js +53 -0
  273. package/dist/src/utils/index.js.map +1 -0
  274. package/dist/src/utils/verifyAndroidBluetoothPermissions.d.ts +1 -0
  275. package/dist/src/utils/verifyAndroidBluetoothPermissions.js +30 -0
  276. package/dist/src/utils/verifyAndroidBluetoothPermissions.js.map +1 -0
  277. package/index.ts +22 -0
  278. package/package.json +70 -0
  279. package/src/components/ActiveCall.tsx +122 -0
  280. package/src/components/Avatar.tsx +88 -0
  281. package/src/components/CallControlsButton.tsx +72 -0
  282. package/src/components/CallControlsView.tsx +128 -0
  283. package/src/components/CallParticipantsBadge.tsx +57 -0
  284. package/src/components/CallParticipantsInfoView.tsx +287 -0
  285. package/src/components/CallParticipantsList.tsx +172 -0
  286. package/src/components/CallParticipantsOptions.tsx +248 -0
  287. package/src/components/CallParticipantsSpotlightView.tsx +53 -0
  288. package/src/components/CallParticipantsView.tsx +30 -0
  289. package/src/components/IncomingCallView.tsx +133 -0
  290. package/src/components/LobbyView.tsx +236 -0
  291. package/src/components/LocalVideoView.tsx +141 -0
  292. package/src/components/NetworkQualityIndicator.tsx +72 -0
  293. package/src/components/OutgoingCallView.tsx +133 -0
  294. package/src/components/ParticipantReaction.tsx +59 -0
  295. package/src/components/ParticipantView.tsx +315 -0
  296. package/src/components/ReactionsModal.tsx +90 -0
  297. package/src/components/ToggleAudioButton.tsx +103 -0
  298. package/src/components/ToggleVideoButton.tsx +103 -0
  299. package/src/components/UserInfoView.tsx +118 -0
  300. package/src/components/VideoRenderer.tsx +85 -0
  301. package/src/components/index.ts +12 -0
  302. package/src/constants/A11yLabels.ts +24 -0
  303. package/src/constants/index.ts +28 -0
  304. package/src/contexts/StreamVideoContext/createStoreContext.tsx +117 -0
  305. package/src/contexts/StreamVideoContext/index.tsx +37 -0
  306. package/src/contexts/index.ts +1 -0
  307. package/src/hooks/index.ts +10 -0
  308. package/src/hooks/useCallControls.tsx +186 -0
  309. package/src/hooks/useCallCycleEffect.tsx +68 -0
  310. package/src/hooks/useCallKeep.tsx +51 -0
  311. package/src/hooks/useCreateStreamVideoClient.tsx +77 -0
  312. package/src/hooks/useIncallManager.tsx +23 -0
  313. package/src/hooks/useLocalVideoStream.ts +36 -0
  314. package/src/hooks/useMutingState.ts +24 -0
  315. package/src/hooks/usePermissionNotification.tsx +53 -0
  316. package/src/hooks/usePermissionRequest.tsx +67 -0
  317. package/src/hooks/usePublishMediaStreams.ts +59 -0
  318. package/src/icons/ArrowRight.tsx +16 -0
  319. package/src/icons/CameraSwitch.tsx +14 -0
  320. package/src/icons/Chat.tsx +14 -0
  321. package/src/icons/Cross.tsx +14 -0
  322. package/src/icons/Mic.tsx +18 -0
  323. package/src/icons/MicOff.tsx +14 -0
  324. package/src/icons/Participants.tsx +16 -0
  325. package/src/icons/Phone.tsx +14 -0
  326. package/src/icons/PhoneDown.tsx +15 -0
  327. package/src/icons/Pin.tsx +16 -0
  328. package/src/icons/Reaction.tsx +14 -0
  329. package/src/icons/ScreenShare.tsx +32 -0
  330. package/src/icons/Settings.tsx +13 -0
  331. package/src/icons/Spotlight.tsx +16 -0
  332. package/src/icons/ThreeDots.tsx +13 -0
  333. package/src/icons/Video.tsx +14 -0
  334. package/src/icons/VideoDisabled.tsx +22 -0
  335. package/src/icons/VideoOff.tsx +20 -0
  336. package/src/icons/VideoSlash.tsx +15 -0
  337. package/src/icons/index.tsx +19 -0
  338. package/src/providers/MediaDevices.tsx +45 -0
  339. package/src/providers/StreamCall.tsx +136 -0
  340. package/src/providers/StreamVideo.tsx +50 -0
  341. package/src/providers/index.ts +2 -0
  342. package/src/theme/avatar.ts +9 -0
  343. package/src/theme/button.ts +9 -0
  344. package/src/theme/colors.ts +49 -0
  345. package/src/theme/constants.ts +51 -0
  346. package/src/theme/fonts.ts +65 -0
  347. package/src/theme/icon.ts +9 -0
  348. package/src/theme/index.ts +25 -0
  349. package/src/theme/margin.ts +9 -0
  350. package/src/theme/padding.ts +9 -0
  351. package/src/theme/rounded.ts +9 -0
  352. package/src/theme/spacing.ts +9 -0
  353. package/src/theme/types.ts +64 -0
  354. package/src/utils/StreamVideoRN.ts +35 -0
  355. package/src/utils/hooks/index.ts +3 -0
  356. package/src/utils/hooks/useAppStateListener.ts +48 -0
  357. package/src/utils/hooks/useDebouncedValue.ts +21 -0
  358. package/src/utils/hooks/usePrevious.ts +11 -0
  359. package/src/utils/index.ts +45 -0
  360. package/src/utils/verifyAndroidBluetoothPermissions.ts +31 -0
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoOff = void 0;
4
+ const react_native_svg_1 = require("react-native-svg");
5
+ const VideoOff = ({ color }) => (<react_native_svg_1.Svg viewBox="0 0 24 24" fill={color}>
6
+ <react_native_svg_1.Path fill={color} d="M 22.1126 16.2238 L 19.1546 13.6686 V 8.37994 L 22.1126 5.82471 L 22.1127 5.82476 L 22.1205 5.81781 C 22.4413 5.53481 22.6269 5.49515 22.686 5.49515 C 22.8267 5.49515 22.8809 5.53948 22.9048 5.56519 C 22.9344 5.59687 23 5.69295 23 5.91262 V 16.1359 C 23 16.3556 22.9344 16.4517 22.9048 16.4833 C 22.8809 16.5091 22.8267 16.5534 22.686 16.5534 C 22.634 16.5534 22.4383 16.5111 22.1205 16.2307 L 22.1206 16.2307 L 22.1126 16.2238 Z M 13.4493 18 H 3.28502 C 2.41817 18 1.87542 17.7686 1.55341 17.4618 C 1.23884 17.162 1 16.6616 1 15.835 V 6.23301 C 1 5.4144 1.24841 4.88792 1.58386 4.5637 C 1.92432 4.23463 2.47262 4 3.28502 4 H 13.5266 C 14.3853 4 14.898 4.23821 15.1995 4.54532 C 15.5041 4.85542 15.7343 5.37926 15.7343 6.23301 V 15.767 C 15.7343 16.6029 15.4949 17.126 15.1733 17.4423 C 14.8492 17.7609 14.3088 18 13.4493 18 Z"/>
7
+ <react_native_svg_1.Path fill={color} fillRule="evenodd" clipRule="evenodd" d="M 5.79311 7.27924 C 5.38794 6.90692 4.73102 6.90692 4.32585 7.27924 C 3.92068 7.65156 3.92068 8.25521 4.32585 8.62753 L 6.90766 11 L 4.32586 13.3725 C 3.92069 13.7448 3.92069 14.3484 4.32586 14.7208 C 4.73103 15.0931 5.38795 15.0931 5.79312 14.7208 L 8.37492 12.3483 L 10.9567 14.7208 C 11.3619 15.0931 12.0188 15.0931 12.424 14.7208 C 12.8291 14.3484 12.8291 13.7448 12.424 13.3725 L 9.84217 11 L 12.424 8.62754 C 12.8291 8.25521 12.8291 7.65156 12.424 7.27924 C 12.0188 6.90692 11.3619 6.90692 10.9567 7.27924 L 8.37492 9.65171 L 5.79311 7.27924 Z"/>
8
+ </react_native_svg_1.Svg>);
9
+ exports.VideoOff = VideoOff;
10
+ //# sourceMappingURL=VideoOff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoOff.js","sourceRoot":"","sources":["../../../src/icons/VideoOff.tsx"],"names":[],"mappings":";;;AAAA,uDAA6C;AAMtC,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,EAAS,EAAE,EAAE,CAAC,CAC5C,CAAC,sBAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CACnC;IAAA,CAAC,uBAAI,CACH,IAAI,CAAC,CAAC,KAAK,CAAC,CACZ,CAAC,CAAC,4zBAA4zB,EAEh0B;IAAA,CAAC,uBAAI,CACH,IAAI,CAAC,CAAC,KAAK,CAAC,CACZ,QAAQ,CAAC,SAAS,CAClB,QAAQ,CAAC,SAAS,CAClB,CAAC,CAAC,uiBAAuiB,EAE7iB;EAAA,EAAE,sBAAG,CAAC,CACP,CAAC;AAbW,QAAA,QAAQ,YAanB"}
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ color: string;
3
+ };
4
+ export declare const VideoSlash: ({ color }: Props) => JSX.Element;
5
+ export {};
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoSlash = void 0;
4
+ const react_native_svg_1 = require("react-native-svg");
5
+ const A11yLabels_1 = require("../../src/constants/A11yLabels");
6
+ const VideoSlash = ({ color }) => (<react_native_svg_1.Svg viewBox="0 0 30 25" accessibilityLabel={A11yLabels_1.A11yIcons.MUTED_VIDEO}>
7
+ <react_native_svg_1.Path d="M22.4886 24.1679C22.8345 24.5139 23.4037 24.5139 23.7497 24.1679C24.0845 23.8219 24.0957 23.2639 23.7497 22.9067L1.81892 0.998256C1.4841 0.652274 0.903739 0.652274 0.557757 0.998256C0.222935 1.34424 0.222935 1.9246 0.557757 2.25942L22.4886 24.1679ZM17.5555 3.35317H6.14927L21.1604 18.3643C21.2274 18.0407 21.2609 17.6166 21.2609 17.2259V7.06968C21.2609 4.70361 19.9662 3.35317 17.5555 3.35317ZM22.9015 16.1433L26.7073 19.4246C27.1761 19.8264 27.656 20.0831 28.1359 20.0831C29.0399 20.0831 29.6537 19.4358 29.6537 18.4536V6.70138C29.6537 5.71924 29.0399 5.07192 28.1359 5.07192C27.656 5.07192 27.1761 5.32861 26.7073 5.7304L22.9015 9.01165V16.1433ZM5.72517 21.746H18.0801L2.13142 5.79736C2.00865 6.10986 1.94169 6.61209 1.94169 7.10317V18.0853C1.94169 20.4402 3.31445 21.746 5.72517 21.746Z" fill={color}/>
8
+ </react_native_svg_1.Svg>);
9
+ exports.VideoSlash = VideoSlash;
10
+ //# sourceMappingURL=VideoSlash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoSlash.js","sourceRoot":"","sources":["../../../src/icons/VideoSlash.tsx"],"names":[],"mappings":";;;AAAA,uDAA6C;AAC7C,+DAA2D;AAMpD,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,EAAS,EAAE,EAAE,CAAC,CAC9C,CAAC,sBAAG,CAAC,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,sBAAS,CAAC,WAAW,CAAC,CACjE;IAAA,CAAC,uBAAI,CACH,CAAC,CAAC,uxBAAuxB,CACzxB,IAAI,CAAC,CAAC,KAAK,CAAC,EAEhB;EAAA,EAAE,sBAAG,CAAC,CACP,CAAC;AAPW,QAAA,UAAU,cAOrB"}
@@ -0,0 +1,19 @@
1
+ export * from './CameraSwitch';
2
+ export * from './Mic';
3
+ export * from './MicOff';
4
+ export * from './Phone';
5
+ export * from './PhoneDown';
6
+ export * from './Settings';
7
+ export * from './Video';
8
+ export * from './VideoSlash';
9
+ export * from './Chat';
10
+ export * from './Participants';
11
+ export * from './ThreeDots';
12
+ export * from './Pin';
13
+ export * from './Spotlight';
14
+ export * from './VideoOff';
15
+ export * from './Cross';
16
+ export * from './ScreenShare';
17
+ export * from './ArrowRight';
18
+ export * from './Reaction';
19
+ export * from './VideoDisabled';
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CameraSwitch"), exports);
18
+ __exportStar(require("./Mic"), exports);
19
+ __exportStar(require("./MicOff"), exports);
20
+ __exportStar(require("./Phone"), exports);
21
+ __exportStar(require("./PhoneDown"), exports);
22
+ __exportStar(require("./Settings"), exports);
23
+ __exportStar(require("./Video"), exports);
24
+ __exportStar(require("./VideoSlash"), exports);
25
+ __exportStar(require("./Chat"), exports);
26
+ __exportStar(require("./Participants"), exports);
27
+ __exportStar(require("./ThreeDots"), exports);
28
+ __exportStar(require("./Pin"), exports);
29
+ __exportStar(require("./Spotlight"), exports);
30
+ __exportStar(require("./VideoOff"), exports);
31
+ __exportStar(require("./Cross"), exports);
32
+ __exportStar(require("./ScreenShare"), exports);
33
+ __exportStar(require("./ArrowRight"), exports);
34
+ __exportStar(require("./Reaction"), exports);
35
+ __exportStar(require("./VideoDisabled"), exports);
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icons/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,wCAAsB;AACtB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,iDAA+B;AAC/B,8CAA4B;AAC5B,wCAAsB;AACtB,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B;AAC3B,kDAAgC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ /**
3
+ * A renderless component that provides the audio and video devices to the store
4
+ * This component must be a child of StreamVideoStoreProvider
5
+ * @internal
6
+ *
7
+ * @category Device Management
8
+ */
9
+ export declare const MediaDevices: () => React.ReactElement | null;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MediaDevices = void 0;
4
+ const react_1 = require("react");
5
+ const video_client_1 = require("@stream-io/video-client");
6
+ const contexts_1 = require("../contexts");
7
+ /**
8
+ * A renderless component that provides the audio and video devices to the store
9
+ * This component must be a child of StreamVideoStoreProvider
10
+ * @internal
11
+ *
12
+ * @category Device Management
13
+ */
14
+ const MediaDevices = () => {
15
+ const setState = (0, contexts_1.useStreamVideoStoreSetState)();
16
+ const initialVideoDeviceSet = (0, react_1.useRef)(false);
17
+ (0, react_1.useEffect)(() => {
18
+ const setAudioDevices = (audioDevices) => {
19
+ setState({ audioDevices, currentAudioDevice: audioDevices[0] });
20
+ };
21
+ const subscription = (0, video_client_1.getAudioDevices)().subscribe(setAudioDevices);
22
+ return () => subscription.unsubscribe();
23
+ }, [setState]);
24
+ (0, react_1.useEffect)(() => {
25
+ const setVideoDevices = (videoDevices) => {
26
+ if (videoDevices.length > 0 && !initialVideoDeviceSet.current) {
27
+ const frontFacingVideoDevice = videoDevices.find((videoDevice) => videoDevice.kind === 'videoinput' && videoDevice.facing === 'front');
28
+ const initialVideoDevice = frontFacingVideoDevice ?? videoDevices[0];
29
+ if (initialVideoDevice) {
30
+ initialVideoDeviceSet.current = true;
31
+ setState({ videoDevices, currentVideoDevice: initialVideoDevice });
32
+ return;
33
+ }
34
+ }
35
+ setState({ videoDevices });
36
+ };
37
+ const subscription = (0, video_client_1.getVideoDevices)().subscribe(setVideoDevices);
38
+ return () => subscription.unsubscribe();
39
+ }, [setState]);
40
+ return null;
41
+ };
42
+ exports.MediaDevices = MediaDevices;
43
+ //# sourceMappingURL=MediaDevices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MediaDevices.js","sourceRoot":"","sources":["../../../src/providers/MediaDevices.tsx"],"names":[],"mappings":";;;AAAA,iCAAiD;AACjD,0DAA2E;AAC3E,0CAA2E;AAE3E;;;;;;GAMG;AACI,MAAM,YAAY,GAAG,GAA8B,EAAE;IAC1D,MAAM,QAAQ,GAAG,IAAA,sCAA2B,GAAE,CAAC;IAC/C,MAAM,qBAAqB,GAAG,IAAA,cAAM,EAAC,KAAK,CAAC,CAAC;IAE5C,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,eAAe,GAAG,CAAC,YAA+B,EAAE,EAAE;YAC1D,QAAQ,CAAC,EAAE,YAAY,EAAE,kBAAkB,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC;QACF,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAClE,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,eAAe,GAAG,CAAC,YAA+B,EAAE,EAAE;YAC1D,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,qBAAqB,CAAC,OAAO,EAAE;gBAC7D,MAAM,sBAAsB,GAAG,YAAY,CAAC,IAAI,CAC9C,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,IAAI,KAAK,YAAY,IAAI,WAAW,CAAC,MAAM,KAAK,OAAO,CACtE,CAAC;gBACF,MAAM,kBAAkB,GAAG,sBAAsB,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;gBACrE,IAAI,kBAAkB,EAAE;oBACtB,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAC;oBACrC,QAAQ,CAAC,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC,CAAC;oBACnE,OAAO;iBACR;aACF;YACD,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;QAC7B,CAAC,CAAC;QACF,MAAM,YAAY,GAAG,IAAA,8BAAe,GAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAClE,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAjCW,QAAA,YAAY,gBAiCvB"}
@@ -0,0 +1,81 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { Call } from '@stream-io/video-client';
3
+ type InitWithCallCID = {
4
+ /**
5
+ * The call type.
6
+ */
7
+ callType: string;
8
+ /**
9
+ * The call id.
10
+ */
11
+ callId: string;
12
+ /**
13
+ * The call instance to use.
14
+ */
15
+ call?: Call;
16
+ };
17
+ type InitWithCallInstance = {
18
+ /**
19
+ * The call instance to use.
20
+ */
21
+ call: Call | undefined;
22
+ /**
23
+ * The call type.
24
+ */
25
+ callType?: string;
26
+ /**
27
+ * The call id.
28
+ */
29
+ callId?: string;
30
+ };
31
+ type InitStreamCall = InitWithCallCID | InitWithCallInstance;
32
+ export type StreamCallProps = InitStreamCall & {
33
+ callCycleHandlers: CallCycleHandlersType;
34
+ };
35
+ /**
36
+ * StreamCall is a wrapper component that orchestrates the call life cycle logic and
37
+ * provides the call object to the children components.
38
+ * @param PropsWithChildren<StreamCallProps>
39
+ *
40
+ * @category Client State
41
+ */
42
+ export declare const StreamCall: ({ callId, callType, call, callCycleHandlers, children, }: PropsWithChildren<StreamCallProps>) => JSX.Element;
43
+ /**
44
+ * Exclude types from documentaiton site, but we should still add doc comments
45
+ * @internal
46
+ */
47
+ export type CallCycleHandlersType = {
48
+ /**
49
+ * Handler called after a call is joined. Mostly used for navigation and related actions.
50
+ */
51
+ onCallJoined?: () => void;
52
+ /**
53
+ * Handler called after a callee receives a call. Mostly used for navigation and related actions.
54
+ */
55
+ onCallIncoming?: () => void;
56
+ /**
57
+ * Handler called after a call is hung up by the caller. Mostly used for navigation and cleanup actions.
58
+ */
59
+ onCallHungUp?: () => void;
60
+ /**
61
+ * Handler called after a caller initiates a call. Mostly used for navigation and related actions.
62
+ */
63
+ onCallOutgoing?: () => void;
64
+ /**
65
+ * Handler called after a call is rejected. Mostly used for navigation and cleanup actions.
66
+ */
67
+ onCallRejected?: () => void;
68
+ /**
69
+ * Handler called when the call is in joining state. Mostly used for navigation and related actions.
70
+ */
71
+ onCallJoining?: () => void;
72
+ };
73
+ /**
74
+ * Exclude types from documentaiton site, but we should still add doc comments
75
+ * @internal
76
+ */
77
+ export type CallCycleLogicsWrapperProps = {
78
+ callCycleHandlers: CallCycleHandlersType;
79
+ };
80
+ export declare const CallCycleLogicsWrapper: ({ callCycleHandlers, children, }: PropsWithChildren<CallCycleLogicsWrapperProps>) => JSX.Element;
81
+ export {};
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.CallCycleLogicsWrapper = exports.StreamCall = void 0;
27
+ const video_react_bindings_1 = require("@stream-io/video-react-bindings");
28
+ const react_1 = __importStar(require("react"));
29
+ const video_client_1 = require("@stream-io/video-client");
30
+ const hooks_1 = require("../hooks");
31
+ /**
32
+ * StreamCall is a wrapper component that orchestrates the call life cycle logic and
33
+ * provides the call object to the children components.
34
+ * @param PropsWithChildren<StreamCallProps>
35
+ *
36
+ * @category Client State
37
+ */
38
+ const StreamCall = ({ callId, callType = 'default', call, callCycleHandlers = {}, children, }) => {
39
+ const videoClient = (0, video_react_bindings_1.useStreamVideoClient)();
40
+ const [activeCall, setActiveCall] = (0, react_1.useState)(() => {
41
+ if (call)
42
+ return call;
43
+ if (!videoClient || !callId || !callType)
44
+ return;
45
+ return videoClient?.call(callType, callId);
46
+ });
47
+ // Effect to create a new call with the given call id and type if the call doesn't exist
48
+ (0, react_1.useEffect)(() => {
49
+ if (!videoClient)
50
+ return;
51
+ if (callId && callType && !activeCall) {
52
+ const newCall = videoClient.call(callType, callId);
53
+ setActiveCall(newCall);
54
+ }
55
+ return () => {
56
+ if (activeCall?.state.callingState === video_client_1.CallingState.LEFT)
57
+ return;
58
+ activeCall?.leave().catch((e) => console.log(e));
59
+ setActiveCall(undefined);
60
+ };
61
+ }, [activeCall, callId, callType, videoClient]);
62
+ return (<video_react_bindings_1.StreamCallProvider call={activeCall}>
63
+ <exports.CallCycleLogicsWrapper callCycleHandlers={callCycleHandlers}>
64
+ {children}
65
+ </exports.CallCycleLogicsWrapper>
66
+ </video_react_bindings_1.StreamCallProvider>);
67
+ };
68
+ exports.StreamCall = StreamCall;
69
+ const CallCycleLogicsWrapper = ({ callCycleHandlers, children, }) => {
70
+ (0, hooks_1.useCallCycleEffect)(callCycleHandlers);
71
+ return <>{children}</>;
72
+ };
73
+ exports.CallCycleLogicsWrapper = CallCycleLogicsWrapper;
74
+ //# sourceMappingURL=StreamCall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamCall.js","sourceRoot":"","sources":["../../../src/providers/StreamCall.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAGyC;AACzC,+CAAsE;AACtE,0DAA6D;AAC7D,oCAA8C;AAqC9C;;;;;;GAMG;AACI,MAAM,UAAU,GAAG,CAAC,EACzB,MAAM,EACN,QAAQ,GAAG,SAAS,EACpB,IAAI,EACJ,iBAAiB,GAAG,EAAE,EACtB,QAAQ,GAC2B,EAAE,EAAE;IACvC,MAAM,WAAW,GAAG,IAAA,2CAAoB,GAAE,CAAC;IAC3C,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAmB,GAAG,EAAE;QAClE,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QACtB,IAAI,CAAC,WAAW,IAAI,CAAC,MAAM,IAAI,CAAC,QAAQ;YAAE,OAAO;QACjD,OAAO,WAAW,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,wFAAwF;IACxF,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,WAAW;YAAE,OAAO;QAEzB,IAAI,MAAM,IAAI,QAAQ,IAAI,CAAC,UAAU,EAAE;YACrC,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACnD,aAAa,CAAC,OAAO,CAAC,CAAC;SACxB;QAED,OAAO,GAAG,EAAE;YACV,IAAI,UAAU,EAAE,KAAK,CAAC,YAAY,KAAK,2BAAY,CAAC,IAAI;gBAAE,OAAO;YACjE,UAAU,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACjD,aAAa,CAAC,SAAS,CAAC,CAAC;QAC3B,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC;IAEhD,OAAO,CACL,CAAC,yCAAkB,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CACnC;MAAA,CAAC,8BAAsB,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CAC3D;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,8BAAsB,CAC1B;IAAA,EAAE,yCAAkB,CAAC,CACtB,CAAC;AACJ,CAAC,CAAC;AArCW,QAAA,UAAU,cAqCrB;AAyCK,MAAM,sBAAsB,GAAG,CAAC,EACrC,iBAAiB,EACjB,QAAQ,GACuC,EAAE,EAAE;IACnD,IAAA,0BAAkB,EAAC,iBAAiB,CAAC,CAAC;IAEtC,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC;AACzB,CAAC,CAAC;AAPW,QAAA,sBAAsB,0BAOjC"}
@@ -0,0 +1,10 @@
1
+ import { StreamVideoProps } from '@stream-io/video-react-bindings';
2
+ import { PropsWithChildren } from 'react';
3
+ /**
4
+ *
5
+ * @param props
6
+ * @returns
7
+ *
8
+ * @category Client State
9
+ */
10
+ export declare const StreamVideo: (props: PropsWithChildren<StreamVideoProps>) => JSX.Element;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.StreamVideo = void 0;
30
+ const video_react_bindings_1 = require("@stream-io/video-react-bindings");
31
+ const react_1 = __importStar(require("react"));
32
+ const StreamVideoContext_1 = require("../contexts/StreamVideoContext");
33
+ const netinfo_1 = __importDefault(require("@react-native-community/netinfo"));
34
+ const MediaDevices_1 = require("./MediaDevices");
35
+ /**
36
+ *
37
+ * @param props
38
+ * @returns
39
+ *
40
+ * @category Client State
41
+ */
42
+ const StreamVideo = (props) => {
43
+ const { client, children, translationsOverrides, i18nInstance, language } = props;
44
+ /**
45
+ * Effect to inform the coordinator about the online status of the app
46
+ */
47
+ (0, react_1.useEffect)(() => {
48
+ const unsubscribe = netinfo_1.default.addEventListener((state) => {
49
+ const { isConnected, isInternetReachable } = state;
50
+ const isOnline = isConnected !== false && isInternetReachable !== false;
51
+ // @ts-expect-error - due to being incompatible with DOM event type
52
+ client.streamClient.wsConnection?.onlineStatusChanged({
53
+ type: isOnline ? 'online' : 'offline',
54
+ });
55
+ });
56
+ return unsubscribe;
57
+ }, [client]);
58
+ return (<video_react_bindings_1.StreamVideo client={client} translationsOverrides={translationsOverrides} i18nInstance={i18nInstance} language={language}>
59
+ <StreamVideoContext_1.StreamVideoStoreProvider>
60
+ <MediaDevices_1.MediaDevices />
61
+ {children}
62
+ </StreamVideoContext_1.StreamVideoStoreProvider>
63
+ </video_react_bindings_1.StreamVideo>);
64
+ };
65
+ exports.StreamVideo = StreamVideo;
66
+ //# sourceMappingURL=StreamVideo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamVideo.js","sourceRoot":"","sources":["../../../src/providers/StreamVideo.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAGyC;AACzC,+CAA4D;AAC5D,uEAA0E;AAC1E,8EAAsD;AACtD,iDAA8C;AAE9C;;;;;;GAMG;AACI,MAAM,WAAW,GAAG,CAAC,KAA0C,EAAE,EAAE;IACxE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,EAAE,YAAY,EAAE,QAAQ,EAAE,GACvE,KAAK,CAAC;IAER;;OAEG;IACH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,WAAW,GAAG,iBAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,EAAE;YACrD,MAAM,EAAE,WAAW,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;YACnD,MAAM,QAAQ,GAAG,WAAW,KAAK,KAAK,IAAI,mBAAmB,KAAK,KAAK,CAAC;YACxE,mEAAmE;YACnE,MAAM,CAAC,YAAY,CAAC,YAAY,EAAE,mBAAmB,CAAC;gBACpD,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;aACtC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,WAAW,CAAC;IACrB,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,CACL,CAAC,kCAAmB,CAClB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,qBAAqB,CAAC,CAAC,qBAAqB,CAAC,CAC7C,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAEnB;MAAA,CAAC,6CAAwB,CACvB;QAAA,CAAC,2BAAY,CAAC,AAAD,EACb;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,6CAAwB,CAC5B;IAAA,EAAE,kCAAmB,CAAC,CACvB,CAAC;AACJ,CAAC,CAAC;AAjCW,QAAA,WAAW,eAiCtB"}
@@ -0,0 +1,2 @@
1
+ export * from './StreamVideo';
2
+ export * from './StreamCall';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./StreamVideo"), exports);
18
+ __exportStar(require("./StreamCall"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/providers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B"}
@@ -0,0 +1,2 @@
1
+ import { AvatarScheme } from './types';
2
+ export declare const avatar: AvatarScheme;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.avatar = void 0;
4
+ exports.avatar = {
5
+ xs: 50,
6
+ sm: 100,
7
+ md: 120,
8
+ lg: 180,
9
+ xl: 80,
10
+ };
11
+ //# sourceMappingURL=avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/theme/avatar.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAAiB;IAClC,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,EAAE;CACP,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ButtonScheme } from './types';
2
+ export declare const button: ButtonScheme;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.button = void 0;
4
+ exports.button = {
5
+ xs: { height: 40, width: 40, borderRadius: 20 },
6
+ sm: { height: 50, width: 50, borderRadius: 25 },
7
+ md: { height: 60, width: 60, borderRadius: 30 },
8
+ lg: { height: 70, width: 70, borderRadius: 35 },
9
+ xl: { height: 80, width: 80, borderRadius: 40 },
10
+ };
11
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/theme/button.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAAiB;IAClC,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;IAC/C,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;CAChD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ColorType } from './types';
2
+ declare const colors: ColorType;
3
+ export { colors };
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.colors = void 0;
4
+ const constants_1 = require("./constants");
5
+ const opacityToHex = (opacity) => {
6
+ return Math.round(opacity * 255)
7
+ .toString(16)
8
+ .padStart(2, '0');
9
+ };
10
+ const colors = {
11
+ light: {
12
+ primary: constants_1.palette.blue500,
13
+ error: constants_1.palette.red400,
14
+ info: constants_1.palette.green500,
15
+ static_black: constants_1.palette.grey950,
16
+ static_white: constants_1.palette.grey50,
17
+ static_overlay: constants_1.palette.grey950 + opacityToHex(0.85),
18
+ static_grey: constants_1.palette.grey700,
19
+ disabled: constants_1.palette.grey400,
20
+ text_low_emphasis: constants_1.palette.grey500,
21
+ text_high_emphasis: constants_1.palette.grey950,
22
+ controls_bg: constants_1.palette.grey50,
23
+ borders: constants_1.palette.grey300,
24
+ overlay: constants_1.palette.grey950 + opacityToHex(0.4),
25
+ overlay_dark: constants_1.palette.grey950 + opacityToHex(0.6),
26
+ bars: constants_1.palette.grey50,
27
+ content_bg: constants_1.palette.grey950 + opacityToHex(0.05),
28
+ },
29
+ dark: {
30
+ primary: constants_1.palette.blue500,
31
+ error: constants_1.palette.red400,
32
+ info: constants_1.palette.green500,
33
+ static_black: constants_1.palette.grey950,
34
+ static_white: constants_1.palette.grey50,
35
+ static_overlay: constants_1.palette.grey950 + opacityToHex(0.85),
36
+ static_grey: constants_1.palette.grey700,
37
+ disabled: constants_1.palette.grey600,
38
+ text_low_emphasis: constants_1.palette.grey500,
39
+ text_high_emphasis: constants_1.palette.grey50,
40
+ controls_bg: constants_1.palette.grey900,
41
+ borders: constants_1.palette.grey700,
42
+ overlay: constants_1.palette.grey950 + opacityToHex(0.4),
43
+ overlay_dark: constants_1.palette.grey50 + opacityToHex(0.6),
44
+ bars: constants_1.palette.grey900,
45
+ content_bg: constants_1.palette.grey950 + opacityToHex(0.05),
46
+ },
47
+ };
48
+ exports.colors = colors;
49
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../../src/theme/colors.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAGtC,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,EAAE;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;SAC7B,QAAQ,CAAC,EAAE,CAAC;SACZ,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,MAAM,GAAc;IACxB,KAAK,EAAE;QACL,OAAO,EAAE,mBAAO,CAAC,OAAO;QACxB,KAAK,EAAE,mBAAO,CAAC,MAAM;QACrB,IAAI,EAAE,mBAAO,CAAC,QAAQ;QACtB,YAAY,EAAE,mBAAO,CAAC,OAAO;QAC7B,YAAY,EAAE,mBAAO,CAAC,MAAM;QAC5B,cAAc,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC;QACpD,WAAW,EAAE,mBAAO,CAAC,OAAO;QAC5B,QAAQ,EAAE,mBAAO,CAAC,OAAO;QACzB,iBAAiB,EAAE,mBAAO,CAAC,OAAO;QAClC,kBAAkB,EAAE,mBAAO,CAAC,OAAO;QACnC,WAAW,EAAE,mBAAO,CAAC,MAAM;QAC3B,OAAO,EAAE,mBAAO,CAAC,OAAO;QACxB,OAAO,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC;QAC5C,YAAY,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC;QACjD,IAAI,EAAE,mBAAO,CAAC,MAAM;QACpB,UAAU,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC;KACjD;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,mBAAO,CAAC,OAAO;QACxB,KAAK,EAAE,mBAAO,CAAC,MAAM;QACrB,IAAI,EAAE,mBAAO,CAAC,QAAQ;QACtB,YAAY,EAAE,mBAAO,CAAC,OAAO;QAC7B,YAAY,EAAE,mBAAO,CAAC,MAAM;QAC5B,cAAc,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC;QACpD,WAAW,EAAE,mBAAO,CAAC,OAAO;QAC5B,QAAQ,EAAE,mBAAO,CAAC,OAAO;QACzB,iBAAiB,EAAE,mBAAO,CAAC,OAAO;QAClC,kBAAkB,EAAE,mBAAO,CAAC,MAAM;QAClC,WAAW,EAAE,mBAAO,CAAC,OAAO;QAC5B,OAAO,EAAE,mBAAO,CAAC,OAAO;QACxB,OAAO,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC;QAC5C,YAAY,EAAE,mBAAO,CAAC,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC;QAChD,IAAI,EAAE,mBAAO,CAAC,OAAO;QACrB,UAAU,EAAE,mBAAO,CAAC,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC;KACjD;CACF,CAAC;AAEO,wBAAM"}
@@ -0,0 +1,47 @@
1
+ declare const palette: {
2
+ green50: string;
3
+ green100: string;
4
+ green200: string;
5
+ green300: string;
6
+ green400: string;
7
+ green500: string;
8
+ green600: string;
9
+ green700: string;
10
+ green800: string;
11
+ green900: string;
12
+ green950: string;
13
+ blue50: string;
14
+ blue100: string;
15
+ blue200: string;
16
+ blue300: string;
17
+ blue400: string;
18
+ blue500: string;
19
+ blue600: string;
20
+ blue700: string;
21
+ blue800: string;
22
+ blue900: string;
23
+ blue950: string;
24
+ red50: string;
25
+ red100: string;
26
+ red200: string;
27
+ red300: string;
28
+ red400: string;
29
+ red500: string;
30
+ red600: string;
31
+ red700: string;
32
+ red800: string;
33
+ red900: string;
34
+ red950: string;
35
+ grey50: string;
36
+ grey100: string;
37
+ grey200: string;
38
+ grey300: string;
39
+ grey400: string;
40
+ grey500: string;
41
+ grey600: string;
42
+ grey700: string;
43
+ grey800: string;
44
+ grey900: string;
45
+ grey950: string;
46
+ };
47
+ export { palette };
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.palette = void 0;
4
+ const ref = {
5
+ palette: {
6
+ green50: '#F6FEF9',
7
+ green100: '#E9F1FF',
8
+ green200: '#A6F2C6',
9
+ green300: '#79ECA9',
10
+ green400: '#4CE68C',
11
+ green500: '#20E070',
12
+ green600: '#19B359',
13
+ green700: '#138643',
14
+ green800: '#0D592C',
15
+ green900: '#062D16',
16
+ green950: '#041B0D',
17
+ blue50: '#F5FAFF',
18
+ blue100: '#E0F0FF',
19
+ blue200: '#CCDFFF',
20
+ blue300: '#669FFF',
21
+ blue400: '#337EFF',
22
+ blue500: '#005FFF',
23
+ blue600: '#004CCC',
24
+ blue700: '#003999',
25
+ blue800: '#002666',
26
+ blue900: '#00163D',
27
+ blue950: '#000D24',
28
+ red50: '#FFF5F5',
29
+ red100: '#FFE5E7',
30
+ red200: '#FF999F',
31
+ red300: '#FF666E',
32
+ red400: '#FF3742',
33
+ red500: '#FF000E',
34
+ red600: '#CC000B',
35
+ red700: '#990008',
36
+ red800: '#660006',
37
+ red900: '#330003',
38
+ red950: '#1F0002',
39
+ grey50: '#FFFFFF',
40
+ grey100: '#F7F7F8',
41
+ grey200: '#E9EAED',
42
+ grey300: '#DBDDE1',
43
+ grey400: '#B4B7BB',
44
+ grey500: '#72767E',
45
+ grey600: '#4C525C',
46
+ grey700: '#272A30',
47
+ grey800: '#1C1E22',
48
+ grey900: '#121416',
49
+ grey950: '#080707',
50
+ },
51
+ };
52
+ const { palette } = ref;
53
+ exports.palette = palette;
54
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/theme/constants.ts"],"names":[],"mappings":";;;AAAA,MAAM,GAAG,GAAG;IACV,OAAO,EAAE;QACP,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;KACnB;CACF,CAAC;AAEF,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC;AACf,0BAAO"}
@@ -0,0 +1,2 @@
1
+ import { FontStyle, FontTypes } from './types';
2
+ export declare const fonts: Record<FontTypes, FontStyle>;