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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1047) hide show
  1. package/dist/communication-react.d.ts +11 -47
  2. package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-DSlV4PZz.js → ChatMessageComponentAsRichTextEditBox-N5ydNkHZ.js} +24 -38
  3. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-N5ydNkHZ.js.map +1 -0
  4. package/dist/dist-cjs/communication-react/{index-aGXLnB_I.js → index-BaI-AJud.js} +4807 -5640
  5. package/dist/dist-cjs/communication-react/index-BaI-AJud.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.js.map +1 -1
  10. package/dist/dist-esm/acs-ui-common/src/commonProperties.js.map +1 -1
  11. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/cssUtils.js.map +1 -1
  13. package/dist/dist-esm/acs-ui-common/src/identifier.js +1 -4
  14. package/dist/dist-esm/acs-ui-common/src/identifier.js.map +1 -1
  15. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  16. package/dist/dist-esm/acs-ui-common/src/localizationUtils.js.map +1 -1
  17. package/dist/dist-esm/acs-ui-common/src/logEvent.js.map +1 -1
  18. package/dist/dist-esm/acs-ui-common/src/memoizeFnAll.js.map +1 -1
  19. package/dist/dist-esm/acs-ui-common/src/safeStringify.js.map +1 -1
  20. package/dist/dist-esm/acs-ui-common/src/telemetry.js.map +1 -1
  21. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  22. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -3
  24. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  25. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +7 -13
  26. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  27. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +1 -7
  28. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  29. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +55 -20
  30. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/getRemoteParticipantsExcludingConsumers.js +1 -1
  32. package/dist/dist-esm/calling-component-bindings/src/getRemoteParticipantsExcludingConsumers.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +59 -61
  34. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  35. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +2 -2
  36. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  37. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +6 -2
  39. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  40. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.d.ts +1 -1
  41. package/dist/dist-esm/calling-component-bindings/src/hooks/useHandlers.js.map +1 -1
  42. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  43. package/dist/dist-esm/calling-component-bindings/src/hooks/useSelector.js.map +1 -1
  44. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  45. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +10 -41
  46. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  47. package/dist/dist-esm/calling-component-bindings/src/participantsButtonSelector.js.map +1 -1
  48. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  49. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js +3 -6
  50. package/dist/dist-esm/calling-component-bindings/src/providers/CallClientProvider.js.map +1 -1
  51. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  52. package/dist/dist-esm/calling-component-bindings/src/providers/index.js.map +1 -1
  53. package/dist/dist-esm/calling-component-bindings/src/utils/SelectorUtils.js.map +1 -1
  54. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +7 -11
  55. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  56. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +9 -11
  57. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  58. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +1 -2
  59. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +15 -28
  60. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  61. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +9 -46
  62. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  63. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  64. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -1
  65. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  66. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +75 -65
  67. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +0 -9
  69. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  70. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -2
  71. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +29 -47
  72. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  73. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js +8 -7
  74. package/dist/dist-esm/calling-stateful-client/src/CallDeclarative.js.map +1 -1
  75. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +96 -83
  76. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/CallIdHistory.js.map +1 -1
  78. package/dist/dist-esm/calling-stateful-client/src/CallIdRef.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +3 -1
  80. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  81. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js +0 -4
  82. package/dist/dist-esm/calling-stateful-client/src/CapabilitiesSubscriber.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  84. package/dist/dist-esm/calling-stateful-client/src/Converter.js +17 -24
  85. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  86. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +73 -58
  87. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js +16 -14
  89. package/dist/dist-esm/calling-stateful-client/src/IncomingCallDeclarative.js.map +1 -1
  90. package/dist/dist-esm/calling-stateful-client/src/IncomingCallSubscriber.js.map +1 -1
  91. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +15 -3
  92. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  93. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +1 -1
  94. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +1 -1
  95. package/dist/dist-esm/calling-stateful-client/src/Logger.js.map +1 -1
  96. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +3 -1
  97. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +1 -1
  98. package/dist/dist-esm/calling-stateful-client/src/PPTLiveSubscriber.js.map +1 -1
  99. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  100. package/dist/dist-esm/calling-stateful-client/src/RaiseHandSubscriber.js.map +1 -1
  101. package/dist/dist-esm/calling-stateful-client/src/ReactionSubscriber.js.map +1 -1
  102. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  103. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  104. package/dist/dist-esm/calling-stateful-client/src/SpotlightSubscriber.js.map +1 -1
  105. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +67 -65
  106. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  107. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +24 -32
  108. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  109. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js +11 -8
  110. package/dist/dist-esm/calling-stateful-client/src/StreamUtilsLogging.js.map +1 -1
  111. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +1 -1
  112. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
  113. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +8 -7
  114. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  115. package/dist/dist-esm/calling-stateful-client/src/TranscriptionSubscriber.js.map +1 -1
  116. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  117. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js +3 -3
  118. package/dist/dist-esm/calling-stateful-client/src/UserFacingDiagnosticsSubscriber.js.map +1 -1
  119. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js +7 -6
  120. package/dist/dist-esm/calling-stateful-client/src/VideoStreamRendererViewDeclarative.js.map +1 -1
  121. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  122. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  123. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js +4 -4
  124. package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
  125. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js +3 -3
  126. package/dist/dist-esm/chat-component-bindings/src/chatParticipantListSelector.js.map +1 -1
  127. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js +15 -15
  128. package/dist/dist-esm/chat-component-bindings/src/errorBarSelector.js.map +1 -1
  129. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -1
  130. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +11 -6
  131. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  132. package/dist/dist-esm/chat-component-bindings/src/hooks/useHandlers.js.map +1 -1
  133. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  134. package/dist/dist-esm/chat-component-bindings/src/hooks/useSelector.js.map +1 -1
  135. package/dist/dist-esm/chat-component-bindings/src/index.js.map +1 -1
  136. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +15 -38
  137. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  138. package/dist/dist-esm/chat-component-bindings/src/providers/ChatClientProvider.js.map +1 -1
  139. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js +1 -1
  140. package/dist/dist-esm/chat-component-bindings/src/providers/ChatThreadClientProvider.js.map +1 -1
  141. package/dist/dist-esm/chat-component-bindings/src/sendBoxSelector.js.map +1 -1
  142. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js +7 -3
  143. package/dist/dist-esm/chat-component-bindings/src/typingIndicatorSelector.js.map +1 -1
  144. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js +1 -3
  145. package/dist/dist-esm/chat-component-bindings/src/utils/compareMessages.js.map +1 -1
  146. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  147. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -10
  148. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  149. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  150. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js +22 -16
  151. package/dist/dist-esm/chat-stateful-client/src/ChatContext.js.map +1 -1
  152. package/dist/dist-esm/chat-stateful-client/src/Constants.js.map +1 -1
  153. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +11 -8
  154. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  155. package/dist/dist-esm/chat-stateful-client/src/Logger.js.map +1 -1
  156. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +16 -4
  157. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +1 -1
  158. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js +67 -57
  159. package/dist/dist-esm/chat-stateful-client/src/StatefulChatClient.js.map +1 -1
  160. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +128 -114
  161. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  162. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +1 -4
  163. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  164. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  165. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedIterator.js.map +1 -1
  166. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListMessages.js.map +1 -1
  167. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListParticipants.js.map +1 -1
  168. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListReadReceipts.js.map +1 -1
  169. package/dist/dist-esm/chat-stateful-client/src/iterators/createDecoratedListThreads.js.map +1 -1
  170. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  171. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  172. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  173. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js +6 -3
  174. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.js.map +1 -1
  175. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerContext.js.map +1 -1
  176. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
  177. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js +10 -4
  178. package/dist/dist-esm/react-components/src/components/Announcer/LiveAnnouncer.js.map +1 -1
  179. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js +1 -1
  180. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js +1 -1
  182. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.js.map +1 -1
  183. package/dist/dist-esm/react-components/src/components/Announcer.js.map +1 -1
  184. package/dist/dist-esm/react-components/src/components/AttachmentCard.js +7 -7
  185. package/dist/dist-esm/react-components/src/components/AttachmentCard.js.map +1 -1
  186. package/dist/dist-esm/react-components/src/components/AttachmentCardGroup.js +1 -1
  187. package/dist/dist-esm/react-components/src/components/AttachmentCardGroup.js.map +1 -1
  188. package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.js +11 -12
  189. package/dist/dist-esm/react-components/src/components/AttachmentDownloadCards.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js +21 -24
  191. package/dist/dist-esm/react-components/src/components/AttachmentUploadCards.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/CameraButton.js +19 -8
  193. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/Caption.js +2 -2
  195. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  196. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +8 -9
  197. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  198. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +19 -36
  199. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -1
  200. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js +5 -2
  201. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionMenu.js.map +1 -1
  202. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js +22 -37
  203. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.js.map +1 -1
  204. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +24 -22
  205. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  206. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +28 -54
  207. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/ChatMessage/DefaultSystemMessage.js +5 -9
  209. package/dist/dist-esm/react-components/src/components/ChatMessage/DefaultSystemMessage.js.map +1 -1
  210. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +1 -1
  211. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +1 -1
  212. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +7 -31
  213. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  214. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +16 -37
  215. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
  216. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +36 -33
  217. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  218. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +2 -2
  219. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  220. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +22 -36
  221. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +1 -1
  222. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +11 -19
  223. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  224. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +10 -37
  225. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  226. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +25 -59
  227. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js +18 -18
  229. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.js.map +1 -1
  230. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js +4 -7
  231. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.js.map +1 -1
  232. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js +2 -2
  233. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/ComplianceBanner/Utils.js.map +1 -1
  235. package/dist/dist-esm/react-components/src/components/ComplianceBanner/index.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/ComplianceBanner/types.js.map +1 -1
  237. package/dist/dist-esm/react-components/src/components/ControlBar.js +14 -10
  238. package/dist/dist-esm/react-components/src/components/ControlBar.js.map +1 -1
  239. package/dist/dist-esm/react-components/src/components/ControlBarButton.js +4 -14
  240. package/dist/dist-esm/react-components/src/components/ControlBarButton.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js +14 -3
  242. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +10 -4
  244. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +1 -1
  245. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +31 -14
  246. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js +8 -5
  248. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +6 -24
  250. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +1 -1
  251. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +20 -12
  252. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +1 -1
  253. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +1 -2
  254. package/dist/dist-esm/react-components/src/components/DevicesButton.js +29 -25
  255. package/dist/dist-esm/react-components/src/components/DevicesButton.js.map +1 -1
  256. package/dist/dist-esm/react-components/src/components/Dialpad/DTMFToneGenerator.js +48 -12
  257. package/dist/dist-esm/react-components/src/components/Dialpad/DTMFToneGenerator.js.map +1 -1
  258. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +51 -45
  259. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  260. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js +4 -4
  261. package/dist/dist-esm/react-components/src/components/Drawer/DrawerContentContainer.js.map +1 -1
  262. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js +6 -2
  263. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.js.map +1 -1
  264. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js +9 -11
  265. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.js.map +1 -1
  266. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +23 -11
  267. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  268. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js +4 -6
  269. package/dist/dist-esm/react-components/src/components/Drawer/DrawerSurface.js.map +1 -1
  270. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js +5 -11
  271. package/dist/dist-esm/react-components/src/components/Drawer/ReactionDrawerMenuItem.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/components/Drawer/index.js.map +1 -1
  273. package/dist/dist-esm/react-components/src/components/EndCallButton.js +16 -16
  274. package/dist/dist-esm/react-components/src/components/EndCallButton.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/components/ErrorBar.js +5 -9
  276. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/components/ErrorBoundary.js +6 -2
  278. package/dist/dist-esm/react-components/src/components/ErrorBoundary.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/components/GridLayout.js +37 -37
  280. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  281. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js +2 -2
  282. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.js.map +1 -1
  283. package/dist/dist-esm/react-components/src/components/HoldButton.js +1 -1
  284. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +1 -1
  285. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js +9 -7
  286. package/dist/dist-esm/react-components/src/components/HorizontalGallery.js.map +1 -1
  287. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +14 -9
  288. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  289. package/dist/dist-esm/react-components/src/components/InputBoxButton.d.ts +0 -1
  290. package/dist/dist-esm/react-components/src/components/InputBoxButton.js +17 -11
  291. package/dist/dist-esm/react-components/src/components/InputBoxButton.js.map +1 -1
  292. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +7 -5
  293. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  294. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js +5 -3
  295. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.js.map +1 -1
  296. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js +22 -45
  297. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  298. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +12 -4
  299. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
  300. package/dist/dist-esm/react-components/src/components/MentionPopover.js +14 -17
  301. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +1 -1
  302. package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js +2 -2
  303. package/dist/dist-esm/react-components/src/components/MessageStatusIcon.js.map +1 -1
  304. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.js.map +1 -1
  305. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js +33 -20
  306. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js.map +1 -1
  307. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +1 -1
  308. package/dist/dist-esm/react-components/src/components/MessageThread.js +49 -83
  309. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  310. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js +14 -17
  311. package/dist/dist-esm/react-components/src/components/MicrophoneButton.js.map +1 -1
  312. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +101 -94
  313. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  314. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -2
  315. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +20 -15
  316. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  317. package/dist/dist-esm/react-components/src/components/ParticipantList.js +37 -51
  318. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  319. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js +32 -46
  320. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  321. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js +3 -3
  322. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.js.map +1 -1
  323. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js +3 -3
  324. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPictureTile.js.map +1 -1
  325. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js +12 -6
  326. package/dist/dist-esm/react-components/src/components/RaiseHandButton.js.map +1 -1
  327. package/dist/dist-esm/react-components/src/components/ReactionButton.js +25 -26
  328. package/dist/dist-esm/react-components/src/components/ReactionButton.js.map +1 -1
  329. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +13 -38
  330. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  331. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +2 -2
  332. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  333. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +2 -2
  334. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  335. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.js +1 -12
  336. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.js.map +1 -1
  337. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.js +1 -1
  338. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.js.map +1 -1
  339. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.d.ts +2 -1
  340. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.js +5 -10
  341. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.js.map +1 -1
  342. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js +13 -6
  343. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/RichTextTableContextMenu.js.map +1 -1
  344. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js +1 -1
  345. package/dist/dist-esm/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.js.map +1 -1
  346. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +1 -1
  347. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +1 -1
  348. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +10 -15
  349. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +1 -1
  350. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +11 -25
  351. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +1 -1
  352. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +36 -80
  353. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +1 -1
  354. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +17 -12
  355. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +1 -1
  356. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +14 -6
  357. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  358. package/dist/dist-esm/react-components/src/components/SendBox.js +30 -55
  359. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  360. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +2 -2
  361. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +1 -1
  362. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +1 -3
  363. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +1 -1
  364. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +4 -2
  365. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -1
  366. package/dist/dist-esm/react-components/src/components/StreamMedia.js +3 -3
  367. package/dist/dist-esm/react-components/src/components/StreamMedia.js.map +1 -1
  368. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js +3 -10
  369. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.js.map +1 -1
  370. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -1
  371. package/dist/dist-esm/react-components/src/components/Survey/SurveyTypes.js.map +1 -1
  372. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js +23 -23
  373. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.js.map +1 -1
  374. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -1
  375. package/dist/dist-esm/react-components/src/components/SystemMessage.js +4 -2
  376. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  377. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +22 -67
  378. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
  379. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +49 -55
  380. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +1 -1
  381. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +10 -10
  382. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  383. package/dist/dist-esm/react-components/src/components/TypingIndicator.js +6 -9
  384. package/dist/dist-esm/react-components/src/components/TypingIndicator.js.map +1 -1
  385. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +1 -1
  386. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  387. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +1 -1
  388. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  389. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +8 -4
  390. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  391. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +1 -1
  392. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  393. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +31 -13
  394. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  395. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js +1 -3
  396. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.js.map +1 -1
  397. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +12 -8
  398. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  399. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +12 -6
  400. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  401. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js +2 -6
  402. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.styles.js.map +1 -1
  403. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +11 -26
  404. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  405. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +10 -14
  406. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  407. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +19 -50
  408. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  409. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js +2 -2
  410. package/dist/dist-esm/react-components/src/components/VideoGallery/FocusContentLayout.js.map +1 -1
  411. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  412. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +7 -7
  413. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  414. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +4 -6
  415. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  416. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js +11 -17
  417. package/dist/dist-esm/react-components/src/components/VideoGallery/ParticipantVideoTileOverlay.js.map +1 -1
  418. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js +24 -29
  419. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteContentShareReactionOverlay.js.map +1 -1
  420. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +7 -9
  421. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  422. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +4 -2
  423. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
  424. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +13 -44
  425. package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
  426. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js +6 -1
  427. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/DefaultLayout.styles.js.map +1 -1
  428. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +34 -9
  429. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  430. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js +11 -2
  431. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideoLayout.styles.js.map +1 -1
  432. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/Layout.styles.js.map +1 -1
  433. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -1
  434. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  435. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteVideoTile.styles.js.map +1 -1
  436. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +3 -1
  437. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
  438. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js +11 -10
  439. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveHorizontalGallery.styles.js.map +1 -1
  440. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +28 -22
  441. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  442. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js +6 -11
  443. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoStreamLifecycleMaintainer.js.map +1 -1
  444. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +45 -35
  445. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  446. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/OverflowGalleryUtils.js.map +1 -1
  447. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/reactionUtils.js.map +1 -1
  448. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +22 -40
  449. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  450. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +1 -3
  451. package/dist/dist-esm/react-components/src/components/VideoGallery.js +45 -144
  452. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  453. package/dist/dist-esm/react-components/src/components/VideoTile.js +60 -36
  454. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  455. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +2 -2
  456. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  457. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  458. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  459. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +1 -1
  460. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  461. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -1
  462. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js +6 -2
  463. package/dist/dist-esm/react-components/src/components/styles/ChatMessageComponent.styles.js.map +1 -1
  464. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  465. package/dist/dist-esm/react-components/src/components/styles/ControlBar.styles.js.map +1 -1
  466. package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
  467. package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
  468. package/dist/dist-esm/react-components/src/components/styles/GridLayout.styles.js.map +1 -1
  469. package/dist/dist-esm/react-components/src/components/styles/HorizontalGallery.styles.js.map +1 -1
  470. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js +5 -2
  471. package/dist/dist-esm/react-components/src/components/styles/ImageOverlay.style.js.map +1 -1
  472. package/dist/dist-esm/react-components/src/components/styles/InputBoxButton.style.js.map +1 -1
  473. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +5 -2
  474. package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
  475. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +1 -1
  476. package/dist/dist-esm/react-components/src/components/styles/MessageStatusIndicator.styles.js.map +1 -1
  477. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +10 -4
  478. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  479. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js +2 -1
  480. package/dist/dist-esm/react-components/src/components/styles/ParticipantItem.styles.js.map +1 -1
  481. package/dist/dist-esm/react-components/src/components/styles/ParticipantList.styles.js.map +1 -1
  482. package/dist/dist-esm/react-components/src/components/styles/ReactionButton.styles.js.map +1 -1
  483. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js +8 -14
  484. package/dist/dist-esm/react-components/src/components/styles/ReactionOverlay.style.js.map +1 -1
  485. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +28 -8
  486. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +1 -1
  487. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +12 -8
  488. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +1 -1
  489. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +10 -2
  490. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  491. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +1 -1
  492. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +1 -1
  493. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js +6 -3
  494. package/dist/dist-esm/react-components/src/components/styles/StreamMedia.styles.js.map +1 -1
  495. package/dist/dist-esm/react-components/src/components/styles/SystemMessage.styles.js.map +1 -1
  496. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +2 -1
  497. package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js.map +1 -1
  498. package/dist/dist-esm/react-components/src/components/styles/TypingIndicator.styles.js.map +1 -1
  499. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
  500. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js +2 -1
  501. package/dist/dist-esm/react-components/src/components/styles/VerticalGallery.styles.js.map +1 -1
  502. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js +19 -5
  503. package/dist/dist-esm/react-components/src/components/styles/VideoGallery.styles.js.map +1 -1
  504. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  505. package/dist/dist-esm/react-components/src/components/styles/v8StyleShim.js.map +1 -1
  506. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +1 -1
  507. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +3 -10
  508. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  509. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +2 -2
  510. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +14 -32
  511. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  512. package/dist/dist-esm/react-components/src/components/utils/Datetime.js +4 -1
  513. package/dist/dist-esm/react-components/src/components/utils/Datetime.js.map +1 -1
  514. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorStringsUtils.js.map +1 -1
  515. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +1 -1
  516. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +0 -15
  517. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +2 -24
  518. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  519. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  520. package/dist/dist-esm/react-components/src/components/utils/delay.js.map +1 -1
  521. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  522. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +7 -4
  523. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  524. package/dist/dist-esm/react-components/src/components/utils/keyboardNavigation.js.map +1 -1
  525. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +1 -1
  526. package/dist/dist-esm/react-components/src/components/utils/overFlowGalleriesUtils.js.map +1 -1
  527. package/dist/dist-esm/react-components/src/components/utils/responsive.js +2 -2
  528. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  529. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js +1 -10
  530. package/dist/dist-esm/react-components/src/components/utils/useLongPress.js.map +1 -1
  531. package/dist/dist-esm/react-components/src/components/utils.js +10 -13
  532. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  533. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js +6 -8
  534. package/dist/dist-esm/react-components/src/gallery/dominantSpeaker.js.map +1 -1
  535. package/dist/dist-esm/react-components/src/gallery/index.js.map +1 -1
  536. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  537. package/dist/dist-esm/react-components/src/identifiers/index.js.map +1 -1
  538. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  539. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  540. package/dist/dist-esm/react-components/src/localization/index.js.map +1 -1
  541. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/ComponentLocale.js +3 -1
  542. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/ComponentLocale.js.map +1 -1
  543. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +5 -3
  544. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/ComponentLocale.js +3 -1
  545. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/ComponentLocale.js.map +1 -1
  546. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +5 -3
  547. package/dist/dist-esm/react-components/src/localization/locales/de-DE/ComponentLocale.js +3 -1
  548. package/dist/dist-esm/react-components/src/localization/locales/de-DE/ComponentLocale.js.map +1 -1
  549. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +5 -3
  550. package/dist/dist-esm/react-components/src/localization/locales/en-GB/ComponentLocale.js +3 -1
  551. package/dist/dist-esm/react-components/src/localization/locales/en-GB/ComponentLocale.js.map +1 -1
  552. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +5 -3
  553. package/dist/dist-esm/react-components/src/localization/locales/es-ES/ComponentLocale.js +3 -1
  554. package/dist/dist-esm/react-components/src/localization/locales/es-ES/ComponentLocale.js.map +1 -1
  555. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +5 -3
  556. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/ComponentLocale.js +3 -1
  557. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/ComponentLocale.js.map +1 -1
  558. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +5 -3
  559. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/ComponentLocale.js +3 -1
  560. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/ComponentLocale.js.map +1 -1
  561. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +5 -3
  562. package/dist/dist-esm/react-components/src/localization/locales/he-IL/ComponentLocale.js +3 -1
  563. package/dist/dist-esm/react-components/src/localization/locales/he-IL/ComponentLocale.js.map +1 -1
  564. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +5 -3
  565. package/dist/dist-esm/react-components/src/localization/locales/index.js +3 -1
  566. package/dist/dist-esm/react-components/src/localization/locales/index.js.map +1 -1
  567. package/dist/dist-esm/react-components/src/localization/locales/it-IT/ComponentLocale.js +3 -1
  568. package/dist/dist-esm/react-components/src/localization/locales/it-IT/ComponentLocale.js.map +1 -1
  569. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +5 -3
  570. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/ComponentLocale.js +3 -1
  571. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/ComponentLocale.js.map +1 -1
  572. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +5 -3
  573. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/ComponentLocale.js +3 -1
  574. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/ComponentLocale.js.map +1 -1
  575. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +5 -3
  576. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/ComponentLocale.js +3 -1
  577. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/ComponentLocale.js.map +1 -1
  578. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +5 -3
  579. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/ComponentLocale.js +3 -1
  580. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/ComponentLocale.js.map +1 -1
  581. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +5 -3
  582. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/ComponentLocale.js +3 -1
  583. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/ComponentLocale.js.map +1 -1
  584. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +5 -3
  585. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/ComponentLocale.js +3 -1
  586. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/ComponentLocale.js.map +1 -1
  587. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +5 -3
  588. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/ComponentLocale.js +3 -1
  589. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/ComponentLocale.js.map +1 -1
  590. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +5 -3
  591. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/ComponentLocale.js +3 -1
  592. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/ComponentLocale.js.map +1 -1
  593. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +5 -3
  594. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/ComponentLocale.js +3 -1
  595. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/ComponentLocale.js.map +1 -1
  596. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +5 -3
  597. package/dist/dist-esm/react-components/src/localization/locales/utils.js +1 -1
  598. package/dist/dist-esm/react-components/src/localization/locales/utils.js.map +1 -1
  599. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/ComponentLocale.js +3 -1
  600. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/ComponentLocale.js.map +1 -1
  601. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +5 -3
  602. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/ComponentLocale.js +3 -1
  603. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/ComponentLocale.js.map +1 -1
  604. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +5 -3
  605. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js +5 -3
  606. package/dist/dist-esm/react-components/src/theming/FluentThemeProvider.js.map +1 -1
  607. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js +1 -1
  608. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js.map +1 -1
  609. package/dist/dist-esm/react-components/src/theming/generateTheme.js +1 -15
  610. package/dist/dist-esm/react-components/src/theming/generateTheme.js.map +1 -1
  611. package/dist/dist-esm/react-components/src/theming/icons.js +30 -21
  612. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  613. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +1 -1
  614. package/dist/dist-esm/react-components/src/theming/index.js.map +1 -1
  615. package/dist/dist-esm/react-components/src/theming/themeDuplicates.js.map +1 -1
  616. package/dist/dist-esm/react-components/src/theming/themeUtils.js.map +1 -1
  617. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  618. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +7 -1
  619. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  620. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  621. package/dist/dist-esm/react-components/src/types/CallSurveyImprovementSuggestions.js.map +1 -1
  622. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -1
  623. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  624. package/dist/dist-esm/react-components/src/types/CommunicationParticipant.js.map +1 -1
  625. package/dist/dist-esm/react-components/src/types/ComponentSlotStyle.js.map +1 -1
  626. package/dist/dist-esm/react-components/src/types/CustomStylesProps.js.map +1 -1
  627. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  628. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  629. package/dist/dist-esm/react-components/src/types/ReactionTypes.js.map +1 -1
  630. package/dist/dist-esm/react-components/src/types/ReadReceiptsBySenderId.js.map +1 -1
  631. package/dist/dist-esm/react-components/src/types/SurveyIssues.js.map +1 -1
  632. package/dist/dist-esm/react-components/src/types/SurveyIssuesHeadingStrings.js.map +1 -1
  633. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  634. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  635. package/dist/dist-esm/react-composites/src/Logger.js.map +1 -1
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +38 -41
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -4
  639. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  640. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -2
  641. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +57 -124
  642. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  643. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +0 -4
  644. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -7
  645. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  646. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapterProvider.js.map +1 -1
  647. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js +3 -8
  648. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js.map +1 -1
  649. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/DiagnosticsForwarder.js.map +1 -1
  650. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js +3 -1
  651. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/OnFetchProfileCallback.js.map +1 -1
  652. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/ParticipantSubcriber.js.map +1 -1
  653. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +2 -2
  654. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  655. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  656. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +30 -69
  657. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  658. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +60 -37
  659. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  660. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +141 -133
  661. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
  662. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js +18 -10
  663. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CapabilitiesChangedNotificationBar.js.map +1 -1
  664. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +7 -1
  665. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  666. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +1 -1
  667. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  668. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +7 -1
  669. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  670. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js +4 -5
  671. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.js.map +1 -1
  672. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +4 -4
  673. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +1 -1
  674. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js +4 -4
  675. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.js.map +1 -1
  676. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js +22 -33
  677. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.js.map +1 -1
  678. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +25 -35
  679. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  680. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +30 -26
  681. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  682. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +45 -76
  683. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  684. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js +2 -2
  685. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.js.map +1 -1
  686. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +2 -2
  687. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  688. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js +32 -10
  689. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js.map +1 -1
  690. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +11 -29
  691. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  692. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePaneProvider.js.map +1 -1
  693. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +0 -1
  694. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +40 -61
  695. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  696. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +4 -4
  697. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +1 -1
  698. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js +1 -1
  699. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.js.map +1 -1
  700. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js +5 -3
  701. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SvgWithWordWrapping.js.map +1 -1
  702. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -3
  703. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  704. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +7 -10
  705. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  706. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +13 -23
  707. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  708. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js +1 -3
  709. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  710. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js +2 -5
  711. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  712. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +1 -1
  713. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +1 -1
  714. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js +1 -1
  715. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/RaiseHand.js.map +1 -1
  716. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js +1 -1
  717. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Reaction.js.map +1 -1
  718. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +1 -1
  719. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  720. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +7 -7
  721. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  722. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -1
  723. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +13 -25
  724. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  725. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.js.map +1 -1
  726. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js +1 -1
  727. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useSelector.js.map +1 -1
  728. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  729. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +11 -18
  730. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  731. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +24 -56
  732. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  733. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js +13 -5
  734. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/DtmfDialpadPage.js.map +1 -1
  735. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +7 -13
  736. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  737. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +7 -15
  738. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  739. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +3 -3
  740. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  741. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js +2 -2
  742. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js.map +1 -1
  743. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.d.ts +1 -1
  744. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js +3 -4
  745. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js.map +1 -1
  746. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +21 -18
  747. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  748. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +3 -3
  749. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -1
  750. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +2 -2
  751. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js +1 -1
  752. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.js.map +1 -1
  753. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +1 -2
  754. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +1 -1
  755. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  756. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -1
  757. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.js.map +1 -1
  758. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.d.ts +1 -1
  759. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js +4 -1
  760. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.js.map +1 -1
  761. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.d.ts +1 -1
  762. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.js +1 -1
  763. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitySelector.js.map +1 -1
  764. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -1
  765. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.js.map +1 -1
  766. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +1 -1
  767. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.js.map +1 -1
  768. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +2 -2
  769. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js +1 -1
  770. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.js.map +1 -1
  771. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +1 -1
  772. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +1 -3
  773. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  774. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.d.ts +1 -1
  775. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.js +4 -10
  776. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/getFirstSpotlightedRemoteParticipantSelector.js.map +1 -1
  777. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +4 -4
  778. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js +1 -1
  779. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.js.map +1 -1
  780. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +3 -3
  781. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +2 -11
  782. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  783. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +2 -2
  784. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +4 -4
  785. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
  786. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -1
  787. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js +1 -1
  788. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.js.map +1 -1
  789. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +5 -5
  790. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js +4 -4
  791. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.js.map +1 -1
  792. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +2 -2
  793. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js +1 -1
  794. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.js.map +1 -1
  795. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +5 -5
  796. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.js.map +1 -1
  797. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +1 -1
  798. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  799. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js +6 -2
  800. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallComposite.styles.js.map +1 -1
  801. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +29 -41
  802. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  803. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  804. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  805. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/DtmfDialpadPage.styles.js.map +1 -1
  806. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js +4 -1
  807. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/ExpandedLocalVideoTile.styles.js.map +1 -1
  808. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +1 -1
  809. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +9 -2
  810. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  811. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalDeviceSettings.styles.js.map +1 -1
  812. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +4 -2
  813. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  814. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NetworkReconnectTile.styles.js.map +1 -1
  815. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/NoticePage.styles.js.map +1 -1
  816. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js +2 -1
  817. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/StartCallButton.styles.js.map +1 -1
  818. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +24 -6
  819. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +1 -1
  820. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  821. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  822. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CapabilityChangedNotificationTracking.js.map +1 -1
  823. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  824. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js +13 -11
  825. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/MediaGalleryUtils.js.map +1 -1
  826. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js +10 -11
  827. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackCapabilityChangedNotifications.js.map +1 -1
  828. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +2 -2
  829. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  830. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -1
  831. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +29 -49
  832. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  833. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  834. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js +5 -15
  835. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js.map +1 -1
  836. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js +2 -2
  837. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/timerUtils.js.map +1 -1
  838. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/useConsoleErrors.js.map +1 -1
  839. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +29 -79
  840. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  841. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js +1 -1
  842. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.js.map +1 -1
  843. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +7 -9
  844. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  845. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js +9 -6
  846. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.js.map +1 -1
  847. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.d.ts +1 -1
  848. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +5 -5
  849. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -1
  850. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  851. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +13 -49
  852. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +68 -221
  853. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  854. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +1 -11
  855. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  856. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  857. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  858. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +1 -1
  859. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  860. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/hooks/useCallWithChatCompositeStrings.js.map +1 -1
  861. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
  862. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  863. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js +1 -1
  864. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/selectors/moreDrawerSelector.js.map +1 -1
  865. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -2
  866. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +0 -3
  867. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  868. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  869. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +5 -3
  870. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +1 -1
  871. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +4 -7
  872. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  873. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js +5 -3
  874. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.js.map +1 -1
  875. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +28 -36
  876. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  877. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +1 -1
  878. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +1 -1
  879. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  880. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js +18 -16
  881. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationAttachmentUploadAdapter.js.map +1 -1
  882. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +36 -31
  883. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  884. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -2
  885. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  886. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  887. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +1 -1
  888. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +6 -11
  889. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +1 -1
  890. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +1 -1
  891. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js +3 -1
  892. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useAdaptedSelector.js.map +1 -1
  893. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +3 -8
  894. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  895. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.js.map +1 -1
  896. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +1 -1
  897. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +1 -1
  898. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  899. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.d.ts +4 -4
  900. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js +5 -3
  901. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/attachmentUploadsSelector.js.map +1 -1
  902. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
  903. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js +6 -2
  904. package/dist/dist-esm/react-composites/src/composites/ChatComposite/styles/Chat.styles.js.map +1 -1
  905. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +17 -9
  906. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  907. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +25 -23
  908. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +1 -1
  909. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +1 -1
  910. package/dist/dist-esm/react-composites/src/composites/common/AudioProvider.js.map +1 -1
  911. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +3 -8
  912. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  913. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js +14 -5
  914. package/dist/dist-esm/react-composites/src/composites/common/BaseComposite.js.map +1 -1
  915. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +23 -9
  916. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +1 -1
  917. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
  918. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +7 -5
  919. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -1
  920. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +16 -12
  921. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -1
  922. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +1 -1
  923. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -1
  924. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js +5 -1
  925. package/dist/dist-esm/react-composites/src/composites/common/ContainerRectProps.js.map +1 -1
  926. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +41 -59
  927. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  928. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js +37 -39
  929. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  930. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +66 -105
  931. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  932. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js +1 -1
  933. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DtmfDialerButton.js.map +1 -1
  934. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js +1 -1
  935. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -1
  936. package/dist/dist-esm/react-composites/src/composites/common/ConvertContextualMenuItemToDrawerMenuItem.js.map +1 -1
  937. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js +7 -5
  938. package/dist/dist-esm/react-composites/src/composites/common/Drawer/CaptionLanguageSettingsDrawer.js.map +1 -1
  939. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +118 -86
  940. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  941. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -1
  942. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  943. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js +7 -5
  944. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageSettingsDrawer.js.map +1 -1
  945. package/dist/dist-esm/react-composites/src/composites/common/Drawer/captionSettingsDrawer.styles.js.map +1 -1
  946. package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js +1 -1
  947. package/dist/dist-esm/react-composites/src/composites/common/ExitSpotlightButton.js.map +1 -1
  948. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js +1 -1
  949. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.js.map +1 -1
  950. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +11 -18
  951. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  952. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  953. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  954. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +15 -13
  955. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  956. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -1
  957. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +12 -28
  958. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  959. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js +15 -7
  960. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
  961. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js +1 -2
  962. package/dist/dist-esm/react-composites/src/composites/common/StarSurvey.js.map +1 -1
  963. package/dist/dist-esm/react-composites/src/composites/common/Survey.js +34 -19
  964. package/dist/dist-esm/react-composites/src/composites/common/Survey.js.map +1 -1
  965. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js +3 -4
  966. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js.map +1 -1
  967. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +8 -11
  968. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  969. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js +2 -3
  970. package/dist/dist-esm/react-composites/src/composites/common/TagsSurvey.js.map +1 -1
  971. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +12 -11
  972. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  973. package/dist/dist-esm/react-composites/src/composites/common/adapters.js.map +1 -1
  974. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
  975. package/dist/dist-esm/react-composites/src/composites/common/icons.js +3 -3
  976. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  977. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -1
  978. package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -1
  979. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -1
  980. package/dist/dist-esm/react-composites/src/composites/common/styles/GlobalHostLayer.styles.js.map +1 -1
  981. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +10 -4
  982. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  983. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js +44 -11
  984. package/dist/dist-esm/react-composites/src/composites/common/styles/Pane.styles.js.map +1 -1
  985. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js +29 -6
  986. package/dist/dist-esm/react-composites/src/composites/common/styles/ParticipantContainer.styles.js.map +1 -1
  987. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js +22 -4
  988. package/dist/dist-esm/react-composites/src/composites/common/styles/PeoplePaneContent.styles.js.map +1 -1
  989. package/dist/dist-esm/react-composites/src/composites/common/styles/Survey.styles.js +13 -15
  990. package/dist/dist-esm/react-composites/src/composites/common/styles/Survey.styles.js.map +1 -1
  991. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  992. package/dist/dist-esm/react-composites/src/composites/common/utils.js +12 -17
  993. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  994. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  995. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js +2 -2
  996. package/dist/dist-esm/react-composites/src/composites/localization/LocalizationProvider.js.map +1 -1
  997. package/dist/dist-esm/react-composites/src/composites/localization/index.js.map +1 -1
  998. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/CompositeLocale.js.map +1 -1
  999. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +3 -3
  1000. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/CompositeLocale.js.map +1 -1
  1001. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +3 -3
  1002. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/CompositeLocale.js.map +1 -1
  1003. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +3 -3
  1004. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/CompositeLocale.js.map +1 -1
  1005. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +3 -3
  1006. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/CompositeLocale.js.map +1 -1
  1007. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +3 -3
  1008. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/CompositeLocale.js.map +1 -1
  1009. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +3 -3
  1010. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/CompositeLocale.js.map +1 -1
  1011. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +3 -3
  1012. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/CompositeLocale.js.map +1 -1
  1013. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +3 -3
  1014. package/dist/dist-esm/react-composites/src/composites/localization/locales/index.js.map +1 -1
  1015. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/CompositeLocale.js.map +1 -1
  1016. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +3 -3
  1017. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/CompositeLocale.js.map +1 -1
  1018. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +3 -3
  1019. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/CompositeLocale.js.map +1 -1
  1020. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +3 -3
  1021. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/CompositeLocale.js.map +1 -1
  1022. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +3 -3
  1023. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/CompositeLocale.js.map +1 -1
  1024. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +3 -3
  1025. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/CompositeLocale.js.map +1 -1
  1026. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +3 -3
  1027. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/CompositeLocale.js.map +1 -1
  1028. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +4 -4
  1029. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/CompositeLocale.js.map +1 -1
  1030. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +3 -3
  1031. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/CompositeLocale.js.map +1 -1
  1032. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +3 -3
  1033. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/CompositeLocale.js.map +1 -1
  1034. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +3 -3
  1035. package/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js +1 -1
  1036. package/dist/dist-esm/react-composites/src/composites/localization/locales/utils.js.map +1 -1
  1037. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/CompositeLocale.js.map +1 -1
  1038. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +3 -3
  1039. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/CompositeLocale.js.map +1 -1
  1040. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +3 -3
  1041. package/dist/dist-esm/react-composites/src/index-public.js.map +1 -1
  1042. package/package.json +1 -1
  1043. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-DSlV4PZz.js.map +0 -1
  1044. package/dist/dist-cjs/communication-react/index-aGXLnB_I.js.map +0 -1
  1045. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.d.ts +0 -17
  1046. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +0 -112
  1047. package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextRibbonButtons.js","sourceRoot":"","sources":["../../../../../../../../react-components/src/components/RichTextEditor/Buttons/RichTextRibb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B,MAAM,CAAC,oBAAoB,KAC9B,YAAY,kCACP,MAAA,MAAM,CAAC,oBAAoB,0CAAE,YAAY,GACzC,iBAAiB,CAAC,KAAK,CAAC,GAE7B,QAAQ,EAAE,KAAK,GAChB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAY,EAA0B,EAAE;IACpE,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C;QACE,UAAU,CAAC,KAAK,CAAC;QACjB,YAAY,CAAC,KAAK,CAAC;QACnB,eAAe,CAAC,KAAK,CAAC;QACtB,mBAAmB,CAAC,KAAK,EAAE,iCAAiC,CAAC;QAC7D,gBAAgB,CAAC,KAAK,CAAC;QACvB,gBAAgB,CAAC,KAAK,CAAC;QACvB,oBAAoB,CAAC,KAAK,CAAC;QAC3B,oBAAoB,CAAC,KAAK,CAAC;QAC3B,mBAAmB,CAAC,KAAK,EAAE,4BAA4B,CAAC;QACxD,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,gBAAgB,CAAC;KAC1D,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACjB,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ContextualMenuItemType, Icon, Theme } from '@fluentui/react';\nimport { KnownRibbonButtonKey, RibbonButton, getButtons } from 'roosterjs-react';\nimport { ribbonButtonStyle, ribbonDividerStyle } from '../../styles/RichTextEditor.styles';\nimport { insertTableButton } from './Table/RichTextInsertTableButton';\nimport React from 'react';\n\nconst MaxRowsNumber = 5;\nconst MaxColumnsNumber = 5;\n\nconst dividerRibbonButton = (theme: Theme, key: string): RibbonButton<string> => {\n return {\n key: key,\n // the icon will be set in `onRender` callback\n // this is needed to make the divider unavailable for keyboard navigation\n iconName: '',\n // no text is needed here as we don't want to show a tooltip for the divider\n unlocalizedText: '',\n onClick: () => {},\n isDisabled: () => true,\n commandBarProperties: {\n // show the item correctly for the overflow menu\n itemType: ContextualMenuItemType.Divider,\n // this is still needed to remove checkmark icon space even though it is a divider\n canCheck: false,\n onRender: () => <Icon iconName=\"RichTextDividerIcon\" className={ribbonDividerStyle(theme)} />\n }\n };\n};\n\nconst boldButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.Bold, theme, 'RichTextBoldButtonIcon');\n};\n\nconst italicButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.Italic, theme, 'RichTextItalicButtonIcon');\n};\n\nconst underlineButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.Underline, theme, 'RichTextUnderlineButtonIcon');\n};\n\nconst bulletListButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.BulletedList, theme, 'RichTextBulletListButtonIcon');\n};\n\nconst numberListButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.NumberedList, theme, 'RichTextNumberListButtonIcon');\n};\n\nconst indentIncreaseButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.IncreaseIndent, theme, 'RichTextIndentIncreaseButtonIcon');\n};\n\nconst indentDecreaseButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.DecreaseIndent, theme, 'RichTextIndentDecreaseButtonIcon');\n};\n\nconst createKnownRibbonButton = (\n key: KnownRibbonButtonKey,\n theme: Theme,\n icon: string\n): RibbonButton<string> | undefined => {\n const buttons = getButtons([key]);\n if (buttons.length > 0) {\n const button = buttons[0];\n // AllButtonStringKeys is a union of all the string keys of all the buttons\n const result = buttons[0] as RibbonButton<typeof button.key>;\n button.iconName = icon;\n button.commandBarProperties = {\n ...button.commandBarProperties,\n buttonStyles: {\n ...button.commandBarProperties?.buttonStyles,\n ...ribbonButtonStyle(theme)\n },\n canCheck: false\n };\n return result;\n }\n return undefined;\n};\n\n/**\n * @private\n */\nexport const ribbonButtons = (theme: Theme): RibbonButton<string>[] => {\n const buttons: RibbonButton<string>[] = [];\n [\n boldButton(theme),\n italicButton(theme),\n underlineButton(theme),\n dividerRibbonButton(theme, 'RichTextRibbonTextFormatDivider'),\n bulletListButton(theme),\n numberListButton(theme),\n indentDecreaseButton(theme),\n indentIncreaseButton(theme),\n dividerRibbonButton(theme, 'RichTextRibbonTableDivider'),\n insertTableButton(theme, MaxRowsNumber, MaxColumnsNumber)\n ].forEach((item) => {\n if (item !== undefined) {\n buttons.push(item);\n }\n });\n\n return buttons;\n};\n"]}
1
+ {"version":3,"file":"RichTextRibbonButtons.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Buttons/RichTextRibbonButtons.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAS,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAgB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,mBAAmB,GAAG,CAAC,KAAY,EAAE,GAAW,EAAwB,EAAE;IAC9E,OAAO;QACL,GAAG,EAAE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,gBAAgB,CAAC,KAAK,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,EAAE,oBAAoB,CAAC,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,4BAA4B,CAAC,EAAE,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC9W,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ContextualMenuItemType, Icon, Theme } from '@fluentui/react';\nimport { KnownRibbonButtonKey, RibbonButton, getButtons } from 'roosterjs-react';\nimport { ribbonButtonStyle, ribbonDividerStyle } from '../../styles/RichTextEditor.styles';\nimport { insertTableButton } from './Table/RichTextInsertTableButton';\nimport React from 'react';\nconst MaxRowsNumber = 5;\nconst MaxColumnsNumber = 5;\nconst dividerRibbonButton = (theme: Theme, key: string): RibbonButton<string> => {\n return {\n key: key,\n // the icon will be set in `onRender` callback\n // this is needed to make the divider unavailable for keyboard navigation\n iconName: '',\n // no text is needed here as we don't want to show a tooltip for the divider\n unlocalizedText: '',\n onClick: () => {},\n isDisabled: () => true,\n commandBarProperties: {\n // show the item correctly for the overflow menu\n itemType: ContextualMenuItemType.Divider,\n // this is still needed to remove checkmark icon space even though it is a divider\n canCheck: false,\n onRender: () => <Icon iconName=\"RichTextDividerIcon\" className={ribbonDividerStyle(theme)} />\n }\n };\n};\nconst boldButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.Bold, theme, 'RichTextBoldButtonIcon');\n};\nconst italicButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.Italic, theme, 'RichTextItalicButtonIcon');\n};\nconst underlineButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.Underline, theme, 'RichTextUnderlineButtonIcon');\n};\nconst bulletListButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.BulletedList, theme, 'RichTextBulletListButtonIcon');\n};\nconst numberListButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.NumberedList, theme, 'RichTextNumberListButtonIcon');\n};\nconst indentIncreaseButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.IncreaseIndent, theme, 'RichTextIndentIncreaseButtonIcon');\n};\nconst indentDecreaseButton = (theme: Theme): RibbonButton<string> | undefined => {\n return createKnownRibbonButton(KnownRibbonButtonKey.DecreaseIndent, theme, 'RichTextIndentDecreaseButtonIcon');\n};\nconst createKnownRibbonButton = (key: KnownRibbonButtonKey, theme: Theme, icon: string): RibbonButton<string> | undefined => {\n const buttons = getButtons([key]);\n if (buttons.length > 0) {\n const button = buttons[0];\n // AllButtonStringKeys is a union of all the string keys of all the buttons\n const result = (buttons[0] as RibbonButton<typeof button.key>);\n button.iconName = icon;\n button.commandBarProperties = {\n ...button.commandBarProperties,\n buttonStyles: {\n ...button.commandBarProperties?.buttonStyles,\n ...ribbonButtonStyle(theme)\n },\n canCheck: false\n };\n return result;\n }\n return undefined;\n};\n\n/**\n * @private\n */\nexport const ribbonButtons = (theme: Theme): RibbonButton<string>[] => {\n const buttons: RibbonButton<string>[] = [];\n [boldButton(theme), italicButton(theme), underlineButton(theme), dividerRibbonButton(theme, 'RichTextRibbonTextFormatDivider'), bulletListButton(theme), numberListButton(theme), indentDecreaseButton(theme), indentIncreaseButton(theme), dividerRibbonButton(theme, 'RichTextRibbonTableDivider'), insertTableButton(theme, MaxRowsNumber, MaxColumnsNumber)].forEach(item => {\n if (item !== undefined) {\n buttons.push(item);\n }\n });\n return buttons;\n};"]}
@@ -26,7 +26,7 @@ export const insertTableButton = (theme, maxRowsNumber, maxColumnsNumber) => {
26
26
  insertTablePane: `Insert ${ColumnRowReplaceString} table`
27
27
  },
28
28
  itemRender: (item, onClick) => {
29
- return (React.createElement(RichTextInsertTablePane, { item: item, onClick: onClick, maxColumnsNumber: maxColumnsNumber, maxRowsNumber: maxRowsNumber }));
29
+ return React.createElement(RichTextInsertTablePane, { item: item, onClick: onClick, theme: theme, maxColumnsNumber: maxColumnsNumber, maxRowsNumber: maxRowsNumber });
30
30
  },
31
31
  commandBarSubMenuProperties: {
32
32
  className: insertTableMenuTablePane
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextInsertTableButton.js","sourceRoot":"","sources":["../../../../../../../../../react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTableButton.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGvE,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAGrF,kGAAkG;AAElG;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,KAAY,EACZ,aAAqB,EACrB,gBAAwB,EACF,EAAE;IACxB,OAAO;QACL,GAAG,EAAE,uBAAuB;QAC5B,eAAe,EAAE,cAAc;QAC/B,4CAA4C;QAC5C,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,CAAC,MAAe,EAAE,GAAW,EAAE,EAAE;YACxC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;YACtC,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QACzC,CAAC;QACD,YAAY,EAAE;YACZ,KAAK,EAAE;gBACL,6DAA6D;gBAC7D,eAAe,EAAE,UAAU,sBAAsB,QAAQ;aAC1D;YACD,UAAU,EAAE,CACV,IAAyB,EACzB,OAAyG,EACzG,EAAE;gBACF,OAAO,CACL,oBAAC,uBAAuB,IACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,aAAa,GAC5B,CACH,CAAC;YACJ,CAAC;YACD,2BAA2B,EAAE;gBAC3B,SAAS,EAAE,wBAAwB;aACpC;SACF;QACD,oBAAoB,EAAE;YACpB,wBAAwB;YACxB,aAAa,EAAE;gBACb,MAAM,EAAE,IAAI;aACb;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,OAAO,oBAAC,SAAS,OAAG,CAAC;YACvB,CAAC;YACD,YAAY,EAAE,sBAAsB,CAAC,KAAK,CAAC;YAC3C,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAgB,EAAE;IAClC,OAAO;IACL,qGAAqG;IACrG,oBAAC,KAAK;QACJ,oBAAC,IAAI,IAAC,QAAQ,EAAC,+BAA+B,EAAC,SAAS,EAAE,iCAAiC,GAAI;QAC/F,oBAAC,IAAI,IAAC,QAAQ,EAAC,gCAAgC,EAAC,SAAS,EAAE,kCAAkC,GAAI,CAC3F,CACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { Icon, Stack } from '@fluentui/react';\nimport { insertTable as insertTableAction } from './insertTableAction';\nimport type { RibbonButton } from 'roosterjs-react';\nimport type { IContextualMenuItem, Theme } from '@fluentui/react';\nimport { insertTableMenuTablePane, ribbonTableButtonStyle } from '../../../styles/RichTextEditor.styles';\nimport { RichTextInsertTablePane } from './RichTextInsertTablePane';\nimport { ColumnRowReplaceString, parseKey } from '../../../utils/RichTextTableUtils';\nimport type { IEditor } from 'roosterjs-editor-types-compatible';\n\n// This file uses RoosterJS React package implementation with updates to UI components and styles.\n\n/**\n * \"Insert table\" button for the RoosterJS ribbon\n */\nexport const insertTableButton = (\n theme: Theme,\n maxRowsNumber: number,\n maxColumnsNumber: number\n): RibbonButton<string> => {\n return {\n key: 'buttonNameInsertTable',\n unlocalizedText: 'Insert table',\n // Icon will be set in onRenderIcon callback\n iconName: '',\n onClick: (editor: IEditor, key: string) => {\n const { row, column } = parseKey(key);\n insertTableAction(editor, column, row);\n },\n dropDownMenu: {\n items: {\n // the key of the item is also used as a key for localization\n insertTablePane: `Insert ${ColumnRowReplaceString} table`\n },\n itemRender: (\n item: IContextualMenuItem,\n onClick: (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>, item: IContextualMenuItem) => void\n ) => {\n return (\n <RichTextInsertTablePane\n item={item}\n onClick={onClick}\n maxColumnsNumber={maxColumnsNumber}\n maxRowsNumber={maxRowsNumber}\n />\n );\n },\n commandBarSubMenuProperties: {\n className: insertTableMenuTablePane\n }\n },\n commandBarProperties: {\n // hide the chevron icon\n menuIconProps: {\n hidden: true\n },\n onRenderIcon: () => {\n return <TableIcon />;\n },\n buttonStyles: ribbonTableButtonStyle(theme),\n canCheck: false\n }\n };\n};\n\nconst TableIcon = (): JSX.Element => {\n return (\n // update the visibility of the Table Icon with css classes that are triggered by command bar's state\n <Stack>\n <Icon iconName=\"RichTextInsertTableFilledIcon\" className={'ribbon-table-button-filled-icon'} />\n <Icon iconName=\"RichTextInsertTableRegularIcon\" className={'ribbon-table-button-regular-icon'} />\n </Stack>\n );\n};\n"]}
1
+ {"version":3,"file":"RichTextInsertTableButton.js","sourceRoot":"","sources":["../../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Buttons/Table/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C;SACF;QACD,oBAAoB,EAAE;YACpB,wBAAwB;YACxB,aAAa,EAAE;gBACb,MAAM,EAAE,IAAI;aACb;YACD,YAAY,EAAE,GAAG,EAAE;gBACjB,OAAO,oBAAC,SAAS,OAAG,CAAC;YACvB,CAAC;YACD,YAAY,EAAE,sBAAsB,CAAC,KAAK,CAAC;YAC3C,QAAQ,EAAE,KAAK;SAChB;KACF,CAAC;AACJ,CAAC,CAAC;AACF,MAAM,SAAS,GAAG,GAAgB,EAAE;IAClC,OAAO;IACL,qGAAqG;IACrG,oBAAC,KAAK;QACJ,oBAAC,IAAI,IAAC,QAAQ,EAAC,+BAA+B,EAAC,SAAS,EAAE,iCAAiC,GAAI;QAC/F,oBAAC,IAAI,IAAC,QAAQ,EAAC,gCAAgC,EAAC,SAAS,EAAE,kCAAkC,GAAI,CAC3F,CACT,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React from 'react';\nimport { Icon, Stack } from '@fluentui/react';\nimport { insertTable as insertTableAction } from './insertTableAction';\nimport type { RibbonButton } from 'roosterjs-react';\nimport type { IContextualMenuItem, Theme } from '@fluentui/react';\nimport { insertTableMenuTablePane, ribbonTableButtonStyle } from '../../../styles/RichTextEditor.styles';\nimport { RichTextInsertTablePane } from './RichTextInsertTablePane';\nimport { ColumnRowReplaceString, parseKey } from '../../../utils/RichTextTableUtils';\nimport type { IEditor } from 'roosterjs-editor-types-compatible';\n\n// This file uses RoosterJS React package implementation with updates to UI components and styles.\n\n/**\n * \"Insert table\" button for the RoosterJS ribbon\n */\nexport const insertTableButton = (theme: Theme, maxRowsNumber: number, maxColumnsNumber: number): RibbonButton<string> => {\n return {\n key: 'buttonNameInsertTable',\n unlocalizedText: 'Insert table',\n // Icon will be set in onRenderIcon callback\n iconName: '',\n onClick: (editor: IEditor, key: string) => {\n const {\n row,\n column\n } = parseKey(key);\n insertTableAction(editor, column, row);\n },\n dropDownMenu: {\n items: {\n // the key of the item is also used as a key for localization\n insertTablePane: `Insert ${ColumnRowReplaceString} table`\n },\n itemRender: (item: IContextualMenuItem, onClick: (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>, item: IContextualMenuItem) => void) => {\n return <RichTextInsertTablePane item={item} onClick={onClick} theme={theme} maxColumnsNumber={maxColumnsNumber} maxRowsNumber={maxRowsNumber} />;\n },\n commandBarSubMenuProperties: {\n className: insertTableMenuTablePane\n }\n },\n commandBarProperties: {\n // hide the chevron icon\n menuIconProps: {\n hidden: true\n },\n onRenderIcon: () => {\n return <TableIcon />;\n },\n buttonStyles: ribbonTableButtonStyle(theme),\n canCheck: false\n }\n };\n};\nconst TableIcon = (): JSX.Element => {\n return (\n // update the visibility of the Table Icon with css classes that are triggered by command bar's state\n <Stack>\n <Icon iconName=\"RichTextInsertTableFilledIcon\" className={'ribbon-table-button-filled-icon'} />\n <Icon iconName=\"RichTextInsertTableRegularIcon\" className={'ribbon-table-button-regular-icon'} />\n </Stack>\n );\n};"]}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- import type { IContextualMenuItem } from '@fluentui/react';
2
+ import type { IContextualMenuItem, Theme } from '@fluentui/react';
3
3
  interface RichTextInsertTablePaneProps {
4
+ theme: Theme;
4
5
  item: IContextualMenuItem;
5
6
  onClick: (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>, item: IContextualMenuItem) => void;
6
7
  maxRowsNumber: number;
@@ -4,7 +4,6 @@ import React, { useMemo } from 'react';
4
4
  import { FocusZone, FocusZoneDirection, mergeStyles } from '@fluentui/react';
5
5
  import { insertTableMenuCellButtonSelectedStyles, insertTableMenuCellButtonStyles, insertTableMenuFocusZone, insertTableMenuTitleStyles } from '../../../styles/RichTextEditor.styles';
6
6
  import { ColumnRowReplaceString, createKey } from '../../../utils/RichTextTableUtils';
7
- import { useTheme } from '../../../../theming';
8
7
  // This file uses RoosterJS React package implementation with updates to UI components and styles.
9
8
  const RowColumnInitialValue = 0;
10
9
  /**
@@ -12,18 +11,14 @@ const RowColumnInitialValue = 0;
12
11
  * Component for the insert table pane
13
12
  */
14
13
  export const RichTextInsertTablePane = (props) => {
15
- const { item, onClick, maxColumnsNumber, maxRowsNumber } = props;
14
+ const { item, onClick, theme, maxColumnsNumber, maxRowsNumber } = props;
16
15
  const [column, setColumn] = React.useState(RowColumnInitialValue);
17
16
  const [row, setRow] = React.useState(RowColumnInitialValue);
18
- const theme = useTheme();
19
17
  const updateSize = React.useCallback((target) => {
20
18
  if (target !== undefined && target.dataset.column !== undefined && target.dataset.row !== undefined) {
21
19
  const column = parseInt(target.dataset.column);
22
20
  const row = parseInt(target.dataset.row);
23
- if (column >= RowColumnInitialValue &&
24
- column < maxColumnsNumber &&
25
- row >= RowColumnInitialValue &&
26
- row < maxRowsNumber) {
21
+ if (column >= RowColumnInitialValue && column < maxColumnsNumber && row >= RowColumnInitialValue && row < maxRowsNumber) {
27
22
  setColumn(column);
28
23
  setRow(row);
29
24
  }
@@ -42,7 +37,7 @@ export const RichTextInsertTablePane = (props) => {
42
37
  for (let j = 0; j < maxColumnsNumber; j++) {
43
38
  const key = `cell_${i}_${j}`;
44
39
  const isSelected = j <= column && i <= row;
45
- items.push(React.createElement("button", { className: mergeStyles(insertTableMenuCellButtonStyles(theme), isSelected ? insertTableMenuCellButtonSelectedStyles(theme) : undefined), onClick: onClickButton, key: key, id: key, "data-column": j, "data-row": i, "data-is-focusable": true, onMouseEnter: onMouseEnter, "aria-label": formatText((_a = item.text) !== null && _a !== void 0 ? _a : '', formatRowColumnText(i), formatRowColumnText(j)), "data-testid": key }));
40
+ items.push(React.createElement("button", { className: mergeStyles(insertTableMenuCellButtonStyles(theme), isSelected ? insertTableMenuCellButtonSelectedStyles(theme) : undefined), onClick: onClickButton, key: key, id: key, "data-column": j, "data-row": i, "data-is-focusable": true, onMouseEnter: onMouseEnter, "aria-label": formatText((_a = item.text) !== null && _a !== void 0 ? _a : '', i, j) }));
46
41
  }
47
42
  }
48
43
  return items;
@@ -51,9 +46,9 @@ export const RichTextInsertTablePane = (props) => {
51
46
  var _a;
52
47
  return formatText((_a = item.text) !== null && _a !== void 0 ? _a : '', formatRowColumnText(row), formatRowColumnText(column));
53
48
  }, [column, item.text, row]);
54
- return (React.createElement("div", null,
49
+ return React.createElement("div", null,
55
50
  React.createElement("div", { className: insertTableMenuTitleStyles }, text),
56
- React.createElement(FocusZone, { defaultTabbableElement: `cell_${RowColumnInitialValue}_${RowColumnInitialValue}`, direction: FocusZoneDirection.bidirectional, onActiveElementChanged: updateSize, className: insertTableMenuFocusZone(theme) }, items)));
51
+ React.createElement(FocusZone, { defaultTabbableElement: `cell_${RowColumnInitialValue}_${RowColumnInitialValue}`, direction: FocusZoneDirection.bidirectional, onActiveElementChanged: updateSize, className: insertTableMenuFocusZone(theme) }, items));
57
52
  };
58
53
  const formatText = (text, row, column) => {
59
54
  return text.replace(`${ColumnRowReplaceString}`, `${column.toString()} x ${row.toString()}`);
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextInsertTablePane.js","sourceRoot":"","sources":["../../../../../../../../../react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7E,OAAO,EACL,uCAAuC,EACvC,+BAA+B,EAC/B,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,kGAAkG;AAClG,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAShC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAmC,EAAe,EAAE;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a,EAAE,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAElG,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE;;QACxB,OAAO,UAAU,CAAC,MAAA,IAAI,CAAC,IAAI,mCAAI,EAAE,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5F,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;IAE7B,OAAO,CACL;QACE,6BAAK,SAAS,EAAE,0BAA0B,IAAG,IAAI,CAAO;QACxD,oBAAC,SAAS,IACR,sBAAsB,EAAE,QAAQ,qBAAqB,IAAI,qBAAqB,EAAE,EAChF,SAAS,EAAE,kBAAkB,CAAC,aAAa,EAC3C,sBAAsB,EAAE,UAAU,EAClC,SAAS,EAAE,wBAAwB,CAAC,KAAK,CAAC,IAEzC,KAAK,CACI,CACR,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,GAAW,EAAE,MAAc,EAAU,EAAE;IACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,sBAAsB,EAAE,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC/F,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,KAAa,EAAU,EAAE;IACpD,OAAO,KAAK,GAAG,CAAC,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { useMemo } from 'react';\nimport { FocusZone, FocusZoneDirection, mergeStyles } from '@fluentui/react';\nimport type { IContextualMenuItem } from '@fluentui/react';\nimport {\n insertTableMenuCellButtonSelectedStyles,\n insertTableMenuCellButtonStyles,\n insertTableMenuFocusZone,\n insertTableMenuTitleStyles\n} from '../../../styles/RichTextEditor.styles';\nimport { ColumnRowReplaceString, createKey } from '../../../utils/RichTextTableUtils';\nimport { useTheme } from '../../../../theming';\n\n// This file uses RoosterJS React package implementation with updates to UI components and styles.\nconst RowColumnInitialValue = 0;\n\ninterface RichTextInsertTablePaneProps {\n item: IContextualMenuItem;\n onClick: (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>, item: IContextualMenuItem) => void;\n maxRowsNumber: number;\n maxColumnsNumber: number;\n}\n\n/**\n * @private\n * Component for the insert table pane\n */\nexport const RichTextInsertTablePane = (props: RichTextInsertTablePaneProps): JSX.Element => {\n const { item, onClick, maxColumnsNumber, maxRowsNumber } = props;\n const [column, setColumn] = React.useState(RowColumnInitialValue);\n const [row, setRow] = React.useState(RowColumnInitialValue);\n const theme = useTheme();\n\n const updateSize = React.useCallback(\n (target?: HTMLElement) => {\n if (target !== undefined && target.dataset.column !== undefined && target.dataset.row !== undefined) {\n const column = parseInt(target.dataset.column);\n const row = parseInt(target.dataset.row);\n\n if (\n column >= RowColumnInitialValue &&\n column < maxColumnsNumber &&\n row >= RowColumnInitialValue &&\n row < maxRowsNumber\n ) {\n setColumn(column);\n setRow(row);\n }\n }\n },\n [maxColumnsNumber, maxRowsNumber]\n );\n\n const onMouseEnter = React.useCallback(\n (e: React.MouseEvent<HTMLButtonElement>) => {\n updateSize(e.target as HTMLElement);\n },\n [updateSize]\n );\n\n const onClickButton = React.useCallback(\n (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick(e, {\n ...item,\n key: createKey(formatRowColumnText(row), formatRowColumnText(column))\n });\n },\n [row, column, onClick, item]\n );\n\n const items = React.useMemo(() => {\n const items: JSX.Element[] = [];\n\n for (let i = 0; i < maxRowsNumber; i++) {\n for (let j = 0; j < maxColumnsNumber; j++) {\n const key = `cell_${i}_${j}`;\n const isSelected = j <= column && i <= row;\n items.push(\n <button\n className={mergeStyles(\n insertTableMenuCellButtonStyles(theme),\n isSelected ? insertTableMenuCellButtonSelectedStyles(theme) : undefined\n )}\n onClick={onClickButton}\n key={key}\n id={key}\n data-column={j}\n data-row={i}\n data-is-focusable={true}\n onMouseEnter={onMouseEnter}\n aria-label={formatText(item.text ?? '', formatRowColumnText(i), formatRowColumnText(j))}\n data-testid={key}\n />\n );\n }\n }\n\n return items;\n }, [maxRowsNumber, maxColumnsNumber, column, row, theme, onClickButton, onMouseEnter, item.text]);\n\n const text = useMemo(() => {\n return formatText(item.text ?? '', formatRowColumnText(row), formatRowColumnText(column));\n }, [column, item.text, row]);\n\n return (\n <div>\n <div className={insertTableMenuTitleStyles}>{text}</div>\n <FocusZone\n defaultTabbableElement={`cell_${RowColumnInitialValue}_${RowColumnInitialValue}`}\n direction={FocusZoneDirection.bidirectional}\n onActiveElementChanged={updateSize}\n className={insertTableMenuFocusZone(theme)}\n >\n {items}\n </FocusZone>\n </div>\n );\n};\n\nconst formatText = (text: string, row: number, column: number): string => {\n return text.replace(`${ColumnRowReplaceString}`, `${column.toString()} x ${row.toString()}`);\n};\n\nconst formatRowColumnText = (value: number): number => {\n return value + 1;\n};\n"]}
1
+ {"version":3,"file":"RichTextInsertTablePane.js","sourceRoot":"","sources":["../../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Buttons/Table/RichTextInsertTablePane.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7E,OAAO,EAAE,uCAAuC,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACvL,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEtF,kGAAkG;AAClG,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAShC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAmC,EA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I,GAAG,OAAO,CAAC,GAAG,EAAE;;QACxB,OAAO,UAAU,CAAC,MAAA,IAAI,CAAC,IAAI,mCAAI,EAAE,EAAE,mBAAmB,CAAC,GAAG,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5F,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7B,OAAO;QACH,6BAAK,SAAS,EAAE,0BAA0B,IAAG,IAAI,CAAO;QACxD,oBAAC,SAAS,IAAC,sBAAsB,EAAE,QAAQ,qBAAqB,IAAI,qBAAqB,EAAE,EAAE,SAAS,EAAE,kBAAkB,CAAC,aAAa,EAAE,sBAAsB,EAAE,UAAU,EAAE,SAAS,EAAE,wBAAwB,CAAC,KAAK,CAAC,IACrN,KAAK,CACI,CACR,CAAC;AACX,CAAC,CAAC;AACF,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,GAAW,EAAE,MAAc,EAAU,EAAE;IACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,sBAAsB,EAAE,EAAE,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAC/F,CAAC,CAAC;AACF,MAAM,mBAAmB,GAAG,CAAC,KAAa,EAAU,EAAE;IACpD,OAAO,KAAK,GAAG,CAAC,CAAC;AACnB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { useMemo } from 'react';\nimport { FocusZone, FocusZoneDirection, mergeStyles } from '@fluentui/react';\nimport type { IContextualMenuItem, Theme } from '@fluentui/react';\nimport { insertTableMenuCellButtonSelectedStyles, insertTableMenuCellButtonStyles, insertTableMenuFocusZone, insertTableMenuTitleStyles } from '../../../styles/RichTextEditor.styles';\nimport { ColumnRowReplaceString, createKey } from '../../../utils/RichTextTableUtils';\n\n// This file uses RoosterJS React package implementation with updates to UI components and styles.\nconst RowColumnInitialValue = 0;\ninterface RichTextInsertTablePaneProps {\n theme: Theme;\n item: IContextualMenuItem;\n onClick: (e: React.MouseEvent<Element> | React.KeyboardEvent<Element>, item: IContextualMenuItem) => void;\n maxRowsNumber: number;\n maxColumnsNumber: number;\n}\n\n/**\n * @private\n * Component for the insert table pane\n */\nexport const RichTextInsertTablePane = (props: RichTextInsertTablePaneProps): JSX.Element => {\n const {\n item,\n onClick,\n theme,\n maxColumnsNumber,\n maxRowsNumber\n } = props;\n const [column, setColumn] = React.useState(RowColumnInitialValue);\n const [row, setRow] = React.useState(RowColumnInitialValue);\n const updateSize = React.useCallback((target?: HTMLElement) => {\n if (target !== undefined && target.dataset.column !== undefined && target.dataset.row !== undefined) {\n const column = parseInt(target.dataset.column);\n const row = parseInt(target.dataset.row);\n if (column >= RowColumnInitialValue && column < maxColumnsNumber && row >= RowColumnInitialValue && row < maxRowsNumber) {\n setColumn(column);\n setRow(row);\n }\n }\n }, [maxColumnsNumber, maxRowsNumber]);\n const onMouseEnter = React.useCallback((e: React.MouseEvent<HTMLButtonElement>) => {\n updateSize((e.target as HTMLElement));\n }, [updateSize]);\n const onClickButton = React.useCallback((e: React.MouseEvent<HTMLButtonElement>) => {\n onClick(e, {\n ...item,\n key: createKey(formatRowColumnText(row), formatRowColumnText(column))\n });\n }, [row, column, onClick, item]);\n const items = React.useMemo(() => {\n const items: JSX.Element[] = [];\n for (let i = 0; i < maxRowsNumber; i++) {\n for (let j = 0; j < maxColumnsNumber; j++) {\n const key = `cell_${i}_${j}`;\n const isSelected = j <= column && i <= row;\n items.push(<button className={mergeStyles(insertTableMenuCellButtonStyles(theme), isSelected ? insertTableMenuCellButtonSelectedStyles(theme) : undefined)} onClick={onClickButton} key={key} id={key} data-column={j} data-row={i} data-is-focusable={true} onMouseEnter={onMouseEnter} aria-label={formatText(item.text ?? '', i, j)} />);\n }\n }\n return items;\n }, [maxRowsNumber, maxColumnsNumber, column, row, theme, onClickButton, onMouseEnter, item.text]);\n const text = useMemo(() => {\n return formatText(item.text ?? '', formatRowColumnText(row), formatRowColumnText(column));\n }, [column, item.text, row]);\n return <div>\n <div className={insertTableMenuTitleStyles}>{text}</div>\n <FocusZone defaultTabbableElement={`cell_${RowColumnInitialValue}_${RowColumnInitialValue}`} direction={FocusZoneDirection.bidirectional} onActiveElementChanged={updateSize} className={insertTableMenuFocusZone(theme)}>\n {items}\n </FocusZone>\n </div>;\n};\nconst formatText = (text: string, row: number, column: number): string => {\n return text.replace(`${ColumnRowReplaceString}`, `${column.toString()} x ${row.toString()}`);\n};\nconst formatRowColumnText = (value: number): number => {\n return value + 1;\n};"]}
@@ -23,17 +23,19 @@ const TableEditOperationMap = {
23
23
  };
24
24
  const tableEditInsertMenuItem = {
25
25
  key: 'menuNameTableInsert',
26
- unlocalizedText: 'Insert',
26
+ unlocalizedText: 'Insert123',
27
27
  subItems: {
28
- menuNameTableInsertAbove: 'Insert above',
28
+ menuNameTableInsertAbove: 'Insert above121312 ',
29
29
  menuNameTableInsertBelow: 'Insert below',
30
- menuNameTableInsertLeft: 'Insert left',
30
+ menuNameTableInsertLeft: 'Insert left123 ',
31
31
  menuNameTableInsertRight: 'Insert right'
32
32
  },
33
33
  onClick,
34
34
  iconProps: {
35
35
  iconName: 'RichTextTableInsertMenuIcon',
36
- styles: { root: tableContextMenuIconStyles }
36
+ styles: {
37
+ root: tableContextMenuIconStyles
38
+ }
37
39
  }
38
40
  };
39
41
  const tableEditDeleteMenuItem = {
@@ -47,7 +49,9 @@ const tableEditDeleteMenuItem = {
47
49
  onClick,
48
50
  iconProps: {
49
51
  iconName: 'RichTextTableDeleteMenuIcon',
50
- styles: { root: tableContextMenuIconStyles }
52
+ styles: {
53
+ root: tableContextMenuIconStyles
54
+ }
51
55
  }
52
56
  };
53
57
  const tableActions = [tableEditInsertMenuItem, tableEditDeleteMenuItem];
@@ -61,6 +65,9 @@ export const createTableEditMenuProvider = (strings) => {
61
65
  const getEditingTable = (editor, node) => {
62
66
  const td = editor.getElementAtCursor('TD,TH', node);
63
67
  const table = td && editor.getElementAtCursor('table', td);
64
- return (table === null || table === void 0 ? void 0 : table.isContentEditable) ? { table, td } : null;
68
+ return (table === null || table === void 0 ? void 0 : table.isContentEditable) ? {
69
+ table,
70
+ td
71
+ } : null;
65
72
  };
66
73
  //# sourceMappingURL=RichTextTableContextMenu.js.map
@@ -1 +1 @@
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,yBAAyB,EAAE,wBAAwB,CAAC,YAAY;IAChE,sBAAsB,E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G,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"]}
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,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;AACnF,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,MAAe,EAAQ,EAAE;IACrD,MAAM,CAAC,KAAK,EAAE,C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;;;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};"]}
@@ -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":["../../../../../../../../../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,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9B,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAwB,CAAC;QAC/D,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACtB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC;YACjC,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAyB,CAAC;YAChE,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YACnB,EAAE,CAAC,WAAW,CAAC,QA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AAM,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"]}
1
+ {"version":3,"file":"insertTableAction.js","sourceRoot":"","sources":["../../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Buttons/Table/insertTableAction.tsx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C,UAAU,CAAC,KAAK,CAAC,CAAC;QACzB,MAAM,qBAAqB,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}"]}
@@ -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":["../../../../../../../../react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,eAAe,EAAE,aAAa,EA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;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"]}
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,CAAC;QAC1B,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,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AAG,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};"]}
@@ -81,26 +81,19 @@ export const RichTextEditor = React.forwardRef((props, ref) => {
81
81
  onChange && onChange(content);
82
82
  });
83
83
  const copyPastePlugin = new CopyPastePlugin();
84
- return [
85
- contentEdit,
86
- placeholderPlugin,
87
- updateContentPlugin,
88
- ribbonPlugin,
89
- contextPlugin,
90
- tableEditMenuProvider,
91
- copyPastePlugin
92
- ];
84
+ return [contentEdit, placeholderPlugin, updateContentPlugin, ribbonPlugin, contextPlugin, tableEditMenuProvider, copyPastePlugin];
93
85
  }, [onChange, placeholderPlugin, ribbonPlugin, strings]);
94
86
  const ribbon = useMemo(() => {
95
87
  const buttons = ribbonButtons(theme);
96
- return (React.createElement(Ribbon, { styles: ribbonStyle, buttons: buttons, plugin: ribbonPlugin, overflowButtonProps: {
88
+ return React.createElement(Ribbon, { styles: ribbonStyle, buttons: buttons, plugin: ribbonPlugin, overflowButtonProps: {
97
89
  styles: ribbonButtonStyle(theme),
98
90
  menuProps: {
99
- items: [], // CommandBar will determine items rendered in overflow
91
+ items: [],
92
+ // CommandBar will determine items rendered in overflow
100
93
  isBeakVisible: false,
101
94
  styles: ribbonOverflowButtonStyle(theme)
102
95
  }
103
- }, strings: ribbonButtonsStrings(strings), "data-testid": 'rich-text-editor-ribbon' }));
96
+ }, strings: ribbonButtonsStrings(strings), "data-testid": 'rich-text-editor-ribbon' });
104
97
  }, [strings, ribbonPlugin, theme]);
105
98
  const defaultFormat = useMemo(() => {
106
99
  // without setting any styles, text input is not handled properly for tables (when insert or paste one in the editor)
@@ -110,7 +103,7 @@ export const RichTextEditor = React.forwardRef((props, ref) => {
110
103
  backgroundColor: 'transparent'
111
104
  };
112
105
  }, []);
113
- return (React.createElement("div", { "data-testid": 'rich-text-editor-wrapper' },
106
+ return React.createElement("div", { "data-testid": 'rich-text-editor-wrapper' },
114
107
  showRichTextEditorFormatting && ribbon,
115
108
  React.createElement("div", { className: richTextEditorWrapperStyle(theme, !showRichTextEditorFormatting) },
116
109
  React.createElement(Rooster, { defaultFormat: defaultFormat, inDarkMode: isDarkThemed(theme), plugins: plugins, className: richTextEditorStyle(props.styles), editorCreator: editorCreator,
@@ -119,7 +112,7 @@ export const RichTextEditor = React.forwardRef((props, ref) => {
119
112
  // doNotAdjustEditorColor is used to fix the default background color for Rooster component
120
113
  doNotAdjustEditorColor: true, "data-testid": 'rooster-rich-text-editor',
121
114
  // if we don't use 'allowKeyboardEventPropagation' only the enter key is caught
122
- onKeyDown: props.onKeyDown, focusOnInit: autoFocus === 'sendBoxTextField' }))));
115
+ onKeyDown: props.onKeyDown, focusOnInit: autoFocus === 'sendBoxTextField' })));
123
116
  });
124
117
  const focusAndUpdateContent = (editor, content) => {
125
118
  // setting focus before setting content, works for Chrome and Edge but not Safari
@@ -127,7 +120,9 @@ const focusAndUpdateContent = (editor, content) => {
127
120
  // this is a recommended way (by RoosterJS team) to set focus at the end of the text
128
121
  // RoosterJS v9 has this issue fixed and this code can be removed
129
122
  // CompatibleContentPosition.DomEnd shouldn't be used here as it set focus after the editor div
130
- editor.insertContent('<span id="focus-position-span"></span>', { position: CompatibleContentPosition.End });
123
+ editor.insertContent('<span id="focus-position-span"></span>', {
124
+ position: CompatibleContentPosition.End
125
+ });
131
126
  const elements = editor.queryElements('#focus-position-span');
132
127
  if (elements.length > 0) {
133
128
  const placeholder = editor.queryElements('#focus-position-span')[0];
@@ -1 +1 @@
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,yBAAy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AAG,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 {\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"]}
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,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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};"]}
@@ -19,26 +19,19 @@ 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
- }, [
35
- actionComponents,
36
- editorComponentRef,
37
- onRenderRichTextEditorIcon,
38
- showRichTextEditorFormatting,
39
- strings.richTextFormatButtonTooltip,
40
- theme
41
- ]);
33
+ actionComponents));
34
+ }, [actionComponents, editorComponentRef, onRenderRichTextEditorIcon, showRichTextEditorFormatting, strings.richTextFormatButtonTooltip, theme]);
42
35
  const richTextEditorStyle = useMemo(() => {
43
36
  return richTextEditorStyleProps(showRichTextEditorFormatting);
44
37
  }, [richTextEditorStyleProps, showRichTextEditorFormatting]);
@@ -55,24 +48,17 @@ export const RichTextInputBoxComponent = (props) => {
55
48
  }
56
49
  }, [onEnterKeyDown, showRichTextEditorFormatting, onTyping]);
57
50
  const useHorizontalLayout = useMemo(() => {
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({
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({
67
54
  theme: theme,
68
55
  disabled: !!disabled
69
56
  }) },
70
57
  React.createElement(Stack, { grow: true, horizontal: useHorizontalLayout, horizontalAlign: useHorizontalLayout ? 'end' : 'space-between', className: inputBoxContentStackStyle, wrap: useHorizontalLayout },
71
58
  React.createElement(Stack, { grow: true, className: inputBoxRichTextStackStyle },
72
59
  React.createElement(Stack.Item, { className: inputBoxRichTextStackItemStyle },
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)));
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));
77
63
  };
78
64
  //# sourceMappingURL=RichTextInputBoxComponent.js.map