@azure/communication-react 1.7.0-beta.1 → 1.7.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 (695) hide show
  1. package/dist/communication-react.d.ts +161 -2948
  2. package/dist/dist-cjs/communication-react/index.js +5454 -14293
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/areEqual.d.ts +0 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  6. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  7. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +1 -25
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +3 -59
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  10. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.d.ts +0 -13
  11. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +3 -16
  12. package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
  13. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js +0 -6
  14. package/dist/dist-esm/calling-component-bindings/src/errorBarSelector.js.map +1 -1
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +13 -20
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +2 -74
  17. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  18. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js +0 -10
  19. package/dist/dist-esm/calling-component-bindings/src/handlers/createDefaultCallingHandlersForComponent.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +7 -1
  21. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +3 -16
  22. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  23. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.d.ts +1 -5
  24. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +0 -22
  25. package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  26. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +1 -10
  27. package/dist/dist-esm/calling-component-bindings/src/index.js +0 -10
  28. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  29. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +18 -13
  30. package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
  31. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.d.ts +3 -4
  32. package/dist/dist-esm/calling-component-bindings/src/providers/CallAgentProvider.js.map +1 -1
  33. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.d.ts +2 -14
  34. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js +1 -20
  35. package/dist/dist-esm/calling-component-bindings/src/providers/CallProvider.js.map +1 -1
  36. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +0 -7
  37. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +1 -13
  38. package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
  39. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.d.ts +1 -6
  40. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js +4 -15
  41. package/dist/dist-esm/calling-component-bindings/src/utils/participantListSelectorUtils.js.map +1 -1
  42. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +5 -11
  43. package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
  44. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.d.ts +0 -1
  45. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +2 -10
  46. package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
  47. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.d.ts +5 -6
  48. package/dist/dist-esm/calling-stateful-client/src/BetaToStableTypes.js.map +1 -1
  49. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.d.ts +1 -15
  50. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarative.js.map +1 -1
  51. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.d.ts +1 -2
  52. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js +6 -7
  53. package/dist/dist-esm/calling-stateful-client/src/CallAgentDeclarativeCommon.js.map +1 -1
  54. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +1 -166
  55. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js +1 -0
  56. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  57. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +1 -23
  58. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +2 -191
  59. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  60. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +0 -93
  61. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  62. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +0 -6
  63. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +8 -67
  64. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  65. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +0 -10
  66. package/dist/dist-esm/calling-stateful-client/src/Converter.js +2 -48
  67. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  68. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +0 -9
  69. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +0 -5
  70. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  71. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +0 -1
  72. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +3 -25
  73. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  74. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +0 -1
  75. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +0 -8
  76. package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
  77. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.d.ts +0 -1
  78. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js +0 -8
  79. package/dist/dist-esm/calling-stateful-client/src/RemoteVideoStreamSubscriber.js.map +1 -1
  80. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.d.ts +3 -25
  81. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js +2 -33
  82. package/dist/dist-esm/calling-stateful-client/src/StatefulCallClient.js.map +1 -1
  83. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +2 -9
  84. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +0 -18
  85. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  86. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +0 -6
  87. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  88. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +0 -1
  89. package/dist/dist-esm/calling-stateful-client/src/index.js +0 -2
  90. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  91. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.d.ts +1 -4
  92. package/dist/dist-esm/chat-component-bindings/src/handlers/createHandlers.js.map +1 -1
  93. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.d.ts +0 -1
  94. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js +18 -2
  95. package/dist/dist-esm/chat-component-bindings/src/hooks/usePropsFor.js.map +1 -1
  96. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.d.ts +5 -0
  97. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +15 -106
  98. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  99. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +3 -3
  100. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  101. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +1 -3
  102. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  103. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js +2 -1
  104. package/dist/dist-esm/chat-stateful-client/src/StatefulChatThreadClient.js.map +1 -1
  105. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +1 -4
  106. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  107. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +0 -1
  108. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  109. package/dist/dist-esm/communication-react/src/index.d.ts +1 -31
  110. package/dist/dist-esm/communication-react/src/index.js +0 -14
  111. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  112. package/dist/dist-esm/communication-react/src/mergedHooks.d.ts +0 -1
  113. package/dist/dist-esm/northstar-wrapper/src/index.js +1 -1
  114. package/dist/dist-esm/react-components/src/components/Announcer/Announcer.d.ts +0 -1
  115. package/dist/dist-esm/react-components/src/components/Announcer/LiveMessage.d.ts +0 -1
  116. package/dist/dist-esm/react-components/src/components/Announcer/MessageBlock.d.ts +0 -1
  117. package/dist/dist-esm/react-components/src/components/Announcer.d.ts +0 -1
  118. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -9
  119. package/dist/dist-esm/react-components/src/components/CameraButton.js +0 -21
  120. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  121. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageActionsFlyout.d.ts +0 -1
  122. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +1 -18
  123. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +2 -8
  124. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  125. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +0 -3
  126. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +1 -6
  127. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  128. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +1 -17
  129. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +3 -20
  130. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  131. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +0 -15
  132. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +2 -76
  133. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  134. package/dist/dist-esm/react-components/src/components/ComplianceBanner/BannerMessage.d.ts +0 -1
  135. package/dist/dist-esm/react-components/src/components/ComplianceBanner/ComplianceBanner.d.ts +0 -1
  136. package/dist/dist-esm/react-components/src/components/ComplianceBanner/DelayedUpdateBanner.d.ts +0 -1
  137. package/dist/dist-esm/react-components/src/components/ControlBarButton.d.ts +0 -1
  138. package/dist/dist-esm/react-components/src/components/ControlButtonTooltip.d.ts +0 -1
  139. package/dist/dist-esm/react-components/src/components/DevicePermissions/DevicePermissionDropdown.d.ts +0 -1
  140. package/dist/dist-esm/react-components/src/components/DevicesButton.d.ts +0 -1
  141. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +0 -1
  142. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +0 -6
  143. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  144. package/dist/dist-esm/react-components/src/components/Drawer/DrawerLightDismiss.d.ts +0 -1
  145. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenu.d.ts +0 -1
  146. package/dist/dist-esm/react-components/src/components/EndCallButton.d.ts +0 -1
  147. package/dist/dist-esm/react-components/src/components/ErrorBar.d.ts +5 -5
  148. package/dist/dist-esm/react-components/src/components/ErrorBar.js +5 -2
  149. package/dist/dist-esm/react-components/src/components/ErrorBar.js.map +1 -1
  150. package/dist/dist-esm/react-components/src/components/FileCard.d.ts +0 -1
  151. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +11 -12
  152. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +6 -15
  153. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  154. package/dist/dist-esm/react-components/src/components/FileUploadCards.d.ts +0 -1
  155. package/dist/dist-esm/react-components/src/components/HighContrastAwareIcon.d.ts +0 -1
  156. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +0 -2
  157. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js +0 -18
  158. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  159. package/dist/dist-esm/react-components/src/components/LocalVideoCameraButton.d.ts +0 -1
  160. package/dist/dist-esm/react-components/src/components/LocalVideoTile.js.map +1 -1
  161. package/dist/dist-esm/react-components/src/components/MessageStatusIndicator.d.ts +0 -1
  162. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +2 -47
  163. package/dist/dist-esm/react-components/src/components/MessageThread.js +9 -56
  164. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  165. package/dist/dist-esm/react-components/src/components/MicrophoneButton.d.ts +0 -1
  166. package/dist/dist-esm/react-components/src/components/ParticipantItem.d.ts +1 -15
  167. package/dist/dist-esm/react-components/src/components/ParticipantItem.js +2 -4
  168. package/dist/dist-esm/react-components/src/components/ParticipantItem.js.map +1 -1
  169. package/dist/dist-esm/react-components/src/components/ParticipantList.d.ts +1 -2
  170. package/dist/dist-esm/react-components/src/components/ParticipantList.js +7 -13
  171. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  172. package/dist/dist-esm/react-components/src/components/ParticipantsButton.d.ts +1 -2
  173. package/dist/dist-esm/react-components/src/components/ParticipantsButton.js.map +1 -1
  174. package/dist/dist-esm/react-components/src/components/PictureInPictureInPicture/PictureInPictureInPicture.d.ts +0 -1
  175. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +2 -42
  176. package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
  177. package/dist/dist-esm/react-components/src/components/ScreenShareButton.d.ts +0 -1
  178. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +1 -42
  179. package/dist/dist-esm/react-components/src/components/SendBox.js +3 -31
  180. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  181. package/dist/dist-esm/react-components/src/components/SendBoxErrorBar.d.ts +0 -1
  182. package/dist/dist-esm/react-components/src/components/SendBoxErrors.d.ts +0 -1
  183. package/dist/dist-esm/react-components/src/components/StreamMedia.d.ts +0 -1
  184. package/dist/dist-esm/react-components/src/components/SystemMessage.d.ts +0 -1
  185. package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.d.ts +0 -1
  186. package/dist/dist-esm/react-components/src/components/TypingIndicator.d.ts +0 -1
  187. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.d.ts +0 -1
  188. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +0 -2
  189. package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
  190. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.d.ts +0 -1
  191. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +0 -2
  192. package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
  193. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.d.ts +0 -1
  194. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +0 -24
  195. package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
  196. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +0 -1
  197. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +0 -2
  198. package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
  199. package/dist/dist-esm/react-components/src/components/VerticalGallery.js +4 -17
  200. package/dist/dist-esm/react-components/src/components/VerticalGallery.js.map +1 -1
  201. package/dist/dist-esm/react-components/src/components/VideoEffects/PresetVideoEffectsItems.d.ts +0 -1
  202. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.d.ts +0 -1
  203. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js +3 -2
  204. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoBackgroundEffectsPicker.js.map +1 -1
  205. package/dist/dist-esm/react-components/src/components/VideoEffects/VideoEffectsItem.d.ts +0 -1
  206. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.d.ts +0 -1
  207. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js +5 -18
  208. package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
  209. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.d.ts +0 -1
  210. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.d.ts +0 -6
  211. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +11 -31
  212. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  213. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.d.ts +0 -7
  214. package/dist/dist-esm/react-components/src/components/VideoGallery/Layout.js.map +1 -1
  215. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +0 -6
  216. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +3 -32
  217. package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
  218. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.d.ts +1 -1
  219. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js +3 -2
  220. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/FloatingLocalVideo.styles.js.map +1 -1
  221. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +6 -8
  222. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  223. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js +3 -48
  224. package/dist/dist-esm/react-components/src/components/VideoGallery/utils/videoGalleryLayoutUtils.js.map +1 -1
  225. package/dist/dist-esm/react-components/src/components/VideoGallery.d.ts +0 -95
  226. package/dist/dist-esm/react-components/src/components/VideoGallery.js +10 -108
  227. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  228. package/dist/dist-esm/react-components/src/components/VideoTile.d.ts +0 -22
  229. package/dist/dist-esm/react-components/src/components/VideoTile.js +6 -86
  230. package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
  231. package/dist/dist-esm/react-components/src/components/index.d.ts +0 -21
  232. package/dist/dist-esm/react-components/src/components/index.js +0 -18
  233. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  234. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +0 -5
  235. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +5 -28
  236. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  237. package/dist/dist-esm/react-components/src/components/utils/common.js +0 -4
  238. package/dist/dist-esm/react-components/src/components/utils/common.js.map +1 -1
  239. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +1 -2
  240. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  241. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +0 -8
  242. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +1 -9
  243. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  244. package/dist/dist-esm/react-components/src/index.d.ts +0 -4
  245. package/dist/dist-esm/react-components/src/index.js +0 -2
  246. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  247. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +0 -62
  248. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  249. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +10 -0
  250. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +13 -3
  251. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +10 -0
  252. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +10 -0
  253. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +10 -0
  254. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +10 -0
  255. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +10 -0
  256. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +10 -0
  257. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +10 -0
  258. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +10 -0
  259. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +10 -0
  260. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +10 -0
  261. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +10 -0
  262. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +10 -0
  263. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +10 -0
  264. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +10 -0
  265. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +10 -0
  266. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +10 -0
  267. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +10 -0
  268. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +10 -0
  269. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +10 -0
  270. package/dist/dist-esm/react-components/src/theming/icons.d.ts +0 -30
  271. package/dist/dist-esm/react-components/src/theming/icons.js +0 -142
  272. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  273. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +1 -27
  274. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  275. package/dist/dist-esm/react-components/src/types/OnRender.d.ts +0 -9
  276. package/dist/dist-esm/react-components/src/types/OnRender.js.map +1 -1
  277. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.d.ts +0 -3
  278. package/dist/dist-esm/react-components/src/types/ParticipantListParticipant.js.map +1 -1
  279. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.d.ts +2 -9
  280. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js +0 -2
  281. package/dist/dist-esm/react-components/src/types/VideoGalleryParticipant.js.map +1 -1
  282. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -114
  283. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +25 -99
  284. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  285. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +0 -277
  286. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js +0 -2
  287. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  288. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +10 -110
  289. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +50 -447
  290. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  291. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +50 -253
  292. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +1 -1
  293. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  294. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.d.ts +2 -3
  295. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js +3 -9
  296. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/createHandlers.js.map +1 -1
  297. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -10
  298. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js +0 -2
  299. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  300. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +3 -4
  301. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +20 -104
  302. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  303. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.d.ts +3 -4
  304. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +6 -149
  305. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  306. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.d.ts +0 -3
  307. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js +0 -27
  308. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageCameraDropdown.js.map +1 -1
  309. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.d.ts +1 -1
  310. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js +3 -21
  311. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageErrorBar.js.map +1 -1
  312. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.d.ts +0 -3
  313. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js +0 -27
  314. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ConfigurationPageMicDropdown.js.map +1 -1
  315. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/ExpandedLocalVideoTile.d.ts +0 -1
  316. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LobbyTile.d.ts +0 -1
  317. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalAndRemotePIP.d.ts +0 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +0 -3
  319. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +5 -45
  320. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js.map +1 -1
  321. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.d.ts +0 -1
  322. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -5
  323. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +4 -32
  324. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  325. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MutedNotification.d.ts +0 -1
  326. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.d.ts +0 -1
  327. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.d.ts +0 -1
  328. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js +9 -11
  329. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/SidePane.js.map +1 -1
  330. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.d.ts +3 -0
  331. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js +4 -4
  332. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/usePeoplePane.js.map +1 -1
  333. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/StartCallButton.d.ts +0 -1
  334. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +7 -6
  335. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -2
  336. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  337. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +0 -1
  338. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +0 -1
  339. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js +2 -33
  340. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  341. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +0 -1
  342. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +0 -1
  343. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  344. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +0 -1
  345. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +0 -1
  346. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js +0 -2
  347. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  348. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js +2 -6
  349. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useAdaptedSelector.js.map +1 -1
  350. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.d.ts +1 -2
  351. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +5 -53
  352. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  353. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/usePropsFor.d.ts +0 -1
  354. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -13
  355. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js +0 -2
  356. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  357. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.d.ts +3 -2
  358. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +2 -7
  359. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  360. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +3 -8
  361. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +11 -121
  362. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  363. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.d.ts +3 -1
  364. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +2 -6
  365. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
  366. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -1
  367. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +0 -36
  368. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +0 -61
  369. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  370. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js +0 -4
  371. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.js.map +1 -1
  372. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js +5 -1
  373. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/Buttons.styles.js.map +1 -1
  374. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.d.ts +5 -1
  375. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +14 -4
  376. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
  377. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +0 -1
  378. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  379. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.d.ts +9 -0
  380. package/dist/dist-esm/{react-components/src/permissions/index.js → react-composites/src/composites/CallComposite/types/ErrorTracking.js} +2 -2
  381. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/ErrorTracking.js.map +1 -0
  382. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.d.ts +21 -0
  383. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js +43 -0
  384. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/TrackErrors.js.map +1 -0
  385. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +4 -31
  386. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +1 -109
  387. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  388. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.d.ts +1 -0
  389. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js +1 -0
  390. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/index.js.map +1 -1
  391. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +1 -62
  392. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +11 -32
  393. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  394. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButton.d.ts +0 -1
  395. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.d.ts +3 -5
  396. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js +4 -26
  397. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/ChatButtonWithUnreadMessagesBadge.js.map +1 -1
  398. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/NotificationIcon.d.ts +0 -1
  399. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.d.ts +7 -0
  400. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js +32 -0
  401. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/ChatButton/useUnreadMessagesTracker.js.map +1 -0
  402. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +0 -44
  403. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  404. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +7 -48
  405. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +14 -192
  406. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  407. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +14 -118
  408. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  409. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -21
  410. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +8 -89
  411. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  412. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +0 -13
  413. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +1 -37
  414. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  415. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +0 -1
  416. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  417. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +0 -27
  418. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +3 -19
  419. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  420. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.d.ts +0 -21
  421. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js +0 -4
  422. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatComposite.js.map +1 -1
  423. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatHeader.d.ts +0 -1
  424. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.d.ts +0 -1
  425. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +3 -43
  426. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  427. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.d.ts +0 -4
  428. package/dist/dist-esm/react-composites/src/composites/ChatComposite/Strings.js.map +1 -1
  429. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +2 -28
  430. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +4 -126
  431. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  432. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.d.ts +0 -28
  433. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js +1 -159
  434. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationFileUploadAdapter.js.map +1 -1
  435. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +2 -17
  436. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  437. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js +0 -2
  438. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapterProvider.js.map +1 -1
  439. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.d.ts +0 -1
  440. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js +1 -8
  441. package/dist/dist-esm/react-composites/src/composites/ChatComposite/file-sharing/FileUploadButton.js.map +1 -1
  442. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/usePropsFor.d.ts +0 -1
  443. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +0 -4
  444. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  445. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -6
  446. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js +0 -11
  447. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
  448. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.d.ts +0 -6
  449. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js +2 -3
  450. package/dist/dist-esm/react-composites/src/composites/common/AvatarPersona.js.map +1 -1
  451. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +5 -5
  452. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +9 -41
  453. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  454. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.d.ts +0 -1
  455. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +0 -14
  456. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +0 -176
  457. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  458. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +0 -3
  459. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +1 -5
  460. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  461. package/dist/dist-esm/react-composites/src/composites/common/HiddenFocusStartPoint.d.ts +0 -1
  462. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.d.ts +0 -1
  463. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js +1 -14
  464. package/dist/dist-esm/react-composites/src/composites/common/ModalLocalAndRemotePIP.js.map +1 -1
  465. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.d.ts +0 -1
  466. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.d.ts +0 -1
  467. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +10 -1
  468. package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
  469. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +0 -1
  470. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +4 -20
  471. package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
  472. package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +0 -1
  473. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +0 -1
  474. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js +2 -4
  475. package/dist/dist-esm/react-composites/src/composites/common/TabHeader.js.map +1 -1
  476. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -47
  477. package/dist/dist-esm/react-composites/src/composites/common/icons.js +1 -21
  478. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  479. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +4 -26
  480. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
  481. package/dist/dist-esm/react-composites/src/composites/index.d.ts +0 -2
  482. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  483. package/dist/dist-esm/react-composites/src/composites/localization/locales/ar-SA/strings.json +4 -2
  484. package/dist/dist-esm/react-composites/src/composites/localization/locales/cs-CZ/strings.json +8 -6
  485. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +4 -2
  486. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +4 -2
  487. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +4 -2
  488. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +4 -2
  489. package/dist/dist-esm/react-composites/src/composites/localization/locales/fi-FI/strings.json +4 -2
  490. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +4 -2
  491. package/dist/dist-esm/react-composites/src/composites/localization/locales/he-IL/strings.json +4 -2
  492. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +4 -2
  493. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +4 -2
  494. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +4 -2
  495. package/dist/dist-esm/react-composites/src/composites/localization/locales/nb-NO/strings.json +4 -2
  496. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +4 -2
  497. package/dist/dist-esm/react-composites/src/composites/localization/locales/pl-PL/strings.json +4 -2
  498. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +4 -2
  499. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +4 -2
  500. package/dist/dist-esm/react-composites/src/composites/localization/locales/sv-SE/strings.json +4 -2
  501. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +4 -2
  502. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +4 -2
  503. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +4 -2
  504. package/package.json +22 -25
  505. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +0 -48
  506. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +0 -72
  507. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +0 -1
  508. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.d.ts +0 -43
  509. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js +0 -85
  510. package/dist/dist-esm/calling-component-bindings/src/handlers/createTeamsCallHandlers.js.map +0 -1
  511. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +0 -18
  512. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +0 -38
  513. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +0 -1
  514. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.d.ts +0 -28
  515. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js +0 -49
  516. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +0 -1
  517. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.d.ts +0 -24
  518. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js +0 -30
  519. package/dist/dist-esm/calling-stateful-client/src/OptimalVideoCountSubscriber.js.map +0 -1
  520. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.d.ts +0 -19
  521. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js +0 -89
  522. package/dist/dist-esm/calling-stateful-client/src/TeamsCallAgentDeclarative.js.map +0 -1
  523. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.d.ts +0 -23
  524. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js +0 -49
  525. package/dist/dist-esm/calling-stateful-client/src/TeamsCallDeclarative.js.map +0 -1
  526. package/dist/dist-esm/react-components/src/components/Caption.d.ts +0 -21
  527. package/dist/dist-esm/react-components/src/components/Caption.js +0 -32
  528. package/dist/dist-esm/react-components/src/components/Caption.js.map +0 -1
  529. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +0 -41
  530. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +0 -50
  531. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +0 -1
  532. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +0 -37
  533. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +0 -93
  534. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +0 -1
  535. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.d.ts +0 -10
  536. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js +0 -15
  537. package/dist/dist-esm/react-components/src/components/ChatMessage/MentionRenderer.js.map +0 -1
  538. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.d.ts +0 -69
  539. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js +0 -43
  540. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDenied.js.map +0 -1
  541. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.d.ts +0 -75
  542. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js +0 -75
  543. package/dist/dist-esm/react-components/src/components/DevicePermissions/BrowserPermissionDeniedIOS.js.map +0 -1
  544. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.d.ts +0 -105
  545. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js +0 -68
  546. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissions.js.map +0 -1
  547. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.d.ts +0 -86
  548. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js +0 -39
  549. package/dist/dist-esm/react-components/src/components/DevicePermissions/SitePermissionsScaffolding.js.map +0 -1
  550. package/dist/dist-esm/react-components/src/components/HoldButton.d.ts +0 -49
  551. package/dist/dist-esm/react-components/src/components/HoldButton.js +0 -25
  552. package/dist/dist-esm/react-components/src/components/HoldButton.js.map +0 -1
  553. package/dist/dist-esm/react-components/src/components/MentionPopover.d.ts +0 -121
  554. package/dist/dist-esm/react-components/src/components/MentionPopover.js +0 -118
  555. package/dist/dist-esm/react-components/src/components/MentionPopover.js.map +0 -1
  556. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.d.ts +0 -35
  557. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js +0 -33
  558. package/dist/dist-esm/react-components/src/components/ResponsiveVerticalGallery.js.map +0 -1
  559. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +0 -70
  560. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +0 -61
  561. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +0 -1
  562. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.d.ts +0 -41
  563. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js +0 -545
  564. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +0 -1
  565. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.d.ts +0 -152
  566. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js +0 -788
  567. package/dist/dist-esm/react-components/src/components/TextFieldWithMention/mentionTagUtils.js.map +0 -1
  568. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +0 -10
  569. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +0 -26
  570. package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +0 -1
  571. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.d.ts +0 -10
  572. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +0 -31
  573. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +0 -1
  574. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.d.ts +0 -58
  575. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js +0 -144
  576. package/dist/dist-esm/react-components/src/components/styles/BrowserPermissionDenied.styles.js.map +0 -1
  577. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +0 -37
  578. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +0 -67
  579. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +0 -1
  580. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.d.ts +0 -34
  581. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js +0 -86
  582. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +0 -1
  583. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +0 -14
  584. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +0 -16
  585. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +0 -1
  586. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.d.ts +0 -31
  587. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js +0 -70
  588. package/dist/dist-esm/react-components/src/components/styles/MentionPopover.style.js.map +0 -1
  589. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.d.ts +0 -38
  590. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js +0 -92
  591. package/dist/dist-esm/react-components/src/components/styles/SitePermissions.styles.js.map +0 -1
  592. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.d.ts +0 -26
  593. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +0 -67
  594. package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +0 -1
  595. package/dist/dist-esm/react-components/src/components/utils/merge.d.ts +0 -7
  596. package/dist/dist-esm/react-components/src/components/utils/merge.js +0 -16
  597. package/dist/dist-esm/react-components/src/components/utils/merge.js.map +0 -1
  598. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +0 -61
  599. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js +0 -74
  600. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +0 -1
  601. package/dist/dist-esm/react-components/src/permissions/index.d.ts +0 -2
  602. package/dist/dist-esm/react-components/src/permissions/index.js.map +0 -1
  603. package/dist/dist-esm/react-components/src/theming/icons.styles.d.ts +0 -6
  604. package/dist/dist-esm/react-components/src/theming/icons.styles.js +0 -25
  605. package/dist/dist-esm/react-components/src/theming/icons.styles.js.map +0 -1
  606. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +0 -48
  607. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +0 -218
  608. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +0 -1
  609. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.d.ts +0 -12
  610. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js +0 -93
  611. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/HoldPane.js.map +0 -1
  612. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.d.ts +0 -29
  613. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js +0 -74
  614. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/SidePane/useVideoEffectsPane.js.map +0 -1
  615. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.d.ts +0 -8
  616. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js +0 -26
  617. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/People.js.map +0 -1
  618. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.d.ts +0 -19
  619. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js +0 -30
  620. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/HoldPage.js.map +0 -1
  621. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.d.ts +0 -14
  622. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js +0 -113
  623. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/TransferPage.js.map +0 -1
  624. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.d.ts +0 -15
  625. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +0 -54
  626. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +0 -1
  627. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.d.ts +0 -7
  628. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js +0 -20
  629. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.js.map +0 -1
  630. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.d.ts +0 -7
  631. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js +0 -14
  632. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/videoBackgroundErrorsSelector.js.map +0 -1
  633. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.d.ts +0 -32
  634. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js +0 -81
  635. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/HoldPane.styles.js.map +0 -1
  636. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.d.ts +0 -37
  637. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js +0 -73
  638. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/TransferPage.styles.js.map +0 -1
  639. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.d.ts +0 -18
  640. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js +0 -18
  641. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreenPeoplePane.js.map +0 -1
  642. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.d.ts +0 -15
  643. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js +0 -23
  644. package/dist/dist-esm/react-composites/src/composites/ChatComposite/FileDownloadErrorBar.js.map +0 -1
  645. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.d.ts +0 -6
  646. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js +0 -11
  647. package/dist/dist-esm/react-composites/src/composites/ChatComposite/hooks/useSelector.js.map +0 -1
  648. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.d.ts +0 -12
  649. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js +0 -13
  650. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/baseSelectors.js.map +0 -1
  651. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.d.ts +0 -23
  652. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js +0 -14
  653. package/dist/dist-esm/react-composites/src/composites/ChatComposite/selectors/fileUploadsSelector.js.map +0 -1
  654. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.d.ts +0 -22
  655. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js +0 -107
  656. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.js.map +0 -1
  657. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.d.ts +0 -17
  658. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js +0 -32
  659. package/dist/dist-esm/react-composites/src/composites/common/AddPeopleDropdown.styles.js.map +0 -1
  660. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.d.ts +0 -22
  661. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js +0 -74
  662. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.js.map +0 -1
  663. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.d.ts +0 -15
  664. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +0 -61
  665. package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +0 -1
  666. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +0 -6
  667. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +0 -69
  668. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +0 -1
  669. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +0 -12
  670. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +0 -108
  671. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +0 -1
  672. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +0 -7
  673. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +0 -38
  674. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +0 -1
  675. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +0 -17
  676. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +0 -212
  677. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +0 -1
  678. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.d.ts +0 -6
  679. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js +0 -24
  680. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +0 -1
  681. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +0 -20
  682. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +0 -52
  683. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +0 -1
  684. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.d.ts +0 -7
  685. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js +0 -24
  686. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +0 -1
  687. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.d.ts +0 -17
  688. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js +0 -50
  689. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.js.map +0 -1
  690. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.d.ts +0 -11
  691. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +0 -40
  692. package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +0 -1
  693. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +0 -14
  694. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +0 -149
  695. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +0 -1
@@ -1,788 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- const MSFT_MENTION_TAG = 'msft-mention';
4
- /**
5
- * Get validated value for index between min and max values. If currentValue is not defined, -1 will be used instead.
6
- *
7
- * @private
8
- * @param props - Props for finding a valid index in range.
9
- * @returns Valid index in the range.
10
- */
11
- export const getValidatedIndexInRange = (props) => {
12
- const { min, max, currentValue } = props;
13
- let updatedValue = currentValue !== null && currentValue !== void 0 ? currentValue : -1;
14
- updatedValue = Math.max(min, updatedValue);
15
- updatedValue = Math.min(updatedValue, max);
16
- return updatedValue;
17
- };
18
- /**
19
- * Find mention tag for selection if exists.
20
- *
21
- * @private
22
- * @param tags - Existing list of tags.
23
- * @param selection - Selection index.
24
- * @returns Mention tag if exists, otherwise undefined.
25
- */
26
- export const findMentionTagForSelection = (tags, selection) => {
27
- let mentionTag = undefined;
28
- tags.every(tag => {
29
- const closingTagInfo = getTagClosingTagInfo(tag);
30
- if (tag.plainTextBeginIndex !== undefined && tag.plainTextBeginIndex > selection) {
31
- // no need to check further as the selection is before the tag
32
- return false;
33
- }
34
- else if (tag.plainTextBeginIndex !== undefined && tag.plainTextBeginIndex <= selection && selection <= closingTagInfo.plainTextEndIndex) {
35
- // no need to check if tag doesn't contain selection
36
- if (tag.subTags !== undefined && tag.subTags.length !== 0) {
37
- const selectedTag = findMentionTagForSelection(tag.subTags, selection);
38
- if (selectedTag !== undefined) {
39
- mentionTag = selectedTag;
40
- return false;
41
- }
42
- }
43
- else if (tag.tagType === MSFT_MENTION_TAG) {
44
- mentionTag = tag;
45
- return false;
46
- }
47
- }
48
- return true;
49
- });
50
- return mentionTag;
51
- };
52
- /**
53
- * Find a new the selection index.
54
- *
55
- * @private
56
- * @param props - Props for finding new selection index for mention.
57
- * @returns New selection index if it is inside of a mention tag, otherwise the current selection.
58
- */
59
- export const findNewSelectionIndexForMention = (props) => {
60
- var _a;
61
- const { tag, textValue, currentSelectionIndex, previousSelectionIndex } = props;
62
- // check if this is a mention tag and selection should be updated
63
- if (tag.tagType !== MSFT_MENTION_TAG || tag.plainTextBeginIndex === undefined || currentSelectionIndex === previousSelectionIndex || tag.plainTextEndIndex === undefined) {
64
- return currentSelectionIndex;
65
- }
66
- let spaceIndex = 0;
67
- if (currentSelectionIndex <= previousSelectionIndex) {
68
- // the cursor is moved to the left, find the last index before the cursor
69
- spaceIndex = textValue.lastIndexOf(' ', currentSelectionIndex !== null && currentSelectionIndex !== void 0 ? currentSelectionIndex : 0);
70
- if (spaceIndex === -1) {
71
- // no space before the selection, use the beginning of the tag
72
- spaceIndex = tag.plainTextBeginIndex;
73
- }
74
- }
75
- else {
76
- // the cursor is moved to the right, find the fist index after the cursor
77
- spaceIndex = textValue.indexOf(' ', currentSelectionIndex !== null && currentSelectionIndex !== void 0 ? currentSelectionIndex : 0);
78
- if (spaceIndex === -1) {
79
- // no space after the selection, use the end of the tag
80
- spaceIndex = (_a = tag.plainTextEndIndex) !== null && _a !== void 0 ? _a : tag.plainTextBeginIndex;
81
- }
82
- }
83
- spaceIndex = getValidatedIndexInRange({
84
- min: tag.plainTextBeginIndex,
85
- max: tag.plainTextEndIndex,
86
- currentValue: spaceIndex
87
- });
88
- return spaceIndex;
89
- };
90
- /**
91
- * Handle mention tag edit and by word deleting
92
- *
93
- * @private
94
- * @param props - Props for mention update HTML function.
95
- * @returns Updated texts and indexes.
96
- */
97
- const handleMentionTagUpdate = (props) => {
98
- const { htmlText, oldPlainText, change, tag, closeTagIdx, closeTagLength, plainTextEndIndex, startIndex, oldPlainTextEndIndex, mentionTagLength } = props;
99
- let processedChange = props.processedChange;
100
- let lastProcessedHTMLIndex = props.lastProcessedHTMLIndex;
101
- if (tag.tagType !== MSFT_MENTION_TAG || tag.plainTextBeginIndex === undefined) {
102
- // not a mention tag
103
- return {
104
- result: '',
105
- updatedChange: processedChange,
106
- htmlIndex: lastProcessedHTMLIndex,
107
- plainTextSelectionEndIndex: undefined
108
- };
109
- }
110
- let result = '';
111
- let plainTextSelectionEndIndex;
112
- let rangeStart;
113
- let rangeEnd;
114
- // check if space symbol is handled in case if string looks like '<1 2 3>'
115
- let isSpaceLengthHandled = false;
116
- rangeStart = oldPlainText.lastIndexOf(' ', startIndex);
117
- if (rangeStart !== -1 && rangeStart !== undefined && rangeStart > tag.plainTextBeginIndex) {
118
- isSpaceLengthHandled = true;
119
- }
120
- rangeEnd = oldPlainText.indexOf(' ', oldPlainTextEndIndex);
121
- if (rangeEnd === -1 || rangeEnd === undefined) {
122
- // check if space symbol is not found
123
- rangeEnd = plainTextEndIndex;
124
- }
125
- else if (!isSpaceLengthHandled) {
126
- // +1 to include the space symbol
127
- rangeEnd += 1;
128
- }
129
- isSpaceLengthHandled = true;
130
- if (rangeStart === -1 || rangeStart === undefined || rangeStart < tag.plainTextBeginIndex) {
131
- // rangeStart should be at least equal to tag.plainTextBeginIndex
132
- rangeStart = tag.plainTextBeginIndex;
133
- }
134
- if (rangeEnd > plainTextEndIndex) {
135
- // rangeEnd should be at most equal to plainTextEndIndex
136
- rangeEnd = plainTextEndIndex;
137
- }
138
- if (rangeStart === tag.plainTextBeginIndex && rangeEnd === plainTextEndIndex) {
139
- // the whole tag should be removed
140
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex) + processedChange;
141
- plainTextSelectionEndIndex = tag.plainTextBeginIndex + processedChange.length;
142
- processedChange = '';
143
- lastProcessedHTMLIndex = closeTagIdx + closeTagLength;
144
- }
145
- else {
146
- // only part of the tag should be removed
147
- let startChangeDiff = 0;
148
- let endChangeDiff = 0;
149
- // need to check only rangeStart > tag.plainTextBeginIndex as when rangeStart === tag.plainTextBeginIndex startChangeDiff = 0 and mentionTagLength shouldn't be subtracted
150
- if (rangeStart > tag.plainTextBeginIndex) {
151
- startChangeDiff = rangeStart - tag.plainTextBeginIndex - mentionTagLength;
152
- }
153
- endChangeDiff = rangeEnd - tag.plainTextBeginIndex - mentionTagLength;
154
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length + startChangeDiff);
155
- if (startIndex < tag.plainTextBeginIndex) {
156
- // if the change is before the tag, the selection should start from startIndex (rangeStart will be equal to tag.plainTextBeginIndex)
157
- plainTextSelectionEndIndex = startIndex + change.length;
158
- }
159
- else {
160
- // if the change is inside the tag, the selection should start with rangeStart
161
- plainTextSelectionEndIndex = rangeStart + processedChange.length;
162
- }
163
- lastProcessedHTMLIndex = tag.openTagIndex + tag.openTagBody.length + endChangeDiff;
164
- // processed change should not be changed as it should be added after the tag
165
- }
166
- return {
167
- result,
168
- updatedChange: processedChange,
169
- htmlIndex: lastProcessedHTMLIndex,
170
- plainTextSelectionEndIndex
171
- };
172
- };
173
- /**
174
- * Get closing tag information if exists otherwise return information as for self closing tag
175
- *
176
- * @private
177
- * @param tag - Tag data.
178
- * @returns Closing tag information for the provided tag.
179
- */
180
- const getTagClosingTagInfo = (tag) => {
181
- let plainTextEndIndex = 0;
182
- let closeTagIdx = 0;
183
- let closeTagLength = 0;
184
- if (tag.plainTextEndIndex !== undefined && tag.closingTagIndex !== undefined) {
185
- // close tag exists
186
- plainTextEndIndex = tag.plainTextEndIndex;
187
- closeTagIdx = tag.closingTagIndex;
188
- // tag.tagType.length + </>
189
- closeTagLength = tag.tagType.length + 3;
190
- }
191
- else if (tag.plainTextBeginIndex !== undefined) {
192
- // no close tag
193
- plainTextEndIndex = tag.plainTextBeginIndex;
194
- closeTagIdx = tag.openTagIndex + tag.openTagBody.length;
195
- closeTagLength = 0;
196
- }
197
- return {
198
- plainTextEndIndex,
199
- closeTagIdx,
200
- closeTagLength
201
- };
202
- };
203
- /**
204
- * Go through the text and update it with the changed text
205
- *
206
- * @private
207
- * @param props - Props for update HTML function.
208
- * @returns Updated HTML and selection index if the selection index should be set.
209
- */
210
- export const updateHTML = (props) => {
211
- const { htmlText, oldPlainText, tags, startIndex, oldPlainTextEndIndex, change, mentionTrigger } = props;
212
- if (tags.length === 0 || startIndex === 0 && oldPlainTextEndIndex === oldPlainText.length - 1) {
213
- // no tags added yet or the whole text is changed
214
- const changeWithSkippedChars = escapeHTMLChars(change);
215
- const updatedHTML = escapeHTMLChars(oldPlainText.substring(0, startIndex)) + changeWithSkippedChars + escapeHTMLChars(oldPlainText.substring(oldPlainTextEndIndex));
216
- return {
217
- updatedHTML,
218
- updatedSelectionIndex: undefined
219
- };
220
- }
221
- let result = '';
222
- let lastProcessedHTMLIndex = 0;
223
- // the value can be updated with empty string when the change covers more than 1 place (tag + before or after the tag)
224
- // in this case change won't be added as part of the tag
225
- // e.g.: change is before and partially in tag => change will be added before the tag and outdated text in the tag will be removed
226
- // e.g.: change is after and partially in tag => change will be added after the tag and outdated text in the tag will be removed
227
- // e.g.: change is on the beginning of the tag => change will be added before the tag
228
- // e.g.: change is on the end of the tag => change will be added to the tag if it's not mention and after the tag if it's mention
229
- let processedChange = escapeHTMLChars(change);
230
- // end tag plain text index of the last processed tag
231
- let lastProcessedPlainTextTagEndIndex = 0;
232
- // as some tags/text can be removed fully, selection should be updated correctly
233
- let changeNewEndIndex;
234
- for (let i = 0; i < tags.length; i++) {
235
- const tag = tags[i];
236
- if (tag.plainTextBeginIndex === undefined) {
237
- continue;
238
- }
239
- // all plain text indexes includes trigger length for the mention that shouldn't be included in
240
- // htmlText.substring because html strings don't include the trigger
241
- // mentionTagLength will be set only for mention tag, otherwise should be 0
242
- let mentionTagLength = 0;
243
- let isMentionTag = false;
244
- if (tag.tagType === MSFT_MENTION_TAG) {
245
- mentionTagLength = mentionTrigger.length;
246
- isMentionTag = true;
247
- }
248
- if (startIndex <= tag.plainTextBeginIndex) {
249
- // change start is before the open tag
250
- // Math.max(lastProcessedPlainTextTagEndIndex, startIndex) is used as startIndex may not be in [[previous tag].plainTextEndIndex - tag.plainTextBeginIndex] range
251
- const startChangeDiff = getChangeDiff(oldPlainText, Math.max(lastProcessedPlainTextTagEndIndex, startIndex), tag.plainTextBeginIndex);
252
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex - startChangeDiff) + processedChange;
253
- processedChange = '';
254
- if (oldPlainTextEndIndex <= tag.plainTextBeginIndex) {
255
- // the whole change is before tag start
256
- // mentionTag length can be ignored here as the change is before the tag
257
- const endChangeDiff = getChangeDiff(oldPlainText, oldPlainTextEndIndex, tag.plainTextBeginIndex);
258
- lastProcessedHTMLIndex = tag.openTagIndex - endChangeDiff;
259
- // the change is handled; exit
260
- break;
261
- }
262
- else {
263
- // change continues in the tag
264
- lastProcessedHTMLIndex = tag.openTagIndex;
265
- // proceed to the next check
266
- }
267
- }
268
- const closingTagInfo = getTagClosingTagInfo(tag);
269
- if (startIndex <= closingTagInfo.plainTextEndIndex) {
270
- // change started before the end tag
271
- if (startIndex <= tag.plainTextBeginIndex && oldPlainTextEndIndex === closingTagInfo.plainTextEndIndex) {
272
- // the change is a tag or starts before the tag
273
- // tag should be removed, no matter if there are sub-tags
274
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex) + processedChange;
275
- processedChange = '';
276
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength;
277
- // the change is handled; exit
278
- break;
279
- }
280
- else if (startIndex >= tag.plainTextBeginIndex && oldPlainTextEndIndex <= closingTagInfo.plainTextEndIndex) {
281
- // the change is between the tag
282
- if (isMentionTag) {
283
- if (change !== '') {
284
- if (startIndex !== tag.plainTextBeginIndex && startIndex !== closingTagInfo.plainTextEndIndex) {
285
- // mention tag should be deleted when user tries to edit it in the middle
286
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex) + processedChange;
287
- changeNewEndIndex = tag.plainTextBeginIndex + unEscapeHtmlCharacters(processedChange).length;
288
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength;
289
- }
290
- else if (startIndex === tag.plainTextBeginIndex) {
291
- // non empty change at the beginning of the mention tag to be added before the mention tag
292
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex) + processedChange;
293
- changeNewEndIndex = tag.plainTextBeginIndex + unEscapeHtmlCharacters(processedChange).length;
294
- lastProcessedHTMLIndex = tag.openTagIndex;
295
- }
296
- else if (startIndex === closingTagInfo.plainTextEndIndex) {
297
- // non empty change at the end of the mention tag to be added after the mention tag
298
- result += htmlText.substring(lastProcessedHTMLIndex, closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength) + processedChange;
299
- changeNewEndIndex = closingTagInfo.plainTextEndIndex + unEscapeHtmlCharacters(processedChange).length;
300
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength;
301
- }
302
- processedChange = '';
303
- }
304
- else {
305
- // When change is empty, it means that this change is a deletion
306
- const updateMentionTagResult = handleMentionTagUpdate({
307
- htmlText,
308
- oldPlainText,
309
- lastProcessedHTMLIndex,
310
- processedChange,
311
- change,
312
- tag,
313
- closeTagIdx: closingTagInfo.closeTagIdx,
314
- closeTagLength: closingTagInfo.closeTagLength,
315
- plainTextEndIndex: closingTagInfo.plainTextEndIndex,
316
- startIndex,
317
- oldPlainTextEndIndex,
318
- mentionTagLength
319
- });
320
- result += updateMentionTagResult.result;
321
- changeNewEndIndex = updateMentionTagResult.plainTextSelectionEndIndex;
322
- processedChange = updateMentionTagResult.updatedChange;
323
- lastProcessedHTMLIndex = updateMentionTagResult.htmlIndex;
324
- }
325
- }
326
- else if (tag.subTags !== undefined && tag.subTags.length !== 0 && tag.content !== undefined) {
327
- // with subtags
328
- const stringBefore = htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length);
329
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx;
330
- const updatedContent = updateHTML({
331
- htmlText: tag.content,
332
- oldPlainText,
333
- tags: tag.subTags,
334
- startIndex,
335
- oldPlainTextEndIndex,
336
- change: processedChange,
337
- mentionTrigger
338
- });
339
- result += stringBefore + updatedContent.updatedHTML;
340
- changeNewEndIndex = updatedContent.updatedSelectionIndex;
341
- }
342
- else {
343
- // no subtags
344
- const startChangeDiff = getChangeDiff(oldPlainText, tag.plainTextBeginIndex, startIndex);
345
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length + startChangeDiff) + processedChange;
346
- processedChange = '';
347
- if (oldPlainTextEndIndex < closingTagInfo.plainTextEndIndex) {
348
- const endChangeDiff = getChangeDiff(oldPlainText, tag.plainTextBeginIndex, oldPlainTextEndIndex);
349
- lastProcessedHTMLIndex = tag.openTagIndex + tag.openTagBody.length + endChangeDiff;
350
- }
351
- else if (oldPlainTextEndIndex === closingTagInfo.plainTextEndIndex) {
352
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx;
353
- }
354
- }
355
- // the change is handled; exit
356
- break;
357
- }
358
- else if (startIndex > tag.plainTextBeginIndex && oldPlainTextEndIndex > closingTagInfo.plainTextEndIndex) {
359
- // the change started in the tag but finishes somewhere further
360
- if (isMentionTag) {
361
- if (startIndex === closingTagInfo.plainTextEndIndex) {
362
- // the change should be handled out of mention tag
363
- // as startIndex === closingTagInfo.plainTextEndIndex and oldPlainTextEndIndex > closingTagInfo.plainTextEndIndex
364
- result += htmlText.substring(lastProcessedHTMLIndex, closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength);
365
- // no need to handle plainTextSelectionEndIndex as the change will be added later
366
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength;
367
- }
368
- else {
369
- // part of the mention tag was changed/deleted
370
- const updateMentionTagResult = handleMentionTagUpdate({
371
- htmlText,
372
- oldPlainText,
373
- lastProcessedHTMLIndex,
374
- processedChange: '',
375
- change,
376
- tag,
377
- closeTagIdx: closingTagInfo.closeTagIdx,
378
- closeTagLength: closingTagInfo.closeTagLength,
379
- plainTextEndIndex: closingTagInfo.plainTextEndIndex,
380
- startIndex,
381
- oldPlainTextEndIndex,
382
- mentionTagLength
383
- });
384
- result += updateMentionTagResult.result;
385
- lastProcessedHTMLIndex = updateMentionTagResult.htmlIndex;
386
- // no need to handle plainTextSelectionEndIndex as the change will be added later
387
- }
388
- }
389
- else if (tag.subTags !== undefined && tag.subTags.length !== 0 && tag.content !== undefined) {
390
- // with subtags
391
- const stringBefore = htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length);
392
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx;
393
- const updatedContent = updateHTML({
394
- htmlText: tag.content,
395
- oldPlainText,
396
- tags: tag.subTags,
397
- startIndex,
398
- oldPlainTextEndIndex,
399
- change: '',
400
- // the part of the tag should be just deleted without processedChange update and change will be added after this tag
401
- mentionTrigger
402
- });
403
- result += stringBefore + updatedContent.updatedHTML;
404
- }
405
- else {
406
- // no subtags
407
- const startChangeDiff = startIndex - tag.plainTextBeginIndex - mentionTagLength;
408
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length + startChangeDiff);
409
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx;
410
- }
411
- // proceed with the next calculations
412
- }
413
- else if (startIndex < tag.plainTextBeginIndex && oldPlainTextEndIndex > closingTagInfo.plainTextEndIndex) {
414
- // the change starts before the tag and finishes after it
415
- // tag should be removed, no matter if there are subtags
416
- // no need to save anything between lastProcessedHTMLIndex and closeTagIdx + closeTagLength
417
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength;
418
- // proceed with the next calculations
419
- }
420
- else if (startIndex === tag.plainTextBeginIndex && oldPlainTextEndIndex > closingTagInfo.plainTextEndIndex) {
421
- // the change starts in the tag and finishes after it
422
- // tag should be removed, no matter if there are subtags
423
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex);
424
- // processedChange shouldn't be updated as it will be added after the tag
425
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength;
426
- // proceed with the next calculations
427
- }
428
- else if (startIndex < tag.plainTextBeginIndex && oldPlainTextEndIndex < closingTagInfo.plainTextEndIndex) {
429
- // the change starts before the tag and ends in a tag
430
- if (isMentionTag) {
431
- // mention tag
432
- const updateMentionTagResult = handleMentionTagUpdate({
433
- htmlText,
434
- oldPlainText,
435
- lastProcessedHTMLIndex,
436
- processedChange: '',
437
- // the part of mention should be just deleted without processedChange update
438
- change,
439
- tag,
440
- closeTagIdx: closingTagInfo.closeTagIdx,
441
- closeTagLength: closingTagInfo.closeTagLength,
442
- plainTextEndIndex: closingTagInfo.plainTextEndIndex,
443
- startIndex,
444
- oldPlainTextEndIndex,
445
- mentionTagLength
446
- });
447
- changeNewEndIndex = updateMentionTagResult.plainTextSelectionEndIndex;
448
- result += updateMentionTagResult.result;
449
- lastProcessedHTMLIndex = updateMentionTagResult.htmlIndex;
450
- }
451
- else if (tag.subTags !== undefined && tag.subTags.length !== 0 && tag.content !== undefined) {
452
- // with subtags
453
- const stringBefore = htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length);
454
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx;
455
- const updatedContent = updateHTML({
456
- htmlText: tag.content,
457
- oldPlainText,
458
- tags: tag.subTags,
459
- startIndex,
460
- oldPlainTextEndIndex,
461
- change: processedChange,
462
- // processedChange should be equal '' and the part of the tag should be deleted as the change was handled before this tag
463
- mentionTrigger
464
- });
465
- processedChange = '';
466
- result += stringBefore + updatedContent.updatedHTML;
467
- }
468
- else {
469
- // no subtags
470
- result += htmlText.substring(lastProcessedHTMLIndex, tag.openTagIndex + tag.openTagBody.length) + processedChange;
471
- processedChange = '';
472
- // oldPlainTextEndIndex already includes mentionTag length
473
- const endChangeDiff = getChangeDiff(oldPlainText, oldPlainTextEndIndex, closingTagInfo.plainTextEndIndex);
474
- // as change may be before the end of the tag, we need to add the rest of the tag
475
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx - endChangeDiff;
476
- }
477
- // the change is handled; exit
478
- break;
479
- }
480
- lastProcessedPlainTextTagEndIndex = closingTagInfo.plainTextEndIndex;
481
- }
482
- if (i === tags.length - 1 && oldPlainTextEndIndex >= closingTagInfo.plainTextEndIndex) {
483
- // the last tag should handle the end of the change if needed
484
- // oldPlainTextEndIndex already includes mentionTag length
485
- const endChangeDiff = getChangeDiff(oldPlainText, closingTagInfo.plainTextEndIndex, oldPlainTextEndIndex);
486
- if (startIndex >= closingTagInfo.plainTextEndIndex) {
487
- const startChangeDiff = getChangeDiff(oldPlainText, closingTagInfo.plainTextEndIndex, startIndex);
488
- result += htmlText.substring(lastProcessedHTMLIndex, closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength + startChangeDiff) + processedChange;
489
- }
490
- else {
491
- result += htmlText.substring(lastProcessedHTMLIndex, closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength) + processedChange;
492
- }
493
- processedChange = '';
494
- lastProcessedHTMLIndex = closingTagInfo.closeTagIdx + closingTagInfo.closeTagLength + endChangeDiff;
495
- // the change is handled; exit
496
- // break is not required here as this is the last element but added for consistency
497
- break;
498
- }
499
- }
500
- if (lastProcessedHTMLIndex < htmlText.length) {
501
- // add the rest of the html string
502
- result += htmlText.substring(lastProcessedHTMLIndex);
503
- }
504
- return {
505
- updatedHTML: result,
506
- updatedSelectionIndex: changeNewEndIndex
507
- };
508
- };
509
- /**
510
- * Given the oldText and newText, find the start index, old end index and new end index for the changes
511
- *
512
- * @private
513
- * @param props - Props for finding stings diff indexes function.
514
- * @returns Indexes for change start and ends in new and old texts. The old and new end indexes are exclusive.
515
- */
516
- export const findStringsDiffIndexes = (props) => {
517
- const { oldText, newText, previousSelectionStart, previousSelectionEnd, currentSelectionStart, currentSelectionEnd } = props;
518
- const newTextLength = newText.length;
519
- const oldTextLength = oldText.length;
520
- // let changeStart = 0;
521
- let newChangeEnd = newTextLength;
522
- let oldChangeEnd = oldTextLength;
523
- const previousSelectionStartValue = previousSelectionStart > -1 ? previousSelectionStart : oldTextLength;
524
- const previousSelectionEndValue = previousSelectionEnd > -1 ? previousSelectionEnd : oldTextLength;
525
- const currentSelectionStartValue = currentSelectionStart > -1 ? currentSelectionStart : newTextLength;
526
- const currentSelectionEndValue = currentSelectionEnd > -1 ? currentSelectionEnd : newTextLength;
527
- const changeStart = Math.min(previousSelectionStartValue, previousSelectionEndValue, currentSelectionStartValue, currentSelectionEndValue, newTextLength, oldTextLength);
528
- if (oldTextLength < newTextLength) {
529
- //insert or replacement
530
- if (oldTextLength === changeStart) {
531
- // when change was at the end of string
532
- // change is found
533
- newChangeEnd = newTextLength;
534
- oldChangeEnd = oldTextLength;
535
- }
536
- else {
537
- for (let i = 0; i < newTextLength && oldTextLength - i >= changeStart; i++) {
538
- newChangeEnd = newTextLength - i - 1;
539
- oldChangeEnd = oldTextLength - i - 1;
540
- if (newText[newChangeEnd] !== oldText[oldChangeEnd]) {
541
- // change is found
542
- break;
543
- }
544
- }
545
- // make indexes exclusive
546
- newChangeEnd += 1;
547
- oldChangeEnd += 1;
548
- }
549
- }
550
- else if (oldTextLength > newTextLength) {
551
- //deletion or replacement
552
- if (newTextLength === changeStart) {
553
- // when change was at the end of string
554
- // change is found
555
- newChangeEnd = newTextLength;
556
- oldChangeEnd = oldTextLength;
557
- }
558
- else {
559
- for (let i = 0; i < oldTextLength && newTextLength - i >= changeStart; i++) {
560
- newChangeEnd = newTextLength - i - 1;
561
- oldChangeEnd = oldTextLength - i - 1;
562
- if (newText[newChangeEnd] !== oldText[oldChangeEnd]) {
563
- // change is found
564
- break;
565
- }
566
- }
567
- // make indexes exclusive
568
- newChangeEnd += 1;
569
- oldChangeEnd += 1;
570
- }
571
- }
572
- else {
573
- // replacement
574
- for (let i = 0; i < oldTextLength && oldTextLength - i >= changeStart; i++) {
575
- newChangeEnd = newTextLength - i - 1;
576
- oldChangeEnd = oldTextLength - i - 1;
577
- if (newText[newChangeEnd] !== oldText[oldChangeEnd]) {
578
- // change is found
579
- break;
580
- }
581
- }
582
- // make indexes exclusive if they aren't equal to the length of the string
583
- if (newChangeEnd !== newText.length) {
584
- newChangeEnd += 1;
585
- }
586
- if (oldChangeEnd !== oldText.length) {
587
- oldChangeEnd += 1;
588
- }
589
- }
590
- return {
591
- changeStart,
592
- oldChangeEnd,
593
- newChangeEnd
594
- };
595
- };
596
- /**
597
- * Get the html string for the mention suggestion.
598
- *
599
- * @private
600
- * @param suggestion - The mention suggestion.
601
- * @param localeStrings - The locale strings.
602
- * @returns The html string for the mention suggestion.
603
- */
604
- export const htmlStringForMentionSuggestion = (suggestion, localeStrings) => {
605
- const idHTML = ' id="' + suggestion.id + '"';
606
- const displayText = getDisplayNameForMentionSuggestion(suggestion, localeStrings);
607
- return '<' + MSFT_MENTION_TAG + idHTML + '>' + displayText + '</' + MSFT_MENTION_TAG + '>';
608
- };
609
- /**
610
- * Get display name for the mention suggestion.
611
- *
612
- * @private
613
- *
614
- * @param suggestion - The mention suggestion.
615
- * @param localeStrings - The locale strings.
616
- * @returns The display name for the mention suggestion or display name placeholder if display name is empty.
617
- */
618
- export const getDisplayNameForMentionSuggestion = (suggestion, localeStrings) => {
619
- const displayNamePlaceholder = localeStrings.participantItem.displayNamePlaceholder;
620
- return suggestion.displayText !== '' ? suggestion.displayText : displayNamePlaceholder !== null && displayNamePlaceholder !== void 0 ? displayNamePlaceholder : '';
621
- };
622
- /**
623
- * Parse the text and return the tags and the plain text in one go
624
- * @private
625
- * @param text - The text to parse for HTML tags
626
- * @param trigger The trigger to show for the mention tag in plain text
627
- *
628
- * @returns An array of tags and the plain text representation
629
- */
630
- export const textToTagParser = (text, trigger) => {
631
- var _a, _b;
632
- const tags = []; // Tags passed back to the caller
633
- const tagParseStack = []; // Local stack to use while parsing
634
- let plainTextRepresentation = '';
635
- let parseIndex = 0;
636
- while (parseIndex < text.length) {
637
- const foundHtmlTag = findNextHtmlTag(text, parseIndex);
638
- if (!foundHtmlTag) {
639
- if (parseIndex !== 0) {
640
- // Add the remaining text to the plain text representation
641
- const newText = text.substring(parseIndex);
642
- plainTextRepresentation += unEscapeHtmlCharacters(newText);
643
- }
644
- else {
645
- plainTextRepresentation = unEscapeHtmlCharacters(text);
646
- }
647
- break;
648
- }
649
- if (foundHtmlTag.type === 'open' || foundHtmlTag.type === 'self-closing') {
650
- const nextTag = parseOpenTag(foundHtmlTag.content, foundHtmlTag.startIdx);
651
- // Add the plain text between the last tag and this one found
652
- plainTextRepresentation += unEscapeHtmlCharacters(text.substring(parseIndex, foundHtmlTag.startIdx));
653
- nextTag.plainTextBeginIndex = plainTextRepresentation.length;
654
- if (foundHtmlTag.type === 'open') {
655
- tagParseStack.push(nextTag);
656
- }
657
- else {
658
- nextTag.content = '';
659
- nextTag.plainTextBeginIndex = plainTextRepresentation.length;
660
- nextTag.plainTextEndIndex = plainTextRepresentation.length;
661
- addTag(nextTag, tagParseStack, tags);
662
- }
663
- }
664
- if (foundHtmlTag.type === 'close') {
665
- const currentOpenTag = tagParseStack.pop();
666
- const closeTagType = foundHtmlTag.content.substring(2, foundHtmlTag.content.length - 1).toLowerCase();
667
- if (currentOpenTag && currentOpenTag.tagType === closeTagType) {
668
- // Tag startIdx is absolute to the text. This is updated later to be relative to the parent tag
669
- currentOpenTag.content = text.substring(currentOpenTag.openTagIndex + currentOpenTag.openTagBody.length, foundHtmlTag.startIdx);
670
- // Insert the plain text pieces for the sub tags
671
- if (currentOpenTag.tagType === MSFT_MENTION_TAG) {
672
- plainTextRepresentation = plainTextRepresentation.slice(0, currentOpenTag.plainTextBeginIndex) + trigger + plainTextRepresentation.slice(currentOpenTag.plainTextBeginIndex);
673
- }
674
- if (!currentOpenTag.subTags) {
675
- plainTextRepresentation += unEscapeHtmlCharacters(currentOpenTag.content);
676
- }
677
- else if (currentOpenTag.subTags.length > 0) {
678
- // Add text after the last tag
679
- const lastSubTag = currentOpenTag.subTags[currentOpenTag.subTags.length - 1];
680
- const startOfRemainingText = ((_a = lastSubTag.closingTagIndex) !== null && _a !== void 0 ? _a : lastSubTag.openTagIndex) + lastSubTag.tagType.length + 3;
681
- const trailingText = currentOpenTag.content.substring(startOfRemainingText);
682
- plainTextRepresentation += unEscapeHtmlCharacters(trailingText);
683
- }
684
- currentOpenTag.plainTextEndIndex = plainTextRepresentation.length;
685
- addTag(currentOpenTag, tagParseStack, tags);
686
- }
687
- else {
688
- throw new Error('Unexpected close tag found. Got "' + closeTagType + '" but expected "' + ((_b = tagParseStack[tagParseStack.length - 1]) === null || _b === void 0 ? void 0 : _b.tagType) + '"');
689
- }
690
- }
691
- // Update parsing index; move past the end of the close tag
692
- parseIndex = foundHtmlTag.startIdx + foundHtmlTag.content.length;
693
- } // While parseIndex < text.length loop
694
- return {
695
- tags,
696
- plainText: plainTextRepresentation
697
- };
698
- };
699
- const parseOpenTag = (tag, startIdx) => {
700
- const tagType = tag.substring(1, tag.length - 1).split(' ')[0].toLowerCase().replace('/', '');
701
- return {
702
- tagType,
703
- openTagIndex: startIdx,
704
- openTagBody: tag
705
- };
706
- };
707
- const findNextHtmlTag = (text, startIndex) => {
708
- const tagStartIndex = text.indexOf('<', startIndex);
709
- if (tagStartIndex === -1) {
710
- // No more tags
711
- return undefined;
712
- }
713
- const tagEndIndex = text.indexOf('>', tagStartIndex);
714
- if (tagEndIndex === -1) {
715
- // No close tag
716
- return undefined;
717
- }
718
- const tag = text.substring(tagStartIndex, tagEndIndex + 1);
719
- let type = 'open';
720
- if (tag[1] === '/') {
721
- type = 'close';
722
- }
723
- else if (tag[tag.length - 2] === '/') {
724
- type = 'self-closing';
725
- }
726
- return {
727
- content: tag,
728
- startIdx: tagStartIndex,
729
- type
730
- };
731
- };
732
- const addTag = (tag, parseStack, tags) => {
733
- var _a;
734
- // Add as sub-tag to the parent stack tag, if there is one
735
- const parentTag = parseStack[parseStack.length - 1];
736
- if (parentTag) {
737
- // Adjust the open tag index to be relative to the parent tag
738
- const parentContentStartIdx = parentTag.openTagIndex + parentTag.openTagBody.length;
739
- const relativeIdx = tag.openTagIndex - parentContentStartIdx;
740
- tag.openTagIndex = relativeIdx;
741
- }
742
- if (!tag.closingTagIndex) {
743
- // If the tag is self-closing, the close tag is the same as the open tag
744
- if (tag.openTagBody[tag.openTagBody.length - 2] === '/') {
745
- tag.closingTagIndex = tag.openTagIndex;
746
- }
747
- else {
748
- // Otherwise, the close tag index is the open tag index + the open tag body + the content length
749
- tag.closingTagIndex = tag.openTagIndex + tag.openTagBody.length + ((_a = tag.content) !== null && _a !== void 0 ? _a : []).length;
750
- }
751
- }
752
- // Put the tag where it belongs
753
- if (!parentTag) {
754
- tags.push(tag);
755
- }
756
- else {
757
- if (!parentTag.subTags) {
758
- parentTag.subTags = [tag];
759
- }
760
- else {
761
- parentTag.subTags.push(tag);
762
- }
763
- }
764
- };
765
- // We should revisit this in the future when we support other text such as rich text editing.
766
- const escapeHTMLChars = (text) => {
767
- const mentionRegex = new RegExp(`<${MSFT_MENTION_TAG}(.*?)>(.*?)</${MSFT_MENTION_TAG}>`, 'i');
768
- if (!text.match(mentionRegex)) {
769
- return text.replace(/&(?![A-Z]+;)/gi, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
770
- }
771
- return text;
772
- };
773
- const getChangeDiff = (plainText, startIndex, endIndex) => {
774
- return endIndex - startIndex + getLengthDiffForEscapedHtmlChars(plainText, startIndex, endIndex);
775
- };
776
- const getLengthDiffForEscapedHtmlChars = (text, startIndex, endIndex) => {
777
- var _a, _b;
778
- const subText = text.substring(startIndex, endIndex);
779
- const escapedAngleBracketCount = ((_a = subText.match(/(<)|(>)/g)) === null || _a === void 0 ? void 0 : _a.length) || 0;
780
- let escapedCharLength = escapedAngleBracketCount * ('&lt;'.length - '<'.length);
781
- const escapedAmpersandCount = ((_b = subText.match(/&/g)) === null || _b === void 0 ? void 0 : _b.length) || 0;
782
- escapedCharLength += escapedAmpersandCount * ('&amp;'.length - '&'.length);
783
- return escapedCharLength;
784
- };
785
- const unEscapeHtmlCharacters = (text) => {
786
- return text.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&');
787
- };
788
- //# sourceMappingURL=mentionTagUtils.js.map