@azure/communication-react 1.5.1-alpha-202304140012 → 1.5.1-alpha-202304172318

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 (172) hide show
  1. package/dist/communication-react.d.ts +363 -3
  2. package/dist/dist-cjs/communication-react/index.js +1599 -393
  3. package/dist/dist-cjs/communication-react/index.js.map +1 -1
  4. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
  5. package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
  6. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +13 -0
  7. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +36 -0
  8. package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
  9. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.d.ts +49 -0
  10. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js +53 -0
  11. package/dist/dist-esm/calling-component-bindings/src/captionsSelector.js.map +1 -0
  12. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +12 -0
  13. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +25 -1
  14. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  15. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js +3 -1
  16. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  17. package/dist/dist-esm/calling-component-bindings/src/index.d.ts +3 -0
  18. package/dist/dist-esm/calling-component-bindings/src/index.js +2 -0
  19. package/dist/dist-esm/calling-component-bindings/src/index.js.map +1 -1
  20. package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +68 -1
  21. package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
  22. package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +8 -0
  23. package/dist/dist-esm/calling-stateful-client/src/CallContext.js +81 -0
  24. package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
  25. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js +57 -0
  26. package/dist/dist-esm/calling-stateful-client/src/CallDeclarativeCommon.js.map +1 -1
  27. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +2 -0
  28. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +19 -0
  29. package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
  30. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.d.ts +18 -0
  31. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js +38 -0
  32. package/dist/dist-esm/calling-stateful-client/src/CaptionsSubscriber.js.map +1 -0
  33. package/dist/dist-esm/calling-stateful-client/src/Converter.d.ts +6 -0
  34. package/dist/dist-esm/calling-stateful-client/src/Converter.js +17 -1
  35. package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
  36. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.d.ts +7 -0
  37. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js +10 -0
  38. package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
  39. package/dist/dist-esm/calling-stateful-client/src/index-public.d.ts +1 -0
  40. package/dist/dist-esm/calling-stateful-client/src/index-public.js.map +1 -1
  41. package/dist/dist-esm/communication-react/src/index.d.ts +3 -0
  42. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  43. package/dist/dist-esm/react-components/src/components/AtMentionFlyout.d.ts +91 -0
  44. package/dist/dist-esm/react-components/src/components/AtMentionFlyout.js +58 -0
  45. package/dist/dist-esm/react-components/src/components/AtMentionFlyout.js.map +1 -0
  46. package/dist/dist-esm/react-components/src/components/Caption.js +4 -3
  47. package/dist/dist-esm/react-components/src/components/Caption.js.map +1 -1
  48. package/dist/dist-esm/react-components/src/components/CaptionsBanner.d.ts +1 -0
  49. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js +4 -4
  50. package/dist/dist-esm/react-components/src/components/CaptionsBanner.js.map +1 -1
  51. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.d.ts +37 -0
  52. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js +88 -0
  53. package/dist/dist-esm/react-components/src/components/CaptionsSettingsModal.js.map +1 -0
  54. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.d.ts +6 -0
  55. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  56. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.d.ts +6 -0
  57. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  58. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.d.ts +2 -0
  59. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  60. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.d.ts +2 -0
  61. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js +1 -0
  62. package/dist/dist-esm/react-components/src/components/Drawer/DrawerMenuItem.js.map +1 -1
  63. package/dist/dist-esm/react-components/src/components/InputBoxComponent.d.ts +2 -0
  64. package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
  65. package/dist/dist-esm/react-components/src/components/MessageThread.d.ts +6 -0
  66. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  67. package/dist/dist-esm/react-components/src/components/SendBox.d.ts +6 -0
  68. package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
  69. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.d.ts +70 -0
  70. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js +52 -0
  71. package/dist/dist-esm/react-components/src/components/StartCaptionsButton.js.map +1 -0
  72. package/dist/dist-esm/react-components/src/components/index.d.ts +4 -0
  73. package/dist/dist-esm/react-components/src/components/index.js +8 -0
  74. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  75. package/dist/dist-esm/react-components/src/components/styles/AtMentionFlyout.style.d.ts +31 -0
  76. package/dist/dist-esm/react-components/src/components/styles/AtMentionFlyout.style.js +72 -0
  77. package/dist/dist-esm/react-components/src/components/styles/AtMentionFlyout.style.js.map +1 -0
  78. package/dist/dist-esm/react-components/src/components/styles/Captions.style.d.ts +8 -0
  79. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js +17 -2
  80. package/dist/dist-esm/react-components/src/components/styles/Captions.style.js.map +1 -1
  81. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.d.ts +34 -0
  82. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js +85 -0
  83. package/dist/dist-esm/react-components/src/components/styles/CaptionsSettingsModal.styles.js.map +1 -0
  84. package/dist/dist-esm/react-components/src/components/utils.d.ts +4 -0
  85. package/dist/dist-esm/react-components/src/components/utils.js +4 -0
  86. package/dist/dist-esm/react-components/src/components/utils.js.map +1 -1
  87. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.d.ts +4 -0
  88. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js +5 -1
  89. package/dist/dist-esm/react-components/src/identifiers/IdentifierProvider.js.map +1 -1
  90. package/dist/dist-esm/react-components/src/index.d.ts +1 -0
  91. package/dist/dist-esm/react-components/src/index.js.map +1 -1
  92. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.d.ts +1 -1
  93. package/dist/dist-esm/react-components/src/permissions/PermissionsProvider.js.map +1 -1
  94. package/dist/dist-esm/react-components/src/theming/icons.d.ts +4 -0
  95. package/dist/dist-esm/react-components/src/theming/icons.js +11 -1
  96. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  97. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.d.ts +48 -0
  98. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js +4 -0
  99. package/dist/dist-esm/react-components/src/types/CaptionsAvailableLanguageStrings.js.map +1 -0
  100. package/dist/dist-esm/react-components/src/types/index.d.ts +1 -0
  101. package/dist/dist-esm/react-components/src/types/index.js +1 -0
  102. package/dist/dist-esm/react-components/src/types/index.js.map +1 -1
  103. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +65 -0
  104. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +13 -0
  106. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +61 -2
  107. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +54 -1
  109. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  110. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +1 -0
  111. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  112. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +17 -2
  113. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  114. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +1 -1
  115. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
  116. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +16 -0
  117. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  118. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +1 -0
  119. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  120. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.d.ts +17 -0
  121. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js +41 -0
  122. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  123. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +7 -1
  124. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  125. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +12 -0
  126. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
  127. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +10 -0
  128. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +46 -0
  129. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  130. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +26 -1
  131. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  132. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +5 -0
  133. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +24 -0
  134. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  135. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.d.ts +6 -0
  136. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js +60 -0
  137. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBanner.js.map +1 -0
  138. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.d.ts +12 -0
  139. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js +107 -0
  140. package/dist/dist-esm/react-composites/src/composites/common/CaptionsBannerMoreButton.js.map +1 -0
  141. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.d.ts +7 -0
  142. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js +38 -0
  143. package/dist/dist-esm/react-composites/src/composites/common/CaptionsSettingsModal.js.map +1 -0
  144. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +1 -0
  145. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +19 -1
  146. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
  147. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.d.ts +2 -0
  148. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js +113 -6
  149. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -1
  150. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +13 -0
  151. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +103 -0
  152. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
  153. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.d.ts +6 -0
  154. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js +24 -0
  155. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.styles.js.map +1 -0
  156. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +1 -0
  157. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js +5 -1
  158. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
  159. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.d.ts +20 -0
  160. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js +55 -0
  161. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.js.map +1 -0
  162. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.d.ts +7 -0
  163. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js +25 -0
  164. package/dist/dist-esm/react-composites/src/composites/common/Drawer/SpokenLanguageDrawer.styles.js.map +1 -0
  165. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js +1 -1
  166. package/dist/dist-esm/react-composites/src/composites/common/MoreButton.js.map +1 -1
  167. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +4 -0
  168. package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +4 -0
  169. package/dist/dist-esm/react-composites/src/composites/common/utils.js +4 -0
  170. package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
  171. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +61 -1
  172. package/package.json +10 -10
@@ -30,6 +30,7 @@ import { CallEndReason } from '@azure/communication-calling';
30
30
  import { CallerInfo } from '@azure/communication-calling';
31
31
  import { CallKind } from '@azure/communication-calling';
32
32
  import { CallState as CallState_2 } from '@azure/communication-calling';
33
+ import { CaptionsResultType } from '@azure/communication-calling';
33
34
  import { ChatClient } from '@azure/communication-chat';
34
35
  import { ChatClientOptions } from '@azure/communication-chat';
35
36
  import { ChatMessage as ChatMessage_2 } from '@azure/communication-chat';
@@ -88,6 +89,7 @@ import { RoomCallLocator } from '@azure/communication-calling';
88
89
  import { ScalingMode } from '@azure/communication-calling';
89
90
  import { SendMessageOptions } from '@azure/communication-chat';
90
91
  import { StartCallOptions } from '@azure/communication-calling';
92
+ import { StartCaptionsOptions } from '@azure/communication-calling';
91
93
  import { TeamsCall } from '@azure/communication-calling';
92
94
  import { TeamsCallAgent } from '@azure/communication-calling';
93
95
  import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
@@ -217,6 +219,61 @@ export declare type AreParamEqual<A extends (props: any) => JSX.Element | undefi
217
219
  */
218
220
  export declare type AreTypeEqual<A, B> = A extends B ? (B extends A ? true : false) : false;
219
221
 
222
+ /**
223
+ * Options to display suggestions in the at mention scenario.
224
+ *
225
+ * @beta
226
+ */
227
+ export declare interface AtMentionDisplayOptions {
228
+ /**
229
+ * Optional callback to override render of an mention in a message thread.
230
+ */
231
+ onRenderAtMentionSuggestion?: (suggestion: AtMentionSuggestion) => JSX.Element;
232
+ }
233
+
234
+ /**
235
+ * Options to lookup suggestions in the at mention scenario.
236
+ *
237
+ * @beta
238
+ */
239
+ export declare interface AtMentionLookupOptions {
240
+ /**
241
+ * Optional string to set trigger keyword for mention a specific participant.
242
+ *
243
+ * @defaultValue `@`
244
+ */
245
+ trigger?: string;
246
+ /**
247
+ * Optional callback to fetch a list of at mention suggestions base on the query.
248
+ */
249
+ onQueryUpdated?: (query: string) => Promise<AtMentionSuggestion[]>;
250
+ /**
251
+ * Optional callback to render an item of the atMention suggestions list.
252
+ */
253
+ onRenderSuggestionItem?: (suggestion: AtMentionSuggestion, onSuggestionSelected?: (suggestion: AtMentionSuggestion) => void) => JSX.Element;
254
+ }
255
+
256
+ /**
257
+ * Options to lookup suggestions and display mentions in the at mention scenario.
258
+ *
259
+ * @beta
260
+ */
261
+ export declare type AtMentionOptions = AtMentionLookupOptions & AtMentionDisplayOptions;
262
+
263
+ /**
264
+ * At mention suggestion's state, as reflected in the UI.
265
+ *
266
+ * @beta
267
+ */
268
+ export declare interface AtMentionSuggestion {
269
+ /** User ID of a mentioned participant or 'everyone' for an @everyone suggestion */
270
+ userId: string;
271
+ /** Type of an at mention suggestion */
272
+ suggestionType: string;
273
+ /** Display name of a mentioned participant */
274
+ displayName: string;
275
+ }
276
+
220
277
  /**
221
278
  * @beta
222
279
  */
@@ -744,6 +801,25 @@ export declare interface CallAdapterCallOperations {
744
801
  * Continues into a call when the browser version is not supported.
745
802
  */
746
803
  allowUnsupportedBrowserVersion(): void;
804
+ /**
805
+ * Function to Start captions
806
+ * @param options - options for start captions
807
+ */
808
+ startCaptions(options?: StartCaptionsOptions): Promise<void>;
809
+ /**
810
+ * Function to set caption language
811
+ * @param language - language set for caption
812
+ */
813
+ setCaptionLanguage(language: string): Promise<void>;
814
+ /**
815
+ * Function to set spoken language
816
+ * @param language - spoken language
817
+ */
818
+ setSpokenLanguage(language: string): Promise<void>;
819
+ /**
820
+ * Funtion to stop captions
821
+ */
822
+ stopCaptions(): Promise<void>;
747
823
  /**
748
824
  * Start the blur video background effect.
749
825
  *
@@ -982,6 +1058,14 @@ export declare interface CallAdapterSubscribers {
982
1058
  * Subscribe function for 'error' event.
983
1059
  */
984
1060
  on(event: 'error', listener: (e: AdapterError) => void): void;
1061
+ /**
1062
+ * Subscribe function for 'captionsReceived' event.
1063
+ */
1064
+ on(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
1065
+ /**
1066
+ * Subscribe function for 'isCaptionsActiveChanged' event.
1067
+ */
1068
+ on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
985
1069
  /**
986
1070
  * Unsubscribe function for 'participantsJoined' event.
987
1071
  */
@@ -1030,6 +1114,14 @@ export declare interface CallAdapterSubscribers {
1030
1114
  * Unsubscribe function for 'error' event.
1031
1115
  */
1032
1116
  off(event: 'error', listener: (e: AdapterError) => void): void;
1117
+ /**
1118
+ * Unsubscribe function for 'captionsReceived' event.
1119
+ */
1120
+ off(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
1121
+ /**
1122
+ * Unsubscribe function for 'isCaptionsActiveChanged' event.
1123
+ */
1124
+ off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
1033
1125
  }
1034
1126
 
1035
1127
  /**
@@ -1734,6 +1826,70 @@ export declare interface CallCompositeStrings {
1734
1826
  * string to be used to announce when multiple unnamed participants have left at the same time.
1735
1827
  */
1736
1828
  manyUnnamedParticipantsLeft: string;
1829
+ /**
1830
+ * string to be used to open live captions contextual menu
1831
+ */
1832
+ liveCaptionsLabel?: string;
1833
+ /**
1834
+ * label for opening captions setting modal
1835
+ */
1836
+ captionsSettingsLabel?: string;
1837
+ /**
1838
+ * string to be used to start captions
1839
+ */
1840
+ startCaptionsButtonOnLabel?: string;
1841
+ /**
1842
+ * string to be used to stop captions
1843
+ */
1844
+ startCaptionsButtonOffLabel?: string;
1845
+ /**
1846
+ * tooltip string to be used to show captions is on
1847
+ */
1848
+ startCaptionsButtonTooltipOnContent?: string;
1849
+ /**
1850
+ *tooltip string to be used to show captions is off
1851
+ */
1852
+ startCaptionsButtonTooltipOffContent?: string;
1853
+ /**
1854
+ * captions setting modal title
1855
+ */
1856
+ captionsSettingsModalTitle?: string;
1857
+ /**
1858
+ * label for dropdown inside captions setting modal
1859
+ */
1860
+ captionsSettingsDropdownLabel?: string;
1861
+ /**
1862
+ * text under captions setting dropdown indicating what the dropdown is for
1863
+ */
1864
+ captionsSettingsDropdownInfoText?: string;
1865
+ /**
1866
+ * confirm button label in captions setting modal
1867
+ */
1868
+ captionsSettingsConfirmButtonLabel?: string;
1869
+ /**
1870
+ * cancel button label in captions setting modal
1871
+ */
1872
+ captionsSettingsCancelButtonLabel?: string;
1873
+ /**
1874
+ * arial label for captions setting modal
1875
+ */
1876
+ captionsSettingsModalAriaLabel?: string;
1877
+ /**
1878
+ * arial label for captions setting modal close button
1879
+ */
1880
+ captionsSettingsCloseModalButtonAriaLabel?: string;
1881
+ /**
1882
+ * label for more button inside captions banner
1883
+ */
1884
+ captionsBannerMoreButtonCallingLabel?: string;
1885
+ /**
1886
+ * arial label for more button inside captions banner
1887
+ */
1888
+ captionsBannerMoreButtonTooltip?: string;
1889
+ /**
1890
+ * list of key value pairs that pairs language code to language names
1891
+ */
1892
+ captionsAvailableLanguageStrings?: CaptionsAvailableLanguageStrings;
1737
1893
  }
1738
1894
 
1739
1895
  /**
@@ -1818,7 +1974,7 @@ export declare type CallErrors = {
1818
1974
  *
1819
1975
  * @public
1820
1976
  */
1821
- 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(video-background-effects) */ 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification';
1977
+ 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(video-background-effects) */ 'VideoEffectsFeature.startEffects' | /* @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';
1822
1978
 
1823
1979
  /**
1824
1980
  * Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
@@ -1994,6 +2150,10 @@ export declare interface CallState {
1994
2150
  * Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.
1995
2151
  */
1996
2152
  transcription: TranscriptionCallFeature;
2153
+ /**
2154
+ * Proxy of {@link @azure/communication-calling#TranscriptionCallFeature}.
2155
+ */
2156
+ captionsFeature: CaptionsCallFeatureState;
1997
2157
  /**
1998
2158
  * Proxy of {@link @azure/communication-calling#RecordingCallFeature}.
1999
2159
  */
@@ -2315,6 +2475,25 @@ export declare interface CallWithChatAdapterManagement {
2315
2475
  * Continues into a call when the browser version is not supported.
2316
2476
  */
2317
2477
  allowUnsupportedBrowserVersion(): void;
2478
+ /**
2479
+ * Function to Start captions
2480
+ * @param options - options for start captions
2481
+ */
2482
+ startCaptions(options?: StartCaptionsOptions): Promise<void>;
2483
+ /**
2484
+ * Function to set caption language
2485
+ * @param language - language set for caption
2486
+ */
2487
+ setCaptionLanguage(language: string): Promise<void>;
2488
+ /**
2489
+ * Function to set spoken language
2490
+ * @param language - spoken language
2491
+ */
2492
+ setSpokenLanguage(language: string): Promise<void>;
2493
+ /**
2494
+ * Funtion to stop captions
2495
+ */
2496
+ stopCaptions(): Promise<void>;
2318
2497
  /**
2319
2498
  * Start the blur video background effect.
2320
2499
  *
@@ -2374,6 +2553,8 @@ export declare interface CallWithChatAdapterSubscriptions {
2374
2553
  on(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
2375
2554
  on(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
2376
2555
  on(event: 'callError', listener: (e: AdapterError) => void): void;
2556
+ on(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
2557
+ on(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
2377
2558
  off(event: 'callEnded', listener: CallEndedListener): void;
2378
2559
  off(event: 'isMutedChanged', listener: IsMutedChangedListener): void;
2379
2560
  off(event: 'callIdChanged', listener: CallIdChangedListener): void;
@@ -2385,6 +2566,8 @@ export declare interface CallWithChatAdapterSubscriptions {
2385
2566
  off(event: 'selectedMicrophoneChanged', listener: PropertyChangedEvent): void;
2386
2567
  off(event: 'selectedSpeakerChanged', listener: PropertyChangedEvent): void;
2387
2568
  off(event: 'callError', listener: (e: AdapterError) => void): void;
2569
+ off(event: 'captionsReceived', listener: CaptionsReceivedListener): void;
2570
+ off(event: 'isCaptionsActiveChanged', listener: IsCaptionsActiveChangedListener): void;
2388
2571
  on(event: 'messageReceived', listener: MessageReceivedListener): void;
2389
2572
  on(event: 'messageSent', listener: MessageSentListener): void;
2390
2573
  on(event: 'messageRead', listener: MessageReadListener): void;
@@ -2699,6 +2882,18 @@ export declare interface CallWithChatCompositeStrings {
2699
2882
  * Only used with `mobileView` set to `true`.
2700
2883
  */
2701
2884
  moreDrawerSpeakerMenuTitle: string;
2885
+ /**
2886
+ * Title for the captions sub-menu in more button drawer.
2887
+ *
2888
+ * Only used with `mobileView` set to `true`.
2889
+ */
2890
+ moreDrawerCaptionsMenuTitle: string;
2891
+ /**
2892
+ * Title for the spoken language sub-menu in more button drawer.
2893
+ *
2894
+ * Only used with `mobileView` set to `true`.
2895
+ */
2896
+ moreDrawerSpokenLanguageMenuTitle: string;
2702
2897
  /**
2703
2898
  * {@Link CallWithChatComposite} control bar More button label
2704
2899
  */
@@ -2809,7 +3004,7 @@ export declare interface CallWithChatControlOptions extends CommonCallControlOpt
2809
3004
  *
2810
3005
  * @public
2811
3006
  */
2812
- export declare type CallWithChatEvent = 'callError' | 'chatError' | 'callEnded' | 'isMutedChanged' | 'callIdChanged' | 'isLocalScreenSharingActiveChanged' | 'displayNameChanged' | 'isSpeakingChanged' | 'callParticipantsJoined' | 'callParticipantsLeft' | 'selectedMicrophoneChanged' | 'selectedSpeakerChanged' | 'messageReceived' | 'messageSent' | 'messageRead' | 'chatParticipantsAdded' | 'chatParticipantsRemoved';
3007
+ 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';
2813
3008
 
2814
3009
  /**
2815
3010
  * @beta
@@ -3025,6 +3220,136 @@ export declare type CancelEditCallback = (messageId: string, metadata?: Record<s
3025
3220
  attachedFilesMetadata?: FileMetadata[];
3026
3221
  }) => void;
3027
3222
 
3223
+ /**
3224
+ * @beta
3225
+ * strings for captions setting modal
3226
+ */
3227
+ export declare interface CaptionsAvailableLanguageStrings {
3228
+ 'ar-ae': string;
3229
+ 'ar-sa': string;
3230
+ 'da-dk': string;
3231
+ 'de-de': string;
3232
+ 'en-au': string;
3233
+ 'en-ca': string;
3234
+ 'en-gb': string;
3235
+ 'en-in': string;
3236
+ 'en-nz': string;
3237
+ 'en-us': string;
3238
+ 'es-es': string;
3239
+ 'es-mx': string;
3240
+ 'fi-fi': string;
3241
+ 'fr-ca': string;
3242
+ 'fr-fr': string;
3243
+ 'hi-in': string;
3244
+ 'it-it': string;
3245
+ 'ja-jp': string;
3246
+ 'ko-kr': string;
3247
+ 'nb-no': string;
3248
+ 'nl-be': string;
3249
+ 'nl-nl': string;
3250
+ 'pl-pl': string;
3251
+ 'pt-br': string;
3252
+ 'ru-ru': string;
3253
+ 'sv-se': string;
3254
+ 'zh-cn': string;
3255
+ 'zh-hk': string;
3256
+ 'cs-cz': string;
3257
+ 'pt-pt': string;
3258
+ 'tr-tr': string;
3259
+ 'vi-vn': string;
3260
+ 'th-th': string;
3261
+ 'he-il': string;
3262
+ 'cy-gb': string;
3263
+ 'uk-ua': string;
3264
+ 'el-gr': string;
3265
+ 'hu-hu': string;
3266
+ 'ro-ro': string;
3267
+ 'sk-sk': string;
3268
+ 'zh-tw': string;
3269
+ }
3270
+
3271
+ /**
3272
+ * @beta
3273
+ */
3274
+ export declare interface CaptionsCallFeatureState {
3275
+ /**
3276
+ * supported spoken languages
3277
+ */
3278
+ supportedSpokenLanguages: string[];
3279
+ /**
3280
+ * array of received captions
3281
+ */
3282
+ captions: CaptionsInfo[];
3283
+ /**
3284
+ * whether captions is on/off
3285
+ */
3286
+ isCaptionsFeatureActive: boolean;
3287
+ /**
3288
+ * supported caption languages
3289
+ */
3290
+ supportedCaptionLanguages: string[];
3291
+ /**
3292
+ * current spoken language
3293
+ */
3294
+ currentSpokenLanguage: string;
3295
+ /**
3296
+ * current caption language
3297
+ */
3298
+ currentCaptionLanguage: string;
3299
+ }
3300
+
3301
+ /**
3302
+ * @beta
3303
+ */
3304
+ export declare interface CaptionsInfo {
3305
+ /**
3306
+ * The state in which this caption data can be classified.
3307
+ */
3308
+ resultType: CaptionsResultType;
3309
+ /**
3310
+ * The information of the call participant who spoke the captioned text.
3311
+ */
3312
+ speaker: CallerInfo;
3313
+ /**
3314
+ * The language that the spoken words were interpretted as. Corresponds to the language specified in startCaptions / setSpokenLanguage.
3315
+ */
3316
+ spokenLanguage: string;
3317
+ /**
3318
+ * The caption text.
3319
+ */
3320
+ captionText: string;
3321
+ /**
3322
+ * Timestamp of when the captioned words were initially spoken.
3323
+ */
3324
+ timestamp: Date;
3325
+ /**
3326
+ * The language that the captions are presented in. Corresponds to the captionLanguage specified in startCaptions / setCaptionLanguage.
3327
+ */
3328
+ captionLanguage?: string;
3329
+ /**
3330
+ * The original spoken caption text prior to translating to subtitle language
3331
+ */
3332
+ spokenText?: string;
3333
+ }
3334
+
3335
+ /**
3336
+ * options bag to start captions
3337
+ *
3338
+ * @beta
3339
+ */
3340
+ export declare type CaptionsOptions = {
3341
+ spokenLanguage: string;
3342
+ };
3343
+
3344
+ /**
3345
+ * Callback for {@link CallAdapterSubscribers} 'captionsReceived' event.
3346
+ *
3347
+ * @beta
3348
+ */
3349
+ export declare type CaptionsReceivedListener = (event: {
3350
+ captionsInfo: CaptionsInfo;
3351
+ }) => void;
3352
+
3028
3353
  /**
3029
3354
  * {@link ChatComposite} Adapter interface.
3030
3355
  *
@@ -3737,6 +4062,10 @@ export declare interface CommonCallingHandlers {
3737
4062
  onRemoveVideoBackgroundEffects: () => Promise<void>;
3738
4063
  onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
3739
4064
  onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
4065
+ onStartCaptions: (options?: CaptionsOptions) => Promise<void>;
4066
+ onStopCaptions: () => Promise<void>;
4067
+ onSetSpokenLanguage: (language: string) => Promise<void>;
4068
+ onSetCaptionLanguage: (language: string) => Promise<void>;
3740
4069
  }
3741
4070
 
3742
4071
  /**
@@ -4730,6 +5059,10 @@ export declare const DEFAULT_COMPONENT_ICONS: {
4730
5059
  VerticalGalleryLeftButton: JSX.Element;
4731
5060
  VerticalGalleryRightButton: JSX.Element;
4732
5061
  OptionsVideoBackgroundEffect: JSX.Element;
5062
+ CaptionsIcon: JSX.Element;
5063
+ CaptionsOffIcon: JSX.Element;
5064
+ CaptionsSettingsIcon: JSX.Element;
5065
+ ChangeSpokenLanguageIcon: JSX.Element;
4733
5066
  };
4734
5067
 
4735
5068
  /**
@@ -4841,6 +5174,10 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4841
5174
  VerticalGalleryLeftButton: JSX.Element;
4842
5175
  VerticalGalleryRightButton: JSX.Element;
4843
5176
  OptionsVideoBackgroundEffect: JSX.Element;
5177
+ CaptionsIcon: JSX.Element;
5178
+ CaptionsOffIcon: JSX.Element;
5179
+ CaptionsSettingsIcon: JSX.Element;
5180
+ ChangeSpokenLanguageIcon: JSX.Element;
4844
5181
  };
4845
5182
 
4846
5183
  /**
@@ -5857,6 +6194,10 @@ export declare interface _Identifiers {
5857
6194
  verticalGalleryVideoTile: string;
5858
6195
  /** `data-ui-id` value for `VerticalGallery` Component's page counter */
5859
6196
  verticalGalleryPageCounter: string;
6197
+ /** `data-ui-id` value for `AtMentionFlyout` Component's suggestion list */
6198
+ atMentionSuggestionList: string;
6199
+ /** `data-ui-id` value for `AtMentionFlyout` Component's suggestion list item */
6200
+ atMentionSuggestionItem: string;
5860
6201
  }
5861
6202
 
5862
6203
  /**
@@ -5905,6 +6246,15 @@ export declare interface IncomingCallState {
5905
6246
  endTime?: Date;
5906
6247
  }
5907
6248
 
6249
+ /**
6250
+ * Callback for {@link CallAdapterSubscribers} 'isCaptionsActiveChanged' event.
6251
+ *
6252
+ * @beta
6253
+ */
6254
+ export declare type IsCaptionsActiveChangedListener = (event: {
6255
+ isActive: boolean;
6256
+ }) => void;
6257
+
5908
6258
  /**
5909
6259
  * Callback for {@link CallAdapterSubscribers} 'isLocalScreenSharingActiveChanged' event.
5910
6260
  *
@@ -6430,6 +6780,11 @@ export declare type MessageThreadProps = {
6430
6780
  * @beta
6431
6781
  */
6432
6782
  onDisplayDateTimeString?: (messageDate: Date) => string;
6783
+ /**
6784
+ * Optional props needed to lookup suggestions and display mentions in the at mention scenario.
6785
+ * @beta
6786
+ */
6787
+ atMentionOptions?: AtMentionOptions;
6433
6788
  };
6434
6789
 
6435
6790
  /**
@@ -7317,7 +7672,7 @@ export declare interface RemoteVideoTileMenuOptions {
7317
7672
  * @beta
7318
7673
  * The role of a call participant.
7319
7674
  */
7320
- export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer';
7675
+ export declare type Role = 'Presenter' | 'Attendee' | 'Consumer' | 'Organizer' | 'Co-organizer';
7321
7676
 
7322
7677
  /**
7323
7678
  * A button to start / stop screen sharing.
@@ -7429,6 +7784,11 @@ export declare interface SendBoxProps {
7429
7784
  * Optional callback called when message is sent
7430
7785
  */
7431
7786
  onSendMessage?: (content: string) => Promise<void>;
7787
+ /**
7788
+ * Optional props needed to lookup suggestions in the at mention scenario.
7789
+ * @beta
7790
+ */
7791
+ atMentionLookupOptions?: AtMentionLookupOptions;
7432
7792
  /**
7433
7793
  * Optional callback called when user is typing
7434
7794
  */