@azure/communication-react 1.9.0-alpha-202310110013 → 1.9.0-alpha-202310120012
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 +3 -3
- package/dist/dist-cjs/communication-react/index.js +15 -19
- 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/handlers/createTeamsCallHandlers.js +5 -9
- package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +2 -5
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +3 -4
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +7 -8
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +2 -2
- package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +1 -1
- package/package.json +11 -11
@@ -73,7 +73,7 @@ import { LatestNetworkDiagnostics } from '@azure/communication-calling';
|
|
73
73
|
import { LocalVideoStream } from '@azure/communication-calling';
|
74
74
|
import type { MediaDiagnosticChangedEventArgs } from '@azure/communication-calling';
|
75
75
|
import { MediaStreamType } from '@azure/communication-calling';
|
76
|
-
import {
|
76
|
+
import { MicrosoftTeamsAppKind } from '@azure/communication-common';
|
77
77
|
import { MicrosoftTeamsUserIdentifier } from '@azure/communication-common';
|
78
78
|
import { MicrosoftTeamsUserKind } from '@azure/communication-common';
|
79
79
|
import type { NetworkDiagnosticChangedEventArgs } from '@azure/communication-calling';
|
@@ -2216,7 +2216,7 @@ export declare type CallErrors = {
|
|
2216
2216
|
*
|
2217
2217
|
* @public
|
2218
2218
|
*/
|
2219
|
-
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.setConstraints';
|
2219
|
+
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteAllRemoteParticipants' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.setConstraints';
|
2220
2220
|
|
2221
2221
|
/**
|
2222
2222
|
* Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
|
@@ -8584,7 +8584,7 @@ export declare interface RemoteParticipantState {
|
|
8584
8584
|
/**
|
8585
8585
|
* Proxy of {@link @azure/communication-calling#RemoteParticipant.identifier}.
|
8586
8586
|
*/
|
8587
|
-
identifier: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind |
|
8587
|
+
identifier: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind | MicrosoftTeamsAppKind;
|
8588
8588
|
/**
|
8589
8589
|
* Proxy of {@link @azure/communication-calling#RemoteParticipant.displayName}.
|
8590
8590
|
*/
|
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
178
178
|
// Licensed under the MIT License.
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
180
|
-
var telemetryVersion = '1.9.0-alpha-
|
180
|
+
var telemetryVersion = '1.9.0-alpha-202310120012';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -1165,9 +1165,8 @@ const createDefaultTeamsCallingHandlers = memoizeOne__default["default"]((callCl
|
|
1165
1165
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
1166
1166
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
1167
1167
|
}
|
1168
|
-
|
1169
|
-
|
1170
|
-
throw new Error('Adding Microsoft Bot Identifier is not supported!');
|
1168
|
+
if (communicationCommon.isMicrosoftTeamsAppIdentifier(participant)) {
|
1169
|
+
throw new Error('Adding Microsoft Teams app identifier is not supported!');
|
1171
1170
|
}
|
1172
1171
|
/* @conditional-compile-remove(teams-identity-support) */
|
1173
1172
|
if (communicationCommon.isPhoneNumberIdentifier(participant)) {
|
@@ -1180,9 +1179,8 @@ const createDefaultTeamsCallingHandlers = memoizeOne__default["default"]((callCl
|
|
1180
1179
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
1181
1180
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
1182
1181
|
}
|
1183
|
-
|
1184
|
-
|
1185
|
-
throw new Error('Removing Microsoft Bot Identifier is not supported!');
|
1182
|
+
if (communicationCommon.isMicrosoftTeamsAppIdentifier(participant)) {
|
1183
|
+
throw new Error('Removing Microsoft Teams app identifier is not supported!');
|
1186
1184
|
}
|
1187
1185
|
/* @conditional-compile-remove(teams-identity-support) */
|
1188
1186
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
@@ -8473,9 +8471,9 @@ const bodyContainer = {
|
|
8473
8471
|
width: '100%',
|
8474
8472
|
height: '100%',
|
8475
8473
|
overflow: 'hidden',
|
8476
|
-
padding: '
|
8474
|
+
padding: '1rem 2rem 3rem 2rem',
|
8477
8475
|
'@media (max-width: 25rem) or (max-height: 25rem)': {
|
8478
|
-
padding: '2rem'
|
8476
|
+
padding: '0rem 1rem 2rem 1rem'
|
8479
8477
|
}
|
8480
8478
|
};
|
8481
8479
|
/**
|
@@ -9946,11 +9944,7 @@ const MessageBubble = (props) => {
|
|
9946
9944
|
: props.message.status === 'failed'
|
9947
9945
|
? chatMessageCommonStyles.failed
|
9948
9946
|
: undefined, attached !== 'top' ? chatMyMessageStyles.bodyAttached : undefined, react.mergeStyles(messageContainerStyle)),
|
9949
|
-
style: Object.assign({}, createStyleFromV8Style(messageContainerStyle))
|
9950
|
-
// make body not focusable to remove repetitions from narrators.
|
9951
|
-
// inner components are already focusable
|
9952
|
-
tabIndex: -1,
|
9953
|
-
role: 'presentation'
|
9947
|
+
style: Object.assign({}, createStyleFromV8Style(messageContainerStyle))
|
9954
9948
|
}, root: {
|
9955
9949
|
className: chatMyMessageStyles.root,
|
9956
9950
|
onBlur: (e) => {
|
@@ -9971,6 +9965,7 @@ const MessageBubble = (props) => {
|
|
9971
9965
|
role: 'none',
|
9972
9966
|
tabIndex: -1
|
9973
9967
|
}, "data-ui-id": "chat-composite-message", author: React__default["default"].createElement(react.Text, { className: chatMessageDateStyle, tabIndex: 0 }, message.senderDisplayName), timestamp: React__default["default"].createElement(react.Text, { className: chatMessageDateStyle, "data-ui-id": ids.messageTimestamp, tabIndex: 0 }, formattedTimestamp), details: getMessageDetails(), actions: {
|
9968
|
+
tabIndex: 0,
|
9974
9969
|
children: actionMenuProps === null || actionMenuProps === void 0 ? void 0 : actionMenuProps.children,
|
9975
9970
|
className: reactComponents.mergeClasses(chatMyMessageStyles.menu,
|
9976
9971
|
// Make actions menu visible when the message is focused or the flyout is shown
|
@@ -9990,13 +9985,15 @@ const MessageBubble = (props) => {
|
|
9990
9985
|
if (message.messageType === 'chat') {
|
9991
9986
|
props.onActionButtonClick(message, setMessageReadBy);
|
9992
9987
|
}
|
9993
|
-
} }, getContent())) : (React__default["default"].createElement(reactChat.ChatMessage, { attached: attached, key: props.message.messageId, root: {
|
9994
|
-
className:
|
9995
|
-
style: Object.assign({}, createStyleFromV8Style(messageContainerStyle)),
|
9988
|
+
} }, getContent())) : (React__default["default"].createElement(reactChat.ChatMessage, { attached: attached, key: props.message.messageId, root: {
|
9989
|
+
className: chatMessageStyles.root,
|
9996
9990
|
// make body not focusable to remove repetitions from narrators.
|
9997
9991
|
// inner components are already focusable
|
9998
9992
|
tabIndex: -1,
|
9999
9993
|
role: 'none'
|
9994
|
+
}, author: React__default["default"].createElement(react.Text, { className: chatMessageAuthorStyle }, message.senderDisplayName), body: {
|
9995
|
+
className: chatItemMessageContainerClassName,
|
9996
|
+
style: Object.assign({}, createStyleFromV8Style(messageContainerStyle))
|
10000
9997
|
}, "data-ui-id": "chat-composite-message", timestamp: React__default["default"].createElement(react.Text, { className: chatMessageDateStyle, "data-ui-id": ids.messageTimestamp }, formattedTimestamp) }, getContent()))),
|
10001
9998
|
chatActionsEnabled && (React__default["default"].createElement(ChatMessageActionFlyout, { hidden: !chatMessageActionFlyoutTarget, target: chatMessageActionFlyoutTarget, increaseFlyoutItemSize: wasInteractionByTouch, onDismiss: onActionFlyoutDismiss, onEditClick: onEditClick, onRemoveClick: onRemoveClick, onResendClick: onResendClick, strings: strings, messageReadBy: messageReadBy, messageStatus: messageStatus !== null && messageStatus !== void 0 ? messageStatus : 'failed', remoteParticipantsCount: remoteParticipantsCount, onRenderAvatar: onRenderAvatar, showMessageStatus: showMessageStatus }))));
|
10002
9999
|
return chatMessage;
|
@@ -18579,8 +18576,7 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
|
|
18579
18576
|
return (remoteParticipants
|
18580
18577
|
// Filter out MicrosoftBot participants
|
18581
18578
|
.filter((participant) => {
|
18582
|
-
|
18583
|
-
return !communicationCommon.isMicrosoftBotIdentifier(participant.identifier);
|
18579
|
+
return !communicationCommon.isMicrosoftTeamsAppIdentifier(participant.identifier);
|
18584
18580
|
})
|
18585
18581
|
/**
|
18586
18582
|
* hiding participants who are inLobby, idle, or connecting in ACS clients till we can admit users through ACS clients.
|