@azure/communication-react 1.7.1-alpha-202309010013 → 1.8.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (846) hide show
  1. package/dist/communication-react.d.ts +15 -270
  2. package/dist/dist-cjs/communication-react/index.js +3922 -5211
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/identifier.js +1 -4
  11. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  13. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  14. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  19. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +0 -5
  21. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -5
  22. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +9 -49
  24. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  25. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +5 -12
  26. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  27. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +55 -20
  28. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  29. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +41 -35
  30. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +2 -2
  32. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +1 -1
  34. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +2 -4
  35. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +6 -2
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  39. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  40. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  42. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  43. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +11 -30
  44. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  46. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  47. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +3 -6
  48. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  50. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  52. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +6 -9
  53. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  54. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +1 -3
  55. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +13 -30
  57. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +7 -35
  59. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  60. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  61. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -1
  62. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  63. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +75 -65
  64. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  65. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +0 -20
  66. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  67. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -3
  68. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +9 -26
  69. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  70. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +8 -7
  71. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  72. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +85 -74
  73. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  75. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  76. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -1
  77. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +3 -7
  78. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  80. package/dist/dist-esm/calling-stateful-client/src/Converter.js +10 -5
  81. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  82. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +57 -51
  83. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  84. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +16 -14
  85. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  86. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  87. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +15 -3
  88. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  89. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +1 -1
  90. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +3 -1
  92. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +1 -1
  93. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  94. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js.map +1 -1
  95. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  97. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +67 -65
  98. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +31 -33
  100. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  101. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +11 -8
  102. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -1
  103. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +1 -1
  104. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +8 -7
  106. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  108. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  109. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -3
  110. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  111. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js +7 -6
  112. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  113. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -1
  114. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  115. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  116. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -4
  117. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  118. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  119. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  120. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +14 -13
  121. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  122. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -1
  123. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +10 -3
  124. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  125. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  126. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  127. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  128. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  129. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +15 -33
  130. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  131. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  132. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  133. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  134. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  135. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +7 -3
  136. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  137. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +1 -3
  138. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  139. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  140. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -10
  141. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  142. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  143. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +9 -5
  144. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  145. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  146. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +10 -7
  147. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  148. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  149. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +67 -57
  150. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  151. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +128 -114
  152. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  153. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +1 -3
  154. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  155. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  156. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  157. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  158. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  159. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  160. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  161. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  162. package/dist/dist-esm/communication-react/src/index.d.ts +0 -2
  163. package/dist/dist-esm/communication-react/src/index.js +0 -2
  164. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  165. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  166. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js +6 -3
  167. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js.map +1 -1
  168. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js.map +1 -1
  169. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
  170. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js +10 -4
  171. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js +1 -1
  173. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js +1 -1
  175. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js.map +1 -1
  176. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  177. package/dist/dist-esm/react-components/src/components/CameraButton.js +19 -8
  178. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  179. package/dist/dist-esm/react-components/src/components/Caption.js +2 -2
  180. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +9 -10
  182. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  183. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +20 -42
  184. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
  185. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +8 -7
  186. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  187. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +17 -36
  188. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  189. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +0 -5
  190. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +7 -18
  191. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +35 -27
  193. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +0 -5
  195. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +35 -82
  196. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  197. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -1
  198. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +28 -50
  199. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  200. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  202. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  203. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +4 -7
  204. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +2 -2
  206. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  207. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  210. package/dist/dist-esm/react-components/src/components/ControlBar.js +14 -10
  211. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  212. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +4 -14
  213. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  214. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +14 -3
  215. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  216. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +10 -4
  217. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -1
  218. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +31 -14
  219. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -1
  220. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +8 -5
  221. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -1
  222. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +6 -24
  223. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -1
  224. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +20 -12
  225. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +1 -1
  226. package/dist/dist-esm/react-components/src/components/DevicesButton.js +27 -19
  227. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +44 -36
  229. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  230. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +4 -4
  231. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  232. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +6 -2
  233. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +6 -6
  235. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +23 -11
  237. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +4 -6
  239. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  240. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/components/EndCallButton.js +7 -3
  242. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/components/ErrorBar.js +5 -9
  244. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  245. package/dist/dist-esm/react-components/src/components/FileCard.js +3 -2
  246. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +1 -1
  248. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +16 -17
  250. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  251. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +7 -8
  252. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/components/GridLayout.js +37 -37
  254. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  255. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
  256. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  257. package/dist/dist-esm/react-components/src/components/HoldButton.js +1 -1
  258. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
  259. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +9 -7
  260. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  261. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +15 -8
  262. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  263. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +5 -3
  264. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  265. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +10 -29
  266. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  267. package/dist/dist-esm/react-components/src/components/MentionPopover.js +11 -19
  268. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
  269. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +36 -23
  270. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  271. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +1 -6
  272. package/dist/dist-esm/react-components/src/components/MessageThread.js +91 -165
  273. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  274. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +14 -17
  275. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  276. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +101 -94
  277. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  278. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +18 -15
  279. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  280. package/dist/dist-esm/react-components/src/components/ParticipantList.js +31 -44
  281. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +32 -46
  283. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  284. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  285. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  286. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  287. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  288. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +12 -6
  289. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -1
  290. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +15 -31
  291. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  292. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +2 -2
  293. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  294. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +2 -2
  295. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  296. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +14 -6
  297. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  298. package/dist/dist-esm/react-components/src/components/SendBox.js +19 -17
  299. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  300. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +2 -2
  301. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  302. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  303. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +4 -2
  304. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/StreamMedia.js +3 -3
  306. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/SystemMessage.js +4 -2
  308. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  309. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +32 -70
  310. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  311. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +46 -52
  312. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +1 -1
  313. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +10 -10
  314. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  315. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +6 -9
  316. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +1 -1
  318. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  319. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +1 -1
  320. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  321. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +8 -4
  322. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  323. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +1 -1
  324. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +34 -19
  326. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  327. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js +1 -3
  328. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js.map +1 -1
  329. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +13 -9
  330. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  331. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +15 -13
  332. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  333. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +3 -6
  334. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -1
  335. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +16 -40
  336. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  337. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +10 -10
  338. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +25 -66
  340. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  341. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  342. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  343. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  344. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +5 -16
  345. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  346. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +6 -8
  347. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  348. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +4 -2
  349. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
  350. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js +6 -1
  351. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js.map +1 -1
  352. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +32 -7
  353. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  354. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +11 -2
  355. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -1
  356. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/Layout.styles.js.map +1 -1
  357. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  358. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  359. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -1
  360. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +3 -1
  361. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
  362. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +11 -10
  363. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
  364. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +28 -22
  365. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  366. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +5 -10
  367. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  368. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +32 -19
  369. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js.map +1 -1
  371. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.d.ts +0 -2
  372. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +25 -55
  373. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  374. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +2 -2
  375. package/dist/dist-esm/react-components/src/components/VideoGallery.js +37 -127
  376. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  377. package/dist/dist-esm/react-components/src/components/VideoTile.js +55 -34
  378. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  379. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +2 -2
  380. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/components/index.d.ts +0 -3
  382. package/dist/dist-esm/react-components/src/components/index.js +0 -2
  383. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  384. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -1
  385. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  386. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -1
  387. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +12 -3
  388. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  389. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  390. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  391. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  392. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js +3 -1
  393. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  394. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  395. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  396. package/dist/dist-esm/react-components/src/components/styles/IconButton.styles.js.map +1 -1
  397. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +4 -1
  398. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  399. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +5 -0
  400. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +7 -4
  401. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +1 -1
  402. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  403. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +8 -2
  404. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  405. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +1 -0
  406. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  407. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  408. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +10 -2
  409. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  410. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +1 -1
  411. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +3 -0
  412. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  413. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  414. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +1 -0
  415. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  416. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  417. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
  418. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js +1 -0
  419. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js.map +1 -1
  420. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +17 -3
  421. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  422. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  423. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  424. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  425. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  426. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  427. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +7 -4
  428. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  429. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  430. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -1
  431. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js.map +1 -1
  432. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  433. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  434. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +1 -10
  435. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  436. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +3 -1
  437. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  438. package/dist/dist-esm/react-components/src/components/utils.js +10 -13
  439. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  440. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +6 -8
  441. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  442. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  443. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  444. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  445. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  446. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -3
  447. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  448. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  449. package/dist/dist-esm/react-components/src/localization/locales/index.js +63 -21
  450. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  451. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +6 -3
  452. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  453. package/dist/dist-esm/react-components/src/theming/icons.js +26 -20
  454. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  455. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -1
  456. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  457. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  458. package/dist/dist-esm/react-components/src/theming/themes.d.ts +3 -22
  459. package/dist/dist-esm/react-components/src/theming/themes.js +0 -16
  460. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  461. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -1
  462. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  463. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  464. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js.map +1 -1
  465. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  466. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  467. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  468. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  469. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  470. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  471. package/dist/dist-esm/react-composites/src/Logger.js.map +1 -1
  472. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -10
  473. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +38 -58
  474. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  475. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -29
  476. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  477. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -6
  478. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +68 -137
  479. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  480. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +0 -15
  481. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -9
  482. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  483. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  484. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  485. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +3 -1
  486. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
  487. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  488. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +1 -1
  489. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +5 -11
  490. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  491. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -1
  492. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  493. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +0 -6
  494. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +28 -70
  495. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  496. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +54 -24
  497. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  498. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +141 -133
  499. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  500. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +7 -1
  501. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  502. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +1 -1
  503. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  504. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +7 -1
  505. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  506. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +4 -5
  507. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  508. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +4 -4
  509. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
  510. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +2 -2
  511. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  512. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +23 -34
  513. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  514. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +23 -34
  515. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  516. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +34 -25
  517. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  518. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -3
  519. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +35 -57
  520. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  521. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  522. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  523. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +2 -2
  524. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  525. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +11 -29
  526. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  527. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js.map +1 -1
  528. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +7 -3
  529. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  530. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +8 -13
  531. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  532. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  533. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  534. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +3 -14
  535. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  536. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +2 -6
  537. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +4 -7
  538. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -1
  539. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +11 -19
  540. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  541. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +2 -5
  542. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  543. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +7 -19
  544. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  545. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +2 -5
  546. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  547. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +1 -1
  548. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -1
  549. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js +1 -1
  550. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js.map +1 -1
  551. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -3
  552. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  553. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +8 -8
  554. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  555. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -10
  556. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  557. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  558. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  559. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  560. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -2
  561. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  562. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +0 -4
  563. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +5 -28
  564. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  565. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -2
  566. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +28 -61
  567. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  568. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -2
  569. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +7 -13
  570. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  571. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +0 -2
  572. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +7 -15
  573. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  574. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +3 -3
  575. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  576. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +23 -23
  577. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  578. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +3 -3
  579. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
  580. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  581. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  582. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  583. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +1 -2
  584. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +1 -1
  585. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -5
  586. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +1 -9
  587. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  588. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  589. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  590. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  591. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  592. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +1 -1
  593. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.js.map +1 -1
  594. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  595. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  596. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  597. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +2 -2
  598. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +5 -7
  599. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  600. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +4 -4
  601. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -1
  602. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  603. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +10 -10
  604. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +1 -7
  605. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -4
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +5 -5
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +4 -4
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  617. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  618. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +5 -5
  619. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  620. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  621. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  622. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +6 -2
  623. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  624. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +7 -2
  625. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  626. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  627. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  628. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +4 -1
  629. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  630. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -1
  631. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +4 -1
  632. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  633. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  634. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +1 -0
  635. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +1 -0
  639. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  640. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +24 -6
  641. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +1 -1
  642. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  643. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  644. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  645. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +11 -9
  646. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  647. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +2 -2
  648. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  649. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +2 -2
  650. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +22 -35
  651. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  652. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  653. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +0 -10
  654. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +24 -67
  655. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  656. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js +1 -1
  657. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js.map +1 -1
  658. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +7 -9
  659. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  660. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js +6 -3
  661. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js.map +1 -1
  662. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -1
  663. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  664. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +7 -42
  665. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  666. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  667. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  668. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  669. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +1 -1
  670. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  671. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  672. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  673. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -1
  674. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  675. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  676. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  677. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +2 -2
  678. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  679. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +5 -3
  680. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  681. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +21 -106
  682. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  683. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +1 -1
  684. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +1 -1
  685. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +5 -3
  686. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +1 -1
  687. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  688. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -2
  689. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +38 -39
  690. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  691. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +20 -15
  692. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  693. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -2
  694. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  695. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  696. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
  697. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +6 -11
  698. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  699. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js.map +1 -1
  700. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  701. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +5 -3
  702. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  703. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +1 -3
  704. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  705. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  706. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +1 -1
  707. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +1 -1
  708. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  709. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
  710. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +6 -6
  711. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +5 -3
  712. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +1 -1
  713. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +6 -2
  714. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  715. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +9 -9
  716. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  717. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +25 -23
  718. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
  719. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +1 -1
  720. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +3 -8
  721. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  722. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +14 -5
  723. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  724. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +23 -9
  725. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
  726. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
  727. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +8 -6
  728. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
  729. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +16 -12
  730. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +1 -1
  732. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -1
  733. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +5 -1
  734. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  735. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +0 -4
  736. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +35 -52
  737. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  738. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +25 -32
  739. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  740. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -4
  741. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +47 -158
  742. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  743. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +1 -1
  744. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -1
  745. package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  746. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionSettingsDrawer.js +6 -4
  747. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionSettingsDrawer.js.map +1 -1
  748. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +87 -45
  749. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  750. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -1
  751. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/common/Drawer/captionSettingsDrawer.styles.js.map +1 -1
  753. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +1 -1
  754. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -1
  755. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +6 -4
  756. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  757. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  758. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  759. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +14 -11
  760. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  761. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +8 -19
  762. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  763. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +15 -7
  764. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +1 -1
  765. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +1 -1
  766. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +15 -7
  767. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  768. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +8 -10
  769. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  770. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +11 -16
  771. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  772. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  773. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
  774. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +0 -25
  775. package/dist/dist-esm/react-composites/src/composites/common/icons.js +4 -26
  776. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  777. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -1
  778. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -1
  779. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -1
  780. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  781. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +16 -5
  782. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  783. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +51 -12
  784. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  785. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +29 -6
  786. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  787. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +22 -4
  788. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  789. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  790. package/dist/dist-esm/react-composites/src/composites/common/utils.js +12 -17
  791. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  792. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  793. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  794. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  795. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  796. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +43 -4
  797. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +43 -4
  798. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +47 -8
  799. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +43 -4
  800. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +1 -15
  801. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +44 -5
  802. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +43 -4
  803. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +43 -4
  804. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +43 -4
  805. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  806. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +43 -4
  807. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +43 -4
  808. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +43 -4
  809. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +43 -4
  810. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +43 -4
  811. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +45 -6
  812. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +43 -4
  813. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +43 -4
  814. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +43 -4
  815. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +43 -4
  816. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +43 -4
  817. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +43 -4
  818. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  819. package/package.json +8 -8
  820. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.d.ts +0 -16
  821. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +0 -24
  822. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +0 -1
  823. package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +0 -71
  824. package/dist/dist-esm/react-components/src/components/ImageGallery.js +0 -65
  825. package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +0 -1
  826. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.d.ts +0 -21
  827. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js +0 -18
  828. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js.map +0 -1
  829. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.d.ts +0 -28
  830. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +0 -145
  831. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +0 -1
  832. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.d.ts +0 -72
  833. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js +0 -213
  834. package/dist/dist-esm/react-components/src/components/styles/ImageGallery.style.js.map +0 -1
  835. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.d.ts +0 -88
  836. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js +0 -86
  837. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js.map +0 -1
  838. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.d.ts +0 -12
  839. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js +0 -14
  840. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js.map +0 -1
  841. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CapabilityChangedNotificationTracking.d.ts +0 -9
  842. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CapabilityChangedNotificationTracking.js +0 -4
  843. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CapabilityChangedNotificationTracking.js.map +0 -1
  844. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.d.ts +0 -33
  845. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js +0 -99
  846. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAc,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAG7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAU,EAAE;IAC5E,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;AAWvF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,eAAiC,EAAE,SAA6B,EAAoB,EAAE;;IACjH,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE;QACnC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,EAAE;YACjC,gEAAgE;YAChE,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;YACxB,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC,SAAS,CAAC;YACxC,OAAO,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SACpC;KACF;IAED,MAAM,kBAAkB,GAAG,MAAA,SAAS,CA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AM,CAAC,CAAC;QACxB,IAAI,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE;YACrC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtB,UAAU,GAAG,EAAE,CAAC;SACjB;KACF;IACD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QACzB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACvB;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE7C;;GAEG;AACH,MAAM,0BAA0B,GAAG,GAAG,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAmC,EAAW,EAAE;AACpG,oIAAoI;AACpI,CAAC,CAAC,WAAW,CAAC,WAAW;IACzB,CAAC,CAAC,WAAW,CAAC,OAAO,KAAK,0BAA0B;IACpD,CAAC,CAAC,WAAW,CAAC,KAAK,KAAK,0BAA0B,CAAC;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAI,KAAe,EAAiB,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { IIconProps, MessageBarType } from '@fluentui/react';\nimport { ActiveErrorMessage, ErrorType } from './ErrorBar';\n\n/**\n * @private\n *\n * @param fileName\n * @param length\n * @returns string\n */\nexport const truncatedFileName = (fileName: string, length: number): string => {\n return fileName.substring(0, length).trimEnd() + (fileName.length > length ? '... ' : '');\n};\n\n/**\n * @private\n *\n * @param fileName\n * @returns string\n */\nexport const extension = (fileName: string): string => fileName.split('.').pop() || '';\n\n/**\n * @private\n */\nexport interface DismissedError {\n type: ErrorType;\n dismissedAt: Date;\n activeSince?: Date;\n}\n\n/**\n * @private\n * @param dismissedErrors\n * @param toDismiss\n * @returns DismissedError[]\n * Always returns a new Array so that the state variable is updated, trigerring a render.\n */\nexport const dismissError = (dismissedErrors: DismissedError[], toDismiss: ActiveErrorMessage): DismissedError[] => {\n const now = new Date(Date.now());\n for (const error of dismissedErrors) {\n if (error.type === toDismiss.type) {\n // Bump the timestamp for latest dismissal of this error to now.\n error.dismissedAt = now;\n error.activeSince = toDismiss.timestamp;\n return Array.from(dismissedErrors);\n }\n }\n\n const toDismissTimestamp = toDismiss.timestamp ?? now;\n\n // Record that this error was dismissed for the first time right now.\n return [\n ...dismissedErrors,\n {\n type: toDismiss.type,\n // the error time could be sometimes later than the button click time, which cause the dismiss not working\n // so we set the dismiss time to the later one\n dismissedAt: now > toDismissTimestamp ? now : toDismissTimestamp,\n activeSince: toDismiss.timestamp\n }\n ];\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns DismissedError[]\n * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.\n */\nexport const dropDismissalsForInactiveErrors = (\n activeErrorMessages: ActiveErrorMessage[],\n dismissedErrors: DismissedError[]\n): DismissedError[] => {\n const active = new Map();\n for (const message of activeErrorMessages) {\n active.set(message.type, message);\n }\n\n // For an error such that:\n // * It was previously active, and dismissed.\n // * It did not have a timestamp associated with it.\n // * It is no longer active.\n //\n // We remove it from dismissals. When it becomes active again next time, it will be shown again on the UI.\n const shouldDeleteDismissal = (dismissed: DismissedError): boolean =>\n dismissed.activeSince === undefined && active.get(dismissed.type) === undefined;\n\n if (dismissedErrors.some((dismissed) => shouldDeleteDismissal(dismissed))) {\n return dismissedErrors.filter((dismissed) => !shouldDeleteDismissal(dismissed));\n }\n return dismissedErrors;\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns ActiveErrorMessage[]\n */\nexport const errorsToShow = (\n activeErrorMessages: ActiveErrorMessage[],\n dismissedErrors: DismissedError[],\n mountTimestamp?: Date\n): ActiveErrorMessage[] => {\n const dismissed: Map<ErrorType, DismissedError> = new Map();\n for (const error of dismissedErrors) {\n dismissed.set(error.type, error);\n }\n\n return activeErrorMessages.filter((error) => {\n if (mountTimestamp && error.timestamp && mountTimestamp > error.timestamp) {\n // Error has a timestamp and it is older than when the component was mounted.\n return false;\n }\n\n const dismissal = dismissed.get(error.type);\n if (!dismissal) {\n // This error was never dismissed.\n return true;\n }\n if (!error.timestamp) {\n // No timestamp associated with the error. In this case, the existence of a dismissal is enough to suppress the error.\n return false;\n }\n // Error has an associated timestamp, so compare with last dismissal.\n return error.timestamp > dismissal.dismissedAt;\n });\n};\n\n/**\n * @private\n * @param errorType\n * @returns MessageBarType\n */\nexport const messageBarType = (errorType: ErrorType): MessageBarType => {\n switch (errorType) {\n case 'callNetworkQualityLow':\n case 'callNoSpeakerFound':\n case 'callNoMicrophoneFound':\n case 'callMicrophoneAccessDenied':\n case 'callMicrophoneAccessDeniedSafari':\n case 'callMicrophoneMutedBySystem':\n case 'callMicrophoneUnmutedBySystem':\n case 'callMacOsMicrophoneAccessDenied':\n case 'callLocalVideoFreeze':\n case 'callCameraAccessDenied':\n case 'callCameraAccessDeniedSafari':\n case 'callCameraAlreadyInUse':\n case 'callVideoStoppedBySystem':\n case 'callVideoRecoveredBySystem':\n case 'callMacOsCameraAccessDenied':\n case 'callMacOsScreenShareAccessDenied':\n case 'startScreenShareGeneric':\n case 'cameraFrozenForRemoteParticipants':\n return MessageBarType.warning;\n default:\n return MessageBarType.error;\n }\n};\n\n/**\n * @private\n * @param errorType\n * @returns IIconProps | undefined\n */\nexport const messageBarIconProps = (errorType: ErrorType): IIconProps | undefined => {\n const iconName = customIconName[errorType];\n return iconName ? { iconName } : undefined;\n};\n\n/**\n * @private\n */\nexport const customIconName: Partial<{ [key in ErrorType]: string }> = {\n callNetworkQualityLow: 'ErrorBarCallNetworkQualityLow',\n callNoSpeakerFound: 'ErrorBarCallNoSpeakerFound',\n callNoMicrophoneFound: 'ErrorBarCallNoMicrophoneFound',\n callMicrophoneAccessDenied: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneAccessDeniedSafari: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneMutedBySystem: 'ErrorBarCallMicrophoneMutedBySystem',\n callMicrophoneUnmutedBySystem: 'ErrorBarCallMicrophoneUnmutedBySystem',\n callMacOsMicrophoneAccessDenied: 'ErrorBarCallMacOsMicrophoneAccessDenied',\n callLocalVideoFreeze: 'ErrorBarCallLocalVideoFreeze',\n callCameraAccessDenied: 'ErrorBarCallCameraAccessDenied',\n callCameraAccessDeniedSafari: 'ErrorBarCallCameraAccessDenied',\n callCameraAlreadyInUse: 'ErrorBarCallCameraAlreadyInUse',\n callVideoStoppedBySystem: 'ErrorBarCallVideoStoppedBySystem',\n callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',\n callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied'\n};\n\n/**\n * @private\n */\nexport const isValidString = (string: string | undefined): string is string => {\n return !!string && string.length > 0;\n};\n\n/**\n * Chunk an array into rows of a given size.\n * @private\n */\nexport function chunk<T>(options: T[], itemsPerRow: number): T[][] {\n const rows: T[][] = [];\n let currentRow: T[] = [];\n for (const option of options) {\n currentRow.push(option);\n if (currentRow.length === itemsPerRow) {\n rows.push(currentRow);\n currentRow = [];\n }\n }\n if (currentRow.length > 0) {\n rows.push(currentRow);\n }\n return rows;\n}\n\n/**\n * @private\n */\nexport const defaultSpokenLanguage = 'en-us';\n\n/**\n * @private\n */\nconst SAFARI_COMPOSITION_KEYCODE = 229;\n/**\n * Determine if the press of the enter key is from a composition session or not (Safari only)\n *\n * @private\n */\nexport const isEnterKeyEventFromCompositionSession = (e: React.KeyboardEvent<HTMLElement>): boolean =>\n // Uses KeyCode 229 and which code 229 to determine if the press of the enter key is from a composition session or not (Safari only)\n e.nativeEvent.isComposing ||\n e.nativeEvent.keyCode === SAFARI_COMPOSITION_KEYCODE ||\n e.nativeEvent.which === SAFARI_COMPOSITION_KEYCODE;\n\n/**\n * @private\n */\nexport const nullToUndefined = <T>(value: T | null): T | undefined => (value === null ? undefined : value);\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/utils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAc,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAG7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAU,EAAE;IAC5E,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;AAWvF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,eAAiC,EAAE,SAA6B,EAAoB,EAAE;;IACjH,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACjC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE;QACnC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,EAAE;YACjC,gEAAgE;YAChE,KAAK,CAAC,WAAW,GAAG,GAAG,CAAC;YACxB,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC,SAAS,CAAC;YACxC,OAAO,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SACpC;KACF;IACD,MAAM,kBAAkB,GAAG,MAAA,SAAS,CAAC,SAAS,mCAAI,GAAG,CAAC;IAEtD,qEAAqE;IACrE,OA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YACrC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACtB,UAAU,GAAG,EAAE,CAAC;SACjB;KACF;IACD,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;QACzB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACvB;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE7C;;GAEG;AACH,MAAM,0BAA0B,GAAG,GAAG,CAAC;AACvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAmC,EAAW,EAAE;AACtG,oIAAoI;AACpI,CAAC,CAAC,WAAW,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,CAAC,OAAO,KAAK,0BAA0B,IAAI,CAAC,CAAC,WAAW,CAAC,KAAK,KAAK,0BAA0B,CAAC;AAExI;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAK,KAAe,EAAiB,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { IIconProps, MessageBarType } from '@fluentui/react';\nimport { ActiveErrorMessage, ErrorType } from './ErrorBar';\n\n/**\n * @private\n *\n * @param fileName\n * @param length\n * @returns string\n */\nexport const truncatedFileName = (fileName: string, length: number): string => {\n return fileName.substring(0, length).trimEnd() + (fileName.length > length ? '... ' : '');\n};\n\n/**\n * @private\n *\n * @param fileName\n * @returns string\n */\nexport const extension = (fileName: string): string => fileName.split('.').pop() || '';\n\n/**\n * @private\n */\nexport interface DismissedError {\n type: ErrorType;\n dismissedAt: Date;\n activeSince?: Date;\n}\n\n/**\n * @private\n * @param dismissedErrors\n * @param toDismiss\n * @returns DismissedError[]\n * Always returns a new Array so that the state variable is updated, trigerring a render.\n */\nexport const dismissError = (dismissedErrors: DismissedError[], toDismiss: ActiveErrorMessage): DismissedError[] => {\n const now = new Date(Date.now());\n for (const error of dismissedErrors) {\n if (error.type === toDismiss.type) {\n // Bump the timestamp for latest dismissal of this error to now.\n error.dismissedAt = now;\n error.activeSince = toDismiss.timestamp;\n return Array.from(dismissedErrors);\n }\n }\n const toDismissTimestamp = toDismiss.timestamp ?? now;\n\n // Record that this error was dismissed for the first time right now.\n return [...dismissedErrors, {\n type: toDismiss.type,\n // the error time could be sometimes later than the button click time, which cause the dismiss not working\n // so we set the dismiss time to the later one\n dismissedAt: now > toDismissTimestamp ? now : toDismissTimestamp,\n activeSince: toDismiss.timestamp\n }];\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns DismissedError[]\n * Returns a new Array if and only if contents change, to avoid re-rendering when nothing was dropped.\n */\nexport const dropDismissalsForInactiveErrors = (activeErrorMessages: ActiveErrorMessage[], dismissedErrors: DismissedError[]): DismissedError[] => {\n const active = new Map();\n for (const message of activeErrorMessages) {\n active.set(message.type, message);\n }\n\n // For an error such that:\n // * It was previously active, and dismissed.\n // * It did not have a timestamp associated with it.\n // * It is no longer active.\n //\n // We remove it from dismissals. When it becomes active again next time, it will be shown again on the UI.\n const shouldDeleteDismissal = (dismissed: DismissedError): boolean => dismissed.activeSince === undefined && active.get(dismissed.type) === undefined;\n if (dismissedErrors.some(dismissed => shouldDeleteDismissal(dismissed))) {\n return dismissedErrors.filter(dismissed => !shouldDeleteDismissal(dismissed));\n }\n return dismissedErrors;\n};\n\n/**\n * @private\n * @param activeErrorMessages\n * @param dismissedErrors\n * @returns ActiveErrorMessage[]\n */\nexport const errorsToShow = (activeErrorMessages: ActiveErrorMessage[], dismissedErrors: DismissedError[], mountTimestamp?: Date): ActiveErrorMessage[] => {\n const dismissed: Map<ErrorType, DismissedError> = new Map();\n for (const error of dismissedErrors) {\n dismissed.set(error.type, error);\n }\n return activeErrorMessages.filter(error => {\n if (mountTimestamp && error.timestamp && mountTimestamp > error.timestamp) {\n // Error has a timestamp and it is older than when the component was mounted.\n return false;\n }\n const dismissal = dismissed.get(error.type);\n if (!dismissal) {\n // This error was never dismissed.\n return true;\n }\n if (!error.timestamp) {\n // No timestamp associated with the error. In this case, the existence of a dismissal is enough to suppress the error.\n return false;\n }\n // Error has an associated timestamp, so compare with last dismissal.\n return error.timestamp > dismissal.dismissedAt;\n });\n};\n\n/**\n * @private\n * @param errorType\n * @returns MessageBarType\n */\nexport const messageBarType = (errorType: ErrorType): MessageBarType => {\n switch (errorType) {\n case 'callNetworkQualityLow':\n case 'callNoSpeakerFound':\n case 'callNoMicrophoneFound':\n case 'callMicrophoneAccessDenied':\n case 'callMicrophoneAccessDeniedSafari':\n case 'callMicrophoneMutedBySystem':\n case 'callMicrophoneUnmutedBySystem':\n case 'callMacOsMicrophoneAccessDenied':\n case 'callLocalVideoFreeze':\n case 'callCameraAccessDenied':\n case 'callCameraAccessDeniedSafari':\n case 'callCameraAlreadyInUse':\n case 'callVideoStoppedBySystem':\n case 'callVideoRecoveredBySystem':\n case 'callMacOsCameraAccessDenied':\n case 'callMacOsScreenShareAccessDenied':\n case 'startScreenShareGeneric':\n case 'cameraFrozenForRemoteParticipants':\n return MessageBarType.warning;\n default:\n return MessageBarType.error;\n }\n};\n\n/**\n * @private\n * @param errorType\n * @returns IIconProps | undefined\n */\nexport const messageBarIconProps = (errorType: ErrorType): IIconProps | undefined => {\n const iconName = customIconName[errorType];\n return iconName ? {\n iconName\n } : undefined;\n};\n\n/**\n * @private\n */\nexport const customIconName: Partial<{ [key in ErrorType]: string }> = {\n callNetworkQualityLow: 'ErrorBarCallNetworkQualityLow',\n callNoSpeakerFound: 'ErrorBarCallNoSpeakerFound',\n callNoMicrophoneFound: 'ErrorBarCallNoMicrophoneFound',\n callMicrophoneAccessDenied: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneAccessDeniedSafari: 'ErrorBarCallMicrophoneAccessDenied',\n callMicrophoneMutedBySystem: 'ErrorBarCallMicrophoneMutedBySystem',\n callMicrophoneUnmutedBySystem: 'ErrorBarCallMicrophoneUnmutedBySystem',\n callMacOsMicrophoneAccessDenied: 'ErrorBarCallMacOsMicrophoneAccessDenied',\n callLocalVideoFreeze: 'ErrorBarCallLocalVideoFreeze',\n callCameraAccessDenied: 'ErrorBarCallCameraAccessDenied',\n callCameraAccessDeniedSafari: 'ErrorBarCallCameraAccessDenied',\n callCameraAlreadyInUse: 'ErrorBarCallCameraAlreadyInUse',\n callVideoStoppedBySystem: 'ErrorBarCallVideoStoppedBySystem',\n callVideoRecoveredBySystem: 'ErrorBarCallVideoRecoveredBySystem',\n callMacOsCameraAccessDenied: 'ErrorBarCallMacOsCameraAccessDenied'\n};\n\n/**\n * @private\n */\nexport const isValidString = (string: string | undefined): string is string => {\n return !!string && string.length > 0;\n};\n\n/**\n * Chunk an array into rows of a given size.\n * @private\n */\nexport function chunk<T>(options: T[], itemsPerRow: number): T[][] {\n const rows: T[][] = [];\n let currentRow: T[] = [];\n for (const option of options) {\n currentRow.push(option);\n if (currentRow.length === itemsPerRow) {\n rows.push(currentRow);\n currentRow = [];\n }\n }\n if (currentRow.length > 0) {\n rows.push(currentRow);\n }\n return rows;\n}\n\n/**\n * @private\n */\nexport const defaultSpokenLanguage = 'en-us';\n\n/**\n * @private\n */\nconst SAFARI_COMPOSITION_KEYCODE = 229;\n/**\n * Determine if the press of the enter key is from a composition session or not (Safari only)\n *\n * @private\n */\nexport const isEnterKeyEventFromCompositionSession = (e: React.KeyboardEvent<HTMLElement>): boolean =>\n// Uses KeyCode 229 and which code 229 to determine if the press of the enter key is from a composition session or not (Safari only)\ne.nativeEvent.isComposing || e.nativeEvent.keyCode === SAFARI_COMPOSITION_KEYCODE || e.nativeEvent.which === SAFARI_COMPOSITION_KEYCODE;\n\n/**\n * @private\n */\nexport const nullToUndefined = <T,>(value: T | null): T | undefined => value === null ? undefined : value;"]}
@@ -12,9 +12,9 @@ export const smartDominantSpeakerParticipants = (args) => {
12
12
  }
13
13
  const participantsMap = participantsById(participants);
14
14
  // Only use the Max allowed dominant speakers that exist in participants
15
- const dominantSpeakerIds = dominantSpeakers.filter((id) => !!participantsMap[id]).slice(0, maxDominantSpeakers);
16
- const newVisibleParticipantIds = lastVisibleParticipants.map((p) => p.userId).slice(0, maxDominantSpeakers);
17
- const newDominantSpeakerIds = dominantSpeakerIds.filter((id) => !newVisibleParticipantIds.includes(id));
15
+ const dominantSpeakerIds = dominantSpeakers.filter(id => !!participantsMap[id]).slice(0, maxDominantSpeakers);
16
+ const newVisibleParticipantIds = lastVisibleParticipants.map(p => p.userId).slice(0, maxDominantSpeakers);
17
+ const newDominantSpeakerIds = dominantSpeakerIds.filter(id => !newVisibleParticipantIds.includes(id));
18
18
  // Remove participants that are no longer dominant and replace them with new dominant speakers.
19
19
  for (let index = 0; index < maxDominantSpeakers; index++) {
20
20
  const newVisibleParticipantId = newVisibleParticipantIds[index];
@@ -26,11 +26,9 @@ export const smartDominantSpeakerParticipants = (args) => {
26
26
  newVisibleParticipantIds[index] = replacement;
27
27
  }
28
28
  }
29
- let newVisibleParticipants = newVisibleParticipantIds
30
- .map((participantId) => participantsMap[participantId])
31
- .filter((p) => p !== undefined);
29
+ let newVisibleParticipants = newVisibleParticipantIds.map(participantId => participantsMap[participantId]).filter(p => p !== undefined);
32
30
  const newVisibleParticipantIdsSet = new Set(newVisibleParticipantIds);
33
- const remainingParticipants = participants.filter((p) => !newVisibleParticipantIdsSet.has(p.userId));
31
+ const remainingParticipants = participants.filter(p => !newVisibleParticipantIdsSet.has(p.userId));
34
32
  newVisibleParticipants = newVisibleParticipants.concat(remainingParticipants);
35
33
  return newVisibleParticipants;
36
34
  };
@@ -40,7 +38,7 @@ export const smartDominantSpeakerParticipants = (args) => {
40
38
  */
41
39
  export const participantsById = (participants) => {
42
40
  const response = {};
43
- participants.forEach((p) => (response[p.userId] = p));
41
+ participants.forEach(p => response[p.userId] = p);
44
42
  return response;
45
43
  };
46
44
  //# sourceMappingURL=dominant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GAAG,qBAAqB,CAAC,KAAK,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,EAAE;gBAChB,MAAM;aACP;YACD,wBAAwB,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC;SAC/C;KACF;IAED,IAAI,sBAAsB,GAAG,wBAAwB;SAClD,GAAG,CAAC,CAAC,aAAa,EAAE,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACtD,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IAElC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACtE,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,2BAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAErG,sBAAsB,GAAG,sBAAsB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAE9E,OAAO,sBAAsB,CAAC;AAChC,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,YAA6C,EACK,EAAE;IACpD,MAAM,QAAQ,GAAqD,EAAE,CAAC;IACtE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACtD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { VideoGalleryRemoteParticipant } from '../types';\n\ntype SmartDominantSpeakerParticipantsArgs = {\n /**\n * Array containing all participants of a call. {@link @azure/communication-react#VideoGalleryRemoteParticipant}\n */\n participants: VideoGalleryRemoteParticipant[];\n /**\n * An array containing the userId of dominant speakers\n * in a call in the order of their dominance. 0th index is the most dominant, 1st is the second most etc\n */\n dominantSpeakers?: string[];\n /**\n * Array containing currently rendered (visible)\n * participants in the call. {@link @azure/communication-react#VideoGalleryRemoteParticipant}\n */\n lastVisibleParticipants?: VideoGalleryRemoteParticipant[];\n /**\n * Maximum number of dominant speaker positions to move participants in.\n */\n maxDominantSpeakers: number;\n};\n\n/**\n * Calculates the participants that should be rendered based on the list of dominant\n * speakers and currently rendered participants in a call.\n * @param args - SmartDominantSpeakerParticipantsArgs\n * @returns VideoGalleryRemoteParticipant[] {@link @azure/communication-react#VideoGalleryRemoteParticipant}\n */\nexport const smartDominantSpeakerParticipants = (\n args: SmartDominantSpeakerParticipantsArgs\n): VideoGalleryRemoteParticipant[] => {\n const { participants, dominantSpeakers = [], lastVisibleParticipants = [], maxDominantSpeakers } = args;\n\n // Don't apply any logic if total number of video streams is less than max dominant speakers.\n if (participants.length <= maxDominantSpeakers) {\n return participants;\n }\n\n const participantsMap = participantsById(participants);\n\n // Only use the Max allowed dominant speakers that exist in participants\n const dominantSpeakerIds = dominantSpeakers.filter((id) => !!participantsMap[id]).slice(0, maxDominantSpeakers);\n\n const newVisibleParticipantIds = lastVisibleParticipants.map((p) => p.userId).slice(0, maxDominantSpeakers);\n const newDominantSpeakerIds = dominantSpeakerIds.filter((id) => !newVisibleParticipantIds.includes(id));\n\n // Remove participants that are no longer dominant and replace them with new dominant speakers.\n for (let index = 0; index < maxDominantSpeakers; index++) {\n const newVisibleParticipantId = newVisibleParticipantIds[index];\n if (newVisibleParticipantId === undefined || !dominantSpeakerIds.includes(newVisibleParticipantId)) {\n const replacement = newDominantSpeakerIds.shift();\n if (!replacement) {\n break;\n }\n newVisibleParticipantIds[index] = replacement;\n }\n }\n\n let newVisibleParticipants = newVisibleParticipantIds\n .map((participantId) => participantsMap[participantId])\n .filter((p) => p !== undefined);\n\n const newVisibleParticipantIdsSet = new Set(newVisibleParticipantIds);\n const remainingParticipants = participants.filter((p) => !newVisibleParticipantIdsSet.has(p.userId));\n\n newVisibleParticipants = newVisibleParticipants.concat(remainingParticipants);\n\n return newVisibleParticipants;\n};\n\n/**\n * maps the participants array to an object with userId as key\n * @private\n */\nexport const participantsById = (\n participants: VideoGalleryRemoteParticipant[]\n): { [key: string]: VideoGalleryRemoteParticipant } => {\n const response: { [key: string]: VideoGalleryRemoteParticipant } = {};\n participants.forEach((p) => (response[p.userId] = p));\n return response;\n};\n"]}
1
+ {"version":3,"file":"dominantSpeaker.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/gallery/dominantSpeaker.ts"],"names":[],"mappings":"AAwBA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,IAA0C,EAAmC,EAAE;IAC9H,MAAM,EACJ,YAAY,EACZ,gBAAgB,GAAG,EAAE,EACrB,uBAAuB,GAAG,EAAE,EAC5B,mBAAmB,EACpB,GAAG,IAAI,CAAC;IAET,6FAA6F;IAC7F,IAAI,YAAY,CAAC,MAAM,IAAI,mBAAmB,EAAE;QAC9C,OAAO,YAAY,CAAC;KACrB;IACD,MAAM,eAAe,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAEvD,wEAAwE;IACxE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAC9G,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAC1G,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAEtG,+FAA+F;IAC/F,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,mBAAmB,EAAE,KAAK,EAAE,EAAE;QACxD,MAAM,uBAAuB,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;QAChE,IAAI,uBAAuB,KAAK,SAAS,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,uBAAuB,CAAC,EAAE;YAClG,MAAM,WAAW,GAAG,qBAAqB,CAAC,KAAK,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,EAAE;gBAChB,MAAM;aACP;YACD,wBAAwB,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC;SAC/C;KACF;IACD,IAAI,sBAAsB,GAAG,wBAAwB,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC;IACxI,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACtE,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,2BAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACnG,sBAAsB,GAAG,sBAAsB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAC9E,OAAO,sBAAsB,CAAC;AAChC,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,YAA6C,EAE5E,EAAE;IACF,MAAM,QAAQ,GAEV,EAAE,CAAC;IACP,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nimport { VideoGalleryRemoteParticipant } from '../types';\ntype SmartDominantSpeakerParticipantsArgs = {\n /**\n * Array containing all participants of a call. {@link @azure/communication-react#VideoGalleryRemoteParticipant}\n */\n participants: VideoGalleryRemoteParticipant[];\n /**\n * An array containing the userId of dominant speakers\n * in a call in the order of their dominance. 0th index is the most dominant, 1st is the second most etc\n */\n dominantSpeakers?: string[];\n /**\n * Array containing currently rendered (visible)\n * participants in the call. {@link @azure/communication-react#VideoGalleryRemoteParticipant}\n */\n lastVisibleParticipants?: VideoGalleryRemoteParticipant[];\n /**\n * Maximum number of dominant speaker positions to move participants in.\n */\n maxDominantSpeakers: number;\n};\n\n/**\n * Calculates the participants that should be rendered based on the list of dominant\n * speakers and currently rendered participants in a call.\n * @param args - SmartDominantSpeakerParticipantsArgs\n * @returns VideoGalleryRemoteParticipant[] {@link @azure/communication-react#VideoGalleryRemoteParticipant}\n */\nexport const smartDominantSpeakerParticipants = (args: SmartDominantSpeakerParticipantsArgs): VideoGalleryRemoteParticipant[] => {\n const {\n participants,\n dominantSpeakers = [],\n lastVisibleParticipants = [],\n maxDominantSpeakers\n } = args;\n\n // Don't apply any logic if total number of video streams is less than max dominant speakers.\n if (participants.length <= maxDominantSpeakers) {\n return participants;\n }\n const participantsMap = participantsById(participants);\n\n // Only use the Max allowed dominant speakers that exist in participants\n const dominantSpeakerIds = dominantSpeakers.filter(id => !!participantsMap[id]).slice(0, maxDominantSpeakers);\n const newVisibleParticipantIds = lastVisibleParticipants.map(p => p.userId).slice(0, maxDominantSpeakers);\n const newDominantSpeakerIds = dominantSpeakerIds.filter(id => !newVisibleParticipantIds.includes(id));\n\n // Remove participants that are no longer dominant and replace them with new dominant speakers.\n for (let index = 0; index < maxDominantSpeakers; index++) {\n const newVisibleParticipantId = newVisibleParticipantIds[index];\n if (newVisibleParticipantId === undefined || !dominantSpeakerIds.includes(newVisibleParticipantId)) {\n const replacement = newDominantSpeakerIds.shift();\n if (!replacement) {\n break;\n }\n newVisibleParticipantIds[index] = replacement;\n }\n }\n let newVisibleParticipants = newVisibleParticipantIds.map(participantId => participantsMap[participantId]).filter(p => p !== undefined);\n const newVisibleParticipantIdsSet = new Set(newVisibleParticipantIds);\n const remainingParticipants = participants.filter(p => !newVisibleParticipantIdsSet.has(p.userId));\n newVisibleParticipants = newVisibleParticipants.concat(remainingParticipants);\n return newVisibleParticipants;\n};\n\n/**\n * maps the participants array to an object with userId as key\n * @private\n */\nexport const participantsById = (participants: VideoGalleryRemoteParticipant[]): {\n [key: string]: VideoGalleryRemoteParticipant;\n} => {\n const response: {\n [key: string]: VideoGalleryRemoteParticipant;\n } = {};\n participants.forEach(p => response[p.userId] = p);\n return response;\n};"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-components/src/gallery/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,cAAc,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nexport * from './dominantSpeaker';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/gallery/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,cAAc,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nexport * from './dominantSpeaker';"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IdentifierProvider.js","sourceRoot":"","sources":["../../../../../../react-components/src/identifiers/IdentifierProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AA0DzD,MAAM,kBAAkB,GAAiB;IACvC,gBAAgB,EAAE,mBAAmB;IACrC,+BAA+B,EAAE,qCAAqC;IACtE,yBAAyB,EAAE,8BAA8B;IACzD,eAAe,EAAE,kBAAkB;IACnC,2BAA2B,EAAE,gCAAgC;IAC7D,sCAAsC,EAAE,4CAA4C;IACpF,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,4BAA4B,EAAE,kCAAkC;IAChE,6BAA6B,EAAE,mCAAmC;IAClE,mDAAmD;IACnD,wBAAwB,EAAE,6BAA6B;IACvD,0BAA0B,EAAE,+BAA+B;IAC3D,mDAAmD;IACnD,0BAA0B,EAAE,+BAA+B;IAC3D,0CAA0C;IAC1C,qBAAqB,EAAE,yBAAyB;IAChD,0CAA0C;IAC1C,qBAAqB,EAAE,yBAAyB;CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAe,kBAAkB,CAAC,CAAC;AAgBjF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA+B,EAAe,EAAE;IAClF,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxC,OAAO,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,kBAAkB,IAAG,QAAQ,CAA8B,CAAC;AACvH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAiB,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { createContext, useContext } from 'react';\n\n/**\n * Identifiers that can be used to target specific components in a composite.\n *\n * @experimental\n *\n * These identifiers are assigned as `data-ui-id` HTML attribute of the root element of the targeted component.\n *\n * This API is intended for end to end test automation. As such, they are not covered by the API\n * guarantee of the public API. This will remain perenially experimental and compatibility breaking changes\n * may be made at any point.\n *\n * @internal\n */\nexport interface _Identifiers {\n /** `data-ui-id` value for `SendBox` Component */\n sendboxTextField: string;\n /** `data-ui-id` value for `ParticipantButton` Component's People menu item */\n participantButtonPeopleMenuItem: string;\n /** `data-ui-id` value for `ParticipantItem` Component's Menu button */\n participantItemMenuButton: string;\n /** `data-ui-id` value for `ParticipantList` Component */\n participantList: string;\n /** `data-ui-id` value for `ParticipantList` Component's People Button */\n participantListPeopleButton: string;\n /** `data-ui-id` value for `ParticipantList` Component's Remove Participant Button */\n participantListRemoveParticipantButton: string;\n /** `data-ui-id` value for `MessageThread` components message content */\n messageContent: string;\n /** `data-ui-id` value for `MessageThread` components message timestamp */\n messageTimestamp: string;\n /** `data-ui-id` value for `TypingIndicator` Component */\n typingIndicator: string;\n /** `data-ui-id` value for `VideoGallery` Component */\n videoGallery: string;\n /** `data-ui-id` value for `VideoTile` Component */\n videoTile: string;\n /** `data-ui-id` value for overflow gallery component's left navigation button */\n overflowGalleryLeftNavButton: string;\n /** `data-ui-id` value for overflow gallery component's right navigation button */\n overflowGalleryRightNavButton: string;\n /** `data-ui-id` value for the video tiles in the horizontal gallery */\n horizontalGalleryVideoTile: string;\n /* @conditional-compile-remove(vertical-gallery) */\n /** `data-ui-id` value for `VerticalGallery` Component's children video tiles */\n verticalGalleryVideoTile: string;\n /* @conditional-compile-remove(vertical-gallery) */\n /** `data-ui-id` value for `VerticalGallery` Component's page counter */\n verticalGalleryPageCounter: string;\n /* @conditional-compile-remove(mention) */\n /** `data-ui-id` value for `MentionPopover` Component's suggestion list */\n mentionSuggestionList: string;\n /* @conditional-compile-remove(mention) */\n /** `data-ui-id` value for `MentionPopover` Component's suggestion list item */\n mentionSuggestionItem: string;\n}\n\nconst defaultIdentifiers: _Identifiers = {\n sendboxTextField: 'sendbox-textfield',\n participantButtonPeopleMenuItem: 'participant-button-people-menu-item',\n participantItemMenuButton: 'participant-item-menu-button',\n participantList: 'participant-list',\n participantListPeopleButton: 'participant-list-people-button',\n participantListRemoveParticipantButton: 'participant-list-remove-participant-button',\n messageContent: 'message-content',\n messageTimestamp: 'message-timestamp',\n typingIndicator: 'typing-indicator',\n videoGallery: 'video-gallery',\n videoTile: 'video-tile',\n overflowGalleryLeftNavButton: 'overflow-gallery-left-nav-button',\n overflowGalleryRightNavButton: 'overflow-gallery-right-nav-button',\n /* @conditional-compile-remove(vertical-gallery) */\n verticalGalleryVideoTile: 'vertical-gallery-video-tile',\n horizontalGalleryVideoTile: 'horizontal-gallery-video-tile',\n /* @conditional-compile-remove(vertical-gallery) */\n verticalGalleryPageCounter: 'vertical-gallery-page-counter',\n /* @conditional-compile-remove(mention) */\n mentionSuggestionList: 'mention-suggestion-list',\n /* @conditional-compile-remove(mention) */\n mentionSuggestionItem: 'mention-suggestion-item'\n};\n\n/**\n * @private\n */\nexport const IdentifierContext = createContext<_Identifiers>(defaultIdentifiers);\n\n/**\n * Arguments to Context Provider for {@link _Identifiers}.\n *\n * @experimental\n *\n * See documentation for {@link _Identifiers}.\n *\n * @internal\n */\nexport interface _IdentifierProviderProps {\n identifiers?: _Identifiers;\n children: React.ReactNode;\n}\n\n/**\n * React Context provider for {@link _Identifiers}.\n *\n * @experimental\n *\n * See documentation for {@link _Identifiers}.\n *\n * @internal\n */\nexport const _IdentifierProvider = (props: _IdentifierProviderProps): JSX.Element => {\n const { identifiers, children } = props;\n return <IdentifierContext.Provider value={identifiers ?? defaultIdentifiers}>{children}</IdentifierContext.Provider>;\n};\n\n/**\n * @private\n */\nexport const useIdentifiers = (): _Identifiers => useContext(IdentifierContext);\n"]}
1
+ {"version":3,"file":"IdentifierProvider.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/identifiers/IdentifierProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAyDzD,MAAM,kBAAkB,GAAiB;IACvC,gBAAgB,EAAE,mBAAmB;IACrC,+BAA+B,EAAE,qCAAqC;IACtE,yBAAyB,EAAE,8BAA8B;IACzD,eAAe,EAAE,kBAAkB;IACnC,2BAA2B,EAAE,gCAAgC;IAC7D,sCAAsC,EAAE,4CAA4C;IACpF,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,eAAe,EAAE,kBAAkB;IACnC,YAAY,EAAE,eAAe;IAC7B,SAAS,EAAE,YAAY;IACvB,4BAA4B,EAAE,kCAAkC;IAChE,6BAA6B,EAAE,mCAAmC;IAClE,mDAAmD;IACnD,wBAAwB,EAAE,6BAA6B;IACvD,0BAA0B,EAAE,+BAA+B;IAC3D,mDAAmD;IACnD,0BAA0B,EAAE,+BAA+B;IAC3D,0CAA0C;IAC1C,qBAAqB,EAAE,yBAAyB;IAChD,0CAA0C;IAC1C,qBAAqB,EAAE,yBAAyB;CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAe,kBAAkB,CAAC,CAAC;AAgBjF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA+B,EAAe,EAAE;IAClF,MAAM,EACJ,WAAW,EACX,QAAQ,EACT,GAAG,KAAK,CAAC;IACV,OAAO,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,kBAAkB,IAAG,QAAQ,CAA8B,CAAC;AACvH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAiB,EAAE,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { createContext, useContext } from 'react';\n\n/**\n * Identifiers that can be used to target specific components in a composite.\n *\n * @experimental\n *\n * These identifiers are assigned as `data-ui-id` HTML attribute of the root element of the targeted component.\n *\n * This API is intended for end to end test automation. As such, they are not covered by the API\n * guarantee of the public API. This will remain perenially experimental and compatibility breaking changes\n * may be made at any point.\n *\n * @internal\n */\nexport interface _Identifiers {\n /** `data-ui-id` value for `SendBox` Component */\n sendboxTextField: string;\n /** `data-ui-id` value for `ParticipantButton` Component's People menu item */\n participantButtonPeopleMenuItem: string;\n /** `data-ui-id` value for `ParticipantItem` Component's Menu button */\n participantItemMenuButton: string;\n /** `data-ui-id` value for `ParticipantList` Component */\n participantList: string;\n /** `data-ui-id` value for `ParticipantList` Component's People Button */\n participantListPeopleButton: string;\n /** `data-ui-id` value for `ParticipantList` Component's Remove Participant Button */\n participantListRemoveParticipantButton: string;\n /** `data-ui-id` value for `MessageThread` components message content */\n messageContent: string;\n /** `data-ui-id` value for `MessageThread` components message timestamp */\n messageTimestamp: string;\n /** `data-ui-id` value for `TypingIndicator` Component */\n typingIndicator: string;\n /** `data-ui-id` value for `VideoGallery` Component */\n videoGallery: string;\n /** `data-ui-id` value for `VideoTile` Component */\n videoTile: string;\n /** `data-ui-id` value for overflow gallery component's left navigation button */\n overflowGalleryLeftNavButton: string;\n /** `data-ui-id` value for overflow gallery component's right navigation button */\n overflowGalleryRightNavButton: string;\n /** `data-ui-id` value for the video tiles in the horizontal gallery */\n horizontalGalleryVideoTile: string;\n /* @conditional-compile-remove(vertical-gallery) */\n /** `data-ui-id` value for `VerticalGallery` Component's children video tiles */\n verticalGalleryVideoTile: string;\n /* @conditional-compile-remove(vertical-gallery) */\n /** `data-ui-id` value for `VerticalGallery` Component's page counter */\n verticalGalleryPageCounter: string;\n /* @conditional-compile-remove(mention) */\n /** `data-ui-id` value for `MentionPopover` Component's suggestion list */\n mentionSuggestionList: string;\n /* @conditional-compile-remove(mention) */\n /** `data-ui-id` value for `MentionPopover` Component's suggestion list item */\n mentionSuggestionItem: string;\n}\nconst defaultIdentifiers: _Identifiers = {\n sendboxTextField: 'sendbox-textfield',\n participantButtonPeopleMenuItem: 'participant-button-people-menu-item',\n participantItemMenuButton: 'participant-item-menu-button',\n participantList: 'participant-list',\n participantListPeopleButton: 'participant-list-people-button',\n participantListRemoveParticipantButton: 'participant-list-remove-participant-button',\n messageContent: 'message-content',\n messageTimestamp: 'message-timestamp',\n typingIndicator: 'typing-indicator',\n videoGallery: 'video-gallery',\n videoTile: 'video-tile',\n overflowGalleryLeftNavButton: 'overflow-gallery-left-nav-button',\n overflowGalleryRightNavButton: 'overflow-gallery-right-nav-button',\n /* @conditional-compile-remove(vertical-gallery) */\n verticalGalleryVideoTile: 'vertical-gallery-video-tile',\n horizontalGalleryVideoTile: 'horizontal-gallery-video-tile',\n /* @conditional-compile-remove(vertical-gallery) */\n verticalGalleryPageCounter: 'vertical-gallery-page-counter',\n /* @conditional-compile-remove(mention) */\n mentionSuggestionList: 'mention-suggestion-list',\n /* @conditional-compile-remove(mention) */\n mentionSuggestionItem: 'mention-suggestion-item'\n};\n\n/**\n * @private\n */\nexport const IdentifierContext = createContext<_Identifiers>(defaultIdentifiers);\n\n/**\n * Arguments to Context Provider for {@link _Identifiers}.\n *\n * @experimental\n *\n * See documentation for {@link _Identifiers}.\n *\n * @internal\n */\nexport interface _IdentifierProviderProps {\n identifiers?: _Identifiers;\n children: React.ReactNode;\n}\n\n/**\n * React Context provider for {@link _Identifiers}.\n *\n * @experimental\n *\n * See documentation for {@link _Identifiers}.\n *\n * @internal\n */\nexport const _IdentifierProvider = (props: _IdentifierProviderProps): JSX.Element => {\n const {\n identifiers,\n children\n } = props;\n return <IdentifierContext.Provider value={identifiers ?? defaultIdentifiers}>{children}</IdentifierContext.Provider>;\n};\n\n/**\n * @private\n */\nexport const useIdentifiers = (): _Identifiers => useContext(IdentifierContext);"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-components/src/identifiers/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,cAAc,sBAAsB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nexport * from './IdentifierProvider';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/identifiers/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,cAAc,sBAAsB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\nexport * from './IdentifierProvider';"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../react-components/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,cAAc,WAAW,CAAC;AAsC1B,iDAAiD;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from './components';\nexport { _IdentifierProvider } from './identifiers';\nexport type { _Identifiers, _IdentifierProviderProps } from './identifiers';\nexport * from './localization/locales';\nexport { LocalizationProvider } from './localization';\nexport type { ComponentStrings, ComponentLocale, LocalizationProviderProps } from './localization';\nexport * from './theming';\n\nexport type {\n BaseCustomStyles,\n CallParticipantListParticipant,\n ChatMessage,\n CommunicationParticipant,\n ComponentSlotStyle,\n ContentSystemMessage,\n CreateVideoStreamViewResult,\n CustomAvatarOptions,\n CustomMessage,\n Message,\n MessageAttachedStatus,\n MessageCommon,\n MessageContentType,\n OnRenderAvatarCallback,\n ParticipantAddedSystemMessage,\n ParticipantListParticipant,\n ParticipantRemovedSystemMessage,\n ParticipantState,\n ReadReceiptsBySenderId,\n SystemMessage,\n SystemMessageCommon,\n TopicUpdatedSystemMessage,\n VideoGalleryLocalParticipant,\n VideoGalleryParticipant,\n VideoGalleryRemoteParticipant,\n VideoGalleryStream,\n VideoStreamOptions,\n ViewScalingMode\n} from './types';\n\n/* @conditional-compile-remove(raise-hand) */\nexport type { RaisedHand } from './types';\n\n/* @conditional-compile-remove(close-captions) */\nexport type { SpokenLanguageStrings, CaptionLanguageStrings } from './types';\n/* @conditional-compile-remove(close-captions) */\nexport { _spokenLanguageToCaptionLanguage } from './types';\n\n/* @conditional-compile-remove(data-loss-prevention) */\nexport type { BlockedMessage } from './types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../preprocess-dist/react-components/src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,cAAc,WAAW,CAAC;AAQ1B,iDAAiD;AACjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from './components';\nexport { _IdentifierProvider } from './identifiers';\nexport type { _Identifiers, _IdentifierProviderProps } from './identifiers';\nexport * from './localization/locales';\nexport { LocalizationProvider } from './localization';\nexport type { ComponentStrings, ComponentLocale, LocalizationProviderProps } from './localization';\nexport * from './theming';\nexport type { BaseCustomStyles, CallParticipantListParticipant, ChatMessage, CommunicationParticipant, ComponentSlotStyle, ContentSystemMessage, CreateVideoStreamViewResult, CustomAvatarOptions, CustomMessage, Message, MessageAttachedStatus, MessageCommon, MessageContentType, OnRenderAvatarCallback, ParticipantAddedSystemMessage, ParticipantListParticipant, ParticipantRemovedSystemMessage, ParticipantState, ReadReceiptsBySenderId, SystemMessage, SystemMessageCommon, TopicUpdatedSystemMessage, VideoGalleryLocalParticipant, VideoGalleryParticipant, VideoGalleryRemoteParticipant, VideoGalleryStream, VideoStreamOptions, ViewScalingMode } from './types';\n\n/* @conditional-compile-remove(raise-hand) */\nexport type { RaisedHand } from './types';\n\n/* @conditional-compile-remove(close-captions) */\nexport type { SpokenLanguageStrings, CaptionLanguageStrings } from './types';\n/* @conditional-compile-remove(close-captions) */\nexport { _spokenLanguageToCaptionLanguage } from './types';\n\n/* @conditional-compile-remove(data-loss-prevention) */\nexport type { BlockedMessage } from './types';"]}
@@ -13,7 +13,6 @@ import { UnsupportedOperatingSystemStrings } from '../components/UnsupportedOper
13
13
  import { VerticalGalleryStrings } from '../components/VerticalGallery';
14
14
  import { ParticipantListStrings } from '../components/ParticipantList';
15
15
  import { MentionPopoverStrings } from '../components/MentionPopover';
16
- import { ImageGalleryStrings } from '../components/ImageGallery';
17
16
  /**
18
17
  * Locale information for all components exported from this library.
19
18
  *
@@ -58,8 +57,6 @@ export interface ComponentStrings {
58
57
  sendBox: SendBoxStrings;
59
58
  /** Strings for MentionPopover */
60
59
  mentionPopover: MentionPopoverStrings;
61
- /** Strings for ImageGallery */
62
- imageGallery: ImageGalleryStrings;
63
60
  /** Strings for MessageStatusIndicator */
64
61
  messageStatusIndicator: MessageStatusIndicatorStrings;
65
62
  /** Strings for ErroBar */
@@ -1 +1 @@
1
- {"version":3,"file":"LocalizationProvider.js","sourceRoot":"","sources":["../../../../../../react-components/src/localization/LocalizationProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAiCzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AA8InD;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAkB,sBAAsB,CAAC,CAAC;AAcpF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgC,EAAe,EAAE;IACpF,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACnC,OAAO,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,IAAG,QAAQ,CAA0B,CAAC;AACpF,CAAC,CAAC;AAEF,kCAAkC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAoB,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { createContext, useContext } from 'react';\nimport {\n CameraButtonStrings,\n EndCallButtonStrings,\n ErrorBarStrings,\n MessageStatusIndicatorStrings,\n MessageThreadStrings,\n MicrophoneButtonStrings,\n DevicesButtonStrings,\n ParticipantsButtonStrings,\n ParticipantItemStrings,\n ScreenShareButtonStrings,\n SendBoxStrings,\n TypingIndicatorStrings,\n VideoGalleryStrings\n} from '../components';\n/* @conditional-compile-remove(raise-hand) */\nimport { RaiseHandButtonStrings } from '../components';\n/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\nimport { HoldButtonStrings } from '../components';\n/* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */\nimport { DialpadStrings } from '../components';\n/* @conditional-compile-remove(call-readiness) */\nimport { SitePermissionsStrings } from '../components/DevicePermissions/SitePermissionsScaffolding';\n/* @conditional-compile-remove(call-readiness) */\nimport { BrowserPermissionDeniedStrings } from '../components/DevicePermissions/BrowserPermissionDenied';\n/* @conditional-compile-remove(call-readiness) */\nimport { BrowserPermissionDeniedIOSStrings } from '../components/DevicePermissions/BrowserPermissionDeniedIOS';\n/* @conditional-compile-remove(call-readiness) */ /* @conditional-compile-remove(unsupported-browser) */\nimport { UnsupportedBrowserStrings } from '../components/UnsupportedBrowser';\n/* @conditional-compile-remove(one-to-n-calling) */\n// @conditional-compile-remove(PSTN-calls)\nimport { VideoTileStrings } from '../components/VideoTile';\nimport { COMPONENT_LOCALE_EN_US } from './locales';\n/* @conditional-compile-remove(unsupported-browser) */\nimport { UnsupportedBrowserVersionStrings } from '../components/UnsupportedBrowserVersion';\n/* @conditional-compile-remove(unsupported-browser) */\nimport { UnsupportedOperatingSystemStrings } from '../components/UnsupportedOperatingSystem';\n/* @conditional-compile-remove(vertical-gallery) */\nimport { VerticalGalleryStrings } from '../components/VerticalGallery';\n/* @conditional-compile-remove(total-participant-count) */\nimport { ParticipantListStrings } from '../components/ParticipantList';\n/* @conditional-compile-remove(mention) */\nimport { MentionPopoverStrings } from '../components/MentionPopover';\n/* @conditional-compile-remove(image-gallery) */\nimport { ImageGalleryStrings } from '../components/ImageGallery';\n\n/**\n * Locale information for all components exported from this library.\n *\n * @public\n */\nexport interface ComponentLocale {\n /** Strings for components */\n strings: ComponentStrings;\n /* @conditional-compile-remove(date-time-customization) */\n /**\n * Optional function to provide customized date format.\n * @beta\n */\n onDisplayDateTimeString?: (messageDate: Date) => string;\n}\n\n/**\n * Strings used by all components exported from this library.\n *\n * @public\n */\nexport interface ComponentStrings {\n /** Strings for MessageThread */\n messageThread: MessageThreadStrings;\n /** Strings for ParticipantItem */\n participantItem: ParticipantItemStrings;\n /** Strings for CameraButton */\n cameraButton: CameraButtonStrings;\n /** Strings for MicrophoneButton */\n microphoneButton: MicrophoneButtonStrings;\n /** Strings for EndCallButton */\n endCallButton: EndCallButtonStrings;\n /** Strings for DevicesButton */\n devicesButton: DevicesButtonStrings;\n /** Strings for ParticipantsButton */\n participantsButton: ParticipantsButtonStrings;\n /** Strings for ScreenShareButton */\n screenShareButton: ScreenShareButtonStrings;\n /* @conditional-compile-remove(raise-hand) */\n /** Strings for RaiseHandButton */\n raiseHandButton: RaiseHandButtonStrings;\n /** Strings for TypingIndicator */\n typingIndicator: TypingIndicatorStrings;\n /** Strings for SendBox */\n sendBox: SendBoxStrings;\n /* @conditional-compile-remove(mention) */\n /** Strings for MentionPopover */\n mentionPopover: MentionPopoverStrings;\n /* @conditional-compile-remove(image-gallery) */\n /** Strings for ImageGallery */\n imageGallery: ImageGalleryStrings;\n /** Strings for MessageStatusIndicator */\n messageStatusIndicator: MessageStatusIndicatorStrings;\n /** Strings for ErroBar */\n errorBar: ErrorBarStrings;\n /** Strings for VideoGallery */\n videoGallery: VideoGalleryStrings;\n /* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */\n /** Strings for Dialpad */\n dialpad: DialpadStrings;\n /* @conditional-compile-remove(one-to-n-calling) */\n // @conditional-compile-remove(PSTN-calls)\n /** Strings for VideoTile */\n videoTile: VideoTileStrings;\n /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */\n /** Strings for HoldButton */\n holdButton: HoldButtonStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission request prompt */\n CameraAndMicrophoneSitePermissionsRequest: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission request prompt */\n CameraSitePermissionsRequest: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission request prompt */\n MicrophoneSitePermissionsRequest: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission generic checking prompt */\n CameraAndMicrophoneSitePermissionsCheck: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission generic checking prompt */\n CameraSitePermissionsCheck: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission generic checking prompt */\n MicrophoneSitePermissionsCheck: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt */\n CameraAndMicrophoneSitePermissionsDenied: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt for safari browsers*/\n CameraAndMicrophoneSitePermissionsDeniedSafari: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt */\n CameraSitePermissionsDenied: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt */\n MicrophoneSitePermissionsDenied: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt for safari browsers*/\n CameraSitePermissionsDeniedSafari: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt for safari browsers*/\n MicrophoneSitePermissionsDeniedSafari: SitePermissionsStrings;\n /* @conditional-compile-remove(unsupported-browser) */\n /** Strings for unsupported browser UI */\n UnsupportedBrowser: UnsupportedBrowserStrings;\n /* @conditional-compile-remove(unsupported-browser) */\n /** Strings for unsupported browser version UI */\n UnsupportedBrowserVersion: UnsupportedBrowserVersionStrings;\n /* @conditional-compile-remove(unsupported-browser) */\n /** Strings for unsupported browser version UI */\n UnsupportedOperatingSystem: UnsupportedOperatingSystemStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for BrowserPemissionDenied */\n BrowserPermissionDenied: BrowserPermissionDeniedStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for BrowserPemissionDeniedIOS */\n BrowserPermissionDeniedIOS: BrowserPermissionDeniedIOSStrings;\n /* @conditional-compile-remove(vertical-gallery) */\n /**\n * Strings for the VerticalGallery.\n */\n VerticalGallery: VerticalGalleryStrings;\n /* @conditional-compile-remove(total-participant-count) */\n /** Strings for the participant list component */\n ParticipantList: ParticipantListStrings;\n}\n\n/**\n * Context for providing localized strings to components exported from this library.\n *\n * @public\n */\nexport const LocaleContext = createContext<ComponentLocale>(COMPONENT_LOCALE_EN_US);\n\n/**\n * Props for {@link LocalizationProvider}.\n *\n * @public\n */\nexport type LocalizationProviderProps = {\n /** Locale context to provide components */\n locale: ComponentLocale;\n /** Children to provide locale context. */\n children: React.ReactNode;\n};\n\n/**\n * Provider to provide localized strings for this library's react components.\n *\n * @remarks Components will be provided localized strings in English (US) by default if this\n * provider is not used.\n *\n * @public\n */\nexport const LocalizationProvider = (props: LocalizationProviderProps): JSX.Element => {\n const { locale, children } = props;\n return <LocaleContext.Provider value={locale}>{children}</LocaleContext.Provider>;\n};\n\n/** React hook to access locale */\nexport const useLocale = (): ComponentLocale => useContext(LocaleContext);\n"]}
1
+ {"version":3,"file":"LocalizationProvider.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/localization/LocalizationProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAmBzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAwInD;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAkB,sBAAsB,CAAC,CAAC;AAcpF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAgC,EAAe,EAAE;IACpF,MAAM,EACJ,MAAM,EACN,QAAQ,EACT,GAAG,KAAK,CAAC;IACV,OAAO,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,IAAG,QAAQ,CAA0B,CAAC;AACpF,CAAC,CAAC;AAEF,kCAAkC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAoB,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { createContext, useContext } from 'react';\nimport { CameraButtonStrings, EndCallButtonStrings, ErrorBarStrings, MessageStatusIndicatorStrings, MessageThreadStrings, MicrophoneButtonStrings, DevicesButtonStrings, ParticipantsButtonStrings, ParticipantItemStrings, ScreenShareButtonStrings, SendBoxStrings, TypingIndicatorStrings, VideoGalleryStrings } from '../components';\n/* @conditional-compile-remove(raise-hand) */\nimport { RaiseHandButtonStrings } from '../components';\n/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */\nimport { HoldButtonStrings } from '../components';\n/* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */\nimport { DialpadStrings } from '../components';\n/* @conditional-compile-remove(call-readiness) */\nimport { SitePermissionsStrings } from '../components/DevicePermissions/SitePermissionsScaffolding';\n/* @conditional-compile-remove(call-readiness) */\nimport { BrowserPermissionDeniedStrings } from '../components/DevicePermissions/BrowserPermissionDenied';\n/* @conditional-compile-remove(call-readiness) */\nimport { BrowserPermissionDeniedIOSStrings } from '../components/DevicePermissions/BrowserPermissionDeniedIOS';\n/* @conditional-compile-remove(call-readiness) */ /* @conditional-compile-remove(unsupported-browser) */\nimport { UnsupportedBrowserStrings } from '../components/UnsupportedBrowser';\n/* @conditional-compile-remove(one-to-n-calling) */\n// @conditional-compile-remove(PSTN-calls)\nimport { VideoTileStrings } from '../components/VideoTile';\nimport { COMPONENT_LOCALE_EN_US } from './locales';\n/* @conditional-compile-remove(unsupported-browser) */\nimport { UnsupportedBrowserVersionStrings } from '../components/UnsupportedBrowserVersion';\n/* @conditional-compile-remove(unsupported-browser) */\nimport { UnsupportedOperatingSystemStrings } from '../components/UnsupportedOperatingSystem';\n/* @conditional-compile-remove(vertical-gallery) */\nimport { VerticalGalleryStrings } from '../components/VerticalGallery';\n/* @conditional-compile-remove(total-participant-count) */\nimport { ParticipantListStrings } from '../components/ParticipantList';\n/* @conditional-compile-remove(mention) */\nimport { MentionPopoverStrings } from '../components/MentionPopover';\n/**\n * Locale information for all components exported from this library.\n *\n * @public\n */\nexport interface ComponentLocale {\n /** Strings for components */\n strings: ComponentStrings;\n /* @conditional-compile-remove(date-time-customization) */\n /**\n * Optional function to provide customized date format.\n * @beta\n */\n onDisplayDateTimeString?: (messageDate: Date) => string;\n}\n\n/**\n * Strings used by all components exported from this library.\n *\n * @public\n */\nexport interface ComponentStrings {\n /** Strings for MessageThread */\n messageThread: MessageThreadStrings;\n /** Strings for ParticipantItem */\n participantItem: ParticipantItemStrings;\n /** Strings for CameraButton */\n cameraButton: CameraButtonStrings;\n /** Strings for MicrophoneButton */\n microphoneButton: MicrophoneButtonStrings;\n /** Strings for EndCallButton */\n endCallButton: EndCallButtonStrings;\n /** Strings for DevicesButton */\n devicesButton: DevicesButtonStrings;\n /** Strings for ParticipantsButton */\n participantsButton: ParticipantsButtonStrings;\n /** Strings for ScreenShareButton */\n screenShareButton: ScreenShareButtonStrings;\n /* @conditional-compile-remove(raise-hand) */\n /** Strings for RaiseHandButton */\n raiseHandButton: RaiseHandButtonStrings;\n /** Strings for TypingIndicator */\n typingIndicator: TypingIndicatorStrings;\n /** Strings for SendBox */\n sendBox: SendBoxStrings;\n /* @conditional-compile-remove(mention) */\n /** Strings for MentionPopover */\n mentionPopover: MentionPopoverStrings;\n /** Strings for MessageStatusIndicator */\n messageStatusIndicator: MessageStatusIndicatorStrings;\n /** Strings for ErroBar */\n errorBar: ErrorBarStrings;\n /** Strings for VideoGallery */\n videoGallery: VideoGalleryStrings;\n /* @conditional-compile-remove(dialpad) */ /* @conditional-compile-remove(PSTN-calls) */\n /** Strings for Dialpad */\n dialpad: DialpadStrings;\n /* @conditional-compile-remove(one-to-n-calling) */\n // @conditional-compile-remove(PSTN-calls)\n /** Strings for VideoTile */\n videoTile: VideoTileStrings;\n /* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */\n /** Strings for HoldButton */\n holdButton: HoldButtonStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission request prompt */\n CameraAndMicrophoneSitePermissionsRequest: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission request prompt */\n CameraSitePermissionsRequest: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission request prompt */\n MicrophoneSitePermissionsRequest: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission generic checking prompt */\n CameraAndMicrophoneSitePermissionsCheck: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission generic checking prompt */\n CameraSitePermissionsCheck: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission generic checking prompt */\n MicrophoneSitePermissionsCheck: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt */\n CameraAndMicrophoneSitePermissionsDenied: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt for safari browsers*/\n CameraAndMicrophoneSitePermissionsDeniedSafari: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt */\n CameraSitePermissionsDenied: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt */\n MicrophoneSitePermissionsDenied: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt for safari browsers*/\n CameraSitePermissionsDeniedSafari: SitePermissionsStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for a site's permission denied prompt for safari browsers*/\n MicrophoneSitePermissionsDeniedSafari: SitePermissionsStrings;\n /* @conditional-compile-remove(unsupported-browser) */\n /** Strings for unsupported browser UI */\n UnsupportedBrowser: UnsupportedBrowserStrings;\n /* @conditional-compile-remove(unsupported-browser) */\n /** Strings for unsupported browser version UI */\n UnsupportedBrowserVersion: UnsupportedBrowserVersionStrings;\n /* @conditional-compile-remove(unsupported-browser) */\n /** Strings for unsupported browser version UI */\n UnsupportedOperatingSystem: UnsupportedOperatingSystemStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for BrowserPemissionDenied */\n BrowserPermissionDenied: BrowserPermissionDeniedStrings;\n /* @conditional-compile-remove(call-readiness) */\n /** Strings for BrowserPemissionDeniedIOS */\n BrowserPermissionDeniedIOS: BrowserPermissionDeniedIOSStrings;\n /* @conditional-compile-remove(vertical-gallery) */\n /**\n * Strings for the VerticalGallery.\n */\n VerticalGallery: VerticalGalleryStrings;\n /* @conditional-compile-remove(total-participant-count) */\n /** Strings for the participant list component */\n ParticipantList: ParticipantListStrings;\n}\n\n/**\n * Context for providing localized strings to components exported from this library.\n *\n * @public\n */\nexport const LocaleContext = createContext<ComponentLocale>(COMPONENT_LOCALE_EN_US);\n\n/**\n * Props for {@link LocalizationProvider}.\n *\n * @public\n */\nexport type LocalizationProviderProps = {\n /** Locale context to provide components */\n locale: ComponentLocale;\n /** Children to provide locale context. */\n children: React.ReactNode;\n};\n\n/**\n * Provider to provide localized strings for this library's react components.\n *\n * @remarks Components will be provided localized strings in English (US) by default if this\n * provider is not used.\n *\n * @public\n */\nexport const LocalizationProvider = (props: LocalizationProviderProps): JSX.Element => {\n const {\n locale,\n children\n } = props;\n return <LocaleContext.Provider value={locale}>{children}</LocaleContext.Provider>;\n};\n\n/** React hook to access locale */\nexport const useLocale = (): ComponentLocale => useContext(LocaleContext);"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../react-components/src/localization/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,wBAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from './LocalizationProvider';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/localization/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,wBAAwB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport * from './LocalizationProvider';"]}
@@ -33,125 +33,167 @@ const createComponentStrings = (localizedStrings) => {
33
33
  *
34
34
  * @public
35
35
  */
36
- export const COMPONENT_LOCALE_EN_US = { strings: en_US };
36
+ export const COMPONENT_LOCALE_EN_US = {
37
+ strings: en_US
38
+ };
37
39
  /**
38
40
  * Locale for English (GB).
39
41
  *
40
42
  * @public
41
43
  */
42
- export const COMPONENT_LOCALE_EN_GB = { strings: createComponentStrings(en_GB) };
44
+ export const COMPONENT_LOCALE_EN_GB = {
45
+ strings: createComponentStrings(en_GB)
46
+ };
43
47
  /**
44
48
  * Locale for Arabic (Saudi Arabia).
45
49
  *
46
50
  * @public
47
51
  */
48
- export const COMPONENT_LOCALE_AR_SA = { strings: createComponentStrings(ar_SA) };
52
+ export const COMPONENT_LOCALE_AR_SA = {
53
+ strings: createComponentStrings(ar_SA)
54
+ };
49
55
  /**
50
56
  * Locale for Czech (Czech Republic).
51
57
  *
52
58
  * @public
53
59
  */
54
- export const COMPONENT_LOCALE_CS_CZ = { strings: createComponentStrings(cs_CZ) };
60
+ export const COMPONENT_LOCALE_CS_CZ = {
61
+ strings: createComponentStrings(cs_CZ)
62
+ };
55
63
  /**
56
64
  * Locale for German (Germany).
57
65
  *
58
66
  * @public
59
67
  */
60
- export const COMPONENT_LOCALE_DE_DE = { strings: createComponentStrings(de_DE) };
68
+ export const COMPONENT_LOCALE_DE_DE = {
69
+ strings: createComponentStrings(de_DE)
70
+ };
61
71
  /**
62
72
  * Locale for Spanish (Spain).
63
73
  *
64
74
  * @public
65
75
  */
66
- export const COMPONENT_LOCALE_ES_ES = { strings: createComponentStrings(es_ES) };
76
+ export const COMPONENT_LOCALE_ES_ES = {
77
+ strings: createComponentStrings(es_ES)
78
+ };
67
79
  /**
68
80
  * Locale for Finnish (Finland).
69
81
  *
70
82
  * @public
71
83
  */
72
- export const COMPONENT_LOCALE_FI_FI = { strings: createComponentStrings(fi_FI) };
84
+ export const COMPONENT_LOCALE_FI_FI = {
85
+ strings: createComponentStrings(fi_FI)
86
+ };
73
87
  /**
74
88
  * Locale for French (France).
75
89
  *
76
90
  * @public
77
91
  */
78
- export const COMPONENT_LOCALE_FR_FR = { strings: createComponentStrings(fr_FR) };
92
+ export const COMPONENT_LOCALE_FR_FR = {
93
+ strings: createComponentStrings(fr_FR)
94
+ };
79
95
  /**
80
96
  * Locale for Hebrew (Israel).
81
97
  *
82
98
  * @public
83
99
  */
84
- export const COMPONENT_LOCALE_HE_IL = { strings: createComponentStrings(he_IL) };
100
+ export const COMPONENT_LOCALE_HE_IL = {
101
+ strings: createComponentStrings(he_IL)
102
+ };
85
103
  /**
86
104
  * Locale for Italian (Italy).
87
105
  *
88
106
  * @public
89
107
  */
90
- export const COMPONENT_LOCALE_IT_IT = { strings: createComponentStrings(it_IT) };
108
+ export const COMPONENT_LOCALE_IT_IT = {
109
+ strings: createComponentStrings(it_IT)
110
+ };
91
111
  /**
92
112
  * Locale for Japanese (Japan).
93
113
  *
94
114
  * @public
95
115
  */
96
- export const COMPONENT_LOCALE_JA_JP = { strings: createComponentStrings(ja_JP) };
116
+ export const COMPONENT_LOCALE_JA_JP = {
117
+ strings: createComponentStrings(ja_JP)
118
+ };
97
119
  /**
98
120
  * Locale for Korean (South Korea).
99
121
  *
100
122
  * @public
101
123
  */
102
- export const COMPONENT_LOCALE_KO_KR = { strings: createComponentStrings(ko_KR) };
124
+ export const COMPONENT_LOCALE_KO_KR = {
125
+ strings: createComponentStrings(ko_KR)
126
+ };
103
127
  /**
104
128
  * Locale for Norwegian Bokmål (Norway) .
105
129
  *
106
130
  * @public
107
131
  */
108
- export const COMPONENT_LOCALE_NB_NO = { strings: createComponentStrings(nb_NO) };
132
+ export const COMPONENT_LOCALE_NB_NO = {
133
+ strings: createComponentStrings(nb_NO)
134
+ };
109
135
  /**
110
136
  * Locale for Dutch (Netherlands).
111
137
  *
112
138
  * @public
113
139
  */
114
- export const COMPONENT_LOCALE_NL_NL = { strings: createComponentStrings(nl_NL) };
140
+ export const COMPONENT_LOCALE_NL_NL = {
141
+ strings: createComponentStrings(nl_NL)
142
+ };
115
143
  /**
116
144
  * Locale for Polish (Poland).
117
145
  *
118
146
  * @public
119
147
  */
120
- export const COMPONENT_LOCALE_PL_PL = { strings: createComponentStrings(pl_PL) };
148
+ export const COMPONENT_LOCALE_PL_PL = {
149
+ strings: createComponentStrings(pl_PL)
150
+ };
121
151
  /**
122
152
  * Locale for Portuguese (Brazil).
123
153
  *
124
154
  * @public
125
155
  */
126
- export const COMPONENT_LOCALE_PT_BR = { strings: createComponentStrings(pt_BR) };
156
+ export const COMPONENT_LOCALE_PT_BR = {
157
+ strings: createComponentStrings(pt_BR)
158
+ };
127
159
  /**
128
160
  * Locale for Russian (Russia).
129
161
  *
130
162
  * @public
131
163
  */
132
- export const COMPONENT_LOCALE_RU_RU = { strings: createComponentStrings(ru_RU) };
164
+ export const COMPONENT_LOCALE_RU_RU = {
165
+ strings: createComponentStrings(ru_RU)
166
+ };
133
167
  /**
134
168
  * Locale for Swedish (Sweden) .
135
169
  *
136
170
  * @public
137
171
  */
138
- export const COMPONENT_LOCALE_SV_SE = { strings: createComponentStrings(sv_SE) };
172
+ export const COMPONENT_LOCALE_SV_SE = {
173
+ strings: createComponentStrings(sv_SE)
174
+ };
139
175
  /**
140
176
  * Locale for Turkish (Turkey).
141
177
  *
142
178
  * @public
143
179
  */
144
- export const COMPONENT_LOCALE_TR_TR = { strings: createComponentStrings(tr_TR) };
180
+ export const COMPONENT_LOCALE_TR_TR = {
181
+ strings: createComponentStrings(tr_TR)
182
+ };
145
183
  /**
146
184
  * Locale for Chinese (Mainland China).
147
185
  *
148
186
  * @public
149
187
  */
150
- export const COMPONENT_LOCALE_ZH_CN = { strings: createComponentStrings(zh_CN) };
188
+ export const COMPONENT_LOCALE_ZH_CN = {
189
+ strings: createComponentStrings(zh_CN)
190
+ };
151
191
  /**
152
192
  * Locale for Chinese (Taiwan).
153
193
  *
154
194
  * @public
155
195
  */
156
- export const COMPONENT_LOCALE_ZH_TW = { strings: createComponentStrings(zh_TW) };
196
+ export const COMPONENT_LOCALE_ZH_TW = {
197
+ strings: createComponentStrings(zh_TW)
198
+ };
157
199
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../react-components/src/localization/locales/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC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AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC;AAClG;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB,EAAE,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC,EAAE,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\r\n// Licensed under the MIT license.\r\n\r\nimport { PartialDeep } from 'type-fest';\r\nimport { ComponentLocale, ComponentStrings } from '..';\r\nimport en_US from './en-US/strings.json';\r\nimport en_GB from './en-GB/strings.json';\r\nimport ar_SA from './ar-SA/strings.json';\r\nimport cs_CZ from './cs-CZ/strings.json';\r\nimport de_DE from './de-DE/strings.json';\r\nimport es_ES from './es-ES/strings.json';\r\nimport fi_FI from './fi-FI/strings.json';\r\nimport fr_FR from './fr-FR/strings.json';\r\nimport he_IL from './he-IL/strings.json';\r\nimport it_IT from './it-IT/strings.json';\r\nimport ja_JP from './ja-JP/strings.json';\r\nimport ko_KR from './ko-KR/strings.json';\r\nimport nb_NO from './nb-NO/strings.json';\r\nimport nl_NL from './nl-NL/strings.json';\r\nimport pl_PL from './pl-PL/strings.json';\r\nimport pt_BR from './pt-BR/strings.json';\r\nimport ru_RU from './ru-RU/strings.json';\r\nimport sv_SE from './sv-SE/strings.json';\r\nimport tr_TR from './tr-TR/strings.json';\r\nimport zh_CN from './zh-CN/strings.json';\r\nimport zh_TW from './zh-TW/strings.json';\r\n\r\nconst createComponentStrings = (localizedStrings: PartialDeep<ComponentStrings>): ComponentStrings => {\r\n const strings: ComponentStrings = { ...en_US };\r\n Object.keys(localizedStrings).forEach((key: string) => {\r\n strings[key] = { ...strings[key], ...localizedStrings[key] };\r\n });\r\n return strings;\r\n};\r\n\r\n/**\r\n * Locale for English (US).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_EN_US: ComponentLocale = { strings: en_US };\r\n/**\r\n * Locale for English (GB).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_EN_GB: ComponentLocale = { strings: createComponentStrings(en_GB) };\r\n/**\r\n * Locale for Arabic (Saudi Arabia).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_AR_SA: ComponentLocale = { strings: createComponentStrings(ar_SA) };\r\n/**\r\n * Locale for Czech (Czech Republic).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_CS_CZ: ComponentLocale = { strings: createComponentStrings(cs_CZ) };\r\n/**\r\n * Locale for German (Germany).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_DE_DE: ComponentLocale = { strings: createComponentStrings(de_DE) };\r\n/**\r\n * Locale for Spanish (Spain).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_ES_ES: ComponentLocale = { strings: createComponentStrings(es_ES) };\r\n/**\r\n * Locale for Finnish (Finland).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_FI_FI: ComponentLocale = { strings: createComponentStrings(fi_FI) };\r\n/**\r\n * Locale for French (France).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_FR_FR: ComponentLocale = { strings: createComponentStrings(fr_FR) };\r\n/**\r\n * Locale for Hebrew (Israel).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_HE_IL: ComponentLocale = { strings: createComponentStrings(he_IL) };\r\n/**\r\n * Locale for Italian (Italy).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_IT_IT: ComponentLocale = { strings: createComponentStrings(it_IT) };\r\n/**\r\n * Locale for Japanese (Japan).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_JA_JP: ComponentLocale = { strings: createComponentStrings(ja_JP) };\r\n/**\r\n * Locale for Korean (South Korea).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_KO_KR: ComponentLocale = { strings: createComponentStrings(ko_KR) };\r\n/**\r\n * Locale for Norwegian Bokmål (Norway) .\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_NB_NO: ComponentLocale = { strings: createComponentStrings(nb_NO) };\r\n/**\r\n * Locale for Dutch (Netherlands).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_NL_NL: ComponentLocale = { strings: createComponentStrings(nl_NL) };\r\n/**\r\n * Locale for Polish (Poland).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_PL_PL: ComponentLocale = { strings: createComponentStrings(pl_PL) };\r\n/**\r\n * Locale for Portuguese (Brazil).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_PT_BR: ComponentLocale = { strings: createComponentStrings(pt_BR) };\r\n/**\r\n * Locale for Russian (Russia).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_RU_RU: ComponentLocale = { strings: createComponentStrings(ru_RU) };\r\n/**\r\n * Locale for Swedish (Sweden) .\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_SV_SE: ComponentLocale = { strings: createComponentStrings(sv_SE) };\r\n/**\r\n * Locale for Turkish (Turkey).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_TR_TR: ComponentLocale = { strings: createComponentStrings(tr_TR) };\r\n/**\r\n * Locale for Chinese (Mainland China).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_ZH_CN: ComponentLocale = { strings: createComponentStrings(zh_CN) };\r\n/**\r\n * Locale for Chinese (Taiwan).\r\n *\r\n * @public\r\n */\r\nexport const COMPONENT_LOCALE_ZH_TW: ComponentLocale = { strings: createComponentStrings(zh_TW) };\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/localization/locales/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAAC;AACzC,OAAO,KAAK,MAAM,sBAAsB,CAA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;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC;CACvC,CAAC;AACF;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAoB;IACrD,OAAO,EAAE,sBAAsB,CAAC,KAAK,CAAC;CACvC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { PartialDeep } from 'type-fest';\nimport { ComponentLocale, ComponentStrings } from '..';\nimport en_US from './en-US/strings.json';\nimport en_GB from './en-GB/strings.json';\nimport ar_SA from './ar-SA/strings.json';\nimport cs_CZ from './cs-CZ/strings.json';\nimport de_DE from './de-DE/strings.json';\nimport es_ES from './es-ES/strings.json';\nimport fi_FI from './fi-FI/strings.json';\nimport fr_FR from './fr-FR/strings.json';\nimport he_IL from './he-IL/strings.json';\nimport it_IT from './it-IT/strings.json';\nimport ja_JP from './ja-JP/strings.json';\nimport ko_KR from './ko-KR/strings.json';\nimport nb_NO from './nb-NO/strings.json';\nimport nl_NL from './nl-NL/strings.json';\nimport pl_PL from './pl-PL/strings.json';\nimport pt_BR from './pt-BR/strings.json';\nimport ru_RU from './ru-RU/strings.json';\nimport sv_SE from './sv-SE/strings.json';\nimport tr_TR from './tr-TR/strings.json';\nimport zh_CN from './zh-CN/strings.json';\nimport zh_TW from './zh-TW/strings.json';\nconst createComponentStrings = (localizedStrings: PartialDeep<ComponentStrings>): ComponentStrings => {\n const strings: ComponentStrings = {\n ...en_US\n };\n Object.keys(localizedStrings).forEach((key: string) => {\n strings[key] = {\n ...strings[key],\n ...localizedStrings[key]\n };\n });\n return strings;\n};\n\n/**\r\n * Locale for English (US).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_EN_US: ComponentLocale = {\n strings: en_US\n};\n/**\r\n * Locale for English (GB).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_EN_GB: ComponentLocale = {\n strings: createComponentStrings(en_GB)\n};\n/**\r\n * Locale for Arabic (Saudi Arabia).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_AR_SA: ComponentLocale = {\n strings: createComponentStrings(ar_SA)\n};\n/**\r\n * Locale for Czech (Czech Republic).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_CS_CZ: ComponentLocale = {\n strings: createComponentStrings(cs_CZ)\n};\n/**\r\n * Locale for German (Germany).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_DE_DE: ComponentLocale = {\n strings: createComponentStrings(de_DE)\n};\n/**\r\n * Locale for Spanish (Spain).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_ES_ES: ComponentLocale = {\n strings: createComponentStrings(es_ES)\n};\n/**\r\n * Locale for Finnish (Finland).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_FI_FI: ComponentLocale = {\n strings: createComponentStrings(fi_FI)\n};\n/**\r\n * Locale for French (France).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_FR_FR: ComponentLocale = {\n strings: createComponentStrings(fr_FR)\n};\n/**\r\n * Locale for Hebrew (Israel).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_HE_IL: ComponentLocale = {\n strings: createComponentStrings(he_IL)\n};\n/**\r\n * Locale for Italian (Italy).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_IT_IT: ComponentLocale = {\n strings: createComponentStrings(it_IT)\n};\n/**\r\n * Locale for Japanese (Japan).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_JA_JP: ComponentLocale = {\n strings: createComponentStrings(ja_JP)\n};\n/**\r\n * Locale for Korean (South Korea).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_KO_KR: ComponentLocale = {\n strings: createComponentStrings(ko_KR)\n};\n/**\r\n * Locale for Norwegian Bokmål (Norway) .\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_NB_NO: ComponentLocale = {\n strings: createComponentStrings(nb_NO)\n};\n/**\r\n * Locale for Dutch (Netherlands).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_NL_NL: ComponentLocale = {\n strings: createComponentStrings(nl_NL)\n};\n/**\r\n * Locale for Polish (Poland).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_PL_PL: ComponentLocale = {\n strings: createComponentStrings(pl_PL)\n};\n/**\r\n * Locale for Portuguese (Brazil).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_PT_BR: ComponentLocale = {\n strings: createComponentStrings(pt_BR)\n};\n/**\r\n * Locale for Russian (Russia).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_RU_RU: ComponentLocale = {\n strings: createComponentStrings(ru_RU)\n};\n/**\r\n * Locale for Swedish (Sweden) .\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_SV_SE: ComponentLocale = {\n strings: createComponentStrings(sv_SE)\n};\n/**\r\n * Locale for Turkish (Turkey).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_TR_TR: ComponentLocale = {\n strings: createComponentStrings(tr_TR)\n};\n/**\r\n * Locale for Chinese (Mainland China).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_ZH_CN: ComponentLocale = {\n strings: createComponentStrings(zh_CN)\n};\n/**\r\n * Locale for Chinese (Taiwan).\r\n *\r\n * @public\r\n */\nexport const COMPONENT_LOCALE_ZH_TW: ComponentLocale = {\n strings: createComponentStrings(zh_TW)\n};"]}
@@ -21,6 +21,7 @@ const initialFluentNorthstarTheme = mergeNorthstarThemes(teamsTheme, {
21
21
  }
22
22
  },
23
23
  fontFaces: [],
24
+ // suppressing font faces from teamsTheme as recommended by FluentUI N* to avoid font styling to other elements
24
25
  siteVariables: {
25
26
  // suppressing body styles from teamsTheme to avoid inherited styling to other elements
26
27
  bodyPadding: undefined,
@@ -44,7 +45,9 @@ export const FluentThemeProvider = (props) => {
44
45
  const { fluentTheme, rtl, children } = props;
45
46
  let fluentUITheme = mergeThemes(defaultTheme, fluentTheme);
46
47
  // merge in rtl from FluentThemeProviderProps
47
- fluentUITheme = mergeThemes(fluentUITheme, { rtl });
48
+ fluentUITheme = mergeThemes(fluentUITheme, {
49
+ rtl
50
+ });
48
51
  const fluentNorthstarTheme = mergeNorthstarThemes(initialFluentNorthstarTheme, {
49
52
  componentVariables: {
50
53
  Chat: {
@@ -66,9 +69,9 @@ export const FluentThemeProvider = (props) => {
66
69
  }
67
70
  // add more northstar components to align with Fluent UI theme
68
71
  });
69
- return (React.createElement(ThemeContext.Provider, { value: fluentUITheme },
72
+ return React.createElement(ThemeContext.Provider, { value: fluentUITheme },
70
73
  React.createElement(ThemeProvider, { theme: fluentUITheme, className: wrapper },
71
- React.createElement(Provider, { theme: fluentNorthstarTheme, className: wrapper, rtl: rtl }, children))));
74
+ React.createElement(Provider, { theme: fluentNorthstarTheme, className: wrapper, rtl: rtl }, children)));
72
75
  };
73
76
  /**
74
77
  * React hook to access theme
@@ -1 +1 @@
1
- {"version":3,"file":"FluentThemeProvider.js","sourceRoot":"","sources":["../../../../../../react-components/src/theming/FluentThemeProvider.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,aAAa,EAAuB,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzG,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,QAAQ,EAAE,UAAU,EAAE,uCAAoC;AACxG,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAmBtC,MAAM,OAAO,GAAG,WAAW,CAAC;IAC1B,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,EAAE,EAAE,UAAU,CAAC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,gBAAgB;iBAC5D;aACF;SACF;QACD,8DAA8D;KAC/D,CAAC,CAAC;IAEH,OAAO,CACL,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa;QACzC,oBAAC,aAAa,IAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO;YACrD,oBAAC,QAAQ,IAAC,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAChE,QAAQ,CACA,CACG,CACM,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAU,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { createContext, useContext } from 'react';\nimport { ThemeProvider, Theme, PartialTheme, getTheme, mergeThemes, mergeStyles } from '@fluentui/react';\nimport { mergeThemes as mergeNorthstarThemes, Provider, teamsTheme } from '@internal/northstar-wrapper';\nimport { lightTheme } from './themes';\n\n/**\n * Props for {@link FluentThemeProvider}.\n *\n * @public\n */\nexport interface FluentThemeProviderProps {\n /** Children to be themed. */\n children: React.ReactNode;\n /** Theme for components. Defaults to a light theme if not provided. */\n fluentTheme?: PartialTheme | Theme;\n /**\n * Whether components are displayed right-to-left\n * @defaultValue `false`\n */\n rtl?: boolean;\n}\n\nconst wrapper = mergeStyles({\n height: '100%',\n width: '100%',\n overflow: 'auto'\n});\n\nconst defaultTheme = mergeThemes(getTheme(), lightTheme);\n\n/** Theme context for library's react components */\nconst ThemeContext = createContext<Theme>(defaultTheme);\n\nconst initialFluentNorthstarTheme = mergeNorthstarThemes(teamsTheme, {\n componentStyles: {\n ChatMessage: {\n root: {\n lineHeight: '1.4286'\n }\n }\n },\n fontFaces: [], // suppressing font faces from teamsTheme as recommended by FluentUI N* to avoid font styling to other elements\n siteVariables: {\n // suppressing body styles from teamsTheme to avoid inherited styling to other elements\n bodyPadding: undefined,\n bodyFontSize: undefined,\n bodyFontFamily: undefined,\n bodyBackground: undefined,\n bodyColor: undefined,\n bodyLineHeight: undefined\n }\n});\n\n/**\n * Provider to apply a Fluent theme across this library's react components.\n *\n * @remarks Components in this library are composed primarily from [Fluent UI](https://developer.microsoft.com/fluentui#/controls/web),\n * controls, and also from [Fluent React Northstar](https://fluentsite.z22.web.core.windows.net/0.53.0) controls.\n * This provider handles applying any theme provided to both the underlying Fluent UI controls, as well as the Fluent React Northstar controls.\n *\n * @public\n */\nexport const FluentThemeProvider = (props: FluentThemeProviderProps): JSX.Element => {\n const { fluentTheme, rtl, children } = props;\n\n let fluentUITheme: Theme = mergeThemes(defaultTheme, fluentTheme);\n // merge in rtl from FluentThemeProviderProps\n fluentUITheme = mergeThemes(fluentUITheme, { rtl });\n\n const fluentNorthstarTheme = mergeNorthstarThemes(initialFluentNorthstarTheme, {\n componentVariables: {\n Chat: {\n backgroundColor: fluentUITheme.palette.white\n },\n ChatMessage: {\n authorColor: fluentUITheme.palette.neutralPrimary,\n contentColor: fluentUITheme.palette.neutralPrimary,\n backgroundColor: fluentUITheme.palette.neutralLighter,\n backgroundColorMine: fluentUITheme.palette.themeLight\n }\n },\n componentStyles: {\n ChatMessage: {\n timestamp: {\n WebkitTextFillColor: fluentUITheme.palette.neutralSecondary\n }\n }\n }\n // add more northstar components to align with Fluent UI theme\n });\n\n return (\n <ThemeContext.Provider value={fluentUITheme}>\n <ThemeProvider theme={fluentUITheme} className={wrapper}>\n <Provider theme={fluentNorthstarTheme} className={wrapper} rtl={rtl}>\n {children}\n </Provider>\n </ThemeProvider>\n </ThemeContext.Provider>\n );\n};\n\n/**\n * React hook to access theme\n *\n * @public\n */\nexport const useTheme = (): Theme => useContext(ThemeContext);\n\"../../../northstar-wrapper/src\""]}
1
+ {"version":3,"file":"FluentThemeProvider.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/theming/FluentThemeProvider.tsx"],"names":[],"mappings":"AAAA,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Aa,EAAE;QACzC,GAAG;KACJ,CAAC,CAAC;IACH,MAAM,oBAAoB,GAAG,oBAAoB,CAAC,2BAA2B,EAAE;QAC7E,kBAAkB,EAAE;YAClB,IAAI,EAAE;gBACJ,eAAe,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK;aAC7C;YACD,WAAW,EAAE;gBACX,WAAW,EAAE,aAAa,CAAC,OAAO,CAAC,cAAc;gBACjD,YAAY,EAAE,aAAa,CAAC,OAAO,CAAC,cAAc;gBAClD,eAAe,EAAE,aAAa,CAAC,OAAO,CAAC,cAAc;gBACrD,mBAAmB,EAAE,aAAa,CAAC,OAAO,CAAC,UAAU;aACtD;SACF;QACD,eAAe,EAAE;YACf,WAAW,EAAE;gBACX,SAAS,EAAE;oBACT,mBAAmB,EAAE,aAAa,CAAC,OAAO,CAAC,gBAAgB;iBAC5D;aACF;SACF;QACD,8DAA8D;KAC/D,CAAC,CAAC;IAEH,OAAO,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa;QAC9C,oBAAC,aAAa,IAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO;YACrD,oBAAC,QAAQ,IAAC,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAChE,QAAQ,CACA,CACG,CACM,CAAC;AAC7B,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAU,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { createContext, useContext } from 'react';\nimport { ThemeProvider, Theme, PartialTheme, getTheme, mergeThemes, mergeStyles } from '@fluentui/react';\nimport { mergeThemes as mergeNorthstarThemes, Provider, teamsTheme } from '@internal/northstar-wrapper';\nimport { lightTheme } from './themes';\n\n/**\n * Props for {@link FluentThemeProvider}.\n *\n * @public\n */\nexport interface FluentThemeProviderProps {\n /** Children to be themed. */\n children: React.ReactNode;\n /** Theme for components. Defaults to a light theme if not provided. */\n fluentTheme?: PartialTheme | Theme;\n /**\n * Whether components are displayed right-to-left\n * @defaultValue `false`\n */\n rtl?: boolean;\n}\nconst wrapper = mergeStyles({\n height: '100%',\n width: '100%',\n overflow: 'auto'\n});\nconst defaultTheme = mergeThemes(getTheme(), lightTheme);\n\n/** Theme context for library's react components */\nconst ThemeContext = createContext<Theme>(defaultTheme);\nconst initialFluentNorthstarTheme = mergeNorthstarThemes(teamsTheme, {\n componentStyles: {\n ChatMessage: {\n root: {\n lineHeight: '1.4286'\n }\n }\n },\n fontFaces: [],\n // suppressing font faces from teamsTheme as recommended by FluentUI N* to avoid font styling to other elements\n siteVariables: {\n // suppressing body styles from teamsTheme to avoid inherited styling to other elements\n bodyPadding: undefined,\n bodyFontSize: undefined,\n bodyFontFamily: undefined,\n bodyBackground: undefined,\n bodyColor: undefined,\n bodyLineHeight: undefined\n }\n});\n\n/**\n * Provider to apply a Fluent theme across this library's react components.\n *\n * @remarks Components in this library are composed primarily from [Fluent UI](https://developer.microsoft.com/fluentui#/controls/web),\n * controls, and also from [Fluent React Northstar](https://fluentsite.z22.web.core.windows.net/0.53.0) controls.\n * This provider handles applying any theme provided to both the underlying Fluent UI controls, as well as the Fluent React Northstar controls.\n *\n * @public\n */\nexport const FluentThemeProvider = (props: FluentThemeProviderProps): JSX.Element => {\n const {\n fluentTheme,\n rtl,\n children\n } = props;\n let fluentUITheme: Theme = mergeThemes(defaultTheme, fluentTheme);\n // merge in rtl from FluentThemeProviderProps\n fluentUITheme = mergeThemes(fluentUITheme, {\n rtl\n });\n const fluentNorthstarTheme = mergeNorthstarThemes(initialFluentNorthstarTheme, {\n componentVariables: {\n Chat: {\n backgroundColor: fluentUITheme.palette.white\n },\n ChatMessage: {\n authorColor: fluentUITheme.palette.neutralPrimary,\n contentColor: fluentUITheme.palette.neutralPrimary,\n backgroundColor: fluentUITheme.palette.neutralLighter,\n backgroundColorMine: fluentUITheme.palette.themeLight\n }\n },\n componentStyles: {\n ChatMessage: {\n timestamp: {\n WebkitTextFillColor: fluentUITheme.palette.neutralSecondary\n }\n }\n }\n // add more northstar components to align with Fluent UI theme\n });\n\n return <ThemeContext.Provider value={fluentUITheme}>\n <ThemeProvider theme={fluentUITheme} className={wrapper}>\n <Provider theme={fluentNorthstarTheme} className={wrapper} rtl={rtl}>\n {children}\n </Provider>\n </ThemeProvider>\n </ThemeContext.Provider>;\n};\n\n/**\n * React hook to access theme\n *\n * @public\n */\nexport const useTheme = (): Theme => useContext(ThemeContext);\"../../../northstar-wrapper/src\""]}