@stream-io/video-react-sdk 0.3.44 → 0.3.46
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 +13 -0
- package/dist/index.cjs.js +12 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -5
- package/dist/index.es.js.map +1 -1
- package/dist/src/translations/index.d.ts +1 -0
- package/package.json +3 -3
- package/src/components/Button/CompositeButton.tsx +13 -8
- package/src/components/DeviceSettings/DeviceSettings.tsx +16 -11
- package/src/translations/en.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
### [0.3.46](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.45...@stream-io/video-react-sdk-0.3.46) (2023-10-25)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `@stream-io/video-client` updated to version `0.3.36`
|
|
10
|
+
* `@stream-io/video-react-bindings` updated to version `0.2.37`
|
|
11
|
+
### [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)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* add missing translations ([#1158](https://github.com/GetStream/stream-video-js/issues/1158)) ([6eb0c7a](https://github.com/GetStream/stream-video-js/commit/6eb0c7abf1b6a403438e4d80f275265e07e4f82f))
|
|
17
|
+
|
|
5
18
|
### [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
19
|
|
|
7
20
|
|
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) =>
|
|
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) =>
|
|
1329
|
-
|
|
1330
|
-
|
|
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.
|
|
2637
|
+
const [major, minor, patch] = ("0.3.46" ).split('.');
|
|
2631
2638
|
videoClient.setSdkInfo({
|
|
2632
2639
|
type: videoClient.SfuModels.SdkType.REACT,
|
|
2633
2640
|
major,
|