@azure/communication-react 1.16.0-beta.1 → 1.17.0-alpha-202405150013

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 (1128) hide show
  1. package/dist/communication-react.d.ts +189 -125
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-N5ydNkHZ.js → ChatMessageComponentAsRichTextEditBox-BkDaUOJU.js} +51 -28
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BkDaUOJU.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/{index-BaI-AJud.js → index-DJswSfNy.js} +6348 -5588
  5. package/dist/dist-cjs/communication-react/index-DJswSfNy.js.map +1 -0
  6. package/dist/dist-cjs/communication-react/index.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/MessageStatus.js.map +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/areEqual.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/common.d.ts +74 -0
  10. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  13. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  14. package/dist/dist-esm/acs-ui-common/src/identifier.js +4 -1
  15. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/index.d.ts +2 -0
  17. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  19. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  20. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.d.ts +1 -1
  21. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  22. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  23. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  24. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  25. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  26. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +3 -0
  27. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +13 -7
  29. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  30. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +7 -1
  31. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  32. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +20 -55
  33. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  34. package/dist/dist-esm/calling-component-bindings/src/getRemoteParticipantsExcludingConsumers.js +1 -1
  35. package/dist/dist-esm/calling-component-bindings/src/getRemoteParticipantsExcludingConsumers.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +61 -59
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +2 -2
  39. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  40. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +2 -6
  42. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  43. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  44. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -1
  46. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  47. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  48. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +41 -10
  50. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  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 +6 -3
  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.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  57. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +11 -7
  59. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  60. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +11 -9
  61. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  62. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -1
  63. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +28 -15
  64. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  65. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +46 -9
  66. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  67. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -1
  69. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  70. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +65 -75
  71. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  72. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +10 -0
  73. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +2 -1
  75. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +47 -29
  76. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +7 -8
  78. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +101 -94
  80. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  81. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  82. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +1 -3
  84. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  85. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +4 -0
  86. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -1
  87. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/Converter.js +28 -17
  89. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  90. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +58 -73
  91. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  92. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +14 -16
  93. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  94. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  95. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +3 -15
  96. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  97. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +1 -1
  98. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  100. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +1 -3
  101. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +1 -1
  102. package/dist/dist-esm/calling-stateful-client/src/PPTLiveSubscriber.js.map +1 -1
  103. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  104. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -1
  106. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  108. package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js.map +1 -1
  109. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +65 -67
  110. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  111. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +32 -24
  112. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  113. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +8 -11
  114. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -1
  115. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +1 -1
  116. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
  117. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +7 -8
  118. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  119. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  120. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  121. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -3
  122. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  123. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js +6 -7
  124. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  125. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  126. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  127. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -4
  128. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  129. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  130. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  131. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +15 -15
  132. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  133. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +3 -6
  134. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +44 -32
  135. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  136. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  137. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  138. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  139. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  140. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +38 -17
  141. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  142. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  143. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  144. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  145. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  146. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +3 -7
  147. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  148. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +3 -1
  149. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  150. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  151. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +10 -3
  152. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  153. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  154. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +16 -22
  155. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  156. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  157. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +8 -11
  158. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  159. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  160. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +4 -16
  161. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +1 -1
  162. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +57 -67
  163. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  164. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +114 -128
  165. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  166. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +4 -1
  167. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  168. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  169. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  170. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.d.ts +1 -1
  171. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  172. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.d.ts +1 -1
  173. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  174. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.d.ts +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.d.ts +1 -1
  177. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  178. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  179. package/dist/dist-esm/communication-react/src/index.d.ts +5 -3
  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/react-components/src/components/Announcer/Announcer.js +3 -6
  183. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js.map +1 -1
  184. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js.map +1 -1
  185. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.d.ts +1 -1
  186. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
  187. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js +4 -10
  188. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js.map +1 -1
  189. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js +1 -1
  190. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js.map +1 -1
  191. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js +1 -1
  192. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js.map +1 -1
  193. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/{AttachmentCard.d.ts → Attachment/AttachmentCard.d.ts} +3 -2
  195. package/dist/dist-esm/react-components/src/components/{AttachmentCard.js → Attachment/AttachmentCard.js} +22 -21
  196. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js.map +1 -0
  197. package/dist/dist-esm/react-components/src/components/{AttachmentCardGroup.js → Attachment/AttachmentCardGroup.js} +2 -2
  198. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js.map +1 -0
  199. package/dist/dist-esm/react-components/src/components/{AttachmentDownloadCards.d.ts → Attachment/AttachmentDownloadCards.d.ts} +3 -2
  200. package/dist/dist-esm/react-components/src/components/{AttachmentDownloadCards.js → Attachment/AttachmentDownloadCards.js} +14 -13
  201. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -0
  202. package/dist/dist-esm/react-components/src/components/{AttachmentUploadCards.d.ts → Attachment/AttachmentUploadCards.d.ts} +3 -3
  203. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js +48 -0
  204. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js.map +1 -0
  205. package/dist/dist-esm/react-components/src/components/CameraButton.js +8 -19
  206. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  207. package/dist/dist-esm/react-components/src/components/Caption.js +2 -2
  208. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +9 -8
  210. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  211. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +36 -19
  212. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
  213. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +2 -5
  214. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +37 -22
  216. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  217. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +3 -2
  218. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +22 -24
  219. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  220. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +1 -1
  221. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +54 -28
  222. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/ChatMessage/DefaultSystemMessage.js +9 -5
  224. package/dist/dist-esm/react-components/src/components/ChatMessage/DefaultSystemMessage.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +1 -1
  226. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +1 -1
  227. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.d.ts +3 -2
  228. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +31 -7
  229. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  230. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +37 -16
  231. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
  232. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.d.ts +2 -4
  233. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +44 -38
  234. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  235. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +2 -4
  236. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +2 -2
  237. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +2 -4
  239. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +53 -28
  240. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +6 -3
  242. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +40 -14
  243. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  244. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.d.ts +3 -2
  245. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +37 -10
  246. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +59 -25
  248. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  250. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  251. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +7 -4
  252. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +2 -2
  254. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  255. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  256. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  257. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  258. package/dist/dist-esm/react-components/src/components/ControlBar.js +10 -14
  259. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  260. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +14 -4
  261. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  262. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +3 -14
  263. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  264. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +4 -10
  265. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -1
  266. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +14 -31
  267. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -1
  268. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +5 -8
  269. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -1
  270. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +24 -6
  271. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +12 -20
  273. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +1 -1
  274. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +2 -1
  275. package/dist/dist-esm/react-components/src/components/DevicesButton.js +25 -29
  276. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/components/Dialpad/DTMFToneGenerator.js +12 -48
  278. package/dist/dist-esm/react-components/src/components/Dialpad/DTMFToneGenerator.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +45 -51
  280. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  281. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +4 -4
  282. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  283. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +2 -6
  284. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  285. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +11 -9
  286. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  287. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +11 -23
  288. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  289. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +6 -4
  290. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  291. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js +11 -5
  292. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js.map +1 -1
  293. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  294. package/dist/dist-esm/react-components/src/components/EndCallButton.js +16 -16
  295. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  296. package/dist/dist-esm/react-components/src/components/ErrorBar.js +9 -5
  297. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  298. package/dist/dist-esm/react-components/src/components/ErrorBoundary.js +2 -6
  299. package/dist/dist-esm/react-components/src/components/ErrorBoundary.js.map +1 -1
  300. package/dist/dist-esm/react-components/src/components/GridLayout.js +37 -37
  301. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  302. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
  303. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  304. package/dist/dist-esm/react-components/src/components/HoldButton.js +1 -1
  305. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
  306. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +7 -9
  307. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  308. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +9 -14
  309. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  310. package/dist/dist-esm/react-components/src/components/InputBoxButton.d.ts +1 -0
  311. package/dist/dist-esm/react-components/src/components/InputBoxButton.js +11 -17
  312. package/dist/dist-esm/react-components/src/components/InputBoxButton.js.map +1 -1
  313. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +5 -7
  314. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  315. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +3 -5
  316. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/LocalVideoTile.d.ts +29 -29
  318. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +45 -22
  319. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  320. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +4 -12
  321. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
  322. package/dist/dist-esm/react-components/src/components/MentionPopover.js +17 -14
  323. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
  324. package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js +2 -2
  325. package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js.map +1 -1
  326. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  327. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js +20 -33
  328. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js.map +1 -1
  329. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +6 -7
  330. package/dist/dist-esm/react-components/src/components/MessageThread.js +83 -49
  331. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  332. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +17 -14
  333. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  334. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +94 -101
  335. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  336. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +2 -0
  337. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +25 -30
  338. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/ParticipantList.js +51 -37
  340. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  341. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +46 -32
  342. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  343. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  344. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  345. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  346. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  347. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +6 -12
  348. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -1
  349. package/dist/dist-esm/react-components/src/components/ReactionButton.js +26 -25
  350. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  351. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.d.ts +28 -28
  352. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +44 -13
  353. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  354. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.d.ts +3 -3
  355. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +2 -2
  356. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  357. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +2 -2
  358. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  359. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.js +12 -1
  360. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.js.map +1 -1
  361. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.js +1 -1
  362. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.js.map +1 -1
  363. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.d.ts +1 -2
  364. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.js +10 -5
  365. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.js.map +1 -1
  366. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js +6 -13
  367. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js.map +1 -1
  368. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js +1 -1
  369. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +1 -1
  371. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +1 -1
  372. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +15 -10
  373. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  374. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +25 -11
  375. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  376. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +30 -23
  377. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +103 -43
  378. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  379. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +12 -17
  380. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +6 -14
  382. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  383. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +4 -4
  384. package/dist/dist-esm/react-components/src/components/SendBox.js +89 -39
  385. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  386. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +2 -2
  387. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  388. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +3 -1
  389. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  390. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +2 -4
  391. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -1
  392. package/dist/dist-esm/react-components/src/components/StreamMedia.js +3 -3
  393. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  394. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js +10 -3
  395. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js.map +1 -1
  396. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -1
  397. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js.map +1 -1
  398. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js +23 -23
  399. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js.map +1 -1
  400. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -1
  401. package/dist/dist-esm/react-components/src/components/SystemMessage.js +2 -4
  402. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  403. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +67 -22
  404. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  405. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +55 -49
  406. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +1 -1
  407. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +10 -10
  408. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  409. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +9 -6
  410. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  411. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +1 -1
  412. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  413. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +1 -1
  414. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  415. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +4 -8
  416. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  417. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +1 -1
  418. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  419. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +13 -31
  420. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  421. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js +3 -1
  422. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js.map +1 -1
  423. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +8 -12
  424. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  425. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +6 -12
  426. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  427. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +6 -2
  428. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -1
  429. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +26 -11
  430. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  431. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +14 -10
  432. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  433. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +50 -19
  434. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  435. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js +2 -2
  436. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js.map +1 -1
  437. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.d.ts +17 -0
  438. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +112 -0
  439. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -0
  440. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  441. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  442. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  443. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +10 -10
  444. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +6 -4
  445. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  446. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js +17 -11
  447. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js.map +1 -1
  448. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js +29 -24
  449. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js.map +1 -1
  450. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.d.ts +13 -13
  451. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +9 -7
  452. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  453. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +2 -2
  454. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +2 -4
  455. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
  456. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +44 -13
  457. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
  458. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js +1 -6
  459. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js.map +1 -1
  460. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +9 -34
  461. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  462. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +2 -11
  463. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -1
  464. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/Layout.styles.js.map +1 -1
  465. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  466. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  467. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -1
  468. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +1 -3
  469. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
  470. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +10 -11
  471. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
  472. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +22 -28
  473. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  474. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +11 -6
  475. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  476. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.d.ts +28 -28
  477. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +35 -45
  478. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  479. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js.map +1 -1
  480. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js.map +1 -1
  481. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +40 -22
  482. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  483. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +3 -1
  484. package/dist/dist-esm/react-components/src/components/VideoGallery.js +144 -45
  485. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  486. package/dist/dist-esm/react-components/src/components/VideoTile.js +36 -60
  487. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  488. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +2 -2
  489. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  490. package/dist/dist-esm/react-components/src/components/index.d.ts +6 -6
  491. package/dist/dist-esm/react-components/src/components/index.js +3 -3
  492. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  493. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +4 -0
  494. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +4 -0
  495. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  496. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -1
  497. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  498. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -1
  499. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +2 -6
  500. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  501. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  502. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  503. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  504. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  505. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  506. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  507. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js +2 -5
  508. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js.map +1 -1
  509. package/dist/dist-esm/react-components/src/components/styles/InputBoxButton.style.js.map +1 -1
  510. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +2 -5
  511. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  512. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +1 -1
  513. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  514. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +4 -10
  515. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  516. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.d.ts +4 -0
  517. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +22 -8
  518. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  519. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  520. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
  521. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js +14 -8
  522. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js.map +1 -1
  523. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +8 -28
  524. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  525. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +8 -12
  526. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +1 -1
  527. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +2 -11
  528. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  529. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +1 -1
  530. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +1 -1
  531. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +3 -6
  532. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  533. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  534. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +1 -2
  535. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  536. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  537. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
  538. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js +1 -2
  539. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js.map +1 -1
  540. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +5 -19
  541. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  542. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +2 -1
  543. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  544. package/dist/dist-esm/react-components/src/components/styles/v8StyleShim.js.map +1 -1
  545. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +27 -2
  546. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +22 -3
  547. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  548. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +5 -4
  549. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +35 -16
  550. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  551. package/dist/dist-esm/react-components/src/components/utils/Datetime.js +1 -4
  552. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  553. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js +18 -18
  554. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js.map +1 -1
  555. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +1 -1
  556. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +18 -3
  557. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +25 -3
  558. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  559. package/dist/dist-esm/react-components/src/components/utils/common.d.ts +1 -1
  560. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  561. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  562. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  563. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +4 -7
  564. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  565. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  566. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -1
  567. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js.map +1 -1
  568. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  569. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  570. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +10 -1
  571. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  572. package/dist/dist-esm/react-components/src/components/utils.js +13 -10
  573. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  574. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +8 -6
  575. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  576. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  577. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  578. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  579. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  580. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  581. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  582. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/ComponentLocale.js +1 -3
  583. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/ComponentLocale.js.map +1 -1
  584. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +18 -18
  585. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/ComponentLocale.js +1 -3
  586. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/ComponentLocale.js.map +1 -1
  587. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +18 -18
  588. package/dist/dist-esm/react-components/src/localization/locales/de-DE/ComponentLocale.js +1 -3
  589. package/dist/dist-esm/react-components/src/localization/locales/de-DE/ComponentLocale.js.map +1 -1
  590. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +18 -18
  591. package/dist/dist-esm/react-components/src/localization/locales/en-GB/ComponentLocale.js +1 -3
  592. package/dist/dist-esm/react-components/src/localization/locales/en-GB/ComponentLocale.js.map +1 -1
  593. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +18 -18
  594. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +38 -19
  595. package/dist/dist-esm/react-components/src/localization/locales/es-ES/ComponentLocale.js +1 -3
  596. package/dist/dist-esm/react-components/src/localization/locales/es-ES/ComponentLocale.js.map +1 -1
  597. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +18 -18
  598. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/ComponentLocale.js +1 -3
  599. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/ComponentLocale.js.map +1 -1
  600. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +18 -18
  601. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/ComponentLocale.js +1 -3
  602. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/ComponentLocale.js.map +1 -1
  603. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +18 -18
  604. package/dist/dist-esm/react-components/src/localization/locales/he-IL/ComponentLocale.js +1 -3
  605. package/dist/dist-esm/react-components/src/localization/locales/he-IL/ComponentLocale.js.map +1 -1
  606. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +18 -18
  607. package/dist/dist-esm/react-components/src/localization/locales/index.js +1 -3
  608. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  609. package/dist/dist-esm/react-components/src/localization/locales/it-IT/ComponentLocale.js +1 -3
  610. package/dist/dist-esm/react-components/src/localization/locales/it-IT/ComponentLocale.js.map +1 -1
  611. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +18 -18
  612. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/ComponentLocale.js +1 -3
  613. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/ComponentLocale.js.map +1 -1
  614. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +18 -18
  615. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/ComponentLocale.js +1 -3
  616. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/ComponentLocale.js.map +1 -1
  617. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +18 -18
  618. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/ComponentLocale.js +1 -3
  619. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/ComponentLocale.js.map +1 -1
  620. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +18 -18
  621. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/ComponentLocale.js +1 -3
  622. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/ComponentLocale.js.map +1 -1
  623. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +18 -18
  624. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/ComponentLocale.js +1 -3
  625. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/ComponentLocale.js.map +1 -1
  626. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +18 -18
  627. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/ComponentLocale.js +1 -3
  628. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/ComponentLocale.js.map +1 -1
  629. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +18 -18
  630. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/ComponentLocale.js +1 -3
  631. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/ComponentLocale.js.map +1 -1
  632. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +18 -18
  633. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/ComponentLocale.js +1 -3
  634. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/ComponentLocale.js.map +1 -1
  635. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +18 -18
  636. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/ComponentLocale.js +1 -3
  637. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/ComponentLocale.js.map +1 -1
  638. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +18 -18
  639. package/dist/dist-esm/react-components/src/localization/locales/utils.js +1 -1
  640. package/dist/dist-esm/react-components/src/localization/locales/utils.js.map +1 -1
  641. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/ComponentLocale.js +1 -3
  642. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/ComponentLocale.js.map +1 -1
  643. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +18 -18
  644. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/ComponentLocale.js +1 -3
  645. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/ComponentLocale.js.map +1 -1
  646. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +18 -18
  647. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +3 -5
  648. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  649. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js +1 -1
  650. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js.map +1 -1
  651. package/dist/dist-esm/react-components/src/theming/generateTheme.js +15 -1
  652. package/dist/dist-esm/react-components/src/theming/generateTheme.js.map +1 -1
  653. package/dist/dist-esm/react-components/src/theming/icons.js +24 -33
  654. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  655. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -1
  656. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  657. package/dist/dist-esm/react-components/src/theming/themeDuplicates.js.map +1 -1
  658. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  659. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  660. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -7
  661. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  662. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +21 -49
  663. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  664. package/dist/dist-esm/react-components/src/types/CallSurveyImprovementSuggestions.js.map +1 -1
  665. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -1
  666. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -1
  667. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  668. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  669. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js.map +1 -1
  670. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  671. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  672. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  673. package/dist/dist-esm/react-components/src/types/ReactionTypes.js.map +1 -1
  674. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  675. package/dist/dist-esm/react-components/src/types/SurveyIssues.js.map +1 -1
  676. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js.map +1 -1
  677. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  678. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  679. package/dist/dist-esm/react-composites/src/Logger.js.map +1 -1
  680. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +7 -0
  681. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +42 -39
  682. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  683. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +8 -0
  684. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  685. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +10 -8
  686. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +181 -87
  687. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  688. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +11 -0
  689. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +7 -1
  690. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  691. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  692. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js +8 -3
  693. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js.map +1 -1
  694. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  695. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +1 -3
  696. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
  697. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  698. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +2 -2
  699. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  700. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  701. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +77 -33
  702. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  703. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +37 -60
  704. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  705. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +6 -6
  706. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +133 -141
  707. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  708. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.d.ts +13 -0
  709. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js +23 -19
  710. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js.map +1 -1
  711. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +1 -7
  712. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  713. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +1 -1
  714. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  715. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +1 -7
  716. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  717. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +5 -4
  718. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  719. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +4 -4
  720. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
  721. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +4 -4
  722. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  723. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +33 -22
  724. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  725. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +35 -25
  726. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  727. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +26 -30
  728. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  729. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +76 -45
  730. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  732. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  733. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +2 -2
  734. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  735. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js +10 -32
  736. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js.map +1 -1
  737. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +29 -11
  738. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  739. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js.map +1 -1
  740. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +14 -13
  741. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +61 -40
  742. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  743. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +4 -4
  744. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  745. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  746. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  747. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js +3 -5
  748. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js.map +1 -1
  749. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +7 -7
  750. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +3 -1
  751. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +10 -7
  753. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  754. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +23 -13
  755. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  756. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +3 -1
  757. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  758. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +5 -2
  759. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  760. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +1 -1
  761. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -1
  762. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js +1 -1
  763. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js.map +1 -1
  764. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js +1 -1
  765. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js.map +1 -1
  766. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -1
  767. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  768. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +7 -7
  769. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  770. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -1
  771. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +25 -13
  772. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  773. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  774. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  775. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  776. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  777. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +1 -0
  778. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +20 -13
  779. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  780. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +56 -24
  781. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  782. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +5 -13
  783. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -1
  784. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +13 -7
  785. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  786. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +15 -7
  787. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  788. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +3 -3
  789. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  790. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js +2 -2
  791. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js.map +1 -1
  792. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.d.ts +1 -1
  793. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js +4 -3
  794. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js.map +1 -1
  795. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +18 -21
  796. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  797. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +3 -3
  798. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
  799. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  800. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  801. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  802. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +2 -1
  803. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +1 -1
  804. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +6 -2
  805. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +4 -0
  806. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  807. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  808. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  809. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.d.ts +1 -1
  810. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js +1 -4
  811. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js.map +1 -1
  812. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.d.ts +1 -1
  813. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.js +1 -1
  814. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.js.map +1 -1
  815. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  816. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  817. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +1 -1
  818. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.js.map +1 -1
  819. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  820. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  821. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  822. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +1 -1
  823. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +3 -1
  824. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  825. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.d.ts +1 -1
  826. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.js +10 -4
  827. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.js.map +1 -1
  828. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +4 -4
  829. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -1
  830. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  831. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +3 -3
  832. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +11 -2
  833. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  834. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  835. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -4
  836. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  837. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  838. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  839. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  840. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +5 -5
  841. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +4 -4
  842. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  843. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  844. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  845. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  846. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +5 -5
  847. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  848. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  849. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  850. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +2 -6
  851. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  852. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +41 -29
  853. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  854. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  855. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  856. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/DtmfDialpadPage.styles.js.map +1 -1
  857. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +1 -4
  858. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  859. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -1
  860. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +2 -9
  861. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  862. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  863. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +2 -4
  864. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  865. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  866. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  867. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +1 -2
  868. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  869. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +6 -24
  870. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +1 -1
  871. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  872. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  873. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CapabilityChangedNotificationTracking.js.map +1 -1
  874. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  875. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +11 -13
  876. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  877. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js +11 -10
  878. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js.map +1 -1
  879. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +2 -2
  880. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  881. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +2 -2
  882. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +49 -29
  883. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  884. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  885. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.d.ts +6 -6
  886. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js +15 -5
  887. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js.map +1 -1
  888. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js +2 -2
  889. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js.map +1 -1
  890. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/useConsoleErrors.js.map +1 -1
  891. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +79 -29
  892. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  893. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js +1 -1
  894. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js.map +1 -1
  895. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +9 -7
  896. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  897. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js +6 -9
  898. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js.map +1 -1
  899. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.d.ts +1 -1
  900. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +5 -5
  901. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -1
  902. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +12 -0
  903. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  904. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +53 -28
  905. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +213 -131
  906. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  907. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +14 -24
  908. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  909. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +1 -0
  910. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  911. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +5 -11
  912. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +22 -40
  913. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  914. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +1 -1
  915. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  916. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  917. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
  918. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  919. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -1
  920. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  921. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +4 -9
  922. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +6 -6
  923. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  924. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  925. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +3 -5
  926. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +1 -1
  927. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +7 -4
  928. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  929. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +3 -5
  930. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  931. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +107 -41
  932. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  933. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +1 -1
  934. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +1 -1
  935. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  936. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +4 -17
  937. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +59 -124
  938. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  939. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +6 -19
  940. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  941. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.d.ts +0 -5
  942. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -31
  943. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  944. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +66 -61
  945. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +33 -44
  946. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +1 -1
  947. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +12 -7
  948. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  949. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +1 -8
  950. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  951. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +1 -3
  952. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  953. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +26 -9
  954. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  955. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  956. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +1 -2
  957. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  958. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +3 -7
  959. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  960. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +31 -21
  961. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  962. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +3 -0
  963. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +31 -26
  964. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
  965. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +1 -1
  966. package/dist/dist-esm/react-composites/src/composites/common/AudioProvider.js.map +1 -1
  967. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +8 -3
  968. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  969. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +5 -14
  970. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  971. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +9 -23
  972. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
  973. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
  974. package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.d.ts +10 -0
  975. package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js +37 -0
  976. package/dist/dist-esm/react-composites/src/composites/common/CalloutWithIcon.js.map +1 -0
  977. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +5 -7
  978. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
  979. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +12 -16
  980. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  981. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +1 -1
  982. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -1
  983. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +1 -5
  984. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  985. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +63 -41
  986. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  987. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +39 -37
  988. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  989. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +105 -66
  990. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  991. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js +1 -1
  992. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js.map +1 -1
  993. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +1 -1
  994. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -1
  995. package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  996. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.d.ts +2 -2
  997. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js +5 -7
  998. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js.map +1 -1
  999. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +86 -118
  1000. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  1001. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -1
  1002. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  1003. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.d.ts +2 -2
  1004. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js +5 -7
  1005. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js.map +1 -1
  1006. package/dist/dist-esm/react-composites/src/composites/common/Drawer/captionSettingsDrawer.styles.js.map +1 -1
  1007. package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js +1 -1
  1008. package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js.map +1 -1
  1009. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +1 -1
  1010. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -1
  1011. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +18 -11
  1012. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  1013. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  1014. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  1015. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +13 -15
  1016. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  1017. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +6 -5
  1018. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +28 -12
  1019. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  1020. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +8 -16
  1021. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  1022. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js +2 -1
  1023. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js.map +1 -1
  1024. package/dist/dist-esm/react-composites/src/composites/common/Survey.d.ts +20 -7
  1025. package/dist/dist-esm/react-composites/src/composites/common/Survey.js +19 -34
  1026. package/dist/dist-esm/react-composites/src/composites/common/Survey.js.map +1 -1
  1027. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.d.ts +1 -1
  1028. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js +4 -3
  1029. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js.map +1 -1
  1030. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +11 -8
  1031. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  1032. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.d.ts +2 -2
  1033. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js +3 -2
  1034. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js.map +1 -1
  1035. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +1 -1
  1036. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +11 -12
  1037. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  1038. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  1039. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
  1040. package/dist/dist-esm/react-composites/src/composites/common/icons.js +3 -3
  1041. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  1042. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -1
  1043. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -1
  1044. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -1
  1045. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  1046. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +4 -10
  1047. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  1048. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +11 -44
  1049. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  1050. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +6 -29
  1051. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  1052. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +4 -22
  1053. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  1054. package/dist/dist-esm/react-composites/src/composites/common/styles/Survey.styles.js +15 -13
  1055. package/dist/dist-esm/react-composites/src/composites/common/styles/Survey.styles.js.map +1 -1
  1056. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  1057. package/dist/dist-esm/react-composites/src/composites/common/utils.js +17 -12
  1058. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  1059. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  1060. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  1061. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  1062. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  1063. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/CompositeLocale.js.map +1 -1
  1064. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +4 -0
  1065. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/CompositeLocale.js.map +1 -1
  1066. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +4 -0
  1067. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/CompositeLocale.js.map +1 -1
  1068. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +4 -0
  1069. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/CompositeLocale.js.map +1 -1
  1070. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +4 -0
  1071. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +8 -0
  1072. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/CompositeLocale.js.map +1 -1
  1073. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +4 -0
  1074. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/CompositeLocale.js.map +1 -1
  1075. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +4 -0
  1076. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/CompositeLocale.js.map +1 -1
  1077. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +4 -0
  1078. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/CompositeLocale.js.map +1 -1
  1079. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +4 -0
  1080. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  1081. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/CompositeLocale.js.map +1 -1
  1082. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +4 -0
  1083. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/CompositeLocale.js.map +1 -1
  1084. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +4 -0
  1085. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/CompositeLocale.js.map +1 -1
  1086. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +4 -0
  1087. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/CompositeLocale.js.map +1 -1
  1088. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +4 -0
  1089. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/CompositeLocale.js.map +1 -1
  1090. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +4 -0
  1091. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/CompositeLocale.js.map +1 -1
  1092. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +4 -0
  1093. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/CompositeLocale.js.map +1 -1
  1094. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +4 -0
  1095. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/CompositeLocale.js.map +1 -1
  1096. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +4 -0
  1097. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/CompositeLocale.js.map +1 -1
  1098. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +4 -0
  1099. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/CompositeLocale.js.map +1 -1
  1100. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +4 -0
  1101. package/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js +1 -1
  1102. package/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js.map +1 -1
  1103. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/CompositeLocale.js.map +1 -1
  1104. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +4 -0
  1105. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/CompositeLocale.js.map +1 -1
  1106. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +4 -0
  1107. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  1108. package/package.json +6 -6
  1109. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-N5ydNkHZ.js.map +0 -1
  1110. package/dist/dist-cjs/communication-react/index-BaI-AJud.js.map +0 -1
  1111. package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +0 -1
  1112. package/dist/dist-esm/react-components/src/components/AttachmentCardGroup.js.map +0 -1
  1113. package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.js.map +0 -1
  1114. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js +0 -45
  1115. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +0 -1
  1116. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.d.ts +0 -48
  1117. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js +0 -190
  1118. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js.map +0 -1
  1119. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  1120. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  1121. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  1122. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.d.ts +0 -29
  1123. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js +0 -14
  1124. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js.map +0 -1
  1125. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  1126. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -15
  1127. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  1128. /package/dist/dist-esm/react-components/src/components/{AttachmentCardGroup.d.ts → Attachment/AttachmentCardGroup.d.ts} +0 -0
@@ -23,19 +23,17 @@ const TableEditOperationMap = {
23
23
  };
24
24
  const tableEditInsertMenuItem = {
25
25
  key: 'menuNameTableInsert',
26
- unlocalizedText: 'Insert123',
26
+ unlocalizedText: 'Insert',
27
27
  subItems: {
28
- menuNameTableInsertAbove: 'Insert above121312 ',
28
+ menuNameTableInsertAbove: 'Insert above',
29
29
  menuNameTableInsertBelow: 'Insert below',
30
- menuNameTableInsertLeft: 'Insert left123 ',
30
+ menuNameTableInsertLeft: 'Insert left',
31
31
  menuNameTableInsertRight: 'Insert right'
32
32
  },
33
33
  onClick,
34
34
  iconProps: {
35
35
  iconName: 'RichTextTableInsertMenuIcon',
36
- styles: {
37
- root: tableContextMenuIconStyles
38
- }
36
+ styles: { root: tableContextMenuIconStyles }
39
37
  }
40
38
  };
41
39
  const tableEditDeleteMenuItem = {
@@ -49,9 +47,7 @@ const tableEditDeleteMenuItem = {
49
47
  onClick,
50
48
  iconProps: {
51
49
  iconName: 'RichTextTableDeleteMenuIcon',
52
- styles: {
53
- root: tableContextMenuIconStyles
54
- }
50
+ styles: { root: tableContextMenuIconStyles }
55
51
  }
56
52
  };
57
53
  const tableActions = [tableEditInsertMenuItem, tableEditDeleteMenuItem];
@@ -65,9 +61,6 @@ export const createTableEditMenuProvider = (strings) => {
65
61
  const getEditingTable = (editor, node) => {
66
62
  const td = editor.getElementAtCursor('TD,TH', node);
67
63
  const table = td && editor.getElementAtCursor('table', td);
68
- return (table === null || table === void 0 ? void 0 : table.isContentEditable) ? {
69
- table,
70
- td
71
- } : null;
64
+ return (table === null || table === void 0 ? void 0 : table.isContentEditable) ? { table, td } : null;
72
65
  };
73
66
  //# sourceMappingURL=RichTextTableContextMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextTableContextMenu.js","sourceRoot":"","sources":["../../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,SAAS,EAAE,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qBAAqB;IAC1B,eAAe,EAAE,QAAQ;IACzB,QAAQ,EAAE;QACR,yBAAyB,EAAE,eAAe;QAC1C,sBAAsB,EAAE,YAAY;QACpC,wBAAwB,EAAE,cAAc;KACzC;IACD,OAAO;IACP,SAAS,EAAE;QACT,QAAQ,EAAE,6BAA6B;QACvC,MAAM,EAAE;YACN,IAAI,EAAE,0BAA0B;SACjC;KACF;CACF,CAAC;AACF,MAAM,YAAY,GAA8B,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAC;AAEnG;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,OAAkC,EAAgB,EAAE;IAC9F,OAAO,yBAAyB,CAAC,WAAW,EAAE,YAAY,EAAE,uBAAuB,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,EAAE,CAAC,MAAe,EAAE,IAAU,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACxK,CAAC,CAAC;AACF,MAAM,eAAe,GAAG,CAAC,MAAe,EAAE,IAAU,EAG3C,EAAE;IACT,MAAM,EAAE,GAAI,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAA0B,CAAC;IAC9E,MAAM,KAAK,GAAG,EAAE,IAAK,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,CAAsB,CAAC;IACjF,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,EAAC,CAAC,CAAC;QAChC,KAAK;QACL,EAAE;KACH,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { editTable } from 'roosterjs-editor-api';\nimport { CompatibleTableOperation, EditorPlugin, IEditor } from 'roosterjs-editor-types-compatible';\nimport { ContextMenuItem, createContextMenuProvider, LocalizedStrings } from 'roosterjs-react';\nimport { tableContextMenuStrings } from '../../../utils/RichTextEditorStringsUtils';\nimport { tableContextMenuIconStyles } from '../../../styles/RichTextEditor.styles';\nconst onClick = (key: string, editor: IEditor): void => {\n editor.focus();\n const operation = TableEditOperationMap[key];\n if (typeof operation === 'number') {\n editTable(editor, operation);\n }\n};\nconst TableEditOperationMap: Partial<Record<string, CompatibleTableOperation>> = {\n menuNameTableInsertAbove: CompatibleTableOperation.InsertAbove,\n menuNameTableInsertBelow: CompatibleTableOperation.InsertBelow,\n menuNameTableInsertLeft: CompatibleTableOperation.InsertLeft,\n menuNameTableInsertRight: CompatibleTableOperation.InsertRight,\n menuNameTableDeleteTable: CompatibleTableOperation.DeleteTable,\n menuNameTableDeleteColumn: CompatibleTableOperation.DeleteColumn,\n menuNameTableDeleteRow: CompatibleTableOperation.DeleteRow\n};\nconst tableEditInsertMenuItem: ContextMenuItem<string> = {\n key: 'menuNameTableInsert',\n unlocalizedText: 'Insert123',\n subItems: {\n menuNameTableInsertAbove: 'Insert above121312 ',\n menuNameTableInsertBelow: 'Insert below',\n menuNameTableInsertLeft: 'Insert left123 ',\n menuNameTableInsertRight: 'Insert right'\n },\n onClick,\n iconProps: {\n iconName: 'RichTextTableInsertMenuIcon',\n styles: {\n root: tableContextMenuIconStyles\n }\n }\n};\nconst tableEditDeleteMenuItem: ContextMenuItem<string> = {\n key: 'menuNameTableDelete',\n unlocalizedText: 'Delete',\n subItems: {\n menuNameTableDeleteColumn: 'Delete column',\n menuNameTableDeleteRow: 'Delete row',\n menuNameTableDeleteTable: 'Delete table'\n },\n onClick,\n iconProps: {\n iconName: 'RichTextTableDeleteMenuIcon',\n styles: {\n root: tableContextMenuIconStyles\n }\n }\n};\nconst tableActions: ContextMenuItem<string>[] = [tableEditInsertMenuItem, tableEditDeleteMenuItem];\n\n/**\n * Create a new instance of ContextMenuProvider to support table editing functionalities in context menu\n * @returns A new ContextMenuProvider\n */\nexport const createTableEditMenuProvider = (strings?: LocalizedStrings<string>): EditorPlugin => {\n return createContextMenuProvider('tableEdit', tableActions, tableContextMenuStrings(strings ?? {}), (editor: IEditor, node: Node) => !!getEditingTable(editor, node));\n};\nconst getEditingTable = (editor: IEditor, node: Node): {\n table: HTMLTableElement;\n td: HTMLTableCellElement;\n} | null => {\n const td = (editor.getElementAtCursor('TD,TH', node) as HTMLTableCellElement);\n const table = td && (editor.getElementAtCursor('table', td) as HTMLTableElement);\n return table?.isContentEditable ? {\n table,\n td\n } : null;\n};"]}
1
+ {"version":3,"file":"RichTextTableContextMenu.js","sourceRoot":"","sources":["../../../../../../../../../react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAyB,MAAM,mCAAmC,CAAC;AACpG,OAAO,EAAmB,yBAAyB,EAAoB,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,MAAe,EAAQ,EAAE;IACrD,MAAM,CAAC,KAAK,EAAE,CAAC;IACf,MAAM,SAAS,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC;IAC7C,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAClC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC/B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAsD;IAC/E,wBAAwB,EAAE,wBAAwB,CAAC,WAAW;IAC9D,wBAAwB,EAAE,wBAAwB,CAAC,WAAW;IAC9D,uBAAuB,EAAE,wBAAwB,CAAC,UAAU;IAC5D,wBAAwB,EAAE,wBAAwB,CAAC,WAAW;IAC9D,wBAAwB,EAAE,wBAAwB,CAAC,WAAW;IAC9D,y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,EAAE,IAAI,CAAyB,CAAC;IAC5E,MAAM,KAAK,GAAG,EAAE,IAAK,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,CAAsB,CAAC;IAEjF,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,EAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AACzD,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { editTable } from 'roosterjs-editor-api';\nimport { CompatibleTableOperation, EditorPlugin, IEditor } from 'roosterjs-editor-types-compatible';\nimport { ContextMenuItem, createContextMenuProvider, LocalizedStrings } from 'roosterjs-react';\nimport { tableContextMenuStrings } from '../../../utils/RichTextEditorStringsUtils';\nimport { tableContextMenuIconStyles } from '../../../styles/RichTextEditor.styles';\n\nconst onClick = (key: string, editor: IEditor): void => {\n editor.focus();\n const operation = TableEditOperationMap[key];\n if (typeof operation === 'number') {\n editTable(editor, operation);\n }\n};\n\nconst TableEditOperationMap: Partial<Record<string, CompatibleTableOperation>> = {\n menuNameTableInsertAbove: CompatibleTableOperation.InsertAbove,\n menuNameTableInsertBelow: CompatibleTableOperation.InsertBelow,\n menuNameTableInsertLeft: CompatibleTableOperation.InsertLeft,\n menuNameTableInsertRight: CompatibleTableOperation.InsertRight,\n menuNameTableDeleteTable: CompatibleTableOperation.DeleteTable,\n menuNameTableDeleteColumn: CompatibleTableOperation.DeleteColumn,\n menuNameTableDeleteRow: CompatibleTableOperation.DeleteRow\n};\n\nconst tableEditInsertMenuItem: ContextMenuItem<string> = {\n key: 'menuNameTableInsert',\n unlocalizedText: 'Insert',\n subItems: {\n menuNameTableInsertAbove: 'Insert above',\n menuNameTableInsertBelow: 'Insert below',\n menuNameTableInsertLeft: 'Insert left',\n menuNameTableInsertRight: 'Insert right'\n },\n onClick,\n iconProps: {\n iconName: 'RichTextTableInsertMenuIcon',\n styles: { root: tableContextMenuIconStyles }\n }\n};\n\nconst tableEditDeleteMenuItem: ContextMenuItem<string> = {\n key: 'menuNameTableDelete',\n unlocalizedText: 'Delete',\n subItems: {\n menuNameTableDeleteColumn: 'Delete column',\n menuNameTableDeleteRow: 'Delete row',\n menuNameTableDeleteTable: 'Delete table'\n },\n onClick,\n iconProps: {\n iconName: 'RichTextTableDeleteMenuIcon',\n styles: { root: tableContextMenuIconStyles }\n }\n};\n\nconst tableActions: ContextMenuItem<string>[] = [tableEditInsertMenuItem, tableEditDeleteMenuItem];\n\n/**\n * Create a new instance of ContextMenuProvider to support table editing functionalities in context menu\n * @returns A new ContextMenuProvider\n */\nexport const createTableEditMenuProvider = (strings?: LocalizedStrings<string>): EditorPlugin => {\n return createContextMenuProvider(\n 'tableEdit',\n tableActions,\n tableContextMenuStrings(strings ?? {}),\n (editor: IEditor, node: Node) => !!getEditingTable(editor, node)\n );\n};\n\nconst getEditingTable = (editor: IEditor, node: Node): { table: HTMLTableElement; td: HTMLTableCellElement } | null => {\n const td = editor.getElementAtCursor('TD,TH', node) as HTMLTableCellElement;\n const table = td && (editor.getElementAtCursor('table', td) as HTMLTableElement);\n\n return table?.isContentEditable ? { table, td } : null;\n};\n"]}
@@ -37,7 +37,7 @@ export const insertTable = (editor, columns, rows) => {
37
37
  editor.select(new Position(table, CompatiblePositionType.After));
38
38
  editor.insertNode(document.createElement('br'));
39
39
  }
40
- editor.runAsync(editor => editor.select(new Position(table, CompatiblePositionType.Begin).normalize()));
40
+ editor.runAsync((editor) => editor.select(new Position(table, CompatiblePositionType.Begin).normalize()));
41
41
  }, CompatibleChangeSource.Format, undefined /* canUndoByBackspace */, {
42
42
  formatApiName: 'insertTable'
43
43
  });
@@ -1 +1 @@
1
- {"version":3,"file":"insertTableAction.js","sourceRoot":"","sources":["../../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,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B,GAAG,KAAK,CAAC,kBAAkB,CAAC;QAEvD,6DAA6D;QAC7D,IAAI,qBAAqB,KAAK,IAAI,EAAE,CAAC;YACnC,4BAA4B;YAC5B,gDAAgD;YAChD,MAAM,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC,CAAC;YACjE,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;QAClD,CAAC;QACD,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IAC1G,CAAC,EAAE,sBAAsB,CAAC,MAAM,EAAE,SAAS,CAAC,wBAAwB,EAAE;QACpE,aAAa,EAAE,aAAa;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC;AACF,SAAS,iBAAiB,CAAC,OAAe;IACxC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QACjB,OAAO,OAAO,CAAC;IACjB,CAAC;SAAM,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;SAAM,CAAC;QACN,OAAO,MAAM,CAAC;IAChB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { Position, VTable } from 'roosterjs-editor-dom';\nimport type { IEditor } from 'roosterjs-editor-types-compatible';\nimport { CompatibleChangeSource, CompatiblePositionType } from 'roosterjs-editor-types-compatible';\n\n// This file uses RoosterJS React package implementation with updates to change table's size and remove styles\n\n/**\n * Insert table into editor at current selection\n * @param editor The editor instance\n * @param columns Number of columns in table\n * @param rows Number of rows in table\n */\nexport const insertTable = (editor: IEditor, columns: number, rows: number): void => {\n const document = editor.getDocument();\n const table = (document.createElement('table') as HTMLTableElement);\n for (let i = 0; i < rows; i++) {\n const tr = (document.createElement('tr') as HTMLTableRowElement);\n table.appendChild(tr);\n for (let j = 0; j < columns; j++) {\n const td = (document.createElement('td') as HTMLTableCellElement);\n tr.appendChild(td);\n td.appendChild(document.createElement('br'));\n\n // set the width as otherwise insets doesn't work well in table\n // review if it's needed when content model packages are used\n td.style.width = getTableCellWidth(columns);\n }\n }\n editor.focus();\n editor.addUndoSnapshot(() => {\n const vTable = new VTable(table);\n vTable.writeBack();\n editor.insertNode(table);\n const nextElementAfterTable = table.nextElementSibling;\n\n // insert br only if there is no next element after the table\n if (nextElementAfterTable === null) {\n // insert br after the table\n // so users can easily input content after table\n editor.select(new Position(table, CompatiblePositionType.After));\n editor.insertNode(document.createElement('br'));\n }\n editor.runAsync(editor => editor.select(new Position(table, CompatiblePositionType.Begin).normalize()));\n }, CompatibleChangeSource.Format, undefined /* canUndoByBackspace */, {\n formatApiName: 'insertTable'\n });\n};\nfunction getTableCellWidth(columns: number): string {\n if (columns <= 4) {\n return '120px';\n } else if (columns <= 6) {\n return '100px';\n } else {\n return '70px';\n }\n}"]}
1
+ {"version":3,"file":"insertTableAction.js","sourceRoot":"","sources":["../../../../../../../../../react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEnG,+GAA+G;AAE/G;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAe,EAAE,OAAe,EAAE,IAAY,EAAQ,EAAE;IAClF,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACtC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAqB,CAAC;IAClE,KAAK,IAAI,CAAC,GAAG,C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C,IAAI,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;IAC5G,CAAC,EACD,sBAAsB,CAAC,MAAM,EAC7B,SAAS,CAAC,wBAAwB,EAClC;QACE,aAAa,EAAE,aAAa;KAC7B,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,iBAAiB,CAAC,OAAe;IACxC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QACjB,OAAO,OAAO,CAAC;IACjB,CAAC;SAAM,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;SAAM,CAAC;QACN,OAAO,MAAM,CAAC;IAChB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { Position, VTable } from 'roosterjs-editor-dom';\nimport type { IEditor } from 'roosterjs-editor-types-compatible';\nimport { CompatibleChangeSource, CompatiblePositionType } from 'roosterjs-editor-types-compatible';\n\n// This file uses RoosterJS React package implementation with updates to change table's size and remove styles\n\n/**\n * Insert table into editor at current selection\n * @param editor The editor instance\n * @param columns Number of columns in table\n * @param rows Number of rows in table\n */\nexport const insertTable = (editor: IEditor, columns: number, rows: number): void => {\n const document = editor.getDocument();\n const table = document.createElement('table') as HTMLTableElement;\n for (let i = 0; i < rows; i++) {\n const tr = document.createElement('tr') as HTMLTableRowElement;\n table.appendChild(tr);\n for (let j = 0; j < columns; j++) {\n const td = document.createElement('td') as HTMLTableCellElement;\n tr.appendChild(td);\n td.appendChild(document.createElement('br'));\n\n // set the width as otherwise insets doesn't work well in table\n // review if it's needed when content model packages are used\n td.style.width = getTableCellWidth(columns);\n }\n }\n\n editor.focus();\n editor.addUndoSnapshot(\n () => {\n const vTable = new VTable(table);\n vTable.writeBack();\n editor.insertNode(table);\n const nextElementAfterTable = table.nextElementSibling;\n\n // insert br only if there is no next element after the table\n if (nextElementAfterTable === null) {\n // insert br after the table\n // so users can easily input content after table\n editor.select(new Position(table, CompatiblePositionType.After));\n editor.insertNode(document.createElement('br'));\n }\n\n editor.runAsync((editor) => editor.select(new Position(table, CompatiblePositionType.Begin).normalize()));\n },\n CompatibleChangeSource.Format,\n undefined /* canUndoByBackspace */,\n {\n formatApiName: 'insertTable'\n }\n );\n};\n\nfunction getTableCellWidth(columns: number): string {\n if (columns <= 4) {\n return '120px';\n } else if (columns <= 6) {\n return '100px';\n } else {\n return '70px';\n }\n}\n"]}
@@ -31,7 +31,7 @@ export default class CopyPastePlugin {
31
31
  export const removeImageElement = (event) => {
32
32
  // We don't support the pasting options such as paste as image yet.
33
33
  if (event.eventType === CompatiblePluginEventType.BeforePaste && event.pasteType === CompatiblePasteType.Normal) {
34
- event.fragment.querySelectorAll('img').forEach(image => {
34
+ event.fragment.querySelectorAll('img').forEach((image) => {
35
35
  // If the image is the only child of its parent, remove all the parents of this img element.
36
36
  let parentNode = image.parentElement;
37
37
  let currentNode = image;
@@ -1 +1 @@
1
- {"version":3,"file":"CopyPastePlugin.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3H;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAApC;QACU,WAAM,GAAmB,IAAI,CAAC;IAexC,CAAC;IAdC,OAAO;QACL,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IACD,UAAU,CAAC,MAAe;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IACD,OAAO,KAAU,CAAC;IAClB,aAAa,CAAC,KAAkB;QAC9B,kBAAkB,CAAC,KAAK,CAAC,CA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,GAAG,eAAe,IAAI,eAAe,CAAC,eAAe,CAAC,CAAC;QACvE,qCAAqC;QACrC,MAAM,eAAe,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC;QACpD,wDAAwD;QACxD,MAAM,mBAAmB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,EAAE,CAAC,CAAC;QACnF,IAAI,eAAe,KAAK,IAAI,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,IAAI,mBAAmB,KAAK,IAAI,EAAE,CAAC;YAChH,MAAM,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC;YAC5C,sEAAsE;YACtE,MAAM,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;YAC9E,uHAAuH;YACvH,2FAA2F;YAC3F,uGAAuG;YACvG,gHAAgH;YAChH,2GAA2G;YAC3G,MAAM,gBAAgB,GAAG,eAAe,CAAC,SAAS,GAAG,mBAAmB,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,WAAW,CAAC;YAC5G,eAAe,CAAC,QAAQ,CAAC;gBACvB,GAAG,EAAE,gBAAgB;gBACrB,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getPositionRect, normalizeRect } from 'roosterjs-editor-dom';\nimport type { PluginEvent, EditorPlugin, IEditor } from 'roosterjs-editor-types';\nimport { CompatiblePluginEventType, CompatiblePasteType, CompatibleChangeSource } from 'roosterjs-editor-types-compatible';\n\n/**\n * CopyPastePlugin is a plugin for handling copy and paste events in the editor.\n */\nexport default class CopyPastePlugin implements EditorPlugin {\n private editor: IEditor | null = null;\n getName(): string {\n return 'CopyPastePlugin';\n }\n initialize(editor: IEditor): void {\n this.editor = editor;\n }\n dispose(): void {}\n onPluginEvent(event: PluginEvent): void {\n removeImageElement(event);\n if (this.editor !== null && !this.editor.isDisposed()) {\n // scroll the editor to the correct position after pasting content\n scrollToBottomAfterContentPaste(event, this.editor);\n }\n }\n}\n\n/**\n * @internal\n * Exported only for unit testing\n */\nexport const removeImageElement = (event: PluginEvent): void => {\n // We don't support the pasting options such as paste as image yet.\n if (event.eventType === CompatiblePluginEventType.BeforePaste && event.pasteType === CompatiblePasteType.Normal) {\n event.fragment.querySelectorAll('img').forEach(image => {\n // If the image is the only child of its parent, remove all the parents of this img element.\n let parentNode: HTMLElement | null = image.parentElement;\n let currentNode: HTMLElement = image;\n while (parentNode?.childNodes.length === 1) {\n currentNode = parentNode;\n parentNode = parentNode.parentElement;\n }\n currentNode?.remove();\n });\n }\n};\n\n/**\n * Scrolls the editor's scroll container to the bottom after content is pasted.\n * @param event - The plugin event.\n * @param editor - The editor instance.\n */\nexport const scrollToBottomAfterContentPaste = (event: PluginEvent, editor: IEditor): void => {\n if (event.eventType === CompatiblePluginEventType.ContentChanged && event.source === CompatibleChangeSource.Paste) {\n // current focused position in the editor\n const focusedPosition = editor.getFocusedPosition();\n // the cursor position relative to the viewport\n const cursorRect = focusedPosition && getPositionRect(focusedPosition);\n // the scroll container of the editor\n const scrollContainer = editor.getScrollContainer();\n // the scrollContainer position relative to the viewport\n const scrollContainerRect = normalizeRect(scrollContainer.getBoundingClientRect());\n if (focusedPosition !== null && cursorRect !== null && cursorRect !== undefined && scrollContainerRect !== null) {\n const textElement = focusedPosition.element;\n // the caret height is typically the same as the font size of the text\n const caretHeight = parseFloat(window.getComputedStyle(textElement).fontSize);\n // 1. scrollContainer.scrollTop represents the number of pixels that the content of scrollContainer is scrolled upward.\n // 2. subtract the top position of the scrollContainer element (scrollContainerRect.top) to\n // translate the scroll position from being relative to the document to being relative to the viewport.\n // 3. add the top position of the cursor (cursorRect.top) to moves the scroll position to the cursor's position.\n // 4. subtract a caret height to add some space between the cursor and the top edge of the scrollContainer.\n const updatedScrollTop = scrollContainer.scrollTop - scrollContainerRect.top + cursorRect.top - caretHeight;\n scrollContainer.scrollTo({\n top: updatedScrollTop,\n behavior: 'smooth'\n });\n }\n }\n};"]}
1
+ {"version":3,"file":"CopyPastePlugin.js","sourceRoot":"","sources":["../../../../../../../../react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAApC;QACU,WAAM,GAAmB,IAAI,CAAC;IAoBxC,CAAC;IAlBC,OAAO;QACL,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,UAAU,CAAC,MAAe;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,OAAO,KAAU,CAAC;IAElB,aAAa,CAAC,KAAkB;QAC9B,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAE1B,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,CAAC;YACtD,kEAAkE;YAClE,+BAA+B,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAkB,EAAQ,EAAE;IAC7D,mEAAmE;IACnE,IAAI,KAAK,CAAC,SAAS,KAAK,yBAAyB,CAAC,WAAW,IAAI,KAAK,CAAC,SAAS,KAAK,mBAAmB,CAAC,MAAM,EAAE,CAAC;QAChH,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvD,4FAA4F;Y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AuG;YACvG,gHAAgH;YAChH,2GAA2G;YAC3G,MAAM,gBAAgB,GAAG,eAAe,CAAC,SAAS,GAAG,mBAAmB,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,GAAG,WAAW,CAAC;YAC5G,eAAe,CAAC,QAAQ,CAAC;gBACvB,GAAG,EAAE,gBAAgB;gBACrB,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getPositionRect, normalizeRect } from 'roosterjs-editor-dom';\nimport type { PluginEvent, EditorPlugin, IEditor } from 'roosterjs-editor-types';\nimport {\n CompatiblePluginEventType,\n CompatiblePasteType,\n CompatibleChangeSource\n} from 'roosterjs-editor-types-compatible';\n\n/**\n * CopyPastePlugin is a plugin for handling copy and paste events in the editor.\n */\nexport default class CopyPastePlugin implements EditorPlugin {\n private editor: IEditor | null = null;\n\n getName(): string {\n return 'CopyPastePlugin';\n }\n\n initialize(editor: IEditor): void {\n this.editor = editor;\n }\n\n dispose(): void {}\n\n onPluginEvent(event: PluginEvent): void {\n removeImageElement(event);\n\n if (this.editor !== null && !this.editor.isDisposed()) {\n // scroll the editor to the correct position after pasting content\n scrollToBottomAfterContentPaste(event, this.editor);\n }\n }\n}\n\n/**\n * @internal\n * Exported only for unit testing\n */\nexport const removeImageElement = (event: PluginEvent): void => {\n // We don't support the pasting options such as paste as image yet.\n if (event.eventType === CompatiblePluginEventType.BeforePaste && event.pasteType === CompatiblePasteType.Normal) {\n event.fragment.querySelectorAll('img').forEach((image) => {\n // If the image is the only child of its parent, remove all the parents of this img element.\n let parentNode: HTMLElement | null = image.parentElement;\n let currentNode: HTMLElement = image;\n while (parentNode?.childNodes.length === 1) {\n currentNode = parentNode;\n parentNode = parentNode.parentElement;\n }\n currentNode?.remove();\n });\n }\n};\n\n/**\n * Scrolls the editor's scroll container to the bottom after content is pasted.\n * @param event - The plugin event.\n * @param editor - The editor instance.\n */\nexport const scrollToBottomAfterContentPaste = (event: PluginEvent, editor: IEditor): void => {\n if (event.eventType === CompatiblePluginEventType.ContentChanged && event.source === CompatibleChangeSource.Paste) {\n // current focused position in the editor\n const focusedPosition = editor.getFocusedPosition();\n // the cursor position relative to the viewport\n const cursorRect = focusedPosition && getPositionRect(focusedPosition);\n // the scroll container of the editor\n const scrollContainer = editor.getScrollContainer();\n // the scrollContainer position relative to the viewport\n const scrollContainerRect = normalizeRect(scrollContainer.getBoundingClientRect());\n if (focusedPosition !== null && cursorRect !== null && cursorRect !== undefined && scrollContainerRect !== null) {\n const textElement = focusedPosition.element;\n // the caret height is typically the same as the font size of the text\n const caretHeight = parseFloat(window.getComputedStyle(textElement).fontSize);\n // 1. scrollContainer.scrollTop represents the number of pixels that the content of scrollContainer is scrolled upward.\n // 2. subtract the top position of the scrollContainer element (scrollContainerRect.top) to\n // translate the scroll position from being relative to the document to being relative to the viewport.\n // 3. add the top position of the cursor (cursorRect.top) to moves the scroll position to the cursor's position.\n // 4. subtract a caret height to add some space between the cursor and the top edge of the scrollContainer.\n const updatedScrollTop = scrollContainer.scrollTop - scrollContainerRect.top + cursorRect.top - caretHeight;\n scrollContainer.scrollTo({\n top: updatedScrollTop,\n behavior: 'smooth'\n });\n }\n }\n};\n"]}
@@ -81,19 +81,26 @@ export const RichTextEditor = React.forwardRef((props, ref) => {
81
81
  onChange && onChange(content);
82
82
  });
83
83
  const copyPastePlugin = new CopyPastePlugin();
84
- return [contentEdit, placeholderPlugin, updateContentPlugin, ribbonPlugin, contextPlugin, tableEditMenuProvider, copyPastePlugin];
84
+ return [
85
+ contentEdit,
86
+ placeholderPlugin,
87
+ updateContentPlugin,
88
+ ribbonPlugin,
89
+ contextPlugin,
90
+ tableEditMenuProvider,
91
+ copyPastePlugin
92
+ ];
85
93
  }, [onChange, placeholderPlugin, ribbonPlugin, strings]);
86
94
  const ribbon = useMemo(() => {
87
95
  const buttons = ribbonButtons(theme);
88
- return React.createElement(Ribbon, { styles: ribbonStyle, buttons: buttons, plugin: ribbonPlugin, overflowButtonProps: {
96
+ return (React.createElement(Ribbon, { styles: ribbonStyle, buttons: buttons, plugin: ribbonPlugin, overflowButtonProps: {
89
97
  styles: ribbonButtonStyle(theme),
90
98
  menuProps: {
91
- items: [],
92
- // CommandBar will determine items rendered in overflow
99
+ items: [], // CommandBar will determine items rendered in overflow
93
100
  isBeakVisible: false,
94
101
  styles: ribbonOverflowButtonStyle(theme)
95
102
  }
96
- }, strings: ribbonButtonsStrings(strings), "data-testid": 'rich-text-editor-ribbon' });
103
+ }, strings: ribbonButtonsStrings(strings), "data-testid": 'rich-text-editor-ribbon' }));
97
104
  }, [strings, ribbonPlugin, theme]);
98
105
  const defaultFormat = useMemo(() => {
99
106
  // without setting any styles, text input is not handled properly for tables (when insert or paste one in the editor)
@@ -103,7 +110,7 @@ export const RichTextEditor = React.forwardRef((props, ref) => {
103
110
  backgroundColor: 'transparent'
104
111
  };
105
112
  }, []);
106
- return React.createElement("div", { "data-testid": 'rich-text-editor-wrapper' },
113
+ return (React.createElement("div", { "data-testid": 'rich-text-editor-wrapper' },
107
114
  showRichTextEditorFormatting && ribbon,
108
115
  React.createElement("div", { className: richTextEditorWrapperStyle(theme, !showRichTextEditorFormatting) },
109
116
  React.createElement(Rooster, { defaultFormat: defaultFormat, inDarkMode: isDarkThemed(theme), plugins: plugins, className: richTextEditorStyle(props.styles), editorCreator: editorCreator,
@@ -112,7 +119,7 @@ export const RichTextEditor = React.forwardRef((props, ref) => {
112
119
  // doNotAdjustEditorColor is used to fix the default background color for Rooster component
113
120
  doNotAdjustEditorColor: true, "data-testid": 'rooster-rich-text-editor',
114
121
  // if we don't use 'allowKeyboardEventPropagation' only the enter key is caught
115
- onKeyDown: props.onKeyDown, focusOnInit: autoFocus === 'sendBoxTextField' })));
122
+ onKeyDown: props.onKeyDown, focusOnInit: autoFocus === 'sendBoxTextField' }))));
116
123
  });
117
124
  const focusAndUpdateContent = (editor, content) => {
118
125
  // setting focus before setting content, works for Chrome and Edge but not Safari
@@ -120,9 +127,7 @@ const focusAndUpdateContent = (editor, content) => {
120
127
  // this is a recommended way (by RoosterJS team) to set focus at the end of the text
121
128
  // RoosterJS v9 has this issue fixed and this code can be removed
122
129
  // CompatibleContentPosition.DomEnd shouldn't be used here as it set focus after the editor div
123
- editor.insertContent('<span id="focus-position-span"></span>', {
124
- position: CompatibleContentPosition.End
125
- });
130
+ editor.insertContent('<span id="focus-position-span"></span>', { position: CompatibleContentPosition.End });
126
131
  const elements = editor.queryElements('#focus-position-span');
127
132
  if (elements.length > 0) {
128
133
  const placeholder = editor.queryElements('#focus-position-span')[0];
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChI,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AACtI,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,WAAW,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC7J,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,YAAY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QACvC,6BAAK,SAAS,EAAE,0BAA0B,CAAC,KAAK,EAAE,CAAC,4BAA4B,CAAC;YAC9E,oBAAC,OAAO,IAAC,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,aAAa;gBACtK,8DAA8D;gBAC9D,yBAAyB,EAAE,MAAM;gBACjC,2FAA2F;gBAC3F,sBAAsB,EAAE,IAAI,iBAAe,0BAA0B;gBACrE,+EAA+E;gBAC/E,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,KAAK,kBAAkB,GAAI,CACvE,CACF,CAAC;AACX,CAAC,CAAC,CAAC;AACH,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAE,OAAe,EAAQ,EAAE;IACtE,iFAAiF;IACjF,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,oFAAoF;IACpF,iEAAiE;IACjE,+FAA+F;IAC/F,MAAM,CAAC,aAAa,CAAC,wCAAwC,EAAE;QAC7D,QAAQ,EAAE,yBAAyB,CAAC,GAAG;KACxC,CAAC,CAAC;IACH,MAAM,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC;IAC9D,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACxB,MAAM,WAAW,GAAG,MAAM,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,WAAW,CAAC,MAAM,EAAE,CAAC;IACvB,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';\nimport { ContentEdit, Watermark } from 'roosterjs-editor-plugins';\nimport { Editor } from 'roosterjs-editor-core';\nimport type { DefaultFormat, EditorOptions, IEditor } from 'roosterjs-editor-types-compatible';\nimport { CompatibleContentPosition, CompatibleGetContentMode, CompatiblePositionType } from 'roosterjs-editor-types-compatible';\nimport { Rooster, createUpdateContentPlugin, UpdateMode, createRibbonPlugin, Ribbon, createContextMenuPlugin } from 'roosterjs-react';\nimport { ribbonButtonStyle, ribbonOverflowButtonStyle, ribbonStyle, richTextEditorWrapperStyle, richTextEditorStyle } from '../styles/RichTextEditor.styles';\nimport { useTheme } from '../../theming';\nimport { ribbonButtons } from './Buttons/RichTextRibbonButtons';\nimport { RichTextSendBoxStrings } from './RichTextSendBox';\nimport { isDarkThemed } from '../../theming/themeUtils';\nimport { ribbonButtonsStrings } from '../utils/RichTextEditorStringsUtils';\nimport { createTableEditMenuProvider } from './Buttons/Table/RichTextTableContextMenu';\nimport CopyPastePlugin from './Plugins/CopyPastePlugin';\n\n/**\n * Props for {@link RichTextEditor}.\n *\n * @private\n */\nexport interface RichTextEditorStyleProps {\n minHeight: string;\n maxHeight: string;\n}\n\n/**\n * Props for {@link RichTextEditor}.\n *\n * @private\n */\nexport interface RichTextEditorProps {\n // the initial content of editor that is set when editor is created (e.g. when editing a message)\n initialContent?: string;\n // the current content of the editor\n content?: string;\n onChange: (newValue?: string) => void;\n onKeyDown?: (ev: React.KeyboardEvent<HTMLElement>) => void;\n placeholderText?: string;\n strings: Partial<RichTextSendBoxStrings>;\n showRichTextEditorFormatting: boolean;\n styles: RichTextEditorStyleProps;\n autoFocus?: 'sendBoxTextField';\n}\n\n/**\n * Props for {@link RichTextEditor}.\n *\n * @beta\n */\n/**\n * Represents a reference to the RichTextEditor component.\n */\nexport interface RichTextEditorComponentRef {\n /**\n * Sets focus on the RichTextEditor component.\n */\n focus: () => void;\n\n /**\n * Sets the content of the RichTextEditor component to an empty string.\n */\n setEmptyContent: () => void;\n\n /**\n * Retrieves the plain text content of the RichTextEditor component.\n * @returns The plain text content of the RichTextEditor component, or undefined if the editor isn't available.\n */\n getPlainContent: () => string | undefined;\n}\n\n/**\n * A component to wrap RoosterJS Rich Text Editor.\n *\n * @beta\n */\nexport const RichTextEditor = React.forwardRef<RichTextEditorComponentRef, RichTextEditorProps>((props, ref) => {\n const {\n initialContent,\n onChange,\n placeholderText,\n strings,\n showRichTextEditorFormatting,\n content,\n autoFocus\n } = props;\n const editor = useRef<IEditor | null>(null);\n const contentValue = useRef<string | undefined>(content);\n const theme = useTheme();\n useImperativeHandle(ref, () => {\n return {\n focus() {\n if (editor.current) {\n editor.current.focus();\n }\n },\n setEmptyContent() {\n if (editor.current) {\n editor.current.setContent('');\n }\n },\n getPlainContent() {\n return editor?.current?.getContent(CompatibleGetContentMode.PlainTextFast);\n }\n };\n }, []);\n const ribbonPlugin = React.useMemo(() => {\n return createRibbonPlugin();\n }, []);\n const editorCreator = useCallback((div: HTMLDivElement, options: EditorOptions) => {\n const editorValue = new Editor(div, options);\n // this is to fix issue when editor is created or re-rendered and has existing text\n // Content model package has a correct behavior and this fix can be deleted\n if (contentValue.current !== undefined && contentValue.current.length > 0) {\n // in case if initialContent is not empty, RoosterJS doesn't set caret position to the end.\n focusAndUpdateContent(editorValue, contentValue.current);\n } else if (initialContent !== undefined && initialContent.length > 0) {\n // changing layout in rich text send box cause the editor to be recreated\n // to keep the content, we need to set messageContent to the current content\n focusAndUpdateContent(editorValue, initialContent);\n }\n editor.current = editorValue;\n return editorValue;\n },\n // trigger force editor reset when strings are changed to update context menu strings\n // see RosterJS documentation for 'editorCreator' for more details\n // the editorCreator callback shouldn't be updated when the initialContent is changed\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [strings]);\n const placeholderPlugin = React.useMemo(() => {\n return new Watermark('');\n }, []);\n useEffect(() => {\n if (placeholderText !== undefined) {\n placeholderPlugin.updateWatermark(placeholderText);\n }\n }, [placeholderPlugin, placeholderText]);\n const plugins = useMemo(() => {\n // contextPlugin and tableEditMenuProvider allow to show insert/delete menu for the table\n const contextPlugin = createContextMenuPlugin();\n const tableEditMenuProvider = createTableEditMenuProvider(strings);\n const contentEdit = new ContentEdit();\n const updateContentPlugin = createUpdateContentPlugin(UpdateMode.OnContentChangedEvent | UpdateMode.OnUserInput, (content: string) => {\n onChange && onChange(content);\n });\n const copyPastePlugin = new CopyPastePlugin();\n return [contentEdit, placeholderPlugin, updateContentPlugin, ribbonPlugin, contextPlugin, tableEditMenuProvider, copyPastePlugin];\n }, [onChange, placeholderPlugin, ribbonPlugin, strings]);\n const ribbon = useMemo(() => {\n const buttons = ribbonButtons(theme);\n return <Ribbon styles={ribbonStyle} buttons={buttons} plugin={ribbonPlugin} overflowButtonProps={{\n styles: ribbonButtonStyle(theme),\n menuProps: {\n items: [],\n // CommandBar will determine items rendered in overflow\n isBeakVisible: false,\n styles: ribbonOverflowButtonStyle(theme)\n }\n }} strings={ribbonButtonsStrings(strings)} data-testid={'rich-text-editor-ribbon'} />;\n }, [strings, ribbonPlugin, theme]);\n const defaultFormat: DefaultFormat = useMemo(() => {\n // without setting any styles, text input is not handled properly for tables (when insert or paste one in the editor)\n // because of https://github.com/microsoft/roosterjs/blob/14dbb947e3ae94580109cbd05e48ceb05327c4dc/packages/roosterjs-editor-core/lib/corePlugins/TypeInContainerPlugin.ts#L75\n // this issue is fixed for content model package\n return {\n backgroundColor: 'transparent'\n };\n }, []);\n return <div data-testid={'rich-text-editor-wrapper'}>\n {showRichTextEditorFormatting && ribbon}\n <div className={richTextEditorWrapperStyle(theme, !showRichTextEditorFormatting)}>\n <Rooster defaultFormat={defaultFormat} inDarkMode={isDarkThemed(theme)} plugins={plugins} className={richTextEditorStyle(props.styles)} editorCreator={editorCreator}\n // TODO: confirm the color during inline images implementation\n imageSelectionBorderColor={'blue'}\n // doNotAdjustEditorColor is used to fix the default background color for Rooster component\n doNotAdjustEditorColor={true} data-testid={'rooster-rich-text-editor'}\n // if we don't use 'allowKeyboardEventPropagation' only the enter key is caught\n onKeyDown={props.onKeyDown} focusOnInit={autoFocus === 'sendBoxTextField'} />\n </div>\n </div>;\n});\nconst focusAndUpdateContent = (editor: Editor, content: string): void => {\n // setting focus before setting content, works for Chrome and Edge but not Safari\n editor.setContent(content);\n // this is a recommended way (by RoosterJS team) to set focus at the end of the text\n // RoosterJS v9 has this issue fixed and this code can be removed\n // CompatibleContentPosition.DomEnd shouldn't be used here as it set focus after the editor div\n editor.insertContent('<span id=\"focus-position-span\"></span>', {\n position: CompatibleContentPosition.End\n });\n const elements = editor.queryElements('#focus-position-span');\n if (elements.length > 0) {\n const placeholder = editor.queryElements('#focus-position-span')[0];\n editor.select(placeholder, CompatiblePositionType.Before);\n placeholder.remove();\n }\n};"]}
1
+ {"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,OAAO,EACP,yBAAyB,EACzB,UAAU,EACV,kBAAkB,EAClB,MAAM,EACN,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,WAAW,EACX,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,YAAY,EA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eHandle, useMemo, useRef } from 'react';\nimport { ContentEdit, Watermark } from 'roosterjs-editor-plugins';\nimport { Editor } from 'roosterjs-editor-core';\nimport type { DefaultFormat, EditorOptions, IEditor } from 'roosterjs-editor-types-compatible';\nimport {\n CompatibleContentPosition,\n CompatibleGetContentMode,\n CompatiblePositionType\n} from 'roosterjs-editor-types-compatible';\nimport {\n Rooster,\n createUpdateContentPlugin,\n UpdateMode,\n createRibbonPlugin,\n Ribbon,\n createContextMenuPlugin\n} from 'roosterjs-react';\nimport {\n ribbonButtonStyle,\n ribbonOverflowButtonStyle,\n ribbonStyle,\n richTextEditorWrapperStyle,\n richTextEditorStyle\n} from '../styles/RichTextEditor.styles';\nimport { useTheme } from '../../theming';\nimport { ribbonButtons } from './Buttons/RichTextRibbonButtons';\nimport { RichTextSendBoxStrings } from './RichTextSendBox';\nimport { isDarkThemed } from '../../theming/themeUtils';\nimport { ribbonButtonsStrings } from '../utils/RichTextEditorStringsUtils';\nimport { createTableEditMenuProvider } from './Buttons/Table/RichTextTableContextMenu';\nimport CopyPastePlugin from './Plugins/CopyPastePlugin';\n\n/**\n * Props for {@link RichTextEditor}.\n *\n * @private\n */\nexport interface RichTextEditorStyleProps {\n minHeight: string;\n maxHeight: string;\n}\n\n/**\n * Props for {@link RichTextEditor}.\n *\n * @private\n */\nexport interface RichTextEditorProps {\n // the initial content of editor that is set when editor is created (e.g. when editing a message)\n initialContent?: string;\n // the current content of the editor\n content?: string;\n onChange: (newValue?: string) => void;\n onKeyDown?: (ev: React.KeyboardEvent<HTMLElement>) => void;\n placeholderText?: string;\n strings: Partial<RichTextSendBoxStrings>;\n showRichTextEditorFormatting: boolean;\n styles: RichTextEditorStyleProps;\n autoFocus?: 'sendBoxTextField';\n}\n\n/**\n * Props for {@link RichTextEditor}.\n *\n * @beta\n */\n/**\n * Represents a reference to the RichTextEditor component.\n */\nexport interface RichTextEditorComponentRef {\n /**\n * Sets focus on the RichTextEditor component.\n */\n focus: () => void;\n\n /**\n * Sets the content of the RichTextEditor component to an empty string.\n */\n setEmptyContent: () => void;\n\n /**\n * Retrieves the plain text content of the RichTextEditor component.\n * @returns The plain text content of the RichTextEditor component, or undefined if the editor isn't available.\n */\n getPlainContent: () => string | undefined;\n}\n\n/**\n * A component to wrap RoosterJS Rich Text Editor.\n *\n * @beta\n */\nexport const RichTextEditor = React.forwardRef<RichTextEditorComponentRef, RichTextEditorProps>((props, ref) => {\n const { initialContent, onChange, placeholderText, strings, showRichTextEditorFormatting, content, autoFocus } =\n props;\n const editor = useRef<IEditor | null>(null);\n const contentValue = useRef<string | undefined>(content);\n const theme = useTheme();\n useImperativeHandle(\n ref,\n () => {\n return {\n focus() {\n if (editor.current) {\n editor.current.focus();\n }\n },\n setEmptyContent() {\n if (editor.current) {\n editor.current.setContent('');\n }\n },\n getPlainContent() {\n return editor?.current?.getContent(CompatibleGetContentMode.PlainTextFast);\n }\n };\n },\n []\n );\n\n const ribbonPlugin = React.useMemo(() => {\n return createRibbonPlugin();\n }, []);\n\n const editorCreator = useCallback(\n (div: HTMLDivElement, options: EditorOptions) => {\n const editorValue = new Editor(div, options);\n // this is to fix issue when editor is created or re-rendered and has existing text\n // Content model package has a correct behavior and this fix can be deleted\n if (contentValue.current !== undefined && contentValue.current.length > 0) {\n // in case if initialContent is not empty, RoosterJS doesn't set caret position to the end.\n focusAndUpdateContent(editorValue, contentValue.current);\n } else if (initialContent !== undefined && initialContent.length > 0) {\n // changing layout in rich text send box cause the editor to be recreated\n // to keep the content, we need to set messageContent to the current content\n focusAndUpdateContent(editorValue, initialContent);\n }\n editor.current = editorValue;\n return editorValue;\n },\n // trigger force editor reset when strings are changed to update context menu strings\n // see RosterJS documentation for 'editorCreator' for more details\n // the editorCreator callback shouldn't be updated when the initialContent is changed\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [strings]\n );\n\n const placeholderPlugin = React.useMemo(() => {\n return new Watermark('');\n }, []);\n\n useEffect(() => {\n if (placeholderText !== undefined) {\n placeholderPlugin.updateWatermark(placeholderText);\n }\n }, [placeholderPlugin, placeholderText]);\n\n const plugins = useMemo(() => {\n // contextPlugin and tableEditMenuProvider allow to show insert/delete menu for the table\n const contextPlugin = createContextMenuPlugin();\n const tableEditMenuProvider = createTableEditMenuProvider(strings);\n const contentEdit = new ContentEdit();\n const updateContentPlugin = createUpdateContentPlugin(\n UpdateMode.OnContentChangedEvent | UpdateMode.OnUserInput,\n (content: string) => {\n onChange && onChange(content);\n }\n );\n const copyPastePlugin = new CopyPastePlugin();\n return [\n contentEdit,\n placeholderPlugin,\n updateContentPlugin,\n ribbonPlugin,\n contextPlugin,\n tableEditMenuProvider,\n copyPastePlugin\n ];\n }, [onChange, placeholderPlugin, ribbonPlugin, strings]);\n\n const ribbon = useMemo(() => {\n const buttons = ribbonButtons(theme);\n\n return (\n <Ribbon\n styles={ribbonStyle}\n buttons={buttons}\n plugin={ribbonPlugin}\n overflowButtonProps={{\n styles: ribbonButtonStyle(theme),\n menuProps: {\n items: [], // CommandBar will determine items rendered in overflow\n isBeakVisible: false,\n styles: ribbonOverflowButtonStyle(theme)\n }\n }}\n strings={ribbonButtonsStrings(strings)}\n data-testid={'rich-text-editor-ribbon'}\n />\n );\n }, [strings, ribbonPlugin, theme]);\n\n const defaultFormat: DefaultFormat = useMemo(() => {\n // without setting any styles, text input is not handled properly for tables (when insert or paste one in the editor)\n // because of https://github.com/microsoft/roosterjs/blob/14dbb947e3ae94580109cbd05e48ceb05327c4dc/packages/roosterjs-editor-core/lib/corePlugins/TypeInContainerPlugin.ts#L75\n // this issue is fixed for content model package\n return {\n backgroundColor: 'transparent'\n };\n }, []);\n\n return (\n <div data-testid={'rich-text-editor-wrapper'}>\n {showRichTextEditorFormatting && ribbon}\n <div className={richTextEditorWrapperStyle(theme, !showRichTextEditorFormatting)}>\n <Rooster\n defaultFormat={defaultFormat}\n inDarkMode={isDarkThemed(theme)}\n plugins={plugins}\n className={richTextEditorStyle(props.styles)}\n editorCreator={editorCreator}\n // TODO: confirm the color during inline images implementation\n imageSelectionBorderColor={'blue'}\n // doNotAdjustEditorColor is used to fix the default background color for Rooster component\n doNotAdjustEditorColor={true}\n data-testid={'rooster-rich-text-editor'}\n // if we don't use 'allowKeyboardEventPropagation' only the enter key is caught\n onKeyDown={props.onKeyDown}\n focusOnInit={autoFocus === 'sendBoxTextField'}\n />\n </div>\n </div>\n );\n});\n\nconst focusAndUpdateContent = (editor: Editor, content: string): void => {\n // setting focus before setting content, works for Chrome and Edge but not Safari\n editor.setContent(content);\n // this is a recommended way (by RoosterJS team) to set focus at the end of the text\n // RoosterJS v9 has this issue fixed and this code can be removed\n // CompatibleContentPosition.DomEnd shouldn't be used here as it set focus after the editor div\n editor.insertContent('<span id=\"focus-position-span\"></span>', { position: CompatibleContentPosition.End });\n const elements = editor.queryElements('#focus-position-span');\n if (elements.length > 0) {\n const placeholder = editor.queryElements('#focus-position-span')[0];\n editor.select(placeholder, CompatiblePositionType.Before);\n placeholder.remove();\n }\n};\n"]}
@@ -19,19 +19,26 @@ export const RichTextInputBoxComponent = (props) => {
19
19
  hasAttachments, richTextEditorStyleProps, isHorizontalLayoutDisabled = false, content, autoFocus, onTyping } = props;
20
20
  const theme = useTheme();
21
21
  const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = useState(false);
22
- const onRenderRichTextEditorIcon = useCallback((isHover) => React.createElement(Icon, { iconName: isHover || showRichTextEditorFormatting ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon', className: richTextFormatButtonIconStyle(theme, !disabled && (isHover || showRichTextEditorFormatting)) }), [disabled, showRichTextEditorFormatting, theme]);
22
+ const onRenderRichTextEditorIcon = useCallback((isHover) => (React.createElement(Icon, { iconName: isHover || showRichTextEditorFormatting ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon', className: richTextFormatButtonIconStyle(theme, !disabled && (isHover || showRichTextEditorFormatting)) })), [disabled, showRichTextEditorFormatting, theme]);
23
23
  const actionButtons = useMemo(() => {
24
- return React.createElement(Stack.Item, { align: "end", className: richTextActionButtonsStackStyle },
24
+ return (React.createElement(Stack.Item, { align: "end", className: richTextActionButtonsStackStyle },
25
25
  React.createElement(Stack, { horizontal: true },
26
- React.createElement(InputBoxButton, { onRenderIcon: onRenderRichTextEditorIcon, onClick: e => {
26
+ React.createElement(InputBoxButton, { onRenderIcon: onRenderRichTextEditorIcon, onClick: (e) => {
27
27
  var _a;
28
28
  setShowRichTextEditorFormatting(!showRichTextEditorFormatting);
29
29
  (_a = editorComponentRef.current) === null || _a === void 0 ? void 0 : _a.focus();
30
30
  e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.
31
31
  }, ariaLabel: strings.richTextFormatButtonTooltip, tooltipContent: strings.richTextFormatButtonTooltip, className: richTextActionButtonsStyle, "data-testId": 'rich-text-input-box-format-button' }),
32
32
  React.createElement(Icon, { iconName: "RichTextDividerIcon", className: richTextActionButtonsDividerStyle(theme) }),
33
- actionComponents));
34
- }, [actionComponents, editorComponentRef, onRenderRichTextEditorIcon, showRichTextEditorFormatting, strings.richTextFormatButtonTooltip, theme]);
33
+ actionComponents)));
34
+ }, [
35
+ actionComponents,
36
+ editorComponentRef,
37
+ onRenderRichTextEditorIcon,
38
+ showRichTextEditorFormatting,
39
+ strings.richTextFormatButtonTooltip,
40
+ theme
41
+ ]);
35
42
  const richTextEditorStyle = useMemo(() => {
36
43
  return richTextEditorStyleProps(showRichTextEditorFormatting);
37
44
  }, [richTextEditorStyleProps, showRichTextEditorFormatting]);
@@ -48,17 +55,24 @@ export const RichTextInputBoxComponent = (props) => {
48
55
  }
49
56
  }, [onEnterKeyDown, showRichTextEditorFormatting, onTyping]);
50
57
  const useHorizontalLayout = useMemo(() => {
51
- return !isHorizontalLayoutDisabled && !showRichTextEditorFormatting && /* @conditional-compile-remove(attachment-upload) */ !hasAttachments;
52
- }, [isHorizontalLayoutDisabled, showRichTextEditorFormatting, /* @conditional-compile-remove(attachment-upload) */ hasAttachments]);
53
- return React.createElement("div", { className: richTextBorderBoxStyle({
58
+ return (!isHorizontalLayoutDisabled &&
59
+ !showRichTextEditorFormatting &&
60
+ /* @conditional-compile-remove(attachment-upload) */ !hasAttachments);
61
+ }, [
62
+ isHorizontalLayoutDisabled,
63
+ showRichTextEditorFormatting,
64
+ /* @conditional-compile-remove(attachment-upload) */ hasAttachments
65
+ ]);
66
+ return (React.createElement("div", { className: richTextBorderBoxStyle({
54
67
  theme: theme,
55
68
  disabled: !!disabled
56
69
  }) },
57
70
  React.createElement(Stack, { grow: true, horizontal: useHorizontalLayout, horizontalAlign: useHorizontalLayout ? 'end' : 'space-between', className: inputBoxContentStackStyle, wrap: useHorizontalLayout },
58
71
  React.createElement(Stack, { grow: true, className: inputBoxRichTextStackStyle },
59
72
  React.createElement(Stack.Item, { className: inputBoxRichTextStackItemStyle },
60
- React.createElement(RichTextEditor, { content: content, initialContent: initialContent, placeholderText: placeholderText, onChange: onChange, onKeyDown: onKeyDown, ref: editorComponentRef, strings: strings, showRichTextEditorFormatting: showRichTextEditorFormatting, styles: richTextEditorStyle, autoFocus: autoFocus })), /* @conditional-compile-remove(attachment-upload) */
61
- onRenderAttachmentUploads && onRenderAttachmentUploads()),
62
- actionButtons));
73
+ React.createElement(RichTextEditor, { content: content, initialContent: initialContent, placeholderText: placeholderText, onChange: onChange, onKeyDown: onKeyDown, ref: editorComponentRef, strings: strings, showRichTextEditorFormatting: showRichTextEditorFormatting, styles: richTextEditorStyle, autoFocus: autoFocus })),
74
+ /* @conditional-compile-remove(attachment-upload) */ onRenderAttachmentUploads &&
75
+ onRenderAttachmentUploads()),
76
+ actionButtons)));
63
77
  };
64
78
  //# sourceMappingURL=RichTextInputBoxComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextInputBoxComponent.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAa,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E,SAAS,EAAE,SAAS,GAAI,CAC/R,EACZ,oDAAoD;gBAAA,yBAAyB,IAAI,yBAAyB,EAAE,CACvG;YACP,aAAa,CACR,CACJ,CAAC;AACX,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { ReactNode, useCallback, useMemo, useState } from 'react';\nimport { BaseCustomStyles } from '../../types';\nimport { RichTextEditor, RichTextEditorComponentRef, RichTextEditorStyleProps } from './RichTextEditor';\nimport { RichTextSendBoxStrings } from './RichTextSendBox';\nimport { useTheme } from '../../theming';\nimport { Icon, Stack } from '@fluentui/react';\nimport { InputBoxButton } from '../InputBoxButton';\nimport { isEnterKeyEventFromCompositionSession } from '../utils';\nimport { richTextActionButtonsDividerStyle, richTextActionButtonsStackStyle, richTextActionButtonsStyle, richTextFormatButtonIconStyle } from '../styles/RichTextEditor.styles';\nimport { inputBoxContentStackStyle, inputBoxRichTextStackItemStyle, inputBoxRichTextStackStyle, richTextBorderBoxStyle } from '../styles/RichTextInputBoxComponent.styles';\n\n/**\n * @private\n */\nexport interface RichTextInputBoxComponentStylesProps extends BaseCustomStyles {}\n\n/**\n * @private\n */\nexport interface RichTextInputBoxComponentProps {\n placeholderText?: string;\n // the initial content of editor that is set when editor is created (e.g. when editing a message)\n initialContent?: string;\n // the current content of the editor\n content?: string;\n onChange: (newValue?: string) => void;\n onEnterKeyDown?: () => void;\n editorComponentRef: React.RefObject<RichTextEditorComponentRef>;\n strings: Partial<RichTextSendBoxStrings>;\n disabled: boolean;\n actionComponents: ReactNode;\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads?: () => JSX.Element;\n /* @conditional-compile-remove(attachment-upload) */\n hasAttachments?: boolean;\n // props for min and max height for the rich text editor\n // otherwise the editor will grow to fit the content\n richTextEditorStyleProps: (isExpanded: boolean) => RichTextEditorStyleProps;\n isHorizontalLayoutDisabled?: boolean;\n autoFocus?: 'sendBoxTextField';\n onTyping?: () => Promise<void>;\n}\n\n/**\n * @private\n */\nexport const RichTextInputBoxComponent = (props: RichTextInputBoxComponentProps): JSX.Element => {\n const {\n placeholderText,\n initialContent,\n onChange,\n onEnterKeyDown,\n editorComponentRef,\n disabled,\n strings,\n actionComponents,\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads,\n /* @conditional-compile-remove(attachment-upload) */\n hasAttachments,\n richTextEditorStyleProps,\n isHorizontalLayoutDisabled = false,\n content,\n autoFocus,\n onTyping\n } = props;\n const theme = useTheme();\n const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = useState(false);\n const onRenderRichTextEditorIcon = useCallback((isHover: boolean) => <Icon iconName={isHover || showRichTextEditorFormatting ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon'} className={richTextFormatButtonIconStyle(theme, !disabled && (isHover || showRichTextEditorFormatting))} />, [disabled, showRichTextEditorFormatting, theme]);\n const actionButtons = useMemo(() => {\n return <Stack.Item align=\"end\" className={richTextActionButtonsStackStyle}>\n <Stack horizontal>\n <InputBoxButton onRenderIcon={onRenderRichTextEditorIcon} onClick={e => {\n setShowRichTextEditorFormatting(!showRichTextEditorFormatting);\n editorComponentRef.current?.focus();\n e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.\n }} ariaLabel={strings.richTextFormatButtonTooltip} tooltipContent={strings.richTextFormatButtonTooltip} className={richTextActionButtonsStyle} data-testId={'rich-text-input-box-format-button'} />\n <Icon iconName=\"RichTextDividerIcon\" className={richTextActionButtonsDividerStyle(theme)} />\n {actionComponents}\n </Stack>\n </Stack.Item>;\n }, [actionComponents, editorComponentRef, onRenderRichTextEditorIcon, showRichTextEditorFormatting, strings.richTextFormatButtonTooltip, theme]);\n const richTextEditorStyle = useMemo(() => {\n return richTextEditorStyleProps(showRichTextEditorFormatting);\n }, [richTextEditorStyleProps, showRichTextEditorFormatting]);\n const onKeyDown = useCallback((ev: React.KeyboardEvent<HTMLElement>) => {\n if (isEnterKeyEventFromCompositionSession(ev)) {\n return;\n }\n if (ev.key === 'Enter' && ev.shiftKey === false && !showRichTextEditorFormatting) {\n ev.preventDefault();\n onEnterKeyDown && onEnterKeyDown();\n } else {\n onTyping?.();\n }\n }, [onEnterKeyDown, showRichTextEditorFormatting, onTyping]);\n const useHorizontalLayout = useMemo(() => {\n return !isHorizontalLayoutDisabled && !showRichTextEditorFormatting && /* @conditional-compile-remove(attachment-upload) */!hasAttachments;\n }, [isHorizontalLayoutDisabled, showRichTextEditorFormatting, /* @conditional-compile-remove(attachment-upload) */hasAttachments]);\n return <div className={richTextBorderBoxStyle({\n theme: theme,\n disabled: !!disabled\n })}>\n {/* This layout is used for the compact view when formatting options are not shown */}\n <Stack grow horizontal={useHorizontalLayout} horizontalAlign={useHorizontalLayout ? 'end' : 'space-between'} className={inputBoxContentStackStyle} wrap={useHorizontalLayout}>\n {/* Fixes the issue when flex box can grow to be bigger than parent */}\n <Stack grow className={inputBoxRichTextStackStyle}>\n <Stack.Item className={inputBoxRichTextStackItemStyle}>\n <RichTextEditor content={content} initialContent={initialContent} placeholderText={placeholderText} onChange={onChange} onKeyDown={onKeyDown} ref={editorComponentRef} strings={strings} showRichTextEditorFormatting={showRichTextEditorFormatting} styles={richTextEditorStyle} autoFocus={autoFocus} />\n </Stack.Item>\n {/* @conditional-compile-remove(attachment-upload) */onRenderAttachmentUploads && onRenderAttachmentUploads()}\n </Stack>\n {actionButtons}\n </Stack>\n </div>;\n};"]}
1
+ {"version":3,"file":"RichTextInputBoxComponent.js","sourceRoot":"","sources":["../../../../../../../react-components/src/components/RichTextEditor/RichTextInputBoxComponent.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAa,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAwD,MAAM,kBAAkB,CAAC;AAExG,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,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C;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { ReactNode, useCallback, useMemo, useState } from 'react';\nimport { BaseCustomStyles } from '../../types';\nimport { RichTextEditor, RichTextEditorComponentRef, RichTextEditorStyleProps } from './RichTextEditor';\nimport { RichTextSendBoxStrings } from './RichTextSendBox';\nimport { useTheme } from '../../theming';\nimport { Icon, Stack } from '@fluentui/react';\nimport { InputBoxButton } from '../InputBoxButton';\nimport { isEnterKeyEventFromCompositionSession } from '../utils';\nimport {\n richTextActionButtonsDividerStyle,\n richTextActionButtonsStackStyle,\n richTextActionButtonsStyle,\n richTextFormatButtonIconStyle\n} from '../styles/RichTextEditor.styles';\nimport {\n inputBoxContentStackStyle,\n inputBoxRichTextStackItemStyle,\n inputBoxRichTextStackStyle,\n richTextBorderBoxStyle\n} from '../styles/RichTextInputBoxComponent.styles';\n\n/**\n * @private\n */\nexport interface RichTextInputBoxComponentStylesProps extends BaseCustomStyles {}\n\n/**\n * @private\n */\nexport interface RichTextInputBoxComponentProps {\n placeholderText?: string;\n // the initial content of editor that is set when editor is created (e.g. when editing a message)\n initialContent?: string;\n // the current content of the editor\n content?: string;\n onChange: (newValue?: string) => void;\n onEnterKeyDown?: () => void;\n editorComponentRef: React.RefObject<RichTextEditorComponentRef>;\n strings: Partial<RichTextSendBoxStrings>;\n disabled: boolean;\n actionComponents: ReactNode;\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads?: () => JSX.Element;\n /* @conditional-compile-remove(attachment-upload) */\n hasAttachments?: boolean;\n // props for min and max height for the rich text editor\n // otherwise the editor will grow to fit the content\n richTextEditorStyleProps: (isExpanded: boolean) => RichTextEditorStyleProps;\n isHorizontalLayoutDisabled?: boolean;\n autoFocus?: 'sendBoxTextField';\n onTyping?: () => Promise<void>;\n}\n\n/**\n * @private\n */\nexport const RichTextInputBoxComponent = (props: RichTextInputBoxComponentProps): JSX.Element => {\n const {\n placeholderText,\n initialContent,\n onChange,\n onEnterKeyDown,\n editorComponentRef,\n disabled,\n strings,\n actionComponents,\n /* @conditional-compile-remove(attachment-upload) */\n onRenderAttachmentUploads,\n /* @conditional-compile-remove(attachment-upload) */\n hasAttachments,\n richTextEditorStyleProps,\n isHorizontalLayoutDisabled = false,\n content,\n autoFocus,\n onTyping\n } = props;\n const theme = useTheme();\n const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = useState(false);\n\n const onRenderRichTextEditorIcon = useCallback(\n (isHover: boolean) => (\n <Icon\n iconName={\n isHover || showRichTextEditorFormatting ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon'\n }\n className={richTextFormatButtonIconStyle(theme, !disabled && (isHover || showRichTextEditorFormatting))}\n />\n ),\n [disabled, showRichTextEditorFormatting, theme]\n );\n\n const actionButtons = useMemo(() => {\n return (\n <Stack.Item align=\"end\" className={richTextActionButtonsStackStyle}>\n <Stack horizontal>\n <InputBoxButton\n onRenderIcon={onRenderRichTextEditorIcon}\n onClick={(e) => {\n setShowRichTextEditorFormatting(!showRichTextEditorFormatting);\n editorComponentRef.current?.focus();\n e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.\n }}\n ariaLabel={strings.richTextFormatButtonTooltip}\n tooltipContent={strings.richTextFormatButtonTooltip}\n className={richTextActionButtonsStyle}\n data-testId={'rich-text-input-box-format-button'}\n />\n <Icon iconName=\"RichTextDividerIcon\" className={richTextActionButtonsDividerStyle(theme)} />\n {actionComponents}\n </Stack>\n </Stack.Item>\n );\n }, [\n actionComponents,\n editorComponentRef,\n onRenderRichTextEditorIcon,\n showRichTextEditorFormatting,\n strings.richTextFormatButtonTooltip,\n theme\n ]);\n\n const richTextEditorStyle = useMemo(() => {\n return richTextEditorStyleProps(showRichTextEditorFormatting);\n }, [richTextEditorStyleProps, showRichTextEditorFormatting]);\n\n const onKeyDown = useCallback(\n (ev: React.KeyboardEvent<HTMLElement>) => {\n if (isEnterKeyEventFromCompositionSession(ev)) {\n return;\n }\n if (ev.key === 'Enter' && ev.shiftKey === false && !showRichTextEditorFormatting) {\n ev.preventDefault();\n onEnterKeyDown && onEnterKeyDown();\n } else {\n onTyping?.();\n }\n },\n [onEnterKeyDown, showRichTextEditorFormatting, onTyping]\n );\n\n const useHorizontalLayout = useMemo(() => {\n return (\n !isHorizontalLayoutDisabled &&\n !showRichTextEditorFormatting &&\n /* @conditional-compile-remove(attachment-upload) */ !hasAttachments\n );\n }, [\n isHorizontalLayoutDisabled,\n showRichTextEditorFormatting,\n /* @conditional-compile-remove(attachment-upload) */ hasAttachments\n ]);\n\n return (\n <div\n className={richTextBorderBoxStyle({\n theme: theme,\n disabled: !!disabled\n })}\n >\n {/* This layout is used for the compact view when formatting options are not shown */}\n <Stack\n grow\n horizontal={useHorizontalLayout}\n horizontalAlign={useHorizontalLayout ? 'end' : 'space-between'}\n className={inputBoxContentStackStyle}\n wrap={useHorizontalLayout}\n >\n {/* Fixes the issue when flex box can grow to be bigger than parent */}\n <Stack grow className={inputBoxRichTextStackStyle}>\n <Stack.Item className={inputBoxRichTextStackItemStyle}>\n <RichTextEditor\n content={content}\n initialContent={initialContent}\n placeholderText={placeholderText}\n onChange={onChange}\n onKeyDown={onKeyDown}\n ref={editorComponentRef}\n strings={strings}\n showRichTextEditorFormatting={showRichTextEditorFormatting}\n styles={richTextEditorStyle}\n autoFocus={autoFocus}\n />\n </Stack.Item>\n {\n /* @conditional-compile-remove(attachment-upload) */ onRenderAttachmentUploads &&\n onRenderAttachmentUploads()\n }\n </Stack>\n {actionButtons}\n </Stack>\n </div>\n );\n};\n"]}
@@ -1,44 +1,51 @@
1
1
  /// <reference types="react" />
2
2
  import { SendBoxStrings } from '../SendBox';
3
- import { AttachmentMetadataWithProgress } from '../../types/Attachment';
3
+ import { AttachmentMetadataInProgress, MessageOptions } from "../../../../acs-ui-common/src";
4
4
  /**
5
5
  * Strings of {@link RichTextSendBox} that can be overridden.
6
6
  *
7
7
  * @beta
8
8
  */
9
- export interface RichTextSendBoxStrings extends SendBoxStrings {
9
+ export interface RichTextSendBoxStrings extends RichTextStrings, SendBoxStrings {
10
+ }
11
+ /**
12
+ * Strings of RichText that can be overridden.
13
+ *
14
+ * @beta
15
+ */
16
+ export interface RichTextStrings {
10
17
  /**
11
18
  * Tooltip text for the bold button.
12
19
  */
13
- boldTooltip: string;
20
+ richTextBoldTooltip: string;
14
21
  /**
15
22
  * Tooltip text for the italic button.
16
23
  */
17
- italicTooltip: string;
24
+ richTextItalicTooltip: string;
18
25
  /**
19
26
  * Tooltip text for the underline button.
20
27
  */
21
- underlineTooltip: string;
28
+ richTextUnderlineTooltip: string;
22
29
  /**
23
30
  * Tooltip text for the bullet list button.
24
31
  */
25
- bulletListTooltip: string;
32
+ richTextBulletListTooltip: string;
26
33
  /**
27
34
  * Tooltip text for the number list button.
28
35
  */
29
- numberListTooltip: string;
36
+ richTextNumberListTooltip: string;
30
37
  /**
31
38
  * Tooltip text for the increase indent button.
32
39
  */
33
- increaseIndentTooltip: string;
40
+ richTextIncreaseIndentTooltip: string;
34
41
  /**
35
42
  * Tooltip text for the decrease indent button.
36
43
  */
37
- decreaseIndentTooltip: string;
44
+ richTextDecreaseIndentTooltip: string;
38
45
  /**
39
46
  * Tooltip text insert table button.
40
47
  */
41
- insertTableTooltip: string;
48
+ richTextInsertTableTooltip: string;
42
49
  /**
43
50
  * Tooltip text for the rich text format button button.
44
51
  */
@@ -46,43 +53,43 @@ export interface RichTextSendBoxStrings extends SendBoxStrings {
46
53
  /**
47
54
  * Text for the insert menu item.
48
55
  */
49
- insertRowOrColumnMenu: string;
56
+ richTextInsertRowOrColumnMenu: string;
50
57
  /**
51
58
  * Title for the insert table menu.
52
59
  */
53
- insertTableMenuTitle: string;
60
+ richTextInsertTableMenuTitle: string;
54
61
  /**
55
62
  * Text for the insert menu item to insert row above the current selection.
56
63
  */
57
- insertRowAboveMenu: string;
64
+ richTextInsertRowAboveMenu: string;
58
65
  /**
59
66
  * Text for the insert menu item to insert row below the current selection.
60
67
  */
61
- insertRowBelowMenu: string;
68
+ richTextInsertRowBelowMenu: string;
62
69
  /**
63
70
  * Text for the insert menu item to insert column to the left from the current selection.
64
71
  */
65
- insertColumnLeftMenu: string;
72
+ richTextInsertColumnLeftMenu: string;
66
73
  /**
67
74
  * Text for the insert menu item to insert column to the right from the current selection.
68
75
  */
69
- insertColumnRightMenu: string;
76
+ richTextInsertColumnRightMenu: string;
70
77
  /**
71
78
  * Text for the delete row or column menu.
72
79
  */
73
- deleteRowOrColumnMenu: string;
80
+ richTextDeleteRowOrColumnMenu: string;
74
81
  /**
75
82
  * Text for the delete column menu.
76
83
  */
77
- deleteColumnMenu: string;
84
+ richTextDeleteColumnMenu: string;
78
85
  /**
79
86
  * Text for the delete row menu.
80
87
  */
81
- deleteRowMenu: string;
88
+ richTextDeleteRowMenu: string;
82
89
  /**
83
90
  * Text for the delete table menu.
84
91
  */
85
- deleteTableMenu: string;
92
+ richTextDeleteTableMenu: string;
86
93
  }
87
94
  /**
88
95
  * Props for {@link RichTextSendBox}.
@@ -104,11 +111,11 @@ export interface RichTextSendBoxProps {
104
111
  */
105
112
  systemMessage?: string;
106
113
  /**
107
- * Optional array of type {@link AttachmentMetadataWithProgress}
114
+ * Optional array of type {@link AttachmentMetadataInProgress}
108
115
  * to render attachments being uploaded in the SendBox.
109
116
  * @beta
110
117
  */
111
- attachmentsWithProgress?: AttachmentMetadataWithProgress[];
118
+ attachments?: AttachmentMetadataInProgress[];
112
119
  /**
113
120
  * enumerable to determine if the input box has focus on render or not.
114
121
  * When undefined nothing has focus on render
@@ -123,7 +130,7 @@ export interface RichTextSendBoxProps {
123
130
  /**
124
131
  * Callback function used when the send button is clicked.
125
132
  */
126
- onSendMessage: (content: string) => Promise<void>;
133
+ onSendMessage: (content: string, options?: MessageOptions) => Promise<void>;
127
134
  /**
128
135
  * Optional callback called when user is typing
129
136
  */