@azure/communication-react 1.2.3-alpha-202205270013.0 → 1.3.1-alpha-202205310013.0
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 +128 -62
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +10 -4
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.d.ts.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +21 -0
- package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +4 -3
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +4 -4
- package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.d.ts +5 -6
- package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +4 -5
- package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +4 -2
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +3 -3
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/StreamMedia.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/StreamMedia.js +12 -3
- package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +4 -4
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/index.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/index.js +2 -0
- package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.d.ts.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +13 -2
- package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +54 -37
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +5 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +4 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
- package/package.json +7 -7
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"StreamMedia.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/StreamMedia.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAS,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAY,EAAU,EAAE,CACrD,WAAW,CAAC;IACV,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE;QACT,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;KAC3C;CACF,CAAC,CAAC;AAEL;;GAEG;AACH,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"StreamMedia.styles.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/styles/StreamMedia.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAS,MAAM,iBAAiB,CAAC;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAY,EAAU,EAAE,CACrD,WAAW,CAAC;IACV,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,MAAM;IACf,SAAS,EAAE;QACT,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc;KAC3C;CACF,CAAC,CAAC;AAEL;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAY,EAAU,EAAE,CAC9D,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;IACjC,oEAAoE;IACpE,iFAAiF;IACjF,kEAAkE;IAClE,EAAE;IACF,oCAAoC;IACpC,SAAS,EAAE,iBAAiB;IAC5B,wCAAwC;IACxC,qCAAqC;IACrC,uGAAuG;IACvG,4BAA4B,EAAE;QAC5B,SAAS,EAAE,iBAAiB;KAC7B;CACF,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAndRemotePIP.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,2BAA2B,
|
1
|
+
{"version":3,"file":"LocalAndRemotePIP.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.tsx"],"names":[],"mappings":";AAIA,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAKnB,4CAAmC;AAIpC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,kBAAkB,CAAA;KAAE,CAAC;IAC7E,yBAAyB,CAAC,EAAE;QAC1B,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,kBAAkB,CAAC;KAClC,CAAC;IAEF,qDAAqD;IACrD,uBAAuB,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,IAAI,GAAG,2BAA2B,CAAC,CAAC;IACxG,yDAAyD;IACzD,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;IACtC,oDAAoD;IACpD,wBAAwB,CAAC,EAAE,CACzB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,kBAAkB,KACzB,OAAO,CAAC,IAAI,GAAG,2BAA2B,CAAC,CAAC;IACjD,qDAAqD;IACrD,yBAAyB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,KAAG,WA8FjE,CAAC"}
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js
CHANGED
@@ -1,47 +1,71 @@
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
2
2
|
// Licensed under the MIT license.
|
3
|
-
import React, {
|
4
|
-
import {
|
3
|
+
import React, { useMemo } from 'react';
|
4
|
+
import { _LocalVideoTile, _RemoteVideoTile, _PictureInPictureInPicture } from "../../../../../react-components/src";
|
5
5
|
import { useLocale } from '../../localization';
|
6
6
|
/**
|
7
7
|
* @private
|
8
8
|
*/
|
9
9
|
export const LocalAndRemotePIP = (props) => {
|
10
|
+
var _a, _b;
|
10
11
|
const { localParticipant, dominantRemoteParticipant, onCreateLocalStreamView, onDisposeLocalStreamView, onCreateRemoteStreamView, onDisposeRemoteStreamView } = props;
|
11
|
-
|
12
|
-
var _a;
|
13
|
-
|
14
|
-
onCreateLocalStreamView
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
12
|
+
const localVideoTileProps = useMemo(() => {
|
13
|
+
var _a, _b;
|
14
|
+
return ({
|
15
|
+
onCreateLocalStreamView,
|
16
|
+
onDisposeLocalStreamView,
|
17
|
+
localVideoViewOptions,
|
18
|
+
displayName: localParticipant.displayName,
|
19
|
+
showLabel: false,
|
20
|
+
showMuteIndicator: false,
|
21
|
+
showCameraSwitcherInLocalPreview: false,
|
22
|
+
isAvailable: (_a = localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable,
|
23
|
+
renderElement: (_b = localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement
|
24
|
+
});
|
25
|
+
}, [
|
26
|
+
localParticipant.displayName,
|
27
|
+
(_a = localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable,
|
28
|
+
(_b = localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement,
|
29
|
+
onCreateLocalStreamView,
|
30
|
+
onDisposeLocalStreamView
|
31
|
+
]);
|
32
|
+
const remoteVideoTileProps = useMemo(() => {
|
33
|
+
var _a, _b;
|
34
|
+
return !dominantRemoteParticipant
|
35
|
+
? undefined
|
36
|
+
: {
|
37
|
+
onCreateRemoteStreamView,
|
38
|
+
onDisposeRemoteStreamView,
|
39
|
+
remoteVideoViewOptions,
|
40
|
+
displayName: dominantRemoteParticipant === null || dominantRemoteParticipant === void 0 ? void 0 : dominantRemoteParticipant.displayName,
|
41
|
+
showLabel: false,
|
42
|
+
showMuteIndicator: false,
|
43
|
+
isAvailable: (_a = dominantRemoteParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable,
|
44
|
+
renderElement: (_b = dominantRemoteParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement,
|
45
|
+
userId: dominantRemoteParticipant.userId,
|
46
|
+
key: dominantRemoteParticipant.userId
|
47
|
+
};
|
32
48
|
}, [dominantRemoteParticipant, onCreateRemoteStreamView, onDisposeRemoteStreamView]);
|
33
|
-
const remoteVideoTile = useMemo(() => props.dominantRemoteParticipant &&
|
34
|
-
createVideoTile(props.dominantRemoteParticipant.displayName, props.dominantRemoteParticipant.videoStream), [props.dominantRemoteParticipant]);
|
35
49
|
const locale = useLocale();
|
36
50
|
const ariaLabel = locale.strings.callWithChat.pictureInPictureTileAriaLabel;
|
37
51
|
const strings = useMemo(() => ({
|
38
52
|
rootAriaLabel: ariaLabel
|
39
53
|
}), [ariaLabel]);
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
//
|
44
|
-
|
54
|
+
// If there are no remote participants, show the local participant as the primary tile
|
55
|
+
const primaryTileProps = useMemo(() => ({
|
56
|
+
children: remoteVideoTileProps ? (React.createElement(_RemoteVideoTile, Object.assign({}, remoteVideoTileProps))) : (React.createElement(_LocalVideoTile, Object.assign({}, localVideoTileProps))),
|
57
|
+
// TODO: when the calling SDK provides height/width stream information - update this to reflect the stream orientation.
|
58
|
+
orientation: 'portrait'
|
59
|
+
}), [localVideoTileProps, remoteVideoTileProps]);
|
60
|
+
// If we are showing the local participant as the primary tile, show nothing for the secondary tile
|
61
|
+
const secondaryTileProps = useMemo(() => remoteVideoTileProps
|
62
|
+
? {
|
63
|
+
children: React.createElement(_LocalVideoTile, Object.assign({}, localVideoTileProps, { personaMinSize: 20 })),
|
64
|
+
// TODO: when the calling SDK provides height/width stream information - update this to reflect the stream orientation.
|
65
|
+
orientation: 'portrait'
|
66
|
+
}
|
67
|
+
: undefined, [localVideoTileProps, remoteVideoTileProps]);
|
68
|
+
return (React.createElement(_PictureInPictureInPicture, { onClick: props.onClick, strings: strings, primaryTile: primaryTileProps, secondaryTile: secondaryTileProps }));
|
45
69
|
};
|
46
70
|
const localVideoViewOptions = {
|
47
71
|
scalingMode: 'Crop',
|
@@ -51,11 +75,4 @@ const remoteVideoViewOptions = {
|
|
51
75
|
scalingMode: 'Crop',
|
52
76
|
isMirrored: false
|
53
77
|
};
|
54
|
-
const createVideoTile = (displayName, videoStream) => {
|
55
|
-
return {
|
56
|
-
orientation: 'portrait',
|
57
|
-
renderElement: (videoStream === null || videoStream === void 0 ? void 0 : videoStream.renderElement) ? (React.createElement(StreamMedia, { videoStreamElement: videoStream.renderElement })) : undefined,
|
58
|
-
displayName: displayName
|
59
|
-
};
|
60
|
-
};
|
61
78
|
//# sourceMappingURL=LocalAndRemotePIP.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocalAndRemotePIP.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"LocalAndRemotePIP.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAIL,eAAe,EACf,gBAAgB,EAChB,0BAA0B,EAE3B,4CAAmC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA2B/C;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAe,EAAE;;IAC9E,MAAM,EACJ,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EAC1B,GAAG,KAAK,CAAC;IAEV,MAAM,mBAAmB,GAAG,OAAO,CACjC,GAAG,EAAE;;QAAC,OAAA,CAAC;YACL,uBAAuB;YACvB,wBAAwB;YACxB,qBAAqB;YACrB,WAAW,EAAE,gBAAgB,CAAC,WAAW;YACzC,SAAS,EAAE,KAAK;YAChB,iBAAiB,EAAE,KAAK;YACxB,gCAAgC,EAAE,KAAK;YACvC,WAAW,EAAE,MAAA,gBAAgB,CAAC,WAAW,0CAAE,WAAW;YACtD,aAAa,EAAE,MAAA,gBAAgB,CAAC,WAAW,0CAAE,aAAa;SAC3D,CAAC,CAAA;KAAA,EACF;QACE,gBAAgB,CAAC,WAAW;QAC5B,MAAA,gBAAgB,CAAC,WAAW,0CAAE,WAAW;QACzC,MAAA,gBAAgB,CAAC,WAAW,0CAAE,aAAa;QAC3C,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AkB,GAAoD,OAAO,CACjF,GAAG,EAAE,CACH,oBAAoB;QAClB,CAAC,CAAC;YACE,QAAQ,EAAE,oBAAC,eAAe,oBAAK,mBAAmB,IAAE,cAAc,EAAE,EAAE,IAAI;YAC1E,uHAAuH;YACvH,WAAW,EAAE,UAAU;SACxB;QACH,CAAC,CAAC,SAAS,EACf,CAAC,mBAAmB,EAAE,oBAAoB,CAAC,CAC5C,CAAC;IAEF,OAAO,CACL,oBAAC,0BAA0B,IACzB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,gBAAgB,EAC7B,aAAa,EAAE,kBAAkB,GACjC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAuB;IAChD,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,sBAAsB,GAAuB;IACjD,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,KAAK;CAClB,CAAC"}
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MediaGallery.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/MediaGallery.tsx"],"names":[],"mappings":";AAIA,OAAO,EAGL,sBAAsB,EAEvB,4CAAmC;AAEpC,OAAO,EAAiB,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AA0BtF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,wBAAwB,CAAC,EAAE,yBAAyB,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,iBAAiB,KAAG,
|
1
|
+
{"version":3,"file":"MediaGallery.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/MediaGallery.tsx"],"names":[],"mappings":";AAIA,OAAO,EAGL,sBAAsB,EAEvB,4CAAmC;AAEpC,OAAO,EAAiB,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AA0BtF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,wBAAwB,CAAC,EAAE,yBAAyB,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,iBAAiB,KAAG,WA2CvD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,0BAA2B,OAAO,6CAA+B,IAmBtG,CAAC"}
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
2
2
|
// Licensed under the MIT license.
|
3
|
-
import React, { useEffect, useMemo, useState } from 'react';
|
3
|
+
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
4
4
|
import { VideoGallery } from "../../../../../react-components/src";
|
5
5
|
import { usePropsFor } from '../hooks/usePropsFor';
|
6
6
|
import { AvatarPersona } from '../../common/AvatarPersona';
|
@@ -36,11 +36,12 @@ export const MediaGallery = (props) => {
|
|
36
36
|
return Object.assign(Object.assign({}, cameraSwitcherCallback), cameraSwitcherCameras);
|
37
37
|
}, [cameraSwitcherCallback, cameraSwitcherCameras]);
|
38
38
|
const remoteParticipants = useRemoteParticipantsWithCustomDisplayNames(videoGalleryProps.remoteParticipants, props.onFetchAvatarPersonaData);
|
39
|
+
const onRenderAvatar = useCallback((userId, options) => (React.createElement(Stack, { className: mergeStyles({ position: 'absolute', height: '100%', width: '100%' }) },
|
40
|
+
React.createElement(AvatarPersona, Object.assign({ userId: userId }, options, { dataProvider: props.onFetchAvatarPersonaData })))), [props.onFetchAvatarPersonaData]);
|
39
41
|
useLocalVideoStartTrigger(!!props.isVideoStreamOn);
|
40
42
|
const VideoGalleryMemoized = useMemo(() => {
|
41
|
-
return (React.createElement(VideoGallery, Object.assign({}, videoGalleryProps, { remoteParticipants: remoteParticipants, localVideoViewOptions: localVideoViewOptions, remoteVideoViewOptions: remoteVideoViewOptions, styles: VideoGalleryStyles, layout: "floatingLocalVideo", showCameraSwitcherInLocalPreview: props.isMobile, localVideoCameraCycleButtonProps: cameraSwitcherProps, onRenderAvatar:
|
42
|
-
|
43
|
-
}, [videoGalleryProps, props.isMobile, props.onFetchAvatarPersonaData, remoteParticipants, cameraSwitcherProps]);
|
43
|
+
return (React.createElement(VideoGallery, Object.assign({}, videoGalleryProps, { remoteParticipants: remoteParticipants, localVideoViewOptions: localVideoViewOptions, remoteVideoViewOptions: remoteVideoViewOptions, styles: VideoGalleryStyles, layout: "floatingLocalVideo", showCameraSwitcherInLocalPreview: props.isMobile, localVideoCameraCycleButtonProps: cameraSwitcherProps, onRenderAvatar: onRenderAvatar })));
|
44
|
+
}, [videoGalleryProps, props.isMobile, onRenderAvatar, remoteParticipants, cameraSwitcherProps]);
|
44
45
|
return VideoGalleryMemoized;
|
45
46
|
};
|
46
47
|
/**
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MediaGallery.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/MediaGallery.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"MediaGallery.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/components/MediaGallery.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACL,YAAY,EAIb,4CAAmC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAA6B,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,mCAAmC,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,2BAA2B,EAAE,4CAAmC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E,MAAM,kBAAkB,GAAG;IACzB,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,OAAO;QAClB,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC;AAEF,MAAM,qBAAqB,GAAG;IAC5B,WAAW,EAAE,MAAM;IACnB,UAAU,EAAE,IAAI;CACK,CAAC;AAExB,MAAM,sBAAsB,GAAG;IAC7B,WAAW,EAAE,MAAM;CACE,CAAC;AAcxB;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAe,EAAE;IACpE,MAAM,iBAAiB,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IACpD,MAAM,qBAAqB,GAAG,WAAW,CAAC,mCAAmC,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AC,EAAE,EAAE;;QACtD,MAAM,OAAO,GAAG,MAAA,iBAAiB,CAAC,CAAC,CAAC,0CAAE,IAAI,CAAC;QAC3C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,CAAC,CAAC;SACV;QACD,uCAAY,CAAC,KAAE,WAAW,EAAE,OAAO,IAAG;IACxC,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC"}
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CallState as SDKCallStatus } from '@azure/communication-calling';
|
1
|
+
import { CallState as SDKCallStatus, DominantSpeakersInfo } from '@azure/communication-calling';
|
2
2
|
import { CallState, DeviceManagerState, DiagnosticsCallFeatureState, LocalVideoStreamState, RemoteParticipantState } from "../../../../../calling-stateful-client/src";
|
3
3
|
import { CallAdapterState, CallCompositePage } from '../adapter/CallAdapter';
|
4
4
|
/**
|
@@ -56,7 +56,7 @@ export declare const getUserFacingDiagnostics: (state: CallAdapterState) => Diag
|
|
56
56
|
/**
|
57
57
|
* @private
|
58
58
|
*/
|
59
|
-
export declare const
|
59
|
+
export declare const getDominantSpeakerInfo: (state: CallAdapterState) => undefined | DominantSpeakersInfo;
|
60
60
|
/**
|
61
61
|
* @private
|
62
62
|
*/
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"baseSelectors.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/baseSelectors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,8BAA8B,CAAC;
|
1
|
+
{"version":3,"file":"baseSelectors.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/baseSelectors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,IAA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AEG;AACH,eAAO,MAAM,sBAAsB,UAAW,gBAAgB,KAAG,SAAS,GAAG,oBAC/C,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,qBAAqB,UACzB,gBAAgB;;aAKc,CAAC"}
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
2
2
|
// Licensed under the MIT license.
|
3
|
-
import { _isPreviewOn
|
3
|
+
import { _isPreviewOn } from "../../../../../calling-component-bindings/src";
|
4
4
|
/**
|
5
5
|
* @private
|
6
6
|
*/
|
@@ -56,7 +56,7 @@ export const getUserFacingDiagnostics = (state) => { var _a; return (_a = state.
|
|
56
56
|
/**
|
57
57
|
* @private
|
58
58
|
*/
|
59
|
-
export const
|
59
|
+
export const getDominantSpeakerInfo = (state) => { var _a; return (_a = state.call) === null || _a === void 0 ? void 0 : _a.dominantSpeakers; };
|
60
60
|
/**
|
61
61
|
* @private
|
62
62
|
*/
|
package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"baseSelectors.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/baseSelectors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAAa,YAAY,
|
1
|
+
{"version":3,"file":"baseSelectors.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/baseSelectors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EAAa,YAAY,EAA+B,sDAA6C;AAE5G;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAuB,EAAsB,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC;AAEjG;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAuB,EAAsB,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,0CAAE,aAAa,CAAC,qBAAqB,CAAA,CAAA,EAAA,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAuB,EAAW,EAAE,WAAC,OAAA,CAAC,CAAC,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,SAAS,CAAC,iBAAiB,CAAA,CAAA,EAAA,CAAC;AAEpH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,KAAuB,EAA2C,EAAE,WAC3G,OAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,WAAW,CAAA,EAAA,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAuB,EAAoC,EAAE,WAClG,OAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,gBAAgB,CAAA,EAAA,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,KAAuB,EAKnB,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,kBAAkB,CAAA,EAAA,CAAC"}
|
@@ -8,5 +8,5 @@ import * as reselect from 'reselect';
|
|
8
8
|
*/
|
9
9
|
export declare const dominantRemoteParticipantSelector: reselect.OutputSelector<import("../../../../../communication-react/src/index").CallAdapterState, import("../../../../../communication-react/src/index").VideoGalleryRemoteParticipant | undefined, (res1: {
|
10
10
|
[keys: string]: RemoteParticipantState;
|
11
|
-
} | undefined, res2:
|
11
|
+
} | undefined, res2: import("@azure/communication-calling").DominantSpeakersInfo | undefined) => import("../../../../../communication-react/src/index").VideoGalleryRemoteParticipant | undefined>;
|
12
12
|
//# sourceMappingURL=dominantRemoteParticipantSelector.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dominantRemoteParticipantSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dominantRemoteParticipantSelector.d.ts","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,sBAAsB,EAAE,mDAA0C;AAC3E,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AAGrC;;;;;GAKG;AACH,eAAO,MAAM,iCAAiC;;kMAW7C,CAAC"}
|
@@ -1,15 +1,16 @@
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
2
2
|
// Licensed under the MIT license.
|
3
|
-
import { _videoGalleryRemoteParticipantsMemo } from "../../../../../calling-component-bindings/src";
|
3
|
+
import { _dominantSpeakersWithFlatId, _videoGalleryRemoteParticipantsMemo } from "../../../../../calling-component-bindings/src";
|
4
4
|
import * as reselect from 'reselect';
|
5
|
-
import {
|
5
|
+
import { getDominantSpeakerInfo, getRemoteParticipants } from './baseSelectors';
|
6
6
|
/**
|
7
7
|
* Get the most dominant remote participant, if no dominant speaker IDs exist, this uses
|
8
8
|
* one of the remote participants with no bias towards which one.
|
9
9
|
*
|
10
10
|
* @private
|
11
11
|
*/
|
12
|
-
export const dominantRemoteParticipantSelector = reselect.createSelector([getRemoteParticipants,
|
12
|
+
export const dominantRemoteParticipantSelector = reselect.createSelector([getRemoteParticipants, getDominantSpeakerInfo], (remoteParticipants, dominantSpeakerInfo) => {
|
13
|
+
const dominantSpeakers = _dominantSpeakersWithFlatId(dominantSpeakerInfo);
|
13
14
|
const dominantRemoteParticipant = remoteParticipants && Object.keys(remoteParticipants).length > 0
|
14
15
|
? findDominantRemoteParticipant(remoteParticipants, dominantSpeakers !== null && dominantSpeakers !== void 0 ? dominantSpeakers : [])
|
15
16
|
: undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dominantRemoteParticipantSelector.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,
|
1
|
+
{"version":3,"file":"dominantRemoteParticipantSelector.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,2BAA2B,EAG3B,mCAAmC,EACpC,sDAA6C;AAE9C,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,QAAQ,CAAC,cAAc,CACtE,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,EAC/C,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,EAAE;IAC1C,MAAM,gBAAgB,GAAG,2BAA2B,CAAC,mBAAmB,CAAC,CAAC;IAC1E,MAAM,yBAAyB,GAC7B,kBAAkB,IAAI,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,MAAM,GAAG,CAAC;QAC9D,CAAC,CAAC,6BAA6B,CAAC,kBAAkB,EAAE,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,EAAE,CAAC;QAC3E,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,yBAAyB,CAAC,CAAC,CAAC,mCAAmC,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACnH,CAAC,CACF,CAAC;AAEF,MAAM,6BAA6B,GAAG,CACpC,kBAA8D,EAC9D,kBAA4B,EAC6B,EAAE;IAC3D,IAAI,2BAA2B,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAExD,sFAAsF;IACtF,wFAAwF;IACxF,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;IAC7D,IAAI,CAAC,2BAA2B,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE;QAC/F,2BAA2B,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;KACvD;IAED,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,EAAE,CAAC;AAC1F,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/communication-react",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.3.1-alpha-202205310013.0",
|
4
4
|
"sideEffects": false,
|
5
5
|
"description": "React library for building modern communication user experiences utilizing Azure Communication Services",
|
6
6
|
"keywords": [
|
@@ -85,12 +85,12 @@
|
|
85
85
|
"@azure/core-auth": "1.3.2",
|
86
86
|
"@babel/cli": "~7.16.0",
|
87
87
|
"@babel/core": "~7.16.0",
|
88
|
-
"@internal/calling-component-bindings": "1.
|
89
|
-
"@internal/calling-stateful-client": "1.
|
90
|
-
"@internal/chat-component-bindings": "1.
|
91
|
-
"@internal/chat-stateful-client": "1.
|
92
|
-
"@internal/react-components": "1.
|
93
|
-
"@internal/react-composites": "1.
|
88
|
+
"@internal/calling-component-bindings": "1.3.1-alpha-202205310013.0",
|
89
|
+
"@internal/calling-stateful-client": "1.3.1-alpha-202205310013.0",
|
90
|
+
"@internal/chat-component-bindings": "1.3.1-alpha-202205310013.0",
|
91
|
+
"@internal/chat-stateful-client": "1.3.1-alpha-202205310013.0",
|
92
|
+
"@internal/react-components": "1.3.1-alpha-202205310013.0",
|
93
|
+
"@internal/react-composites": "1.3.1-alpha-202205310013.0",
|
94
94
|
"@microsoft/api-documenter": "~7.12.11",
|
95
95
|
"@microsoft/api-extractor": "~7.18.0",
|
96
96
|
"@rollup/plugin-json": "~4.1.0",
|