@azure/communication-react 1.3.3-alpha-202210290014.0 → 1.4.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 (765) hide show
  1. package/CHANGELOG.json +1800 -0
  2. package/CHANGELOG.md +82 -5
  3. package/dist/communication-react.d.ts +28 -1535
  4. package/dist/dist-cjs/communication-react/index.js +5530 -8904
  5. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/identifier.js +24 -7
  13. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  14. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js +1 -2
  16. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/logEvent.js +0 -2
  18. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  19. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  20. package/dist/dist-esm/acs-ui-common/src/safeStringify.js +1 -2
  21. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  22. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  23. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  24. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  25. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +0 -4
  26. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -5
  27. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -13
  29. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +9 -27
  30. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +46 -22
  32. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +0 -9
  34. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +34 -71
  35. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  37. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -5
  39. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -29
  40. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js +1 -4
  42. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  43. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +0 -2
  44. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -4
  45. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  46. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +7 -17
  47. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  48. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js +0 -2
  49. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  50. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js +0 -2
  51. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  52. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +3 -8
  53. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  54. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  55. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js +0 -2
  57. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +2 -4
  59. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  60. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  61. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +4 -13
  62. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  63. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +5 -21
  64. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  65. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -12
  66. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js +70 -70
  67. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -17
  69. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +1 -4
  70. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  71. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +0 -4
  72. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +10 -60
  73. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +72 -65
  75. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  76. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js +1 -2
  77. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  78. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -1
  80. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +8 -19
  81. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  82. package/dist/dist-esm/calling-stateful-client/src/Converter.js +8 -11
  83. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  84. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +55 -58
  85. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  86. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +16 -16
  87. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.d.ts +2 -1
  89. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js +1 -4
  90. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +18 -11
  92. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  93. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  94. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +0 -1
  95. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +1 -12
  96. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  97. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +1 -4
  98. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  100. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +2 -14
  101. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  102. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +0 -23
  103. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +36 -36
  104. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +23 -21
  106. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js +1 -4
  108. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  109. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -5
  110. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  111. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +0 -2
  112. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  113. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -6
  114. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  115. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  116. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  117. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +18 -21
  118. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  119. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -4
  120. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +13 -11
  121. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  122. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  123. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  124. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js +1 -4
  125. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  126. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  127. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +13 -48
  128. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  129. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  130. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  131. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  132. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js +0 -2
  133. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  134. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +8 -5
  135. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  136. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +2 -7
  137. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  138. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  139. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  140. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js +1 -4
  141. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  142. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +16 -17
  143. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  144. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  145. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +15 -16
  146. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  147. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  148. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +68 -59
  149. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  150. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +121 -110
  151. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  152. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +0 -2
  153. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  154. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  155. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js +0 -2
  156. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  157. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js +0 -2
  158. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  159. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js +0 -2
  160. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  161. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js +0 -2
  162. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  163. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js +0 -2
  164. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  165. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js +0 -2
  166. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  167. package/dist/dist-esm/communication-react/src/index.d.ts +0 -16
  168. package/dist/dist-esm/communication-react/src/index.js +0 -10
  169. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  170. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  171. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/CameraButton.js +9 -10
  173. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +8 -7
  175. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  176. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +17 -38
  177. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  178. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +5 -12
  179. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  180. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +31 -26
  181. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  182. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +28 -63
  183. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  184. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +12 -9
  185. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  186. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  187. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  188. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +10 -19
  189. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +3 -4
  191. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  193. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  195. package/dist/dist-esm/react-components/src/components/ControlBar.js +15 -13
  196. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  197. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +4 -14
  198. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  199. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +15 -6
  200. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js +8 -5
  202. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js.map +1 -1
  203. package/dist/dist-esm/react-components/src/components/DevicesButton.js +30 -7
  204. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +48 -48
  206. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  207. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +6 -2
  209. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  210. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +9 -12
  211. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  212. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +23 -11
  213. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  214. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +3 -4
  215. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  216. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  217. package/dist/dist-esm/react-components/src/components/EndCallButton.js +8 -5
  218. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  219. package/dist/dist-esm/react-components/src/components/ErrorBar.js +6 -4
  220. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  221. package/dist/dist-esm/react-components/src/components/FileCard.js +4 -4
  222. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +1 -1
  224. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +10 -14
  226. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  227. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +8 -10
  228. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  229. package/dist/dist-esm/react-components/src/components/GridLayout.js +44 -55
  230. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +3 -4
  232. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  233. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +8 -7
  234. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  235. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +12 -6
  236. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  237. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +5 -3
  238. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  239. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +9 -28
  240. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +36 -27
  242. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +1 -23
  244. package/dist/dist-esm/react-components/src/components/MessageThread.js +110 -182
  245. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  246. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +11 -17
  247. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  248. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +137 -137
  249. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  250. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -15
  251. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +16 -19
  252. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/components/ParticipantList.js +9 -25
  254. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  255. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +31 -44
  256. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  257. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  258. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  259. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  260. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  261. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +5 -18
  262. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  263. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +4 -6
  264. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  265. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +12 -6
  266. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  267. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +0 -35
  268. package/dist/dist-esm/react-components/src/components/SendBox.js +10 -37
  269. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  270. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +3 -4
  271. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  273. package/dist/dist-esm/react-components/src/components/StreamMedia.js +4 -5
  274. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/components/SystemMessage.js +4 -2
  276. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +1 -2
  278. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +16 -28
  279. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  280. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +9 -15
  281. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  283. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  284. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +6 -8
  285. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  286. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  287. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  288. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +6 -13
  289. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  290. package/dist/dist-esm/react-components/src/components/VideoGallery.js +44 -97
  291. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  292. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -7
  293. package/dist/dist-esm/react-components/src/components/VideoTile.js +31 -28
  294. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  295. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js +10 -4
  296. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js.map +1 -1
  297. package/dist/dist-esm/react-components/src/components/index.d.ts +0 -13
  298. package/dist/dist-esm/react-components/src/components/index.js +0 -10
  299. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  300. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +12 -3
  301. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  302. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js +0 -2
  303. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  304. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  306. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js +0 -2
  308. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  309. package/dist/dist-esm/react-components/src/components/styles/IconButton.styles.js.map +1 -1
  310. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +4 -1
  311. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  312. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  313. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +11 -10
  314. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  315. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +1 -0
  316. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  318. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +10 -2
  319. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  320. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +3 -0
  321. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  322. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  323. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +1 -0
  324. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  326. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +39 -18
  327. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  328. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  329. package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js.map +1 -1
  330. package/dist/dist-esm/react-components/src/components/utils/Datetime.js +4 -10
  331. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  332. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -6
  333. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  334. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  335. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js +5 -10
  336. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  337. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +7 -7
  338. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  340. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  341. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  342. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  343. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +3 -1
  344. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  345. package/dist/dist-esm/react-components/src/components/utils.js +11 -15
  346. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  347. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +13 -21
  348. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  349. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  350. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  351. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  352. package/dist/dist-esm/react-components/src/index.d.ts +0 -2
  353. package/dist/dist-esm/react-components/src/index.js +0 -2
  354. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  355. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -26
  356. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  357. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  358. package/dist/dist-esm/react-components/src/localization/locales/index.js +42 -16
  359. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  360. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +8 -7
  361. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  362. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -12
  363. package/dist/dist-esm/react-components/src/theming/icons.js +12 -101
  364. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  365. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  366. package/dist/dist-esm/react-components/src/theming/themeUtils.js +1 -4
  367. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  368. package/dist/dist-esm/react-components/src/theming/themes.js +0 -2
  369. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +0 -7
  371. package/dist/dist-esm/react-components/src/types/ChatMessage.js +0 -2
  372. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  373. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  374. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js +0 -2
  375. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  376. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -3
  377. package/dist/dist-esm/react-components/src/types/OnRender.js +0 -2
  378. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  379. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js +0 -2
  380. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  382. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -6
  383. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  384. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  385. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -81
  386. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +19 -105
  387. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  388. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -120
  389. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  390. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +4 -28
  391. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +41 -148
  392. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  393. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +1 -44
  394. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -11
  395. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  396. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  397. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  398. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  399. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -1
  400. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  401. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +0 -3
  402. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +10 -74
  403. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  404. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -2
  405. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +13 -136
  406. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  407. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js +0 -21
  408. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +1 -1
  409. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js +0 -23
  410. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +1 -1
  411. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +4 -5
  412. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  413. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +3 -3
  414. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +23 -35
  416. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  417. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +19 -64
  418. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  419. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +21 -16
  420. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  421. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +14 -4
  422. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  423. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  424. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  425. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +3 -4
  426. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  427. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  428. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  429. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -1
  430. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  431. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +4 -41
  432. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  433. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +2 -5
  434. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  435. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +8 -12
  436. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  437. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +2 -5
  438. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  439. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -3
  440. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  441. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +9 -7
  442. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  443. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +6 -29
  444. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  445. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  446. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  447. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  448. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -2
  449. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  450. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +0 -1
  451. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +4 -10
  452. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  453. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -7
  454. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +12 -68
  455. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  456. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +0 -1
  457. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +8 -21
  458. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  459. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +2 -2
  460. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  461. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  462. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  463. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  464. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -2
  465. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  466. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  467. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  468. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  469. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  470. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  471. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  472. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  473. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +2 -2
  474. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +6 -13
  475. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  476. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +1 -1
  477. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -3
  478. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  479. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +4 -4
  480. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +0 -2
  481. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  482. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  483. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +2 -4
  484. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  485. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  486. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  487. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  488. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +2 -2
  489. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +2 -2
  490. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  491. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  492. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  493. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  494. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +2 -2
  495. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  496. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  497. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  498. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +6 -2
  499. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  500. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +6 -2
  501. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  502. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js +0 -2
  503. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  504. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +2 -4
  505. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  506. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +4 -4
  507. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  508. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +4 -3
  509. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  510. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  511. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  512. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  513. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js +0 -2
  514. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  515. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +1 -0
  516. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  517. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +3 -23
  518. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js +0 -2
  519. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  520. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -1
  521. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +17 -51
  522. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  523. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  524. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +4 -78
  525. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +16 -74
  526. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  527. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +0 -1
  528. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +16 -43
  529. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
  530. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.d.ts +0 -2
  531. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +12 -34
  532. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
  533. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js +1 -1
  534. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js.map +1 -1
  535. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js +7 -11
  536. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  537. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js +0 -2
  538. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  539. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js +6 -3
  540. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js.map +1 -1
  541. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js +1 -1
  542. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +1 -1
  543. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.d.ts +0 -1
  544. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +1 -1
  545. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -32
  546. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  547. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -22
  548. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +10 -138
  549. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  550. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +0 -56
  551. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  552. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -9
  553. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -36
  554. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  555. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -9
  556. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -34
  557. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  558. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +2 -4
  559. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  560. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js +21 -67
  561. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +1 -1
  562. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js +1 -2
  563. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  564. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +0 -1
  565. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  566. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -3
  567. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  568. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -11
  569. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -10
  570. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  571. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +0 -2
  572. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  573. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -20
  574. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +2 -8
  575. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  576. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +5 -3
  577. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  578. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +9 -41
  579. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  580. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  581. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  582. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +0 -9
  583. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +35 -108
  584. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  585. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  586. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -156
  587. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  588. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -13
  589. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js +0 -2
  590. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  591. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -7
  592. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  593. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
  594. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +6 -18
  595. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  596. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js +0 -2
  597. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js.map +1 -1
  598. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  599. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +6 -6
  600. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  601. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +1 -5
  602. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  603. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  604. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -3
  605. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  606. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +6 -2
  607. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  608. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -5
  609. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +6 -17
  610. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  611. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +4 -10
  612. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  613. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +14 -6
  614. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  615. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +5 -3
  616. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  617. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +6 -22
  618. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  619. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  620. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  621. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +8 -6
  622. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  623. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +1 -7
  624. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +7 -26
  625. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  626. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +1 -2
  627. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +18 -6
  628. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  629. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +1 -2
  630. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +8 -10
  631. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  632. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  633. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -25
  634. package/dist/dist-esm/react-composites/src/composites/common/icons.js +6 -21
  635. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  636. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js +0 -2
  637. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  638. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +16 -5
  639. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  640. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +51 -12
  641. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  642. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +22 -5
  643. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  644. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +22 -6
  645. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  646. package/dist/dist-esm/react-composites/src/composites/common/utils.js +12 -17
  647. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  648. package/dist/dist-esm/react-composites/src/composites/index.js +0 -2
  649. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  650. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  651. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  652. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  653. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +2 -2
  654. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +2 -2
  655. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +2 -2
  656. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +2 -2
  657. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js +0 -2
  658. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  659. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +2 -2
  660. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +2 -2
  661. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +2 -2
  662. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +2 -2
  663. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +2 -2
  664. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +2 -2
  665. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +2 -2
  666. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +2 -2
  667. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +2 -2
  668. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  669. package/package.json +14 -14
  670. package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.d.ts +0 -69
  671. package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.js +0 -35
  672. package/dist/dist-esm/react-components/src/components/BrowserPermissionDenied.js.map +0 -1
  673. package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.d.ts +0 -75
  674. package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.js +0 -57
  675. package/dist/dist-esm/react-components/src/components/BrowserPermissionDeniedIOS.js.map +0 -1
  676. package/dist/dist-esm/react-components/src/components/DomainPermissions.d.ts +0 -53
  677. package/dist/dist-esm/react-components/src/components/DomainPermissions.js +0 -43
  678. package/dist/dist-esm/react-components/src/components/DomainPermissions.js.map +0 -1
  679. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  680. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  681. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  682. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -32
  683. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -33
  684. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +0 -1
  685. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  686. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  687. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  688. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.d.ts +0 -34
  689. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js +0 -83
  690. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +0 -1
  691. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.d.ts +0 -22
  692. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js +0 -53
  693. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js.map +0 -1
  694. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -60
  695. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  696. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  697. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  698. package/dist/dist-esm/react-components/src/permissions/index.js +0 -4
  699. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  700. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.d.ts +0 -24
  701. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +0 -80
  702. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +0 -1
  703. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.d.ts +0 -27
  704. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js +0 -30
  705. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js.map +0 -1
  706. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  707. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  708. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  709. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -17
  710. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +0 -63
  711. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +0 -1
  712. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  713. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  714. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  715. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.d.ts +0 -16
  716. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js +0 -38
  717. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js.map +0 -1
  718. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -15
  719. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -36
  720. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  721. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -13
  722. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -26
  723. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  724. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  725. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  726. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  727. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.d.ts +0 -67
  728. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js +0 -75
  729. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +0 -1
  730. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.d.ts +0 -13
  731. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js +0 -65
  732. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +0 -1
  733. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  734. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  735. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  736. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  737. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -21
  738. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  739. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  740. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  741. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  742. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  743. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -13
  744. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  745. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -23
  746. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -12
  747. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  748. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  749. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -105
  750. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  751. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  752. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  753. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  754. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  755. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -60
  756. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  757. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  758. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  759. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
  760. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -17
  761. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +0 -42
  762. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +0 -1
  763. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +0 -11
  764. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +0 -40
  765. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import { AudioDeviceInfo, CallDirection, CallEndReason, CallerInfo, CallState as CallStatus, DeviceAccess, DominantSpeakersInfo, LatestMediaDiagnostics, LatestNetworkDiagnostics, MediaStreamType, RemoteParticipantState as RemoteParticipantStatus, ScalingMode, VideoDeviceInfo } from '@azure/communication-calling';
2
- import { ParticipantRole } from '@azure/communication-calling';
3
2
  import { CommunicationUserKind, MicrosoftTeamsUserKind, PhoneNumberKind, UnknownIdentifierKind, CommunicationIdentifierKind } from '@azure/communication-common';
4
3
  /**
5
4
  * State only version of {@link @azure/communication-calling#CallAgent} except calls is moved to be a child directly of
@@ -82,7 +81,6 @@ export interface RemoteVideoStreamState {
82
81
  * Proxy of {@link @azure/communication-calling#RemoteVideoStream.isReceiving}.
83
82
  * @beta
84
83
  */
85
- isReceiving: boolean;
86
84
  /**
87
85
  * {@link VideoStreamRendererView} that is managed by createView/disposeView in {@link StatefulCallClient}
88
86
  * API. This can be undefined if the stream has not yet been rendered and defined after createView creates the view.
@@ -147,10 +145,6 @@ export interface RemoteParticipantState {
147
145
  * Proxy of {@link @azure/communication-calling#RemoteParticipant.isSpeaking}.
148
146
  */
149
147
  isSpeaking: boolean;
150
- /**
151
- * Proxy of {@link @azure/communication-calling#RemoteParticipant.role}.
152
- */
153
- role?: ParticipantRole;
154
148
  }
155
149
  /**
156
150
  * State only version of {@link @azure/communication-calling#Call}. {@link StatefulCallClient} will automatically
@@ -245,10 +239,6 @@ export interface CallState {
245
239
  * Stores the latest call diagnostics.
246
240
  */
247
241
  diagnostics: DiagnosticsCallFeatureState;
248
- /**
249
- * Proxy of {@link @azure/communication-calling#Call.role}.
250
- */
251
- role?: ParticipantRole;
252
242
  }
253
243
  /**
254
244
  * State only version of {@link @azure/communication-calling#IncomingCall}. {@link StatefulCallClient} will
@@ -398,12 +388,6 @@ export interface CallClientState {
398
388
  * See documentation of {@Link CallErrors} for details.
399
389
  */
400
390
  latestErrors: CallErrors;
401
- /**
402
- * A phone number in E.164 format that will be used to represent callers identity.
403
- * For example, using the alternateCallerId to add a participant using PSTN, this number will
404
- * be used as the caller id in the PSTN call.
405
- */
406
- alternateCallerId?: string;
407
391
  }
408
392
  /**
409
393
  * Errors teed from API calls to the Calling SDK.
@@ -446,7 +430,7 @@ export declare class CallError extends Error {
446
430
  *
447
431
  * @public
448
432
  */
449
- export declare type CallErrorTarget = 'Call.addParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject';
433
+ export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopVideo' | 'Call.unmute' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject';
450
434
  /**
451
435
  * State only proxy for {@link @azure/communication-calling#DiagnosticsCallFeature}.
452
436
  *
@@ -1,5 +1,3 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
1
  /**
4
2
  * Error thrown from failed stateful API methods.
5
3
  *
@@ -9,8 +7,7 @@ export class CallError extends Error {
9
7
  constructor(target, innerError, timestamp) {
10
8
  super();
11
9
  this.target = target;
12
- this.innerError = innerError;
13
- // Testing note: It is easier to mock Date::now() than the Date() constructor.
10
+ this.innerError = innerError; // Testing note: It is easier to mock Date::now() than the Date() constructor.
14
11
  this.timestamp = timestamp !== null && timestamp !== void 0 ? timestamp : new Date(Date.now());
15
12
  this.name = 'CallError';
16
13
  this.message = `${this.target}: ${this.innerError.message}`;
@@ -1 +1 @@
1
- {"version":3,"file":"CallClientState.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/CallClientState.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkclC;;;;GAIG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAclC,YAAY,MAAuB,EAAE,UAAiB,EAAE,SAAgB;QACtE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,8EAA8E;QAC9E,IAAI,CAAC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;IAC9D,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n AudioDeviceInfo,\n CallDirection,\n CallEndReason,\n CallerInfo,\n CallState as CallStatus,\n DeviceAccess,\n DominantSpeakersInfo,\n LatestMediaDiagnostics,\n LatestNetworkDiagnostics,\n MediaStreamType,\n RemoteParticipantState as RemoteParticipantStatus,\n ScalingMode,\n VideoDeviceInfo\n} from '@azure/communication-calling';\n/* @conditional-compile-remove(rooms) */\nimport { ParticipantRole } from '@azure/communication-calling';\nimport {\n CommunicationUserKind,\n MicrosoftTeamsUserKind,\n PhoneNumberKind,\n UnknownIdentifierKind,\n CommunicationIdentifierKind\n} from '@azure/communication-common';\n\n/**\n * State only version of {@link @azure/communication-calling#CallAgent} except calls is moved to be a child directly of\n * {@link CallClientState} and not included here. The reason to have CallAgent's state proxied is to provide access to\n * displayName. We don't flatten CallAgent.displayName and put it in CallClientState because it would be ambiguious that\n * displayName is actually reliant on the creation/existence of CallAgent to be available.\n *\n * @public\n */\nexport interface CallAgentState {\n /**\n * Proxy of {@link @azure/communication-calling#CallAgent.displayName}.\n */\n displayName?: string;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#TranscriptionCallFeature}. {@link StatefulCallClient} will\n * automatically listen for transcription state of the call and update the state exposed by {@link StatefulCallClient}\n * accordingly.\n *\n * @public\n */\nexport interface TranscriptionCallFeatureState {\n /**\n * Proxy of {@link @azure/communication-calling#TranscriptionCallFeature.isTranscriptionActive}.\n */\n isTranscriptionActive: boolean;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#RecordingCallFeature}. {@link StatefulCallClient} will\n * automatically listen for recording state of the call and update the state exposed by {@link StatefulCallClient} accordingly.\n *\n * @public\n */\nexport interface RecordingCallFeatureState {\n /**\n * Proxy of {@link @azure/communication-calling#RecordingCallFeature.isRecordingActive}.\n */\n isRecordingActive: boolean;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#LocalVideoStream}.\n *\n * @public\n */\nexport interface LocalVideoStreamState {\n /**\n * Proxy of {@link @azure/communication-calling#LocalVideoStream.source}.\n */\n source: VideoDeviceInfo;\n /**\n * Proxy of {@link @azure/communication-calling#LocalVideoStream.mediaStreamType}.\n */\n mediaStreamType: MediaStreamType;\n /**\n * {@link VideoStreamRendererView} that is managed by createView/disposeView in {@link StatefulCallClient}\n * API. This can be undefined if the stream has not yet been rendered and defined after createView creates the view.\n */\n view?: VideoStreamRendererViewState;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#RemoteVideoStream}.\n *\n * @public\n */\nexport interface RemoteVideoStreamState {\n /**\n * Proxy of {@link @azure/communication-calling#RemoteVideoStream.id}.\n */\n id: number;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteVideoStream.mediaStreamType}.\n */\n mediaStreamType: MediaStreamType;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteVideoStream.isAvailable}.\n */\n isAvailable: boolean;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteVideoStream.isReceiving}.\n * @beta\n */\n /* @conditional-compile-remove(video-stream-is-receiving-flag) */\n isReceiving: boolean;\n /**\n * {@link VideoStreamRendererView} that is managed by createView/disposeView in {@link StatefulCallClient}\n * API. This can be undefined if the stream has not yet been rendered and defined after createView creates the view.\n */\n view?: VideoStreamRendererViewState;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#VideoStreamRendererView}. This property is added to the state exposed\n * by {@link StatefulCallClient} by {@link StatefulCallClient.createView} and removed by {@link StatefulCallClient.disposeView}.\n *\n * @public\n */\nexport interface VideoStreamRendererViewState {\n /**\n * Proxy of {@link @azure/communication-calling#VideoStreamRendererView.scalingMode}.\n */\n scalingMode: ScalingMode;\n /**\n * Proxy of {@link @azure/communication-calling#VideoStreamRendererView.isMirrored}.\n */\n isMirrored: boolean;\n /**\n * Proxy of {@link @azure/communication-calling#VideoStreamRendererView.target}.\n */\n target: HTMLElement;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#RemoteParticipant}. {@link StatefulCallClient} will\n * automatically retrieve RemoteParticipants and add their state to the state exposed by {@link StatefulCallClient}.\n *\n * @public\n */\nexport interface RemoteParticipantState {\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.identifier}.\n */\n identifier: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.displayName}.\n */\n displayName?: string;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.state}.\n */\n state: RemoteParticipantStatus;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.callEndReason}.\n */\n callEndReason?: CallEndReason;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.videoStreams} as an object with\n * {@link RemoteVideoStream} fields keyed by {@link @azure/communication-calling#RemoteVideoStream.id}.\n */\n videoStreams: { [key: number]: RemoteVideoStreamState };\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.isMuted}.\n */\n isMuted: boolean;\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.isSpeaking}.\n */\n isSpeaking: boolean;\n /* @conditional-compile-remove(rooms) */\n /**\n * Proxy of {@link @azure/communication-calling#RemoteParticipant.role}.\n */\n role?: ParticipantRole;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#Call}. {@link StatefulCallClient} will automatically\n * retrieve Call's state and add it to the state exposed by {@link StatefulCallClient}.\n *\n * @public\n */\nexport interface CallState {\n /**\n * Proxy of {@link @azure/communication-calling#Call.id}.\n */\n id: string;\n /**\n * Proxy of {@link @azure/communication-calling#Call.callerInfo}.\n */\n callerInfo: CallerInfo;\n /**\n * Proxy of {@link @azure/communication-calling#Call.state}.\n */\n state: CallStatus;\n /**\n * Proxy of {@link @azure/communication-calling#Call.callEndReason}.\n */\n callEndReason?: CallEndReason;\n /**\n * Proxy of {@link @azure/communication-calling#Call.direction}.\n */\n direction: CallDirection;\n /**\n * Proxy of {@link @azure/communication-calling#Call.isMuted}.\n */\n isMuted: boolean;\n /**\n * Proxy of {@link @azure/communication-calling#Call.isScreenSharingOn}.\n */\n isScreenSharingOn: boolean;\n /**\n * Proxy of {@link @azure/communication-calling#DominantSpeakersInfo }.\n */\n dominantSpeakers?: DominantSpeakersInfo;\n /**\n * Proxy of {@link @azure/communication-calling#Call.localVideoStreams}.\n */\n localVideoStreams: LocalVideoStreamState[];\n /**\n * Proxy of {@link @azure/communication-calling#Call.remoteParticipants}.\n * Object with {@link RemoteParticipant} fields keyed by flattened {@link RemoteParticipantState.identifier}.\n * To obtain a flattened {@link RemoteParticipantState.identifier}, use\n * {@link @azure/communication-react#toFlatCommunicationIdentifier}.\n */\n remoteParticipants: { [keys: string]: RemoteParticipantState };\n /**\n * Stores remote participants that have left the call so that the callEndReason could be retrieved.\n * Object with {@link RemoteParticipant} fields keyed by flattened {@link RemoteParticipantState.identifier}.\n * To obtain a flattened {@link RemoteParticipantState.identifier}, use\n * {@link @azure/communication-react#toFlatCommunicationIdentifier}.\n */\n remoteParticipantsEnded: { [keys: string]: RemoteParticipantState };\n /**\n * Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.\n */\n transcription: TranscriptionCallFeatureState;\n /**\n * Proxy of {@link @azure/communication-calling#RecordingCallFeature}.\n */\n recording: RecordingCallFeatureState;\n /**\n * Stores the currently active screenshare participant's key. If there is no screenshare active, then this will be\n * undefined. You can use this key to access the remoteParticipant data in {@link CallState.remoteParticipants} object.\n *\n * Note this only applies to ScreenShare in RemoteParticipant. A local ScreenShare being active will not affect this\n * property.\n *\n * This property is added by the stateful layer and is not a proxy of SDK state\n */\n screenShareRemoteParticipant?: string;\n /**\n * Stores the local date when the call started on the client. This property is added by the stateful layer and is not\n * a proxy of SDK state.\n */\n startTime: Date;\n /**\n * Stores the local date when the call ended on the client. This property is added by the stateful layer and is not\n * a proxy of SDK state.\n */\n endTime: Date | undefined;\n\n /**\n * Stores the latest call diagnostics.\n */\n diagnostics: DiagnosticsCallFeatureState;\n /* @conditional-compile-remove(rooms) */\n /**\n * Proxy of {@link @azure/communication-calling#Call.role}.\n */\n role?: ParticipantRole;\n}\n\n/**\n * State only version of {@link @azure/communication-calling#IncomingCall}. {@link StatefulCallClient} will\n * automatically detect incoming calls and add their state to the state exposed by {@link StatefulCallClient}.\n *\n * @public\n */\nexport interface IncomingCallState {\n /**\n * Proxy of {@link @azure/communication-calling#IncomingCall.id}.\n */\n id: string;\n /**\n * Proxy of {@link @azure/communication-calling#IncomingCall.callerInfo}.\n */\n callerInfo: CallerInfo;\n /**\n * Set to the state returned by 'callEnded' event on {@link @azure/communication-calling#IncomingCall} when received.\n * This property is added by the stateful layer and is not a proxy of SDK state.\n */\n callEndReason?: CallEndReason;\n /**\n * Stores the local date when the call started on the client. This property is added by the stateful layer and is not\n * a proxy of SDK state.\n */\n startTime: Date;\n /**\n * Stores the local date when the call ended on the client. This property is added by the stateful layer and is not a\n * proxy of SDK state. It is undefined if the call is not ended yet.\n */\n endTime?: Date;\n}\n\n/**\n * This type is meant to encapsulate all the state inside {@link @azure/communication-calling#DeviceManager}. For\n * optional parameters they may not be available until permission is granted by the user. The cameras, microphones,\n * speakers, and deviceAccess states will be empty until the corresponding\n * {@link @azure/communication-calling#DeviceManager}'s getCameras, getMicrophones, getSpeakers, and askDevicePermission\n * APIs are called and completed.\n *\n * @public\n */\nexport type DeviceManagerState = {\n /**\n * Proxy of {@link @azure/communication-calling#DeviceManager.isSpeakerSelectionAvailable}.\n */\n isSpeakerSelectionAvailable: boolean;\n /**\n * Proxy of {@link @azure/communication-calling#DeviceManager.selectedMicrophone}.\n */\n selectedMicrophone?: AudioDeviceInfo;\n /**\n * Proxy of {@link @azure/communication-calling#DeviceManager.selectedSpeaker}.\n */\n selectedSpeaker?: AudioDeviceInfo;\n /**\n * Stores the selected camera device info. This is added by the stateful layer and does not exist in the Calling SDK.\n * It is meant as a convenience to the developer. It must be explicitly set before it has any value and does not\n * persist across instances of the {@link StatefulCallClient}. The developer controls entirely what this value holds\n * at any time.\n */\n selectedCamera?: VideoDeviceInfo;\n /**\n * Stores any cameras data returned from {@link @azure/communication-calling#DeviceManager.getCameras}.\n */\n cameras: VideoDeviceInfo[];\n /**\n * Stores any microphones data returned from {@link @azure/communication-calling#DeviceManager.getMicrophones}.\n */\n microphones: AudioDeviceInfo[];\n /**\n * Stores any speakers data returned from {@link @azure/communication-calling#DeviceManager.getSpeakers}.\n */\n speakers: AudioDeviceInfo[];\n /**\n * Stores deviceAccess data returned from {@link @azure/communication-calling#DeviceManager.askDevicePermission}.\n */\n deviceAccess?: DeviceAccess;\n /**\n * Stores created views that are not associated with any CallState (when {@link StatefulCallClient.createView} is\n * called with undefined callId, undefined participantId, and defined LocalVideoStream).\n *\n * The values in this array are generated internally when {@link StatefulCallClient.createView} is called and are\n * considered immutable.\n */\n unparentedViews: LocalVideoStreamState[];\n};\n\n/**\n * Container for all of the state data proxied by {@link StatefulCallClient}. The calls, callsEnded, incomingCalls, and\n * incomingCallsEnded states will be automatically provided if a callAgent has been created. The deviceManager will be\n * empty initially until populated see {@link DeviceManagerState}. The userId state is provided as a convenience for the\n * developer and is completely controled and set by the developer.\n *\n * @public\n */\nexport interface CallClientState {\n /**\n * Proxy of {@link @azure/communication-calling#CallAgent.calls} as an object with CallState {@link CallState} fields.\n * It is keyed by {@link @azure/communication-calling#Call.id}. Please note that\n * {@link @azure/communication-calling#Call.id} could change. You should not cache the id itself but the entire\n * {@link @azure/communication-calling#Call} and then use the id contained to look up data in this map.\n */\n calls: { [key: string]: CallState };\n /**\n * Calls that have ended are stored here so the callEndReason could be checked.\n * It is an object with {@link @azure/communication-calling#Call.id} keys and {@link CallState} values.\n *\n * Only {@link MAX_CALL_HISTORY_LENGTH} Calls are kept in the history. Oldest calls are evicted if required.\n */\n callsEnded: { [key: string]: CallState };\n /**\n * Proxy of {@link @azure/communication-calling#IncomingCall} as an object with {@link IncomingCall} fields.\n * It is keyed by {@link @azure/communication-calling#IncomingCall.id}.\n */\n incomingCalls: { [key: string]: IncomingCallState };\n /**\n * Incoming Calls that have ended are stored here so the callEndReason could be checked.\n * It is an as an object with {@link @azure/communication-calling#Call.id} keys and {@link IncomingCall} values.\n *\n * Only {@link MAX_CALL_HISTORY_LENGTH} Calls are kept in the history. Oldest calls are evicted if required.\n */\n incomingCallsEnded: { [key: string]: IncomingCallState };\n /**\n * Proxy of {@link @azure/communication-calling#DeviceManager}. Please review {@link DeviceManagerState}.\n */\n deviceManager: DeviceManagerState;\n /**\n * Proxy of {@link @azure/communication-calling#CallAgent}. Please review {@link CallAgentState}.\n */\n callAgent?: CallAgentState;\n /**\n * Stores a userId. This is not used by the {@link StatefulCallClient} and is provided here as a convenience for the\n * developer for easier access to userId. Must be passed in at initialization of the {@link StatefulCallClient}.\n * Completely controlled by the developer.\n */\n userId: CommunicationIdentifierKind;\n /**\n * Stores the latest error for each API method.\n *\n * See documentation of {@Link CallErrors} for details.\n */\n latestErrors: CallErrors;\n /* @conditional-compile-remove(PSTN-calls) */\n /**\n * A phone number in E.164 format that will be used to represent callers identity.\n * For example, using the alternateCallerId to add a participant using PSTN, this number will\n * be used as the caller id in the PSTN call.\n */\n alternateCallerId?: string;\n}\n\n/**\n * Errors teed from API calls to the Calling SDK.\n *\n * Each property in the object stores the latest error for a particular SDK API method.\n *\n * Errors from this object can be cleared using the {@link newClearCallErrorsModifier}.\n * Additionally, errors are automatically cleared when:\n * - The state is cleared.\n * - Subsequent calls to related API methods succeed.\n * See documentation of individual stateful client methods for details on when errors may be automatically cleared.\n *\n * @public\n */\nexport type CallErrors = {\n [target in CallErrorTarget]: CallError;\n};\n\n/**\n * Error thrown from failed stateful API methods.\n *\n * @public\n */\nexport class CallError extends Error {\n /**\n * The API method target that failed.\n */\n public target: CallErrorTarget;\n /**\n * Error thrown by the failed SDK method.\n */\n public innerError: Error;\n /**\n * Timestamp added to the error by the stateful layer.\n */\n public timestamp: Date;\n\n constructor(target: CallErrorTarget, innerError: Error, timestamp?: Date) {\n super();\n this.target = target;\n this.innerError = innerError;\n // Testing note: It is easier to mock Date::now() than the Date() constructor.\n this.timestamp = timestamp ?? new Date(Date.now());\n this.name = 'CallError';\n this.message = `${this.target}: ${this.innerError.message}`;\n }\n}\n\n/**\n * String literal type for all permissible keys in {@Link CallErrors}.\n *\n * @public\n */\nexport type CallErrorTarget =\n | 'Call.addParticipant'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.dispose'\n | 'Call.feature'\n | 'Call.hangUp'\n | 'Call.hold'\n | 'Call.mute'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio'\n | 'Call.off'\n | 'Call.on'\n | 'Call.removeParticipant'\n | 'Call.resume'\n | 'Call.sendDtmf'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio'\n | 'Call.startScreenSharing'\n | 'Call.startVideo'\n | 'Call.stopScreenSharing'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio'\n | 'Call.stopVideo'\n | 'Call.unmute'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio'\n | 'CallAgent.dispose'\n | 'CallAgent.feature'\n | 'CallAgent.join'\n | 'CallAgent.off'\n | 'CallAgent.on'\n | 'CallAgent.startCall'\n | 'CallClient.createCallAgent'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.createTeamsCallAgent'\n | 'CallClient.feature'\n | 'CallClient.getDeviceManager'\n | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo'\n | 'DeviceManager.askDevicePermission'\n | 'DeviceManager.getCameras'\n | 'DeviceManager.getMicrophones'\n | 'DeviceManager.getSpeakers'\n | 'DeviceManager.off'\n | 'DeviceManager.on'\n | 'DeviceManager.selectMicrophone'\n | 'DeviceManager.selectSpeaker'\n | 'IncomingCall.accept'\n | 'IncomingCall.reject';\n\n/**\n * State only proxy for {@link @azure/communication-calling#DiagnosticsCallFeature}.\n *\n * @public\n */\nexport interface DiagnosticsCallFeatureState {\n /**\n * Stores diagnostics related to network conditions.\n */\n network: NetworkDiagnosticsState;\n\n /**\n * Stores diagnostics related to media quality.\n */\n media: MediaDiagnosticsState;\n}\n\n/**\n * State only proxy for {@link @azure/communication-calling#NetworkDiagnostics}.\n *\n * @public\n */\nexport interface NetworkDiagnosticsState {\n latest: LatestNetworkDiagnostics;\n}\n\n/**\n * State only proxy for {@link @azure/communication-calling#MediaDiagnostics}.\n *\n * @public\n */\nexport interface MediaDiagnosticsState {\n latest: LatestMediaDiagnostics;\n}\n"]}
1
+ {"version":3,"file":"CallClientState.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallClientState.ts"],"names":[],"mappings":"AAmdA;;;;GAIG;AAEH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAgBlC,YAAY,MAAuB,EAAE,UAAiB,EAAE,SAAgB;QACtE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,CAAC,8EAA8E;QAE5G,IAAI,CAAC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;IAC9D,CAAC;CAEF"}
@@ -1,6 +1,5 @@
1
1
  import { CommunicationIdentifierKind } from '@azure/communication-common';
2
2
  import { AudioDeviceInfo, DeviceAccess, DominantSpeakersInfo, VideoDeviceInfo } from '@azure/communication-calling';
3
- import { ParticipantRole } from '@azure/communication-calling';
4
3
  import { CallEndReason, CallState as CallStatus, RemoteParticipantState as RemoteParticipantStatus } from '@azure/communication-calling';
5
4
  import { CallState, CallClientState, LocalVideoStreamState, RemoteParticipantState, RemoteVideoStreamState, IncomingCallState, VideoStreamRendererViewState, CallAgentState, CallErrorTarget } from './CallClientState';
6
5
  /**
@@ -33,7 +32,6 @@ export declare class CallContext {
33
32
  setCallRemoteParticipantsEnded(callId: string, addRemoteParticipant: RemoteParticipantState[], removeRemoteParticipant: string[]): void;
34
33
  setCallLocalVideoStream(callId: string, streams: LocalVideoStreamState[]): void;
35
34
  setCallIsMicrophoneMuted(callId: string, isMicrophoneMuted: boolean): void;
36
- setRole(callId: string, role: ParticipantRole): void;
37
35
  setCallDominantSpeakers(callId: string, dominantSpeakers: DominantSpeakersInfo): void;
38
36
  setCallRecordingActive(callId: string, isRecordingActive: boolean): void;
39
37
  setCallTranscriptionActive(callId: string, isTranscriptionActive: boolean): void;
@@ -41,12 +39,10 @@ export declare class CallContext {
41
39
  setLocalVideoStreamRendererView(callId: string, view: VideoStreamRendererViewState | undefined): void;
42
40
  setParticipantState(callId: string, participantKey: string, state: RemoteParticipantStatus): void;
43
41
  setParticipantIsMuted(callId: string, participantKey: string, muted: boolean): void;
44
- setParticipantRole(callId: string, participantKey: string, role: ParticipantRole): void;
45
42
  setParticipantDisplayName(callId: string, participantKey: string, displayName: string): void;
46
43
  setParticipantIsSpeaking(callId: string, participantKey: string, isSpeaking: boolean): void;
47
44
  setParticipantVideoStream(callId: string, participantKey: string, stream: RemoteVideoStreamState): void;
48
45
  setRemoteVideoStreamIsAvailable(callId: string, participantKey: string, streamId: number, isAvailable: boolean): void;
49
- setRemoteVideoStreamIsReceiving(callId: string, participantKey: string, streamId: number, isReceiving: boolean): void;
50
46
  setRemoteVideoStreams(callId: string, participantKey: string, addRemoteVideoStream: RemoteVideoStreamState[], removeRemoteVideoStream: number[]): void;
51
47
  setRemoteVideoStreamRendererView(callId: string, participantKey: string, streamId: number, view: VideoStreamRendererViewState | undefined): void;
52
48
  setIncomingCall(call: IncomingCallState): void;
@@ -1,5 +1,3 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -16,10 +14,8 @@ import { _safeJSONStringify, toFlatCommunicationIdentifier } from "../../acs-ui-
16
14
  import { CallError } from './CallClientState';
17
15
  import { callingStatefulLogger } from './Logger';
18
16
  import { CallIdHistory } from './CallIdHistory';
19
- enableMapSet();
20
- // Needed to generate state diff for verbose logging.
21
- enablePatches();
22
- // TODO: How can we make this configurable?
17
+ enableMapSet(); // Needed to generate state diff for verbose logging.
18
+ enablePatches(); // TODO: How can we make this configurable?
23
19
  /**
24
20
  * @private
25
21
  */
@@ -29,7 +25,8 @@ export const MAX_CALL_HISTORY_LENGTH = 10;
29
25
  */
30
26
  export class CallContext {
31
27
  constructor(userId, maxListeners = 50,
32
- /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId) {
28
+ /* @conditional-compile-remove(PSTN-calls) */
29
+ alternateCallerId) {
33
30
  this._callIdHistory = new CallIdHistory();
34
31
  this._logger = createClientLogger('communication-react:calling-context');
35
32
  this._state = {
@@ -46,7 +43,6 @@ export class CallContext {
46
43
  },
47
44
  callAgent: undefined,
48
45
  userId: userId,
49
- /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: alternateCallerId,
50
46
  latestErrors: {}
51
47
  };
52
48
  this._emitter = new EventEmitter();
@@ -73,8 +69,7 @@ export class CallContext {
73
69
  }
74
70
  offStateChange(handler) {
75
71
  this._emitter.off('stateChanged', handler);
76
- }
77
- // Disposing of the CallAgentDeclarative will not clear the state. If we create a new CallAgentDeclarative, we should
72
+ } // Disposing of the CallAgentDeclarative will not clear the state. If we create a new CallAgentDeclarative, we should
78
73
  // make sure the state is clean because any left over state (if previous CallAgentDeclarative was disposed) may be
79
74
  // invalid.
80
75
  clearCallRelatedState() {
@@ -104,10 +99,7 @@ export class CallContext {
104
99
  existingCall.localVideoStreams = call.localVideoStreams;
105
100
  existingCall.remoteParticipants = call.remoteParticipants;
106
101
  existingCall.transcription.isTranscriptionActive = call.transcription.isTranscriptionActive;
107
- existingCall.recording.isRecordingActive = call.recording.isRecordingActive;
108
- /* @conditional-compile-remove(rooms) */
109
- existingCall.role = call.role;
110
- // We don't update the startTime and endTime if we are updating an existing active call
102
+ existingCall.recording.isRecordingActive = call.recording.isRecordingActive; // We don't update the startTime and endTime if we are updating an existing active call
111
103
  }
112
104
  else {
113
105
  draft.calls[latestCallId] = call;
@@ -126,8 +118,7 @@ export class CallContext {
126
118
  if (call) {
127
119
  call.endTime = new Date();
128
120
  call.callEndReason = callEndReason;
129
- delete draft.calls[latestCallId];
130
- // Performance note: This loop should run only once because the number of entries
121
+ delete draft.calls[latestCallId]; // Performance note: This loop should run only once because the number of entries
131
122
  // is never allowed to exceed MAX_CALL_HISTORY_LENGTH. A loop is used for correctness.
132
123
  while (Object.keys(draft.callsEnded).length >= MAX_CALL_HISTORY_LENGTH) {
133
124
  delete draft.callsEnded[findOldestCallEnded(draft.callsEnded)];
@@ -205,15 +196,6 @@ export class CallContext {
205
196
  }
206
197
  });
207
198
  }
208
- /* @conditional-compile-remove(rooms) */
209
- setRole(callId, role) {
210
- this.modifyState((draft) => {
211
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
212
- if (call) {
213
- call.role = role;
214
- }
215
- });
216
- }
217
199
  setCallDominantSpeakers(callId, dominantSpeakers) {
218
200
  this.modifyState((draft) => {
219
201
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -278,18 +260,6 @@ export class CallContext {
278
260
  }
279
261
  });
280
262
  }
281
- /* @conditional-compile-remove(rooms) */
282
- setParticipantRole(callId, participantKey, role) {
283
- this.modifyState((draft) => {
284
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
285
- if (call) {
286
- const participant = call.remoteParticipants[participantKey];
287
- if (participant) {
288
- participant.role = role;
289
- }
290
- }
291
- });
292
- }
293
263
  setParticipantDisplayName(callId, participantKey, displayName) {
294
264
  this.modifyState((draft) => {
295
265
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -323,8 +293,6 @@ export class CallContext {
323
293
  const existingStream = participant.videoStreams[stream.id];
324
294
  if (existingStream) {
325
295
  existingStream.isAvailable = stream.isAvailable;
326
- /* @conditional-compile-remove(video-stream-is-receiving-flag) */
327
- existingStream.isReceiving = stream.isReceiving;
328
296
  existingStream.mediaStreamType = stream.mediaStreamType;
329
297
  }
330
298
  else {
@@ -348,21 +316,6 @@ export class CallContext {
348
316
  }
349
317
  });
350
318
  }
351
- /* @conditional-compile-remove(video-stream-is-receiving-flag) */
352
- setRemoteVideoStreamIsReceiving(callId, participantKey, streamId, isReceiving) {
353
- this.modifyState((draft) => {
354
- const call = draft.calls[this._callIdHistory.latestCallId(callId)];
355
- if (call) {
356
- const participant = call.remoteParticipants[participantKey];
357
- if (participant) {
358
- const stream = participant.videoStreams[streamId];
359
- if (stream) {
360
- stream.isReceiving = isReceiving;
361
- }
362
- }
363
- }
364
- });
365
- }
366
319
  setRemoteVideoStreams(callId, participantKey, addRemoteVideoStream, removeRemoteVideoStream) {
367
320
  this.modifyState((draft) => {
368
321
  const call = draft.calls[this._callIdHistory.latestCallId(callId)];
@@ -379,8 +332,6 @@ export class CallContext {
379
332
  if (stream) {
380
333
  stream.mediaStreamType = newStream.mediaStreamType;
381
334
  stream.isAvailable = newStream.isAvailable;
382
- /* @conditional-compile-remove(video-stream-is-receiving-flag) */
383
- stream.isReceiving = newStream.isReceiving;
384
335
  }
385
336
  else {
386
337
  participant.videoStreams[newStream.id] = newStream;
@@ -426,8 +377,7 @@ export class CallContext {
426
377
  if (call) {
427
378
  call.endTime = new Date();
428
379
  call.callEndReason = callEndReason;
429
- delete draft.incomingCalls[callId];
430
- // Performance note: This loop should run only once because the number of entries
380
+ delete draft.incomingCalls[callId]; // Performance note: This loop should run only once because the number of entries
431
381
  // is never allowed to exceed MAX_CALL_HISTORY_LENGTH. A loop is used for correctness.
432
382
  while (Object.keys(draft.incomingCallsEnded).length >= MAX_CALL_HISTORY_LENGTH) {
433
383
  delete draft.incomingCallsEnded[findOldestCallEnded(draft.incomingCallsEnded)];
@@ -463,7 +413,7 @@ export class CallContext {
463
413
  * camera permissions are granted. So selectedCamera will have this value before the actual cameras are obtained. Therefore we should reset
464
414
  * selectedCamera to the first camera when there are cameras AND when current selectedCamera does not exist in the new array of cameras *
465
415
  */
466
- if (cameras.length > 0 && !cameras.some((camera) => { var _a; return camera.id === ((_a = draft.deviceManager.selectedCamera) === null || _a === void 0 ? void 0 : _a.id); })) {
416
+ if (cameras.length > 0 && !cameras.some(camera => { var _a; return camera.id === ((_a = draft.deviceManager.selectedCamera) === null || _a === void 0 ? void 0 : _a.id); })) {
467
417
  draft.deviceManager.selectedCamera = cameras[0];
468
418
  }
469
419
  draft.deviceManager.cameras = cameras;
@@ -495,7 +445,7 @@ export class CallContext {
495
445
  }
496
446
  deleteDeviceManagerUnparentedView(localVideoStream) {
497
447
  this.modifyState((draft) => {
498
- const foundIndex = draft.deviceManager.unparentedViews.findIndex((stream) => stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType);
448
+ const foundIndex = draft.deviceManager.unparentedViews.findIndex(stream => stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType);
499
449
  if (foundIndex !== -1) {
500
450
  draft.deviceManager.unparentedViews.splice(foundIndex, 1);
501
451
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CallContext.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/CallContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAMlC,OAAO,EAAe,kBAAkB,EAAE,WAAW,E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AAI,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, VideoDeviceInfo } 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 {\n CallEndReason,\n CallState as CallStatus,\n RemoteParticipantState as RemoteParticipantStatus\n} from '@azure/communication-calling';\nimport { _safeJSONStringify, toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport {\n CallState,\n CallClientState,\n LocalVideoStreamState,\n RemoteParticipantState,\n RemoteVideoStreamState,\n IncomingCallState,\n VideoStreamRendererViewState,\n CallAgentState,\n CallErrors,\n CallErrorTarget,\n CallError\n} from './CallClientState';\nimport { callingStatefulLogger } from './Logger';\nimport { CallIdHistory } from './CallIdHistory';\n\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\n constructor(\n userId: CommunicationIdentifierKind,\n maxListeners = 50,\n /* @conditional-compile-remove(PSTN-calls) */ alternateCallerId?: string\n ) {\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(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\n public getState(): CallClientState {\n return this._state;\n }\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\n public onStateChange(handler: (state: CallClientState) => void): void {\n this._emitter.on('stateChanged', handler);\n }\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\n public setCallAgent(callAgent: CallAgentState): void {\n this.modifyState((draft: CallClientState) => {\n draft.callAgent = callAgent;\n });\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;\n /* @conditional-compile-remove(rooms) */\n existingCall.role = call.role;\n // 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\n public removeCall(callId: string): void {\n this.modifyState((draft: CallClientState) => {\n delete draft.calls[this._callIdHistory.latestCallId(callId)];\n });\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\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\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 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\n public setCallRemoteParticipants(\n callId: string,\n addRemoteParticipant: RemoteParticipantState[],\n removeRemoteParticipant: string[]\n ): 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\n public setCallRemoteParticipantsEnded(\n callId: string,\n addRemoteParticipant: RemoteParticipantState[],\n removeRemoteParticipant: string[]\n ): 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\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 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 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\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\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\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\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\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\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(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\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\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\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\n public setRemoteVideoStreamIsAvailable(\n callId: string,\n participantKey: string,\n streamId: number,\n isAvailable: boolean\n ): 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(\n callId: string,\n participantKey: string,\n streamId: number,\n isReceiving: boolean\n ): 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\n public setRemoteVideoStreams(\n callId: string,\n participantKey: string,\n addRemoteVideoStream: RemoteVideoStreamState[],\n removeRemoteVideoStream: number[]\n ): 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\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\n public setRemoteVideoStreamRendererView(\n callId: string,\n participantKey: string,\n streamId: number,\n view: VideoStreamRendererViewState | undefined\n ): 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\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\n public removeIncomingCall(callId: string): void {\n this.modifyState((draft: CallClientState) => {\n delete draft.incomingCalls[callId];\n });\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\n public setDeviceManagerIsSpeakerSelectionAvailable(isSpeakerSelectionAvailable: boolean): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.isSpeakerSelectionAvailable = isSpeakerSelectionAvailable;\n });\n }\n\n public setDeviceManagerSelectedMicrophone(selectedMicrophone?: AudioDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedMicrophone = selectedMicrophone;\n });\n }\n\n public setDeviceManagerSelectedSpeaker(selectedSpeaker?: AudioDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedSpeaker = selectedSpeaker;\n });\n }\n\n public setDeviceManagerSelectedCamera(selectedCamera?: VideoDeviceInfo): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.selectedCamera = selectedCamera;\n });\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\n public setDeviceManagerMicrophones(microphones: AudioDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.microphones = microphones;\n });\n }\n\n public setDeviceManagerSpeakers(speakers: AudioDeviceInfo[]): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.speakers = speakers;\n });\n }\n\n public setDeviceManagerDeviceAccess(deviceAccess: DeviceAccess): void {\n this.modifyState((draft: CallClientState) => {\n draft.deviceManager.deviceAccess = deviceAccess;\n });\n }\n\n public setDeviceManagerUnparentedView(\n localVideoStream: LocalVideoStreamState,\n view: VideoStreamRendererViewState | undefined\n ): 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\n public deleteDeviceManagerUnparentedView(localVideoStream: LocalVideoStreamState): void {\n this.modifyState((draft: CallClientState) => {\n const foundIndex = draft.deviceManager.unparentedViews.findIndex(\n (stream) =>\n stream.source.id === localVideoStream.source.id && stream.mediaStreamType === localVideoStream.mediaStreamType\n );\n if (foundIndex !== -1) {\n draft.deviceManager.unparentedViews.splice(foundIndex, 1);\n }\n });\n }\n\n public getAndIncrementAtomicId(): number {\n const id = this._atomicId;\n this._atomicId++;\n return id;\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>(\n action: (...args: Args) => Promise<R>,\n target: CallErrorTarget\n ): (...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>(\n action: (...args: Args) => R,\n target: CallErrorTarget\n ): (...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 private setLatestError(target: CallErrorTarget, error: CallError): void {\n this.modifyState((draft: CallClientState) => {\n draft.latestErrors[target] = error;\n });\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};\n\nconst findOldestCallEnded = (calls: { [key: string]: { endTime?: Date } }): 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};\n\"../../acs-ui-common/src\""]}
1
+ {"version":3,"file":"CallContext.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallContext.ts"],"names":[],"mappings":";;;;;;;;;AAIA,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,gCAAgC;AAC5F,OAAO,EAAmM,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC/O,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,CAAC,CAAC,qDAAqD;AAErE,aAAa,EAAE,CAAC,CAAC,2CAA2C;AAE5D;;GAEG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAC1C;;GAEG;AAEH,MAAM,OAAO,WAAW;IAOtB,YAAY,MAAmC,EAAE,YAAY,GAAG,EAAE;IAClE,6CAA6C;IAC7C,iBAA0B;QAJlB,mBAAc,GAAkB,IAAI,aAAa,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OAAO,KAAK,SAAS,EAAE;YAC9B,OAAO,MAAM,CAAC;SACf;QAED,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;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC"}
@@ -1,5 +1,3 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -18,69 +16,78 @@ class ProxyCall {
18
16
  }
19
17
  get(target, prop) {
20
18
  switch (prop) {
21
- case 'mute': {
22
- return this._context.withAsyncErrorTeedToState(function (...args) {
23
- return __awaiter(this, void 0, void 0, function* () {
24
- return yield target.mute(...args);
25
- });
26
- }, 'Call.mute');
27
- }
28
- case 'unmute': {
29
- return this._context.withAsyncErrorTeedToState(function (...args) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- return yield target.unmute(...args);
32
- });
33
- }, 'Call.unmute');
34
- }
35
- case 'startVideo': {
36
- return this._context.withAsyncErrorTeedToState(function (...args) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- return yield target.startVideo(...args);
39
- });
40
- }, 'Call.startVideo');
41
- }
42
- case 'stopVideo': {
43
- return this._context.withAsyncErrorTeedToState(function (...args) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- return yield target.stopVideo(...args);
46
- });
47
- }, 'Call.stopVideo');
48
- }
49
- case 'startScreenSharing': {
50
- return this._context.withAsyncErrorTeedToState(function (...args) {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- return yield target.startScreenSharing(...args);
53
- });
54
- }, 'Call.startScreenSharing');
55
- }
56
- case 'stopScreenSharing': {
57
- return this._context.withAsyncErrorTeedToState(function (...args) {
58
- return __awaiter(this, void 0, void 0, function* () {
59
- return yield target.stopScreenSharing(...args);
60
- });
61
- }, 'Call.stopScreenSharing');
62
- }
63
- case 'hold': {
64
- return this._context.withAsyncErrorTeedToState(function (...args) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- return yield target.hold(...args);
67
- });
68
- }, 'Call.hold');
69
- }
70
- case 'resume': {
71
- return this._context.withAsyncErrorTeedToState(function (...args) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- return yield target.resume(...args);
74
- });
75
- }, 'Call.resume');
76
- }
77
- case 'addParticipant': {
78
- return this._context.withAsyncErrorTeedToState(function (...args) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- return yield target.addParticipant(...args);
81
- });
82
- }, 'Call.addParticipant');
83
- }
19
+ case 'mute':
20
+ {
21
+ return this._context.withAsyncErrorTeedToState(function (...args) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ return yield target.mute(...args);
24
+ });
25
+ }, 'Call.mute');
26
+ }
27
+ case 'unmute':
28
+ {
29
+ return this._context.withAsyncErrorTeedToState(function (...args) {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ return yield target.unmute(...args);
32
+ });
33
+ }, 'Call.unmute');
34
+ }
35
+ case 'startVideo':
36
+ {
37
+ return this._context.withAsyncErrorTeedToState(function (...args) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ return yield target.startVideo(...args);
40
+ });
41
+ }, 'Call.startVideo');
42
+ }
43
+ case 'stopVideo':
44
+ {
45
+ return this._context.withAsyncErrorTeedToState(function (...args) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ return yield target.stopVideo(...args);
48
+ });
49
+ }, 'Call.stopVideo');
50
+ }
51
+ case 'startScreenSharing':
52
+ {
53
+ return this._context.withAsyncErrorTeedToState(function (...args) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ return yield target.startScreenSharing(...args);
56
+ });
57
+ }, 'Call.startScreenSharing');
58
+ }
59
+ case 'stopScreenSharing':
60
+ {
61
+ return this._context.withAsyncErrorTeedToState(function (...args) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ return yield target.stopScreenSharing(...args);
64
+ });
65
+ }, 'Call.stopScreenSharing');
66
+ }
67
+ case 'hold':
68
+ {
69
+ return this._context.withAsyncErrorTeedToState(function (...args) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ return yield target.hold(...args);
72
+ });
73
+ }, 'Call.hold');
74
+ }
75
+ case 'resume':
76
+ {
77
+ return this._context.withAsyncErrorTeedToState(function (...args) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ return yield target.resume(...args);
80
+ });
81
+ }, 'Call.resume');
82
+ }
83
+ case 'addParticipant':
84
+ {
85
+ return this._context.withAsyncErrorTeedToState(function (...args) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ return yield target.addParticipant(...args);
88
+ });
89
+ }, 'Call.addParticipant');
90
+ }
84
91
  default:
85
92
  return Reflect.get(target, prop);
86
93
  }