@azure/communication-react 1.5.1-alpha-202302100014 → 1.5.1-alpha-202302110013
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/dist/dist-cjs/communication-react/index.js +22 -22
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/identifier.js +3 -1
- package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +5 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +8 -14
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
- package/package.json +8 -8
@@ -143,7 +143,9 @@ const toFlatCommunicationIdentifier = (identifier) => {
|
|
143
143
|
* @public
|
144
144
|
*/
|
145
145
|
const fromFlatCommunicationIdentifier = (id) => {
|
146
|
-
|
146
|
+
// if the id passed is a phone number we need to build the rawId to pass in
|
147
|
+
const rawId = id.indexOf('+') === 0 ? '4:' + id.slice(1) : id;
|
148
|
+
return communicationCommon.createIdentifierFromRawId(rawId);
|
147
149
|
};
|
148
150
|
/**
|
149
151
|
* Returns a CommunicationIdentifier.
|
@@ -159,7 +161,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
159
161
|
// Copyright (c) Microsoft Corporation.
|
160
162
|
// Licensed under the MIT license.
|
161
163
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
162
|
-
var telemetryVersion = '1.5.1-alpha-
|
164
|
+
var telemetryVersion = '1.5.1-alpha-202302110013';
|
163
165
|
|
164
166
|
// Copyright (c) Microsoft Corporation.
|
165
167
|
/**
|
@@ -395,7 +397,7 @@ const _isInCall = (callStatus) => !!callStatus && !['None', 'Disconnected', 'Con
|
|
395
397
|
*
|
396
398
|
* @internal
|
397
399
|
*/
|
398
|
-
const _isInLobbyOrConnecting = (callStatus) => !!callStatus && ['Connecting', 'Ringing', 'InLobby'].includes(callStatus);
|
400
|
+
const _isInLobbyOrConnecting = (callStatus) => !!callStatus && ['Connecting', 'Ringing', 'InLobby', 'EarlyMedia'].includes(callStatus);
|
399
401
|
/**
|
400
402
|
* Check if the device manager local video is on when not part of a call
|
401
403
|
* i.e. do unparented views exist.
|
@@ -719,8 +721,11 @@ const createDefaultCommonCallingHandlers = memoizeOne__default['default']((callC
|
|
719
721
|
if (!participant || !participant.videoStreams) {
|
720
722
|
return;
|
721
723
|
}
|
722
|
-
|
723
|
-
const
|
724
|
+
// Find the first available stream, if there is none, then get the first stream
|
725
|
+
const remoteVideoStream = Object.values(participant.videoStreams).find((i) => i.mediaStreamType === 'Video' && i.isAvailable) ||
|
726
|
+
Object.values(participant.videoStreams).find((i) => i.mediaStreamType === 'Video');
|
727
|
+
const screenShareStream = Object.values(participant.videoStreams).find((i) => i.mediaStreamType === 'ScreenSharing' && i.isAvailable) ||
|
728
|
+
Object.values(participant.videoStreams).find((i) => i.mediaStreamType === 'ScreenSharing');
|
724
729
|
let createViewResult = undefined;
|
725
730
|
if (remoteVideoStream && remoteVideoStream.isAvailable && !remoteVideoStream.view) {
|
726
731
|
createViewResult = yield callClient.createView(call.id, participant.identifier, remoteVideoStream, options);
|
@@ -9054,7 +9059,7 @@ react.mergeStyles({ position: 'relative', width: '100%', height: '100%' });
|
|
9054
9059
|
/**
|
9055
9060
|
* Small floating modal width and height in rem for small screen
|
9056
9061
|
*/
|
9057
|
-
const SMALL_FLOATING_MODAL_SIZE_PX = { width:
|
9062
|
+
const SMALL_FLOATING_MODAL_SIZE_PX = { width: 58, height: 104 };
|
9058
9063
|
/**
|
9059
9064
|
* Large floating modal width and height in rem for large screen
|
9060
9065
|
* Aspect ratio: 16:9
|
@@ -9153,7 +9158,7 @@ const horizontalGalleryStyle = (isNarrow) => {
|
|
9153
9158
|
* Small horizontal gallery tile size in rem
|
9154
9159
|
* @private
|
9155
9160
|
*/
|
9156
|
-
const SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM = { height:
|
9161
|
+
const SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM = { height: 6.5, width: 6.5 };
|
9157
9162
|
/**
|
9158
9163
|
* Large horizontal gallery tile size in rem
|
9159
9164
|
* @private
|
@@ -12535,21 +12540,15 @@ const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId, isMuted
|
|
12535
12540
|
const rawVideoStreamsArray = Object.values(videoStreams);
|
12536
12541
|
let videoStream = undefined;
|
12537
12542
|
let screenShareStream = undefined;
|
12538
|
-
|
12539
|
-
|
12540
|
-
|
12541
|
-
|
12542
|
-
|
12543
|
-
|
12544
|
-
}
|
12543
|
+
const sdkRemoteVideoStream = Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'Video' && i.isAvailable) ||
|
12544
|
+
Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'Video');
|
12545
|
+
const sdkScreenShareStream = Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'ScreenSharing' && i.isAvailable) ||
|
12546
|
+
Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'ScreenSharing');
|
12547
|
+
if (sdkRemoteVideoStream) {
|
12548
|
+
videoStream = convertRemoteVideoStreamToVideoGalleryStream(sdkRemoteVideoStream);
|
12545
12549
|
}
|
12546
|
-
if (
|
12547
|
-
|
12548
|
-
screenShareStream = convertRemoteVideoStreamToVideoGalleryStream(rawVideoStreamsArray[1]);
|
12549
|
-
}
|
12550
|
-
else {
|
12551
|
-
videoStream = convertRemoteVideoStreamToVideoGalleryStream(rawVideoStreamsArray[1]);
|
12552
|
-
}
|
12550
|
+
if (sdkScreenShareStream) {
|
12551
|
+
screenShareStream = convertRemoteVideoStreamToVideoGalleryStream(sdkScreenShareStream);
|
12553
12552
|
}
|
12554
12553
|
return {
|
12555
12554
|
userId,
|
@@ -22146,7 +22145,8 @@ const callCompositeContainerStyles = {
|
|
22146
22145
|
root: {
|
22147
22146
|
// Start a new stacking context so that any `position:absolute` elements
|
22148
22147
|
// inside the call composite do not compete with its siblings.
|
22149
|
-
position: 'relative'
|
22148
|
+
position: 'relative',
|
22149
|
+
width: '100%'
|
22150
22150
|
}
|
22151
22151
|
};
|
22152
22152
|
/** @private */
|