@azure/communication-react 1.4.1-beta.1 → 1.4.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 (835) hide show
  1. package/CHANGELOG.json +0 -507
  2. package/{CHANGELOG.beta.md → CHANGELOG.md} +292 -47
  3. package/dist/communication-react.d.ts +59 -1782
  4. package/dist/dist-cjs/communication-react/index.js +8226 -12265
  5. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/identifier.js +24 -7
  13. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  14. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js +1 -2
  16. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/logEvent.js +0 -2
  18. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  19. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  20. package/dist/dist-esm/acs-ui-common/src/safeStringify.js +1 -2
  21. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  22. package/dist/dist-esm/acs-ui-common/src/telemetry.d.ts +0 -10
  23. package/dist/dist-esm/acs-ui-common/src/telemetry.js +0 -10
  24. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  25. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  26. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  27. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +0 -9
  28. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -10
  29. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  30. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -13
  31. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +9 -27
  32. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +46 -22
  34. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  35. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +43 -7
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +266 -26
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.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 +5 -17
  40. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +3 -7
  42. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -29
  43. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  44. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js +3 -6
  45. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  46. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +0 -6
  47. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -8
  48. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +9 -26
  50. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js +0 -2
  52. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  53. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +2 -12
  54. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js +1 -27
  55. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +3 -8
  57. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +2 -16
  59. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +1 -27
  60. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  61. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  62. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js +0 -2
  63. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  64. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +0 -11
  65. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +3 -19
  66. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  67. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +1 -7
  68. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +0 -11
  69. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  70. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +4 -13
  71. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  72. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +5 -21
  73. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +2 -16
  75. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js +187 -42
  76. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -21
  78. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +1 -4
  79. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  80. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +0 -4
  81. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +10 -60
  82. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +80 -12
  84. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  85. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js +1 -2
  86. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  87. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -3
  89. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +8 -19
  90. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +3 -4
  92. package/dist/dist-esm/calling-stateful-client/src/Converter.js +8 -15
  93. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  94. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +55 -58
  95. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.d.ts +1 -2
  97. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +16 -16
  98. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.d.ts +3 -3
  100. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js +1 -4
  101. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  102. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +18 -11
  103. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  104. package/dist/dist-esm/calling-stateful-client/src/Logger.d.ts +1 -0
  105. package/dist/dist-esm/calling-stateful-client/src/Logger.js +1 -0
  106. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +0 -1
  108. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +1 -12
  109. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  110. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +1 -4
  111. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  112. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  113. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +2 -14
  114. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  115. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +0 -23
  116. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +36 -52
  117. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  118. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +54 -33
  119. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  120. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js +1 -4
  121. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  122. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -5
  123. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  124. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +5 -3
  125. package/dist/dist-esm/calling-stateful-client/src/index.js +1 -2
  126. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  127. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -6
  128. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  129. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  130. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  131. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +18 -21
  132. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  133. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -4
  134. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +13 -11
  135. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  136. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  137. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  138. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js +1 -4
  139. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  140. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  141. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +13 -48
  142. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  143. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  144. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  145. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  146. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js +0 -2
  147. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  148. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +8 -5
  149. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  150. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +2 -7
  151. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  152. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  153. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  154. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js +1 -4
  155. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  156. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +16 -17
  157. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  158. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  159. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +15 -16
  160. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  161. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  162. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +68 -59
  163. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  164. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +121 -115
  165. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  166. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +0 -2
  167. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  168. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  169. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js +0 -2
  170. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  171. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js +0 -2
  172. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  173. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js +0 -2
  174. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  175. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js +0 -2
  176. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  177. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js +0 -2
  178. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  179. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js +0 -2
  180. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  181. package/dist/dist-esm/communication-react/src/index.d.ts +2 -20
  182. package/dist/dist-esm/communication-react/src/index.js +1 -13
  183. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  184. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  185. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  186. package/dist/dist-esm/react-components/src/components/CameraButton.js +9 -10
  187. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  188. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +8 -7
  189. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +17 -38
  191. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +5 -12
  193. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +31 -26
  195. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  196. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +28 -63
  197. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  198. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +12 -9
  199. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  200. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  201. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  202. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +10 -19
  203. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  204. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +3 -4
  205. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  206. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  207. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/ControlBar.js +15 -13
  210. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  211. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +4 -14
  212. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  213. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +15 -6
  214. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/components/{DevicePermissions/DevicePermissionDropdown.d.ts → DevicePermissionDropdown.d.ts} +0 -4
  216. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js +29 -0
  217. package/dist/dist-esm/react-components/src/components/DevicePermissionDropdown.js.map +1 -0
  218. package/dist/dist-esm/react-components/src/components/DevicesButton.js +30 -7
  219. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  220. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +48 -48
  221. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  222. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +6 -2
  224. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +9 -12
  226. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  227. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +23 -11
  228. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  229. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +3 -4
  230. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  232. package/dist/dist-esm/react-components/src/components/EndCallButton.js +8 -5
  233. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/ErrorBar.js +6 -4
  235. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/FileCard.js +4 -4
  237. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +1 -1
  239. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  240. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +10 -14
  241. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  242. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +8 -10
  243. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  244. package/dist/dist-esm/react-components/src/components/GridLayout.js +44 -55
  245. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  246. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +3 -4
  247. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  248. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +8 -7
  249. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  250. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +12 -6
  251. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  252. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +5 -3
  253. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  254. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +9 -28
  255. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  256. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +36 -27
  257. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  258. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +1 -23
  259. package/dist/dist-esm/react-components/src/components/MessageThread.js +120 -188
  260. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  261. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +11 -17
  262. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  263. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +137 -137
  264. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  265. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -15
  266. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +16 -19
  267. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  268. package/dist/dist-esm/react-components/src/components/ParticipantList.js +9 -25
  269. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  270. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +31 -44
  271. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  273. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  274. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  275. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  276. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +5 -18
  277. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  278. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +4 -6
  279. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  280. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +12 -6
  281. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +0 -35
  283. package/dist/dist-esm/react-components/src/components/SendBox.js +10 -37
  284. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  285. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +3 -4
  286. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  287. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  288. package/dist/dist-esm/react-components/src/components/StreamMedia.js +4 -5
  289. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  290. package/dist/dist-esm/react-components/src/components/SystemMessage.js +4 -2
  291. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  292. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +1 -2
  293. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +17 -29
  294. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  295. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +9 -15
  296. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  297. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  298. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  299. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +6 -8
  300. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  301. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  302. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  303. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +6 -13
  304. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/VideoGallery.js +44 -97
  306. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -11
  308. package/dist/dist-esm/react-components/src/components/VideoTile.js +32 -36
  309. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  310. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js +10 -4
  311. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js.map +1 -1
  312. package/dist/dist-esm/react-components/src/components/index.d.ts +2 -16
  313. package/dist/dist-esm/react-components/src/components/index.js +1 -11
  314. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  315. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +12 -3
  316. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js +0 -2
  318. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  319. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +2 -0
  320. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  321. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  322. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  323. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js +0 -2
  324. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/styles/IconButton.styles.js.map +1 -1
  326. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +4 -1
  327. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  328. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  329. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +11 -10
  330. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  331. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +1 -0
  332. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  333. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  334. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +11 -3
  335. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  336. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +3 -0
  337. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  338. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.d.ts +5 -1
  340. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +12 -0
  341. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  342. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  343. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +39 -18
  344. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  345. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.d.ts +0 -4
  346. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +0 -6
  347. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  348. package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js.map +1 -1
  349. package/dist/dist-esm/react-components/src/components/utils/Datetime.js +4 -10
  350. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  351. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -6
  352. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  353. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  354. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js +5 -10
  355. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  356. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +7 -7
  357. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  358. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  359. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  360. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  361. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  362. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +3 -1
  363. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  364. package/dist/dist-esm/react-components/src/components/utils.d.ts +0 -4
  365. package/dist/dist-esm/react-components/src/components/utils.js +11 -21
  366. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  367. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +13 -21
  368. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  369. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  371. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  372. package/dist/dist-esm/react-components/src/index.d.ts +0 -2
  373. package/dist/dist-esm/react-components/src/index.js +0 -2
  374. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  375. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -42
  376. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  377. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  378. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +2 -56
  379. package/dist/dist-esm/react-components/src/localization/locales/index.js +42 -16
  380. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +8 -7
  382. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  383. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -15
  384. package/dist/dist-esm/react-components/src/theming/icons.js +12 -113
  385. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  386. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  387. package/dist/dist-esm/react-components/src/theming/themeUtils.js +1 -4
  388. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  389. package/dist/dist-esm/react-components/src/theming/themes.js +0 -2
  390. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  391. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +0 -7
  392. package/dist/dist-esm/react-components/src/types/ChatMessage.js +0 -2
  393. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  394. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  395. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js +0 -2
  396. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  397. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -3
  398. package/dist/dist-esm/react-components/src/types/OnRender.js +0 -2
  399. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  400. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +0 -3
  401. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js +0 -2
  402. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  403. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  404. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -6
  405. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  406. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  407. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -76
  408. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +18 -110
  409. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  410. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -120
  411. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  412. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +6 -52
  413. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +47 -167
  414. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +1 -51
  416. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -11
  417. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  418. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  419. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  420. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  421. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -2
  422. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  423. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +0 -3
  424. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +10 -76
  425. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  426. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -2
  427. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +13 -136
  428. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  429. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.d.ts +0 -2
  430. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js +0 -23
  431. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageCameraDropdown.js.map +1 -1
  432. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.d.ts +0 -2
  433. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js +0 -25
  434. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageMicDropdown.js.map +1 -1
  435. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +4 -5
  436. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  437. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +3 -3
  438. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  439. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +23 -35
  440. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  441. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -2
  442. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +20 -73
  443. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  444. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +21 -16
  445. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  446. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +14 -4
  447. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  448. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  449. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  450. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +3 -4
  451. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  452. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  453. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  454. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -1
  455. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  456. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +4 -41
  457. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  458. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +2 -5
  459. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  460. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +8 -12
  461. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  462. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +2 -5
  463. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  464. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -3
  465. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  466. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +9 -7
  467. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  468. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +6 -29
  469. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  470. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  471. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  472. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  473. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -2
  474. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  475. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +0 -1
  476. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +4 -10
  477. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  478. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -8
  479. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +12 -139
  480. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  481. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +0 -1
  482. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +8 -21
  483. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  484. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +2 -2
  485. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  486. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  487. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  488. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  489. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -5
  490. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -7
  491. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  492. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  493. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  494. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  495. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  496. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  497. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  498. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  499. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +2 -2
  500. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +6 -13
  501. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  502. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +1 -1
  503. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -3
  504. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  505. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +4 -4
  506. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +0 -2
  507. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  508. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  509. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +2 -4
  510. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  511. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  512. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  513. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  514. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +2 -2
  515. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +2 -2
  516. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  517. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  518. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  519. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  520. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +2 -2
  521. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  522. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  523. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  524. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.d.ts +2 -6
  525. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +10 -11
  526. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  527. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +6 -2
  528. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  529. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js +0 -2
  530. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  531. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +2 -4
  532. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  533. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +4 -4
  534. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  535. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +4 -3
  536. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  537. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  538. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  539. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  540. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js +0 -2
  541. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  542. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +1 -0
  543. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  544. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +3 -23
  545. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js +0 -2
  546. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  547. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -9
  548. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +17 -77
  549. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  550. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  551. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +4 -78
  552. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +18 -77
  553. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  554. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +0 -1
  555. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +16 -43
  556. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
  557. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.d.ts +0 -2
  558. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +14 -36
  559. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
  560. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js +1 -1
  561. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js.map +1 -1
  562. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js +7 -11
  563. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  564. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js +0 -2
  565. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  566. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js +6 -3
  567. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js.map +1 -1
  568. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js +1 -1
  569. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +1 -1
  570. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.d.ts +0 -1
  571. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +1 -1
  572. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -32
  573. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  574. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -22
  575. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +11 -140
  576. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  577. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +0 -56
  578. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  579. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -9
  580. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -36
  581. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  582. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -9
  583. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -34
  584. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  585. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +2 -4
  586. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  587. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js +21 -67
  588. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +1 -1
  589. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js +1 -2
  590. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  591. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +0 -1
  592. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  593. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -3
  594. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  595. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -11
  596. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -10
  597. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  598. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +2 -0
  599. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +13 -2
  600. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  601. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -20
  602. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +2 -8
  603. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  604. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +5 -3
  605. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  606. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +9 -41
  607. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  608. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  609. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  610. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +0 -9
  611. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +36 -111
  612. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  613. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  614. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -156
  615. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  616. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -13
  617. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js +0 -2
  618. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  619. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -7
  620. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  621. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
  622. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +6 -18
  623. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  624. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js +0 -2
  625. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js.map +1 -1
  626. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  627. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +6 -6
  628. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  629. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +1 -5
  630. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  631. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  632. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -3
  633. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  634. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +6 -2
  635. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  636. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -5
  637. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +6 -17
  638. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  639. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +4 -10
  640. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  641. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +14 -15
  642. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  643. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +5 -3
  644. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  645. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +6 -22
  646. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  647. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  648. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  649. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +9 -7
  650. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  651. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +1 -7
  652. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +7 -26
  653. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  654. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +1 -2
  655. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +18 -6
  656. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  657. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +1 -2
  658. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +8 -10
  659. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  660. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  661. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -28
  662. package/dist/dist-esm/react-composites/src/composites/common/icons.js +8 -23
  663. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  664. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js +0 -2
  665. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  666. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +16 -5
  667. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  668. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +51 -12
  669. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  670. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +22 -5
  671. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  672. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +22 -6
  673. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  674. package/dist/dist-esm/react-composites/src/composites/common/utils.js +12 -17
  675. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  676. package/dist/dist-esm/react-composites/src/composites/index.js +0 -2
  677. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  678. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  679. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  680. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  681. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +2 -2
  682. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +2 -2
  683. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +2 -2
  684. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +2 -2
  685. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js +0 -2
  686. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  687. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +2 -2
  688. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +2 -2
  689. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +2 -2
  690. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +2 -2
  691. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +2 -2
  692. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +2 -2
  693. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +2 -2
  694. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +2 -2
  695. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +2 -2
  696. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  697. package/package.json +12 -12
  698. package/CHANGELOG.stable.md +0 -287
  699. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +0 -51
  700. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -270
  701. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +0 -1
  702. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.d.ts +0 -20
  703. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +0 -36
  704. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +0 -1
  705. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +0 -43
  706. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +0 -81
  707. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +0 -1
  708. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +0 -26
  709. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js +0 -4
  710. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +0 -1
  711. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +0 -53
  712. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +0 -204
  713. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +0 -1
  714. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.d.ts +0 -13
  715. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -88
  716. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +0 -1
  717. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +0 -19
  718. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +0 -89
  719. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +0 -1
  720. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +0 -23
  721. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -48
  722. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +0 -1
  723. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +0 -19
  724. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +0 -35
  725. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +0 -1
  726. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -8
  727. package/dist/dist-esm/calling-stateful-client/src/index-public.js +0 -4
  728. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +0 -1
  729. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  730. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -37
  731. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  732. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  733. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -58
  734. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  735. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +0 -27
  736. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +0 -1
  737. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.d.ts +0 -101
  738. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js +0 -80
  739. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissions.js.map +0 -1
  740. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.d.ts +0 -86
  741. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js +0 -31
  742. package/dist/dist-esm/react-components/src/components/DevicePermissions/DomainPermissionsScaffolding.js.map +0 -1
  743. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  744. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  745. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  746. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -32
  747. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -33
  748. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +0 -1
  749. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  750. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  751. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  752. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.d.ts +0 -38
  753. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js +0 -92
  754. package/dist/dist-esm/react-components/src/components/styles/DomainPermissions.styles.js.map +0 -1
  755. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.d.ts +0 -22
  756. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js +0 -53
  757. package/dist/dist-esm/react-components/src/components/styles/UnsupportedBrowser.styles.js.map +0 -1
  758. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  759. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  760. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  761. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -61
  762. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  763. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  764. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  765. package/dist/dist-esm/react-components/src/permissions/index.js +0 -4
  766. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  767. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  768. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  769. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  770. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.d.ts +0 -24
  771. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +0 -80
  772. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +0 -1
  773. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.d.ts +0 -28
  774. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js +0 -32
  775. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationpageErrorBar.js.map +0 -1
  776. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  777. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  778. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  779. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -17
  780. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +0 -63
  781. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +0 -1
  782. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  783. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  784. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  785. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.d.ts +0 -16
  786. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js +0 -38
  787. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js.map +0 -1
  788. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -15
  789. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -36
  790. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  791. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -13
  792. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -26
  793. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  794. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  795. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  796. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  797. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.d.ts +0 -67
  798. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js +0 -75
  799. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +0 -1
  800. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.d.ts +0 -13
  801. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js +0 -65
  802. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +0 -1
  803. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  804. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  805. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  806. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  807. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -21
  808. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  809. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  810. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  811. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  812. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  813. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -13
  814. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  815. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -23
  816. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -12
  817. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  818. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  819. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -105
  820. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  821. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  822. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  823. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  824. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  825. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -60
  826. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  827. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  828. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  829. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
  830. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -17
  831. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +0 -42
  832. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +0 -1
  833. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +0 -11
  834. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +0 -40
  835. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +0 -1
@@ -30,7 +30,7 @@ export const GridLayout = (props) => {
30
30
  return calculateGridProps(numberOfChildren, currentWidth, currentHeight);
31
31
  }, [numberOfChildren, currentWidth, currentHeight]);
32
32
  const cssGridStyles = useMemo(() => createGridStyles(numberOfChildren, gridProps), [numberOfChildren, gridProps]);
33
- return (React.createElement("div", { ref: containerRef, className: mergeStyles(gridLayoutStyle, cssGridStyles, styles === null || styles === void 0 ? void 0 : styles.root) }, children));
33
+ return React.createElement("div", { ref: containerRef, className: mergeStyles(gridLayoutStyle, cssGridStyles, styles === null || styles === void 0 ? void 0 : styles.root) }, children);
34
34
  };
35
35
  /**
36
36
  * The cell aspect ratio we aim for in a grid
@@ -52,9 +52,12 @@ const isCloserThan = (a, b, target) => {
52
52
  */
53
53
  export const calculateGridProps = (numberOfItems, width, height) => {
54
54
  if (numberOfItems <= 0) {
55
- return { fillDirection: 'horizontal', rows: 0, columns: 0 };
56
- }
57
- // If width or height are 0 then we return rows and column evenly
55
+ return {
56
+ fillDirection: 'horizontal',
57
+ rows: 0,
58
+ columns: 0
59
+ };
60
+ } // If width or height are 0 then we return rows and column evenly
58
61
  if (width <= 0 || height <= 0) {
59
62
  return {
60
63
  fillDirection: 'horizontal',
@@ -62,18 +65,14 @@ export const calculateGridProps = (numberOfItems, width, height) => {
62
65
  columns: Math.ceil(Math.sqrt(numberOfItems))
63
66
  };
64
67
  }
65
- const aspectRatio = width / height;
66
- // Approximate how many rows to divide the grid to achieve cells close to the TARGET_CELL_ASPECT_RATIO
67
- let rows = Math.floor(Math.sqrt((TARGET_CELL_ASPECT_RATIO / aspectRatio) * numberOfItems)) || 1;
68
- // Make sure rows do not exceed numberOfItems
69
- rows = Math.min(rows, numberOfItems);
70
- // Given the rows, get the minimum columns needed to create enough cells for the number of items
71
- let columns = Math.ceil(numberOfItems / rows);
72
- // Default fill direction to horizontal
68
+ const aspectRatio = width / height; // Approximate how many rows to divide the grid to achieve cells close to the TARGET_CELL_ASPECT_RATIO
69
+ let rows = Math.floor(Math.sqrt(TARGET_CELL_ASPECT_RATIO / aspectRatio * numberOfItems)) || 1; // Make sure rows do not exceed numberOfItems
70
+ rows = Math.min(rows, numberOfItems); // Given the rows, get the minimum columns needed to create enough cells for the number of items
71
+ let columns = Math.ceil(numberOfItems / rows); // Default fill direction to horizontal
73
72
  let fillDirection = 'horizontal';
74
73
  while (rows < numberOfItems) {
75
74
  // If cell aspect ratio is less than MINIMUM_CELL_ASPECT_RATIO_ALLOWED then try more rows
76
- if ((rows / columns) * aspectRatio < MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {
75
+ if (rows / columns * aspectRatio < MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {
77
76
  rows += 1;
78
77
  columns = Math.ceil(numberOfItems / rows);
79
78
  continue;
@@ -101,8 +100,7 @@ export const calculateGridProps = (numberOfItems, width, height) => {
101
100
  else if (!canStretchHorizontally) {
102
101
  fillDirection = 'vertical';
103
102
  break;
104
- }
105
- // We need to figure out whether the big cells should stretch horizontally or vertically
103
+ } // We need to figure out whether the big cells should stretch horizontally or vertically
106
104
  // to fill in the empty spaces
107
105
  // e.g. For 2 rows, 3 columns, but only 5 items, we need to choose whether to stretch cells
108
106
  // horizontally or vertically
@@ -112,10 +110,8 @@ export const calculateGridProps = (numberOfItems, width, height) => {
112
110
  // | | | | | | |
113
111
  // |___________|__________| |_______|_______|_______|
114
112
  // Calculate the aspect ratio of big cells stretched horizontally
115
- const horizontallyStretchedCellRatio = (rows / (columns - 1)) * aspectRatio;
116
- // Calculate the aspect ratio of big cells stretched vertically
117
- const verticallyStretchedCellRatio = ((rows - 1) / columns) * aspectRatio;
118
- // We know the horizontally stretched cells aspect ratio is higher than MINIMUM_CELL_ASPECT_RATIO_ALLOWED. If vertically stretched cells
113
+ const horizontallyStretchedCellRatio = rows / (columns - 1) * aspectRatio; // Calculate the aspect ratio of big cells stretched vertically
114
+ const verticallyStretchedCellRatio = (rows - 1) / columns * aspectRatio; // We know the horizontally stretched cells aspect ratio is higher than MINIMUM_CELL_ASPECT_RATIO_ALLOWED. If vertically stretched cells
119
115
  // is also higher than the MINIMUM_CELL_ASPECT_RATIO_ALLOWED, then choose which aspect ratio is better.
120
116
  if (verticallyStretchedCellRatio >= MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {
121
117
  // If vertically stetched cell has an aspect ratio closer to TARGET_CELL_ASPECT_RATIO then change the fill direction to vertical
@@ -126,7 +122,11 @@ export const calculateGridProps = (numberOfItems, width, height) => {
126
122
  }
127
123
  break;
128
124
  }
129
- return { fillDirection, rows, columns };
125
+ return {
126
+ fillDirection,
127
+ rows,
128
+ columns
129
+ };
130
130
  };
131
131
  /**
132
132
  * Creates a styles classname with CSS Grid related styles given GridProps and the number of items to distribute as evenly as possible.
@@ -135,50 +135,39 @@ export const calculateGridProps = (numberOfItems, width, height) => {
135
135
  * @returns - classname
136
136
  */
137
137
  export const createGridStyles = (numberOfItems, gridProps) => {
138
- const isHorizontal = gridProps.fillDirection === 'horizontal';
139
- // Blocks are either rows or columns depending on whether we fill horizontally or vertically. Each block may differ in the number of cells.
138
+ const isHorizontal = gridProps.fillDirection === 'horizontal'; // Blocks are either rows or columns depending on whether we fill horizontally or vertically. Each block may differ in the number of cells.
140
139
  const blocks = isHorizontal ? gridProps.rows : gridProps.columns;
141
140
  const smallCellsPerBlock = Math.ceil(numberOfItems / blocks);
142
141
  const bigCellsPerBlock = Math.floor(numberOfItems / blocks);
143
- const numBigCells = (gridProps.rows * gridProps.columns - numberOfItems) * bigCellsPerBlock;
144
- // Get grid units
142
+ const numBigCells = (gridProps.rows * gridProps.columns - numberOfItems) * bigCellsPerBlock; // Get grid units
145
143
  // e.g. If some blocks have 2 big cells while others have 3 small cells, we need to work with 6 units per block
146
144
  const units = smallCellsPerBlock * bigCellsPerBlock;
147
- const gridStyles = isHorizontal
148
- ? {
149
- gridTemplateColumns: `repeat(${units}, minmax(0, 1fr))`,
150
- gridTemplateRows: `repeat(${blocks}, minmax(0, 1fr))`,
151
- gridAutoFlow: 'row'
145
+ const gridStyles = isHorizontal ? {
146
+ gridTemplateColumns: `repeat(${units}, minmax(0, 1fr))`,
147
+ gridTemplateRows: `repeat(${blocks}, minmax(0, 1fr))`,
148
+ gridAutoFlow: 'row'
149
+ } : {
150
+ gridTemplateColumns: `repeat(${blocks}, minmax(0, 1fr))`,
151
+ gridTemplateRows: `repeat(${units}, minmax(0, 1fr))`,
152
+ gridAutoFlow: 'column'
153
+ };
154
+ const smallCellStyle = isHorizontal ? {
155
+ '> *': {
156
+ gridColumn: `auto / span ${units / smallCellsPerBlock}`
152
157
  }
153
- : {
154
- gridTemplateColumns: `repeat(${blocks}, minmax(0, 1fr))`,
155
- gridTemplateRows: `repeat(${units}, minmax(0, 1fr))`,
156
- gridAutoFlow: 'column'
157
- };
158
- const smallCellStyle = isHorizontal
159
- ? {
160
- '> *': {
161
- gridColumn: `auto / span ${units / smallCellsPerBlock}`
162
- }
158
+ } : {
159
+ '> *': {
160
+ gridRow: `auto / span ${units / smallCellsPerBlock}`
163
161
  }
164
- : {
165
- '> *': {
166
- gridRow: `auto / span ${units / smallCellsPerBlock}`
167
- }
168
- };
169
- // If there are big cells, we are choosing to place the latest children into the big cells.
162
+ }; // If there are big cells, we are choosing to place the latest children into the big cells.
170
163
  // That is why we use the '> *:nth-last-child(-n + ${numBigCells})' CSS selector below
171
- const bigCellStyle = numBigCells
172
- ? {
173
- [`> *:nth-last-child(-n + ${numBigCells})`]: isHorizontal
174
- ? {
175
- gridColumn: `auto / span ${units / bigCellsPerBlock}`
176
- }
177
- : {
178
- gridRow: `auto / span ${units / bigCellsPerBlock}`
179
- }
164
+ const bigCellStyle = numBigCells ? {
165
+ [`> *:nth-last-child(-n + ${numBigCells})`]: isHorizontal ? {
166
+ gridColumn: `auto / span ${units / bigCellsPerBlock}`
167
+ } : {
168
+ gridRow: `auto / span ${units / bigCellsPerBlock}`
180
169
  }
181
- : {};
170
+ } : {};
182
171
  return mergeStyles(gridStyles, smallCellStyle, bigCellStyle);
183
172
  };
184
173
  //# sourceMappingURL=GridLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridLayout.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/GridLayout.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAU,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AA4B7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAe,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACnC,MAAM,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAExD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtD,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAElD,MAAM,QAAQ,GAAG,MAAM,CACrB,IAAI,cAAc,CAAC,CAAC,OAAO,EAAQ,EAAE;QACnC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QACjD,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC3B,CAAC,CAAC,CACH,CAAC;IAEF,S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AAkB,EAAE;aACrD;SACF,CAAC;IAEN,2FAA2F;IAC3F,sFAAsF;IACtF,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC;YACE,CAAC,2BAA2B,WAAW,GAAG,CAAC,EAAE,YAAY;gBACvD,CAAC,CAAC;oBACE,UAAU,EAAE,eAAe,KAAK,GAAG,gBAAgB,EAAE;iBACtD;gBACH,CAAC,CAAC;oBACE,OAAO,EAAE,eAAe,KAAK,GAAG,gBAAgB,EAAE;iBACnD;SACN;QACH,CAAC,CAAC,EAAE,CAAC;IAEP,OAAO,WAAW,CAAC,UAAU,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;AAC/D,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { IStyle, mergeStyles } from '@fluentui/react';\nimport React, { useRef, useEffect, useState, useMemo } from 'react';\nimport { BaseCustomStyles } from '../types';\nimport { gridLayoutStyle } from './styles/GridLayout.styles';\n\n/**\n * Props for {@link GridLayout}.\n *\n * @public\n */\nexport interface GridLayoutProps {\n children: React.ReactNode;\n /**\n * Allows users to pass in an object contains custom CSS styles.\n * @Example\n * ```\n * <GridLayout styles={{ root: { background: 'blue' } }} />\n * ```\n */\n styles?: BaseCustomStyles;\n}\n\n/**\n * {@link GridLayout} Component Styles.\n * @public\n */\nexport interface GridLayoutStyles extends BaseCustomStyles {\n /** Styles for each child of {@link GridLayout} */\n children?: IStyle;\n}\n\n/**\n * A component to lay out audio / video participants tiles in a call.\n *\n * @public\n */\nexport const GridLayout = (props: GridLayoutProps): JSX.Element => {\n const { children, styles } = props;\n const numberOfChildren = React.Children.count(children);\n\n const [currentWidth, setCurrentWidth] = useState(0);\n const [currentHeight, setCurrentHeight] = useState(0);\n\n const containerRef = useRef<HTMLDivElement>(null);\n\n const observer = useRef(\n new ResizeObserver((entries): void => {\n const { width, height } = entries[0].contentRect;\n setCurrentWidth(width);\n setCurrentHeight(height);\n })\n );\n\n useEffect(() => {\n if (containerRef.current) {\n observer.current.observe(containerRef.current);\n }\n const currentObserver = observer.current;\n return () => currentObserver.disconnect();\n }, [observer, containerRef]);\n\n const gridProps = useMemo(() => {\n return calculateGridProps(numberOfChildren, currentWidth, currentHeight);\n }, [numberOfChildren, currentWidth, currentHeight]);\n\n const cssGridStyles = useMemo(() => createGridStyles(numberOfChildren, gridProps), [numberOfChildren, gridProps]);\n\n return (\n <div ref={containerRef} className={mergeStyles(gridLayoutStyle, cssGridStyles, styles?.root)}>\n {children}\n </div>\n );\n};\n\n/**\n * The cell aspect ratio we aim for in a grid\n */\nconst TARGET_CELL_ASPECT_RATIO = 16 / 9;\n/**\n * The minimum cell aspect ratio we allow\n */\nconst MINIMUM_CELL_ASPECT_RATIO_ALLOWED = 8 / 9;\n\nconst isCloserThan = (a: number, b: number, target: number): boolean => {\n return Math.abs(target - a) < Math.abs(target - b);\n};\n\n/**\n * Properties to describe a grid. The number of rows, number of columns and whether it fills horizontally or vertically.\n *\n * @Example\n * ```\n * ______________________\n * |_______|_______|______|\n * |___________|__________| This grid has 2 rows, 3 columns and fills horizontally.\n * ______________\n * | | | |\n * |____|____| |\n * | | | |\n * |____|____|____| This grid has 2 rows, 3 columns and fills vertically.\n * _______________\n * | | |\n * |_______|_______|\n * | | | If all cells are equal, we default the fill direction as horizontal.\n * |_______|_______| This grid has 2 rows, 2 columns and fills horizontally.\n * ```\n */\ntype GridProps = {\n fillDirection: FillDirection;\n rows: number;\n columns: number;\n};\n\ntype FillDirection = 'horizontal' | 'vertical';\n\n/**\n * Get the best GridProps to place a number of items in a grid as evenly as possible given the width and height of the grid\n * @param numberOfItems - number of items to place in grid\n * @param width - width of grid\n * @param height - height of grid\n * @returns GridProps\n */\nexport const calculateGridProps = (numberOfItems: number, width: number, height: number): GridProps => {\n if (numberOfItems <= 0) {\n return { fillDirection: 'horizontal', rows: 0, columns: 0 };\n }\n // If width or height are 0 then we return rows and column evenly\n if (width <= 0 || height <= 0) {\n return {\n fillDirection: 'horizontal',\n rows: Math.ceil(Math.sqrt(numberOfItems)),\n columns: Math.ceil(Math.sqrt(numberOfItems))\n };\n }\n const aspectRatio = width / height;\n // Approximate how many rows to divide the grid to achieve cells close to the TARGET_CELL_ASPECT_RATIO\n let rows = Math.floor(Math.sqrt((TARGET_CELL_ASPECT_RATIO / aspectRatio) * numberOfItems)) || 1;\n // Make sure rows do not exceed numberOfItems\n rows = Math.min(rows, numberOfItems);\n // Given the rows, get the minimum columns needed to create enough cells for the number of items\n let columns = Math.ceil(numberOfItems / rows);\n\n // Default fill direction to horizontal\n let fillDirection: 'horizontal' | 'vertical' = 'horizontal';\n\n while (rows < numberOfItems) {\n // If cell aspect ratio is less than MINIMUM_CELL_ASPECT_RATIO_ALLOWED then try more rows\n if ((rows / columns) * aspectRatio < MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {\n rows += 1;\n columns = Math.ceil(numberOfItems / rows);\n continue;\n }\n if (numberOfItems < rows * columns) {\n // We need to check that stretching columns vertically will result in only one less cell in stretched columns.\n // Likewise, we need to check that stretching rows horizonally will result in only one less cell in stretched rows.\n // e.g. For 4 rows, 2 columns, but only 6 items, we cannot stretch vertically because that would result in a\n // column of 2 cells which is less by more than 1 compared to the unstretched column.\n // _________\n // |____| |\n // |____|____|\n // |____| |\n // |____|____|\n\n const canStretchVertically = numberOfItems >= rows + (columns - 1) * (rows - 1);\n const canStretchHorizontally = numberOfItems >= columns + (rows - 1) * (columns - 1);\n if (!canStretchVertically && !canStretchHorizontally) {\n rows += 1;\n columns = Math.ceil(numberOfItems / rows);\n continue;\n } else if (!canStretchVertically) {\n break;\n } else if (!canStretchHorizontally) {\n fillDirection = 'vertical';\n break;\n }\n\n // We need to figure out whether the big cells should stretch horizontally or vertically\n // to fill in the empty spaces\n // e.g. For 2 rows, 3 columns, but only 5 items, we need to choose whether to stretch cells\n // horizontally or vertically\n // ______________________ _______________________\n // | | | | | | | |\n // |_______|_______|______| |_______|_______| |\n // | | | | | | |\n // |___________|__________| |_______|_______|_______|\n\n // Calculate the aspect ratio of big cells stretched horizontally\n const horizontallyStretchedCellRatio = (rows / (columns - 1)) * aspectRatio;\n // Calculate the aspect ratio of big cells stretched vertically\n const verticallyStretchedCellRatio = ((rows - 1) / columns) * aspectRatio;\n // We know the horizontally stretched cells aspect ratio is higher than MINIMUM_CELL_ASPECT_RATIO_ALLOWED. If vertically stretched cells\n // is also higher than the MINIMUM_CELL_ASPECT_RATIO_ALLOWED, then choose which aspect ratio is better.\n if (verticallyStretchedCellRatio >= MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {\n // If vertically stetched cell has an aspect ratio closer to TARGET_CELL_ASPECT_RATIO then change the fill direction to vertical\n if (isCloserThan(verticallyStretchedCellRatio, horizontallyStretchedCellRatio, TARGET_CELL_ASPECT_RATIO)) {\n fillDirection = 'vertical';\n }\n }\n }\n break;\n }\n\n return { fillDirection, rows, columns };\n};\n\n/**\n * Creates a styles classname with CSS Grid related styles given GridProps and the number of items to distribute as evenly as possible.\n * @param numberOfItems - number of items to place in grid\n * @param gridProps - GridProps that define the number of rows, number of columns, and the fill direction\n * @returns - classname\n */\nexport const createGridStyles = (numberOfItems: number, gridProps: GridProps): string => {\n const isHorizontal = gridProps.fillDirection === 'horizontal';\n // Blocks are either rows or columns depending on whether we fill horizontally or vertically. Each block may differ in the number of cells.\n const blocks = isHorizontal ? gridProps.rows : gridProps.columns;\n const smallCellsPerBlock = Math.ceil(numberOfItems / blocks);\n const bigCellsPerBlock = Math.floor(numberOfItems / blocks);\n const numBigCells = (gridProps.rows * gridProps.columns - numberOfItems) * bigCellsPerBlock;\n // Get grid units\n // e.g. If some blocks have 2 big cells while others have 3 small cells, we need to work with 6 units per block\n const units = smallCellsPerBlock * bigCellsPerBlock;\n\n const gridStyles = isHorizontal\n ? {\n gridTemplateColumns: `repeat(${units}, minmax(0, 1fr))`,\n gridTemplateRows: `repeat(${blocks}, minmax(0, 1fr))`,\n gridAutoFlow: 'row'\n }\n : {\n gridTemplateColumns: `repeat(${blocks}, minmax(0, 1fr))`,\n gridTemplateRows: `repeat(${units}, minmax(0, 1fr))`,\n gridAutoFlow: 'column'\n };\n\n const smallCellStyle = isHorizontal\n ? {\n '> *': {\n gridColumn: `auto / span ${units / smallCellsPerBlock}`\n }\n }\n : {\n '> *': {\n gridRow: `auto / span ${units / smallCellsPerBlock}`\n }\n };\n\n // If there are big cells, we are choosing to place the latest children into the big cells.\n // That is why we use the '> *:nth-last-child(-n + ${numBigCells})' CSS selector below\n const bigCellStyle = numBigCells\n ? {\n [`> *:nth-last-child(-n + ${numBigCells})`]: isHorizontal\n ? {\n gridColumn: `auto / span ${units / bigCellsPerBlock}`\n }\n : {\n gridRow: `auto / span ${units / bigCellsPerBlock}`\n }\n }\n : {};\n\n return mergeStyles(gridStyles, smallCellStyle, bigCellStyle);\n};\n"]}
1
+ {"version":3,"file":"GridLayout.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/GridLayout.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAU,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AA4B7D;;;;GAIG;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAe,EAAE;IAChE,MAAM,EACJ,QAAQ,EACR,MAAM,EACP,GAAG,KAAK,CAAC;IACV,MAAM,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACxD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtD,MAAM,YA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EAAE,UAAU,KAAK,mBAAmB;QACpD,YAAY,EAAE,QAAQ;KACvB,CAAC;IACF,MAAM,cAAc,GAAG,YAAY,CAAC,CAAC,CAAC;QACpC,KAAK,EAAE;YACL,UAAU,EAAE,eAAe,KAAK,GAAG,kBAAkB,EAAE;SACxD;KACF,CAAC,CAAC,CAAC;QACF,KAAK,EAAE;YACL,OAAO,EAAE,eAAe,KAAK,GAAG,kBAAkB,EAAE;SACrD;KACF,CAAC,CAAC,2FAA2F;IAC9F,sFAAsF;IAEtF,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC;QACjC,CAAC,2BAA2B,WAAW,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;YAC1D,UAAU,EAAE,eAAe,KAAK,GAAG,gBAAgB,EAAE;SACtD,CAAC,CAAC,CAAC;YACF,OAAO,EAAE,eAAe,KAAK,GAAG,gBAAgB,EAAE;SACnD;KACF,CAAC,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,WAAW,CAAC,UAAU,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;AAC/D,CAAC,CAAC"}
@@ -10,16 +10,15 @@ import { useTheme } from '../theming';
10
10
  */
11
11
  export const _HighContrastAwareIcon = (props) => {
12
12
  const { iconName, disabled } = props;
13
- const theme = useTheme();
14
- // setting colors for the icons using color from theme, so in dark mode or other accessibility modes, they have pre-defined contrast colors
13
+ const theme = useTheme(); // setting colors for the icons using color from theme, so in dark mode or other accessibility modes, they have pre-defined contrast colors
15
14
  // the media query is for when in specific window accessibility mode, change the svg colors
16
- return (React.createElement(Icon, { iconName: iconName, className: mergeStyles({
15
+ return React.createElement(Icon, { iconName: iconName, className: mergeStyles({
17
16
  svg: {
18
17
  fill: disabled ? theme.palette.neutralTertiary : theme.palette.neutralPrimaryAlt,
19
18
  '@media (forced-colors: active) and (prefers-color-scheme: dark)': {
20
19
  fill: disabled ? theme.palette.neutralPrimaryAlt : theme.palette.neutralTertiary
21
20
  }
22
21
  }
23
- }) }));
22
+ }) });
24
23
  };
25
24
  //# sourceMappingURL=HighContrastAwareIcon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HighContrastAwareIcon.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/HighContrastAwareIcon.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAYtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAkC,EAAe,EAAE;IACxF,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,2IAA2I;IAC3I,2FAA2F;IAC3F,OAAO,CACL,oBAAC,IAAI,IACH,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,WAAW,CAAC;YACrB,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB;gBAEhF,iEAAiE,EAAE;oBACjE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;iBACjF;aACF;SACF,CAAC,GACF,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Icon, mergeStyles } from '@fluentui/react';\nimport React from 'react';\nimport { useTheme } from '../theming';\n\n/**\n * @internal\n */\nexport interface _HighContrastAwareIconProps {\n /** Icon name */\n iconName: string;\n /** Whether button is disabled */\n disabled?: boolean | undefined;\n}\n\n/**\n * This is a helper component to define and unify icon colors\n *\n * @internal\n */\nexport const _HighContrastAwareIcon = (props: _HighContrastAwareIconProps): JSX.Element => {\n const { iconName, disabled } = props;\n const theme = useTheme();\n // setting colors for the icons using color from theme, so in dark mode or other accessibility modes, they have pre-defined contrast colors\n // the media query is for when in specific window accessibility mode, change the svg colors\n return (\n <Icon\n iconName={iconName}\n className={mergeStyles({\n svg: {\n fill: disabled ? theme.palette.neutralTertiary : theme.palette.neutralPrimaryAlt,\n\n '@media (forced-colors: active) and (prefers-color-scheme: dark)': {\n fill: disabled ? theme.palette.neutralPrimaryAlt : theme.palette.neutralTertiary\n }\n }\n })}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"HighContrastAwareIcon.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/HighContrastAwareIcon.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAYtC;;;;GAIG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAkC,EAAe,EAAE;IACxF,MAAM,EACJ,QAAQ,EACR,QAAQ,EACT,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC,CAAC,2IAA2I;IACrK,2FAA2F;IAE3F,OAAO,oBAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC;YACtD,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB;gBAChF,iEAAiE,EAAE;oBACjE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe;iBACjF;aACF;SACF,CAAC,GAAI,CAAC;AACT,CAAC,CAAC"}
@@ -23,8 +23,7 @@ export const HorizontalGallery = (props) => {
23
23
  const lastPage = Math.ceil(numberOfChildren / childrenPerPage) - 1;
24
24
  const paginatedChildren = useMemo(() => {
25
25
  return bucketize(React.Children.toArray(children), childrenPerPage);
26
- }, [children, childrenPerPage]);
27
- // If children per page is 0 or less return empty element
26
+ }, [children, childrenPerPage]); // If children per page is 0 or less return empty element
28
27
  if (childrenPerPage <= 0) {
29
28
  return React.createElement(React.Fragment, null);
30
29
  }
@@ -34,14 +33,16 @@ export const HorizontalGallery = (props) => {
34
33
  const showButtons = numberOfChildren > childrenPerPage;
35
34
  const disablePreviousButton = page === 0;
36
35
  const disableNextButton = page === lastPage;
37
- return (React.createElement(Stack, { horizontal: true, className: mergeStyles(rootStyle, (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root) },
38
- showButtons && (React.createElement(HorizontalGalleryNavigationButton, { key: "previous-nav-button", icon: React.createElement(Icon, { iconName: "HorizontalGalleryLeftButton" }), styles: styles === null || styles === void 0 ? void 0 : styles.previousButton, onClick: () => setPage(Math.max(0, Math.min(lastPage, page - 1))), disabled: disablePreviousButton, identifier: ids.horizontalGalleryLeftNavButton })),
39
- React.createElement(Stack, { horizontal: true, className: mergeStyles(childrenContainerStyle, { '> *': (_b = props.styles) === null || _b === void 0 ? void 0 : _b.children }) }, childrenOnCurrentPage),
40
- showButtons && (React.createElement(HorizontalGalleryNavigationButton, { key: "next-nav-button", icon: React.createElement(Icon, { iconName: "HorizontalGalleryRightButton" }), styles: styles === null || styles === void 0 ? void 0 : styles.nextButton, onClick: () => setPage(Math.min(lastPage, page + 1)), disabled: disableNextButton, identifier: ids.horizontalGalleryRightNavButton }))));
36
+ return React.createElement(Stack, { horizontal: true, className: mergeStyles(rootStyle, (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root) },
37
+ showButtons && React.createElement(HorizontalGalleryNavigationButton, { key: "previous-nav-button", icon: React.createElement(Icon, { iconName: "HorizontalGalleryLeftButton" }), styles: styles === null || styles === void 0 ? void 0 : styles.previousButton, onClick: () => setPage(Math.max(0, Math.min(lastPage, page - 1))), disabled: disablePreviousButton, identifier: ids.horizontalGalleryLeftNavButton }),
38
+ React.createElement(Stack, { horizontal: true, className: mergeStyles(childrenContainerStyle, {
39
+ '> *': (_b = props.styles) === null || _b === void 0 ? void 0 : _b.children
40
+ }) }, childrenOnCurrentPage),
41
+ showButtons && React.createElement(HorizontalGalleryNavigationButton, { key: "next-nav-button", icon: React.createElement(Icon, { iconName: "HorizontalGalleryRightButton" }), styles: styles === null || styles === void 0 ? void 0 : styles.nextButton, onClick: () => setPage(Math.min(lastPage, page + 1)), disabled: disableNextButton, identifier: ids.horizontalGalleryRightNavButton }));
41
42
  };
42
43
  const HorizontalGalleryNavigationButton = (props) => {
43
44
  const theme = useTheme();
44
- return (React.createElement(DefaultButton, { className: mergeStyles(leftRightButtonStyles(theme), props.styles), onClick: props.onClick, disabled: props.disabled, "data-ui-id": props.identifier }, props.icon));
45
+ return React.createElement(DefaultButton, { className: mergeStyles(leftRightButtonStyles(theme), props.styles), onClick: props.onClick, disabled: props.disabled, "data-ui-id": props.identifier }, props.icon);
45
46
  };
46
47
  function bucketize(arr, bucketSize) {
47
48
  const bucketArray = [];
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalGallery.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/HorizontalGallery.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAU,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,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G,CAAC,KAM1C,EAAe,EAAE;IAChB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,CACL,oBAAC,aAAa,IACZ,SAAS,EAAE,WAAW,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAClE,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,gBACZ,KAAK,CAAC,UAAU,IAE3B,KAAK,CAAC,IAAI,CACG,CACjB,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,SAAS,CAAI,GAAQ,EAAE,UAAkB;IAChD,MAAM,WAAW,GAAU,EAAE,CAAC;IAE9B,IAAI,UAAU,IAAI,CAAC,EAAE;QACnB,OAAO,WAAW,CAAC;KACpB;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,UAAU,EAAE;QAC/C,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;KAChD;IAED,OAAO,WAAW,CAAC;AACrB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { DefaultButton, Icon, IStyle, Stack, mergeStyles } from '@fluentui/react';\nimport React, { useMemo, useState } from 'react';\nimport { useTheme } from '../theming';\nimport { BaseCustomStyles } from '../types';\nimport { rootStyle, childrenContainerStyle, leftRightButtonStyles } from './styles/HorizontalGallery.styles';\nimport { useIdentifiers } from '../identifiers';\n\n/**\n * {@link HorizontalGallery} default children per page\n */\nconst DEFAULT_CHILDREN_PER_PAGE = 5;\n\n/**\n * {@link HorizontalGallery} Component Styles.\n * @public\n */\nexport interface HorizontalGalleryStyles extends BaseCustomStyles {\n /** Styles for each child of {@link HorizontalGallery} */\n children?: IStyle;\n /** Styles for navigation button to go to previous page */\n previousButton?: IStyle;\n /** Styles for navigation button to go to next page */\n nextButton?: IStyle;\n}\n\n/**\n * {@link HorizontalGallery} Component Props.\n */\nexport interface HorizontalGalleryProps {\n children: React.ReactNode;\n /**\n * Styles for HorizontalGallery\n */\n styles?: HorizontalGalleryStyles;\n /**\n * Children shown per page\n * @defaultValue 5\n */\n childrenPerPage?: number;\n}\n\n/**\n * Renders a horizontal gallery that parents children horizontally. Handles pagination based on the childrenPerPage prop.\n * @param props - HorizontalGalleryProps {@link @azure/communication-react#HorizontalGalleryProps}\n * @returns\n */\nexport const HorizontalGallery = (props: HorizontalGalleryProps): JSX.Element => {\n const { children, childrenPerPage = DEFAULT_CHILDREN_PER_PAGE, styles } = props;\n\n const ids = useIdentifiers();\n\n const [page, setPage] = useState(0);\n\n const numberOfChildren = React.Children.count(children);\n const lastPage = Math.ceil(numberOfChildren / childrenPerPage) - 1;\n\n const paginatedChildren: React.ReactNode[][] = useMemo(() => {\n return bucketize(React.Children.toArray(children), childrenPerPage);\n }, [children, childrenPerPage]);\n\n // If children per page is 0 or less return empty element\n if (childrenPerPage <= 0) {\n return <></>;\n }\n\n const firstIndexOfCurrentPage = page * childrenPerPage;\n const clippedPage = firstIndexOfCurrentPage < numberOfChildren - 1 ? page : lastPage;\n const childrenOnCurrentPage = paginatedChildren[clippedPage];\n\n const showButtons = numberOfChildren > childrenPerPage;\n const disablePreviousButton = page === 0;\n const disableNextButton = page === lastPage;\n\n return (\n <Stack horizontal className={mergeStyles(rootStyle, props.styles?.root)}>\n {showButtons && (\n <HorizontalGalleryNavigationButton\n key=\"previous-nav-button\"\n icon={<Icon iconName=\"HorizontalGalleryLeftButton\" />}\n styles={styles?.previousButton}\n onClick={() => setPage(Math.max(0, Math.min(lastPage, page - 1)))}\n disabled={disablePreviousButton}\n identifier={ids.horizontalGalleryLeftNavButton}\n />\n )}\n <Stack horizontal className={mergeStyles(childrenContainerStyle, { '> *': props.styles?.children })}>\n {childrenOnCurrentPage}\n </Stack>\n {showButtons && (\n <HorizontalGalleryNavigationButton\n key=\"next-nav-button\"\n icon={<Icon iconName=\"HorizontalGalleryRightButton\" />}\n styles={styles?.nextButton}\n onClick={() => setPage(Math.min(lastPage, page + 1))}\n disabled={disableNextButton}\n identifier={ids.horizontalGalleryRightNavButton}\n />\n )}\n </Stack>\n );\n};\n\nconst HorizontalGalleryNavigationButton = (props: {\n icon: JSX.Element;\n styles: IStyle;\n onClick?: () => void;\n disabled?: boolean;\n identifier?: string;\n}): JSX.Element => {\n const theme = useTheme();\n return (\n <DefaultButton\n className={mergeStyles(leftRightButtonStyles(theme), props.styles)}\n onClick={props.onClick}\n disabled={props.disabled}\n data-ui-id={props.identifier}\n >\n {props.icon}\n </DefaultButton>\n );\n};\n\nfunction bucketize<T>(arr: T[], bucketSize: number): T[][] {\n const bucketArray: T[][] = [];\n\n if (bucketSize <= 0) {\n return bucketArray;\n }\n\n for (let i = 0; i < arr.length; i += bucketSize) {\n bucketArray.push(arr.slice(i, i + bucketSize));\n }\n\n return bucketArray;\n}\n"]}
1
+ {"version":3,"file":"HorizontalGallery.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/HorizontalGallery.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAU,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD;;GAEG;AAEH,MAAM,yBAAyB,GAAG,CAAC,CAAC;AAkCpC;;;;GAIG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAe,EAAE;;IAC9E,M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U,IACnK,KAAK,CAAC,IAAI,CACG,CAAC;AACrB,CAAC,CAAC;AAEF,SAAS,SAAS,CAAI,GAAQ,EAAE,UAAkB;IAChD,MAAM,WAAW,GAAU,EAAE,CAAC;IAE9B,IAAI,UAAU,IAAI,CAAC,EAAE;QACnB,OAAO,WAAW,CAAC;KACpB;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,UAAU,EAAE;QAC/C,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;KAChD;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -28,10 +28,10 @@ export const InputBoxComponent = (props) => {
28
28
  }
29
29
  onKeyDown && onKeyDown(ev);
30
30
  }, [onEnterKeyDown, onKeyDown, supportNewline]);
31
- return (React.createElement(Stack, { className: mergedRootStyle },
31
+ return React.createElement(Stack, { className: mergedRootStyle },
32
32
  React.createElement("div", { className: mergedTextContainerStyle },
33
33
  React.createElement(TextField, { autoFocus: props.autoFocus === 'sendBoxTextField', "data-ui-id": dataUiId, multiline: true, autoAdjustHeight: true, multiple: false, resizable: false, componentRef: textFieldRef, id: id, inputClassName: mergedTextFiledStyle, placeholder: placeholderText, value: textValue, onChange: onChange, autoComplete: "off", onKeyDown: onTexFieldKeyDown, styles: mergedTextFieldStyle, disabled: disabled, errorMessage: errorMessage }),
34
- React.createElement(Stack, { horizontal: true, className: mergeStyles(props.inlineChildren ? inlineButtonsContainerStyle : newLineButtonsContainerStyle) }, children))));
34
+ React.createElement(Stack, { horizontal: true, className: mergeStyles(props.inlineChildren ? inlineButtonsContainerStyle : newLineButtonsContainerStyle) }, children)));
35
35
  };
36
36
  /**
37
37
  * @private
@@ -41,18 +41,24 @@ export const InputBoxButton = (props) => {
41
41
  const [isHover, setIsHover] = useState(false);
42
42
  const mergedButtonStyle = mergeStyles(inputButtonStyle, className);
43
43
  const theme = useTheme();
44
- const calloutStyle = { root: { padding: 0 }, calloutMain: { padding: '0.5rem' } };
45
- // Place callout with no gap between it and the button.
44
+ const calloutStyle = {
45
+ root: {
46
+ padding: 0
47
+ },
48
+ calloutMain: {
49
+ padding: '0.5rem'
50
+ }
51
+ }; // Place callout with no gap between it and the button.
46
52
  const calloutProps = {
47
53
  gapSpace: 0,
48
54
  styles: calloutStyle,
49
55
  backgroundColor: isDarkThemed(theme) ? theme.palette.neutralLighter : ''
50
56
  };
51
- return (React.createElement(TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
57
+ return React.createElement(TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
52
58
  React.createElement(IconButton, { className: mergedButtonStyle, ariaLabel: ariaLabel, onClick: onClick, id: id, onMouseEnter: () => {
53
59
  setIsHover(true);
54
60
  }, onMouseLeave: () => {
55
61
  setIsHover(false);
56
- }, onRenderIcon: () => onRenderIcon(isHover) })));
62
+ }, onRenderIcon: () => onRenderIcon(isHover) }));
57
63
  };
58
64
  //# sourceMappingURL=InputBoxComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputBoxComponent.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/InputBoxComponent.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAwB,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EACL,KAAK,EACL,SAAS,EACT,WAAW,EAGX,eAAe,EACf,UAAU,EACV,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACxB,MAAM,kCAAkC,CAAC;AAE1C,O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AAC,CAAC;IAC9C,MAAM,iBAAiB,GAAG,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC;IAEnE,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,YAAY,GAAmC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,CAAC;IAElH,uDAAuD;IACvD,MAAM,YAAY,GAAG;QACnB,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,YAAY;QACpB,eAAe,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KACzE,CAAC;IACF,OAAO,CACL,oBAAC,WAAW,IAAC,aAAa,EAAE,uBAAuB,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,oBAAO,YAAY;QAC3G,oBAAC,UAAU,IACT,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,EAAE,EACN,YAAY,EAAE,GAAG,EAAE;gBACjB,UAAU,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,EACD,YAAY,EAAE,GAAG,EAAE;gBACjB,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,EACD,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,GACzC,CACU,CACf,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { useState, ReactNode, FormEvent, useCallback } from 'react';\nimport {\n Stack,\n TextField,\n mergeStyles,\n IStyle,\n ITextField,\n concatStyleSets,\n IconButton,\n TooltipHost,\n ICalloutContentStyles\n} from '@fluentui/react';\nimport { BaseCustomStyles } from '../types';\nimport {\n inputBoxStyle,\n inputBoxWrapperStyle,\n inputButtonStyle,\n textFieldStyle,\n textContainerStyle,\n inlineButtonsContainerStyle,\n newLineButtonsContainerStyle,\n inputBoxNewLineSpaceAffordance,\n inputButtonTooltipStyle\n} from './styles/InputBoxComponent.style';\n\nimport { isDarkThemed } from '../theming/themeUtils';\nimport { useTheme } from '../theming';\n\n/**\n * @private\n */\nexport interface InputBoxStylesProps extends BaseCustomStyles {\n /** Styles for the text field. */\n textField?: IStyle;\n\n /** Styles for the system message; These styles will be ignored when a custom system message component is provided. */\n systemMessage?: IStyle;\n\n /** Styles for customizing the container of the text field */\n textFieldContainer?: IStyle;\n}\n\ntype InputBoxComponentProps = {\n children: ReactNode;\n /**\n * Inline child elements passed in. Setting to false will mean they are on a new line.\n */\n inlineChildren: boolean;\n 'data-ui-id'?: string;\n id?: string;\n textValue: string;\n onChange: (event: FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string | undefined) => void;\n textFieldRef?: React.RefObject<ITextField>;\n inputClassName?: string;\n placeholderText?: string;\n supportNewline?: boolean;\n maxLength: number;\n onKeyDown?: (ev: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;\n onEnterKeyDown?: () => void;\n errorMessage?: string | React.ReactElement;\n disabled?: boolean;\n styles?: InputBoxStylesProps;\n autoFocus?: 'sendBoxTextField';\n};\n\n/**\n * @private\n */\nexport const InputBoxComponent = (props: InputBoxComponentProps): JSX.Element => {\n const {\n styles,\n id,\n 'data-ui-id': dataUiId,\n textValue,\n onChange,\n textFieldRef,\n placeholderText,\n onKeyDown,\n onEnterKeyDown,\n supportNewline,\n inputClassName,\n errorMessage,\n disabled,\n children\n } = props;\n\n const mergedRootStyle = mergeStyles(inputBoxWrapperStyle, styles?.root);\n const mergedTextFiledStyle = mergeStyles(\n inputBoxStyle,\n inputClassName,\n props.inlineChildren ? {} : inputBoxNewLineSpaceAffordance\n );\n\n const mergedTextContainerStyle = mergeStyles(textContainerStyle, styles?.textFieldContainer);\n const mergedTextFieldStyle = concatStyleSets(textFieldStyle, {\n fieldGroup: styles?.textField,\n errorMessage: styles?.systemMessage\n });\n\n const onTexFieldKeyDown = useCallback(\n (ev: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => {\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 if (ev.nativeEvent.isComposing || ev.nativeEvent.keyCode === 229 || ev.nativeEvent.which === 229) {\n return;\n }\n if (ev.key === 'Enter' && (ev.shiftKey === false || !supportNewline)) {\n ev.preventDefault();\n onEnterKeyDown && onEnterKeyDown();\n }\n onKeyDown && onKeyDown(ev);\n },\n [onEnterKeyDown, onKeyDown, supportNewline]\n );\n\n return (\n <Stack className={mergedRootStyle}>\n <div className={mergedTextContainerStyle}>\n <TextField\n autoFocus={props.autoFocus === 'sendBoxTextField'}\n data-ui-id={dataUiId}\n multiline\n autoAdjustHeight\n multiple={false}\n resizable={false}\n componentRef={textFieldRef}\n id={id}\n inputClassName={mergedTextFiledStyle}\n placeholder={placeholderText}\n value={textValue}\n onChange={onChange}\n autoComplete=\"off\"\n onKeyDown={onTexFieldKeyDown}\n styles={mergedTextFieldStyle}\n disabled={disabled}\n errorMessage={errorMessage}\n />\n <Stack\n horizontal\n className={mergeStyles(props.inlineChildren ? inlineButtonsContainerStyle : newLineButtonsContainerStyle)}\n >\n {children}\n </Stack>\n </div>\n </Stack>\n );\n};\n\n/**\n * Props for displaying a send button besides the text input area.\n *\n * @private\n */\nexport type InputBoxButtonProps = {\n onRenderIcon: (isHover: boolean) => JSX.Element;\n onClick: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;\n className?: string;\n id?: string;\n ariaLabel?: string;\n tooltipContent?: string;\n};\n\n/**\n * @private\n */\nexport const InputBoxButton = (props: InputBoxButtonProps): JSX.Element => {\n const { onRenderIcon, onClick, ariaLabel, className, id, tooltipContent } = props;\n const [isHover, setIsHover] = useState(false);\n const mergedButtonStyle = mergeStyles(inputButtonStyle, className);\n\n const theme = useTheme();\n const calloutStyle: Partial<ICalloutContentStyles> = { root: { padding: 0 }, calloutMain: { padding: '0.5rem' } };\n\n // Place callout with no gap between it and the button.\n const calloutProps = {\n gapSpace: 0,\n styles: calloutStyle,\n backgroundColor: isDarkThemed(theme) ? theme.palette.neutralLighter : ''\n };\n return (\n <TooltipHost hostClassName={inputButtonTooltipStyle} content={tooltipContent} calloutProps={{ ...calloutProps }}>\n <IconButton\n className={mergedButtonStyle}\n ariaLabel={ariaLabel}\n onClick={onClick}\n id={id}\n onMouseEnter={() => {\n setIsHover(true);\n }}\n onMouseLeave={() => {\n setIsHover(false);\n }}\n onRenderIcon={() => onRenderIcon(isHover)}\n />\n </TooltipHost>\n );\n};\n"]}
1
+ {"version":3,"file":"InputBoxComponent.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/InputBoxComponent.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAwB,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAsB,eAAe,EAAE,UAAU,EAAE,WAAW,EAAyB,MAAM,iBAAiB,CAAC;AAErJ,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,cAAc,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AACjQ,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAsCtC;;GAEG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAe,EAAE;IAC9E,MAAM,EACJ,MAAM,EACN,EAAE,EACF,YAAY,EAAE,QAAQ,EACtB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,EACd,Y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B,eAAe,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;KACzE,CAAC;IACF,OAAO,oBAAC,WAAW,IAAC,aAAa,EAAE,uBAAuB,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,oBAAO,YAAY;QAEhH,oBAAC,UAAU,IAAC,SAAS,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE;gBAC7G,UAAU,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE;gBACpB,UAAU,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,GAAI,CAClC,CAAC;AACnB,CAAC,CAAC"}
@@ -10,14 +10,16 @@ import { localVideoCameraCycleButtonStyles } from './styles/VideoGallery.styles'
10
10
  export const LocalVideoCameraCycleButton = (props) => {
11
11
  const { cameras, selectedCamera, onSelectCamera, label, ariaDescription } = props;
12
12
  const theme = useTheme();
13
- return (React.createElement(IconButton, { "data-ui-id": 'local-camera-switcher-button', styles: localVideoCameraCycleButtonStyles(theme), iconProps: { iconName: 'LocalCameraSwitch' }, ariaLabel: label, ariaDescription: ariaDescription, "aria-live": 'polite', onClick: () => {
13
+ return React.createElement(IconButton, { "data-ui-id": 'local-camera-switcher-button', styles: localVideoCameraCycleButtonStyles(theme), iconProps: {
14
+ iconName: 'LocalCameraSwitch'
15
+ }, ariaLabel: label, ariaDescription: ariaDescription, "aria-live": 'polite', onClick: () => {
14
16
  if (cameras && cameras.length > 1 && selectedCamera !== undefined) {
15
- const index = cameras.findIndex((camera) => selectedCamera.id === camera.id);
17
+ const index = cameras.findIndex(camera => selectedCamera.id === camera.id);
16
18
  const newCamera = cameras[(index + 1) % cameras.length];
17
19
  if (onSelectCamera !== undefined) {
18
20
  onSelectCamera(newCamera);
19
21
  }
20
22
  }
21
- } }));
23
+ } });
22
24
  };
23
25
  //# sourceMappingURL=LocalVideoCameraButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocalVideoCameraButton.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/LocalVideoCameraButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AAkBjF;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAuC,EAAe,EAAE;IAClG,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IAClF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IAEzB,OAAO,CACL,oBAAC,UAAU,kBACG,8BAA8B,EAC1C,MAAM,EAAE,iCAAiC,CAAC,KAAK,CAAC,EAChD,SAAS,EAAE,EAAE,QAAQ,EAAE,mBAAmB,EAAE,EAC5C,SAAS,EAAE,KAAK,EAChB,eAAe,EAAE,eAAe,eACrB,QAAQ,EACnB,OAAO,EAAE,GAAG,EAAE;YACZ,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,cAAc,KAAK,SAAS,EAAE;gBACjE,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC7E,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;gBACxD,IAAI,cAAc,KAAK,SAAS,EAAE;oBAChC,cAAc,CAAC,SAAS,CAAC,CAAC;iBAC3B;aACF;QACH,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { IconButton, useTheme } from '@fluentui/react';\nimport React from 'react';\nimport { OptionsDevice } from './DevicesButton';\nimport { localVideoCameraCycleButtonStyles } from './styles/VideoGallery.styles';\n\n/**\n * @public\n */\nexport interface LocalVideoCameraCycleButtonProps {\n /** Array of cameras available to the user. */\n cameras?: OptionsDevice[];\n /** Currently selected camera in the local video stream. */\n selectedCamera?: OptionsDevice;\n /** callback function to change video feed. */\n onSelectCamera?: (device: OptionsDevice) => Promise<void>;\n /** label for local video camera switcher */\n label?: string;\n /** description for local video camera switcher */\n ariaDescription?: string;\n}\n\n/**\n * local video tile camera cycle button - for use on mobile screens only.\n * @internal\n */\nexport const LocalVideoCameraCycleButton = (props: LocalVideoCameraCycleButtonProps): JSX.Element => {\n const { cameras, selectedCamera, onSelectCamera, label, ariaDescription } = props;\n const theme = useTheme();\n\n return (\n <IconButton\n data-ui-id={'local-camera-switcher-button'}\n styles={localVideoCameraCycleButtonStyles(theme)}\n iconProps={{ iconName: 'LocalCameraSwitch' }}\n ariaLabel={label}\n ariaDescription={ariaDescription}\n aria-live={'polite'}\n onClick={() => {\n if (cameras && cameras.length > 1 && selectedCamera !== undefined) {\n const index = cameras.findIndex((camera) => selectedCamera.id === camera.id);\n const newCamera = cameras[(index + 1) % cameras.length];\n if (onSelectCamera !== undefined) {\n onSelectCamera(newCamera);\n }\n }\n }}\n />\n );\n};\n"]}
1
+ {"version":3,"file":"LocalVideoCameraButton.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/LocalVideoCameraButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AAqBjF;;;GAGG;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAuC,EAAe,EAAE;IAClG,MAAM,EACJ,OAAO,EACP,cAAc,EACd,cAAc,EACd,KAAK,EACL,eAAe,EAChB,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,oBAAC,UAAU,kBAAa,8BAA8B,EAAE,MAAM,EAAE,iCAAiC,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE;YAC1H,QAAQ,EAAE,mBAAmB;SAC9B,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,eAAe,eAAa,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;YACxF,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,cAAc,KAAK,SAAS,EAAE;gBACjE,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;gBAC3E,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;gBAExD,IAAI,cAAc,KAAK,SAAS,EAAE;oBAChC,cAAc,CAAC,SAAS,CAAC,CAAC;iBAC3B;aACF;QACH,CAAC,GAAI,CAAC;AACR,CAAC,CAAC"}
@@ -21,15 +21,7 @@ export const _LocalVideoTile = React.memo((props) => {
21
21
  onDisposeLocalStreamView,
22
22
  renderElementExists: !!renderElement,
23
23
  scalingMode: localVideoViewOptions === null || localVideoViewOptions === void 0 ? void 0 : localVideoViewOptions.scalingMode
24
- }), [
25
- isAvailable,
26
- localVideoViewOptions === null || localVideoViewOptions === void 0 ? void 0 : localVideoViewOptions.isMirrored,
27
- localVideoViewOptions === null || localVideoViewOptions === void 0 ? void 0 : localVideoViewOptions.scalingMode,
28
- onCreateLocalStreamView,
29
- onDisposeLocalStreamView,
30
- renderElement
31
- ]);
32
- // Handle creating, destroying and updating the video stream as necessary
24
+ }), [isAvailable, localVideoViewOptions === null || localVideoViewOptions === void 0 ? void 0 : localVideoViewOptions.isMirrored, localVideoViewOptions === null || localVideoViewOptions === void 0 ? void 0 : localVideoViewOptions.scalingMode, onCreateLocalStreamView, onDisposeLocalStreamView, renderElement]); // Handle creating, destroying and updating the video stream as necessary
33
25
  useLocalVideoStreamLifecycleMaintainer(localVideoStreamProps);
34
26
  const renderVideoStreamElement = useMemo(() => {
35
27
  // Checking if renderElement is well defined or not as calling SDK has a number of video streams limitation which
@@ -38,28 +30,17 @@ export const _LocalVideoTile = React.memo((props) => {
38
30
  // Returning `undefined` results in the placeholder with avatar being shown
39
31
  return undefined;
40
32
  }
41
- return (React.createElement(React.Fragment, null,
33
+ return React.createElement(React.Fragment, null,
42
34
  React.createElement(FloatingLocalCameraCycleButton, { showCameraSwitcherInLocalPreview: showCameraSwitcherInLocalPreview !== null && showCameraSwitcherInLocalPreview !== void 0 ? showCameraSwitcherInLocalPreview : false, localVideoCameraCycleButtonProps: localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel: localVideoCameraSwitcherLabel, localVideoSelectedDescription: localVideoSelectedDescription }),
43
- React.createElement(StreamMedia, { videoStreamElement: renderElement, isMirrored: true })));
44
- }, [
45
- localVideoCameraCycleButtonProps,
46
- localVideoCameraSwitcherLabel,
47
- localVideoSelectedDescription,
48
- renderElement,
49
- showCameraSwitcherInLocalPreview
50
- ]);
51
- return (React.createElement(VideoTile, { key: userId !== null && userId !== void 0 ? userId : 'local-video-tile', userId: userId, renderElement: renderVideoStreamElement, showLabel: showLabel, displayName: displayName, initialsName: initialsName, styles: styles, onRenderPlaceholder: onRenderAvatar, isMuted: isMuted, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize }));
35
+ React.createElement(StreamMedia, { videoStreamElement: renderElement, isMirrored: true }));
36
+ }, [localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel, localVideoSelectedDescription, renderElement, showCameraSwitcherInLocalPreview]);
37
+ return React.createElement(VideoTile, { key: userId !== null && userId !== void 0 ? userId : 'local-video-tile', userId: userId, renderElement: renderVideoStreamElement, showLabel: showLabel, displayName: displayName, initialsName: initialsName, styles: styles, onRenderPlaceholder: onRenderAvatar, isMuted: isMuted, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize });
52
38
  });
53
39
  const FloatingLocalCameraCycleButton = (props) => {
54
40
  const { showCameraSwitcherInLocalPreview, localVideoCameraCycleButtonProps, localVideoCameraSwitcherLabel, localVideoSelectedDescription } = props;
55
- const ariaDescription = (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera) &&
56
- localVideoSelectedDescription &&
57
- _formatString(localVideoSelectedDescription, {
58
- cameraName: localVideoCameraCycleButtonProps.selectedCamera.name
59
- });
60
- return (React.createElement(Stack, { horizontalAlign: "end" }, showCameraSwitcherInLocalPreview &&
61
- (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.cameras) !== undefined &&
62
- (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera) !== undefined &&
63
- (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.onSelectCamera) !== undefined && (React.createElement(LocalVideoCameraCycleButton, { cameras: localVideoCameraCycleButtonProps.cameras, selectedCamera: localVideoCameraCycleButtonProps.selectedCamera, onSelectCamera: localVideoCameraCycleButtonProps.onSelectCamera, label: localVideoCameraSwitcherLabel, ariaDescription: ariaDescription }))));
41
+ const ariaDescription = (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera) && localVideoSelectedDescription && _formatString(localVideoSelectedDescription, {
42
+ cameraName: localVideoCameraCycleButtonProps.selectedCamera.name
43
+ });
44
+ return React.createElement(Stack, { horizontalAlign: "end" }, showCameraSwitcherInLocalPreview && (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.cameras) !== undefined && (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.selectedCamera) !== undefined && (localVideoCameraCycleButtonProps === null || localVideoCameraCycleButtonProps === void 0 ? void 0 : localVideoCameraCycleButtonProps.onSelectCamera) !== undefined && React.createElement(LocalVideoCameraCycleButton, { cameras: localVideoCameraCycleButtonProps.cameras, selectedCamera: localVideoCameraCycleButtonProps.selectedCamera, onSelectCamera: localVideoCameraCycleButtonProps.onSelectCamera, label: localVideoCameraSwitcherLabel, ariaDescription: ariaDescription }));
64
45
  };
65
46
  //# sourceMappingURL=LocalVideoTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocalVideoTile.js","sourceRoot":"","sources":["../../../../../../react-components/src/components/LocalVideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,mCAAgC;AACxD,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,2BAA2B,EAAoC,MAAM,0BAA0B,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,sCAAsC,EAEvC,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAwB,MAAM,aAAa,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CACvC,CAAC,KA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,oBAAC,2BAA2B,IAC1B,OAAO,EAAE,gCAAgC,CAAC,OAAO,EACjD,cAAc,EAAE,gCAAgC,CAAC,cAAc,EAC/D,cAAc,EAAE,gCAAgC,CAAC,cAAc,EAC/D,KAAK,EAAE,6BAA6B,EACpC,eAAe,EAAE,eAAe,GAChC,CACH,CACG,CACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Stack } from '@fluentui/react';\nimport { _formatString } from '@internal/acs-ui-common';\nimport React, { useMemo } from 'react';\nimport { OnRenderAvatarCallback, VideoStreamOptions, CreateVideoStreamViewResult } from '../types';\nimport { LocalVideoCameraCycleButton, LocalVideoCameraCycleButtonProps } from './LocalVideoCameraButton';\nimport { StreamMedia } from './StreamMedia';\nimport {\n useLocalVideoStreamLifecycleMaintainer,\n LocalVideoStreamLifecycleMaintainerProps\n} from './VideoGallery/useVideoStreamLifecycleMaintainer';\nimport { VideoTile, VideoTileStylesProps } from './VideoTile';\n\n/**\n * A memoized version of VideoTile for rendering local participant.\n *\n * @internal\n */\nexport const _LocalVideoTile = React.memo(\n (props: {\n userId?: string;\n onCreateLocalStreamView?: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>;\n onDisposeLocalStreamView?: () => void;\n isAvailable?: boolean;\n isMuted?: boolean;\n renderElement?: HTMLElement;\n displayName?: string;\n initialsName?: string;\n localVideoViewOptions?: VideoStreamOptions;\n onRenderAvatar?: OnRenderAvatarCallback;\n showLabel: boolean;\n showMuteIndicator?: boolean;\n showCameraSwitcherInLocalPreview?: boolean;\n localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps;\n localVideoCameraSwitcherLabel?: string;\n localVideoSelectedDescription?: string;\n styles?: VideoTileStylesProps;\n personaMinSize?: number;\n }) => {\n const {\n isAvailable,\n isMuted,\n onCreateLocalStreamView,\n onDisposeLocalStreamView,\n localVideoViewOptions,\n renderElement,\n userId,\n showLabel,\n displayName,\n initialsName,\n onRenderAvatar,\n showMuteIndicator,\n styles,\n showCameraSwitcherInLocalPreview,\n localVideoCameraCycleButtonProps,\n localVideoCameraSwitcherLabel,\n localVideoSelectedDescription\n } = props;\n\n const localVideoStreamProps: LocalVideoStreamLifecycleMaintainerProps = useMemo(\n () => ({\n isMirrored: localVideoViewOptions?.isMirrored,\n isStreamAvailable: isAvailable,\n onCreateLocalStreamView,\n onDisposeLocalStreamView,\n renderElementExists: !!renderElement,\n scalingMode: localVideoViewOptions?.scalingMode\n }),\n [\n isAvailable,\n localVideoViewOptions?.isMirrored,\n localVideoViewOptions?.scalingMode,\n onCreateLocalStreamView,\n onDisposeLocalStreamView,\n renderElement\n ]\n );\n\n // Handle creating, destroying and updating the video stream as necessary\n useLocalVideoStreamLifecycleMaintainer(localVideoStreamProps);\n\n const renderVideoStreamElement = useMemo(() => {\n // Checking if renderElement is well defined or not as calling SDK has a number of video streams limitation which\n // implies that, after their threshold, all streams have no child (blank video)\n if (!renderElement || !renderElement.childElementCount) {\n // Returning `undefined` results in the placeholder with avatar being shown\n return undefined;\n }\n\n return (\n <>\n <FloatingLocalCameraCycleButton\n showCameraSwitcherInLocalPreview={showCameraSwitcherInLocalPreview ?? false}\n localVideoCameraCycleButtonProps={localVideoCameraCycleButtonProps}\n localVideoCameraSwitcherLabel={localVideoCameraSwitcherLabel}\n localVideoSelectedDescription={localVideoSelectedDescription}\n />\n <StreamMedia videoStreamElement={renderElement} isMirrored={true} />\n </>\n );\n }, [\n localVideoCameraCycleButtonProps,\n localVideoCameraSwitcherLabel,\n localVideoSelectedDescription,\n renderElement,\n showCameraSwitcherInLocalPreview\n ]);\n\n return (\n <VideoTile\n key={userId ?? 'local-video-tile'}\n userId={userId}\n renderElement={renderVideoStreamElement}\n showLabel={showLabel}\n displayName={displayName}\n initialsName={initialsName}\n styles={styles}\n onRenderPlaceholder={onRenderAvatar}\n isMuted={isMuted}\n showMuteIndicator={showMuteIndicator}\n personaMinSize={props.personaMinSize}\n />\n );\n }\n);\n\nconst FloatingLocalCameraCycleButton = (props: {\n showCameraSwitcherInLocalPreview: boolean;\n localVideoCameraCycleButtonProps?: LocalVideoCameraCycleButtonProps;\n localVideoCameraSwitcherLabel?: string;\n localVideoSelectedDescription?: string;\n}): JSX.Element => {\n const {\n showCameraSwitcherInLocalPreview,\n localVideoCameraCycleButtonProps,\n localVideoCameraSwitcherLabel,\n localVideoSelectedDescription\n } = props;\n const ariaDescription =\n localVideoCameraCycleButtonProps?.selectedCamera &&\n localVideoSelectedDescription &&\n _formatString(localVideoSelectedDescription, {\n cameraName: localVideoCameraCycleButtonProps.selectedCamera.name\n });\n return (\n <Stack horizontalAlign=\"end\">\n {showCameraSwitcherInLocalPreview &&\n localVideoCameraCycleButtonProps?.cameras !== undefined &&\n localVideoCameraCycleButtonProps?.selectedCamera !== undefined &&\n localVideoCameraCycleButtonProps?.onSelectCamera !== undefined && (\n <LocalVideoCameraCycleButton\n cameras={localVideoCameraCycleButtonProps.cameras}\n selectedCamera={localVideoCameraCycleButtonProps.selectedCamera}\n onSelectCamera={localVideoCameraCycleButtonProps.onSelectCamera}\n label={localVideoCameraSwitcherLabel}\n ariaDescription={ariaDescription}\n />\n )}\n </Stack>\n );\n};\n\"../../../acs-ui-common/src\""]}
1
+ {"version":3,"file":"LocalVideoTile.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/components/LocalVideoTile.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,mCAAgC;AACxD,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,2BAA2B,EAAoC,MAAM,0BAA0B,CAAC;AACzG,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,sCAAsC,EAA4C,MAAM,kDAAkD,CAAC;AACpJ,OA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