@azure/communication-react 1.18.0-beta.1 → 1.19.0-alpha-202407230014

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 (1182) hide show
  1. package/dist/communication-react.d.ts +864 -21
  2. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-DKLA2xEh.js +251 -0
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-DKLA2xEh.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/RichTextSendBoxWrapper-CBXO5qQp.js +54 -0
  5. package/dist/dist-cjs/communication-react/RichTextSendBoxWrapper-CBXO5qQp.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/{index-Di3ptk8o.js → index-C-_eEXgc.js} +28825 -25662
  7. package/dist/dist-cjs/communication-react/index-C-_eEXgc.js.map +1 -0
  8. package/dist/dist-cjs/communication-react/index.js +15 -8
  9. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/common.d.ts +13 -0
  13. package/dist/dist-esm/acs-ui-common/src/common.js +10 -2
  14. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/dataConversion.d.ts +6 -0
  19. package/dist/dist-esm/acs-ui-common/src/dataConversion.js +17 -0
  20. package/dist/dist-esm/acs-ui-common/src/dataConversion.js.map +1 -0
  21. package/dist/dist-esm/acs-ui-common/src/identifier.js +4 -1
  22. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  23. package/dist/dist-esm/acs-ui-common/src/index.d.ts +2 -0
  24. package/dist/dist-esm/acs-ui-common/src/index.js +2 -0
  25. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  26. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  27. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  28. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  29. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  30. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  31. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  32. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  33. package/dist/dist-esm/acs-ui-javascript-loaders/src/callCompositeLoader.d.ts +19 -0
  34. package/dist/dist-esm/acs-ui-javascript-loaders/src/callCompositeLoader.js +51 -0
  35. package/dist/dist-esm/acs-ui-javascript-loaders/src/callCompositeLoader.js.map +1 -0
  36. package/dist/dist-esm/acs-ui-javascript-loaders/src/index.d.ts +5 -0
  37. package/dist/dist-esm/acs-ui-javascript-loaders/src/index.js +5 -0
  38. package/dist/dist-esm/acs-ui-javascript-loaders/src/index.js.map +1 -0
  39. package/dist/dist-esm/acs-ui-javascript-loaders/src/outboundCallCompositeLoader.d.ts +19 -0
  40. package/dist/dist-esm/acs-ui-javascript-loaders/src/outboundCallCompositeLoader.js +57 -0
  41. package/dist/dist-esm/acs-ui-javascript-loaders/src/outboundCallCompositeLoader.js.map +1 -0
  42. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +3 -0
  43. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +6 -0
  44. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +13 -7
  46. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  47. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +7 -1
  48. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +22 -56
  50. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/getRemoteParticipantsExcludingConsumers.js +1 -1
  52. package/dist/dist-esm/calling-component-bindings/src/getRemoteParticipantsExcludingConsumers.js.map +1 -1
  53. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -0
  54. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +82 -60
  55. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +2 -2
  57. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  59. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +1 -3
  60. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  61. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  62. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  63. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +3 -1
  64. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +13 -1
  65. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  66. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  67. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +2 -0
  68. package/dist/dist-esm/calling-component-bindings/src/index.js +2 -0
  69. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  70. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.d.ts +23 -0
  71. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +172 -0
  72. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -0
  73. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +30 -10
  74. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  75. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  76. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  77. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +6 -3
  78. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  79. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  80. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  81. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  82. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +11 -7
  83. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  84. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +11 -9
  85. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  86. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +1 -1
  87. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +16 -10
  88. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  89. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +33 -7
  90. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +1 -5
  92. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  93. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +4 -4
  94. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  95. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +79 -81
  97. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  98. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +22 -1
  99. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  100. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -1
  101. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +44 -30
  102. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  103. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +7 -8
  104. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +100 -109
  106. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  108. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  109. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -0
  110. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +26 -3
  111. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  112. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -1
  113. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  114. package/dist/dist-esm/calling-stateful-client/src/Converter.js +14 -20
  115. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  116. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +58 -73
  117. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  118. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.d.ts +2 -8
  119. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +14 -16
  120. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  121. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  122. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +3 -15
  123. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  124. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +1 -1
  125. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +1 -1
  126. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  127. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +1 -3
  128. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +1 -1
  129. package/dist/dist-esm/calling-stateful-client/src/PPTLiveSubscriber.js.map +1 -1
  130. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  131. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js.map +1 -1
  132. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -1
  133. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  134. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  135. package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js.map +1 -1
  136. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +13 -0
  137. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +65 -67
  138. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  139. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +32 -24
  140. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  141. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +8 -11
  142. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -1
  143. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +15 -3
  144. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +2 -0
  145. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
  146. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +7 -8
  147. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  148. package/dist/dist-esm/calling-stateful-client/src/TeamsIncomingCallDeclarative.d.ts +17 -0
  149. package/dist/dist-esm/calling-stateful-client/src/TeamsIncomingCallDeclarative.js +49 -0
  150. package/dist/dist-esm/calling-stateful-client/src/TeamsIncomingCallDeclarative.js.map +1 -0
  151. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  152. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +11 -3
  153. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +16 -0
  154. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  155. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -3
  156. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  157. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js +6 -7
  158. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  159. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +3 -1
  160. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  161. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +1 -1
  162. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  163. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -4
  164. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  165. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  166. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  167. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +15 -15
  168. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  169. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +4 -1
  170. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +46 -10
  171. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  172. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  173. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  174. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  175. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  176. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +82 -23
  177. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  178. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  179. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  180. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  181. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  182. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +3 -7
  183. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  184. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +3 -1
  185. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  186. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  187. package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.d.ts +6 -0
  188. package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js +23 -0
  189. package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js.map +1 -0
  190. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +10 -3
  191. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  192. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +14 -0
  193. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  194. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +16 -22
  195. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  196. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  197. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +8 -11
  198. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  199. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  200. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +7 -16
  201. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +1 -1
  202. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +57 -67
  203. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  204. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +114 -128
  205. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  206. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  207. package/dist/dist-esm/chat-stateful-client/src/index.d.ts +1 -0
  208. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  209. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  210. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  211. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  212. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  213. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  214. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  215. package/dist/dist-esm/communication-react/src/index.d.ts +11 -1
  216. package/dist/dist-esm/communication-react/src/index.js +6 -0
  217. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  218. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  219. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js +3 -6
  220. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js.map +1 -1
  221. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js.map +1 -1
  222. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js +1 -1
  223. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
  224. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js +4 -10
  225. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js.map +1 -1
  226. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js +1 -1
  227. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js +1 -1
  229. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js.map +1 -1
  230. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js +23 -16
  232. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js.map +1 -1
  233. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.d.ts +1 -0
  234. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js +3 -3
  235. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js +13 -15
  237. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.d.ts +4 -0
  239. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js +12 -12
  240. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/components/CameraButton.js +8 -19
  242. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/components/Caption.js +2 -2
  244. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  245. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +9 -8
  246. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +36 -19
  248. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +2 -5
  250. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  251. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +37 -22
  252. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +8 -2
  254. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +22 -24
  255. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  256. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +34 -33
  257. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  258. package/dist/dist-esm/react-components/src/components/ChatMessage/DefaultSystemMessage.js +9 -5
  259. package/dist/dist-esm/react-components/src/components/ChatMessage/DefaultSystemMessage.js.map +1 -1
  260. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +1 -1
  261. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +1 -1
  262. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +33 -7
  263. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  264. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +44 -17
  265. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
  266. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.d.ts +1 -1
  267. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +32 -36
  268. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  269. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +9 -3
  270. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +3 -5
  271. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +8 -1
  273. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +149 -31
  274. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +9 -7
  276. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +48 -16
  277. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  278. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +43 -10
  279. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  280. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +84 -26
  281. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  283. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  284. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +7 -4
  285. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  286. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +2 -2
  287. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  288. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  289. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  290. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  291. package/dist/dist-esm/react-components/src/components/ControlBar.js +10 -14
  292. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  293. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +14 -4
  294. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  295. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +3 -14
  296. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  297. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +4 -10
  298. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -1
  299. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +14 -31
  300. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -1
  301. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +5 -8
  302. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -1
  303. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +24 -6
  304. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +12 -20
  306. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/DevicesButton.js +19 -27
  308. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  309. package/dist/dist-esm/react-components/src/components/Dialpad/DTMFToneGenerator.js +12 -48
  310. package/dist/dist-esm/react-components/src/components/Dialpad/DTMFToneGenerator.js.map +1 -1
  311. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +45 -51
  312. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  313. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +4 -4
  314. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  315. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +2 -6
  316. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +11 -9
  318. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  319. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +11 -23
  320. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  321. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +6 -4
  322. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  323. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js +11 -5
  324. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  326. package/dist/dist-esm/react-components/src/components/EndCallButton.js +16 -16
  327. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  328. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +8 -0
  329. package/dist/dist-esm/react-components/src/components/ErrorBar.js +11 -7
  330. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  331. package/dist/dist-esm/react-components/src/components/ErrorBoundary.js +2 -6
  332. package/dist/dist-esm/react-components/src/components/ErrorBoundary.js.map +1 -1
  333. package/dist/dist-esm/react-components/src/components/GridLayout.js +37 -37
  334. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  335. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
  336. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  337. package/dist/dist-esm/react-components/src/components/HoldButton.js +1 -1
  338. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +7 -9
  340. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  341. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +10 -15
  342. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  343. package/dist/dist-esm/react-components/src/components/IncomingCallNotification.d.ts +102 -0
  344. package/dist/dist-esm/react-components/src/components/IncomingCallNotification.js +88 -0
  345. package/dist/dist-esm/react-components/src/components/IncomingCallNotification.js.map +1 -0
  346. package/dist/dist-esm/react-components/src/components/InputBoxButton.d.ts +1 -0
  347. package/dist/dist-esm/react-components/src/components/InputBoxButton.js +4 -11
  348. package/dist/dist-esm/react-components/src/components/InputBoxButton.js.map +1 -1
  349. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +5 -7
  350. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  351. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +3 -5
  352. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  353. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +32 -19
  354. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  355. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.d.ts +85 -0
  356. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js +127 -0
  357. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js.map +1 -0
  358. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +4 -12
  359. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
  360. package/dist/dist-esm/react-components/src/components/MentionPopover.js +17 -14
  361. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
  362. package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js +2 -2
  363. package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js.map +1 -1
  364. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  365. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js +20 -33
  366. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js.map +1 -1
  367. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +25 -7
  368. package/dist/dist-esm/react-components/src/components/MessageThread.js +92 -49
  369. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +17 -14
  371. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  372. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +94 -101
  373. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  374. package/dist/dist-esm/react-components/src/components/{NotificationBar.d.ts → Notification.d.ts} +13 -13
  375. package/dist/dist-esm/react-components/src/components/{NotificationBar.js → Notification.js} +11 -15
  376. package/dist/dist-esm/react-components/src/components/Notification.js.map +1 -0
  377. package/dist/dist-esm/react-components/src/components/{Notifications.d.ts → NotificationStack.d.ts} +113 -73
  378. package/dist/dist-esm/react-components/src/components/NotificationStack.js +58 -0
  379. package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -0
  380. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +15 -22
  381. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  382. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +2 -0
  383. package/dist/dist-esm/react-components/src/components/ParticipantList.js +45 -46
  384. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  385. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +46 -32
  386. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  387. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  388. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  389. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  390. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  391. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +6 -12
  392. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -1
  393. package/dist/dist-esm/react-components/src/components/ReactionButton.js +27 -28
  394. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  395. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +1 -0
  396. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +29 -18
  397. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  398. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +7 -3
  399. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  400. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +7 -3
  401. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  402. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js.map +1 -1
  403. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.d.ts +13 -2
  404. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +29 -17
  405. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +1 -1
  406. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js.map +1 -1
  407. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.d.ts +2 -2
  408. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js +4 -1
  409. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js.map +1 -1
  410. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js +4 -2
  411. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js.map +1 -1
  412. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js +0 -1
  413. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js.map +1 -1
  414. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.d.ts +1 -1
  415. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js +23 -4
  416. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js.map +1 -1
  417. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +5 -1
  418. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +119 -68
  419. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  420. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +5 -1
  421. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +30 -12
  422. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  423. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +69 -2
  424. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +142 -62
  425. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  426. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +12 -17
  427. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +1 -1
  428. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js +56 -18
  429. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js.map +1 -1
  430. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js +8 -10
  431. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js.map +1 -1
  432. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js +6 -3
  433. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js.map +1 -1
  434. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js +2 -2
  435. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js.map +1 -1
  436. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +6 -14
  437. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  438. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -1
  439. package/dist/dist-esm/react-components/src/components/SendBox.js +64 -47
  440. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  441. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +2 -2
  442. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  443. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +3 -1
  444. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  445. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +2 -4
  446. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -1
  447. package/dist/dist-esm/react-components/src/components/StreamMedia.js +3 -3
  448. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  449. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js +10 -3
  450. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js.map +1 -1
  451. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -1
  452. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js.map +1 -1
  453. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js +23 -23
  454. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js.map +1 -1
  455. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -1
  456. package/dist/dist-esm/react-components/src/components/SystemMessage.js +2 -4
  457. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  458. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +67 -22
  459. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  460. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +55 -49
  461. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +1 -1
  462. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +10 -10
  463. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  464. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +9 -6
  465. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  466. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +1 -1
  467. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  468. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +1 -1
  469. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  470. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +4 -8
  471. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  472. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +1 -1
  473. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  474. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +13 -31
  475. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  476. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js +3 -1
  477. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js.map +1 -1
  478. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +8 -12
  479. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  480. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +7 -11
  481. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  482. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +6 -2
  483. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -1
  484. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +26 -11
  485. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  486. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +14 -10
  487. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  488. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +50 -19
  489. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  490. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js +2 -2
  491. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js.map +1 -1
  492. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.d.ts +17 -0
  493. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +111 -0
  494. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -0
  495. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  496. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  497. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  498. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +6 -4
  499. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  500. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js +17 -11
  501. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js.map +1 -1
  502. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js +29 -24
  503. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js.map +1 -1
  504. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +9 -7
  505. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  506. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +2 -4
  507. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
  508. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +44 -13
  509. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
  510. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js +1 -6
  511. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js.map +1 -1
  512. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +9 -34
  513. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  514. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +2 -11
  515. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -1
  516. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/Layout.styles.js.map +1 -1
  517. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  518. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  519. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -1
  520. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +1 -3
  521. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
  522. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +10 -11
  523. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
  524. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +22 -28
  525. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  526. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +11 -6
  527. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  528. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +2 -0
  529. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +54 -46
  530. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  531. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js.map +1 -1
  532. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js.map +1 -1
  533. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +40 -22
  534. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  535. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +7 -1
  536. package/dist/dist-esm/react-components/src/components/VideoGallery.js +116 -26
  537. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  538. package/dist/dist-esm/react-components/src/components/VideoTile.js +35 -60
  539. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  540. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +2 -2
  541. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  542. package/dist/dist-esm/react-components/src/components/index.d.ts +6 -1
  543. package/dist/dist-esm/react-components/src/components/index.js +8 -0
  544. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  545. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +2 -2
  546. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +18 -10
  547. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  548. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.d.ts +4 -0
  549. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js +8 -0
  550. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js.map +1 -1
  551. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -1
  552. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  553. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -1
  554. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +3 -10
  555. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  556. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +4 -0
  557. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +5 -0
  558. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  559. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  560. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  561. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  562. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  563. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  564. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js +2 -5
  565. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js.map +1 -1
  566. package/dist/dist-esm/react-components/src/components/styles/InputBoxButton.style.js.map +1 -1
  567. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +2 -5
  568. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  569. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +1 -1
  570. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  571. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +5 -3
  572. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +60 -30
  573. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  574. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.d.ts → Notification.styles.d.ts} +1 -1
  575. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.js → Notification.styles.js} +1 -1
  576. package/dist/dist-esm/react-components/src/components/styles/Notification.styles.js.map +1 -0
  577. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +6 -4
  578. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  579. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  580. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
  581. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js +14 -8
  582. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js.map +1 -1
  583. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +1 -1
  584. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +47 -59
  585. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  586. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +8 -12
  587. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +1 -1
  588. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +4 -0
  589. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +11 -10
  590. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  591. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +1 -1
  592. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +1 -1
  593. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +3 -6
  594. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  595. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  596. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.d.ts +42 -0
  597. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js +93 -0
  598. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js.map +1 -0
  599. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +1 -2
  600. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  601. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  602. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
  603. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js +1 -2
  604. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js.map +1 -1
  605. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +5 -19
  606. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  607. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  608. package/dist/dist-esm/react-components/src/components/styles/v8StyleShim.js.map +1 -1
  609. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +1 -1
  610. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +11 -4
  611. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  612. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +2 -2
  613. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +32 -14
  614. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  615. package/dist/dist-esm/react-components/src/components/utils/Datetime.js +1 -4
  616. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  617. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js.map +1 -1
  618. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js +26 -18
  619. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +1 -1
  620. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +29 -0
  621. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +124 -3
  622. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  623. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  624. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  625. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  626. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +4 -7
  627. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  628. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  629. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -1
  630. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js.map +1 -1
  631. package/dist/dist-esm/react-components/src/components/utils/responsive.js +14 -4
  632. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  633. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +10 -1
  634. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  635. package/dist/dist-esm/react-components/src/components/utils.d.ts +32 -1
  636. package/dist/dist-esm/react-components/src/components/utils.js +117 -13
  637. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  638. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +8 -6
  639. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  640. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  641. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  642. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  643. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  644. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +9 -1
  645. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  646. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  647. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/ComponentLocale.js.map +1 -1
  648. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +102 -64
  649. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/ComponentLocale.js.map +1 -1
  650. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +100 -62
  651. package/dist/dist-esm/react-components/src/localization/locales/de-DE/ComponentLocale.js.map +1 -1
  652. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +100 -62
  653. package/dist/dist-esm/react-components/src/localization/locales/en-GB/ComponentLocale.js.map +1 -1
  654. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +100 -62
  655. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +105 -61
  656. package/dist/dist-esm/react-components/src/localization/locales/es-ES/ComponentLocale.js.map +1 -1
  657. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +100 -62
  658. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/ComponentLocale.js.map +1 -1
  659. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +100 -62
  660. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/ComponentLocale.js.map +1 -1
  661. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +103 -65
  662. package/dist/dist-esm/react-components/src/localization/locales/he-IL/ComponentLocale.js.map +1 -1
  663. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +100 -62
  664. package/dist/dist-esm/react-components/src/localization/locales/index.js +1 -3
  665. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  666. package/dist/dist-esm/react-components/src/localization/locales/it-IT/ComponentLocale.js.map +1 -1
  667. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +100 -62
  668. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/ComponentLocale.js.map +1 -1
  669. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +102 -64
  670. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/ComponentLocale.js.map +1 -1
  671. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +107 -69
  672. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/ComponentLocale.js.map +1 -1
  673. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +100 -62
  674. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/ComponentLocale.js.map +1 -1
  675. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +106 -68
  676. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/ComponentLocale.js.map +1 -1
  677. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +105 -67
  678. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/ComponentLocale.js.map +1 -1
  679. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +103 -65
  680. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/ComponentLocale.js.map +1 -1
  681. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +101 -63
  682. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/ComponentLocale.js.map +1 -1
  683. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +100 -62
  684. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/ComponentLocale.js.map +1 -1
  685. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +101 -63
  686. package/dist/dist-esm/react-components/src/localization/locales/utils.js +1 -1
  687. package/dist/dist-esm/react-components/src/localization/locales/utils.js.map +1 -1
  688. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/ComponentLocale.js.map +1 -1
  689. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +102 -64
  690. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/ComponentLocale.js.map +1 -1
  691. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +101 -63
  692. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +3 -5
  693. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  694. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.d.ts +1 -0
  695. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js +5 -5
  696. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js.map +1 -1
  697. package/dist/dist-esm/react-components/src/theming/generateTheme.js +15 -1
  698. package/dist/dist-esm/react-components/src/theming/generateTheme.js.map +1 -1
  699. package/dist/dist-esm/react-components/src/theming/icons.d.ts +6 -0
  700. package/dist/dist-esm/react-components/src/theming/icons.js +40 -32
  701. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  702. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -1
  703. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  704. package/dist/dist-esm/react-components/src/theming/themeDuplicates.js.map +1 -1
  705. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  706. package/dist/dist-esm/react-components/src/theming/themes.js +13 -12
  707. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  708. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -7
  709. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  710. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +4 -0
  711. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  712. package/dist/dist-esm/react-components/src/types/CallSurveyImprovementSuggestions.js.map +1 -1
  713. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -1
  714. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  715. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  716. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js.map +1 -1
  717. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  718. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  719. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  720. package/dist/dist-esm/react-components/src/types/ReactionTypes.js.map +1 -1
  721. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  722. package/dist/dist-esm/react-components/src/types/SurveyIssues.js.map +1 -1
  723. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js.map +1 -1
  724. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  725. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  726. package/dist/dist-esm/react-composites/src/Logger.js.map +1 -1
  727. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +139 -46
  728. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  729. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +24 -0
  730. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +7 -3
  732. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +134 -61
  733. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  734. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +19 -1
  735. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +7 -1
  736. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  737. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  738. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.d.ts +2 -0
  739. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js +28 -3
  740. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js.map +1 -1
  741. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  742. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +1 -3
  743. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
  744. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  745. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -2
  746. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +2 -2
  747. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  748. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  749. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +6 -2
  750. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +170 -36
  751. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +37 -60
  753. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  754. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +133 -141
  755. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  756. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js +16 -20
  757. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js.map +1 -1
  758. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +1 -7
  759. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  760. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +1 -1
  761. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  762. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +1 -7
  763. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  764. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +5 -4
  765. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  766. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +4 -4
  767. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
  768. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +4 -4
  769. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  770. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +33 -22
  771. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  772. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +35 -25
  773. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  774. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +26 -30
  775. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  776. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +67 -36
  777. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  778. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  779. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  780. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +1 -0
  781. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +68 -2
  782. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  783. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js +10 -32
  784. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js.map +1 -1
  785. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +29 -11
  786. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  787. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js.map +1 -1
  788. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.d.ts +13 -0
  789. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js +49 -0
  790. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js.map +1 -0
  791. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +2 -0
  792. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +169 -52
  793. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  794. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +4 -4
  795. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  796. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  797. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  798. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js +3 -5
  799. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js.map +1 -1
  800. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +3 -1
  801. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  802. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +10 -7
  803. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  804. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -0
  805. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +23 -13
  806. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  807. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +3 -1
  808. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  809. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +5 -2
  810. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  811. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +1 -1
  812. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -1
  813. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js +1 -1
  814. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js.map +1 -1
  815. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js +1 -1
  816. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js.map +1 -1
  817. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -1
  818. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  819. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +7 -7
  820. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  821. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +33 -13
  822. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  823. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  824. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  825. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  826. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  827. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +5 -2
  828. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +19 -8
  829. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  830. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +56 -24
  831. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  832. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +5 -13
  833. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -1
  834. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +5 -2
  835. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +20 -8
  836. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  837. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +5 -2
  838. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +22 -8
  839. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  840. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +3 -3
  841. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  842. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js +2 -2
  843. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js.map +1 -1
  844. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js +2 -2
  845. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js.map +1 -1
  846. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +26 -23
  847. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  848. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +3 -3
  849. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
  850. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  851. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  852. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  853. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +2 -1
  854. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +1 -1
  855. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -0
  856. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -0
  857. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  858. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  859. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  860. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.d.ts +1 -1
  861. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js +1 -4
  862. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js.map +1 -1
  863. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.d.ts +1 -1
  864. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.js +1 -1
  865. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.js.map +1 -1
  866. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  867. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  868. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +1 -1
  869. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.js.map +1 -1
  870. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  871. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  872. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  873. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +1 -1
  874. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +3 -1
  875. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  876. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.d.ts +1 -1
  877. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.js +10 -4
  878. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.js.map +1 -1
  879. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +4 -4
  880. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -1
  881. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  882. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +3 -3
  883. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +10 -2
  884. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  885. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  886. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -4
  887. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  888. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  889. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  890. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  891. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +5 -5
  892. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +4 -4
  893. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  894. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  895. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  896. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  897. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +5 -5
  898. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  899. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  900. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  901. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +2 -6
  902. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  903. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +41 -29
  904. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  905. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  906. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
  907. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +10 -0
  908. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  909. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/DtmfDialpadPage.styles.js.map +1 -1
  910. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +1 -4
  911. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  912. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -1
  913. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +2 -9
  914. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  915. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  916. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +2 -4
  917. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  918. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  919. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  920. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +1 -2
  921. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  922. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +6 -24
  923. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +1 -1
  924. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  925. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  926. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CapabilityChangedNotificationTracking.js.map +1 -1
  927. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +6 -2
  928. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  929. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +11 -13
  930. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  931. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js +11 -10
  932. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js.map +1 -1
  933. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +8 -7
  934. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +22 -20
  935. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  936. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +48 -1
  937. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +140 -28
  938. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  939. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  940. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js +15 -5
  941. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js.map +1 -1
  942. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js +2 -2
  943. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js.map +1 -1
  944. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/useConsoleErrors.js.map +1 -1
  945. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +7 -0
  946. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +80 -29
  947. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  948. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js +1 -1
  949. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js.map +1 -1
  950. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +9 -7
  951. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  952. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js +6 -9
  953. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js.map +1 -1
  954. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +2 -2
  955. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -1
  956. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  957. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +10 -2
  958. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +102 -35
  959. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  960. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +21 -0
  961. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  962. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -0
  963. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +12 -0
  964. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  965. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +5 -0
  966. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +19 -1
  967. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  968. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +1 -1
  969. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  970. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  971. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  972. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -1
  973. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  974. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  975. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  976. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +3 -5
  977. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +1 -1
  978. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +7 -0
  979. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +7 -4
  980. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  981. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +3 -5
  982. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  983. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +211 -69
  984. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  985. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +1 -1
  986. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +1 -1
  987. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.d.ts +49 -0
  988. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.js +48 -0
  989. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.js.map +1 -0
  990. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.d.ts +44 -0
  991. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js +245 -0
  992. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js.map +1 -0
  993. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  994. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +3 -0
  995. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +56 -37
  996. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  997. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +9 -0
  998. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  999. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  1000. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +6 -6
  1001. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +9 -7
  1002. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +1 -1
  1003. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +15 -9
  1004. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  1005. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  1006. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +1 -3
  1007. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  1008. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +17 -4
  1009. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  1010. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  1011. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  1012. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +2 -6
  1013. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  1014. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +9 -17
  1015. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  1016. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +24 -25
  1017. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
  1018. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +1 -1
  1019. package/dist/dist-esm/react-composites/src/composites/common/AudioProvider.js.map +1 -1
  1020. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +8 -3
  1021. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  1022. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +5 -14
  1023. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  1024. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +9 -23
  1025. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
  1026. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
  1027. package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js +3 -5
  1028. package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js.map +1 -1
  1029. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +5 -7
  1030. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
  1031. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +12 -16
  1032. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  1033. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +1 -1
  1034. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -1
  1035. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +1 -5
  1036. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  1037. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +2 -0
  1038. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +78 -44
  1039. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  1040. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +1 -1
  1041. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +39 -37
  1042. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  1043. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -0
  1044. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +130 -66
  1045. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  1046. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js +1 -1
  1047. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js.map +1 -1
  1048. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +1 -1
  1049. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -1
  1050. package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  1051. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js +5 -7
  1052. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js.map +1 -1
  1053. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +2 -0
  1054. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +112 -118
  1055. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  1056. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -1
  1057. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +1 -0
  1058. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  1059. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js +5 -7
  1060. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js.map +1 -1
  1061. package/dist/dist-esm/react-composites/src/composites/common/Drawer/captionSettingsDrawer.styles.js.map +1 -1
  1062. package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js +1 -1
  1063. package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js.map +1 -1
  1064. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +1 -1
  1065. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -1
  1066. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.d.ts +10 -0
  1067. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js +65 -0
  1068. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js.map +1 -0
  1069. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +18 -11
  1070. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  1071. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  1072. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  1073. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +21 -19
  1074. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  1075. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +21 -13
  1076. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  1077. package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.d.ts +10 -0
  1078. package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.js +20 -0
  1079. package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.js.map +1 -0
  1080. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.d.ts +15 -2
  1081. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js +39 -1
  1082. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js.map +1 -1
  1083. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +7 -15
  1084. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  1085. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js.map +1 -1
  1086. package/dist/dist-esm/react-composites/src/composites/common/Survey.js +19 -34
  1087. package/dist/dist-esm/react-composites/src/composites/common/Survey.js.map +1 -1
  1088. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js +2 -2
  1089. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js.map +1 -1
  1090. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +11 -8
  1091. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  1092. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js +1 -1
  1093. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js.map +1 -1
  1094. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +11 -12
  1095. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  1096. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  1097. package/dist/dist-esm/react-composites/src/composites/common/constants.d.ts +4 -0
  1098. package/dist/dist-esm/react-composites/src/composites/common/constants.js +4 -0
  1099. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
  1100. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +14 -0
  1101. package/dist/dist-esm/react-composites/src/composites/common/icons.js +13 -3
  1102. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  1103. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -1
  1104. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -1
  1105. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -1
  1106. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  1107. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.d.ts +1 -1
  1108. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +5 -11
  1109. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  1110. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +11 -44
  1111. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  1112. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +6 -29
  1113. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  1114. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +4 -22
  1115. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  1116. package/dist/dist-esm/react-composites/src/composites/common/styles/Survey.styles.js +15 -13
  1117. package/dist/dist-esm/react-composites/src/composites/common/styles/Survey.styles.js.map +1 -1
  1118. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.d.ts +50 -0
  1119. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.js +110 -0
  1120. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.js.map +1 -0
  1121. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +9 -0
  1122. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  1123. package/dist/dist-esm/react-composites/src/composites/common/utils.js +17 -12
  1124. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  1125. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  1126. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  1127. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  1128. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  1129. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/CompositeLocale.js.map +1 -1
  1130. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +10 -5
  1131. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/CompositeLocale.js.map +1 -1
  1132. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +6 -1
  1133. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/CompositeLocale.js.map +1 -1
  1134. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +6 -1
  1135. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/CompositeLocale.js.map +1 -1
  1136. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +6 -1
  1137. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -1
  1138. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/CompositeLocale.js.map +1 -1
  1139. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +6 -1
  1140. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/CompositeLocale.js.map +1 -1
  1141. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +10 -5
  1142. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/CompositeLocale.js.map +1 -1
  1143. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +10 -5
  1144. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/CompositeLocale.js.map +1 -1
  1145. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +10 -5
  1146. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  1147. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/CompositeLocale.js.map +1 -1
  1148. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +10 -5
  1149. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/CompositeLocale.js.map +1 -1
  1150. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +6 -1
  1151. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/CompositeLocale.js.map +1 -1
  1152. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +10 -5
  1153. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/CompositeLocale.js.map +1 -1
  1154. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +6 -1
  1155. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/CompositeLocale.js.map +1 -1
  1156. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +6 -1
  1157. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/CompositeLocale.js.map +1 -1
  1158. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +6 -1
  1159. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/CompositeLocale.js.map +1 -1
  1160. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +10 -5
  1161. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/CompositeLocale.js.map +1 -1
  1162. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +6 -1
  1163. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/CompositeLocale.js.map +1 -1
  1164. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +10 -5
  1165. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/CompositeLocale.js.map +1 -1
  1166. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +6 -1
  1167. package/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js +1 -1
  1168. package/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js.map +1 -1
  1169. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/CompositeLocale.js.map +1 -1
  1170. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +10 -5
  1171. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/CompositeLocale.js.map +1 -1
  1172. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +10 -5
  1173. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  1174. package/dist/tsdoc-metadata.json +1 -1
  1175. package/package.json +21 -21
  1176. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BWStTUhO.js +0 -136
  1177. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BWStTUhO.js.map +0 -1
  1178. package/dist/dist-cjs/communication-react/index-Di3ptk8o.js.map +0 -1
  1179. package/dist/dist-esm/react-components/src/components/NotificationBar.js.map +0 -1
  1180. package/dist/dist-esm/react-components/src/components/Notifications.js +0 -46
  1181. package/dist/dist-esm/react-components/src/components/Notifications.js.map +0 -1
  1182. package/dist/dist-esm/react-components/src/components/styles/NotificationBar.styles.js.map +0 -1
@@ -1,9 +1,13 @@
1
+ import { NotificationType } from "../../../../../react-components/src";
1
2
  import { ErrorType } from "../../../../../react-components/src";
2
3
  /** @private */
3
- export interface ErrorTrackingInfo {
4
+ export interface NotificationTrackingInfo {
4
5
  mostRecentlyActive: Date;
5
6
  lastDismissedAt?: Date;
6
7
  }
7
8
  /** @private */
8
- export type TrackedErrors = Partial<Record<ErrorType, ErrorTrackingInfo>>;
9
+ type NotificationTypes = ErrorType | /* @conditional-compile-remove(notifications) */ NotificationType;
10
+ /** @private */
11
+ export type TrackedNotifications = Partial<Record<NotificationTypes, NotificationTrackingInfo>>;
12
+ export {};
9
13
  //# sourceMappingURL=ErrorTracking.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorTracking.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/CallComposite/types/ErrorTracking.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ErrorType } from '@internal/react-components';\n\n/** @private */\nexport interface ErrorTrackingInfo {\n mostRecentlyActive: Date;\n lastDismissedAt?: Date;\n}\n\n/** @private */\nexport type TrackedErrors = Partial<Record<ErrorType, ErrorTrackingInfo>>;"]}
1
+ {"version":3,"file":"ErrorTracking.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/types/ErrorTracking.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/* @conditional-compile-remove(notifications) */\nimport { NotificationType } from '@internal/react-components';\nimport { ErrorType } from '@internal/react-components';\n\n/** @private */\nexport interface NotificationTrackingInfo {\n mostRecentlyActive: Date;\n lastDismissedAt?: Date;\n}\n\n/** @private */\ntype NotificationTypes = ErrorType | /* @conditional-compile-remove(notifications) */ NotificationType;\n\n/** @private */\nexport type TrackedNotifications = Partial<Record<NotificationTypes, NotificationTrackingInfo>>;\n"]}
@@ -44,10 +44,10 @@ export const useParticipantChangedAnnouncement = () => {
44
44
  setAnnouncerString(string);
45
45
  };
46
46
  useMemo(() => {
47
- const currentIds = currentParticipants.map(p => toFlatCommunicationIdentifier(p.identifier));
48
- const previousIds = previousParticipants.current.map(p => toFlatCommunicationIdentifier(p.identifier));
49
- const whoJoined = currentParticipants.filter(p => !previousIds.includes(toFlatCommunicationIdentifier(p.identifier)));
50
- const whoLeft = previousParticipants.current.filter(p => !currentIds.includes(toFlatCommunicationIdentifier(p.identifier)));
47
+ const currentIds = currentParticipants.map((p) => toFlatCommunicationIdentifier(p.identifier));
48
+ const previousIds = previousParticipants.current.map((p) => toFlatCommunicationIdentifier(p.identifier));
49
+ const whoJoined = currentParticipants.filter((p) => !previousIds.includes(toFlatCommunicationIdentifier(p.identifier)));
50
+ const whoLeft = previousParticipants.current.filter((p) => !currentIds.includes(toFlatCommunicationIdentifier(p.identifier)));
51
51
  if (whoJoined.length > 0) {
52
52
  resetAnnoucement(createAnnouncementString('joined', whoJoined, strings));
53
53
  }
@@ -74,24 +74,22 @@ export const createAnnouncementString = (direction, participants, strings) => {
74
74
  * Filter participants into two arrays to put all the unnamed participants at the back of the
75
75
  * names being announced.
76
76
  */
77
- const unnamedParticipants = participants.filter(p => !p.displayName);
78
- const namedParicipants = participants.filter(p => p.displayName);
77
+ const unnamedParticipants = participants.filter((p) => !p.displayName);
78
+ const namedParicipants = participants.filter((p) => p.displayName);
79
79
  const sortedParticipants = namedParicipants.concat(unnamedParticipants);
80
80
  /**
81
81
  * if there are only unnamed participants present in the array announce a special unnamed participants
82
82
  * only string.
83
83
  */
84
- if (sortedParticipants.filter(p => p.displayName).length === 0 && sortedParticipants.length > 1) {
84
+ if (sortedParticipants.filter((p) => p.displayName).length === 0 && sortedParticipants.length > 1) {
85
85
  return _formatString(direction === 'joined' ? strings.manyUnnamedParticipantsJoined : strings.manyUnnamedParticipantsLeft, {
86
86
  numOfParticipants: (sortedParticipants.length - 1).toString()
87
87
  });
88
88
  }
89
- const participantNames = sortedParticipants.map(p => { var _a; return (_a = p.displayName) !== null && _a !== void 0 ? _a : strings.unnamedParticipantString; });
89
+ const participantNames = sortedParticipants.map((p) => { var _a; return (_a = p.displayName) !== null && _a !== void 0 ? _a : strings.unnamedParticipantString; });
90
90
  switch (sortedParticipants.length) {
91
91
  case 1:
92
- return _formatString(direction === 'joined' ? strings.participantJoinedNoticeString : strings.participantLeftNoticeString, {
93
- displayName: participantNames[0]
94
- });
92
+ return _formatString(direction === 'joined' ? strings.participantJoinedNoticeString : strings.participantLeftNoticeString, { displayName: participantNames[0] });
95
93
  case 2:
96
94
  return _formatString(direction === 'joined' ? strings.twoParticipantJoinedNoticeString : strings.twoParticipantLeftNoticeString, {
97
95
  displayName1: participantNames[0],
@@ -128,13 +126,13 @@ export const createAnnouncementString = (direction, participants, strings) => {
128
126
  */
129
127
  export const showDtmfDialer = (callees, remoteParticipants) => {
130
128
  let showDtmfDialer = false;
131
- callees === null || callees === void 0 ? void 0 : callees.forEach(callee => {
129
+ callees === null || callees === void 0 ? void 0 : callees.forEach((callee) => {
132
130
  if (isMicrosoftTeamsAppIdentifier(callee) || isPhoneNumberIdentifier(callee)) {
133
131
  showDtmfDialer = true;
134
132
  }
135
133
  });
136
134
  if (remoteParticipants) {
137
- remoteParticipants.forEach(participant => {
135
+ remoteParticipants.forEach((participant) => {
138
136
  if (!('phoneNumber' in participant.identifier || 'teamsAppId' in participant.identifier)) {
139
137
  showDtmfDialer = false;
140
138
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MediaGalleryUtils.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAE,yCAAgC;AAEvF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAA2B,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAe9H;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAW,EAAE;IAC5D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACxC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE;QAC3B,OAAO;YACL,6BAA6B,EAAE,MAAM,CAAC,6BAA6B;YACnE,gCAAgC,EAAE,MAAM,CAAC,gCAAgC;YACzE,kCAAkC,EAAE,MAAM,CAAC,kCAAkC;YAC7E,2BAA2B,EAAE,MAAM,CAAC,2BAA2B;YAC/D,8BAA8B,EAAE,MAAM,CAAC,8BAA8B;YACrE,gCAAgC,EAAE,MAAM,CAAC,gCAAgC;YACzE,wBAAwB,EAAE,MAAM,CAAC,wBAAwB;YACzD,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;YACrD,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;YACjD,6BAA6B,EAAE,MAAM,CAAC,6BAA6B;YACnE,2BAA2B,EAAE,MAAM,CAAC,2BAA2B;SAChE,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IACb,MAAM,CAAC,eAAe,EAAE,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AAA,kBAAkB,CAAC,CAAC,CAAC,CAAC,WAAW,mCAAI,OAAO,CAAC,wBAAwB;QACnF,iBAAiB,EAAE,yBAAyB,CAAC,QAAQ,EAAE;KACxD,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAmC,EAAE,kBAA6C,EAAW,EAAE;IAC5H,IAAI,cAAc,GAAG,KAAK,CAAC;IAC3B,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,MAAM,CAAC,EAAE;QACxB,IAAI,6BAA6B,CAAC,MAAM,CAAC,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7E,cAAc,GAAG,IAAI,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAI,kBAAkB,EAAE,CAAC;QACvB,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;YACvC,IAAI,CAAC,CAAC,aAAa,IAAI,WAAW,CAAC,UAAU,IAAI,YAAY,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;gBACzF,cAAc,GAAG,KAAK,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { toFlatCommunicationIdentifier, _formatString } from '@internal/acs-ui-common';\nimport { RemoteParticipantState } from '@internal/calling-stateful-client';\nimport { useMemo, useRef, useState } from 'react';\nimport { useLocale } from '../../localization';\nimport { useSelector } from '../hooks/useSelector';\nimport { getRemoteParticipantsConnectedSelector } from '../selectors/mediaGallerySelector';\nimport { CommunicationIdentifier, isMicrosoftTeamsAppIdentifier, isPhoneNumberIdentifier } from '@azure/communication-common';\ntype ParticipantChangedAnnouncmentStrings = {\n participantJoinedNoticeString: string;\n twoParticipantJoinedNoticeString: string;\n threeParticipantJoinedNoticeString: string;\n participantLeftNoticeString: string;\n twoParticipantLeftNoticeString: string;\n threeParticipantLeftNoticeString: string;\n unnamedParticipantString: string;\n manyParticipantsJoined: string;\n manyParticipantsLeft: string;\n manyUnnamedParticipantsJoined: string;\n manyUnnamedParticipantsLeft: string;\n};\n\n/**\n * sets the announcement string whenever a Participant comes or goes from a call to be\n * used by the system narrator.\n *\n * @returns string to be used by the narrator and Announcer component\n *\n * @internal\n */\nexport const useParticipantChangedAnnouncement = (): string => {\n const locale = useLocale().strings.call;\n const strings = useMemo(() => {\n return {\n participantJoinedNoticeString: locale.participantJoinedNoticeString,\n twoParticipantJoinedNoticeString: locale.twoParticipantJoinedNoticeString,\n threeParticipantJoinedNoticeString: locale.threeParticipantJoinedNoticeString,\n participantLeftNoticeString: locale.participantLeftNoticeString,\n twoParticipantLeftNoticeString: locale.twoParticipantLeftNoticeString,\n threeParticipantLeftNoticeString: locale.threeParticipantLeftNoticeString,\n unnamedParticipantString: locale.unnamedParticipantString,\n manyParticipantsJoined: locale.manyParticipantsJoined,\n manyParticipantsLeft: locale.manyParticipantsLeft,\n manyUnnamedParticipantsJoined: locale.manyUnnamedParticipantsJoined,\n manyUnnamedParticipantsLeft: locale.manyUnnamedParticipantsLeft\n };\n }, [locale]);\n const [announcerString, setAnnouncerString] = useState<string>('');\n const currentParticipants = useSelector(getRemoteParticipantsConnectedSelector);\n /**\n * We want to use a useRef here since we want to not fire this hook based on the previous participants\n * this allows this value to be used in the hook without being in the dependency array.\n *\n * Note: By definition if this hook is used in another component it is not pure anymore.\n */\n const previousParticipants = useRef<RemoteParticipantState[]>(currentParticipants);\n const resetAnnoucement = (string: string): void => {\n setAnnouncerString(string);\n };\n useMemo(() => {\n const currentIds = currentParticipants.map(p => toFlatCommunicationIdentifier(p.identifier));\n const previousIds = previousParticipants.current.map(p => toFlatCommunicationIdentifier(p.identifier));\n const whoJoined = currentParticipants.filter(p => !previousIds.includes(toFlatCommunicationIdentifier(p.identifier)));\n const whoLeft = previousParticipants.current.filter(p => !currentIds.includes(toFlatCommunicationIdentifier(p.identifier)));\n if (whoJoined.length > 0) {\n resetAnnoucement(createAnnouncementString('joined', whoJoined, strings));\n }\n if (whoLeft.length > 0) {\n resetAnnoucement(createAnnouncementString('left', whoLeft, strings));\n }\n // Update cached value at the end.\n previousParticipants.current = currentParticipants;\n }, [currentParticipants, strings]);\n return announcerString;\n};\n\n/**\n * Generates the announcement string for when a participant joins or leaves a call.\n */\nexport const createAnnouncementString = (direction: 'joined' | 'left', participants: RemoteParticipantState[], strings: ParticipantChangedAnnouncmentStrings): string => {\n /**\n * If there are no participants return empty string.\n */\n if (participants.length === 0) {\n return '';\n }\n /**\n * Filter participants into two arrays to put all the unnamed participants at the back of the\n * names being announced.\n */\n const unnamedParticipants = participants.filter(p => !p.displayName);\n const namedParicipants = participants.filter(p => p.displayName);\n const sortedParticipants = namedParicipants.concat(unnamedParticipants);\n\n /**\n * if there are only unnamed participants present in the array announce a special unnamed participants\n * only string.\n */\n if (sortedParticipants.filter(p => p.displayName).length === 0 && sortedParticipants.length > 1) {\n return _formatString(direction === 'joined' ? strings.manyUnnamedParticipantsJoined : strings.manyUnnamedParticipantsLeft, {\n numOfParticipants: (sortedParticipants.length - 1).toString()\n });\n }\n const participantNames = sortedParticipants.map(p => p.displayName ?? strings.unnamedParticipantString);\n switch (sortedParticipants.length) {\n case 1:\n return _formatString(direction === 'joined' ? strings.participantJoinedNoticeString : strings.participantLeftNoticeString, {\n displayName: participantNames[0]\n });\n case 2:\n return _formatString(direction === 'joined' ? strings.twoParticipantJoinedNoticeString : strings.twoParticipantLeftNoticeString, {\n displayName1: participantNames[0],\n displayName2: participantNames[1]\n });\n case 3:\n return _formatString(direction === 'joined' ? strings.threeParticipantJoinedNoticeString : strings.threeParticipantLeftNoticeString, {\n displayName1: participantNames[0],\n displayName2: participantNames[1],\n displayName3: participantNames[2]\n });\n }\n\n /**\n * If we have more than 3 participants joining we need to do something more to announce them\n * appropriately.\n *\n * We don't want to announce every name when more than 3 participants join at once so\n * we parse out the first 3 names we have and announce those with the number of others.\n */\n\n const numberOfExtraParticipants = sortedParticipants.length - 3;\n return _formatString(direction === 'joined' ? strings.manyParticipantsJoined : strings.manyParticipantsLeft, {\n displayName1: sortedParticipants[0].displayName ?? strings.unnamedParticipantString,\n displayName2: sortedParticipants[1].displayName ?? strings.unnamedParticipantString,\n displayName3: sortedParticipants[2].displayName ?? strings.unnamedParticipantString,\n numOfParticipants: numberOfExtraParticipants.toString()\n });\n};\n\n/**\n * determines if the media gallery should be replaced by the dtmf dialer\n * @param callees Target callees to determine if the dtmf dialer should be shown\n * @param remoteParticipants Remote participants to determine if the dtmf dialer should be shown if there are participants in the call\n * when joining\n * @returns whether the dialer should be the gallery content or not\n */\nexport const showDtmfDialer = (callees?: CommunicationIdentifier[], remoteParticipants?: RemoteParticipantState[]): boolean => {\n let showDtmfDialer = false;\n callees?.forEach(callee => {\n if (isMicrosoftTeamsAppIdentifier(callee) || isPhoneNumberIdentifier(callee)) {\n showDtmfDialer = true;\n }\n });\n if (remoteParticipants) {\n remoteParticipants.forEach(participant => {\n if (!('phoneNumber' in participant.identifier || 'teamsAppId' in participant.identifier)) {\n showDtmfDialer = false;\n }\n });\n }\n return showDtmfDialer;\n};"]}
1
+ {"version":3,"file":"MediaGalleryUtils.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAE,yCAAgC;AAEvF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,sCAAsC,EAAE,MAAM,mCAAmC,CAAC;AAC3F,OAAO,EAEL,6BAA6B,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,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7E,cAAc,GAAG,IAAI,CAAC;QACxB,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAI,kBAAkB,EAAE,CAAC;QACvB,kBAAkB,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,EAAE;YACzC,IAAI,CAAC,CAAC,aAAa,IAAI,WAAW,CAAC,UAAU,IAAI,YAAY,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;gBACzF,cAAc,GAAG,KAAK,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { toFlatCommunicationIdentifier, _formatString } from '@internal/acs-ui-common';\nimport { RemoteParticipantState } from '@internal/calling-stateful-client';\nimport { useMemo, useRef, useState } from 'react';\nimport { useLocale } from '../../localization';\nimport { useSelector } from '../hooks/useSelector';\nimport { getRemoteParticipantsConnectedSelector } from '../selectors/mediaGallerySelector';\nimport {\n CommunicationIdentifier,\n isMicrosoftTeamsAppIdentifier,\n isPhoneNumberIdentifier\n} from '@azure/communication-common';\n\ntype ParticipantChangedAnnouncmentStrings = {\n participantJoinedNoticeString: string;\n twoParticipantJoinedNoticeString: string;\n threeParticipantJoinedNoticeString: string;\n participantLeftNoticeString: string;\n twoParticipantLeftNoticeString: string;\n threeParticipantLeftNoticeString: string;\n unnamedParticipantString: string;\n manyParticipantsJoined: string;\n manyParticipantsLeft: string;\n manyUnnamedParticipantsJoined: string;\n manyUnnamedParticipantsLeft: string;\n};\n\n/**\n * sets the announcement string whenever a Participant comes or goes from a call to be\n * used by the system narrator.\n *\n * @returns string to be used by the narrator and Announcer component\n *\n * @internal\n */\nexport const useParticipantChangedAnnouncement = (): string => {\n const locale = useLocale().strings.call;\n const strings = useMemo(() => {\n return {\n participantJoinedNoticeString: locale.participantJoinedNoticeString,\n twoParticipantJoinedNoticeString: locale.twoParticipantJoinedNoticeString,\n threeParticipantJoinedNoticeString: locale.threeParticipantJoinedNoticeString,\n participantLeftNoticeString: locale.participantLeftNoticeString,\n twoParticipantLeftNoticeString: locale.twoParticipantLeftNoticeString,\n threeParticipantLeftNoticeString: locale.threeParticipantLeftNoticeString,\n unnamedParticipantString: locale.unnamedParticipantString,\n manyParticipantsJoined: locale.manyParticipantsJoined,\n manyParticipantsLeft: locale.manyParticipantsLeft,\n manyUnnamedParticipantsJoined: locale.manyUnnamedParticipantsJoined,\n manyUnnamedParticipantsLeft: locale.manyUnnamedParticipantsLeft\n };\n }, [locale]);\n const [announcerString, setAnnouncerString] = useState<string>('');\n const currentParticipants = useSelector(getRemoteParticipantsConnectedSelector);\n /**\n * We want to use a useRef here since we want to not fire this hook based on the previous participants\n * this allows this value to be used in the hook without being in the dependency array.\n *\n * Note: By definition if this hook is used in another component it is not pure anymore.\n */\n const previousParticipants = useRef<RemoteParticipantState[]>(currentParticipants);\n\n const resetAnnoucement = (string: string): void => {\n setAnnouncerString(string);\n };\n\n useMemo(() => {\n const currentIds = currentParticipants.map((p) => toFlatCommunicationIdentifier(p.identifier));\n const previousIds = previousParticipants.current.map((p) => toFlatCommunicationIdentifier(p.identifier));\n const whoJoined = currentParticipants.filter(\n (p) => !previousIds.includes(toFlatCommunicationIdentifier(p.identifier))\n );\n const whoLeft = previousParticipants.current.filter(\n (p) => !currentIds.includes(toFlatCommunicationIdentifier(p.identifier))\n );\n if (whoJoined.length > 0) {\n resetAnnoucement(createAnnouncementString('joined', whoJoined, strings));\n }\n if (whoLeft.length > 0) {\n resetAnnoucement(createAnnouncementString('left', whoLeft, strings));\n }\n // Update cached value at the end.\n previousParticipants.current = currentParticipants;\n }, [currentParticipants, strings]);\n return announcerString;\n};\n\n/**\n * Generates the announcement string for when a participant joins or leaves a call.\n */\nexport const createAnnouncementString = (\n direction: 'joined' | 'left',\n participants: RemoteParticipantState[],\n strings: ParticipantChangedAnnouncmentStrings\n): string => {\n /**\n * If there are no participants return empty string.\n */\n if (participants.length === 0) {\n return '';\n }\n /**\n * Filter participants into two arrays to put all the unnamed participants at the back of the\n * names being announced.\n */\n const unnamedParticipants = participants.filter((p) => !p.displayName);\n const namedParicipants = participants.filter((p) => p.displayName);\n const sortedParticipants = namedParicipants.concat(unnamedParticipants);\n\n /**\n * if there are only unnamed participants present in the array announce a special unnamed participants\n * only string.\n */\n if (sortedParticipants.filter((p) => p.displayName).length === 0 && sortedParticipants.length > 1) {\n return _formatString(\n direction === 'joined' ? strings.manyUnnamedParticipantsJoined : strings.manyUnnamedParticipantsLeft,\n {\n numOfParticipants: (sortedParticipants.length - 1).toString()\n }\n );\n }\n const participantNames = sortedParticipants.map((p) => p.displayName ?? strings.unnamedParticipantString);\n\n switch (sortedParticipants.length) {\n case 1:\n return _formatString(\n direction === 'joined' ? strings.participantJoinedNoticeString : strings.participantLeftNoticeString,\n { displayName: participantNames[0] }\n );\n case 2:\n return _formatString(\n direction === 'joined' ? strings.twoParticipantJoinedNoticeString : strings.twoParticipantLeftNoticeString,\n {\n displayName1: participantNames[0],\n displayName2: participantNames[1]\n }\n );\n case 3:\n return _formatString(\n direction === 'joined' ? strings.threeParticipantJoinedNoticeString : strings.threeParticipantLeftNoticeString,\n {\n displayName1: participantNames[0],\n displayName2: participantNames[1],\n displayName3: participantNames[2]\n }\n );\n }\n\n /**\n * If we have more than 3 participants joining we need to do something more to announce them\n * appropriately.\n *\n * We don't want to announce every name when more than 3 participants join at once so\n * we parse out the first 3 names we have and announce those with the number of others.\n */\n\n const numberOfExtraParticipants = sortedParticipants.length - 3;\n\n return _formatString(direction === 'joined' ? strings.manyParticipantsJoined : strings.manyParticipantsLeft, {\n displayName1: sortedParticipants[0].displayName ?? strings.unnamedParticipantString,\n displayName2: sortedParticipants[1].displayName ?? strings.unnamedParticipantString,\n displayName3: sortedParticipants[2].displayName ?? strings.unnamedParticipantString,\n numOfParticipants: numberOfExtraParticipants.toString()\n });\n};\n\n/**\n * determines if the media gallery should be replaced by the dtmf dialer\n * @param callees Target callees to determine if the dtmf dialer should be shown\n * @param remoteParticipants Remote participants to determine if the dtmf dialer should be shown if there are participants in the call\n * when joining\n * @returns whether the dialer should be the gallery content or not\n */\nexport const showDtmfDialer = (\n callees?: CommunicationIdentifier[],\n remoteParticipants?: RemoteParticipantState[]\n): boolean => {\n let showDtmfDialer = false;\n callees?.forEach((callee) => {\n if (isMicrosoftTeamsAppIdentifier(callee) || isPhoneNumberIdentifier(callee)) {\n showDtmfDialer = true;\n }\n });\n if (remoteParticipants) {\n remoteParticipants.forEach((participant) => {\n if (!('phoneNumber' in participant.identifier || 'teamsAppId' in participant.identifier)) {\n showDtmfDialer = false;\n }\n });\n }\n return showDtmfDialer;\n};\n"]}
@@ -12,18 +12,14 @@ export const useTrackedCapabilityChangedNotifications = (capabilitiesChangedAndR
12
12
  // share screen capability changed info from the Calling SDK when joining Teams interop will be ignored because
13
13
  // being able to share screen is assumed by default. This is inline with what Teams is doing.
14
14
  const activeNotifications = useRef({
15
- shareScreen: {
16
- capabilityName: 'shareScreen',
17
- isPresent: true,
18
- changedReason: 'RoleChanged'
19
- }
15
+ shareScreen: { capabilityName: 'shareScreen', isPresent: true, changedReason: 'RoleChanged' }
20
16
  });
21
17
  useEffect(() => {
22
18
  activeNotifications.current = updateLatestCapabilityChangedNotificationMap(capabilitiesChangedAndRoleInfo, activeNotifications.current);
23
- setTrackedCapabilityChangedNotifications(prev => updateTrackedCapabilityChangedNotificationsWithActiveNotifications(prev, Object.values(activeNotifications.current)));
19
+ setTrackedCapabilityChangedNotifications((prev) => updateTrackedCapabilityChangedNotificationsWithActiveNotifications(prev, Object.values(activeNotifications.current)));
24
20
  }, [capabilitiesChangedAndRoleInfo]);
25
21
  const onDismissCapabilityChangedNotification = useCallback((notification) => {
26
- setTrackedCapabilityChangedNotifications(prev => trackCapabilityChangedNotificationAsDismissed(notification.capabilityName, prev));
22
+ setTrackedCapabilityChangedNotifications((prev) => trackCapabilityChangedNotificationAsDismissed(notification.capabilityName, prev));
27
23
  }, []);
28
24
  const latestCapabilityChangedNotifications = useMemo(() => filterLatestCapabilityChangedNotifications(Object.values(activeNotifications.current), trackedCapabilityChangedNotifications), [trackedCapabilityChangedNotifications]);
29
25
  return {
@@ -37,9 +33,11 @@ export const useTrackedCapabilityChangedNotifications = (capabilitiesChangedAndR
37
33
  * @private
38
34
  */
39
35
  export const filterLatestCapabilityChangedNotifications = (activeNotifications, trackedNotifications) => {
40
- const filteredNotifications = activeNotifications.filter(activeNotification => {
36
+ const filteredNotifications = activeNotifications.filter((activeNotification) => {
41
37
  const trackedNotification = trackedNotifications[activeNotification.capabilityName];
42
- return !trackedNotification || !trackedNotification.lastDismissedAt || trackedNotification.lastDismissedAt < trackedNotification.mostRecentlyActive;
38
+ return (!trackedNotification ||
39
+ !trackedNotification.lastDismissedAt ||
40
+ trackedNotification.lastDismissedAt < trackedNotification.mostRecentlyActive);
43
41
  });
44
42
  return filteredNotifications;
45
43
  };
@@ -83,7 +81,10 @@ const updateLatestCapabilityChangedNotificationMap = (capabilitiesChangedInfoAnd
83
81
  const capabilityName = capabilityKey;
84
82
  // If the active notification for a capability has the same `isPresent` value and the same reason as the new
85
83
  // capability value from the SDK then we will not create a new notification to avoid redundancy
86
- if (activeNotifications[capabilityName] && newCapabilityValue.isPresent === ((_a = activeNotifications[capabilityName]) === null || _a === void 0 ? void 0 : _a.isPresent) && capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.reason === ((_b = activeNotifications[capabilityName]) === null || _b === void 0 ? void 0 : _b.changedReason)) {
84
+ if (activeNotifications[capabilityName] &&
85
+ newCapabilityValue.isPresent === ((_a = activeNotifications[capabilityName]) === null || _a === void 0 ? void 0 : _a.isPresent) &&
86
+ capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.reason ===
87
+ ((_b = activeNotifications[capabilityName]) === null || _b === void 0 ? void 0 : _b.changedReason)) {
87
88
  continue;
88
89
  }
89
90
  const newCapabilityChangeNotification = {
@@ -1 +1 @@
1
- {"version":3,"file":"TrackCapabilityChangedNotifications.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAK1E;;;;GAIG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,8BAA8D,EAA0C,EAAE;IACjK,MAAM,CAAC,qCAAqC,EAAE,wCAAwC,CAAC,GAAG,QAAQ,CAAwC,EAAE,CAAC,CAAC;IAE9I,0GAA0G;IAC1G,+GAA+G;IAC/G,6FAA6F;IAC7F,MAAM,mBAAmB,GAAG,MAAM,CAA4C;QAC5E,WAAW,EAAE;YACX,cAAc,EAAE,aAAa;YAC7B,SAAS,EAAE,IAAI;YACf,aAAa,EAAE,aAAa;SAC7B;KACF,CAAC,CAAC;IACH,SAAS,CAAC,GAAG,EAAE;QACb,mBAAmB,CAAC,OAAO,GAAG,4CAA4C,CAAC,8BAA8B,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACxI,wCAAwC,CAAC,IAAI,CAAC,EAAE,CAAC,kEAAkE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzK,CAAC,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACrC,MAAM,sCAAsC,GAAG,WAAW,CAAC,CAAC,YAA2C,EAAE,EAAE;QACzG,wCAAwC,CAAC,IAAI,CAAC,EAAE,CAAC,6CAA6C,CAAC,YAAY,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC;IACrI,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,MAAM,oCAAoC,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,0C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AAC,MAAM;YAC3E,IAAI,EAAE,8BAA8B,CAAC,eAAe;YACpD,SAAS,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;SAChC,CAAC;QACF,mBAAmB,CAAC,cAAc,CAAC,GAAG,+BAA+B,CAAC;IACxE,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport { CapabilitiesChangeInfo, ParticipantCapabilityName, ParticipantRole } from '@azure/communication-calling';\nimport { CapabalityChangedNotification, CapabilitiesChangeNotificationBarProps } from '../components/CapabilitiesChangedNotificationBar';\nimport { TrackedCapabilityChangedNotifications } from '../types/CapabilityChangedNotificationTracking';\n\n/**\n * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.\n *\n * @private\n */\nexport const useTrackedCapabilityChangedNotifications = (capabilitiesChangedAndRoleInfo: CapabilitiesChangedInfoAndRole): CapabilitiesChangeNotificationBarProps => {\n const [trackedCapabilityChangedNotifications, setTrackedCapabilityChangedNotifications] = useState<TrackedCapabilityChangedNotifications>({});\n\n // Initialize a share screen capability changed notification with 'RoleChanged' reason so that the initial\n // share screen capability changed info from the Calling SDK when joining Teams interop will be ignored because\n // being able to share screen is assumed by default. This is inline with what Teams is doing.\n const activeNotifications = useRef<LatestCapabilityChangedNotificationRecord>({\n shareScreen: {\n capabilityName: 'shareScreen',\n isPresent: true,\n changedReason: 'RoleChanged'\n }\n });\n useEffect(() => {\n activeNotifications.current = updateLatestCapabilityChangedNotificationMap(capabilitiesChangedAndRoleInfo, activeNotifications.current);\n setTrackedCapabilityChangedNotifications(prev => updateTrackedCapabilityChangedNotificationsWithActiveNotifications(prev, Object.values(activeNotifications.current)));\n }, [capabilitiesChangedAndRoleInfo]);\n const onDismissCapabilityChangedNotification = useCallback((notification: CapabalityChangedNotification) => {\n setTrackedCapabilityChangedNotifications(prev => trackCapabilityChangedNotificationAsDismissed(notification.capabilityName, prev));\n }, []);\n const latestCapabilityChangedNotifications = useMemo(() => filterLatestCapabilityChangedNotifications(Object.values(activeNotifications.current), trackedCapabilityChangedNotifications), [trackedCapabilityChangedNotifications]);\n return {\n capabilitiesChangedNotifications: latestCapabilityChangedNotifications,\n onDismissNotification: onDismissCapabilityChangedNotification\n };\n};\n\n/**\n * Take the set of active notifications, and filter to only those that are newer than previously dismissed notifications or have never been dismissed.\n *\n * @private\n */\nexport const filterLatestCapabilityChangedNotifications = (activeNotifications: CapabalityChangedNotification[], trackedNotifications: TrackedCapabilityChangedNotifications): CapabalityChangedNotification[] => {\n const filteredNotifications = activeNotifications.filter(activeNotification => {\n const trackedNotification = trackedNotifications[activeNotification.capabilityName];\n return !trackedNotification || !trackedNotification.lastDismissedAt || trackedNotification.lastDismissedAt < trackedNotification.mostRecentlyActive;\n });\n return filteredNotifications;\n};\n\n/**\n * Maintain a record of the most recently active notification for each capability name.\n *\n * @private\n */\nexport const updateTrackedCapabilityChangedNotificationsWithActiveNotifications = (existingTrackedNotifications: TrackedCapabilityChangedNotifications, activeNotifications: CapabalityChangedNotification[]): TrackedCapabilityChangedNotifications => {\n const trackedNotifications: TrackedCapabilityChangedNotifications = {};\n\n // Only care about active notifications. If notifications are no longer active we do not track that they have been previously dismissed.\n for (const activeNotification of activeNotifications) {\n const existingTrackedNotification = existingTrackedNotifications[activeNotification.capabilityName];\n trackedNotifications[activeNotification.capabilityName] = {\n mostRecentlyActive: activeNotification.timestamp ?? existingTrackedNotification?.mostRecentlyActive ?? new Date(Date.now()),\n lastDismissedAt: existingTrackedNotification?.lastDismissedAt\n };\n }\n return trackedNotifications;\n};\n\n/**\n * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.\n *\n * @private\n */\nexport const trackCapabilityChangedNotificationAsDismissed = (capabilityName: ParticipantCapabilityName, trackedNotifications: TrackedCapabilityChangedNotifications): TrackedCapabilityChangedNotifications => {\n const now = new Date(Date.now());\n const existingNotification = trackedNotifications[capabilityName];\n return {\n ...trackedNotifications,\n [capabilityName]: {\n ...(existingNotification || {}),\n lastDismissedAt: now\n }\n };\n};\ninterface CapabilitiesChangedInfoAndRole {\n capabilitiesChangeInfo?: CapabilitiesChangeInfo;\n participantRole?: ParticipantRole;\n}\ntype LatestCapabilityChangedNotificationRecord = Partial<Record<ParticipantCapabilityName, CapabalityChangedNotification>>;\nconst updateLatestCapabilityChangedNotificationMap = (capabilitiesChangedInfoAndRole: CapabilitiesChangedInfoAndRole, activeNotifications: LatestCapabilityChangedNotificationRecord): LatestCapabilityChangedNotificationRecord => {\n if (!capabilitiesChangedInfoAndRole.capabilitiesChangeInfo) {\n return activeNotifications;\n }\n for (const [capabilityKey, newCapabilityValue] of Object.entries(capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.newValue)) {\n // Cast is safe because we are iterating over the enum keys on the object.entries where\n // newCapabilityValue typing is correctly returned. Object.entries limitations\n // always returns string for the key\n const capabilityName = (capabilityKey as ParticipantCapabilityName);\n // If the active notification for a capability has the same `isPresent` value and the same reason as the new\n // capability value from the SDK then we will not create a new notification to avoid redundancy\n if (activeNotifications[capabilityName] && newCapabilityValue.isPresent === activeNotifications[capabilityName]?.isPresent && capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.reason === activeNotifications[capabilityName]?.changedReason) {\n continue;\n }\n const newCapabilityChangeNotification: CapabalityChangedNotification = {\n capabilityName: capabilityName,\n isPresent: newCapabilityValue.isPresent,\n changedReason: capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.reason,\n role: capabilitiesChangedInfoAndRole.participantRole,\n timestamp: new Date(Date.now())\n };\n activeNotifications[capabilityName] = newCapabilityChangeNotification;\n }\n return activeNotifications;\n};"]}
1
+ {"version":3,"file":"TrackCapabilityChangedNotifications.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAA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CAAC,GAAG,+BAA+B,CAAC;IACxE,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n\nimport { CapabilitiesChangeInfo, ParticipantCapabilityName, ParticipantRole } from '@azure/communication-calling';\n\nimport {\n CapabalityChangedNotification,\n CapabilitiesChangeNotificationBarProps\n} from '../components/CapabilitiesChangedNotificationBar';\n\nimport { TrackedCapabilityChangedNotifications } from '../types/CapabilityChangedNotificationTracking';\n\n/**\n * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.\n *\n * @private\n */\nexport const useTrackedCapabilityChangedNotifications = (\n capabilitiesChangedAndRoleInfo: CapabilitiesChangedInfoAndRole\n): CapabilitiesChangeNotificationBarProps => {\n const [trackedCapabilityChangedNotifications, setTrackedCapabilityChangedNotifications] =\n useState<TrackedCapabilityChangedNotifications>({});\n\n // Initialize a share screen capability changed notification with 'RoleChanged' reason so that the initial\n // share screen capability changed info from the Calling SDK when joining Teams interop will be ignored because\n // being able to share screen is assumed by default. This is inline with what Teams is doing.\n const activeNotifications = useRef<LatestCapabilityChangedNotificationRecord>({\n shareScreen: { capabilityName: 'shareScreen', isPresent: true, changedReason: 'RoleChanged' }\n });\n\n useEffect(() => {\n activeNotifications.current = updateLatestCapabilityChangedNotificationMap(\n capabilitiesChangedAndRoleInfo,\n activeNotifications.current\n );\n setTrackedCapabilityChangedNotifications((prev) =>\n updateTrackedCapabilityChangedNotificationsWithActiveNotifications(\n prev,\n Object.values(activeNotifications.current)\n )\n );\n }, [capabilitiesChangedAndRoleInfo]);\n\n const onDismissCapabilityChangedNotification = useCallback((notification: CapabalityChangedNotification) => {\n setTrackedCapabilityChangedNotifications((prev) =>\n trackCapabilityChangedNotificationAsDismissed(notification.capabilityName, prev)\n );\n }, []);\n\n const latestCapabilityChangedNotifications = useMemo(\n () =>\n filterLatestCapabilityChangedNotifications(\n Object.values(activeNotifications.current),\n trackedCapabilityChangedNotifications\n ),\n [trackedCapabilityChangedNotifications]\n );\n\n return {\n capabilitiesChangedNotifications: latestCapabilityChangedNotifications,\n onDismissNotification: onDismissCapabilityChangedNotification\n };\n};\n\n/**\n * Take the set of active notifications, and filter to only those that are newer than previously dismissed notifications or have never been dismissed.\n *\n * @private\n */\nexport const filterLatestCapabilityChangedNotifications = (\n activeNotifications: CapabalityChangedNotification[],\n trackedNotifications: TrackedCapabilityChangedNotifications\n): CapabalityChangedNotification[] => {\n const filteredNotifications = activeNotifications.filter((activeNotification) => {\n const trackedNotification = trackedNotifications[activeNotification.capabilityName];\n return (\n !trackedNotification ||\n !trackedNotification.lastDismissedAt ||\n trackedNotification.lastDismissedAt < trackedNotification.mostRecentlyActive\n );\n });\n return filteredNotifications;\n};\n\n/**\n * Maintain a record of the most recently active notification for each capability name.\n *\n * @private\n */\nexport const updateTrackedCapabilityChangedNotificationsWithActiveNotifications = (\n existingTrackedNotifications: TrackedCapabilityChangedNotifications,\n activeNotifications: CapabalityChangedNotification[]\n): TrackedCapabilityChangedNotifications => {\n const trackedNotifications: TrackedCapabilityChangedNotifications = {};\n\n // Only care about active notifications. If notifications are no longer active we do not track that they have been previously dismissed.\n for (const activeNotification of activeNotifications) {\n const existingTrackedNotification = existingTrackedNotifications[activeNotification.capabilityName];\n trackedNotifications[activeNotification.capabilityName] = {\n mostRecentlyActive:\n activeNotification.timestamp ?? existingTrackedNotification?.mostRecentlyActive ?? new Date(Date.now()),\n lastDismissedAt: existingTrackedNotification?.lastDismissedAt\n };\n }\n\n return trackedNotifications;\n};\n\n/**\n * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.\n *\n * @private\n */\nexport const trackCapabilityChangedNotificationAsDismissed = (\n capabilityName: ParticipantCapabilityName,\n trackedNotifications: TrackedCapabilityChangedNotifications\n): TrackedCapabilityChangedNotifications => {\n const now = new Date(Date.now());\n const existingNotification = trackedNotifications[capabilityName];\n\n return {\n ...trackedNotifications,\n [capabilityName]: {\n ...(existingNotification || {}),\n lastDismissedAt: now\n }\n };\n};\n\ninterface CapabilitiesChangedInfoAndRole {\n capabilitiesChangeInfo?: CapabilitiesChangeInfo;\n participantRole?: ParticipantRole;\n}\n\ntype LatestCapabilityChangedNotificationRecord = Partial<\n Record<ParticipantCapabilityName, CapabalityChangedNotification>\n>;\n\nconst updateLatestCapabilityChangedNotificationMap = (\n capabilitiesChangedInfoAndRole: CapabilitiesChangedInfoAndRole,\n activeNotifications: LatestCapabilityChangedNotificationRecord\n): LatestCapabilityChangedNotificationRecord => {\n if (!capabilitiesChangedInfoAndRole.capabilitiesChangeInfo) {\n return activeNotifications;\n }\n\n for (const [capabilityKey, newCapabilityValue] of Object.entries(\n capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.newValue\n )) {\n // Cast is safe because we are iterating over the enum keys on the object.entries where\n // newCapabilityValue typing is correctly returned. Object.entries limitations\n // always returns string for the key\n const capabilityName = capabilityKey as ParticipantCapabilityName;\n // If the active notification for a capability has the same `isPresent` value and the same reason as the new\n // capability value from the SDK then we will not create a new notification to avoid redundancy\n if (\n activeNotifications[capabilityName] &&\n newCapabilityValue.isPresent === activeNotifications[capabilityName]?.isPresent &&\n capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.reason ===\n activeNotifications[capabilityName]?.changedReason\n ) {\n continue;\n }\n const newCapabilityChangeNotification: CapabalityChangedNotification = {\n capabilityName: capabilityName,\n isPresent: newCapabilityValue.isPresent,\n changedReason: capabilitiesChangedInfoAndRole.capabilitiesChangeInfo.reason,\n role: capabilitiesChangedInfoAndRole.participantRole,\n timestamp: new Date(Date.now())\n };\n activeNotifications[capabilityName] = newCapabilityChangeNotification;\n }\n return activeNotifications;\n};\n"]}
@@ -1,21 +1,22 @@
1
1
  import { ActiveErrorMessage, ErrorType } from "../../../../../react-components/src";
2
- import { TrackedErrors } from '../types/ErrorTracking';
2
+ import { TrackedNotifications } from '../types/ErrorTracking';
3
+ import { NotificationType, ActiveNotification } from "../../../../../react-components/src";
3
4
  /**
4
- * Take the set of active errors, and filter to only those that are newer than previously dismissed errors or have never been dismissed.
5
+ * Take the set of active notifications, and filter to only those that are newer than previously dismissed notifications or have never been dismissed.
5
6
  *
6
7
  * @private
7
8
  */
8
- export declare const filterLatestErrors: (activeErrors: ActiveErrorMessage[], trackedErrors: TrackedErrors) => ActiveErrorMessage[];
9
+ export declare const filterLatestNotifications: (activeNotifications: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[], trackedNotifications: TrackedNotifications) => ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[];
9
10
  /**
10
- * Maintain a record of the most recently active error for each error type.
11
+ * Maintain a record of the most recently active notification for each notification type.
11
12
  *
12
13
  * @private
13
14
  */
14
- export declare const updateTrackedErrorsWithActiveErrors: (existingTrackedErrors: TrackedErrors, activeErrors: ActiveErrorMessage[]) => TrackedErrors;
15
+ export declare const updateTrackedNotificationsWithActiveNotifications: (existingTrackedNotifications: TrackedNotifications, activeNotifications: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[]) => TrackedNotifications;
15
16
  /**
16
- * Create a record for when the error was most recently dismissed for tracking dismissed errors.
17
+ * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.
17
18
  *
18
19
  * @private
19
20
  */
20
- export declare const trackErrorAsDismissed: (errorType: ErrorType, trackedErrors: TrackedErrors) => TrackedErrors;
21
+ export declare const trackNotificationAsDismissed: (notificationType: ErrorType | /* @conditional-compile-remove(notifications) */ NotificationType, trackedNotifications: TrackedNotifications) => TrackedNotifications;
21
22
  //# sourceMappingURL=TrackErrors.d.ts.map
@@ -1,43 +1,45 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  /**
4
- * Take the set of active errors, and filter to only those that are newer than previously dismissed errors or have never been dismissed.
4
+ * Take the set of active notifications, and filter to only those that are newer than previously dismissed notifications or have never been dismissed.
5
5
  *
6
6
  * @private
7
7
  */
8
- export const filterLatestErrors = (activeErrors, trackedErrors) => {
9
- const filteredErrors = activeErrors.filter(activeError => {
10
- const trackedError = trackedErrors[activeError.type];
11
- return !trackedError || !trackedError.lastDismissedAt || trackedError.lastDismissedAt < trackedError.mostRecentlyActive;
8
+ export const filterLatestNotifications = (activeNotifications, trackedNotifications) => {
9
+ const filteredNotifications = activeNotifications.filter((activeNotification) => {
10
+ const trackedNotification = trackedNotifications[activeNotification.type];
11
+ return (!trackedNotification ||
12
+ !trackedNotification.lastDismissedAt ||
13
+ trackedNotification.lastDismissedAt < trackedNotification.mostRecentlyActive);
12
14
  });
13
- return filteredErrors;
15
+ return filteredNotifications;
14
16
  };
15
17
  /**
16
- * Maintain a record of the most recently active error for each error type.
18
+ * Maintain a record of the most recently active notification for each notification type.
17
19
  *
18
20
  * @private
19
21
  */
20
- export const updateTrackedErrorsWithActiveErrors = (existingTrackedErrors, activeErrors) => {
22
+ export const updateTrackedNotificationsWithActiveNotifications = (existingTrackedNotifications, activeNotifications) => {
21
23
  var _a, _b;
22
- const trackedErrors = {};
23
- // Only care about active errors. If errors are no longer active we do not track that they have been previously dismissed.
24
- for (const activeError of activeErrors) {
25
- const existingTrackedError = existingTrackedErrors[activeError.type];
26
- trackedErrors[activeError.type] = {
27
- mostRecentlyActive: (_b = (_a = activeError.timestamp) !== null && _a !== void 0 ? _a : existingTrackedError === null || existingTrackedError === void 0 ? void 0 : existingTrackedError.mostRecentlyActive) !== null && _b !== void 0 ? _b : new Date(Date.now()),
28
- lastDismissedAt: existingTrackedError === null || existingTrackedError === void 0 ? void 0 : existingTrackedError.lastDismissedAt
24
+ const trackedNotifications = {};
25
+ // Only care about active notifications. If notifications are no longer active we do not track that they have been previously dismissed.
26
+ for (const activeNotification of activeNotifications) {
27
+ const existingTrackedNotification = existingTrackedNotifications[activeNotification.type];
28
+ trackedNotifications[activeNotification.type] = {
29
+ mostRecentlyActive: (_b = (_a = activeNotification.timestamp) !== null && _a !== void 0 ? _a : existingTrackedNotification === null || existingTrackedNotification === void 0 ? void 0 : existingTrackedNotification.mostRecentlyActive) !== null && _b !== void 0 ? _b : new Date(Date.now()),
30
+ lastDismissedAt: existingTrackedNotification === null || existingTrackedNotification === void 0 ? void 0 : existingTrackedNotification.lastDismissedAt
29
31
  };
30
32
  }
31
- return trackedErrors;
33
+ return trackedNotifications;
32
34
  };
33
35
  /**
34
- * Create a record for when the error was most recently dismissed for tracking dismissed errors.
36
+ * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.
35
37
  *
36
38
  * @private
37
39
  */
38
- export const trackErrorAsDismissed = (errorType, trackedErrors) => {
40
+ export const trackNotificationAsDismissed = (notificationType, trackedNotifications) => {
39
41
  const now = new Date(Date.now());
40
- const existingError = trackedErrors[errorType];
41
- return Object.assign(Object.assign({}, trackedErrors), { [errorType]: Object.assign(Object.assign({}, (existingError || {})), { lastDismissedAt: now }) });
42
+ const existingNotification = trackedNotifications[notificationType];
43
+ return Object.assign(Object.assign({}, trackedNotifications), { [notificationType]: Object.assign(Object.assign({}, (existingNotification || {})), { lastDismissedAt: now }) });
42
44
  };
43
45
  //# sourceMappingURL=TrackErrors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TrackErrors.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-composites/src/composites/CallComposite/utils/TrackErrors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,YAAkC,EAAE,aAA4B,EAAwB,EAAE;IAC3H,MAAM,cAAc,GAAG,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE;QACvD,MAAM,YAAY,GAAG,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrD,OAAO,CAAC,YAAY,IAAI,CAAC,YAAY,CAAC,eAAe,IAAI,YAAY,CAAC,eAAe,GAAG,YAAY,CAAC,kBAAkB,CAAC;IAC1H,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,qBAAoC,EAAE,YAAkC,EAAiB,EAAE;;IAC7I,MAAM,aAAa,GAAkB,EAAE,CAAC;IAExC,0HAA0H;IAC1H,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACrE,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG;YAChC,kBAAkB,EAAE,MAAA,MAAA,WAAW,CAAC,SAAS,mCAAI,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,kBAAkB,mCAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7G,eAAe,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,eAAe;SACvD,CAAC;IACJ,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,SAAoB,EAAE,aAA4B,EAAiB,EAAE;IACzG,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjC,MAAM,aAAa,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC;IAC/C,uCACK,aAAa,KAChB,CAAC,SAAS,CAAC,kCACN,CAAC,aAAa,IAAI,EAAE,CAAC,KACxB,eAAe,EAAE,GAAG,OAEtB;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ActiveErrorMessage, ErrorType } from '@internal/react-components';\nimport { TrackedErrors } from '../types/ErrorTracking';\n\n/**\n * Take the set of active errors, and filter to only those that are newer than previously dismissed errors or have never been dismissed.\n *\n * @private\n */\nexport const filterLatestErrors = (activeErrors: ActiveErrorMessage[], trackedErrors: TrackedErrors): ActiveErrorMessage[] => {\n const filteredErrors = activeErrors.filter(activeError => {\n const trackedError = trackedErrors[activeError.type];\n return !trackedError || !trackedError.lastDismissedAt || trackedError.lastDismissedAt < trackedError.mostRecentlyActive;\n });\n return filteredErrors;\n};\n\n/**\n * Maintain a record of the most recently active error for each error type.\n *\n * @private\n */\nexport const updateTrackedErrorsWithActiveErrors = (existingTrackedErrors: TrackedErrors, activeErrors: ActiveErrorMessage[]): TrackedErrors => {\n const trackedErrors: TrackedErrors = {};\n\n // Only care about active errors. If errors are no longer active we do not track that they have been previously dismissed.\n for (const activeError of activeErrors) {\n const existingTrackedError = existingTrackedErrors[activeError.type];\n trackedErrors[activeError.type] = {\n mostRecentlyActive: activeError.timestamp ?? existingTrackedError?.mostRecentlyActive ?? new Date(Date.now()),\n lastDismissedAt: existingTrackedError?.lastDismissedAt\n };\n }\n return trackedErrors;\n};\n\n/**\n * Create a record for when the error was most recently dismissed for tracking dismissed errors.\n *\n * @private\n */\nexport const trackErrorAsDismissed = (errorType: ErrorType, trackedErrors: TrackedErrors): TrackedErrors => {\n const now = new Date(Date.now());\n const existingError = trackedErrors[errorType];\n return {\n ...trackedErrors,\n [errorType]: {\n ...(existingError || {}),\n lastDismissedAt: now\n }\n };\n};"]}
1
+ {"version":3,"file":"TrackErrors.js","sourceRoot":"","sources":["../../../../../../../../react-composites/src/composites/CallComposite/utils/TrackErrors.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,mBAAiH,EACjH,oBAA0C,EACoD,EAAE;IAChG,MAAM,qBAAqB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC,kBAAkB,EAAE,EAAE;QAC9E,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC1E,OAAO,CACL,CAAC,mBAAmB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MIT License.\n\nimport { ActiveErrorMessage, ErrorType } from '@internal/react-components';\nimport { TrackedNotifications } from '../types/ErrorTracking';\n/* @conditional-compile-remove(notifications) */\nimport { NotificationType, ActiveNotification } from '@internal/react-components';\n\n/**\n * Take the set of active notifications, and filter to only those that are newer than previously dismissed notifications or have never been dismissed.\n *\n * @private\n */\nexport const filterLatestNotifications = (\n activeNotifications: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[],\n trackedNotifications: TrackedNotifications\n): ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[] => {\n const filteredNotifications = activeNotifications.filter((activeNotification) => {\n const trackedNotification = trackedNotifications[activeNotification.type];\n return (\n !trackedNotification ||\n !trackedNotification.lastDismissedAt ||\n trackedNotification.lastDismissedAt < trackedNotification.mostRecentlyActive\n );\n });\n return filteredNotifications as\n | ActiveErrorMessage[]\n | /* @conditional-compile-remove(notifications) */ ActiveNotification[];\n};\n\n/**\n * Maintain a record of the most recently active notification for each notification type.\n *\n * @private\n */\nexport const updateTrackedNotificationsWithActiveNotifications = (\n existingTrackedNotifications: TrackedNotifications,\n activeNotifications: ActiveErrorMessage[] | /* @conditional-compile-remove(notifications) */ ActiveNotification[]\n): TrackedNotifications => {\n const trackedNotifications: TrackedNotifications = {};\n\n // Only care about active notifications. If notifications are no longer active we do not track that they have been previously dismissed.\n for (const activeNotification of activeNotifications) {\n const existingTrackedNotification = existingTrackedNotifications[activeNotification.type];\n trackedNotifications[activeNotification.type] = {\n mostRecentlyActive:\n activeNotification.timestamp ?? existingTrackedNotification?.mostRecentlyActive ?? new Date(Date.now()),\n lastDismissedAt: existingTrackedNotification?.lastDismissedAt\n };\n }\n\n return trackedNotifications;\n};\n\n/**\n * Create a record for when the notification was most recently dismissed for tracking dismissed notifications.\n *\n * @private\n */\nexport const trackNotificationAsDismissed = (\n notificationType: ErrorType | /* @conditional-compile-remove(notifications) */ NotificationType,\n trackedNotifications: TrackedNotifications\n): TrackedNotifications => {\n const now = new Date(Date.now());\n const existingNotification = trackedNotifications[notificationType];\n\n return {\n ...trackedNotifications,\n [notificationType]: {\n ...(existingNotification || {}),\n lastDismissedAt: now\n }\n };\n};\n"]}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CallAdapterState, CallCompositePage, StartCallIdentifier } from '../adapter/CallAdapter';
2
3
  import { CallControlOptions } from '../types/CallControlOptions';
3
4
  import { CallState, RemoteParticipantState } from "../../../../../calling-stateful-client/src";
@@ -9,6 +10,7 @@ import { VideoDeviceInfo } from '@azure/communication-calling';
9
10
  import { VideoEffectProcessor } from '@azure/communication-calling';
10
11
  import { CompositeLocale } from '../../localization';
11
12
  import { CallCompositeIcons } from '../../common/icons';
13
+ import { ActiveNotification } from "../../../../../react-components/src";
12
14
  /** @private */
13
15
  export declare const ROOM_NOT_FOUND_SUB_CODE = 5732;
14
16
  /** @private */
@@ -49,7 +51,7 @@ export declare const getEndedCallPageProps: (locale: CompositeLocale, endedCall?
49
51
  /**
50
52
  * type definition for conditional-compilation
51
53
  */
52
- type GetCallCompositePageFunction = ((call: CallState | undefined, previousCall: CallState | undefined) => CallCompositePage) & ((call: CallState | undefined, previousCall: CallState | undefined, transferCall?: CallState, /* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserInfo?: {
54
+ type GetCallCompositePageFunction = ((call: CallState | undefined, previousCall: CallState | undefined) => CallCompositePage) & ((call: CallState | undefined, previousCall: CallState | undefined, transferCall?: CallState, unsupportedBrowserInfo?: {
53
55
  environmentInfo?: EnvironmentInfo;
54
56
  unsupportedBrowserVersionOptedIn?: boolean;
55
57
  }) => CallCompositePage);
@@ -124,5 +126,50 @@ export declare const getSelectedCameraFromAdapterState: (state: CallAdapterState
124
126
  * @private
125
127
  */
126
128
  export declare const getLocatorOrTargetCallees: (locatorOrTargetCallees: CallAdapterLocator | StartCallIdentifier[]) => locatorOrTargetCallees is StartCallIdentifier[];
129
+ /**
130
+ * @private
131
+ */
132
+ export type ComplianceState = 'on' | 'off' | 'stopped';
133
+ /**
134
+ * Return different conditions based on the current and previous state of recording and transcribing
135
+ *
136
+ * @param callRecordState - The current call record state: on, off, stopped
137
+ * @param callTranscribeState - The current call transcribe state: on, off, stopped
138
+ *
139
+ * @remarks - The stopped state means: previously on but currently off
140
+ *
141
+ * @private
142
+ */
143
+ export declare const computeVariant: (callRecordState: ComplianceState, callTranscribeState: ComplianceState) => ComplianceNotificationVariant;
144
+ /**
145
+ * @private
146
+ */
147
+ export type ComplianceNotificationVariant = 'noState' | 'recordingStarted' | 'transcriptionStarted' | 'recordingStopped' | 'transcriptionStopped' | 'recordingAndTranscriptionStarted' | 'recordingAndTranscriptionStopped' | 'recordingStoppedStillTranscribing' | 'transcriptionStoppedStillRecording';
148
+ /**
149
+ * @private
150
+ */
151
+ export type CachedComplianceNotificationProps = {
152
+ latestBooleanState: {
153
+ callTranscribeState?: boolean;
154
+ callRecordState?: boolean;
155
+ };
156
+ latestStringState: {
157
+ callTranscribeState: ComplianceState;
158
+ callRecordState: ComplianceState;
159
+ };
160
+ lastUpdated: number;
161
+ };
162
+ /**
163
+ * @private
164
+ */
165
+ export declare function determineStates(previous: ComplianceState, current: boolean | undefined): ComplianceState;
166
+ /**
167
+ * Compute compliance notification based on latest compliance state and cached props.
168
+ * @private
169
+ */
170
+ export declare function computeComplianceNotification(complianceProps: {
171
+ callTranscribeState: boolean;
172
+ callRecordState: boolean;
173
+ }, cachedProps: React.MutableRefObject<CachedComplianceNotificationProps>): ActiveNotification | undefined;
127
174
  export {};
128
175
  //# sourceMappingURL=Utils.d.ts.map