@stream-io/video-react-sdk 0.3.47 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/dist/index.cjs.js +324 -882
  4. package/dist/index.cjs.js.map +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.es.js +325 -867
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/src/components/Notification/SpeakingWhileMutedNotification.d.ts +3 -0
  9. package/dist/src/components/{Video → VideoPreview}/VideoPreview.d.ts +1 -9
  10. package/dist/src/components/index.d.ts +1 -1
  11. package/dist/src/core/components/ParticipantView/ParticipantView.d.ts +3 -9
  12. package/dist/src/core/components/ParticipantView/ParticipantViewContext.d.ts +9 -0
  13. package/dist/src/core/components/ParticipantView/index.d.ts +1 -0
  14. package/dist/src/core/components/StreamCall/StreamCall.d.ts +2 -11
  15. package/dist/src/core/hooks/index.d.ts +0 -2
  16. package/dist/src/core/hooks/useDevices.d.ts +0 -99
  17. package/dist/src/core/index.d.ts +0 -1
  18. package/dist/src/hooks/index.d.ts +1 -3
  19. package/dist/src/hooks/usePersistedDevicePreferences.d.ts +13 -0
  20. package/dist/src/translations/index.d.ts +2 -0
  21. package/index.ts +2 -2
  22. package/package.json +3 -3
  23. package/src/components/CallControls/CallControls.tsx +6 -8
  24. package/src/components/CallControls/ScreenShareButton.tsx +14 -10
  25. package/src/components/CallControls/ToggleAudioButton.tsx +21 -24
  26. package/src/components/CallControls/ToggleAudioOutputButton.tsx +1 -1
  27. package/src/components/CallControls/ToggleVideoButton.tsx +21 -22
  28. package/src/components/CallParticipantsList/CallParticipantsList.tsx +1 -1
  29. package/src/components/DeviceSettings/DeviceSelectorAudio.tsx +20 -26
  30. package/src/components/DeviceSettings/DeviceSelectorVideo.tsx +9 -8
  31. package/src/components/Icon/Icon.tsx +1 -1
  32. package/src/components/Notification/SpeakingWhileMutedNotification.tsx +5 -49
  33. package/src/components/VideoPreview/VideoPreview.tsx +67 -0
  34. package/src/components/index.ts +1 -1
  35. package/src/core/components/CallLayout/PaginatedGridLayout.tsx +2 -5
  36. package/src/core/components/ParticipantView/DefaultParticipantViewUI.tsx +7 -6
  37. package/src/core/components/ParticipantView/ParticipantView.tsx +2 -19
  38. package/src/core/components/ParticipantView/ParticipantViewContext.tsx +17 -0
  39. package/src/core/components/ParticipantView/index.ts +1 -0
  40. package/src/core/components/StreamCall/StreamCall.tsx +2 -28
  41. package/src/core/hooks/index.ts +0 -2
  42. package/src/core/hooks/useDevices.ts +0 -195
  43. package/src/core/index.ts +0 -1
  44. package/src/hooks/index.ts +1 -3
  45. package/src/hooks/usePersistedDevicePreferences.ts +118 -0
  46. package/src/translations/en.json +3 -0
  47. package/dist/src/core/contexts/MediaDevicesContext.d.ts +0 -180
  48. package/dist/src/core/contexts/index.d.ts +0 -1
  49. package/dist/src/core/hooks/useAudioPublisher.d.ts +0 -12
  50. package/dist/src/core/hooks/useVideoPublisher.d.ts +0 -12
  51. package/dist/src/hooks/useToggleAudioMuteState.d.ts +0 -4
  52. package/dist/src/hooks/useToggleScreenShare.d.ts +0 -5
  53. package/dist/src/hooks/useToggleVideoMuteState.d.ts +0 -4
  54. package/src/components/Video/VideoPreview.tsx +0 -152
  55. package/src/core/contexts/MediaDevicesContext.tsx +0 -416
  56. package/src/core/contexts/index.ts +0 -1
  57. package/src/core/hooks/useAudioPublisher.ts +0 -146
  58. package/src/core/hooks/useVideoPublisher.ts +0 -177
  59. package/src/hooks/useToggleAudioMuteState.ts +0 -34
  60. package/src/hooks/useToggleScreenShare.ts +0 -43
  61. package/src/hooks/useToggleVideoMuteState.ts +0 -34
  62. /package/dist/src/components/{Video → VideoPreview}/index.d.ts +0 -0
  63. /package/src/components/{Video → VideoPreview}/index.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -4,4 +4,4 @@ export * from './src/core';
4
4
  export * from './src/components';
5
5
  export * from './src/types';
6
6
  export * from './src/translations';
7
- export { useHorizontalScrollPosition, useVerticalScrollPosition, useToggleAudioMuteState, useToggleVideoMuteState, } from './src/hooks';
7
+ export { useHorizontalScrollPosition, useVerticalScrollPosition, useRequestPermission, usePersistedDevicePreferences, } from './src/hooks';