@azure/communication-react 1.18.0-beta.1 → 1.18.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 (643) hide show
  1. package/dist/communication-react.d.ts +508 -1758
  2. package/dist/dist-cjs/communication-react/index.js +34347 -159
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/common.js +10 -2
  5. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +4 -5
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +6 -11
  10. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  11. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -12
  12. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +1 -13
  13. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +0 -5
  15. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +0 -8
  17. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +0 -14
  18. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  19. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +1 -15
  20. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  21. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +1 -27
  22. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +3 -3
  24. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +11 -11
  25. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  26. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +2 -2
  27. package/dist/dist-esm/calling-component-bindings/src/index.js +2 -2
  28. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  29. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.d.ts +23 -0
  30. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +201 -0
  31. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -0
  32. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.d.ts +0 -1
  33. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +2 -8
  34. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  35. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +0 -7
  36. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +0 -12
  37. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  38. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +0 -3
  39. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  40. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +0 -3
  41. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  42. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +1 -5
  43. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  44. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -15
  45. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  46. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +0 -5
  47. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  48. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +23 -58
  49. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  50. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -12
  51. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +16 -69
  52. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  53. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -68
  54. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  55. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -3
  56. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +16 -28
  57. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  58. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +0 -17
  59. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +3 -61
  60. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -1
  61. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +0 -5
  62. package/dist/dist-esm/calling-stateful-client/src/Converter.js +6 -17
  63. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  64. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.d.ts +0 -1
  65. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +0 -11
  66. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  67. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +9 -19
  68. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +2 -20
  69. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  70. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +3 -4
  71. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +2 -0
  72. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +1 -1
  73. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -18
  74. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  75. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -2
  76. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +2 -3
  78. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  79. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +1 -1
  80. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  81. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +2 -3
  82. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +2 -12
  83. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  84. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +1 -2
  85. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js +0 -5
  86. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  87. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +36 -37
  88. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  89. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
  90. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  91. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +1 -1
  92. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  93. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -3
  94. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  95. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js +3 -0
  96. package/dist/dist-esm/chat-stateful-client/src/ResourceDownloadQueue.js.map +1 -1
  97. package/dist/dist-esm/communication-react/src/index.d.ts +4 -28
  98. package/dist/dist-esm/communication-react/src/index.js +2 -14
  99. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  100. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js +1 -1
  101. package/dist/dist-esm/react-components/src/components/Announcer/AnnouncerMessage.js.map +1 -1
  102. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js +5 -4
  103. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js.map +1 -1
  104. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.d.ts +1 -0
  105. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js +3 -3
  106. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCardGroup.js.map +1 -1
  107. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.d.ts +0 -2
  108. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js +1 -14
  109. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -1
  110. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.d.ts +4 -0
  111. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js +16 -19
  112. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentUploadCards.js.map +1 -1
  113. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +1 -7
  114. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +2 -10
  115. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  116. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -11
  117. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +2 -35
  118. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  119. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.d.ts +1 -8
  120. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +5 -13
  121. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  122. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.d.ts +1 -2
  123. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +7 -15
  124. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
  125. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.d.ts +1 -4
  126. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +6 -40
  127. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  128. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +1 -16
  129. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +0 -22
  130. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  131. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +2 -21
  132. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +6 -21
  133. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  134. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.d.ts +1 -8
  135. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +6 -14
  136. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  137. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +6 -19
  138. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
  139. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +2 -2
  140. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  141. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +4 -0
  142. package/dist/dist-esm/react-components/src/components/ErrorBar.js +3 -3
  143. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  144. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +3 -7
  145. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  146. package/dist/dist-esm/react-components/src/components/InputBoxButton.d.ts +1 -0
  147. package/dist/dist-esm/react-components/src/components/InputBoxButton.js +2 -2
  148. package/dist/dist-esm/react-components/src/components/InputBoxButton.js.map +1 -1
  149. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
  150. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -18
  151. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  152. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.d.ts +80 -0
  153. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js +115 -0
  154. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js.map +1 -0
  155. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js +1 -1
  156. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js.map +1 -1
  157. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +5 -50
  158. package/dist/dist-esm/react-components/src/components/MessageThread.js +3 -30
  159. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  160. package/dist/dist-esm/react-components/src/components/{NotificationBar.d.ts → Notification.d.ts} +13 -13
  161. package/dist/dist-esm/react-components/src/components/{NotificationBar.js → Notification.js} +7 -7
  162. package/dist/dist-esm/react-components/src/components/Notification.js.map +1 -0
  163. package/dist/dist-esm/react-components/src/components/{Notifications.d.ts → NotificationStack.d.ts} +109 -73
  164. package/dist/dist-esm/react-components/src/components/NotificationStack.js +57 -0
  165. package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -0
  166. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -13
  167. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +0 -3
  168. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  169. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +0 -15
  170. package/dist/dist-esm/react-components/src/components/ParticipantList.js +4 -21
  171. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -3
  173. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +5 -1
  175. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  176. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +5 -1
  177. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  178. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -47
  179. package/dist/dist-esm/react-components/src/components/SendBox.js +8 -90
  180. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +1 -1
  182. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  183. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -2
  184. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  185. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -2
  186. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  187. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -24
  188. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  189. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -2
  190. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  191. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +3 -15
  192. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  193. package/dist/dist-esm/react-components/src/components/VideoGallery.js +1 -2
  194. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  195. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -8
  196. package/dist/dist-esm/react-components/src/components/VideoTile.js +1 -7
  197. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  198. package/dist/dist-esm/react-components/src/components/index.d.ts +4 -20
  199. package/dist/dist-esm/react-components/src/components/index.js +8 -15
  200. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +1 -1
  202. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +10 -0
  203. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  204. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.d.ts +5 -1
  205. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js +8 -0
  206. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js.map +1 -1
  207. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +4 -0
  208. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +4 -0
  209. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  210. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +5 -3
  211. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +40 -20
  212. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  213. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.d.ts → Notification.styles.d.ts} +1 -1
  214. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.js → Notification.styles.js} +1 -1
  215. package/dist/dist-esm/react-components/src/components/styles/Notification.styles.js.map +1 -0
  216. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +4 -1
  217. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +11 -3
  218. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  219. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.d.ts +42 -0
  220. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js +93 -0
  221. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js.map +1 -0
  222. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +1 -37
  223. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +3 -34
  224. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +2 -4
  226. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +2 -14
  227. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +1 -11
  229. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +2 -18
  230. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -4
  232. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  233. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.d.ts +2 -2
  234. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js +6 -2
  235. package/dist/dist-esm/react-components/src/components/utils/formatPhoneNumber.js.map +1 -1
  236. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
  237. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/components/utils/responsive.js +12 -2
  239. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  240. package/dist/dist-esm/react-components/src/components/utils.d.ts +32 -1
  241. package/dist/dist-esm/react-components/src/components/utils.js +101 -1
  242. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -4
  244. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -5
  245. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  246. package/dist/dist-esm/react-components/src/index.d.ts +0 -1
  247. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  248. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +7 -58
  249. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  250. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +102 -64
  251. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +100 -62
  252. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +100 -62
  253. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +100 -62
  254. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +98 -60
  255. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +100 -62
  256. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +100 -62
  257. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +103 -65
  258. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +100 -62
  259. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +100 -62
  260. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +102 -64
  261. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +107 -69
  262. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +100 -62
  263. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +106 -68
  264. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +105 -67
  265. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +103 -65
  266. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +101 -63
  267. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +100 -62
  268. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +101 -63
  269. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +102 -64
  270. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +101 -63
  271. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.d.ts +1 -0
  272. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js +4 -4
  273. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js.map +1 -1
  274. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -28
  275. package/dist/dist-esm/react-components/src/theming/icons.js +7 -136
  276. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/theming/themes.d.ts +0 -6
  278. package/dist/dist-esm/react-components/src/theming/themes.js +11 -20
  279. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  280. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -1
  281. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  282. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +0 -9
  283. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  284. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -20
  285. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  286. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -8
  287. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  288. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -6
  289. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  290. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  291. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -72
  292. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +86 -37
  293. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  294. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +4 -108
  295. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  296. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +12 -64
  297. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +15 -150
  298. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  299. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +3 -51
  300. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  301. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  302. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.d.ts +2 -0
  303. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js +20 -0
  304. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js.map +1 -1
  305. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -2
  306. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  307. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -2
  308. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  309. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +6 -2
  310. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +83 -32
  311. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  312. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -1
  313. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +2 -38
  314. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  315. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -2
  316. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -27
  317. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -20
  319. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  320. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -2
  321. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -27
  322. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  323. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  324. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -19
  325. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  326. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +1 -0
  327. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +65 -1
  328. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  329. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.d.ts +13 -0
  330. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js +49 -0
  331. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js.map +1 -0
  332. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +2 -1
  333. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  334. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -0
  335. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +1 -1
  336. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  337. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +2 -6
  338. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  339. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -30
  340. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  341. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -3
  342. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  343. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +5 -2
  344. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +12 -4
  345. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  346. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -7
  347. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +7 -80
  348. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  349. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +5 -2
  350. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +6 -3
  351. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  352. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +6 -3
  353. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  354. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -8
  355. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -11
  356. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  357. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  358. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +0 -4
  359. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  360. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
  361. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +11 -0
  362. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  363. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  364. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  365. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +6 -2
  366. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  367. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +8 -7
  368. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +20 -20
  369. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  370. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +49 -14
  371. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +104 -98
  372. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  373. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +1 -61
  374. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -27
  375. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  376. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -32
  377. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  378. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -15
  379. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +5 -49
  380. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  381. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -38
  382. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  383. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +1 -9
  384. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -32
  385. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  386. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +4 -5
  387. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +2 -2
  388. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  389. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -13
  390. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +0 -4
  391. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  392. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -20
  393. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +1 -6
  394. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  395. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -2
  396. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +10 -131
  397. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  398. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  399. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  400. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -3
  401. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +0 -27
  402. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  403. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -3
  404. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  405. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +2 -13
  406. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  407. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -2
  408. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  409. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -5
  410. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +0 -15
  411. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  412. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -5
  413. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +2 -3
  414. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +2 -1
  416. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +25 -19
  417. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  418. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +1 -1
  419. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  420. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -0
  421. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +29 -26
  422. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  423. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +1 -0
  424. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +26 -23
  425. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  426. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +1 -1
  427. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  428. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.d.ts +10 -0
  429. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js +63 -0
  430. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js.map +1 -0
  431. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +9 -7
  432. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  433. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +2 -14
  434. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  435. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.d.ts +1 -4
  436. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js +0 -1
  437. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js.map +1 -1
  438. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +10 -39
  439. package/dist/dist-esm/react-composites/src/composites/common/icons.js +10 -12
  440. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  441. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.d.ts +1 -1
  442. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +2 -2
  443. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  444. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.d.ts +50 -0
  445. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.js +110 -0
  446. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.js.map +1 -0
  447. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +10 -17
  448. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  449. package/dist/dist-esm/react-composites/src/composites/common/utils.js +6 -6
  450. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  451. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +10 -5
  452. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +6 -1
  453. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +6 -1
  454. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +6 -1
  455. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -1
  456. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +6 -1
  457. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +10 -5
  458. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +10 -5
  459. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +10 -5
  460. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +10 -5
  461. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +6 -1
  462. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +10 -5
  463. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +6 -1
  464. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +6 -1
  465. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +6 -1
  466. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +10 -5
  467. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +6 -1
  468. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +10 -5
  469. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +6 -1
  470. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +10 -5
  471. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +10 -5
  472. package/dist/tsdoc-metadata.json +1 -1
  473. package/package.json +15 -16
  474. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BWStTUhO.js +0 -136
  475. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BWStTUhO.js.map +0 -1
  476. package/dist/dist-cjs/communication-react/index-Di3ptk8o.js +0 -39650
  477. package/dist/dist-cjs/communication-react/index-Di3ptk8o.js.map +0 -1
  478. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.d.ts +0 -17
  479. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js +0 -36
  480. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +0 -1
  481. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
  482. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
  483. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
  484. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +0 -17
  485. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +0 -125
  486. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +0 -1
  487. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  488. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -43
  489. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  490. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  491. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -75
  492. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  493. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  494. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -68
  495. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  496. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  497. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -39
  498. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  499. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  500. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  501. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  502. package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
  503. package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -123
  504. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
  505. package/dist/dist-esm/react-components/src/components/NotificationBar.js.map +0 -1
  506. package/dist/dist-esm/react-components/src/components/Notifications.js +0 -46
  507. package/dist/dist-esm/react-components/src/components/Notifications.js.map +0 -1
  508. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.d.ts +0 -9
  509. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js +0 -29
  510. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js.map +0 -1
  511. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.d.ts +0 -22
  512. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +0 -89
  513. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +0 -1
  514. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.d.ts +0 -12
  515. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js +0 -23
  516. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js.map +0 -1
  517. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.d.ts +0 -15
  518. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js +0 -39
  519. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js.map +0 -1
  520. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.d.ts +0 -24
  521. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js +0 -64
  522. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js.map +0 -1
  523. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.d.ts +0 -20
  524. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js +0 -46
  525. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js.map +0 -1
  526. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.d.ts +0 -29
  527. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js +0 -73
  528. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js.map +0 -1
  529. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +0 -54
  530. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +0 -226
  531. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +0 -1
  532. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +0 -33
  533. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +0 -82
  534. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +0 -1
  535. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +0 -149
  536. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +0 -182
  537. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +0 -1
  538. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.d.ts +0 -16
  539. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +0 -73
  540. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +0 -1
  541. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.d.ts +0 -19
  542. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js +0 -191
  543. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js.map +0 -1
  544. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.d.ts +0 -7
  545. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js +0 -51
  546. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js.map +0 -1
  547. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.d.ts +0 -15
  548. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js +0 -64
  549. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js.map +0 -1
  550. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.d.ts +0 -6
  551. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js +0 -13
  552. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js.map +0 -1
  553. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -34
  554. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +0 -39
  555. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +0 -1
  556. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -14
  557. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +0 -18
  558. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +0 -1
  559. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -24
  560. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -550
  561. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
  562. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
  563. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -816
  564. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
  565. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  566. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  567. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  568. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -26
  569. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -69
  570. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
  571. package/dist/dist-esm/react-components/src/components/styles/NotificationBar.styles.js.map +0 -1
  572. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +0 -82
  573. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +0 -305
  574. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +0 -1
  575. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.d.ts +0 -21
  576. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +0 -38
  577. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +0 -1
  578. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  579. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  580. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  581. package/dist/dist-esm/react-components/src/components/styles/Stack.style.d.ts +0 -5
  582. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js +0 -32
  583. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +0 -1
  584. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  585. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  586. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  587. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.d.ts +0 -37
  588. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js +0 -60
  589. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js.map +0 -1
  590. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.d.ts +0 -33
  591. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js +0 -116
  592. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +0 -1
  593. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  594. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  595. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  596. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  597. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  598. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  599. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  600. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -218
  601. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  602. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  603. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  604. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  605. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -24
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -28
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  617. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.d.ts +0 -15
  618. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +0 -23
  619. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +0 -1
  620. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  621. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  622. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  623. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +0 -80
  624. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +0 -39
  625. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +0 -1
  626. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.d.ts +0 -38
  627. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +0 -76
  628. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +0 -1
  629. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +0 -5
  630. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js +0 -5
  631. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +0 -1
  632. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -25
  633. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -113
  634. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  635. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  636. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  637. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  638. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  639. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -74
  640. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  641. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  642. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  643. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextToolbarPlugin.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AACH,MAAM,OAAO,qBAAqB;IAAlC;QACU,gBAAW,GAAmC,IAAI,CAAC;QACnD,WAAM,GAAmB,IAAI,CAAC;QACtC,oBAAe,GAA4D,IAAI,CAAC;IAmDlF,CAAC;IAlDC,OAAO;QACL,OAAO,uBAAuB,CAAC;IACjC,CAAC;IACD,UAAU,CAAC,MAAe;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,aAAa,CAAC,KAAkB;QAC9B,QAAQ,KAAK,CAAC,SAAS,EAAE,CAAC;YACxB,4GAA4G;YAC5G,KAAK,eAAe,CAAC,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AAC;IACH,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getFormatState } from 'roosterjs-content-model-api';\nimport { getObjectKeys } from 'roosterjs-content-model-dom';\nimport type { ContentModelFormatState, EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';\nimport { PluginEventType } from '../../utils/RichTextEditorUtils';\n\n/**\n * KeyboardInputPlugin is a plugin for handling keyboard events in the editor.\n */\nexport class RichTextToolbarPlugin implements EditorPlugin {\n private formatState: ContentModelFormatState | null = null;\n private editor: IEditor | null = null;\n onFormatChanged: ((formatState: ContentModelFormatState) => void) | null = null;\n getName(): string {\n return 'RichTextToolbarPlugin';\n }\n initialize(editor: IEditor): void {\n this.editor = editor;\n }\n dispose(): void {\n this.editor = null;\n }\n onPluginEvent(event: PluginEvent): void {\n switch (event.eventType) {\n // KeyDown and MouseUp are used to update the state when the editor is already shown and focused by the user\n case PluginEventType.EditorReady:\n case PluginEventType.ContentChanged:\n case PluginEventType.ZoomChanged:\n case PluginEventType.KeyDown:\n case PluginEventType.MouseUp:\n this.updateFormat();\n break;\n }\n }\n\n /**\n * Handles the click event of a toolbar button.\n * @param buttonAction - The action to be performed when the button is clicked.\n */\n onToolbarButtonClick(buttonAction: (editor: IEditor) => void): void {\n if (this.editor && !this.editor.isDisposed()) {\n buttonAction(this.editor);\n this.updateFormat();\n }\n }\n\n /**\n * Updates the format state of the rich text editor and triggers the `onFormatChanged` callback\n * if there is any difference between the new and the current format states.\n */\n private updateFormat(): void {\n if (this.editor && this.onFormatChanged) {\n const newFormatState = getFormatState(this.editor);\n // use keys from the format that has more keys or the new format state if there is no current format state\n const keys = !this.formatState || getObjectKeys(newFormatState).length > getObjectKeys(this.formatState).length ? getObjectKeys(newFormatState) : getObjectKeys(this.formatState);\n // check if there is any difference between the new format state and the current format state\n // otherwise the states will produce new objects every time even when the format state is the same\n if (!this.formatState || keys.some(key => newFormatState[key] !== this.formatState?.[key])) {\n this.formatState = newFormatState;\n this.onFormatChanged(newFormatState);\n }\n }\n }\n}"]}
@@ -1,20 +0,0 @@
1
- import type { ContextMenuProvider, IEditor } from 'roosterjs-content-model-types';
2
- import { RichTextStrings } from '../RichTextSendBox';
3
- import { IContextualMenuItem } from '@fluentui/react';
4
- /**
5
- * Provides a context menu for editing tables in the rich text editor.
6
- */
7
- export declare class TableEditContextMenuProvider implements ContextMenuProvider<IContextualMenuItem> {
8
- private editor;
9
- strings: Partial<RichTextStrings>;
10
- private items;
11
- updateStrings(strings: Partial<RichTextStrings>): void;
12
- getName(): string;
13
- initialize(editor: IEditor): void;
14
- /**
15
- * Dispose this plugin
16
- */
17
- dispose(): void;
18
- getContextMenuItems(node: Node): IContextualMenuItem[] | null;
19
- }
20
- //# sourceMappingURL=TableEditContextMenuProvider.d.ts.map
@@ -1,46 +0,0 @@
1
- import { getTableEditContextMenuItems } from '../../utils/RichTextTableUtils';
2
- /**
3
- * Provides a context menu for editing tables in the rich text editor.
4
- */
5
- export class TableEditContextMenuProvider {
6
- constructor() {
7
- this.editor = null;
8
- this.strings = {};
9
- this.items = null;
10
- }
11
- updateStrings(strings) {
12
- this.strings = strings;
13
- if (this.editor) {
14
- this.items = getTableEditContextMenuItems(this.editor, this.strings);
15
- }
16
- }
17
- getName() {
18
- return 'TableEditContextMenuProvider';
19
- }
20
- initialize(editor) {
21
- this.editor = editor;
22
- this.items = getTableEditContextMenuItems(editor, this.strings);
23
- }
24
- /**
25
- * Dispose this plugin
26
- */
27
- dispose() {
28
- this.editor = null;
29
- }
30
- getContextMenuItems(node) {
31
- // return this.items;
32
- if (this.editor && isTableEditable(this.editor, node)) {
33
- return this.items;
34
- }
35
- else {
36
- return null;
37
- }
38
- }
39
- }
40
- const isTableEditable = (editor, node) => {
41
- const domHelper = editor.getDOMHelper();
42
- const td = domHelper.findClosestElementAncestor(node, 'TD,TH');
43
- const table = td && domHelper.findClosestElementAncestor(td, 'table');
44
- return (table === null || table === void 0 ? void 0 : table.isContentEditable) === true;
45
- };
46
- //# sourceMappingURL=TableEditContextMenuProvider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableEditContextMenuProvider.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E;;GAEG;AACH,MAAM,OAAO,4BAA4B;IAAzC;QACU,WAAM,GAAmB,IAAI,CAAC;QACtC,YAAO,GAA6B,EAAE,CAAC;QAC/B,UAAK,GAAiC,IAAI,CAAC;IA6BrD,CAAC;IA5BC,aAAa,CAAC,OAAiC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,KAAK,GAAG,4BAA4B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IACD,OAAO;QACL,OAAO,8BAA8B,CAAC;IACxC,CAAC;IACD,UAAU,CAAC,MAAe;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,4BAA4B,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;IACD,mBAAmB,CAAC,IAAU;QAC5B,qBAAqB;QACrB,IAAI,IAAI,CAAC,MAAM,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;YACtD,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF;AACD,MAAM,eAAe,GAAG,CAAC,MAAe,EAAE,IAAU,EAAW,EAAE;IAC/D,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;IACxC,MAAM,EAAE,GAAG,SAAS,CAAC,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/D,MAAM,KAAK,GAAG,EAAE,IAAI,SAAS,CAAC,0BAA0B,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,OAAO,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,iBAAiB,MAAK,IAAI,CAAC;AAC3C,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { ContextMenuProvider, IEditor } from 'roosterjs-content-model-types';\nimport { RichTextStrings } from '../RichTextSendBox';\nimport { IContextualMenuItem } from '@fluentui/react';\nimport { getTableEditContextMenuItems } from '../../utils/RichTextTableUtils';\n\n/**\n * Provides a context menu for editing tables in the rich text editor.\n */\nexport class TableEditContextMenuProvider implements ContextMenuProvider<IContextualMenuItem> {\n private editor: IEditor | null = null;\n strings: Partial<RichTextStrings> = {};\n private items: IContextualMenuItem[] | null = null;\n updateStrings(strings: Partial<RichTextStrings>): void {\n this.strings = strings;\n if (this.editor) {\n this.items = getTableEditContextMenuItems(this.editor, this.strings);\n }\n }\n getName(): string {\n return 'TableEditContextMenuProvider';\n }\n initialize(editor: IEditor): void {\n this.editor = editor;\n this.items = getTableEditContextMenuItems(editor, this.strings);\n }\n\n /**\n * Dispose this plugin\n */\n dispose(): void {\n this.editor = null;\n }\n getContextMenuItems(node: Node): IContextualMenuItem[] | null {\n // return this.items;\n if (this.editor && isTableEditable(this.editor, node)) {\n return this.items;\n } else {\n return null;\n }\n }\n}\nconst isTableEditable = (editor: IEditor, node: Node): boolean => {\n const domHelper = editor.getDOMHelper();\n const td = domHelper.findClosestElementAncestor(node, 'TD,TH');\n const table = td && domHelper.findClosestElementAncestor(td, 'table');\n return table?.isContentEditable === true;\n};"]}
@@ -1,29 +0,0 @@
1
- import type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';
2
- /**
3
- * An update mode to indicate when the content update happens
4
- */
5
- export declare enum UpdateEvent {
6
- Init = "Init",
7
- Dispose = "Dispose",
8
- ContentChanged = "ContentChanged",
9
- UserInput = "UserInput",
10
- Blur = "Blur"
11
- }
12
- /**
13
- * A plugin to handle content update
14
- */
15
- export declare class UpdateContentPlugin implements EditorPlugin {
16
- private editor;
17
- private disposer;
18
- onUpdate: ((event: UpdateEvent) => void) | null;
19
- getName(): string;
20
- /**
21
- * Initialize this plugin
22
- * @param editor The editor instance
23
- */
24
- initialize(editor: IEditor): void;
25
- dispose(): void;
26
- onPluginEvent(event: PluginEvent): void;
27
- private onBlur;
28
- }
29
- //# sourceMappingURL=UpdateContentPlugin.d.ts.map
@@ -1,73 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { PluginEventType } from '../../utils/RichTextEditorUtils';
4
- /**
5
- * An update mode to indicate when the content update happens
6
- */
7
- export var UpdateEvent;
8
- (function (UpdateEvent) {
9
- UpdateEvent["Init"] = "Init";
10
- UpdateEvent["Dispose"] = "Dispose";
11
- UpdateEvent["ContentChanged"] = "ContentChanged";
12
- UpdateEvent["UserInput"] = "UserInput";
13
- UpdateEvent["Blur"] = "Blur";
14
- })(UpdateEvent || (UpdateEvent = {}));
15
- /**
16
- * A plugin to handle content update
17
- */
18
- export class UpdateContentPlugin {
19
- constructor() {
20
- this.editor = null;
21
- this.disposer = null;
22
- // don't set callback in constructor to be able to update callback without plugin recreation
23
- this.onUpdate = null;
24
- this.onBlur = () => {
25
- if (this.onUpdate === null) {
26
- return;
27
- }
28
- this.onUpdate(UpdateEvent.Blur);
29
- };
30
- }
31
- getName() {
32
- return 'UpdateContentPlugin';
33
- }
34
- /**
35
- * Initialize this plugin
36
- * @param editor The editor instance
37
- */
38
- initialize(editor) {
39
- this.editor = editor;
40
- this.disposer = this.editor.attachDomEvent({
41
- blur: {
42
- beforeDispatch: this.onBlur
43
- }
44
- });
45
- }
46
- dispose() {
47
- this.editor = null;
48
- if (this.disposer) {
49
- this.disposer();
50
- this.disposer = null;
51
- }
52
- }
53
- onPluginEvent(event) {
54
- if (this.onUpdate === null) {
55
- return;
56
- }
57
- switch (event.eventType) {
58
- case PluginEventType.EditorReady:
59
- this.onUpdate(UpdateEvent.Init);
60
- break;
61
- case PluginEventType.BeforeDispose:
62
- this.onUpdate(UpdateEvent.Dispose);
63
- break;
64
- case PluginEventType.ContentChanged:
65
- this.onUpdate(UpdateEvent.ContentChanged);
66
- break;
67
- case PluginEventType.Input:
68
- this.onUpdate(UpdateEvent.UserInput);
69
- break;
70
- }
71
- }
72
- }
73
- //# sourceMappingURL=UpdateContentPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UpdateContentPlugin.js","sourceRoot":"","sources":["../../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AACH,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,gDAAiC,CAAA;IACjC,sCAAuB,CAAA;IACvB,4BAAa,CAAA;AACf,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAED;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QACU,WAAM,GAAmB,IAAI,CAAC;QAC9B,aAAQ,GAAwB,IAAI,CAAC;QAC7C,4FAA4F;QAC5F,aAAQ,GAA0C,IAAI,CAAC;QA2C/C,WAAM,GAAG,GAAS,EAAE;YAC1B,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;gBAC3B,OAAO;YACT,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAhDC,OAAO;QACL,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,MAAe;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;YACzC,IAAI,EAAE;gBACJ,cAAc,EAAE,IAAI,CAAC,MAAM;aAC5B;SACF,CAAC,CAAC;IACL,CAAC;IACD,OAAO;QACL,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,EAAE,CAAC;YAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACvB,CAAC;IACH,CAAC;IACD,aAAa,CAAC,KAAkB;QAC9B,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;YAC3B,OAAO;QACT,CAAC;QACD,QAAQ,KAAK,CAAC,SAAS,EAAE,CAAC;YACxB,KAAK,eAAe,CAAC,WAAW;gBAC9B,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;gBAChC,MAAM;YACR,KAAK,eAAe,CAAC,aAAa;gBAChC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACnC,MAAM;YACR,KAAK,eAAe,CAAC,cAAc;gBACjC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;gBAC1C,MAAM;YACR,KAAK,eAAe,CAAC,KAAK;gBACxB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;gBACrC,MAAM;QACV,CAAC;IACH,CAAC;CAOF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { EditorPlugin, IEditor, PluginEvent } from 'roosterjs-content-model-types';\nimport { PluginEventType } from '../../utils/RichTextEditorUtils';\n\n/**\n * An update mode to indicate when the content update happens\n */\nexport enum UpdateEvent {\n Init = 'Init',\n Dispose = 'Dispose',\n ContentChanged = 'ContentChanged',\n UserInput = 'UserInput',\n Blur = 'Blur',\n}\n\n/**\n * A plugin to handle content update\n */\nexport class UpdateContentPlugin implements EditorPlugin {\n private editor: IEditor | null = null;\n private disposer: (() => void) | null = null;\n // don't set callback in constructor to be able to update callback without plugin recreation\n onUpdate: ((event: UpdateEvent) => void) | null = null;\n getName(): string {\n return 'UpdateContentPlugin';\n }\n\n /**\n * Initialize this plugin\n * @param editor The editor instance\n */\n initialize(editor: IEditor): void {\n this.editor = editor;\n this.disposer = this.editor.attachDomEvent({\n blur: {\n beforeDispatch: this.onBlur\n }\n });\n }\n dispose(): void {\n this.editor = null;\n if (this.disposer) {\n this.disposer();\n this.disposer = null;\n }\n }\n onPluginEvent(event: PluginEvent): void {\n if (this.onUpdate === null) {\n return;\n }\n switch (event.eventType) {\n case PluginEventType.EditorReady:\n this.onUpdate(UpdateEvent.Init);\n break;\n case PluginEventType.BeforeDispose:\n this.onUpdate(UpdateEvent.Dispose);\n break;\n case PluginEventType.ContentChanged:\n this.onUpdate(UpdateEvent.ContentChanged);\n break;\n case PluginEventType.Input:\n this.onUpdate(UpdateEvent.UserInput);\n break;\n }\n }\n private onBlur = (): void => {\n if (this.onUpdate === null) {\n return;\n }\n this.onUpdate(UpdateEvent.Blur);\n };\n}"]}
@@ -1,54 +0,0 @@
1
- import React from 'react';
2
- import { RichTextStrings } from './RichTextSendBox';
3
- import type { ContentModelDocument } from 'roosterjs-content-model-types';
4
- /**
5
- * Style props for {@link RichTextEditor}.
6
- *
7
- * @private
8
- */
9
- export interface RichTextEditorStyleProps {
10
- minHeight: string;
11
- maxHeight: string;
12
- }
13
- /**
14
- * Props for {@link RichTextEditor}.
15
- *
16
- * @private
17
- */
18
- export interface RichTextEditorProps {
19
- initialContent?: string;
20
- onChange: (newValue?: string) => void;
21
- onKeyDown?: (ev: KeyboardEvent) => void;
22
- onContentModelUpdate?: (contentModel: ContentModelDocument | undefined) => void;
23
- contentModel?: ContentModelDocument | undefined;
24
- placeholderText?: string;
25
- strings: Partial<RichTextStrings>;
26
- showRichTextEditorFormatting: boolean;
27
- styles: RichTextEditorStyleProps;
28
- autoFocus?: 'sendBoxTextField';
29
- }
30
- /**
31
- * Represents a reference to the RichTextEditor component.
32
- */
33
- export interface RichTextEditorComponentRef {
34
- /**
35
- * Sets focus on the RichTextEditor component.
36
- */
37
- focus: () => void;
38
- /**
39
- * Sets the content of the RichTextEditor component to an empty string.
40
- */
41
- setEmptyContent: () => void;
42
- /**
43
- * Retrieves the plain text content of the RichTextEditor component.
44
- * @returns The plain text content of the RichTextEditor component, or undefined if the editor isn't available.
45
- */
46
- getPlainContent: () => string | undefined;
47
- }
48
- /**
49
- * A component to wrap RoosterJS Rich Text Editor.
50
- *
51
- * @beta
52
- */
53
- export declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<RichTextEditorComponentRef>>;
54
- //# sourceMappingURL=RichTextEditor.d.ts.map
@@ -1,226 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
4
- import { richTextEditorWrapperStyle, richTextEditorStyle } from '../styles/RichTextEditor.styles';
5
- import { darkTheme, lightTheme, useTheme } from '../../theming';
6
- import { isDarkThemed } from '../../theming/themeUtils';
7
- import CopyPastePlugin from './Plugins/CopyPastePlugin';
8
- import { createModelFromHtml, Editor, exportContent } from 'roosterjs-content-model-core';
9
- import { createParagraph, createSelectionMarker, setSelection } from 'roosterjs-content-model-dom';
10
- import { KeyboardInputPlugin } from './Plugins/KeyboardInputPlugin';
11
- import { AutoFormatPlugin, EditPlugin, PastePlugin, ShortcutPlugin } from 'roosterjs-content-model-plugins';
12
- import { UpdateContentPlugin, UpdateEvent } from './Plugins/UpdateContentPlugin';
13
- import { RichTextToolbar } from './Toolbar/RichTextToolbar';
14
- import { RichTextToolbarPlugin } from './Plugins/RichTextToolbarPlugin';
15
- import { ContextMenuPlugin } from './Plugins/ContextMenuPlugin';
16
- import { TableEditContextMenuProvider } from './Plugins/TableEditContextMenuProvider';
17
- import { borderApplier, dataSetApplier } from '../utils/RichTextEditorUtils';
18
- import { ContextualMenu } from '@fluentui/react';
19
- import PlaceholderPlugin from './Plugins/PlaceholderPlugin';
20
- /**
21
- * A component to wrap RoosterJS Rich Text Editor.
22
- *
23
- * @beta
24
- */
25
- export const RichTextEditor = React.forwardRef((props, ref) => {
26
- const { initialContent, onChange, placeholderText, strings, showRichTextEditorFormatting, autoFocus, onKeyDown, onContentModelUpdate, contentModel } = props;
27
- const editor = useRef(null);
28
- const editorDiv = useRef(null);
29
- const theme = useTheme();
30
- const [contextMenuProps, setContextMenuProps] = useState(null);
31
- const tableCellSelectionLightThemeBackgroundColor = useRef(undefined);
32
- useImperativeHandle(ref, () => {
33
- return {
34
- focus() {
35
- if (editor.current) {
36
- editor.current.focus();
37
- }
38
- },
39
- setEmptyContent() {
40
- if (editor.current) {
41
- editor.current.formatContentModel;
42
- // remove all content from the editor and update the model
43
- // ContentChanged event will be sent by RoosterJS automatically
44
- editor.current.formatContentModel((model) => {
45
- model.blocks = [];
46
- return true;
47
- });
48
- //reset content model
49
- onContentModelUpdate && onContentModelUpdate(undefined);
50
- }
51
- },
52
- getPlainContent() {
53
- if (editor.current) {
54
- return exportContent(editor.current, 'PlainTextFast');
55
- }
56
- else {
57
- return undefined;
58
- }
59
- }
60
- };
61
- }, [onContentModelUpdate]);
62
- const toolbarPlugin = React.useMemo(() => {
63
- return new RichTextToolbarPlugin();
64
- }, []);
65
- const isDarkThemedValue = useMemo(() => {
66
- return isDarkThemed(theme);
67
- }, [theme]);
68
- useEffect(() => {
69
- var _a;
70
- (_a = editor.current) === null || _a === void 0 ? void 0 : _a.setDarkModeState(isDarkThemedValue);
71
- }, [isDarkThemedValue]);
72
- // remember light color to correctly set it in the dark theme
73
- useEffect(() => {
74
- var _a, _b, _c;
75
- // focus to update selection color for table, otherwise the existing selection color for table won't be updated
76
- (_a = editor.current) === null || _a === void 0 ? void 0 : _a.focus();
77
- if (!isDarkThemedValue) {
78
- tableCellSelectionLightThemeBackgroundColor.current = (_c = (_b = lightTheme.palette) === null || _b === void 0 ? void 0 : _b.neutralLight) !== null && _c !== void 0 ? _c : theme.palette.neutralLight;
79
- }
80
- }, [theme.palette.neutralLight, isDarkThemedValue]);
81
- const placeholderPlugin = useMemo(() => {
82
- return new PlaceholderPlugin('');
83
- }, []);
84
- useEffect(() => {
85
- if (placeholderText !== undefined) {
86
- placeholderPlugin.updatePlaceholder(placeholderText);
87
- }
88
- }, [placeholderPlugin, placeholderText]);
89
- const toolbar = useMemo(() => {
90
- return React.createElement(RichTextToolbar, { plugin: toolbarPlugin, strings: strings });
91
- }, [strings, toolbarPlugin]);
92
- const updatePlugin = useMemo(() => {
93
- return new UpdateContentPlugin();
94
- }, []);
95
- useEffect(() => {
96
- // don't set callback in plugin constructor to update callback without plugin recreation
97
- updatePlugin.onUpdate = (event) => {
98
- if (editor.current === null) {
99
- return;
100
- }
101
- if (event === UpdateEvent.Blur || event === UpdateEvent.Dispose) {
102
- onContentModelUpdate && onContentModelUpdate(editor.current.getContentModelCopy('disconnected'));
103
- }
104
- else {
105
- onChange && onChange(exportContent(editor.current));
106
- }
107
- };
108
- }, [onChange, onContentModelUpdate, updatePlugin]);
109
- const keyboardInputPlugin = useMemo(() => {
110
- return new KeyboardInputPlugin();
111
- }, []);
112
- useEffect(() => {
113
- // don't set callback in plugin constructor to update callback without plugin recreation
114
- keyboardInputPlugin.onKeyDown = onKeyDown;
115
- }, [keyboardInputPlugin, onKeyDown]);
116
- const tableContextMenuPlugin = useMemo(() => {
117
- return new TableEditContextMenuProvider();
118
- }, []);
119
- useEffect(() => {
120
- tableContextMenuPlugin.updateStrings(strings);
121
- }, [tableContextMenuPlugin, strings]);
122
- const onContextMenuRender = useCallback((container, items, onDismiss) => {
123
- setContextMenuProps({
124
- items: items,
125
- target: container,
126
- onDismiss: onDismiss
127
- });
128
- }, []);
129
- const onContextMenuDismiss = useCallback(() => {
130
- setContextMenuProps(null);
131
- }, []);
132
- const getDarkColor = useCallback((lightColor, _baseLValue, colorType) => {
133
- var _a, _b;
134
- if (lightColor === tableCellSelectionLightThemeBackgroundColor.current && colorType === 'background') {
135
- return (_b = (_a = darkTheme.palette) === null || _a === void 0 ? void 0 : _a.neutralLight) !== null && _b !== void 0 ? _b : theme.palette.neutralLight;
136
- }
137
- return lightColor;
138
- }, [theme.palette.neutralLight]);
139
- const copyPastePlugin = useMemo(() => {
140
- return new CopyPastePlugin();
141
- }, []);
142
- const plugins = useMemo(() => {
143
- const contentEdit = new EditPlugin();
144
- // AutoFormatPlugin previously was a part of the edit plugin
145
- const autoFormatPlugin = new AutoFormatPlugin({
146
- autoBullet: true,
147
- autoNumbering: true,
148
- autoLink: true
149
- });
150
- const roosterPastePlugin = new PastePlugin(false);
151
- const shortcutPlugin = new ShortcutPlugin();
152
- const contextMenuPlugin = new ContextMenuPlugin(onContextMenuRender, onContextMenuDismiss);
153
- return [placeholderPlugin, keyboardInputPlugin, contentEdit, autoFormatPlugin, updatePlugin, copyPastePlugin, roosterPastePlugin, toolbarPlugin, shortcutPlugin,
154
- // contextPlugin and tableEditMenuProvider allow to show insert/delete menu for the table
155
- contextMenuPlugin, tableContextMenuPlugin];
156
- }, [onContextMenuRender, onContextMenuDismiss, placeholderPlugin, keyboardInputPlugin, updatePlugin, copyPastePlugin, toolbarPlugin, tableContextMenuPlugin]);
157
- useEffect(() => {
158
- var _a, _b;
159
- const initialModel = createEditorInitialModel(initialContent, contentModel);
160
- if (editorDiv.current) {
161
- editor.current = new Editor(editorDiv.current, {
162
- inDarkMode: isDarkThemedValue,
163
- // doNotAdjustEditorColor is used to disable default color and background color for Rooster component
164
- doNotAdjustEditorColor: true,
165
- // TODO: confirm the color during inline images implementation
166
- imageSelectionBorderColor: 'blue',
167
- tableCellSelectionBackgroundColor: ((_a = lightTheme.palette) === null || _a === void 0 ? void 0 : _a.neutralLight) && theme.palette.neutralLight,
168
- plugins: plugins,
169
- initialModel: initialModel,
170
- defaultModelToDomOptions: {
171
- formatApplierOverride: {
172
- // apply border and dataset formats for table
173
- border: borderApplier,
174
- dataset: dataSetApplier
175
- }
176
- },
177
- getDarkColor: getDarkColor
178
- });
179
- }
180
- if (autoFocus === 'sendBoxTextField') {
181
- (_b = editor.current) === null || _b === void 0 ? void 0 : _b.focus();
182
- }
183
- return () => {
184
- if (editor.current) {
185
- editor.current.dispose();
186
- editor.current = null;
187
- }
188
- };
189
- // don't update the editor on deps update as everything is handled in separate hooks or plugins
190
- // eslint-disable-next-line react-hooks/exhaustive-deps
191
- }, []);
192
- return React.createElement("div", { "data-testid": 'rich-text-editor-wrapper' },
193
- showRichTextEditorFormatting && toolbar,
194
- React.createElement("div", { className: richTextEditorWrapperStyle(theme, !showRichTextEditorFormatting) },
195
- React.createElement("div", { ref: editorDiv, tabIndex: 0, role: "textbox", "aria-multiline": "true", "data-testid": 'rooster-rich-text-editor', className: richTextEditorStyle(props.styles) })),
196
- contextMenuProps && React.createElement(ContextualMenu, Object.assign({}, contextMenuProps, { calloutProps: {
197
- isBeakVisible: false
198
- } })));
199
- });
200
- const createEditorInitialModel = (initialContent, contentModel) => {
201
- if (contentModel) {
202
- // contentModel is the current content of the editor
203
- return contentModel;
204
- }
205
- else {
206
- const initialContentValue = initialContent;
207
- const initialModel = initialContentValue && initialContentValue.length > 0 ? createModelFromHtml(initialContentValue) : undefined;
208
- if (initialModel && initialModel.blocks.length > 0) {
209
- // lastBlock should have blockType = paragraph, otherwise add a new paragraph
210
- // to set focus to the end of the content
211
- let lastBlock = initialModel.blocks[initialModel.blocks.length - 1];
212
- if ((lastBlock === null || lastBlock === void 0 ? void 0 : lastBlock.blockType) === 'Paragraph') {
213
- // now lastBlock is paragraph
214
- }
215
- else {
216
- lastBlock = createParagraph(true);
217
- initialModel.blocks.push(lastBlock);
218
- }
219
- const marker = createSelectionMarker();
220
- lastBlock.segments.push(marker);
221
- setSelection(initialModel, marker);
222
- }
223
- return initialModel;
224
- }
225
- };
226
- //# sourceMappingURL=RichTextEditor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextEditor.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/RichTextEditor.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtG,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAClG,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,eAAe,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5G,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EA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GAAG,cAAc,CAAC;QAC3C,MAAM,YAAY,GAAG,mBAAmB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAClI,IAAI,YAAY,IAAI,YAAY,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnD,6EAA6E;YAC7E,yCAAyC;YACzC,IAAI,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACpE,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,MAAK,WAAW,EAAE,CAAC;gBACzC,6BAA6B;YAC/B,CAAC;iBAAM,CAAC;gBACN,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;gBAClC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACtC,CAAC;YACD,MAAM,MAAM,GAAG,qBAAqB,EAAE,CAAC;YACvC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAChC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';\nimport { richTextEditorWrapperStyle, richTextEditorStyle } from '../styles/RichTextEditor.styles';\nimport { darkTheme, lightTheme, useTheme } from '../../theming';\nimport { RichTextStrings } from './RichTextSendBox';\nimport { isDarkThemed } from '../../theming/themeUtils';\nimport CopyPastePlugin from './Plugins/CopyPastePlugin';\nimport type { ContentModelDocument, EditorPlugin, IEditor, ShallowMutableContentModelDocument } from 'roosterjs-content-model-types';\nimport { createModelFromHtml, Editor, exportContent } from 'roosterjs-content-model-core';\nimport { createParagraph, createSelectionMarker, setSelection } from 'roosterjs-content-model-dom';\nimport { KeyboardInputPlugin } from './Plugins/KeyboardInputPlugin';\nimport { AutoFormatPlugin, EditPlugin, PastePlugin, ShortcutPlugin } from 'roosterjs-content-model-plugins';\nimport { UpdateContentPlugin, UpdateEvent } from './Plugins/UpdateContentPlugin';\nimport { RichTextToolbar } from './Toolbar/RichTextToolbar';\nimport { RichTextToolbarPlugin } from './Plugins/RichTextToolbarPlugin';\nimport { ContextMenuPlugin } from './Plugins/ContextMenuPlugin';\nimport { TableEditContextMenuProvider } from './Plugins/TableEditContextMenuProvider';\nimport { borderApplier, dataSetApplier } from '../utils/RichTextEditorUtils';\nimport { ContextualMenu, IContextualMenuItem, IContextualMenuProps } from '@fluentui/react';\nimport PlaceholderPlugin from './Plugins/PlaceholderPlugin';\n\n/**\n * Style 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 onChange: (newValue?: string) => void;\n onKeyDown?: (ev: KeyboardEvent) => void;\n // update the current content of the rich text editor\n onContentModelUpdate?: (contentModel: ContentModelDocument | undefined) => void;\n contentModel?: ContentModelDocument | undefined;\n placeholderText?: string;\n strings: Partial<RichTextStrings>;\n showRichTextEditorFormatting: boolean;\n styles: RichTextEditorStyleProps;\n autoFocus?: 'sendBoxTextField';\n}\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 autoFocus,\n onKeyDown,\n onContentModelUpdate,\n contentModel\n } = props;\n const editor = useRef<IEditor | null>(null);\n const editorDiv = useRef<HTMLDivElement>(null);\n const theme = useTheme();\n const [contextMenuProps, setContextMenuProps] = useState<IContextualMenuProps | null>(null);\n const tableCellSelectionLightThemeBackgroundColor = useRef<string | undefined>(undefined);\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.formatContentModel;\n // remove all content from the editor and update the model\n // ContentChanged event will be sent by RoosterJS automatically\n editor.current.formatContentModel((model: ShallowMutableContentModelDocument): boolean => {\n model.blocks = [];\n return true;\n });\n //reset content model\n onContentModelUpdate && onContentModelUpdate(undefined);\n }\n },\n getPlainContent() {\n if (editor.current) {\n return exportContent(editor.current, 'PlainTextFast');\n } else {\n return undefined;\n }\n }\n };\n }, [onContentModelUpdate]);\n const toolbarPlugin = React.useMemo(() => {\n return new RichTextToolbarPlugin();\n }, []);\n const isDarkThemedValue = useMemo(() => {\n return isDarkThemed(theme);\n }, [theme]);\n useEffect(() => {\n editor.current?.setDarkModeState(isDarkThemedValue);\n }, [isDarkThemedValue]);\n\n // remember light color to correctly set it in the dark theme\n useEffect(() => {\n // focus to update selection color for table, otherwise the existing selection color for table won't be updated\n editor.current?.focus();\n if (!isDarkThemedValue) {\n tableCellSelectionLightThemeBackgroundColor.current = lightTheme.palette?.neutralLight ?? theme.palette.neutralLight;\n }\n }, [theme.palette.neutralLight, isDarkThemedValue]);\n const placeholderPlugin = useMemo(() => {\n return new PlaceholderPlugin('');\n }, []);\n useEffect(() => {\n if (placeholderText !== undefined) {\n placeholderPlugin.updatePlaceholder(placeholderText);\n }\n }, [placeholderPlugin, placeholderText]);\n const toolbar = useMemo(() => {\n return <RichTextToolbar plugin={toolbarPlugin} strings={strings} />;\n }, [strings, toolbarPlugin]);\n const updatePlugin = useMemo(() => {\n return new UpdateContentPlugin();\n }, []);\n useEffect(() => {\n // don't set callback in plugin constructor to update callback without plugin recreation\n updatePlugin.onUpdate = (event: string) => {\n if (editor.current === null) {\n return;\n }\n if (event === UpdateEvent.Blur || event === UpdateEvent.Dispose) {\n onContentModelUpdate && onContentModelUpdate(editor.current.getContentModelCopy('disconnected'));\n } else {\n onChange && onChange(exportContent(editor.current));\n }\n };\n }, [onChange, onContentModelUpdate, updatePlugin]);\n const keyboardInputPlugin = useMemo(() => {\n return new KeyboardInputPlugin();\n }, []);\n useEffect(() => {\n // don't set callback in plugin constructor to update callback without plugin recreation\n keyboardInputPlugin.onKeyDown = onKeyDown;\n }, [keyboardInputPlugin, onKeyDown]);\n const tableContextMenuPlugin = useMemo(() => {\n return new TableEditContextMenuProvider();\n }, []);\n useEffect(() => {\n tableContextMenuPlugin.updateStrings(strings);\n }, [tableContextMenuPlugin, strings]);\n const onContextMenuRender = useCallback((container: HTMLElement, items: IContextualMenuItem[], onDismiss: () => void): void => {\n setContextMenuProps({\n items: items,\n target: container,\n onDismiss: onDismiss\n });\n }, []);\n const onContextMenuDismiss = useCallback((): void => {\n setContextMenuProps(null);\n }, []);\n const getDarkColor = useCallback((lightColor: string, _baseLValue?: number, colorType?: 'text' | 'background' | 'border'): string => {\n if (lightColor === tableCellSelectionLightThemeBackgroundColor.current && colorType === 'background') {\n return darkTheme.palette?.neutralLight ?? theme.palette.neutralLight;\n }\n return lightColor;\n }, [theme.palette.neutralLight]);\n const copyPastePlugin = useMemo(() => {\n return new CopyPastePlugin();\n }, []);\n const plugins: EditorPlugin[] = useMemo(() => {\n const contentEdit = new EditPlugin();\n // AutoFormatPlugin previously was a part of the edit plugin\n const autoFormatPlugin = new AutoFormatPlugin({\n autoBullet: true,\n autoNumbering: true,\n autoLink: true\n });\n const roosterPastePlugin = new PastePlugin(false);\n const shortcutPlugin = new ShortcutPlugin();\n const contextMenuPlugin = new ContextMenuPlugin(onContextMenuRender, onContextMenuDismiss);\n return [placeholderPlugin, keyboardInputPlugin, contentEdit, autoFormatPlugin, updatePlugin, copyPastePlugin, roosterPastePlugin, toolbarPlugin, shortcutPlugin,\n // contextPlugin and tableEditMenuProvider allow to show insert/delete menu for the table\n contextMenuPlugin, tableContextMenuPlugin];\n }, [onContextMenuRender, onContextMenuDismiss, placeholderPlugin, keyboardInputPlugin, updatePlugin, copyPastePlugin, toolbarPlugin, tableContextMenuPlugin]);\n useEffect(() => {\n const initialModel = createEditorInitialModel(initialContent, contentModel);\n if (editorDiv.current) {\n editor.current = new Editor(editorDiv.current, {\n inDarkMode: isDarkThemedValue,\n // doNotAdjustEditorColor is used to disable default color and background color for Rooster component\n doNotAdjustEditorColor: true,\n // TODO: confirm the color during inline images implementation\n imageSelectionBorderColor: 'blue',\n tableCellSelectionBackgroundColor: lightTheme.palette?.neutralLight && theme.palette.neutralLight,\n plugins: plugins,\n initialModel: initialModel,\n defaultModelToDomOptions: {\n formatApplierOverride: {\n // apply border and dataset formats for table\n border: borderApplier,\n dataset: dataSetApplier\n }\n },\n getDarkColor: getDarkColor\n });\n }\n if (autoFocus === 'sendBoxTextField') {\n editor.current?.focus();\n }\n return () => {\n if (editor.current) {\n editor.current.dispose();\n editor.current = null;\n }\n };\n // don't update the editor on deps update as everything is handled in separate hooks or plugins\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return <div data-testid={'rich-text-editor-wrapper'}>\n {showRichTextEditorFormatting && toolbar}\n <div className={richTextEditorWrapperStyle(theme, !showRichTextEditorFormatting)}>\n {/* div that is used by Rooster JS as a parent of the editor */}\n <div ref={editorDiv} tabIndex={0} role=\"textbox\" aria-multiline=\"true\" data-testid={'rooster-rich-text-editor'} className={richTextEditorStyle(props.styles)} />\n </div>\n {contextMenuProps && <ContextualMenu {...contextMenuProps} calloutProps={{\n isBeakVisible: false\n }} />}\n </div>;\n});\nconst createEditorInitialModel = (initialContent?: string, contentModel?: ContentModelDocument): ContentModelDocument | undefined => {\n if (contentModel) {\n // contentModel is the current content of the editor\n return contentModel;\n } else {\n const initialContentValue = initialContent;\n const initialModel = initialContentValue && initialContentValue.length > 0 ? createModelFromHtml(initialContentValue) : undefined;\n if (initialModel && initialModel.blocks.length > 0) {\n // lastBlock should have blockType = paragraph, otherwise add a new paragraph\n // to set focus to the end of the content\n let lastBlock = initialModel.blocks[initialModel.blocks.length - 1];\n if (lastBlock?.blockType === 'Paragraph') {\n // now lastBlock is paragraph\n } else {\n lastBlock = createParagraph(true);\n initialModel.blocks.push(lastBlock);\n }\n const marker = createSelectionMarker();\n lastBlock.segments.push(marker);\n setSelection(initialModel, marker);\n }\n return initialModel;\n }\n};"]}
@@ -1,33 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { BaseCustomStyles } from '../../types';
3
- import { RichTextEditorComponentRef, RichTextEditorStyleProps } from './RichTextEditor';
4
- import { RichTextSendBoxStrings } from './RichTextSendBox';
5
- /**
6
- * @private
7
- */
8
- export interface RichTextInputBoxComponentStylesProps extends BaseCustomStyles {
9
- }
10
- /**
11
- * @private
12
- */
13
- export interface RichTextInputBoxComponentProps {
14
- placeholderText?: string;
15
- initialContent?: string;
16
- onChange: (newValue?: string) => void;
17
- onEnterKeyDown?: () => void;
18
- editorComponentRef: React.RefObject<RichTextEditorComponentRef>;
19
- strings: Partial<RichTextSendBoxStrings>;
20
- disabled: boolean;
21
- actionComponents: ReactNode;
22
- onRenderAttachmentUploads?: () => JSX.Element;
23
- hasAttachments?: boolean;
24
- richTextEditorStyleProps: (isExpanded: boolean) => RichTextEditorStyleProps;
25
- isHorizontalLayoutDisabled?: boolean;
26
- autoFocus?: 'sendBoxTextField';
27
- onTyping?: () => Promise<void>;
28
- }
29
- /**
30
- * @private
31
- */
32
- export declare const RichTextInputBoxComponent: (props: RichTextInputBoxComponentProps) => JSX.Element;
33
- //# sourceMappingURL=RichTextInputBoxComponent.d.ts.map
@@ -1,82 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import React, { useCallback, useEffect, useMemo, useState } from 'react';
4
- import { RichTextEditor } from './RichTextEditor';
5
- import { useTheme } from '../../theming';
6
- import { Icon, Stack } from '@fluentui/react';
7
- import { InputBoxButton } from '../InputBoxButton';
8
- import { isEnterKeyEventFromCompositionSession } from '../utils';
9
- import { richTextActionButtonsDividerStyle, richTextActionButtonsStackStyle, richTextActionButtonsStyle, richTextFormatButtonIconStyle } from '../styles/RichTextEditor.styles';
10
- import { inputBoxContentStackStyle, inputBoxRichTextStackItemStyle, inputBoxRichTextStackStyle, richTextBorderBoxStyle } from '../styles/RichTextInputBoxComponent.styles';
11
- /**
12
- * @private
13
- */
14
- export const RichTextInputBoxComponent = (props) => {
15
- const { placeholderText, initialContent, onChange, onEnterKeyDown, editorComponentRef, disabled, strings, actionComponents,
16
- /* @conditional-compile-remove(file-sharing-acs) */
17
- onRenderAttachmentUploads,
18
- /* @conditional-compile-remove(file-sharing-acs) */
19
- hasAttachments, richTextEditorStyleProps, isHorizontalLayoutDisabled = false, autoFocus, onTyping } = props;
20
- const theme = useTheme();
21
- // undefined is used to indicate that the rich text editor toolbar state wasn't changed yet
22
- const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = useState(undefined);
23
- const [contentModel, setContentModel] = useState(undefined);
24
- const onRenderRichTextEditorIcon = useCallback((isHover) => {
25
- const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;
26
- return React.createElement(Icon, { iconName: isHover || isRichTextEditorToolbarShown ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon', className: richTextFormatButtonIconStyle(theme, !disabled && (isHover || isRichTextEditorToolbarShown)) });
27
- }, [disabled, showRichTextEditorFormatting, theme]);
28
- useEffect(() => {
29
- var _a;
30
- if (showRichTextEditorFormatting !== undefined) {
31
- // Focus the editor when toolbar shown/hidden
32
- (_a = editorComponentRef.current) === null || _a === void 0 ? void 0 : _a.focus();
33
- }
34
- // we don't need execute this useEffect if editorComponentRef is changed
35
- // eslint-disable-next-line react-hooks/exhaustive-deps
36
- }, [showRichTextEditorFormatting]);
37
- const actionButtons = useMemo(() => {
38
- return React.createElement(Stack.Item, { align: "end", className: richTextActionButtonsStackStyle },
39
- React.createElement(Stack, { horizontal: true },
40
- React.createElement(InputBoxButton, { onRenderIcon: onRenderRichTextEditorIcon, onClick: e => {
41
- const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;
42
- setShowRichTextEditorFormatting(!isRichTextEditorToolbarShown);
43
- e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.
44
- }, ariaLabel: strings.richTextFormatButtonTooltip, tooltipContent: strings.richTextFormatButtonTooltip, className: richTextActionButtonsStyle, "data-testId": 'rich-text-input-box-format-button' }),
45
- React.createElement(Icon, { iconName: "RichTextDividerIcon", className: richTextActionButtonsDividerStyle(theme) }),
46
- actionComponents));
47
- }, [actionComponents, onRenderRichTextEditorIcon, showRichTextEditorFormatting, strings.richTextFormatButtonTooltip, theme]);
48
- const richTextEditorStyle = useMemo(() => {
49
- return richTextEditorStyleProps(showRichTextEditorFormatting === true);
50
- }, [richTextEditorStyleProps, showRichTextEditorFormatting]);
51
- const onKeyDown = useCallback((ev) => {
52
- if (isEnterKeyEventFromCompositionSession(ev)) {
53
- return;
54
- }
55
- const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;
56
- if (ev.key === 'Enter' && ev.shiftKey === false && !isRichTextEditorToolbarShown) {
57
- ev.preventDefault();
58
- onEnterKeyDown && onEnterKeyDown();
59
- }
60
- else {
61
- onTyping === null || onTyping === void 0 ? void 0 : onTyping();
62
- }
63
- }, [onEnterKeyDown, showRichTextEditorFormatting, onTyping]);
64
- const useHorizontalLayout = useMemo(() => {
65
- const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;
66
- return !isHorizontalLayoutDisabled && !isRichTextEditorToolbarShown && /* @conditional-compile-remove(file-sharing-acs) */ !hasAttachments;
67
- }, [isHorizontalLayoutDisabled, showRichTextEditorFormatting, /* @conditional-compile-remove(file-sharing-acs) */ hasAttachments]);
68
- const onContentModelUpdate = useCallback((contentModel) => {
69
- setContentModel(contentModel);
70
- }, []);
71
- return React.createElement("div", { className: richTextBorderBoxStyle({
72
- theme: theme,
73
- disabled: !!disabled
74
- }) },
75
- React.createElement(Stack, { grow: true, horizontal: useHorizontalLayout, horizontalAlign: useHorizontalLayout ? 'end' : 'space-between', className: inputBoxContentStackStyle, wrap: useHorizontalLayout },
76
- React.createElement(Stack, { grow: true, className: inputBoxRichTextStackStyle },
77
- React.createElement(Stack.Item, { className: inputBoxRichTextStackItemStyle },
78
- React.createElement(RichTextEditor, { contentModel: contentModel, initialContent: initialContent, placeholderText: placeholderText, onChange: onChange, onKeyDown: onKeyDown, ref: editorComponentRef, strings: strings, showRichTextEditorFormatting: showRichTextEditorFormatting === true, styles: richTextEditorStyle, autoFocus: autoFocus, onContentModelUpdate: onContentModelUpdate })), /* @conditional-compile-remove(file-sharing-acs) */
79
- onRenderAttachmentUploads && onRenderAttachmentUploads()),
80
- actionButtons));
81
- };
82
- //# sourceMappingURL=RichTextInputBoxComponent.js.map