@azure/communication-react 1.5.1-beta.2 → 1.5.1-beta.4

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 (330) hide show
  1. package/CHANGELOG.beta.md +56 -1
  2. package/CHANGELOG.json +494 -0
  3. package/README.md +1 -1
  4. package/dist/communication-react.d.ts +476 -254
  5. package/dist/dist-cjs/communication-react/index.js +5974 -4543
  6. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  7. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  8. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  9. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +13 -0
  10. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +36 -0
  11. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  12. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +49 -0
  13. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +53 -0
  14. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -0
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +12 -4
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +22 -32
  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/createHandlers.js +3 -1
  19. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  20. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +3 -0
  21. package/dist/dist-esm/calling-component-bindings/src/index.js +2 -0
  22. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  23. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +68 -22
  24. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  25. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +8 -3
  26. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +81 -30
  27. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  28. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +57 -0
  29. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  30. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -1
  31. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +19 -21
  32. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  33. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +18 -0
  34. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +38 -0
  35. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -0
  36. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +6 -0
  37. package/dist/dist-esm/calling-stateful-client/src/Converter.js +17 -1
  38. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  39. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +0 -9
  40. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +3 -6
  41. package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
  42. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.d.ts +0 -1
  43. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js +2 -25
  44. package/dist/dist-esm/calling-stateful-client/src/InternalCallContext.js.map +1 -1
  45. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +7 -0
  46. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +10 -0
  47. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  48. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -1
  49. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  50. package/dist/dist-esm/calling-stateful-client/src/index.d.ts +1 -0
  51. package/dist/dist-esm/calling-stateful-client/src/index.js +2 -0
  52. package/dist/dist-esm/calling-stateful-client/src/index.js.map +1 -1
  53. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +58 -4
  54. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  55. package/dist/dist-esm/chat-component-bindings/src/utils/constants.d.ts +4 -0
  56. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js +4 -0
  57. package/dist/dist-esm/chat-component-bindings/src/utils/constants.js.map +1 -1
  58. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js +32 -26
  59. package/dist/dist-esm/chat-component-bindings/src/utils/updateMessagesWithAttached.js.map +1 -1
  60. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js +5 -1
  61. package/dist/dist-esm/chat-stateful-client/src/EventSubscriber.js.map +1 -1
  62. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js +6 -1
  63. package/dist/dist-esm/chat-stateful-client/src/convertChatMessage.js.map +1 -1
  64. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.d.ts +1 -0
  65. package/dist/dist-esm/chat-stateful-client/src/types/ChatMessageWithStatus.js.map +1 -1
  66. package/dist/dist-esm/communication-react/src/index.d.ts +7 -2
  67. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  68. package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +0 -4
  69. package/dist/dist-esm/react-components/src/components/CameraButton.js +0 -14
  70. package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
  71. package/dist/dist-esm/react-components/src/components/Caption.d.ts +21 -0
  72. package/dist/dist-esm/react-components/src/components/Caption.js +33 -0
  73. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -0
  74. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +1 -0
  75. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +32 -30
  76. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  77. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +37 -0
  78. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +88 -0
  79. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -0
  80. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +16 -1
  81. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +19 -16
  82. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  83. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.d.ts +1 -1
  84. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js +4 -2
  85. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsEditBox.js.map +1 -1
  86. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +11 -1
  87. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +38 -20
  88. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  89. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +14 -2
  90. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +96 -11
  91. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  92. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.d.ts +2 -0
  93. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +1 -0
  94. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  95. package/dist/dist-esm/react-components/src/components/FileDownloadCards.d.ts +13 -0
  96. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js +5 -1
  97. package/dist/dist-esm/react-components/src/components/FileDownloadCards.js.map +1 -1
  98. package/dist/dist-esm/react-components/src/components/GridLayout.js +1 -1
  99. package/dist/dist-esm/react-components/src/components/GridLayout.js.map +1 -1
  100. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +36 -4
  101. package/dist/dist-esm/react-components/src/components/MessageThread.js +88 -42
  102. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  103. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js +1 -1
  104. package/dist/dist-esm/react-components/src/components/ModalClone/ModalClone.js.map +1 -1
  105. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js +10 -2
  106. package/dist/dist-esm/react-components/src/components/ScreenShareButton.js.map +1 -1
  107. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +70 -0
  108. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +52 -0
  109. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -0
  110. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js +1 -1
  111. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideo.js.map +1 -1
  112. package/dist/dist-esm/react-components/src/components/index.d.ts +4 -1
  113. package/dist/dist-esm/react-components/src/components/index.js +7 -0
  114. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  115. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +33 -0
  116. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +60 -0
  117. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -0
  118. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.d.ts +34 -0
  119. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js +86 -0
  120. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -0
  121. package/dist/dist-esm/react-components/src/components/styles/Common.style.d.ts +14 -0
  122. package/dist/dist-esm/react-components/src/components/styles/Common.style.js +16 -0
  123. package/dist/dist-esm/react-components/src/components/styles/Common.style.js.map +1 -0
  124. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.d.ts +5 -0
  125. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js +28 -0
  126. package/dist/dist-esm/react-components/src/components/styles/MessageThread.styles.js.map +1 -1
  127. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js +1 -0
  128. package/dist/dist-esm/react-components/src/components/styles/VideoTile.styles.js.map +1 -1
  129. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.d.ts +6 -4
  130. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js +1 -1
  131. package/dist/dist-esm/react-components/src/components/utils/getParticipantsWhoHaveReadMessage.js.map +1 -1
  132. package/dist/dist-esm/react-components/src/components/utils.d.ts +4 -0
  133. package/dist/dist-esm/react-components/src/components/utils.js +4 -0
  134. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  135. package/dist/dist-esm/react-components/src/index.d.ts +2 -0
  136. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  137. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +3 -1
  138. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +3 -1
  139. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +5 -2
  140. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +3 -1
  141. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +3 -1
  142. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +3 -1
  143. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +3 -1
  144. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +3 -1
  145. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +3 -1
  146. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +3 -1
  147. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +3 -1
  148. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +3 -1
  149. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +3 -1
  150. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +3 -1
  151. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +1 -1
  152. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +1 -1
  153. package/dist/dist-esm/react-components/src/theming/icons.d.ts +5 -1
  154. package/dist/dist-esm/react-components/src/theming/icons.js +18 -4
  155. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  156. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.d.ts +48 -0
  157. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js +4 -0
  158. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -0
  159. package/dist/dist-esm/react-components/src/types/ChatMessage.d.ts +21 -1
  160. package/dist/dist-esm/react-components/src/types/ChatMessage.js.map +1 -1
  161. package/dist/dist-esm/react-components/src/types/index.d.ts +1 -0
  162. package/dist/dist-esm/react-components/src/types/index.js +1 -0
  163. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  164. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +2 -9
  165. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  166. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +65 -0
  167. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  168. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +13 -4
  169. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +67 -30
  170. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  171. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +43 -32
  172. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  173. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -0
  174. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  175. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +95 -19
  176. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  177. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +1 -1
  178. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  179. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js +3 -3
  180. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalPreview.js.map +1 -1
  181. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +5 -6
  182. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +1 -3
  183. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  184. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +9 -3
  185. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +3 -1
  186. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -1
  187. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +1 -1
  188. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  189. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -1
  190. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  191. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +1 -1
  192. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  193. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +1 -1
  194. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  195. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +1 -1
  196. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  197. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +13 -9
  198. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  199. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +3 -3
  200. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  201. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +17 -0
  202. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +41 -0
  203. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  204. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +5 -1
  205. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +20 -0
  206. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  207. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallControls.styles.js.map +1 -1
  208. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js +4 -4
  209. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LobbyTile.styles.js.map +1 -1
  210. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.d.ts +20 -0
  211. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js +21 -1
  212. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/LocalPreview.styles.js.map +1 -1
  213. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +5 -87
  214. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  215. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  216. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +15 -75
  217. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +11 -15
  218. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  219. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +12 -0
  220. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  221. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +17 -5
  222. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +51 -17
  223. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  224. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +24 -14
  225. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  226. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +5 -4
  227. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +15 -9
  228. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  229. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.d.ts +4 -0
  230. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js +6 -0
  231. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedChatAdapter.js.map +1 -1
  232. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js +4 -0
  233. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/parseTeamsUrl.js.map +1 -1
  234. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
  235. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  236. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +11 -1
  237. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  238. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.d.ts +19 -2
  239. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js +68 -6
  240. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.js.map +1 -1
  241. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.d.ts +4 -0
  242. package/dist/dist-esm/react-composites/src/composites/ChatComposite/adapter/ChatAdapter.js.map +1 -1
  243. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.d.ts +1 -0
  244. package/dist/dist-esm/react-composites/src/composites/ChatComposite/index.js.map +1 -1
  245. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +6 -0
  246. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +60 -0
  247. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -0
  248. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +12 -0
  249. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +107 -0
  250. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -0
  251. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +7 -0
  252. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +38 -0
  253. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -0
  254. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +30 -0
  255. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +286 -0
  256. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -0
  257. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/CustomButton.d.ts +19 -16
  258. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/CustomButton.js +4 -4
  259. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -0
  260. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/ControlBar}/DesktopMoreButton.d.ts +4 -2
  261. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +193 -0
  262. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -0
  263. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.d.ts +1 -1
  264. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.js +3 -3
  265. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -0
  266. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.d.ts +15 -2
  267. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.js +109 -5
  268. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -0
  269. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.d.ts +6 -0
  270. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js +24 -0
  271. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -0
  272. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.d.ts +3 -2
  273. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +26 -0
  274. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -0
  275. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +20 -0
  276. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +55 -0
  277. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +1 -0
  278. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.d.ts +7 -0
  279. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js +25 -0
  280. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +1 -0
  281. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  282. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  283. package/dist/dist-esm/react-composites/src/composites/common/constants.d.ts +9 -0
  284. package/dist/dist-esm/react-composites/src/composites/common/constants.js +11 -0
  285. package/dist/dist-esm/react-composites/src/composites/common/constants.js.map +1 -0
  286. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +7 -2
  287. package/dist/dist-esm/react-composites/src/composites/common/icons.js +4 -10
  288. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  289. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +165 -0
  290. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js +4 -0
  291. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -0
  292. package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +4 -0
  293. package/dist/dist-esm/react-composites/src/composites/common/utils.js +4 -0
  294. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  295. package/dist/dist-esm/react-composites/src/composites/index.d.ts +3 -0
  296. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  297. package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +66 -1
  298. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +66 -1
  299. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +66 -1
  300. package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +66 -1
  301. package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +66 -1
  302. package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +66 -1
  303. package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +66 -1
  304. package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +66 -1
  305. package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +66 -1
  306. package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +66 -1
  307. package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +66 -1
  308. package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +66 -1
  309. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +66 -1
  310. package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +66 -1
  311. package/package.json +14 -15
  312. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.d.ts +0 -29
  313. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js +0 -54
  314. package/dist/dist-esm/calling-stateful-client/src/LocalVideoStreamVideoEffectsSubscriber.js.map +0 -1
  315. package/dist/dist-esm/react-components/src/components/styles/CaptionsBanner.style.d.ts +0 -13
  316. package/dist/dist-esm/react-components/src/components/styles/CaptionsBanner.style.js +0 -35
  317. package/dist/dist-esm/react-components/src/components/styles/CaptionsBanner.style.js.map +0 -1
  318. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +0 -28
  319. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +0 -194
  320. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +0 -1
  321. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +0 -1
  322. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +0 -1
  323. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js +0 -22
  324. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +0 -1
  325. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js +0 -86
  326. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +0 -1
  327. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +0 -1
  328. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +0 -11
  329. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +0 -19
  330. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +0 -1
@@ -19,8 +19,6 @@
19
19
 
20
20
  import { AddPhoneNumberOptions } from '@azure/communication-calling';
21
21
  import { AudioDeviceInfo } from '@azure/communication-calling';
22
- import { BackgroundBlurConfig } from '@azure/communication-calling-effects';
23
- import { BackgroundReplacementConfig } from '@azure/communication-calling-effects';
24
22
  import { Call } from '@azure/communication-calling';
25
23
  import { CallAgent } from '@azure/communication-calling';
26
24
  import { CallClient } from '@azure/communication-calling';
@@ -30,6 +28,7 @@ import { CallEndReason } from '@azure/communication-calling';
30
28
  import { CallerInfo } from '@azure/communication-calling';
31
29
  import { CallKind } from '@azure/communication-calling';
32
30
  import { CallState as CallState_2 } from '@azure/communication-calling';
31
+ import { CaptionsResultType } from '@azure/communication-calling';
33
32
  import { ChatClient } from '@azure/communication-chat';
34
33
  import { ChatClientOptions } from '@azure/communication-chat';
35
34
  import { ChatMessage as ChatMessage_2 } from '@azure/communication-chat';
@@ -66,7 +65,6 @@ import { IStyleFunctionOrObject } from '@fluentui/react';
66
65
  import { ITextFieldStyles } from '@fluentui/react';
67
66
  import { LatestMediaDiagnostics } from '@azure/communication-calling';
68
67
  import { LatestNetworkDiagnostics } from '@azure/communication-calling';
69
- import { LocalVideoStream } from '@azure/communication-calling';
70
68
  import type { MediaDiagnosticChangedEventArgs } from '@azure/communication-calling';
71
69
  import { MediaStreamType } from '@azure/communication-calling';
72
70
  import { MicrosoftTeamsUserIdentifier } from '@azure/communication-common';
@@ -88,6 +86,7 @@ import { RoomCallLocator } from '@azure/communication-calling';
88
86
  import { ScalingMode } from '@azure/communication-calling';
89
87
  import { SendMessageOptions } from '@azure/communication-chat';
90
88
  import { StartCallOptions } from '@azure/communication-calling';
89
+ import { StartCaptionsOptions } from '@azure/communication-calling';
91
90
  import { TeamsCall } from '@azure/communication-calling';
92
91
  import { TeamsCallAgent } from '@azure/communication-calling';
93
92
  import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
@@ -96,7 +95,6 @@ import { TypingIndicatorReceivedEvent } from '@azure/communication-chat';
96
95
  import { UnknownIdentifier } from '@azure/communication-common';
97
96
  import { UnknownIdentifierKind } from '@azure/communication-common';
98
97
  import { VideoDeviceInfo } from '@azure/communication-calling';
99
- import { VideoEffectName } from '@azure/communication-calling';
100
98
  import { VideoStreamRenderer } from '@azure/communication-calling';
101
99
  import { VideoStreamRendererView } from '@azure/communication-calling';
102
100
 
@@ -217,6 +215,13 @@ export declare type AreParamEqual<A extends (props: any) => JSX.Element | undefi
217
215
  */
218
216
  export declare type AreTypeEqual<A, B> = A extends B ? (B extends A ? true : false) : false;
219
217
 
218
+ /**
219
+ * @beta
220
+ */
221
+ export declare interface AttachmentDownloadResult {
222
+ blobUrl: string;
223
+ }
224
+
220
225
  /**
221
226
  * Custom data attributes for displaying avatar for a user.
222
227
  *
@@ -323,6 +328,7 @@ export declare type AzureCommunicationCallWithChatAdapterFromClientArgs = {
323
328
  callClient: StatefulCallClient;
324
329
  chatClient: StatefulChatClient;
325
330
  chatThreadClient: ChatThreadClient;
331
+ options?: AzureCommunicationChatAdapterOptions;
326
332
  };
327
333
 
328
334
  /**
@@ -338,6 +344,14 @@ export declare type AzureCommunicationChatAdapterArgs = {
338
344
  threadId: string;
339
345
  };
340
346
 
347
+ /**
348
+ * Configuration options to include when creating AzureCommunicationChatAdapter.
349
+ * @beta
350
+ */
351
+ export declare type AzureCommunicationChatAdapterOptions = {
352
+ credential?: CommunicationTokenCredential;
353
+ };
354
+
341
355
  /**
342
356
  * Properties common to all composites exported from this library.
343
357
  *
@@ -393,6 +407,26 @@ export declare interface BaseCustomStyles {
393
407
  root?: IStyle;
394
408
  }
395
409
 
410
+ /**
411
+ * Content blocked message type.
412
+ *
413
+ * Content blocked messages will rendered default value, but applications can provide custom strings and icon to renderers.
414
+ *
415
+ * @beta
416
+ */
417
+ export declare interface BlockedMessage extends MessageCommon {
418
+ messageType: 'blocked';
419
+ warningText?: string;
420
+ linkText?: string;
421
+ link?: string;
422
+ deletedOn?: Date;
423
+ senderId?: string;
424
+ senderDisplayName?: string;
425
+ status?: MessageStatus;
426
+ attached?: MessageAttachedStatus;
427
+ mine?: boolean;
428
+ }
429
+
396
430
  /**
397
431
  * @beta
398
432
  * Props for BrowserPermissionDeniedIOS component.
@@ -714,23 +748,24 @@ export declare interface CallAdapterCallOperations {
714
748
  */
715
749
  allowUnsupportedBrowserVersion(): void;
716
750
  /**
717
- * Start the blur video background effect.
718
- *
719
- * @beta
751
+ * Function to Start captions
752
+ * @param options - options for start captions
720
753
  */
721
- blurVideoBackground(backgroundBlurConfig?: BackgroundBlurConfig): Promise<void>;
754
+ startCaptions(options?: StartCaptionsOptions): Promise<void>;
722
755
  /**
723
- * Start the video background replacement effect.
724
- *
725
- * @beta
756
+ * Function to set caption language
757
+ * @param language - language set for caption
726
758
  */
727
- replaceVideoBackground(backgroundReplacementConfig: BackgroundReplacementConfig): Promise<void>;
759
+ setCaptionLanguage(language: string): Promise<void>;
728
760
  /**
729
- * Stop the video background effect.
730
- *
731
- * @beta
761
+ * Function to set spoken language
762
+ * @param language - spoken language
732
763
  */
733
- stopVideoBackgroundEffect(): Promise<void>;
764
+ setSpokenLanguage(language: string): Promise<void>;
765
+ /**
766
+ * Funtion to stop captions
767
+ */
768
+ stopCaptions(): Promise<void>;
734
769
  }
735
770
 
736
771
  /**
@@ -768,10 +803,6 @@ export declare type CallAdapterClientState = {
768
803
  * control bar with the CallComposite.
769
804
  */
770
805
  cameraStatus?: 'On' | 'Off';
771
- /**
772
- * Default set of background images for background replacement effect.
773
- */
774
- videoBackgroundImages?: VideoBackgroundImage[];
775
806
  };
776
807
 
777
808
  /**
@@ -933,6 +964,14 @@ export declare interface CallAdapterSubscribers {
933
964
  * Subscribe function for 'error' event.
934
965
  */
935
966
  on(event: 'error', listener: (e: AdapterError) => void): void;
967
+ /**
968
+ * Subscribe function for 'captionsReceived' event.
969
+ */
970
+ on(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
971
+ /**
972
+ * Subscribe function for 'isCaptionsActiveChanged' event.
973
+ */
974
+ on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
936
975
  /**
937
976
  * Unsubscribe function for 'participantsJoined' event.
938
977
  */
@@ -981,6 +1020,14 @@ export declare interface CallAdapterSubscribers {
981
1020
  * Unsubscribe function for 'error' event.
982
1021
  */
983
1022
  off(event: 'error', listener: (e: AdapterError) => void): void;
1023
+ /**
1024
+ * Unsubscribe function for 'captionsReceived' event.
1025
+ */
1026
+ off(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
1027
+ /**
1028
+ * Unsubscribe function for 'isCaptionsActiveChanged' event.
1029
+ */
1030
+ off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
984
1031
  }
985
1032
 
986
1033
  /**
@@ -1151,6 +1198,7 @@ export declare const CallComposite: (props: CallCompositeProps) => JSX.Element;
1151
1198
  * @public
1152
1199
  */
1153
1200
  export declare type CallCompositeIcons = {
1201
+ ControlBarPeopleButton?: JSX.Element;
1154
1202
  ControlButtonCameraOff?: JSX.Element;
1155
1203
  ControlButtonCameraOn?: JSX.Element;
1156
1204
  ControlButtonEndCall?: JSX.Element;
@@ -1662,85 +1710,93 @@ export declare interface CallCompositeStrings {
1662
1710
  * string to be used to announce when multiple unnamed participants have left at the same time.
1663
1711
  */
1664
1712
  manyUnnamedParticipantsLeft: string;
1665
- }
1666
-
1667
- /**
1668
- * Control bar display type for {@link CallComposite}.
1669
- *
1670
- * @public
1671
- */
1672
- export declare type CallControlDisplayType = 'default' | 'compact';
1673
-
1674
- /**
1675
- * Customization options for the control bar in calling experience.
1676
- *
1677
- * @public
1678
- */
1679
- export declare type CallControlOptions = {
1680
1713
  /**
1681
- * {@link CallControlDisplayType} to change how the call controls are displayed.
1682
- * `'compact'` display type will decreases the size of buttons and hide the labels.
1683
- *
1684
- * @remarks
1685
- * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
1686
- *
1687
- * @defaultValue 'default'
1714
+ * string to be used to open live captions contextual menu
1688
1715
  */
1689
- displayType?: CallControlDisplayType;
1716
+ liveCaptionsLabel?: string;
1690
1717
  /**
1691
- * Show or Hide Camera Button during a call
1692
- * @defaultValue true
1718
+ * label for opening captions setting modal
1693
1719
  */
1694
- cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
1695
- disabled: boolean;
1696
- };
1720
+ captionsSettingsLabel?: string;
1697
1721
  /**
1698
- * Show or Hide EndCall button during a call.
1699
- * @defaultValue true
1722
+ * string to be used to start captions
1700
1723
  */
1701
- endCallButton?: boolean;
1724
+ startCaptionsButtonOnLabel?: string;
1702
1725
  /**
1703
- * Show or Hide Microphone button during a call.
1704
- * @defaultValue true
1726
+ * string to be used to stop captions
1705
1727
  */
1706
- microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
1707
- disabled: boolean;
1708
- };
1728
+ startCaptionsButtonOffLabel?: string;
1709
1729
  /**
1710
- * Show or Hide Devices button during a call.
1711
- * @defaultValue true
1730
+ * tooltip string to be used to show captions is on
1712
1731
  */
1713
- devicesButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
1714
- disabled: boolean;
1715
- };
1732
+ startCaptionsButtonTooltipOnContent?: string;
1716
1733
  /**
1717
- * Show, Hide or Disable participants button during a call.
1718
- * @defaultValue true
1734
+ *tooltip string to be used to show captions is off
1719
1735
  */
1720
- participantsButton?: boolean | {
1721
- disabled: boolean;
1722
- };
1736
+ startCaptionsButtonTooltipOffContent?: string;
1723
1737
  /**
1724
- * Show, Hide or Disable the screen share button during a call.
1725
- * @defaultValue true
1738
+ * captions setting modal title
1726
1739
  */
1727
- screenShareButton?: boolean | {
1728
- disabled: boolean;
1729
- };
1740
+ captionsSettingsModalTitle?: string;
1730
1741
  /**
1731
- * Show, Hide or disable the more button during a call.
1732
- * @defaultValue true
1742
+ * label for dropdown inside captions setting modal
1733
1743
  */
1734
- moreButton?: boolean;
1744
+ captionsSettingsDropdownLabel?: string;
1735
1745
  /**
1736
- * Inject custom buttons in the call controls.
1737
- *
1738
- * @beta
1746
+ * text under captions setting dropdown indicating what the dropdown is for
1739
1747
  */
1740
- onFetchCustomButtonProps?: CustomCallControlButtonCallback[];
1741
- holdButton?: boolean | {
1748
+ captionsSettingsDropdownInfoText?: string;
1749
+ /**
1750
+ * confirm button label in captions setting modal
1751
+ */
1752
+ captionsSettingsConfirmButtonLabel?: string;
1753
+ /**
1754
+ * cancel button label in captions setting modal
1755
+ */
1756
+ captionsSettingsCancelButtonLabel?: string;
1757
+ /**
1758
+ * arial label for captions setting modal
1759
+ */
1760
+ captionsSettingsModalAriaLabel?: string;
1761
+ /**
1762
+ * arial label for captions setting modal close button
1763
+ */
1764
+ captionsSettingsCloseModalButtonAriaLabel?: string;
1765
+ /**
1766
+ * label for more button inside captions banner
1767
+ */
1768
+ captionsBannerMoreButtonCallingLabel?: string;
1769
+ /**
1770
+ * arial label for more button inside captions banner
1771
+ */
1772
+ captionsBannerMoreButtonTooltip?: string;
1773
+ /**
1774
+ * list of key value pairs that pairs language code to language names
1775
+ */
1776
+ captionsAvailableLanguageStrings?: CaptionsAvailableLanguageStrings;
1777
+ }
1778
+
1779
+ /**
1780
+ * Control bar display type for {@link CallComposite}.
1781
+ *
1782
+ * @public
1783
+ */
1784
+ export declare type CallControlDisplayType = 'default' | 'compact';
1785
+
1786
+ /**
1787
+ * Customization options for the control bar in calling experience.
1788
+ *
1789
+ * @public
1790
+ */
1791
+ export declare type CallControlOptions = CommonCallControlOptions & {
1792
+ /**
1793
+ * Show, Hide or Disable participants button during a call. This is the option only work for legacyControl bar.
1794
+ * @defaultValue true
1795
+ */
1796
+ participantsButton?: boolean | {
1742
1797
  disabled: boolean;
1743
1798
  };
1799
+ legacyControlBarExperience?: boolean;
1744
1800
  };
1745
1801
 
1746
1802
  /**
@@ -1802,7 +1858,7 @@ export declare type CallErrors = {
1802
1858
  *
1803
1859
  * @public
1804
1860
  */
1805
- export declare type CallErrorTarget = 'Call.addParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | /* @conditional-compile-remove(video-background-effects) */ 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification';
1861
+ export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll';
1806
1862
 
1807
1863
  /**
1808
1864
  * Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
@@ -1978,6 +2034,10 @@ export declare interface CallState {
1978
2034
  * Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.
1979
2035
  */
1980
2036
  transcription: TranscriptionCallFeature;
2037
+ /**
2038
+ * Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.
2039
+ */
2040
+ captionsFeature: CaptionsCallFeatureState;
1981
2041
  /**
1982
2042
  * Proxy of {@link @azure/communication-calling#RecordingCallFeature}.
1983
2043
  */
@@ -2269,6 +2329,9 @@ export declare interface CallWithChatAdapterManagement {
2269
2329
  updateFileUploadErrorMessage: (id: string, errorMessage: string) => void;
2270
2330
  /** @beta */
2271
2331
  updateFileUploadMetadata: (id: string, metadata: FileMetadata) => void;
2332
+ downloadAttachments: (options: {
2333
+ attachmentUrls: string[];
2334
+ }) => Promise<AttachmentDownloadResult[]>;
2272
2335
  /**
2273
2336
  * Puts the Call in a Localhold.
2274
2337
  *
@@ -2299,23 +2362,24 @@ export declare interface CallWithChatAdapterManagement {
2299
2362
  */
2300
2363
  allowUnsupportedBrowserVersion(): void;
2301
2364
  /**
2302
- * Start the blur video background effect.
2303
- *
2304
- * @beta
2365
+ * Function to Start captions
2366
+ * @param options - options for start captions
2305
2367
  */
2306
- blurVideoBackground(backgroundBlurConfig?: BackgroundBlurConfig): Promise<void>;
2368
+ startCaptions(options?: StartCaptionsOptions): Promise<void>;
2307
2369
  /**
2308
- * Start the video background replacement effect.
2309
- *
2310
- * @beta
2370
+ * Function to set caption language
2371
+ * @param language - language set for caption
2311
2372
  */
2312
- replaceVideoBackground(backgroundReplacementConfig: BackgroundReplacementConfig): Promise<void>;
2373
+ setCaptionLanguage(language: string): Promise<void>;
2313
2374
  /**
2314
- * Stop the video background effect.
2315
- *
2316
- * @beta
2375
+ * Function to set spoken language
2376
+ * @param language - spoken language
2317
2377
  */
2318
- stopVideoBackgroundEffect(): Promise<void>;
2378
+ setSpokenLanguage(language: string): Promise<void>;
2379
+ /**
2380
+ * Funtion to stop captions
2381
+ */
2382
+ stopCaptions(): Promise<void>;
2319
2383
  }
2320
2384
 
2321
2385
  /**
@@ -2343,6 +2407,8 @@ export declare interface CallWithChatAdapterSubscriptions {
2343
2407
  on(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
2344
2408
  on(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
2345
2409
  on(event: 'callError', listener: (e: AdapterError) => void): void;
2410
+ on(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
2411
+ on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
2346
2412
  off(event: 'callEnded', listener: CallEndedListener): void;
2347
2413
  off(event: 'isMutedChanged', listener: IsMutedChangedListener): void;
2348
2414
  off(event: 'callIdChanged', listener: CallIdChangedListener): void;
@@ -2354,6 +2420,8 @@ export declare interface CallWithChatAdapterSubscriptions {
2354
2420
  off(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
2355
2421
  off(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
2356
2422
  off(event: 'callError', listener: (e: AdapterError) => void): void;
2423
+ off(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
2424
+ off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
2357
2425
  on(event: 'messageReceived', listener: MessageReceivedListener): void;
2358
2426
  on(event: 'messageSent', listener: MessageSentListener): void;
2359
2427
  on(event: 'messageRead', listener: MessageReadListener): void;
@@ -2666,6 +2734,18 @@ export declare interface CallWithChatCompositeStrings {
2666
2734
  * Only used with `mobileView` set to `true`.
2667
2735
  */
2668
2736
  moreDrawerSpeakerMenuTitle: string;
2737
+ /**
2738
+ * Title for the captions sub-menu in more button drawer.
2739
+ *
2740
+ * Only used with `mobileView` set to `true`.
2741
+ */
2742
+ moreDrawerCaptionsMenuTitle: string;
2743
+ /**
2744
+ * Title for the spoken language sub-menu in more button drawer.
2745
+ *
2746
+ * Only used with `mobileView` set to `true`.
2747
+ */
2748
+ moreDrawerSpokenLanguageMenuTitle: string;
2669
2749
  /**
2670
2750
  * {@Link CallWithChatComposite} control bar More button label
2671
2751
  */
@@ -2757,47 +2837,11 @@ export declare interface CallWithChatCompositeStrings {
2757
2837
  }
2758
2838
 
2759
2839
  /**
2760
- * {@link CallWithChatComposite} Call controls to show or hide buttons on the calling control bar.
2840
+ * Customization options for the control bar in calling with chat experience.
2761
2841
  *
2762
2842
  * @public
2763
2843
  */
2764
- export declare interface CallWithChatControlOptions {
2765
- /**
2766
- * {@link CallControlDisplayType} to change how the call controls are displayed.
2767
- * `'compact'` display type will decreases the size of buttons and hide the labels.
2768
- *
2769
- * @remarks
2770
- * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
2771
- *
2772
- * @defaultValue 'default'
2773
- */
2774
- displayType?: CallControlDisplayType;
2775
- /**
2776
- * Show or Hide Microphone button during a call.
2777
- * @defaultValue true
2778
- */
2779
- microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2780
- disabled: boolean;
2781
- };
2782
- /**
2783
- * Show or Hide Camera Button during a call
2784
- * @defaultValue true
2785
- */
2786
- cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2787
- disabled: boolean;
2788
- };
2789
- /**
2790
- * Show, Hide or Disable the screen share button during a call.
2791
- * @defaultValue true
2792
- */
2793
- screenShareButton?: boolean | {
2794
- disabled: boolean;
2795
- };
2796
- /**
2797
- * Show or Hide EndCall button during a call.
2798
- * @defaultValue true
2799
- */
2800
- endCallButton?: boolean;
2844
+ export declare interface CallWithChatControlOptions extends CommonCallControlOptions {
2801
2845
  /**
2802
2846
  * Show or hide the chat button in the call-with-chat composite control bar.
2803
2847
  * @defaultValue true
@@ -2805,29 +2849,6 @@ export declare interface CallWithChatControlOptions {
2805
2849
  chatButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2806
2850
  disabled: boolean;
2807
2851
  };
2808
- /**
2809
- * Show or hide the people button in the call-with-chat composite control bar.
2810
- * @defaultValue true
2811
- */
2812
- peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2813
- disabled: boolean;
2814
- };
2815
- /**
2816
- * Inject custom buttons in the call controls.
2817
- *
2818
- * @beta
2819
- */
2820
- onFetchCustomButtonProps?: CustomCallWithChatControlButtonCallback[];
2821
- /**
2822
- * Show or hide the more button in the call-with-chat control bar.
2823
- */
2824
- moreButton?: boolean;
2825
- /**
2826
- * Show or hide the hold button in the bottom sheet drawer
2827
- */
2828
- holdButton?: boolean | {
2829
- disabled: boolean;
2830
- };
2831
2852
  }
2832
2853
 
2833
2854
  /**
@@ -2835,7 +2856,7 @@ export declare interface CallWithChatControlOptions {
2835
2856
  *
2836
2857
  * @public
2837
2858
  */
2838
- export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
2859
+ export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | /* @conditional-compile-remove(close-captions) */ 'isCaptionsActiveChanged' | /* @conditional-compile-remove(close-captions) */ 'captionsReceived' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
2839
2860
 
2840
2861
  /**
2841
2862
  * @beta
@@ -2928,10 +2949,6 @@ export declare interface CameraButtonProps extends ControlBarButtonProps {
2928
2949
  * Styles for {@link CameraButton} and the device selection flyout.
2929
2950
  */
2930
2951
  styles?: Partial<CameraButtonStyles>;
2931
- /**
2932
- * Callback when a effects is clicked
2933
- */
2934
- onShowVideoEffectsPicker?: (showVideoEffectsOptions: boolean) => void;
2935
2952
  }
2936
2953
 
2937
2954
  /**
@@ -3043,6 +3060,142 @@ export declare interface CameraSitePermissionsProps extends CommonSitePermission
3043
3060
  */
3044
3061
  export declare type CameraSitePermissionsStrings = SitePermissionsStrings;
3045
3062
 
3063
+ /**
3064
+ * @public
3065
+ * Callback function run when a message edit is cancelled.
3066
+ */
3067
+ export declare type CancelEditCallback = (messageId: string) => void;
3068
+
3069
+ /**
3070
+ * @beta
3071
+ * strings for captions setting modal
3072
+ */
3073
+ export declare interface CaptionsAvailableLanguageStrings {
3074
+ 'ar-ae': string;
3075
+ 'ar-sa': string;
3076
+ 'da-dk': string;
3077
+ 'de-de': string;
3078
+ 'en-au': string;
3079
+ 'en-ca': string;
3080
+ 'en-gb': string;
3081
+ 'en-in': string;
3082
+ 'en-nz': string;
3083
+ 'en-us': string;
3084
+ 'es-es': string;
3085
+ 'es-mx': string;
3086
+ 'fi-fi': string;
3087
+ 'fr-ca': string;
3088
+ 'fr-fr': string;
3089
+ 'hi-in': string;
3090
+ 'it-it': string;
3091
+ 'ja-jp': string;
3092
+ 'ko-kr': string;
3093
+ 'nb-no': string;
3094
+ 'nl-be': string;
3095
+ 'nl-nl': string;
3096
+ 'pl-pl': string;
3097
+ 'pt-br': string;
3098
+ 'ru-ru': string;
3099
+ 'sv-se': string;
3100
+ 'zh-cn': string;
3101
+ 'zh-hk': string;
3102
+ 'cs-cz': string;
3103
+ 'pt-pt': string;
3104
+ 'tr-tr': string;
3105
+ 'vi-vn': string;
3106
+ 'th-th': string;
3107
+ 'he-il': string;
3108
+ 'cy-gb': string;
3109
+ 'uk-ua': string;
3110
+ 'el-gr': string;
3111
+ 'hu-hu': string;
3112
+ 'ro-ro': string;
3113
+ 'sk-sk': string;
3114
+ 'zh-tw': string;
3115
+ }
3116
+
3117
+ /**
3118
+ * @beta
3119
+ */
3120
+ export declare interface CaptionsCallFeatureState {
3121
+ /**
3122
+ * supported spoken languages
3123
+ */
3124
+ supportedSpokenLanguages: string[];
3125
+ /**
3126
+ * array of received captions
3127
+ */
3128
+ captions: CaptionsInfo[];
3129
+ /**
3130
+ * whether captions is on/off
3131
+ */
3132
+ isCaptionsFeatureActive: boolean;
3133
+ /**
3134
+ * supported caption languages
3135
+ */
3136
+ supportedCaptionLanguages: string[];
3137
+ /**
3138
+ * current spoken language
3139
+ */
3140
+ currentSpokenLanguage: string;
3141
+ /**
3142
+ * current caption language
3143
+ */
3144
+ currentCaptionLanguage: string;
3145
+ }
3146
+
3147
+ /**
3148
+ * @beta
3149
+ */
3150
+ export declare interface CaptionsInfo {
3151
+ /**
3152
+ * The state in which this caption data can be classified.
3153
+ */
3154
+ resultType: CaptionsResultType;
3155
+ /**
3156
+ * The information of the call participant who spoke the captioned text.
3157
+ */
3158
+ speaker: CallerInfo;
3159
+ /**
3160
+ * The language that the spoken words were interpretted as. Corresponds to the language specified in startCaptions / setSpokenLanguage.
3161
+ */
3162
+ spokenLanguage: string;
3163
+ /**
3164
+ * The caption text.
3165
+ */
3166
+ captionText: string;
3167
+ /**
3168
+ * Timestamp of when the captioned words were initially spoken.
3169
+ */
3170
+ timestamp: Date;
3171
+ /**
3172
+ * The language that the captions are presented in. Corresponds to the captionLanguage specified in startCaptions / setCaptionLanguage.
3173
+ */
3174
+ captionLanguage?: string;
3175
+ /**
3176
+ * The original spoken caption text prior to translating to subtitle language
3177
+ */
3178
+ spokenText?: string;
3179
+ }
3180
+
3181
+ /**
3182
+ * options bag to start captions
3183
+ *
3184
+ * @beta
3185
+ */
3186
+ export declare type CaptionsOptions = {
3187
+ spokenLanguage: string;
3188
+ };
3189
+
3190
+ /**
3191
+ * Callback for {@link CallAdapterSubscribers} 'captionsReceived' event.
3192
+ *
3193
+ * @beta
3194
+ */
3195
+ export declare type CaptionsReceivedListener = (event: {
3196
+ captionsInfo: CaptionsInfo;
3197
+ }) => void;
3198
+
3046
3199
  /**
3047
3200
  * {@link ChatComposite} Adapter interface.
3048
3201
  *
@@ -3171,6 +3324,9 @@ export declare interface ChatAdapterThreadManagement {
3171
3324
  *
3172
3325
  */
3173
3326
  loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>;
3327
+ downloadAttachments: (options: {
3328
+ attachmentUrls: string[];
3329
+ }) => Promise<AttachmentDownloadResult[]>;
3174
3330
  }
3175
3331
 
3176
3332
  /**
@@ -3462,6 +3618,7 @@ export declare interface ChatMessage extends MessageCommon {
3462
3618
  senderId?: string;
3463
3619
  senderDisplayName?: string;
3464
3620
  status?: MessageStatus;
3621
+ failureReason?: string;
3465
3622
  attached?: MessageAttachedStatus;
3466
3623
  mine?: boolean;
3467
3624
  clientMessageId?: string;
@@ -3490,6 +3647,7 @@ export declare interface ChatMessage extends MessageCommon {
3490
3647
  export declare type ChatMessageWithStatus = ChatMessage_2 & {
3491
3648
  clientMessageId?: string;
3492
3649
  status: MessageStatus;
3650
+ policyViolation?: boolean;
3493
3651
  };
3494
3652
 
3495
3653
  /**
@@ -3631,6 +3789,85 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
3631
3789
  startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
3632
3790
  }
3633
3791
 
3792
+ /**
3793
+ * Customization options for the control bar in calling experience.
3794
+ *
3795
+ * @public
3796
+ */
3797
+ export declare type CommonCallControlOptions = {
3798
+ /**
3799
+ * {@link CallControlDisplayType} to change how the call controls are displayed.
3800
+ * `'compact'` display type will decreases the size of buttons and hide the labels.
3801
+ *
3802
+ * @remarks
3803
+ * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
3804
+ *
3805
+ * @defaultValue 'default'
3806
+ */
3807
+ displayType?: CallControlDisplayType;
3808
+ /**
3809
+ * Show or Hide Camera Button during a call
3810
+ * @defaultValue true
3811
+ */
3812
+ cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3813
+ disabled: boolean;
3814
+ };
3815
+ /**
3816
+ * Show or Hide EndCall button during a call.
3817
+ * @defaultValue true
3818
+ */
3819
+ endCallButton?: boolean;
3820
+ /**
3821
+ * Show or Hide Microphone button during a call.
3822
+ * @defaultValue true
3823
+ */
3824
+ microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3825
+ disabled: boolean;
3826
+ };
3827
+ /**
3828
+ * Show or Hide Devices button during a call.
3829
+ * @defaultValue true
3830
+ */
3831
+ devicesButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3832
+ disabled: boolean;
3833
+ };
3834
+ /**
3835
+ * Show, Hide or Disable participants button during a call.
3836
+ * @defaultValue true
3837
+ */
3838
+ participantsButton?: boolean | {
3839
+ disabled: boolean;
3840
+ };
3841
+ /**
3842
+ * Show, Hide or Disable the screen share button during a call.
3843
+ * @defaultValue true
3844
+ */
3845
+ screenShareButton?: boolean | {
3846
+ disabled: boolean;
3847
+ };
3848
+ /**
3849
+ * Show, Hide or disable the more button during a call.
3850
+ * @defaultValue true
3851
+ */
3852
+ moreButton?: boolean;
3853
+ /**
3854
+ * Inject custom buttons in the call controls.
3855
+ *
3856
+ * @beta
3857
+ */
3858
+ onFetchCustomButtonProps?: CustomCallControlButtonCallback[];
3859
+ holdButton?: boolean | {
3860
+ disabled: boolean;
3861
+ };
3862
+ /**
3863
+ * Show or hide the people button in the composite control bar.
3864
+ * @defaultValue true
3865
+ */
3866
+ peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3867
+ disabled: boolean;
3868
+ };
3869
+ };
3870
+
3634
3871
  /**
3635
3872
  * Object containing all the handlers required for calling components.
3636
3873
  *
@@ -3662,9 +3899,10 @@ export declare interface CommonCallingHandlers {
3662
3899
  onRemoveParticipant(participant: CommunicationIdentifier): Promise<void>;
3663
3900
  askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
3664
3901
  onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
3665
- onRemoveVideoBackgroundEffects: () => Promise<void>;
3666
- onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
3667
- onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
3902
+ onStartCaptions: (options?: CaptionsOptions) => Promise<void>;
3903
+ onStopCaptions: () => Promise<void>;
3904
+ onSetSpokenLanguage: (language: string) => Promise<void>;
3905
+ onSetCaptionLanguage: (language: string) => Promise<void>;
3668
3906
  }
3669
3907
 
3670
3908
  /**
@@ -4261,7 +4499,7 @@ export declare const createAzureCommunicationCallWithChatAdapter: ({ userId, dis
4261
4499
  *
4262
4500
  * @public
4263
4501
  */
4264
- export declare const createAzureCommunicationCallWithChatAdapterFromClients: ({ callClient, callAgent, callLocator, chatClient, chatThreadClient }: AzureCommunicationCallWithChatAdapterFromClientArgs) => Promise<CallWithChatAdapter>;
4502
+ export declare const createAzureCommunicationCallWithChatAdapterFromClients: ({ callClient, callAgent, callLocator, chatClient, chatThreadClient, options }: AzureCommunicationCallWithChatAdapterFromClientArgs) => Promise<CallWithChatAdapter>;
4265
4503
 
4266
4504
  /**
4267
4505
  * Create a {@link ChatAdapter} backed by Azure Communication Services.
@@ -4280,7 +4518,9 @@ export declare const createAzureCommunicationChatAdapter: ({ endpoint: endpointU
4280
4518
  *
4281
4519
  * @public
4282
4520
  */
4283
- export declare const createAzureCommunicationChatAdapterFromClient: (chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient) => Promise<ChatAdapter>;
4521
+ export declare function createAzureCommunicationChatAdapterFromClient(chatClient: StatefulChatClient, chatThreadClient: ChatThreadClient, options?: {
4522
+ credential?: CommunicationTokenCredential;
4523
+ }): Promise<ChatAdapter>;
4284
4524
 
4285
4525
  /**
4286
4526
  * Create the default implementation of {@link CallingHandlers} for teams call.
@@ -4414,15 +4654,16 @@ export declare type CustomAvatarOptions = {
4414
4654
  };
4415
4655
 
4416
4656
  /**
4417
- * A callback that returns the props to render a custom {@link ControlBarButton}.
4657
+ * A callback that returns the props to render a custom {@link ControlBarButton} and {@link DrawerMenuItem}.
4418
4658
  *
4419
4659
  * The response indicates where the custom button should be placed.
4420
4660
  *
4421
4661
  * Performance tip: This callback is only called when either the callback or its arguments change.
4422
- *
4423
4662
  * @beta
4424
4663
  */
4425
- export declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallControlButtonProps;
4664
+ declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallWithChatControlButtonProps;
4665
+ export { CustomCallControlButtonCallback }
4666
+ export { CustomCallControlButtonCallback as CustomCallWithChatControlButtonCallback }
4426
4667
 
4427
4668
  /**
4428
4669
  * Arguments for {@link CustomCallControlButtonCallback}.
@@ -4439,17 +4680,23 @@ export declare interface CustomCallControlButtonCallbackArgs {
4439
4680
  }
4440
4681
 
4441
4682
  /**
4442
- * Placement for a custom button injected in the {@link CallControls}.
4683
+ * Placement for a custom button injected in the {@link CommonCallControlBar}.
4443
4684
  *
4444
4685
  * 'primary': Place the button(s) on the right end of the center control bar but before the EndCallButton (left end in rtl mode).
4686
+ * 'overflow': Place the buttons(s) on the end of the overflow Menu.
4687
+ * 'secondary': Place the button(s) on the left end of the side control bar (right in rtl mode).
4445
4688
  *
4446
4689
  * Multiple buttons assigned the same placement are appended in order.
4447
- * E.g., if two buttons are placed in 'primary', they'll both appear on the right end (left end in rtl mode)
4448
- * before the EndCallButton in the order provided.
4690
+ * E.g., if two buttons are placed in 'secondary', they'll both appear on the left end (right end in rtl mode)
4691
+ * in the order provided.
4692
+ *
4693
+ * Only 'primary' placement works when legacy call control is enabled in call composite
4449
4694
  *
4450
4695
  * @beta
4451
4696
  */
4452
- export declare type CustomCallControlButtonPlacement = 'primary';
4697
+ declare type CustomCallControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
4698
+ export { CustomCallControlButtonPlacement }
4699
+ export { CustomCallControlButtonPlacement as CustomCallWithChatControlButtonPlacement }
4453
4700
 
4454
4701
  /**
4455
4702
  * Response from {@link CustomCallControlButtonCallback}.
@@ -4472,32 +4719,7 @@ export declare interface CustomCallControlButtonProps extends CustomControlButto
4472
4719
  }
4473
4720
 
4474
4721
  /**
4475
- * A callback that returns the props to render a custom {@link ControlBarButton} and {@link DrawerMenuItem}.
4476
- *
4477
- * The response indicates where the custom button should be placed.
4478
- *
4479
- * Performance tip: This callback is only called when either the callback or its arguments change.
4480
- * @beta
4481
- */
4482
- export declare type CustomCallWithChatControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallWithChatControlButtonProps;
4483
-
4484
- /**
4485
- * Placement for a custom button injected in the {@link CallWithChatControlBar}.
4486
- *
4487
- * 'primary': Place the button(s) on the right end of the center control bar but before the EndCallButton (left end in rtl mode).
4488
- * 'overflow': Place the buttons(s) on the end of the overflow Menu.
4489
- * 'secondary': Place the button(s) on the left end of the side control bar (right in rtl mode).
4490
- *
4491
- * Multiple buttons assigned the same placement are appended in order.
4492
- * E.g., if two buttons are placed in 'secondary', they'll both appear on the left end (right end in rtl mode)
4493
- * in the order provided.
4494
- *
4495
- * @beta
4496
- */
4497
- export declare type CustomCallWithChatControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
4498
-
4499
- /**
4500
- * Response from {@link CustomCallWithChatControlButtonCallback}.
4722
+ * Response from {@link CustomCallControlButtonCallback}.
4501
4723
  *
4502
4724
  * Includes the icon and placement prop necessary to indicate where to place the
4503
4725
  * {@link ControlBarButton} and a {@link DrawerMenuItem}
@@ -4508,7 +4730,7 @@ export declare interface CustomCallWithChatControlButtonProps extends CustomCont
4508
4730
  /**
4509
4731
  * Where to place the custom button relative to other buttons.
4510
4732
  */
4511
- placement: CustomCallWithChatControlButtonPlacement;
4733
+ placement: CustomCallControlButtonPlacement;
4512
4734
  /**
4513
4735
  * Icon to render. Icon is a non-default icon name that needs to be registered as a
4514
4736
  * custom icon using registerIcons through fluentui. Examples include icons from the fluentui library
@@ -4614,6 +4836,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
4614
4836
  ControlButtonScreenShareStop: JSX.Element;
4615
4837
  CancelFileUpload: JSX.Element;
4616
4838
  DownloadFile: JSX.Element;
4839
+ DataLossPreventionProhibited: JSX.Element;
4617
4840
  EditBoxCancel: JSX.Element;
4618
4841
  EditBoxSubmit: JSX.Element;
4619
4842
  ErrorBarCallCameraAccessDenied: JSX.Element;
@@ -4672,7 +4895,10 @@ export declare const DEFAULT_COMPONENT_ICONS: {
4672
4895
  SplitButtonPrimaryActionMicMuted: JSX.Element;
4673
4896
  VerticalGalleryLeftButton: JSX.Element;
4674
4897
  VerticalGalleryRightButton: JSX.Element;
4675
- OptionsVideoBackgroundEffect: JSX.Element;
4898
+ CaptionsIcon: JSX.Element;
4899
+ CaptionsOffIcon: JSX.Element;
4900
+ CaptionsSettingsIcon: JSX.Element;
4901
+ ChangeSpokenLanguageIcon: JSX.Element;
4676
4902
  };
4677
4903
 
4678
4904
  /**
@@ -4694,6 +4920,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4694
4920
  SendBoxSend: JSX.Element;
4695
4921
  SendBoxSendHovered: JSX.Element;
4696
4922
  SendBoxAttachFile?: JSX.Element | undefined;
4923
+ ControlBarPeopleButton?: JSX.Element | undefined;
4697
4924
  ControlButtonCameraOff: JSX.Element;
4698
4925
  ControlButtonCameraOn: JSX.Element;
4699
4926
  ControlButtonEndCall: JSX.Element;
@@ -4743,7 +4970,6 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4743
4970
  ChevronLeft?: JSX.Element | undefined;
4744
4971
  ControlBarChatButtonActive?: JSX.Element | undefined;
4745
4972
  ControlBarChatButtonInactive?: JSX.Element | undefined;
4746
- ControlBarPeopleButton?: JSX.Element | undefined;
4747
4973
  Link?: JSX.Element | undefined;
4748
4974
  MoreDrawerMicrophones?: JSX.Element | undefined;
4749
4975
  MoreDrawerPeople?: JSX.Element | undefined;
@@ -4754,6 +4980,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4754
4980
  ControlButtonParticipantsContextualMenuItem: JSX.Element;
4755
4981
  CancelFileUpload: JSX.Element;
4756
4982
  DownloadFile: JSX.Element;
4983
+ DataLossPreventionProhibited: JSX.Element;
4757
4984
  ErrorBarCallVideoRecoveredBySystem: JSX.Element;
4758
4985
  ErrorBarCallVideoStoppedBySystem: JSX.Element;
4759
4986
  MessageResend: JSX.Element;
@@ -4780,7 +5007,10 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4780
5007
  SplitButtonPrimaryActionMicMuted: JSX.Element;
4781
5008
  VerticalGalleryLeftButton: JSX.Element;
4782
5009
  VerticalGalleryRightButton: JSX.Element;
4783
- OptionsVideoBackgroundEffect: JSX.Element;
5010
+ CaptionsIcon: JSX.Element;
5011
+ CaptionsOffIcon: JSX.Element;
5012
+ CaptionsSettingsIcon: JSX.Element;
5013
+ ChangeSpokenLanguageIcon: JSX.Element;
4784
5014
  };
4785
5015
 
4786
5016
  /**
@@ -5400,6 +5630,8 @@ export declare type FileDownloadHandler = (userId: string, fileMetadata: FileMet
5400
5630
  * @beta
5401
5631
  */
5402
5632
  export declare interface FileMetadata {
5633
+ attachmentType: FileMetadataAttachmentType;
5634
+ id: string;
5403
5635
  /**
5404
5636
  * File name to be displayed.
5405
5637
  */
@@ -5414,8 +5646,14 @@ export declare interface FileMetadata {
5414
5646
  * Download URL for the file.
5415
5647
  */
5416
5648
  url: string;
5649
+ previewUrl?: string;
5417
5650
  }
5418
5651
 
5652
+ /**
5653
+ * @beta
5654
+ */
5655
+ export declare type FileMetadataAttachmentType = 'fileSharing' | /* @conditional-compile-remove(teams-inline-images) */ 'teamsInlineImage' | 'unknown';
5656
+
5419
5657
  /**
5420
5658
  * Properties for configuring the File Sharing feature.
5421
5659
  * @beta
@@ -5837,6 +6075,15 @@ export declare interface IncomingCallState {
5837
6075
  endTime?: Date;
5838
6076
  }
5839
6077
 
6078
+ /**
6079
+ * Callback for {@link CallAdapterSubscribers} 'isCaptionsActiveChanged' event.
6080
+ *
6081
+ * @beta
6082
+ */
6083
+ export declare type IsCaptionsActiveChangedListener = (event: {
6084
+ isActive: boolean;
6085
+ }) => void;
6086
+
5840
6087
  /**
5841
6088
  * Callback for {@link CallAdapterSubscribers} 'isLocalScreenSharingActiveChanged' event.
5842
6089
  *
@@ -5948,27 +6195,6 @@ export declare interface LocalVideoStreamState {
5948
6195
  * API. This can be undefined if the stream has not yet been rendered and defined after createView creates the view.
5949
6196
  */
5950
6197
  view?: VideoStreamRendererViewState;
5951
- /**
5952
- * Stores the state of the video effects.
5953
- * @beta
5954
- */
5955
- videoEffects?: LocalVideoStreamVideoEffectsState;
5956
- }
5957
-
5958
- /**
5959
- * State only version of a LocalVideoStream's {@link @azure/communication-calling#VideoEffectsFeature}.
5960
- *
5961
- * @beta
5962
- */
5963
- export declare interface LocalVideoStreamVideoEffectsState {
5964
- /**
5965
- * State of the video background effect.
5966
- */
5967
- isActive: boolean;
5968
- /**
5969
- * Name of the effect if one is active.
5970
- */
5971
- effectName?: VideoEffectName;
5972
6198
  }
5973
6199
 
5974
6200
  /**
@@ -5996,7 +6222,7 @@ export declare interface MediaDiagnosticsState {
5996
6222
  *
5997
6223
  * @public
5998
6224
  */
5999
- export declare type Message = ChatMessage | SystemMessage | CustomMessage;
6225
+ export declare type Message = ChatMessage | SystemMessage | CustomMessage | /* @conditional-compile-remove(data-loss-prevention) */ BlockedMessage;
6000
6226
 
6001
6227
  /**
6002
6228
  * Indicate whether a chat message should be displayed merged with the message before / after it.
@@ -6033,7 +6259,7 @@ export declare type MessageContentType = 'text' | 'html' | 'richtext/html' | 'un
6033
6259
  */
6034
6260
  export declare type MessageProps = {
6035
6261
  /**
6036
- * Message to render. It can type `ChatMessage` or `SystemMessage` or `CustomMessage`.
6262
+ * Message to render. It can type `ChatMessage` or `SystemMessage`, `BlockedMessage` or `CustomMessage`.
6037
6263
  */
6038
6264
  message: Message;
6039
6265
  /**
@@ -6065,6 +6291,12 @@ export declare type MessageProps = {
6065
6291
  * @param content - new content of the message
6066
6292
  */
6067
6293
  onUpdateMessage?: UpdateMessageCallback;
6294
+ /**
6295
+ * Optional callback for when a message edit is cancelled.
6296
+ *
6297
+ * @param messageId - message id from chatClient
6298
+ */
6299
+ onCancelMessageEdit?: CancelEditCallback;
6068
6300
  /**
6069
6301
  * Optional callback to delete a message.
6070
6302
  *
@@ -6208,9 +6440,9 @@ export declare type MessageThreadProps = {
6208
6440
  */
6209
6441
  userId: string;
6210
6442
  /**
6211
- * Messages to render in message thread. A message can be of type `ChatMessage`, `SystemMessage` or `CustomMessage`.
6443
+ * Messages to render in message thread. A message can be of type `ChatMessage`, `SystemMessage`, `BlockedMessage` or `CustomMessage`.
6212
6444
  */
6213
- messages: (ChatMessage | SystemMessage | CustomMessage)[];
6445
+ messages: (ChatMessage | SystemMessage | CustomMessage | /* @conditional-compile-remove(data-loss-prevention) */ BlockedMessage)[];
6214
6446
  /**
6215
6447
  * number of participants in the thread
6216
6448
  */
@@ -6297,6 +6529,12 @@ export declare type MessageThreadProps = {
6297
6529
  * @beta
6298
6530
  */
6299
6531
  onRenderFileDownloads?: (userId: string, message: ChatMessage) => JSX.Element;
6532
+ /**
6533
+ * Optional callback to retrieve the inline image in a message.
6534
+ * @param attachment - FileMetadata object we want to render
6535
+ * @beta
6536
+ */
6537
+ onFetchAttachments?: (attachment: FileMetadata) => Promise<AttachmentDownloadResult[]>;
6300
6538
  /**
6301
6539
  * Optional callback to edit a message.
6302
6540
  *
@@ -6305,6 +6543,12 @@ export declare type MessageThreadProps = {
6305
6543
  *
6306
6544
  */
6307
6545
  onUpdateMessage?: UpdateMessageCallback;
6546
+ /**
6547
+ * Optional callback for when a message edit is cancelled.
6548
+ *
6549
+ * @param messageId - message id from chatClient
6550
+ */
6551
+ onCancelMessageEdit?: CancelEditCallback;
6308
6552
  /**
6309
6553
  * Optional callback to delete a message.
6310
6554
  *
@@ -6417,6 +6661,10 @@ export declare interface MessageThreadStrings {
6417
6661
  actionMenuMoreOptions?: string;
6418
6662
  /** String for download file button in file card */
6419
6663
  downloadFile: string;
6664
+ /** String for policy violation message removal */
6665
+ blockedWarningText: string;
6666
+ /** String for policy violation message removal details link */
6667
+ blockedWarningLinkText: string;
6420
6668
  }
6421
6669
 
6422
6670
  /**
@@ -6443,6 +6691,8 @@ export declare interface MessageThreadStyles extends BaseCustomStyles {
6443
6691
  chatMessageContainer?: ComponentSlotStyle;
6444
6692
  /** Styles for system message container. */
6445
6693
  systemMessageContainer?: ComponentSlotStyle;
6694
+ /** Styles for blocked message container. */
6695
+ blockedMessageContainer?: ComponentSlotStyle;
6446
6696
  /** Styles for message status indicator container. */
6447
6697
  messageStatusContainer?: (mine: boolean) => IStyle;
6448
6698
  }
@@ -7225,7 +7475,7 @@ export declare interface RemoteVideoTileMenuOptions {
7225
7475
  * @beta
7226
7476
  * The role of a call participant.
7227
7477
  */
7228
- export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer';
7478
+ export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer' | 'Co-organizer';
7229
7479
 
7230
7480
  /**
7231
7481
  * A button to start / stop screen sharing.
@@ -7718,14 +7968,6 @@ export declare interface StatefulDeviceManager extends DeviceManager {
7718
7968
  * {@link StatefulDeviceManager}. See also {@link DeviceManagerState.selectedCamera}.
7719
7969
  */
7720
7970
  selectCamera: (VideoDeviceInfo: any) => void;
7721
- /**
7722
- * Gets the list of unparented video streams. This is a list of video streams that have not been added to a
7723
- * {@link @azure/communication-calling#Call}. This is useful for developers who want to interact with rendered
7724
- * video streams before they have started a call. See also {@link @azure/communication-react#CallClient.createView}.
7725
- *
7726
- * @beta
7727
- */
7728
- getUnparentedVideoStreams: () => LocalVideoStream[];
7729
7971
  }
7730
7972
 
7731
7973
  /**
@@ -8375,26 +8617,6 @@ export declare interface VerticalGalleryStyles extends BaseCustomStyles {
8375
8617
  controlBar?: VerticalGalleryControlBarStyles;
8376
8618
  }
8377
8619
 
8378
- /**
8379
- * Contains the attibutes of a background image like url, name etc.
8380
- *
8381
- * @beta
8382
- */
8383
- export declare interface VideoBackgroundImage {
8384
- /**
8385
- * key for unique identification of the custom background
8386
- */
8387
- key: string;
8388
- /**
8389
- * URL of the uploaded background image.
8390
- */
8391
- url: string;
8392
- /**
8393
- * Image name to be displayed.
8394
- */
8395
- tooltipText?: string;
8396
- }
8397
-
8398
8620
  /**
8399
8621
  * VideoGallery represents a layout of video tiles for a specific call.
8400
8622
  * It displays a {@link VideoTile} for the local user as well as for each remote participant who has joined the call.