@stream-io/video-react-sdk 0.5.0 → 0.5.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.5.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.5.1...@stream-io/video-react-sdk-0.5.2) (2024-03-13)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `@stream-io/video-client` updated to version `0.6.1`
10
+ * `@stream-io/video-react-bindings` updated to version `0.4.1`
11
+
12
+ ### Features
13
+
14
+ * **speakers:** Participant audio output levels ([#1284](https://github.com/GetStream/stream-video-js/issues/1284)) ([63b6077](https://github.com/GetStream/stream-video-js/commit/63b607709fd65019fe320e5970aab8132053995c))
15
+
16
+ ### [0.5.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.5.0...@stream-io/video-react-sdk-0.5.1) (2024-02-28)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **react-sdk:** add default menus to ToggleAudio and ToggleVideo buttons ([#1275](https://github.com/GetStream/stream-video-js/issues/1275)) ([462bd40](https://github.com/GetStream/stream-video-js/commit/462bd408bfea4edfe2062525872f06500814328d)), closes [#1194](https://github.com/GetStream/stream-video-js/issues/1194)
22
+
5
23
  ## [0.5.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.4.26...@stream-io/video-react-sdk-0.5.0) (2024-02-26)
6
24
 
7
25
  ### Dependency Updates
package/dist/index.cjs.js CHANGED
@@ -860,13 +860,13 @@ const ToggleAudioPublishingButton = (props) => {
860
860
  };
861
861
 
862
862
  const ToggleVideoPreviewButton = (props) => {
863
- const { caption, ...restCompositeButtonProps } = props;
863
+ const { caption, Menu = DeviceSelectorVideo, menuPlacement = 'top', ...restCompositeButtonProps } = props;
864
864
  const { t } = videoReactBindings.useI18n();
865
865
  const { useCameraState } = videoReactBindings.useCallStateHooks();
866
866
  const { camera, isMute, hasBrowserPermission } = useCameraState();
867
867
  return (jsxRuntime.jsxs(CompositeButton, { active: isMute, caption: caption, className: clsx(!hasBrowserPermission && 'str-video__device-unavailable'), title: !hasBrowserPermission
868
868
  ? t('Check your browser video permissions')
869
- : caption || t('Video'), variant: "secondary", "data-testid": isMute ? 'preview-video-unmute-button' : 'preview-video-mute-button', onClick: () => camera.toggle(), disabled: !hasBrowserPermission, ...restCompositeButtonProps, children: [jsxRuntime.jsx(Icon, { icon: !isMute ? 'camera' : 'camera-off' }), !hasBrowserPermission && (jsxRuntime.jsx("span", { className: "str-video__no-media-permission", title: t('Check your browser video permissions'), children: "!" }))] }));
869
+ : caption || t('Video'), variant: "secondary", "data-testid": isMute ? 'preview-video-unmute-button' : 'preview-video-mute-button', onClick: () => camera.toggle(), disabled: !hasBrowserPermission, Menu: Menu, menuPlacement: menuPlacement, ...restCompositeButtonProps, children: [jsxRuntime.jsx(Icon, { icon: !isMute ? 'camera' : 'camera-off' }), !hasBrowserPermission && (jsxRuntime.jsx("span", { className: "str-video__no-media-permission", title: t('Check your browser video permissions'), children: "!" }))] }));
870
870
  };
871
871
  const ToggleVideoPublishingButton = (props) => {
872
872
  const { t } = videoReactBindings.useI18n();
@@ -1131,8 +1131,8 @@ const ToggleMenuButton = react.forwardRef(function ToggleMenuButton(props, ref)
1131
1131
 
1132
1132
  const ToggleAudioOutputButton = (props) => {
1133
1133
  const { t } = videoReactBindings.useI18n();
1134
- const { caption, Menu } = props;
1135
- return (jsxRuntime.jsx(CompositeButton, { Menu: Menu, caption: caption, title: caption || t('Speakers'), "data-testid": "audio-output-button", children: jsxRuntime.jsx(Icon, { icon: "speaker" }) }));
1134
+ const { caption, Menu = DeviceSelectorAudioOutput, menuPlacement = 'top', } = props;
1135
+ return (jsxRuntime.jsx(CompositeButton, { Menu: Menu, menuPlacement: menuPlacement, caption: caption, title: caption || t('Speakers'), "data-testid": "audio-output-button", children: jsxRuntime.jsx(Icon, { icon: "speaker" }) }));
1136
1136
  };
1137
1137
 
1138
1138
  const BlockedUserListing = ({ data }) => {
@@ -2277,7 +2277,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
2277
2277
  };
2278
2278
  const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
2279
2279
 
2280
- const [major, minor, patch] = ("0.5.0" ).split('.');
2280
+ const [major, minor, patch] = ("0.5.2" ).split('.');
2281
2281
  videoClient.setSdkInfo({
2282
2282
  type: videoClient.SfuModels.SdkType.REACT,
2283
2283
  major,