@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
@@ -1,19 +0,0 @@
1
- import { TeamsCallAgent } from './BetaToStableTypes';
2
- import { IncomingCallManagement } from './CallAgentDeclarative';
3
- import { CallContext } from './CallContext';
4
- import { InternalCallContext } from './InternalCallContext';
5
- /**
6
- * @beta
7
- * `DeclarativeTeamsCallAgent` extends and proxies the {@link @azure/communication-calling#TeamsCallAgent}
8
- */
9
- export type DeclarativeTeamsCallAgent = TeamsCallAgent & /* @conditional-compile-remove(one-to-n-calling) */ IncomingCallManagement;
10
- /**
11
- * Creates a declarative CallAgent by proxying TeamsCallAgent with ProxyTeamsCallAgent which will track state updates by updating
12
- * the given context.
13
- *
14
- * @param callAgent - TeamsCallAgent from SDK
15
- * @param context - CallContext from StatefulCallClient
16
- * @param internalContext- InternalCallContext from StatefulCallClient
17
- */
18
- export declare const teamsCallAgentDeclaratify: (callAgent: TeamsCallAgent, context: CallContext, internalContext: InternalCallContext) => DeclarativeTeamsCallAgent;
19
- //# sourceMappingURL=TeamsCallAgentDeclarative.d.ts.map
@@ -1,91 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { clearCallRelatedState, ProxyCallAgentCommon } from './CallAgentDeclarativeCommon';
4
- /* @conditional-compile-remove(teams-identity-support) */
5
- import { _isTeamsCall, _isTeamsCallAgent } from './TypeGuards';
6
- /* @conditional-compile-remove(teams-identity-support) */
7
- import { teamsCallDeclaratify } from './TeamsCallDeclarative';
8
- /**
9
- * ProxyTeamsCallAgent proxies TeamsCallAgent and saves any returned state in the given context. It will subscribe to all state
10
- * updates in the TeamsCallAgent and in the contained TeamsCalls and RemoteParticipants. When dispose is called it will
11
- * unsubscribe from all state updates.
12
- */
13
- class ProxyTeamsCallAgent extends ProxyCallAgentCommon {
14
- constructor(callAgent, context, internalContext) {
15
- super(context, internalContext);
16
- this.subscribe = () => {
17
- /* @conditional-compile-remove(teams-identity-support) */
18
- this._callAgent.on('callsUpdated', this.callsUpdated);
19
- /* @conditional-compile-remove(teams-identity-support) */
20
- this._callAgent.on('incomingCall', this.incomingCall);
21
- /* @conditional-compile-remove(teams-identity-support) */
22
- // There could be scenario that when ProxyTeamsCallAgent is created that the given CallAgent already has TeamsCalls. In this
23
- // case we need to make sure to subscribe to those already existing Calls.
24
- for (const call of this._callAgent.calls) {
25
- this.addCall(call);
26
- }
27
- };
28
- this.unsubscribe = () => {
29
- /* @conditional-compile-remove(teams-identity-support) */
30
- this._callAgent.off('callsUpdated', this.callsUpdated);
31
- /* @conditional-compile-remove(teams-identity-support) */
32
- this._callAgent.off('incomingCall', this.incomingCall);
33
- this.unregisterSubscriber();
34
- };
35
- /* @conditional-compile-remove(teams-identity-support) */
36
- this._callAgent = callAgent;
37
- this.subscribe();
38
- }
39
- callDeclaratify(call, context) {
40
- /* @conditional-compile-remove(teams-identity-support) */
41
- if (_isTeamsCall(call)) {
42
- return teamsCallDeclaratify(call, context);
43
- }
44
- throw new Error('Not reachable code, DeclarativeTeamsCallAgent.callDeclaratify must be called with an TeamsCall.');
45
- }
46
- startCall(agent, args) {
47
- /* @conditional-compile-remove(teams-identity-support) */
48
- if (_isTeamsCallAgent(agent)) {
49
- return agent.startCall(...args);
50
- }
51
- throw new Error('Not reachable code, DeclarativeTeamsCallAgent.startCall must be called with an TeamsCallAgent.');
52
- }
53
- joinCall(agent, args) {
54
- /* @conditional-compile-remove(teams-identity-support) */
55
- if (_isTeamsCallAgent(agent)) {
56
- return agent.join(...args);
57
- }
58
- throw new Error('Not reachable code, DeclarativeTeamsCallAgent.joinCall must be called with an TeamsCallAgent.');
59
- }
60
- agentSubscribe(agent, args) {
61
- /* @conditional-compile-remove(teams-identity-support) */
62
- if (_isTeamsCallAgent(agent)) {
63
- agent.on(...args);
64
- }
65
- throw new Error('Not reachable code, DeclarativeTeamsCallAgent.agentSubscribe must be called with an TeamsCallAgent.');
66
- }
67
- agentUnsubscribe(agent, args) {
68
- /* @conditional-compile-remove(teams-identity-support) */
69
- if (_isTeamsCallAgent(agent)) {
70
- agent.off(...args);
71
- }
72
- throw new Error('Not reachable code, DeclarativeTeamsCallAgent.agentUnsubscribe must be called with an TeamsCallAgent.');
73
- }
74
- get(target, prop) {
75
- /* @conditional-compile-remove(teams-identity-support) */
76
- return super.getCommon(target, prop);
77
- }
78
- }
79
- /**
80
- * Creates a declarative CallAgent by proxying TeamsCallAgent with ProxyTeamsCallAgent which will track state updates by updating
81
- * the given context.
82
- *
83
- * @param callAgent - TeamsCallAgent from SDK
84
- * @param context - CallContext from StatefulCallClient
85
- * @param internalContext- InternalCallContext from StatefulCallClient
86
- */
87
- export const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
88
- clearCallRelatedState(context, internalContext);
89
- return new Proxy(callAgent, new ProxyTeamsCallAgent(callAgent, context, internalContext));
90
- };
91
- //# sourceMappingURL=TeamsCallAgentDeclarative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TeamsCallAgentDeclarative.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/TeamsCallAgentDeclarative.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { CallAgentCommon, CallCommon, TeamsCallAgent } from './BetaToStableTypes';\n/* @conditional-compile-remove(one-to-n-calling) */\nimport { IncomingCallManagement } from './CallAgentDeclarative';\nimport { clearCallRelatedState, DeclarativeCallCommon, ProxyCallAgentCommon } from './CallAgentDeclarativeCommon';\nimport { CallContext } from './CallContext';\n/* @conditional-compile-remove(teams-identity-support) */\nimport { _isTeamsCall, _isTeamsCallAgent } from './TypeGuards';\nimport { InternalCallContext } from './InternalCallContext';\n/* @conditional-compile-remove(teams-identity-support) */\nimport { teamsCallDeclaratify } from './TeamsCallDeclarative';\n\n/**\n * @beta\n * `DeclarativeTeamsCallAgent` extends and proxies the {@link @azure/communication-calling#TeamsCallAgent}\n */\nexport type DeclarativeTeamsCallAgent = TeamsCallAgent & /* @conditional-compile-remove(one-to-n-calling) */IncomingCallManagement;\n\n/**\n * ProxyTeamsCallAgent proxies TeamsCallAgent and saves any returned state in the given context. It will subscribe to all state\n * updates in the TeamsCallAgent and in the contained TeamsCalls and RemoteParticipants. When dispose is called it will\n * unsubscribe from all state updates.\n */\nclass ProxyTeamsCallAgent extends ProxyCallAgentCommon implements ProxyHandler<DeclarativeTeamsCallAgent> {\n /* @conditional-compile-remove(teams-identity-support) */\n private _callAgent: TeamsCallAgent;\n constructor(callAgent: TeamsCallAgent, context: CallContext, internalContext: InternalCallContext) {\n super(context, internalContext);\n /* @conditional-compile-remove(teams-identity-support) */\n this._callAgent = callAgent;\n this.subscribe();\n }\n private subscribe = (): void => {\n /* @conditional-compile-remove(teams-identity-support) */\n this._callAgent.on('callsUpdated', this.callsUpdated);\n /* @conditional-compile-remove(teams-identity-support) */\n this._callAgent.on('incomingCall', this.incomingCall);\n\n /* @conditional-compile-remove(teams-identity-support) */\n // There could be scenario that when ProxyTeamsCallAgent is created that the given CallAgent already has TeamsCalls. In this\n // case we need to make sure to subscribe to those already existing Calls.\n for (const call of this._callAgent.calls) {\n this.addCall(call);\n }\n };\n protected unsubscribe = (): void => {\n /* @conditional-compile-remove(teams-identity-support) */\n this._callAgent.off('callsUpdated', this.callsUpdated);\n /* @conditional-compile-remove(teams-identity-support) */\n this._callAgent.off('incomingCall', this.incomingCall);\n this.unregisterSubscriber();\n };\n protected callDeclaratify(call: CallCommon, context: CallContext): DeclarativeCallCommon {\n /* @conditional-compile-remove(teams-identity-support) */\n if (_isTeamsCall(call)) {\n return teamsCallDeclaratify(call, context);\n }\n throw new Error('Not reachable code, DeclarativeTeamsCallAgent.callDeclaratify must be called with an TeamsCall.');\n }\n protected startCall(agent: CallAgentCommon, args: Parameters<TeamsCallAgent['startCall']>): CallCommon {\n /* @conditional-compile-remove(teams-identity-support) */\n if (_isTeamsCallAgent(agent)) {\n return agent.startCall(...args);\n }\n throw new Error('Not reachable code, DeclarativeTeamsCallAgent.startCall must be called with an TeamsCallAgent.');\n }\n protected joinCall(agent: CallAgentCommon, args: Parameters<TeamsCallAgent['join']>): CallCommon {\n /* @conditional-compile-remove(teams-identity-support) */\n if (_isTeamsCallAgent(agent)) {\n return agent.join(...args);\n }\n throw new Error('Not reachable code, DeclarativeTeamsCallAgent.joinCall must be called with an TeamsCallAgent.');\n }\n protected agentSubscribe(agent: CallAgentCommon, args: Parameters<TeamsCallAgent['on']>): void {\n /* @conditional-compile-remove(teams-identity-support) */\n if (_isTeamsCallAgent(agent)) {\n agent.on(...args);\n }\n throw new Error('Not reachable code, DeclarativeTeamsCallAgent.agentSubscribe must be called with an TeamsCallAgent.');\n }\n protected agentUnsubscribe(agent: CallAgentCommon, args: Parameters<TeamsCallAgent['off']>): void {\n /* @conditional-compile-remove(teams-identity-support) */\n if (_isTeamsCallAgent(agent)) {\n agent.off(...args);\n }\n throw new Error('Not reachable code, DeclarativeTeamsCallAgent.agentUnsubscribe must be called with an TeamsCallAgent.');\n }\n public get<P extends keyof TeamsCallAgent>(target: TeamsCallAgent, prop: P): any {\n /* @conditional-compile-remove(teams-identity-support) */\n return super.getCommon(target, prop);\n }\n}\n\n/**\n * Creates a declarative CallAgent by proxying TeamsCallAgent with ProxyTeamsCallAgent which will track state updates by updating\n * the given context.\n *\n * @param callAgent - TeamsCallAgent from SDK\n * @param context - CallContext from StatefulCallClient\n * @param internalContext- InternalCallContext from StatefulCallClient\n */\nexport const teamsCallAgentDeclaratify = (callAgent: TeamsCallAgent, context: CallContext, internalContext: InternalCallContext): DeclarativeTeamsCallAgent => {\n clearCallRelatedState(context, internalContext);\n return (new Proxy(callAgent, new ProxyTeamsCallAgent(callAgent, context, internalContext)) as DeclarativeTeamsCallAgent);\n};"]}
@@ -1,23 +0,0 @@
1
- import { CallContext } from './CallContext';
2
- import { TeamsCall } from './BetaToStableTypes';
3
- /**
4
- *
5
- * @private
6
- */
7
- export type DeclarativeTeamsCall = TeamsCall & {
8
- /**
9
- * Stop any declarative specific subscriptions and remove declarative subscribers.
10
- */
11
- unsubscribe(): void;
12
- };
13
- /**
14
- * Creates a declarative Call by proxying Call with ProxyCall.
15
- * This should only be used with CallAgentDeclarative as CallAgentDeclarative will add that
16
- * call to the context properly (need to have the Call in context to update it - CallAgentDeclarative will add Call to
17
- * context)
18
- *
19
- * @param call - TeamsCall from SDK
20
- * @param context - CallContext from StatefulCallClient
21
- */
22
- export declare const teamsCallDeclaratify: (call: TeamsCall, context: CallContext) => DeclarativeTeamsCall;
23
- //# sourceMappingURL=TeamsCallDeclarative.d.ts.map
@@ -1,49 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
- return new (P || (P = Promise))(function (resolve, reject) {
6
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
- step((generator = generator.apply(thisArg, _arguments || [])).next());
10
- });
11
- };
12
- import { ProxyCallCommon } from './CallDeclarativeCommon';
13
- class ProxyTeamsCall extends ProxyCallCommon {
14
- get(target, prop) {
15
- /* @conditional-compile-remove(teams-identity-support) */
16
- switch (prop) {
17
- case 'addParticipant':
18
- {
19
- return this.getContext().withAsyncErrorTeedToState(function (...args) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- return yield target.addParticipant(...args);
22
- });
23
- }, 'TeamsCall.addParticipant');
24
- }
25
- default:
26
- return super.get(target, prop);
27
- }
28
- return super.get(target, prop);
29
- }
30
- }
31
- /**
32
- * Creates a declarative Call by proxying Call with ProxyCall.
33
- * This should only be used with CallAgentDeclarative as CallAgentDeclarative will add that
34
- * call to the context properly (need to have the Call in context to update it - CallAgentDeclarative will add Call to
35
- * context)
36
- *
37
- * @param call - TeamsCall from SDK
38
- * @param context - CallContext from StatefulCallClient
39
- */
40
- export const teamsCallDeclaratify = (call, context) => {
41
- const proxyCall = new ProxyTeamsCall(context);
42
- proxyCall.unsubscribe();
43
- Object.defineProperty(call, 'unsubscribe', {
44
- configurable: false,
45
- value: () => proxyCall.unsubscribe()
46
- });
47
- return new Proxy(call, proxyCall);
48
- };
49
- //# sourceMappingURL=TeamsCallDeclarative.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TeamsCallDeclarative.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/TeamsCallDeclarative.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAc1D,MAAM,cAAe,SAAQ,eAAe;IACnC,GAAG,CAA4B,MAAiB,EAAE,IAAO;QAC9D,yDAAyD;QACzD,QAAQ,IAAI,EAAE,CAAC;YACb,KAAK,gBAAgB;gBACnB,CAAC;oBACC,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,yBAAyB,CAAC,UAAgB,GAAG,IAA6C;;4BACjH,OAAO,MAAM,MAAM,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC;wBAC9C,CAAC;qBAAA,EAAE,0BAA0B,CAAC,CAAC;gBACjC,CAAC;YACH;gBACE,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,EAAG,IAAY,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,EAAG,IAAY,CAAC,CAAC;IAC1C,CAAC;CACF;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,IAAe,EAAE,OAAoB,EAAwB,EAAE;IAClG,MAAM,SAAS,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;IAC9C,SAAS,CAAC,WAAW,EAAE,CAAC;IACxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE;QACzC,YAAY,EAAE,KAAK;QACnB,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE;KACrC,CAAC,CAAC;IACH,OAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,SAAS,CAA0B,CAAC;AAC9D,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ProxyCallCommon } from './CallDeclarativeCommon';\nimport { CallContext } from './CallContext';\nimport { TeamsCall } from './BetaToStableTypes';\n\n/**\n *\n * @private\n */\nexport type DeclarativeTeamsCall = TeamsCall & {\n /**\n * Stop any declarative specific subscriptions and remove declarative subscribers.\n */\n unsubscribe(): void;\n};\nclass ProxyTeamsCall extends ProxyCallCommon implements ProxyHandler<TeamsCall> {\n public get<P extends keyof TeamsCall>(target: TeamsCall, prop: P): any {\n /* @conditional-compile-remove(teams-identity-support) */\n switch (prop) {\n case 'addParticipant':\n {\n return this.getContext().withAsyncErrorTeedToState(async function (...args: Parameters<TeamsCall['addParticipant']>) {\n return await target.addParticipant(...args);\n }, 'TeamsCall.addParticipant');\n }\n default:\n return super.get(target, (prop as any));\n }\n return super.get(target, (prop as any));\n }\n}\n\n/**\n * Creates a declarative Call by proxying Call with ProxyCall.\n * This should only be used with CallAgentDeclarative as CallAgentDeclarative will add that\n * call to the context properly (need to have the Call in context to update it - CallAgentDeclarative will add Call to\n * context)\n *\n * @param call - TeamsCall from SDK\n * @param context - CallContext from StatefulCallClient\n */\nexport const teamsCallDeclaratify = (call: TeamsCall, context: CallContext): DeclarativeTeamsCall => {\n const proxyCall = new ProxyTeamsCall(context);\n proxyCall.unsubscribe();\n Object.defineProperty(call, 'unsubscribe', {\n configurable: false,\n value: () => proxyCall.unsubscribe()\n });\n return (new Proxy(call, proxyCall) as DeclarativeTeamsCall);\n};"]}
@@ -1,32 +0,0 @@
1
- import { ChatContext } from './ChatContext';
2
- import { ChatMessageWithStatus } from './types/ChatMessageWithStatus';
3
- import type { CommunicationTokenCredential } from '@azure/communication-common';
4
- /**
5
- * @private
6
- */
7
- export declare class ResourceDownloadQueue {
8
- private _messagesNeedingResourceRetrieval;
9
- private _context;
10
- private isActive;
11
- private _credential;
12
- constructor(context: ChatContext, credential: CommunicationTokenCredential);
13
- containsMessageWithSameAttachments(message: ChatMessageWithStatus): boolean;
14
- addMessage(message: ChatMessageWithStatus): void;
15
- startQueue(threadId: string, operation: ImageRequest): Promise<void>;
16
- }
17
- /**
18
- * @private
19
- */
20
- export declare const requestAttachments: (message: ChatMessageWithStatus, credential: CommunicationTokenCredential) => Promise<ChatMessageWithStatus>;
21
- interface ImageRequest {
22
- (message: ChatMessageWithStatus, credential: CommunicationTokenCredential): Promise<ChatMessageWithStatus>;
23
- }
24
- /**
25
- * @private
26
- */
27
- export declare class ResourceDownloadError extends Error {
28
- chatMessageWithStatus: ChatMessageWithStatus;
29
- constructor(chatMessageWithStatus: ChatMessageWithStatus);
30
- }
31
- export {};
32
- //# sourceMappingURL=ResourceDownloadQueue.d.ts.map
@@ -1,129 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
11
- import { ChatError } from './ChatClientState';
12
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
13
- /**
14
- * @private
15
- */
16
- export class ResourceDownloadQueue {
17
- constructor(context, credential) {
18
- this._messagesNeedingResourceRetrieval = [];
19
- this.isActive = false;
20
- this._context = context;
21
- this._credential = credential;
22
- }
23
- containsMessageWithSameAttachments(message) {
24
- var _a, _b, _c;
25
- let contains = false;
26
- const incomingAttachment = (_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments;
27
- if (incomingAttachment) {
28
- for (const m of this._messagesNeedingResourceRetrieval) {
29
- const existingAttachment = (_c = (_b = m.content) === null || _b === void 0 ? void 0 : _b.attachments) !== null && _c !== void 0 ? _c : [];
30
- contains = incomingAttachment.every((element, index) => element === existingAttachment[index]);
31
- if (contains) {
32
- break;
33
- }
34
- }
35
- }
36
- return contains;
37
- }
38
- addMessage(message) {
39
- // make a copy of message and add to queue
40
- const copy = Object.assign({}, message);
41
- this._messagesNeedingResourceRetrieval.push(copy);
42
- }
43
- startQueue(threadId, operation) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- if (this.isActive) {
46
- return;
47
- }
48
- while (this._messagesNeedingResourceRetrieval.length > 0) {
49
- this.isActive = true;
50
- const message = this._messagesNeedingResourceRetrieval.shift();
51
- if (!message) {
52
- this.isActive = false;
53
- continue;
54
- }
55
- try {
56
- const newMessage = yield operation(message, this._credential);
57
- if (newMessage) {
58
- this.isActive = false;
59
- this._context.setChatMessage(threadId, newMessage);
60
- }
61
- }
62
- catch (error) {
63
- console.log('Downloading Resource error: ', error);
64
- }
65
- }
66
- });
67
- }
68
- }
69
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
70
- /**
71
- * @private
72
- */
73
- export const requestAttachments = (message, credential) => __awaiter(void 0, void 0, void 0, function* () {
74
- var _a;
75
- const attachments = (_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments;
76
- if (message.type === 'html' && attachments) {
77
- if (message.resourceCache === undefined) {
78
- message.resourceCache = {};
79
- }
80
- for (const attachment of attachments) {
81
- if (attachment.previewUrl) {
82
- const previewUrl = attachment.previewUrl;
83
- try {
84
- const src = yield fetchImageSource(previewUrl, credential);
85
- message.resourceCache[previewUrl] = src;
86
- }
87
- catch (error) {
88
- throw new ResourceDownloadError(message);
89
- }
90
- }
91
- }
92
- }
93
- return message;
94
- });
95
- /**
96
- * @private
97
- */
98
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
99
- const fetchImageSource = (src, credential) => __awaiter(void 0, void 0, void 0, function* () {
100
- function fetchWithAuthentication(url, token) {
101
- return __awaiter(this, void 0, void 0, function* () {
102
- const headers = new Headers();
103
- headers.append('Authorization', `Bearer ${token}`);
104
- try {
105
- return yield fetch(url, {
106
- headers
107
- });
108
- }
109
- catch (err) {
110
- throw new ChatError('ChatThreadClient.getMessage', err);
111
- }
112
- });
113
- }
114
- const accessToken = yield credential.getToken();
115
- const response = yield fetchWithAuthentication(src, accessToken.token);
116
- const blob = yield response.blob();
117
- return URL.createObjectURL(blob);
118
- });
119
- /* @conditional-compile-remove(teams-inline-images-and-file-sharing) */
120
- /**
121
- * @private
122
- */
123
- export class ResourceDownloadError extends Error {
124
- constructor(chatMessageWithStatus) {
125
- super();
126
- this.chatMessageWithStatus = chatMessageWithStatus;
127
- }
128
- }
129
- //# sourceMappingURL=ResourceDownloadQueue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResourceDownloadQueue.js","sourceRoot":"","sources":["../../../../preprocess-dist/chat-stateful-client/src/ResourceDownloadQueue.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\nimport { ChatContext } from './ChatContext';\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\nimport { ChatError } from './ChatClientState';\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\nimport { ChatMessageWithStatus } from './types/ChatMessageWithStatus';\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\nimport type { CommunicationTokenCredential } from '@azure/communication-common';\n\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\n/**\n * @private\n */\nexport class ResourceDownloadQueue {\n private _messagesNeedingResourceRetrieval: ChatMessageWithStatus[] = [];\n private _context: ChatContext;\n private isActive = false;\n private _credential: CommunicationTokenCredential;\n constructor(context: ChatContext, credential: CommunicationTokenCredential) {\n this._context = context;\n this._credential = credential;\n }\n public containsMessageWithSameAttachments(message: ChatMessageWithStatus): boolean {\n let contains = false;\n const incomingAttachment = message.content?.attachments;\n if (incomingAttachment) {\n for (const m of this._messagesNeedingResourceRetrieval) {\n const existingAttachment = m.content?.attachments ?? [];\n contains = incomingAttachment.every((element, index) => element === existingAttachment[index]);\n if (contains) {\n break;\n }\n }\n }\n return contains;\n }\n public addMessage(message: ChatMessageWithStatus): void {\n // make a copy of message and add to queue\n const copy = {\n ...message\n };\n this._messagesNeedingResourceRetrieval.push(copy);\n }\n public async startQueue(threadId: string, operation: ImageRequest): Promise<void> {\n if (this.isActive) {\n return;\n }\n while (this._messagesNeedingResourceRetrieval.length > 0) {\n this.isActive = true;\n const message = this._messagesNeedingResourceRetrieval.shift();\n if (!message) {\n this.isActive = false;\n continue;\n }\n try {\n const newMessage = await operation(message, this._credential);\n if (newMessage) {\n this.isActive = false;\n this._context.setChatMessage(threadId, newMessage);\n }\n } catch (error) {\n console.log('Downloading Resource error: ', error);\n }\n }\n }\n}\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\n/**\n * @private\n */\nexport const requestAttachments = async (message: ChatMessageWithStatus, credential: CommunicationTokenCredential): Promise<ChatMessageWithStatus> => {\n const attachments = message.content?.attachments;\n if (message.type === 'html' && attachments) {\n if (message.resourceCache === undefined) {\n message.resourceCache = {};\n }\n for (const attachment of attachments) {\n if (attachment.previewUrl) {\n const previewUrl = attachment.previewUrl;\n try {\n const src = await fetchImageSource(previewUrl, credential);\n message.resourceCache[previewUrl] = src;\n } catch (error) {\n throw new ResourceDownloadError(message);\n }\n }\n }\n }\n return message;\n};\n/**\n * @private\n */\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\nconst fetchImageSource = async (src: string, credential: CommunicationTokenCredential): Promise<string> => {\n async function fetchWithAuthentication(url: string, token: string): Promise<Response> {\n const headers = new Headers();\n headers.append('Authorization', `Bearer ${token}`);\n try {\n return await fetch(url, {\n headers\n });\n } catch (err) {\n throw new ChatError('ChatThreadClient.getMessage', (err as Error));\n }\n }\n const accessToken = await credential.getToken();\n const response = await fetchWithAuthentication(src, accessToken.token);\n const blob = await response.blob();\n return URL.createObjectURL(blob);\n};\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\ninterface ImageRequest {\n (message: ChatMessageWithStatus, credential: CommunicationTokenCredential): Promise<ChatMessageWithStatus>;\n}\n\n/* @conditional-compile-remove(teams-inline-images-and-file-sharing) */\n/**\n * @private\n */\nexport class ResourceDownloadError extends Error {\n public chatMessageWithStatus: ChatMessageWithStatus;\n constructor(chatMessageWithStatus: ChatMessageWithStatus) {\n super();\n this.chatMessageWithStatus = chatMessageWithStatus;\n }\n}"]}
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Mention } from '../MentionPopover';
3
- /**
4
- * Provides the default implementation for rendering an Mention in a message thread
5
- * @param mention - The mention to render
6
- *
7
- * @private
8
- */
9
- export declare const defaultOnMentionRender: (mention: Mention) => JSX.Element;
10
- //# sourceMappingURL=MentionRenderer.d.ts.map
@@ -1,15 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import React from 'react';
4
- /**
5
- * Provides the default implementation for rendering an Mention in a message thread
6
- * @param mention - The mention to render
7
- *
8
- * @private
9
- */
10
- export const defaultOnMentionRender = (mention) => {
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
- const MsftMention = 'msft-mention';
13
- return React.createElement(MsftMention, { id: mention.id }, mention.displayText);
14
- };
15
- //# sourceMappingURL=MentionRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MentionRenderer.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/ChatMessage/MentionRenderer.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAgB,EAAe,EAAE;IACtE,8DAA8D;IAC9D,MAAM,WAAW,GAAI,cAAsB,CAAC;IAC5C,OAAO,oBAAC,WAAW,IAAC,EAAE,EAAE,OAAO,CAAC,EAAE,IAAG,OAAO,CAAC,WAAW,CAAe,CAAC;AAC1E,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport React from 'react';\nimport { Mention } from '../MentionPopover';\n\n/**\n * Provides the default implementation for rendering an Mention in a message thread\n * @param mention - The mention to render\n *\n * @private\n */\nexport const defaultOnMentionRender = (mention: Mention): JSX.Element => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const MsftMention = ('msft-mention' as any);\n return <MsftMention id={mention.id}>{mention.displayText}</MsftMention>;\n};"]}
@@ -1,69 +0,0 @@
1
- /// <reference types="react" />
2
- import { IButtonStyles, ILinkStyles } from '@fluentui/react';
3
- import { BaseCustomStyles } from '../../types';
4
- /**
5
- * @beta
6
- * Props for BrowserPermissionDenied component.
7
- */
8
- export interface BrowserPermissionDeniedProps {
9
- /**
10
- * Action to be taken by the more help link. Possible to send to external page or show other modal.
11
- */
12
- onTroubleshootingClick?: () => void;
13
- /**
14
- * Action to be taken by the try again primary button.
15
- */
16
- onTryAgainClick?: () => void;
17
- /**
18
- * Localization strings for BrowserPermissionDenied component.
19
- */
20
- strings?: BrowserPermissionDeniedStrings;
21
- /**
22
- * Allows users to pass in an object contains custom CSS styles.
23
- * @Example
24
- * ```
25
- * <BrowserPermissionDenied styles={{ primaryButton: { root: {backgroundColor: 'blue' }}}} />
26
- * ```
27
- */
28
- styles?: BrowserPermissionDeniedStyles;
29
- }
30
- /**
31
- * @beta
32
- * Strings for BrowserPermissionDenied component
33
- */
34
- export interface BrowserPermissionDeniedStrings {
35
- /**
36
- * Main button text string.
37
- */
38
- primaryButtonText: string;
39
- /**
40
- * Main text string.
41
- */
42
- primaryText: string;
43
- /**
44
- * Subtext string.
45
- */
46
- secondaryText: string;
47
- /**
48
- * More help link string.
49
- */
50
- linkText: string;
51
- }
52
- /**
53
- * Fluent styles for {@link BrowserPermissionDenied}.
54
- *
55
- * @beta
56
- */
57
- export interface BrowserPermissionDeniedStyles extends BaseCustomStyles {
58
- /** Styles for the primary button. */
59
- primaryButton?: IButtonStyles;
60
- /** Styles for the help troubleshooting link text. */
61
- troubleshootingLink?: ILinkStyles;
62
- }
63
- /**
64
- * @beta
65
- *
66
- * Component to allow Contoso to help their end user with their devices should their browser experience device permission issues.
67
- */
68
- export declare const BrowserPermissionDenied: (props: BrowserPermissionDeniedProps) => JSX.Element;
69
- //# sourceMappingURL=BrowserPermissionDenied.d.ts.map
@@ -1,43 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import React from 'react';
4
- /* @conditional-compile-remove(call-readiness) */
5
- import { Stack, Text, Link, Icon, PrimaryButton, mergeStyleSets } from '@fluentui/react';
6
- /* @conditional-compile-remove(call-readiness) */
7
- import { useLocale } from '../../localization';
8
- /* @conditional-compile-remove(call-readiness) */
9
- import { iconContainerStyles, iconPrimaryStyles, linkTextStyles, primaryButtonStyles, primaryTextStyles, secondaryTextStyles, textContainerStyles } from './../styles/BrowserPermissionDenied.styles';
10
- /* @conditional-compile-remove(call-readiness) */
11
- import { isValidString } from '../utils';
12
- /* @conditional-compile-remove(call-readiness) */
13
- const BrowserPermissionDeniedContainer = (props) => {
14
- const { onTroubleshootingClick, onTryAgainClick, strings, styles } = props;
15
- return React.createElement(Stack, { style: {
16
- padding: '2rem',
17
- paddingTop: '2.5rem',
18
- maxWidth: '25.375rem'
19
- } },
20
- React.createElement(Stack, { horizontal: true, style: {
21
- paddingBottom: '1.5rem'
22
- }, horizontalAlign: 'space-between' },
23
- React.createElement(Stack, { styles: iconContainerStyles, horizontalAlign: 'center' },
24
- React.createElement(Icon, { styles: iconPrimaryStyles, iconName: 'BrowserPermissionDeniedError' }))),
25
- React.createElement(Stack, { styles: textContainerStyles },
26
- isValidString(strings === null || strings === void 0 ? void 0 : strings.primaryText) && React.createElement(Text, { styles: primaryTextStyles }, strings === null || strings === void 0 ? void 0 : strings.primaryText),
27
- isValidString(strings === null || strings === void 0 ? void 0 : strings.secondaryText) && React.createElement(Text, { styles: secondaryTextStyles }, strings === null || strings === void 0 ? void 0 : strings.secondaryText),
28
- onTryAgainClick && isValidString(strings === null || strings === void 0 ? void 0 : strings.primaryButtonText) && React.createElement(PrimaryButton, { styles: mergeStyleSets(primaryButtonStyles, styles === null || styles === void 0 ? void 0 : styles.primaryButton), text: strings === null || strings === void 0 ? void 0 : strings.primaryButtonText, onClick: onTryAgainClick }),
29
- onTroubleshootingClick && isValidString(strings === null || strings === void 0 ? void 0 : strings.linkText) && React.createElement(Link, { styles: mergeStyleSets(linkTextStyles, styles === null || styles === void 0 ? void 0 : styles.troubleshootingLink), onClick: onTroubleshootingClick }, strings === null || strings === void 0 ? void 0 : strings.linkText)));
30
- };
31
- /**
32
- * @beta
33
- *
34
- * Component to allow Contoso to help their end user with their devices should their browser experience device permission issues.
35
- */
36
- export const BrowserPermissionDenied = (props) => {
37
- /* @conditional-compile-remove(call-readiness) */
38
- const locale = useLocale().strings.BrowserPermissionDenied;
39
- /* @conditional-compile-remove(call-readiness) */
40
- return React.createElement(BrowserPermissionDeniedContainer, Object.assign({}, props, { strings: props.strings ? props.strings : locale }));
41
- return React.createElement(React.Fragment, null);
42
- };
43
- //# sourceMappingURL=BrowserPermissionDenied.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BrowserPermissionDenied.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/DevicePermissions/BrowserPermissionDenied.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,iDAAiD;AACjD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzF,iDAAiD;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,iDAAiD;AACjD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEtM,iDAAiD;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgEzC,iDAAiD;AACjD,MAAM,gCAAgC,GAAG,CAAC,KAAmC,EAAe,EAAE;IAC5F,MAAM,EACJ,sBAAsB,EACtB,eAAe,EACf,OAAO,EACP,MAAM,EACP,GAAG,KAAK,CAAC;IACV,OAAO,oBAAC,KAAK,IAAC,KAAK,EAAE;YACnB,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,QAAQ;YACpB,QAAQ,EAAE,WAAW;SACtB;QACG,oBAAC,KAAK,IAAC,UAAU,QAAC,KAAK,EAAE;gBACzB,aAAa,EAAE,QAAQ;aACxB,EAAE,eAAe,EAAE,eAAe;YAC/B,oBAAC,KAAK,IAAC,MAAM,EAAE,mBAAmB,EAAE,eAAe,EAAE,QAAQ;gBAC3D,oBAAC,IAAI,IAAC,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,8BAA8B,GAAS,CAC5E,CACF;QACR,oBAAC,KAAK,IAAC,MAAM,EAAE,mBAAmB;YAC/B,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC,IAAI,oBAAC,IAAI,IAAC,MAAM,EAAE,iBAAiB,IAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAQ;YACrG,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,IAAI,oBAAC,IAAI,IAAC,MAAM,EAAE,mBAAmB,IAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAQ;YAE3G,eAAe,IAAI,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAC,IAAI,oBAAC,aAAa,IAAC,MAAM,EAAE,cAAc,CAAC,mBAAmB,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,CAAC,EAAE,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,EAAE,OAAO,EAAE,eAAe,GAAI;YAEjN,sBAAsB,IAAI,aAAa,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC,IAAI,oBAAC,IAAI,IAAC,MAAM,EAAE,cAAc,CAAC,cAAc,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,mBAAmB,CAAC,EAAE,OAAO,EAAE,sBAAsB,IACpK,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CACb,CACH,CACF,CAAC;AACb,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAmC,EAAe,EAAE;IAC1F,iDAAiD;IACjD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC,uBAAuB,CAAC;IAC3D,iDAAiD;IACjD,OAAO,oBAAC,gCAAgC,oBAAK,KAAK,IAAE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC;IACxG,OAAO,yCAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { IButtonStyles, ILinkStyles } from '@fluentui/react';\n/* @conditional-compile-remove(call-readiness) */\nimport { Stack, Text, Link, Icon, PrimaryButton, mergeStyleSets } from '@fluentui/react';\n/* @conditional-compile-remove(call-readiness) */\nimport { useLocale } from '../../localization';\n/* @conditional-compile-remove(call-readiness) */\nimport { _formatString, _pxToRem } from '@internal/acs-ui-common';\n/* @conditional-compile-remove(call-readiness) */\nimport { iconContainerStyles, iconPrimaryStyles, linkTextStyles, primaryButtonStyles, primaryTextStyles, secondaryTextStyles, textContainerStyles } from './../styles/BrowserPermissionDenied.styles';\nimport { BaseCustomStyles } from '../../types';\n/* @conditional-compile-remove(call-readiness) */\nimport { isValidString } from '../utils';\n\n/**\n * @beta\n * Props for BrowserPermissionDenied component.\n */\nexport interface BrowserPermissionDeniedProps {\n /**\n * Action to be taken by the more help link. Possible to send to external page or show other modal.\n */\n onTroubleshootingClick?: () => void;\n /**\n * Action to be taken by the try again primary button.\n */\n onTryAgainClick?: () => void;\n /**\n * Localization strings for BrowserPermissionDenied component.\n */\n strings?: BrowserPermissionDeniedStrings;\n /**\n * Allows users to pass in an object contains custom CSS styles.\n * @Example\n * ```\n * <BrowserPermissionDenied styles={{ primaryButton: { root: {backgroundColor: 'blue' }}}} />\n * ```\n */\n styles?: BrowserPermissionDeniedStyles;\n}\n\n/**\n * @beta\n * Strings for BrowserPermissionDenied component\n */\nexport interface BrowserPermissionDeniedStrings {\n /**\n * Main button text string.\n */\n primaryButtonText: string;\n /**\n * Main text string.\n */\n primaryText: string;\n /**\n * Subtext string.\n */\n secondaryText: string;\n /**\n * More help link string.\n */\n linkText: string;\n}\n\n/**\n * Fluent styles for {@link BrowserPermissionDenied}.\n *\n * @beta\n */\nexport interface BrowserPermissionDeniedStyles extends BaseCustomStyles {\n /** Styles for the primary button. */\n primaryButton?: IButtonStyles;\n /** Styles for the help troubleshooting link text. */\n troubleshootingLink?: ILinkStyles;\n}\n\n/* @conditional-compile-remove(call-readiness) */\nconst BrowserPermissionDeniedContainer = (props: BrowserPermissionDeniedProps): JSX.Element => {\n const {\n onTroubleshootingClick,\n onTryAgainClick,\n strings,\n styles\n } = props;\n return <Stack style={{\n padding: '2rem',\n paddingTop: '2.5rem',\n maxWidth: '25.375rem'\n }}>\n <Stack horizontal style={{\n paddingBottom: '1.5rem'\n }} horizontalAlign={'space-between'}>\n <Stack styles={iconContainerStyles} horizontalAlign={'center'}>\n <Icon styles={iconPrimaryStyles} iconName={'BrowserPermissionDeniedError'}></Icon>\n </Stack>\n </Stack>\n <Stack styles={textContainerStyles}>\n {isValidString(strings?.primaryText) && <Text styles={primaryTextStyles}>{strings?.primaryText}</Text>}\n {isValidString(strings?.secondaryText) && <Text styles={secondaryTextStyles}>{strings?.secondaryText}</Text>}\n\n {onTryAgainClick && isValidString(strings?.primaryButtonText) && <PrimaryButton styles={mergeStyleSets(primaryButtonStyles, styles?.primaryButton)} text={strings?.primaryButtonText} onClick={onTryAgainClick} />}\n\n {onTroubleshootingClick && isValidString(strings?.linkText) && <Link styles={mergeStyleSets(linkTextStyles, styles?.troubleshootingLink)} onClick={onTroubleshootingClick}>\n {strings?.linkText}\n </Link>}\n </Stack>\n </Stack>;\n};\n\n/**\n * @beta\n *\n * Component to allow Contoso to help their end user with their devices should their browser experience device permission issues.\n */\nexport const BrowserPermissionDenied = (props: BrowserPermissionDeniedProps): JSX.Element => {\n /* @conditional-compile-remove(call-readiness) */\n const locale = useLocale().strings.BrowserPermissionDenied;\n /* @conditional-compile-remove(call-readiness) */\n return <BrowserPermissionDeniedContainer {...props} strings={props.strings ? props.strings : locale} />;\n return <></>;\n};"]}
@@ -1,75 +0,0 @@
1
- /// <reference types="react" />
2
- import { BrowserPermissionDeniedProps, BrowserPermissionDeniedStrings } from './BrowserPermissionDenied';
3
- /**
4
- * @beta
5
- * Props for BrowserPermissionDeniedIOS component.
6
- */
7
- export interface BrowserPermissionDeniedIOSProps extends BrowserPermissionDeniedProps {
8
- /**
9
- * Localization strings for BrowserPermissionDeniedIOS component.
10
- */
11
- strings?: BrowserPermissionDeniedIOSStrings;
12
- /**
13
- * Link to image source.
14
- *
15
- * Image is inserted into the top of the component.
16
- */
17
- imageSource?: string;
18
- }
19
- /**
20
- * @beta
21
- * Strings for BrowserPermissionDeniedIOS component
22
- */
23
- export interface BrowserPermissionDeniedIOSStrings extends BrowserPermissionDeniedStrings {
24
- /**
25
- * Image alt text
26
- */
27
- imageAltText: string;
28
- /**
29
- * Main text string.
30
- */
31
- primaryText: string;
32
- /**
33
- * Subtext string.
34
- */
35
- secondaryText: string;
36
- /**
37
- * Step 1 string
38
- */
39
- step1Text: string;
40
- /**
41
- * Step 1 digit string
42
- */
43
- step1DigitText: string;
44
- /**
45
- * Step 2 string
46
- */
47
- step2Text: string;
48
- /**
49
- * Step 2 digit string
50
- */
51
- step2DigitText: string;
52
- /**
53
- * Step 3 string
54
- */
55
- step3Text: string;
56
- /**
57
- * Step 3 digit string
58
- */
59
- step3DigitText: string;
60
- /**
61
- * Step 4 string
62
- */
63
- step4Text: string;
64
- /**
65
- * Step 4 digit string
66
- */
67
- step4DigitText: string;
68
- }
69
- /**
70
- * @beta
71
- *
72
- * Component to allow Contoso to help their end user with their devices should their browser experience device permission issues.
73
- */
74
- export declare const BrowserPermissionDeniedIOS: (props: BrowserPermissionDeniedIOSProps) => JSX.Element;
75
- //# sourceMappingURL=BrowserPermissionDeniedIOS.d.ts.map