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

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,19 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.3.47](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-0.3.46...@stream-io/video-react-sdk-0.3.47) (2023-10-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Localize "Screen Share" caption ([#1164](https://github.com/GetStream/stream-video-js/issues/1164)) ([0a9ed96](https://github.com/GetStream/stream-video-js/commit/0a9ed960ee5ef8409b61dc5d747912b17a521160))
11
+
12
+ ### [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)
13
+
14
+ ### Dependency Updates
15
+
16
+ * `@stream-io/video-client` updated to version `0.3.36`
17
+ * `@stream-io/video-react-bindings` updated to version `0.2.37`
5
18
  ### [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
19
 
7
20
 
package/README.md CHANGED
@@ -73,7 +73,8 @@ Here are some of the features we support:
73
73
  - [ ] Typescript generics enhancements
74
74
  - [ ] Hardware-accelerated video encoding on supported platforms
75
75
  - [ ] Performance and bundle-size optimizations
76
- - [ ] Dynascale 2.0 (codecs, f resolution switches, resolution webrtc handling)
76
+ - [x] Dynascale 2.0 (f resolution switches, resolution WebRTC handling)
77
+ - [ ] Dynascale 2.0 (codec switching)
77
78
  - [ ] Call analytics / stats
78
79
  - [ ] Logging 2.0
79
80
  - [ ] E2E testing platform
package/dist/index.cjs.js CHANGED
@@ -1266,11 +1266,12 @@ const RecordCallButton = ({ caption = 'Record', }) => {
1266
1266
  enabled: !!call, disabled: !call, icon: isCallRecordingInProgress ? 'recording-on' : 'recording-off', title: t('Record call'), onClick: toggleCallRecording })) }) }));
1267
1267
  };
1268
1268
 
1269
- const ScreenShareButton = ({ caption = 'Screen Share', }) => {
1269
+ const ScreenShareButton = (props) => {
1270
1270
  const call = videoReactBindings.useCall();
1271
1271
  const { useHasOngoingScreenShare } = videoReactBindings.useCallStateHooks();
1272
1272
  const isSomeoneScreenSharing = useHasOngoingScreenShare();
1273
1273
  const { t } = videoReactBindings.useI18n();
1274
+ const { caption = t('Screen Share') } = props;
1274
1275
  const { toggleScreenShare, isAwaitingPermission, isScreenSharing } = useToggleScreenShare();
1275
1276
  return (jsxRuntime.jsx(videoReactBindings.Restricted, { requiredGrants: [videoClient.OwnCapability.SCREENSHARE], children: jsxRuntime.jsx(PermissionNotification, { permission: videoClient.OwnCapability.SCREENSHARE, isAwaitingApproval: isAwaitingPermission, messageApproved: t('You can now share your screen.'), messageAwaitingApproval: t('Awaiting for an approval to share screen.'), messageRevoked: t('You can no longer share your screen.'), children: jsxRuntime.jsx(CompositeButton, { active: isSomeoneScreenSharing, caption: caption, children: jsxRuntime.jsx(IconButton, { icon: isScreenSharing ? 'screen-share-on' : 'screen-share-off', title: t('Share screen'), disabled: (!isScreenSharing && isSomeoneScreenSharing) || !call, onClick: toggleScreenShare }) }) }) }));
1276
1277
  };
@@ -2634,7 +2635,7 @@ const VerticalScrollButtons = ({ scrollWrapper, }) => {
2634
2635
  };
2635
2636
  const hasScreenShare = (p) => !!p?.publishedTracks.includes(videoClient.SfuModels.TrackType.SCREEN_SHARE);
2636
2637
 
2637
- const [major, minor, patch] = ("0.3.45" ).split('.');
2638
+ const [major, minor, patch] = ("0.3.47" ).split('.');
2638
2639
  videoClient.setSdkInfo({
2639
2640
  type: videoClient.SfuModels.SdkType.REACT,
2640
2641
  major,