@azure/communication-react 1.7.0-beta.1 → 1.7.1-alpha-202308170011

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 (1024) hide show
  1. package/dist/communication-react.d.ts +419 -72
  2. package/dist/dist-cjs/communication-react/index.js +5857 -4507
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/areEqual.d.ts +0 -1
  6. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/identifier.js +4 -1
  12. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  13. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  14. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  19. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  20. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  21. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +5 -0
  22. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +11 -2
  23. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  24. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +56 -12
  25. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  26. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +5 -4
  27. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +20 -55
  29. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  30. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +13 -3
  31. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +50 -43
  32. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +2 -2
  34. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  35. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +15 -1
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +5 -2
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +4 -2
  39. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +14 -8
  40. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  42. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  43. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  44. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  46. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +3 -1
  47. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  48. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.d.ts +1 -0
  49. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +55 -14
  50. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  52. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  53. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +6 -3
  54. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  55. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  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 +9 -6
  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.d.ts +7 -3
  61. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +27 -8
  62. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  63. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -1
  64. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +19 -10
  65. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  66. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +31 -7
  67. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  69. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -1
  70. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  71. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +65 -71
  72. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  73. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +43 -1
  74. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +1 -0
  75. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  76. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +6 -1
  77. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +47 -6
  78. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +7 -8
  80. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  81. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +74 -83
  82. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  84. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  85. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -0
  86. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +22 -4
  87. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.d.ts +16 -0
  89. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +24 -0
  90. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -0
  91. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  92. package/dist/dist-esm/calling-stateful-client/src/Converter.js +9 -8
  93. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  94. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +51 -57
  95. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +14 -16
  97. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  98. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +3 -15
  100. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  101. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +1 -1
  102. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  103. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +1 -3
  104. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  106. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.d.ts +17 -0
  107. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js +35 -0
  108. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js.map +1 -0
  109. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  110. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  111. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +2 -0
  112. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +65 -67
  113. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  114. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +33 -31
  115. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  116. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +8 -11
  117. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -1
  118. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +1 -1
  119. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
  120. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +7 -8
  121. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  122. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  123. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +1 -1
  124. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  125. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -3
  126. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  127. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js +6 -7
  128. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  129. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +2 -0
  130. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  131. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  132. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -4
  133. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  134. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  135. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  136. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +13 -14
  137. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  138. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -1
  139. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +3 -10
  140. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  141. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  142. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  143. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js +18 -2
  144. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  145. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  146. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  147. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.d.ts +5 -0
  148. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +66 -26
  149. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  150. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  151. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  152. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  153. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  154. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +3 -7
  155. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  156. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +3 -1
  157. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  158. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  159. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +10 -3
  160. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  161. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  162. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +5 -9
  163. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  164. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  165. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +7 -10
  166. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  167. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  168. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +57 -67
  169. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  170. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +114 -127
  171. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  172. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +3 -1
  173. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  174. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  175. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  176. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  177. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  178. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  179. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  180. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  181. package/dist/dist-esm/communication-react/src/index.d.ts +7 -3
  182. package/dist/dist-esm/communication-react/src/index.js +2 -0
  183. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  184. package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +0 -1
  185. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  186. package/dist/dist-esm/northstar-wrapper/src/index.js +1 -1
  187. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.d.ts +0 -1
  188. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js +3 -6
  189. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js.map +1 -1
  191. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js +4 -10
  193. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.d.ts +0 -1
  195. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js +1 -1
  196. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js.map +1 -1
  197. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.d.ts +0 -1
  198. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js +1 -1
  199. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js.map +1 -1
  200. package/dist/dist-esm/react-components/src/components/Announcer.d.ts +0 -1
  201. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  202. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -1
  203. package/dist/dist-esm/react-components/src/components/CameraButton.js +8 -19
  204. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/Caption.d.ts +0 -1
  206. package/dist/dist-esm/react-components/src/components/Caption.js +2 -2
  207. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +6 -2
  209. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +13 -12
  210. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  211. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +0 -1
  212. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +16 -14
  213. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
  214. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +7 -8
  215. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  216. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.d.ts +0 -1
  217. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +36 -17
  218. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  219. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +6 -1
  220. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +18 -9
  221. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  222. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +0 -1
  223. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +27 -35
  224. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +6 -0
  226. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +92 -35
  227. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +1 -1
  229. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +47 -28
  230. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -1
  232. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +1 -1
  233. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.d.ts +0 -1
  234. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  235. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.d.ts +0 -1
  237. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +7 -4
  238. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  239. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.d.ts +0 -1
  240. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +2 -2
  241. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  242. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  244. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  245. package/dist/dist-esm/react-components/src/components/ControlBar.js +10 -14
  246. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +0 -1
  248. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +14 -4
  249. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  250. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.d.ts +0 -1
  251. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +3 -14
  252. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -1
  254. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +4 -10
  255. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -1
  256. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -1
  257. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +14 -31
  258. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -1
  259. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.d.ts +0 -1
  260. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +5 -8
  261. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -1
  262. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -1
  263. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +24 -6
  264. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -1
  265. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -1
  266. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +12 -20
  267. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +1 -1
  268. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +0 -1
  269. package/dist/dist-esm/react-components/src/components/DevicesButton.js +19 -27
  270. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  271. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +0 -1
  272. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +36 -44
  273. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  274. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +4 -4
  275. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  276. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.d.ts +0 -1
  277. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +2 -6
  278. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +0 -1
  280. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +6 -6
  281. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +11 -23
  283. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  284. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +6 -4
  285. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  286. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  287. package/dist/dist-esm/react-components/src/components/EndCallButton.d.ts +0 -1
  288. package/dist/dist-esm/react-components/src/components/EndCallButton.js +3 -7
  289. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  290. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +5 -1
  291. package/dist/dist-esm/react-components/src/components/ErrorBar.js +12 -5
  292. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  293. package/dist/dist-esm/react-components/src/components/FileCard.d.ts +0 -1
  294. package/dist/dist-esm/react-components/src/components/FileCard.js +2 -3
  295. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  296. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +1 -1
  297. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  298. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +33 -6
  299. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +31 -17
  300. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  301. package/dist/dist-esm/react-components/src/components/FileUploadCards.d.ts +0 -1
  302. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +8 -7
  303. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  304. package/dist/dist-esm/react-components/src/components/GridLayout.js +37 -37
  305. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  306. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.d.ts +0 -1
  307. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
  308. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  309. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -1
  310. package/dist/dist-esm/react-components/src/components/HoldButton.js +1 -1
  311. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
  312. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +7 -9
  313. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  314. package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +52 -0
  315. package/dist/dist-esm/react-components/src/components/ImageGallery.js +56 -0
  316. package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +1 -0
  317. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +8 -15
  318. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  319. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.d.ts +0 -1
  320. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +3 -5
  321. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  322. package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +2 -0
  323. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +32 -10
  324. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/MentionPopover.js +30 -23
  326. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
  327. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.d.ts +0 -1
  328. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +23 -36
  329. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  330. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +7 -2
  331. package/dist/dist-esm/react-components/src/components/MessageThread.js +166 -93
  332. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  333. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +0 -1
  334. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +17 -14
  335. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  336. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +94 -101
  337. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  338. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +1 -2
  339. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +15 -17
  340. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  341. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +16 -2
  342. package/dist/dist-esm/react-components/src/components/ParticipantList.js +65 -20
  343. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  344. package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts +1 -2
  345. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +46 -32
  346. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  347. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.d.ts +0 -1
  348. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  349. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  350. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  351. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  352. package/dist/dist-esm/react-components/src/components/RaiseHandButton.d.ts +43 -0
  353. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +45 -0
  354. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -0
  355. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +32 -15
  356. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  357. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +2 -2
  358. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  359. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +2 -2
  360. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  361. package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +0 -1
  362. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +6 -14
  363. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  364. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -1
  365. package/dist/dist-esm/react-components/src/components/SendBox.js +17 -19
  366. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  367. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -1
  368. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +2 -2
  369. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -1
  371. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  372. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +0 -1
  373. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +2 -4
  374. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -1
  375. package/dist/dist-esm/react-components/src/components/StreamMedia.d.ts +0 -1
  376. package/dist/dist-esm/react-components/src/components/StreamMedia.js +3 -3
  377. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  378. package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts +0 -1
  379. package/dist/dist-esm/react-components/src/components/SystemMessage.js +2 -4
  380. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +117 -51
  382. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  383. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +95 -61
  384. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +1 -1
  385. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +0 -1
  386. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +10 -10
  387. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  388. package/dist/dist-esm/react-components/src/components/TypingIndicator.d.ts +0 -1
  389. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +9 -6
  390. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  391. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -1
  392. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +1 -1
  393. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  394. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.d.ts +0 -1
  395. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +1 -1
  396. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  397. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.d.ts +0 -1
  398. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +4 -8
  399. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  400. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +0 -1
  401. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +1 -1
  402. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  403. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +19 -34
  404. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  405. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.d.ts +0 -1
  406. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js +3 -1
  407. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js.map +1 -1
  408. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +0 -1
  409. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +10 -13
  410. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  411. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +0 -1
  412. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +13 -15
  413. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  414. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +6 -3
  415. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -1
  416. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +0 -1
  417. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +34 -15
  418. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  419. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +0 -1
  420. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +10 -10
  421. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  422. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +0 -1
  423. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +67 -24
  424. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  425. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -1
  426. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  427. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  428. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  429. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +0 -1
  430. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +16 -5
  431. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  432. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +8 -6
  433. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  434. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -1
  435. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +2 -4
  436. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
  437. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js +1 -6
  438. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js.map +1 -1
  439. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +1 -1
  440. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +10 -34
  441. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  442. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +2 -11
  443. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -1
  444. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/Layout.styles.js.map +1 -1
  445. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  446. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  447. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -1
  448. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +1 -3
  449. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
  450. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +10 -11
  451. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
  452. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +22 -28
  453. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  454. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +10 -5
  455. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  456. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +19 -29
  457. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  458. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js.map +1 -1
  459. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +40 -24
  460. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  461. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +1 -2
  462. package/dist/dist-esm/react-components/src/components/VideoGallery.js +101 -34
  463. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  464. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +3 -0
  465. package/dist/dist-esm/react-components/src/components/VideoTile.js +58 -54
  466. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  467. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.d.ts +7 -0
  468. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +224 -0
  469. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -0
  470. package/dist/dist-esm/react-components/src/components/index.d.ts +5 -0
  471. package/dist/dist-esm/react-components/src/components/index.js +4 -0
  472. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  473. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -1
  474. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +3 -2
  475. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +12 -4
  476. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  477. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -1
  478. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +3 -12
  479. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  480. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  481. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  482. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  483. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js +1 -3
  484. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  485. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  486. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  487. package/dist/dist-esm/react-components/src/components/styles/IconButton.styles.js.map +1 -1
  488. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.d.ts +70 -0
  489. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +219 -0
  490. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +1 -0
  491. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +1 -4
  492. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  493. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +2 -1
  494. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +1 -1
  495. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  496. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +6 -7
  497. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  498. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +0 -1
  499. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  500. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  501. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +2 -10
  502. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  503. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +1 -1
  504. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +0 -3
  505. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  506. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  507. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +0 -1
  508. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  509. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  510. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
  511. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js +0 -1
  512. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js.map +1 -1
  513. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +3 -17
  514. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  515. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  516. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  517. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  518. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  519. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  520. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +4 -7
  521. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  522. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  523. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -1
  524. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js.map +1 -1
  525. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  526. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  527. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +10 -1
  528. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  529. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +1 -3
  530. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  531. package/dist/dist-esm/react-components/src/components/utils.js +13 -10
  532. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  533. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +8 -6
  534. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  535. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  536. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  537. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  538. package/dist/dist-esm/react-components/src/index.d.ts +1 -2
  539. package/dist/dist-esm/react-components/src/index.js +0 -2
  540. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  541. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +6 -0
  542. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  543. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  544. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +10 -0
  545. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +13 -3
  546. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +10 -0
  547. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +10 -0
  548. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +10 -0
  549. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +10 -0
  550. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +10 -0
  551. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +10 -0
  552. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +10 -0
  553. package/dist/dist-esm/react-components/src/localization/locales/index.js +21 -63
  554. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  555. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +10 -0
  556. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +10 -0
  557. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +10 -0
  558. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +10 -0
  559. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +10 -0
  560. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +10 -0
  561. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +10 -0
  562. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +10 -0
  563. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +10 -0
  564. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +10 -0
  565. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +10 -0
  566. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +10 -0
  567. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +3 -6
  568. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  569. package/dist/dist-esm/react-components/src/theming/icons.d.ts +2 -1
  570. package/dist/dist-esm/react-components/src/theming/icons.js +26 -26
  571. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  572. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -1
  573. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  574. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  575. package/dist/dist-esm/react-components/src/theming/themes.d.ts +1 -0
  576. package/dist/dist-esm/react-components/src/theming/themes.js +6 -2
  577. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  578. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -1
  579. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  580. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  581. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js.map +1 -1
  582. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  583. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -1
  584. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  585. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +10 -3
  586. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  587. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  588. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +7 -1
  589. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  590. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  591. package/dist/dist-esm/react-composites/src/Logger.js.map +1 -1
  592. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -1
  593. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +71 -64
  594. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  595. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +8 -0
  596. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  597. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +11 -14
  598. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +170 -83
  599. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  600. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +82 -12
  601. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +9 -1
  602. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  603. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  604. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  605. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +1 -3
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +4 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +12 -6
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -1
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +4 -2
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +69 -38
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +3 -2
  617. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +29 -64
  618. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  619. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -1
  620. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +133 -141
  621. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  622. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -1
  623. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +1 -7
  624. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  625. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.d.ts +1 -1
  626. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -2
  627. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  628. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -1
  629. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +1 -7
  630. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  631. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.d.ts +0 -1
  632. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +5 -4
  633. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  634. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -1
  635. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +4 -4
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.d.ts +0 -1
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +2 -2
  639. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  640. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.d.ts +0 -1
  641. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +32 -22
  642. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  643. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  644. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +43 -32
  645. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  646. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.d.ts +0 -1
  647. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +25 -34
  648. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  649. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +1 -1
  650. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +73 -40
  651. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  652. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.d.ts +0 -1
  653. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  654. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  655. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +0 -1
  656. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +2 -2
  657. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  658. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.d.ts +0 -1
  659. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +35 -19
  660. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  661. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js.map +1 -1
  662. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +3 -0
  663. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +7 -9
  664. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  665. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +4 -1
  666. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +24 -23
  667. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  668. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.d.ts +0 -1
  669. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  670. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  671. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +3 -1
  672. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +12 -2
  673. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  674. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +6 -3
  675. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +7 -4
  676. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -1
  677. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +0 -1
  678. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +29 -18
  679. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  680. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +0 -1
  681. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +5 -2
  682. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  683. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +0 -1
  684. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +17 -6
  685. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  686. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +0 -1
  687. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +5 -2
  688. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  689. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -1
  690. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +1 -1
  691. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -1
  692. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +0 -1
  693. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +13 -3
  694. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  695. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +8 -8
  696. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  697. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -3
  698. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  699. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +0 -1
  700. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  701. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  702. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  703. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -1
  704. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  705. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +3 -2
  706. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +15 -6
  707. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  708. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +3 -1
  709. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +72 -39
  710. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  711. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +3 -1
  712. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +13 -9
  713. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  714. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +3 -1
  715. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +15 -9
  716. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  717. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -1
  718. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +3 -3
  719. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  720. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.d.ts +0 -1
  721. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +24 -24
  722. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  723. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -1
  724. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +3 -3
  725. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
  726. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  727. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  728. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  729. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +2 -1
  730. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +9 -0
  732. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +8 -0
  733. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  734. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  735. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  736. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  737. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  738. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +11 -0
  739. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.js +14 -0
  740. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.js.map +1 -0
  741. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  742. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  743. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  744. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +2 -2
  745. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +7 -5
  746. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  747. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +4 -1
  748. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -1
  749. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  750. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +7 -4
  751. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  753. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -4
  754. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  755. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +3 -1
  756. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +4 -2
  757. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  758. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +5 -5
  759. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +4 -4
  760. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  761. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  762. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  763. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  764. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +5 -2
  765. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  766. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +6 -2
  767. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  768. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +2 -6
  769. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  770. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +2 -7
  771. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  772. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  773. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +5 -1
  774. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +14 -4
  775. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  776. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +1 -4
  777. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  778. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -1
  779. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +1 -4
  780. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  781. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  782. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +0 -1
  783. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  784. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  785. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  786. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +0 -1
  787. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  788. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +6 -24
  789. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +1 -1
  790. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  791. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  792. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +9 -0
  793. package/dist/dist-esm/{react-components/src/permissions/index.js → react-composites/src/composites/CallComposite/types/ErrorTracking.js} +2 -2
  794. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -0
  795. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +9 -11
  796. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  797. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +21 -0
  798. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +43 -0
  799. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -0
  800. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +6 -16
  801. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +35 -38
  802. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  803. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.d.ts +1 -0
  804. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js +1 -0
  805. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  806. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +0 -1
  807. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +65 -22
  808. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  809. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.d.ts +0 -1
  810. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js +1 -1
  811. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js.map +1 -1
  812. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.d.ts +3 -5
  813. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +12 -32
  814. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  815. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.d.ts +0 -1
  816. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js +3 -6
  817. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js.map +1 -1
  818. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.d.ts +7 -0
  819. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +32 -0
  820. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -0
  821. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  822. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -1
  823. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +51 -12
  824. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  825. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +13 -1
  826. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  827. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -1
  828. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +11 -2
  829. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  830. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  831. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +1 -1
  832. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  833. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  834. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  835. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -1
  836. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  837. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +5 -0
  838. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +6 -0
  839. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  840. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  841. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -1
  842. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +2 -2
  843. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  844. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.d.ts +0 -1
  845. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +3 -5
  846. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  847. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -1
  848. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +65 -20
  849. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  850. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -1
  851. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +1 -1
  852. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +1 -1
  853. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -1
  854. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +3 -5
  855. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +1 -1
  856. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  857. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -2
  858. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +39 -38
  859. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  860. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +15 -20
  861. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  862. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -2
  863. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  864. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  865. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
  866. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.d.ts +0 -1
  867. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +11 -6
  868. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  869. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js.map +1 -1
  870. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  871. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +3 -5
  872. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  873. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +3 -1
  874. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  875. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.d.ts +0 -1
  876. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  877. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +1 -1
  878. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +1 -1
  879. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  880. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
  881. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +6 -6
  882. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +3 -5
  883. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +1 -1
  884. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +2 -6
  885. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  886. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +0 -1
  887. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +9 -9
  888. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  889. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -1
  890. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +23 -25
  891. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
  892. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +1 -1
  893. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -1
  894. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +8 -3
  895. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  896. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +5 -14
  897. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  898. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -1
  899. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +9 -23
  900. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
  901. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
  902. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +0 -1
  903. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +7 -9
  904. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
  905. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +0 -1
  906. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +12 -16
  907. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  908. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +0 -1
  909. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +1 -1
  910. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -1
  911. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +1 -5
  912. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  913. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +6 -2
  914. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +44 -46
  915. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  916. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +32 -25
  917. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  918. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +1 -1
  919. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +75 -50
  920. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  921. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.d.ts +0 -1
  922. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +1 -1
  923. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -1
  924. package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  925. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -1
  926. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +29 -63
  927. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  928. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -1
  929. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -1
  930. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  931. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +0 -1
  932. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +10 -7
  933. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +1 -1
  934. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +1 -1
  935. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.d.ts +0 -1
  936. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +1 -1
  937. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -1
  938. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.d.ts +0 -1
  939. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +15 -13
  940. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  941. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.d.ts +0 -1
  942. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  943. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  944. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.d.ts +0 -1
  945. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +17 -9
  946. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  947. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -1
  948. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +23 -13
  949. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  950. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -1
  951. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +7 -15
  952. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +1 -1
  953. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +1 -1
  954. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +0 -1
  955. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +7 -15
  956. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  957. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +0 -1
  958. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +10 -8
  959. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  960. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +4 -5
  961. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +34 -19
  962. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  963. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  964. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
  965. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +6 -3
  966. package/dist/dist-esm/react-composites/src/composites/common/icons.js +9 -5
  967. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  968. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.d.ts +8 -0
  969. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js +33 -0
  970. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -0
  971. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.d.ts +8 -0
  972. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js +32 -0
  973. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -0
  974. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -1
  975. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  976. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +5 -16
  977. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  978. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +12 -51
  979. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  980. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +6 -29
  981. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  982. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +4 -22
  983. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  984. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  985. package/dist/dist-esm/react-composites/src/composites/common/utils.js +17 -12
  986. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  987. package/dist/dist-esm/react-composites/src/composites/index.d.ts +2 -0
  988. package/dist/dist-esm/react-composites/src/composites/index.js +4 -0
  989. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  990. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  991. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  992. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  993. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +4 -2
  994. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +8 -6
  995. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +4 -2
  996. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +4 -2
  997. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +4 -2
  998. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +4 -2
  999. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +4 -2
  1000. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +4 -2
  1001. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +4 -2
  1002. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  1003. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +4 -2
  1004. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +4 -2
  1005. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +4 -2
  1006. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +4 -2
  1007. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +4 -2
  1008. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +4 -2
  1009. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +4 -2
  1010. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +4 -2
  1011. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +4 -2
  1012. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +4 -2
  1013. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +4 -2
  1014. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +4 -2
  1015. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  1016. package/package.json +21 -22
  1017. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -61
  1018. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  1019. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  1020. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  1021. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  1022. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.d.ts +0 -7
  1023. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js +0 -14
  1024. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"videoGalleryUtils.js","sourceRoot":"","sources":["../../../../../preprocess-dist/calling-component-bindings/src/utils/videoGalleryUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,YAAY,EAAE,6BAA6B,EAAE,mCAAgC;AAGtF,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,gBAAuC,EAAwB,EAAE;;IAC3G,OAAO,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,YAAY,0CAAE,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC5E,CAAC,CAAC;AAEF,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,kBAAwD,EAAmC,EAAE;IAC/I,IAAI,CAAC,kBAAkB,EAAE;QACvB,OAAO,EAAE,CAAC;KACX;IACD,OAAO,mCAAmC,CAAC,UAAU,CAAC,EAAE;QACtD,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC;YACxC;;;eAGG,EAAC,MAAM,CAAC,CAAC,WAAmC,EAAE,EAAE;YACjD,OAAO,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,IAAI,KAAK,aAAa,CAAC;QACzI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,WAAmC,EAAE,EAAE;YAC7C,MAAM,KAAK,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAC;YACrD,OAAO,UAAU,CAAC,6BAA6B,CAAC,WA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,EAAE,CAAC,CAAC,gBAAgB;YAC/B,UAAU,EAAE,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,0CAAE,UAAU;YAC9C,aAAa,EAAE,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,0CAAE,MAAM;SAC9C;KACF,CAAC,CAAA;CAAA,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { DominantSpeakersInfo, RemoteParticipantState as RemoteParticipantConnectionState } from '@azure/communication-calling';\nimport { memoizeFnAll, toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { RemoteParticipantState, RemoteVideoStreamState } from '@internal/calling-stateful-client';\nimport { VideoGalleryRemoteParticipant, VideoGalleryStream } from '@internal/react-components';\nimport memoizeOne from 'memoize-one';\nimport { _isRingingPSTNParticipant } from './callUtils';\nimport { checkIsSpeaking } from './SelectorUtils';\n\n/** @internal */\nexport const _dominantSpeakersWithFlatId = (dominantSpeakers?: DominantSpeakersInfo): undefined | string[] => {\n return dominantSpeakers?.speakersList?.map(toFlatCommunicationIdentifier);\n};\n\n/** @internal */\nexport const _videoGalleryRemoteParticipantsMemo = (remoteParticipants: RemoteParticipantState[] | undefined): VideoGalleryRemoteParticipant[] => {\n if (!remoteParticipants) {\n return [];\n }\n return memoizedAllConvertRemoteParticipant(memoizedFn => {\n return Object.values(remoteParticipants)\n /**\n * hiding participants who are inLobby, idle, or connecting in ACS clients till we can admit users through ACS clients.\n * phone users will be in the connecting state until they are connected to the call.\n */.filter((participant: RemoteParticipantState) => {\n return !['InLobby', 'Idle', 'Connecting', 'Disconnected'].includes(participant.state) || participant.identifier.kind === 'phoneNumber';\n }).map((participant: RemoteParticipantState) => {\n const state = _isRingingPSTNParticipant(participant);\n return memoizedFn(toFlatCommunicationIdentifier(participant.identifier), participant.isMuted, checkIsSpeaking(participant), participant.videoStreams, state, participant.displayName);\n });\n });\n};\nconst memoizedAllConvertRemoteParticipant = memoizeFnAll((userId: string, isMuted: boolean, isSpeaking: boolean, videoStreams: {\n [key: number]: RemoteVideoStreamState;\n}, state: RemoteParticipantConnectionState, displayName?: string): VideoGalleryRemoteParticipant => {\n return convertRemoteParticipantToVideoGalleryRemoteParticipant(userId, isMuted, isSpeaking, videoStreams, state, displayName);\n});\n\n/** @private */\nexport const convertRemoteParticipantToVideoGalleryRemoteParticipant = (userId: string, isMuted: boolean, isSpeaking: boolean, videoStreams: {\n [key: number]: RemoteVideoStreamState;\n}, state: RemoteParticipantConnectionState, displayName?: string): VideoGalleryRemoteParticipant => {\n const rawVideoStreamsArray = Object.values(videoStreams);\n let videoStream: VideoGalleryStream | undefined = undefined;\n let screenShareStream: VideoGalleryStream | undefined = undefined;\n const sdkRemoteVideoStream = Object.values(rawVideoStreamsArray).find(i => i.mediaStreamType === 'Video' && i.isAvailable) || Object.values(rawVideoStreamsArray).find(i => i.mediaStreamType === 'Video');\n const sdkScreenShareStream = Object.values(rawVideoStreamsArray).find(i => i.mediaStreamType === 'ScreenSharing' && i.isAvailable) || Object.values(rawVideoStreamsArray).find(i => i.mediaStreamType === 'ScreenSharing');\n if (sdkRemoteVideoStream) {\n videoStream = convertRemoteVideoStreamToVideoGalleryStream(sdkRemoteVideoStream);\n }\n if (sdkScreenShareStream) {\n screenShareStream = convertRemoteVideoStreamToVideoGalleryStream(sdkScreenShareStream);\n }\n return {\n userId,\n displayName,\n isMuted,\n isSpeaking,\n videoStream,\n screenShareStream,\n isScreenSharingOn: screenShareStream !== undefined && screenShareStream.isAvailable,\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n state\n };\n};\nconst convertRemoteVideoStreamToVideoGalleryStream = (stream: RemoteVideoStreamState): VideoGalleryStream => {\n return {\n id: stream.id,\n isAvailable: stream.isAvailable,\n /* @conditional-compile-remove(video-stream-is-receiving-flag) */\n isReceiving: stream.isReceiving,\n isMirrored: stream.view?.isMirrored,\n renderElement: stream.view?.target,\n /* @conditional-compile-remove(pinned-participants) */\n scalingMode: stream.view?.scalingMode\n };\n};\n\n/** @private */\nexport const memoizeLocalParticipant = memoizeOne((identifier, displayName, isMuted, isScreenSharingOn, localVideoStream) => ({\n userId: identifier,\n displayName: displayName ?? '',\n isMuted: isMuted,\n isScreenSharingOn: isScreenSharingOn,\n videoStream: {\n isAvailable: !!localVideoStream,\n isMirrored: localVideoStream?.view?.isMirrored,\n renderElement: localVideoStream?.view?.target\n }\n}));\"../../../acs-ui-common/src\"\"../../../calling-stateful-client/src\"\"../../../react-components/src\""]}
1
+ {"version":3,"file":"videoGalleryUtils.js","sourceRoot":"","sources":["../../../../../../calling-component-bindings/src/utils/videoGalleryUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,YAAY,EAAE,6BAA6B,EAAE,mCAAgC;AAGtF,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,gBAAuC,EAAwB,EAAE;;IAC3G,OAAO,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,YAAY,0CAAE,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAC5E,CAAC,CAAC;AAEF,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAAG,CACjD,kBAAwD,EACvB,EAAE;IACnC,IAAI,CAAC,kBAAkB,EAAE;QACvB,OAAO,EAAE,CAAC;KACX;IACD,OAAO,mCAAmC,CAAC,CAAC,UAAU,EAAE,EAAE;QACxD,OAAO,CACL,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC;YAC/B;;;eAGG;aACF,M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E,MAAA,MAAM,CAAC,IAAI,0CAAE,WAAW;KACtC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe;AACf,MAAM,CAAC,MAAM,uBAAuB,GAAG,UAAU,CAC/C,CACE,UAAU,EACV,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,gBAAgB;AAChB,wCAAwC,CAAC,IAAI,EAC7C,EAAE;;IAAC,OAAA,CAAC;QACJ,MAAM,EAAE,UAAU;QAClB,WAAW,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE;QAC9B,OAAO,EAAE,OAAO;QAChB,iBAAiB,EAAE,iBAAiB;QACpC,WAAW,EAAE;YACX,WAAW,EAAE,CAAC,CAAC,gBAAgB;YAC/B,UAAU,EAAE,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,0CAAE,UAAU;YAC9C,aAAa,EAAE,MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,0CAAE,MAAM;SAC9C;QACD,wCAAwC;QACxC,IAAI;KACL,CAAC,CAAA;CAAA,CACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n DominantSpeakersInfo,\n RemoteParticipantState as RemoteParticipantConnectionState\n} from '@azure/communication-calling';\nimport { memoizeFnAll, toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { RemoteParticipantState, RemoteVideoStreamState } from '@internal/calling-stateful-client';\nimport { VideoGalleryRemoteParticipant, VideoGalleryStream } from '@internal/react-components';\nimport memoizeOne from 'memoize-one';\nimport { _isRingingPSTNParticipant } from './callUtils';\nimport { checkIsSpeaking } from './SelectorUtils';\nimport { isPhoneNumberIdentifier } from '@azure/communication-common';\n\n/** @internal */\nexport const _dominantSpeakersWithFlatId = (dominantSpeakers?: DominantSpeakersInfo): undefined | string[] => {\n return dominantSpeakers?.speakersList?.map(toFlatCommunicationIdentifier);\n};\n\n/** @internal */\nexport const _videoGalleryRemoteParticipantsMemo = (\n remoteParticipants: RemoteParticipantState[] | undefined\n): VideoGalleryRemoteParticipant[] => {\n if (!remoteParticipants) {\n return [];\n }\n return memoizedAllConvertRemoteParticipant((memoizedFn) => {\n return (\n Object.values(remoteParticipants)\n /**\n * hiding participants who are inLobby, idle, or connecting in ACS clients till we can admit users through ACS clients.\n * phone users will be in the connecting state until they are connected to the call.\n */\n .filter((participant: RemoteParticipantState) => {\n return (\n !['InLobby', 'Idle', 'Connecting', 'Disconnected'].includes(participant.state) ||\n isPhoneNumberIdentifier(participant.identifier)\n );\n })\n .map((participant: RemoteParticipantState) => {\n const state = _isRingingPSTNParticipant(participant);\n return memoizedFn(\n toFlatCommunicationIdentifier(participant.identifier),\n participant.isMuted,\n checkIsSpeaking(participant),\n participant.videoStreams,\n state,\n participant.displayName\n );\n })\n );\n });\n};\n\nconst memoizedAllConvertRemoteParticipant = memoizeFnAll(\n (\n userId: string,\n isMuted: boolean,\n isSpeaking: boolean,\n videoStreams: { [key: number]: RemoteVideoStreamState },\n state: RemoteParticipantConnectionState,\n displayName?: string\n ): VideoGalleryRemoteParticipant => {\n return convertRemoteParticipantToVideoGalleryRemoteParticipant(\n userId,\n isMuted,\n isSpeaking,\n videoStreams,\n state,\n displayName\n );\n }\n);\n\n/** @private */\nexport const convertRemoteParticipantToVideoGalleryRemoteParticipant = (\n userId: string,\n isMuted: boolean,\n isSpeaking: boolean,\n videoStreams: { [key: number]: RemoteVideoStreamState },\n state: RemoteParticipantConnectionState,\n displayName?: string\n): VideoGalleryRemoteParticipant => {\n const rawVideoStreamsArray = Object.values(videoStreams);\n let videoStream: VideoGalleryStream | undefined = undefined;\n let screenShareStream: VideoGalleryStream | undefined = undefined;\n\n const sdkRemoteVideoStream =\n Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'Video' && i.isAvailable) ||\n Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'Video');\n\n const sdkScreenShareStream =\n Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'ScreenSharing' && i.isAvailable) ||\n Object.values(rawVideoStreamsArray).find((i) => i.mediaStreamType === 'ScreenSharing');\n\n if (sdkRemoteVideoStream) {\n videoStream = convertRemoteVideoStreamToVideoGalleryStream(sdkRemoteVideoStream);\n }\n if (sdkScreenShareStream) {\n screenShareStream = convertRemoteVideoStreamToVideoGalleryStream(sdkScreenShareStream);\n }\n\n return {\n userId,\n displayName,\n isMuted,\n isSpeaking,\n videoStream,\n screenShareStream,\n isScreenSharingOn: screenShareStream !== undefined && screenShareStream.isAvailable,\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n state\n };\n};\n\nconst convertRemoteVideoStreamToVideoGalleryStream = (stream: RemoteVideoStreamState): VideoGalleryStream => {\n return {\n id: stream.id,\n isAvailable: stream.isAvailable,\n /* @conditional-compile-remove(video-stream-is-receiving-flag) */\n isReceiving: stream.isReceiving,\n isMirrored: stream.view?.isMirrored,\n renderElement: stream.view?.target,\n /* @conditional-compile-remove(pinned-participants) */\n scalingMode: stream.view?.scalingMode\n };\n};\n\n/** @private */\nexport const memoizeLocalParticipant = memoizeOne(\n (\n identifier,\n displayName,\n isMuted,\n isScreenSharingOn,\n localVideoStream,\n /* @conditional-compile-remove(rooms) */ role\n ) => ({\n userId: identifier,\n displayName: displayName ?? '',\n isMuted: isMuted,\n isScreenSharingOn: isScreenSharingOn,\n videoStream: {\n isAvailable: !!localVideoStream,\n isMirrored: localVideoStream?.view?.isMirrored,\n renderElement: localVideoStream?.view?.target\n },\n /* @conditional-compile-remove(rooms) */\n role\n })\n);\n\"../../../acs-ui-common/src\"\"../../../calling-stateful-client/src\"\"../../../react-components/src\""]}
@@ -3,6 +3,8 @@
3
3
  import { toFlatCommunicationIdentifier } from "../../acs-ui-common/src";
4
4
  import { createSelector } from 'reselect';
5
5
  import { getDisplayName, getDominantSpeakers, getIdentifier, getIsMuted, getIsScreenSharingOn, getLocalVideoStreams, getRemoteParticipants, getScreenShareRemoteParticipant } from './baseSelectors';
6
+ /* @conditional-compile-remove(rooms) */
7
+ import { getRole } from './baseSelectors';
6
8
  /* @conditional-compile-remove(optimal-video-count) */
7
9
  import { getOptimalVideoCount } from './baseSelectors';
8
10
  import { _updateUserDisplayNames } from './utils/callUtils';
@@ -12,17 +14,39 @@ import { _videoGalleryRemoteParticipantsMemo, _dominantSpeakersWithFlatId, conve
12
14
  * Provides data attributes to {@link VideoGallery} component.
13
15
  * @public
14
16
  */
15
- export const videoGallerySelector = createSelector([getScreenShareRemoteParticipant, getRemoteParticipants, getLocalVideoStreams, getIsMuted, getIsScreenSharingOn, getDisplayName, getIdentifier, getDominantSpeakers,
16
- getOptimalVideoCount], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers, /* @conditional-compile-remove(optimal-video-count) */ optimalVideoCount) => {
17
- const screenShareRemoteParticipant = screenShareRemoteParticipantId && remoteParticipants ? remoteParticipants[screenShareRemoteParticipantId] : undefined;
18
- const localVideoStream = localVideoStreams === null || localVideoStreams === void 0 ? void 0 : localVideoStreams.find(i => i.mediaStreamType === 'Video');
17
+ export const videoGallerySelector = createSelector([
18
+ getScreenShareRemoteParticipant,
19
+ getRemoteParticipants,
20
+ getLocalVideoStreams,
21
+ getIsMuted,
22
+ getIsScreenSharingOn,
23
+ getDisplayName,
24
+ getIdentifier,
25
+ getDominantSpeakers,
26
+ /* @conditional-compile-remove(optimal-video-count) */
27
+ getOptimalVideoCount,
28
+ /* @conditional-compile-remove(rooms) */
29
+ getRole
30
+ ], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers,
31
+ /* @conditional-compile-remove(optimal-video-count) */
32
+ optimalVideoCount,
33
+ /* @conditional-compile-remove(rooms) */
34
+ role) => {
35
+ const screenShareRemoteParticipant = screenShareRemoteParticipantId && remoteParticipants
36
+ ? remoteParticipants[screenShareRemoteParticipantId]
37
+ : undefined;
38
+ const localVideoStream = localVideoStreams === null || localVideoStreams === void 0 ? void 0 : localVideoStreams.find((i) => i.mediaStreamType === 'Video');
19
39
  const dominantSpeakerIds = _dominantSpeakersWithFlatId(dominantSpeakers);
20
40
  const dominantSpeakersMap = {};
21
- dominantSpeakerIds === null || dominantSpeakerIds === void 0 ? void 0 : dominantSpeakerIds.forEach((speaker, idx) => dominantSpeakersMap[speaker] = idx);
41
+ dominantSpeakerIds === null || dominantSpeakerIds === void 0 ? void 0 : dominantSpeakerIds.forEach((speaker, idx) => (dominantSpeakersMap[speaker] = idx));
22
42
  const noRemoteParticipants = [];
23
43
  return {
24
- screenShareParticipant: screenShareRemoteParticipant ? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName) : undefined,
25
- localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream),
44
+ screenShareParticipant: screenShareRemoteParticipant
45
+ ? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName)
46
+ : undefined,
47
+ localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream,
48
+ /* @conditional-compile-remove(rooms) */
49
+ role),
26
50
  remoteParticipants: _videoGalleryRemoteParticipantsMemo(updateUserDisplayNamesTrampoline(remoteParticipants ? Object.values(remoteParticipants) : noRemoteParticipants)),
27
51
  dominantSpeakers: dominantSpeakerIds,
28
52
  /* @conditional-compile-remove(optimal-video-count) */
@@ -1 +1 @@
1
- {"version":3,"file":"videoGallerySel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AAO,CAAC,CAAC;IACrF,MAAM,kBAAkB,GAAG,2BAA2B,CAAC,gBAAgB,CAAC,CAAC;IACzE,MAAM,mBAAmB,GAA2B,EAAE,CAAC;IACvD,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,OAAO,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,mBAAmB,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC;IAClF,MAAM,oBAAoB,GAAG,EAAE,CAAC;IAChC,OAAO;QACL,sBAAsB,EAAE,4BAA4B,CAAC,CAAC,CAAC,uDAAuD,CAAC,6BAA6B,CAAC,4BAA4B,CAAC,UAAU,CAAC,EAAE,4BAA4B,CAAC,OAAO,EAAE,eAAe,CAAC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC,YAAY,EAAE,4BAA4B,CAAC,KAAK,EAAE,4BAA4B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS;QAChZ,gBAAgB,EAAE,uBAAuB,CAAC,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;QAChH,kBAAkB,EAAE,mCAAmC,CAAC,gCAAgC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC;QACxK,gBAAgB,EAAE,kBAAkB;QACpC,sDAAsD;QACtD,qBAAqB,EAAE,iBAAiB;KACzC,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,MAAM,gCAAgC,GAAG,CAAC,kBAA4C,EAA4B,EAAE;IAClH,6CAA6C;IAC7C,OAAO,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IACnD,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallClientState, RemoteParticipantState } from '@internal/calling-stateful-client';\nimport { VideoGalleryLocalParticipant, VideoGalleryRemoteParticipant } from '@internal/react-components';\nimport { createSelector } from 'reselect';\nimport { CallingBaseSelectorProps, getDisplayName, getDominantSpeakers, getIdentifier, getIsMuted, getIsScreenSharingOn, getLocalVideoStreams, getRemoteParticipants, getScreenShareRemoteParticipant } from './baseSelectors';\n/* @conditional-compile-remove(optimal-video-count) */\nimport { getOptimalVideoCount } from './baseSelectors';\nimport { _updateUserDisplayNames } from './utils/callUtils';\nimport { checkIsSpeaking } from './utils/SelectorUtils';\nimport { _videoGalleryRemoteParticipantsMemo, _dominantSpeakersWithFlatId, convertRemoteParticipantToVideoGalleryRemoteParticipant, memoizeLocalParticipant } from './utils/videoGalleryUtils';\n\n/**\n * Selector type for {@link VideoGallery} component.\n *\n * @public\n */\nexport type VideoGallerySelector = (state: CallClientState, props: CallingBaseSelectorProps) => {\n screenShareParticipant: VideoGalleryRemoteParticipant | undefined;\n localParticipant: VideoGalleryLocalParticipant;\n remoteParticipants: VideoGalleryRemoteParticipant[];\n dominantSpeakers?: string[];\n /* @conditional-compile-remove(optimal-video-count) */\n optimalVideoCount?: number;\n};\n\n/**\n * Provides data attributes to {@link VideoGallery} component.\n * @public\n */\nexport const videoGallerySelector: VideoGallerySelector = createSelector([getScreenShareRemoteParticipant, getRemoteParticipants, getLocalVideoStreams, getIsMuted, getIsScreenSharingOn, getDisplayName, getIdentifier, getDominantSpeakers, /* @conditional-compile-remove(optimal-video-count) */\ngetOptimalVideoCount], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName: string | undefined, identifier: string, dominantSpeakers, /* @conditional-compile-remove(optimal-video-count) */\noptimalVideoCount) => {\n const screenShareRemoteParticipant = screenShareRemoteParticipantId && remoteParticipants ? remoteParticipants[screenShareRemoteParticipantId] : undefined;\n const localVideoStream = localVideoStreams?.find(i => i.mediaStreamType === 'Video');\n const dominantSpeakerIds = _dominantSpeakersWithFlatId(dominantSpeakers);\n const dominantSpeakersMap: Record<string, number> = {};\n dominantSpeakerIds?.forEach((speaker, idx) => dominantSpeakersMap[speaker] = idx);\n const noRemoteParticipants = [];\n return {\n screenShareParticipant: screenShareRemoteParticipant ? convertRemoteParticipantToVideoGalleryRemoteParticipant(toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier), screenShareRemoteParticipant.isMuted, checkIsSpeaking(screenShareRemoteParticipant), screenShareRemoteParticipant.videoStreams, screenShareRemoteParticipant.state, screenShareRemoteParticipant.displayName) : undefined,\n localParticipant: memoizeLocalParticipant(identifier, displayName, isMuted, isScreenSharingOn, localVideoStream),\n remoteParticipants: _videoGalleryRemoteParticipantsMemo(updateUserDisplayNamesTrampoline(remoteParticipants ? Object.values(remoteParticipants) : noRemoteParticipants)),\n dominantSpeakers: dominantSpeakerIds,\n /* @conditional-compile-remove(optimal-video-count) */\n maxRemoteVideoStreams: optimalVideoCount\n };\n});\nconst updateUserDisplayNamesTrampoline = (remoteParticipants: RemoteParticipantState[]): RemoteParticipantState[] => {\n /* @conditional-compile-remove(PSTN-calls) */\n return _updateUserDisplayNames(remoteParticipants);\n return remoteParticipants;\n};\"../../acs-ui-common/src\"\"../../calling-stateful-client/src\"\"../../react-components/src\""]}
1
+ {"version":3,"file":"videoGallerySelector.js","sourceRoot":"","sources":["../../../../../calling-component-bindings/src/videoGallerySelector.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,6BAA6B,EAAE,gCAAgC;AAGxE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAEL,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,+BAA+B,EAChC,MAAM,iBAAiB,CAAC;AACzB,wCAAwC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,sDAAsD;AACtD,OAAO,EAAE,oB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AE,CAAC;IAChC,OAAO;QACL,sBAAsB,EAAE,4BAA4B;YAClD,CAAC,CAAC,uDAAuD,CACrD,6BAA6B,CAAC,4BAA4B,CAAC,UAAU,CAAC,EACtE,4BAA4B,CAAC,OAAO,EACpC,eAAe,CAAC,4BAA4B,CAAC,EAC7C,4BAA4B,CAAC,YAAY,EACzC,4BAA4B,CAAC,KAAK,EAClC,4BAA4B,CAAC,WAAW,CACzC;YACH,CAAC,CAAC,SAAS;QACb,gBAAgB,EAAE,uBAAuB,CACvC,UAAU,EACV,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,gBAAgB;QAChB,wCAAwC;QACxC,IAAI,CACL;QACD,kBAAkB,EAAE,mCAAmC,CACrD,gCAAgC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAChH;QACD,gBAAgB,EAAE,kBAAkB;QACpC,sDAAsD;QACtD,qBAAqB,EAAE,iBAAiB;KACzC,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,gCAAgC,GAAG,CAAC,kBAA4C,EAA4B,EAAE;IAClH,6CAA6C;IAC7C,OAAO,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IACnD,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallClientState, RemoteParticipantState } from '@internal/calling-stateful-client';\nimport { VideoGalleryLocalParticipant, VideoGalleryRemoteParticipant } from '@internal/react-components';\nimport { createSelector } from 'reselect';\nimport {\n CallingBaseSelectorProps,\n getDisplayName,\n getDominantSpeakers,\n getIdentifier,\n getIsMuted,\n getIsScreenSharingOn,\n getLocalVideoStreams,\n getRemoteParticipants,\n getScreenShareRemoteParticipant\n} from './baseSelectors';\n/* @conditional-compile-remove(rooms) */\nimport { getRole } from './baseSelectors';\n/* @conditional-compile-remove(optimal-video-count) */\nimport { getOptimalVideoCount } from './baseSelectors';\nimport { _updateUserDisplayNames } from './utils/callUtils';\nimport { checkIsSpeaking } from './utils/SelectorUtils';\nimport {\n _videoGalleryRemoteParticipantsMemo,\n _dominantSpeakersWithFlatId,\n convertRemoteParticipantToVideoGalleryRemoteParticipant,\n memoizeLocalParticipant\n} from './utils/videoGalleryUtils';\n\n/**\n * Selector type for {@link VideoGallery} component.\n *\n * @public\n */\nexport type VideoGallerySelector = (\n state: CallClientState,\n props: CallingBaseSelectorProps\n) => {\n screenShareParticipant: VideoGalleryRemoteParticipant | undefined;\n localParticipant: VideoGalleryLocalParticipant;\n remoteParticipants: VideoGalleryRemoteParticipant[];\n dominantSpeakers?: string[];\n /* @conditional-compile-remove(optimal-video-count) */\n optimalVideoCount?: number;\n};\n\n/**\n * Provides data attributes to {@link VideoGallery} component.\n * @public\n */\nexport const videoGallerySelector: VideoGallerySelector = createSelector(\n [\n getScreenShareRemoteParticipant,\n getRemoteParticipants,\n getLocalVideoStreams,\n getIsMuted,\n getIsScreenSharingOn,\n getDisplayName,\n getIdentifier,\n getDominantSpeakers,\n /* @conditional-compile-remove(optimal-video-count) */\n getOptimalVideoCount,\n /* @conditional-compile-remove(rooms) */\n getRole\n ],\n (\n screenShareRemoteParticipantId,\n remoteParticipants,\n localVideoStreams,\n isMuted,\n isScreenSharingOn,\n displayName: string | undefined,\n identifier: string,\n dominantSpeakers,\n /* @conditional-compile-remove(optimal-video-count) */\n optimalVideoCount,\n /* @conditional-compile-remove(rooms) */\n role\n ) => {\n const screenShareRemoteParticipant =\n screenShareRemoteParticipantId && remoteParticipants\n ? remoteParticipants[screenShareRemoteParticipantId]\n : undefined;\n const localVideoStream = localVideoStreams?.find((i) => i.mediaStreamType === 'Video');\n\n const dominantSpeakerIds = _dominantSpeakersWithFlatId(dominantSpeakers);\n const dominantSpeakersMap: Record<string, number> = {};\n dominantSpeakerIds?.forEach((speaker, idx) => (dominantSpeakersMap[speaker] = idx));\n const noRemoteParticipants = [];\n return {\n screenShareParticipant: screenShareRemoteParticipant\n ? convertRemoteParticipantToVideoGalleryRemoteParticipant(\n toFlatCommunicationIdentifier(screenShareRemoteParticipant.identifier),\n screenShareRemoteParticipant.isMuted,\n checkIsSpeaking(screenShareRemoteParticipant),\n screenShareRemoteParticipant.videoStreams,\n screenShareRemoteParticipant.state,\n screenShareRemoteParticipant.displayName\n )\n : undefined,\n localParticipant: memoizeLocalParticipant(\n identifier,\n displayName,\n isMuted,\n isScreenSharingOn,\n localVideoStream,\n /* @conditional-compile-remove(rooms) */\n role\n ),\n remoteParticipants: _videoGalleryRemoteParticipantsMemo(\n updateUserDisplayNamesTrampoline(remoteParticipants ? Object.values(remoteParticipants) : noRemoteParticipants)\n ),\n dominantSpeakers: dominantSpeakerIds,\n /* @conditional-compile-remove(optimal-video-count) */\n maxRemoteVideoStreams: optimalVideoCount\n };\n }\n);\n\nconst updateUserDisplayNamesTrampoline = (remoteParticipants: RemoteParticipantState[]): RemoteParticipantState[] => {\n /* @conditional-compile-remove(PSTN-calls) */\n return _updateUserDisplayNames(remoteParticipants);\n return remoteParticipants;\n};\n\"../../acs-ui-common/src\"\"../../calling-stateful-client/src\"\"../../react-components/src\""]}
@@ -1 +1 @@
1
- {"version":3,"file":"BetaToStableTypes.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/BetaToStableTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// This is for mapping new types from beta, which does not exist in stable sdk.\n// These mappings are necessary to bypass type check of conditional compilation\n// Remove these types when the feature get stabilized in stable sdk\n\n// For example, CallCommon doesn't exist in stable call sdk, so it will be still Call type\n// So we remove CallCommonBeta type in stable\n// In beta, Call | CallCommon = CallCommon because Call is just a super set of CallCommon\n\nimport { Call, CallAgent, IncomingCall } from '@azure/communication-calling';\n/* @conditional-compile-remove(teams-identity-support) */\nimport { TeamsCall as TeamsCallBeta, CallCommon as CallCommonBeta, CallAgentCommon as CallAgentCommonBeta, TeamsCallAgent as TeamsCallAgentBeta, IncomingCallCommon as IncomingCallCommonBeta } from '@azure/communication-calling';\n\n/**\n * @public\n * The common interface for all types of Calls\n */\nexport type CallCommon = Call | /* @conditional-compile-remove(teams-identity-support) */CallCommonBeta;\n\n/**\n * @public\n * The common interface for all types of CallAgents\n */\nexport type CallAgentCommon = CallAgent | /* @conditional-compile-remove(teams-identity-support) */CallAgentCommonBeta;\n\n/**\n * @beta\n */\nexport type TeamsCall = never | /* @conditional-compile-remove(teams-identity-support) */TeamsCallBeta;\n\n/**\n * @beta\n */\nexport type TeamsCallAgent = never | /* @conditional-compile-remove(teams-identity-support) */TeamsCallAgentBeta;\n\n/**\n * @public\n * The common interface for all types of IncomingCalls\n */\nexport type IncomingCallCommon = IncomingCall | /* @conditional-compile-remove(teams-identity-support) */IncomingCallCommonBeta;"]}
1
+ {"version":3,"file":"BetaToStableTypes.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/BetaToStableTypes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// This is for mapping new types from beta, which does not exist in stable sdk.\n// These mappings are necessary to bypass type check of conditional compilation\n// Remove these types when the feature get stabilized in stable sdk\n\n// For example, CallCommon doesn't exist in stable call sdk, so it will be still Call type\n// So we remove CallCommonBeta type in stable\n// In beta, Call | CallCommon = CallCommon because Call is just a super set of CallCommon\n\nimport { Call, CallAgent, IncomingCall } from '@azure/communication-calling';\n/* @conditional-compile-remove(teams-identity-support) */\nimport {\n TeamsCall as TeamsCallBeta,\n CallCommon as CallCommonBeta,\n CallAgentCommon as CallAgentCommonBeta,\n TeamsCallAgent as TeamsCallAgentBeta,\n IncomingCallCommon as IncomingCallCommonBeta\n} from '@azure/communication-calling';\n\n/**\n * @public\n * The common interface for all types of Calls\n */\nexport type CallCommon = Call | /* @conditional-compile-remove(teams-identity-support) */ CallCommonBeta;\n\n/**\n * @public\n * The common interface for all types of CallAgents\n */\nexport type CallAgentCommon = CallAgent | /* @conditional-compile-remove(teams-identity-support) */ CallAgentCommonBeta;\n\n/**\n * @beta\n */\nexport type TeamsCall = never | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallBeta;\n\n/**\n * @beta\n */\nexport type TeamsCallAgent = never | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgentBeta;\n\n/**\n * @public\n * The common interface for all types of IncomingCalls\n */\nexport type IncomingCallCommon =\n | IncomingCall\n | /* @conditional-compile-remove(teams-identity-support) */ IncomingCallCommonBeta;\n"]}
@@ -19,7 +19,7 @@ export declare type IncomingCallManagement = {
19
19
  * @beta
20
20
  * `DeclarativeCallAgent` extends and proxies the {@link @azure/communication-calling#CallAgent}
21
21
  */
22
- export declare type DeclarativeCallAgent = CallAgent & /* @conditional-compile-remove(one-to-n-calling) */ IncomingCallManagement;
22
+ export declare type DeclarativeCallAgent = CallAgent & IncomingCallManagement;
23
23
  /**
24
24
  * Creates a declarative CallAgent by proxying CallAgent with ProxyCallAgent which will track state updates by updating
25
25
  * the given context.
@@ -1 +1 @@
1
- {"version":3,"file":"CallAgentDeclarative.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallAgentDeclarative.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,qBAAqB,EAAyB,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAElH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAwB3D;;;;GAIG;AACH,MAAM,cAAe,SAAQ,oBAAoB;IAE/C,YAAY,SAAoB,EAAE,OAAoB,EAAE,eAAoC;QAC1F,KAAK,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;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AC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;SAC5B;QACD,MAAM,KAAK,CAAC,uFAAuF,CAAC,CAAC;IACvG,CAAC;IACS,cAAc,CAAC,KAAsB,EAAE,IAAiC;QAChF,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;SAC1B;QACD,MAAM,KAAK,CAAC,6FAA6F,CAAC,CAAC;IAC7G,CAAC;IACS,gBAAgB,CAAC,KAAsB,EAAE,IAAkC;QACnF,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;SAC3B;QACD,MAAM,KAAK,CAAC,+FAA+F,CAAC,CAAC;IAC/G,CAAC;IACM,GAAG,CAA4B,MAAiB,EAAE,IAAO;QAC9D,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,SAAoB,EAAE,OAAoB,EAAE,eAAoC,EAAwB,EAAE;IAC7I,qBAAqB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAChD,OAAQ,IAAI,KAAK,CAAC,SAAS,EAAE,IAAI,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,CAAC,CAA0B,CAAC;AACjH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CallAgent } from '@azure/communication-calling';\nimport { clearCallRelatedState, DeclarativeCallCommon, ProxyCallAgentCommon } from './CallAgentDeclarativeCommon';\nimport { CallContext } from './CallContext';\nimport { callDeclaratify } from './CallDeclarative';\n/* @conditional-compile-remove(one-to-n-calling) */\nimport { DeclarativeIncomingCall } from './IncomingCallDeclarative';\nimport { InternalCallContext } from './InternalCallContext';\nimport { _isACSCall, _isACSCallAgent } from './TypeGuards';\nimport { CallAgentCommon, CallCommon } from './BetaToStableTypes';\n\n/* @conditional-compile-remove(one-to-n-calling) */\n/**\n * @beta\n * This contains a readonly array that returns all the active `incomingCalls`.\n * An active incoming call is a call that has not been answered, declined or disconnected.\n */\nexport type IncomingCallManagement = {\n /**\n * @beta\n * @Remark This attribute doesn't exist on the {@link @azure/communication-calling#CallAgent} interface.\n * @returns readonly array of {@link DeclarativeIncomingCall}\n */\n incomingCalls: ReadonlyArray<DeclarativeIncomingCall>;\n};\n\n/**\n * @beta\n * `DeclarativeCallAgent` extends and proxies the {@link @azure/communication-calling#CallAgent}\n */\nexport type DeclarativeCallAgent = CallAgent & /* @conditional-compile-remove(one-to-n-calling) */IncomingCallManagement;\n\n/**\n * ProxyCallAgent proxies CallAgent and saves any returned state in the given context. It will subscribe to all state\n * updates in the CallAgent and in the contained Calls and RemoteParticipants. When dispose is called it will\n * unsubscribe from all state updates.\n */\nclass ProxyCallAgent extends ProxyCallAgentCommon implements ProxyHandler<DeclarativeCallAgent> {\n private _callAgent: CallAgent;\n constructor(callAgent: CallAgent, context: CallContext, internalContext: InternalCallContext) {\n super(context, internalContext);\n this._callAgent = callAgent;\n this.subscribe();\n }\n private subscribe = (): void => {\n this._callAgent.on('callsUpdated', this.callsUpdated);\n this._callAgent.on('incomingCall', this.incomingCall);\n\n // There could be scenario that when ProxyCallAgent is created that the given CallAgent already has Calls. In this\n // case we need to make sure to subscribe to those already existing Calls.\n for (const call of this._callAgent.calls) {\n this.addCall(call);\n }\n };\n protected unsubscribe = (): void => {\n this._callAgent.off('callsUpdated', this.callsUpdated);\n this._callAgent.off('incomingCall', this.incomingCall);\n this.unregisterSubscriber();\n };\n protected callDeclaratify(call: CallCommon, context: CallContext): DeclarativeCallCommon {\n if (_isACSCall(call)) {\n return callDeclaratify(call, context);\n }\n throw new Error('Not reachable code, DeclarativeCallAgent.callDeclaratify must be called with an ACS call.');\n }\n protected startCall(agent: CallAgentCommon, args: Parameters<CallAgent['startCall']>): CallCommon {\n if (_isACSCallAgent(agent)) {\n return agent.startCall(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.startCall must be called with an ACS callAgent.');\n }\n protected joinCall(agent: CallAgentCommon, args: Parameters<CallAgent['join']>): CallCommon {\n if (_isACSCallAgent(agent)) {\n return agent.join(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.joinCall must be called with an ACS callAgent.');\n }\n protected agentSubscribe(agent: CallAgentCommon, args: Parameters<CallAgent['on']>): void {\n if (_isACSCallAgent(agent)) {\n return agent.on(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.agentSubscribe must be called with an ACS callAgent.');\n }\n protected agentUnsubscribe(agent: CallAgentCommon, args: Parameters<CallAgent['off']>): void {\n if (_isACSCallAgent(agent)) {\n return agent.off(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.agentUnsubscribe must be called with an ACS callAgent.');\n }\n public get<P extends keyof CallAgent>(target: CallAgent, prop: P): any {\n return super.getCommon(target, prop);\n }\n}\n\n/**\n * Creates a declarative CallAgent by proxying CallAgent with ProxyCallAgent which will track state updates by updating\n * the given context.\n *\n * @param callAgent - CallAgent from SDK\n * @param context - CallContext from StatefulCallClient\n * @param internalContext- InternalCallContext from StatefulCallClient\n */\nexport const callAgentDeclaratify = (callAgent: CallAgent, context: CallContext, internalContext: InternalCallContext): DeclarativeCallAgent => {\n clearCallRelatedState(context, internalContext);\n return (new Proxy(callAgent, new ProxyCallAgent(callAgent, context, internalContext)) as DeclarativeCallAgent);\n};"]}
1
+ {"version":3,"file":"CallAgentDeclarative.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/CallAgentDeclarative.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,qBAAqB,EAAyB,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAElH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,EAAE,UA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AAG,IAAI,CAAC,CAAC;SACjC;QACD,MAAM,KAAK,CAAC,wFAAwF,CAAC,CAAC;IACxG,CAAC;IAES,QAAQ,CAAC,KAAsB,EAAE,IAAmC;QAC5E,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;SAC5B;QACD,MAAM,KAAK,CAAC,uFAAuF,CAAC,CAAC;IACvG,CAAC;IAES,cAAc,CAAC,KAAsB,EAAE,IAAiC;QAChF,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;SAC1B;QACD,MAAM,KAAK,CAAC,6FAA6F,CAAC,CAAC;IAC7G,CAAC;IAES,gBAAgB,CAAC,KAAsB,EAAE,IAAkC;QACnF,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;SAC3B;QACD,MAAM,KAAK,CAAC,+FAA+F,CAAC,CAAC;IAC/G,CAAC;IAEM,GAAG,CAA4B,MAAiB,EAAE,IAAO;QAC9D,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACvC,CAAC;CACF;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,SAAoB,EACpB,OAAoB,EACpB,eAAoC,EACd,EAAE;IACxB,qBAAqB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAChD,OAAO,IAAI,KAAK,CAAC,SAAS,EAAE,IAAI,cAAc,CAAC,SAAS,EAAE,OAAO,EAAE,eAAe,CAAC,CAAyB,CAAC;AAC/G,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CallAgent } from '@azure/communication-calling';\nimport { clearCallRelatedState, DeclarativeCallCommon, ProxyCallAgentCommon } from './CallAgentDeclarativeCommon';\nimport { CallContext } from './CallContext';\nimport { callDeclaratify } from './CallDeclarative';\n/* @conditional-compile-remove(one-to-n-calling) */\nimport { DeclarativeIncomingCall } from './IncomingCallDeclarative';\nimport { InternalCallContext } from './InternalCallContext';\nimport { _isACSCall, _isACSCallAgent } from './TypeGuards';\nimport { CallAgentCommon, CallCommon } from './BetaToStableTypes';\n\n/* @conditional-compile-remove(one-to-n-calling) */\n/**\n * @beta\n * This contains a readonly array that returns all the active `incomingCalls`.\n * An active incoming call is a call that has not been answered, declined or disconnected.\n */\nexport type IncomingCallManagement = {\n /**\n * @beta\n * @Remark This attribute doesn't exist on the {@link @azure/communication-calling#CallAgent} interface.\n * @returns readonly array of {@link DeclarativeIncomingCall}\n */\n incomingCalls: ReadonlyArray<DeclarativeIncomingCall>;\n};\n\n/**\n * @beta\n * `DeclarativeCallAgent` extends and proxies the {@link @azure/communication-calling#CallAgent}\n */\nexport type DeclarativeCallAgent = CallAgent &\n /* @conditional-compile-remove(one-to-n-calling) */ IncomingCallManagement;\n\n/**\n * ProxyCallAgent proxies CallAgent and saves any returned state in the given context. It will subscribe to all state\n * updates in the CallAgent and in the contained Calls and RemoteParticipants. When dispose is called it will\n * unsubscribe from all state updates.\n */\nclass ProxyCallAgent extends ProxyCallAgentCommon implements ProxyHandler<DeclarativeCallAgent> {\n private _callAgent: CallAgent;\n\n constructor(callAgent: CallAgent, context: CallContext, internalContext: InternalCallContext) {\n super(context, internalContext);\n this._callAgent = callAgent;\n this.subscribe();\n }\n\n private subscribe = (): void => {\n this._callAgent.on('callsUpdated', this.callsUpdated);\n this._callAgent.on('incomingCall', this.incomingCall);\n\n // There could be scenario that when ProxyCallAgent is created that the given CallAgent already has Calls. In this\n // case we need to make sure to subscribe to those already existing Calls.\n for (const call of this._callAgent.calls) {\n this.addCall(call);\n }\n };\n\n protected unsubscribe = (): void => {\n this._callAgent.off('callsUpdated', this.callsUpdated);\n this._callAgent.off('incomingCall', this.incomingCall);\n\n this.unregisterSubscriber();\n };\n\n protected callDeclaratify(call: CallCommon, context: CallContext): DeclarativeCallCommon {\n if (_isACSCall(call)) {\n return callDeclaratify(call, context);\n }\n throw new Error('Not reachable code, DeclarativeCallAgent.callDeclaratify must be called with an ACS call.');\n }\n\n protected startCall(agent: CallAgentCommon, args: Parameters<CallAgent['startCall']>): CallCommon {\n if (_isACSCallAgent(agent)) {\n return agent.startCall(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.startCall must be called with an ACS callAgent.');\n }\n\n protected joinCall(agent: CallAgentCommon, args: Parameters<CallAgent['join']>): CallCommon {\n if (_isACSCallAgent(agent)) {\n return agent.join(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.joinCall must be called with an ACS callAgent.');\n }\n\n protected agentSubscribe(agent: CallAgentCommon, args: Parameters<CallAgent['on']>): void {\n if (_isACSCallAgent(agent)) {\n return agent.on(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.agentSubscribe must be called with an ACS callAgent.');\n }\n\n protected agentUnsubscribe(agent: CallAgentCommon, args: Parameters<CallAgent['off']>): void {\n if (_isACSCallAgent(agent)) {\n return agent.off(...args);\n }\n throw Error('Unreachable code, DeclarativeCallAgent.agentUnsubscribe must be called with an ACS callAgent.');\n }\n\n public get<P extends keyof CallAgent>(target: CallAgent, prop: P): any {\n return super.getCommon(target, prop);\n }\n}\n\n/**\n * Creates a declarative CallAgent by proxying CallAgent with ProxyCallAgent which will track state updates by updating\n * the given context.\n *\n * @param callAgent - CallAgent from SDK\n * @param context - CallContext from StatefulCallClient\n * @param internalContext- InternalCallContext from StatefulCallClient\n */\nexport const callAgentDeclaratify = (\n callAgent: CallAgent,\n context: CallContext,\n internalContext: InternalCallContext\n): DeclarativeCallAgent => {\n clearCallRelatedState(context, internalContext);\n return new Proxy(callAgent, new ProxyCallAgent(callAgent, context, internalContext)) as DeclarativeCallAgent;\n};\n"]}
@@ -64,10 +64,7 @@ export class ProxyCallAgentCommon {
64
64
  }
65
65
  }
66
66
  for (const externalCallsUpdatedListener of this._externalCallsUpdatedListeners) {
67
- externalCallsUpdatedListener({
68
- added: addedStatefulCall,
69
- removed: removedStatefulCall
70
- });
67
+ externalCallsUpdatedListener({ added: addedStatefulCall, removed: removedStatefulCall });
71
68
  }
72
69
  };
73
70
  this.setIncomingCallEnded = (incomingCallId, callEndReason) => {
@@ -117,71 +114,69 @@ export class ProxyCallAgentCommon {
117
114
  // Add a getCommon function and call it in child class
118
115
  getCommon(target, prop) {
119
116
  switch (prop) {
120
- case 'startCall':
121
- {
122
- return this._context.withErrorTeedToState((...args) => {
123
- const call = this.startCall(target, args);
124
- this.addCall(call);
125
- return this.getOrCreateDeclarativeCall(call);
126
- }, 'CallAgent.startCall');
127
- }
128
- case 'join':
129
- {
130
- return this._context.withErrorTeedToState((...args) => {
131
- const call = this.joinCall(target, args);
132
- this.addCall(call);
133
- return this.getOrCreateDeclarativeCall(call);
134
- }, 'CallAgent.join');
135
- }
136
- case 'calls':
137
- {
138
- return Array.from(this._declarativeCalls.values());
139
- }
140
- case 'on':
141
- {
142
- return (...args) => {
143
- const isCallsUpdated = args[0] === 'callsUpdated';
144
- if (isCallsUpdated) {
145
- const listener = args[1];
146
- this._externalCallsUpdatedListeners.add(listener);
147
- }
148
- else {
149
- this.agentSubscribe(target, args);
150
- }
151
- };
152
- }
153
- case 'off':
154
- {
155
- return (...args) => {
156
- const isCallsUpdated = args[0] === 'callsUpdated';
157
- if (isCallsUpdated) {
158
- const listener = args[1];
159
- this._externalCallsUpdatedListeners.delete(listener);
160
- }
161
- else {
162
- this.agentUnsubscribe(target, args);
163
- }
164
- };
165
- }
166
- case 'dispose':
167
- {
168
- /* @conditional-compile-remove(calling-beta-sdk) */
169
- return () => {
170
- target.dispose();
117
+ case 'startCall': {
118
+ return this._context.withErrorTeedToState((...args) => {
119
+ const call = this.startCall(target, args);
120
+ this.addCall(call);
121
+ return this.getOrCreateDeclarativeCall(call);
122
+ }, 'CallAgent.startCall');
123
+ }
124
+ case 'join': {
125
+ return this._context.withErrorTeedToState((...args) => {
126
+ const call = this.joinCall(target, args);
127
+ this.addCall(call);
128
+ return this.getOrCreateDeclarativeCall(call);
129
+ }, 'CallAgent.join');
130
+ }
131
+ case 'calls': {
132
+ return Array.from(this._declarativeCalls.values());
133
+ }
134
+ case 'on': {
135
+ return (...args) => {
136
+ // typescript is not smart enough to handle multiple overloads and pull the correct type here so force casting args
137
+ const event = args[0];
138
+ const isCallsUpdated = event === 'callsUpdated';
139
+ if (isCallsUpdated) {
140
+ const listener = args[1];
141
+ this._externalCallsUpdatedListeners.add(listener);
142
+ }
143
+ else {
144
+ this.agentSubscribe(target, args);
145
+ }
146
+ };
147
+ }
148
+ case 'off': {
149
+ return (...args) => {
150
+ // typescript is not smart enough to handle multiple overloads and pull the correct type here so force casting args
151
+ const event = args[0];
152
+ const isCallsUpdated = event === 'callsUpdated';
153
+ if (isCallsUpdated) {
154
+ const listener = args[1];
155
+ this._externalCallsUpdatedListeners.delete(listener);
156
+ }
157
+ else {
158
+ this.agentUnsubscribe(target, args);
159
+ }
160
+ };
161
+ }
162
+ case 'dispose': {
163
+ /* @conditional-compile-remove(calling-beta-sdk) */
164
+ return () => {
165
+ target.dispose();
166
+ this.unsubscribe();
167
+ };
168
+ // Wrapping CallAgent.dispose in a callback type (): Promise<void> to accomodate the change of CallAgent.dispose
169
+ // in calling beta version 1.8.0-beta.1 from callback type (): Promise<void> to (): void
170
+ const callAgentDisposeAsyncCallbackWrapper = () => __awaiter(this, void 0, void 0, function* () {
171
+ yield target.dispose();
172
+ return Promise.resolve();
173
+ });
174
+ return () => {
175
+ return callAgentDisposeAsyncCallbackWrapper().then(() => {
171
176
  this.unsubscribe();
172
- };
173
- // Wrapping CallAgent.dispose in a callback type (): Promise<void> to accomodate the change of CallAgent.dispose
174
- // in calling beta version 1.8.0-beta.1 from callback type (): Promise<void> to (): void
175
- const callAgentDisposeAsyncCallbackWrapper = () => __awaiter(this, void 0, void 0, function* () {
176
- yield target.dispose();
177
- return Promise.resolve();
178
177
  });
179
- return () => {
180
- return callAgentDisposeAsyncCallbackWrapper().then(() => {
181
- this.unsubscribe();
182
- });
183
- };
184
- }
178
+ };
179
+ }
185
180
  /**
186
181
  * This attribute is a special case and doesn't exist on the CallAgent interface.
187
182
  * We need this to be able to return a declarative incoming call object using the call agent.
@@ -191,10 +186,9 @@ export class ProxyCallAgentCommon {
191
186
  * 2. Get the incoming call from the new state and it's ID
192
187
  * 3. Use `callAgent.incomingCalls` and filter an incoming call ID to get a declarative incoming call object
193
188
  */
194
- case 'incomingCalls':
195
- {
196
- return Array.from(this._declarativeIncomingCalls.values());
197
- }
189
+ case 'incomingCalls': {
190
+ return Array.from(this._declarativeIncomingCalls.values());
191
+ }
198
192
  default:
199
193
  return Reflect.get(target, prop);
200
194
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CallAgentDeclarativeCommon.js","sourceRoot":"","sources":["../../../../preprocess-dist/calling-stateful-client/src/CallAgentDeclarativeCommon.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AASlC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,+BAA+B,EAAE,+CAA+C,EAAE,MAAM,aAAa,CAAC;AAC/G,OAAO,EAA2B,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAazE;;;;GAIG;AACH,MAAM,OAAgB,oBAAoB;IAQxC,YAAY,OAAoB,EAAE,eAAoC;QAUtE,oHAAoH;QACpH,6BAA6B;QACnB,yBAAoB,GAAG,GAAS,EAAE;YAC1C,KAAK,MAAM,CAAC,CAAC,EAAE,cAAc,CAAC,IAAI,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE;gBACjE,cAAc,CAAC,WAAW,E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;wBACzB,OAAO,oCAAoC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;4BACtD,IAAI,CAAC,WAAW,EAAE,CAAC;wBACrB,CAAC,CAAC,CAAC;oBACL,CAAC,CAAC;iBACH;YACH;;;;;;;;eAQG;YACH,KAAK,eAAe;gBAClB;oBACE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,yBAAyB,CAAC,MAAM,EAAE,CAAC,CAAC;iBAC5D;YACH;gBACE,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACpC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,OAAoB,EAAE,eAAoC,EAAQ,EAAE;IACxG,sGAAsG;IACtG,oHAAoH;IACpH,qDAAqD;IACrD,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAC1C,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAChC,eAAe,CAAC,qBAAqB,EAAE,CAAC;AAC1C,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Call, CallAgent, CallEndReason, CollectionUpdatedEvent } from '@azure/communication-calling';\nimport { IncomingCallCommon, CallAgentCommon, CallCommon } from './BetaToStableTypes';\n\n/* @conditional-compile-remove(teams-identity-support) */\nimport { TeamsCallAgent } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { DeclarativeCall } from './CallDeclarative';\nimport { CallSubscriber } from './CallSubscriber';\nimport { convertSdkCallToDeclarativeCall, convertSdkIncomingCallToDeclarativeIncomingCall } from './Converter';\nimport { DeclarativeIncomingCall, incomingCallDeclaratify } from './IncomingCallDeclarative';\nimport { IncomingCallSubscriber } from './IncomingCallSubscriber';\nimport { InternalCallContext } from './InternalCallContext';\nimport { disposeAllViews, disposeAllViewsFromCall } from './StreamUtils';\n\n/**\n *\n * @private\n */\nexport type DeclarativeCallCommon = CallCommon & {\n /**\n * Stop any declarative specific subscriptions and remove declarative subscribers.\n */\n unsubscribe(): void;\n};\n\n/**\n * ProxyCallAgent proxies CallAgent and saves any returned state in the given context. It will subscribe to all state\n * updates in the CallAgent and in the contained Calls and RemoteParticipants. When dispose is called it will\n * unsubscribe from all state updates.\n */\nexport abstract class ProxyCallAgentCommon {\n private _context: CallContext;\n private _internalContext: InternalCallContext;\n private _callSubscribers: Map<CallCommon, CallSubscriber>;\n private _incomingCallSubscribers: Map<string, IncomingCallSubscriber>;\n private _declarativeIncomingCalls: Map<string, DeclarativeIncomingCall>;\n private _declarativeCalls: Map<CallCommon, DeclarativeCallCommon>;\n private _externalCallsUpdatedListeners: Set<CollectionUpdatedEvent<CallCommon>>;\n constructor(context: CallContext, internalContext: InternalCallContext) {\n this._context = context;\n this._internalContext = internalContext;\n this._callSubscribers = new Map<Call, CallSubscriber>();\n this._incomingCallSubscribers = new Map<string, IncomingCallSubscriber>();\n this._declarativeIncomingCalls = new Map<string, DeclarativeIncomingCall>();\n this._declarativeCalls = new Map<Call, DeclarativeCall>();\n this._externalCallsUpdatedListeners = new Set<CollectionUpdatedEvent<CallCommon>>();\n }\n\n // Unsubscribe is called when CallAgent is disposed. This should mean no more updating of existing call but we don't\n // remove any existing state.\n protected unregisterSubscriber = (): void => {\n for (const [_, callSubscriber] of this._callSubscribers.entries()) {\n callSubscriber.unsubscribe();\n }\n this._callSubscribers.clear();\n for (const [_, incomingCallSubscriber] of this._incomingCallSubscribers.entries()) {\n incomingCallSubscriber.unsubscribe();\n }\n this._incomingCallSubscribers.clear();\n this._declarativeIncomingCalls.clear();\n for (const [_, declarativeCall] of this._declarativeCalls.entries()) {\n declarativeCall.unsubscribe();\n }\n this._declarativeCalls.clear();\n };\n protected abstract unsubscribe(): void;\n protected abstract callDeclaratify(call: CallCommon, context: CallContext): DeclarativeCallCommon;\n protected callsUpdated = (event: {\n added: CallCommon[];\n removed: CallCommon[];\n }): void => {\n const addedStatefulCall: DeclarativeCallCommon[] = [];\n for (const call of event.added) {\n const statefulCall = this.addCall(call);\n addedStatefulCall.push(statefulCall);\n }\n const removedStatefulCall: DeclarativeCallCommon[] = [];\n for (const call of event.removed) {\n disposeAllViewsFromCall(this._context, this._internalContext, call.id);\n const callSubscriber = this._callSubscribers.get(call);\n if (callSubscriber) {\n callSubscriber.unsubscribe();\n this._callSubscribers.delete(call);\n }\n this._context.setCallEnded(call.id, call.callEndReason);\n const declarativeCall = this._declarativeCalls.get(call);\n if (declarativeCall) {\n declarativeCall.unsubscribe();\n removedStatefulCall.push(declarativeCall);\n this._declarativeCalls.delete(call);\n } else {\n removedStatefulCall.push(this.callDeclaratify(call, this._context));\n }\n }\n for (const externalCallsUpdatedListener of this._externalCallsUpdatedListeners) {\n externalCallsUpdatedListener({\n added: addedStatefulCall,\n removed: removedStatefulCall\n });\n }\n };\n private setIncomingCallEnded = (incomingCallId: string, callEndReason: CallEndReason): void => {\n const incomingCallSubscriber = this._incomingCallSubscribers.get(incomingCallId);\n if (incomingCallSubscriber) {\n incomingCallSubscriber.unsubscribe();\n this._incomingCallSubscribers.delete(incomingCallId);\n }\n this._declarativeIncomingCalls.delete(incomingCallId);\n this._context.setIncomingCallEnded(incomingCallId, callEndReason);\n };\n protected incomingCall = ({\n incomingCall\n }: {\n incomingCall: IncomingCallCommon;\n }): void => {\n // Make sure to not subscribe to the incoming call if we are already subscribed to it.\n if (!this._incomingCallSubscribers.has(incomingCall.id)) {\n this._incomingCallSubscribers.set(incomingCall.id, new IncomingCallSubscriber(incomingCall, this.setIncomingCallEnded));\n }\n this._declarativeIncomingCalls.set(incomingCall.id, incomingCallDeclaratify(incomingCall, this._context));\n this._context.setIncomingCall(convertSdkIncomingCallToDeclarativeIncomingCall(incomingCall));\n };\n protected addCall = (call: CallCommon): DeclarativeCallCommon => {\n this._callSubscribers.get(call)?.unsubscribe();\n\n // For API extentions we need to have the call in the state when we are subscribing as we may want to update the\n // state during the subscription process in the subscriber so we add the call to state before subscribing.\n this._context.setCall(convertSdkCallToDeclarativeCall(call));\n this._callSubscribers.set(call, new CallSubscriber(call, this._context, this._internalContext));\n return this.getOrCreateDeclarativeCall(call);\n };\n private getOrCreateDeclarativeCall = (call: CallCommon): DeclarativeCallCommon => {\n const declarativeCall = this._declarativeCalls.get(call);\n if (declarativeCall) {\n return declarativeCall;\n }\n const newDeclarativeCall = this.callDeclaratify(call, this._context);\n this._declarativeCalls.set(call, newDeclarativeCall);\n return newDeclarativeCall;\n };\n\n // args could be either from teamsCall or Call, set it as unknown and cast it in child class later\n protected abstract startCall(agent: CallAgentCommon, args: unknown[]): CallCommon;\n protected abstract joinCall(agent: CallAgentCommon, args: unknown[]): CallCommon;\n protected abstract agentSubscribe(agent: CallAgentCommon, args: unknown[]): void;\n protected abstract agentUnsubscribe(agent: CallAgentCommon, args: unknown[]): void;\n\n // We can't directly override get function because it is proxied,\n // Add a getCommon function and call it in child class\n protected getCommon<AgentType extends CallAgent | /* @conditional-compile-remove(teams-identity-support) */TeamsCallAgent, P extends keyof CallAgent>(target: AgentType, prop: P): any {\n switch (prop) {\n case 'startCall':\n {\n return this._context.withErrorTeedToState((...args: Parameters<AgentType['startCall']>): CallCommon => {\n const call = this.startCall(target, args);\n this.addCall(call);\n return this.getOrCreateDeclarativeCall(call);\n }, 'CallAgent.startCall');\n }\n case 'join':\n {\n return this._context.withErrorTeedToState((...args: Parameters<AgentType['join']>): CallCommon => {\n const call = this.joinCall(target, args);\n this.addCall(call);\n return this.getOrCreateDeclarativeCall(call);\n }, 'CallAgent.join');\n }\n case 'calls':\n {\n return Array.from(this._declarativeCalls.values());\n }\n case 'on':\n {\n return (...args: Parameters<AgentType['on']>): void => {\n const isCallsUpdated = args[0] === 'callsUpdated';\n if (isCallsUpdated) {\n const listener = args[1];\n this._externalCallsUpdatedListeners.add((listener as CollectionUpdatedEvent<CallCommon>));\n } else {\n this.agentSubscribe(target, args);\n }\n };\n }\n case 'off':\n {\n return (...args: Parameters<AgentType['off']>): void => {\n const isCallsUpdated = args[0] === 'callsUpdated';\n if (isCallsUpdated) {\n const listener = args[1];\n this._externalCallsUpdatedListeners.delete((listener as CollectionUpdatedEvent<CallCommon>));\n } else {\n this.agentUnsubscribe(target, args);\n }\n };\n }\n case 'dispose':\n {\n /* @conditional-compile-remove(calling-beta-sdk) */\n return (): void => {\n target.dispose();\n this.unsubscribe();\n };\n // Wrapping CallAgent.dispose in a callback type (): Promise<void> to accomodate the change of CallAgent.dispose\n // in calling beta version 1.8.0-beta.1 from callback type (): Promise<void> to (): void\n const callAgentDisposeAsyncCallbackWrapper = async (): Promise<void> => {\n await target.dispose();\n return Promise.resolve();\n };\n return (): Promise<void> => {\n return callAgentDisposeAsyncCallbackWrapper().then(() => {\n this.unsubscribe();\n });\n };\n }\n /**\n * This attribute is a special case and doesn't exist on the CallAgent interface.\n * We need this to be able to return a declarative incoming call object using the call agent.\n * In a standard headless SDK usage, the right way to get an incoming call is to use the `incomingCall` event.\n * However, using the declarative layer, the ideal usage would be to:\n * 1. subscribe to the `onStateChange` event\n * 2. Get the incoming call from the new state and it's ID\n * 3. Use `callAgent.incomingCalls` and filter an incoming call ID to get a declarative incoming call object\n */\n case 'incomingCalls':\n {\n return Array.from(this._declarativeIncomingCalls.values());\n }\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/**\n * @private\n */\nexport const clearCallRelatedState = (context: CallContext, internalContext: InternalCallContext): void => {\n // Make sure there are no existing call data if creating a new CallAgentDeclarative (if creating a new\n // CallAgentDeclarative after disposing of the hold one will mean context have old call state). TODO: should we stop\n // rendering when the previous callAgent is disposed?\n disposeAllViews(context, internalContext);\n context.clearCallRelatedState();\n internalContext.clearCallRelatedState();\n};"]}
1
+ {"version":3,"file":"CallAgentDeclarativeCommon.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/CallAgentDeclarativeCommon.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAUlC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;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AAqB,EAAE,CAAC;IAChC,eAAe,CAAC,qBAAqB,EAAE,CAAC;AAC1C,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Call, CallAgent, CallEndReason, CollectionUpdatedEvent } from '@azure/communication-calling';\n\nimport { IncomingCallCommon, CallAgentCommon, CallCommon } from './BetaToStableTypes';\n\n/* @conditional-compile-remove(teams-identity-support) */\nimport { TeamsCallAgent } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\nimport { DeclarativeCall } from './CallDeclarative';\nimport { CallSubscriber } from './CallSubscriber';\nimport { convertSdkCallToDeclarativeCall, convertSdkIncomingCallToDeclarativeIncomingCall } from './Converter';\nimport { DeclarativeIncomingCall, incomingCallDeclaratify } from './IncomingCallDeclarative';\nimport { IncomingCallSubscriber } from './IncomingCallSubscriber';\nimport { InternalCallContext } from './InternalCallContext';\nimport { disposeAllViews, disposeAllViewsFromCall } from './StreamUtils';\n\n/**\n *\n * @private\n */\nexport type DeclarativeCallCommon = CallCommon & {\n /**\n * Stop any declarative specific subscriptions and remove declarative subscribers.\n */\n unsubscribe(): void;\n};\n\n/**\n * ProxyCallAgent proxies CallAgent and saves any returned state in the given context. It will subscribe to all state\n * updates in the CallAgent and in the contained Calls and RemoteParticipants. When dispose is called it will\n * unsubscribe from all state updates.\n */\nexport abstract class ProxyCallAgentCommon {\n private _context: CallContext;\n private _internalContext: InternalCallContext;\n private _callSubscribers: Map<CallCommon, CallSubscriber>;\n private _incomingCallSubscribers: Map<string, IncomingCallSubscriber>;\n private _declarativeIncomingCalls: Map<string, DeclarativeIncomingCall>;\n private _declarativeCalls: Map<CallCommon, DeclarativeCallCommon>;\n private _externalCallsUpdatedListeners: Set<CollectionUpdatedEvent<CallCommon>>;\n\n constructor(context: CallContext, internalContext: InternalCallContext) {\n this._context = context;\n this._internalContext = internalContext;\n this._callSubscribers = new Map<Call, CallSubscriber>();\n this._incomingCallSubscribers = new Map<string, IncomingCallSubscriber>();\n this._declarativeIncomingCalls = new Map<string, DeclarativeIncomingCall>();\n this._declarativeCalls = new Map<Call, DeclarativeCall>();\n this._externalCallsUpdatedListeners = new Set<CollectionUpdatedEvent<CallCommon>>();\n }\n\n // Unsubscribe is called when CallAgent is disposed. This should mean no more updating of existing call but we don't\n // remove any existing state.\n protected unregisterSubscriber = (): void => {\n for (const [_, callSubscriber] of this._callSubscribers.entries()) {\n callSubscriber.unsubscribe();\n }\n this._callSubscribers.clear();\n\n for (const [_, incomingCallSubscriber] of this._incomingCallSubscribers.entries()) {\n incomingCallSubscriber.unsubscribe();\n }\n this._incomingCallSubscribers.clear();\n this._declarativeIncomingCalls.clear();\n\n for (const [_, declarativeCall] of this._declarativeCalls.entries()) {\n declarativeCall.unsubscribe();\n }\n this._declarativeCalls.clear();\n };\n\n protected abstract unsubscribe(): void;\n\n protected abstract callDeclaratify(call: CallCommon, context: CallContext): DeclarativeCallCommon;\n\n protected callsUpdated = (event: { added: CallCommon[]; removed: CallCommon[] }): void => {\n const addedStatefulCall: DeclarativeCallCommon[] = [];\n for (const call of event.added) {\n const statefulCall = this.addCall(call);\n addedStatefulCall.push(statefulCall);\n }\n const removedStatefulCall: DeclarativeCallCommon[] = [];\n for (const call of event.removed) {\n disposeAllViewsFromCall(this._context, this._internalContext, call.id);\n const callSubscriber = this._callSubscribers.get(call);\n if (callSubscriber) {\n callSubscriber.unsubscribe();\n this._callSubscribers.delete(call);\n }\n this._context.setCallEnded(call.id, call.callEndReason);\n const declarativeCall = this._declarativeCalls.get(call);\n if (declarativeCall) {\n declarativeCall.unsubscribe();\n removedStatefulCall.push(declarativeCall);\n this._declarativeCalls.delete(call);\n } else {\n removedStatefulCall.push(this.callDeclaratify(call, this._context));\n }\n }\n\n for (const externalCallsUpdatedListener of this._externalCallsUpdatedListeners) {\n externalCallsUpdatedListener({ added: addedStatefulCall, removed: removedStatefulCall });\n }\n };\n\n private setIncomingCallEnded = (incomingCallId: string, callEndReason: CallEndReason): void => {\n const incomingCallSubscriber = this._incomingCallSubscribers.get(incomingCallId);\n if (incomingCallSubscriber) {\n incomingCallSubscriber.unsubscribe();\n this._incomingCallSubscribers.delete(incomingCallId);\n }\n this._declarativeIncomingCalls.delete(incomingCallId);\n this._context.setIncomingCallEnded(incomingCallId, callEndReason);\n };\n\n protected incomingCall = ({ incomingCall }: { incomingCall: IncomingCallCommon }): void => {\n // Make sure to not subscribe to the incoming call if we are already subscribed to it.\n if (!this._incomingCallSubscribers.has(incomingCall.id)) {\n this._incomingCallSubscribers.set(\n incomingCall.id,\n new IncomingCallSubscriber(incomingCall, this.setIncomingCallEnded)\n );\n }\n this._declarativeIncomingCalls.set(incomingCall.id, incomingCallDeclaratify(incomingCall, this._context));\n this._context.setIncomingCall(convertSdkIncomingCallToDeclarativeIncomingCall(incomingCall));\n };\n\n protected addCall = (call: CallCommon): DeclarativeCallCommon => {\n this._callSubscribers.get(call)?.unsubscribe();\n\n // For API extentions we need to have the call in the state when we are subscribing as we may want to update the\n // state during the subscription process in the subscriber so we add the call to state before subscribing.\n this._context.setCall(convertSdkCallToDeclarativeCall(call));\n this._callSubscribers.set(call, new CallSubscriber(call, this._context, this._internalContext));\n return this.getOrCreateDeclarativeCall(call);\n };\n\n private getOrCreateDeclarativeCall = (call: CallCommon): DeclarativeCallCommon => {\n const declarativeCall = this._declarativeCalls.get(call);\n if (declarativeCall) {\n return declarativeCall;\n }\n\n const newDeclarativeCall = this.callDeclaratify(call, this._context);\n this._declarativeCalls.set(call, newDeclarativeCall);\n return newDeclarativeCall;\n };\n\n // args could be either from teamsCall or Call, set it as unknown and cast it in child class later\n protected abstract startCall(agent: CallAgentCommon, args: unknown[]): CallCommon;\n protected abstract joinCall(agent: CallAgentCommon, args: unknown[]): CallCommon;\n protected abstract agentSubscribe(agent: CallAgentCommon, args: unknown[]): void;\n protected abstract agentUnsubscribe(agent: CallAgentCommon, args: unknown[]): void;\n\n // We can't directly override get function because it is proxied,\n // Add a getCommon function and call it in child class\n protected getCommon<\n AgentType extends CallAgent | /* @conditional-compile-remove(teams-identity-support) */ TeamsCallAgent,\n P extends keyof CallAgent\n >(target: AgentType, prop: P): any {\n switch (prop) {\n case 'startCall': {\n return this._context.withErrorTeedToState((...args: Parameters<AgentType['startCall']>): CallCommon => {\n const call = this.startCall(target, args);\n this.addCall(call);\n return this.getOrCreateDeclarativeCall(call);\n }, 'CallAgent.startCall');\n }\n case 'join': {\n return this._context.withErrorTeedToState((...args: Parameters<AgentType['join']>): CallCommon => {\n const call = this.joinCall(target, args);\n this.addCall(call);\n return this.getOrCreateDeclarativeCall(call);\n }, 'CallAgent.join');\n }\n case 'calls': {\n return Array.from(this._declarativeCalls.values());\n }\n case 'on': {\n return (...args: Parameters<AgentType['on']>): void => {\n // typescript is not smart enough to handle multiple overloads and pull the correct type here so force casting args\n const event = args[0] as 'incomingCall' | 'callsUpdated' | 'connectionStateChanged';\n\n const isCallsUpdated = event === 'callsUpdated';\n if (isCallsUpdated) {\n const listener = args[1] as unknown as CollectionUpdatedEvent<CallCommon>;\n this._externalCallsUpdatedListeners.add(listener);\n } else {\n this.agentSubscribe(target, args);\n }\n };\n }\n case 'off': {\n return (...args: Parameters<AgentType['off']>): void => {\n // typescript is not smart enough to handle multiple overloads and pull the correct type here so force casting args\n const event = args[0] as 'incomingCall' | 'callsUpdated' | 'connectionStateChanged';\n\n const isCallsUpdated = event === 'callsUpdated';\n if (isCallsUpdated) {\n const listener = args[1] as unknown as CollectionUpdatedEvent<CallCommon>;\n this._externalCallsUpdatedListeners.delete(listener);\n } else {\n this.agentUnsubscribe(target, args);\n }\n };\n }\n case 'dispose': {\n /* @conditional-compile-remove(calling-beta-sdk) */\n return (): void => {\n target.dispose();\n this.unsubscribe();\n };\n // Wrapping CallAgent.dispose in a callback type (): Promise<void> to accomodate the change of CallAgent.dispose\n // in calling beta version 1.8.0-beta.1 from callback type (): Promise<void> to (): void\n const callAgentDisposeAsyncCallbackWrapper = async (): Promise<void> => {\n await target.dispose();\n return Promise.resolve();\n };\n return (): Promise<void> => {\n return callAgentDisposeAsyncCallbackWrapper().then(() => {\n this.unsubscribe();\n });\n };\n }\n /**\n * This attribute is a special case and doesn't exist on the CallAgent interface.\n * We need this to be able to return a declarative incoming call object using the call agent.\n * In a standard headless SDK usage, the right way to get an incoming call is to use the `incomingCall` event.\n * However, using the declarative layer, the ideal usage would be to:\n * 1. subscribe to the `onStateChange` event\n * 2. Get the incoming call from the new state and it's ID\n * 3. Use `callAgent.incomingCalls` and filter an incoming call ID to get a declarative incoming call object\n */\n case 'incomingCalls': {\n return Array.from(this._declarativeIncomingCalls.values());\n }\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n/**\n * @private\n */\nexport const clearCallRelatedState = (context: CallContext, internalContext: InternalCallContext): void => {\n // Make sure there are no existing call data if creating a new CallAgentDeclarative (if creating a new\n // CallAgentDeclarative after disposing of the hold one will mean context have old call state). TODO: should we stop\n // rendering when the previous callAgent is disposed?\n disposeAllViews(context, internalContext);\n\n context.clearCallRelatedState();\n internalContext.clearCallRelatedState();\n};\n"]}
@@ -1,10 +1,13 @@
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 { RaisedHand } from '@azure/communication-calling';
3
+ import { ParticipantCapabilities } from '@azure/communication-calling';
2
4
  import { CaptionsResultType } from '@azure/communication-calling';
3
5
  import { VideoEffectName } from '@azure/communication-calling';
4
6
  import { CallKind } from '@azure/communication-calling';
5
7
  import { EnvironmentInfo } from '@azure/communication-calling';
6
8
  import { ParticipantRole } from '@azure/communication-calling';
7
9
  import { CommunicationUserKind, MicrosoftTeamsUserKind, PhoneNumberKind, UnknownIdentifierKind, CommunicationIdentifierKind } from '@azure/communication-common';
10
+ import { MicrosoftBotKind } from '@azure/communication-common';
8
11
  /**
9
12
  * State only version of {@link @azure/communication-calling#CallAgent} except calls is moved to be a child directly of
10
13
  * {@link CallClientState} and not included here. The reason to have CallAgent's state proxied is to provide access to
@@ -98,6 +101,17 @@ export interface TranscriptionCallFeatureState {
98
101
  */
99
102
  isTranscriptionActive: boolean;
100
103
  }
104
+ /**
105
+ * State only version of {@link @azure/communication-calling#CapabilitiesFeature}
106
+ *
107
+ * @beta
108
+ */
109
+ export interface CapabilitiesFeatureState {
110
+ /**
111
+ * Proxy of {@link @azure/communication-calling#CapabilitiesFeature.capabilities}.
112
+ */
113
+ capabilities: ParticipantCapabilities;
114
+ }
101
115
  /**
102
116
  * State only version of {@link @azure/communication-calling#RecordingCallFeature}. {@link StatefulCallClient} will
103
117
  * automatically listen for recording state of the call and update the state exposed by {@link StatefulCallClient} accordingly.
@@ -110,6 +124,22 @@ export interface RecordingCallFeatureState {
110
124
  */
111
125
  isRecordingActive: boolean;
112
126
  }
127
+ /**
128
+ * State only version of {@link @azure/communication-calling#RaiseHandCallFeature}. {@link StatefulCallClient} will
129
+ * automatically listen for raised hands on the call and update the state exposed by {@link StatefulCallClient} accordingly.
130
+ *
131
+ * @public
132
+ */
133
+ export interface RaiseHandCallFeatureState {
134
+ /**
135
+ * Proxy of {@link @azure/communication-calling#RaiseHandCallFeature.raisedHands}.
136
+ */
137
+ raisedHands: RaisedHand[];
138
+ /**
139
+ * Contains information for local participant from list {@link @azure/communication-calling#RaiseHandCallFeature.raisedHands}.
140
+ */
141
+ localParticipantRaisedHand?: RaisedHand;
142
+ }
113
143
  /**
114
144
  * State only version of {@link @azure/communication-calling#LocalVideoStream}.
115
145
  *
@@ -216,7 +246,7 @@ export interface RemoteParticipantState {
216
246
  /**
217
247
  * Proxy of {@link @azure/communication-calling#RemoteParticipant.identifier}.
218
248
  */
219
- identifier: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind;
249
+ identifier: CommunicationUserKind | PhoneNumberKind | MicrosoftTeamsUserKind | UnknownIdentifierKind | /* @conditional-compile-remove(communication-common-beta-v3) */ MicrosoftBotKind;
220
250
  /**
221
251
  * Proxy of {@link @azure/communication-calling#RemoteParticipant.displayName}.
222
252
  */
@@ -248,6 +278,10 @@ export interface RemoteParticipantState {
248
278
  * Proxy of {@link @azure/communication-calling#RemoteParticipant.role}.
249
279
  */
250
280
  role?: ParticipantRole;
281
+ /**
282
+ * Proxy of {@link @azure/communication-calling#Call.RaisedHand.raisedHands}.
283
+ */
284
+ raisedHand?: RaisedHand;
251
285
  }
252
286
  /**
253
287
  * State only version of {@link @azure/communication-calling#Call}. {@link StatefulCallClient} will automatically
@@ -330,6 +364,10 @@ export interface CallState {
330
364
  * Proxy of {@link @azure/communication-calling#RecordingCallFeature}.
331
365
  */
332
366
  recording: RecordingCallFeatureState;
367
+ /**
368
+ * Proxy of {@link @azure/communication-calling#RaiseHandCallFeature}.
369
+ */
370
+ raiseHand: RaiseHandCallFeatureState;
333
371
  /**
334
372
  * Stores the currently active screenshare participant's key. If there is no screenshare active, then this will be
335
373
  * undefined. You can use this key to access the remoteParticipant data in {@link CallState.remoteParticipants} object.
@@ -366,6 +404,10 @@ export interface CallState {
366
404
  * Transfer state of call
367
405
  */
368
406
  transfer: TransferFeatureState;
407
+ /**
408
+ * Proxy of {@link @azure/communication-calling#CapabilitiesFeature}.
409
+ */
410
+ capabilities?: CapabilitiesFeatureState;
369
411
  }
370
412
  /**
371
413
  * Transfer feature state
@@ -1,5 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
+ ``;
3
4
  /**
4
5
  * Error thrown from failed stateful API methods.
5
6
  *