@azure/communication-react 1.14.0-alpha-202403080013 → 1.14.0-alpha-202403120012
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 +12 -10
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-CQnsLK4_.js → RichTextSendBoxWrapper-DdhoRD21.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-CQnsLK4_.js.map → RichTextSendBoxWrapper-DdhoRD21.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index--vbi3hW5.js → index-C48Yhr_k.js} +146 -134
- package/dist/dist-cjs/communication-react/index-C48Yhr_k.js.map +1 -0
- package/dist/dist-cjs/communication-react/index.js +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/chat-component-bindings/src/messageThreadSelector.js +14 -25
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +13 -2
- package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
- package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.d.ts +11 -2
- package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +36 -12
- package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +3 -3
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +20 -22
- package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ImageOverlay.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/ImageOverlay.js +1 -1
- package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ReactionButton.d.ts +2 -0
- package/dist/dist-esm/react-components/src/components/ReactionButton.js +1 -1
- package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +3 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +12 -2
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +1 -1
- package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +1 -0
- package/dist/dist-esm/react-components/src/theming/themes.d.ts +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.js +1 -1
- package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +7 -0
- package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +0 -2
- 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.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +2 -10
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +1 -22
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +0 -2
- 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 +2 -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.js +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +28 -10
- package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -9
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +0 -8
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js +0 -7
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -8
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SendBox.js +1 -2
- package/dist/dist-esm/react-composites/src/composites/common/SendBox.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.js +0 -2
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +3 -3
- package/dist/dist-cjs/communication-react/index--vbi3hW5.js.map +0 -1
@@ -173,7 +173,7 @@ function getDefaultExportFromCjs (x) {
|
|
173
173
|
// Copyright (c) Microsoft Corporation.
|
174
174
|
// Licensed under the MIT License.
|
175
175
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
176
|
-
var telemetryVersion = '1.14.0-alpha-
|
176
|
+
var telemetryVersion = '1.14.0-alpha-202403120012';
|
177
177
|
|
178
178
|
|
179
179
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -5468,7 +5468,7 @@ const typingIndicatorStringStyle = react.mergeStyles({
|
|
5468
5468
|
wordBreak: 'break-word'
|
5469
5469
|
});
|
5470
5470
|
|
5471
|
-
var participantItem$k={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed participant",participantStateRinging:"Calling...",participantStateHold:"On hold",attendeeRole:"Attendee"};var ParticipantList$l={overflowParticipantCount:"+{overflowCount} more"};var typingIndicator$k={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$k={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 richTextSendBox={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",boldTooltip:"Bold",italicTooltip:"Italic",underlineTooltip:"Underline",bulletListTooltip:"Bulleted list",numberListTooltip:"Numbered list",increaseIndentTooltip:"Increase indent",decreaseIndentTooltip:"Decrease indent",richTextFormatButtonTooltip:"Format"};var mentionPopover$k={mentionPopoverHeader:"Suggestions"};var imageOverlay$k={downloadButtonLabel:"Download",dismissButtonAriaLabel:"Close"};var messageStatusIndicator$k={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$k={label:"Leave",tooltipContent:"Leave call"};var cameraButton$k={onLabel:"Camera",offLabel:"Camera",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",onSplitButtonPrimaryActionCamera:"Turn off camera",offSplitButtonPrimaryActionCamera:"Turn on camera",cameraPrimaryActionSplitButtonTitle:"Use camera",videoEffectsMenuItemTitle:"Effects"};var microphoneButton$k={onLabel:"Mic",offLabel:"Mic",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",offSplitButtonMicrophonePrimaryAction:"Unmute microphone",onSplitButtonMicrophonePrimaryAction:"Mute microphone",microphonePrimaryActionSplitButtonTitle:"Use microphone"};var devicesButton$k={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$k={label:"People",tooltipContent:"Show participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkActionedAriaLabel:"Invite link copied"};var screenShareButton$k={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var raiseHandButton$k={offLabel:"Raise",onLabel:"Lower",tooltipDisabledContent:"Raise Hand action is disabled",tooltipOnContent:"Lower Hand",tooltipOffContent:"Raise Hand"};var reactionButton$k={label:"React",tooltipDisabledContent:"Reaction action is disabled",tooltipContent:"Send a reaction",likeReactionTooltipContent:"Like",heartReactionTooltipContent:"Love",laughReactionTooltipContent:"Laugh",applauseReactionTooltipContent:"Applause",surprisedReactionTooltipContent:"Surprised"};var messageThread$k={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:"Done",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadFile:"Download file",blockedWarningText:"This message was deleted due to organizational policy.",blockedWarningLinkText:"Details",fileCardGroupMessage:"The message has {fileCount} attachment",messageDeletedAnnouncementAriaLabel:"The message is deleted"};var errorBar$k={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:"There was an issue starting screen share.",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.",callMicrophoneAccessDeniedSafari:"Unable to access microphone. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",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.",callCameraAccessDeniedSafari:"Unable to access camera. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",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.",cameraFrozenForRemoteParticipants:"Users in the call are having issues seeing your video. Please check your devices and network.",unableToStartVideoEffect:"Unable to apply video effect.",startSpotlightWhileMaxParticipantsAreSpotlighted:"Cannot start spotlight on participant(s) because the maximum number of participants are already spotlighted."};var videoGallery$k={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",fitRemoteParticipantToFrame:"Fit to frame",fillRemoteParticipantFrame:"Fill frame",pinParticipantForMe:"Pin for me",pinParticipantForMeLimitReached:"Pin (limit reached)",unpinParticipantForMe:"Unpin",pinParticipantMenuItemAriaLabel:"Pin {participantName}",unpinParticipantMenuItemAriaLabel:"Unpin {participantName}",pinnedParticipantAnnouncementAriaLabel:"Pinned {participantName}",unpinnedParticipantAnnouncementAriaLabel:"Unpinned {participantName}",startSpotlightVideoTileMenuLabel:"Spotlight for everyone",addSpotlightVideoTileMenuLabel:"Add spotlight",spotlightLimitReachedMenuTitle:"Spotlight limit reached",stopSpotlightVideoTileMenuLabel:"Stop spotlighting",stopSpotlightOnSelfVideoTileMenuLabel:"Exit spotlight",attendeeRole:"Attendee"};var dialpad$k={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton$k={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile$k={participantStateRinging:"Calling...",participantStateHold:"On hold"};var CameraAndMicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Allow camera and microphone access"};var CameraSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera",secondaryText:"This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Allow camera access"};var MicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your microphone",secondaryText:"This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Allow microphone access"};var CameraAndMicrophoneSitePermissionsCheck$k={primaryText:"Checking for camera and microphone access",secondaryText:"Allow access if prompted. This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Checking for camera and microphone access. Allow access if prompted."};var CameraSitePermissionsCheck$k={primaryText:"Checking for camera access",secondaryText:"Allow access if prompted. This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Checking for camera access. Allow access if prompted."};var MicrophoneSitePermissionsCheck$k={primaryText:"Checking for microphone access",secondaryText:"Allow access if prompted. This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Checking for microphone access. Allow access if prompted."};var CameraAndMicrophoneSitePermissionsDenied$k={primaryText:"Unable to access camera and microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraAndMicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera and microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDenied$k={primaryText:"Unable to access camera",secondaryText:"Click the lock icon in the address bar to grant camera permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDenied$k={primaryText:"Unable to access microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var UnsupportedBrowser$l={primaryText:"Browser not supported",secondaryText:"Please join this call using a compatible browser.",moreHelpLinkText:"See compatibility requirements"};var UnsupportedBrowserVersion$l={primaryText:"Browser update needed",secondaryText:"To ensure the best call possible, please update your browser and then try joining the call again.",moreHelpLinkText:"See compatibility requirements",continueAnywayButtonText:"Start call without updating"};var UnsupportedOperatingSystem$l={primaryText:"Operating system not supported",secondaryText:"Please join this call using a device with a compatible operating system.",moreHelpLinkText:"See compatibility requirements"};var BrowserPermissionDenied$k={primaryText:"Can't use your camera or microphone",secondaryText:"Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",primaryButtonText:"Try again",linkText:"Need help? Get troubleshooting help"};var BrowserPermissionDeniedIOS$k={primaryText:"Allow microphone access to continue",secondaryText:"So other participants can hear you.",primaryButtonText:"Try again",imageAltText:"Microphone and camera device permission location for iOS",linkText:"Need help? Get troubleshooting help",step1Text:"Go to the Settings app",step2Text:"Scroll down to settings for this browser",step3Text:"Turn on Microphone (Camera optional)",step4Text:"Try joining the call again",step1DigitText:"1",step2DigitText:"2",step3DigitText:"3",step4DigitText:"4"};var verticalGallery$k={leftNavButtonAriaLabel:"previous page",rightNavButtonAriaLabel:"next page"};var en_US$1 = {participantItem:participantItem$k,ParticipantList:ParticipantList$l,typingIndicator:typingIndicator$k,sendBox:sendBox$k,richTextSendBox:richTextSendBox,mentionPopover:mentionPopover$k,imageOverlay:imageOverlay$k,messageStatusIndicator:messageStatusIndicator$k,endCallButton:endCallButton$k,cameraButton:cameraButton$k,microphoneButton:microphoneButton$k,devicesButton:devicesButton$k,participantsButton:participantsButton$k,screenShareButton:screenShareButton$k,raiseHandButton:raiseHandButton$k,reactionButton:reactionButton$k,messageThread:messageThread$k,errorBar:errorBar$k,videoGallery:videoGallery$k,dialpad:dialpad$k,holdButton:holdButton$k,videoTile:videoTile$k,CameraAndMicrophoneSitePermissionsRequest:CameraAndMicrophoneSitePermissionsRequest$k,CameraSitePermissionsRequest:CameraSitePermissionsRequest$k,MicrophoneSitePermissionsRequest:MicrophoneSitePermissionsRequest$k,CameraAndMicrophoneSitePermissionsCheck:CameraAndMicrophoneSitePermissionsCheck$k,CameraSitePermissionsCheck:CameraSitePermissionsCheck$k,MicrophoneSitePermissionsCheck:MicrophoneSitePermissionsCheck$k,CameraAndMicrophoneSitePermissionsDenied:CameraAndMicrophoneSitePermissionsDenied$k,CameraAndMicrophoneSitePermissionsDeniedSafari:CameraAndMicrophoneSitePermissionsDeniedSafari$k,CameraSitePermissionsDenied:CameraSitePermissionsDenied$k,MicrophoneSitePermissionsDenied:MicrophoneSitePermissionsDenied$k,CameraSitePermissionsDeniedSafari:CameraSitePermissionsDeniedSafari$k,MicrophoneSitePermissionsDeniedSafari:MicrophoneSitePermissionsDeniedSafari$k,UnsupportedBrowser:UnsupportedBrowser$l,UnsupportedBrowserVersion:UnsupportedBrowserVersion$l,UnsupportedOperatingSystem:UnsupportedOperatingSystem$l,BrowserPermissionDenied:BrowserPermissionDenied$k,BrowserPermissionDeniedIOS:BrowserPermissionDeniedIOS$k,verticalGallery:verticalGallery$k};
|
5471
|
+
var participantItem$k={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed participant",participantStateRinging:"Calling...",participantStateHold:"On hold",attendeeRole:"Attendee"};var ParticipantList$l={overflowParticipantCount:"+{overflowCount} more"};var typingIndicator$k={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$k={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 richTextSendBox={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",boldTooltip:"Bold",italicTooltip:"Italic",underlineTooltip:"Underline",bulletListTooltip:"Bulleted list",numberListTooltip:"Numbered list",increaseIndentTooltip:"Increase indent",decreaseIndentTooltip:"Decrease indent",richTextFormatButtonTooltip:"Format"};var mentionPopover$k={mentionPopoverHeader:"Suggestions"};var imageOverlay$k={downloadButtonLabel:"Download",dismissButtonAriaLabel:"Close"};var messageStatusIndicator$k={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$k={label:"Leave",tooltipContent:"Leave call"};var cameraButton$k={onLabel:"Camera",offLabel:"Camera",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",onSplitButtonPrimaryActionCamera:"Turn off camera",offSplitButtonPrimaryActionCamera:"Turn on camera",cameraPrimaryActionSplitButtonTitle:"Use camera",videoEffectsMenuItemTitle:"Effects"};var microphoneButton$k={onLabel:"Mic",offLabel:"Mic",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",offSplitButtonMicrophonePrimaryAction:"Unmute microphone",onSplitButtonMicrophonePrimaryAction:"Mute microphone",microphonePrimaryActionSplitButtonTitle:"Use microphone"};var devicesButton$k={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$k={label:"People",tooltipContent:"Show participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkActionedAriaLabel:"Invite link copied"};var screenShareButton$k={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var raiseHandButton$k={offLabel:"Raise",onLabel:"Lower",tooltipDisabledContent:"Raise Hand action is disabled",tooltipOnContent:"Lower Hand",tooltipOffContent:"Raise Hand"};var reactionButton$k={label:"React",ariaLabel:"React Button, Send a reaction",tooltipDisabledContent:"Reaction action is disabled",tooltipContent:"Send a reaction",likeReactionTooltipContent:"Like",heartReactionTooltipContent:"Love",laughReactionTooltipContent:"Laugh",applauseReactionTooltipContent:"Applause",surprisedReactionTooltipContent:"Surprised"};var messageThread$k={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:"Done",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadFile:"Download file",blockedWarningText:"This message was deleted due to organizational policy.",blockedWarningLinkText:"Details",fileCardGroupMessage:"The message has {fileCount} attachment",messageDeletedAnnouncementAriaLabel:"The message is deleted"};var errorBar$k={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:"There was an issue starting screen share.",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.",callMicrophoneAccessDeniedSafari:"Unable to access microphone. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",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.",callCameraAccessDeniedSafari:"Unable to access camera. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",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.",cameraFrozenForRemoteParticipants:"Users in the call are having issues seeing your video. Please check your devices and network.",unableToStartVideoEffect:"Unable to apply video effect.",startSpotlightWhileMaxParticipantsAreSpotlighted:"Cannot start spotlight on participant(s) because the maximum number of participants are already spotlighted."};var videoGallery$k={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",fitRemoteParticipantToFrame:"Fit to frame",fillRemoteParticipantFrame:"Fill frame",pinParticipantForMe:"Pin for me",pinParticipantForMeLimitReached:"Pin (limit reached)",unpinParticipantForMe:"Unpin",pinParticipantMenuItemAriaLabel:"Pin {participantName}",unpinParticipantMenuItemAriaLabel:"Unpin {participantName}",pinnedParticipantAnnouncementAriaLabel:"Pinned {participantName}",unpinnedParticipantAnnouncementAriaLabel:"Unpinned {participantName}",startSpotlightVideoTileMenuLabel:"Spotlight for everyone",addSpotlightVideoTileMenuLabel:"Add spotlight",spotlightLimitReachedMenuTitle:"Spotlight limit reached",stopSpotlightVideoTileMenuLabel:"Stop spotlighting",stopSpotlightOnSelfVideoTileMenuLabel:"Exit spotlight",attendeeRole:"Attendee"};var dialpad$k={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton$k={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile$k={participantStateRinging:"Calling...",participantStateHold:"On hold"};var CameraAndMicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Allow camera and microphone access"};var CameraSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera",secondaryText:"This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Allow camera access"};var MicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your microphone",secondaryText:"This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Allow microphone access"};var CameraAndMicrophoneSitePermissionsCheck$k={primaryText:"Checking for camera and microphone access",secondaryText:"Allow access if prompted. This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Checking for camera and microphone access. Allow access if prompted."};var CameraSitePermissionsCheck$k={primaryText:"Checking for camera access",secondaryText:"Allow access if prompted. This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Checking for camera access. Allow access if prompted."};var MicrophoneSitePermissionsCheck$k={primaryText:"Checking for microphone access",secondaryText:"Allow access if prompted. This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Checking for microphone access. Allow access if prompted."};var CameraAndMicrophoneSitePermissionsDenied$k={primaryText:"Unable to access camera and microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraAndMicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera and microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDenied$k={primaryText:"Unable to access camera",secondaryText:"Click the lock icon in the address bar to grant camera permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDenied$k={primaryText:"Unable to access microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var UnsupportedBrowser$l={primaryText:"Browser not supported",secondaryText:"Please join this call using a compatible browser.",moreHelpLinkText:"See compatibility requirements"};var UnsupportedBrowserVersion$l={primaryText:"Browser update needed",secondaryText:"To ensure the best call possible, please update your browser and then try joining the call again.",moreHelpLinkText:"See compatibility requirements",continueAnywayButtonText:"Start call without updating"};var UnsupportedOperatingSystem$l={primaryText:"Operating system not supported",secondaryText:"Please join this call using a device with a compatible operating system.",moreHelpLinkText:"See compatibility requirements"};var BrowserPermissionDenied$k={primaryText:"Can't use your camera or microphone",secondaryText:"Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",primaryButtonText:"Try again",linkText:"Need help? Get troubleshooting help"};var BrowserPermissionDeniedIOS$k={primaryText:"Allow microphone access to continue",secondaryText:"So other participants can hear you.",primaryButtonText:"Try again",imageAltText:"Microphone and camera device permission location for iOS",linkText:"Need help? Get troubleshooting help",step1Text:"Go to the Settings app",step2Text:"Scroll down to settings for this browser",step3Text:"Turn on Microphone (Camera optional)",step4Text:"Try joining the call again",step1DigitText:"1",step2DigitText:"2",step3DigitText:"3",step4DigitText:"4"};var verticalGallery$k={leftNavButtonAriaLabel:"previous page",rightNavButtonAriaLabel:"next page"};var en_US$1 = {participantItem:participantItem$k,ParticipantList:ParticipantList$l,typingIndicator:typingIndicator$k,sendBox:sendBox$k,richTextSendBox:richTextSendBox,mentionPopover:mentionPopover$k,imageOverlay:imageOverlay$k,messageStatusIndicator:messageStatusIndicator$k,endCallButton:endCallButton$k,cameraButton:cameraButton$k,microphoneButton:microphoneButton$k,devicesButton:devicesButton$k,participantsButton:participantsButton$k,screenShareButton:screenShareButton$k,raiseHandButton:raiseHandButton$k,reactionButton:reactionButton$k,messageThread:messageThread$k,errorBar:errorBar$k,videoGallery:videoGallery$k,dialpad:dialpad$k,holdButton:holdButton$k,videoTile:videoTile$k,CameraAndMicrophoneSitePermissionsRequest:CameraAndMicrophoneSitePermissionsRequest$k,CameraSitePermissionsRequest:CameraSitePermissionsRequest$k,MicrophoneSitePermissionsRequest:MicrophoneSitePermissionsRequest$k,CameraAndMicrophoneSitePermissionsCheck:CameraAndMicrophoneSitePermissionsCheck$k,CameraSitePermissionsCheck:CameraSitePermissionsCheck$k,MicrophoneSitePermissionsCheck:MicrophoneSitePermissionsCheck$k,CameraAndMicrophoneSitePermissionsDenied:CameraAndMicrophoneSitePermissionsDenied$k,CameraAndMicrophoneSitePermissionsDeniedSafari:CameraAndMicrophoneSitePermissionsDeniedSafari$k,CameraSitePermissionsDenied:CameraSitePermissionsDenied$k,MicrophoneSitePermissionsDenied:MicrophoneSitePermissionsDenied$k,CameraSitePermissionsDeniedSafari:CameraSitePermissionsDeniedSafari$k,MicrophoneSitePermissionsDeniedSafari:MicrophoneSitePermissionsDeniedSafari$k,UnsupportedBrowser:UnsupportedBrowser$l,UnsupportedBrowserVersion:UnsupportedBrowserVersion$l,UnsupportedOperatingSystem:UnsupportedOperatingSystem$l,BrowserPermissionDenied:BrowserPermissionDenied$k,BrowserPermissionDeniedIOS:BrowserPermissionDeniedIOS$k,verticalGallery:verticalGallery$k};
|
5472
5472
|
|
5473
5473
|
// Copyright (c) Microsoft Corporation.
|
5474
5474
|
// Licensed under the MIT License.
|
@@ -6357,7 +6357,7 @@ const darkTheme = {
|
|
6357
6357
|
/**
|
6358
6358
|
* Preset dark theme for the ImageOverlay component.
|
6359
6359
|
*
|
6360
|
-
* @
|
6360
|
+
* @public
|
6361
6361
|
*/
|
6362
6362
|
const imageOverlayTheme = {
|
6363
6363
|
palette: darkTheme.palette,
|
@@ -9141,7 +9141,7 @@ const smallDownloadButtonContainerStyle = (theme) => {
|
|
9141
9141
|
/**
|
9142
9142
|
* Component to render a fullscreen modal for a selected image.
|
9143
9143
|
*
|
9144
|
-
* @
|
9144
|
+
* @public
|
9145
9145
|
*/
|
9146
9146
|
const ImageOverlay = (props) => {
|
9147
9147
|
const { isOpen, imageSrc, title, titleIcon, altText, onDownloadButtonClicked, onDismiss } = props;
|
@@ -9468,7 +9468,9 @@ const RichTextEditor = React.forwardRef((props, ref) => {
|
|
9468
9468
|
// TODO: confirm the color during inline images implementation
|
9469
9469
|
imageSelectionBorderColor: 'blue',
|
9470
9470
|
// doNotAdjustEditorColor is used to fix the default background color for Rooster component
|
9471
|
-
doNotAdjustEditorColor: true
|
9471
|
+
doNotAdjustEditorColor: true,
|
9472
|
+
// if we don't use 'allowKeyboardEventPropagation' only the enter key is caught
|
9473
|
+
onKeyDown: props.onKeyDown }))));
|
9472
9474
|
});
|
9473
9475
|
|
9474
9476
|
// Copyright (c) Microsoft Corporation.
|
@@ -9505,7 +9507,7 @@ const richTextBorderBoxStyle = (props) => {
|
|
9505
9507
|
* @private
|
9506
9508
|
*/
|
9507
9509
|
const RichTextInputBoxComponent = (props) => {
|
9508
|
-
const { placeholderText, initialContent, onChange, editorComponentRef, disabled, strings, actionComponents, richTextEditorStyleProps, supportHorizontalLayout = true } = props;
|
9510
|
+
const { placeholderText, initialContent, onChange, onEnterKeyDown, editorComponentRef, disabled, strings, actionComponents, richTextEditorStyleProps, supportHorizontalLayout = true } = props;
|
9509
9511
|
const theme = useTheme();
|
9510
9512
|
const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = React.useState(false);
|
9511
9513
|
const onRenderRichTextEditorIcon = React.useCallback((isHover) => (React.createElement(react.Icon, { iconName: isHover || showRichTextEditorFormatting ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon', className: richTextFormatButtonIconStyle(theme, !disabled && (isHover || showRichTextEditorFormatting)) })), [disabled, showRichTextEditorFormatting, theme]);
|
@@ -9531,13 +9533,22 @@ const RichTextInputBoxComponent = (props) => {
|
|
9531
9533
|
const richTextEditorStyle = React.useMemo(() => {
|
9532
9534
|
return richTextEditorStyleProps(showRichTextEditorFormatting);
|
9533
9535
|
}, [richTextEditorStyleProps, showRichTextEditorFormatting]);
|
9536
|
+
const onKeyDown = React.useCallback((ev) => {
|
9537
|
+
if (isEnterKeyEventFromCompositionSession(ev)) {
|
9538
|
+
return;
|
9539
|
+
}
|
9540
|
+
if (ev.key === 'Enter' && ev.shiftKey === false && !showRichTextEditorFormatting) {
|
9541
|
+
ev.preventDefault();
|
9542
|
+
onEnterKeyDown && onEnterKeyDown();
|
9543
|
+
}
|
9544
|
+
}, [onEnterKeyDown, showRichTextEditorFormatting]);
|
9534
9545
|
return (React.createElement("div", { className: richTextBorderBoxStyle({
|
9535
9546
|
theme: theme,
|
9536
9547
|
disabled: !!disabled
|
9537
9548
|
}) },
|
9538
9549
|
React.createElement(react.Stack, { grow: true, horizontal: supportHorizontalLayout && !showRichTextEditorFormatting, className: inputBoxContentStackStyle },
|
9539
9550
|
React.createElement(react.Stack, { grow: true, className: inputBoxRichTextStackStyle },
|
9540
|
-
React.createElement(RichTextEditor, { initialContent: initialContent, placeholderText: placeholderText, onChange: onChange, ref: editorComponentRef, strings: strings, showRichTextEditorFormatting: showRichTextEditorFormatting, styles: richTextEditorStyle })),
|
9551
|
+
React.createElement(RichTextEditor, { initialContent: initialContent, placeholderText: placeholderText, onChange: onChange, onKeyDown: onKeyDown, ref: editorComponentRef, strings: strings, showRichTextEditorFormatting: showRichTextEditorFormatting, styles: richTextEditorStyle })),
|
9541
9552
|
actionButtons)));
|
9542
9553
|
};
|
9543
9554
|
|
@@ -9720,7 +9731,7 @@ const RichTextSendBox = (props) => {
|
|
9720
9731
|
}, [localeStrings.sendButtonAriaLabel, onRenderSendIcon, sendMessageOnClick]);
|
9721
9732
|
return (React.createElement(react.Stack, null,
|
9722
9733
|
React.createElement(RichTextSendBoxErrors, Object.assign({}, sendBoxErrorsProps)),
|
9723
|
-
React.createElement(RichTextInputBoxComponent, { placeholderText: strings.placeholderText, onChange: setContent, editorComponentRef: editorComponentRef, strings: strings, disabled: disabled, actionComponents: sendButton, richTextEditorStyleProps: sendBoxRichTextEditorStyle })));
|
9734
|
+
React.createElement(RichTextInputBoxComponent, { placeholderText: strings.placeholderText, onChange: setContent, onEnterKeyDown: sendMessageOnClick, editorComponentRef: editorComponentRef, strings: strings, disabled: disabled, actionComponents: sendButton, richTextEditorStyleProps: sendBoxRichTextEditorStyle })));
|
9724
9735
|
};
|
9725
9736
|
|
9726
9737
|
// Copyright (c) Microsoft Corporation.
|
@@ -10720,10 +10731,17 @@ const mapAliasColors = (palette, inverted) => {
|
|
10720
10731
|
colorBrandBackground2: palette.themeLighterAlt,
|
10721
10732
|
colorBrandBackground2Hover: palette.themeLighterAlt,
|
10722
10733
|
colorBrandBackground2Pressed: palette.themeLighterAlt,
|
10734
|
+
colorBrandBackground3Static: palette.themeDark,
|
10735
|
+
colorBrandBackground4Static: palette.themeDarker,
|
10723
10736
|
colorBrandBackgroundInverted: palette.white,
|
10724
10737
|
colorBrandBackgroundInvertedHover: palette.themeLighterAlt,
|
10725
10738
|
colorBrandBackgroundInvertedPressed: palette.themeLight,
|
10726
10739
|
colorBrandBackgroundInvertedSelected: palette.themeLighter,
|
10740
|
+
colorNeutralCardBackground: inverted ? grey[20] : grey[98],
|
10741
|
+
colorNeutralCardBackgroundHover: inverted ? grey[24] : palette.white,
|
10742
|
+
colorNeutralCardBackgroundPressed: inverted ? grey[18] : grey[96],
|
10743
|
+
colorNeutralCardBackgroundSelected: inverted ? grey[22] : grey[92],
|
10744
|
+
colorNeutralCardBackgroundDisabled: inverted ? grey[8] : grey[94],
|
10727
10745
|
colorNeutralStrokeAccessible: palette.neutralSecondary,
|
10728
10746
|
colorNeutralStrokeAccessibleHover: palette.neutralSecondary,
|
10729
10747
|
colorNeutralStrokeAccessiblePressed: palette.neutralSecondary,
|
@@ -11351,17 +11369,7 @@ const BlockedMessageContent = (props) => {
|
|
11351
11369
|
blockedMessage && React.createElement("p", null, blockedMessage),
|
11352
11370
|
blockedMessageLink && (React.createElement(react.Link, { target: '_blank', href: blockedMessageLink }, blockedMessageLinkText))) }));
|
11353
11371
|
};
|
11354
|
-
|
11355
|
-
const extractContent = (s) => {
|
11356
|
-
const span = document.createElement('span');
|
11357
|
-
span.innerHTML = s;
|
11358
|
-
return span.textContent || span.innerText;
|
11359
|
-
};
|
11360
|
-
const generateLiveMessage = (props) => {
|
11361
|
-
const liveAuthor = _formatString(props.strings.liveAuthorIntro, { author: `${props.message.senderDisplayName}` });
|
11362
|
-
return `${props.message.editedOn ? props.strings.editedTag : ''} ${props.message.mine ? '' : liveAuthor} ${extractContent(props.message.content || '')} `;
|
11363
|
-
};
|
11364
|
-
const messageContentAriaText = (props) => {
|
11372
|
+
const extractContentForAllyMessage = (props) => {
|
11365
11373
|
if (props.message.content) {
|
11366
11374
|
// Replace all <img> tags with 'image' for aria.
|
11367
11375
|
const parsedContent = DOMPurify.sanitize(props.message.content, {
|
@@ -11378,20 +11386,28 @@ const messageContentAriaText = (props) => {
|
|
11378
11386
|
});
|
11379
11387
|
// Strip all html tags from the content for aria.
|
11380
11388
|
const message = DOMPurify.sanitize(parsedContent, { ALLOWED_TAGS: [] });
|
11381
|
-
return
|
11382
|
-
? _formatString(props.strings.messageContentMineAriaText, {
|
11383
|
-
message: message
|
11384
|
-
})
|
11385
|
-
: _formatString(props.strings.messageContentAriaText, {
|
11386
|
-
author: `${props.message.senderDisplayName}`,
|
11387
|
-
message: message
|
11388
|
-
});
|
11389
|
+
return message;
|
11389
11390
|
}
|
11390
|
-
return
|
11391
|
+
return '';
|
11392
|
+
};
|
11393
|
+
const generateLiveMessage = (props) => {
|
11394
|
+
const liveAuthor = _formatString(props.strings.liveAuthorIntro, { author: `${props.message.senderDisplayName}` });
|
11395
|
+
return `${props.message.editedOn ? props.strings.editedTag : ''} ${props.message.mine ? '' : liveAuthor} ${extractContentForAllyMessage(props)} `;
|
11396
|
+
};
|
11397
|
+
const messageContentAriaText = (props) => {
|
11398
|
+
const message = extractContentForAllyMessage(props);
|
11399
|
+
return props.message.mine
|
11400
|
+
? _formatString(props.strings.messageContentMineAriaText, {
|
11401
|
+
message: message
|
11402
|
+
})
|
11403
|
+
: _formatString(props.strings.messageContentAriaText, {
|
11404
|
+
author: `${props.message.senderDisplayName}`,
|
11405
|
+
message: message
|
11406
|
+
});
|
11391
11407
|
};
|
11392
11408
|
/* @conditional-compile-remove(image-overlay) */
|
11393
11409
|
const defaultOnRenderInlineImage = (inlineImage) => {
|
11394
|
-
return (React.createElement("img", Object.assign({ key: inlineImage.
|
11410
|
+
return (React.createElement("img", Object.assign({ key: inlineImage.imageAttributes.id, tabIndex: 0, "data-ui-id": inlineImage.imageAttributes.id }, inlineImage.imageAttributes)));
|
11395
11411
|
};
|
11396
11412
|
const processHtmlToReact = (props) => {
|
11397
11413
|
var _a;
|
@@ -11418,7 +11434,7 @@ const processHtmlToReact = (props) => {
|
|
11418
11434
|
domNode.attribs['aria-label'] = domNode.attribs.name;
|
11419
11435
|
const imgProps = parse.attributesToProps(domNode.attribs);
|
11420
11436
|
/* @conditional-compile-remove(image-overlay) */
|
11421
|
-
const inlineImageProps = { messageId: props.message.messageId,
|
11437
|
+
const inlineImageProps = { messageId: props.message.messageId, imageAttributes: imgProps };
|
11422
11438
|
/* @conditional-compile-remove(image-overlay) */
|
11423
11439
|
return ((_c = props.inlineImageOptions) === null || _c === void 0 ? void 0 : _c.onRenderInlineImage)
|
11424
11440
|
? props.inlineImageOptions.onRenderInlineImage(inlineImageProps, defaultOnRenderInlineImage)
|
@@ -18650,7 +18666,7 @@ const ReactionButton = (props) => {
|
|
18650
18666
|
return (React.createElement(ControlBarButton, Object.assign({}, props, { className: react.mergeStyles(styles, props.styles), menuProps: {
|
18651
18667
|
shouldFocusOnMount: true,
|
18652
18668
|
items: emojiList
|
18653
|
-
}, onRenderIcon: (_f = props.onRenderIcon) !== null && _f !== void 0 ? _f : onRenderIcon, strings: strings, labelKey: (_g = props.labelKey) !== null && _g !== void 0 ? _g : 'reactionButtonLabel', onRenderMenuIcon: () => React.createElement("div", null), disabled: props.disabled })));
|
18669
|
+
}, onRenderIcon: (_f = props.onRenderIcon) !== null && _f !== void 0 ? _f : onRenderIcon, strings: strings, labelKey: (_g = props.labelKey) !== null && _g !== void 0 ? _g : 'reactionButtonLabel', onRenderMenuIcon: () => React.createElement("div", null), disabled: props.disabled, ariaLabel: strings.ariaLabel })));
|
18654
18670
|
};
|
18655
18671
|
/* @conditional-compile-remove(reaction) */
|
18656
18672
|
const reactionButtonStyles = (theme) => ({
|
@@ -22016,7 +22032,7 @@ const extractTeamsAttachmentsMetadata = (attachments) => {
|
|
22016
22032
|
const files = [];
|
22017
22033
|
attachments.forEach((attachment) => {
|
22018
22034
|
var _a;
|
22019
|
-
const attachmentType =
|
22035
|
+
const attachmentType = attachment.attachmentType;
|
22020
22036
|
/* @conditional-compile-remove(file-sharing) */
|
22021
22037
|
const contentType = extractAttachmentContentTypeFromName(attachment.name);
|
22022
22038
|
/* @conditional-compile-remove(file-sharing) */
|
@@ -22051,17 +22067,6 @@ const convertToUiBlockedMessage = (message, userId, isSeen, isLargeGroup) => {
|
|
22051
22067
|
};
|
22052
22068
|
};
|
22053
22069
|
/* @conditional-compile-remove(file-sharing) */
|
22054
|
-
const mapAttachmentType = (attachmentType) => {
|
22055
|
-
if (attachmentType === 'image') {
|
22056
|
-
return 'inlineImage';
|
22057
|
-
}
|
22058
|
-
/* @conditional-compile-remove(file-sharing) */
|
22059
|
-
if (attachmentType === 'file') {
|
22060
|
-
return 'file';
|
22061
|
-
}
|
22062
|
-
return 'unknown';
|
22063
|
-
};
|
22064
|
-
/* @conditional-compile-remove(file-sharing) */
|
22065
22070
|
const extractAttachmentUrl = (attachment) => {
|
22066
22071
|
return attachment.previewUrl ? attachment.previewUrl : attachment.url || '';
|
22067
22072
|
};
|
@@ -22115,9 +22120,15 @@ const generateImageAttachmentImgHtml = (message, attachment) => {
|
|
22115
22120
|
};
|
22116
22121
|
/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
|
22117
22122
|
const getResourceSourceUrl = (result) => {
|
22118
|
-
let src = '
|
22119
|
-
if (result
|
22120
|
-
|
22123
|
+
let src = '';
|
22124
|
+
if (result) {
|
22125
|
+
if (result.error) {
|
22126
|
+
// In case of an error we set src to some invalid value to show broken image
|
22127
|
+
src = 'blob://';
|
22128
|
+
}
|
22129
|
+
else {
|
22130
|
+
src = result.sourceUrl;
|
22131
|
+
}
|
22121
22132
|
}
|
22122
22133
|
return src;
|
22123
22134
|
};
|
@@ -22133,29 +22144,23 @@ const extractAttachmentContentTypeFromName = (name) => {
|
|
22133
22144
|
const contentType = name.substring(indexOfLastDot + 1);
|
22134
22145
|
return contentType;
|
22135
22146
|
};
|
22136
|
-
/* @conditional-compile-remove(file-sharing)
|
22147
|
+
/* @conditional-compile-remove(file-sharing) */
|
22137
22148
|
const extractAttachmentsMetadata = (message) => {
|
22138
22149
|
var _a, _b;
|
22139
|
-
/* @conditional-compile-remove(file-sharing) */
|
22140
22150
|
let files = [];
|
22141
|
-
/* @conditional-compile-remove(file-sharing) */
|
22142
22151
|
if (message.metadata) {
|
22143
22152
|
files = files.concat(extractAttachedFilesMetadata(message.metadata));
|
22144
22153
|
}
|
22145
|
-
/* @conditional-compile-remove(file-sharing) */
|
22146
22154
|
if ((_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments) {
|
22147
22155
|
const teamsAttachments = extractTeamsAttachmentsMetadata((_b = message.content) === null || _b === void 0 ? void 0 : _b.attachments);
|
22148
|
-
/* @conditional-compile-remove(file-sharing) */
|
22149
22156
|
files = files.concat(teamsAttachments.files);
|
22150
22157
|
}
|
22151
|
-
return {
|
22152
|
-
/* @conditional-compile-remove(file-sharing) */ files
|
22153
|
-
};
|
22158
|
+
return { files };
|
22154
22159
|
};
|
22155
22160
|
const convertToUiChatMessage = (message, userId, isSeen, isLargeGroup) => {
|
22156
22161
|
const messageSenderId = message.sender !== undefined ? toFlatCommunicationIdentifier(message.sender) : userId;
|
22157
|
-
/* @conditional-compile-remove(file-sharing)
|
22158
|
-
const {
|
22162
|
+
/* @conditional-compile-remove(file-sharing) */
|
22163
|
+
const { files } = extractAttachmentsMetadata(message);
|
22159
22164
|
return {
|
22160
22165
|
messageType: 'chat',
|
22161
22166
|
createdOn: message.createdOn,
|
@@ -22589,6 +22594,7 @@ class ResourceDownloadQueue {
|
|
22589
22594
|
constructor(context, credential) {
|
22590
22595
|
this._messagesNeedingResourceRetrieval = [];
|
22591
22596
|
this.isActive = false;
|
22597
|
+
this._requestsToCancel = {};
|
22592
22598
|
this._context = context;
|
22593
22599
|
this._credential = credential;
|
22594
22600
|
}
|
@@ -22636,15 +22642,29 @@ class ResourceDownloadQueue {
|
|
22636
22642
|
}
|
22637
22643
|
});
|
22638
22644
|
}
|
22645
|
+
cancelAllRequests() {
|
22646
|
+
for (const key in this._requestsToCancel) {
|
22647
|
+
this._requestsToCancel[key].abortController.abort();
|
22648
|
+
}
|
22649
|
+
this._requestsToCancel = {};
|
22650
|
+
}
|
22651
|
+
cancelRequest(url) {
|
22652
|
+
if (this._requestsToCancel[url]) {
|
22653
|
+
this._requestsToCancel[url].abortController.abort();
|
22654
|
+
delete this._requestsToCancel[url];
|
22655
|
+
}
|
22656
|
+
}
|
22639
22657
|
downloadSingleUrl(message, resourceUrl, operation) {
|
22640
22658
|
return __awaiter$t(this, void 0, void 0, function* () {
|
22641
22659
|
const response = { sourceUrl: '' };
|
22642
22660
|
try {
|
22643
|
-
const
|
22661
|
+
const abortController = new AbortController();
|
22662
|
+
const blobUrl = yield this.downloadResource(operation, resourceUrl, abortController);
|
22644
22663
|
response.sourceUrl = blobUrl;
|
22645
22664
|
}
|
22646
22665
|
catch (error) {
|
22647
22666
|
response.error = error;
|
22667
|
+
delete this._requestsToCancel[resourceUrl];
|
22648
22668
|
}
|
22649
22669
|
message = Object.assign(Object.assign({}, message), { resourceCache: Object.assign(Object.assign({}, message.resourceCache), { [resourceUrl]: response }) });
|
22650
22670
|
return message;
|
@@ -22662,11 +22682,13 @@ class ResourceDownloadQueue {
|
|
22662
22682
|
if (attachment.previewUrl && attachment.attachmentType === 'image') {
|
22663
22683
|
const response = { sourceUrl: '' };
|
22664
22684
|
try {
|
22665
|
-
const
|
22685
|
+
const abortController = new AbortController();
|
22686
|
+
const blobUrl = yield this.downloadResource(operation, attachment.previewUrl, abortController);
|
22666
22687
|
response.sourceUrl = blobUrl;
|
22667
22688
|
}
|
22668
22689
|
catch (error) {
|
22669
22690
|
response.error = error;
|
22691
|
+
delete this._requestsToCancel[attachment.previewUrl];
|
22670
22692
|
}
|
22671
22693
|
message.resourceCache[attachment.previewUrl] = response;
|
22672
22694
|
}
|
@@ -22675,9 +22697,11 @@ class ResourceDownloadQueue {
|
|
22675
22697
|
return message;
|
22676
22698
|
});
|
22677
22699
|
}
|
22678
|
-
downloadResource(operation, url) {
|
22700
|
+
downloadResource(operation, url, abortController) {
|
22679
22701
|
return __awaiter$t(this, void 0, void 0, function* () {
|
22680
|
-
|
22702
|
+
this._requestsToCancel[url] = { src: url, abortController };
|
22703
|
+
const blobUrl = yield operation(url, this._credential, { abortController });
|
22704
|
+
delete this._requestsToCancel[url];
|
22681
22705
|
return blobUrl;
|
22682
22706
|
});
|
22683
22707
|
}
|
@@ -22686,13 +22710,17 @@ class ResourceDownloadQueue {
|
|
22686
22710
|
/**
|
22687
22711
|
* @private
|
22688
22712
|
*/
|
22689
|
-
const fetchImageSource = (src, credential) => __awaiter$t(void 0, void 0, void 0, function* () {
|
22690
|
-
function fetchWithAuthentication(url, token) {
|
22713
|
+
const fetchImageSource = (src, credential, options) => __awaiter$t(void 0, void 0, void 0, function* () {
|
22714
|
+
function fetchWithAuthentication(url, token, options) {
|
22691
22715
|
return __awaiter$t(this, void 0, void 0, function* () {
|
22692
22716
|
const headers = new Headers();
|
22693
22717
|
headers.append('Authorization', `Bearer ${token}`);
|
22694
22718
|
try {
|
22695
|
-
return yield fetchWithTimeout(url, {
|
22719
|
+
return yield fetchWithTimeout(url, {
|
22720
|
+
timeout: options.timeout,
|
22721
|
+
headers,
|
22722
|
+
abortController: options.abortController
|
22723
|
+
});
|
22696
22724
|
}
|
22697
22725
|
catch (err) {
|
22698
22726
|
throw new ChatError('ChatThreadClient.getMessage', err);
|
@@ -22702,16 +22730,17 @@ const fetchImageSource = (src, credential) => __awaiter$t(void 0, void 0, void 0
|
|
22702
22730
|
function fetchWithTimeout(resource, options) {
|
22703
22731
|
return __awaiter$t(this, void 0, void 0, function* () {
|
22704
22732
|
// default timeout is 30 seconds
|
22705
|
-
const { timeout = 30000 } = options;
|
22706
|
-
const
|
22707
|
-
|
22708
|
-
|
22733
|
+
const { timeout = 30000, abortController } = options;
|
22734
|
+
const id = setTimeout(() => {
|
22735
|
+
abortController.abort();
|
22736
|
+
}, timeout);
|
22737
|
+
const response = yield fetch(resource, Object.assign(Object.assign({}, options), { signal: abortController.signal }));
|
22709
22738
|
clearTimeout(id);
|
22710
22739
|
return response;
|
22711
22740
|
});
|
22712
22741
|
}
|
22713
22742
|
const accessToken = yield credential.getToken();
|
22714
|
-
const response = yield fetchWithAuthentication(src, accessToken.token);
|
22743
|
+
const response = yield fetchWithAuthentication(src, accessToken.token, options);
|
22715
22744
|
const blob = yield response.blob();
|
22716
22745
|
return URL.createObjectURL(blob);
|
22717
22746
|
});
|
@@ -22777,6 +22806,9 @@ let ChatContext$1 = class ChatContext {
|
|
22777
22806
|
/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
|
22778
22807
|
dispose() {
|
22779
22808
|
this.modifyState((draft) => {
|
22809
|
+
var _a, _b;
|
22810
|
+
(_a = this._inlineImageQueue) === null || _a === void 0 ? void 0 : _a.cancelAllRequests();
|
22811
|
+
(_b = this._fullsizeImageQueue) === null || _b === void 0 ? void 0 : _b.cancelAllRequests();
|
22780
22812
|
Object.keys(draft.threads).forEach((threadId) => {
|
22781
22813
|
const thread = draft.threads[threadId];
|
22782
22814
|
Object.keys(thread.chatMessages).forEach((messageId) => {
|
@@ -22813,9 +22845,17 @@ let ChatContext$1 = class ChatContext {
|
|
22813
22845
|
/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
|
22814
22846
|
removeResourceFromCache(threadId, messageId, resourceUrl) {
|
22815
22847
|
this.modifyState((draft) => {
|
22816
|
-
var _a;
|
22848
|
+
var _a, _b, _c;
|
22817
22849
|
const message = (_a = draft.threads[threadId]) === null || _a === void 0 ? void 0 : _a.chatMessages[messageId];
|
22818
|
-
if (message && message
|
22850
|
+
if (message && this._fullsizeImageQueue && this._fullsizeImageQueue.containsMessageWithSameAttachments(message)) {
|
22851
|
+
(_b = this._fullsizeImageQueue) === null || _b === void 0 ? void 0 : _b.cancelRequest(resourceUrl);
|
22852
|
+
}
|
22853
|
+
else if (message &&
|
22854
|
+
this._inlineImageQueue &&
|
22855
|
+
this._inlineImageQueue.containsMessageWithSameAttachments(message)) {
|
22856
|
+
(_c = this._inlineImageQueue) === null || _c === void 0 ? void 0 : _c.cancelRequest(resourceUrl);
|
22857
|
+
}
|
22858
|
+
if (message && message.resourceCache && message.resourceCache[resourceUrl]) {
|
22819
22859
|
const resource = message.resourceCache[resourceUrl];
|
22820
22860
|
URL.revokeObjectURL(resource.sourceUrl);
|
22821
22861
|
delete message.resourceCache[resourceUrl];
|
@@ -23917,7 +23957,6 @@ const COMPOSITE_ONLY_ICONS = {
|
|
23917
23957
|
LargeGalleryLayout: React.createElement(reactIcons.Table20Regular, null),
|
23918
23958
|
/* @conditional-compile-remove(control-bar-button-injection) */
|
23919
23959
|
DefaultCustomButton: React.createElement(reactIcons.Circle20Regular, null),
|
23920
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
23921
23960
|
DtmfDialpadButton: React.createElement(reactIcons.Dialpad20Regular, null),
|
23922
23961
|
/* @conditional-compile-remove(spotlight) */
|
23923
23962
|
PeoplePaneMoreButton: React.createElement(reactIcons.MoreHorizontal20Filled, null),
|
@@ -25413,7 +25452,7 @@ const useSelector$2 = (selector, selectorProps) => {
|
|
25413
25452
|
// Copyright (c) Microsoft Corporation.
|
25414
25453
|
// Licensed under the MIT License.
|
25415
25454
|
/* @conditional-compile-remove(rich-text-editor) */
|
25416
|
-
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
25455
|
+
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-DdhoRD21.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
|
25417
25456
|
/**
|
25418
25457
|
* @private
|
25419
25458
|
*/
|
@@ -25441,8 +25480,7 @@ const SendBox = (props) => {
|
|
25441
25480
|
// /* @conditional-compile-remove(rich-text-editor) */
|
25442
25481
|
if ((options === null || options === void 0 ? void 0 : options.richTextEditor) === true) {
|
25443
25482
|
return (React.createElement(React.Suspense, { fallback: simpleSendBox },
|
25444
|
-
React.createElement(RichTextSendBoxWrapper, null)
|
25445
|
-
";"));
|
25483
|
+
React.createElement(RichTextSendBoxWrapper, null)));
|
25446
25484
|
}
|
25447
25485
|
return simpleSendBox;
|
25448
25486
|
};
|
@@ -25493,8 +25531,8 @@ const ChatScreen = (props) => {
|
|
25493
25531
|
}
|
25494
25532
|
const message = adapter.getState().thread.chatMessages[overlayImageItem === null || overlayImageItem === void 0 ? void 0 : overlayImageItem.messageId];
|
25495
25533
|
const resourceCache = message.resourceCache;
|
25496
|
-
if (overlayImageItem.imageSrc === '' && resourceCache) {
|
25497
|
-
const fullSizeImageSrc = resourceCache[overlayImageItem.imageUrl]
|
25534
|
+
if (overlayImageItem.imageSrc === '' && resourceCache && resourceCache[overlayImageItem.imageUrl]) {
|
25535
|
+
const fullSizeImageSrc = getResourceSourceUrl(resourceCache[overlayImageItem.imageUrl]);
|
25498
25536
|
if (fullSizeImageSrc === undefined || fullSizeImageSrc === '' || overlayImageItem.imageSrc === fullSizeImageSrc) {
|
25499
25537
|
return;
|
25500
25538
|
}
|
@@ -25503,6 +25541,16 @@ const ChatScreen = (props) => {
|
|
25503
25541
|
// Disable eslint because we are using the overlayImageItem in this effect but don't want to have it as a dependency, as it will cause an infinite loop.
|
25504
25542
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
25505
25543
|
}, [messageThreadProps.messages]);
|
25544
|
+
const getResourceSourceUrl = (result) => {
|
25545
|
+
let src = '';
|
25546
|
+
if (result.error) {
|
25547
|
+
src = 'blob://';
|
25548
|
+
}
|
25549
|
+
else {
|
25550
|
+
src = result.sourceUrl;
|
25551
|
+
}
|
25552
|
+
return src;
|
25553
|
+
};
|
25506
25554
|
const onRenderAvatarCallback = React.useCallback((userId, defaultOptions) => {
|
25507
25555
|
return (React.createElement(AvatarPersona, Object.assign({ userId: userId, hidePersonaDetails: true }, defaultOptions, { dataProvider: onFetchAvatarPersonaData })));
|
25508
25556
|
}, [onFetchAvatarPersonaData]);
|
@@ -25527,7 +25575,7 @@ const ChatScreen = (props) => {
|
|
25527
25575
|
setDownloadErrorMessage(errorMessage);
|
25528
25576
|
} })), [fileSharing === null || fileSharing === void 0 ? void 0 : fileSharing.downloadHandler]);
|
25529
25577
|
/* @conditional-compile-remove(image-overlay) */
|
25530
|
-
const onInlineImageClicked = React.useCallback((attachmentId, messageId) =>
|
25578
|
+
const onInlineImageClicked = React.useCallback((attachmentId, messageId) => {
|
25531
25579
|
var _a, _b;
|
25532
25580
|
const message = adapter.getState().thread.chatMessages[messageId];
|
25533
25581
|
const inlinedImages = (_b = (_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.filter((attachment) => {
|
@@ -25541,7 +25589,7 @@ const ChatScreen = (props) => {
|
|
25541
25589
|
let imageSrc = '';
|
25542
25590
|
if (attachment.url) {
|
25543
25591
|
if (resourceCache && resourceCache[attachment.url]) {
|
25544
|
-
imageSrc = resourceCache[attachment.url]
|
25592
|
+
imageSrc = getResourceSourceUrl(resourceCache[attachment.url]);
|
25545
25593
|
}
|
25546
25594
|
else {
|
25547
25595
|
adapter.downloadResourceToCache({
|
@@ -25569,21 +25617,29 @@ const ChatScreen = (props) => {
|
|
25569
25617
|
};
|
25570
25618
|
setIsImageOverlayOpen(true);
|
25571
25619
|
setOverlayImageItem(overlayImage);
|
25572
|
-
}
|
25620
|
+
}, [adapter, onRenderAvatarCallback, userId]);
|
25573
25621
|
/* @conditional-compile-remove(image-overlay) */
|
25574
25622
|
const inlineImageOptions = {
|
25575
25623
|
onRenderInlineImage: (inlineImage, defaultOnRender) => {
|
25576
25624
|
var _a, _b;
|
25577
25625
|
const message = adapter.getState().thread.chatMessages[inlineImage.messageId];
|
25578
|
-
const
|
25579
|
-
if (
|
25626
|
+
const attachment = (_b = (_a = message === null || message === void 0 ? void 0 : message.content) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.find((attachment) => attachment.id === inlineImage.imageAttributes.id);
|
25627
|
+
if (attachment === undefined) {
|
25580
25628
|
return defaultOnRender(inlineImage);
|
25581
25629
|
}
|
25582
|
-
|
25630
|
+
let pointerEvents = inlineImage.imageAttributes.src === '' ? 'none' : 'auto';
|
25631
|
+
const resourceCache = message.resourceCache;
|
25632
|
+
if (resourceCache &&
|
25633
|
+
attachment.previewUrl &&
|
25634
|
+
resourceCache[attachment.previewUrl] &&
|
25635
|
+
resourceCache[attachment.previewUrl].error) {
|
25636
|
+
pointerEvents = 'none';
|
25637
|
+
}
|
25638
|
+
return (React.createElement("span", { key: inlineImage.imageAttributes.id, onClick: () => onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId), tabIndex: 0, role: "button", onKeyDown: (e) => {
|
25583
25639
|
if (e.key === 'Enter') {
|
25584
|
-
onInlineImageClicked(inlineImage.
|
25640
|
+
onInlineImageClicked(inlineImage.imageAttributes.id || '', inlineImage.messageId);
|
25585
25641
|
}
|
25586
|
-
}, style: { cursor: 'pointer' } }, defaultOnRender(inlineImage)));
|
25642
|
+
}, style: { cursor: 'pointer', pointerEvents } }, defaultOnRender(inlineImage)));
|
25587
25643
|
}
|
25588
25644
|
};
|
25589
25645
|
/* @conditional-compile-remove(image-overlay) */
|
@@ -26354,7 +26410,6 @@ const createCompositeHandlers = memoizeOne((adapter) => {
|
|
26354
26410
|
return yield adapter.addParticipant(participant, options);
|
26355
26411
|
}
|
26356
26412
|
}),
|
26357
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(dtmf-dialer) */
|
26358
26413
|
onSendDtmfTone: (dtmfTone) => __awaiter$j(void 0, void 0, void 0, function* () {
|
26359
26414
|
yield adapter.sendDtmfTone(dtmfTone);
|
26360
26415
|
}),
|
@@ -27776,7 +27831,6 @@ const createAnnouncementString = (direction, participants, strings) => {
|
|
27776
27831
|
numOfParticipants: numberOfExtraParticipants.toString()
|
27777
27832
|
});
|
27778
27833
|
};
|
27779
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
27780
27834
|
/**
|
27781
27835
|
* determines if the media gallery should be replaced by the dtmf dialer
|
27782
27836
|
* @param callees Target callees to determine if the dtmf dialer should be shown
|
@@ -27836,11 +27890,8 @@ const DesktopMoreButton = (props) => {
|
|
27836
27890
|
const [galleryPositionTop, setGalleryPositionTop] = React.useState(false);
|
27837
27891
|
const [focusedContentOn, setFocusedContentOn] = React.useState(false);
|
27838
27892
|
const [previousLayout, setPreviousLayout] = React.useState((_a = props.userSetGalleryLayout) !== null && _a !== void 0 ? _a : 'floatingLocalVideo');
|
27839
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
27840
27893
|
const callees = useSelector$1(getTargetCallees);
|
27841
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
27842
27894
|
const allowDtmfDialer = showDtmfDialer(callees);
|
27843
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
27844
27895
|
const [dtmfDialerChecked, setDtmfDialerChecked] = React.useState((_b = props.dtmfDialerPresent) !== null && _b !== void 0 ? _b : false);
|
27845
27896
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
27846
27897
|
const moreButtonStrings = React.useMemo(() => ({
|
@@ -27933,7 +27984,6 @@ const DesktopMoreButton = (props) => {
|
|
27933
27984
|
});
|
27934
27985
|
}
|
27935
27986
|
}
|
27936
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
27937
27987
|
const dtmfDialerScreenOption = {
|
27938
27988
|
key: 'dtmfDialerScreenKey',
|
27939
27989
|
itemProps: {
|
@@ -27951,7 +28001,6 @@ const DesktopMoreButton = (props) => {
|
|
27951
28001
|
styles: { root: { lineHeight: 0 } }
|
27952
28002
|
}
|
27953
28003
|
};
|
27954
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
27955
28004
|
/**
|
27956
28005
|
* Only render the dtmf dialer if the dialpad for PSTN calls is not present
|
27957
28006
|
*/
|
@@ -28180,10 +28229,7 @@ const invisibleHiddenFocusStartPoint = {
|
|
28180
28229
|
|
28181
28230
|
// Copyright (c) Microsoft Corporation.
|
28182
28231
|
// Licensed under the MIT License.
|
28183
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28184
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28185
28232
|
const icon = () => React.createElement(CallCompositeIcon, { iconName: 'DtmfDialpadButton' });
|
28186
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28187
28233
|
/**
|
28188
28234
|
* Button for showing and hiding the dtmf dialer in the Call composite.
|
28189
28235
|
* To be used only if the more button control is disabled. This button will replace
|
@@ -28378,8 +28424,7 @@ const CommonCallControlBar = (props) => {
|
|
28378
28424
|
/* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall && (React.createElement(RaiseHand, { displayType: options.displayType, styles: commonButtonStyles,
|
28379
28425
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
28380
28426
|
disabled: props.disableButtonsForHoldScreen || isDisabled$4(options.microphoneButton) })),
|
28381
|
-
|
28382
|
-
props.onSetDialpadPage !== undefined && (React.createElement(DtmfDialpadButton, { styles: commonButtonStyles, displayType: options.displayType, onClick: () => {
|
28427
|
+
showDtmfDialerButton(options) && props.onSetDialpadPage !== undefined && (React.createElement(DtmfDialpadButton, { styles: commonButtonStyles, displayType: options.displayType, onClick: () => {
|
28383
28428
|
if (props.onSetDialpadPage !== undefined) {
|
28384
28429
|
props.onSetDialpadPage();
|
28385
28430
|
}
|
@@ -28403,11 +28448,7 @@ const CommonCallControlBar = (props) => {
|
|
28403
28448
|
/* @conditional-compile-remove(close-captions) */
|
28404
28449
|
isCaptionsSupported: props.isCaptionsSupported,
|
28405
28450
|
/* @conditional-compile-remove(close-captions) */
|
28406
|
-
onCaptionsSettingsClick: openCaptionsSettingsModal, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayout, userSetGalleryLayout: props.userSetGalleryLayout,
|
28407
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28408
|
-
dtmfDialerPresent: props.dtmfDialerPresent,
|
28409
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28410
|
-
onSetDialpadPage: props.onSetDialpadPage })),
|
28451
|
+
onCaptionsSettingsClick: openCaptionsSettingsModal, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayout, userSetGalleryLayout: props.userSetGalleryLayout, dtmfDialerPresent: props.dtmfDialerPresent, onSetDialpadPage: props.onSetDialpadPage })),
|
28411
28452
|
React.createElement(EndCall, { displayType: "compact", styles: endCallButtonStyles }))))))),
|
28412
28453
|
!props.mobileView && sideButtonsPresent && (React.createElement(react.Stack.Item, null,
|
28413
28454
|
React.createElement("div", { ref: sidepaneControlsRef },
|
@@ -28522,7 +28563,6 @@ const getDesktopEndCallButtonStyles = (theme) => {
|
|
28522
28563
|
return react.concatStyleSets(getDesktopCommonButtonStyles(theme), overrides);
|
28523
28564
|
};
|
28524
28565
|
const isEnabled$1 = (option) => option !== false;
|
28525
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28526
28566
|
const showDtmfDialerButton = (options) => {
|
28527
28567
|
if (options.moreButton === false && options.dtmfDialerButton !== false) {
|
28528
28568
|
return true;
|
@@ -28726,11 +28766,8 @@ const MoreDrawer = (props) => {
|
|
28726
28766
|
const localeStrings = useLocale();
|
28727
28767
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
28728
28768
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
28729
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28730
28769
|
const callees = useSelector$1(getTargetCallees);
|
28731
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28732
28770
|
const allowDtmfDialer = showDtmfDialer(callees);
|
28733
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28734
28771
|
const [dtmfDialerChecked, setDtmfDialerChecked] = React.useState((_a = props.dtmfDialerPresent) !== null && _a !== void 0 ? _a : false);
|
28735
28772
|
/* @conditional-compile-remove(raise-hand) */
|
28736
28773
|
const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
|
@@ -28799,7 +28836,6 @@ const MoreDrawer = (props) => {
|
|
28799
28836
|
secondaryText: (_c = props.selectedMicrophone) === null || _c === void 0 ? void 0 : _c.name
|
28800
28837
|
});
|
28801
28838
|
}
|
28802
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28803
28839
|
const dtmfDialerScreenOption = {
|
28804
28840
|
itemKey: 'dtmfDialerScreenKey',
|
28805
28841
|
text: !dtmfDialerChecked
|
@@ -28817,7 +28853,6 @@ const MoreDrawer = (props) => {
|
|
28817
28853
|
styles: { root: { lineHeight: 0 } }
|
28818
28854
|
}
|
28819
28855
|
};
|
28820
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
28821
28856
|
/**
|
28822
28857
|
* Only render the dtmf dialer if the dialpad for PSTN calls is not present
|
28823
28858
|
*/
|
@@ -31043,11 +31078,7 @@ const CallArrangement = (props) => {
|
|
31043
31078
|
/* @conditional-compile-remove(close-captions) */
|
31044
31079
|
isCaptionsOn: isCaptionsOn,
|
31045
31080
|
/* @conditional-compile-remove(video-background-effects) */
|
31046
|
-
onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined, displayVertical: verticalControlBar, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout,
|
31047
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31048
|
-
onSetDialpadPage: props.onSetDialpadPage,
|
31049
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31050
|
-
dtmfDialerPresent: props.dtmfDialerPresent, peopleButtonRef: peopleButtonRef, cameraButtonRef: cameraButtonRef,
|
31081
|
+
onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined, displayVertical: verticalControlBar, onUserSetOverflowGalleryPositionChange: props.onUserSetOverflowGalleryPositionChange, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent, peopleButtonRef: peopleButtonRef, cameraButtonRef: cameraButtonRef,
|
31051
31082
|
/* @conditional-compile-remove(spotlight) */
|
31052
31083
|
onStopLocalSpotlight: localParticipant.spotlight ? onStopLocalSpotlight : undefined }))))),
|
31053
31084
|
((_j = props.callControlProps) === null || _j === void 0 ? void 0 : _j.options) !== false && showDrawer && (React.createElement(react.Stack, { styles: drawerContainerStylesValue },
|
@@ -31055,11 +31086,7 @@ const CallArrangement = (props) => {
|
|
31055
31086
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
31056
31087
|
disableButtonsForHoldScreen: isInLocalHold,
|
31057
31088
|
/* @conditional-compile-remove(close-captions) */
|
31058
|
-
isCaptionsSupported: isTeamsCall && hasJoinedCall, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout,
|
31059
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31060
|
-
onSetDialpadPage: props.onSetDialpadPage,
|
31061
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31062
|
-
dtmfDialerPresent: props.dtmfDialerPresent }))),
|
31089
|
+
isCaptionsSupported: isTeamsCall && hasJoinedCall, onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange, userSetGalleryLayout: props.userSetGalleryLayout, onSetDialpadPage: props.onSetDialpadPage, dtmfDialerPresent: props.dtmfDialerPresent }))),
|
31063
31090
|
React.createElement(react.Stack, { horizontal: true, grow: true },
|
31064
31091
|
React.createElement(react.Stack.Item, { style: callCompositeContainerCSS },
|
31065
31092
|
React.createElement(react.Stack.Item, { styles: callGalleryStyles, grow: true },
|
@@ -31518,7 +31545,6 @@ const DtmfDialpadPageContent = (props) => {
|
|
31518
31545
|
React.createElement(DtmfDialerContentTimer, null),
|
31519
31546
|
React.createElement(react.Text, { style: { margin: 'auto' } }, calleeName && calleeName !== 'Unnamed participant' ? calleeName === null || calleeName === void 0 ? void 0 : calleeName.toString() : ''),
|
31520
31547
|
React.createElement(Dialpad, { onSendDtmfTone: (tone) => __awaiter$c(void 0, void 0, void 0, function* () {
|
31521
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31522
31548
|
yield adapter.sendDtmfTone(tone);
|
31523
31549
|
}), longPressTrigger: props.mobileView ? 'touch' : 'mouseAndTouch', dialpadMode: 'dtmf' }))));
|
31524
31550
|
};
|
@@ -31601,13 +31627,9 @@ const CallPage = (props) => {
|
|
31601
31627
|
const errorBarProps = usePropsFor$1(ErrorBar);
|
31602
31628
|
const mutedNotificationProps = useSelector$1(mutedNotificationSelector);
|
31603
31629
|
const networkReconnectTileProps = useSelector$1(networkReconnectTileSelector);
|
31604
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31605
31630
|
const remoteParticipantsConnected = useSelector$1(getRemoteParticipantsConnectedSelector);
|
31606
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31607
31631
|
const callees = useSelector$1(getTargetCallees);
|
31608
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31609
31632
|
const renderDtmfDialerFromStart = showDtmfDialer(callees, remoteParticipantsConnected);
|
31610
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31611
31633
|
const [dtmfDialerPresent, setDtmfDialerPresent] = React.useState(renderDtmfDialerFromStart);
|
31612
31634
|
const strings = useLocale().strings.call;
|
31613
31635
|
// Reduce the controls shown when mobile view is enabled.
|
@@ -31619,7 +31641,6 @@ const CallPage = (props) => {
|
|
31619
31641
|
const [promptProps, setPromptProps] = React.useState();
|
31620
31642
|
const onRenderGalleryContentTrampoline = () => {
|
31621
31643
|
var _a;
|
31622
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31623
31644
|
if (dtmfDialerPresent) {
|
31624
31645
|
return (React.createElement(DtmfDialpadPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options, updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, latestErrors: props.latestErrors, onDismissError: props.onDismissError,
|
31625
31646
|
/* @conditional-compile-remove(capabilities) */
|
@@ -31647,11 +31668,7 @@ const CallPage = (props) => {
|
|
31647
31668
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
31648
31669
|
onFetchAvatarPersonaData: onFetchAvatarPersonaData, mobileView: mobileView, modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => _isInCall(callStatus) ? (isNetworkHealthy(networkReconnectTileProps.networkReconnectValue) ? (onRenderGalleryContentTrampoline()) : (React.createElement(NetworkReconnectTile, Object.assign({}, networkReconnectTileProps)))) : (React.createElement(React.Fragment, null)), updateSidePaneRenderer: props.updateSidePaneRenderer, mobileChatTabHeader: props.mobileChatTabHeader, onCloseChatPane: onCloseChatPane, dataUiId: 'call-page', latestErrors: props.latestErrors, onDismissError: props.onDismissError, onUserSetOverflowGalleryPositionChange: onSetUserSetOverflowGalleryPosition, onUserSetGalleryLayoutChange: onUserSetGalleryLayoutChange, userSetGalleryLayout: galleryLayout,
|
31649
31670
|
/* @conditional-compile-remove(capabilities) */
|
31650
|
-
capabilitiesChangedNotificationBarProps: props.capabilitiesChangedNotificationBarProps,
|
31651
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31652
|
-
onSetDialpadPage: () => setDtmfDialerPresent(!dtmfDialerPresent),
|
31653
|
-
/* @conditional-compile-remove(dtmf-dialer) */
|
31654
|
-
dtmfDialerPresent: dtmfDialerPresent,
|
31671
|
+
capabilitiesChangedNotificationBarProps: props.capabilitiesChangedNotificationBarProps, onSetDialpadPage: () => setDtmfDialerPresent(!dtmfDialerPresent), dtmfDialerPresent: dtmfDialerPresent,
|
31655
31672
|
/* @conditional-compile-remove(spotlight) */
|
31656
31673
|
setIsPromptOpen: setIsPromptOpen,
|
31657
31674
|
/* @conditional-compile-remove(spotlight) */
|
@@ -34713,7 +34730,6 @@ class AzureCommunicationCallAdapter {
|
|
34713
34730
|
this.holdCall.bind(this);
|
34714
34731
|
/* @conditional-compile-remove(PSTN-calls) */
|
34715
34732
|
this.resumeCall.bind(this);
|
34716
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(dtmf-dialer) */
|
34717
34733
|
this.sendDtmfTone.bind(this);
|
34718
34734
|
/* @conditional-compile-remove(unsupported-browser) */
|
34719
34735
|
this.allowUnsupportedBrowserVersion.bind(this);
|
@@ -35163,7 +35179,6 @@ class AzureCommunicationCallAdapter {
|
|
35163
35179
|
}
|
35164
35180
|
});
|
35165
35181
|
}
|
35166
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(dtmf-dialer) */
|
35167
35182
|
sendDtmfTone(dtmfTone) {
|
35168
35183
|
return __awaiter$5(this, void 0, void 0, function* () {
|
35169
35184
|
this.handlers.onSendDtmfTone(dtmfTone);
|
@@ -35889,7 +35904,6 @@ class CallWithChatBackedCallAdapter {
|
|
35889
35904
|
this.resumeCall = () => __awaiter$4(this, void 0, void 0, function* () {
|
35890
35905
|
yield this.callWithChatAdapter.resumeCall();
|
35891
35906
|
});
|
35892
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(dtmf-dialer) */
|
35893
35907
|
this.sendDtmfTone = (dtmfTone) => __awaiter$4(this, void 0, void 0, function* () {
|
35894
35908
|
yield this.callWithChatAdapter.sendDtmfTone(dtmfTone);
|
35895
35909
|
});
|
@@ -36784,7 +36798,6 @@ class AzureCommunicationCallWithChatAdapter {
|
|
36784
36798
|
this.resumeCall.bind(this);
|
36785
36799
|
/* @conditional-compile-remove(PSTN-calls) */
|
36786
36800
|
this.addParticipant.bind(this);
|
36787
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(dtmf-dialer) */
|
36788
36801
|
this.sendDtmfTone.bind(this);
|
36789
36802
|
/* @conditional-compile-remove(unsupported-browser) */
|
36790
36803
|
this.allowUnsupportedBrowserVersion.bind(this);
|
@@ -37065,7 +37078,6 @@ class AzureCommunicationCallWithChatAdapter {
|
|
37065
37078
|
}
|
37066
37079
|
});
|
37067
37080
|
}
|
37068
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(dtmf-dialer) */
|
37069
37081
|
sendDtmfTone(dtmfTone) {
|
37070
37082
|
return __awaiter$2(this, void 0, void 0, function* () {
|
37071
37083
|
return yield this.callAdapter.sendDtmfTone(dtmfTone);
|
@@ -38025,4 +38037,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
38025
38037
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
38026
38038
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
38027
38039
|
exports.useTheme = useTheme;
|
38028
|
-
//# sourceMappingURL=index
|
38040
|
+
//# sourceMappingURL=index-C48Yhr_k.js.map
|