@azure/communication-react 1.5.2-alpha-202301190014.0 → 1.6.0

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 (1026) hide show
  1. package/README.md +3 -4
  2. package/dist/communication-react.d.ts +267 -2071
  3. package/dist/dist-cjs/communication-react/index.js +9461 -12549
  4. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/identifier.d.ts +6 -0
  12. package/dist/dist-esm/acs-ui-common/src/identifier.js +12 -2
  13. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  14. package/dist/dist-esm/acs-ui-common/src/index.d.ts +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/index.js +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/logEvent.js.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.map +1 -1
  21. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  22. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  23. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  24. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +3 -11
  25. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +4 -12
  26. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  27. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -13
  28. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +5 -20
  29. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  30. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +86 -30
  31. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  32. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +9 -11
  33. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +32 -39
  34. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  35. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +1 -11
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +2 -14
  38. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  39. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  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 +1 -4
  42. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -22
  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.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +0 -6
  46. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -8
  47. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  48. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +11 -24
  49. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  50. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +3 -4
  52. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  53. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +3 -6
  54. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  55. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +2 -14
  56. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +1 -20
  57. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  59. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  60. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +0 -7
  61. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +7 -21
  62. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  63. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +0 -5
  64. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +0 -11
  65. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  66. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +15 -33
  67. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  68. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +5 -21
  69. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  70. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +5 -6
  71. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  72. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -15
  73. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -2
  75. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +67 -62
  76. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -27
  78. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +12 -7
  80. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +18 -56
  81. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  82. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +8 -7
  83. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  84. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +71 -56
  85. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  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 +0 -1
  89. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +3 -9
  90. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/Converter.js +8 -13
  92. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  93. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +4 -1
  94. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +60 -52
  95. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +16 -14
  97. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  98. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +3 -0
  100. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +21 -3
  101. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  102. package/dist/dist-esm/calling-stateful-client/src/Logger.d.ts +16 -27
  103. package/dist/dist-esm/calling-stateful-client/src/Logger.js +16 -27
  104. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +0 -1
  106. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +0 -8
  107. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  108. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  109. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  110. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +0 -8
  111. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  112. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +1 -25
  113. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +40 -69
  114. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  115. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +133 -328
  116. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  117. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.d.ts +17 -0
  118. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +201 -0
  119. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -0
  120. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  121. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -2
  122. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +0 -8
  123. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  124. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -3
  125. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  126. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js +7 -6
  127. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  128. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -2
  129. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  130. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  131. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -4
  132. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  133. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  134. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  135. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +14 -13
  136. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  137. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -4
  138. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +10 -3
  139. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  140. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  141. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  142. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  143. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  144. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +16 -44
  145. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  146. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  147. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  148. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  149. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  150. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +7 -3
  151. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  152. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +1 -3
  153. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  154. package/dist/dist-esm/chat-component-bindings/src/utils/constants.d.ts +4 -0
  155. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js +4 -0
  156. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  157. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +25 -26
  158. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  159. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  160. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +9 -5
  161. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  162. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  163. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +22 -9
  164. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  165. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  166. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +67 -57
  167. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  168. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +127 -113
  169. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  170. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  171. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  172. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  173. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  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.map +1 -1
  176. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  177. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  178. package/dist/dist-esm/communication-react/src/index.d.ts +1 -22
  179. package/dist/dist-esm/communication-react/src/index.js +0 -14
  180. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  181. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  182. package/dist/dist-esm/northstar-wrapper/src/index.js +2 -0
  183. package/dist/dist-esm/northstar-wrapper/src/index.js.LICENSE.txt +41 -0
  184. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.d.ts +20 -0
  185. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js +47 -0
  186. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js.map +1 -0
  187. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.d.ts +10 -0
  188. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js +14 -0
  189. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js.map +1 -0
  190. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.d.ts +10 -0
  191. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js +29 -0
  192. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -0
  193. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.d.ts +7 -0
  194. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js +32 -0
  195. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js.map +1 -0
  196. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.d.ts +9 -0
  197. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js +10 -0
  198. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js.map +1 -0
  199. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.d.ts +8 -0
  200. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js +19 -0
  201. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js.map +1 -0
  202. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  203. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +12 -0
  204. package/dist/dist-esm/react-components/src/components/CameraButton.js +33 -7
  205. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  206. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.d.ts +1 -1
  207. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +9 -8
  208. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +28 -38
  210. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  211. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +12 -3
  212. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +16 -21
  213. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  214. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +1 -1
  215. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +49 -31
  216. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  217. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +1 -2
  218. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +37 -58
  219. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  220. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +2 -2
  221. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +42 -13
  222. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  224. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +4 -7
  226. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  227. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +2 -2
  228. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  229. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  230. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  232. package/dist/dist-esm/react-components/src/components/ControlBar.js +14 -10
  233. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +4 -14
  235. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +14 -3
  237. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +8 -5
  239. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -1
  240. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +1 -1
  241. package/dist/dist-esm/react-components/src/components/DevicesButton.js +88 -59
  242. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +44 -42
  244. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  245. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +4 -4
  246. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +6 -2
  248. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +5 -0
  250. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +6 -6
  251. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  252. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.d.ts +2 -0
  253. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +24 -11
  254. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  255. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.d.ts +5 -0
  256. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +23 -7
  257. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  258. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  259. package/dist/dist-esm/react-components/src/components/EndCallButton.js +7 -3
  260. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  261. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +4 -0
  262. package/dist/dist-esm/react-components/src/components/ErrorBar.js +5 -4
  263. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  264. package/dist/dist-esm/react-components/src/components/FileCard.js +8 -7
  265. package/dist/dist-esm/react-components/src/components/FileCard.js.map +1 -1
  266. package/dist/dist-esm/react-components/src/components/FileCardGroup.d.ts +1 -0
  267. package/dist/dist-esm/react-components/src/components/FileCardGroup.js +2 -2
  268. package/dist/dist-esm/react-components/src/components/FileCardGroup.js.map +1 -1
  269. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +1 -0
  270. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +22 -16
  271. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/FileUploadCards.js +8 -11
  273. package/dist/dist-esm/react-components/src/components/FileUploadCards.js.map +1 -1
  274. package/dist/dist-esm/react-components/src/components/GridLayout.js +37 -37
  275. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  276. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
  277. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  278. package/dist/dist-esm/react-components/src/components/HorizontalGallery.d.ts +4 -0
  279. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +33 -26
  280. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  281. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +1 -1
  282. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +47 -13
  283. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  284. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +5 -3
  285. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  286. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +9 -27
  287. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  288. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js +40 -27
  289. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  290. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +24 -29
  291. package/dist/dist-esm/react-components/src/components/MessageThread.js +128 -171
  292. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  293. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +12 -0
  294. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +34 -9
  295. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  296. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +101 -94
  297. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  298. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -13
  299. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +16 -17
  300. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  301. package/dist/dist-esm/react-components/src/components/ParticipantList.js +9 -25
  302. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  303. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +33 -46
  304. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  306. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  308. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  309. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +1 -0
  310. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +12 -65
  311. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  312. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.d.ts +4 -2
  313. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +6 -42
  314. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  315. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +22 -6
  316. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +0 -35
  318. package/dist/dist-esm/react-components/src/components/SendBox.js +24 -42
  319. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  320. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +2 -2
  321. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  322. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  323. package/dist/dist-esm/react-components/src/components/StreamMedia.js +3 -3
  324. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts +1 -1
  326. package/dist/dist-esm/react-components/src/components/SystemMessage.js +4 -2
  327. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  328. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +10 -10
  329. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  330. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +6 -9
  331. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  332. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +1 -3
  333. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  334. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +1 -3
  335. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  336. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -20
  337. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  338. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +1 -3
  339. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  340. package/dist/dist-esm/react-components/src/components/VerticalGallery.d.ts +67 -0
  341. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +115 -0
  342. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -0
  343. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.d.ts +21 -0
  344. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js +63 -0
  345. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js.map +1 -0
  346. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +75 -0
  347. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +56 -0
  348. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -0
  349. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +88 -0
  350. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +39 -0
  351. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -0
  352. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.d.ts +11 -0
  353. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +53 -0
  354. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -0
  355. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +1 -1
  356. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +30 -28
  357. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  358. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +10 -3
  359. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +18 -16
  360. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  361. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +1 -1
  362. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +45 -37
  363. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  364. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +5 -1
  365. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  366. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  367. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  368. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +16 -0
  369. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +23 -0
  370. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -0
  371. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +6 -8
  372. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  373. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js +6 -1
  374. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js.map +1 -1
  375. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +32 -7
  376. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +56 -15
  377. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  378. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +11 -2
  379. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -1
  380. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/Layout.styles.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  382. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  383. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -1
  384. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.d.ts +4 -1
  385. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +16 -14
  386. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
  387. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.d.ts +64 -0
  388. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +85 -0
  389. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -0
  390. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +5 -10
  391. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  392. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +5 -0
  393. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +60 -30
  394. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  395. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.d.ts +25 -0
  396. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js +94 -0
  397. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js.map +1 -0
  398. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.d.ts +4 -4
  399. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +39 -88
  400. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  401. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +11 -59
  402. package/dist/dist-esm/react-components/src/components/VideoGallery.js +27 -134
  403. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  404. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -22
  405. package/dist/dist-esm/react-components/src/components/VideoTile.js +47 -91
  406. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  407. package/dist/dist-esm/react-components/src/components/index.d.ts +7 -14
  408. package/dist/dist-esm/react-components/src/components/index.js +3 -8
  409. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  410. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.d.ts +10 -0
  411. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +22 -3
  412. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  413. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  414. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  415. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js +6 -7
  416. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  417. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  418. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js +1 -0
  419. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  420. package/dist/dist-esm/react-components/src/components/styles/IconButton.styles.js.map +1 -1
  421. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.d.ts +3 -3
  422. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +11 -12
  423. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  424. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  425. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +3 -3
  426. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +43 -6
  427. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  428. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +1 -0
  429. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  430. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js +4 -1
  431. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  432. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +0 -4
  433. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +10 -8
  434. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  435. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +3 -0
  436. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  437. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  438. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +1 -0
  439. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  440. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  441. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.d.ts +32 -0
  442. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js +66 -0
  443. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js.map +1 -0
  444. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +13 -2
  445. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  446. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +3 -1
  447. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  448. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  449. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -4
  450. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  451. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  452. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  453. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +5 -4
  454. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +7 -4
  455. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  456. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  457. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.d.ts +11 -0
  458. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js +22 -0
  459. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js.map +1 -0
  460. package/dist/dist-esm/react-components/src/components/utils/responsive.d.ts +6 -0
  461. package/dist/dist-esm/react-components/src/components/utils/responsive.js +9 -2
  462. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  463. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +1 -10
  464. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  465. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js +3 -1
  466. package/dist/dist-esm/react-components/src/components/utils/videoTileStylesUtils.js.map +1 -1
  467. package/dist/dist-esm/react-components/src/components/utils.d.ts +23 -0
  468. package/dist/dist-esm/react-components/src/components/utils.js +58 -10
  469. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  470. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +8 -18
  471. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  472. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  473. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +6 -4
  474. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +3 -2
  475. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  476. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  477. package/dist/dist-esm/react-components/src/index.d.ts +1 -3
  478. package/dist/dist-esm/react-components/src/index.js +0 -2
  479. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  480. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -54
  481. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  482. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  483. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +331 -0
  484. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +125 -13
  485. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +124 -12
  486. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +29 -6
  487. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +124 -12
  488. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +331 -0
  489. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +125 -13
  490. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +331 -0
  491. package/dist/dist-esm/react-components/src/localization/locales/index.d.ts +36 -0
  492. package/dist/dist-esm/react-components/src/localization/locales/index.js +96 -14
  493. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  494. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +124 -12
  495. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +124 -12
  496. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +124 -12
  497. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +331 -0
  498. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +124 -12
  499. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +331 -0
  500. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +125 -13
  501. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +124 -12
  502. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +331 -0
  503. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +125 -13
  504. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +124 -12
  505. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +124 -12
  506. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +7 -4
  507. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  508. package/dist/dist-esm/react-components/src/theming/icons.d.ts +4 -20
  509. package/dist/dist-esm/react-components/src/theming/icons.js +27 -124
  510. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  511. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  512. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  513. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  514. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.d.ts +48 -0
  515. package/dist/dist-esm/react-components/src/{permissions/index.js → types/CaptionsAvailableLanguageStrings.js} +2 -2
  516. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -0
  517. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -7
  518. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  519. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  520. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.d.ts +9 -0
  521. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js +4 -0
  522. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js.map +1 -0
  523. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  524. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -8
  525. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  526. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +0 -3
  527. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js +0 -2
  528. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  529. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  530. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -8
  531. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  532. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  533. package/dist/dist-esm/react-components/src/types/index.d.ts +2 -0
  534. package/dist/dist-esm/react-components/src/types/index.js +2 -0
  535. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  536. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +12 -89
  537. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +52 -95
  538. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  539. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +4 -120
  540. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js +0 -2
  541. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  542. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +33 -76
  543. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +59 -251
  544. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  545. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +1 -102
  546. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -9
  547. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  548. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  549. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  550. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.d.ts +23 -0
  551. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +47 -0
  552. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -0
  553. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  554. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -3
  555. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +2 -8
  556. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  557. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -5
  558. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js +0 -2
  559. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  560. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +4 -2
  561. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +90 -76
  562. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  563. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -2
  564. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +14 -132
  565. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  566. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -2
  567. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -21
  568. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  569. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -20
  570. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  571. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -2
  572. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -21
  573. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  574. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +4 -5
  575. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  576. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +2 -2
  577. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  578. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +22 -32
  579. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  580. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  581. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +23 -66
  582. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  583. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +41 -19
  584. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  585. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -2
  586. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +25 -25
  587. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  588. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  589. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  590. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +3 -3
  591. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  592. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.d.ts +14 -0
  593. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +55 -0
  594. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -0
  595. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.d.ts +58 -0
  596. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js +31 -0
  597. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js.map +1 -0
  598. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +17 -0
  599. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +45 -0
  600. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -0
  601. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  602. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  603. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +1 -1
  604. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -1
  605. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +2 -6
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +9 -40
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +1 -1
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +5 -44
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -1
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +2 -5
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +1 -1
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +6 -8
  617. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  618. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +1 -1
  619. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +2 -5
  620. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  621. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +1 -1
  622. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -3
  623. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  624. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +9 -13
  625. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  626. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -2
  627. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -29
  628. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  629. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  630. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  631. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  632. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -8
  633. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +0 -2
  634. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  635. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +4 -0
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +2 -8
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +2 -7
  639. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +42 -149
  640. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  641. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +4 -0
  642. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +7 -19
  643. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  644. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +4 -1
  645. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +3 -3
  646. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  647. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  648. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  649. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  650. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +2 -7
  651. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +1 -7
  652. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  653. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  654. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  655. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  656. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  657. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  658. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  659. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  660. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +2 -2
  661. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +5 -11
  662. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  663. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +1 -1
  664. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -1
  665. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  666. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +4 -4
  667. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  668. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  669. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -4
  670. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  671. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  672. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  673. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  674. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +5 -5
  675. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +4 -4
  676. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  677. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  678. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  679. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  680. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +2 -2
  681. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  682. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  683. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  684. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.d.ts +6 -1
  685. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +13 -2
  686. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  687. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +13 -1
  688. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +65 -2
  689. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  690. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  691. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
  692. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +4 -1
  693. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  694. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +4 -1
  695. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  696. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +8 -5
  697. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  698. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  699. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.d.ts +20 -0
  700. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +22 -1
  701. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  702. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  703. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  704. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +1 -0
  705. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  706. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +11 -86
  707. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  708. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.d.ts +1 -1
  709. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +14 -12
  710. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  711. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +19 -20
  712. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +62 -112
  713. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  714. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  715. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +13 -133
  716. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +92 -171
  717. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  718. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/{ChatButton.d.ts → ChatButton/ChatButton.d.ts} +1 -1
  719. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/{ChatButton.js → ChatButton/ChatButton.js} +2 -2
  720. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js.map +1 -0
  721. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/{ChatButtonWithUnreadMessagesBadge.d.ts → ChatButton/ChatButtonWithUnreadMessagesBadge.d.ts} +2 -2
  722. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/{ChatButtonWithUnreadMessagesBadge.js → ChatButton/ChatButtonWithUnreadMessagesBadge.js} +10 -12
  723. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -0
  724. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/{NotificationIcon.js → ChatButton/NotificationIcon.js} +6 -3
  725. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js.map +1 -0
  726. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -32
  727. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  728. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -25
  729. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +7 -139
  730. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +0 -60
  732. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  733. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +2 -10
  734. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -39
  735. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  736. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -9
  737. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -31
  738. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  739. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +4 -0
  740. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  741. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  742. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +0 -1
  743. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  744. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -1
  745. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  746. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -22
  747. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +2 -10
  748. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  749. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +1 -1
  750. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +6 -3
  751. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -20
  753. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +2 -6
  754. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  755. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +5 -3
  756. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  757. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +25 -42
  758. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  759. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  760. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  761. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +1 -10
  762. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +36 -93
  763. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  764. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  765. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -154
  766. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  767. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -13
  768. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  769. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -2
  770. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  771. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUpload.js.map +1 -1
  772. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +6 -18
  773. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  774. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadHandler.js.map +1 -1
  775. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  776. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +5 -3
  777. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  778. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +1 -3
  779. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  780. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  781. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -3
  782. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  783. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +6 -2
  784. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  785. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -5
  786. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +6 -17
  787. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  788. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -5
  789. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +4 -10
  790. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  791. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +14 -5
  792. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  793. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +5 -1
  794. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  795. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +27 -0
  796. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +251 -0
  797. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -0
  798. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +83 -0
  799. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +77 -0
  800. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -0
  801. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.d.ts +1 -1
  802. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +24 -0
  803. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -0
  804. package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -0
  805. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.d.ts +2 -2
  806. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +105 -0
  807. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -0
  808. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.d.ts +2 -3
  809. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.js +5 -5
  810. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -0
  811. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +1 -1
  812. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -1
  813. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +6 -21
  814. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  815. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  816. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  817. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +9 -7
  818. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  819. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -9
  820. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +22 -29
  821. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  822. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +4 -4
  823. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +44 -7
  824. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  825. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +8 -5
  826. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +17 -12
  827. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  828. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  829. package/dist/dist-esm/react-composites/src/composites/common/constants.d.ts +9 -0
  830. package/dist/dist-esm/react-composites/src/composites/common/constants.js +11 -0
  831. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -0
  832. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +7 -34
  833. package/dist/dist-esm/react-composites/src/composites/common/icons.js +12 -32
  834. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  835. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.d.ts +7 -0
  836. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js +9 -0
  837. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -0
  838. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  839. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +16 -5
  840. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  841. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +51 -12
  842. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  843. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.d.ts +4 -0
  844. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +32 -5
  845. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  846. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +22 -4
  847. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  848. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +151 -0
  849. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js +4 -0
  850. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -0
  851. package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +4 -0
  852. package/dist/dist-esm/react-composites/src/composites/common/utils.js +16 -17
  853. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  854. package/dist/dist-esm/react-composites/src/composites/index.d.ts +1 -0
  855. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  856. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  857. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  858. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  859. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +199 -0
  860. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +92 -3
  861. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +92 -3
  862. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +76 -1
  863. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +92 -3
  864. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +199 -0
  865. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +92 -3
  866. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +199 -0
  867. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.d.ts +36 -0
  868. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js +61 -1
  869. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  870. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +92 -3
  871. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +92 -3
  872. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +92 -3
  873. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +199 -0
  874. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +92 -3
  875. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +199 -0
  876. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +92 -3
  877. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +92 -3
  878. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +199 -0
  879. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +92 -3
  880. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +92 -3
  881. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +92 -3
  882. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  883. package/package.json +37 -33
  884. package/CHANGELOG.beta.md +0 -668
  885. package/CHANGELOG.json +0 -10238
  886. package/CHANGELOG.stable.md +0 -373
  887. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +0 -43
  888. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +0 -81
  889. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +0 -1
  890. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +0 -19
  891. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +0 -89
  892. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +0 -1
  893. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +0 -23
  894. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -48
  895. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +0 -1
  896. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  897. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -37
  898. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  899. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  900. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -58
  901. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  902. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  903. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -86
  904. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  905. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  906. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -31
  907. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  908. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  909. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  910. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  911. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -9
  912. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +0 -18
  913. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +0 -1
  914. package/dist/dist-esm/react-components/src/components/VideoGallery/VideoGalleryResponsiveHorizontalGallery.d.ts +0 -14
  915. package/dist/dist-esm/react-components/src/components/VideoGallery/VideoGalleryResponsiveHorizontalGallery.js +0 -19
  916. package/dist/dist-esm/react-components/src/components/VideoGallery/VideoGalleryResponsiveHorizontalGallery.js.map +0 -1
  917. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.d.ts +0 -10
  918. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +0 -29
  919. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +0 -1
  920. package/dist/dist-esm/react-components/src/components/VoiceOverButton.d.ts +0 -7
  921. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js +0 -32
  922. package/dist/dist-esm/react-components/src/components/VoiceOverButton.js.map +0 -1
  923. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  924. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  925. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  926. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  927. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  928. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  929. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  930. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  931. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  932. package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.d.ts +0 -9
  933. package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js +0 -26
  934. package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js.map +0 -1
  935. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  936. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  937. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  938. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -61
  939. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  940. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  941. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  942. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  943. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  944. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  945. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  946. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.d.ts +0 -24
  947. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +0 -80
  948. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +0 -1
  949. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  950. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -210
  951. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  952. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  953. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  954. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  955. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  956. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  957. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  958. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.d.ts +0 -16
  959. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js +0 -38
  960. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSidePaneState.js.map +0 -1
  961. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -15
  962. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -38
  963. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  964. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  965. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  966. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  967. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  968. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  969. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  970. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +0 -27
  971. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +0 -190
  972. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +0 -1
  973. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.d.ts +0 -34
  974. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +0 -90
  975. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +0 -1
  976. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton.js.map +0 -1
  977. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButtonWithUnreadMessagesBadge.js.map +0 -1
  978. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ConvertContextualMenuItemToDrawerMenuItem.js.map +0 -1
  979. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.d.ts +0 -67
  980. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js +0 -75
  981. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +0 -1
  982. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/NotificationIcon.js.map +0 -1
  983. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js +0 -24
  984. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +0 -1
  985. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +0 -1
  986. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.d.ts +0 -13
  987. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js +0 -65
  988. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +0 -1
  989. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js +0 -150
  990. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +0 -1
  991. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  992. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  993. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  994. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  995. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -21
  996. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  997. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  998. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  999. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  1000. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  1001. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -13
  1002. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  1003. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -23
  1004. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -12
  1005. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  1006. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  1007. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -105
  1008. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  1009. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  1010. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  1011. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  1012. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  1013. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -60
  1014. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  1015. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  1016. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  1017. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
  1018. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -17
  1019. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +0 -42
  1020. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +0 -1
  1021. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +0 -11
  1022. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +0 -40
  1023. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +0 -1
  1024. /package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/{NotificationIcon.d.ts → ChatButton/NotificationIcon.d.ts} +0 -0
  1025. /package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common}/ConvertContextualMenuItemToDrawerMenuItem.d.ts +0 -0
  1026. /package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common}/ConvertContextualMenuItemToDrawerMenuItem.js +0 -0
@@ -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), "data-ui-id": "grid-layout" }, children);
34
34
  };
35
35
  /**
36
36
  * The cell aspect ratio we aim for in a grid
@@ -52,7 +52,11 @@ 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 };
55
+ return {
56
+ fillDirection: 'horizontal',
57
+ rows: 0,
58
+ columns: 0
59
+ };
56
60
  }
57
61
  // If width or height are 0 then we return rows and column evenly
58
62
  if (width <= 0 || height <= 0) {
@@ -64,7 +68,7 @@ export const calculateGridProps = (numberOfItems, width, height) => {
64
68
  }
65
69
  const aspectRatio = width / height;
66
70
  // 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;
71
+ let rows = Math.floor(Math.sqrt(TARGET_CELL_ASPECT_RATIO / aspectRatio * numberOfItems)) || 1;
68
72
  // Make sure rows do not exceed numberOfItems
69
73
  rows = Math.min(rows, numberOfItems);
70
74
  // Given the rows, get the minimum columns needed to create enough cells for the number of items
@@ -73,7 +77,7 @@ export const calculateGridProps = (numberOfItems, width, height) => {
73
77
  let fillDirection = 'horizontal';
74
78
  while (rows < numberOfItems) {
75
79
  // 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) {
80
+ if (rows / columns * aspectRatio < MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {
77
81
  rows += 1;
78
82
  columns = Math.ceil(numberOfItems / rows);
79
83
  continue;
@@ -112,9 +116,9 @@ export const calculateGridProps = (numberOfItems, width, height) => {
112
116
  // | | | | | | |
113
117
  // |___________|__________| |_______|_______|_______|
114
118
  // Calculate the aspect ratio of big cells stretched horizontally
115
- const horizontallyStretchedCellRatio = (rows / (columns - 1)) * aspectRatio;
119
+ const horizontallyStretchedCellRatio = rows / (columns - 1) * aspectRatio;
116
120
  // Calculate the aspect ratio of big cells stretched vertically
117
- const verticallyStretchedCellRatio = ((rows - 1) / columns) * aspectRatio;
121
+ const verticallyStretchedCellRatio = (rows - 1) / columns * aspectRatio;
118
122
  // We know the horizontally stretched cells aspect ratio is higher than MINIMUM_CELL_ASPECT_RATIO_ALLOWED. If vertically stretched cells
119
123
  // is also higher than the MINIMUM_CELL_ASPECT_RATIO_ALLOWED, then choose which aspect ratio is better.
120
124
  if (verticallyStretchedCellRatio >= MINIMUM_CELL_ASPECT_RATIO_ALLOWED) {
@@ -126,7 +130,11 @@ export const calculateGridProps = (numberOfItems, width, height) => {
126
130
  }
127
131
  break;
128
132
  }
129
- return { fillDirection, rows, columns };
133
+ return {
134
+ fillDirection,
135
+ rows,
136
+ columns
137
+ };
130
138
  };
131
139
  /**
132
140
  * Creates a styles classname with CSS Grid related styles given GridProps and the number of items to distribute as evenly as possible.
@@ -144,41 +152,33 @@ export const createGridStyles = (numberOfItems, gridProps) => {
144
152
  // Get grid units
145
153
  // 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
154
  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'
155
+ const gridStyles = isHorizontal ? {
156
+ gridTemplateColumns: `repeat(${units}, minmax(0, 1fr))`,
157
+ gridTemplateRows: `repeat(${blocks}, minmax(0, 1fr))`,
158
+ gridAutoFlow: 'row'
159
+ } : {
160
+ gridTemplateColumns: `repeat(${blocks}, minmax(0, 1fr))`,
161
+ gridTemplateRows: `repeat(${units}, minmax(0, 1fr))`,
162
+ gridAutoFlow: 'column'
163
+ };
164
+ const smallCellStyle = isHorizontal ? {
165
+ '> *': {
166
+ gridColumn: `auto / span ${units / smallCellsPerBlock}`
152
167
  }
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
- }
168
+ } : {
169
+ '> *': {
170
+ gridRow: `auto / span ${units / smallCellsPerBlock}`
163
171
  }
164
- : {
165
- '> *': {
166
- gridRow: `auto / span ${units / smallCellsPerBlock}`
167
- }
168
- };
172
+ };
169
173
  // If there are big cells, we are choosing to place the latest children into the big cells.
170
174
  // 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
- }
175
+ const bigCellStyle = numBigCells ? {
176
+ [`> *:nth-last-child(-n + ${numBigCells})`]: isHorizontal ? {
177
+ gridColumn: `auto / span ${units / bigCellsPerBlock}`
178
+ } : {
179
+ gridRow: `auto / span ${units / bigCellsPerBlock}`
180
180
  }
181
- : {};
181
+ } : {};
182
182
  return mergeStyles(gridStyles, smallCellStyle, bigCellStyle);
183
183
  };
184
184
  //# 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,MAA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BAAmB,EAAE,UAAU,MAAM,mBAAmB;YACxD,gBAAgB,EAAE,UAAU,KAAK,mBAAmB;YACpD,YAAY,EAAE,QAAQ;SACvB,CAAC;IAEN,MAAM,cAAc,GAAG,YAAY;QACjC,CAAC,CAAC;YACE,KAAK,EAAE;gBACL,UAAU,EAAE,eAAe,KAAK,GAAG,kBAAkB,EAAE;aACxD;SACF;QACH,CAAC,CAAC;YACE,KAAK,EAAE;gBACL,OAAO,EAAE,eAAe,KAAK,GAAG,kBAAkB,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;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,M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C5F,iBAAiB;IACjB,+GAA+G;IAC/G,MAAM,KAAK,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;IACpD,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC;QAChC,mBAAmB,EAAE,UAAU,KAAK,mBAAmB;QACvD,gBAAgB,EAAE,UAAU,MAAM,mBAAmB;QACrD,YAAY,EAAE,KAAK;KACpB,CAAC,CAAC,CAAC;QACF,mBAAmB,EAAE,UAAU,MAAM,mBAAmB;QACxD,gBAAgB,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;IAEF,2FAA2F;IAC3F,sFAAsF;IACtF,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","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 {\n children,\n styles\n } = props;\n const numberOfChildren = React.Children.count(children);\n const [currentWidth, setCurrentWidth] = useState(0);\n const [currentHeight, setCurrentHeight] = useState(0);\n const containerRef = useRef<HTMLDivElement>(null);\n const observer = useRef(new ResizeObserver((entries): void => {\n const {\n width,\n height\n } = entries[0].contentRect;\n setCurrentWidth(width);\n setCurrentHeight(height);\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 const gridProps = useMemo(() => {\n return calculateGridProps(numberOfChildren, currentWidth, currentHeight);\n }, [numberOfChildren, currentWidth, currentHeight]);\n const cssGridStyles = useMemo(() => createGridStyles(numberOfChildren, gridProps), [numberOfChildren, gridProps]);\n return <div ref={containerRef} className={mergeStyles(gridLayoutStyle, cssGridStyles, styles?.root)} data-ui-id=\"grid-layout\">\n {children}\n </div>;\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;\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};\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 {\n fillDirection: 'horizontal',\n rows: 0,\n columns: 0\n };\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 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 return {\n fillDirection,\n rows,\n columns\n };\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 const gridStyles = isHorizontal ? {\n gridTemplateColumns: `repeat(${units}, minmax(0, 1fr))`,\n gridTemplateRows: `repeat(${blocks}, minmax(0, 1fr))`,\n gridAutoFlow: 'row'\n } : {\n gridTemplateColumns: `repeat(${blocks}, minmax(0, 1fr))`,\n gridTemplateRows: `repeat(${units}, minmax(0, 1fr))`,\n gridAutoFlow: 'column'\n };\n const smallCellStyle = isHorizontal ? {\n '> *': {\n gridColumn: `auto / span ${units / smallCellsPerBlock}`\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 [`> *:nth-last-child(-n + ${numBigCells})`]: isHorizontal ? {\n gridColumn: `auto / span ${units / bigCellsPerBlock}`\n } : {\n gridRow: `auto / span ${units / bigCellsPerBlock}`\n }\n } : {};\n return mergeStyles(gridStyles, smallCellStyle, bigCellStyle);\n};"]}
@@ -13,13 +13,13 @@ export const _HighContrastAwareIcon = (props) => {
13
13
  const theme = useTheme();
14
14
  // setting colors for the icons using color from theme, so in dark mode or other accessibility modes, they have pre-defined contrast colors
15
15
  // the media query is for when in specific window accessibility mode, change the svg colors
16
- return (React.createElement(Icon, { iconName: iconName, className: mergeStyles({
16
+ return React.createElement(Icon, { iconName: iconName, className: mergeStyles({
17
17
  svg: {
18
18
  fill: disabled ? theme.palette.neutralTertiary : theme.palette.neutralPrimaryAlt,
19
19
  '@media (forced-colors: active) and (prefers-color-scheme: dark)': {
20
20
  fill: disabled ? theme.palette.neutralPrimaryAlt : theme.palette.neutralTertiary
21
21
  }
22
22
  }
23
- }) }));
23
+ }) });
24
24
  };
25
25
  //# 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;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,EACJ,QAAQ,EACR,QAAQ,EACT,GAAG,KAAK,CAAC;IACV,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,2IAA2I;IAC3I,2FAA2F;IAC3F,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","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 {\n iconName,\n disabled\n } = 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 <Icon iconName={iconName} className={mergeStyles({\n svg: {\n fill: disabled ? theme.palette.neutralTertiary : theme.palette.neutralPrimaryAlt,\n '@media (forced-colors: active) and (prefers-color-scheme: dark)': {\n fill: disabled ? theme.palette.neutralPrimaryAlt : theme.palette.neutralTertiary\n }\n }\n })} />;\n};"]}
@@ -27,6 +27,10 @@ export interface HorizontalGalleryProps {
27
27
  * @defaultValue 5
28
28
  */
29
29
  childrenPerPage?: number;
30
+ /**
31
+ * helper function to choose which tiles to give video to.
32
+ */
33
+ onFetchTilesToRender?: (indexes: number[]) => void;
30
34
  }
31
35
  /**
32
36
  * Renders a horizontal gallery that parents children horizontally. Handles pagination based on the childrenPerPage prop.
@@ -1,10 +1,11 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
3
  import { DefaultButton, Icon, Stack, mergeStyles } from '@fluentui/react';
4
- import React, { useMemo, useState } from 'react';
4
+ import React, { useEffect, useMemo, useState } from 'react';
5
5
  import { useTheme } from '../theming';
6
6
  import { rootStyle, childrenContainerStyle, leftRightButtonStyles } from './styles/HorizontalGallery.styles';
7
7
  import { useIdentifiers } from '../identifiers';
8
+ import { bucketize } from './utils/overFlowGalleriesUtils';
8
9
  /**
9
10
  * {@link HorizontalGallery} default children per page
10
11
  */
@@ -15,42 +16,48 @@ const DEFAULT_CHILDREN_PER_PAGE = 5;
15
16
  * @returns
16
17
  */
17
18
  export const HorizontalGallery = (props) => {
18
- var _a, _b;
19
- const { children, childrenPerPage = DEFAULT_CHILDREN_PER_PAGE, styles } = props;
19
+ var _a;
20
+ const { children, childrenPerPage = DEFAULT_CHILDREN_PER_PAGE, styles, onFetchTilesToRender } = props;
20
21
  const ids = useIdentifiers();
21
22
  const [page, setPage] = useState(0);
22
23
  const numberOfChildren = React.Children.count(children);
23
24
  const lastPage = Math.ceil(numberOfChildren / childrenPerPage) - 1;
24
- const paginatedChildren = useMemo(() => {
25
- return bucketize(React.Children.toArray(children), childrenPerPage);
26
- }, [children, childrenPerPage]);
27
- // If children per page is 0 or less return empty element
28
- if (childrenPerPage <= 0) {
29
- return React.createElement(React.Fragment, null);
30
- }
25
+ const indexesArray = useMemo(() => {
26
+ return bucketize([...Array(numberOfChildren).keys()], childrenPerPage);
27
+ }, [numberOfChildren, childrenPerPage]);
28
+ useEffect(() => {
29
+ if (onFetchTilesToRender && indexesArray) {
30
+ onFetchTilesToRender(indexesArray[page]);
31
+ }
32
+ }, [indexesArray, onFetchTilesToRender, page]);
31
33
  const firstIndexOfCurrentPage = page * childrenPerPage;
32
34
  const clippedPage = firstIndexOfCurrentPage < numberOfChildren - 1 ? page : lastPage;
33
- const childrenOnCurrentPage = paginatedChildren[clippedPage];
35
+ const childrenOnCurrentPage = useMemo(() => {
36
+ return indexesArray[clippedPage].map(index => {
37
+ return React.Children.toArray(children)[index];
38
+ });
39
+ }, [indexesArray, clippedPage, children]);
34
40
  const showButtons = numberOfChildren > childrenPerPage;
35
41
  const disablePreviousButton = page === 0;
36
42
  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 }))));
43
+ const childrenStyles = useMemo(() => {
44
+ return {
45
+ root: styles === null || styles === void 0 ? void 0 : styles.children
46
+ };
47
+ }, [styles === null || styles === void 0 ? void 0 : styles.children]);
48
+ // If children per page is 0 or less return empty element
49
+ if (childrenPerPage <= 0) {
50
+ return React.createElement(React.Fragment, null);
51
+ }
52
+ return React.createElement(Stack, { horizontal: true, className: mergeStyles(rootStyle, (_a = props.styles) === null || _a === void 0 ? void 0 : _a.root) },
53
+ 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.overflowGalleryLeftNavButton }),
54
+ React.createElement(Stack, { horizontal: true, className: mergeStyles(childrenContainerStyle) }, childrenOnCurrentPage.map((child, i) => {
55
+ return React.createElement(Stack.Item, { styles: childrenStyles, key: i, "data-ui-id": ids.horizontalGalleryVideoTile }, child);
56
+ })),
57
+ 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.overflowGalleryRightNavButton }));
41
58
  };
42
59
  const HorizontalGalleryNavigationButton = (props) => {
43
60
  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));
61
+ return React.createElement(DefaultButton, { className: mergeStyles(leftRightButtonStyles(theme), props.styles), onClick: props.onClick, disabled: props.disabled, "data-ui-id": props.identifier }, props.icon);
45
62
  };
46
- function bucketize(arr, bucketSize) {
47
- const bucketArray = [];
48
- if (bucketSize <= 0) {
49
- return bucketArray;
50
- }
51
- for (let i = 0; i < arr.length; i += bucketSize) {
52
- bucketArray.push(arr.slice(i, i + bucketSize));
53
- }
54
- return bucketArray;
55
- }
56
63
  //# sourceMappingURL=HorizontalGallery.js.map
@@ -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,QA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H,CACK,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,iCAAiC,GAAG,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;AAElC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAU,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,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,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D;;GAEG;AACH,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,CAAC,sBAAsB,CAAC,IAC7D,qBAAqB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;YACxC,OAAO,oBAAC,KAAK,CAAC,IAAI,IAAC,MAAM,EAAE,cAAc,EAAE,GAAG,EAAE,CAAC,gBAAc,GAAG,CAAC,0BAA0B,IACtF,KAAK,CACK,CAAC;QACpB,CAAC,CAAC,CACM;QACP,WAAW,IAAI,oBAAC,iCAAiC,IAAC,GAAG,EAAC,iBAAiB,EAAC,IAAI,EAAE,oBAAC,IAAI,IAAC,QAAQ,EAAC,8BAA8B,GAAG,EAAE,MAAM,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU,EAAE,GAAG,CAAC,6BAA6B,GAAI,CAC3R,CAAC;AACb,CAAC,CAAC;AACF,MAAM,iCAAiC,GAAG,CAAC,KAM1C,EAAe,EAAE;IAChB,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,oBAAC,aAAa,IAAC,SAAS,EAAE,WAAW,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,gBAAc,KAAK,CAAC,UAAU,IACnK,KAAK,CAAC,IAAI,CACG,CAAC;AACrB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { DefaultButton, Icon, IStyle, Stack, mergeStyles } from '@fluentui/react';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { useTheme } from '../theming';\nimport { BaseCustomStyles } from '../types';\nimport { rootStyle, childrenContainerStyle, leftRightButtonStyles } from './styles/HorizontalGallery.styles';\nimport { useIdentifiers } from '../identifiers';\nimport { bucketize } from './utils/overFlowGalleriesUtils';\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 * helper function to choose which tiles to give video to.\n */\n onFetchTilesToRender?: (indexes: number[]) => void;\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 {\n children,\n childrenPerPage = DEFAULT_CHILDREN_PER_PAGE,\n styles,\n onFetchTilesToRender\n } = props;\n const ids = useIdentifiers();\n const [page, setPage] = useState(0);\n const numberOfChildren = React.Children.count(children);\n const lastPage = Math.ceil(numberOfChildren / childrenPerPage) - 1;\n const indexesArray: number[][] = useMemo(() => {\n return bucketize([...Array(numberOfChildren).keys()], childrenPerPage);\n }, [numberOfChildren, childrenPerPage]);\n useEffect(() => {\n if (onFetchTilesToRender && indexesArray) {\n onFetchTilesToRender(indexesArray[page]);\n }\n }, [indexesArray, onFetchTilesToRender, page]);\n const firstIndexOfCurrentPage = page * childrenPerPage;\n const clippedPage = firstIndexOfCurrentPage < numberOfChildren - 1 ? page : lastPage;\n const childrenOnCurrentPage = useMemo(() => {\n return indexesArray[clippedPage].map(index => {\n return React.Children.toArray(children)[index];\n });\n }, [indexesArray, clippedPage, children]);\n const showButtons = numberOfChildren > childrenPerPage;\n const disablePreviousButton = page === 0;\n const disableNextButton = page === lastPage;\n const childrenStyles = useMemo(() => {\n return {\n root: styles?.children\n };\n }, [styles?.children]);\n\n // If children per page is 0 or less return empty element\n if (childrenPerPage <= 0) {\n return <></>;\n }\n return <Stack horizontal className={mergeStyles(rootStyle, props.styles?.root)}>\n {showButtons && <HorizontalGalleryNavigationButton key=\"previous-nav-button\" icon={<Icon iconName=\"HorizontalGalleryLeftButton\" />} styles={styles?.previousButton} onClick={() => setPage(Math.max(0, Math.min(lastPage, page - 1)))} disabled={disablePreviousButton} identifier={ids.overflowGalleryLeftNavButton} />}\n <Stack horizontal className={mergeStyles(childrenContainerStyle)}>\n {childrenOnCurrentPage.map((child, i) => {\n return <Stack.Item styles={childrenStyles} key={i} data-ui-id={ids.horizontalGalleryVideoTile}>\n {child}\n </Stack.Item>;\n })}\n </Stack>\n {showButtons && <HorizontalGalleryNavigationButton key=\"next-nav-button\" icon={<Icon iconName=\"HorizontalGalleryRightButton\" />} styles={styles?.nextButton} onClick={() => setPage(Math.min(lastPage, page + 1))} disabled={disableNextButton} identifier={ids.overflowGalleryRightNavButton} />}\n </Stack>;\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 <DefaultButton className={mergeStyles(leftRightButtonStyles(theme), props.styles)} onClick={props.onClick} disabled={props.disabled} data-ui-id={props.identifier}>\n {props.icon}\n </DefaultButton>;\n};"]}
@@ -21,7 +21,7 @@ declare type InputBoxComponentProps = {
21
21
  'data-ui-id'?: string;
22
22
  id?: string;
23
23
  textValue: string;
24
- onChange: (event: FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string | undefined) => void;
24
+ onChange: (event?: FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string) => void;
25
25
  textFieldRef?: React.RefObject<ITextField>;
26
26
  inputClassName?: string;
27
27
  placeholderText?: string;
@@ -2,7 +2,8 @@
2
2
  // Licensed under the MIT license.
3
3
  import React, { useState, useCallback } from 'react';
4
4
  import { Stack, TextField, mergeStyles, concatStyleSets, IconButton, TooltipHost } from '@fluentui/react';
5
- import { inputBoxStyle, inputBoxWrapperStyle, inputButtonStyle, textFieldStyle, textContainerStyle, inlineButtonsContainerStyle, newLineButtonsContainerStyle, inputBoxNewLineSpaceAffordance, inputButtonTooltipStyle } from './styles/InputBoxComponent.style';
5
+ import { isEnterKeyEventFromCompositionSession } from './utils';
6
+ import { inputBoxStyle, inputBoxWrapperStyle, inputButtonStyle, textFieldStyle, textContainerStyle, newLineButtonsContainerStyle, inputBoxNewLineSpaceAffordance, inputButtonTooltipStyle, iconWrapperStyle } from './styles/InputBoxComponent.style';
6
7
  import { isDarkThemed } from '../theming/themeUtils';
7
8
  import { useTheme } from '../theming';
8
9
  /**
@@ -11,15 +12,19 @@ import { useTheme } from '../theming';
11
12
  export const InputBoxComponent = (props) => {
12
13
  const { styles, id, 'data-ui-id': dataUiId, textValue, onChange, textFieldRef, placeholderText, onKeyDown, onEnterKeyDown, supportNewline, inputClassName, errorMessage, disabled, children } = props;
13
14
  const mergedRootStyle = mergeStyles(inputBoxWrapperStyle, styles === null || styles === void 0 ? void 0 : styles.root);
14
- const mergedTextFiledStyle = mergeStyles(inputBoxStyle, inputClassName, props.inlineChildren ? {} : inputBoxNewLineSpaceAffordance);
15
+ const mergedInputFieldStyle = mergeStyles(inputBoxStyle, inputClassName, props.inlineChildren ? {} : inputBoxNewLineSpaceAffordance);
15
16
  const mergedTextContainerStyle = mergeStyles(textContainerStyle, styles === null || styles === void 0 ? void 0 : styles.textFieldContainer);
16
17
  const mergedTextFieldStyle = concatStyleSets(textFieldStyle, {
17
18
  fieldGroup: styles === null || styles === void 0 ? void 0 : styles.textField,
18
- errorMessage: styles === null || styles === void 0 ? void 0 : styles.systemMessage
19
+ errorMessage: styles === null || styles === void 0 ? void 0 : styles.systemMessage,
20
+ suffix: {
21
+ backgroundColor: 'transparent',
22
+ padding: props.inlineChildren ? '0 0.25rem' : '0 0'
23
+ }
19
24
  });
20
- const onTexFieldKeyDown = useCallback((ev) => {
21
- // 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)
22
- if (ev.nativeEvent.isComposing || ev.nativeEvent.keyCode === 229 || ev.nativeEvent.which === 229) {
25
+ const mergedChildrenStyle = mergeStyles(props.inlineChildren ? {} : newLineButtonsContainerStyle);
26
+ const onTextFieldKeyDown = useCallback((ev) => {
27
+ if (isEnterKeyEventFromCompositionSession(ev)) {
23
28
  return;
24
29
  }
25
30
  if (ev.key === 'Enter' && (ev.shiftKey === false || !supportNewline)) {
@@ -28,10 +33,30 @@ export const InputBoxComponent = (props) => {
28
33
  }
29
34
  onKeyDown && onKeyDown(ev);
30
35
  }, [onEnterKeyDown, onKeyDown, supportNewline]);
31
- return (React.createElement(Stack, { className: mergedRootStyle },
32
- React.createElement("div", { className: mergedTextContainerStyle },
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))));
36
+ const onRenderChildren = () => {
37
+ return React.createElement(Stack, { horizontal: true, className: mergedChildrenStyle }, children);
38
+ };
39
+ const renderTextField = () => {
40
+ const textFieldProps = {
41
+ autoFocus: props.autoFocus === 'sendBoxTextField',
42
+ multiline: true,
43
+ autoAdjustHeight: true,
44
+ multiple: false,
45
+ resizable: false,
46
+ componentRef: textFieldRef,
47
+ id,
48
+ inputClassName: mergedInputFieldStyle,
49
+ placeholder: placeholderText,
50
+ autoComplete: 'off',
51
+ styles: mergedTextFieldStyle,
52
+ disabled,
53
+ errorMessage,
54
+ onRenderSuffix: onRenderChildren
55
+ };
56
+ return React.createElement(TextField, Object.assign({}, textFieldProps, { "data-ui-id": dataUiId, value: textValue, onChange: onChange, onKeyDown: onTextFieldKeyDown }));
57
+ };
58
+ return React.createElement(Stack, { className: mergedRootStyle },
59
+ React.createElement("div", { className: mergedTextContainerStyle }, renderTextField()));
35
60
  };
36
61
  /**
37
62
  * @private
@@ -41,18 +66,27 @@ export const InputBoxButton = (props) => {
41
66
  const [isHover, setIsHover] = useState(false);
42
67
  const mergedButtonStyle = mergeStyles(inputButtonStyle, className);
43
68
  const theme = useTheme();
44
- const calloutStyle = { root: { padding: 0 }, calloutMain: { padding: '0.5rem' } };
69
+ const calloutStyle = {
70
+ root: {
71
+ padding: 0
72
+ },
73
+ calloutMain: {
74
+ padding: '0.5rem'
75
+ }
76
+ };
45
77
  // Place callout with no gap between it and the button.
46
78
  const calloutProps = {
47
79
  gapSpace: 0,
48
80
  styles: calloutStyle,
49
81
  backgroundColor: isDarkThemed(theme) ? theme.palette.neutralLighter : ''
50
82
  };
51
- return (React.createElement(TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
83
+ return React.createElement(TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
52
84
  React.createElement(IconButton, { className: mergedButtonStyle, ariaLabel: ariaLabel, onClick: onClick, id: id, onMouseEnter: () => {
53
85
  setIsHover(true);
54
86
  }, onMouseLeave: () => {
55
87
  setIsHover(false);
56
- }, onRenderIcon: () => onRenderIcon(isHover) })));
88
+ },
89
+ // VoiceOver fix: Avoid icon from stealing focus when IconButton is double-tapped to send message by wrapping with Stack with pointerEvents style to none
90
+ onRenderIcon: () => React.createElement(Stack, { className: iconWrapperStyle }, onRenderIcon(isHover)) }));
57
91
  };
58
92
  //# 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,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAuCtC;;GAEG;AACH,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,YAAY,EACZ,QAAQ,EACR,QAAQ,EACT,GAAG,KAAK,CAAC;IAEV,MAAM,eAAe,GAAG,WAAW,CAAC,oBAAoB,EAAE,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,CAAC;IACxE,MAAM,oBAAoB,GAAG,WAAW,CACtC,aAAa,EACb,cAAc,EACd,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,8BAA8B,CAC3D,CAAC;IAEF,MAAM,wBAAwB,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S,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;AAElC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAwB,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,S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,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;YACD,yJAAyJ;YACzJ,YAAY,EAAE,GAAG,EAAE,CAAC,oBAAC,KAAK,IAAC,SAAS,EAAE,gBAAgB,IAAG,YAAY,CAAC,OAAO,CAAC,CAAS,GAAI,CAC7E,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport React, { useState, ReactNode, FormEvent, useCallback } from 'react';\nimport { Stack, TextField, mergeStyles, IStyle, ITextField, concatStyleSets, IconButton, TooltipHost, ICalloutContentStyles, ITextFieldProps } from '@fluentui/react';\nimport { BaseCustomStyles } from '../types';\nimport { isEnterKeyEventFromCompositionSession } from './utils';\nimport { inputBoxStyle, inputBoxWrapperStyle, inputButtonStyle, textFieldStyle, textContainerStyle, newLineButtonsContainerStyle, inputBoxNewLineSpaceAffordance, inputButtonTooltipStyle, iconWrapperStyle } from './styles/InputBoxComponent.style';\nimport { isDarkThemed } from '../theming/themeUtils';\nimport { useTheme } from '../theming';\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}\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; // This could be plain text or HTML.\n onChange: (event?: FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string) => 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 const mergedRootStyle = mergeStyles(inputBoxWrapperStyle, styles?.root);\n const mergedInputFieldStyle = mergeStyles(inputBoxStyle, inputClassName, props.inlineChildren ? {} : inputBoxNewLineSpaceAffordance);\n const mergedTextContainerStyle = mergeStyles(textContainerStyle, styles?.textFieldContainer);\n const mergedTextFieldStyle = concatStyleSets(textFieldStyle, {\n fieldGroup: styles?.textField,\n errorMessage: styles?.systemMessage,\n suffix: {\n backgroundColor: 'transparent',\n padding: props.inlineChildren ? '0 0.25rem' : '0 0'\n }\n });\n const mergedChildrenStyle = mergeStyles(props.inlineChildren ? {} : newLineButtonsContainerStyle);\n const onTextFieldKeyDown = useCallback((ev: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n if (isEnterKeyEventFromCompositionSession(ev)) {\n return;\n }\n if (ev.key === 'Enter' && (ev.shiftKey === false || !supportNewline)) {\n ev.preventDefault();\n onEnterKeyDown && onEnterKeyDown();\n }\n onKeyDown && onKeyDown(ev);\n }, [onEnterKeyDown, onKeyDown, supportNewline]);\n const onRenderChildren = (): JSX.Element => {\n return <Stack horizontal className={mergedChildrenStyle}>\n {children}\n </Stack>;\n };\n const renderTextField = (): JSX.Element => {\n const textFieldProps: ITextFieldProps = {\n autoFocus: props.autoFocus === 'sendBoxTextField',\n multiline: true,\n autoAdjustHeight: true,\n multiple: false,\n resizable: false,\n componentRef: textFieldRef,\n id,\n inputClassName: mergedInputFieldStyle,\n placeholder: placeholderText,\n autoComplete: 'off',\n styles: mergedTextFieldStyle,\n disabled,\n errorMessage,\n onRenderSuffix: onRenderChildren\n };\n return <TextField {...textFieldProps} data-ui-id={dataUiId} value={textValue} onChange={onChange} onKeyDown={onTextFieldKeyDown} />;\n };\n return <Stack className={mergedRootStyle}>\n <div className={mergedTextContainerStyle}>{renderTextField()}</div>\n </Stack>;\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 {\n onRenderIcon,\n onClick,\n ariaLabel,\n className,\n id,\n tooltipContent\n } = props;\n const [isHover, setIsHover] = useState(false);\n const mergedButtonStyle = mergeStyles(inputButtonStyle, className);\n const theme = useTheme();\n const calloutStyle: Partial<ICalloutContentStyles> = {\n root: {\n padding: 0\n },\n calloutMain: {\n padding: '0.5rem'\n }\n };\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 <TooltipHost hostClassName={inputButtonTooltipStyle} content={tooltipContent} calloutProps={{\n ...calloutProps\n }}>\n <IconButton className={mergedButtonStyle} ariaLabel={ariaLabel} onClick={onClick} id={id} onMouseEnter={() => {\n setIsHover(true);\n }} onMouseLeave={() => {\n setIsHover(false);\n }}\n // VoiceOver fix: Avoid icon from stealing focus when IconButton is double-tapped to send message by wrapping with Stack with pointerEvents style to none\n onRenderIcon={() => <Stack className={iconWrapperStyle}>{onRenderIcon(isHover)}</Stack>} />\n </TooltipHost>;\n};"]}
@@ -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;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,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;gBACxD,IAAI,cAAc,KAAK,SAAS,EAAE;oBAChC,cAAc,CAAC,SAAS,CAAC,CAAC;iBAC3B;aACF;QACH,CAAC,GAAI,CAAC;AACR,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 {\n cameras,\n selectedCamera,\n onSelectCamera,\n label,\n ariaDescription\n } = props;\n const theme = useTheme();\n return <IconButton data-ui-id={'local-camera-switcher-button'} styles={localVideoCameraCycleButtonStyles(theme)} iconProps={{\n iconName: 'LocalCameraSwitch'\n }} ariaLabel={label} ariaDescription={ariaDescription} aria-live={'polite'} 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};"]}