@azure/communication-react 1.4.0 → 1.4.1-beta.1

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 (833) hide show
  1. package/{CHANGELOG.md → CHANGELOG.beta.md} +47 -283
  2. package/CHANGELOG.json +507 -0
  3. package/CHANGELOG.stable.md +287 -0
  4. package/dist/communication-react.d.ts +1781 -58
  5. package/dist/dist-cjs/communication-react/index.js +17182 -13123
  6. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  13. package/dist/dist-esm/acs-ui-common/src/identifier.js +7 -24
  14. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js +2 -1
  17. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/logEvent.js +2 -0
  19. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  20. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  21. package/dist/dist-esm/acs-ui-common/src/safeStringify.js +2 -1
  22. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  23. package/dist/dist-esm/acs-ui-common/src/telemetry.d.ts +10 -0
  24. package/dist/dist-esm/acs-ui-common/src/telemetry.js +10 -0
  25. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  26. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  27. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +9 -0
  29. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +10 -0
  30. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +13 -0
  32. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +27 -9
  33. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  34. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +22 -46
  35. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +51 -0
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +270 -0
  38. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -0
  39. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.d.ts +20 -0
  40. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +36 -0
  41. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -0
  42. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +7 -43
  43. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +26 -266
  44. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +43 -0
  46. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +81 -0
  47. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -0
  48. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js +17 -5
  50. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +7 -3
  52. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +29 -0
  53. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  54. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js +6 -3
  55. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +6 -0
  57. package/dist/dist-esm/calling-component-bindings/src/index.js +8 -0
  58. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  59. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +26 -9
  60. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  61. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js +2 -0
  62. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  63. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +12 -2
  64. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js +27 -1
  65. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  66. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +8 -3
  67. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  68. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +16 -2
  69. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +27 -1
  70. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  71. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  72. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js +2 -0
  73. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  74. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +11 -0
  75. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +19 -3
  76. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  77. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +7 -1
  78. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +11 -0
  79. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  80. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +13 -4
  81. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  82. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +21 -5
  83. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  84. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +26 -0
  85. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js +4 -0
  86. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -0
  87. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +16 -2
  88. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js +42 -187
  89. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  90. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +53 -0
  91. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +204 -0
  92. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -0
  93. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +21 -1
  94. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +4 -1
  95. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +4 -0
  97. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +60 -10
  98. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +12 -80
  100. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  101. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.d.ts +13 -0
  102. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +88 -0
  103. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -0
  104. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js +2 -1
  105. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  106. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +3 -2
  108. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +19 -8
  109. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  110. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +4 -3
  111. package/dist/dist-esm/calling-stateful-client/src/Converter.js +15 -8
  112. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  113. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +58 -55
  114. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  115. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.d.ts +2 -1
  116. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +16 -16
  117. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  118. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.d.ts +3 -3
  119. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js +4 -1
  120. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  121. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +11 -18
  122. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  123. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  124. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +1 -0
  125. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +12 -1
  126. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  127. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +4 -1
  128. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  129. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +1 -0
  130. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +14 -2
  131. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  132. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +23 -0
  133. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +52 -36
  134. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  135. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +21 -23
  136. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  137. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +19 -0
  138. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +89 -0
  139. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -0
  140. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +23 -0
  141. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +48 -0
  142. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -0
  143. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js +4 -1
  144. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  145. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +19 -0
  146. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +35 -0
  147. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -0
  148. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +5 -3
  149. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  150. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +8 -0
  151. package/dist/dist-esm/calling-stateful-client/src/index-public.js +4 -0
  152. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -0
  153. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +3 -5
  154. package/dist/dist-esm/calling-stateful-client/src/index.js +2 -1
  155. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  156. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +6 -4
  157. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  158. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  159. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  160. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +21 -18
  161. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  162. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +4 -1
  163. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +11 -13
  164. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  165. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  166. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  167. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js +4 -1
  168. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  169. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  170. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +48 -13
  171. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  172. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  173. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  174. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  175. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js +2 -0
  176. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  177. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +5 -8
  178. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  179. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +7 -2
  180. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  181. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  182. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  183. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js +4 -1
  184. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  185. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +17 -16
  186. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  187. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  188. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +16 -15
  189. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  190. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  191. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +59 -68
  192. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  193. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +115 -121
  194. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  195. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +2 -0
  196. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  197. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  198. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js +2 -0
  199. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  200. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js +2 -0
  201. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  202. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js +2 -0
  203. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  204. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js +2 -0
  205. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  206. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js +2 -0
  207. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  208. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js +2 -0
  209. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  210. package/dist/dist-esm/communication-react/src/index.d.ts +20 -2
  211. package/dist/dist-esm/communication-react/src/index.js +13 -1
  212. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  213. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  214. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/components/CameraButton.js +10 -9
  216. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  217. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +7 -8
  218. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  219. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +38 -17
  220. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  221. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +12 -5
  222. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +26 -31
  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.js +63 -28
  226. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  227. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +9 -12
  228. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  229. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  230. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +19 -10
  232. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  233. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +4 -3
  234. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  235. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  237. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/ControlBar.js +13 -15
  239. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  240. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +14 -4
  241. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  242. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +6 -15
  243. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  244. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +69 -0
  245. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +37 -0
  246. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -0
  247. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +75 -0
  248. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +58 -0
  249. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -0
  250. package/dist/dist-esm/react-components/src/components/{DevicePermissionDropdown.d.ts → DevicePermissions/DevicePermissionDropdown.d.ts} +4 -0
  251. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +27 -0
  252. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -0
  253. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.d.ts +101 -0
  254. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js +80 -0
  255. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js.map +1 -0
  256. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.d.ts +86 -0
  257. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js +31 -0
  258. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js.map +1 -0
  259. package/dist/dist-esm/react-components/src/components/DevicesButton.js +7 -30
  260. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  261. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +48 -48
  262. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  263. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  264. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +2 -6
  265. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  266. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +12 -9
  267. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  268. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +11 -23
  269. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  270. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +4 -3
  271. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  273. package/dist/dist-esm/react-components/src/components/EndCallButton.js +5 -8
  274. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/components/ErrorBar.js +4 -6
  276. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/components/FileCard.js +4 -4
  278. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +1 -1
  280. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  281. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +14 -10
  282. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  283. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +10 -8
  284. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  285. package/dist/dist-esm/react-components/src/components/GridLayout.js +55 -44
  286. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  287. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +4 -3
  288. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  289. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +49 -0
  290. package/dist/dist-esm/react-components/src/components/HoldButton.js +25 -0
  291. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -0
  292. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +7 -8
  293. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  294. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +6 -12
  295. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  296. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +3 -5
  297. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  298. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +28 -9
  299. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  300. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +27 -36
  301. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  302. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +23 -1
  303. package/dist/dist-esm/react-components/src/components/MessageThread.js +188 -120
  304. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +17 -11
  306. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +137 -137
  308. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  309. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +15 -0
  310. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +19 -16
  311. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  312. package/dist/dist-esm/react-components/src/components/ParticipantList.js +25 -9
  313. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  314. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +44 -31
  315. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  316. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  317. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  318. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  319. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  320. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +18 -5
  321. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  322. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +6 -4
  323. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  324. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +6 -12
  325. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  326. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +35 -0
  327. package/dist/dist-esm/react-components/src/components/SendBox.js +37 -10
  328. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  329. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +4 -3
  330. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  331. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  332. package/dist/dist-esm/react-components/src/components/StreamMedia.js +5 -4
  333. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  334. package/dist/dist-esm/react-components/src/components/SystemMessage.js +2 -4
  335. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  336. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +2 -1
  337. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +29 -17
  338. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +15 -9
  340. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  341. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +32 -0
  342. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +33 -0
  343. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -0
  344. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  345. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  346. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +8 -6
  347. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  348. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  349. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  350. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +13 -6
  351. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  352. package/dist/dist-esm/react-components/src/components/VideoGallery.js +97 -44
  353. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  354. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +11 -0
  355. package/dist/dist-esm/react-components/src/components/VideoTile.js +36 -32
  356. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  357. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js +4 -10
  358. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js.map +1 -1
  359. package/dist/dist-esm/react-components/src/components/index.d.ts +16 -2
  360. package/dist/dist-esm/react-components/src/components/index.js +11 -1
  361. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  362. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +58 -0
  363. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +144 -0
  364. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -0
  365. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +3 -12
  366. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  367. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js +2 -0
  368. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  369. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +0 -2
  370. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  371. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.d.ts +38 -0
  372. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js +92 -0
  373. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +1 -0
  374. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  375. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  376. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js +2 -0
  377. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  378. package/dist/dist-esm/react-components/src/components/styles/IconButton.styles.js.map +1 -1
  379. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +1 -4
  380. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  382. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +10 -11
  383. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  384. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +0 -1
  385. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  386. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  387. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +3 -11
  388. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  389. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +0 -3
  390. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  391. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  392. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.d.ts +1 -5
  393. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +0 -12
  394. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  395. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  396. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.d.ts +22 -0
  397. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js +53 -0
  398. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js.map +1 -0
  399. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +18 -39
  400. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  401. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +4 -0
  402. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +6 -0
  403. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  404. package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js.map +1 -1
  405. package/dist/dist-esm/react-components/src/components/utils/Datetime.js +10 -4
  406. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  407. package/dist/dist-esm/react-components/src/components/utils/common.js +6 -0
  408. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  409. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  410. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js +10 -5
  411. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  412. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +7 -7
  413. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  414. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  415. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +7 -0
  416. package/dist/dist-esm/react-components/src/components/utils/merge.js +16 -0
  417. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -0
  418. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  419. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  420. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  421. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +1 -3
  422. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  423. package/dist/dist-esm/react-components/src/components/utils.d.ts +4 -0
  424. package/dist/dist-esm/react-components/src/components/utils.js +21 -11
  425. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  426. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +21 -13
  427. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  428. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  429. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  430. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  431. package/dist/dist-esm/react-components/src/index.d.ts +2 -0
  432. package/dist/dist-esm/react-components/src/index.js +2 -0
  433. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  434. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +42 -0
  435. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  436. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  437. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +56 -2
  438. package/dist/dist-esm/react-components/src/localization/locales/index.js +16 -42
  439. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  440. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +61 -0
  441. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +74 -0
  442. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +1 -0
  443. package/dist/dist-esm/react-components/src/permissions/index.d.ts +2 -0
  444. package/dist/dist-esm/react-components/src/permissions/index.js +4 -0
  445. package/dist/dist-esm/react-components/src/permissions/index.js.map +1 -0
  446. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +7 -8
  447. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  448. package/dist/dist-esm/react-components/src/theming/icons.d.ts +15 -0
  449. package/dist/dist-esm/react-components/src/theming/icons.js +113 -12
  450. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  451. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +6 -0
  452. package/dist/dist-esm/react-components/src/theming/icons.styles.js +25 -0
  453. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -0
  454. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  455. package/dist/dist-esm/react-components/src/theming/themeUtils.js +4 -1
  456. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  457. package/dist/dist-esm/react-components/src/theming/themes.js +2 -0
  458. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  459. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +7 -0
  460. package/dist/dist-esm/react-components/src/types/ChatMessage.js +2 -0
  461. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  462. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  463. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js +2 -0
  464. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  465. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +3 -0
  466. package/dist/dist-esm/react-components/src/types/OnRender.js +2 -0
  467. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  468. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +3 -0
  469. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js +2 -0
  470. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  471. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  472. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +6 -0
  473. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  474. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  475. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +76 -0
  476. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +110 -18
  477. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  478. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +120 -0
  479. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  480. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +52 -6
  481. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +167 -47
  482. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  483. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +51 -1
  484. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +11 -1
  485. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  486. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  487. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  488. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  489. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +2 -0
  490. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  491. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +3 -0
  492. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +76 -10
  493. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  494. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +2 -0
  495. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +136 -13
  496. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  497. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.d.ts +24 -0
  498. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +80 -0
  499. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -0
  500. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.d.ts +2 -0
  501. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js +23 -0
  502. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +1 -1
  503. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.d.ts +28 -0
  504. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js +32 -0
  505. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js.map +1 -0
  506. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.d.ts +2 -0
  507. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js +25 -0
  508. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +1 -1
  509. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +5 -4
  510. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  511. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +12 -0
  512. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +93 -0
  513. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -0
  514. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +3 -3
  515. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  516. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +35 -23
  517. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  518. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +2 -0
  519. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +73 -20
  520. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  521. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +16 -21
  522. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  523. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +4 -14
  524. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  525. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  526. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  527. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +4 -3
  528. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  529. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  530. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  531. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -1
  532. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  533. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +17 -0
  534. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +63 -0
  535. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -0
  536. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +41 -4
  537. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  538. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +5 -2
  539. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  540. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +12 -8
  541. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  542. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +5 -2
  543. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  544. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +8 -0
  545. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +26 -0
  546. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -0
  547. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +3 -1
  548. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  549. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +7 -9
  550. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  551. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +29 -6
  552. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  553. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  554. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  555. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  556. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.d.ts +16 -0
  557. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js +38 -0
  558. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js.map +1 -0
  559. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +2 -0
  560. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  561. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +1 -0
  562. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +10 -4
  563. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  564. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +8 -0
  565. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +139 -12
  566. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  567. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +15 -0
  568. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +36 -0
  569. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -0
  570. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +1 -0
  571. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +21 -8
  572. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  573. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +2 -2
  574. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  575. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +13 -0
  576. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +26 -0
  577. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -0
  578. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  579. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  580. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  581. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -0
  582. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +7 -0
  583. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  584. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  585. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  586. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  587. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  588. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  589. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  590. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  591. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +2 -2
  592. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +13 -6
  593. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  594. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +1 -1
  595. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +3 -1
  596. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  597. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +4 -4
  598. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +2 -0
  599. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  600. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  601. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -2
  602. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  603. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  604. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  605. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +2 -2
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +2 -2
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +2 -2
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.d.ts +6 -2
  617. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +11 -10
  618. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  619. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +2 -6
  620. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  621. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js +2 -0
  622. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  623. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +4 -2
  624. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  625. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +4 -4
  626. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  627. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +32 -0
  628. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +81 -0
  629. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -0
  630. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +3 -4
  631. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  632. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  633. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  634. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  635. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js +2 -0
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +0 -1
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  639. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +23 -3
  640. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js +2 -0
  641. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  642. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +9 -1
  643. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +77 -17
  644. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  645. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  646. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +78 -4
  647. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +77 -18
  648. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  649. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +1 -0
  650. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +43 -16
  651. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
  652. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.d.ts +2 -0
  653. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +36 -14
  654. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
  655. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js +1 -1
  656. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js.map +1 -1
  657. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js +11 -7
  658. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  659. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js +2 -0
  660. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  661. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.d.ts +67 -0
  662. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js +75 -0
  663. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +1 -0
  664. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js +3 -6
  665. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js.map +1 -1
  666. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js +1 -1
  667. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +1 -1
  668. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.d.ts +1 -0
  669. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +1 -1
  670. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +32 -0
  671. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  672. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +22 -4
  673. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +140 -11
  674. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  675. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +56 -0
  676. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  677. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +9 -2
  678. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +36 -1
  679. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  680. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +9 -0
  681. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +34 -1
  682. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  683. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +4 -2
  684. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  685. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.d.ts +13 -0
  686. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js +65 -0
  687. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +1 -0
  688. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js +67 -21
  689. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +1 -1
  690. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js +2 -1
  691. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  692. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -0
  693. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  694. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +3 -1
  695. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  696. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +11 -0
  697. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +10 -2
  698. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  699. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +0 -2
  700. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +2 -13
  701. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  702. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +20 -0
  703. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +8 -2
  704. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  705. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +3 -5
  706. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  707. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +41 -9
  708. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  709. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +18 -0
  710. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +18 -0
  711. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +1 -0
  712. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +15 -0
  713. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +21 -0
  714. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +1 -0
  715. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +4 -0
  716. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  717. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +9 -0
  718. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +111 -36
  719. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  720. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +28 -0
  721. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +156 -1
  722. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  723. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +13 -2
  724. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js +2 -0
  725. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  726. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +7 -0
  727. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  728. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
  729. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +18 -6
  730. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js +2 -0
  732. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js.map +1 -1
  733. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  734. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +6 -6
  735. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  736. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +5 -1
  737. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  738. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  739. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +6 -0
  740. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +11 -0
  741. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +1 -0
  742. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +3 -0
  743. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  744. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +12 -0
  745. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +13 -0
  746. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -0
  747. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +23 -0
  748. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +12 -0
  749. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +1 -0
  750. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +2 -6
  751. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +5 -1
  753. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +17 -6
  754. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  755. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +22 -0
  756. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +105 -0
  757. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -0
  758. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +17 -0
  759. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +32 -0
  760. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +1 -0
  761. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +10 -4
  762. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  763. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +15 -14
  764. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  765. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +22 -0
  766. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +60 -0
  767. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -0
  768. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +15 -0
  769. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +61 -0
  770. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -0
  771. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +3 -5
  772. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  773. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +22 -6
  774. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  775. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  776. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  777. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +7 -9
  778. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  779. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +7 -1
  780. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +26 -7
  781. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  782. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +17 -0
  783. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +42 -0
  784. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +1 -0
  785. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +11 -0
  786. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +40 -0
  787. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +1 -0
  788. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +2 -1
  789. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +6 -18
  790. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  791. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +2 -1
  792. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +10 -8
  793. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  794. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  795. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +28 -1
  796. package/dist/dist-esm/react-composites/src/composites/common/icons.js +23 -8
  797. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  798. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js +2 -0
  799. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  800. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +5 -16
  801. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  802. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +12 -51
  803. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  804. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +5 -22
  805. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  806. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +6 -22
  807. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  808. package/dist/dist-esm/react-composites/src/composites/common/utils.js +17 -12
  809. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  810. package/dist/dist-esm/react-composites/src/composites/index.js +2 -0
  811. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  812. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  813. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  814. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  815. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +2 -2
  816. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +2 -2
  817. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +2 -2
  818. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +2 -2
  819. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js +2 -0
  820. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  821. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +2 -2
  822. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +2 -2
  823. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +2 -2
  824. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +2 -2
  825. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +2 -2
  826. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +2 -2
  827. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +2 -2
  828. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +2 -2
  829. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +2 -2
  830. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  831. package/package.json +12 -12
  832. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js +0 -29
  833. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js.map +0 -1
@@ -18,22 +18,23 @@ import { useId } from '@fluentui/react-hooks';
18
18
  import { localVideoTileWithControlsContainerStyle, LOCAL_VIDEO_TILE_ZINDEX } from './styles/VideoGallery.styles';
19
19
  import { _ModalClone } from './ModalClone/ModalClone';
20
20
  import { _LocalVideoTile } from './LocalVideoTile';
21
+ /* @conditional-compile-remove(rooms) */
22
+ import { _usePermissions } from '../permissions';
21
23
  // Currently the Calling JS SDK supports up to 4 remote video streams
22
- const DEFAULT_MAX_REMOTE_VIDEO_STREAMS = 4; // Set aside only 6 dominant speakers for remaining audio participants
24
+ const DEFAULT_MAX_REMOTE_VIDEO_STREAMS = 4;
25
+ // Set aside only 6 dominant speakers for remaining audio participants
23
26
  const MAX_AUDIO_DOMINANT_SPEAKERS = 6;
24
27
  const DRAG_OPTIONS = {
25
28
  moveMenuItemText: 'Move',
26
29
  closeMenuItemText: 'Close',
27
30
  menu: ContextualMenu,
28
31
  keepInBounds: true
29
- }; // Manually override the max position used to keep the modal in the bounds of its container.
32
+ };
33
+ // Manually override the max position used to keep the modal in the bounds of its container.
30
34
  // This is a workaround for: https://github.com/microsoft/fluentui/issues/20122
31
35
  // Because our modal starts in the bottom right corner, we can say that this is the max (i.e. rightmost and bottomost)
32
36
  // position the modal can be dragged to.
33
- const modalMaxDragPosition = {
34
- x: localVideoTileOuterPaddingPX,
35
- y: localVideoTileOuterPaddingPX
36
- };
37
+ const modalMaxDragPosition = { x: localVideoTileOuterPaddingPX, y: localVideoTileOuterPaddingPX };
37
38
  /**
38
39
  * VideoGallery represents a layout of video tiles for a specific call.
39
40
  * It displays a {@link VideoTile} for the local user as well as for each remote participant who has joined the call.
@@ -41,7 +42,7 @@ const modalMaxDragPosition = {
41
42
  * @public
42
43
  */
43
44
  export const VideoGallery = (props) => {
44
- var _a, _b, _c, _d;
45
+ var _a, _b, _c, _d, _e;
45
46
  const { localParticipant, remoteParticipants = [], localVideoViewOptions, remoteVideoViewOptions, dominantSpeakers, onRenderLocalVideoTile, onRenderRemoteVideoTile, onCreateLocalStreamView, onDisposeLocalStreamView, onCreateRemoteStreamView, onDisposeRemoteStreamView, styles, layout, onRenderAvatar, showMuteIndicator, maxRemoteVideoStreams = DEFAULT_MAX_REMOTE_VIDEO_STREAMS, showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps } = props;
46
47
  const ids = useIdentifiers();
47
48
  const theme = useTheme();
@@ -55,70 +56,122 @@ export const VideoGallery = (props) => {
55
56
  const isNarrow = containerWidth ? isNarrowWidth(containerWidth) : false;
56
57
  const visibleVideoParticipants = useRef([]);
57
58
  const visibleAudioParticipants = useRef([]);
59
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
60
+ const visibleCallingParticipants = useRef([]);
58
61
  const modalWidth = isNarrow ? SMALL_FLOATING_MODAL_SIZE_PX.width : LARGE_FLOATING_MODAL_SIZE_PX.width;
59
- const modalHeight = isNarrow ? SMALL_FLOATING_MODAL_SIZE_PX.height : LARGE_FLOATING_MODAL_SIZE_PX.height; // The minimum drag position is the top left of the video gallery. i.e. the modal (PiP) should not be able
62
+ const modalHeight = isNarrow ? SMALL_FLOATING_MODAL_SIZE_PX.height : LARGE_FLOATING_MODAL_SIZE_PX.height;
63
+ // The minimum drag position is the top left of the video gallery. i.e. the modal (PiP) should not be able
60
64
  // to be dragged offscreen and these are the top and left bounds of that calculation.
61
- const modalMinDragPosition = useMemo(() => containerWidth && containerHeight ? {
62
- // We use -containerWidth/Height because our modal is positioned to start in the bottom right,
63
- // hence (0,0) is the bottom right of the video gallery.
64
- x: -containerWidth + modalWidth + localVideoTileOuterPaddingPX,
65
- y: -containerHeight + modalHeight + localVideoTileOuterPaddingPX
66
- } : undefined, [containerHeight, containerWidth, modalHeight, modalWidth]);
65
+ const modalMinDragPosition = useMemo(() => containerWidth && containerHeight
66
+ ? {
67
+ // We use -containerWidth/Height because our modal is positioned to start in the bottom right,
68
+ // hence (0,0) is the bottom right of the video gallery.
69
+ x: -containerWidth + modalWidth + localVideoTileOuterPaddingPX,
70
+ y: -containerHeight + modalHeight + localVideoTileOuterPaddingPX
71
+ }
72
+ : undefined, [containerHeight, containerWidth, modalHeight, modalWidth]);
67
73
  visibleVideoParticipants.current = smartDominantSpeakerParticipants({
68
- participants: (_a = remoteParticipants === null || remoteParticipants === void 0 ? void 0 : remoteParticipants.filter(p => { var _a; return (_a = p.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable; })) !== null && _a !== void 0 ? _a : [],
74
+ participants: (_a = remoteParticipants === null || remoteParticipants === void 0 ? void 0 : remoteParticipants.filter((p) => { var _a; return (_a = p.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable; })) !== null && _a !== void 0 ? _a : [],
69
75
  dominantSpeakers,
70
76
  lastVisibleParticipants: visibleVideoParticipants.current,
71
77
  maxDominantSpeakers: maxRemoteVideoStreams
72
78
  }).slice(0, maxRemoteVideoStreams);
79
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
80
+ visibleCallingParticipants.current = (_b = remoteParticipants === null || remoteParticipants === void 0 ? void 0 : remoteParticipants.filter((p) => p.state === ('Connecting' || 'Ringing'))) !== null && _b !== void 0 ? _b : [];
73
81
  // This set will be used to filter out participants already in visibleVideoParticipants
74
- const visibleVideoParticipantsSet = new Set(visibleVideoParticipants.current.map(p => p.userId));
82
+ const visibleVideoParticipantsSet = new Set(visibleVideoParticipants.current.map((p) => p.userId));
83
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
84
+ const visibleCallingParticipantsSet = new Set(visibleCallingParticipants.current.map((p) => p.userId));
75
85
  visibleAudioParticipants.current = smartDominantSpeakerParticipants({
76
- participants: (_b = remoteParticipants === null || remoteParticipants === void 0 ? void 0 : remoteParticipants.filter(p => !visibleVideoParticipantsSet.has(p.userId))) !== null && _b !== void 0 ? _b : [],
86
+ participants: (_c = remoteParticipants === null || remoteParticipants === void 0 ? void 0 : remoteParticipants.filter((p) => !visibleVideoParticipantsSet.has(p.userId) &&
87
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ !visibleCallingParticipantsSet.has(p.userId))) !== null && _c !== void 0 ? _c : [],
77
88
  dominantSpeakers,
78
89
  lastVisibleParticipants: visibleAudioParticipants.current,
79
90
  maxDominantSpeakers: MAX_AUDIO_DOMINANT_SPEAKERS
80
91
  });
92
+ /* @conditional-compile-remove(rooms) */
93
+ const permissions = _usePermissions();
81
94
  /**
82
95
  * Utility function for memoized rendering of LocalParticipant.
83
96
  */
84
97
  const localVideoTile = useMemo(() => {
85
98
  var _a, _b;
99
+ /* @conditional-compile-remove(rooms) */
100
+ if (!permissions.cameraButton) {
101
+ return undefined;
102
+ }
86
103
  if (onRenderLocalVideoTile) {
87
104
  return onRenderLocalVideoTile(localParticipant);
88
105
  }
89
106
  const localVideoTileStyles = concatStyleSets(shouldFloatLocalVideo ? floatingLocalVideoTileStyle : {}, {
90
- root: {
91
- borderRadius: theme.effects.roundedCorner4
92
- }
107
+ root: { borderRadius: theme.effects.roundedCorner4 }
93
108
  }, styles === null || styles === void 0 ? void 0 : styles.localVideo);
94
109
  const initialsName = !localParticipant.displayName ? strings.displayNamePlaceholder : localParticipant.displayName;
95
- return React.createElement(Stack, { key: "local-video-tile-key", tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
96
- React.createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: isNarrow ? '' : strings.localVideoLabel, initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: !(shouldFloatLocalVideo && isNarrow), showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles }));
97
- }, [isNarrow, localParticipant, localVideoCameraCycleButtonProps, localVideoViewOptions, onCreateLocalStreamView, onDisposeLocalStreamView, onRenderAvatar, onRenderLocalVideoTile, shouldFloatLocalVideo, showCameraSwitcherInLocalPreview, showMuteIndicator, strings.localVideoCameraSwitcherLabel, strings.localVideoLabel, strings.localVideoMovementLabel, strings.localVideoSelectedDescription, strings.displayNamePlaceholder, styles === null || styles === void 0 ? void 0 : styles.localVideo, theme.effects.roundedCorner4]);
110
+ return (React.createElement(Stack, { key: "local-video-tile-key", tabIndex: 0, "aria-label": strings.localVideoMovementLabel, role: 'dialog' },
111
+ React.createElement(_LocalVideoTile, { userId: localParticipant.userId, onCreateLocalStreamView: onCreateLocalStreamView, onDisposeLocalStreamView: onDisposeLocalStreamView, isAvailable: (_a = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _a === void 0 ? void 0 : _a.isAvailable, isMuted: localParticipant.isMuted, renderElement: (_b = localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.videoStream) === null || _b === void 0 ? void 0 : _b.renderElement, displayName: isNarrow ? '' : strings.localVideoLabel, initialsName: initialsName, localVideoViewOptions: localVideoViewOptions, onRenderAvatar: onRenderAvatar, showLabel: !(shouldFloatLocalVideo && isNarrow), showMuteIndicator: showMuteIndicator, showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: strings.localVideoCameraSwitcherLabel, localVideoSelectedDescription: strings.localVideoSelectedDescription, styles: localVideoTileStyles })));
112
+ }, [
113
+ isNarrow,
114
+ localParticipant,
115
+ localVideoCameraCycleButtonProps,
116
+ localVideoViewOptions,
117
+ onCreateLocalStreamView,
118
+ onDisposeLocalStreamView,
119
+ onRenderAvatar,
120
+ onRenderLocalVideoTile,
121
+ shouldFloatLocalVideo,
122
+ showCameraSwitcherInLocalPreview,
123
+ showMuteIndicator,
124
+ strings.localVideoCameraSwitcherLabel,
125
+ strings.localVideoLabel,
126
+ strings.localVideoMovementLabel,
127
+ strings.localVideoSelectedDescription,
128
+ strings.displayNamePlaceholder,
129
+ styles === null || styles === void 0 ? void 0 : styles.localVideo,
130
+ theme.effects.roundedCorner4,
131
+ /* @conditional-compile-remove(rooms) */ permissions.cameraButton
132
+ ]);
98
133
  const defaultOnRenderVideoTile = useCallback((participant, isVideoParticipant) => {
99
134
  const remoteVideoStream = participant.videoStream;
100
- return React.createElement(_RemoteVideoTile, Object.assign({ key: participant.userId }, participant, { onCreateRemoteStreamView: isVideoParticipant ? onCreateRemoteStreamView : undefined, onDisposeRemoteStreamView: isVideoParticipant ? onDisposeRemoteStreamView : undefined, isAvailable: isVideoParticipant ? remoteVideoStream === null || remoteVideoStream === void 0 ? void 0 : remoteVideoStream.isAvailable : false, isReceiving: isVideoParticipant ? remoteVideoStream === null || remoteVideoStream === void 0 ? void 0 : remoteVideoStream.isReceiving : false, renderElement: isVideoParticipant ? remoteVideoStream === null || remoteVideoStream === void 0 ? void 0 : remoteVideoStream.renderElement : undefined, remoteVideoViewOptions: isVideoParticipant ? remoteVideoViewOptions : undefined, onRenderAvatar: onRenderAvatar, showMuteIndicator: showMuteIndicator }));
135
+ return (React.createElement(_RemoteVideoTile, Object.assign({ key: participant.userId }, participant, { onCreateRemoteStreamView: isVideoParticipant ? onCreateRemoteStreamView : undefined, onDisposeRemoteStreamView: isVideoParticipant ? onDisposeRemoteStreamView : undefined, isAvailable: isVideoParticipant ? remoteVideoStream === null || remoteVideoStream === void 0 ? void 0 : remoteVideoStream.isAvailable : false, isReceiving: isVideoParticipant ? remoteVideoStream === null || remoteVideoStream === void 0 ? void 0 : remoteVideoStream.isReceiving : false, renderElement: isVideoParticipant ? remoteVideoStream === null || remoteVideoStream === void 0 ? void 0 : remoteVideoStream.renderElement : undefined, remoteVideoViewOptions: isVideoParticipant ? remoteVideoViewOptions : undefined, onRenderAvatar: onRenderAvatar, showMuteIndicator: showMuteIndicator,
136
+ /* @conditional-compile-remove(PSTN-calls) */
137
+ participantState: participant.state })));
101
138
  }, [onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, onRenderAvatar, showMuteIndicator]);
102
- const videoTiles = onRenderRemoteVideoTile ? visibleVideoParticipants.current.map(participant => onRenderRemoteVideoTile(participant)) : visibleVideoParticipants.current.map((participant) => {
103
- return defaultOnRenderVideoTile(participant, true);
104
- });
105
- const audioTiles = onRenderRemoteVideoTile ? visibleAudioParticipants.current.map(participant => onRenderRemoteVideoTile(participant)) : visibleAudioParticipants.current.map((participant) => {
106
- return defaultOnRenderVideoTile(participant, false);
107
- });
108
- const screenShareParticipant = remoteParticipants.find(participant => { var _a; return (_a = participant.screenShareStream) === null || _a === void 0 ? void 0 : _a.isAvailable; });
139
+ const videoTiles = onRenderRemoteVideoTile
140
+ ? visibleVideoParticipants.current.map((participant) => onRenderRemoteVideoTile(participant))
141
+ : visibleVideoParticipants.current.map((participant) => {
142
+ return defaultOnRenderVideoTile(participant, true);
143
+ });
144
+ const audioTiles = onRenderRemoteVideoTile
145
+ ? visibleAudioParticipants.current.map((participant) => onRenderRemoteVideoTile(participant))
146
+ : visibleAudioParticipants.current.map((participant) => {
147
+ return defaultOnRenderVideoTile(participant, false);
148
+ });
149
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
150
+ const callingTiles = onRenderRemoteVideoTile
151
+ ? visibleCallingParticipants.current.map((participant) => onRenderRemoteVideoTile(participant))
152
+ : visibleCallingParticipants.current.map((participant) => {
153
+ return defaultOnRenderVideoTile(participant, false);
154
+ });
155
+ const screenShareParticipant = remoteParticipants.find((participant) => { var _a; return (_a = participant.screenShareStream) === null || _a === void 0 ? void 0 : _a.isAvailable; });
109
156
  const screenShareActive = screenShareParticipant || (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.isScreenSharingOn);
110
157
  const createGridTiles = () => {
158
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
159
+ return videoTiles.length > 0 ? videoTiles : audioTiles.concat(callingTiles);
111
160
  return videoTiles.length > 0 ? videoTiles : audioTiles;
112
161
  };
113
162
  const gridTiles = createGridTiles();
114
163
  const createHorizontalGalleryTiles = () => {
115
164
  if (screenShareActive) {
116
165
  // If screen sharing is active, assign video and audio participants as horizontal gallery participants
166
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
167
+ return videoTiles.concat(audioTiles.concat(callingTiles));
117
168
  return videoTiles.concat(audioTiles);
118
169
  }
119
170
  else {
120
171
  // If screen sharing is not active, then assign all video tiles as grid tiles.
121
172
  // If there are no video tiles, then assign audio tiles as grid tiles.
173
+ /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
174
+ return videoTiles.length > 0 ? audioTiles.concat(callingTiles) : [];
122
175
  return videoTiles.length > 0 ? audioTiles : [];
123
176
  }
124
177
  };
@@ -127,23 +180,23 @@ export const VideoGallery = (props) => {
127
180
  gridTiles.push(localVideoTile);
128
181
  }
129
182
  const localScreenShareStreamComponent = React.createElement(LocalScreenShare, { localParticipant: localParticipant });
130
- const remoteScreenShareComponent = screenShareParticipant && React.createElement(RemoteScreenShare, Object.assign({}, screenShareParticipant, { renderElement: (_c = screenShareParticipant.screenShareStream) === null || _c === void 0 ? void 0 : _c.renderElement, onCreateRemoteStreamView: onCreateRemoteStreamView, onDisposeRemoteStreamView: onDisposeRemoteStreamView, isReceiving: (_d = screenShareParticipant.screenShareStream) === null || _d === void 0 ? void 0 : _d.isReceiving }));
183
+ const remoteScreenShareComponent = screenShareParticipant && (React.createElement(RemoteScreenShare, Object.assign({}, screenShareParticipant, { renderElement: (_d = screenShareParticipant.screenShareStream) === null || _d === void 0 ? void 0 : _d.renderElement, onCreateRemoteStreamView: onCreateRemoteStreamView, onDisposeRemoteStreamView: onDisposeRemoteStreamView, isReceiving: (_e = screenShareParticipant.screenShareStream) === null || _e === void 0 ? void 0 : _e.isReceiving })));
131
184
  const horizontalGalleryPresent = horizontalGalleryTiles && horizontalGalleryTiles.length > 0;
132
185
  const layerHostId = useId('layerhost');
133
- return React.createElement("div", { "data-ui-id": ids.videoGallery, ref: containerRef, className: mergeStyles(videoGalleryOuterDivStyle, styles === null || styles === void 0 ? void 0 : styles.root) },
134
- shouldFloatLocalVideo && !shouldFloatNonDraggableLocalVideo && localVideoTile && (horizontalGalleryPresent ? React.createElement(Stack, { className: mergeStyles(localVideoTileContainerStyle(theme, isNarrow)) }, localVideoTile) : React.createElement(_ModalClone, { isOpen: true, isModeless: true, dragOptions: DRAG_OPTIONS, styles: floatingLocalVideoModalStyle(theme, isNarrow), layerProps: {
135
- hostId: layerHostId
136
- }, maxDragPosition: modalMaxDragPosition, minDragPosition: modalMinDragPosition }, localVideoTile)),
137
- shouldFloatNonDraggableLocalVideo && localVideoTile && remoteParticipants.length > 0 && React.createElement(Stack, { className: mergeStyles(localVideoTileWithControlsContainerStyle(theme, isNarrow), {
186
+ return (React.createElement("div", { "data-ui-id": ids.videoGallery, ref: containerRef, className: mergeStyles(videoGalleryOuterDivStyle, styles === null || styles === void 0 ? void 0 : styles.root) },
187
+ shouldFloatLocalVideo &&
188
+ !shouldFloatNonDraggableLocalVideo &&
189
+ localVideoTile &&
190
+ (horizontalGalleryPresent ? (React.createElement(Stack, { className: mergeStyles(localVideoTileContainerStyle(theme, isNarrow)) }, localVideoTile)) : (React.createElement(_ModalClone, { isOpen: true, isModeless: true, dragOptions: DRAG_OPTIONS, styles: floatingLocalVideoModalStyle(theme, isNarrow), layerProps: { hostId: layerHostId }, maxDragPosition: modalMaxDragPosition, minDragPosition: modalMinDragPosition }, localVideoTile))),
191
+ // When we use showCameraSwitcherInLocalPreview it disables dragging to allow keyboard navigation.
192
+ shouldFloatNonDraggableLocalVideo && localVideoTile && remoteParticipants.length > 0 && (React.createElement(Stack, { className: mergeStyles(localVideoTileWithControlsContainerStyle(theme, isNarrow), {
138
193
  boxShadow: theme.effects.elevation8,
139
194
  zIndex: LOCAL_VIDEO_TILE_ZINDEX
140
- }) }, localVideoTile),
195
+ }) }, localVideoTile)),
141
196
  React.createElement(Stack, { horizontal: false, styles: videoGalleryContainerStyle },
142
- screenShareParticipant ? remoteScreenShareComponent : (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.isScreenSharingOn) ? localScreenShareStreamComponent : React.createElement(GridLayout, { key: "grid-layout", styles: styles === null || styles === void 0 ? void 0 : styles.gridLayout }, gridTiles),
143
- horizontalGalleryPresent && React.createElement("div", { style: {
144
- paddingTop: '0.5rem'
145
- } },
146
- React.createElement(ResponsiveHorizontalGallery, { key: "responsive-horizontal-gallery", containerStyles: horizontalGalleryContainerStyle(shouldFloatLocalVideo, isNarrow), horizontalGalleryStyles: concatStyleSets(horizontalGalleryStyle(isNarrow), styles === null || styles === void 0 ? void 0 : styles.horizontalGallery), childWidthRem: isNarrow ? SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width : LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width, buttonWidthRem: HORIZONTAL_GALLERY_BUTTON_WIDTH, gapWidthRem: HORIZONTAL_GALLERY_GAP }, horizontalGalleryTiles)),
147
- React.createElement(LayerHost, { id: layerHostId, className: mergeStyles(layerHostStyle) })));
197
+ screenShareParticipant ? (remoteScreenShareComponent) : (localParticipant === null || localParticipant === void 0 ? void 0 : localParticipant.isScreenSharingOn) ? (localScreenShareStreamComponent) : (React.createElement(GridLayout, { key: "grid-layout", styles: styles === null || styles === void 0 ? void 0 : styles.gridLayout }, gridTiles)),
198
+ horizontalGalleryPresent && (React.createElement("div", { style: { paddingTop: '0.5rem' } },
199
+ React.createElement(ResponsiveHorizontalGallery, { key: "responsive-horizontal-gallery", containerStyles: horizontalGalleryContainerStyle(shouldFloatLocalVideo, isNarrow), horizontalGalleryStyles: concatStyleSets(horizontalGalleryStyle(isNarrow), styles === null || styles === void 0 ? void 0 : styles.horizontalGallery), childWidthRem: isNarrow ? SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width : LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width, buttonWidthRem: HORIZONTAL_GALLERY_BUTTON_WIDTH, gapWidthRem: HORIZONTAL_GALLERY_GAP }, horizontalGalleryTiles))),
200
+ React.createElement(LayerHost, { id: layerHostId, className: mergeStyles(layerHostStyle) }))));
148
201
  };
149
202
  //# sourceMappingURL=VideoGallery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VideoGallery.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/VideoGallery.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAwB,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACvH,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;A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extualMenu, IDragOptions, IStyle, LayerHost, mergeStyles, Stack } from '@fluentui/react';\nimport React, { useCallback, useMemo, useRef } from 'react';\nimport { GridLayoutStyles } from '.';\nimport { smartDominantSpeakerParticipants } from '../gallery';\nimport { useIdentifiers } from '../identifiers/IdentifierProvider';\nimport { useLocale } from '../localization';\nimport { useTheme } from '../theming';\nimport {\n BaseCustomStyles,\n OnRenderAvatarCallback,\n VideoGalleryLocalParticipant,\n VideoGalleryRemoteParticipant,\n VideoStreamOptions,\n CreateVideoStreamViewResult\n} from '../types';\nimport { GridLayout } from './GridLayout';\nimport { HorizontalGalleryStyles } from './HorizontalGallery';\nimport { _RemoteVideoTile } from './RemoteVideoTile';\nimport { ResponsiveHorizontalGallery } from './ResponsiveHorizontalGallery';\nimport { HORIZONTAL_GALLERY_BUTTON_WIDTH, HORIZONTAL_GALLERY_GAP } from './styles/HorizontalGallery.styles';\nimport {\n LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM,\n SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM,\n floatingLocalVideoModalStyle,\n floatingLocalVideoTileStyle,\n horizontalGalleryContainerStyle,\n horizontalGalleryStyle,\n layerHostStyle,\n localVideoTileContainerStyle,\n videoGalleryContainerStyle,\n videoGalleryOuterDivStyle,\n localVideoTileOuterPaddingPX,\n SMALL_FLOATING_MODAL_SIZE_PX,\n LARGE_FLOATING_MODAL_SIZE_PX\n} from './styles/VideoGallery.styles';\nimport { isNarrowWidth, _useContainerHeight, _useContainerWidth } from './utils/responsive';\nimport { LocalScreenShare } from './VideoGallery/LocalScreenShare';\nimport { RemoteScreenShare } from './VideoGallery/RemoteScreenShare';\nimport { useId } from '@fluentui/react-hooks';\nimport { LocalVideoCameraCycleButtonProps } from './LocalVideoCameraButton';\nimport { localVideoTileWithControlsContainerStyle, LOCAL_VIDEO_TILE_ZINDEX } from './styles/VideoGallery.styles';\nimport { _ICoordinates, _ModalClone } from './ModalClone/ModalClone';\nimport { _formatString } from '@internal/acs-ui-common';\nimport { _LocalVideoTile } from './LocalVideoTile';\n/* @conditional-compile-remove(rooms) */\nimport { _usePermissions } from '../permissions';\n\n// Currently the Calling JS SDK supports up to 4 remote video streams\nconst DEFAULT_MAX_REMOTE_VIDEO_STREAMS = 4;\n// Set aside only 6 dominant speakers for remaining audio participants\nconst MAX_AUDIO_DOMINANT_SPEAKERS = 6;\n\n/**\n * All strings that may be shown on the UI in the {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryStrings {\n /** String to notify that local user is sharing their screen */\n screenIsBeingSharedMessage: string;\n /** String to show when remote screen share stream is loading */\n screenShareLoadingMessage: string;\n /** String for local video label. Default is \"You\" */\n localVideoLabel: string;\n /** String for local video camera switcher */\n localVideoCameraSwitcherLabel: string;\n /** String for announcing the local video tile can be moved by keyboard controls */\n localVideoMovementLabel: string;\n /** String for announcing the selected camera */\n localVideoSelectedDescription: string;\n /** placeholder text for participants who does not have a display name*/\n displayNamePlaceholder: string;\n}\n\n/**\n * @public\n */\nexport type VideoGalleryLayout = 'default' | 'floatingLocalVideo';\n\n/**\n * {@link VideoGallery} Component Styles.\n * @public\n */\nexport interface VideoGalleryStyles extends BaseCustomStyles {\n /** Styles for the grid layout */\n gridLayout?: GridLayoutStyles;\n /** Styles for the horizontal gallery */\n horizontalGallery?: HorizontalGalleryStyles;\n /** Styles for the local video */\n localVideo?: IStyle;\n}\n\n/**\n * Props for {@link VideoGallery}.\n *\n * @public\n */\nexport interface VideoGalleryProps {\n /**\n * Allows users to pass an object containing custom CSS styles for the gallery container.\n *\n * @Example\n * ```\n * <VideoGallery styles={{ root: { border: 'solid 1px red' } }} />\n * ```\n */\n styles?: VideoGalleryStyles;\n /** Layout of the video tiles. */\n layout?: VideoGalleryLayout;\n /** Local video particpant */\n localParticipant: VideoGalleryLocalParticipant;\n /** List of remote video particpants */\n remoteParticipants?: VideoGalleryRemoteParticipant[];\n /** List of dominant speaker userIds in the order of their dominance. 0th index is the most dominant. */\n dominantSpeakers?: string[];\n /** Local video view options */\n localVideoViewOptions?: VideoStreamOptions;\n /** Remote videos view options */\n remoteVideoViewOptions?: VideoStreamOptions;\n /** Callback to create the local video stream view */\n onCreateLocalStreamView?: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;\n /** Callback to dispose of the local video stream view */\n onDisposeLocalStreamView?: () => void;\n /** Callback to render the local video tile*/\n onRenderLocalVideoTile?: (localParticipant: VideoGalleryLocalParticipant) => JSX.Element;\n /** Callback to create a remote video stream view */\n onCreateRemoteStreamView?: (\n userId: string,\n options?: VideoStreamOptions\n ) => Promise<void | CreateVideoStreamViewResult>;\n /** Callback to render a remote video tile */\n onRenderRemoteVideoTile?: (remoteParticipant: VideoGalleryRemoteParticipant) => JSX.Element;\n /** Callback to dispose a remote video stream view */\n onDisposeRemoteStreamView?: (userId: string) => Promise<void>;\n /** Callback to render a particpant avatar */\n onRenderAvatar?: OnRenderAvatarCallback;\n /**\n * Whether to display the local video camera switcher button\n */\n showCameraSwitcherInLocalPreview?: boolean;\n /**\n * Whether to display a mute icon beside the user's display name.\n * @defaultValue `true`\n */\n showMuteIndicator?: boolean;\n /** Optional strings to override in component */\n strings?: Partial<VideoGalleryStrings>;\n /**\n * Maximum number of participant remote video streams that is rendered.\n * @defaultValue 4\n */\n maxRemoteVideoStreams?: number;\n /**\n * Camera control information for button to switch cameras.\n */\n localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps;\n}\n\nconst DRAG_OPTIONS: IDragOptions = {\n moveMenuItemText: 'Move',\n closeMenuItemText: 'Close',\n menu: ContextualMenu,\n keepInBounds: true\n};\n\n// Manually override the max position used to keep the modal in the bounds of its container.\n// This is a workaround for: https://github.com/microsoft/fluentui/issues/20122\n// Because our modal starts in the bottom right corner, we can say that this is the max (i.e. rightmost and bottomost)\n// position the modal can be dragged to.\nconst modalMaxDragPosition = { x: localVideoTileOuterPaddingPX, y: localVideoTileOuterPaddingPX };\n\n/**\n * VideoGallery represents a layout of video tiles for a specific call.\n * It displays a {@link VideoTile} for the local user as well as for each remote participant who has joined the call.\n *\n * @public\n */\nexport const VideoGallery = (props: VideoGalleryProps): JSX.Element => {\n const {\n localParticipant,\n remoteParticipants = [],\n localVideoViewOptions,\n remoteVideoViewOptions,\n dominantSpeakers,\n onRenderLocalVideoTile,\n onRenderRemoteVideoTile,\n onCreateLocalStreamView,\n onDisposeLocalStreamView,\n onCreateRemoteStreamView,\n onDisposeRemoteStreamView,\n styles,\n layout,\n onRenderAvatar,\n showMuteIndicator,\n maxRemoteVideoStreams = DEFAULT_MAX_REMOTE_VIDEO_STREAMS,\n showCameraSwitcherInLocalPreview,\n localVideoCameraCycleButtonProps\n } = props;\n\n const ids = useIdentifiers();\n const theme = useTheme();\n const localeStrings = useLocale().strings.videoGallery;\n const strings = { ...localeStrings, ...props.strings };\n\n const shouldFloatLocalVideo = !!(layout === 'floatingLocalVideo' && remoteParticipants.length > 0);\n const shouldFloatNonDraggableLocalVideo = !!(showCameraSwitcherInLocalPreview && shouldFloatLocalVideo);\n\n const containerRef = useRef<HTMLDivElement>(null);\n const containerWidth = _useContainerWidth(containerRef);\n const containerHeight = _useContainerHeight(containerRef);\n const isNarrow = containerWidth ? isNarrowWidth(containerWidth) : false;\n const visibleVideoParticipants = useRef<VideoGalleryRemoteParticipant[]>([]);\n const visibleAudioParticipants = useRef<VideoGalleryRemoteParticipant[]>([]);\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n const visibleCallingParticipants = useRef<VideoGalleryRemoteParticipant[]>([]);\n\n const modalWidth = isNarrow ? SMALL_FLOATING_MODAL_SIZE_PX.width : LARGE_FLOATING_MODAL_SIZE_PX.width;\n const modalHeight = isNarrow ? SMALL_FLOATING_MODAL_SIZE_PX.height : LARGE_FLOATING_MODAL_SIZE_PX.height;\n // The minimum drag position is the top left of the video gallery. i.e. the modal (PiP) should not be able\n // to be dragged offscreen and these are the top and left bounds of that calculation.\n const modalMinDragPosition: _ICoordinates | undefined = useMemo(\n () =>\n containerWidth && containerHeight\n ? {\n // We use -containerWidth/Height because our modal is positioned to start in the bottom right,\n // hence (0,0) is the bottom right of the video gallery.\n x: -containerWidth + modalWidth + localVideoTileOuterPaddingPX,\n y: -containerHeight + modalHeight + localVideoTileOuterPaddingPX\n }\n : undefined,\n [containerHeight, containerWidth, modalHeight, modalWidth]\n );\n\n visibleVideoParticipants.current = smartDominantSpeakerParticipants({\n participants: remoteParticipants?.filter((p) => p.videoStream?.isAvailable) ?? [],\n dominantSpeakers,\n lastVisibleParticipants: visibleVideoParticipants.current,\n maxDominantSpeakers: maxRemoteVideoStreams\n }).slice(0, maxRemoteVideoStreams);\n\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n visibleCallingParticipants.current = remoteParticipants?.filter((p) => p.state === ('Connecting' || 'Ringing')) ?? [];\n\n // This set will be used to filter out participants already in visibleVideoParticipants\n const visibleVideoParticipantsSet = new Set(visibleVideoParticipants.current.map((p) => p.userId));\n\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n const visibleCallingParticipantsSet = new Set(visibleCallingParticipants.current.map((p) => p.userId));\n\n visibleAudioParticipants.current = smartDominantSpeakerParticipants({\n participants:\n remoteParticipants?.filter(\n (p) =>\n !visibleVideoParticipantsSet.has(p.userId) &&\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ !visibleCallingParticipantsSet.has(\n p.userId\n )\n ) ?? [],\n dominantSpeakers,\n lastVisibleParticipants: visibleAudioParticipants.current,\n maxDominantSpeakers: MAX_AUDIO_DOMINANT_SPEAKERS\n });\n\n /* @conditional-compile-remove(rooms) */\n const permissions = _usePermissions();\n\n /**\n * Utility function for memoized rendering of LocalParticipant.\n */\n const localVideoTile = useMemo((): JSX.Element /* @conditional-compile-remove(rooms) */ | undefined => {\n /* @conditional-compile-remove(rooms) */\n if (!permissions.cameraButton) {\n return undefined;\n }\n if (onRenderLocalVideoTile) {\n return onRenderLocalVideoTile(localParticipant);\n }\n\n const localVideoTileStyles = concatStyleSets(\n shouldFloatLocalVideo ? floatingLocalVideoTileStyle : {},\n {\n root: { borderRadius: theme.effects.roundedCorner4 }\n },\n styles?.localVideo\n );\n\n const initialsName = !localParticipant.displayName ? strings.displayNamePlaceholder : localParticipant.displayName;\n\n return (\n <Stack key=\"local-video-tile-key\" tabIndex={0} aria-label={strings.localVideoMovementLabel} role={'dialog'}>\n <_LocalVideoTile\n userId={localParticipant.userId}\n onCreateLocalStreamView={onCreateLocalStreamView}\n onDisposeLocalStreamView={onDisposeLocalStreamView}\n isAvailable={localParticipant?.videoStream?.isAvailable}\n isMuted={localParticipant.isMuted}\n renderElement={localParticipant?.videoStream?.renderElement}\n displayName={isNarrow ? '' : strings.localVideoLabel}\n initialsName={initialsName}\n localVideoViewOptions={localVideoViewOptions}\n onRenderAvatar={onRenderAvatar}\n showLabel={!(shouldFloatLocalVideo && isNarrow)}\n showMuteIndicator={showMuteIndicator}\n showCameraSwitcherInLocalPreview={showCameraSwitcherInLocalPreview}\n localVideoCameraCycleButtonProps={localVideoCameraCycleButtonProps}\n localVideoCameraSwitcherLabel={strings.localVideoCameraSwitcherLabel}\n localVideoSelectedDescription={strings.localVideoSelectedDescription}\n styles={localVideoTileStyles}\n />\n </Stack>\n );\n }, [\n isNarrow,\n localParticipant,\n localVideoCameraCycleButtonProps,\n localVideoViewOptions,\n onCreateLocalStreamView,\n onDisposeLocalStreamView,\n onRenderAvatar,\n onRenderLocalVideoTile,\n shouldFloatLocalVideo,\n showCameraSwitcherInLocalPreview,\n showMuteIndicator,\n strings.localVideoCameraSwitcherLabel,\n strings.localVideoLabel,\n strings.localVideoMovementLabel,\n strings.localVideoSelectedDescription,\n strings.displayNamePlaceholder,\n styles?.localVideo,\n theme.effects.roundedCorner4,\n /* @conditional-compile-remove(rooms) */ permissions.cameraButton\n ]);\n\n const defaultOnRenderVideoTile = useCallback(\n (participant: VideoGalleryRemoteParticipant, isVideoParticipant?: boolean) => {\n const remoteVideoStream = participant.videoStream;\n return (\n <_RemoteVideoTile\n key={participant.userId}\n {...participant}\n onCreateRemoteStreamView={isVideoParticipant ? onCreateRemoteStreamView : undefined}\n onDisposeRemoteStreamView={isVideoParticipant ? onDisposeRemoteStreamView : undefined}\n isAvailable={isVideoParticipant ? remoteVideoStream?.isAvailable : false}\n isReceiving={isVideoParticipant ? remoteVideoStream?.isReceiving : false}\n renderElement={isVideoParticipant ? remoteVideoStream?.renderElement : undefined}\n remoteVideoViewOptions={isVideoParticipant ? remoteVideoViewOptions : undefined}\n onRenderAvatar={onRenderAvatar}\n showMuteIndicator={showMuteIndicator}\n /* @conditional-compile-remove(PSTN-calls) */\n participantState={participant.state}\n />\n );\n },\n [onCreateRemoteStreamView, onDisposeRemoteStreamView, remoteVideoViewOptions, onRenderAvatar, showMuteIndicator]\n );\n\n const videoTiles = onRenderRemoteVideoTile\n ? visibleVideoParticipants.current.map((participant) => onRenderRemoteVideoTile(participant))\n : visibleVideoParticipants.current.map((participant): JSX.Element => {\n return defaultOnRenderVideoTile(participant, true);\n });\n\n const audioTiles = onRenderRemoteVideoTile\n ? visibleAudioParticipants.current.map((participant) => onRenderRemoteVideoTile(participant))\n : visibleAudioParticipants.current.map((participant): JSX.Element => {\n return defaultOnRenderVideoTile(participant, false);\n });\n\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n const callingTiles = onRenderRemoteVideoTile\n ? visibleCallingParticipants.current.map((participant) => onRenderRemoteVideoTile(participant))\n : visibleCallingParticipants.current.map((participant): JSX.Element => {\n return defaultOnRenderVideoTile(participant, false);\n });\n const screenShareParticipant = remoteParticipants.find((participant) => participant.screenShareStream?.isAvailable);\n const screenShareActive = screenShareParticipant || localParticipant?.isScreenSharingOn;\n\n const createGridTiles = (): JSX.Element[] => {\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n return videoTiles.length > 0 ? videoTiles : audioTiles.concat(callingTiles);\n return videoTiles.length > 0 ? videoTiles : audioTiles;\n };\n const gridTiles = createGridTiles();\n\n const createHorizontalGalleryTiles = (): JSX.Element[] => {\n if (screenShareActive) {\n // If screen sharing is active, assign video and audio participants as horizontal gallery participants\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n return videoTiles.concat(audioTiles.concat(callingTiles));\n return videoTiles.concat(audioTiles);\n } else {\n // If screen sharing is not active, then assign all video tiles as grid tiles.\n // If there are no video tiles, then assign audio tiles as grid tiles.\n /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\n return videoTiles.length > 0 ? audioTiles.concat(callingTiles) : [];\n return videoTiles.length > 0 ? audioTiles : [];\n }\n };\n const horizontalGalleryTiles = createHorizontalGalleryTiles();\n\n if (!shouldFloatLocalVideo && localVideoTile) {\n gridTiles.push(localVideoTile);\n }\n\n const localScreenShareStreamComponent = <LocalScreenShare localParticipant={localParticipant} />;\n\n const remoteScreenShareComponent = screenShareParticipant && (\n <RemoteScreenShare\n {...screenShareParticipant}\n renderElement={screenShareParticipant.screenShareStream?.renderElement}\n onCreateRemoteStreamView={onCreateRemoteStreamView}\n onDisposeRemoteStreamView={onDisposeRemoteStreamView}\n isReceiving={screenShareParticipant.screenShareStream?.isReceiving}\n />\n );\n\n const horizontalGalleryPresent = horizontalGalleryTiles && horizontalGalleryTiles.length > 0;\n const layerHostId = useId('layerhost');\n\n return (\n <div\n data-ui-id={ids.videoGallery}\n ref={containerRef}\n className={mergeStyles(videoGalleryOuterDivStyle, styles?.root)}\n >\n {shouldFloatLocalVideo &&\n !shouldFloatNonDraggableLocalVideo &&\n localVideoTile &&\n (horizontalGalleryPresent ? (\n <Stack className={mergeStyles(localVideoTileContainerStyle(theme, isNarrow))}>{localVideoTile}</Stack>\n ) : (\n <_ModalClone\n isOpen={true}\n isModeless={true}\n dragOptions={DRAG_OPTIONS}\n styles={floatingLocalVideoModalStyle(theme, isNarrow)}\n layerProps={{ hostId: layerHostId }}\n maxDragPosition={modalMaxDragPosition}\n minDragPosition={modalMinDragPosition}\n >\n {localVideoTile}\n </_ModalClone>\n ))}\n {\n // When we use showCameraSwitcherInLocalPreview it disables dragging to allow keyboard navigation.\n shouldFloatNonDraggableLocalVideo && localVideoTile && remoteParticipants.length > 0 && (\n <Stack\n className={mergeStyles(localVideoTileWithControlsContainerStyle(theme, isNarrow), {\n boxShadow: theme.effects.elevation8,\n zIndex: LOCAL_VIDEO_TILE_ZINDEX\n })}\n >\n {localVideoTile}\n </Stack>\n )\n }\n <Stack horizontal={false} styles={videoGalleryContainerStyle}>\n {screenShareParticipant ? (\n remoteScreenShareComponent\n ) : localParticipant?.isScreenSharingOn ? (\n localScreenShareStreamComponent\n ) : (\n <GridLayout key=\"grid-layout\" styles={styles?.gridLayout}>\n {gridTiles}\n </GridLayout>\n )}\n {horizontalGalleryPresent && (\n <div style={{ paddingTop: '0.5rem' }}>\n <ResponsiveHorizontalGallery\n key=\"responsive-horizontal-gallery\"\n containerStyles={horizontalGalleryContainerStyle(shouldFloatLocalVideo, isNarrow)}\n horizontalGalleryStyles={concatStyleSets(horizontalGalleryStyle(isNarrow), styles?.horizontalGallery)}\n childWidthRem={\n isNarrow ? SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.width : LARGE_HORIZONTAL_GALLERY_TILE_SIZE_REM.width\n }\n buttonWidthRem={HORIZONTAL_GALLERY_BUTTON_WIDTH}\n gapWidthRem={HORIZONTAL_GALLERY_GAP}\n >\n {horizontalGalleryTiles}\n </ResponsiveHorizontalGallery>\n </div>\n )}\n\n <LayerHost id={layerHostId} className={mergeStyles(layerHostStyle)} />\n </Stack>\n </div>\n );\n};\n\"../../../acs-ui-common/src\""]}
@@ -1,6 +1,7 @@
1
1
  import { IStyle } from '@fluentui/react';
2
2
  import React from 'react';
3
3
  import { BaseCustomStyles, OnRenderAvatarCallback } from '../types';
4
+ import { ParticipantState } from '../types';
4
5
  /**
5
6
  * Strings of {@link VideoTile} that can be overridden.
6
7
  * @beta
@@ -61,6 +62,10 @@ export interface VideoTileProps {
61
62
  * Whether the video is muted or not.
62
63
  */
63
64
  isMuted?: boolean;
65
+ /**
66
+ * If true, the video tile will show the pin icon.
67
+ */
68
+ isPinned?: boolean;
64
69
  /**
65
70
  * Display Name of the Participant to be shown in the label.
66
71
  * @remarks `displayName` is used to generate avatar initials if `initialsName` is not provided.
@@ -89,6 +94,12 @@ export interface VideoTileProps {
89
94
  noVideoAvailableAriaLabel?: string;
90
95
  /** Whether the participant in the videoTile is speaking. Shows a speaking indicator (border). */
91
96
  isSpeaking?: boolean;
97
+ /**
98
+ * The call connection state of the participant.
99
+ * For example, `Hold` means the participant is on hold.
100
+ */
101
+ participantState?: ParticipantState;
102
+ strings?: VideoTileStrings;
92
103
  }
93
104
  /**
94
105
  * A component to render the video stream for a single call participant.
@@ -7,25 +7,20 @@ import { useIdentifiers } from '../identifiers';
7
7
  import { useLocale } from '../localization';
8
8
  import { useTheme } from '../theming';
9
9
  import { disabledVideoHint, displayNameStyle, iconContainerStyle, overlayContainerStyles, rootStyles, videoContainerStyles, videoHint, tileInfoContainerStyle, participantStateStringStyles } from './styles/VideoTile.styles';
10
+ /* @conditional-compile-remove(pinned-participants) */
11
+ import { pinIconStyle } from './styles/VideoTile.styles';
10
12
  import { getVideoTileOverrideColor } from './utils/videoTileStylesUtils';
11
- const DEFAULT_PERSONA_MAX_SIZE_PX = 100; // Coin min size is set PersonaSize.size32
13
+ // Coin max size is set to PersonaSize.size100
14
+ const DEFAULT_PERSONA_MAX_SIZE_PX = 100;
15
+ // Coin min size is set PersonaSize.size32
12
16
  const DEFAULT_PERSONA_MIN_SIZE_PX = 32;
13
17
  const DefaultPlaceholder = (props) => {
14
18
  const { text, noVideoAvailableAriaLabel, coinSize, hidePersonaDetails } = props;
15
- return React.createElement(Stack, { className: mergeStyles({
16
- position: 'absolute',
17
- height: '100%',
18
- width: '100%'
19
- }) },
19
+ return (React.createElement(Stack, { className: mergeStyles({ position: 'absolute', height: '100%', width: '100%' }) },
20
20
  React.createElement(Stack, { styles: defaultPersonaStyles },
21
- React.createElement(Persona, { coinSize: coinSize, hidePersonaDetails: hidePersonaDetails, text: text !== null && text !== void 0 ? text : '', initialsTextColor: "white", "aria-label": noVideoAvailableAriaLabel !== null && noVideoAvailableAriaLabel !== void 0 ? noVideoAvailableAriaLabel : '', showOverflowTooltip: false })));
22
- };
23
- const defaultPersonaStyles = {
24
- root: {
25
- margin: 'auto',
26
- maxHeight: '100%'
27
- }
21
+ React.createElement(Persona, { coinSize: coinSize, hidePersonaDetails: hidePersonaDetails, text: text !== null && text !== void 0 ? text : '', initialsTextColor: "white", "aria-label": noVideoAvailableAriaLabel !== null && noVideoAvailableAriaLabel !== void 0 ? noVideoAvailableAriaLabel : '', showOverflowTooltip: false }))));
28
22
  };
23
+ const defaultPersonaStyles = { root: { margin: 'auto', maxHeight: '100%' } };
29
24
  /**
30
25
  * A component to render the video stream for a single call participant.
31
26
  *
@@ -34,7 +29,9 @@ const defaultPersonaStyles = {
34
29
  * @public
35
30
  */
36
31
  export const VideoTile = (props) => {
37
- const { children, displayName, initialsName, isMirrored, isMuted, onRenderPlaceholder, renderElement, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX } = props;
32
+ const { children, displayName, initialsName, isMirrored, isMuted,
33
+ /* @conditional-compile-remove(pinned-participants) */
34
+ isPinned, onRenderPlaceholder, renderElement, showLabel = true, showMuteIndicator = true, styles, userId, noVideoAvailableAriaLabel, isSpeaking, personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX, personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX } = props;
38
35
  const [personaSize, setPersonaSize] = useState(100);
39
36
  const videoTileRef = useRef(null);
40
37
  const locale = useLocale();
@@ -60,14 +57,12 @@ export const VideoTile = (props) => {
60
57
  styles: defaultPersonaStyles,
61
58
  hidePersonaDetails: true
62
59
  };
63
- const videoHintWithBorderRadius = mergeStyles(videoHint, {
64
- borderRadius: theme.effects.roundedCorner4
65
- });
60
+ const videoHintWithBorderRadius = mergeStyles(videoHint, { borderRadius: theme.effects.roundedCorner4 });
66
61
  const tileInfoStyle = useMemo(() => mergeStyles(isVideoRendered ? videoHintWithBorderRadius : disabledVideoHint, getVideoTileOverrideColor(isVideoRendered, theme, 'neutralPrimary'), styles === null || styles === void 0 ? void 0 : styles.displayNameContainer), [isVideoRendered, videoHintWithBorderRadius, theme, styles === null || styles === void 0 ? void 0 : styles.displayNameContainer]);
67
62
  const ids = useIdentifiers();
68
- const canShowLabel = showLabel && (displayName || showMuteIndicator && isMuted);
63
+ const canShowLabel = showLabel && (displayName || (showMuteIndicator && isMuted));
69
64
  const participantStateString = participantStateStringTrampoline(props, locale);
70
- return React.createElement(Ref, { innerRef: videoTileRef },
65
+ return (React.createElement(Ref, { innerRef: videoTileRef },
71
66
  React.createElement(Stack, { "data-ui-id": ids.videoTile, className: mergeStyles(rootStyles, {
72
67
  background: theme.palette.neutralLighter,
73
68
  borderRadius: theme.effects.roundedCorner4
@@ -82,22 +77,31 @@ export const VideoTile = (props) => {
82
77
  height: '100%'
83
78
  }
84
79
  }, styles === null || styles === void 0 ? void 0 : styles.root) },
85
- isVideoRendered ? React.createElement(Stack, { className: mergeStyles(videoContainerStyles, isMirrored && {
86
- transform: 'scaleX(-1)'
87
- }, styles === null || styles === void 0 ? void 0 : styles.videoContainer) }, renderElement) : React.createElement(Stack, { className: mergeStyles(videoContainerStyles), style: {
88
- opacity: participantStateString ? 0.4 : 1
89
- } }, onRenderPlaceholder ? onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder) : React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))),
90
- (canShowLabel || participantStateString) && React.createElement(Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
80
+ isVideoRendered ? (React.createElement(Stack, { className: mergeStyles(videoContainerStyles, isMirrored && { transform: 'scaleX(-1)' }, styles === null || styles === void 0 ? void 0 : styles.videoContainer) }, renderElement)) : (React.createElement(Stack, { className: mergeStyles(videoContainerStyles), style: { opacity: participantStateString ? 0.4 : 1 } }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React.createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
81
+ (canShowLabel || participantStateString) && (React.createElement(Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
91
82
  React.createElement(Stack, { horizontal: true, className: tileInfoStyle },
92
- canShowLabel && React.createElement(Text, { className: mergeStyles(displayNameStyle), title: displayName, style: {
93
- color: participantStateString ? theme.palette.neutralSecondary : 'inherit'
94
- } }, displayName),
95
- participantStateString && React.createElement(Text, { className: mergeStyles(participantStateStringStyles(theme)) }, bracketedParticipantString(participantStateString, !!canShowLabel)),
96
- showMuteIndicator && isMuted && React.createElement(Stack, { className: mergeStyles(iconContainerStyle) },
97
- React.createElement(Icon, { iconName: "VideoTileMicOff" })))),
98
- children && React.createElement(Stack, { className: mergeStyles(overlayContainerStyles, styles === null || styles === void 0 ? void 0 : styles.overlayContainer) }, children)));
83
+ canShowLabel && (React.createElement(Text, { className: mergeStyles(displayNameStyle), title: displayName, style: { color: participantStateString ? theme.palette.neutralSecondary : 'inherit' } }, displayName)),
84
+ participantStateString && (React.createElement(Text, { className: mergeStyles(participantStateStringStyles(theme)) }, bracketedParticipantString(participantStateString, !!canShowLabel))),
85
+ showMuteIndicator && isMuted && (React.createElement(Stack, { className: mergeStyles(iconContainerStyle) },
86
+ React.createElement(Icon, { iconName: "VideoTileMicOff" }))),
87
+ /* @conditional-compile-remove(pinned-participants) */
88
+ isPinned && (React.createElement(Stack, { className: mergeStyles(iconContainerStyle) },
89
+ React.createElement(Icon, { iconName: "VideoTilePinned", className: mergeStyles(pinIconStyle) })))))),
90
+ children && (React.createElement(Stack, { className: mergeStyles(overlayContainerStyles, styles === null || styles === void 0 ? void 0 : styles.overlayContainer) }, children)))));
99
91
  };
100
92
  const participantStateStringTrampoline = (props, locale) => {
93
+ /* @conditional-compile-remove(one-to-n-calling) */
94
+ /* @conditional-compile-remove(PSTN-calls) */
95
+ const strings = Object.assign(Object.assign({}, locale.strings.videoTile), props.strings);
96
+ /* @conditional-compile-remove(one-to-n-calling) */
97
+ /* @conditional-compile-remove(PSTN-calls) */
98
+ return props.participantState === 'Idle' || props.participantState === 'Connecting'
99
+ ? strings === null || strings === void 0 ? void 0 : strings.participantStateConnecting
100
+ : props.participantState === 'EarlyMedia' || props.participantState === 'Ringing'
101
+ ? strings === null || strings === void 0 ? void 0 : strings.participantStateRinging
102
+ : props.participantState === 'Hold'
103
+ ? strings === null || strings === void 0 ? void 0 : strings.participantStateHold
104
+ : undefined;
101
105
  return undefined;
102
106
  };
103
107
  const tileInfoContainerTokens = {
@@ -1 +1 @@
1
- {"version":3,"file":"VideoTile.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/VideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,IAAI,EAAU,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAmB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,gBAAg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AAC,KAAK,CAAC,gBAAgB,KAAK,YAAY,IAAI,KAAK,CAAC,gBAAgB,KAAK,SAAS;YACjF,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,uBAAuB;YAClC,CAAC,CAAC,KAAK,CAAC,gBAAgB,KAAK,MAAM;gBACnC,CAAC,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB;gBAC/B,CAAC,CAAC,SAAS,CAAC;IAEd,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG;IAC9B,sEAAsE;IACtE,yDAAyD;IACzD,WAAW,EAAE,MAAM;CACpB,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,iBAAyB,EAAE,YAAqB,EAAU,EAAE;IAC9F,OAAO,YAAY,CAAC,CAAC,CAAC,IAAI,iBAAiB,GAAG,CAAC,CAAC,CAAC,iBAAiB,CAAC;AACrE,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Icon, IStyle, mergeStyles, Persona, Stack, Text } from '@fluentui/react';\nimport { Ref } from '@fluentui/react-northstar';\nimport React, { useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport { useIdentifiers } from '../identifiers';\nimport { ComponentLocale, useLocale } from '../localization';\nimport { useTheme } from '../theming';\nimport { BaseCustomStyles, CustomAvatarOptions, OnRenderAvatarCallback } from '../types';\n/* @conditional-compile-remove(one-to-n-calling) */\n/* @conditional-compile-remove(PSTN-calls) */\nimport { ParticipantState } from '../types';\nimport {\n disabledVideoHint,\n displayNameStyle,\n iconContainerStyle,\n overlayContainerStyles,\n rootStyles,\n videoContainerStyles,\n videoHint,\n tileInfoContainerStyle,\n participantStateStringStyles\n} from './styles/VideoTile.styles';\n/* @conditional-compile-remove(pinned-participants) */\nimport { pinIconStyle } from './styles/VideoTile.styles';\nimport { getVideoTileOverrideColor } from './utils/videoTileStylesUtils';\n\n/**\n * Strings of {@link VideoTile} that can be overridden.\n * @beta\n */\nexport interface VideoTileStrings {\n participantStateConnecting: string;\n participantStateRinging: string;\n participantStateHold: string;\n}\n\n/**\n * Fluent styles for {@link VideoTile}.\n *\n * @public\n */\nexport interface VideoTileStylesProps extends BaseCustomStyles {\n /** Styles for video container. */\n videoContainer?: IStyle;\n /** Styles for container overlayed on the video container. */\n overlayContainer?: IStyle;\n /** Styles for displayName on the video container. */\n displayNameContainer?: IStyle;\n}\n\n/**\n * Props for {@link VideoTile}.\n *\n * @public\n */\nexport interface VideoTileProps {\n /** React Child components. Child Components will show as overlay component in the VideoTile. */\n children?: React.ReactNode;\n /**\n * Allows users to pass in an object contains custom CSS styles.\n * @Example\n * ```\n * <VideoTile styles={{ root: { background: 'blue' } }} />\n * ```\n */\n styles?: VideoTileStylesProps;\n /** user id for the VideoTile placeholder. */\n userId?: string;\n /** Component with the video stream. */\n renderElement?: JSX.Element | null;\n /** Determines if the video is mirrored or not. */\n isMirrored?: boolean;\n /** Custom render Component function for no video is available. Render a Persona Icon if undefined. */\n onRenderPlaceholder?: OnRenderAvatarCallback;\n /**\n * Show label on the VideoTile\n * @defaultValue true\n */\n showLabel?: boolean;\n /**\n * Whether to display a mute icon beside the user's display name.\n * @defaultValue true\n */\n showMuteIndicator?: boolean;\n /**\n * Whether the video is muted or not.\n */\n isMuted?: boolean;\n /* @conditional-compile-remove(pinned-participants) */\n /**\n * If true, the video tile will show the pin icon.\n */\n isPinned?: boolean;\n /**\n * Display Name of the Participant to be shown in the label.\n * @remarks `displayName` is used to generate avatar initials if `initialsName` is not provided.\n */\n displayName?: string;\n /**\n * Name of the participant used to generate initials. For example, a name `John Doe` will display `JD` as initials.\n * @remarks `displayName` is used if this property is not specified.\n */\n initialsName?: string;\n /**\n * Minimum size of the persona avatar in px.\n * The persona avatar is the default placeholder shown when no video stream is available.\n * For more information see https://developer.microsoft.com/en-us/fluentui#/controls/web/persona\n * @defaultValue 32px\n */\n personaMinSize?: number;\n /**\n * Maximum size of the personal avatar in px.\n * The persona avatar is the default placeholder shown when no video stream is available.\n * For more information see https://developer.microsoft.com/en-us/fluentui#/controls/web/persona\n * @defaultValue 100px\n */\n personaMaxSize?: number;\n /** Optional property to set the aria label of the video tile if there is no available stream. */\n noVideoAvailableAriaLabel?: string;\n /** Whether the participant in the videoTile is speaking. Shows a speaking indicator (border). */\n isSpeaking?: boolean;\n\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n /**\n * The call connection state of the participant.\n * For example, `Hold` means the participant is on hold.\n */\n participantState?: ParticipantState;\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n strings?: VideoTileStrings;\n}\n\n// Coin max size is set to PersonaSize.size100\nconst DEFAULT_PERSONA_MAX_SIZE_PX = 100;\n// Coin min size is set PersonaSize.size32\nconst DEFAULT_PERSONA_MIN_SIZE_PX = 32;\n\nconst DefaultPlaceholder = (props: CustomAvatarOptions): JSX.Element => {\n const { text, noVideoAvailableAriaLabel, coinSize, hidePersonaDetails } = props;\n\n return (\n <Stack className={mergeStyles({ position: 'absolute', height: '100%', width: '100%' })}>\n <Stack styles={defaultPersonaStyles}>\n <Persona\n coinSize={coinSize}\n hidePersonaDetails={hidePersonaDetails}\n text={text ?? ''}\n initialsTextColor=\"white\"\n aria-label={noVideoAvailableAriaLabel ?? ''}\n showOverflowTooltip={false}\n />\n </Stack>\n </Stack>\n );\n};\n\nconst defaultPersonaStyles = { root: { margin: 'auto', maxHeight: '100%' } };\n\n/**\n * A component to render the video stream for a single call participant.\n *\n * Use with {@link GridLayout} in a {@link VideoGallery}.\n *\n * @public\n */\nexport const VideoTile = (props: VideoTileProps): JSX.Element => {\n const {\n children,\n displayName,\n initialsName,\n isMirrored,\n isMuted,\n /* @conditional-compile-remove(pinned-participants) */\n isPinned,\n onRenderPlaceholder,\n renderElement,\n showLabel = true,\n showMuteIndicator = true,\n styles,\n userId,\n noVideoAvailableAriaLabel,\n isSpeaking,\n personaMinSize = DEFAULT_PERSONA_MIN_SIZE_PX,\n personaMaxSize = DEFAULT_PERSONA_MAX_SIZE_PX\n } = props;\n\n const [personaSize, setPersonaSize] = useState(100);\n const videoTileRef = useRef<HTMLElement>(null);\n\n const locale = useLocale();\n const theme = useTheme();\n\n const isVideoRendered = !!renderElement;\n\n const observer = useRef(\n new ResizeObserver((entries): void => {\n const { width, height } = entries[0].contentRect;\n const personaSize = Math.min(width, height) / 3;\n setPersonaSize(Math.max(Math.min(personaSize, personaMaxSize), personaMinSize));\n })\n );\n\n useLayoutEffect(() => {\n if (videoTileRef.current) {\n observer.current.observe(videoTileRef.current);\n }\n const currentObserver = observer.current;\n return () => currentObserver.disconnect();\n }, [observer, videoTileRef]);\n\n const placeholderOptions = {\n userId,\n text: initialsName || displayName,\n noVideoAvailableAriaLabel,\n coinSize: personaSize,\n styles: defaultPersonaStyles,\n hidePersonaDetails: true\n };\n\n const videoHintWithBorderRadius = mergeStyles(videoHint, { borderRadius: theme.effects.roundedCorner4 });\n\n const tileInfoStyle = useMemo(\n () =>\n mergeStyles(\n isVideoRendered ? videoHintWithBorderRadius : disabledVideoHint,\n getVideoTileOverrideColor(isVideoRendered, theme, 'neutralPrimary'),\n styles?.displayNameContainer\n ),\n [isVideoRendered, videoHintWithBorderRadius, theme, styles?.displayNameContainer]\n );\n\n const ids = useIdentifiers();\n\n const canShowLabel = showLabel && (displayName || (showMuteIndicator && isMuted));\n const participantStateString = participantStateStringTrampoline(props, locale);\n\n return (\n <Ref innerRef={videoTileRef}>\n <Stack\n data-ui-id={ids.videoTile}\n className={mergeStyles(\n rootStyles,\n {\n background: theme.palette.neutralLighter,\n borderRadius: theme.effects.roundedCorner4\n },\n isSpeaking && {\n '&::before': {\n content: `''`,\n position: 'absolute',\n zIndex: 1,\n border: `0.25rem solid ${theme.palette.themePrimary}`,\n borderRadius: theme.effects.roundedCorner4,\n width: '100%',\n height: '100%'\n }\n },\n styles?.root\n )}\n >\n {isVideoRendered ? (\n <Stack\n className={mergeStyles(\n videoContainerStyles,\n isMirrored && { transform: 'scaleX(-1)' },\n styles?.videoContainer\n )}\n >\n {renderElement}\n </Stack>\n ) : (\n <Stack className={mergeStyles(videoContainerStyles)} style={{ opacity: participantStateString ? 0.4 : 1 }}>\n {onRenderPlaceholder ? (\n onRenderPlaceholder(userId ?? '', placeholderOptions, DefaultPlaceholder)\n ) : (\n <DefaultPlaceholder {...placeholderOptions} />\n )}\n </Stack>\n )}\n\n {(canShowLabel || participantStateString) && (\n <Stack horizontal className={tileInfoContainerStyle} tokens={tileInfoContainerTokens}>\n <Stack horizontal className={tileInfoStyle}>\n {canShowLabel && (\n <Text\n className={mergeStyles(displayNameStyle)}\n title={displayName}\n style={{ color: participantStateString ? theme.palette.neutralSecondary : 'inherit' }}\n >\n {displayName}\n </Text>\n )}\n {participantStateString && (\n <Text className={mergeStyles(participantStateStringStyles(theme))}>\n {bracketedParticipantString(participantStateString, !!canShowLabel)}\n </Text>\n )}\n {showMuteIndicator && isMuted && (\n <Stack className={mergeStyles(iconContainerStyle)}>\n <Icon iconName=\"VideoTileMicOff\" />\n </Stack>\n )}\n {\n /* @conditional-compile-remove(pinned-participants) */\n isPinned && (\n <Stack className={mergeStyles(iconContainerStyle)}>\n <Icon iconName=\"VideoTilePinned\" className={mergeStyles(pinIconStyle)} />\n </Stack>\n )\n }\n </Stack>\n </Stack>\n )}\n\n {children && (\n <Stack className={mergeStyles(overlayContainerStyles, styles?.overlayContainer)}>{children}</Stack>\n )}\n </Stack>\n </Ref>\n );\n};\n\nconst participantStateStringTrampoline = (props: VideoTileProps, locale: ComponentLocale): string | undefined => {\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n const strings = { ...locale.strings.videoTile, ...props.strings };\n /* @conditional-compile-remove(one-to-n-calling) */\n /* @conditional-compile-remove(PSTN-calls) */\n return props.participantState === 'Idle' || props.participantState === 'Connecting'\n ? strings?.participantStateConnecting\n : props.participantState === 'EarlyMedia' || props.participantState === 'Ringing'\n ? strings?.participantStateRinging\n : props.participantState === 'Hold'\n ? strings?.participantStateHold\n : undefined;\n\n return undefined;\n};\n\nconst tileInfoContainerTokens = {\n // A horizontal Stack sets the left margin to 0 for all it's children.\n // We need to allow the children to set their own margins\n childrenGap: 'none'\n};\n\nconst bracketedParticipantString = (participantString: string, withBrackets: boolean): string => {\n return withBrackets ? `(${participantString})` : participantString;\n};\n"]}
@@ -14,25 +14,19 @@ export const VoiceOverButton = (props) => {
14
14
  const [isHover, setIsHover] = useState(false);
15
15
  const mergedButtonStyle = mergeStyles(buttonStyle, className);
16
16
  const theme = useTheme();
17
- const calloutStyle = {
18
- root: {
19
- padding: 0
20
- },
21
- calloutMain: {
22
- padding: '0.5rem'
23
- }
24
- }; // Place callout with no gap between it and the button.
17
+ const calloutStyle = { root: { padding: 0 }, calloutMain: { padding: '0.5rem' } };
18
+ // Place callout with no gap between it and the button.
25
19
  const calloutProps = {
26
20
  gapSpace: 0,
27
21
  styles: calloutStyle,
28
22
  backgroundColor: isDarkThemed(theme) ? theme.palette.neutralLighter : ''
29
23
  };
30
- return React.createElement(TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
24
+ return (React.createElement(TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
31
25
  React.createElement(DefaultButton, { className: mergedButtonStyle, ariaLabel: ariaLabel, onClick: onClick, id: id, onMouseEnter: () => {
32
26
  setIsHover(true);
33
27
  }, onMouseLeave: () => {
34
28
  setIsHover(false);
35
29
  } }),
36
- React.createElement("div", { className: iconWrapperStyle }, onRenderIcon(isHover)));
30
+ React.createElement("div", { className: iconWrapperStyle }, onRenderIcon(isHover))));
37
31
  };
38
32
  //# sourceMappingURL=VoiceOverButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"VoiceOverButton.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/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E,CAAC;IACzB,MAAM,YAAY,GAAmC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC;IAElH,uDAAuD;IACvD,MAAM,YAAY,GAAG;QACnB,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,YAAY;QACpB,eAAe,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KACzE,CAAC;IACF,OAAO,CACL,oBAAC,WAAW,IAAC,aAAa,EAAE,uBAAuB,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,oBAAO,YAAY;QAC3G,oBAAC,aAAa,IACZ,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,EAAE,EACN,YAAY,EAAE,GAAG,EAAE;gBACjB,UAAU,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,EACD,YAAY,EAAE,GAAG,EAAE;gBACjB,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,GACD;QAEF,6BAAK,SAAS,EAAE,gBAAgB,IAAG,YAAY,CAAC,OAAO,CAAC,CAAO,CACnD,CACf,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { DefaultButton, ICalloutContentStyles, mergeStyles, TooltipHost } from '@fluentui/react';\nimport React, { useState } from 'react';\nimport { iconWrapperStyle, buttonStyle } from './styles/VoiceOverButton.style';\n\nimport { useTheme } from '../theming';\nimport { isDarkThemed } from '../theming/themeUtils';\nimport { InputBoxButtonProps } from './InputBoxComponent';\nimport { inputButtonTooltipStyle } from './styles/InputBoxComponent.style';\n\n/**\n * @private\n */\nexport const VoiceOverButton = (props: InputBoxButtonProps): JSX.Element => {\n const { onRenderIcon, onClick, ariaLabel, className, id, tooltipContent } = props;\n const [isHover, setIsHover] = useState(false);\n const mergedButtonStyle = mergeStyles(buttonStyle, className);\n\n const theme = useTheme();\n const calloutStyle: Partial<ICalloutContentStyles> = { root: { padding: 0 }, calloutMain: { padding: '0.5rem' } };\n\n // Place callout with no gap between it and the button.\n const calloutProps = {\n gapSpace: 0,\n styles: calloutStyle,\n backgroundColor: isDarkThemed(theme) ? theme.palette.neutralLighter : ''\n };\n return (\n <TooltipHost hostClassName={inputButtonTooltipStyle} content={tooltipContent} calloutProps={{ ...calloutProps }}>\n <DefaultButton\n className={mergedButtonStyle}\n ariaLabel={ariaLabel}\n onClick={onClick}\n id={id}\n onMouseEnter={() => {\n setIsHover(true);\n }}\n onMouseLeave={() => {\n setIsHover(false);\n }}\n />\n {/* VoiceOver fix: Avoid rerender of DefaultButton above that handles clicking and hovering by keeping rerendering icon separate */}\n <div className={iconWrapperStyle}>{onRenderIcon(isHover)}</div>\n </TooltipHost>\n );\n};\n"]}