@azure/communication-react 1.25.0-beta.1 → 1.25.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 (541) hide show
  1. package/dist/communication-react.d.ts +101 -2237
  2. package/dist/dist-cjs/communication-react/index.js +38066 -177
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/common.d.ts +0 -13
  5. package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/constants.d.ts +0 -5
  7. package/dist/dist-esm/acs-ui-common/src/constants.js +0 -5
  8. package/dist/dist-esm/acs-ui-common/src/constants.js.map +1 -1
  9. package/dist/dist-esm/acs-ui-common/src/index.d.ts +0 -4
  10. package/dist/dist-esm/acs-ui-common/src/index.js +0 -3
  11. package/dist/dist-esm/acs-ui-common/src/index.js.map +1 -1
  12. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  13. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  14. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +0 -14
  15. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +0 -16
  16. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +0 -8
  18. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +2 -64
  19. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +2 -7
  21. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  22. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +0 -28
  23. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +1 -65
  24. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  25. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +1 -30
  26. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +1 -1
  27. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -1
  28. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  29. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js +2 -21
  30. package/dist/dist-esm/calling-component-bindings/src/notificationStackSelector.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.d.ts +0 -1
  32. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +1 -3
  33. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  34. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts +0 -5
  35. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +3 -8
  36. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  37. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +0 -4
  38. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  39. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +12 -159
  40. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +8 -1
  41. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  42. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +0 -23
  43. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +0 -229
  44. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  45. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -6
  46. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +4 -30
  47. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  48. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +0 -12
  49. package/dist/dist-esm/calling-stateful-client/src/Converter.js +0 -32
  50. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  51. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +0 -9
  52. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +1 -45
  53. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  54. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.d.ts +0 -1
  55. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js +1 -7
  56. package/dist/dist-esm/calling-stateful-client/src/RecordingSubscriber.js.map +1 -1
  57. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +2 -3
  58. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +0 -7
  59. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  60. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js +0 -8
  61. package/dist/dist-esm/calling-stateful-client/src/StreamUtils.js.map +1 -1
  62. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -17
  63. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +1 -1
  64. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -3
  65. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  66. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +2 -6
  67. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js +2 -35
  68. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  69. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +2 -3
  70. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js +0 -3
  71. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  72. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +2 -25
  73. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  74. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
  75. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  76. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.d.ts +1 -15
  77. package/dist/dist-esm/chat-stateful-client/src/ChatClientState.js.map +1 -1
  78. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -2
  79. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  80. package/dist/dist-esm/chat-stateful-client/src/index.d.ts +0 -1
  81. package/dist/dist-esm/chat-stateful-client/src/index.js.map +1 -1
  82. package/dist/dist-esm/communication-react/src/index.d.ts +1 -36
  83. package/dist/dist-esm/communication-react/src/index.js +0 -9
  84. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  85. package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +2 -2
  86. package/dist/dist-esm/communication-react/src/mergedHooks.js.map +1 -1
  87. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js +1 -1
  88. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentCard.js.map +1 -1
  89. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.d.ts +0 -2
  90. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js +0 -1
  91. package/dist/dist-esm/react-components/src/components/Attachment/AttachmentDownloadCards.js.map +1 -1
  92. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -101
  93. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +6 -83
  94. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  95. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.d.ts +1 -13
  96. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js +3 -9
  97. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  98. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -11
  99. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +2 -32
  100. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  101. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.d.ts +1 -8
  102. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js +5 -9
  103. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/ChatMessageComponentAsMessageBubble.js.map +1 -1
  104. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.d.ts +1 -2
  105. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js +4 -4
  106. package/dist/dist-esm/react-components/src/components/ChatMessage/MessageComponents/FluentChatMessageComponent.js.map +1 -1
  107. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.d.ts +1 -4
  108. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js +6 -31
  109. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBox.js.map +1 -1
  110. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.d.ts +1 -15
  111. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js +0 -9
  112. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsEditBoxPicker.js.map +1 -1
  113. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.d.ts +2 -23
  114. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js +6 -17
  115. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponent.js.map +1 -1
  116. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.d.ts +1 -8
  117. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js +6 -10
  118. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMyMessageComponentAsMessageBubble.js.map +1 -1
  119. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js +5 -5
  120. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/FluentChatMyMessageComponent.js.map +1 -1
  121. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +0 -2
  122. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -1
  123. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
  124. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -15
  125. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  126. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.d.ts +0 -2
  127. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js +1 -5
  128. package/dist/dist-esm/react-components/src/components/MeetingReactionOverlay.js.map +1 -1
  129. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +5 -81
  130. package/dist/dist-esm/react-components/src/components/MessageThread.js +3 -13
  131. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  132. package/dist/dist-esm/react-components/src/components/NotificationStack.d.ts +0 -2
  133. package/dist/dist-esm/react-components/src/components/NotificationStack.js.map +1 -1
  134. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +0 -15
  135. package/dist/dist-esm/react-components/src/components/ParticipantList.js +3 -12
  136. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  137. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -47
  138. package/dist/dist-esm/react-components/src/components/SendBox.js +6 -57
  139. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  140. package/dist/dist-esm/react-components/src/components/SystemMessage.js +2 -2
  141. package/dist/dist-esm/react-components/src/components/SystemMessage.js.map +1 -1
  142. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -1
  143. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  144. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -1
  145. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  146. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -19
  147. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  148. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -1
  149. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  150. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js +1 -1
  151. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.js.map +1 -1
  152. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -5
  153. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  154. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.d.ts +2 -0
  155. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js +16 -2
  156. package/dist/dist-esm/react-components/src/components/VideoGallery/LocalScreenShare.js.map +1 -1
  157. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js +2 -2
  158. package/dist/dist-esm/react-components/src/components/VideoGallery/RemoteScreenShare.js.map +1 -1
  159. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.d.ts +22 -0
  160. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js +44 -0
  161. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/LocalScreenShare.styles.js.map +1 -0
  162. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.d.ts +5 -0
  163. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js +10 -0
  164. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/RemoteScreenShare.styles.js.map +1 -1
  165. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +9 -34
  166. package/dist/dist-esm/react-components/src/components/VideoGallery.js +3 -14
  167. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  168. package/dist/dist-esm/react-components/src/components/index.d.ts +1 -25
  169. package/dist/dist-esm/react-components/src/components/index.js +0 -11
  170. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  171. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.d.ts +1 -1
  172. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js +0 -3
  173. package/dist/dist-esm/react-components/src/components/styles/AttachmentCard.styles.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/styles/AttachmentCardGroup.styles.d.ts +1 -1
  175. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +0 -25
  176. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +0 -66
  177. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  178. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +3 -3
  179. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +4 -16
  180. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.d.ts +1 -37
  182. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js +3 -30
  183. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentAsEditBoxUtils.js.map +1 -1
  184. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.d.ts +2 -4
  185. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js +2 -9
  186. package/dist/dist-esm/react-components/src/components/utils/ChatMessageComponentUtils.js.map +1 -1
  187. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.d.ts +1 -38
  188. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js +4 -131
  189. package/dist/dist-esm/react-components/src/components/utils/SendBoxUtils.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -2
  191. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  192. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
  193. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  194. package/dist/dist-esm/react-components/src/components/utils.js +1 -3
  195. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  196. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -4
  197. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -3
  198. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  199. package/dist/dist-esm/react-components/src/index.d.ts +0 -2
  200. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -63
  202. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  203. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -29
  204. package/dist/dist-esm/react-components/src/theming/icons.js +1 -91
  205. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  206. package/dist/dist-esm/react-components/src/theming/themes.d.ts +0 -6
  207. package/dist/dist-esm/react-components/src/theming/themes.js +0 -9
  208. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js +1 -3
  210. package/dist/dist-esm/react-components/src/theming/v9ThemeShim.js.map +1 -1
  211. package/dist/dist-esm/react-components/src/types/Attachment.d.ts +0 -13
  212. package/dist/dist-esm/react-components/src/types/Attachment.js.map +1 -1
  213. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -20
  214. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/types/index.d.ts +0 -1
  216. package/dist/dist-esm/react-components/src/types/index.js +0 -1
  217. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  218. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +17 -73
  219. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +10 -23
  220. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  221. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -64
  222. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  223. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +5 -48
  224. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +21 -72
  225. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  226. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +3 -72
  227. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  228. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  229. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +0 -3
  230. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  231. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +3 -7
  232. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  233. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -2
  234. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -19
  235. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  236. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +2 -10
  237. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  238. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -2
  239. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -19
  240. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  241. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -1
  242. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +3 -5
  243. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  244. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +2 -0
  245. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +2 -2
  246. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  247. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +1 -1
  248. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  249. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +1 -19
  250. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  251. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +0 -4
  252. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  253. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +4 -4
  254. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  255. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +12 -7
  256. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +8 -41
  257. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  258. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +2 -2
  259. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +1 -1
  260. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +2 -2
  261. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  262. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +2 -2
  263. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +1 -1
  264. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -24
  265. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -24
  266. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  267. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +1 -12
  268. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +0 -55
  269. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  270. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +15 -64
  271. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -12
  272. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  273. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +3 -20
  274. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +14 -56
  275. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  276. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +3 -73
  277. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  278. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +0 -7
  279. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +0 -12
  280. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  281. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +4 -10
  282. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +2 -14
  283. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  284. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -8
  285. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  286. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -27
  287. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +1 -2
  288. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  289. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -2
  290. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +11 -189
  291. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  292. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -20
  293. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  294. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -6
  295. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +0 -36
  296. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  297. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -12
  298. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  299. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js +2 -13
  300. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useHandlers.js.map +1 -1
  301. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -2
  302. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  303. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -4
  304. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -4
  305. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +1 -1
  306. package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.d.ts +0 -1
  307. package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js +2 -12
  308. package/dist/dist-esm/react-composites/src/composites/common/CallingCaptionsBanner.js.map +1 -1
  309. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +0 -2
  310. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +2 -12
  311. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  312. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -3
  313. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +2 -85
  314. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  315. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -3
  316. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +6 -69
  317. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  318. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -3
  319. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  320. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -2
  321. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  322. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.d.ts +2 -41
  323. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js +0 -21
  324. package/dist/dist-esm/react-composites/src/composites/common/SendBoxPicker.js.map +1 -1
  325. package/dist/dist-esm/react-composites/src/composites/common/constants.d.ts +0 -5
  326. package/dist/dist-esm/react-composites/src/composites/common/constants.js +0 -5
  327. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -1
  328. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -39
  329. package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -5
  330. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  331. package/package.json +9 -9
  332. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-DDbI_4qb.js +0 -205
  333. package/dist/dist-cjs/communication-react/ChatMessageComponentAsRichTextEditBox-DDbI_4qb.js.map +0 -1
  334. package/dist/dist-cjs/communication-react/RichTextSendBoxWrapper-DmoSn5h1.js +0 -49
  335. package/dist/dist-cjs/communication-react/RichTextSendBoxWrapper-DmoSn5h1.js.map +0 -1
  336. package/dist/dist-cjs/communication-react/index-CYhCyRf_.js +0 -45771
  337. package/dist/dist-cjs/communication-react/index-CYhCyRf_.js.map +0 -1
  338. package/dist/dist-esm/acs-ui-common/src/dataConversion.d.ts +0 -6
  339. package/dist/dist-esm/acs-ui-common/src/dataConversion.js +0 -20
  340. package/dist/dist-esm/acs-ui-common/src/dataConversion.js.map +0 -1
  341. package/dist/dist-esm/acs-ui-common/src/removeImageTags.d.ts +0 -7
  342. package/dist/dist-esm/acs-ui-common/src/removeImageTags.js +0 -18
  343. package/dist/dist-esm/acs-ui-common/src/removeImageTags.js.map +0 -1
  344. package/dist/dist-esm/calling-stateful-client/src/CallFeatureStreamUtils.d.ts +0 -14
  345. package/dist/dist-esm/calling-stateful-client/src/CallFeatureStreamUtils.js +0 -204
  346. package/dist/dist-esm/calling-stateful-client/src/CallFeatureStreamUtils.js.map +0 -1
  347. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.d.ts +0 -17
  348. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js +0 -33
  349. package/dist/dist-esm/calling-stateful-client/src/LocalRecordingSubscriber.js.map +0 -1
  350. package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.d.ts +0 -16
  351. package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.js +0 -22
  352. package/dist/dist-esm/calling-stateful-client/src/RealTimeTextSubscriber.js.map +0 -1
  353. package/dist/dist-esm/calling-stateful-client/src/TogetherModeSubscriber.d.ts +0 -24
  354. package/dist/dist-esm/calling-stateful-client/src/TogetherModeSubscriber.js +0 -60
  355. package/dist/dist-esm/calling-stateful-client/src/TogetherModeSubscriber.js.map +0 -1
  356. package/dist/dist-esm/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.d.ts +0 -18
  357. package/dist/dist-esm/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.js +0 -31
  358. package/dist/dist-esm/calling-stateful-client/src/TogetherModeVideoStreamSubscriber.js.map +0 -1
  359. package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.d.ts +0 -6
  360. package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js +0 -20
  361. package/dist/dist-esm/chat-component-bindings/src/utils/getImageAttachmentsFromHTMLContent.js.map +0 -1
  362. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
  363. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
  364. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
  365. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.d.ts +0 -24
  366. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js +0 -196
  367. package/dist/dist-esm/react-components/src/components/ChatMessage/MyMessageComponents/ChatMessageComponentAsRichTextEditBox.js.map +0 -1
  368. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  369. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -36
  370. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  371. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  372. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -67
  373. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  374. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  375. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -51
  376. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  377. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  378. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -40
  379. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  380. package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
  381. package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -119
  382. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
  383. package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.d.ts +0 -28
  384. package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js +0 -26
  385. package/dist/dist-esm/react-components/src/components/RTTDisclosureBanner.js.map +0 -1
  386. package/dist/dist-esm/react-components/src/components/RealTimeText.d.ts +0 -58
  387. package/dist/dist-esm/react-components/src/components/RealTimeText.js +0 -38
  388. package/dist/dist-esm/react-components/src/components/RealTimeText.js.map +0 -1
  389. package/dist/dist-esm/react-components/src/components/RealTimeTextModal.d.ts +0 -42
  390. package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js +0 -53
  391. package/dist/dist-esm/react-components/src/components/RealTimeTextModal.js.map +0 -1
  392. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.d.ts +0 -9
  393. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js +0 -29
  394. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/ContextMenuPlugin.js.map +0 -1
  395. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.d.ts +0 -30
  396. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js +0 -98
  397. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/CopyPastePlugin.js.map +0 -1
  398. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.d.ts +0 -19
  399. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js +0 -43
  400. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/KeyboardInputPlugin.js.map +0 -1
  401. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.d.ts +0 -15
  402. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js +0 -42
  403. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/PlaceholderPlugin.js.map +0 -1
  404. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.d.ts +0 -24
  405. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js +0 -64
  406. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/RichTextToolbarPlugin.js.map +0 -1
  407. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.d.ts +0 -20
  408. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js +0 -45
  409. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/TableEditContextMenuProvider.js.map +0 -1
  410. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UndoRedoPlugin.d.ts +0 -14
  411. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UndoRedoPlugin.js +0 -42
  412. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UndoRedoPlugin.js.map +0 -1
  413. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.d.ts +0 -30
  414. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js +0 -99
  415. package/dist/dist-esm/react-components/src/components/RichTextEditor/Plugins/UpdateContentPlugin.js.map +0 -1
  416. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.d.ts +0 -59
  417. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js +0 -332
  418. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextEditor.js.map +0 -1
  419. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.d.ts +0 -37
  420. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js +0 -78
  421. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextInputBoxComponent.js.map +0 -1
  422. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.d.ts +0 -215
  423. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js +0 -173
  424. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBox.js.map +0 -1
  425. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.d.ts +0 -16
  426. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js +0 -75
  427. package/dist/dist-esm/react-components/src/components/RichTextEditor/RichTextSendBoxErrors.js.map +0 -1
  428. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.d.ts +0 -19
  429. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js +0 -229
  430. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/RichTextToolbar.js.map +0 -1
  431. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.d.ts +0 -7
  432. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js +0 -51
  433. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTableCommandBarItem.js.map +0 -1
  434. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.d.ts +0 -15
  435. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js +0 -64
  436. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextInsertTablePane.js.map +0 -1
  437. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.d.ts +0 -6
  438. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js +0 -13
  439. package/dist/dist-esm/react-components/src/components/RichTextEditor/Toolbar/Table/RichTextToolbarTableIcon.js.map +0 -1
  440. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -56
  441. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js +0 -75
  442. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.js.map +0 -1
  443. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -14
  444. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js +0 -18
  445. package/dist/dist-esm/react-components/src/components/SendBoxErrors.js.map +0 -1
  446. package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.d.ts +0 -48
  447. package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js +0 -25
  448. package/dist/dist-esm/react-components/src/components/StartRealTimeTextButton.js.map +0 -1
  449. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -24
  450. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -550
  451. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
  452. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
  453. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -819
  454. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
  455. package/dist/dist-esm/react-components/src/components/TogetherModeOverlay.d.ts +0 -15
  456. package/dist/dist-esm/react-components/src/components/TogetherModeOverlay.js +0 -91
  457. package/dist/dist-esm/react-components/src/components/TogetherModeOverlay.js.map +0 -1
  458. package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeLayout.d.ts +0 -10
  459. package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeLayout.js +0 -14
  460. package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeLayout.js.map +0 -1
  461. package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeStream.d.ts +0 -23
  462. package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeStream.js +0 -47
  463. package/dist/dist-esm/react-components/src/components/VideoGallery/TogetherModeStream.js.map +0 -1
  464. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  465. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  466. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  467. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -26
  468. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -69
  469. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
  470. package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.d.ts +0 -10
  471. package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js +0 -23
  472. package/dist/dist-esm/react-components/src/components/styles/RTTDisclosureBanner.styles.js.map +0 -1
  473. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.d.ts +0 -82
  474. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js +0 -320
  475. package/dist/dist-esm/react-components/src/components/styles/RichTextEditor.styles.js.map +0 -1
  476. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.d.ts +0 -21
  477. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js +0 -38
  478. package/dist/dist-esm/react-components/src/components/styles/RichTextInputBoxComponent.styles.js.map +0 -1
  479. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  480. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -99
  481. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  482. package/dist/dist-esm/react-components/src/components/styles/Stack.style.d.ts +0 -5
  483. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js +0 -32
  484. package/dist/dist-esm/react-components/src/components/styles/Stack.style.js.map +0 -1
  485. package/dist/dist-esm/react-components/src/components/styles/TogetherMode.styles.d.ts +0 -98
  486. package/dist/dist-esm/react-components/src/components/styles/TogetherMode.styles.js +0 -181
  487. package/dist/dist-esm/react-components/src/components/styles/TogetherMode.styles.js.map +0 -1
  488. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  489. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -69
  490. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  491. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.d.ts +0 -73
  492. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js +0 -178
  493. package/dist/dist-esm/react-components/src/components/utils/RichTextEditorUtils.js.map +0 -1
  494. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.d.ts +0 -33
  495. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js +0 -119
  496. package/dist/dist-esm/react-components/src/components/utils/RichTextTableUtils.js.map +0 -1
  497. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  498. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  499. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  500. package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.d.ts +0 -8
  501. package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.js +0 -17
  502. package/dist/dist-esm/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.js.map +0 -1
  503. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  504. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  505. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  506. package/dist/dist-esm/react-components/src/types/TogetherModeTypes.d.ts +0 -38
  507. package/dist/dist-esm/react-components/src/types/TogetherModeTypes.js +0 -2
  508. package/dist/dist-esm/react-components/src/types/TogetherModeTypes.js.map +0 -1
  509. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -49
  510. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -203
  511. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  512. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  513. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -41
  514. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  515. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.d.ts +0 -15
  516. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js +0 -23
  517. package/dist/dist-esm/react-composites/src/composites/ChatComposite/AttachmentDownloadErrorBar.js.map +0 -1
  518. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  519. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  520. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  521. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.d.ts +0 -49
  522. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.js +0 -44
  523. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadReducer.js.map +0 -1
  524. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.d.ts +0 -39
  525. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js +0 -265
  526. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ImageUpload/ImageUploadUtils.js.map +0 -1
  527. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.d.ts +0 -80
  528. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js +0 -36
  529. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUpload.js.map +0 -1
  530. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.d.ts +0 -38
  531. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js +0 -67
  532. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/AttachmentUploadButton.js.map +0 -1
  533. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.d.ts +0 -5
  534. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js +0 -5
  535. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/index.js.map +0 -1
  536. package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.d.ts +0 -12
  537. package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.js +0 -19
  538. package/dist/dist-esm/react-composites/src/composites/common/CallingRealTimeTextModal.js.map +0 -1
  539. package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.d.ts +0 -10
  540. package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.js +0 -16
  541. package/dist/dist-esm/react-composites/src/composites/common/RichTextSendBoxWrapper.js.map +0 -1
@@ -1,73 +0,0 @@
1
- import type { BorderFormat, DatasetFormat, ModelToDomContext } from 'roosterjs-content-model-types';
2
- /**
3
- * Plugin event type for RoosterJS plugins
4
- * @private
5
- */
6
- export declare enum PluginEventType {
7
- EditorReady = "editorReady",
8
- BeforeDispose = "beforeDispose",
9
- ContentChanged = "contentChanged",
10
- BeforeSetContent = "beforeSetContent",
11
- Input = "input",
12
- KeyDown = "keyDown",
13
- BeforeCutCopy = "beforeCutCopy",
14
- BeforePaste = "beforePaste",
15
- ZoomChanged = "zoomChanged",
16
- MouseUp = "mouseUp",
17
- CompositionEnd = "compositionEnd"
18
- }
19
- /**
20
- * ContentChanged event source for RoosterJS
21
- * @private
22
- */
23
- export declare enum ContentChangedEventSource {
24
- Paste = "Paste"
25
- }
26
- /**
27
- * Applies the border format to the specified element.
28
- * If the element is an HTMLTableCellElement, it skips setting editing info
29
- * and to use classes instead of inline styles.
30
- * For all other cases, the default format applier is used.
31
- */
32
- export declare const borderApplier: (format: BorderFormat, element: HTMLElement, context: ModelToDomContext) => void;
33
- /**
34
- * Applies the dataset format to the given HTML element.
35
- * If the element is an HTMLTableElement, it skips setting editing info
36
- * and to use classes instead of inline styles.
37
- * For all other cases, it applies the default formats.
38
- */
39
- export declare const dataSetApplier: (format: DatasetFormat, element: HTMLElement, context: ModelToDomContext) => void;
40
- /**
41
- * @internal
42
- */
43
- export declare const getPreviousInlineImages: (content?: string) => Record<string, string>[];
44
- /**
45
- * @internal
46
- */
47
- export declare const getRemovedInlineImages: (content: string, previousInlineImages: Record<string, string>[]) => Record<string, string>[];
48
- /**
49
- * @internal
50
- */
51
- export declare const getInsertedInlineImages: (content: string, previousInlineImages: NodeListOf<HTMLImageElement>) => HTMLImageElement[];
52
- /**
53
- * @internal
54
- */
55
- export declare const getInlineImageAttributes: (image: HTMLImageElement) => Record<string, string>;
56
- /**
57
- * @internal
58
- */
59
- /**
60
- * Update the scroll position of the editor to ensure the content is visible.
61
- */
62
- export declare const scrollToBottomRichTextEditor: () => void;
63
- /**
64
- * Revoke the blob urls in the removedInlineImages and remove them from the currentLocalBlobMap
65
- * @internal
66
- */
67
- export declare const removeLocalBlobs: (currentLocalBlobMap: Record<string, string>, removedInlineImages: Record<string, string>[]) => void;
68
- /**
69
- * Revoke all the blob urls in the currentLocalBlobMap and clean up the currentLocalBlobMap
70
- * @internal
71
- */
72
- export declare const cleanAllLocalBlobs: (currentLocalBlobMap: Record<string, string>) => void;
73
- //# sourceMappingURL=RichTextEditorUtils.d.ts.map
@@ -1,178 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /**
4
- * Plugin event type for RoosterJS plugins
5
- * @private
6
- */
7
- export var PluginEventType;
8
- (function (PluginEventType) {
9
- PluginEventType["EditorReady"] = "editorReady";
10
- PluginEventType["BeforeDispose"] = "beforeDispose";
11
- PluginEventType["ContentChanged"] = "contentChanged";
12
- PluginEventType["BeforeSetContent"] = "beforeSetContent";
13
- PluginEventType["Input"] = "input";
14
- PluginEventType["KeyDown"] = "keyDown";
15
- PluginEventType["BeforeCutCopy"] = "beforeCutCopy";
16
- PluginEventType["BeforePaste"] = "beforePaste";
17
- PluginEventType["ZoomChanged"] = "zoomChanged";
18
- PluginEventType["MouseUp"] = "mouseUp";
19
- PluginEventType["CompositionEnd"] = "compositionEnd";
20
- })(PluginEventType || (PluginEventType = {}));
21
- /**
22
- * ContentChanged event source for RoosterJS
23
- * @private
24
- */
25
- export var ContentChangedEventSource;
26
- (function (ContentChangedEventSource) {
27
- ContentChangedEventSource["Paste"] = "Paste";
28
- })(ContentChangedEventSource || (ContentChangedEventSource = {}));
29
- /**
30
- * Applies the border format to the specified element.
31
- * If the element is an HTMLTableCellElement, it skips setting editing info
32
- * and to use classes instead of inline styles.
33
- * For all other cases, the default format applier is used.
34
- */
35
- export const borderApplier = (format, element, context) => {
36
- if (element instanceof HTMLTableCellElement) {
37
- // don't set format for table cell
38
- // as it will set inline styles for them
39
- // we want to use classes instead
40
- }
41
- else if (context.defaultFormatAppliers.border) {
42
- // apply default formats for all other cases
43
- context.defaultFormatAppliers.border(format, element, context);
44
- }
45
- };
46
- /**
47
- * Applies the dataset format to the given HTML element.
48
- * If the element is an HTMLTableElement, it skips setting editing info
49
- * and to use classes instead of inline styles.
50
- * For all other cases, it applies the default formats.
51
- */
52
- export const dataSetApplier = (format, element, context) => {
53
- if (element instanceof HTMLTableElement) {
54
- // don't set editing info for tables
55
- // as it will set inline styles for them
56
- // we want to use classes instead
57
- }
58
- else if (context.defaultFormatAppliers.dataset) {
59
- // apply default formats for all other cases
60
- context.defaultFormatAppliers.dataset(format, element, context);
61
- }
62
- };
63
- /**
64
- * @internal
65
- */
66
- export const getPreviousInlineImages = (content) => {
67
- if (!content) {
68
- return [];
69
- }
70
- const previousInlineImages = [];
71
- const document = new DOMParser().parseFromString(content !== null && content !== void 0 ? content : '', 'text/html');
72
- document.querySelectorAll('img').forEach(img => {
73
- const imageAttributes = getInlineImageAttributes(img);
74
- previousInlineImages.push(imageAttributes);
75
- });
76
- return previousInlineImages;
77
- };
78
- /**
79
- * @internal
80
- */
81
- export const getRemovedInlineImages = (content, previousInlineImages) => {
82
- const document = new DOMParser().parseFromString(content !== null && content !== void 0 ? content : '', 'text/html');
83
- const currentContentIds = Array.from(document.querySelectorAll('img')).map(img => img.id);
84
- previousInlineImages = previousInlineImages === null || previousInlineImages === void 0 ? void 0 : previousInlineImages.filter(img => !!img.id && !(currentContentIds === null || currentContentIds === void 0 ? void 0 : currentContentIds.includes(img.id)));
85
- const removedInlineImages = [...previousInlineImages];
86
- return removedInlineImages;
87
- };
88
- /**
89
- * @internal
90
- */
91
- export const getInsertedInlineImages = (content, previousInlineImages) => {
92
- const document = new DOMParser().parseFromString(content !== null && content !== void 0 ? content : '', 'text/html');
93
- const currentContentInlineImages = Array.from(document.querySelectorAll('img'));
94
- const previousContentIds = Array.from(previousInlineImages).map(img => img.id);
95
- // if check is updated, also update getRemovedInlineImages
96
- const insertedInlineImages = currentContentInlineImages.filter(img => !previousContentIds.includes(img.id));
97
- return insertedInlineImages;
98
- };
99
- /**
100
- * @internal
101
- */
102
- export const getInlineImageAttributes = (image) => {
103
- const imageAttributes = {};
104
- image.getAttributeNames().forEach(attrName => {
105
- const attrValue = image.getAttribute(attrName);
106
- if (attrValue) {
107
- imageAttributes[attrName] = attrValue;
108
- }
109
- });
110
- return imageAttributes;
111
- };
112
- /**
113
- * @internal
114
- */
115
- /**
116
- * Update the scroll position of the editor to ensure the content is visible.
117
- */
118
- export const scrollToBottomRichTextEditor = () => {
119
- // Get the current selection in the document
120
- const selection = document.getSelection();
121
- // Check if a selection exists and it has at least one range
122
- if (!selection || selection.rangeCount <= 0) {
123
- // If no selection or range, exit the function
124
- return;
125
- }
126
- // Get the first range of the selection
127
- // A user can normally only select one range at a time, so the rangeCount will usually be 1
128
- const range = selection.getRangeAt(0);
129
- // If the common ancestor container of the range is the document itself,
130
- // it might mean that the editable element is getting removed from the DOM
131
- // In such cases, especially in Safari, trying to modify the range might throw a HierarchyRequest error
132
- if (range.commonAncestorContainer === document) {
133
- return;
134
- }
135
- // Create a temporary span element to use as an anchor for scrolling
136
- // We can't use the anchor node directly because if it's a Text node, calling scrollIntoView() on it will throw an error
137
- const tempElement = document.createElement('span');
138
- // Collapse the range to its end point
139
- // This means the start and end points of the range will be the same, and it will not contain any content
140
- range.collapse(false);
141
- // Insert the temporary element at the cursor's position at the end of the range
142
- range.insertNode(tempElement);
143
- // Scroll the temporary element into view
144
- // the element will be aligned at the center of the scroll container, otherwise, text and images may be positioned incorrectly
145
- tempElement.scrollIntoView({
146
- block: 'center'
147
- });
148
- tempElement.remove();
149
- };
150
- /**
151
- * Revoke the blob urls in the removedInlineImages and remove them from the currentLocalBlobMap
152
- * @internal
153
- */
154
- export const removeLocalBlobs = (currentLocalBlobMap, removedInlineImages) => {
155
- removedInlineImages.forEach(image => {
156
- if (!image.id) {
157
- return;
158
- }
159
- removeSingleLocalBlob(currentLocalBlobMap, image.id);
160
- });
161
- };
162
- /**
163
- * Revoke all the blob urls in the currentLocalBlobMap and clean up the currentLocalBlobMap
164
- * @internal
165
- */
166
- export const cleanAllLocalBlobs = (currentLocalBlobMap) => {
167
- Object.keys(currentLocalBlobMap).forEach(imageId => {
168
- removeSingleLocalBlob(currentLocalBlobMap, imageId);
169
- });
170
- };
171
- const removeSingleLocalBlob = (currentLocalBlobMap, imageId) => {
172
- const blobUrl = currentLocalBlobMap[imageId];
173
- if (blobUrl) {
174
- URL.revokeObjectURL(blobUrl);
175
- delete currentLocalBlobMap[imageId];
176
- }
177
- };
178
- //# sourceMappingURL=RichTextEditorUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextEditorUtils.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/utils/RichTextEditorUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;GAGG;AACH,MAAM,CAAN,IAAY,eAYX;AAZD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,kDAA+B,CAAA;IAC/B,oDAAiC,CAAA;IACjC,wDAAqC,CAAA;IACrC,kCAAe,CAAA;IACf,sCAAmB,CAAA;IACnB,kDAA+B,CAAA;IAC/B,8CAA2B,CAAA;IAC3B,8CAA2B,CAAA;IAC3B,sCAAmB,CAAA;IACnB,oDAAiC,CAAA;AACnC,CAAC,EAZW,eAAe,KAAf,eAAe,QAY1B;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,yBAEX;AAFD,WAAY,yBAAyB;IACnC,4CAAe,CAAA;AACjB,CAAC,EAFW,yBAAyB,KAAzB,yBAAyB,QAEpC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAoB,EAAE,OAAoB,EAAE,OAA0B,EAAQ,EAAE;IAC5G,IAAI,OAAO,YAAY,oBAAoB,EAAE,CAAC;QAC5C,kCAAkC;QAClC,wCAAwC;QACxC,iCAAiC;IACnC,CAAC;SAAM,IAAI,OAAO,CAAC,qBAAqB,CAAC,MAAM,EAAE,CAAC;QAChD,4CAA4C;QAC5C,OAAO,CAAC,qBAAqB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;AACH,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAA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2C,EAAE,mBAA6C,EAAQ,EAAE;IACnI,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAClC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;YACd,OAAO;QACT,CAAC;QACD,qBAAqB,CAAC,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AACF;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,mBAA2C,EAAQ,EAAE;IACtF,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACjD,qBAAqB,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AACF,MAAM,qBAAqB,GAAG,CAAC,mBAA2C,EAAE,OAAe,EAAQ,EAAE;IACnG,MAAM,OAAO,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC7C,IAAI,OAAO,EAAE,CAAC;QACZ,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAC7B,OAAO,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;AACH,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BorderFormat, DatasetFormat, ModelToDomContext } from 'roosterjs-content-model-types';\n\n/**\n * Plugin event type for RoosterJS plugins\n * @private\n */\nexport enum PluginEventType {\n EditorReady = 'editorReady',\n BeforeDispose = 'beforeDispose',\n ContentChanged = 'contentChanged',\n BeforeSetContent = 'beforeSetContent',\n Input = 'input',\n KeyDown = 'keyDown',\n BeforeCutCopy = 'beforeCutCopy',\n BeforePaste = 'beforePaste',\n ZoomChanged = 'zoomChanged',\n MouseUp = 'mouseUp',\n CompositionEnd = 'compositionEnd',\n}\n\n/**\n * ContentChanged event source for RoosterJS\n * @private\n */\nexport enum ContentChangedEventSource {\n Paste = 'Paste',\n}\n\n/**\n * Applies the border format to the specified element.\n * If the element is an HTMLTableCellElement, it skips setting editing info\n * and to use classes instead of inline styles.\n * For all other cases, the default format applier is used.\n */\nexport const borderApplier = (format: BorderFormat, element: HTMLElement, context: ModelToDomContext): void => {\n if (element instanceof HTMLTableCellElement) {\n // don't set format for table cell\n // as it will set inline styles for them\n // we want to use classes instead\n } else if (context.defaultFormatAppliers.border) {\n // apply default formats for all other cases\n context.defaultFormatAppliers.border(format, element, context);\n }\n};\n\n/**\n * Applies the dataset format to the given HTML element.\n * If the element is an HTMLTableElement, it skips setting editing info\n * and to use classes instead of inline styles.\n * For all other cases, it applies the default formats.\n */\nexport const dataSetApplier = (format: DatasetFormat, element: HTMLElement, context: ModelToDomContext): void => {\n if (element instanceof HTMLTableElement) {\n // don't set editing info for tables\n // as it will set inline styles for them\n // we want to use classes instead\n } else if (context.defaultFormatAppliers.dataset) {\n // apply default formats for all other cases\n context.defaultFormatAppliers.dataset(format, element, context);\n }\n};\n/**\n * @internal\n */\nexport const getPreviousInlineImages = (content?: string): Record<string, string>[] => {\n if (!content) {\n return [];\n }\n const previousInlineImages: Record<string, string>[] = [];\n const document = new DOMParser().parseFromString(content ?? '', 'text/html');\n document.querySelectorAll('img').forEach(img => {\n const imageAttributes = getInlineImageAttributes(img);\n previousInlineImages.push(imageAttributes);\n });\n return previousInlineImages;\n};\n/**\n * @internal\n */\nexport const getRemovedInlineImages = (content: string, previousInlineImages: Record<string, string>[]): Record<string, string>[] => {\n const document = new DOMParser().parseFromString(content ?? '', 'text/html');\n const currentContentIds = Array.from(document.querySelectorAll('img')).map(img => img.id);\n previousInlineImages = previousInlineImages?.filter(img => !!img.id && !currentContentIds?.includes(img.id));\n const removedInlineImages = [...previousInlineImages];\n return removedInlineImages;\n};\n/**\n * @internal\n */\nexport const getInsertedInlineImages = (content: string, previousInlineImages: NodeListOf<HTMLImageElement>): HTMLImageElement[] => {\n const document = new DOMParser().parseFromString(content ?? '', 'text/html');\n const currentContentInlineImages = Array.from(document.querySelectorAll('img'));\n const previousContentIds = Array.from(previousInlineImages).map(img => img.id);\n // if check is updated, also update getRemovedInlineImages\n const insertedInlineImages = currentContentInlineImages.filter(img => !previousContentIds.includes(img.id));\n return insertedInlineImages;\n};\n/**\n * @internal\n */\nexport const getInlineImageAttributes = (image: HTMLImageElement): Record<string, string> => {\n const imageAttributes: Record<string, string> = {};\n image.getAttributeNames().forEach(attrName => {\n const attrValue = image.getAttribute(attrName);\n if (attrValue) {\n imageAttributes[attrName] = attrValue;\n }\n });\n return imageAttributes;\n};\n/**\n * @internal\n */\n/**\n * Update the scroll position of the editor to ensure the content is visible.\n */\nexport const scrollToBottomRichTextEditor = (): void => {\n // Get the current selection in the document\n const selection = document.getSelection();\n\n // Check if a selection exists and it has at least one range\n if (!selection || selection.rangeCount <= 0) {\n // If no selection or range, exit the function\n return;\n }\n\n // Get the first range of the selection\n // A user can normally only select one range at a time, so the rangeCount will usually be 1\n const range = selection.getRangeAt(0);\n\n // If the common ancestor container of the range is the document itself,\n // it might mean that the editable element is getting removed from the DOM\n // In such cases, especially in Safari, trying to modify the range might throw a HierarchyRequest error\n if (range.commonAncestorContainer === document) {\n return;\n }\n\n // Create a temporary span element to use as an anchor for scrolling\n // We can't use the anchor node directly because if it's a Text node, calling scrollIntoView() on it will throw an error\n const tempElement = document.createElement('span');\n // Collapse the range to its end point\n // This means the start and end points of the range will be the same, and it will not contain any content\n range.collapse(false);\n // Insert the temporary element at the cursor's position at the end of the range\n range.insertNode(tempElement);\n // Scroll the temporary element into view\n // the element will be aligned at the center of the scroll container, otherwise, text and images may be positioned incorrectly\n tempElement.scrollIntoView({\n block: 'center'\n });\n tempElement.remove();\n};\n/**\n * Revoke the blob urls in the removedInlineImages and remove them from the currentLocalBlobMap\n * @internal\n */\nexport const removeLocalBlobs = (currentLocalBlobMap: Record<string, string>, removedInlineImages: Record<string, string>[]): void => {\n removedInlineImages.forEach(image => {\n if (!image.id) {\n return;\n }\n removeSingleLocalBlob(currentLocalBlobMap, image.id);\n });\n};\n/**\n * Revoke all the blob urls in the currentLocalBlobMap and clean up the currentLocalBlobMap\n * @internal\n */\nexport const cleanAllLocalBlobs = (currentLocalBlobMap: Record<string, string>): void => {\n Object.keys(currentLocalBlobMap).forEach(imageId => {\n removeSingleLocalBlob(currentLocalBlobMap, imageId);\n });\n};\nconst removeSingleLocalBlob = (currentLocalBlobMap: Record<string, string>, imageId: string): void => {\n const blobUrl = currentLocalBlobMap[imageId];\n if (blobUrl) {\n URL.revokeObjectURL(blobUrl);\n delete currentLocalBlobMap[imageId];\n }\n};"]}
@@ -1,33 +0,0 @@
1
- import { RichTextStrings } from '../RichTextEditor/RichTextSendBox';
2
- import { IEditor } from 'roosterjs-content-model-types';
3
- import { IContextualMenuItem } from '@fluentui/react';
4
- /**
5
- * @private
6
- *
7
- * String to be replaces by actual values of row and column.
8
- */
9
- export declare const ColumnRowReplaceString = "{column} x {row}";
10
- /**
11
- * @private
12
- *
13
- * Function to create key pair for the selected table size.
14
- */
15
- export declare function createKey(row: number, column: number): string;
16
- /**
17
- * @private
18
- *
19
- * Function to parse key to the selected table size valules.
20
- */
21
- export declare function parseKey(key: string): {
22
- row: number;
23
- column: number;
24
- };
25
- /**
26
- * Returns an array of context menu items for editing a rich text table.
27
- *
28
- * @param editor - The editor instance.
29
- * @param strings - An object containing localized strings for the context menu items.
30
- * @returns An array of context menu items.
31
- */
32
- export declare const getTableEditContextMenuItems: (editor: IEditor, strings: Partial<RichTextStrings>) => IContextualMenuItem[];
33
- //# sourceMappingURL=RichTextTableUtils.d.ts.map
@@ -1,119 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { editTable } from 'roosterjs-content-model-api';
4
- import { tableContextMenuIconStyles } from '../styles/RichTextEditor.styles';
5
- /**
6
- * @private
7
- *
8
- * String to be replaces by actual values of row and column.
9
- */
10
- export const ColumnRowReplaceString = '{column} x {row}';
11
- /**
12
- * @private
13
- *
14
- * Function to create key pair for the selected table size.
15
- */
16
- export function createKey(row, column) {
17
- return `${row},${column}`;
18
- }
19
- /**
20
- * @private
21
- *
22
- * Function to parse key to the selected table size valules.
23
- */
24
- export function parseKey(key) {
25
- const [row, column] = key.split(',');
26
- if (row === undefined || column === undefined) {
27
- throw new Error('Invalid key format');
28
- }
29
- return {
30
- row: parseInt(row),
31
- column: parseInt(column)
32
- };
33
- }
34
- /**
35
- * Returns an array of context menu items for editing a rich text table.
36
- *
37
- * @param editor - The editor instance.
38
- * @param strings - An object containing localized strings for the context menu items.
39
- * @returns An array of context menu items.
40
- */
41
- export const getTableEditContextMenuItems = (editor, strings) => {
42
- return [{
43
- key: 'RichTextTableEditMenuTableInsert',
44
- text: strings.richTextInsertRowOrColumnMenu,
45
- ariaLabel: strings.richTextInsertRowOrColumnMenu,
46
- iconProps: {
47
- iconName: 'RichTextTableInsertMenuIcon',
48
- styles: {
49
- root: tableContextMenuIconStyles
50
- }
51
- },
52
- subMenuProps: {
53
- items: [{
54
- key: 'RichTextTableEditMenuTableInsertRowAbove',
55
- text: strings.richTextInsertRowAboveMenu,
56
- ariaLabel: strings.richTextInsertRowAboveMenu,
57
- onClick: () => {
58
- editTable(editor, 'insertAbove');
59
- }
60
- }, {
61
- key: 'RichTextTableEditMenuTableInsertRowBelow',
62
- text: strings.richTextInsertRowBelowMenu,
63
- ariaLabel: strings.richTextInsertRowBelowMenu,
64
- onClick: () => {
65
- editTable(editor, 'insertBelow');
66
- }
67
- }, {
68
- key: 'RichTextTableEditMenuTableInsertColumnLeft',
69
- text: strings.richTextInsertColumnLeftMenu,
70
- ariaLabel: strings.richTextInsertColumnLeftMenu,
71
- onClick: () => {
72
- editTable(editor, 'insertLeft');
73
- }
74
- }, {
75
- key: 'RichTextTableEditMenuTableInsertColumnRight',
76
- text: strings.richTextInsertColumnRightMenu,
77
- ariaLabel: strings.richTextInsertColumnRightMenu,
78
- onClick: () => {
79
- editTable(editor, 'insertRight');
80
- }
81
- }]
82
- }
83
- }, {
84
- key: 'RichTextTableEditMenuTableDelete',
85
- text: strings.richTextDeleteRowOrColumnMenu,
86
- ariaLabel: strings.richTextDeleteRowOrColumnMenu,
87
- iconProps: {
88
- iconName: 'RichTextTableDeleteMenuIcon',
89
- styles: {
90
- root: tableContextMenuIconStyles
91
- }
92
- },
93
- subMenuProps: {
94
- items: [{
95
- key: 'RichTextTableEditMenuTableDeleteRow',
96
- text: strings.richTextDeleteRowMenu,
97
- ariaLabel: strings.richTextDeleteRowMenu,
98
- onClick: () => {
99
- editTable(editor, 'deleteRow');
100
- }
101
- }, {
102
- key: 'RichTextTableEditMenuTableDeleteColumn',
103
- text: strings.richTextDeleteColumnMenu,
104
- ariaLabel: strings.richTextDeleteColumnMenu,
105
- onClick: () => {
106
- editTable(editor, 'deleteColumn');
107
- }
108
- }, {
109
- key: 'RichTextTableEditMenuTableDeleteTable',
110
- text: strings.richTextDeleteTableMenu,
111
- ariaLabel: strings.richTextDeleteTableMenu,
112
- onClick: () => {
113
- editTable(editor, 'deleteTable');
114
- }
115
- }]
116
- }
117
- }];
118
- };
119
- //# sourceMappingURL=RichTextTableUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RichTextTableUtils.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/utils/RichTextTableUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAK7E;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAEzD;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,GAAW,EAAE,MAAc;IACnD,OAAO,GAAG,GAAG,IAAI,MAAM,EAAE,CAAC;AAC5B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAW;IAIlC,MAAM,C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CAAC;AACL,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { editTable } from 'roosterjs-content-model-api';\nimport { tableContextMenuIconStyles } from '../styles/RichTextEditor.styles';\nimport { RichTextStrings } from '../RichTextEditor/RichTextSendBox';\nimport { IEditor } from 'roosterjs-content-model-types';\nimport { IContextualMenuItem } from '@fluentui/react';\n\n/**\n * @private\n *\n * String to be replaces by actual values of row and column.\n */\nexport const ColumnRowReplaceString = '{column} x {row}';\n\n/**\n * @private\n *\n * Function to create key pair for the selected table size.\n */\nexport function createKey(row: number, column: number): string {\n return `${row},${column}`;\n}\n\n/**\n * @private\n *\n * Function to parse key to the selected table size valules.\n */\nexport function parseKey(key: string): {\n row: number;\n column: number;\n} {\n const [row, column] = key.split(',');\n if (row === undefined || column === undefined) {\n throw new Error('Invalid key format');\n }\n return {\n row: parseInt(row),\n column: parseInt(column)\n };\n}\n\n/**\n * Returns an array of context menu items for editing a rich text table.\n *\n * @param editor - The editor instance.\n * @param strings - An object containing localized strings for the context menu items.\n * @returns An array of context menu items.\n */\nexport const getTableEditContextMenuItems = (editor: IEditor, strings: Partial<RichTextStrings>): IContextualMenuItem[] => {\n return [{\n key: 'RichTextTableEditMenuTableInsert',\n text: strings.richTextInsertRowOrColumnMenu,\n ariaLabel: strings.richTextInsertRowOrColumnMenu,\n iconProps: {\n iconName: 'RichTextTableInsertMenuIcon',\n styles: {\n root: tableContextMenuIconStyles\n }\n },\n subMenuProps: {\n items: [{\n key: 'RichTextTableEditMenuTableInsertRowAbove',\n text: strings.richTextInsertRowAboveMenu,\n ariaLabel: strings.richTextInsertRowAboveMenu,\n onClick: () => {\n editTable(editor, 'insertAbove');\n }\n }, {\n key: 'RichTextTableEditMenuTableInsertRowBelow',\n text: strings.richTextInsertRowBelowMenu,\n ariaLabel: strings.richTextInsertRowBelowMenu,\n onClick: () => {\n editTable(editor, 'insertBelow');\n }\n }, {\n key: 'RichTextTableEditMenuTableInsertColumnLeft',\n text: strings.richTextInsertColumnLeftMenu,\n ariaLabel: strings.richTextInsertColumnLeftMenu,\n onClick: () => {\n editTable(editor, 'insertLeft');\n }\n }, {\n key: 'RichTextTableEditMenuTableInsertColumnRight',\n text: strings.richTextInsertColumnRightMenu,\n ariaLabel: strings.richTextInsertColumnRightMenu,\n onClick: () => {\n editTable(editor, 'insertRight');\n }\n }]\n }\n }, {\n key: 'RichTextTableEditMenuTableDelete',\n text: strings.richTextDeleteRowOrColumnMenu,\n ariaLabel: strings.richTextDeleteRowOrColumnMenu,\n iconProps: {\n iconName: 'RichTextTableDeleteMenuIcon',\n styles: {\n root: tableContextMenuIconStyles\n }\n },\n subMenuProps: {\n items: [{\n key: 'RichTextTableEditMenuTableDeleteRow',\n text: strings.richTextDeleteRowMenu,\n ariaLabel: strings.richTextDeleteRowMenu,\n onClick: () => {\n editTable(editor, 'deleteRow');\n }\n }, {\n key: 'RichTextTableEditMenuTableDeleteColumn',\n text: strings.richTextDeleteColumnMenu,\n ariaLabel: strings.richTextDeleteColumnMenu,\n onClick: () => {\n editTable(editor, 'deleteColumn');\n }\n }, {\n key: 'RichTextTableEditMenuTableDeleteTable',\n text: strings.richTextDeleteTableMenu,\n ariaLabel: strings.richTextDeleteTableMenu,\n onClick: () => {\n editTable(editor, 'deleteTable');\n }\n }]\n }\n }];\n};"]}
@@ -1,7 +0,0 @@
1
- /**
2
- * Shallow merge two objects and return a memoized result.
3
- *
4
- * @private
5
- */
6
- export declare function useShallowMerge<T extends Record<string, unknown>>(target: T | undefined, source: T | undefined): T | undefined;
7
- //# sourceMappingURL=merge.d.ts.map
@@ -1,16 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { useMemo } from 'react';
4
- /**
5
- * Shallow merge two objects and return a memoized result.
6
- *
7
- * @private
8
- */
9
- export function useShallowMerge(target, source) {
10
- const memoizedMerge = useMemo(() => (Object.assign(Object.assign({}, (target || {})), (source || {}))), [target, source]);
11
- if (!target && !source) {
12
- return undefined;
13
- }
14
- return memoizedMerge;
15
- }
16
- //# sourceMappingURL=merge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/utils/merge.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAoC,MAAqB,EAAE,MAAqB;IAC7G,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,iCAC/B,CAAC,MAAM,IAAI,EAAE,CAAC,GACd,CAAC,MAAM,IAAI,EAAE,CAAC,EACZ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3B,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC;QACvB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { useMemo } from 'react';\n\n/**\n * Shallow merge two objects and return a memoized result.\n *\n * @private\n */\nexport function useShallowMerge<T extends Record<string, unknown>>(target: T | undefined, source: T | undefined): T | undefined {\n const memoizedMerge = useMemo(() => ({\n ...(target || {}),\n ...(source || {})\n }) as T, [target, source]);\n if (!target && !source) {\n return undefined;\n }\n return memoizedMerge;\n}"]}
@@ -1,8 +0,0 @@
1
- import { CaptionsInformation, RealTimeTextInformation } from '../CaptionsBanner';
2
- /**
3
- * Sorts the captions and real time texts based on their timestamp.
4
- *
5
- * @private
6
- */
7
- export declare function sortCaptionsAndRealTimeTexts(captions: CaptionsInformation[], realTimeTexts: RealTimeTextInformation[]): (CaptionsInformation | RealTimeTextInformation)[];
8
- //# sourceMappingURL=sortCaptionsAndRealTimeTexts.d.ts.map
@@ -1,17 +0,0 @@
1
- /**
2
- * Sorts the captions and real time texts based on their timestamp.
3
- *
4
- * @private
5
- */
6
- export function sortCaptionsAndRealTimeTexts(captions, realTimeTexts) {
7
- const combinedList = [...(Array.isArray(captions) ? captions.map(caption => (Object.assign({}, caption))) : []), ...(realTimeTexts ? realTimeTexts.map(realTimeText => (Object.assign({}, realTimeText))) : [])];
8
- // Sort the combined list by comparing caption's timestamp with realTimeText's updatedTimestamp
9
- combinedList.sort((a, b) => {
10
- var _a, _b;
11
- const timestampA = 'captionText' in a ? new Date((_a = a.createdTimeStamp) !== null && _a !== void 0 ? _a : 0).getTime() : new Date(a.finalizedTimeStamp).getTime();
12
- const timestampB = 'captionText' in b ? new Date((_b = b.createdTimeStamp) !== null && _b !== void 0 ? _b : 0).getTime() : new Date(b.finalizedTimeStamp).getTime();
13
- return timestampA - timestampB;
14
- });
15
- return combinedList;
16
- }
17
- //# sourceMappingURL=sortCaptionsAndRealTimeTexts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sortCaptionsAndRealTimeTexts.js","sourceRoot":"","sources":["../../../../../../preprocess-dist/react-components/src/components/utils/sortCaptionsAndRealTimeTexts.tsx"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAAC,QAA+B,EAAE,aAAwC;IACpH,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,mBACvE,OAAO,EACV,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,mBAC5D,YAAY,EACf,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEX,+FAA+F;IAC/F,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;QACzB,MAAM,UAAU,GAAG,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAC,CAAyB,CAAC,gBAAgB,mCAAI,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAE,CAA6B,CAAC,kBAAkB,CAAC,CAAC,OAAO,EAAE,CAAC;QACrL,MAAM,UAAU,GAAG,aAAa,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAC,CAAyB,CAAC,gBAAgB,mCAAI,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAE,CAA6B,CAAC,kBAAkB,CAAC,CAAC,OAAO,EAAE,CAAC;QACrL,OAAO,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { CaptionsInformation, RealTimeTextInformation } from '../CaptionsBanner';\n/**\n * Sorts the captions and real time texts based on their timestamp.\n *\n * @private\n */\nexport function sortCaptionsAndRealTimeTexts(captions: CaptionsInformation[], realTimeTexts: RealTimeTextInformation[]): (CaptionsInformation | RealTimeTextInformation)[] {\n const combinedList = [...(Array.isArray(captions) ? captions.map(caption => ({\n ...caption\n })) : []), ...(realTimeTexts ? realTimeTexts.map(realTimeText => ({\n ...realTimeText\n })) : [])];\n\n // Sort the combined list by comparing caption's timestamp with realTimeText's updatedTimestamp\n combinedList.sort((a, b) => {\n const timestampA = 'captionText' in a ? new Date((a as CaptionsInformation).createdTimeStamp ?? 0).getTime() : new Date((a as RealTimeTextInformation).finalizedTimeStamp).getTime();\n const timestampB = 'captionText' in b ? new Date((b as CaptionsInformation).createdTimeStamp ?? 0).getTime() : new Date((b as RealTimeTextInformation).finalizedTimeStamp).getTime();\n return timestampA - timestampB;\n });\n return combinedList;\n}"]}
@@ -1,6 +0,0 @@
1
- import { IStackStyles, IStyle, Theme } from '@fluentui/react';
2
- /** @private */
3
- export declare const scaledIconStyles: (theme: Theme) => IStyle;
4
- /** @private */
5
- export declare const sitePermissionIconBackgroundStyle: (theme: Theme) => IStackStyles;
6
- //# sourceMappingURL=icons.styles.d.ts.map
@@ -1,25 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /** @private */
4
- export const scaledIconStyles = (theme) => {
5
- return {
6
- transform: 'scale(2)',
7
- display: 'flex',
8
- justifyContent: 'center',
9
- alignItems: 'center',
10
- lineHeight: '0.2rem',
11
- color: theme.palette.themePrimary,
12
- zIndex: 1
13
- };
14
- };
15
- /** @private */
16
- export const sitePermissionIconBackgroundStyle = (theme) => {
17
- return {
18
- root: {
19
- borderRadius: '100%',
20
- background: theme.palette.themeLighterAlt,
21
- padding: '2rem'
22
- }
23
- };
24
- };
25
- //# sourceMappingURL=icons.styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.styles.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/theming/icons.styles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,eAAe;AACf,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAY,EAAU,EAAE;IACvD,OAAO;QACL,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,UAAU,EAAE,QAAQ;QACpB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY;QACjC,MAAM,EAAE,CAAC;KACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe;AACf,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,KAAY,EAAgB,EAAE;IAC9E,OAAO;QACL,IAAI,EAAE;YACJ,YAAY,EAAE,MAAM;YACpB,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,eAAe;YACzC,OAAO,EAAE,MAAM;SAChB;KACF,CAAC;AACJ,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { IStackStyles, IStyle, Theme } from '@fluentui/react';\n\n/** @private */\nexport const scaledIconStyles = (theme: Theme): IStyle => {\n return {\n transform: 'scale(2)',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n lineHeight: '0.2rem',\n color: theme.palette.themePrimary,\n zIndex: 1\n };\n};\n\n/** @private */\nexport const sitePermissionIconBackgroundStyle = (theme: Theme): IStackStyles => {\n return {\n root: {\n borderRadius: '100%',\n background: theme.palette.themeLighterAlt,\n padding: '2rem'\n }\n };\n};"]}
@@ -1,38 +0,0 @@
1
- import { CreateVideoStreamViewResult, VideoGalleryStream, VideoStreamOptions } from './VideoGalleryParticipant';
2
- /**
3
- * Interface representing the result of a Together Mode stream view.
4
- * @beta
5
- */
6
- export interface TogetherModeStreamOptions extends VideoStreamOptions {
7
- viewKind?: 'main' | 'panoramic';
8
- }
9
- /**
10
- * Interface representing the result of a Together Mode stream view.
11
- * @beta
12
- */
13
- export interface TogetherModeStreamViewResult {
14
- mainVideoView?: CreateVideoStreamViewResult;
15
- }
16
- /**
17
- * Interface representing the streams in Together Mode.
18
- * @beta
19
- */
20
- export interface VideoGalleryTogetherModeStreams {
21
- mainVideoStream?: VideoGalleryStream;
22
- }
23
- /**
24
- * Interface representing the seating information in Together Mode.
25
- * @beta
26
- */
27
- export interface VideoGalleryTogetherModeSeatingInfo {
28
- top: number;
29
- left: number;
30
- width: number;
31
- height: number;
32
- }
33
- /**
34
- * Interface representing the position of a participant in Together Mode.
35
- * @beta
36
- */
37
- export type VideoGalleryTogetherModeParticipantPosition = Record<string, VideoGalleryTogetherModeSeatingInfo>;
38
- //# sourceMappingURL=TogetherModeTypes.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=TogetherModeTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TogetherModeTypes.js","sourceRoot":"","sources":["../../../../../preprocess-dist/react-components/src/types/TogetherModeTypes.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { CreateVideoStreamViewResult, VideoGalleryStream, VideoStreamOptions } from './VideoGalleryParticipant';\n/**\n * Interface representing the result of a Together Mode stream view.\n * @beta\n */\nexport interface TogetherModeStreamOptions extends VideoStreamOptions {\n viewKind?: 'main' | 'panoramic';\n}\n/**\n * Interface representing the result of a Together Mode stream view.\n * @beta\n */\nexport interface TogetherModeStreamViewResult {\n mainVideoView?: CreateVideoStreamViewResult;\n}\n/**\n * Interface representing the streams in Together Mode.\n * @beta\n */\nexport interface VideoGalleryTogetherModeStreams {\n mainVideoStream?: VideoGalleryStream;\n}\n/**\n * Interface representing the seating information in Together Mode.\n * @beta\n */\nexport interface VideoGalleryTogetherModeSeatingInfo {\n /* The top left offset from the top of the together mode view.*/\n top: number;\n /* The left offset position from the left of the together mode view. */\n left: number;\n /* The width of the seating area */\n width: number;\n /* The height of the seating area. */\n height: number;\n}\n/**\n * Interface representing the position of a participant in Together Mode.\n * @beta\n */\nexport type VideoGalleryTogetherModeParticipantPosition = Record<string, VideoGalleryTogetherModeSeatingInfo>;"]}