@stream-io/video-react-sdk 0.3.44 → 0.3.45

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
+ ### [0.3.45](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.44...@stream-io/video-react-sdk-0.3.45) (2023-10-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add missing translations ([#1158](https://github.com/GetStream/stream-video-js/issues/1158)) ([6eb0c7a](https://github.com/GetStream/stream-video-js/commit/6eb0c7abf1b6a403438e4d80f275265e07e4f82f))
11
+
5
12
  ### [0.3.44](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.43...@stream-io/video-react-sdk-0.3.44) (2023-10-19)
6
13
 
7
14
 
package/dist/index.cjs.js CHANGED
@@ -876,7 +876,10 @@ const CompositeButton = react.forwardRef(({ caption, children, active, Menu, men
876
876
  'str-video__composite-button__button-group--active': active,
877
877
  }), children: [children, Menu && (jsxRuntime.jsx(MenuToggle, { placement: menuPlacement, ToggleButton: ToggleMenuButton$2, children: isComponentType(Menu) ? jsxRuntime.jsx(Menu, {}) : Menu }))] }), caption && (jsxRuntime.jsx("div", { className: "str-video__composite-button__caption", children: caption }))] }));
878
878
  });
879
- const ToggleMenuButton$2 = react.forwardRef(({ menuShown }, ref) => (jsxRuntime.jsx(IconButton, { className: 'str-video__menu-toggle-button', icon: menuShown ? 'caret-down' : 'caret-up', title: "Toggle device menu", ref: ref })));
879
+ const ToggleMenuButton$2 = react.forwardRef(({ menuShown }, ref) => {
880
+ const { t } = videoReactBindings.useI18n();
881
+ return (jsxRuntime.jsx(IconButton, { className: 'str-video__menu-toggle-button', icon: menuShown ? 'caret-down' : 'caret-up', title: t('Toggle device menu'), ref: ref }));
882
+ });
880
883
 
881
884
  const Tooltip = ({ children, referenceElement, tooltipClassName, tooltipPlacement = 'top', visible = false, }) => {
882
885
  const { refs, x, y, strategy } = useFloatingUIPreset({
@@ -1325,9 +1328,12 @@ const DeviceSettings = () => {
1325
1328
  return (jsxRuntime.jsx(MenuToggle, { placement: "bottom-end", ToggleButton: ToggleMenuButton, children: jsxRuntime.jsx(Menu, {}) }));
1326
1329
  };
1327
1330
  const Menu = () => (jsxRuntime.jsxs("div", { className: "str-video__device-settings", children: [jsxRuntime.jsx(DeviceSelectorVideo, {}), jsxRuntime.jsx(DeviceSelectorAudioInput, {}), jsxRuntime.jsx(DeviceSelectorAudioOutput, {})] }));
1328
- const ToggleMenuButton = react.forwardRef(({ menuShown }, ref) => (jsxRuntime.jsx(IconButton, { className: clsx('str-video__device-settings__button', {
1329
- 'str-video__device-settings__button--active': menuShown,
1330
- }), title: "Toggle device menu", icon: "device-settings", ref: ref })));
1331
+ const ToggleMenuButton = react.forwardRef(({ menuShown }, ref) => {
1332
+ const { t } = videoReactBindings.useI18n();
1333
+ return (jsxRuntime.jsx(IconButton, { className: clsx('str-video__device-settings__button', {
1334
+ 'str-video__device-settings__button--active': menuShown,
1335
+ }), title: t('Toggle device menu'), icon: "device-settings", ref: ref }));
1336
+ });
1331
1337
 
1332
1338
  const ToggleAudioPreviewButton = (props) => {
1333
1339
  const { initialAudioEnabled, toggleInitialAudioMuteState } = useMediaDevices();
@@ -2311,6 +2317,7 @@ var en = {
2311
2317
  You: You,
2312
2318
  Me: Me,
2313
2319
  Unknown: Unknown,
2320
+ "Toggle device menu": "Toggle device menu",
2314
2321
  Allow: Allow,
2315
2322
  Revoke: Revoke,
2316
2323
  Dismiss: Dismiss,
@@ -2627,7 +2634,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
2627
2634
  };
2628
2635
  const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
2629
2636
 
2630
- const [major, minor, patch] = ("0.3.44" ).split('.');
2637
+ const [major, minor, patch] = ("0.3.45" ).split('.');
2631
2638
  videoClient.setSdkInfo({
2632
2639
  type: videoClient.SfuModels.SdkType.REACT,
2633
2640
  major,