@azure/communication-react 1.7.0-beta.1 → 1.7.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 (695) hide show
  1. package/dist/communication-react.d.ts +161 -2948
  2. package/dist/dist-cjs/communication-react/index.js +5454 -14293
  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 -25
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +3 -59
  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 -13
  11. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +3 -16
  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 -6
  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 +13 -20
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +2 -74
  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.d.ts +7 -1
  21. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +3 -16
  22. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -5
  24. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -22
  25. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  26. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -10
  27. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -10
  28. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  29. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +18 -13
  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 +1 -13
  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/participantListSelectorUtils.d.ts +1 -6
  40. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +4 -15
  41. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  42. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +5 -11
  43. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  44. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts +0 -1
  45. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +2 -10
  46. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  47. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +5 -6
  48. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  49. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -15
  50. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  51. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -2
  52. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +6 -7
  53. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  54. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -166
  55. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +1 -0
  56. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  57. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -23
  58. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +2 -191
  59. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  60. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -93
  61. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  62. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -6
  63. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +8 -67
  64. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  65. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +0 -10
  66. package/dist/dist-esm/calling-stateful-client/src/Converter.js +2 -48
  67. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +0 -9
  69. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +0 -5
  70. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  71. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +0 -1
  72. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +3 -25
  73. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +0 -1
  75. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +0 -8
  76. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  78. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +0 -8
  79. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  80. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +3 -25
  81. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +2 -33
  82. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -9
  84. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +0 -18
  85. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  86. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -6
  87. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +0 -1
  89. package/dist/dist-esm/calling-stateful-client/src/index.js +0 -2
  90. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  91. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -4
  92. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  93. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  94. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js +18 -2
  95. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  96. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.d.ts +5 -0
  97. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +15 -106
  98. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  99. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
  100. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  101. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -3
  102. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  103. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +2 -1
  104. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  105. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +1 -4
  106. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  107. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +0 -1
  108. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  109. package/dist/dist-esm/communication-react/src/index.d.ts +1 -31
  110. package/dist/dist-esm/communication-react/src/index.js +0 -14
  111. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  112. package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +0 -1
  113. package/dist/dist-esm/northstar-wrapper/src/index.js +1 -1
  114. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.d.ts +0 -1
  115. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.d.ts +0 -1
  116. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.d.ts +0 -1
  117. package/dist/dist-esm/react-components/src/components/Announcer.d.ts +0 -1
  118. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -9
  119. package/dist/dist-esm/react-components/src/components/CameraButton.js +0 -21
  120. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  121. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.d.ts +0 -1
  122. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +1 -18
  123. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +2 -8
  124. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  125. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +0 -3
  126. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +1 -6
  127. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  128. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +1 -17
  129. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +3 -20
  130. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  131. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -15
  132. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +2 -76
  133. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  134. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.d.ts +0 -1
  135. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.d.ts +0 -1
  136. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.d.ts +0 -1
  137. package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +0 -1
  138. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.d.ts +0 -1
  139. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.d.ts +0 -1
  140. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +0 -1
  141. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +0 -1
  142. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +0 -6
  143. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  144. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.d.ts +0 -1
  145. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +0 -1
  146. package/dist/dist-esm/react-components/src/components/EndCallButton.d.ts +0 -1
  147. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +5 -5
  148. package/dist/dist-esm/react-components/src/components/ErrorBar.js +5 -2
  149. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  150. package/dist/dist-esm/react-components/src/components/FileCard.d.ts +0 -1
  151. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +11 -12
  152. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +6 -15
  153. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  154. package/dist/dist-esm/react-components/src/components/FileUploadCards.d.ts +0 -1
  155. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.d.ts +0 -1
  156. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
  157. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -18
  158. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  159. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.d.ts +0 -1
  160. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  161. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.d.ts +0 -1
  162. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +2 -47
  163. package/dist/dist-esm/react-components/src/components/MessageThread.js +9 -56
  164. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  165. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +0 -1
  166. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +1 -15
  167. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +2 -4
  168. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  169. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +1 -2
  170. package/dist/dist-esm/react-components/src/components/ParticipantList.js +7 -13
  171. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts +1 -2
  173. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.d.ts +0 -1
  175. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +2 -42
  176. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  177. package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +0 -1
  178. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -42
  179. package/dist/dist-esm/react-components/src/components/SendBox.js +3 -31
  180. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -1
  182. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -1
  183. package/dist/dist-esm/react-components/src/components/StreamMedia.d.ts +0 -1
  184. package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts +0 -1
  185. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +0 -1
  186. package/dist/dist-esm/react-components/src/components/TypingIndicator.d.ts +0 -1
  187. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -1
  188. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -2
  189. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.d.ts +0 -1
  191. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -2
  192. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  193. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.d.ts +0 -1
  194. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -24
  195. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  196. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +0 -1
  197. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -2
  198. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  199. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +4 -17
  200. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.d.ts +0 -1
  202. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +0 -1
  203. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +3 -2
  204. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +0 -1
  206. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +0 -1
  207. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +5 -18
  208. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +0 -1
  210. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +0 -6
  211. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +11 -31
  212. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  213. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -7
  214. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +0 -6
  216. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +3 -32
  217. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  218. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +1 -1
  219. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +3 -2
  220. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  221. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +6 -8
  222. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +3 -48
  224. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +0 -95
  226. package/dist/dist-esm/react-components/src/components/VideoGallery.js +10 -108
  227. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -22
  229. package/dist/dist-esm/react-components/src/components/VideoTile.js +6 -86
  230. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/index.d.ts +0 -21
  232. package/dist/dist-esm/react-components/src/components/index.js +0 -18
  233. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +0 -5
  235. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +5 -28
  236. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.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 -8
  242. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -9
  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 -4
  245. package/dist/dist-esm/react-components/src/index.js +0 -2
  246. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -62
  248. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +10 -0
  250. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +13 -3
  251. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +10 -0
  252. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +10 -0
  253. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +10 -0
  254. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +10 -0
  255. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +10 -0
  256. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +10 -0
  257. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +10 -0
  258. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +10 -0
  259. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +10 -0
  260. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +10 -0
  261. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +10 -0
  262. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +10 -0
  263. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +10 -0
  264. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +10 -0
  265. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +10 -0
  266. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +10 -0
  267. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +10 -0
  268. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +10 -0
  269. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +10 -0
  270. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -30
  271. package/dist/dist-esm/react-components/src/theming/icons.js +0 -142
  272. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  273. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -27
  274. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -9
  276. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +0 -3
  278. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +2 -9
  280. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  281. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  282. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -114
  283. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +25 -99
  284. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  285. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -277
  286. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js +0 -2
  287. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  288. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +10 -110
  289. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +50 -447
  290. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  291. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +50 -253
  292. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  293. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  294. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -3
  295. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +3 -9
  296. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  297. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -10
  298. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js +0 -2
  299. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  300. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +3 -4
  301. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +20 -104
  302. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  303. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +3 -4
  304. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +6 -149
  305. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  306. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -3
  307. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -27
  308. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  309. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.d.ts +1 -1
  310. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +3 -21
  311. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  312. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -3
  313. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -27
  314. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  315. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.d.ts +0 -1
  316. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.d.ts +0 -1
  317. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.d.ts +0 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -3
  319. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -45
  320. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  321. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.d.ts +0 -1
  322. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -5
  323. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +4 -32
  324. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  325. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.d.ts +0 -1
  326. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +0 -1
  327. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.d.ts +0 -1
  328. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +9 -11
  329. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  330. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +3 -0
  331. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +4 -4
  332. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  333. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.d.ts +0 -1
  334. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +7 -6
  335. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -2
  336. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  337. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -1
  338. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +0 -1
  339. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +2 -33
  340. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  341. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +0 -1
  342. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +0 -1
  343. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  344. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +0 -1
  345. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +0 -1
  346. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +0 -2
  347. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  348. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +2 -6
  349. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  350. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -2
  351. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +5 -53
  352. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  353. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +0 -1
  354. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -13
  355. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +0 -2
  356. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  357. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +3 -2
  358. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +2 -7
  359. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  360. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +3 -8
  361. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +11 -121
  362. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  363. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +3 -1
  364. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +2 -6
  365. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  366. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -1
  367. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -36
  368. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -61
  369. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  370. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +0 -4
  371. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  372. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +5 -1
  373. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  374. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +5 -1
  375. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +14 -4
  376. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  377. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +0 -1
  378. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  379. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +9 -0
  380. package/dist/dist-esm/{react-components/src/permissions/index.js → react-composites/src/composites/CallComposite/types/ErrorTracking.js} +2 -2
  381. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -0
  382. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +21 -0
  383. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +43 -0
  384. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -0
  385. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +4 -31
  386. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +1 -109
  387. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  388. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.d.ts +1 -0
  389. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js +1 -0
  390. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  391. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +1 -62
  392. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +11 -32
  393. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  394. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.d.ts +0 -1
  395. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.d.ts +3 -5
  396. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +4 -26
  397. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  398. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.d.ts +0 -1
  399. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.d.ts +7 -0
  400. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +32 -0
  401. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -0
  402. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -44
  403. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  404. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +7 -48
  405. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +14 -192
  406. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  407. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +14 -118
  408. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  409. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -21
  410. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +8 -89
  411. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  412. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -13
  413. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -37
  414. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +0 -1
  416. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  417. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -27
  418. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +3 -19
  419. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  420. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -21
  421. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +0 -4
  422. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  423. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.d.ts +0 -1
  424. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -1
  425. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +3 -43
  426. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  427. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  428. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  429. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -28
  430. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +4 -126
  431. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  432. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  433. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -159
  434. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  435. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -17
  436. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  437. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -2
  438. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  439. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.d.ts +0 -1
  440. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +1 -8
  441. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  442. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.d.ts +0 -1
  443. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -4
  444. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  445. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -6
  446. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +0 -11
  447. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  448. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -6
  449. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +2 -3
  450. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  451. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +5 -5
  452. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +9 -41
  453. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  454. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.d.ts +0 -1
  455. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -14
  456. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -176
  457. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  458. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -3
  459. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +1 -5
  460. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  461. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.d.ts +0 -1
  462. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.d.ts +0 -1
  463. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +1 -14
  464. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  465. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.d.ts +0 -1
  466. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.d.ts +0 -1
  467. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +10 -1
  468. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  469. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -1
  470. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +4 -20
  471. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  472. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +0 -1
  473. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +0 -1
  474. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +2 -4
  475. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  476. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -47
  477. package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -21
  478. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  479. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +4 -26
  480. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  481. package/dist/dist-esm/react-composites/src/composites/index.d.ts +0 -2
  482. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  483. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +4 -2
  484. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +8 -6
  485. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +4 -2
  486. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +4 -2
  487. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +4 -2
  488. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +4 -2
  489. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +4 -2
  490. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +4 -2
  491. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +4 -2
  492. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +4 -2
  493. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +4 -2
  494. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +4 -2
  495. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +4 -2
  496. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +4 -2
  497. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +4 -2
  498. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +4 -2
  499. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +4 -2
  500. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +4 -2
  501. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +4 -2
  502. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +4 -2
  503. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +4 -2
  504. package/package.json +22 -25
  505. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +0 -48
  506. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +0 -72
  507. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +0 -1
  508. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +0 -43
  509. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +0 -85
  510. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +0 -1
  511. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +0 -18
  512. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +0 -38
  513. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +0 -1
  514. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.d.ts +0 -28
  515. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js +0 -49
  516. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +0 -1
  517. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.d.ts +0 -24
  518. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +0 -30
  519. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +0 -1
  520. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +0 -19
  521. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +0 -89
  522. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +0 -1
  523. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +0 -23
  524. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -49
  525. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +0 -1
  526. package/dist/dist-esm/react-components/src/components/Caption.d.ts +0 -21
  527. package/dist/dist-esm/react-components/src/components/Caption.js +0 -32
  528. package/dist/dist-esm/react-components/src/components/Caption.js.map +0 -1
  529. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -41
  530. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +0 -50
  531. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +0 -1
  532. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +0 -37
  533. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +0 -93
  534. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +0 -1
  535. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
  536. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
  537. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
  538. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  539. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -43
  540. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  541. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  542. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -75
  543. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  544. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  545. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -68
  546. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  547. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  548. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -39
  549. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  550. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  551. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  552. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  553. package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
  554. package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -118
  555. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
  556. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.d.ts +0 -35
  557. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +0 -33
  558. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +0 -1
  559. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +0 -70
  560. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +0 -61
  561. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +0 -1
  562. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -41
  563. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -545
  564. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
  565. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
  566. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -788
  567. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
  568. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -10
  569. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +0 -26
  570. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +0 -1
  571. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.d.ts +0 -10
  572. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +0 -31
  573. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +0 -1
  574. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  575. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  576. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  577. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +0 -37
  578. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +0 -67
  579. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +0 -1
  580. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.d.ts +0 -34
  581. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js +0 -86
  582. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +0 -1
  583. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +0 -14
  584. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +0 -16
  585. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +0 -1
  586. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -31
  587. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -70
  588. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
  589. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  590. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  591. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  592. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  593. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  594. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  595. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  596. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  597. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  598. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -61
  599. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  600. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  601. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  602. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  603. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  604. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  605. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -218
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +0 -29
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +0 -74
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +0 -1
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  617. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  618. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -19
  619. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -30
  620. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  621. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.d.ts +0 -14
  622. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +0 -113
  623. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +0 -1
  624. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  625. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  626. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  627. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.d.ts +0 -7
  628. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +0 -20
  629. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +0 -1
  630. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.d.ts +0 -7
  631. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js +0 -14
  632. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js.map +0 -1
  633. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  634. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  635. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.d.ts +0 -37
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +0 -73
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +0 -1
  639. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  640. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  641. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  642. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  643. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -23
  644. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  645. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  646. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  647. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  648. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  649. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -13
  650. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  651. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -23
  652. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -14
  653. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  654. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  655. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -107
  656. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  657. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  658. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  659. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  660. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  661. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -74
  662. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  663. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  664. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  665. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
  666. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +0 -6
  667. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +0 -69
  668. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +0 -1
  669. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +0 -12
  670. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +0 -108
  671. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +0 -1
  672. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +0 -7
  673. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +0 -38
  674. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +0 -1
  675. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -17
  676. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +0 -212
  677. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +0 -1
  678. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.d.ts +0 -6
  679. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js +0 -24
  680. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +0 -1
  681. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +0 -20
  682. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +0 -52
  683. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +0 -1
  684. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.d.ts +0 -7
  685. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js +0 -24
  686. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +0 -1
  687. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -17
  688. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +0 -50
  689. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +0 -1
  690. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +0 -11
  691. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +0 -40
  692. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +0 -1
  693. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +0 -14
  694. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +0 -149
  695. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +0 -1
@@ -16,8 +16,6 @@ import { _safeJSONStringify, toFlatCommunicationIdentifier } from "../../acs-ui-
16
16
  import { CallError } from './CallClientState';
17
17
  import { callingStatefulLogger } from './Logger';
18
18
  import { CallIdHistory } from './CallIdHistory';
19
- /* @conditional-compile-remove(close-captions) */
20
- import { convertFromSDKToCaptionInfoState } from './Converter';
21
19
  enableMapSet();
22
20
  // Needed to generate state diff for verbose logging.
23
21
  enablePatches();
@@ -30,7 +28,7 @@ export const MAX_CALL_HISTORY_LENGTH = 10;
30
28
  * @private
31
29
  */
32
30
  export class CallContext {
33
- constructor(userId, maxListeners = 50, /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId) {
31
+ constructor(userId, maxListeners = 50) {
34
32
  this._callIdHistory = new CallIdHistory();
35
33
  /**
36
34
  * Tees direct errors to state.
@@ -61,8 +59,6 @@ export class CallContext {
61
59
  },
62
60
  callAgent: undefined,
63
61
  userId: userId,
64
- /* @conditional-compile-remove(unsupported-browser) */ environmentInfo: undefined,
65
- /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: alternateCallerId,
66
62
  latestErrors: {}
67
63
  };
68
64
  this._emitter = new EventEmitter();
@@ -120,18 +116,7 @@ export class CallContext {
120
116
  existingCall.localVideoStreams = call.localVideoStreams;
121
117
  existingCall.remoteParticipants = call.remoteParticipants;
122
118
  existingCall.transcription.isTranscriptionActive = call.transcription.isTranscriptionActive;
123
- /* @conditional-compile-remove(optimal-video-count) */
124
- existingCall.optimalVideoCount.maxRemoteVideoStreams = call.optimalVideoCount.maxRemoteVideoStreams;
125
- existingCall.recording.isRecordingActive = call.recording.isRecordingActive;
126
- /* @conditional-compile-remove(rooms) */
127
- existingCall.role = call.role;
128
- /* @conditional-compile-remove(total-participant-count) */
129
- existingCall.totalParticipantCount = call.totalParticipantCount;
130
- // We don't update the startTime and endTime if we are updating an existing active call
131
- /* @conditional-compile-remove(close-captions) */
132
- existingCall.captionsFeature.currentSpokenLanguage = call.captionsFeature.currentSpokenLanguage;
133
- /* @conditional-compile-remove(close-captions) */
134
- existingCall.captionsFeature.currentCaptionLanguage = call.captionsFeature.currentCaptionLanguage;
119
+ existingCall.recording.isRecordingActive = call.recording.isRecordingActive; // We don't update the startTime and endTime if we are updating an existing active call
135
120
  }
136
121
  else {
137
122
  draft.calls[latestCallId] = call;
@@ -179,12 +164,6 @@ export class CallContext {
179
164
  }
180
165
  });
181
166
  }
182
- /* @conditional-compile-remove(unsupported-browser) */
183
- setEnvironmentInfo(envInfo) {
184
- this.modifyState((draft) => {
185
- draft.environmentInfo = envInfo;
186
- });
187
- }
188
167
  setCallIsScreenSharingOn(callId, isScreenSharingOn) {
189
168
  this.modifyState((draft) => {
190
169
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -227,19 +206,6 @@ export class CallContext {
227
206
  }
228
207
  });
229
208
  }
230
- /* @conditional-compile-remove(video-background-effects) */
231
- setCallLocalVideoStreamVideoEffects(callId, videoEffects) {
232
- this.modifyState((draft) => {
233
- var _a;
234
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
235
- if (call) {
236
- const stream = (_a = call.localVideoStreams) === null || _a === void 0 ? void 0 : _a.find(i => i.mediaStreamType === 'Video');
237
- if (stream) {
238
- stream.videoEffects = videoEffects;
239
- }
240
- }
241
- });
242
- }
243
209
  setCallIsMicrophoneMuted(callId, isMicrophoneMuted) {
244
210
  this.modifyState((draft) => {
245
211
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -248,24 +214,6 @@ export class CallContext {
248
214
  }
249
215
  });
250
216
  }
251
- /* @conditional-compile-remove(rooms) */
252
- setRole(callId, role) {
253
- this.modifyState((draft) => {
254
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
255
- if (call) {
256
- call.role = role;
257
- }
258
- });
259
- }
260
- /* @conditional-compile-remove(total-participant-count) */
261
- setTotalParticipantCount(callId, totalParticipantCount) {
262
- this.modifyState((draft) => {
263
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
264
- if (call) {
265
- call.totalParticipantCount = totalParticipantCount;
266
- }
267
- });
268
- }
269
217
  setCallDominantSpeakers(callId, dominantSpeakers) {
270
218
  this.modifyState((draft) => {
271
219
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -330,27 +278,6 @@ export class CallContext {
330
278
  }
331
279
  });
332
280
  }
333
- /* @conditional-compile-remove(optimal-video-count) */
334
- setOptimalVideoCount(callId, optimalVideoCount) {
335
- this.modifyState((draft) => {
336
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
337
- if (call) {
338
- call.optimalVideoCount.maxRemoteVideoStreams = optimalVideoCount;
339
- }
340
- });
341
- }
342
- /* @conditional-compile-remove(rooms) */
343
- setParticipantRole(callId, participantKey, role) {
344
- this.modifyState((draft) => {
345
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
346
- if (call) {
347
- const participant = call.remoteParticipants[participantKey];
348
- if (participant) {
349
- participant.role = role;
350
- }
351
- }
352
- });
353
- }
354
281
  setParticipantDisplayName(callId, participantKey, displayName) {
355
282
  this.modifyState((draft) => {
356
283
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -384,8 +311,6 @@ export class CallContext {
384
311
  const existingStream = participant.videoStreams[stream.id];
385
312
  if (existingStream) {
386
313
  existingStream.isAvailable = stream.isAvailable;
387
- /* @conditional-compile-remove(video-stream-is-receiving-flag) */
388
- existingStream.isReceiving = stream.isReceiving;
389
314
  existingStream.mediaStreamType = stream.mediaStreamType;
390
315
  }
391
316
  else {
@@ -409,21 +334,6 @@ export class CallContext {
409
334
  }
410
335
  });
411
336
  }
412
- /* @conditional-compile-remove(video-stream-is-receiving-flag) */
413
- setRemoteVideoStreamIsReceiving(callId, participantKey, streamId, isReceiving) {
414
- this.modifyState((draft) => {
415
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
416
- if (call) {
417
- const participant = call.remoteParticipants[participantKey];
418
- if (participant) {
419
- const stream = participant.videoStreams[streamId];
420
- if (stream) {
421
- stream.isReceiving = isReceiving;
422
- }
423
- }
424
- }
425
- });
426
- }
427
337
  setRemoteVideoStreams(callId, participantKey, addRemoteVideoStream, removeRemoteVideoStream) {
428
338
  this.modifyState((draft) => {
429
339
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -440,8 +350,6 @@ export class CallContext {
440
350
  if (stream) {
441
351
  stream.mediaStreamType = newStream.mediaStreamType;
442
352
  stream.isAvailable = newStream.isAvailable;
443
- /* @conditional-compile-remove(video-stream-is-receiving-flag) */
444
- stream.isReceiving = newStream.isReceiving;
445
353
  }
446
354
  else {
447
355
  participant.videoStreams[newStream.id] = newStream;
@@ -576,108 +484,11 @@ export class CallContext {
576
484
  }
577
485
  });
578
486
  }
579
- /* @conditional-compile-remove(video-background-effects) */
580
- setDeviceManagerUnparentedViewVideoEffects(localVideoStream, videoEffects) {
581
- this.modifyState((draft) => {
582
- const foundIndex = draft.deviceManager.unparentedViews.findIndex(stream => stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType);
583
- if (foundIndex !== -1) {
584
- draft.deviceManager.unparentedViews[foundIndex].videoEffects = videoEffects;
585
- }
586
- });
587
- }
588
487
  getAndIncrementAtomicId() {
589
488
  const id = this._atomicId;
590
489
  this._atomicId++;
591
490
  return id;
592
491
  }
593
- /* @conditional-compile-remove(close-captions) */
594
- processNewCaption(captions, newCaption) {
595
- // going through current captions to find the last caption said by the same speaker, remove that caption if it's partial and replace with the new caption
596
- for (let index = captions.length - 1; index >= 0; index--) {
597
- const currentCaption = captions[index];
598
- if (currentCaption && currentCaption.resultType !== 'Final' && currentCaption.speaker.identifier && newCaption.speaker.identifier && toFlatCommunicationIdentifier(currentCaption.speaker.identifier) === toFlatCommunicationIdentifier(newCaption.speaker.identifier)) {
599
- captions.splice(index, 1);
600
- break;
601
- }
602
- }
603
- captions.push(newCaption);
604
- // If the array length exceeds 50, remove the oldest caption
605
- if (captions.length > 50) {
606
- captions.shift();
607
- }
608
- }
609
- /* @conditional-compile-remove(close-captions) */
610
- addCaption(callId, caption) {
611
- this.modifyState((draft) => {
612
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
613
- if (call) {
614
- this.processNewCaption(call.captionsFeature.captions, convertFromSDKToCaptionInfoState(caption));
615
- }
616
- });
617
- }
618
- /* @conditional-compile-remove(close-captions) */
619
- setIsCaptionActive(callId, isCaptionsActive) {
620
- this.modifyState((draft) => {
621
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
622
- if (call) {
623
- call.captionsFeature.isCaptionsFeatureActive = isCaptionsActive;
624
- }
625
- });
626
- }
627
- /* @conditional-compile-remove(close-captions) */
628
- setStartCaptionsInProgress(callId, startCaptionsInProgress) {
629
- this.modifyState((draft) => {
630
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
631
- if (call) {
632
- call.captionsFeature.startCaptionsInProgress = startCaptionsInProgress;
633
- }
634
- });
635
- }
636
- /* @conditional-compile-remove(close-captions) */
637
- setSelectedSpokenLanguage(callId, spokenLanguage) {
638
- this.modifyState((draft) => {
639
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
640
- if (call) {
641
- call.captionsFeature.currentSpokenLanguage = spokenLanguage;
642
- }
643
- });
644
- }
645
- /* @conditional-compile-remove(close-captions) */
646
- setSelectedCaptionLanguage(callId, captionLanguage) {
647
- this.modifyState((draft) => {
648
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
649
- if (call) {
650
- call.captionsFeature.currentCaptionLanguage = captionLanguage;
651
- }
652
- });
653
- }
654
- /* @conditional-compile-remove(close-captions) */
655
- setAvailableCaptionLanguages(callId, captionLanguages) {
656
- this.modifyState((draft) => {
657
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
658
- if (call) {
659
- call.captionsFeature.supportedCaptionLanguages = captionLanguages;
660
- }
661
- });
662
- }
663
- /* @conditional-compile-remove(close-captions) */
664
- setAvailableSpokenLanguages(callId, spokenLanguages) {
665
- this.modifyState((draft) => {
666
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
667
- if (call) {
668
- call.captionsFeature.supportedSpokenLanguages = spokenLanguages;
669
- }
670
- });
671
- }
672
- /* @conditional-compile-remove(call-transfer) */
673
- setAcceptedTransfer(callId, acceptedTransfer) {
674
- this.modifyState((draft) => {
675
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
676
- if (call) {
677
- call.transfer.acceptedTransfers[acceptedTransfer.callId] = acceptedTransfer;
678
- }
679
- });
680
- }
681
492
  /**
682
493
  * Tees any errors encountered in an async function to the state.
683
494
  *
@@ -1 +1 @@
1
- {"version":3,"file":"CallContext.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAUlC,OAAO,EAAe,kBAAkB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAS,OAAO,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,6BAA6B,EA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,OAAO,KAAK,SAAS,EAAE;YAC9B,OAAO,MAAM,CAAC;SACf;QACD,IAAI,CAAC,MAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,OAAO,EAAE,mCAAI,CAAC,CAAC,GAAG,CAAC,MAAA,MAAA,UAAU,CAAC,OAAO,0CAAE,OAAO,EAAE,mCAAI,CAAC,CAAC,EAAE;YACzE,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SAC7C;KACF;IACD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifierKind } from '@azure/communication-common';\nimport { AudioDeviceInfo, DeviceAccess, DominantSpeakersInfo, ScalingMode, VideoDeviceInfo } from '@azure/communication-calling';\n/* @conditional-compile-remove(close-captions) */\nimport { TeamsCaptionsInfo } from '@azure/communication-calling';\n/* @conditional-compile-remove(unsupported-browser) */\nimport { EnvironmentInfo } from '@azure/communication-calling';\n/* @conditional-compile-remove(rooms) */\nimport { ParticipantRole } from '@azure/communication-calling';\nimport { AzureLogger, createClientLogger, getLogLevel } from '@azure/logger';\nimport EventEmitter from 'events';\nimport { enableMapSet, enablePatches, Patch, produce } from 'immer';\nimport { CallEndReason, CallState as CallStatus, RemoteParticipantState as RemoteParticipantStatus } from '@azure/communication-calling';\nimport { _safeJSONStringify, toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallState, CallClientState, LocalVideoStreamState, RemoteParticipantState, RemoteVideoStreamState, IncomingCallState, VideoStreamRendererViewState, CallAgentState, CallErrors, CallErrorTarget, CallError } from './CallClientState';\n/* @conditional-compile-remove(close-captions) */\nimport { CaptionsInfo } from './CallClientState';\n/* @conditional-compile-remove(call-transfer) */\nimport { AcceptedTransfer } from './CallClientState';\nimport { callingStatefulLogger } from './Logger';\nimport { CallIdHistory } from './CallIdHistory';\n/* @conditional-compile-remove(video-background-effects) */\nimport { LocalVideoStreamVideoEffectsState } from './CallClientState';\n/* @conditional-compile-remove(close-captions) */\nimport { convertFromSDKToCaptionInfoState } from './Converter';\nenableMapSet();\n// Needed to generate state diff for verbose logging.\nenablePatches();\n\n// TODO: How can we make this configurable?\n/**\n * @private\n */\nexport const MAX_CALL_HISTORY_LENGTH = 10;\n\n/**\n * @private\n */\nexport class CallContext {\n private _logger: AzureLogger;\n private _state: CallClientState;\n private _emitter: EventEmitter;\n private _atomicId: number;\n private _callIdHistory: CallIdHistory = new CallIdHistory();\n constructor(userId: CommunicationIdentifierKind, maxListeners = 50, /* @conditional-compile-remove(PSTN-calls) */alternateCallerId?: string) {\n this._logger = createClientLogger('communication-react:calling-context');\n this._state = {\n calls: {},\n callsEnded: {},\n incomingCalls: {},\n incomingCallsEnded: {},\n deviceManager: {\n isSpeakerSelectionAvailable: false,\n cameras: [],\n microphones: [],\n speakers: [],\n unparentedViews: []\n },\n callAgent: undefined,\n userId: userId,\n /* @conditional-compile-remove(unsupported-browser) */environmentInfo: undefined,\n /* @conditional-compile-remove(PSTN-calls) */alternateCallerId: alternateCallerId,\n latestErrors: ({} as CallErrors)\n };\n this._emitter = new EventEmitter();\n this._emitter.setMaxListeners(maxListeners);\n this._atomicId = 0;\n }\n public getState(): CallClientState {\n return this._state;\n }\n public modifyState(modifier: (draft: CallClientState) => void): void {\n const priorState = this._state;\n this._state = produce(this._state, modifier, (patches: Patch[]) => {\n if (getLogLevel() === 'verbose') {\n // Log to `info` because AzureLogger.verbose() doesn't show up in console.\n this._logger.info(`State change: ${_safeJSONStringify(patches)}`);\n }\n });\n if (this._state !== priorState) {\n this._emitter.emit('stateChanged', this._state);\n }\n }\n public onStateChange(handler: (state: CallClientState) => void): void {\n this._emitter.on('stateChanged', handler);\n }\n public offStateChange(handler: (state: CallClientState) => void): void {\n this._emitter.off('stateChanged', handler);\n }\n\n // Disposing of the CallAgentDeclarative will not clear the state. If we create a new CallAgentDeclarative, we should\n // make sure the state is clean because any left over state (if previous CallAgentDeclarative was disposed) may be\n // invalid.\n public clearCallRelatedState(): void {\n this.modifyState((draft: CallClientState) => {\n draft.calls = {};\n draft.incomingCalls = {};\n draft.callsEnded = {};\n draft.incomingCallsEnded = {};\n });\n }\n public setCallAgent(callAgent: CallAgentState): void {\n this.modifyState((draft: CallClientState) => {\n draft.callAgent = callAgent;\n });\n }\n public setCall(call: CallState): void {\n this.modifyState((draft: CallClientState) => {\n const latestCallId = this._callIdHistory.latestCallId(call.id);\n const existingCall = draft.calls[latestCallId];\n if (existingCall) {\n existingCall.callerInfo = call.callerInfo;\n existingCall.state = call.state;\n existingCall.callEndReason = call.callEndReason;\n existingCall.direction = call.direction;\n existingCall.isMuted = call.isMuted;\n existingCall.isScreenSharingOn = call.isScreenSharingOn;\n existingCall.localVideoStreams = call.localVideoStreams;\n existingCall.remoteParticipants = call.remoteParticipants;\n existingCall.transcription.isTranscriptionActive = call.transcription.isTranscriptionActive;\n /* @conditional-compile-remove(optimal-video-count) */\n existingCall.optimalVideoCount.maxRemoteVideoStreams = call.optimalVideoCount.maxRemoteVideoStreams;\n existingCall.recording.isRecordingActive = call.recording.isRecordingActive;\n /* @conditional-compile-remove(rooms) */\n existingCall.role = call.role;\n /* @conditional-compile-remove(total-participant-count) */\n existingCall.totalParticipantCount = call.totalParticipantCount;\n // We don't update the startTime and endTime if we are updating an existing active call\n /* @conditional-compile-remove(close-captions) */\n existingCall.captionsFeature.currentSpokenLanguage = call.captionsFeature.currentSpokenLanguage;\n /* @conditional-compile-remove(close-captions) */\n existingCall.captionsFeature.currentCaptionLanguage = call.captionsFeature.currentCaptionLanguage;\n } else {\n draft.calls[latestCallId] = call;\n }\n });\n }\n public removeCall(callId: string): void {\n this.modifyState((draft: CallClientState) => {\n delete draft.calls[this._callIdHistory.latestCallId(callId)];\n });\n }\n public setCallEnded(callId: string, callEndReason: CallEndReason | undefined): void {\n const latestCallId = this._callIdHistory.latestCallId(callId);\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[latestCallId];\n if (call) {\n call.endTime = new Date();\n call.callEndReason = callEndReason;\n delete draft.calls[latestCallId];\n // Performance note: This loop should run only once because the number of entries\n // is never allowed to exceed MAX_CALL_HISTORY_LENGTH. A loop is used for correctness.\n while (Object.keys(draft.callsEnded).length >= MAX_CALL_HISTORY_LENGTH) {\n delete draft.callsEnded[findOldestCallEnded(draft.callsEnded)];\n }\n draft.callsEnded[latestCallId] = call;\n }\n });\n }\n public setCallState(callId: string, state: CallStatus): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.state = state;\n }\n });\n }\n public setCallId(newCallId: string, oldCallId: string): void {\n this._callIdHistory.updateCallIdHistory(newCallId, oldCallId);\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[oldCallId];\n if (call) {\n call.id = newCallId;\n delete draft.calls[oldCallId];\n draft.calls[newCallId] = call;\n }\n });\n }\n\n /* @conditional-compile-remove(unsupported-browser) */\n public setEnvironmentInfo(envInfo: EnvironmentInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.environmentInfo = envInfo;\n });\n }\n public setCallIsScreenSharingOn(callId: string, isScreenSharingOn: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.isScreenSharingOn = isScreenSharingOn;\n }\n });\n }\n public setCallRemoteParticipants(callId: string, addRemoteParticipant: RemoteParticipantState[], removeRemoteParticipant: string[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n removeRemoteParticipant.forEach((id: string) => {\n delete call.remoteParticipants[id];\n });\n addRemoteParticipant.forEach((participant: RemoteParticipantState) => {\n call.remoteParticipants[toFlatCommunicationIdentifier(participant.identifier)] = participant;\n });\n }\n });\n }\n public setCallRemoteParticipantsEnded(callId: string, addRemoteParticipant: RemoteParticipantState[], removeRemoteParticipant: string[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n removeRemoteParticipant.forEach((id: string) => {\n delete call.remoteParticipantsEnded[id];\n });\n addRemoteParticipant.forEach((participant: RemoteParticipantState) => {\n call.remoteParticipantsEnded[toFlatCommunicationIdentifier(participant.identifier)] = participant;\n });\n }\n });\n }\n public setCallLocalVideoStream(callId: string, streams: LocalVideoStreamState[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.localVideoStreams = streams;\n }\n });\n }\n\n /* @conditional-compile-remove(video-background-effects) */\n public setCallLocalVideoStreamVideoEffects(callId: string, videoEffects: LocalVideoStreamVideoEffectsState): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const stream = call.localVideoStreams?.find(i => i.mediaStreamType === 'Video');\n if (stream) {\n stream.videoEffects = videoEffects;\n }\n }\n });\n }\n public setCallIsMicrophoneMuted(callId: string, isMicrophoneMuted: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.isMuted = isMicrophoneMuted;\n }\n });\n }\n\n /* @conditional-compile-remove(rooms) */\n public setRole(callId: string, role: ParticipantRole): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.role = role;\n }\n });\n }\n\n /* @conditional-compile-remove(total-participant-count) */\n public setTotalParticipantCount(callId: string, totalParticipantCount: number): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.totalParticipantCount = totalParticipantCount;\n }\n });\n }\n public setCallDominantSpeakers(callId: string, dominantSpeakers: DominantSpeakersInfo): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.dominantSpeakers = dominantSpeakers;\n }\n });\n }\n public setCallRecordingActive(callId: string, isRecordingActive: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.recording.isRecordingActive = isRecordingActive;\n }\n });\n }\n public setCallTranscriptionActive(callId: string, isTranscriptionActive: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.transcription.isTranscriptionActive = isTranscriptionActive;\n }\n });\n }\n public setCallScreenShareParticipant(callId: string, participantKey: string | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.screenShareRemoteParticipant = participantKey;\n }\n });\n }\n public setLocalVideoStreamRendererView(callId: string, view: VideoStreamRendererViewState | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n if (call.localVideoStreams.length > 0) {\n call.localVideoStreams[0].view = view;\n }\n }\n });\n }\n public setParticipantState(callId: string, participantKey: string, state: RemoteParticipantStatus): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.state = state;\n }\n }\n });\n }\n public setParticipantIsMuted(callId: string, participantKey: string, muted: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.isMuted = muted;\n }\n }\n });\n }\n\n /* @conditional-compile-remove(optimal-video-count) */\n public setOptimalVideoCount(callId: string, optimalVideoCount: number): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.optimalVideoCount.maxRemoteVideoStreams = optimalVideoCount;\n }\n });\n }\n\n /* @conditional-compile-remove(rooms) */\n public setParticipantRole(callId: string, participantKey: string, role: ParticipantRole): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.role = role;\n }\n }\n });\n }\n public setParticipantDisplayName(callId: string, participantKey: string, displayName: string): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.displayName = displayName;\n }\n }\n });\n }\n public setParticipantIsSpeaking(callId: string, participantKey: string, isSpeaking: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.isSpeaking = isSpeaking;\n }\n }\n });\n }\n public setParticipantVideoStream(callId: string, participantKey: string, stream: RemoteVideoStreamState): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n // Set is called by subscriber will not modify any rendered stream so if there is existing stream only\n // modify the values that subscriber has access to.\n const existingStream = participant.videoStreams[stream.id];\n if (existingStream) {\n existingStream.isAvailable = stream.isAvailable;\n /* @conditional-compile-remove(video-stream-is-receiving-flag) */\n existingStream.isReceiving = stream.isReceiving;\n existingStream.mediaStreamType = stream.mediaStreamType;\n } else {\n participant.videoStreams[stream.id] = stream;\n }\n }\n }\n });\n }\n public setRemoteVideoStreamIsAvailable(callId: string, participantKey: string, streamId: number, isAvailable: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream) {\n stream.isAvailable = isAvailable;\n }\n }\n }\n });\n }\n\n /* @conditional-compile-remove(video-stream-is-receiving-flag) */\n public setRemoteVideoStreamIsReceiving(callId: string, participantKey: string, streamId: number, isReceiving: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream) {\n stream.isReceiving = isReceiving;\n }\n }\n }\n });\n }\n public setRemoteVideoStreams(callId: string, participantKey: string, addRemoteVideoStream: RemoteVideoStreamState[], removeRemoteVideoStream: number[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n for (const id of removeRemoteVideoStream) {\n delete participant.videoStreams[id];\n }\n for (const newStream of addRemoteVideoStream) {\n // This should only be called by the subscriber and some properties are add by other components so if the\n // stream already exists, only update the values that subscriber knows about.\n const stream = participant.videoStreams[newStream.id];\n if (stream) {\n stream.mediaStreamType = newStream.mediaStreamType;\n stream.isAvailable = newStream.isAvailable;\n /* @conditional-compile-remove(video-stream-is-receiving-flag) */\n stream.isReceiving = newStream.isReceiving;\n } else {\n participant.videoStreams[newStream.id] = newStream;\n }\n }\n }\n }\n });\n }\n public setRemoteVideoStreamRendererView(callId: string, participantKey: string, streamId: number, view: VideoStreamRendererViewState | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream) {\n stream.view = view;\n }\n }\n }\n });\n }\n public setRemoteVideoStreamViewScalingMode(callId: string, participantKey: string, streamId: number, scalingMode: ScalingMode): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream && stream.view) {\n stream.view.scalingMode = scalingMode;\n }\n }\n }\n });\n }\n public setIncomingCall(call: IncomingCallState): void {\n this.modifyState((draft: CallClientState) => {\n const existingCall = draft.incomingCalls[call.id];\n if (existingCall) {\n existingCall.callerInfo = call.callerInfo;\n } else {\n draft.incomingCalls[call.id] = call;\n }\n });\n }\n public removeIncomingCall(callId: string): void {\n this.modifyState((draft: CallClientState) => {\n delete draft.incomingCalls[callId];\n });\n }\n public setIncomingCallEnded(callId: string, callEndReason: CallEndReason | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.incomingCalls[callId];\n if (call) {\n call.endTime = new Date();\n call.callEndReason = callEndReason;\n delete draft.incomingCalls[callId];\n // Performance note: This loop should run only once because the number of entries\n // is never allowed to exceed MAX_CALL_HISTORY_LENGTH. A loop is used for correctness.\n while (Object.keys(draft.incomingCallsEnded).length >= MAX_CALL_HISTORY_LENGTH) {\n delete draft.incomingCallsEnded[findOldestCallEnded(draft.incomingCallsEnded)];\n }\n draft.incomingCallsEnded[callId] = call;\n }\n });\n }\n public setDeviceManagerIsSpeakerSelectionAvailable(isSpeakerSelectionAvailable: boolean): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.isSpeakerSelectionAvailable = isSpeakerSelectionAvailable;\n });\n }\n public setDeviceManagerSelectedMicrophone(selectedMicrophone?: AudioDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedMicrophone = selectedMicrophone;\n });\n }\n public setDeviceManagerSelectedSpeaker(selectedSpeaker?: AudioDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedSpeaker = selectedSpeaker;\n });\n }\n public setDeviceManagerSelectedCamera(selectedCamera?: VideoDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedCamera = selectedCamera;\n });\n }\n public setDeviceManagerCameras(cameras: VideoDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n /**\n * SDK initializes cameras with one dummy camera with value { id: 'camera:id', name: '', deviceType: 'USBCamera' } immediately after\n * camera permissions are granted. So selectedCamera will have this value before the actual cameras are obtained. Therefore we should reset\n * selectedCamera to the first camera when there are cameras AND when current selectedCamera does not exist in the new array of cameras *\n */\n if (cameras.length > 0 && !cameras.some(camera => camera.id === draft.deviceManager.selectedCamera?.id)) {\n draft.deviceManager.selectedCamera = cameras[0];\n }\n draft.deviceManager.cameras = cameras;\n });\n }\n public setDeviceManagerMicrophones(microphones: AudioDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.microphones = microphones;\n });\n }\n public setDeviceManagerSpeakers(speakers: AudioDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.speakers = speakers;\n });\n }\n public setDeviceManagerDeviceAccess(deviceAccess: DeviceAccess): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.deviceAccess = deviceAccess;\n });\n }\n public setDeviceManagerUnparentedView(localVideoStream: LocalVideoStreamState, view: VideoStreamRendererViewState | undefined): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.unparentedViews.push({\n source: localVideoStream.source,\n mediaStreamType: localVideoStream.mediaStreamType,\n view: view\n });\n });\n }\n public deleteDeviceManagerUnparentedView(localVideoStream: LocalVideoStreamState): void {\n this.modifyState((draft: CallClientState) => {\n const foundIndex = draft.deviceManager.unparentedViews.findIndex(stream => stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType);\n if (foundIndex !== -1) {\n draft.deviceManager.unparentedViews.splice(foundIndex, 1);\n }\n });\n }\n\n /* @conditional-compile-remove(video-background-effects) */\n public setDeviceManagerUnparentedViewVideoEffects(localVideoStream: LocalVideoStreamState, videoEffects: LocalVideoStreamVideoEffectsState): void {\n this.modifyState((draft: CallClientState) => {\n const foundIndex = draft.deviceManager.unparentedViews.findIndex(stream => stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType);\n if (foundIndex !== -1) {\n draft.deviceManager.unparentedViews[foundIndex].videoEffects = videoEffects;\n }\n });\n }\n public getAndIncrementAtomicId(): number {\n const id = this._atomicId;\n this._atomicId++;\n return id;\n }\n /* @conditional-compile-remove(close-captions) */\n private processNewCaption(captions: CaptionsInfo[], newCaption: CaptionsInfo): void {\n // going through current captions to find the last caption said by the same speaker, remove that caption if it's partial and replace with the new caption\n for (let index = captions.length - 1; index >= 0; index--) {\n const currentCaption = captions[index];\n if (currentCaption && currentCaption.resultType !== 'Final' && currentCaption.speaker.identifier && newCaption.speaker.identifier && toFlatCommunicationIdentifier(currentCaption.speaker.identifier) === toFlatCommunicationIdentifier(newCaption.speaker.identifier)) {\n captions.splice(index, 1);\n break;\n }\n }\n captions.push(newCaption);\n\n // If the array length exceeds 50, remove the oldest caption\n if (captions.length > 50) {\n captions.shift();\n }\n }\n /* @conditional-compile-remove(close-captions) */\n public addCaption(callId: string, caption: TeamsCaptionsInfo): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n this.processNewCaption(call.captionsFeature.captions, convertFromSDKToCaptionInfoState(caption));\n }\n });\n }\n /* @conditional-compile-remove(close-captions) */\n setIsCaptionActive(callId: string, isCaptionsActive: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.captionsFeature.isCaptionsFeatureActive = isCaptionsActive;\n }\n });\n }\n\n /* @conditional-compile-remove(close-captions) */\n setStartCaptionsInProgress(callId: string, startCaptionsInProgress: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.captionsFeature.startCaptionsInProgress = startCaptionsInProgress;\n }\n });\n }\n /* @conditional-compile-remove(close-captions) */\n setSelectedSpokenLanguage(callId: string, spokenLanguage: string): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.captionsFeature.currentSpokenLanguage = spokenLanguage;\n }\n });\n }\n /* @conditional-compile-remove(close-captions) */\n setSelectedCaptionLanguage(callId: string, captionLanguage: string): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.captionsFeature.currentCaptionLanguage = captionLanguage;\n }\n });\n }\n /* @conditional-compile-remove(close-captions) */\n setAvailableCaptionLanguages(callId: string, captionLanguages: string[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.captionsFeature.supportedCaptionLanguages = captionLanguages;\n }\n });\n }\n /* @conditional-compile-remove(close-captions) */\n setAvailableSpokenLanguages(callId: string, spokenLanguages: string[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.captionsFeature.supportedSpokenLanguages = spokenLanguages;\n }\n });\n }\n\n /* @conditional-compile-remove(call-transfer) */\n setAcceptedTransfer(callId: string, acceptedTransfer: AcceptedTransfer): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.transfer.acceptedTransfers[acceptedTransfer.callId] = acceptedTransfer;\n }\n });\n }\n\n /**\n * Tees any errors encountered in an async function to the state.\n *\n * @param action Async function to execute.\n * @param target The error target to tee error to.\n * @returns Result of calling `f`. Also re-raises any exceptions thrown from `f`.\n * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.\n */\n public withAsyncErrorTeedToState<Args extends unknown[], R>(action: (...args: Args) => Promise<R>, target: CallErrorTarget): (...args: Args) => Promise<R> {\n return async (...args: Args): Promise<R> => {\n try {\n return await action(...args);\n } catch (error) {\n const callError = toCallError(target, error);\n this.setLatestError(target, callError);\n throw callError;\n }\n };\n }\n\n /**\n * Tees any errors encountered in an function to the state.\n *\n * @param action Function to execute.\n * @param target The error target to tee error to.\n * @returns Result of calling `f`. Also re-raises any exceptions thrown from `f`.\n * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.\n */\n public withErrorTeedToState<Args extends unknown[], R>(action: (...args: Args) => R, target: CallErrorTarget): (...args: Args) => R {\n return (...args: Args): R => {\n try {\n callingStatefulLogger.info(`Calling stateful client target function called: ${target}`);\n return action(...args);\n } catch (error) {\n const callError = toCallError(target, error);\n this.setLatestError(target, callError);\n throw callError;\n }\n };\n }\n\n /**\n * Tees direct errors to state.\n * @remarks\n * This is typically used for errors that are caught and intended to be shown to the user.\n *\n * @param error The raw error to report.\n * @param target The error target to tee error to.\n *\n * @private\n */\n public teeErrorToState = (error: Error, target: CallErrorTarget): void => {\n const callError = toCallError(target, error);\n this.setLatestError(target, callError);\n };\n private setLatestError(target: CallErrorTarget, error: CallError): void {\n this.modifyState((draft: CallClientState) => {\n draft.latestErrors[target] = error;\n });\n }\n}\nconst toCallError = (target: CallErrorTarget, error: unknown): CallError => {\n if (error instanceof Error) {\n return new CallError(target, error);\n }\n return new CallError(target, new Error((error as string)));\n};\nconst findOldestCallEnded = (calls: {\n [key: string]: {\n endTime?: Date;\n };\n}): string => {\n const callEntries = Object.entries(calls);\n let [oldestCallId, oldestCall] = callEntries[0];\n if (oldestCall.endTime === undefined) {\n return oldestCallId;\n }\n for (const [callId, call] of callEntries.slice(1)) {\n if (call.endTime === undefined) {\n return callId;\n }\n if ((call.endTime?.getTime() ?? 0) < (oldestCall.endTime?.getTime() ?? 0)) {\n [oldestCallId, oldestCall] = [callId, call];\n }\n }\n return oldestCallId;\n};\"../../acs-ui-common/src\""]}
1
+ {"version":3,"file":"CallContext.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAIlC,OAAO,EAAe,kBAAkB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,YAAY,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAS,OAAO,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,g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CAAE,OAAO,EAAE,mCAAI,CAAC,CAAC,GAAG,CAAC,MAAA,MAAA,UAAU,CAAC,OAAO,0CAAE,OAAO,EAAE,mCAAI,CAAC,CAAC,EAAE;YACzE,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SAC7C;KACF;IACD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CommunicationIdentifierKind } from '@azure/communication-common';\nimport { AudioDeviceInfo, DeviceAccess, DominantSpeakersInfo, ScalingMode, VideoDeviceInfo } from '@azure/communication-calling';\nimport { AzureLogger, createClientLogger, getLogLevel } from '@azure/logger';\nimport EventEmitter from 'events';\nimport { enableMapSet, enablePatches, Patch, produce } from 'immer';\nimport { CallEndReason, CallState as CallStatus, RemoteParticipantState as RemoteParticipantStatus } from '@azure/communication-calling';\nimport { _safeJSONStringify, toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallState, CallClientState, LocalVideoStreamState, RemoteParticipantState, RemoteVideoStreamState, IncomingCallState, VideoStreamRendererViewState, CallAgentState, CallErrors, CallErrorTarget, CallError } from './CallClientState';\nimport { callingStatefulLogger } from './Logger';\nimport { CallIdHistory } from './CallIdHistory';\nenableMapSet();\n// Needed to generate state diff for verbose logging.\nenablePatches();\n\n// TODO: How can we make this configurable?\n/**\n * @private\n */\nexport const MAX_CALL_HISTORY_LENGTH = 10;\n\n/**\n * @private\n */\nexport class CallContext {\n private _logger: AzureLogger;\n private _state: CallClientState;\n private _emitter: EventEmitter;\n private _atomicId: number;\n private _callIdHistory: CallIdHistory = new CallIdHistory();\n constructor(userId: CommunicationIdentifierKind, maxListeners = 50) {\n this._logger = createClientLogger('communication-react:calling-context');\n this._state = {\n calls: {},\n callsEnded: {},\n incomingCalls: {},\n incomingCallsEnded: {},\n deviceManager: {\n isSpeakerSelectionAvailable: false,\n cameras: [],\n microphones: [],\n speakers: [],\n unparentedViews: []\n },\n callAgent: undefined,\n userId: userId,\n latestErrors: ({} as CallErrors)\n };\n this._emitter = new EventEmitter();\n this._emitter.setMaxListeners(maxListeners);\n this._atomicId = 0;\n }\n public getState(): CallClientState {\n return this._state;\n }\n public modifyState(modifier: (draft: CallClientState) => void): void {\n const priorState = this._state;\n this._state = produce(this._state, modifier, (patches: Patch[]) => {\n if (getLogLevel() === 'verbose') {\n // Log to `info` because AzureLogger.verbose() doesn't show up in console.\n this._logger.info(`State change: ${_safeJSONStringify(patches)}`);\n }\n });\n if (this._state !== priorState) {\n this._emitter.emit('stateChanged', this._state);\n }\n }\n public onStateChange(handler: (state: CallClientState) => void): void {\n this._emitter.on('stateChanged', handler);\n }\n public offStateChange(handler: (state: CallClientState) => void): void {\n this._emitter.off('stateChanged', handler);\n }\n\n // Disposing of the CallAgentDeclarative will not clear the state. If we create a new CallAgentDeclarative, we should\n // make sure the state is clean because any left over state (if previous CallAgentDeclarative was disposed) may be\n // invalid.\n public clearCallRelatedState(): void {\n this.modifyState((draft: CallClientState) => {\n draft.calls = {};\n draft.incomingCalls = {};\n draft.callsEnded = {};\n draft.incomingCallsEnded = {};\n });\n }\n public setCallAgent(callAgent: CallAgentState): void {\n this.modifyState((draft: CallClientState) => {\n draft.callAgent = callAgent;\n });\n }\n public setCall(call: CallState): void {\n this.modifyState((draft: CallClientState) => {\n const latestCallId = this._callIdHistory.latestCallId(call.id);\n const existingCall = draft.calls[latestCallId];\n if (existingCall) {\n existingCall.callerInfo = call.callerInfo;\n existingCall.state = call.state;\n existingCall.callEndReason = call.callEndReason;\n existingCall.direction = call.direction;\n existingCall.isMuted = call.isMuted;\n existingCall.isScreenSharingOn = call.isScreenSharingOn;\n existingCall.localVideoStreams = call.localVideoStreams;\n existingCall.remoteParticipants = call.remoteParticipants;\n existingCall.transcription.isTranscriptionActive = call.transcription.isTranscriptionActive;\n existingCall.recording.isRecordingActive = call.recording.isRecordingActive; // We don't update the startTime and endTime if we are updating an existing active call\n } else {\n draft.calls[latestCallId] = call;\n }\n });\n }\n public removeCall(callId: string): void {\n this.modifyState((draft: CallClientState) => {\n delete draft.calls[this._callIdHistory.latestCallId(callId)];\n });\n }\n public setCallEnded(callId: string, callEndReason: CallEndReason | undefined): void {\n const latestCallId = this._callIdHistory.latestCallId(callId);\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[latestCallId];\n if (call) {\n call.endTime = new Date();\n call.callEndReason = callEndReason;\n delete draft.calls[latestCallId];\n // Performance note: This loop should run only once because the number of entries\n // is never allowed to exceed MAX_CALL_HISTORY_LENGTH. A loop is used for correctness.\n while (Object.keys(draft.callsEnded).length >= MAX_CALL_HISTORY_LENGTH) {\n delete draft.callsEnded[findOldestCallEnded(draft.callsEnded)];\n }\n draft.callsEnded[latestCallId] = call;\n }\n });\n }\n public setCallState(callId: string, state: CallStatus): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.state = state;\n }\n });\n }\n public setCallId(newCallId: string, oldCallId: string): void {\n this._callIdHistory.updateCallIdHistory(newCallId, oldCallId);\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[oldCallId];\n if (call) {\n call.id = newCallId;\n delete draft.calls[oldCallId];\n draft.calls[newCallId] = call;\n }\n });\n }\n public setCallIsScreenSharingOn(callId: string, isScreenSharingOn: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.isScreenSharingOn = isScreenSharingOn;\n }\n });\n }\n public setCallRemoteParticipants(callId: string, addRemoteParticipant: RemoteParticipantState[], removeRemoteParticipant: string[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n removeRemoteParticipant.forEach((id: string) => {\n delete call.remoteParticipants[id];\n });\n addRemoteParticipant.forEach((participant: RemoteParticipantState) => {\n call.remoteParticipants[toFlatCommunicationIdentifier(participant.identifier)] = participant;\n });\n }\n });\n }\n public setCallRemoteParticipantsEnded(callId: string, addRemoteParticipant: RemoteParticipantState[], removeRemoteParticipant: string[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n removeRemoteParticipant.forEach((id: string) => {\n delete call.remoteParticipantsEnded[id];\n });\n addRemoteParticipant.forEach((participant: RemoteParticipantState) => {\n call.remoteParticipantsEnded[toFlatCommunicationIdentifier(participant.identifier)] = participant;\n });\n }\n });\n }\n public setCallLocalVideoStream(callId: string, streams: LocalVideoStreamState[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.localVideoStreams = streams;\n }\n });\n }\n public setCallIsMicrophoneMuted(callId: string, isMicrophoneMuted: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.isMuted = isMicrophoneMuted;\n }\n });\n }\n public setCallDominantSpeakers(callId: string, dominantSpeakers: DominantSpeakersInfo): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.dominantSpeakers = dominantSpeakers;\n }\n });\n }\n public setCallRecordingActive(callId: string, isRecordingActive: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.recording.isRecordingActive = isRecordingActive;\n }\n });\n }\n public setCallTranscriptionActive(callId: string, isTranscriptionActive: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.transcription.isTranscriptionActive = isTranscriptionActive;\n }\n });\n }\n public setCallScreenShareParticipant(callId: string, participantKey: string | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n call.screenShareRemoteParticipant = participantKey;\n }\n });\n }\n public setLocalVideoStreamRendererView(callId: string, view: VideoStreamRendererViewState | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n if (call.localVideoStreams.length > 0) {\n call.localVideoStreams[0].view = view;\n }\n }\n });\n }\n public setParticipantState(callId: string, participantKey: string, state: RemoteParticipantStatus): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.state = state;\n }\n }\n });\n }\n public setParticipantIsMuted(callId: string, participantKey: string, muted: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.isMuted = muted;\n }\n }\n });\n }\n public setParticipantDisplayName(callId: string, participantKey: string, displayName: string): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.displayName = displayName;\n }\n }\n });\n }\n public setParticipantIsSpeaking(callId: string, participantKey: string, isSpeaking: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n participant.isSpeaking = isSpeaking;\n }\n }\n });\n }\n public setParticipantVideoStream(callId: string, participantKey: string, stream: RemoteVideoStreamState): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n // Set is called by subscriber will not modify any rendered stream so if there is existing stream only\n // modify the values that subscriber has access to.\n const existingStream = participant.videoStreams[stream.id];\n if (existingStream) {\n existingStream.isAvailable = stream.isAvailable;\n existingStream.mediaStreamType = stream.mediaStreamType;\n } else {\n participant.videoStreams[stream.id] = stream;\n }\n }\n }\n });\n }\n public setRemoteVideoStreamIsAvailable(callId: string, participantKey: string, streamId: number, isAvailable: boolean): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream) {\n stream.isAvailable = isAvailable;\n }\n }\n }\n });\n }\n public setRemoteVideoStreams(callId: string, participantKey: string, addRemoteVideoStream: RemoteVideoStreamState[], removeRemoteVideoStream: number[]): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n for (const id of removeRemoteVideoStream) {\n delete participant.videoStreams[id];\n }\n for (const newStream of addRemoteVideoStream) {\n // This should only be called by the subscriber and some properties are add by other components so if the\n // stream already exists, only update the values that subscriber knows about.\n const stream = participant.videoStreams[newStream.id];\n if (stream) {\n stream.mediaStreamType = newStream.mediaStreamType;\n stream.isAvailable = newStream.isAvailable;\n } else {\n participant.videoStreams[newStream.id] = newStream;\n }\n }\n }\n }\n });\n }\n public setRemoteVideoStreamRendererView(callId: string, participantKey: string, streamId: number, view: VideoStreamRendererViewState | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream) {\n stream.view = view;\n }\n }\n }\n });\n }\n public setRemoteVideoStreamViewScalingMode(callId: string, participantKey: string, streamId: number, scalingMode: ScalingMode): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.calls[this._callIdHistory.latestCallId(callId)];\n if (call) {\n const participant = call.remoteParticipants[participantKey];\n if (participant) {\n const stream = participant.videoStreams[streamId];\n if (stream && stream.view) {\n stream.view.scalingMode = scalingMode;\n }\n }\n }\n });\n }\n public setIncomingCall(call: IncomingCallState): void {\n this.modifyState((draft: CallClientState) => {\n const existingCall = draft.incomingCalls[call.id];\n if (existingCall) {\n existingCall.callerInfo = call.callerInfo;\n } else {\n draft.incomingCalls[call.id] = call;\n }\n });\n }\n public removeIncomingCall(callId: string): void {\n this.modifyState((draft: CallClientState) => {\n delete draft.incomingCalls[callId];\n });\n }\n public setIncomingCallEnded(callId: string, callEndReason: CallEndReason | undefined): void {\n this.modifyState((draft: CallClientState) => {\n const call = draft.incomingCalls[callId];\n if (call) {\n call.endTime = new Date();\n call.callEndReason = callEndReason;\n delete draft.incomingCalls[callId];\n // Performance note: This loop should run only once because the number of entries\n // is never allowed to exceed MAX_CALL_HISTORY_LENGTH. A loop is used for correctness.\n while (Object.keys(draft.incomingCallsEnded).length >= MAX_CALL_HISTORY_LENGTH) {\n delete draft.incomingCallsEnded[findOldestCallEnded(draft.incomingCallsEnded)];\n }\n draft.incomingCallsEnded[callId] = call;\n }\n });\n }\n public setDeviceManagerIsSpeakerSelectionAvailable(isSpeakerSelectionAvailable: boolean): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.isSpeakerSelectionAvailable = isSpeakerSelectionAvailable;\n });\n }\n public setDeviceManagerSelectedMicrophone(selectedMicrophone?: AudioDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedMicrophone = selectedMicrophone;\n });\n }\n public setDeviceManagerSelectedSpeaker(selectedSpeaker?: AudioDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedSpeaker = selectedSpeaker;\n });\n }\n public setDeviceManagerSelectedCamera(selectedCamera?: VideoDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedCamera = selectedCamera;\n });\n }\n public setDeviceManagerCameras(cameras: VideoDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n /**\n * SDK initializes cameras with one dummy camera with value { id: 'camera:id', name: '', deviceType: 'USBCamera' } immediately after\n * camera permissions are granted. So selectedCamera will have this value before the actual cameras are obtained. Therefore we should reset\n * selectedCamera to the first camera when there are cameras AND when current selectedCamera does not exist in the new array of cameras *\n */\n if (cameras.length > 0 && !cameras.some(camera => camera.id === draft.deviceManager.selectedCamera?.id)) {\n draft.deviceManager.selectedCamera = cameras[0];\n }\n draft.deviceManager.cameras = cameras;\n });\n }\n public setDeviceManagerMicrophones(microphones: AudioDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.microphones = microphones;\n });\n }\n public setDeviceManagerSpeakers(speakers: AudioDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.speakers = speakers;\n });\n }\n public setDeviceManagerDeviceAccess(deviceAccess: DeviceAccess): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.deviceAccess = deviceAccess;\n });\n }\n public setDeviceManagerUnparentedView(localVideoStream: LocalVideoStreamState, view: VideoStreamRendererViewState | undefined): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.unparentedViews.push({\n source: localVideoStream.source,\n mediaStreamType: localVideoStream.mediaStreamType,\n view: view\n });\n });\n }\n public deleteDeviceManagerUnparentedView(localVideoStream: LocalVideoStreamState): void {\n this.modifyState((draft: CallClientState) => {\n const foundIndex = draft.deviceManager.unparentedViews.findIndex(stream => stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType);\n if (foundIndex !== -1) {\n draft.deviceManager.unparentedViews.splice(foundIndex, 1);\n }\n });\n }\n public getAndIncrementAtomicId(): number {\n const id = this._atomicId;\n this._atomicId++;\n return id;\n }\n /**\n * Tees any errors encountered in an async function to the state.\n *\n * @param action Async function to execute.\n * @param target The error target to tee error to.\n * @returns Result of calling `f`. Also re-raises any exceptions thrown from `f`.\n * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.\n */\n public withAsyncErrorTeedToState<Args extends unknown[], R>(action: (...args: Args) => Promise<R>, target: CallErrorTarget): (...args: Args) => Promise<R> {\n return async (...args: Args): Promise<R> => {\n try {\n return await action(...args);\n } catch (error) {\n const callError = toCallError(target, error);\n this.setLatestError(target, callError);\n throw callError;\n }\n };\n }\n\n /**\n * Tees any errors encountered in an function to the state.\n *\n * @param action Function to execute.\n * @param target The error target to tee error to.\n * @returns Result of calling `f`. Also re-raises any exceptions thrown from `f`.\n * @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.\n */\n public withErrorTeedToState<Args extends unknown[], R>(action: (...args: Args) => R, target: CallErrorTarget): (...args: Args) => R {\n return (...args: Args): R => {\n try {\n callingStatefulLogger.info(`Calling stateful client target function called: ${target}`);\n return action(...args);\n } catch (error) {\n const callError = toCallError(target, error);\n this.setLatestError(target, callError);\n throw callError;\n }\n };\n }\n\n /**\n * Tees direct errors to state.\n * @remarks\n * This is typically used for errors that are caught and intended to be shown to the user.\n *\n * @param error The raw error to report.\n * @param target The error target to tee error to.\n *\n * @private\n */\n public teeErrorToState = (error: Error, target: CallErrorTarget): void => {\n const callError = toCallError(target, error);\n this.setLatestError(target, callError);\n };\n private setLatestError(target: CallErrorTarget, error: CallError): void {\n this.modifyState((draft: CallClientState) => {\n draft.latestErrors[target] = error;\n });\n }\n}\nconst toCallError = (target: CallErrorTarget, error: unknown): CallError => {\n if (error instanceof Error) {\n return new CallError(target, error);\n }\n return new CallError(target, new Error((error as string)));\n};\nconst findOldestCallEnded = (calls: {\n [key: string]: {\n endTime?: Date;\n };\n}): string => {\n const callEntries = Object.entries(calls);\n let [oldestCallId, oldestCall] = callEntries[0];\n if (oldestCall.endTime === undefined) {\n return oldestCallId;\n }\n for (const [callId, call] of callEntries.slice(1)) {\n if (call.endTime === undefined) {\n return callId;\n }\n if ((call.endTime?.getTime() ?? 0) < (oldestCall.endTime?.getTime() ?? 0)) {\n [oldestCallId, oldestCall] = [callId, call];\n }\n }\n return oldestCallId;\n};\"../../acs-ui-common/src\""]}
@@ -9,8 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  step((generator = generator.apply(thisArg, _arguments || [])).next());
10
10
  });
11
11
  };
12
- /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(call-transfer) */
13
- import { Features } from '@azure/communication-calling';
14
12
  /**
15
13
  * @private
16
14
  */
@@ -94,18 +92,6 @@ export class ProxyCallCommon {
94
92
  {
95
93
  // these are mini version of Proxy object - if it grows too big, a real Proxy object should be used.
96
94
  return this._context.withErrorTeedToState((...args) => {
97
- /* @conditional-compile-remove(close-captions) */
98
- if (args[0] === Features.TeamsCaptions) {
99
- const captionsFeature = target.feature(Features.TeamsCaptions);
100
- const proxyFeature = new ProxyTeamsCaptionsFeature(this._context, target);
101
- return new Proxy(captionsFeature, proxyFeature);
102
- }
103
- /* @conditional-compile-remove(call-transfer) */
104
- if (args[0] === Features.Transfer) {
105
- const transferFeature = target.feature(Features.Transfer);
106
- const proxyFeature = new ProxyTransferCallFeature(this._context, target);
107
- return new Proxy(transferFeature, proxyFeature);
108
- }
109
95
  return target.feature(...args);
110
96
  }, 'Call.feature');
111
97
  }
@@ -114,83 +100,4 @@ export class ProxyCallCommon {
114
100
  }
115
101
  }
116
102
  }
117
- /* @conditional-compile-remove(close-captions) */
118
- /**
119
- * @private
120
- */
121
- class ProxyTeamsCaptionsFeature {
122
- constructor(context, call) {
123
- this._context = context;
124
- this._call = call;
125
- }
126
- get(target, prop) {
127
- switch (prop) {
128
- case 'startCaptions':
129
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter(this, void 0, void 0, function* () {
130
- var _a, _b;
131
- this._context.setStartCaptionsInProgress(this._call.id, true);
132
- const ret = yield target.startCaptions(...args);
133
- this._context.setSelectedSpokenLanguage(this._call.id, (_b = (_a = args[0]) === null || _a === void 0 ? void 0 : _a.spokenLanguage) !== null && _b !== void 0 ? _b : 'en-us');
134
- return ret;
135
- }), 'Call.feature');
136
- break;
137
- case 'stopCaptions':
138
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter(this, void 0, void 0, function* () {
139
- const ret = yield target.stopCaptions(...args);
140
- this._context.setIsCaptionActive(this._call.id, false);
141
- this._context.setStartCaptionsInProgress(this._call.id, false);
142
- return ret;
143
- }), 'Call.feature');
144
- case 'setSpokenLanguage':
145
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter(this, void 0, void 0, function* () {
146
- const ret = yield target.setSpokenLanguage(...args);
147
- this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
148
- return ret;
149
- }), 'Call.feature');
150
- case 'setCaptionLanguage':
151
- return this._context.withAsyncErrorTeedToState((...args) => __awaiter(this, void 0, void 0, function* () {
152
- const ret = yield target.setCaptionLanguage(...args);
153
- this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
154
- return ret;
155
- }), 'Call.feature');
156
- default:
157
- return Reflect.get(target, prop);
158
- }
159
- }
160
- }
161
- /* @conditional-compile-remove(call-transfer) */
162
- /**
163
- * @private
164
- */
165
- class ProxyTransferCallFeature {
166
- constructor(context, call) {
167
- this._context = context;
168
- this._call = call;
169
- }
170
- get(target, prop) {
171
- switch (prop) {
172
- case 'on':
173
- return (...args) => {
174
- const isTransferRequested = args[0] === 'transferRequested';
175
- if (isTransferRequested) {
176
- const listener = args[1];
177
- const newListener = (args) => {
178
- const newArgs = Object.assign(Object.assign({}, args), { accept: (acceptOptions) => {
179
- const acceptedTransferCall = args.accept(acceptOptions);
180
- this._context.setAcceptedTransfer(this._call.id, {
181
- callId: acceptedTransferCall.id,
182
- timestamp: new Date()
183
- });
184
- return acceptedTransferCall;
185
- } });
186
- listener(newArgs);
187
- };
188
- return target.on('transferRequested', newListener);
189
- }
190
- };
191
- default:
192
- return Reflect.get(target, prop);
193
- }
194
- }
195
- }
196
103
  //# sourceMappingURL=CallDeclarativeCommon.js.map