@azure/communication-react 1.18.0-beta.1 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/dist/communication-react.d.ts +508 -1758
  2. package/dist/dist-cjs/communication-react/index.js +34363 -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/ErrorBar.d.ts +4 -0
  140. package/dist/dist-esm/react-components/src/components/ErrorBar.js +3 -3
  141. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  142. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +3 -7
  143. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  144. package/dist/dist-esm/react-components/src/components/InputBoxButton.d.ts +1 -0
  145. package/dist/dist-esm/react-components/src/components/InputBoxButton.js +2 -2
  146. package/dist/dist-esm/react-components/src/components/InputBoxButton.js.map +1 -1
  147. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
  148. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -18
  149. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  150. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.d.ts +85 -0
  151. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js +135 -0
  152. package/dist/dist-esm/react-components/src/components/MeetingConferencePhoneInfo.js.map +1 -0
  153. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js +1 -1
  154. package/dist/dist-esm/react-components/src/components/MessageStatusIndicatorInternal.js.map +1 -1
  155. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +5 -50
  156. package/dist/dist-esm/react-components/src/components/MessageThread.js +3 -30
  157. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  158. package/dist/dist-esm/react-components/src/components/{NotificationBar.d.ts → Notification.d.ts} +13 -13
  159. package/dist/dist-esm/react-components/src/components/{NotificationBar.js → Notification.js} +7 -7
  160. package/dist/dist-esm/react-components/src/components/Notification.js.map +1 -0
  161. package/dist/dist-esm/react-components/src/components/{Notifications.d.ts → NotificationStack.d.ts} +109 -73
  162. package/dist/dist-esm/react-components/src/components/NotificationStack.js +57 -0
  163. package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -0
  164. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +0 -13
  165. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +0 -3
  166. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  167. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +0 -15
  168. package/dist/dist-esm/react-components/src/components/ParticipantList.js +4 -21
  169. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  170. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +1 -3
  171. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js +5 -1
  173. package/dist/dist-esm/react-components/src/components/ResponsiveHorizontalGallery.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +5 -1
  175. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +1 -1
  176. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -47
  177. package/dist/dist-esm/react-components/src/components/SendBox.js +8 -90
  178. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  179. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js +1 -1
  180. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -2
  182. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  183. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -2
  184. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  185. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -24
  186. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  187. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -2
  188. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  189. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +3 -15
  190. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  191. package/dist/dist-esm/react-components/src/components/VideoGallery.js +1 -2
  192. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  193. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -8
  194. package/dist/dist-esm/react-components/src/components/VideoTile.js +1 -7
  195. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  196. package/dist/dist-esm/react-components/src/components/index.d.ts +3 -20
  197. package/dist/dist-esm/react-components/src/components/index.js +6 -15
  198. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  199. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +1 -1
  200. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +10 -0
  201. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  202. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.d.ts +5 -1
  203. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js +8 -0
  204. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +4 -0
  206. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +4 -0
  207. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -1
  208. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +5 -3
  209. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +40 -20
  210. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  211. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.d.ts → Notification.styles.d.ts} +1 -1
  212. package/dist/dist-esm/react-components/src/components/styles/{NotificationBar.styles.js → Notification.styles.js} +1 -1
  213. package/dist/dist-esm/react-components/src/components/styles/Notification.styles.js.map +1 -0
  214. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +4 -1
  215. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +11 -3
  216. package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
  217. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.d.ts +42 -0
  218. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js +93 -0
  219. package/dist/dist-esm/react-components/src/components/styles/TeamsMeetingConferenceInfo.js.map +1 -0
  220. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +1 -37
  221. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +3 -34
  222. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +2 -4
  224. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +2 -14
  225. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  226. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +1 -11
  227. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +2 -18
  228. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  229. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -4
  230. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
  232. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  233. package/dist/dist-esm/react-components/src/components/utils/responsive.js +12 -2
  234. package/dist/dist-esm/react-components/src/components/utils/responsive.js.map +1 -1
  235. package/dist/dist-esm/react-components/src/components/utils.d.ts +32 -1
  236. package/dist/dist-esm/react-components/src/components/utils.js +101 -1
  237. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  238. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -4
  239. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -5
  240. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/index.d.ts +0 -1
  242. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  243. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +7 -58
  244. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  245. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +102 -64
  246. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +100 -62
  247. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +100 -62
  248. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +100 -62
  249. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +98 -60
  250. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +100 -62
  251. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +100 -62
  252. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +103 -65
  253. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +100 -62
  254. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +100 -62
  255. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +102 -64
  256. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +107 -69
  257. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +100 -62
  258. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +106 -68
  259. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +105 -67
  260. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +103 -65
  261. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +101 -63
  262. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +100 -62
  263. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +101 -63
  264. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +102 -64
  265. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +101 -63
  266. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.d.ts +1 -0
  267. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js +4 -4
  268. package/dist/dist-esm/react-components/src/theming/FluentV9ThemeProvider.js.map +1 -1
  269. package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -28
  270. package/dist/dist-esm/react-components/src/theming/icons.js +7 -136
  271. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  272. package/dist/dist-esm/react-components/src/theming/themes.d.ts +0 -6
  273. package/dist/dist-esm/react-components/src/theming/themes.js +11 -20
  274. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -1
  276. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +0 -9
  278. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -20
  280. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  281. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -8
  282. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  283. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +0 -6
  284. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  285. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  286. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -72
  287. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +86 -37
  288. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  289. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +4 -108
  290. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  291. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +12 -64
  292. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +15 -150
  293. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  294. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +3 -51
  295. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  296. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  297. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.d.ts +2 -0
  298. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js +20 -0
  299. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallingSoundSubscriber.js.map +1 -1
  300. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -2
  301. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  302. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -2
  303. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  304. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +6 -2
  305. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +83 -32
  306. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  307. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +0 -1
  308. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +2 -38
  309. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  310. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -2
  311. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -27
  312. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  313. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -20
  314. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  315. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -2
  316. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -27
  317. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  319. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -19
  320. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  321. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +1 -0
  322. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +65 -1
  323. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
  324. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.d.ts +13 -0
  325. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js +49 -0
  326. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useMeetingPhoneInfo.js.map +1 -0
  327. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +2 -1
  328. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  329. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -0
  330. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js +1 -1
  331. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  332. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +2 -6
  333. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  334. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +7 -30
  335. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  336. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -3
  337. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  338. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +5 -2
  339. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +12 -4
  340. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  341. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +0 -7
  342. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +7 -80
  343. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  344. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +5 -2
  345. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +6 -3
  346. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  347. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +6 -3
  348. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  349. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +5 -8
  350. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +5 -11
  351. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  352. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  353. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js +0 -4
  354. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.js.map +1 -1
  355. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +4 -0
  356. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +11 -0
  357. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  358. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +2 -2
  359. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  360. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +6 -2
  361. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -1
  362. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +8 -7
  363. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +20 -20
  364. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -1
  365. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +49 -14
  366. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +104 -98
  367. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  368. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +1 -61
  369. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -27
  370. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  371. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -32
  372. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  373. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +5 -15
  374. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +5 -49
  375. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  376. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -38
  377. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  378. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +1 -9
  379. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -32
  380. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  381. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +4 -5
  382. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +2 -2
  383. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  384. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -13
  385. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +0 -4
  386. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  387. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -20
  388. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +1 -6
  389. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  390. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -2
  391. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +10 -131
  392. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  393. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  394. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  395. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -3
  396. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +0 -27
  397. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  398. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -3
  399. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  400. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +2 -13
  401. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  402. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -2
  403. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  404. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -5
  405. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +0 -15
  406. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  407. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -5
  408. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +2 -3
  409. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  410. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +2 -1
  411. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +25 -19
  412. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  413. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.d.ts +1 -1
  414. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -0
  416. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +29 -26
  417. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  418. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +1 -0
  419. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +26 -23
  420. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  421. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +1 -1
  422. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  423. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.d.ts +10 -0
  424. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js +63 -0
  425. package/dist/dist-esm/react-composites/src/composites/common/MeetingPhoneInfoPaneContent.js.map +1 -0
  426. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +9 -7
  427. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  428. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +2 -14
  429. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  430. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.d.ts +1 -4
  431. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js +0 -1
  432. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js.map +1 -1
  433. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +10 -39
  434. package/dist/dist-esm/react-composites/src/composites/common/icons.js +10 -12
  435. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  436. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.d.ts +1 -1
  437. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +2 -2
  438. package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
  439. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.d.ts +50 -0
  440. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.js +110 -0
  441. package/dist/dist-esm/react-composites/src/composites/common/styles/TeamsMeetingConferenceInfo.style.js.map +1 -0
  442. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +10 -17
  443. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  444. package/dist/dist-esm/react-composites/src/composites/common/utils.js +6 -6
  445. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  446. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +10 -5
  447. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +6 -1
  448. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +6 -1
  449. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +6 -1
  450. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +6 -1
  451. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +6 -1
  452. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +10 -5
  453. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +10 -5
  454. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +10 -5
  455. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +10 -5
  456. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +6 -1
  457. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +10 -5
  458. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +6 -1
  459. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +6 -1
  460. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +6 -1
  461. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +10 -5
  462. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +6 -1
  463. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +10 -5
  464. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +6 -1
  465. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +10 -5
  466. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +10 -5
  467. package/dist/tsdoc-metadata.json +1 -1
  468. package/package.json +16 -16
  469. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BWStTUhO.js +0 -136
  470. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-BWStTUhO.js.map +0 -1
  471. package/dist/dist-cjs/communication-react/index-Di3ptk8o.js +0 -39650
  472. package/dist/dist-cjs/communication-react/index-Di3ptk8o.js.map +0 -1
  473. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.d.ts +0 -17
  474. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js +0 -36
  475. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +0 -1
  476. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
  477. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
  478. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
  479. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +0 -17
  480. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +0 -125
  481. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +0 -1
  482. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  483. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -43
  484. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  485. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  486. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -75
  487. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  488. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  489. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -68
  490. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  491. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  492. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -39
  493. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  494. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  495. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  496. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  497. package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
  498. package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -123
  499. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
  500. package/dist/dist-esm/react-components/src/components/NotificationBar.js.map +0 -1
  501. package/dist/dist-esm/react-components/src/components/Notifications.js +0 -46
  502. package/dist/dist-esm/react-components/src/components/Notifications.js.map +0 -1
  503. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.d.ts +0 -9
  504. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js +0 -29
  505. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js.map +0 -1
  506. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.d.ts +0 -22
  507. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +0 -89
  508. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +0 -1
  509. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.d.ts +0 -12
  510. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js +0 -23
  511. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js.map +0 -1
  512. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.d.ts +0 -15
  513. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js +0 -39
  514. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js.map +0 -1
  515. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.d.ts +0 -24
  516. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js +0 -64
  517. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js.map +0 -1
  518. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.d.ts +0 -20
  519. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js +0 -46
  520. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js.map +0 -1
  521. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.d.ts +0 -29
  522. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js +0 -73
  523. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js.map +0 -1
  524. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +0 -54
  525. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +0 -226
  526. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +0 -1
  527. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +0 -33
  528. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +0 -82
  529. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +0 -1
  530. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +0 -149
  531. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +0 -182
  532. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +0 -1
  533. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.d.ts +0 -16
  534. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +0 -73
  535. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +0 -1
  536. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.d.ts +0 -19
  537. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js +0 -191
  538. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js.map +0 -1
  539. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.d.ts +0 -7
  540. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js +0 -51
  541. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js.map +0 -1
  542. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.d.ts +0 -15
  543. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js +0 -64
  544. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js.map +0 -1
  545. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.d.ts +0 -6
  546. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js +0 -13
  547. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js.map +0 -1
  548. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -34
  549. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +0 -39
  550. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +0 -1
  551. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -14
  552. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +0 -18
  553. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +0 -1
  554. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -24
  555. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -550
  556. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
  557. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
  558. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -816
  559. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
  560. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  561. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  562. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  563. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -26
  564. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -69
  565. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
  566. package/dist/dist-esm/react-components/src/components/styles/NotificationBar.styles.js.map +0 -1
  567. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +0 -82
  568. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +0 -305
  569. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +0 -1
  570. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.d.ts +0 -21
  571. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +0 -38
  572. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +0 -1
  573. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  574. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  575. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  576. package/dist/dist-esm/react-components/src/components/styles/Stack.style.d.ts +0 -5
  577. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js +0 -32
  578. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +0 -1
  579. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  580. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  581. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  582. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.d.ts +0 -37
  583. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js +0 -60
  584. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js.map +0 -1
  585. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.d.ts +0 -33
  586. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js +0 -116
  587. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +0 -1
  588. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  589. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  590. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  591. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  592. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  593. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  594. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  595. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -218
  596. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  597. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  598. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  599. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  600. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  601. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  602. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  603. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -24
  604. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -28
  605. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  612. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.d.ts +0 -15
  613. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +0 -23
  614. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +0 -1
  615. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  616. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  617. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  618. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +0 -80
  619. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +0 -39
  620. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +0 -1
  621. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.d.ts +0 -38
  622. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +0 -76
  623. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +0 -1
  624. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +0 -5
  625. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js +0 -5
  626. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +0 -1
  627. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -25
  628. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -113
  629. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  630. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  631. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  632. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  633. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  634. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -74
  635. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  636. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  637. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  638. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextInputBoxComponent.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAa,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,EAAE,cAAc,EAAwD,MAAM,kBAAkB,CAAC;AAExG,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,qCAAqC,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,iCAAiC,EAAE,+BAA+B,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChL,OAAO,EAAE,yBAAyB,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAkC3K;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,KAAqC,EAAe,EAAE;IAC9F,MAAM,EACJ,eAAe,EACf,cAAc,EACd,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,gBAAgB;IAChB,mDAAmD;IACnD,yBAAyB;IACzB,mDAAmD;IACnD,cAAc,EACd,wBAAwB,EACxB,0BAA0B,GAAG,KAAK,EAClC,SAAS,EACT,QAAQ,EACT,GAAG,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right (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { ReactNode, useCallback, useEffect, useMemo, useState } from 'react';\nimport { BaseCustomStyles } from '../../types';\nimport { RichTextEditor, RichTextEditorComponentRef, RichTextEditorStyleProps } from './RichTextEditor';\nimport { RichTextSendBoxStrings } from './RichTextSendBox';\nimport { useTheme } from '../../theming';\nimport { Icon, Stack } from '@fluentui/react';\nimport { InputBoxButton } from '../InputBoxButton';\nimport { isEnterKeyEventFromCompositionSession } from '../utils';\nimport { richTextActionButtonsDividerStyle, richTextActionButtonsStackStyle, richTextActionButtonsStyle, richTextFormatButtonIconStyle } from '../styles/RichTextEditor.styles';\nimport { inputBoxContentStackStyle, inputBoxRichTextStackItemStyle, inputBoxRichTextStackStyle, richTextBorderBoxStyle } from '../styles/RichTextInputBoxComponent.styles';\nimport type { ContentModelDocument } from 'roosterjs-content-model-types';\n\n/**\n * @private\n */\nexport interface RichTextInputBoxComponentStylesProps extends BaseCustomStyles {}\n\n/**\n * @private\n */\nexport interface RichTextInputBoxComponentProps {\n placeholderText?: string;\n // the initial content of editor that is set when editor is created (e.g. when editing a message)\n initialContent?: string;\n onChange: (newValue?: string) => void;\n onEnterKeyDown?: () => void;\n editorComponentRef: React.RefObject<RichTextEditorComponentRef>;\n // Partial needs to be removed when the rich text editor feature goes to GA\n strings: Partial<RichTextSendBoxStrings>;\n disabled: boolean;\n actionComponents: ReactNode;\n /* @conditional-compile-remove(file-sharing-acs) */\n onRenderAttachmentUploads?: () => JSX.Element;\n /* @conditional-compile-remove(file-sharing-acs) */\n hasAttachments?: boolean;\n // props for min and max height for the rich text editor\n // otherwise the editor will grow to fit the content\n richTextEditorStyleProps: (isExpanded: boolean) => RichTextEditorStyleProps;\n isHorizontalLayoutDisabled?: boolean;\n autoFocus?: 'sendBoxTextField';\n onTyping?: () => Promise<void>;\n}\n\n/**\n * @private\n */\nexport const RichTextInputBoxComponent = (props: RichTextInputBoxComponentProps): JSX.Element => {\n const {\n placeholderText,\n initialContent,\n onChange,\n onEnterKeyDown,\n editorComponentRef,\n disabled,\n strings,\n actionComponents,\n /* @conditional-compile-remove(file-sharing-acs) */\n onRenderAttachmentUploads,\n /* @conditional-compile-remove(file-sharing-acs) */\n hasAttachments,\n richTextEditorStyleProps,\n isHorizontalLayoutDisabled = false,\n autoFocus,\n onTyping\n } = props;\n const theme = useTheme();\n // undefined is used to indicate that the rich text editor toolbar state wasn't changed yet\n const [showRichTextEditorFormatting, setShowRichTextEditorFormatting] = useState<boolean | undefined>(undefined);\n const [contentModel, setContentModel] = useState<ContentModelDocument | undefined>(undefined);\n const onRenderRichTextEditorIcon = useCallback((isHover: boolean) => {\n const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;\n return <Icon iconName={isHover || isRichTextEditorToolbarShown ? 'RichTextEditorButtonIconFilled' : 'RichTextEditorButtonIcon'} className={richTextFormatButtonIconStyle(theme, !disabled && (isHover || isRichTextEditorToolbarShown))} />;\n }, [disabled, showRichTextEditorFormatting, theme]);\n useEffect(() => {\n if (showRichTextEditorFormatting !== undefined) {\n // Focus the editor when toolbar shown/hidden\n editorComponentRef.current?.focus();\n }\n // we don't need execute this useEffect if editorComponentRef is changed\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [showRichTextEditorFormatting]);\n const actionButtons = useMemo(() => {\n return <Stack.Item align=\"end\" className={richTextActionButtonsStackStyle}>\n <Stack horizontal>\n <InputBoxButton onRenderIcon={onRenderRichTextEditorIcon} onClick={e => {\n const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;\n setShowRichTextEditorFormatting(!isRichTextEditorToolbarShown);\n e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.\n }} ariaLabel={strings.richTextFormatButtonTooltip} tooltipContent={strings.richTextFormatButtonTooltip} className={richTextActionButtonsStyle} data-testId={'rich-text-input-box-format-button'} />\n <Icon iconName=\"RichTextDividerIcon\" className={richTextActionButtonsDividerStyle(theme)} />\n {actionComponents}\n </Stack>\n </Stack.Item>;\n }, [actionComponents, onRenderRichTextEditorIcon, showRichTextEditorFormatting, strings.richTextFormatButtonTooltip, theme]);\n const richTextEditorStyle = useMemo(() => {\n return richTextEditorStyleProps(showRichTextEditorFormatting === true);\n }, [richTextEditorStyleProps, showRichTextEditorFormatting]);\n const onKeyDown = useCallback((ev: KeyboardEvent) => {\n if (isEnterKeyEventFromCompositionSession(ev)) {\n return;\n }\n const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;\n if (ev.key === 'Enter' && ev.shiftKey === false && !isRichTextEditorToolbarShown) {\n ev.preventDefault();\n onEnterKeyDown && onEnterKeyDown();\n } else {\n onTyping?.();\n }\n }, [onEnterKeyDown, showRichTextEditorFormatting, onTyping]);\n const useHorizontalLayout = useMemo(() => {\n const isRichTextEditorToolbarShown = showRichTextEditorFormatting === true;\n return !isHorizontalLayoutDisabled && !isRichTextEditorToolbarShown && /* @conditional-compile-remove(file-sharing-acs) */!hasAttachments;\n }, [isHorizontalLayoutDisabled, showRichTextEditorFormatting, /* @conditional-compile-remove(file-sharing-acs) */hasAttachments]);\n const onContentModelUpdate = useCallback((contentModel: ContentModelDocument | undefined) => {\n setContentModel(contentModel);\n }, []);\n return <div className={richTextBorderBoxStyle({\n theme: theme,\n disabled: !!disabled\n })}>\n {/* This layout is used for the compact view when formatting options are not shown */}\n <Stack grow horizontal={useHorizontalLayout} horizontalAlign={useHorizontalLayout ? 'end' : 'space-between'} className={inputBoxContentStackStyle} wrap={useHorizontalLayout}>\n {/* Fixes the issue when flex box can grow to be bigger than parent */}\n <Stack grow className={inputBoxRichTextStackStyle}>\n <Stack.Item className={inputBoxRichTextStackItemStyle}>\n <RichTextEditor contentModel={contentModel} initialContent={initialContent} placeholderText={placeholderText} onChange={onChange} onKeyDown={onKeyDown} ref={editorComponentRef} strings={strings} showRichTextEditorFormatting={showRichTextEditorFormatting === true} styles={richTextEditorStyle} autoFocus={autoFocus} onContentModelUpdate={onContentModelUpdate} />\n </Stack.Item>\n {/* @conditional-compile-remove(file-sharing-acs) */onRenderAttachmentUploads && onRenderAttachmentUploads()}\n </Stack>\n {actionButtons}\n </Stack>\n </div>;\n};"]}
@@ -1,149 +0,0 @@
1
- /// <reference types="react" />
2
- import { SendBoxStrings } from '../SendBox';
3
- import { AttachmentMetadataInProgress, MessageOptions } from "../../../../acs-ui-common/src";
4
- /**
5
- * Strings of {@link RichTextSendBox} that can be overridden.
6
- *
7
- * @beta
8
- */
9
- export interface RichTextSendBoxStrings extends RichTextStrings, SendBoxStrings {
10
- }
11
- /**
12
- * Strings of RichText that can be overridden.
13
- *
14
- * @beta
15
- */
16
- export interface RichTextStrings {
17
- /**
18
- * Tooltip text for the bold button.
19
- */
20
- richTextBoldTooltip: string;
21
- /**
22
- * Tooltip text for the italic button.
23
- */
24
- richTextItalicTooltip: string;
25
- /**
26
- * Tooltip text for the underline button.
27
- */
28
- richTextUnderlineTooltip: string;
29
- /**
30
- * Tooltip text for the bullet list button.
31
- */
32
- richTextBulletListTooltip: string;
33
- /**
34
- * Tooltip text for the number list button.
35
- */
36
- richTextNumberListTooltip: string;
37
- /**
38
- * Tooltip text for the increase indent button.
39
- */
40
- richTextIncreaseIndentTooltip: string;
41
- /**
42
- * Tooltip text for the decrease indent button.
43
- */
44
- richTextDecreaseIndentTooltip: string;
45
- /**
46
- * Tooltip text insert table button.
47
- */
48
- richTextInsertTableTooltip: string;
49
- /**
50
- * Tooltip text for the rich text format button button.
51
- */
52
- richTextFormatButtonTooltip: string;
53
- /**
54
- * Text for the insert menu item.
55
- */
56
- richTextInsertRowOrColumnMenu: string;
57
- /**
58
- * Title for the insert table menu.
59
- */
60
- richTextInsertTableMenuTitle: string;
61
- /**
62
- * Text for the insert menu item to insert row above the current selection.
63
- */
64
- richTextInsertRowAboveMenu: string;
65
- /**
66
- * Text for the insert menu item to insert row below the current selection.
67
- */
68
- richTextInsertRowBelowMenu: string;
69
- /**
70
- * Text for the insert menu item to insert column to the left from the current selection.
71
- */
72
- richTextInsertColumnLeftMenu: string;
73
- /**
74
- * Text for the insert menu item to insert column to the right from the current selection.
75
- */
76
- richTextInsertColumnRightMenu: string;
77
- /**
78
- * Text for the delete row or column menu.
79
- */
80
- richTextDeleteRowOrColumnMenu: string;
81
- /**
82
- * Text for the delete column menu.
83
- */
84
- richTextDeleteColumnMenu: string;
85
- /**
86
- * Text for the delete row menu.
87
- */
88
- richTextDeleteRowMenu: string;
89
- /**
90
- * Text for the delete table menu.
91
- */
92
- richTextDeleteTableMenu: string;
93
- /**
94
- * Text for the rich text toolbar more button.
95
- */
96
- richTextToolbarMoreButtonAriaLabel: string;
97
- }
98
- /**
99
- * Props for {@link RichTextSendBox}.
100
- *
101
- * @beta
102
- */
103
- export interface RichTextSendBoxProps {
104
- /**
105
- * Optional boolean to disable text box
106
- * @defaultValue false
107
- */
108
- disabled?: boolean;
109
- /**
110
- * Optional strings to override in component
111
- */
112
- strings?: Partial<RichTextSendBoxStrings>;
113
- /**
114
- * Optional text for system message above the text box
115
- */
116
- systemMessage?: string;
117
- /**
118
- * Optional array of type {@link AttachmentMetadataInProgress}
119
- * to render attachments being uploaded in the SendBox.
120
- * @beta
121
- */
122
- attachments?: AttachmentMetadataInProgress[];
123
- /**
124
- * enumerable to determine if the input box has focus on render or not.
125
- * When undefined nothing has focus on render
126
- */
127
- autoFocus?: 'sendBoxTextField';
128
- /**
129
- * Optional callback to remove the attachment upload before sending by clicking on
130
- * cancel icon.
131
- * @beta
132
- */
133
- onCancelAttachmentUpload?: (attachmentId: string) => void;
134
- /**
135
- * Callback function used when the send button is clicked.
136
- */
137
- onSendMessage: (content: string, /* @conditional-compile-remove(file-sharing-acs) */ options?: MessageOptions) => Promise<void>;
138
- /**
139
- * Optional callback called when user is typing
140
- */
141
- onTyping?: () => Promise<void>;
142
- }
143
- /**
144
- * A component to render SendBox with Rich Text Editor support.
145
- *
146
- * @beta
147
- */
148
- export declare const RichTextSendBox: (props: RichTextSendBoxProps) => JSX.Element;
149
- //# sourceMappingURL=RichTextSendBox.d.ts.map
@@ -1,182 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import React, { useCallback, useMemo, useRef, useState } from 'react';
4
- import { RichTextInputBoxComponent } from './RichTextInputBoxComponent';
5
- import { Icon, Stack } from '@fluentui/react';
6
- import { useLocale } from '../../localization';
7
- import { sendIconStyle } from '../styles/SendBox.styles';
8
- import { InputBoxButton } from '../InputBoxButton';
9
- import { RichTextSendBoxErrors } from './RichTextSendBoxErrors';
10
- import { isMessageTooLong, isSendBoxButtonAriaDisabled, sanitizeText } from '../utils/SendBoxUtils';
11
- import { useTheme } from '../../theming';
12
- import { richTextActionButtonsStyle, sendBoxRichTextEditorStyle } from '../styles/RichTextEditor.styles';
13
- /* @conditional-compile-remove(file-sharing-acs) */
14
- import { _AttachmentUploadCards } from '../Attachment/AttachmentUploadCards';
15
- /* @conditional-compile-remove(file-sharing-acs) */
16
- import { isAttachmentUploadCompleted, hasIncompleteAttachmentUploads } from '../utils/SendBoxUtils';
17
- /* @conditional-compile-remove(file-sharing-acs) */
18
- import { attachmentUploadCardsStyles } from '../styles/SendBox.styles';
19
- /* @conditional-compile-remove(file-sharing-acs) */
20
- import { FluentV9ThemeProvider } from '../../theming/FluentV9ThemeProvider';
21
- /**
22
- * A component to render SendBox with Rich Text Editor support.
23
- *
24
- * @beta
25
- */
26
- export const RichTextSendBox = (props) => {
27
- const { disabled = false, systemMessage, autoFocus, onSendMessage, onTyping,
28
- /* @conditional-compile-remove(file-sharing-acs) */
29
- attachments,
30
- /* @conditional-compile-remove(file-sharing-acs) */
31
- onCancelAttachmentUpload } = props;
32
- const theme = useTheme();
33
- const locale = useLocale();
34
- const localeStrings = useMemo(() => {
35
- /* @conditional-compile-remove(rich-text-editor) */
36
- return locale.strings.richTextSendBox;
37
- return locale.strings.sendBox;
38
- }, [/* @conditional-compile-remove(rich-text-editor) */ locale.strings.richTextSendBox, locale.strings.sendBox]);
39
- const strings = useMemo(() => {
40
- return Object.assign(Object.assign({}, localeStrings), props.strings);
41
- }, [localeStrings, props.strings]);
42
- const [contentValue, setContentValue] = useState('');
43
- const [contentValueOverflow, setContentValueOverflow] = useState(false);
44
- /* @conditional-compile-remove(file-sharing-acs) */
45
- const [attachmentUploadsPendingError, setAttachmentUploadsPendingError] = useState(undefined);
46
- const editorComponentRef = useRef(null);
47
- const contentTooLongMessage = useMemo(() => contentValueOverflow ? strings.textTooLong : undefined, [contentValueOverflow, strings.textTooLong]);
48
- const setContent = useCallback((newValue) => {
49
- if (newValue === undefined) {
50
- return;
51
- }
52
- setContentValueOverflow(isMessageTooLong(newValue.length));
53
- setContentValue(newValue);
54
- }, []);
55
- const hasContent = useMemo(() => {
56
- var _a;
57
- // get plain text content from the editor to check if the message is empty
58
- // as the content may contain tags even when the content is empty
59
- const plainTextContent = (_a = editorComponentRef.current) === null || _a === void 0 ? void 0 : _a.getPlainContent();
60
- return sanitizeText(contentValue !== null && contentValue !== void 0 ? contentValue : '').length > 0 && sanitizeText(plainTextContent !== null && plainTextContent !== void 0 ? plainTextContent : '').length > 0;
61
- }, [contentValue]);
62
- /* @conditional-compile-remove(file-sharing-acs) */
63
- const toAttachmentMetadata = useCallback((attachmentsWithProgress) => {
64
- return attachmentsWithProgress === null || attachmentsWithProgress === void 0 ? void 0 : attachmentsWithProgress.filter(attachment => {
65
- var _a;
66
- return !('error' in attachment) && !((_a = attachment.error) === null || _a === void 0 ? void 0 : _a.message);
67
- }).map(attachment => {
68
- var _a;
69
- return {
70
- id: attachment.id,
71
- name: attachment.name,
72
- url: (_a = attachment.url) !== null && _a !== void 0 ? _a : ''
73
- };
74
- });
75
- }, []);
76
- const sendMessageOnClick = useCallback(() => {
77
- var _a, _b;
78
- if (disabled || contentValueOverflow) {
79
- return;
80
- }
81
- // Don't send message until all attachments have been uploaded successfully
82
- /* @conditional-compile-remove(file-sharing-acs) */
83
- setAttachmentUploadsPendingError(undefined);
84
- /* @conditional-compile-remove(file-sharing-acs) */
85
- if (hasIncompleteAttachmentUploads(attachments)) {
86
- setAttachmentUploadsPendingError({
87
- message: strings.attachmentUploadsPendingError,
88
- timestamp: Date.now()
89
- });
90
- return;
91
- }
92
- const message = contentValue;
93
- // we don't want to send empty messages including spaces, newlines, tabs
94
- // Message can be empty if there is a valid attachment upload
95
- if (hasContent || /* @conditional-compile-remove(file-sharing-acs) */ isAttachmentUploadCompleted(attachments)) {
96
- onSendMessage(message, /* @conditional-compile-remove(file-sharing-acs) */ /* @conditional-compile-remove(rich-text-editor-composite-support) */ {
97
- /* @conditional-compile-remove(file-sharing-acs) */
98
- attachments: toAttachmentMetadata(attachments)
99
- });
100
- setContentValue('');
101
- (_a = editorComponentRef.current) === null || _a === void 0 ? void 0 : _a.setEmptyContent();
102
- (_b = editorComponentRef.current) === null || _b === void 0 ? void 0 : _b.focus();
103
- }
104
- }, [disabled, contentValueOverflow, /* @conditional-compile-remove(file-sharing-acs) */
105
- attachments, contentValue, hasContent, /* @conditional-compile-remove(file-sharing-acs) */
106
- strings.attachmentUploadsPendingError, onSendMessage, /* @conditional-compile-remove(file-sharing-acs) */
107
- toAttachmentMetadata]);
108
- const hasErrorMessage = useMemo(() => {
109
- var _a;
110
- return !!systemMessage || !!contentTooLongMessage || /* @conditional-compile-remove(file-sharing-acs) */
111
- !!attachmentUploadsPendingError || /* @conditional-compile-remove(file-sharing-acs) */
112
- !!((_a = attachments === null || attachments === void 0 ? void 0 : attachments.filter(attachmentUpload => attachmentUpload.error).pop()) === null || _a === void 0 ? void 0 : _a.error);
113
- }, [
114
- attachments, contentTooLongMessage, /* @conditional-compile-remove(file-sharing-acs) */
115
- attachmentUploadsPendingError, systemMessage
116
- ]);
117
- const onRenderSendIcon = useCallback((isHover) => {
118
- return React.createElement(Icon, { iconName: isHover && hasContent ? 'SendBoxSendHovered' : 'SendBoxSend', className: sendIconStyle({
119
- theme,
120
- hasText: hasContent,
121
- /* @conditional-compile-remove(file-sharing-acs) */
122
- hasAttachment: false,
123
- hasErrorMessage: hasErrorMessage,
124
- defaultTextColor: theme.palette.neutralSecondary,
125
- disabled: disabled
126
- }) });
127
- }, [disabled, hasContent, hasErrorMessage, theme]);
128
- const sendBoxErrorsProps = useMemo(() => {
129
- var _a, _b;
130
- /* @conditional-compile-remove(file-sharing-acs) */
131
- const uploadErrorMessage = (_b = (_a = attachments === null || attachments === void 0 ? void 0 : attachments.filter(attachmentUpload => attachmentUpload.error).pop()) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message;
132
- return {
133
- /* @conditional-compile-remove(file-sharing-acs) */
134
- attachmentUploadsPendingError: attachmentUploadsPendingError,
135
- /* @conditional-compile-remove(file-sharing-acs) */
136
- attachmentProgressError: uploadErrorMessage ? {
137
- message: uploadErrorMessage,
138
- timestamp: Date.now()
139
- } : undefined,
140
- systemMessage: systemMessage,
141
- textTooLongMessage: contentTooLongMessage
142
- };
143
- }, [
144
- attachments, contentTooLongMessage, /* @conditional-compile-remove(file-sharing-acs) */
145
- attachmentUploadsPendingError, systemMessage
146
- ]);
147
- /* @conditional-compile-remove(file-sharing-acs) */
148
- const onRenderAttachmentUploads = useCallback(() => {
149
- return React.createElement(Stack, { className: attachmentUploadCardsStyles },
150
- React.createElement(FluentV9ThemeProvider, { v8Theme: theme },
151
- React.createElement(_AttachmentUploadCards, { attachments: attachments, onCancelAttachmentUpload: onCancelAttachmentUpload, strings: {
152
- removeAttachment: strings.removeAttachment,
153
- uploading: strings.uploading,
154
- uploadCompleted: strings.uploadCompleted,
155
- attachmentMoreMenu: strings.attachmentMoreMenu
156
- } })));
157
- }, [attachments, onCancelAttachmentUpload, strings.removeAttachment, strings.uploadCompleted, strings.uploading, strings.attachmentMoreMenu, theme]);
158
- const isSendBoxButtonAriaDisabledValue = useMemo(() => {
159
- return isSendBoxButtonAriaDisabled({
160
- hasContent,
161
- /* @conditional-compile-remove(file-sharing-acs) */ hasCompletedAttachmentUploads: isAttachmentUploadCompleted(attachments),
162
- hasError: hasErrorMessage,
163
- disabled
164
- });
165
- }, [/* @conditional-compile-remove(file-sharing-acs) */ attachments, disabled, hasContent, hasErrorMessage]);
166
- const sendButton = useMemo(() => {
167
- return React.createElement(InputBoxButton, { onRenderIcon: onRenderSendIcon, onClick: e => {
168
- sendMessageOnClick();
169
- e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.
170
- }, className: richTextActionButtonsStyle, ariaLabel: localeStrings.sendButtonAriaLabel, tooltipContent: localeStrings.sendButtonAriaLabel, ariaDisabled: isSendBoxButtonAriaDisabledValue });
171
- }, [isSendBoxButtonAriaDisabledValue, localeStrings.sendButtonAriaLabel, onRenderSendIcon, sendMessageOnClick]);
172
- /* @conditional-compile-remove(file-sharing-acs) */
173
- const hasAttachmentUploads = useMemo(() => {
174
- return isAttachmentUploadCompleted(attachments) || hasIncompleteAttachmentUploads(attachments);
175
- }, [attachments]);
176
- return React.createElement(Stack, null,
177
- React.createElement(RichTextSendBoxErrors, Object.assign({}, sendBoxErrorsProps)),
178
- React.createElement(RichTextInputBoxComponent, { placeholderText: strings.placeholderText, autoFocus: autoFocus, onChange: setContent, onEnterKeyDown: sendMessageOnClick, onTyping: onTyping, editorComponentRef: editorComponentRef, strings: strings, disabled: disabled, actionComponents: sendButton, richTextEditorStyleProps: sendBoxRichTextEditorStyle,
179
- /* @conditional-compile-remove(file-sharing-acs) */ onRenderAttachmentUploads: onRenderAttachmentUploads,
180
- /* @conditional-compile-remove(file-sharing-acs) */ hasAttachments: hasAttachmentUploads }));
181
- };
182
- //# sourceMappingURL=RichTextSendBox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextSendBox.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/RichTextSendBox.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,yBAAyB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AAG,EAAE;QACxC,OAAO,2BAA2B,CAAC,WAAW,CAAC,IAAI,8BAA8B,CAAC,WAAW,CAAC,CAAC;IACjG,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAClB,OAAO,oBAAC,KAAK;QACT,oBAAC,qBAAqB,oBAAK,kBAAkB,EAAI;QACjD,oBAAC,yBAAyB,IAAC,eAAe,EAAE,OAAO,CAAC,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,UAAU,EAAE,wBAAwB,EAAE,0BAA0B;YAC3U,mDAAmD,CAAC,yBAAyB,EAAE,yBAAyB;YACxG,mDAAmD,CAAC,cAAc,EAAE,oBAAoB,GAAI,CACpF,CAAC;AACb,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\nimport { RichTextInputBoxComponent } from './RichTextInputBoxComponent';\nimport { Icon, Stack } from '@fluentui/react';\nimport { useLocale } from '../../localization';\nimport { SendBoxStrings } from '../SendBox';\nimport { sendIconStyle } from '../styles/SendBox.styles';\nimport { InputBoxButton } from '../InputBoxButton';\nimport { RichTextSendBoxErrors, RichTextSendBoxErrorsProps } from './RichTextSendBoxErrors';\nimport { isMessageTooLong, isSendBoxButtonAriaDisabled, sanitizeText } from '../utils/SendBoxUtils';\nimport { RichTextEditorComponentRef } from './RichTextEditor';\nimport { useTheme } from '../../theming';\nimport { richTextActionButtonsStyle, sendBoxRichTextEditorStyle } from '../styles/RichTextEditor.styles';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { _AttachmentUploadCards } from '../Attachment/AttachmentUploadCards';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { AttachmentMetadataInProgress, MessageOptions } from '@internal/acs-ui-common';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { isAttachmentUploadCompleted, hasIncompleteAttachmentUploads } from '../utils/SendBoxUtils';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { SendBoxErrorBarError } from '../SendBoxErrorBar';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { attachmentUploadCardsStyles } from '../styles/SendBox.styles';\n/* @conditional-compile-remove(file-sharing-acs) */\nimport { FluentV9ThemeProvider } from '../../theming/FluentV9ThemeProvider';\n\n/**\n * Strings of {@link RichTextSendBox} that can be overridden.\n *\n * @beta\n */\nexport interface RichTextSendBoxStrings extends RichTextStrings, SendBoxStrings {}\n\n/**\n * Strings of RichText that can be overridden.\n *\n * @beta\n */\nexport interface RichTextStrings {\n /**\n * Tooltip text for the bold button.\n */\n richTextBoldTooltip: string;\n /**\n * Tooltip text for the italic button.\n */\n richTextItalicTooltip: string;\n /**\n * Tooltip text for the underline button.\n */\n richTextUnderlineTooltip: string;\n /**\n * Tooltip text for the bullet list button.\n */\n richTextBulletListTooltip: string;\n /**\n * Tooltip text for the number list button.\n */\n richTextNumberListTooltip: string;\n /**\n * Tooltip text for the increase indent button.\n */\n richTextIncreaseIndentTooltip: string;\n /**\n * Tooltip text for the decrease indent button.\n */\n richTextDecreaseIndentTooltip: string;\n /**\n * Tooltip text insert table button.\n */\n richTextInsertTableTooltip: string;\n /**\n * Tooltip text for the rich text format button button.\n */\n richTextFormatButtonTooltip: string;\n /**\n * Text for the insert menu item.\n */\n richTextInsertRowOrColumnMenu: string;\n /**\n * Title for the insert table menu.\n */\n richTextInsertTableMenuTitle: string;\n /**\n * Text for the insert menu item to insert row above the current selection.\n */\n richTextInsertRowAboveMenu: string;\n /**\n * Text for the insert menu item to insert row below the current selection.\n */\n richTextInsertRowBelowMenu: string;\n /**\n * Text for the insert menu item to insert column to the left from the current selection.\n */\n richTextInsertColumnLeftMenu: string;\n /**\n * Text for the insert menu item to insert column to the right from the current selection.\n */\n richTextInsertColumnRightMenu: string;\n /**\n * Text for the delete row or column menu.\n */\n richTextDeleteRowOrColumnMenu: string;\n /**\n * Text for the delete column menu.\n */\n richTextDeleteColumnMenu: string;\n /**\n * Text for the delete row menu.\n */\n richTextDeleteRowMenu: string;\n /**\n * Text for the delete table menu.\n */\n richTextDeleteTableMenu: string;\n /**\n * Text for the rich text toolbar more button.\n */\n richTextToolbarMoreButtonAriaLabel: string;\n}\n\n/**\n * Props for {@link RichTextSendBox}.\n *\n * @beta\n */\nexport interface RichTextSendBoxProps {\n /**\n * Optional boolean to disable text box\n * @defaultValue false\n */\n disabled?: boolean;\n /**\n * Optional strings to override in component\n */\n strings?: Partial<RichTextSendBoxStrings>;\n /**\n * Optional text for system message above the text box\n */\n systemMessage?: string;\n /* @conditional-compile-remove(file-sharing-acs) */\n /**\n * Optional array of type {@link AttachmentMetadataInProgress}\n * to render attachments being uploaded in the SendBox.\n * @beta\n */\n attachments?: AttachmentMetadataInProgress[];\n /**\n * enumerable to determine if the input box has focus on render or not.\n * When undefined nothing has focus on render\n */\n autoFocus?: 'sendBoxTextField';\n /* @conditional-compile-remove(file-sharing-acs) */\n /**\n * Optional callback to remove the attachment upload before sending by clicking on\n * cancel icon.\n * @beta\n */\n onCancelAttachmentUpload?: (attachmentId: string) => void;\n /**\n * Callback function used when the send button is clicked.\n */\n onSendMessage: (content: string, /* @conditional-compile-remove(file-sharing-acs) */\n options?: MessageOptions) => Promise<void>;\n /**\n * Optional callback called when user is typing\n */\n onTyping?: () => Promise<void>;\n}\n\n/**\n * A component to render SendBox with Rich Text Editor support.\n *\n * @beta\n */\nexport const RichTextSendBox = (props: RichTextSendBoxProps): JSX.Element => {\n const {\n disabled = false,\n systemMessage,\n autoFocus,\n onSendMessage,\n onTyping,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachments,\n /* @conditional-compile-remove(file-sharing-acs) */\n onCancelAttachmentUpload\n } = props;\n const theme = useTheme();\n const locale = useLocale();\n const localeStrings = useMemo(() => {\n /* @conditional-compile-remove(rich-text-editor) */\n return locale.strings.richTextSendBox;\n return locale.strings.sendBox;\n }, [/* @conditional-compile-remove(rich-text-editor) */locale.strings.richTextSendBox, locale.strings.sendBox]);\n const strings = useMemo(() => {\n return {\n ...localeStrings,\n ...props.strings\n };\n }, [localeStrings, props.strings]);\n const [contentValue, setContentValue] = useState('');\n const [contentValueOverflow, setContentValueOverflow] = useState(false);\n /* @conditional-compile-remove(file-sharing-acs) */\n const [attachmentUploadsPendingError, setAttachmentUploadsPendingError] = useState<SendBoxErrorBarError | undefined>(undefined);\n const editorComponentRef = useRef<RichTextEditorComponentRef>(null);\n const contentTooLongMessage = useMemo(() => contentValueOverflow ? strings.textTooLong : undefined, [contentValueOverflow, strings.textTooLong]);\n const setContent = useCallback((newValue?: string): void => {\n if (newValue === undefined) {\n return;\n }\n setContentValueOverflow(isMessageTooLong(newValue.length));\n setContentValue(newValue);\n }, []);\n const hasContent = useMemo(() => {\n // get plain text content from the editor to check if the message is empty\n // as the content may contain tags even when the content is empty\n const plainTextContent = editorComponentRef.current?.getPlainContent();\n return sanitizeText(contentValue ?? '').length > 0 && sanitizeText(plainTextContent ?? '').length > 0;\n }, [contentValue]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const toAttachmentMetadata = useCallback((attachmentsWithProgress: AttachmentMetadataInProgress[] | undefined) => {\n return attachmentsWithProgress?.filter(attachment => {\n return !('error' in attachment) && !attachment.error?.message;\n }).map(attachment => {\n return {\n id: attachment.id,\n name: attachment.name,\n url: attachment.url ?? ''\n };\n });\n }, []);\n const sendMessageOnClick = useCallback((): void => {\n if (disabled || contentValueOverflow) {\n return;\n }\n // Don't send message until all attachments have been uploaded successfully\n /* @conditional-compile-remove(file-sharing-acs) */\n setAttachmentUploadsPendingError(undefined);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n if (hasIncompleteAttachmentUploads(attachments)) {\n setAttachmentUploadsPendingError({\n message: strings.attachmentUploadsPendingError,\n timestamp: Date.now()\n });\n return;\n }\n const message = contentValue;\n\n // we don't want to send empty messages including spaces, newlines, tabs\n // Message can be empty if there is a valid attachment upload\n if (hasContent || /* @conditional-compile-remove(file-sharing-acs) */isAttachmentUploadCompleted(attachments)) {\n onSendMessage(message, /* @conditional-compile-remove(file-sharing-acs) */ /* @conditional-compile-remove(rich-text-editor-composite-support) */\n {\n /* @conditional-compile-remove(file-sharing-acs) */\n attachments: toAttachmentMetadata(attachments)\n });\n setContentValue('');\n editorComponentRef.current?.setEmptyContent();\n editorComponentRef.current?.focus();\n }\n }, [disabled, contentValueOverflow, /* @conditional-compile-remove(file-sharing-acs) */\n attachments, contentValue, hasContent, /* @conditional-compile-remove(file-sharing-acs) */\n strings.attachmentUploadsPendingError, onSendMessage, /* @conditional-compile-remove(file-sharing-acs) */\n toAttachmentMetadata]);\n const hasErrorMessage = useMemo(() => {\n return !!systemMessage || !!contentTooLongMessage || /* @conditional-compile-remove(file-sharing-acs) */\n !!attachmentUploadsPendingError || /* @conditional-compile-remove(file-sharing-acs) */\n !!attachments?.filter(attachmentUpload => attachmentUpload.error).pop()?.error;\n }, [/* @conditional-compile-remove(file-sharing-acs) */\n attachments, contentTooLongMessage, /* @conditional-compile-remove(file-sharing-acs) */\n attachmentUploadsPendingError, systemMessage]);\n const onRenderSendIcon = useCallback((isHover: boolean) => {\n return <Icon iconName={isHover && hasContent ? 'SendBoxSendHovered' : 'SendBoxSend'} className={sendIconStyle({\n theme,\n hasText: hasContent,\n /* @conditional-compile-remove(file-sharing-acs) */\n hasAttachment: false,\n hasErrorMessage: hasErrorMessage,\n defaultTextColor: theme.palette.neutralSecondary,\n disabled: disabled\n })} />;\n }, [disabled, hasContent, hasErrorMessage, theme]);\n const sendBoxErrorsProps: RichTextSendBoxErrorsProps = useMemo(() => {\n /* @conditional-compile-remove(file-sharing-acs) */\n const uploadErrorMessage = attachments?.filter(attachmentUpload => attachmentUpload.error).pop()?.error?.message;\n return {\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentUploadsPendingError: attachmentUploadsPendingError,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentProgressError: uploadErrorMessage ? {\n message: uploadErrorMessage,\n timestamp: Date.now()\n } : undefined,\n systemMessage: systemMessage,\n textTooLongMessage: contentTooLongMessage\n };\n }, [/* @conditional-compile-remove(file-sharing-acs) */\n attachments, contentTooLongMessage, /* @conditional-compile-remove(file-sharing-acs) */\n attachmentUploadsPendingError, systemMessage]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const onRenderAttachmentUploads = useCallback(() => {\n return <Stack className={attachmentUploadCardsStyles}>\n <FluentV9ThemeProvider v8Theme={theme}>\n <_AttachmentUploadCards attachments={attachments} onCancelAttachmentUpload={onCancelAttachmentUpload} strings={{\n removeAttachment: strings.removeAttachment,\n uploading: strings.uploading,\n uploadCompleted: strings.uploadCompleted,\n attachmentMoreMenu: strings.attachmentMoreMenu\n }} />\n </FluentV9ThemeProvider>\n </Stack>;\n }, [attachments, onCancelAttachmentUpload, strings.removeAttachment, strings.uploadCompleted, strings.uploading, strings.attachmentMoreMenu, theme]);\n const isSendBoxButtonAriaDisabledValue = useMemo(() => {\n return isSendBoxButtonAriaDisabled({\n hasContent,\n /* @conditional-compile-remove(file-sharing-acs) */hasCompletedAttachmentUploads: isAttachmentUploadCompleted(attachments),\n hasError: hasErrorMessage,\n disabled\n });\n }, [/* @conditional-compile-remove(file-sharing-acs) */attachments, disabled, hasContent, hasErrorMessage]);\n const sendButton = useMemo(() => {\n return <InputBoxButton onRenderIcon={onRenderSendIcon} onClick={e => {\n sendMessageOnClick();\n e.stopPropagation(); // Prevents the click from bubbling up and triggering a focus event on the chat.\n }} className={richTextActionButtonsStyle} ariaLabel={localeStrings.sendButtonAriaLabel} tooltipContent={localeStrings.sendButtonAriaLabel} ariaDisabled={isSendBoxButtonAriaDisabledValue} />;\n }, [isSendBoxButtonAriaDisabledValue, localeStrings.sendButtonAriaLabel, onRenderSendIcon, sendMessageOnClick]);\n\n /* @conditional-compile-remove(file-sharing-acs) */\n const hasAttachmentUploads = useMemo(() => {\n return isAttachmentUploadCompleted(attachments) || hasIncompleteAttachmentUploads(attachments);\n }, [attachments]);\n return <Stack>\n <RichTextSendBoxErrors {...sendBoxErrorsProps} />\n <RichTextInputBoxComponent placeholderText={strings.placeholderText} autoFocus={autoFocus} onChange={setContent} onEnterKeyDown={sendMessageOnClick} onTyping={onTyping} editorComponentRef={editorComponentRef} strings={strings} disabled={disabled} actionComponents={sendButton} richTextEditorStyleProps={sendBoxRichTextEditorStyle}\n /* @conditional-compile-remove(file-sharing-acs) */ onRenderAttachmentUploads={onRenderAttachmentUploads}\n /* @conditional-compile-remove(file-sharing-acs) */ hasAttachments={hasAttachmentUploads} />\n </Stack>;\n};"]}
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { SendBoxErrorBarError } from '../SendBoxErrorBar';
3
- /**
4
- * @private
5
- */
6
- export interface RichTextSendBoxErrorsProps {
7
- attachmentUploadsPendingError?: SendBoxErrorBarError;
8
- attachmentProgressError?: SendBoxErrorBarError;
9
- systemMessage?: string;
10
- textTooLongMessage?: string;
11
- }
12
- /**
13
- * @private
14
- */
15
- export declare const RichTextSendBoxErrors: (props: RichTextSendBoxErrorsProps) => JSX.Element;
16
- //# sourceMappingURL=RichTextSendBoxErrors.d.ts.map
@@ -1,73 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import React, { useCallback, useEffect, useState } from 'react';
4
- import { SendBoxErrorBar } from '../SendBoxErrorBar';
5
- /**
6
- * @private
7
- */
8
- export const RichTextSendBoxErrors = (props) => {
9
- const {
10
- /* @conditional-compile-remove(file-sharing-acs) */
11
- attachmentProgressError,
12
- /* @conditional-compile-remove(file-sharing-acs) */
13
- attachmentUploadsPendingError, systemMessage, textTooLongMessage } = props;
14
- const [sendBoxError, setSendBoxError] = useState(undefined);
15
- useEffect(() => {
16
- if (systemMessage && !isMessageEmpty(systemMessage)) {
17
- setSendBoxError({
18
- message: systemMessage,
19
- timestamp: Date.now()
20
- });
21
- }
22
- }, [systemMessage]);
23
- useEffect(() => {
24
- if (textTooLongMessage && !isMessageEmpty(textTooLongMessage)) {
25
- setSendBoxError({
26
- message: textTooLongMessage,
27
- timestamp: Date.now()
28
- });
29
- }
30
- }, [textTooLongMessage]);
31
- useEffect(() => {
32
- if ((textTooLongMessage === undefined || isMessageEmpty(textTooLongMessage)) && (systemMessage === undefined || isMessageEmpty(systemMessage))) {
33
- setSendBoxError(undefined);
34
- }
35
- }, [systemMessage, textTooLongMessage]);
36
- useEffect(() => {
37
- setSendBoxError(prev => {
38
- const errors = [];
39
- if (prev) {
40
- errors.push(prev);
41
- }
42
- /* @conditional-compile-remove(file-sharing-acs) */
43
- if (attachmentUploadsPendingError) {
44
- errors.push(attachmentUploadsPendingError);
45
- }
46
- /* @conditional-compile-remove(file-sharing-acs) */
47
- if (attachmentProgressError) {
48
- errors.push(attachmentProgressError);
49
- }
50
- if (errors.length === 0) {
51
- return undefined;
52
- }
53
- // sort to get the latest error
54
- const sortedErrors = errors.sort((a, b) => b.timestamp - a.timestamp);
55
- return sortedErrors[0];
56
- });
57
- }, [/* @conditional-compile-remove(file-sharing-acs) */ attachmentProgressError, /* @conditional-compile-remove(file-sharing-acs) */ attachmentUploadsPendingError]);
58
- const onDismiss = useCallback(() => {
59
- if (systemMessage && !isMessageEmpty(systemMessage)) {
60
- setSendBoxError({
61
- message: systemMessage,
62
- timestamp: Date.now()
63
- });
64
- }
65
- }, [systemMessage]);
66
- return React.createElement(SendBoxErrorBar, { error: sendBoxError, dismissAfterMs:
67
- // don't dismiss the system message
68
- systemMessage !== undefined && (sendBoxError === null || sendBoxError === void 0 ? void 0 : sendBoxError.message) !== systemMessage ? 10 * 1000 : undefined, onDismiss: onDismiss });
69
- };
70
- const isMessageEmpty = (message) => {
71
- return message.trim().length === 0;
72
- };
73
- //# sourceMappingURL=RichTextSendBoxErrors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextSendBoxErrors.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.tsx"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,eAAe,EAAwB,MAAM,oBAAoB,CAAC;AAc3E;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAiC,EAAe,EAAE;IACtF,MAAM;IACJ,mDAAmD;IACnD,uBAAuB;IACvB,mDAAmD;IACnD,6BAA6B,EAC7B,aAAa,EACb,kBAAkB,EACnB,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAmC,SAAS,CAAC,CAAC;IAC9F,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,aAAa,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,CAAC;YACpD,eAAe,CAAC;gBACd,OAAO,EAAE,aAAa;gBACtB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAC,CAAC;QACL,CAAC;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IACpB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,kBAAkB,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC9D,eAAe,CAAC;gBACd,OAAO,EAAE,kBAAkB;gBAC3B,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;aACtB,CAAC,CAAC;QACL,CAAC;IACH,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,kBAAkB,KAAK,SAAS,IAAI,cAAc,CAAC,kBAAkB,CAAC,CAAC,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,cAA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AAC,CAAC,CAAC;IACpB,OAAO,oBAAC,eAAe,IAAC,KAAK,EAAE,YAAY,EAAE,cAAc;QAC3D,mCAAmC;QACnC,aAAa,KAAK,SAAS,IAAI,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,OAAO,MAAK,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;AAC3H,CAAC,CAAC;AACF,MAAM,cAAc,GAAG,CAAC,OAAe,EAAW,EAAE;IAClD,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;AACrC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { SendBoxErrorBar, SendBoxErrorBarError } from '../SendBoxErrorBar';\n\n/**\n * @private\n */\nexport interface RichTextSendBoxErrorsProps {\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentUploadsPendingError?: SendBoxErrorBarError;\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentProgressError?: SendBoxErrorBarError;\n systemMessage?: string;\n textTooLongMessage?: string;\n}\n\n/**\n * @private\n */\nexport const RichTextSendBoxErrors = (props: RichTextSendBoxErrorsProps): JSX.Element => {\n const {\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentProgressError,\n /* @conditional-compile-remove(file-sharing-acs) */\n attachmentUploadsPendingError,\n systemMessage,\n textTooLongMessage\n } = props;\n const [sendBoxError, setSendBoxError] = useState<SendBoxErrorBarError | undefined>(undefined);\n useEffect(() => {\n if (systemMessage && !isMessageEmpty(systemMessage)) {\n setSendBoxError({\n message: systemMessage,\n timestamp: Date.now()\n });\n }\n }, [systemMessage]);\n useEffect(() => {\n if (textTooLongMessage && !isMessageEmpty(textTooLongMessage)) {\n setSendBoxError({\n message: textTooLongMessage,\n timestamp: Date.now()\n });\n }\n }, [textTooLongMessage]);\n useEffect(() => {\n if ((textTooLongMessage === undefined || isMessageEmpty(textTooLongMessage)) && (systemMessage === undefined || isMessageEmpty(systemMessage))) {\n setSendBoxError(undefined);\n }\n }, [systemMessage, textTooLongMessage]);\n useEffect(() => {\n setSendBoxError(prev => {\n const errors: SendBoxErrorBarError[] = [];\n if (prev) {\n errors.push(prev);\n }\n /* @conditional-compile-remove(file-sharing-acs) */\n if (attachmentUploadsPendingError) {\n errors.push(attachmentUploadsPendingError);\n }\n /* @conditional-compile-remove(file-sharing-acs) */\n if (attachmentProgressError) {\n errors.push(attachmentProgressError);\n }\n if (errors.length === 0) {\n return undefined;\n }\n // sort to get the latest error\n const sortedErrors = errors.sort((a, b) => b.timestamp - a.timestamp);\n return sortedErrors[0];\n });\n }, [/* @conditional-compile-remove(file-sharing-acs) */attachmentProgressError, /* @conditional-compile-remove(file-sharing-acs) */attachmentUploadsPendingError]);\n const onDismiss = useCallback(() => {\n if (systemMessage && !isMessageEmpty(systemMessage)) {\n setSendBoxError({\n message: systemMessage,\n timestamp: Date.now()\n });\n }\n }, [systemMessage]);\n return <SendBoxErrorBar error={sendBoxError} dismissAfterMs={\n // don't dismiss the system message\n systemMessage !== undefined && sendBoxError?.message !== systemMessage ? 10 * 1000 : undefined} onDismiss={onDismiss} />;\n};\nconst isMessageEmpty = (message: string): boolean => {\n return message.trim().length === 0;\n};"]}
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { RichTextToolbarPlugin } from '../Plugins/RichTextToolbarPlugin';
3
- import { RichTextStrings } from '../RichTextSendBox';
4
- /**
5
- * Props for {@link RichTextToolbar}.
6
- *
7
- * @private
8
- */
9
- export interface RichTextToolbarProps {
10
- plugin: RichTextToolbarPlugin;
11
- strings: Partial<RichTextStrings>;
12
- }
13
- /**
14
- * A component to display rich text toolbar.
15
- *
16
- * @beta
17
- */
18
- export declare const RichTextToolbar: (props: RichTextToolbarProps) => JSX.Element;
19
- //# sourceMappingURL=RichTextToolbar.d.ts.map