@azure/communication-react 1.3.2-alpha-202207160015.0 → 1.3.2-alpha-202207190020.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.
Files changed (36) hide show
  1. package/dist/communication-react.d.ts +5 -1
  2. package/dist/dist-cjs/communication-react/index.js +115 -76
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +2 -0
  6. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts.map +1 -1
  7. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +30 -7
  8. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  9. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.d.ts +4 -0
  10. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.d.ts.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +16 -2
  12. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.d.ts +1 -1
  14. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.d.ts.map +1 -1
  15. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js +3 -5
  16. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  17. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +2 -1
  18. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
  19. package/dist/dist-esm/react-components/src/theming/icons.d.ts.map +1 -1
  20. package/dist/dist-esm/react-components/src/theming/icons.js +5 -1
  21. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  22. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -1
  23. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts.map +1 -1
  24. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +8 -4
  25. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +7 -7
  27. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts.map +1 -1
  28. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +28 -28
  29. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  30. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +7 -7
  31. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts.map +1 -1
  32. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +28 -28
  33. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
  35. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts.map +1 -1
  36. package/package.json +8 -8
@@ -586,7 +586,7 @@ export declare interface CallAdapterDeviceManagement {
586
586
  *
587
587
  * @public
588
588
  */
589
- export declare type CallAdapterLocator = TeamsMeetingLinkLocator | GroupCallLocator | /* @conditional-compile-remove(rooms) */ RoomCallLocator | /* @conditional-compile-remove(teams-adhoc-call) */ CallParticipantsLocator;
589
+ export declare type CallAdapterLocator = TeamsMeetingLinkLocator | GroupCallLocator | /* @conditional-compile-remove(rooms) */ RoomCallLocator | /* @conditional-compile-remove(teams-adhoc-call) */ /* @conditional-compile-remove(PSTN-calls) */ CallParticipantsLocator;
590
590
 
591
591
  /**
592
592
  * {@link CallAdapter} state.
@@ -3715,6 +3715,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
3715
3715
  SendBoxSend: JSX.Element;
3716
3716
  SendBoxSendHovered: JSX.Element;
3717
3717
  VideoTileMicOff: JSX.Element;
3718
+ BackSpace: JSX.Element;
3718
3719
  };
3719
3720
 
3720
3721
  /**
@@ -3796,6 +3797,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
3796
3797
  MessageResend: JSX.Element;
3797
3798
  HoldCall: JSX.Element;
3798
3799
  ResumeCall: JSX.Element;
3800
+ BackSpace: JSX.Element;
3799
3801
  };
3800
3802
 
3801
3803
  /**
@@ -4059,6 +4061,7 @@ export declare interface DialpadProps {
4059
4061
  */
4060
4062
  export declare interface DialpadStrings {
4061
4063
  placeholderText: string;
4064
+ deleteButtonAriaLabel: string;
4062
4065
  }
4063
4066
 
4064
4067
  /**
@@ -4072,6 +4075,7 @@ export declare interface DialpadStyles {
4072
4075
  textField?: Partial<ITextFieldStyles>;
4073
4076
  primaryContent?: IStyle;
4074
4077
  secondaryContent?: IStyle;
4078
+ deleteIcon?: IButtonStyles;
4075
4079
  }
4076
4080
 
4077
4081
  /**
@@ -191,7 +191,7 @@ const fromFlatCommunicationIdentifier = (id) => {
191
191
  // Copyright (c) Microsoft Corporation.
192
192
  // Licensed under the MIT license.
193
193
  // GENERATED FILE. DO NOT EDIT MANUALLY.
194
- var telemetryVersion = '1.3.2-alpha-202207160015.0';
194
+ var telemetryVersion = '1.3.2-alpha-202207190020.0';
195
195
 
196
196
  // Copyright (c) Microsoft Corporation.
197
197
  /**
@@ -931,7 +931,7 @@ const typingIndicatorStringStyle = react.mergeStyles({
931
931
  wordBreak: 'break-word'
932
932
  });
933
933
 
934
- var participantItem$d={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed Participant"};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}",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 a number"};var HoldButton$e={onLabel:"Resume",offLabel:"Hold",toolTipOnContent:"Resume call",toolTipOffContent:"Hold call"};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$e};
934
+ var participantItem$d={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed Participant"};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}",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 a number",deleteButtonAriaLabel:"Delete"};var HoldButton$e={onLabel:"Resume",offLabel:"Hold",toolTipOnContent:"Resume call",toolTipOffContent:"Hold call"};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$e};
935
935
 
936
936
  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};
937
937
 
@@ -1917,7 +1917,9 @@ const DEFAULT_COMPONENT_ICONS = {
1917
1917
  ResumeCall: React__default['default'].createElement(reactIcons.Play20Filled, null),
1918
1918
  SendBoxSend: React__default['default'].createElement(reactIcons.Send20Regular, null),
1919
1919
  SendBoxSendHovered: React__default['default'].createElement(reactIcons.Send20Filled, null),
1920
- VideoTileMicOff: React__default['default'].createElement(reactIcons.MicOff16Filled, null)
1920
+ VideoTileMicOff: React__default['default'].createElement(reactIcons.MicOff16Filled, null),
1921
+ /* @conditional-compile-remove(dialpad) */
1922
+ BackSpace: React__default['default'].createElement(reactIcons.Backspace20Regular, null)
1921
1923
  };
1922
1924
 
1923
1925
  // Copyright (c) Microsoft Corporation.
@@ -7530,8 +7532,9 @@ const primaryContentStyles = (theme) => {
7530
7532
  const textFieldStyles = (theme) => ({
7531
7533
  field: {
7532
7534
  padding: 0,
7533
- textAlign: 'center',
7534
- fontSize: '0.875rem'
7535
+ textAlign: 'left',
7536
+ fontSize: '0.875rem',
7537
+ paddingLeft: '0.5rem'
7535
7538
  },
7536
7539
  root: {
7537
7540
  backgroundColor: `${theme.palette.neutralLighter}`,
@@ -7544,6 +7547,9 @@ const textFieldStyles = (theme) => ({
7544
7547
  },
7545
7548
  errorMessage: {
7546
7549
  color: theme.semanticColors.errorText
7550
+ },
7551
+ suffix: {
7552
+ padding: 0
7547
7553
  }
7548
7554
  });
7549
7555
  /**
@@ -7558,19 +7564,27 @@ const secondaryContentStyles = (theme) => {
7558
7564
  minHeight: '0.75rem'
7559
7565
  };
7560
7566
  };
7567
+ /**
7568
+ * @private
7569
+ */
7570
+ const iconButtonStyles = (theme) => {
7571
+ return {
7572
+ root: {
7573
+ color: `${theme.palette.black}`
7574
+ }
7575
+ };
7576
+ };
7561
7577
 
7562
7578
  // Copyright (c) Microsoft Corporation.
7563
7579
  // Licensed under the MIT license.
7564
7580
  /**
7565
7581
  * @private
7566
7582
  */
7567
- const formatPhoneNumber = (value) => {
7583
+ const formatPhoneNumber = (phoneNumber) => {
7568
7584
  // if input value is falsy eg if the user deletes the input, then just return
7569
- if (!value) {
7570
- return value;
7585
+ if (!phoneNumber) {
7586
+ return phoneNumber;
7571
7587
  }
7572
- // clean the input for any non-digit values.
7573
- let phoneNumber = value.replace(/[^\d*#+]/g, '');
7574
7588
  // if phone number starts with 1, format like 1 (xxx)xxx-xxxx.
7575
7589
  // if phone number starts with +, we format like +x (xxx)xxx-xxxx.
7576
7590
  // For now we are only supporting NA phone number formatting with country code +x
@@ -7655,8 +7669,14 @@ const DialpadContainer = (props) => {
7655
7669
  const theme = react.useTheme();
7656
7670
  const [textValue, setTextValue] = React.useState('');
7657
7671
  const { onSendDtmfTone, onClickDialpadButton, onDisplayDialpadInput, onChange } = props;
7672
+ const sanitizeInput = (input) => {
7673
+ // remove non-valid characters from input: letters,special characters excluding +, *,#
7674
+ return input.replace(/[^\d*#+]/g, '');
7675
+ };
7658
7676
  const onClickDialpad = (input, index) => {
7659
- setTextValue(textValue + input);
7677
+ // remove non-valid characters from input: letters,special characters excluding +, *,#
7678
+ const value = sanitizeInput(textValue + input);
7679
+ setTextValue(value);
7660
7680
  if (onSendDtmfTone) {
7661
7681
  onSendDtmfTone(DtmfTones[index]);
7662
7682
  }
@@ -7664,24 +7684,39 @@ const DialpadContainer = (props) => {
7664
7684
  onClickDialpadButton(input, index);
7665
7685
  }
7666
7686
  if (onChange) {
7667
- onChange(onDisplayDialpadInput ? onDisplayDialpadInput(textValue + input) : formatPhoneNumber(textValue + input));
7687
+ onChange(onDisplayDialpadInput ? onDisplayDialpadInput(value) : formatPhoneNumber(value));
7668
7688
  }
7669
7689
  };
7670
7690
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7671
7691
  const setText = (e) => {
7672
- setTextValue(e.target.value);
7692
+ // remove non-valid characters from input: letters,special characters excluding +, *,#
7693
+ const input = sanitizeInput(e.target.value);
7694
+ setTextValue(input);
7673
7695
  };
7696
+ // Potential Improvement:
7674
7697
  // comment out the following line for now to disable customization for dialpad content
7675
7698
  // const dialpadButtonsContent = props.dialpadButtons ?? dialPadButtonsDefault;
7699
+ const deleteNumbers = () => {
7700
+ const modifiedInput = textValue.substring(0, textValue.length - 1);
7701
+ setTextValue(modifiedInput);
7702
+ if (onChange) {
7703
+ onChange(onDisplayDialpadInput ? onDisplayDialpadInput(modifiedInput) : formatPhoneNumber(modifiedInput));
7704
+ }
7705
+ };
7676
7706
  return (React__default['default'].createElement("div", { className: react.mergeStyles(containerStyles$1(theme), (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root), "data-test-id": "dialpadContainer" },
7677
7707
  React__default['default'].createElement(react.TextField, { styles: react.concatStyleSets(textFieldStyles(theme), (_b = props.styles) === null || _b === void 0 ? void 0 : _b.textField), value: onDisplayDialpadInput ? onDisplayDialpadInput(textValue) : formatPhoneNumber(textValue),
7678
7708
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7679
7709
  onChange: (e) => {
7680
7710
  setText(e);
7711
+ // remove non-valid characters from input: letters,special characters excluding +, *,#
7712
+ const input = sanitizeInput(e.target.value);
7681
7713
  if (onChange) {
7682
- onChange(onDisplayDialpadInput ? onDisplayDialpadInput(e.target.value) : formatPhoneNumber(e.target.value));
7714
+ onChange(onDisplayDialpadInput ? onDisplayDialpadInput(input) : formatPhoneNumber(input));
7683
7715
  }
7684
- }, placeholder: props.placeholderText, "data-test-id": "dialpad-input" }),
7716
+ }, placeholder: props.strings.placeholderText, "data-test-id": "dialpad-input", onRenderSuffix: () => {
7717
+ var _a;
7718
+ return (React__default['default'].createElement(React__default['default'].Fragment, null, textValue.length !== 0 && (React__default['default'].createElement(react.IconButton, { ariaLabel: props.strings.deleteButtonAriaLabel, onClick: deleteNumbers, styles: react.concatStyleSets(iconButtonStyles(theme), (_a = props.styles) === null || _a === void 0 ? void 0 : _a.deleteIcon), iconProps: { iconName: 'BackSpace' } }))));
7719
+ } }),
7685
7720
  React__default['default'].createElement(react.FocusZone, null, dialPadButtonsDefault.map((rows, rowIndex) => {
7686
7721
  return (React__default['default'].createElement(react.Stack, { horizontal: true, key: `row_${rowIndex}`, horizontalAlign: "stretch" }, rows.map((button, columnIndex) => (React__default['default'].createElement(DialpadButton, { key: `button_${columnIndex}`,
7687
7722
  /* row index = 0
@@ -7717,7 +7752,7 @@ const Dialpad = (props) => {
7717
7752
  const strings = Object.assign(Object.assign({}, localeStrings), props.strings);
7718
7753
  return (React__default['default'].createElement(React__default['default'].Fragment, null,
7719
7754
  /* @conditional-compile-remove(dialpad) */
7720
- React__default['default'].createElement(DialpadContainer, Object.assign({ placeholderText: strings.placeholderText }, props))));
7755
+ React__default['default'].createElement(DialpadContainer, Object.assign({ strings: strings }, props))));
7721
7756
  };
7722
7757
 
7723
7758
  // Copyright (c) Microsoft Corporation.
@@ -15940,9 +15975,12 @@ class AzureCommunicationCallAdapter {
15940
15975
  throw new Error('You are already in the call!');
15941
15976
  }
15942
15977
  /* @conditional-compile-remove(teams-adhoc-call) */
15943
- // Check if we should be starting a new call or joining an existing call
15944
- if (isAdhocCall(this.locator)) {
15945
- return this.startCall(this.locator.participantIDs);
15978
+ /* @conditional-compile-remove(PSTN-calls) */
15979
+ if (isOutboundCall(this.locator)) {
15980
+ const phoneNumber = this.getState().alternativeCallerId;
15981
+ return this.startCall(this.locator.participantIDs, {
15982
+ alternateCallerId: phoneNumber ? { phoneNumber: phoneNumber } : undefined
15983
+ });
15946
15984
  }
15947
15985
  return this.teeErrorToEventEmitter(() => {
15948
15986
  const audioOptions = { muted: microphoneOn !== null && microphoneOn !== void 0 ? microphoneOn : !this.getState().isLocalPreviewMicrophoneEnabled };
@@ -16380,7 +16418,8 @@ const isCallError = (e) => {
16380
16418
  return e['target'] !== undefined && e['innerError'] !== undefined;
16381
16419
  };
16382
16420
  /* @conditional-compile-remove(teams-adhoc-call) */
16383
- const isAdhocCall = (callLocator) => {
16421
+ /* @conditional-compile-remove(PSTN-calls) */
16422
+ const isOutboundCall = (callLocator) => {
16384
16423
  return 'participantIDs' in callLocator;
16385
16424
  };
16386
16425
 
@@ -17001,36 +17040,36 @@ class CallWithChatBackedChatAdapter {
17001
17040
  this.setTopic = (topicName) => __awaiter$2(this, void 0, void 0, function* () {
17002
17041
  throw new Error(`Chat Topics are not supported in CallWithChatComposite.`);
17003
17042
  });
17043
+ /* @conditional-compile-remove(file-sharing) */
17044
+ this.registerActiveFileUploads = (files) => {
17045
+ return this.callWithChatAdapter.registerActiveFileUploads(files);
17046
+ };
17047
+ /* @conditional-compile-remove(file-sharing) */
17048
+ this.registerCompletedFileUploads = (metadata) => {
17049
+ return this.callWithChatAdapter.registerCompletedFileUploads(metadata);
17050
+ };
17051
+ /* @conditional-compile-remove(file-sharing) */
17052
+ this.clearFileUploads = () => {
17053
+ this.callWithChatAdapter.clearFileUploads();
17054
+ };
17055
+ /* @conditional-compile-remove(file-sharing) */
17056
+ this.cancelFileUpload = (id) => {
17057
+ this.callWithChatAdapter.cancelFileUpload(id);
17058
+ };
17059
+ /* @conditional-compile-remove(file-sharing) */
17060
+ this.updateFileUploadProgress = (id, progress) => {
17061
+ this.callWithChatAdapter.updateFileUploadProgress(id, progress);
17062
+ };
17063
+ /* @conditional-compile-remove(file-sharing) */
17064
+ this.updateFileUploadErrorMessage = (id, errorMessage) => {
17065
+ this.callWithChatAdapter.updateFileUploadErrorMessage(id, errorMessage);
17066
+ };
17067
+ /* @conditional-compile-remove(file-sharing) */
17068
+ this.updateFileUploadMetadata = (id, metadata) => {
17069
+ this.callWithChatAdapter.updateFileUploadMetadata(id, metadata);
17070
+ };
17004
17071
  this.callWithChatAdapter = callWithChatAdapter;
17005
17072
  }
17006
- /* @conditional-compile-remove(file-sharing) */
17007
- registerActiveFileUploads(files) {
17008
- return this.callWithChatAdapter.registerActiveFileUploads(files);
17009
- }
17010
- /* @conditional-compile-remove(file-sharing) */
17011
- registerCompletedFileUploads(metadata) {
17012
- return this.callWithChatAdapter.registerCompletedFileUploads(metadata);
17013
- }
17014
- /* @conditional-compile-remove(file-sharing) */
17015
- clearFileUploads() {
17016
- this.callWithChatAdapter.clearFileUploads();
17017
- }
17018
- /* @conditional-compile-remove(file-sharing) */
17019
- cancelFileUpload(id) {
17020
- this.callWithChatAdapter.cancelFileUpload(id);
17021
- }
17022
- /* @conditional-compile-remove(file-sharing) */
17023
- updateFileUploadProgress(id, progress) {
17024
- this.callWithChatAdapter.updateFileUploadProgress(id, progress);
17025
- }
17026
- /* @conditional-compile-remove(file-sharing) */
17027
- updateFileUploadErrorMessage(id, errorMessage) {
17028
- this.callWithChatAdapter.updateFileUploadErrorMessage(id, errorMessage);
17029
- }
17030
- /* @conditional-compile-remove(file-sharing) */
17031
- updateFileUploadMetadata(id, metadata) {
17032
- this.callWithChatAdapter.updateFileUploadMetadata(id, metadata);
17033
- }
17034
17073
  }
17035
17074
  function chatAdapterStateFromCallWithChatAdapterState(callWithChatAdapterState) {
17036
17075
  if (!callWithChatAdapterState.chat) {
@@ -17947,6 +17986,34 @@ class CallWithChatContext {
17947
17986
  */
17948
17987
  class AzureCommunicationCallWithChatAdapter {
17949
17988
  constructor(callAdapter, chatAdapter) {
17989
+ /* @conditional-compile-remove(file-sharing) */
17990
+ this.registerActiveFileUploads = (files) => {
17991
+ return this.chatAdapter.registerActiveFileUploads(files);
17992
+ };
17993
+ /* @conditional-compile-remove(file-sharing) */
17994
+ this.registerCompletedFileUploads = (metadata) => {
17995
+ return this.chatAdapter.registerCompletedFileUploads(metadata);
17996
+ };
17997
+ /* @conditional-compile-remove(file-sharing) */
17998
+ this.clearFileUploads = () => {
17999
+ this.chatAdapter.clearFileUploads();
18000
+ };
18001
+ /* @conditional-compile-remove(file-sharing) */
18002
+ this.cancelFileUpload = (id) => {
18003
+ this.chatAdapter.cancelFileUpload(id);
18004
+ };
18005
+ /* @conditional-compile-remove(file-sharing) */
18006
+ this.updateFileUploadProgress = (id, progress) => {
18007
+ this.chatAdapter.updateFileUploadProgress(id, progress);
18008
+ };
18009
+ /* @conditional-compile-remove(file-sharing) */
18010
+ this.updateFileUploadErrorMessage = (id, errorMessage) => {
18011
+ this.chatAdapter.updateFileUploadErrorMessage(id, errorMessage);
18012
+ };
18013
+ /* @conditional-compile-remove(file-sharing) */
18014
+ this.updateFileUploadMetadata = (id, metadata) => {
18015
+ this.chatAdapter.updateFileUploadMetadata(id, metadata);
18016
+ };
17950
18017
  this.bindPublicMethods();
17951
18018
  this.callAdapter = callAdapter;
17952
18019
  this.chatAdapter = chatAdapter;
@@ -18193,34 +18260,6 @@ class AzureCommunicationCallWithChatAdapter {
18193
18260
  return yield this.chatAdapter.deleteMessage(messageId);
18194
18261
  });
18195
18262
  }
18196
- /* @conditional-compile-remove(file-sharing) */
18197
- registerActiveFileUploads(files) {
18198
- return this.chatAdapter.registerActiveFileUploads(files);
18199
- }
18200
- /* @conditional-compile-remove(file-sharing) */
18201
- registerCompletedFileUploads(metadata) {
18202
- return this.chatAdapter.registerCompletedFileUploads(metadata);
18203
- }
18204
- /* @conditional-compile-remove(file-sharing) */
18205
- clearFileUploads() {
18206
- this.chatAdapter.clearFileUploads();
18207
- }
18208
- /* @conditional-compile-remove(file-sharing) */
18209
- cancelFileUpload(id) {
18210
- this.chatAdapter.cancelFileUpload(id);
18211
- }
18212
- /* @conditional-compile-remove(file-sharing) */
18213
- updateFileUploadProgress(id, progress) {
18214
- this.chatAdapter.updateFileUploadProgress(id, progress);
18215
- }
18216
- /* @conditional-compile-remove(file-sharing) */
18217
- updateFileUploadErrorMessage(id, errorMessage) {
18218
- this.chatAdapter.updateFileUploadErrorMessage(id, errorMessage);
18219
- }
18220
- /* @conditional-compile-remove(file-sharing) */
18221
- updateFileUploadMetadata(id, metadata) {
18222
- this.chatAdapter.updateFileUploadMetadata(id, metadata);
18223
- }
18224
18263
  /* @conditional-compile-remove(PSTN-calls) */
18225
18264
  holdCall() {
18226
18265
  return __awaiter(this, void 0, void 0, function* () {