@azure/communication-react 1.3.3-alpha-202209140018.0 → 1.3.3-alpha-202209150016.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 +62 -3
- package/dist/dist-cjs/communication-react/index.js +171 -34
- 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/createHandlers.d.ts +8 -4
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +26 -5
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -0
- package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
- package/dist/dist-esm/communication-react/src/index.d.ts +3 -0
- package/dist/dist-esm/communication-react/src/index.js +2 -0
- package/dist/dist-esm/communication-react/src/index.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/DomainPermissions.d.ts +45 -0
- package/dist/dist-esm/react-components/src/components/DomainPermissions.js +42 -0
- package/dist/dist-esm/react-components/src/components/DomainPermissions.js.map +1 -0
- package/dist/dist-esm/react-components/src/components/ParticipantList.js +3 -6
- package/dist/dist-esm/react-components/src/components/ParticipantList.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.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/DomainPermissions.styles.d.ts +30 -0
- package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js +74 -0
- package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +1 -0
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -0
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +5 -0
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +5 -1
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +6 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +3 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +4 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +8 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +3 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +13 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +6 -11
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
- package/package.json +8 -8
@@ -184,6 +184,13 @@ export declare interface AdapterState<TState> {
|
|
184
184
|
getState(): TState;
|
185
185
|
}
|
186
186
|
|
187
|
+
/**
|
188
|
+
* handler type for addParticipant
|
189
|
+
*
|
190
|
+
* @beta
|
191
|
+
*/
|
192
|
+
export declare type AddParticipantHandler = ((participant: CommunicationUserIdentifier) => Promise<void>) & ((participant: PhoneNumberIdentifier, options: AddPhoneNumberOptions) => Promise<void>);
|
193
|
+
|
187
194
|
/**
|
188
195
|
* Compare if 2 react components are exact equal, result type will be true/false
|
189
196
|
*
|
@@ -490,7 +497,8 @@ export declare interface CallAdapterCallManagement {
|
|
490
497
|
*
|
491
498
|
* @beta
|
492
499
|
*/
|
493
|
-
addParticipant(participant:
|
500
|
+
addParticipant(participant: PhoneNumberIdentifier, options?: AddPhoneNumberOptions): Promise<void>;
|
501
|
+
addParticipant(participant: CommunicationUserIdentifier): Promise<void>;
|
494
502
|
/**
|
495
503
|
* send dtmf tone to another participant in a 1:1 PSTN call
|
496
504
|
*
|
@@ -1481,7 +1489,7 @@ export declare type CallingHandlers = {
|
|
1481
1489
|
onToggleScreenShare: () => Promise<void>;
|
1482
1490
|
onHangUp: () => Promise<void>;
|
1483
1491
|
onToggleHold: () => Promise<void>;
|
1484
|
-
onAddParticipant:
|
1492
|
+
onAddParticipant: AddParticipantHandler;
|
1485
1493
|
onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
1486
1494
|
onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;
|
1487
1495
|
onRemoveParticipant: (userId: string) => Promise<void>;
|
@@ -1916,7 +1924,8 @@ export declare interface CallWithChatAdapterManagement {
|
|
1916
1924
|
*
|
1917
1925
|
* @beta
|
1918
1926
|
*/
|
1919
|
-
addParticipant
|
1927
|
+
addParticipant(participant: PhoneNumberIdentifier, options?: AddPhoneNumberOptions): Promise<void>;
|
1928
|
+
addParticipant(participant: CommunicationUserIdentifier): Promise<void>;
|
1920
1929
|
/**
|
1921
1930
|
* send dtmf tone to another participant in the call in 1:1 calls
|
1922
1931
|
*
|
@@ -3297,6 +3306,8 @@ export declare interface ComponentStrings {
|
|
3297
3306
|
videoTile: VideoTileStrings;
|
3298
3307
|
/** Strings for HoldButton */
|
3299
3308
|
holdButton: HoldButtonStrings;
|
3309
|
+
/** Strings for DomainPermissions */
|
3310
|
+
DomainPermissions: DomainPermissionsStrings;
|
3300
3311
|
}
|
3301
3312
|
|
3302
3313
|
/**
|
@@ -4004,6 +4015,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4004
4015
|
SendBoxSendHovered: JSX.Element;
|
4005
4016
|
VideoTileMicOff: JSX.Element;
|
4006
4017
|
BackSpace: JSX.Element;
|
4018
|
+
iconBackdrop: JSX.Element;
|
4007
4019
|
};
|
4008
4020
|
|
4009
4021
|
/**
|
@@ -4091,6 +4103,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4091
4103
|
HoldCallButton: JSX.Element;
|
4092
4104
|
ResumeCall: JSX.Element;
|
4093
4105
|
BackSpace: JSX.Element;
|
4106
|
+
iconBackdrop: JSX.Element;
|
4094
4107
|
};
|
4095
4108
|
|
4096
4109
|
/**
|
@@ -4385,6 +4398,52 @@ export declare interface Disposable {
|
|
4385
4398
|
dispose(): void;
|
4386
4399
|
}
|
4387
4400
|
|
4401
|
+
/**
|
4402
|
+
* @beta
|
4403
|
+
*
|
4404
|
+
* Component to allow Contoso to help their end user with their devices should their permissions be blocked
|
4405
|
+
* by their browsers settings.
|
4406
|
+
*/
|
4407
|
+
export declare const DomainPermissions: (props: DomainPermissionsProps) => JSX.Element;
|
4408
|
+
|
4409
|
+
/**
|
4410
|
+
* @beta
|
4411
|
+
* Props for DomainPermissions component.
|
4412
|
+
*/
|
4413
|
+
export declare interface DomainPermissionsProps {
|
4414
|
+
/**
|
4415
|
+
* Name of application calling experience is in.
|
4416
|
+
*/
|
4417
|
+
appName: string;
|
4418
|
+
/**
|
4419
|
+
* Action to be taken by the more help link. Possible to send to external page or show other modal.
|
4420
|
+
*/
|
4421
|
+
onTroubleshootingClick: () => void;
|
4422
|
+
/**
|
4423
|
+
* Localization strings for DomainPermissions component.
|
4424
|
+
*/
|
4425
|
+
strings: DomainPermissionsStrings;
|
4426
|
+
}
|
4427
|
+
|
4428
|
+
/**
|
4429
|
+
* @beta
|
4430
|
+
* Strings for DomainPermissions component
|
4431
|
+
*/
|
4432
|
+
export declare interface DomainPermissionsStrings {
|
4433
|
+
/**
|
4434
|
+
* Main text string.
|
4435
|
+
*/
|
4436
|
+
primaryText: string;
|
4437
|
+
/**
|
4438
|
+
* Subtext string.
|
4439
|
+
*/
|
4440
|
+
secondaryText: string;
|
4441
|
+
/**
|
4442
|
+
* More help link string.
|
4443
|
+
*/
|
4444
|
+
linkText: string;
|
4445
|
+
}
|
4446
|
+
|
4388
4447
|
/**
|
4389
4448
|
* DTMF tone for PSTN calls.
|
4390
4449
|
*
|
@@ -192,7 +192,7 @@ const fromFlatCommunicationIdentifier = (id) => {
|
|
192
192
|
// Copyright (c) Microsoft Corporation.
|
193
193
|
// Licensed under the MIT license.
|
194
194
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
195
|
-
var telemetryVersion = '1.3.3-alpha-
|
195
|
+
var telemetryVersion = '1.3.3-alpha-202209150016.0';
|
196
196
|
|
197
197
|
// Copyright (c) Microsoft Corporation.
|
198
198
|
/**
|
@@ -752,11 +752,14 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
|
|
752
752
|
});
|
753
753
|
/* @conditional-compile-remove(PSTN-calls) */
|
754
754
|
const onAddParticipant = (participant, options) => __awaiter$v(void 0, void 0, void 0, function* () {
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
755
|
+
const participantType = participantTypeHelper(participant);
|
756
|
+
switch (participantType) {
|
757
|
+
case 'PSTN':
|
758
|
+
yield (call === null || call === void 0 ? void 0 : call.addParticipant(participant, options));
|
759
|
+
break;
|
760
|
+
case 'ACS':
|
761
|
+
yield (call === null || call === void 0 ? void 0 : call.addParticipant(participant));
|
762
|
+
break;
|
760
763
|
}
|
761
764
|
});
|
762
765
|
/* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
|
@@ -802,6 +805,24 @@ const createDefaultCallingHandlers = memoizeOne__default['default']((callClient,
|
|
802
805
|
const createDefaultCallingHandlersForComponent = (callClient, callAgent, deviceManager, call, _Component) => {
|
803
806
|
return createDefaultCallingHandlers(callClient, callAgent, deviceManager, call);
|
804
807
|
};
|
808
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
809
|
+
/**
|
810
|
+
* Helper function for determining participant type.
|
811
|
+
*/
|
812
|
+
const participantTypeHelper = (p) => {
|
813
|
+
if (communicationCommon.isPhoneNumberIdentifier(p)) {
|
814
|
+
return 'PSTN';
|
815
|
+
}
|
816
|
+
else if (communicationCommon.isCommunicationUserIdentifier(p)) {
|
817
|
+
return 'ACS';
|
818
|
+
}
|
819
|
+
else if (communicationCommon.isMicrosoftTeamsUserIdentifier(p)) {
|
820
|
+
return 'Teams';
|
821
|
+
}
|
822
|
+
else {
|
823
|
+
return 'unknown';
|
824
|
+
}
|
825
|
+
};
|
805
826
|
|
806
827
|
// Copyright (c) Microsoft Corporation.
|
807
828
|
/**
|
@@ -957,7 +978,7 @@ const typingIndicatorStringStyle = react.mergeStyles({
|
|
957
978
|
wordBreak: 'break-word'
|
958
979
|
});
|
959
980
|
|
960
|
-
var participantItem$d={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed Participant",participantStateConnecting:"Calling...",participantStateRinging:"Calling...",participantStateHold:"On hold"};var typingIndicator$d={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$d={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",fileUploadsPendingError:"Uploading... Please wait.",removeFile:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed"};var messageStatusIndicator$d={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$d={label:"Leave",tooltipContent:"Leave Call"};var cameraButton$d={onLabel:"Turn off",offLabel:"Turn on",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose Camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera and camera options",offSplitButtonAriaLabel:"Turn on camera and camera options",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off"};var microphoneButton$d={onLabel:"Mute",offLabel:"Unmute",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose Microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose Speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute microphone and audio options",offSplitButtonAriaLabel:"Unmute microphone and audio options",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off"};var devicesButton$d={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose Camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose Audio Device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose Microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose Speaker"};var participantsButton$d={label:"People",tooltipContent:"Show Participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link"};var screenShareButton$d={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var messageThread$d={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",messageContentAriaText:"{author} said {message}",messageContentMineAriaText:"You said {message}",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Submit",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadFile:"Download file"};var errorBar$d={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"Failed to start screen sharing",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneMutedBySystem:"You are muted by your system.",callMicrophoneUnmutedBySystem:"Your microphone recovered and you were unmuted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callVideoStoppedBySystem:"Your video has been stopped by your system.",callVideoRecoveredBySystem:"Your video has resumed.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link."};var videoGallery$d={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed Participant"};var dialpad$d={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile={participantStateConnecting:"Calling...",participantStateRinging:"Calling...",participantStateHold:"On hold"};var en_US$1 = {participantItem:participantItem$d,typingIndicator:typingIndicator$d,sendBox:sendBox$d,messageStatusIndicator:messageStatusIndicator$d,endCallButton:endCallButton$d,cameraButton:cameraButton$d,microphoneButton:microphoneButton$d,devicesButton:devicesButton$d,participantsButton:participantsButton$d,screenShareButton:screenShareButton$d,messageThread:messageThread$d,errorBar:errorBar$d,videoGallery:videoGallery$d,dialpad:dialpad$d,holdButton:holdButton,videoTile:videoTile};
|
981
|
+
var participantItem$d={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed Participant",participantStateConnecting:"Calling...",participantStateRinging:"Calling...",participantStateHold:"On hold"};var typingIndicator$d={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$d={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",fileUploadsPendingError:"Uploading... Please wait.",removeFile:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed"};var messageStatusIndicator$d={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$d={label:"Leave",tooltipContent:"Leave Call"};var cameraButton$d={onLabel:"Turn off",offLabel:"Turn on",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose Camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera and camera options",offSplitButtonAriaLabel:"Turn on camera and camera options",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off"};var microphoneButton$d={onLabel:"Mute",offLabel:"Unmute",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose Microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose Speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute microphone and audio options",offSplitButtonAriaLabel:"Unmute microphone and audio options",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off"};var devicesButton$d={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose Camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose Audio Device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose Microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose Speaker"};var participantsButton$d={label:"People",tooltipContent:"Show Participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link"};var screenShareButton$d={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var messageThread$d={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",messageContentAriaText:"{author} said {message}",messageContentMineAriaText:"You said {message}",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Submit",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadFile:"Download file"};var errorBar$d={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"Failed to start screen sharing",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneMutedBySystem:"You are muted by your system.",callMicrophoneUnmutedBySystem:"Your microphone recovered and you were unmuted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callVideoStoppedBySystem:"Your video has been stopped by your system.",callVideoRecoveredBySystem:"Your video has resumed.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link."};var videoGallery$d={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed Participant"};var dialpad$d={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile={participantStateConnecting:"Calling...",participantStateRinging:"Calling...",participantStateHold:"On hold"};var DomainPermissions$1={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"More help"};var en_US$1 = {participantItem:participantItem$d,typingIndicator:typingIndicator$d,sendBox:sendBox$d,messageStatusIndicator:messageStatusIndicator$d,endCallButton:endCallButton$d,cameraButton:cameraButton$d,microphoneButton:microphoneButton$d,devicesButton:devicesButton$d,participantsButton:participantsButton$d,screenShareButton:screenShareButton$d,messageThread:messageThread$d,errorBar:errorBar$d,videoGallery:videoGallery$d,dialpad:dialpad$d,holdButton:holdButton,videoTile:videoTile,DomainPermissions:DomainPermissions$1};
|
961
982
|
|
962
983
|
var participantItem$c={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed Participant"};var typingIndicator$c={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$c={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",fileUploadsPendingError:"Uploading... Please wait."};var messageStatusIndicator$c={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$c={label:"Leave",tooltipContent:"Leave Call"};var cameraButton$c={onLabel:"Turn off",offLabel:"Turn on",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose Camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera and camera options",offSplitButtonAriaLabel:"Turn on camera and camera options",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off"};var microphoneButton$c={onLabel:"Mute",offLabel:"Unmute",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose Microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose Speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute microphone and audio options",offSplitButtonAriaLabel:"Unmute microphone and audio options",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off"};var devicesButton$c={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose Camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose Audio Device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose Microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose Speaker"};var participantsButton$c={label:"People",tooltipContent:"Show Participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link"};var screenShareButton$c={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var messageThread$c={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Submit",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options"};var errorBar$c={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"Failed to start screen sharing",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneMutedBySystem:"You are muted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link."};var videoGallery$c={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed Participant"};var dialpad$c={placeholderText:"Enter a number"};var HoldButton$d={onLabel:"Resume",offLabel:"Hold",toolTipOnContent:"Resume call",toolTipOffContent:"Hold call"};var en_GB$1 = {participantItem:participantItem$c,typingIndicator:typingIndicator$c,sendBox:sendBox$c,messageStatusIndicator:messageStatusIndicator$c,endCallButton:endCallButton$c,cameraButton:cameraButton$c,microphoneButton:microphoneButton$c,devicesButton:devicesButton$c,participantsButton:participantsButton$c,screenShareButton:screenShareButton$c,messageThread:messageThread$c,errorBar:errorBar$c,videoGallery:videoGallery$c,dialpad:dialpad$c,HoldButton:HoldButton$d};
|
963
984
|
|
@@ -1949,7 +1970,9 @@ const DEFAULT_COMPONENT_ICONS = {
|
|
1949
1970
|
SendBoxSendHovered: React__default['default'].createElement(reactIcons.Send20Filled, null),
|
1950
1971
|
VideoTileMicOff: React__default['default'].createElement(reactIcons.MicOff16Filled, null),
|
1951
1972
|
/* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */
|
1952
|
-
BackSpace: React__default['default'].createElement(reactIcons.Backspace20Regular, null)
|
1973
|
+
BackSpace: React__default['default'].createElement(reactIcons.Backspace20Regular, null),
|
1974
|
+
/* @conditional-compile-remove(call-readiness) */
|
1975
|
+
iconBackdrop: React__default['default'].createElement(reactIcons.Circle24Filled, null)
|
1953
1976
|
};
|
1954
1977
|
|
1955
1978
|
// Copyright (c) Microsoft Corporation.
|
@@ -4597,12 +4620,10 @@ const ParticipantList = (props) => {
|
|
4597
4620
|
const createParticipantMenuItems = React.useCallback((participant) => {
|
4598
4621
|
var _a, _b;
|
4599
4622
|
let menuItems = [];
|
4600
|
-
let
|
4601
|
-
/* @conditional-compile-remove(rooms) */
|
4602
|
-
const isRemovable = _usePermissions().removeParticipantButton;
|
4623
|
+
let participantIsRemovable = participant.isRemovable;
|
4603
4624
|
/* @conditional-compile-remove(rooms) */
|
4604
|
-
|
4605
|
-
if (participant.userId !== myUserId && onRemoveParticipant) {
|
4625
|
+
participantIsRemovable = _usePermissions().removeParticipantButton && participantIsRemovable;
|
4626
|
+
if (participant.userId !== myUserId && onRemoveParticipant && participantIsRemovable) {
|
4606
4627
|
menuItems.push({
|
4607
4628
|
key: 'remove',
|
4608
4629
|
text: strings.removeButtonLabel,
|
@@ -4610,7 +4631,6 @@ const ParticipantList = (props) => {
|
|
4610
4631
|
itemProps: {
|
4611
4632
|
styles: (_b = (_a = props.styles) === null || _a === void 0 ? void 0 : _a.participantItemStyles) === null || _b === void 0 ? void 0 : _b.participantSubMenuItemsStyles
|
4612
4633
|
},
|
4613
|
-
disabled: disabled,
|
4614
4634
|
'data-ui-id': ids.participantListRemoveParticipantButton
|
4615
4635
|
});
|
4616
4636
|
}
|
@@ -6973,6 +6993,109 @@ const MicrophoneButton = (props) => {
|
|
6973
6993
|
: undefined), menuIconProps: ((_l = props.menuIconProps) !== null && _l !== void 0 ? _l : !props.enableDeviceSelectionMenu) ? { hidden: true } : undefined, split: (_m = props.split) !== null && _m !== void 0 ? _m : props.enableDeviceSelectionMenu, "aria-roledescription": props.enableDeviceSelectionMenu ? strings.microphoneButtonSplitRoleDescription : undefined, splitButtonAriaLabel: props.enableDeviceSelectionMenu ? splitButtonAriaString : undefined, disabled: disabled, primaryDisabled: primaryDisabled }))));
|
6974
6994
|
};
|
6975
6995
|
|
6996
|
+
// Copyright (c) Microsoft Corporation.
|
6997
|
+
/**
|
6998
|
+
* @internal
|
6999
|
+
*/
|
7000
|
+
const iconContainerStyles = {
|
7001
|
+
root: {
|
7002
|
+
margin: 'auto',
|
7003
|
+
position: 'relative'
|
7004
|
+
}
|
7005
|
+
};
|
7006
|
+
/**
|
7007
|
+
* @internal
|
7008
|
+
*/
|
7009
|
+
const textContainerStyles = {
|
7010
|
+
root: {
|
7011
|
+
margin: 'auto',
|
7012
|
+
textAlign: 'center'
|
7013
|
+
}
|
7014
|
+
};
|
7015
|
+
/**
|
7016
|
+
* @internal
|
7017
|
+
*/
|
7018
|
+
const iconPrimaryStyles = {
|
7019
|
+
root: {
|
7020
|
+
position: 'absolute',
|
7021
|
+
color: '#2B88D8',
|
7022
|
+
transform: 'scale(2)',
|
7023
|
+
zIndex: 1,
|
7024
|
+
margin: 'auto'
|
7025
|
+
}
|
7026
|
+
};
|
7027
|
+
/**
|
7028
|
+
* @internal
|
7029
|
+
*/
|
7030
|
+
const iconBackDropStyles = {
|
7031
|
+
root: {
|
7032
|
+
color: '#EFF6FC',
|
7033
|
+
transform: 'scale(4)'
|
7034
|
+
}
|
7035
|
+
};
|
7036
|
+
/**
|
7037
|
+
* @internal
|
7038
|
+
*/
|
7039
|
+
const primaryTextStyles = {
|
7040
|
+
root: {
|
7041
|
+
fontWeight: 600,
|
7042
|
+
fontSize: _pxToRem(20),
|
7043
|
+
lineHeight: _pxToRem(28),
|
7044
|
+
paddingBottom: '1rem'
|
7045
|
+
}
|
7046
|
+
};
|
7047
|
+
/**
|
7048
|
+
* @internal
|
7049
|
+
*/
|
7050
|
+
const secondaryTextStyles$1 = {
|
7051
|
+
root: {
|
7052
|
+
margin: 'auto',
|
7053
|
+
fontWeight: 400,
|
7054
|
+
paddingBottom: '0.5rem'
|
7055
|
+
}
|
7056
|
+
};
|
7057
|
+
/**
|
7058
|
+
* @internal
|
7059
|
+
*/
|
7060
|
+
const linkTextStyles = {
|
7061
|
+
root: {
|
7062
|
+
margin: 'auto',
|
7063
|
+
fontWeight: 600,
|
7064
|
+
textAlign: 'inherit'
|
7065
|
+
}
|
7066
|
+
};
|
7067
|
+
|
7068
|
+
// Copyright (c) Microsoft Corporation.
|
7069
|
+
/* @conditional-compile-remove(call-readiness) */
|
7070
|
+
const DomainPermissionsContainer = (props) => {
|
7071
|
+
const { appName, onTroubleshootingClick, strings } = props;
|
7072
|
+
return (React__default['default'].createElement(react.Stack, { style: { padding: '2rem', maxWidth: '25.375rem' } },
|
7073
|
+
React__default['default'].createElement(react.Stack, { horizontal: true, style: { padding: '2rem 0' }, horizontalAlign: 'space-between' },
|
7074
|
+
React__default['default'].createElement(react.Stack, { styles: iconContainerStyles, horizontalAlign: 'center' },
|
7075
|
+
React__default['default'].createElement(react.Icon, { styles: iconPrimaryStyles, iconName: 'ControlButtonCameraOn' }),
|
7076
|
+
React__default['default'].createElement(react.Icon, { styles: iconBackDropStyles, iconName: 'iconBackdrop' })),
|
7077
|
+
React__default['default'].createElement(react.Icon, { styles: iconPrimaryStyles, iconName: 'Sparkle' }),
|
7078
|
+
React__default['default'].createElement(react.Stack, { styles: iconContainerStyles, horizontalAlign: 'center' },
|
7079
|
+
React__default['default'].createElement(react.Icon, { styles: iconPrimaryStyles, iconName: 'ControlButtonMicOn' }),
|
7080
|
+
React__default['default'].createElement(react.Icon, { styles: iconBackDropStyles, iconName: 'iconBackdrop' }))),
|
7081
|
+
React__default['default'].createElement(react.Stack, { styles: textContainerStyles },
|
7082
|
+
React__default['default'].createElement(react.Text, { styles: primaryTextStyles }, _formatString(strings.primaryText, { appName: appName })),
|
7083
|
+
React__default['default'].createElement(react.Text, { styles: secondaryTextStyles$1 }, strings.secondaryText),
|
7084
|
+
React__default['default'].createElement(react.Link, { styles: linkTextStyles, onClick: onTroubleshootingClick }, strings.linkText))));
|
7085
|
+
};
|
7086
|
+
/**
|
7087
|
+
* @beta
|
7088
|
+
*
|
7089
|
+
* Component to allow Contoso to help their end user with their devices should their permissions be blocked
|
7090
|
+
* by their browsers settings.
|
7091
|
+
*/
|
7092
|
+
const DomainPermissions = (props) => {
|
7093
|
+
/* @conditional-compile-remove(call-readiness) */
|
7094
|
+
const locale = useLocale$1().strings.DomainPermissions;
|
7095
|
+
/* @conditional-compile-remove(call-readiness) */
|
7096
|
+
return React__default['default'].createElement(DomainPermissionsContainer, Object.assign({}, props, { strings: locale }));
|
7097
|
+
};
|
7098
|
+
|
6976
7099
|
// Copyright (c) Microsoft Corporation.
|
6977
7100
|
/**
|
6978
7101
|
* A button to show a menu with calling or chat participants.
|
@@ -14581,16 +14704,17 @@ const disableCallControls = (callControlOptions, disabledControls) => {
|
|
14581
14704
|
};
|
14582
14705
|
/**
|
14583
14706
|
* Check if a disabled object is provided for a button and returns if the button is disabled.
|
14707
|
+
* A button is only disabled if is explicitly set to disabled.
|
14584
14708
|
*
|
14585
14709
|
* @param option
|
14586
14710
|
* @returns whether a button is disabled
|
14587
14711
|
* @private
|
14588
14712
|
*/
|
14589
14713
|
const isDisabled$2 = (option) => {
|
14590
|
-
if (typeof option
|
14591
|
-
return
|
14714
|
+
if (option === undefined || typeof option === 'boolean') {
|
14715
|
+
return false;
|
14592
14716
|
}
|
14593
|
-
return option;
|
14717
|
+
return option.disabled;
|
14594
14718
|
};
|
14595
14719
|
|
14596
14720
|
// Copyright (c) Microsoft Corporation.
|
@@ -15973,11 +16097,11 @@ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
15973
16097
|
const PeoplePaneContent = (props) => {
|
15974
16098
|
const { inviteLink, onFetchParticipantMenuItems, setDrawerMenuItems, strings, onRemoveParticipant } = props;
|
15975
16099
|
const participantListDefaultProps = usePropsFor$1(ParticipantList);
|
15976
|
-
const
|
16100
|
+
const removeButtonAllowed = hasRemoveParticipantsPermissionTrampoline();
|
15977
16101
|
const setDrawerMenuItemsForParticipant = React.useMemo(() => {
|
15978
16102
|
return (participant) => {
|
15979
16103
|
if (participant) {
|
15980
|
-
let contextualMenuItems = createDefaultContextualMenuItems(participant, strings, participantListDefaultProps.onRemoveParticipant, participantListDefaultProps.myUserId
|
16104
|
+
let contextualMenuItems = createDefaultContextualMenuItems(participant, strings, removeButtonAllowed ? participantListDefaultProps.onRemoveParticipant : undefined, participantListDefaultProps.myUserId);
|
15981
16105
|
if (onFetchParticipantMenuItems) {
|
15982
16106
|
contextualMenuItems = onFetchParticipantMenuItems(participant.userId, participantListDefaultProps.myUserId, contextualMenuItems);
|
15983
16107
|
}
|
@@ -15989,7 +16113,7 @@ const PeoplePaneContent = (props) => {
|
|
15989
16113
|
strings,
|
15990
16114
|
participantListDefaultProps.onRemoveParticipant,
|
15991
16115
|
participantListDefaultProps.myUserId,
|
15992
|
-
|
16116
|
+
removeButtonAllowed,
|
15993
16117
|
onFetchParticipantMenuItems,
|
15994
16118
|
setDrawerMenuItems
|
15995
16119
|
]);
|
@@ -16025,13 +16149,9 @@ const PeoplePaneContent = (props) => {
|
|
16025
16149
|
* @param localParticipantUserId - Local participant user id
|
16026
16150
|
* @returns - IContextualMenuItem[]
|
16027
16151
|
*/
|
16028
|
-
const createDefaultContextualMenuItems = (participant, strings, onRemoveParticipant, localParticipantUserId
|
16029
|
-
let disabled = !participant.isRemovable;
|
16030
|
-
if (disableRemoveButton) {
|
16031
|
-
disabled = disabled || disableRemoveButton;
|
16032
|
-
}
|
16152
|
+
const createDefaultContextualMenuItems = (participant, strings, onRemoveParticipant, localParticipantUserId) => {
|
16033
16153
|
const menuItems = [];
|
16034
|
-
if ((participant === null || participant === void 0 ? void 0 : participant.userId) !== localParticipantUserId) {
|
16154
|
+
if (onRemoveParticipant && (participant === null || participant === void 0 ? void 0 : participant.userId) !== localParticipantUserId) {
|
16035
16155
|
menuItems.push({
|
16036
16156
|
key: 'remove',
|
16037
16157
|
text: strings.removeMenuLabel,
|
@@ -16042,8 +16162,7 @@ const createDefaultContextualMenuItems = (participant, strings, onRemoveParticip
|
|
16042
16162
|
},
|
16043
16163
|
iconProps: {
|
16044
16164
|
iconName: 'UserRemove'
|
16045
|
-
}
|
16046
|
-
disabled: disabled
|
16165
|
+
}
|
16047
16166
|
});
|
16048
16167
|
}
|
16049
16168
|
return menuItems;
|
@@ -18070,7 +18189,12 @@ class AzureCommunicationCallAdapter {
|
|
18070
18189
|
/* @conditional-compile-remove(PSTN-calls) */
|
18071
18190
|
addParticipant(participant, options) {
|
18072
18191
|
return __awaiter$4(this, void 0, void 0, function* () {
|
18073
|
-
|
18192
|
+
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
18193
|
+
this.handlers.onAddParticipant(participant, options);
|
18194
|
+
}
|
18195
|
+
else if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
18196
|
+
this.handlers.onAddParticipant(participant);
|
18197
|
+
}
|
18074
18198
|
});
|
18075
18199
|
}
|
18076
18200
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -18869,15 +18993,22 @@ class CallWithChatBackedCallAdapter {
|
|
18869
18993
|
yield this.callWithChatAdapter.resumeCall();
|
18870
18994
|
});
|
18871
18995
|
/* @conditional-compile-remove(PSTN-calls) */
|
18872
|
-
this.addParticipant = (participant, options) => __awaiter$3(this, void 0, void 0, function* () {
|
18873
|
-
yield this.callWithChatAdapter.addParticipant(participant, options);
|
18874
|
-
});
|
18875
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
18876
18996
|
this.sendDtmfTone = (dtmfTone) => __awaiter$3(this, void 0, void 0, function* () {
|
18877
18997
|
yield this.callWithChatAdapter.sendDtmfTone(dtmfTone);
|
18878
18998
|
});
|
18879
18999
|
this.callWithChatAdapter = callWithChatAdapter;
|
18880
19000
|
}
|
19001
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
19002
|
+
addParticipant(participant, options) {
|
19003
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
19004
|
+
if (communicationCommon.isPhoneNumberIdentifier(participant) && options) {
|
19005
|
+
return this.callWithChatAdapter.addParticipant(participant, options);
|
19006
|
+
}
|
19007
|
+
else {
|
19008
|
+
return this.callWithChatAdapter.addParticipant(participant);
|
19009
|
+
}
|
19010
|
+
});
|
19011
|
+
}
|
18881
19012
|
}
|
18882
19013
|
function callAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState) {
|
18883
19014
|
return {
|
@@ -19835,7 +19966,12 @@ class AzureCommunicationCallWithChatAdapter {
|
|
19835
19966
|
/* @conditional-compile-remove(PSTN-calls) */
|
19836
19967
|
addParticipant(participant, options) {
|
19837
19968
|
return __awaiter(this, void 0, void 0, function* () {
|
19838
|
-
|
19969
|
+
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
19970
|
+
return yield this.callAdapter.addParticipant(participant);
|
19971
|
+
}
|
19972
|
+
else {
|
19973
|
+
return yield this.callAdapter.addParticipant(participant, options);
|
19974
|
+
}
|
19839
19975
|
});
|
19840
19976
|
}
|
19841
19977
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -20230,6 +20366,7 @@ exports.DEFAULT_COMPONENT_ICONS = DEFAULT_COMPONENT_ICONS;
|
|
20230
20366
|
exports.DEFAULT_COMPOSITE_ICONS = DEFAULT_COMPOSITE_ICONS;
|
20231
20367
|
exports.DevicesButton = DevicesButton;
|
20232
20368
|
exports.Dialpad = Dialpad;
|
20369
|
+
exports.DomainPermissions = DomainPermissions;
|
20233
20370
|
exports.EndCallButton = EndCallButton;
|
20234
20371
|
exports.ErrorBar = ErrorBar;
|
20235
20372
|
exports.FluentThemeProvider = FluentThemeProvider;
|