@azure/communication-react 1.4.2-alpha-202211010021.0 → 1.4.2-alpha-202211020017.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/communication-react.d.ts +4 -1
- package/dist/dist-cjs/communication-react/index.js +19 -10
- 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/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +5 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +5 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +10 -3
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +7 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +11 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +2 -1
- package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +3 -0
- package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
- package/package.json +8 -8
@@ -1726,6 +1726,8 @@ export declare type CallParticipantListParticipant = ParticipantListParticipant
|
|
1726
1726
|
isMuted?: boolean;
|
1727
1727
|
/** Whether calling participant is speaking */
|
1728
1728
|
isSpeaking?: boolean;
|
1729
|
+
/** Role of participant in Rooms call */
|
1730
|
+
role?: Role;
|
1729
1731
|
};
|
1730
1732
|
|
1731
1733
|
/**
|
@@ -6764,8 +6766,9 @@ export declare interface RemoteVideoStreamState {
|
|
6764
6766
|
|
6765
6767
|
/**
|
6766
6768
|
* @beta
|
6769
|
+
* The role of a call participant.
|
6767
6770
|
*/
|
6768
|
-
export declare type Role = 'Presenter' | 'Attendee' | 'Consumer';
|
6771
|
+
export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer';
|
6769
6772
|
|
6770
6773
|
/**
|
6771
6774
|
* A button to start / stop screen sharing.
|
@@ -202,7 +202,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
202
202
|
// Copyright (c) Microsoft Corporation.
|
203
203
|
// Licensed under the MIT license.
|
204
204
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
205
|
-
var telemetryVersion = '1.4.2-alpha-
|
205
|
+
var telemetryVersion = '1.4.2-alpha-202211020017.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -8619,12 +8619,6 @@ const updateUserDisplayNamesTrampoline$2 = (remoteParticipants) => {
|
|
8619
8619
|
};
|
8620
8620
|
|
8621
8621
|
// Copyright (c) Microsoft Corporation.
|
8622
|
-
/**
|
8623
|
-
* @private
|
8624
|
-
*/
|
8625
|
-
const memoizedConvertAllremoteParticipants = memoizeFnAll((userId, displayName, state, isMuted, isScreenSharing, isSpeaking) => {
|
8626
|
-
return convertRemoteParticipantToParticipantListParticipant(userId, displayName, state, isMuted, isScreenSharing, isSpeaking);
|
8627
|
-
});
|
8628
8622
|
const convertRemoteParticipantToParticipantListParticipant = (userId, displayName, state, isMuted, isScreenSharing, isSpeaking) => {
|
8629
8623
|
const identifier = fromFlatCommunicationIdentifier(userId);
|
8630
8624
|
return {
|
@@ -8639,10 +8633,22 @@ const convertRemoteParticipantToParticipantListParticipant = (userId, displayNam
|
|
8639
8633
|
isRemovable: communicationCommon.getIdentifierKind(identifier).kind === 'communicationUser' || communicationCommon.getIdentifierKind(identifier).kind === 'phoneNumber'
|
8640
8634
|
};
|
8641
8635
|
};
|
8636
|
+
/* @conditional-compile-remove(rooms) */
|
8637
|
+
/**
|
8638
|
+
* @private
|
8639
|
+
*/
|
8640
|
+
const memoizedConvertAllremoteParticipantsBeta = memoizeFnAll((userId, displayName, state, isMuted, isScreenSharing, isSpeaking, role) => {
|
8641
|
+
return convertRemoteParticipantToParticipantListParticipantBeta(userId, displayName, state, isMuted, isScreenSharing, isSpeaking, role);
|
8642
|
+
});
|
8643
|
+
/* @conditional-compile-remove(rooms) */
|
8644
|
+
const convertRemoteParticipantToParticipantListParticipantBeta = (userId, displayName, state, isMuted, isScreenSharing, isSpeaking, role) => {
|
8645
|
+
return Object.assign(Object.assign({}, convertRemoteParticipantToParticipantListParticipant(userId, displayName, state, isMuted, isScreenSharing, isSpeaking)), { role });
|
8646
|
+
};
|
8642
8647
|
|
8643
8648
|
// Copyright (c) Microsoft Corporation.
|
8644
8649
|
const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipants) => {
|
8645
|
-
|
8650
|
+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
8651
|
+
const conversionCallback = (memoizeFn) => {
|
8646
8652
|
return (remoteParticipants
|
8647
8653
|
// temporarily hiding lobby participants in ACS clients till we can admit users through ACS clients
|
8648
8654
|
.filter((participant) => {
|
@@ -8650,7 +8656,8 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
|
|
8650
8656
|
})
|
8651
8657
|
.map((participant) => {
|
8652
8658
|
const isScreenSharing = Object.values(participant.videoStreams).some((videoStream) => videoStream.mediaStreamType === 'ScreenSharing' && videoStream.isAvailable);
|
8653
|
-
return memoizeFn(toFlatCommunicationIdentifier(participant.identifier), participant.displayName, participant.state, participant.isMuted, isScreenSharing, participant.isSpeaking
|
8659
|
+
return memoizeFn(toFlatCommunicationIdentifier(participant.identifier), participant.displayName, participant.state, participant.isMuted, isScreenSharing, participant.isSpeaking,
|
8660
|
+
/* @conditional-compile-remove(rooms) */ participant.role);
|
8654
8661
|
})
|
8655
8662
|
.sort((a, b) => {
|
8656
8663
|
var _a, _b;
|
@@ -8666,7 +8673,9 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
|
|
8666
8673
|
return 0;
|
8667
8674
|
}
|
8668
8675
|
}));
|
8669
|
-
}
|
8676
|
+
};
|
8677
|
+
/* @conditional-compile-remove(rooms) */
|
8678
|
+
return memoizedConvertAllremoteParticipantsBeta(conversionCallback);
|
8670
8679
|
};
|
8671
8680
|
/**
|
8672
8681
|
* Selects data that drives {@link ParticipantList} component.
|