@stream-io/video-react-sdk 1.2.15 → 1.2.16

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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [1.2.16](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.2.15...@stream-io/video-react-sdk-1.2.16) (2024-07-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * align audio output button tooltip with the rest of media toggles ([#1445](https://github.com/GetStream/stream-video-js/issues/1445)) ([dcee098](https://github.com/GetStream/stream-video-js/commit/dcee098b219aa570c0ba58e9dc63dde1690e8580))
11
+
5
12
  ### [1.2.15](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.2.14...@stream-io/video-react-sdk-1.2.15) (2024-07-15)
6
13
 
7
14
  ### Dependency Updates
package/dist/index.cjs.js CHANGED
@@ -1403,8 +1403,12 @@ const ToggleMenuButton = react.forwardRef(function ToggleMenuButton(props, ref)
1403
1403
 
1404
1404
  const ToggleAudioOutputButton = (props) => {
1405
1405
  const { t } = videoReactBindings.useI18n();
1406
- const { caption, Menu = DeviceSelectorAudioOutput, menuPlacement = 'top', } = props;
1407
- 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" }) }));
1406
+ const { caption, Menu = DeviceSelectorAudioOutput, menuPlacement = 'top', onMenuToggle, } = props;
1407
+ const [tooltipDisabled, setTooltipDisabled] = react.useState(false);
1408
+ return (jsxRuntime.jsx(WithTooltip, { title: caption || t('Speakers'), tooltipDisabled: tooltipDisabled, children: jsxRuntime.jsx(CompositeButton, { Menu: Menu, menuPlacement: menuPlacement, caption: caption, "data-testid": "audio-output-button", onMenuToggle: (shown) => {
1409
+ setTooltipDisabled(shown);
1410
+ onMenuToggle?.(shown);
1411
+ }, children: jsxRuntime.jsx(Icon, { icon: "speaker" }) }) }));
1408
1412
  };
1409
1413
 
1410
1414
  const BlockedUserListing = ({ data }) => {
@@ -2612,7 +2616,7 @@ const LivestreamPlayer = (props) => {
2612
2616
  return (jsxRuntime.jsx(StreamCall, { call: call, children: jsxRuntime.jsx(LivestreamLayout, { ...layoutProps }) }));
2613
2617
  };
2614
2618
 
2615
- const [major, minor, patch] = ("1.2.15" ).split('.');
2619
+ const [major, minor, patch] = ("1.2.16" ).split('.');
2616
2620
  videoClient.setSdkInfo({
2617
2621
  type: videoClient.SfuModels.SdkType.REACT,
2618
2622
  major,