@stream-io/video-react-sdk 0.0.1-alpha.100

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 (454) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/LICENSE +219 -0
  3. package/README.md +5 -0
  4. package/dist/css/styles.css +2244 -0
  5. package/dist/css/styles.css.map +1 -0
  6. package/dist/index.d.ts +6 -0
  7. package/dist/index.js +15 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/src/components/Avatar/Avatar.d.ts +14 -0
  10. package/dist/src/components/Avatar/Avatar.js +11 -0
  11. package/dist/src/components/Avatar/Avatar.js.map +1 -0
  12. package/dist/src/components/Avatar/index.d.ts +1 -0
  13. package/dist/src/components/Avatar/index.js +2 -0
  14. package/dist/src/components/Avatar/index.js.map +1 -0
  15. package/dist/src/components/Button/CompositeButton.d.ts +16 -0
  16. package/dist/src/components/Button/CompositeButton.js +13 -0
  17. package/dist/src/components/Button/CompositeButton.js.map +1 -0
  18. package/dist/src/components/Button/CopyToClipboardButton.d.ts +27 -0
  19. package/dist/src/components/Button/CopyToClipboardButton.js +54 -0
  20. package/dist/src/components/Button/CopyToClipboardButton.js.map +1 -0
  21. package/dist/src/components/Button/IconButton.d.ts +7 -0
  22. package/dist/src/components/Button/IconButton.js +26 -0
  23. package/dist/src/components/Button/IconButton.js.map +1 -0
  24. package/dist/src/components/Button/TextButton.d.ts +2 -0
  25. package/dist/src/components/Button/TextButton.js +17 -0
  26. package/dist/src/components/Button/TextButton.js.map +1 -0
  27. package/dist/src/components/Button/index.d.ts +4 -0
  28. package/dist/src/components/Button/index.js +5 -0
  29. package/dist/src/components/Button/index.js.map +1 -0
  30. package/dist/src/components/CallControls/AcceptCallButton.d.ts +7 -0
  31. package/dist/src/components/CallControls/AcceptCallButton.js +27 -0
  32. package/dist/src/components/CallControls/AcceptCallButton.js.map +1 -0
  33. package/dist/src/components/CallControls/CallControls.d.ts +5 -0
  34. package/dist/src/components/CallControls/CallControls.js +5 -0
  35. package/dist/src/components/CallControls/CallControls.js.map +1 -0
  36. package/dist/src/components/CallControls/CallStatsButton.d.ts +2 -0
  37. package/dist/src/components/CallControls/CallStatsButton.js +8 -0
  38. package/dist/src/components/CallControls/CallStatsButton.js.map +1 -0
  39. package/dist/src/components/CallControls/CancelCallButton.d.ts +7 -0
  40. package/dist/src/components/CallControls/CancelCallButton.js +27 -0
  41. package/dist/src/components/CallControls/CancelCallButton.js.map +1 -0
  42. package/dist/src/components/CallControls/ReactionsButton.d.ts +11 -0
  43. package/dist/src/components/CallControls/ReactionsButton.js +32 -0
  44. package/dist/src/components/CallControls/ReactionsButton.js.map +1 -0
  45. package/dist/src/components/CallControls/RecordCallButton.d.ts +5 -0
  46. package/dist/src/components/CallControls/RecordCallButton.js +55 -0
  47. package/dist/src/components/CallControls/RecordCallButton.js.map +1 -0
  48. package/dist/src/components/CallControls/ScreenShareButton.d.ts +5 -0
  49. package/dist/src/components/CallControls/ScreenShareButton.js +54 -0
  50. package/dist/src/components/CallControls/ScreenShareButton.js.map +1 -0
  51. package/dist/src/components/CallControls/ToggleAudioButton.d.ts +9 -0
  52. package/dist/src/components/CallControls/ToggleAudioButton.js +73 -0
  53. package/dist/src/components/CallControls/ToggleAudioButton.js.map +1 -0
  54. package/dist/src/components/CallControls/ToggleAudioOutputButton.d.ts +5 -0
  55. package/dist/src/components/CallControls/ToggleAudioOutputButton.js +9 -0
  56. package/dist/src/components/CallControls/ToggleAudioOutputButton.js.map +1 -0
  57. package/dist/src/components/CallControls/ToggleVideoButton.d.ts +10 -0
  58. package/dist/src/components/CallControls/ToggleVideoButton.js +70 -0
  59. package/dist/src/components/CallControls/ToggleVideoButton.js.map +1 -0
  60. package/dist/src/components/CallControls/index.d.ts +10 -0
  61. package/dist/src/components/CallControls/index.js +11 -0
  62. package/dist/src/components/CallControls/index.js.map +1 -0
  63. package/dist/src/components/CallParticipantsList/BlockedUserListing.d.ts +4 -0
  64. package/dist/src/components/CallParticipantsList/BlockedUserListing.js +18 -0
  65. package/dist/src/components/CallParticipantsList/BlockedUserListing.js.map +1 -0
  66. package/dist/src/components/CallParticipantsList/CallParticipantListHeader.d.ts +6 -0
  67. package/dist/src/components/CallParticipantsList/CallParticipantListHeader.js +7 -0
  68. package/dist/src/components/CallParticipantsList/CallParticipantListHeader.js.map +1 -0
  69. package/dist/src/components/CallParticipantsList/CallParticipantListing.d.ts +8 -0
  70. package/dist/src/components/CallParticipantsList/CallParticipantListing.js +4 -0
  71. package/dist/src/components/CallParticipantsList/CallParticipantListing.js.map +1 -0
  72. package/dist/src/components/CallParticipantsList/CallParticipantListingItem.d.ts +16 -0
  73. package/dist/src/components/CallParticipantsList/CallParticipantListingItem.js +85 -0
  74. package/dist/src/components/CallParticipantsList/CallParticipantListingItem.js.map +1 -0
  75. package/dist/src/components/CallParticipantsList/CallParticipantsList.d.ts +15 -0
  76. package/dist/src/components/CallParticipantsList/CallParticipantsList.js +81 -0
  77. package/dist/src/components/CallParticipantsList/CallParticipantsList.js.map +1 -0
  78. package/dist/src/components/CallParticipantsList/EmptyParticipantSearchList.d.ts +2 -0
  79. package/dist/src/components/CallParticipantsList/EmptyParticipantSearchList.js +5 -0
  80. package/dist/src/components/CallParticipantsList/EmptyParticipantSearchList.js.map +1 -0
  81. package/dist/src/components/CallParticipantsList/index.d.ts +3 -0
  82. package/dist/src/components/CallParticipantsList/index.js +4 -0
  83. package/dist/src/components/CallParticipantsList/index.js.map +1 -0
  84. package/dist/src/components/CallRecordingList/CallRecordingList.d.ts +20 -0
  85. package/dist/src/components/CallRecordingList/CallRecordingList.js +9 -0
  86. package/dist/src/components/CallRecordingList/CallRecordingList.js.map +1 -0
  87. package/dist/src/components/CallRecordingList/CallRecordingListHeader.d.ts +7 -0
  88. package/dist/src/components/CallRecordingList/CallRecordingListHeader.js +8 -0
  89. package/dist/src/components/CallRecordingList/CallRecordingListHeader.js.map +1 -0
  90. package/dist/src/components/CallRecordingList/CallRecordingListItem.d.ts +7 -0
  91. package/dist/src/components/CallRecordingList/CallRecordingListItem.js +11 -0
  92. package/dist/src/components/CallRecordingList/CallRecordingListItem.js.map +1 -0
  93. package/dist/src/components/CallRecordingList/EmptyCallRecordingListing.d.ts +2 -0
  94. package/dist/src/components/CallRecordingList/EmptyCallRecordingListing.js +5 -0
  95. package/dist/src/components/CallRecordingList/EmptyCallRecordingListing.js.map +1 -0
  96. package/dist/src/components/CallRecordingList/LoadingCallRecordingListing.d.ts +7 -0
  97. package/dist/src/components/CallRecordingList/LoadingCallRecordingListing.js +7 -0
  98. package/dist/src/components/CallRecordingList/LoadingCallRecordingListing.js.map +1 -0
  99. package/dist/src/components/CallRecordingList/index.d.ts +5 -0
  100. package/dist/src/components/CallRecordingList/index.js +6 -0
  101. package/dist/src/components/CallRecordingList/index.js.map +1 -0
  102. package/dist/src/components/CallStats/CallStats.d.ts +6 -0
  103. package/dist/src/components/CallStats/CallStats.js +69 -0
  104. package/dist/src/components/CallStats/CallStats.js.map +1 -0
  105. package/dist/src/components/CallStats/CallStatsLatencyChart.d.ts +7 -0
  106. package/dist/src/components/CallStats/CallStatsLatencyChart.js +39 -0
  107. package/dist/src/components/CallStats/CallStatsLatencyChart.js.map +1 -0
  108. package/dist/src/components/CallStats/index.d.ts +2 -0
  109. package/dist/src/components/CallStats/index.js +3 -0
  110. package/dist/src/components/CallStats/index.js.map +1 -0
  111. package/dist/src/components/Debug/DebugParticipantPublishQuality.d.ts +6 -0
  112. package/dist/src/components/Debug/DebugParticipantPublishQuality.js +46 -0
  113. package/dist/src/components/Debug/DebugParticipantPublishQuality.js.map +1 -0
  114. package/dist/src/components/Debug/DebugStatsView.d.ts +7 -0
  115. package/dist/src/components/Debug/DebugStatsView.js +51 -0
  116. package/dist/src/components/Debug/DebugStatsView.js.map +1 -0
  117. package/dist/src/components/Debug/useIsDebugMode.d.ts +5 -0
  118. package/dist/src/components/Debug/useIsDebugMode.js +18 -0
  119. package/dist/src/components/Debug/useIsDebugMode.js.map +1 -0
  120. package/dist/src/components/DeviceSettings/DeviceSelector.d.ts +7 -0
  121. package/dist/src/components/DeviceSettings/DeviceSelector.js +26 -0
  122. package/dist/src/components/DeviceSettings/DeviceSelector.js.map +1 -0
  123. package/dist/src/components/DeviceSettings/DeviceSelectorAudio.d.ts +9 -0
  124. package/dist/src/components/DeviceSettings/DeviceSelectorAudio.js +20 -0
  125. package/dist/src/components/DeviceSettings/DeviceSelectorAudio.js.map +1 -0
  126. package/dist/src/components/DeviceSettings/DeviceSelectorVideo.d.ts +5 -0
  127. package/dist/src/components/DeviceSettings/DeviceSelectorVideo.js +11 -0
  128. package/dist/src/components/DeviceSettings/DeviceSelectorVideo.js.map +1 -0
  129. package/dist/src/components/DeviceSettings/DeviceSettings.d.ts +2 -0
  130. package/dist/src/components/DeviceSettings/DeviceSettings.js +15 -0
  131. package/dist/src/components/DeviceSettings/DeviceSettings.js.map +1 -0
  132. package/dist/src/components/DeviceSettings/index.d.ts +4 -0
  133. package/dist/src/components/DeviceSettings/index.js +5 -0
  134. package/dist/src/components/DeviceSettings/index.js.map +1 -0
  135. package/dist/src/components/Icon/Icon.d.ts +5 -0
  136. package/dist/src/components/Icon/Icon.js +4 -0
  137. package/dist/src/components/Icon/Icon.js.map +1 -0
  138. package/dist/src/components/Icon/index.d.ts +1 -0
  139. package/dist/src/components/Icon/index.js +2 -0
  140. package/dist/src/components/Icon/index.js.map +1 -0
  141. package/dist/src/components/LoadingIndicator/LoadingIndicator.d.ts +11 -0
  142. package/dist/src/components/LoadingIndicator/LoadingIndicator.js +6 -0
  143. package/dist/src/components/LoadingIndicator/LoadingIndicator.js.map +1 -0
  144. package/dist/src/components/LoadingIndicator/index.d.ts +1 -0
  145. package/dist/src/components/LoadingIndicator/index.js +2 -0
  146. package/dist/src/components/LoadingIndicator/index.js.map +1 -0
  147. package/dist/src/components/Menu/GenericMenu.d.ts +3 -0
  148. package/dist/src/components/Menu/GenericMenu.js +20 -0
  149. package/dist/src/components/Menu/GenericMenu.js.map +1 -0
  150. package/dist/src/components/Menu/MenuToggle.d.ts +12 -0
  151. package/dist/src/components/Menu/MenuToggle.js +40 -0
  152. package/dist/src/components/Menu/MenuToggle.js.map +1 -0
  153. package/dist/src/components/Menu/index.d.ts +2 -0
  154. package/dist/src/components/Menu/index.js +3 -0
  155. package/dist/src/components/Menu/index.js.map +1 -0
  156. package/dist/src/components/Notification/Notification.d.ts +11 -0
  157. package/dist/src/components/Notification/Notification.js +25 -0
  158. package/dist/src/components/Notification/Notification.js.map +1 -0
  159. package/dist/src/components/Notification/PermissionNotification.d.ts +33 -0
  160. package/dist/src/components/Notification/PermissionNotification.js +26 -0
  161. package/dist/src/components/Notification/PermissionNotification.js.map +1 -0
  162. package/dist/src/components/Notification/SpeakingWhileMutedNotification.d.ts +3 -0
  163. package/dist/src/components/Notification/SpeakingWhileMutedNotification.js +47 -0
  164. package/dist/src/components/Notification/SpeakingWhileMutedNotification.js.map +1 -0
  165. package/dist/src/components/Notification/index.d.ts +3 -0
  166. package/dist/src/components/Notification/index.js +4 -0
  167. package/dist/src/components/Notification/index.js.map +1 -0
  168. package/dist/src/components/PendingCallPanel/PendingCallControls.d.ts +2 -0
  169. package/dist/src/components/PendingCallPanel/PendingCallControls.js +13 -0
  170. package/dist/src/components/PendingCallPanel/PendingCallControls.js.map +1 -0
  171. package/dist/src/components/PendingCallPanel/PendingCallPanel.d.ts +14 -0
  172. package/dist/src/components/PendingCallPanel/PendingCallPanel.js +43 -0
  173. package/dist/src/components/PendingCallPanel/PendingCallPanel.js.map +1 -0
  174. package/dist/src/components/PendingCallPanel/index.d.ts +2 -0
  175. package/dist/src/components/PendingCallPanel/index.js +3 -0
  176. package/dist/src/components/PendingCallPanel/index.js.map +1 -0
  177. package/dist/src/components/Permissions/PermissionRequests.d.ts +8 -0
  178. package/dist/src/components/Permissions/PermissionRequests.js +103 -0
  179. package/dist/src/components/Permissions/PermissionRequests.js.map +1 -0
  180. package/dist/src/components/Permissions/index.d.ts +1 -0
  181. package/dist/src/components/Permissions/index.js +2 -0
  182. package/dist/src/components/Permissions/index.js.map +1 -0
  183. package/dist/src/components/Reaction/Reaction.d.ts +10 -0
  184. package/dist/src/components/Reaction/Reaction.js +28 -0
  185. package/dist/src/components/Reaction/Reaction.js.map +1 -0
  186. package/dist/src/components/Reaction/index.d.ts +1 -0
  187. package/dist/src/components/Reaction/index.js +2 -0
  188. package/dist/src/components/Reaction/index.js.map +1 -0
  189. package/dist/src/components/Search/SearchInput.d.ts +14 -0
  190. package/dist/src/components/Search/SearchInput.js +34 -0
  191. package/dist/src/components/Search/SearchInput.js.map +1 -0
  192. package/dist/src/components/Search/SearchResults.d.ts +14 -0
  193. package/dist/src/components/Search/SearchResults.js +12 -0
  194. package/dist/src/components/Search/SearchResults.js.map +1 -0
  195. package/dist/src/components/Search/hooks/index.d.ts +1 -0
  196. package/dist/src/components/Search/hooks/index.js +2 -0
  197. package/dist/src/components/Search/hooks/index.js.map +1 -0
  198. package/dist/src/components/Search/hooks/useSearch.d.ts +15 -0
  199. package/dist/src/components/Search/hooks/useSearch.js +39 -0
  200. package/dist/src/components/Search/hooks/useSearch.js.map +1 -0
  201. package/dist/src/components/Search/index.d.ts +2 -0
  202. package/dist/src/components/Search/index.js +3 -0
  203. package/dist/src/components/Search/index.js.map +1 -0
  204. package/dist/src/components/StreamCall/CallParticipantsScreenView.d.ts +5 -0
  205. package/dist/src/components/StreamCall/CallParticipantsScreenView.js +34 -0
  206. package/dist/src/components/StreamCall/CallParticipantsScreenView.js.map +1 -0
  207. package/dist/src/components/StreamCall/CallParticipantsView.d.ts +5 -0
  208. package/dist/src/components/StreamCall/CallParticipantsView.js +10 -0
  209. package/dist/src/components/StreamCall/CallParticipantsView.js.map +1 -0
  210. package/dist/src/components/StreamCall/Stage.d.ts +8 -0
  211. package/dist/src/components/StreamCall/Stage.js +13 -0
  212. package/dist/src/components/StreamCall/Stage.js.map +1 -0
  213. package/dist/src/components/StreamCall/index.d.ts +3 -0
  214. package/dist/src/components/StreamCall/index.js +4 -0
  215. package/dist/src/components/StreamCall/index.js.map +1 -0
  216. package/dist/src/components/StreamTheme/StreamTheme.d.ts +5 -0
  217. package/dist/src/components/StreamTheme/StreamTheme.js +18 -0
  218. package/dist/src/components/StreamTheme/StreamTheme.js.map +1 -0
  219. package/dist/src/components/StreamTheme/index.d.ts +1 -0
  220. package/dist/src/components/StreamTheme/index.js +2 -0
  221. package/dist/src/components/StreamTheme/index.js.map +1 -0
  222. package/dist/src/components/Tooltip/Tooltip.d.ts +15 -0
  223. package/dist/src/components/Tooltip/Tooltip.js +22 -0
  224. package/dist/src/components/Tooltip/Tooltip.js.map +1 -0
  225. package/dist/src/components/Tooltip/WithTooltip.d.ts +5 -0
  226. package/dist/src/components/Tooltip/WithTooltip.js +23 -0
  227. package/dist/src/components/Tooltip/WithTooltip.js.map +1 -0
  228. package/dist/src/components/Tooltip/hooks/index.d.ts +1 -0
  229. package/dist/src/components/Tooltip/hooks/index.js +2 -0
  230. package/dist/src/components/Tooltip/hooks/index.js.map +1 -0
  231. package/dist/src/components/Tooltip/hooks/useEnterLeaveHandlers.d.ts +6 -0
  232. package/dist/src/components/Tooltip/hooks/useEnterLeaveHandlers.js +14 -0
  233. package/dist/src/components/Tooltip/hooks/useEnterLeaveHandlers.js.map +1 -0
  234. package/dist/src/components/Tooltip/index.d.ts +2 -0
  235. package/dist/src/components/Tooltip/index.js +3 -0
  236. package/dist/src/components/Tooltip/index.js.map +1 -0
  237. package/dist/src/components/Video/VideoPreview.d.ts +28 -0
  238. package/dist/src/components/Video/VideoPreview.js +75 -0
  239. package/dist/src/components/Video/VideoPreview.js.map +1 -0
  240. package/dist/src/components/Video/index.d.ts +4 -0
  241. package/dist/src/components/Video/index.js +5 -0
  242. package/dist/src/components/Video/index.js.map +1 -0
  243. package/dist/src/components/index.d.ts +16 -0
  244. package/dist/src/components/index.js +17 -0
  245. package/dist/src/components/index.js.map +1 -0
  246. package/dist/src/core/components/Audio/Audio.d.ts +6 -0
  247. package/dist/src/core/components/Audio/Audio.js +39 -0
  248. package/dist/src/core/components/Audio/Audio.js.map +1 -0
  249. package/dist/src/core/components/Audio/index.d.ts +1 -0
  250. package/dist/src/core/components/Audio/index.js +2 -0
  251. package/dist/src/core/components/Audio/index.js.map +1 -0
  252. package/dist/src/core/components/CallLayout/PaginatedGridLayout.d.ts +17 -0
  253. package/dist/src/core/components/CallLayout/PaginatedGridLayout.js +38 -0
  254. package/dist/src/core/components/CallLayout/PaginatedGridLayout.js.map +1 -0
  255. package/dist/src/core/components/CallLayout/SpeakerLayout.d.ts +8 -0
  256. package/dist/src/core/components/CallLayout/SpeakerLayout.js +74 -0
  257. package/dist/src/core/components/CallLayout/SpeakerLayout.js.map +1 -0
  258. package/dist/src/core/components/CallLayout/index.d.ts +2 -0
  259. package/dist/src/core/components/CallLayout/index.js +3 -0
  260. package/dist/src/core/components/CallLayout/index.js.map +1 -0
  261. package/dist/src/core/components/ParticipantView/DefaultParticipantViewUI.d.ts +18 -0
  262. package/dist/src/core/components/ParticipantView/DefaultParticipantViewUI.js +36 -0
  263. package/dist/src/core/components/ParticipantView/DefaultParticipantViewUI.js.map +1 -0
  264. package/dist/src/core/components/ParticipantView/ParticipantView.d.ts +79 -0
  265. package/dist/src/core/components/ParticipantView/ParticipantView.js +33 -0
  266. package/dist/src/core/components/ParticipantView/ParticipantView.js.map +1 -0
  267. package/dist/src/core/components/ParticipantView/index.d.ts +2 -0
  268. package/dist/src/core/components/ParticipantView/index.js +3 -0
  269. package/dist/src/core/components/ParticipantView/index.js.map +1 -0
  270. package/dist/src/core/components/StreamCall/StreamCall.d.ts +73 -0
  271. package/dist/src/core/components/StreamCall/StreamCall.js +60 -0
  272. package/dist/src/core/components/StreamCall/StreamCall.js.map +1 -0
  273. package/dist/src/core/components/StreamCall/index.d.ts +1 -0
  274. package/dist/src/core/components/StreamCall/index.js +2 -0
  275. package/dist/src/core/components/StreamCall/index.js.map +1 -0
  276. package/dist/src/core/components/Video/BaseVideo.d.ts +9 -0
  277. package/dist/src/core/components/Video/BaseVideo.js +48 -0
  278. package/dist/src/core/components/Video/BaseVideo.js.map +1 -0
  279. package/dist/src/core/components/Video/DefaultVideoPlaceholder.d.ts +6 -0
  280. package/dist/src/core/components/Video/DefaultVideoPlaceholder.js +9 -0
  281. package/dist/src/core/components/Video/DefaultVideoPlaceholder.js.map +1 -0
  282. package/dist/src/core/components/Video/Video.d.ts +13 -0
  283. package/dist/src/core/components/Video/Video.js +154 -0
  284. package/dist/src/core/components/Video/Video.js.map +1 -0
  285. package/dist/src/core/components/Video/index.d.ts +2 -0
  286. package/dist/src/core/components/Video/index.js +3 -0
  287. package/dist/src/core/components/Video/index.js.map +1 -0
  288. package/dist/src/core/components/index.d.ts +6 -0
  289. package/dist/src/core/components/index.js +6 -0
  290. package/dist/src/core/components/index.js.map +1 -0
  291. package/dist/src/core/contexts/MediaDevicesContext.d.ts +180 -0
  292. package/dist/src/core/contexts/MediaDevicesContext.js +177 -0
  293. package/dist/src/core/contexts/MediaDevicesContext.js.map +1 -0
  294. package/dist/src/core/contexts/index.d.ts +1 -0
  295. package/dist/src/core/contexts/index.js +2 -0
  296. package/dist/src/core/contexts/index.js.map +1 -0
  297. package/dist/src/core/hooks/index.d.ts +4 -0
  298. package/dist/src/core/hooks/index.js +5 -0
  299. package/dist/src/core/hooks/index.js.map +1 -0
  300. package/dist/src/core/hooks/useAudioPublisher.d.ts +12 -0
  301. package/dist/src/core/hooks/useAudioPublisher.js +95 -0
  302. package/dist/src/core/hooks/useAudioPublisher.js.map +1 -0
  303. package/dist/src/core/hooks/useDevices.d.ts +80 -0
  304. package/dist/src/core/hooks/useDevices.js +113 -0
  305. package/dist/src/core/hooks/useDevices.js.map +1 -0
  306. package/dist/src/core/hooks/useTrackElementVisibility.d.ts +6 -0
  307. package/dist/src/core/hooks/useTrackElementVisibility.js +27 -0
  308. package/dist/src/core/hooks/useTrackElementVisibility.js.map +1 -0
  309. package/dist/src/core/hooks/useVideoPublisher.d.ts +12 -0
  310. package/dist/src/core/hooks/useVideoPublisher.js +120 -0
  311. package/dist/src/core/hooks/useVideoPublisher.js.map +1 -0
  312. package/dist/src/core/index.d.ts +3 -0
  313. package/dist/src/core/index.js +4 -0
  314. package/dist/src/core/index.js.map +1 -0
  315. package/dist/src/hooks/index.d.ts +2 -0
  316. package/dist/src/hooks/index.js +3 -0
  317. package/dist/src/hooks/index.js.map +1 -0
  318. package/dist/src/hooks/useFloatingUIPreset.d.ts +9 -0
  319. package/dist/src/hooks/useFloatingUIPreset.js +30 -0
  320. package/dist/src/hooks/useFloatingUIPreset.js.map +1 -0
  321. package/dist/src/hooks/useScrollPosition.d.ts +6 -0
  322. package/dist/src/hooks/useScrollPosition.js +63 -0
  323. package/dist/src/hooks/useScrollPosition.js.map +1 -0
  324. package/dist/src/types/components.d.ts +7 -0
  325. package/dist/src/types/components.js +2 -0
  326. package/dist/src/types/components.js.map +1 -0
  327. package/dist/src/types/index.d.ts +1 -0
  328. package/dist/src/types/index.js +2 -0
  329. package/dist/src/types/index.js.map +1 -0
  330. package/dist/src/utilities/applyElementToRef.d.ts +2 -0
  331. package/dist/src/utilities/applyElementToRef.js +8 -0
  332. package/dist/src/utilities/applyElementToRef.js.map +1 -0
  333. package/dist/src/utilities/chunk.d.ts +1 -0
  334. package/dist/src/utilities/chunk.js +5 -0
  335. package/dist/src/utilities/chunk.js.map +1 -0
  336. package/dist/src/utilities/index.d.ts +3 -0
  337. package/dist/src/utilities/index.js +4 -0
  338. package/dist/src/utilities/index.js.map +1 -0
  339. package/dist/src/utilities/isComponentType.d.ts +2 -0
  340. package/dist/src/utilities/isComponentType.js +7 -0
  341. package/dist/src/utilities/isComponentType.js.map +1 -0
  342. package/index.ts +18 -0
  343. package/package.json +51 -0
  344. package/src/components/Avatar/Avatar.tsx +45 -0
  345. package/src/components/Avatar/index.ts +1 -0
  346. package/src/components/Button/CompositeButton.tsx +50 -0
  347. package/src/components/Button/CopyToClipboardButton.tsx +129 -0
  348. package/src/components/Button/IconButton.tsx +32 -0
  349. package/src/components/Button/TextButton.tsx +12 -0
  350. package/src/components/Button/index.ts +4 -0
  351. package/src/components/CallControls/AcceptCallButton.tsx +36 -0
  352. package/src/components/CallControls/CallControls.tsx +26 -0
  353. package/src/components/CallControls/CallStatsButton.tsx +20 -0
  354. package/src/components/CallControls/CancelCallButton.tsx +36 -0
  355. package/src/components/CallControls/ReactionsButton.tsx +74 -0
  356. package/src/components/CallControls/RecordCallButton.tsx +73 -0
  357. package/src/components/CallControls/ScreenShareButton.tsx +84 -0
  358. package/src/components/CallControls/ToggleAudioButton.tsx +123 -0
  359. package/src/components/CallControls/ToggleAudioOutputButton.tsx +21 -0
  360. package/src/components/CallControls/ToggleVideoButton.tsx +116 -0
  361. package/src/components/CallControls/index.ts +10 -0
  362. package/src/components/CallParticipantsList/BlockedUserListing.tsx +37 -0
  363. package/src/components/CallParticipantsList/CallParticipantListHeader.tsx +29 -0
  364. package/src/components/CallParticipantsList/CallParticipantListing.tsx +22 -0
  365. package/src/components/CallParticipantsList/CallParticipantListingItem.tsx +273 -0
  366. package/src/components/CallParticipantsList/CallParticipantsList.tsx +255 -0
  367. package/src/components/CallParticipantsList/EmptyParticipantSearchList.tsx +7 -0
  368. package/src/components/CallParticipantsList/index.ts +3 -0
  369. package/src/components/CallRecordingList/CallRecordingList.tsx +60 -0
  370. package/src/components/CallRecordingList/CallRecordingListHeader.tsx +29 -0
  371. package/src/components/CallRecordingList/CallRecordingListItem.tsx +67 -0
  372. package/src/components/CallRecordingList/EmptyCallRecordingListing.tsx +11 -0
  373. package/src/components/CallRecordingList/LoadingCallRecordingListing.tsx +21 -0
  374. package/src/components/CallRecordingList/index.ts +5 -0
  375. package/src/components/CallStats/CallStats.tsx +162 -0
  376. package/src/components/CallStats/CallStatsLatencyChart.tsx +58 -0
  377. package/src/components/CallStats/index.ts +2 -0
  378. package/src/components/Debug/DebugParticipantPublishQuality.tsx +62 -0
  379. package/src/components/Debug/DebugStatsView.tsx +108 -0
  380. package/src/components/Debug/useIsDebugMode.ts +24 -0
  381. package/src/components/DeviceSettings/DeviceSelector.tsx +106 -0
  382. package/src/components/DeviceSettings/DeviceSelectorAudio.tsx +57 -0
  383. package/src/components/DeviceSettings/DeviceSelectorVideo.tsx +22 -0
  384. package/src/components/DeviceSettings/DeviceSettings.tsx +39 -0
  385. package/src/components/DeviceSettings/index.ts +4 -0
  386. package/src/components/Icon/Icon.tsx +11 -0
  387. package/src/components/Icon/index.ts +1 -0
  388. package/src/components/LoadingIndicator/LoadingIndicator.tsx +28 -0
  389. package/src/components/LoadingIndicator/index.ts +1 -0
  390. package/src/components/Menu/GenericMenu.tsx +16 -0
  391. package/src/components/Menu/MenuToggle.tsx +81 -0
  392. package/src/components/Menu/index.ts +2 -0
  393. package/src/components/Notification/Notification.tsx +61 -0
  394. package/src/components/Notification/PermissionNotification.tsx +97 -0
  395. package/src/components/Notification/SpeakingWhileMutedNotification.tsx +61 -0
  396. package/src/components/Notification/index.ts +3 -0
  397. package/src/components/PendingCallPanel/PendingCallControls.tsx +27 -0
  398. package/src/components/PendingCallPanel/PendingCallPanel.tsx +93 -0
  399. package/src/components/PendingCallPanel/index.ts +2 -0
  400. package/src/components/Permissions/PermissionRequests.tsx +176 -0
  401. package/src/components/Permissions/index.ts +1 -0
  402. package/src/components/Reaction/Reaction.tsx +48 -0
  403. package/src/components/Reaction/index.ts +1 -0
  404. package/src/components/Search/SearchInput.tsx +56 -0
  405. package/src/components/Search/SearchResults.tsx +40 -0
  406. package/src/components/Search/hooks/index.ts +1 -0
  407. package/src/components/Search/hooks/useSearch.ts +52 -0
  408. package/src/components/Search/index.ts +2 -0
  409. package/src/components/StreamCall/CallParticipantsScreenView.tsx +125 -0
  410. package/src/components/StreamCall/CallParticipantsView.tsx +24 -0
  411. package/src/components/StreamCall/Stage.tsx +22 -0
  412. package/src/components/StreamCall/index.ts +4 -0
  413. package/src/components/StreamTheme/StreamTheme.tsx +19 -0
  414. package/src/components/StreamTheme/index.ts +1 -0
  415. package/src/components/Tooltip/Tooltip.tsx +51 -0
  416. package/src/components/Tooltip/WithTooltip.tsx +39 -0
  417. package/src/components/Tooltip/hooks/index.ts +1 -0
  418. package/src/components/Tooltip/hooks/useEnterLeaveHandlers.ts +28 -0
  419. package/src/components/Tooltip/index.ts +2 -0
  420. package/src/components/Video/VideoPreview.tsx +152 -0
  421. package/src/components/Video/index.ts +4 -0
  422. package/src/components/index.ts +16 -0
  423. package/src/core/components/Audio/Audio.tsx +42 -0
  424. package/src/core/components/Audio/index.ts +1 -0
  425. package/src/core/components/CallLayout/PaginatedGridLayout.tsx +159 -0
  426. package/src/core/components/CallLayout/SpeakerLayout.tsx +231 -0
  427. package/src/core/components/CallLayout/index.ts +2 -0
  428. package/src/core/components/ParticipantView/DefaultParticipantViewUI.tsx +160 -0
  429. package/src/core/components/ParticipantView/ParticipantView.tsx +156 -0
  430. package/src/core/components/ParticipantView/index.ts +2 -0
  431. package/src/core/components/StreamCall/StreamCall.tsx +157 -0
  432. package/src/core/components/StreamCall/index.ts +1 -0
  433. package/src/core/components/Video/BaseVideo.tsx +53 -0
  434. package/src/core/components/Video/DefaultVideoPlaceholder.tsx +36 -0
  435. package/src/core/components/Video/Video.tsx +252 -0
  436. package/src/core/components/Video/index.ts +2 -0
  437. package/src/core/components/index.ts +8 -0
  438. package/src/core/contexts/MediaDevicesContext.tsx +416 -0
  439. package/src/core/contexts/index.ts +1 -0
  440. package/src/core/hooks/index.ts +4 -0
  441. package/src/core/hooks/useAudioPublisher.ts +124 -0
  442. package/src/core/hooks/useDevices.ts +161 -0
  443. package/src/core/hooks/useTrackElementVisibility.ts +44 -0
  444. package/src/core/hooks/useVideoPublisher.ts +152 -0
  445. package/src/core/index.ts +3 -0
  446. package/src/hooks/index.ts +2 -0
  447. package/src/hooks/useFloatingUIPreset.ts +50 -0
  448. package/src/hooks/useScrollPosition.ts +95 -0
  449. package/src/types/components.ts +7 -0
  450. package/src/types/index.ts +1 -0
  451. package/src/utilities/applyElementToRef.ts +12 -0
  452. package/src/utilities/chunk.ts +8 -0
  453. package/src/utilities/index.ts +3 -0
  454. package/src/utilities/isComponentType.ts +9 -0
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useContext, useMemo } from 'react';
3
+ import { forwardRef, useState, createContext, } from 'react';
4
+ import clsx from 'clsx';
5
+ import { SfuModels, } from '@stream-io/video-client';
6
+ import { Audio } from '../Audio';
7
+ import { Video } from '../Video';
8
+ import { useTrackElementVisibility } from '../../hooks';
9
+ import { DefaultParticipantViewUI } from './DefaultParticipantViewUI';
10
+ import { isComponentType, applyElementToRef } from '../../../utilities';
11
+ const ParticipantViewContext = createContext(undefined);
12
+ export const useParticipantViewContext = () => useContext(ParticipantViewContext);
13
+ export const ParticipantView = forwardRef(({ participant, sinkId, videoKind = 'video', muteAudio, refs, className, VideoPlaceholder, ParticipantViewUI = DefaultParticipantViewUI, }, ref) => {
14
+ const { audioStream, isLoggedInUser, isSpeaking, publishedTracks, sessionId, } = participant;
15
+ const hasAudio = publishedTracks.includes(SfuModels.TrackType.AUDIO);
16
+ const hasVideo = publishedTracks.includes(SfuModels.TrackType.VIDEO);
17
+ const [trackedElement, setTrackedElement] = useState(null);
18
+ // TODO: allow to pass custom ViewportTracker instance from props
19
+ useTrackElementVisibility({
20
+ sessionId,
21
+ trackedElement,
22
+ });
23
+ const participantViewContextValue = useMemo(() => ({ participant, participantViewElement: trackedElement }), [participant, trackedElement]);
24
+ return (_jsx("div", Object.assign({ ref: (element) => {
25
+ applyElementToRef(ref, element);
26
+ setTrackedElement(element);
27
+ }, className: clsx('str-video__participant-view', isSpeaking && 'str-video__participant-view--speaking', !hasVideo && 'str-video__participant-view--no-video', !hasAudio && 'str-video__participant-view--no-audio', className) }, { children: _jsxs(ParticipantViewContext.Provider, Object.assign({ value: participantViewContextValue }, { children: [_jsx(Audio
28
+ // mute the local participant, as we don't want to hear ourselves
29
+ , {
30
+ // mute the local participant, as we don't want to hear ourselves
31
+ muted: isLoggedInUser || muteAudio, sinkId: sinkId, audioStream: audioStream }), _jsx(Video, { VideoPlaceholder: VideoPlaceholder, participant: participant, kind: videoKind, refs: refs, autoPlay: true }), isComponentType(ParticipantViewUI) ? (_jsx(ParticipantViewUI, {})) : (ParticipantViewUI)] })) })));
32
+ });
33
+ //# sourceMappingURL=ParticipantView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParticipantView.js","sourceRoot":"","sources":["../../../../../src/core/components/ParticipantView/ParticipantView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EACL,UAAU,EAEV,QAAQ,EAER,aAAa,GACd,MAAM,OAAO,CAAC;AACf,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,SAAS,GAGV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,KAAK,EAAc,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AASxE,MAAM,sBAAsB,GAAG,aAAa,CAE1C,SAAS,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE,CAC5C,UAAU,CAAC,sBAAsB,CAAgC,CAAC;AA6CpE,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CACvC,CACE,EACE,WAAW,EACX,MAAM,EACN,SAAS,GAAG,OAAO,EACnB,SAAS,EACT,IAAI,EACJ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAAG,wBAAyC,GAC9D,EACD,GAAG,EACH,EAAE;IACF,MAAM,EACJ,WAAW,EACX,cAAc,EACd,UAAU,EACV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AC,CAAC,CACpC,KAAC,iBAAiB,KAAG,CACtB,CAAC,CAAC,CAAC,CACF,iBAAiB,CAClB,KAC+B,IAC9B,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './ParticipantView';
2
+ export * from './DefaultParticipantViewUI';
@@ -0,0 +1,3 @@
1
+ export * from './ParticipantView';
2
+ export * from './DefaultParticipantViewUI';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/components/ParticipantView/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { Call, JoinCallData } from '@stream-io/video-client';
3
+ import { MediaDevicesProviderProps } from '../../contexts';
4
+ type InitWithCallCID = {
5
+ /**
6
+ * The call type.
7
+ */
8
+ callType: string;
9
+ /**
10
+ * The call id.
11
+ */
12
+ callId: string;
13
+ /**
14
+ * The call instance to use.
15
+ */
16
+ call?: never;
17
+ };
18
+ type InitWithCallInstance = {
19
+ /**
20
+ * The call instance to use.
21
+ */
22
+ call: Call | undefined;
23
+ /**
24
+ * The call type.
25
+ */
26
+ callType?: never;
27
+ /**
28
+ * The call id.
29
+ */
30
+ callId?: never;
31
+ };
32
+ type InitStreamCall = InitWithCallCID | InitWithCallInstance;
33
+ export type StreamCallProps = InitStreamCall & {
34
+ /**
35
+ * If true, the call will be joined automatically.
36
+ * Set it to true if you want to join the call immediately.
37
+ * Useful for scenarios where you want to skip prompting the user to join the call.
38
+ *
39
+ * @default false.
40
+ */
41
+ autoJoin?: boolean;
42
+ /**
43
+ * If true, the call data will be loaded automatically from the server.
44
+ *
45
+ * This property is useful for the scenarios where you declaratively create
46
+ * the call instance by using the `callId` and `callType` props,
47
+ * and you have a UI that depends on the call metadata.
48
+ *
49
+ * @example
50
+ * ```jsx
51
+ * <StreamCall callId="call-id" callType="call-type" autoLoad>
52
+ * <CallMetadata /> // has access to `call.metadata` although not joined yet
53
+ * <CallUI />
54
+ * <CallControls />
55
+ * </StreamCall>
56
+ * ```
57
+ *
58
+ * This property is ignored if you pass the `call` prop or enable `autoJoin`.
59
+ *
60
+ * @default true.
61
+ */
62
+ autoLoad?: boolean;
63
+ /**
64
+ * An optional data to pass when joining the call.
65
+ */
66
+ data?: JoinCallData;
67
+ /**
68
+ * An optional props to pass to the `MediaDevicesProvider`.
69
+ */
70
+ mediaDevicesProviderProps?: MediaDevicesProviderProps;
71
+ };
72
+ export declare const StreamCall: ({ children, callId, callType, call, autoJoin, autoLoad, data, mediaDevicesProviderProps, }: PropsWithChildren<StreamCallProps>) => JSX.Element;
73
+ export {};
@@ -0,0 +1,60 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useEffect, useState } from 'react';
3
+ import { CallingState } from '@stream-io/video-client';
4
+ import { StreamCallProvider, useConnectedUser, useStreamVideoClient, } from '@stream-io/video-react-bindings';
5
+ import { MediaDevicesProvider, } from '../../contexts';
6
+ export const StreamCall = ({ children, callId, callType, call, autoJoin = false, autoLoad = true, data, mediaDevicesProviderProps, }) => {
7
+ const client = useStreamVideoClient();
8
+ const [activeCall, setActiveCall] = useState(() => {
9
+ if (call)
10
+ return call;
11
+ if (!client || !callId || !callType)
12
+ return;
13
+ return client.call(callType, callId);
14
+ });
15
+ useEffect(() => {
16
+ if (!client)
17
+ return;
18
+ if (callId && callType && !activeCall) {
19
+ const newCall = client.call(callType, callId);
20
+ setActiveCall(newCall);
21
+ }
22
+ }, [activeCall, callId, callType, client]);
23
+ const connectedUser = useConnectedUser();
24
+ useEffect(() => {
25
+ // run the effect only when the user is connected and the call
26
+ // is created declaratively by using the `callId` and `callType` props.
27
+ if (!connectedUser)
28
+ return;
29
+ if (activeCall && callType && callId && autoLoad && !autoJoin) {
30
+ activeCall
31
+ .getOrCreate({
32
+ ring: data === null || data === void 0 ? void 0 : data.ring,
33
+ data: data === null || data === void 0 ? void 0 : data.data,
34
+ members_limit: data === null || data === void 0 ? void 0 : data.members_limit,
35
+ })
36
+ .catch((err) => {
37
+ console.error(`Failed to get or create call`, err);
38
+ });
39
+ }
40
+ }, [
41
+ activeCall,
42
+ autoJoin,
43
+ autoLoad,
44
+ callId,
45
+ callType,
46
+ connectedUser,
47
+ data === null || data === void 0 ? void 0 : data.data,
48
+ data === null || data === void 0 ? void 0 : data.members_limit,
49
+ data === null || data === void 0 ? void 0 : data.ring,
50
+ ]);
51
+ useEffect(() => {
52
+ if (autoJoin && (activeCall === null || activeCall === void 0 ? void 0 : activeCall.state.callingState) === CallingState.IDLE) {
53
+ activeCall.join(data).catch((err) => {
54
+ console.error(`Failed to join call`, err);
55
+ });
56
+ }
57
+ }, [activeCall, autoJoin, data]);
58
+ return (_jsx(StreamCallProvider, Object.assign({ call: activeCall }, { children: _jsx(MediaDevicesProvider, Object.assign({}, mediaDevicesProviderProps, { children: children })) })));
59
+ };
60
+ //# sourceMappingURL=StreamCall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StreamCall.js","sourceRoot":"","sources":["../../../../../src/core/components/StreamCall/StreamCall.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAQ,YAAY,EAAgB,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,oBAAoB,GAErB,MAAM,gBAAgB,CAAC;AA6ExB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EACzB,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,IAAI,EACf,IAAI,EACJ,yBAAyB,GACU,EAAE,EAAE;IACvC,MAAM,MAAM,GAAG,oBAAoB,EAAE,CAA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AU;QACV,QAAQ;QACR,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,aAAa;QACb,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI;QACV,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa;QACnB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI;KACX,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,QAAQ,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,CAAC,YAAY,MAAK,YAAY,CAAC,IAAI,EAAE;YACpE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;gBAClC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;YAC5C,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;IAEjC,OAAO,CACL,KAAC,kBAAkB,kBAAC,IAAI,EAAE,UAAU,gBAClC,KAAC,oBAAoB,oBAAK,yBAAyB,cAChD,QAAQ,IACY,IACJ,CACtB,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './StreamCall';
@@ -0,0 +1,2 @@
1
+ export * from './StreamCall';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/components/StreamCall/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ export type BaseVideoProps = ComponentPropsWithRef<'video'> & {
3
+ stream?: MediaStream;
4
+ };
5
+ /**
6
+ * @description Extends video element with `stream` property
7
+ * (`srcObject`) to reactively handle stream changes
8
+ */
9
+ export declare const BaseVideo: import("react").ForwardRefExoticComponent<Omit<BaseVideoProps, "ref"> & import("react").RefAttributes<HTMLVideoElement>>;
@@ -0,0 +1,48 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef, useEffect, useState } from 'react';
14
+ import { Browsers } from '@stream-io/video-client';
15
+ import { applyElementToRef } from '../../../utilities';
16
+ /**
17
+ * @description Extends video element with `stream` property
18
+ * (`srcObject`) to reactively handle stream changes
19
+ */
20
+ export const BaseVideo = forwardRef((_a, ref) => {
21
+ var { stream } = _a, rest = __rest(_a, ["stream"]);
22
+ const [videoElement, setVideoElement] = useState(null);
23
+ useEffect(() => {
24
+ if (!videoElement || !stream)
25
+ return;
26
+ if (stream === videoElement.srcObject)
27
+ return;
28
+ videoElement.srcObject = stream;
29
+ if (Browsers.isSafari() || Browsers.isFirefox()) {
30
+ // Firefox and Safari have some timing issue
31
+ setTimeout(() => {
32
+ videoElement.srcObject = stream;
33
+ videoElement.play().catch((e) => {
34
+ console.error(`Failed to play stream`, e);
35
+ });
36
+ }, 0);
37
+ }
38
+ return () => {
39
+ videoElement.pause();
40
+ videoElement.srcObject = null;
41
+ };
42
+ }, [stream, videoElement]);
43
+ return (_jsx("video", Object.assign({ autoPlay: true, playsInline: true }, rest, { ref: (element) => {
44
+ applyElementToRef(ref, element);
45
+ setVideoElement(element);
46
+ } })));
47
+ });
48
+ //# sourceMappingURL=BaseVideo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseVideo.js","sourceRoot":"","sources":["../../../../../src/core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AAW,UACP,IAAI,IACR,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;YACf,iBAAiB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YAChC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC,IACD,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import type { StreamVideoParticipant } from '@stream-io/video-client';
3
+ export type VideoPlaceholderProps = {
4
+ participant: StreamVideoParticipant;
5
+ } & ComponentPropsWithRef<'div'>;
6
+ export declare const DefaultVideoPlaceholder: import("react").ForwardRefExoticComponent<Omit<VideoPlaceholderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef, useState } from 'react';
3
+ export const DefaultVideoPlaceholder = forwardRef(({ participant, style }, ref) => {
4
+ const [error, setError] = useState(false);
5
+ const name = (participant === null || participant === void 0 ? void 0 : participant.name) || (participant === null || participant === void 0 ? void 0 : participant.userId);
6
+ return (_jsxs("div", Object.assign({ className: "str-video__video-placeholder", style: style, ref: ref }, { children: [(!participant.image || error) &&
7
+ (name ? (_jsx("div", Object.assign({ className: "str-video__video-placeholder__initials-fallback" }, { children: _jsx("div", { children: name[0] }) }))) : (_jsx("div", { children: "Video is disabled" }))), participant.image && !error && (_jsx("img", { onError: () => setError(true), alt: "video-placeholder", className: "str-video__video-placeholder__avatar", src: participant.image }))] })));
8
+ });
9
+ //# sourceMappingURL=DefaultVideoPlaceholder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultVideoPlaceholder.js","sourceRoot":"","sources":["../../../../../src/core/components/Video/DefaultVideoPlaceholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAyB,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAG/C,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,MAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAA,CAAC;IAEtD,OAAO,CACL,6BAAK,SAAS,EAAC,8BAA8B,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,iBACjE,CAAC,CAAC,WAAW,CAAC,KAAK,IAAI,KAAK,CAAC;gBAC5B,CAAC,IAAI,CAAC,CAAC,CAAC,CACN,4BAAK,SAAS,EAAC,iDAAiD,gBAC9D,wBAAM,IAAI,CAAC,CAAC,CAAC,GAAO,IAChB,CACP,CAAC,CAAC,CAAC,CACF,8CAA4B,CAC7B,CAAC,EACH,WAAW,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,CAC9B,cACE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B,GAAG,EAAC,mBAAmB,EACvB,SAAS,EAAC,sCAAsC,EAChD,GAAG,EAAE,WAAW,CAAC,KAAK,GACtB,CACH,KACG,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ComponentPropsWithoutRef, ComponentType } from 'react';
2
+ import { StreamVideoParticipant } from '@stream-io/video-client';
3
+ import { VideoPlaceholderProps } from './DefaultVideoPlaceholder';
4
+ export type VideoProps = ComponentPropsWithoutRef<'video'> & {
5
+ kind: 'video' | 'screen';
6
+ participant: StreamVideoParticipant;
7
+ VideoPlaceholder?: ComponentType<VideoPlaceholderProps>;
8
+ refs?: {
9
+ setVideoElement?: (element: HTMLVideoElement | null) => void;
10
+ setVideoPlaceholderElement?: (element: HTMLDivElement | null) => void;
11
+ };
12
+ };
13
+ export declare const Video: ({ kind, participant, className, VideoPlaceholder, refs, ...rest }: VideoProps) => JSX.Element | null;
@@ -0,0 +1,154 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useCallback, useEffect, useRef, useState, } from 'react';
14
+ import { DebounceType, SfuModels, VisibilityState, } from '@stream-io/video-client';
15
+ import clsx from 'clsx';
16
+ import { DefaultVideoPlaceholder, } from './DefaultVideoPlaceholder';
17
+ import { BaseVideo } from './BaseVideo';
18
+ import { useCall } from '@stream-io/video-react-bindings';
19
+ export const Video = (_a) => {
20
+ var { kind, participant, className, VideoPlaceholder = DefaultVideoPlaceholder, refs } = _a, rest = __rest(_a, ["kind", "participant", "className", "VideoPlaceholder", "refs"]);
21
+ const { sessionId, videoStream, screenShareStream, publishedTracks, viewportVisibilityState, isLoggedInUser, userId, } = participant;
22
+ const call = useCall();
23
+ const [videoElement, setVideoElement] = useState(null);
24
+ // const [videoTrackMuted, setVideoTrackMuted] = useState(false);
25
+ const [videoPlaying, setVideoPlaying] = useState(false);
26
+ const viewportVisibilityRef = useRef(viewportVisibilityState);
27
+ const stream = kind === 'video' ? videoStream : screenShareStream;
28
+ // TODO: handle track muting
29
+ // useEffect(() => {
30
+ // if (!stream) return;
31
+ // const [track] = stream.getVideoTracks();
32
+ // setVideoTrackMuted(track.muted);
33
+ // const handleMute = () => {
34
+ // setVideoTrackMuted(true);
35
+ // };
36
+ // const handleUnmute = () => {
37
+ // setVideoTrackMuted(false);
38
+ // };
39
+ // track.addEventListener('mute', handleMute);
40
+ // track.addEventListener('unmute', handleUnmute);
41
+ // return () => {
42
+ // track.removeEventListener('mute', handleMute);
43
+ // track.removeEventListener('unmute', handleUnmute);
44
+ // };
45
+ // }, [stream]);
46
+ const isPublishingTrack = publishedTracks.includes(kind === 'video'
47
+ ? SfuModels.TrackType.VIDEO
48
+ : SfuModels.TrackType.SCREEN_SHARE);
49
+ const displayPlaceholder = !isPublishingTrack ||
50
+ (viewportVisibilityState === VisibilityState.INVISIBLE &&
51
+ !screenShareStream) ||
52
+ !videoPlaying;
53
+ const lastDimensionRef = useRef();
54
+ const updateSubscription = useCallback((dimension, type = DebounceType.SLOW) => {
55
+ if (!call)
56
+ return;
57
+ call.updateSubscriptionsPartial(kind, {
58
+ [sessionId]: {
59
+ dimension,
60
+ },
61
+ }, type);
62
+ }, [call, kind, sessionId]);
63
+ // handle visibility subscription updates
64
+ useEffect(() => {
65
+ viewportVisibilityRef.current = viewportVisibilityState;
66
+ if (!videoElement || !isPublishingTrack || isLoggedInUser)
67
+ return;
68
+ const isInvisibleVVS = viewportVisibilityState === VisibilityState.INVISIBLE;
69
+ updateSubscription(isInvisibleVVS
70
+ ? undefined
71
+ : {
72
+ height: videoElement.clientHeight,
73
+ width: videoElement.clientWidth,
74
+ }, DebounceType.MEDIUM);
75
+ }, [
76
+ updateSubscription,
77
+ viewportVisibilityState,
78
+ videoElement,
79
+ isPublishingTrack,
80
+ isLoggedInUser,
81
+ ]);
82
+ // handle resize subscription updates
83
+ useEffect(() => {
84
+ if (!videoElement || !isPublishingTrack || isLoggedInUser)
85
+ return;
86
+ const resizeObserver = new ResizeObserver(() => {
87
+ const currentDimensions = `${videoElement.clientWidth},${videoElement.clientHeight}`;
88
+ // skip initial trigger of the observer
89
+ if (!lastDimensionRef.current) {
90
+ return (lastDimensionRef.current = currentDimensions);
91
+ }
92
+ if (lastDimensionRef.current === currentDimensions ||
93
+ viewportVisibilityRef.current === VisibilityState.INVISIBLE)
94
+ return;
95
+ updateSubscription({
96
+ height: videoElement.clientHeight,
97
+ width: videoElement.clientWidth,
98
+ }, DebounceType.SLOW);
99
+ lastDimensionRef.current = currentDimensions;
100
+ });
101
+ resizeObserver.observe(videoElement);
102
+ return () => {
103
+ resizeObserver.disconnect();
104
+ };
105
+ }, [
106
+ updateSubscription,
107
+ videoElement,
108
+ viewportVisibilityState,
109
+ isPublishingTrack,
110
+ isLoggedInUser,
111
+ ]);
112
+ // handle generic subscription updates
113
+ useEffect(() => {
114
+ if (!isPublishingTrack || !videoElement || isLoggedInUser)
115
+ return;
116
+ updateSubscription({
117
+ height: videoElement.clientHeight,
118
+ width: videoElement.clientWidth,
119
+ }, DebounceType.FAST);
120
+ return () => {
121
+ updateSubscription(undefined, DebounceType.FAST);
122
+ };
123
+ }, [updateSubscription, videoElement, isPublishingTrack, isLoggedInUser]);
124
+ const [isWideMode, setIsWideMode] = useState(true);
125
+ useEffect(() => {
126
+ if (!stream || !videoElement)
127
+ return;
128
+ setVideoPlaying(!videoElement.paused);
129
+ const calculateVideoRatio = () => {
130
+ setVideoPlaying(true);
131
+ const [track] = stream.getVideoTracks();
132
+ if (!track)
133
+ return;
134
+ const { width = 0, height = 0 } = track.getSettings();
135
+ setIsWideMode(width > height);
136
+ };
137
+ videoElement.addEventListener('play', calculateVideoRatio);
138
+ return () => {
139
+ videoElement.removeEventListener('play', calculateVideoRatio);
140
+ };
141
+ }, [stream, videoElement]);
142
+ if (!call)
143
+ return null;
144
+ return (_jsxs(_Fragment, { children: [_jsx(BaseVideo, Object.assign({}, rest, { stream: stream, className: clsx(className, 'str-video__video', {
145
+ 'str-video__video--tall': !isWideMode,
146
+ 'str-video__video--mirror': isLoggedInUser && kind === 'video',
147
+ 'str-video__video--screen-share': kind === 'screen',
148
+ }), "data-user-id": userId, "data-session-id": sessionId, ref: (element) => {
149
+ var _a;
150
+ setVideoElement(element);
151
+ (_a = refs === null || refs === void 0 ? void 0 : refs.setVideoElement) === null || _a === void 0 ? void 0 : _a.call(refs, element);
152
+ } })), displayPlaceholder && (_jsx(VideoPlaceholder, { style: { position: 'absolute' }, participant: participant, ref: refs === null || refs === void 0 ? void 0 : refs.setVideoPlaceholderElement }))] }));
153
+ };
154
+ //# sourceMappingURL=Video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Video.js","sourceRoot":"","sources":["../../../../../src/core/components/Video/Video.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAGL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EACL,YAAY,EACZ,SAAS,EAET,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAY1D,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAOT,EAAE,EAAE;QAPK,EACpB,IAAI,EACJ,WAAW,EACX,SAAS,EACT,gBAAgB,GAAG,uBAAuB,EAC1C,IAAI,OAEO,EADR,IAAI,cANa,gEAOrB,CADQ;IAEP,MAAM,EACJ,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,MAAM,GACP,GAAG,WAAW,CAAC;IAEhB,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAC9C,IAAI,CACL,CAAC;IAEF,iEAAiE;IACjE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,qBAAqB,GAAG,MAAM,CAClC,uBAAuB,CACxB,CAAC;IAEF,MAAM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3B,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,OAAO,CACL,8BACE,KAAC,SAAS,oBACJ,IAAI,IACR,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,kBAAkB,EAAE;oBAC7C,wBAAwB,EAAE,CAAC,UAAU;oBACrC,0BAA0B,EAAE,cAAc,IAAI,IAAI,KAAK,OAAO;oBAC9D,gCAAgC,EAAE,IAAI,KAAK,QAAQ;iBACpD,CAAC,kBACY,MAAM,qBACH,SAAS,EAC1B,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;;oBACf,eAAe,CAAC,OAAO,CAAC,CAAC;oBACzB,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,qDAAG,OAAO,CAAC,CAAC;gBACnC,CAAC,IACD,EACD,kBAAkB,IAAI,CACrB,KAAC,gBAAgB,IACf,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,EAC/B,WAAW,EAAE,WAAW,EACxB,GAAG,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,0BAA0B,GACrC,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './BaseVideo';
2
+ export * from './Video';
@@ -0,0 +1,3 @@
1
+ export * from './BaseVideo';
2
+ export * from './Video';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/components/Video/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './Audio';
2
+ export * from './ParticipantView';
3
+ export * from './StreamCall';
4
+ export { Video } from './Video';
5
+ export type { BaseVideoProps, VideoProps } from './Video';
6
+ export * from './CallLayout';
@@ -0,0 +1,6 @@
1
+ export * from './Audio';
2
+ export * from './ParticipantView';
3
+ export * from './StreamCall';
4
+ export { Video } from './Video';
5
+ export * from './CallLayout';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,cAAc,cAAc,CAAC"}