@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 +13 -0
- package/README.md +2 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/CallControls/ScreenShareButton.d.ts +1 -1
- package/package.json +3 -3
- package/src/components/CallControls/ScreenShareButton.tsx +3 -3
package/dist/index.es.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 = (
|
|
1269
|
+
const ScreenShareButton = (props) => {
|
|
1270
1270
|
const call = useCall();
|
|
1271
1271
|
const { useHasOngoingScreenShare } = useCallStateHooks();
|
|
1272
1272
|
const isSomeoneScreenSharing = useHasOngoingScreenShare();
|
|
1273
1273
|
const { t } = useI18n();
|
|
1274
|
+
const { caption = t('Screen Share') } = props;
|
|
1274
1275
|
const { toggleScreenShare, isAwaitingPermission, isScreenSharing } = useToggleScreenShare();
|
|
1275
1276
|
return (jsx(Restricted, { requiredGrants: [OwnCapability.SCREENSHARE], children: jsx(PermissionNotification, { permission: 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: jsx(CompositeButton, { active: isSomeoneScreenSharing, caption: caption, children: 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(SfuModels.TrackType.SCREEN_SHARE);
|
|
2636
2637
|
|
|
2637
|
-
const [major, minor, patch] = ("0.3.
|
|
2638
|
+
const [major, minor, patch] = ("0.3.47" ).split('.');
|
|
2638
2639
|
setSdkInfo({
|
|
2639
2640
|
type: SfuModels.SdkType.REACT,
|
|
2640
2641
|
major,
|