@azure/communication-react 1.13.0-beta.1 → 1.13.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 (606) hide show
  1. package/dist/communication-react.d.ts +157 -1968
  2. package/dist/dist-cjs/communication-react/index.js +2068 -7634
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/areEqual.d.ts +0 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  7. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +1 -2
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -5
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  10. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -12
  11. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +1 -13
  12. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +0 -4
  14. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -10
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -14
  17. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +0 -10
  19. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +1 -15
  21. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  22. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -4
  23. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -12
  24. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  25. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +0 -6
  26. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -8
  27. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.d.ts +0 -1
  29. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +2 -8
  30. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +3 -4
  32. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +2 -14
  34. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +1 -20
  35. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +0 -7
  37. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +0 -12
  38. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  39. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +1 -1
  40. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +2 -9
  41. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  42. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +0 -3
  43. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  44. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +5 -6
  45. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  46. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -15
  47. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  48. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -2
  49. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +0 -5
  50. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  51. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +3 -24
  52. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  53. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -5
  54. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +1 -40
  55. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  56. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +8 -12
  57. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  58. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -1
  59. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +0 -8
  60. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  61. package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -7
  62. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  63. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  64. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +0 -11
  65. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  66. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +1 -25
  67. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +2 -33
  68. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  69. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -2
  70. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +0 -8
  71. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  72. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -2
  73. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  74. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -5
  75. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  76. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  77. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +5 -173
  78. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  79. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
  80. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  81. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +1 -1
  82. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  83. package/dist/dist-esm/chat-stateful-client/src/ChatContext.d.ts +2 -5
  84. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +2 -24
  85. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  86. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -3
  87. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  88. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +1 -1
  89. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  90. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +1 -4
  91. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  92. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +0 -2
  93. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  94. package/dist/dist-esm/communication-react/src/index.d.ts +1 -28
  95. package/dist/dist-esm/communication-react/src/index.js +0 -14
  96. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  97. package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +0 -1
  98. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.d.ts +0 -1
  99. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.d.ts +0 -1
  100. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.d.ts +0 -1
  101. package/dist/dist-esm/react-components/src/components/Announcer.d.ts +0 -1
  102. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -1
  103. package/dist/dist-esm/react-components/src/components/Caption.d.ts +0 -1
  104. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -1
  105. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +0 -1
  106. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.d.ts +0 -1
  107. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +1 -20
  108. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +2 -7
  109. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  110. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +1 -7
  111. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +12 -43
  112. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  113. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +1 -23
  114. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +8 -37
  115. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  116. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +1 -11
  117. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +2 -10
  118. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  119. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -35
  120. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +1 -56
  121. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  122. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.d.ts +1 -3
  123. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js +5 -27
  124. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js.map +1 -1
  125. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.d.ts +0 -1
  126. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.d.ts +0 -1
  127. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.d.ts +0 -1
  128. package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +0 -1
  129. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.d.ts +0 -1
  130. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.d.ts +0 -1
  131. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +0 -1
  132. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +7 -8
  133. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +2 -2
  134. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  135. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.d.ts +0 -1
  136. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +0 -1
  137. package/dist/dist-esm/react-components/src/components/EndCallButton.d.ts +0 -1
  138. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +0 -1
  139. package/dist/dist-esm/react-components/src/components/FileCard.d.ts +0 -1
  140. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +1 -41
  141. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +4 -25
  142. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  143. package/dist/dist-esm/react-components/src/components/FileUploadCards.d.ts +0 -1
  144. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.d.ts +0 -1
  145. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
  146. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -18
  147. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  148. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.d.ts +0 -1
  149. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.d.ts +0 -1
  150. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +2 -47
  151. package/dist/dist-esm/react-components/src/components/MessageThread.js +3 -16
  152. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  153. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +0 -1
  154. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -14
  155. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +0 -3
  156. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  157. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +0 -21
  158. package/dist/dist-esm/react-components/src/components/ParticipantList.js +4 -22
  159. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  160. package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts +0 -1
  161. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.d.ts +0 -1
  162. package/dist/dist-esm/react-components/src/components/RaiseHandButton.d.ts +0 -1
  163. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +6 -25
  164. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  165. package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +0 -1
  166. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +0 -42
  167. package/dist/dist-esm/react-components/src/components/SendBox.js +9 -81
  168. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  169. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -1
  170. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +1 -1
  171. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +0 -1
  173. package/dist/dist-esm/react-components/src/components/StreamMedia.d.ts +0 -1
  174. package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts +0 -1
  175. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +0 -1
  176. package/dist/dist-esm/react-components/src/components/TypingIndicator.d.ts +0 -1
  177. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -1
  178. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -2
  179. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  180. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.d.ts +0 -1
  181. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -2
  182. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  183. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.d.ts +0 -1
  184. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -24
  185. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  186. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +0 -1
  187. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -2
  188. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  189. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.d.ts +0 -1
  190. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +0 -1
  191. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +0 -1
  192. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +0 -1
  193. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +1 -1
  194. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  195. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +0 -1
  196. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +0 -1
  197. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +1 -1
  198. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  199. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.d.ts +0 -1
  200. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -1
  201. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +0 -1
  202. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +0 -1
  203. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  204. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -1
  205. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.d.ts +0 -1
  206. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +1 -1
  207. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +1 -5
  209. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  210. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +3 -18
  211. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  212. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +0 -9
  213. package/dist/dist-esm/react-components/src/components/VideoGallery.js +6 -42
  214. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +1 -9
  216. package/dist/dist-esm/react-components/src/components/VideoTile.js +7 -41
  217. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  218. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.d.ts +0 -1
  219. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +56 -56
  220. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  221. package/dist/dist-esm/react-components/src/components/index.d.ts +1 -21
  222. package/dist/dist-esm/react-components/src/components/index.js +0 -12
  223. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  224. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.d.ts +1 -1
  225. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +12 -5
  226. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  227. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.d.ts +1 -1
  228. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +5 -3
  229. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  230. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +2 -2
  231. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +0 -1
  232. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +2 -3
  233. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +6 -3
  235. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +14 -6
  236. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  237. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -4
  238. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  239. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
  240. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -4
  242. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -5
  243. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  244. package/dist/dist-esm/react-components/src/index.d.ts +0 -1
  245. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  246. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -60
  247. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  248. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +9 -3
  249. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +9 -3
  250. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +9 -3
  251. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +9 -3
  252. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +4 -2
  253. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +9 -3
  254. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +9 -3
  255. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +9 -3
  256. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +9 -3
  257. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +9 -3
  258. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +9 -3
  259. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +9 -3
  260. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +9 -3
  261. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +9 -3
  262. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +9 -3
  263. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +9 -3
  264. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +9 -3
  265. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +9 -3
  266. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +9 -3
  267. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +9 -3
  268. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +9 -3
  269. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -13
  270. package/dist/dist-esm/react-components/src/theming/icons.js +3 -111
  271. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/theming/themes.d.ts +2 -21
  273. package/dist/dist-esm/react-components/src/theming/themes.js +0 -16
  274. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -34
  276. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -9
  278. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/types/ReactionTypes.d.ts +1 -44
  280. package/dist/dist-esm/react-components/src/types/ReactionTypes.js +1 -2
  281. package/dist/dist-esm/react-components/src/types/ReactionTypes.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -6
  283. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  284. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  285. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +1 -74
  286. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +15 -28
  287. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  288. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +29 -105
  289. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  290. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +50 -75
  291. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +101 -289
  292. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  293. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +17 -99
  294. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  295. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  296. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +1 -2
  297. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +1 -7
  298. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  299. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +3 -8
  300. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js +0 -2
  301. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  302. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +2 -1
  303. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +11 -25
  304. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  305. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -2
  306. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +2 -38
  307. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  308. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.d.ts +0 -1
  309. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -3
  310. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -27
  311. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  312. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.d.ts +0 -1
  313. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -20
  314. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  315. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -3
  316. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -27
  317. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.d.ts +0 -1
  319. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.d.ts +0 -1
  320. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.d.ts +0 -1
  321. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -2
  322. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -31
  323. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  324. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.d.ts +0 -1
  325. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -1
  326. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +2 -5
  327. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  328. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.d.ts +0 -1
  329. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +0 -1
  330. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.d.ts +0 -1
  331. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.d.ts +0 -1
  332. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.d.ts +0 -1
  333. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +0 -1
  334. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +0 -1
  335. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +0 -1
  336. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +0 -1
  337. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.d.ts +0 -1
  338. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +0 -1
  339. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +2 -6
  340. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  341. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -20
  342. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  343. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +0 -1
  344. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +4 -9
  345. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +0 -2
  346. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  347. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +0 -1
  348. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +44 -13
  349. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  350. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -8
  351. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +6 -80
  352. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  353. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/{HoldPage.d.ts → DtmfDialpadPage.d.ts} +8 -7
  354. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +80 -0
  355. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -0
  356. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +0 -1
  357. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +3 -7
  358. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  359. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -1
  360. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +11 -1
  361. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  362. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.d.ts +0 -1
  363. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -5
  364. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -5
  365. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  366. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +0 -4
  367. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  368. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/DtmfDialpadPage.styles.d.ts +8 -0
  369. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/DtmfDialpadPage.styles.js +18 -0
  370. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/DtmfDialpadPage.styles.js.map +1 -0
  371. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.d.ts +9 -0
  372. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +26 -0
  373. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  374. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +15 -16
  375. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +24 -97
  376. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  377. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.d.ts +17 -0
  378. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js +30 -0
  379. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js.map +1 -0
  380. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +1 -62
  381. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +5 -31
  382. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  383. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.d.ts +0 -1
  384. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.d.ts +0 -1
  385. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.d.ts +0 -1
  386. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -32
  387. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  388. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +10 -33
  389. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +16 -108
  390. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  391. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +5 -55
  392. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  393. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -10
  394. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +7 -37
  395. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  396. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -13
  397. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -37
  398. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  399. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -22
  400. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +1 -9
  401. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  402. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -21
  403. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +1 -2
  404. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  405. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.d.ts +0 -1
  406. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -1
  407. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +6 -133
  408. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  409. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  410. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  411. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +3 -32
  412. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +5 -129
  413. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  414. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  415. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -159
  416. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  417. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -17
  418. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  419. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -2
  420. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  421. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.d.ts +0 -1
  422. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +1 -8
  423. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  424. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +1 -3
  425. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  426. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.d.ts +0 -1
  427. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -4
  428. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  429. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -6
  430. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +0 -15
  431. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  432. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -6
  433. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +2 -3
  434. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  435. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +0 -1
  436. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +0 -1
  437. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +0 -1
  438. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +2 -1
  439. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +25 -14
  440. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  441. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -1
  442. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +40 -27
  443. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  444. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.d.ts +17 -0
  445. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js +41 -0
  446. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js.map +1 -0
  447. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.d.ts +0 -1
  448. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionSettingsDrawer.d.ts +0 -1
  449. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +8 -1
  450. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +43 -28
  451. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  452. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +2 -2
  453. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  454. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.d.ts +0 -1
  455. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.d.ts +0 -1
  456. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.d.ts +0 -1
  457. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.d.ts +0 -1
  458. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -3
  459. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  460. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -1
  461. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +2 -14
  462. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  463. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +0 -1
  464. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +0 -1
  465. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +0 -1
  466. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +4 -24
  467. package/dist/dist-esm/react-composites/src/composites/common/icons.js +5 -13
  468. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  469. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +8 -13
  470. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  471. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +29 -2
  472. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +29 -2
  473. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +29 -2
  474. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +29 -2
  475. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +20 -2
  476. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +29 -2
  477. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +29 -2
  478. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +29 -2
  479. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +29 -2
  480. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +29 -2
  481. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +29 -2
  482. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +29 -2
  483. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +29 -2
  484. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +29 -2
  485. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +29 -2
  486. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +29 -2
  487. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +29 -2
  488. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +29 -2
  489. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +29 -2
  490. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +29 -2
  491. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +29 -2
  492. package/dist/tsdoc-metadata.json +1 -1
  493. package/package.json +4 -4
  494. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +0 -45
  495. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +0 -91
  496. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +0 -1
  497. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +0 -19
  498. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +0 -91
  499. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +0 -1
  500. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +0 -23
  501. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -49
  502. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +0 -1
  503. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.d.ts +0 -32
  504. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +0 -129
  505. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +0 -1
  506. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
  507. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
  508. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
  509. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  510. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -43
  511. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  512. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  513. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -75
  514. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  515. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  516. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -68
  517. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  518. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  519. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -39
  520. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  521. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  522. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  523. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  524. package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +0 -71
  525. package/dist/dist-esm/react-components/src/components/ImageGallery.js +0 -56
  526. package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +0 -1
  527. package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
  528. package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -123
  529. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
  530. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -14
  531. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +0 -18
  532. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +0 -1
  533. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -24
  534. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -550
  535. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
  536. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
  537. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -816
  538. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
  539. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  540. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  541. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  542. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.d.ts +0 -68
  543. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +0 -205
  544. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +0 -1
  545. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -26
  546. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -69
  547. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
  548. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  549. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  550. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  551. package/dist/dist-esm/react-components/src/components/styles/Stack.style.d.ts +0 -5
  552. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js +0 -32
  553. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +0 -1
  554. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  555. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  556. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  557. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  558. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  559. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  560. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  561. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  562. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  563. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  564. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -218
  565. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  566. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  567. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  568. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  569. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  570. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  571. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  572. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -28
  573. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  574. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  575. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  576. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  577. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  578. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  579. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  580. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  581. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  582. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  583. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  584. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -23
  585. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  586. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  587. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  588. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  589. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  590. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -15
  591. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  592. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -27
  593. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -14
  594. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  595. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  596. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -107
  597. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  598. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  599. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  600. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  601. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  602. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -74
  603. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  604. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  605. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  606. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
@@ -11,15 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  };
12
12
  /* @conditional-compile-remove(close-captions) */
13
13
  import { _StartCaptionsButton } from "../../../../../react-components/src";
14
- /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
15
- import { HoldButton } from "../../../../../react-components/src";
16
14
  import React from 'react';
17
15
  /* @conditional-compile-remove(gallery-layouts) */
18
16
  import { useState } from 'react';
19
17
  /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
20
18
  import { useMemo, useCallback } from 'react';
21
- /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
22
- import { usePropsFor } from '../../CallComposite/hooks/usePropsFor';
23
19
  /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
24
20
  import { buttonFlyoutIncreasedSizeStyles } from '../../CallComposite/styles/Buttons.styles';
25
21
  import { MoreButton } from '../MoreButton';
@@ -34,16 +30,20 @@ import { _startCaptionsButtonSelector } from "../../../../../calling-component-b
34
30
  /* @conditional-compile-remove(close-captions) */
35
31
  import { useAdaptedSelector } from '../../CallComposite/hooks/useAdaptedSelector';
36
32
  import { _preventDismissOnEvent } from "../../../../../acs-ui-common/src";
33
+ /* @conditional-compile-remove(dtmf-dialer) */
34
+ import { showDtmfDialer } from '../../CallComposite/utils/MediaGalleryUtils';
35
+ /* @conditional-compile-remove(dtmf-dialer) */
36
+ import { useSelector } from '../../CallComposite/hooks/useSelector';
37
+ /* @conditional-compile-remove(dtmf-dialer) */
38
+ import { getTargetCallees } from '../../CallComposite/selectors/baseSelectors';
37
39
  /**
38
40
  *
39
41
  * @private
40
42
  */
41
43
  export const DesktopMoreButton = (props) => {
42
- var _a;
44
+ var _a, _b;
43
45
  /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
44
46
  const localeStrings = useLocale();
45
- /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
46
- const holdButtonProps = usePropsFor(HoldButton);
47
47
  /* @conditional-compile-remove(close-captions) */
48
48
  const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);
49
49
  /* @conditional-compile-remove(close-captions) */
@@ -58,6 +58,12 @@ export const DesktopMoreButton = (props) => {
58
58
  const [focusedContentOn, setFocusedContentOn] = useState(false);
59
59
  /* @conditional-compile-remove(gallery-layouts) */
60
60
  const [previousLayout, setPreviousLayout] = useState((_a = props.userSetGalleryLayout) !== null && _a !== void 0 ? _a : 'floatingLocalVideo');
61
+ /* @conditional-compile-remove(dtmf-dialer) */
62
+ const callees = useSelector(getTargetCallees);
63
+ /* @conditional-compile-remove(dtmf-dialer) */
64
+ const allowDtmfDialer = showDtmfDialer(callees);
65
+ /* @conditional-compile-remove(dtmf-dialer) */
66
+ const [dtmfDialerChecked, setDtmfDialerChecked] = useState((_b = props.dtmfDialerPresent) !== null && _b !== void 0 ? _b : false);
61
67
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
62
68
  const moreButtonStrings = useMemo(() => ({
63
69
  label: localeStrings.strings.call.moreButtonCallingLabel,
@@ -72,26 +78,6 @@ export const DesktopMoreButton = (props) => {
72
78
  width: '1.25rem'
73
79
  }
74
80
  };
75
- /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
76
- moreButtonContextualMenuItems.push({
77
- key: 'holdButtonKey',
78
- text: localeStrings.component.strings.holdButton.tooltipOffContent,
79
- onClick: () => {
80
- holdButtonProps.onToggleHold();
81
- },
82
- iconProps: {
83
- iconName: 'HoldCallContextualMenuItem',
84
- styles: {
85
- root: {
86
- lineHeight: 0
87
- }
88
- }
89
- },
90
- itemProps: {
91
- styles: buttonFlyoutIncreasedSizeStyles
92
- },
93
- disabled: props.disableButtonsForHoldScreen
94
- });
95
81
  // is captions feature is active
96
82
  /* @conditional-compile-remove(close-captions) */
97
83
  if (props.isCaptionsSupported) {
@@ -165,6 +151,33 @@ export const DesktopMoreButton = (props) => {
165
151
  });
166
152
  }
167
153
  }
154
+ /* @conditional-compile-remove(dtmf-dialer) */
155
+ const dtmfDialerScreenOption = {
156
+ key: 'dtmfDialerScreenKey',
157
+ itemProps: {
158
+ styles: buttonFlyoutIncreasedSizeStyles
159
+ },
160
+ text: !dtmfDialerChecked ? localeStrings.strings.call.dtmfDialerMoreButtonLabelOn : localeStrings.strings.call.dtmfDialerMoreButtonLabelOff,
161
+ onClick: () => {
162
+ props.onSetDialpadPage && props.onSetDialpadPage();
163
+ setDtmfDialerChecked(!dtmfDialerChecked);
164
+ },
165
+ iconProps: {
166
+ iconName: 'DtmfDialpadButton',
167
+ styles: {
168
+ root: {
169
+ lineHeight: 0
170
+ }
171
+ }
172
+ }
173
+ };
174
+ /* @conditional-compile-remove(dtmf-dialer) */
175
+ /**
176
+ * Only render the dtmf dialer if the dialpad for PSTN calls is not present
177
+ */
178
+ if (props.onSetDialpadPage && allowDtmfDialer) {
179
+ moreButtonContextualMenuItems.push(dtmfDialerScreenOption);
180
+ }
168
181
  /* @conditional-compile-remove(gallery-layouts) */
169
182
  if (props.onUserSetOverflowGalleryPositionChange) {
170
183
  const galleryOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"DesktopMoreButton.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/common/ControlBar/DesktopMoreButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAMlC,iDAAiD;AACjD,OAAO,EAAE,oBAAoB,EAAE,4CAAmC;AAClE,4CAA4C,CAAC,mDAAmD;AAChG,OAAO,EAAE,UAAU,EAAE,4CAAmC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,kDAAkD;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,4CAA4C,CAAC,mDAAmD,CAAC,iDAAiD;AAClJ,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC7C,4CAA4C,CAAC,mDAAmD;AAChG,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,4CAA4C,CAAC,mDAAmD,CAAC,iDAAiD;AAClJ,OAAO,EAAE,+BAA+B,EAAE,MAAM,2CAA2C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,4CAA4C,CAAC,mDAAmD,CAAC,iDAAiD;AAClJ,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,+DAA+D;AAC/D,OAAO,EAAE,qBAAqB,EAAE,wCAAwC,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AACrI,iDAAiD;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,iDAAiD;AACjD,OAAO,EAAE,4BAA4B,EAAE,sDAA6C;AACpF,iDAAiD;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,yCAAgC;AAkBjE;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAe,EAAE;;IAC9E,4CAA4C,CA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BAAa,mCAAmC;QAC5E,4CAA4C,CAAC,mDAAmD,CAAC,iDAAiD,CAAC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE;YAC5L,MAAM,EAAE,IAAI;SACb,EAAE,SAAS,EAAE;YACZ,KAAK,EAAE,6BAA6B;YACpC,YAAY,EAAE;gBACZ,qBAAqB,EAAE,sBAAsB;aAC9C;SACF,IAAI,CAAC;AACR,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IContextualMenuItem } from '@fluentui/react';\nimport { ControlBarButtonProps } from '@internal/react-components';\n/* @conditional-compile-remove(gallery-layouts) */\nimport { VideoGalleryLayout } from '@internal/react-components';\n/* @conditional-compile-remove(close-captions) */\nimport { _StartCaptionsButton } from '@internal/react-components';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\nimport { HoldButton } from '@internal/react-components';\nimport React from 'react';\n/* @conditional-compile-remove(gallery-layouts) */\nimport { useState } from 'react';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\nimport { useMemo, useCallback } from 'react';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\nimport { usePropsFor } from '../../CallComposite/hooks/usePropsFor';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\nimport { buttonFlyoutIncreasedSizeStyles } from '../../CallComposite/styles/Buttons.styles';\nimport { MoreButton } from '../MoreButton';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\nimport { useLocale } from '../../localization';\n/* @conditional-compile-remove(control-bar-button-injection) */\nimport { CommonCallControlOptions } from '../types/CommonCallControlOptions';\n/* @conditional-compile-remove(control-bar-button-injection) */\nimport { CUSTOM_BUTTON_OPTIONS, generateCustomCallDesktopOverflowButtons, onFetchCustomButtonPropsTrampoline } from './CustomButton';\n/* @conditional-compile-remove(close-captions) */\nimport { useHandlers } from '../../CallComposite/hooks/useHandlers';\n/* @conditional-compile-remove(close-captions) */\nimport { _startCaptionsButtonSelector } from '@internal/calling-component-bindings';\n/* @conditional-compile-remove(close-captions) */\nimport { useAdaptedSelector } from '../../CallComposite/hooks/useAdaptedSelector';\nimport { _preventDismissOnEvent } from '@internal/acs-ui-common';\n/** @private */\nexport interface DesktopMoreButtonProps extends ControlBarButtonProps {\n disableButtonsForHoldScreen?: boolean;\n onClickShowDialpad?: () => void;\n /* @conditional-compile-remove(close-captions) */\n isCaptionsSupported?: boolean;\n /* @conditional-compile-remove(control-bar-button-injection) */\n callControls?: boolean | CommonCallControlOptions;\n onCaptionsSettingsClick?: () => void;\n /* @conditional-compile-remove(gallery-layouts) */\n onUserSetOverflowGalleryPositionChange?: (position: 'Responsive' | 'horizontalTop') => void;\n /* @conditional-compile-remove(gallery-layouts) */\n onUserSetGalleryLayout?: (layout: VideoGalleryLayout) => void;\n /* @conditional-compile-remove(gallery-layouts) */\n userSetGalleryLayout?: VideoGalleryLayout;\n}\n\n/**\n *\n * @private\n */\nexport const DesktopMoreButton = (props: DesktopMoreButtonProps): JSX.Element => {\n /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\n const localeStrings = useLocale();\n /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n const holdButtonProps = usePropsFor(HoldButton);\n /* @conditional-compile-remove(close-captions) */\n const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);\n /* @conditional-compile-remove(close-captions) */\n const startCaptionsButtonHandlers = useHandlers(_StartCaptionsButton);\n /* @conditional-compile-remove(close-captions) */\n const startCaptions = useCallback(async () => {\n await startCaptionsButtonHandlers.onStartCaptions({\n spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage\n });\n }, [startCaptionsButtonHandlers, startCaptionsButtonProps.currentSpokenLanguage]);\n /* @conditional-compile-remove(gallery-layouts) */\n const [focusedContentOn, setFocusedContentOn] = useState<boolean>(false);\n /* @conditional-compile-remove(gallery-layouts) */\n const [previousLayout, setPreviousLayout] = useState<VideoGalleryLayout>(props.userSetGalleryLayout ?? 'floatingLocalVideo');\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\n const moreButtonStrings = useMemo(() => ({\n label: localeStrings.strings.call.moreButtonCallingLabel,\n tooltipOffContent: localeStrings.strings.callWithChat.moreDrawerButtonTooltip\n }), [localeStrings]);\n const moreButtonContextualMenuItems: IContextualMenuItem[] = [];\n\n /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(gallery-layouts) */\n const menuSubIconStyleSet = {\n root: {\n height: 'unset',\n lineHeight: '100%',\n width: '1.25rem'\n }\n };\n\n /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n moreButtonContextualMenuItems.push({\n key: 'holdButtonKey',\n text: localeStrings.component.strings.holdButton.tooltipOffContent,\n onClick: () => {\n holdButtonProps.onToggleHold();\n },\n iconProps: {\n iconName: 'HoldCallContextualMenuItem',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen\n });\n\n // is captions feature is active\n /* @conditional-compile-remove(close-captions) */\n if (props.isCaptionsSupported) {\n const captionsContextualMenuItems: IContextualMenuItem[] = [];\n moreButtonContextualMenuItems.push({\n key: 'liveCaptionsKey',\n id: 'common-call-composite-captions-button',\n text: localeStrings.strings.call.liveCaptionsLabel,\n iconProps: {\n iconName: 'CaptionsIcon',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen,\n subMenuProps: {\n id: 'captions-contextual-menu',\n items: captionsContextualMenuItems,\n calloutProps: {\n preventDismissOnEvent: _preventDismissOnEvent\n }\n },\n submenuIconProps: {\n iconName: 'HorizontalGalleryRightButton',\n styles: menuSubIconStyleSet\n }\n });\n captionsContextualMenuItems.push({\n key: 'ToggleCaptionsKey',\n id: 'common-call-composite-captions-toggle-button',\n text: startCaptionsButtonProps.checked ? localeStrings.strings.call.startCaptionsButtonTooltipOnContent : localeStrings.strings.call.startCaptionsButtonTooltipOffContent,\n onClick: () => {\n startCaptionsButtonProps.checked ? startCaptionsButtonHandlers.onStopCaptions() : startCaptionsButtonProps.currentSpokenLanguage !== '' ? startCaptions() : props.onCaptionsSettingsClick && props.onCaptionsSettingsClick();\n },\n iconProps: {\n iconName: startCaptionsButtonProps.checked ? 'CaptionsOffIcon' : 'CaptionsIcon',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen\n });\n if (props.onCaptionsSettingsClick) {\n captionsContextualMenuItems.push({\n key: 'openCaptionsSettingsKey',\n id: 'common-call-composite-captions-settings-button',\n text: localeStrings.strings.call.captionsSettingsLabel,\n onClick: props.onCaptionsSettingsClick,\n iconProps: {\n iconName: 'CaptionsSettingsIcon',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen || !startCaptionsButtonProps.checked\n });\n }\n }\n /* @conditional-compile-remove(gallery-layouts) */\n if (props.onUserSetOverflowGalleryPositionChange) {\n const galleryOptions = {\n key: 'overflowGalleryPositionKey',\n iconProps: {\n iconName: 'GalleryOptions',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n submenuIconProps: {\n styles: menuSubIconStyleSet\n },\n text: localeStrings.strings.call.moreButtonGalleryControlLabel,\n disabled: props.disableButtonsForHoldScreen,\n subMenuProps: {\n items: [{\n key: 'dynamicSelectionKey',\n text: localeStrings.strings.call.moreButtonGalleryFloatingLocalLayoutLabel,\n canCheck: true,\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n isChecked: props.userSetGalleryLayout === 'floatingLocalVideo',\n onClick: () => {\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('floatingLocalVideo');\n setFocusedContentOn(false);\n },\n iconProps: {\n iconName: 'FloatingLocalVideoGalleryLayout',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n }, {\n key: 'speakerSelectionKey',\n text: localeStrings.strings.call.moreButtonGallerySpeakerLayoutLabel,\n canCheck: true,\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n isChecked: props.userSetGalleryLayout === 'speaker',\n onClick: () => {\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('speaker');\n setFocusedContentOn(false);\n },\n iconProps: {\n iconName: 'SpeakerGalleryLayout',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n }, {\n key: 'focusedContentSelectionKey',\n text: localeStrings.strings.call.moreButtonGalleryFocusedContentLayoutLabel,\n canCheck: true,\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n isChecked: focusedContentOn,\n onClick: () => {\n if (focusedContentOn === false) {\n setPreviousLayout(props.userSetGalleryLayout ?? 'floatingLocalVideo');\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('focusedContent');\n setFocusedContentOn(true);\n } else {\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout(previousLayout);\n setFocusedContentOn(false);\n }\n },\n iconProps: {\n iconName: 'FocusedContentGalleryLayout',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n }],\n calloutProps: {\n preventDismissOnEvent: _preventDismissOnEvent\n }\n }\n };\n /* @conditional-compile-remove(gallery-layouts) */\n moreButtonContextualMenuItems.push(galleryOptions);\n }\n\n /* @conditional-compile-remove(control-bar-button-injection) */\n const customDrawerButtons = useMemo(() => generateCustomCallDesktopOverflowButtons(onFetchCustomButtonPropsTrampoline(typeof props.callControls === 'object' ? props.callControls : undefined), typeof props.callControls === 'object' ? props.callControls.displayType : undefined), [props.callControls]);\n\n /* @conditional-compile-remove(control-bar-button-injection) */\n customDrawerButtons['primary'].slice(CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_DESKTOP_CUSTOM_BUTTONS).forEach(element => {\n moreButtonContextualMenuItems.push({\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n ...element\n });\n });\n /* @conditional-compile-remove(control-bar-button-injection) */\n customDrawerButtons['secondary'].slice(CUSTOM_BUTTON_OPTIONS.MAX_SECONDARY_DESKTOP_CUSTOM_BUTTONS).forEach(element => {\n moreButtonContextualMenuItems.push({\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n ...element\n });\n });\n\n /* @conditional-compile-remove(control-bar-button-injection) */\n customDrawerButtons['overflow'].forEach(element => {\n moreButtonContextualMenuItems.push({\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n ...element\n });\n });\n return <MoreButton {...props} data-ui-id=\"common-call-composite-more-button\"\n /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ strings={moreButtonStrings} menuIconProps={{\n hidden: true\n }} menuProps={{\n items: moreButtonContextualMenuItems,\n calloutProps: {\n preventDismissOnEvent: _preventDismissOnEvent\n }\n }} />;\n};"]}
1
+ {"version":3,"file":"DesktopMoreButton.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/common/ControlBar/DesktopMoreButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAMlC,iDAAiD;AACjD,OAAO,EAAE,oBAAoB,EAAE,4CAAmC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,kDAAkD;AAClD,OAAO,EAAE,QA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mB,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAChD,6BAA6B,CAAC,IAAI,iBAChC,SAAS,EAAE;gBACT,MAAM,EAAE,+BAA+B;aACxC,IACE,OAAO,EACV,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,oBAAC,UAAU,oBAAK,KAAK,kBAAa,mCAAmC;QAC5E,4CAA4C,CAAC,mDAAmD,CAAC,iDAAiD,CAAC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE;YAC5L,MAAM,EAAE,IAAI;SACb,EAAE,SAAS,EAAE;YACZ,KAAK,EAAE,6BAA6B;YACpC,YAAY,EAAE;gBACZ,qBAAqB,EAAE,sBAAsB;aAC9C;SACF,IAAI,CAAC;AACR,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IContextualMenuItem } from '@fluentui/react';\nimport { ControlBarButtonProps } from '@internal/react-components';\n/* @conditional-compile-remove(gallery-layouts) */\nimport { VideoGalleryLayout } from '@internal/react-components';\n/* @conditional-compile-remove(close-captions) */\nimport { _StartCaptionsButton } from '@internal/react-components';\nimport React from 'react';\n/* @conditional-compile-remove(gallery-layouts) */\nimport { useState } from 'react';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\nimport { useMemo, useCallback } from 'react';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\nimport { buttonFlyoutIncreasedSizeStyles } from '../../CallComposite/styles/Buttons.styles';\nimport { MoreButton } from '../MoreButton';\n/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\nimport { useLocale } from '../../localization';\n/* @conditional-compile-remove(control-bar-button-injection) */\nimport { CommonCallControlOptions } from '../types/CommonCallControlOptions';\n/* @conditional-compile-remove(control-bar-button-injection) */\nimport { CUSTOM_BUTTON_OPTIONS, generateCustomCallDesktopOverflowButtons, onFetchCustomButtonPropsTrampoline } from './CustomButton';\n/* @conditional-compile-remove(close-captions) */\nimport { useHandlers } from '../../CallComposite/hooks/useHandlers';\n/* @conditional-compile-remove(close-captions) */\nimport { _startCaptionsButtonSelector } from '@internal/calling-component-bindings';\n/* @conditional-compile-remove(close-captions) */\nimport { useAdaptedSelector } from '../../CallComposite/hooks/useAdaptedSelector';\nimport { _preventDismissOnEvent } from '@internal/acs-ui-common';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { showDtmfDialer } from '../../CallComposite/utils/MediaGalleryUtils';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { useSelector } from '../../CallComposite/hooks/useSelector';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { getTargetCallees } from '../../CallComposite/selectors/baseSelectors';\n\n/** @private */\nexport interface DesktopMoreButtonProps extends ControlBarButtonProps {\n disableButtonsForHoldScreen?: boolean;\n onClickShowDialpad?: () => void;\n /* @conditional-compile-remove(close-captions) */\n isCaptionsSupported?: boolean;\n /* @conditional-compile-remove(control-bar-button-injection) */\n callControls?: boolean | CommonCallControlOptions;\n onCaptionsSettingsClick?: () => void;\n /* @conditional-compile-remove(gallery-layouts) */\n onUserSetOverflowGalleryPositionChange?: (position: 'Responsive' | 'horizontalTop') => void;\n /* @conditional-compile-remove(gallery-layouts) */\n onUserSetGalleryLayout?: (layout: VideoGalleryLayout) => void;\n /* @conditional-compile-remove(gallery-layouts) */\n userSetGalleryLayout?: VideoGalleryLayout;\n /* @conditional-compile-remove(dtmf-dialer) */\n onSetDialpadPage?: () => void;\n /* @conditional-compile-remove(dtmf-dialer) */\n dtmfDialerPresent?: boolean;\n}\n\n/**\n *\n * @private\n */\nexport const DesktopMoreButton = (props: DesktopMoreButtonProps): JSX.Element => {\n /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\n const localeStrings = useLocale();\n /* @conditional-compile-remove(close-captions) */\n const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);\n /* @conditional-compile-remove(close-captions) */\n const startCaptionsButtonHandlers = useHandlers(_StartCaptionsButton);\n /* @conditional-compile-remove(close-captions) */\n const startCaptions = useCallback(async () => {\n await startCaptionsButtonHandlers.onStartCaptions({\n spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage\n });\n }, [startCaptionsButtonHandlers, startCaptionsButtonProps.currentSpokenLanguage]);\n /* @conditional-compile-remove(gallery-layouts) */\n const [focusedContentOn, setFocusedContentOn] = useState<boolean>(false);\n /* @conditional-compile-remove(gallery-layouts) */\n const [previousLayout, setPreviousLayout] = useState<VideoGalleryLayout>(props.userSetGalleryLayout ?? 'floatingLocalVideo');\n\n /* @conditional-compile-remove(dtmf-dialer) */\n const callees = useSelector(getTargetCallees);\n /* @conditional-compile-remove(dtmf-dialer) */\n const allowDtmfDialer = showDtmfDialer(callees);\n\n /* @conditional-compile-remove(dtmf-dialer) */\n const [dtmfDialerChecked, setDtmfDialerChecked] = useState<boolean>(props.dtmfDialerPresent ?? false);\n\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */\n const moreButtonStrings = useMemo(() => ({\n label: localeStrings.strings.call.moreButtonCallingLabel,\n tooltipOffContent: localeStrings.strings.callWithChat.moreDrawerButtonTooltip\n }), [localeStrings]);\n const moreButtonContextualMenuItems: IContextualMenuItem[] = [];\n\n /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(gallery-layouts) */\n const menuSubIconStyleSet = {\n root: {\n height: 'unset',\n lineHeight: '100%',\n width: '1.25rem'\n }\n };\n // is captions feature is active\n /* @conditional-compile-remove(close-captions) */\n if (props.isCaptionsSupported) {\n const captionsContextualMenuItems: IContextualMenuItem[] = [];\n moreButtonContextualMenuItems.push({\n key: 'liveCaptionsKey',\n id: 'common-call-composite-captions-button',\n text: localeStrings.strings.call.liveCaptionsLabel,\n iconProps: {\n iconName: 'CaptionsIcon',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen,\n subMenuProps: {\n id: 'captions-contextual-menu',\n items: captionsContextualMenuItems,\n calloutProps: {\n preventDismissOnEvent: _preventDismissOnEvent\n }\n },\n submenuIconProps: {\n iconName: 'HorizontalGalleryRightButton',\n styles: menuSubIconStyleSet\n }\n });\n captionsContextualMenuItems.push({\n key: 'ToggleCaptionsKey',\n id: 'common-call-composite-captions-toggle-button',\n text: startCaptionsButtonProps.checked ? localeStrings.strings.call.startCaptionsButtonTooltipOnContent : localeStrings.strings.call.startCaptionsButtonTooltipOffContent,\n onClick: () => {\n startCaptionsButtonProps.checked ? startCaptionsButtonHandlers.onStopCaptions() : startCaptionsButtonProps.currentSpokenLanguage !== '' ? startCaptions() : props.onCaptionsSettingsClick && props.onCaptionsSettingsClick();\n },\n iconProps: {\n iconName: startCaptionsButtonProps.checked ? 'CaptionsOffIcon' : 'CaptionsIcon',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen\n });\n if (props.onCaptionsSettingsClick) {\n captionsContextualMenuItems.push({\n key: 'openCaptionsSettingsKey',\n id: 'common-call-composite-captions-settings-button',\n text: localeStrings.strings.call.captionsSettingsLabel,\n onClick: props.onCaptionsSettingsClick,\n iconProps: {\n iconName: 'CaptionsSettingsIcon',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n disabled: props.disableButtonsForHoldScreen || !startCaptionsButtonProps.checked\n });\n }\n }\n\n /* @conditional-compile-remove(dtmf-dialer) */\n const dtmfDialerScreenOption = {\n key: 'dtmfDialerScreenKey',\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n text: !dtmfDialerChecked ? localeStrings.strings.call.dtmfDialerMoreButtonLabelOn : localeStrings.strings.call.dtmfDialerMoreButtonLabelOff,\n onClick: () => {\n props.onSetDialpadPage && props.onSetDialpadPage();\n setDtmfDialerChecked(!dtmfDialerChecked);\n },\n iconProps: {\n iconName: 'DtmfDialpadButton',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n };\n /* @conditional-compile-remove(dtmf-dialer) */\n /**\n * Only render the dtmf dialer if the dialpad for PSTN calls is not present\n */\n if (props.onSetDialpadPage && allowDtmfDialer) {\n moreButtonContextualMenuItems.push(dtmfDialerScreenOption);\n }\n\n /* @conditional-compile-remove(gallery-layouts) */\n if (props.onUserSetOverflowGalleryPositionChange) {\n const galleryOptions = {\n key: 'overflowGalleryPositionKey',\n iconProps: {\n iconName: 'GalleryOptions',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n },\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n submenuIconProps: {\n styles: menuSubIconStyleSet\n },\n text: localeStrings.strings.call.moreButtonGalleryControlLabel,\n disabled: props.disableButtonsForHoldScreen,\n subMenuProps: {\n items: [{\n key: 'dynamicSelectionKey',\n text: localeStrings.strings.call.moreButtonGalleryFloatingLocalLayoutLabel,\n canCheck: true,\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n isChecked: props.userSetGalleryLayout === 'floatingLocalVideo',\n onClick: () => {\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('floatingLocalVideo');\n setFocusedContentOn(false);\n },\n iconProps: {\n iconName: 'FloatingLocalVideoGalleryLayout',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n }, {\n key: 'speakerSelectionKey',\n text: localeStrings.strings.call.moreButtonGallerySpeakerLayoutLabel,\n canCheck: true,\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n isChecked: props.userSetGalleryLayout === 'speaker',\n onClick: () => {\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('speaker');\n setFocusedContentOn(false);\n },\n iconProps: {\n iconName: 'SpeakerGalleryLayout',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n }, {\n key: 'focusedContentSelectionKey',\n text: localeStrings.strings.call.moreButtonGalleryFocusedContentLayoutLabel,\n canCheck: true,\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n isChecked: focusedContentOn,\n onClick: () => {\n if (focusedContentOn === false) {\n setPreviousLayout(props.userSetGalleryLayout ?? 'floatingLocalVideo');\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout('focusedContent');\n setFocusedContentOn(true);\n } else {\n props.onUserSetGalleryLayout && props.onUserSetGalleryLayout(previousLayout);\n setFocusedContentOn(false);\n }\n },\n iconProps: {\n iconName: 'FocusedContentGalleryLayout',\n styles: {\n root: {\n lineHeight: 0\n }\n }\n }\n }],\n calloutProps: {\n preventDismissOnEvent: _preventDismissOnEvent\n }\n }\n };\n /* @conditional-compile-remove(gallery-layouts) */\n moreButtonContextualMenuItems.push(galleryOptions);\n }\n\n /* @conditional-compile-remove(control-bar-button-injection) */\n const customDrawerButtons = useMemo(() => generateCustomCallDesktopOverflowButtons(onFetchCustomButtonPropsTrampoline(typeof props.callControls === 'object' ? props.callControls : undefined), typeof props.callControls === 'object' ? props.callControls.displayType : undefined), [props.callControls]);\n\n /* @conditional-compile-remove(control-bar-button-injection) */\n customDrawerButtons['primary'].slice(CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_DESKTOP_CUSTOM_BUTTONS).forEach(element => {\n moreButtonContextualMenuItems.push({\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n ...element\n });\n });\n /* @conditional-compile-remove(control-bar-button-injection) */\n customDrawerButtons['secondary'].slice(CUSTOM_BUTTON_OPTIONS.MAX_SECONDARY_DESKTOP_CUSTOM_BUTTONS).forEach(element => {\n moreButtonContextualMenuItems.push({\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n ...element\n });\n });\n\n /* @conditional-compile-remove(control-bar-button-injection) */\n customDrawerButtons['overflow'].forEach(element => {\n moreButtonContextualMenuItems.push({\n itemProps: {\n styles: buttonFlyoutIncreasedSizeStyles\n },\n ...element\n });\n });\n return <MoreButton {...props} data-ui-id=\"common-call-composite-more-button\"\n /*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ strings={moreButtonStrings} menuIconProps={{\n hidden: true\n }} menuProps={{\n items: moreButtonContextualMenuItems,\n calloutProps: {\n preventDismissOnEvent: _preventDismissOnEvent\n }\n }} />;\n};"]}
@@ -0,0 +1,17 @@
1
+ import { ControlBarButtonProps, ControlBarButtonStyles } from "../../../../../react-components/src";
2
+ import { CallControlDisplayType } from '../types/CommonCallControlOptions';
3
+ /**
4
+ * @private
5
+ */
6
+ export interface DtmfDialerButtonProps extends ControlBarButtonProps {
7
+ displayType?: CallControlDisplayType;
8
+ styles?: ControlBarButtonStyles;
9
+ }
10
+ /**
11
+ * Button for showing and hiding the dtmf dialer in the Call composite.
12
+ * To be used only if the more button control is disabled. This button will replace
13
+ * it in the control bar unless it is also disabled.
14
+ * @private
15
+ */
16
+ export declare const DtmfDialpadButton: (props: DtmfDialerButtonProps) => JSX.Element;
17
+ //# sourceMappingURL=DtmfDialerButton.d.ts.map
@@ -0,0 +1,41 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /* @conditional-compile-remove(dtmf-dialer) */
4
+ import React, { useMemo } from 'react';
5
+ /* @conditional-compile-remove(dtmf-dialer) */
6
+ import { CallCompositeIcon } from '../icons';
7
+ /* @conditional-compile-remove(dtmf-dialer) */
8
+ import { ControlBarButton } from "../../../../../react-components/src";
9
+ /* @conditional-compile-remove(dtmf-dialer) */
10
+ import { concatStyleSets, useTheme } from '@fluentui/react';
11
+ /* @conditional-compile-remove(dtmf-dialer) */
12
+ import { useLocale } from '../../localization';
13
+ /* @conditional-compile-remove(dtmf-dialer) */
14
+ const icon = () => React.createElement(CallCompositeIcon, { iconName: 'DtmfDialpadButton' });
15
+ /* @conditional-compile-remove(dtmf-dialer) */
16
+ /**
17
+ * Button for showing and hiding the dtmf dialer in the Call composite.
18
+ * To be used only if the more button control is disabled. This button will replace
19
+ * it in the control bar unless it is also disabled.
20
+ * @private
21
+ */
22
+ export const DtmfDialpadButton = (props) => {
23
+ const { strings, onRenderOnIcon, onRenderOffIcon, onClick, displayType } = props;
24
+ const theme = useTheme();
25
+ const locale = useLocale();
26
+ const dialpadButtonStrings = {
27
+ label: locale.strings.call.dtmfDialerButtonLabel,
28
+ tooltipOnContent: locale.strings.call.dtmfDialerButtonTooltipOn,
29
+ tooltipOffContent: locale.strings.call.dtmfDialerButtonTooltipOff
30
+ };
31
+ const styles = useMemo(() => {
32
+ var _a;
33
+ return concatStyleSets({
34
+ rootChecked: {
35
+ background: theme.palette.neutralLight
36
+ }
37
+ }, (_a = props.styles) !== null && _a !== void 0 ? _a : {});
38
+ }, [props.styles, theme.palette.neutralLight]);
39
+ return React.createElement(ControlBarButton, Object.assign({}, props, { strings: strings ? strings : dialpadButtonStrings, showLabel: displayType !== 'compact', labelKey: 'dtmfDialpadButtonLabelKey', onRenderOnIcon: onRenderOnIcon !== null && onRenderOnIcon !== void 0 ? onRenderOnIcon : icon, onRenderOffIcon: onRenderOffIcon !== null && onRenderOffIcon !== void 0 ? onRenderOffIcon : icon, onClick: onClick, styles: styles }));
40
+ };
41
+ //# sourceMappingURL=DtmfDialerButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DtmfDialerButton.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/common/ControlBar/DtmfDialerButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,8CAA8C;AAC9C,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,8CAA8C;AAC9C,OAAO,EAAE,iBAAiB,EA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AO,CAAC,CAAC,CAAC,oBAAoB,EAAE,SAAS,EAAE,WAAW,KAAK,SAAS,EAAE,QAAQ,EAAE,2BAA2B,EAAE,cAAc,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,IAAI,EAAE,eAAe,EAAE,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC7R,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* @conditional-compile-remove(dtmf-dialer) */\nimport React, { useMemo } from 'react';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { CallCompositeIcon } from '../icons';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { ControlBarButton, ControlBarButtonStrings } from '@internal/react-components';\nimport { ControlBarButtonProps, ControlBarButtonStyles } from '@internal/react-components';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { concatStyleSets, useTheme } from '@fluentui/react';\nimport { CallControlDisplayType } from '../types/CommonCallControlOptions';\n/* @conditional-compile-remove(dtmf-dialer) */\nimport { useLocale } from '../../localization';\n\n/* @conditional-compile-remove(dtmf-dialer) */\nconst icon = (): JSX.Element => <CallCompositeIcon iconName={'DtmfDialpadButton'} />;\n\n/**\n * @private\n */\nexport interface DtmfDialerButtonProps extends ControlBarButtonProps {\n displayType?: CallControlDisplayType;\n styles?: ControlBarButtonStyles;\n}\n/* @conditional-compile-remove(dtmf-dialer) */\n/**\n * Button for showing and hiding the dtmf dialer in the Call composite.\n * To be used only if the more button control is disabled. This button will replace\n * it in the control bar unless it is also disabled.\n * @private\n */\nexport const DtmfDialpadButton = (props: DtmfDialerButtonProps): JSX.Element => {\n const {\n strings,\n onRenderOnIcon,\n onRenderOffIcon,\n onClick,\n displayType\n } = props;\n const theme = useTheme();\n const locale = useLocale();\n const dialpadButtonStrings: ControlBarButtonStrings = {\n label: locale.strings.call.dtmfDialerButtonLabel,\n tooltipOnContent: locale.strings.call.dtmfDialerButtonTooltipOn,\n tooltipOffContent: locale.strings.call.dtmfDialerButtonTooltipOff\n };\n const styles: ControlBarButtonStyles = useMemo(() => concatStyleSets({\n rootChecked: {\n background: theme.palette.neutralLight\n }\n }, props.styles ?? {}), [props.styles, theme.palette.neutralLight]);\n return <ControlBarButton {...props} strings={strings ? strings : dialpadButtonStrings} showLabel={displayType !== 'compact'} labelKey={'dtmfDialpadButtonLabelKey'} onRenderOnIcon={onRenderOnIcon ?? icon} onRenderOffIcon={onRenderOffIcon ?? icon} onClick={onClick} styles={styles} />;\n};"]}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ControlBarButtonProps } from "../../../../../react-components/src";
3
2
  /**
4
3
  * @private
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpokenLanguageStrings, CaptionLanguageStrings } from "../../../../../react-components/src";
3
2
  /** @private */
4
3
  export interface CaptionSettingsDrawerStrings {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { OptionsDevice } from "../../../../../react-components/src";
3
2
  import { VideoGalleryLayout } from "../../../../../react-components/src";
4
3
  import { AudioDeviceInfo } from '@azure/communication-calling';
@@ -84,6 +83,14 @@ export interface MoreDrawerDevicesMenuProps {
84
83
  * Callback for when the gallery layout is changed
85
84
  */
86
85
  onUserSetGalleryLayout?: (layout: VideoGalleryLayout) => void;
86
+ /**
87
+ * Callback to hide and show the dialpad in the more drawer
88
+ */
89
+ onSetDialpadPage?: () => void;
90
+ /**
91
+ * Whether the dialpad is present in the call
92
+ */
93
+ dtmfDialerPresent?: boolean;
87
94
  }
88
95
  /** @private */
89
96
  export interface MoreDrawerProps extends MoreDrawerDevicesMenuProps {
@@ -17,8 +17,6 @@ import { useMemo } from 'react';
17
17
  import { _DrawerMenu as DrawerMenu } from "../../../../../react-components/src";
18
18
  /* @conditional-compile-remove(close-captions) */
19
19
  import { _StartCaptionsButton, _CaptionsSettingsModal } from "../../../../../react-components/src";
20
- /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
21
- import { HoldButton } from "../../../../../react-components/src";
22
20
  /* @conditional-compile-remove(raise-hand) */
23
21
  import { RaiseHandButton } from "../../../../../react-components/src";
24
22
  /* @conditional-compile-remove(control-bar-button-injection) */
@@ -44,6 +42,12 @@ import { themedToggleButtonStyle } from './MoreDrawer.styles';
44
42
  import { _spokenLanguageToCaptionLanguage } from "../../../../../react-components/src";
45
43
  /* @conditional-compile-remove(rooms) */
46
44
  import { useAdapter } from '../../CallComposite/adapter/CallAdapterProvider';
45
+ /* @conditional-compile-remove(dtmf-dialer) */
46
+ import { useSelector } from '../../CallComposite/hooks/useSelector';
47
+ /* @conditional-compile-remove(dtmf-dialer) */
48
+ import { getTargetCallees } from '../../CallComposite/selectors/baseSelectors';
49
+ /* @conditional-compile-remove(dtmf-dialer) */
50
+ import { showDtmfDialer } from '../../CallComposite/utils/MediaGalleryUtils';
47
51
  const inferCallWithChatControlOptions = (callWithChatControls) => {
48
52
  if (callWithChatControls === false) {
49
53
  return false;
@@ -53,7 +57,7 @@ const inferCallWithChatControlOptions = (callWithChatControls) => {
53
57
  };
54
58
  /** @private */
55
59
  export const MoreDrawer = (props) => {
56
- var _a, _b, _c;
60
+ var _a, _b, _c, _d;
57
61
  /* @conditional-compile-remove(close-captions) */
58
62
  const theme = useTheme();
59
63
  /* @conditional-compile-remove(rooms) */
@@ -62,8 +66,12 @@ export const MoreDrawer = (props) => {
62
66
  const { speakers, onSelectSpeaker, onLightDismiss } = props;
63
67
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
64
68
  const localeStrings = useLocale();
65
- /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
66
- const holdButtonProps = usePropsFor(HoldButton);
69
+ /* @conditional-compile-remove(dtmf-dialer) */
70
+ const callees = useSelector(getTargetCallees);
71
+ /* @conditional-compile-remove(dtmf-dialer) */
72
+ const allowDtmfDialer = showDtmfDialer(callees);
73
+ /* @conditional-compile-remove(dtmf-dialer) */
74
+ const [dtmfDialerChecked, setDtmfDialerChecked] = useState((_a = props.dtmfDialerPresent) !== null && _a !== void 0 ? _a : false);
67
75
  /* @conditional-compile-remove(raise-hand) */
68
76
  const raiseHandButtonProps = usePropsFor(RaiseHandButton);
69
77
  const onSpeakerItemClick = useCallback((_ev, itemKey) => {
@@ -95,7 +103,7 @@ export const MoreDrawer = (props) => {
95
103
  iconName: 'Accept'
96
104
  } : undefined
97
105
  })),
98
- secondaryText: (_a = props.selectedSpeaker) === null || _a === void 0 ? void 0 : _a.name
106
+ secondaryText: (_b = props.selectedSpeaker) === null || _b === void 0 ? void 0 : _b.name
99
107
  });
100
108
  }
101
109
  const { microphones, onSelectMicrophone } = props;
@@ -134,9 +142,36 @@ export const MoreDrawer = (props) => {
134
142
  } : undefined,
135
143
  disabled: drawerSelectionOptions !== false ? isDisabled(drawerSelectionOptions.microphoneButton) : undefined
136
144
  })),
137
- secondaryText: (_b = props.selectedMicrophone) === null || _b === void 0 ? void 0 : _b.name
145
+ secondaryText: (_c = props.selectedMicrophone) === null || _c === void 0 ? void 0 : _c.name
138
146
  });
139
147
  }
148
+ /* @conditional-compile-remove(dtmf-dialer) */
149
+ const dtmfDialerScreenOption = {
150
+ itemKey: 'dtmfDialerScreenKey',
151
+ text: !dtmfDialerChecked ? localeStrings.strings.call.dtmfDialerMoreButtonLabelOn : localeStrings.strings.call.dtmfDialerMoreButtonLabelOff,
152
+ onItemClick: () => {
153
+ if (props.onSetDialpadPage) {
154
+ props.onSetDialpadPage();
155
+ }
156
+ setDtmfDialerChecked(!dtmfDialerChecked);
157
+ onLightDismiss();
158
+ },
159
+ iconProps: {
160
+ iconName: 'DtmfDialpadButton',
161
+ styles: {
162
+ root: {
163
+ lineHeight: 0
164
+ }
165
+ }
166
+ }
167
+ };
168
+ /* @conditional-compile-remove(dtmf-dialer) */
169
+ /**
170
+ * Only render the dtmf dialer if the dialpad for PSTN calls is not present
171
+ */
172
+ if (props.onSetDialpadPage && allowDtmfDialer) {
173
+ drawerMenuItems.push(dtmfDialerScreenOption);
174
+ }
140
175
  /* @conditional-compile-remove(gallery-layouts) */
141
176
  const galleryLayoutOptions = {
142
177
  itemKey: 'galleryPositionKey',
@@ -202,28 +237,8 @@ export const MoreDrawer = (props) => {
202
237
  disabled: isDisabled(drawerSelectionOptions.peopleButton) || props.disableButtonsForHoldScreen
203
238
  });
204
239
  }
205
- /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
206
- if (drawerSelectionOptions !== false && isEnabled(drawerSelectionOptions === null || drawerSelectionOptions === void 0 ? void 0 : drawerSelectionOptions.holdButton)) {
207
- drawerMenuItems.push({
208
- itemKey: 'holdButtonKey',
209
- disabled: props.disableButtonsForHoldScreen || isDisabled(drawerSelectionOptions.holdButton),
210
- text: localeStrings.component.strings.holdButton.tooltipOffContent,
211
- onItemClick: () => {
212
- holdButtonProps.onToggleHold();
213
- onLightDismiss();
214
- },
215
- iconProps: {
216
- iconName: 'HoldCallContextualMenuItem',
217
- styles: {
218
- root: {
219
- lineHeight: 0
220
- }
221
- }
222
- }
223
- });
224
- }
225
240
  /*@conditional-compile-remove(rooms) */
226
- const role = (_c = callAdapter.getState().call) === null || _c === void 0 ? void 0 : _c.role;
241
+ const role = (_d = callAdapter.getState().call) === null || _d === void 0 ? void 0 : _d.role;
227
242
  /*@conditional-compile-remove(rooms) */
228
243
  const hideRaiseHandButtonInRoomsCall = callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
229
244
  /* @conditional-compile-remove(raise-hand) */