@azure/communication-react 1.13.0-alpha-202402040013 → 1.13.0-alpha-202402070012

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 (148) hide show
  1. package/dist/communication-react.d.ts +183 -66
  2. package/dist/dist-cjs/communication-react/index.js +959 -690
  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/handlers/createCommonHandlers.d.ts +5 -1
  7. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
  9. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +6 -4
  10. package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
  11. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  12. package/dist/dist-esm/communication-react/src/index.js +2 -2
  13. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +1 -1
  15. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +3 -3
  17. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  19. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +3 -3
  20. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  21. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js +3 -3
  22. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js.map +1 -1
  23. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.d.ts +7 -7
  24. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +1 -1
  25. package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/ImageOverlay.d.ts +62 -0
  27. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +52 -0
  28. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -0
  29. package/dist/dist-esm/react-components/src/components/MessageThread.js +2 -2
  30. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  31. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  32. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js +4 -4
  33. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -1
  34. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js +3 -1
  35. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js +4 -4
  37. package/dist/dist-esm/react-components/src/components/VideoGallery/useVideoTileContextualMenuProps.js.map +1 -1
  38. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  39. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +56 -56
  40. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/components/index.d.ts +3 -3
  42. package/dist/dist-esm/react-components/src/components/index.js +2 -2
  43. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  44. package/dist/dist-esm/react-components/src/components/styles/{ImageGallery.style.d.ts → ImageOverlay.style.d.ts} +1 -1
  45. package/dist/dist-esm/react-components/src/components/styles/{ImageGallery.style.js → ImageOverlay.style.js} +7 -7
  46. package/dist/dist-esm/react-components/src/components/styles/{ImageGallery.style.js.map → ImageOverlay.style.js.map} +1 -1
  47. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -3
  48. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  49. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +1 -1
  50. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +1 -1
  51. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +1 -1
  52. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +1 -1
  53. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +1 -1
  54. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +1 -1
  55. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +1 -1
  56. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +1 -1
  57. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +1 -1
  58. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +1 -1
  59. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +1 -1
  60. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +1 -1
  61. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +1 -1
  62. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +1 -1
  63. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +1 -1
  64. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +1 -1
  65. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +1 -1
  66. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +1 -1
  67. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +1 -1
  68. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +1 -1
  69. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +1 -1
  70. package/dist/dist-esm/react-components/src/theming/icons.js +3 -1
  71. package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
  72. package/dist/dist-esm/react-components/src/theming/themes.d.ts +2 -2
  73. package/dist/dist-esm/react-components/src/theming/themes.js +2 -2
  74. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +4 -3
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +25 -22
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +13 -4
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +62 -9
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +115 -79
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +16 -9
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +2 -2
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  87. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.d.ts +3 -0
  88. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +12 -4
  89. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  90. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +3 -0
  91. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +15 -3
  92. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
  93. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.d.ts +73 -0
  94. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js +41 -0
  95. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/Prompt.js.map +1 -0
  96. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +1 -1
  97. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  98. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +3 -2
  99. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  100. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js +46 -23
  101. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/CallPage.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -35
  103. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +1 -11
  104. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  105. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.d.ts +56 -0
  106. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js +29 -0
  107. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js.map +1 -0
  108. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.d.ts +14 -0
  109. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js +27 -0
  110. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js.map +1 -0
  111. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  112. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +9 -2
  113. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +9 -0
  114. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  115. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.d.ts +9 -0
  116. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js +81 -0
  117. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/spotlightUtils.js.map +1 -0
  118. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +3 -2
  119. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  120. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +6 -3
  121. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +11 -6
  122. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  123. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +9 -5
  124. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  125. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +6 -4
  126. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +10 -6
  127. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  128. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +3 -1
  129. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  130. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +30 -34
  131. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  132. package/dist/dist-esm/react-composites/src/composites/common/Survey.d.ts +20 -0
  133. package/dist/dist-esm/react-composites/src/composites/common/Survey.js +136 -0
  134. package/dist/dist-esm/react-composites/src/composites/common/Survey.js.map +1 -0
  135. package/dist/dist-esm/react-composites/src/composites/common/{SurveyPaneContent.d.ts → SurveyContent.d.ts} +2 -2
  136. package/dist/dist-esm/react-composites/src/composites/common/{SurveyPaneContent.js → SurveyContent.js} +4 -4
  137. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js.map +1 -0
  138. package/dist/dist-esm/react-composites/src/composites/common/icons.js +3 -1
  139. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  140. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +17 -2
  141. package/package.json +1 -1
  142. package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +0 -71
  143. package/dist/dist-esm/react-components/src/components/ImageGallery.js +0 -53
  144. package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +0 -1
  145. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.d.ts +0 -13
  146. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js +0 -87
  147. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js.map +0 -1
  148. package/dist/dist-esm/react-composites/src/composites/common/SurveyPaneContent.js.map +0 -1
@@ -75,6 +75,7 @@ import { LatestNetworkDiagnostics } from '@azure/communication-calling';
75
75
  import { LocalVideoStream } from '@azure/communication-calling';
76
76
  import type { MediaDiagnosticChangedEventArgs } from '@azure/communication-calling';
77
77
  import { MediaStreamType } from '@azure/communication-calling';
78
+ import { MicrosoftTeamsAppIdentifier } from '@azure/communication-common';
78
79
  import { MicrosoftTeamsUserIdentifier } from '@azure/communication-common';
79
80
  import type { NetworkDiagnosticChangedEventArgs } from '@azure/communication-calling';
80
81
  import { PartialTheme } from '@fluentui/react';
@@ -104,6 +105,7 @@ import { TeamsMeetingLinkLocator } from '@azure/communication-calling';
104
105
  import { Theme } from '@fluentui/react';
105
106
  import { TransferRequestedEventArgs } from '@azure/communication-calling';
106
107
  import { TypingIndicatorReceivedEvent } from '@azure/communication-chat';
108
+ import { UnknownIdentifier } from '@azure/communication-common';
107
109
  import { VideoDeviceInfo } from '@azure/communication-calling';
108
110
  import { VideoEffectName } from '@azure/communication-calling';
109
111
  import { VideoStreamRenderer } from '@azure/communication-calling';
@@ -383,6 +385,31 @@ export declare type AzureCommunicationChatAdapterOptions = {
383
385
  credential?: CommunicationTokenCredential;
384
386
  };
385
387
 
388
+ /**
389
+ * Arguments for creating the Azure Communication Services implementation of {@link CallAdapter}.
390
+ *
391
+ * These arguments are used to create an outbound call scenarios.
392
+ *
393
+ * Note: `displayName` can be a maximum of 256 characters.
394
+ *
395
+ * @public
396
+ */
397
+ export declare type AzureCommunicationOutboundCallAdapterArgs = {
398
+ userId: CommunicationUserIdentifier;
399
+ displayName: string;
400
+ credential: CommunicationTokenCredential;
401
+ targetCallees: StartCallIdentifier[];
402
+ /**
403
+ * A phone number in E.164 format procured using Azure Communication Services that will be used to represent callers identity.
404
+ * E.164 numbers are formatted as [+] [country code] [phone number including area code]. For example, +14255550123 for a US phone number.
405
+ */
406
+ alternateCallerId?: string;
407
+ /**
408
+ * Optional parameters for the {@link AzureCommunicationCallAdapter} created
409
+ */
410
+ options?: AzureCommunicationCallAdapterOptions;
411
+ };
412
+
386
413
  /**
387
414
  * Properties common to all composites exported from this library.
388
415
  *
@@ -624,9 +651,9 @@ export declare interface CallAdapter extends CommonCallAdapter {
624
651
  /**
625
652
  * Start the call.
626
653
  * @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
627
- * @beta
654
+ * @public
628
655
  */
629
- startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
656
+ startCall(participants: StartCallIdentifier[], options?: StartCallOptions): Call | undefined;
630
657
  }
631
658
 
632
659
  /**
@@ -674,9 +701,9 @@ export declare interface CallAdapterCallManagement extends CallAdapterCallOperat
674
701
  /**
675
702
  * Start the call.
676
703
  * @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
677
- * @beta
704
+ * @public
678
705
  */
679
- startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
706
+ startCall(participants: StartCallIdentifier[], options?: StartCallOptions): Call | undefined;
680
707
  }
681
708
 
682
709
  /**
@@ -838,7 +865,7 @@ export declare interface CallAdapterCallOperations {
838
865
  /**
839
866
  * send dtmf tone to another participant in a 1:1 PSTN call
840
867
  *
841
- * @beta
868
+ * @public
842
869
  */
843
870
  sendDtmfTone(dtmfTone: DtmfTone_2): Promise<void>;
844
871
  /**
@@ -1584,9 +1611,10 @@ export declare type CallCompositeOptions = {
1584
1611
  */
1585
1612
  disableSurvey?: boolean;
1586
1613
  /**
1587
- * Optional callback to add extra logic when survey is dismissed. For self-host only
1614
+ * Optional callback to redirect users to custom screens when survey is done, note that default end call screen will be shown if this callback is not provided
1615
+ * This callback can be used to redirect users to different screens depending on survey state, whether it is submitted, skipped or has a problem when submitting the survey
1588
1616
  */
1589
- onSurveyDismissed?: () => void;
1617
+ onSurveyClosed?: (surveyState: 'sent' | 'skipped' | 'error', surveyError?: string) => void;
1590
1618
  /**
1591
1619
  * Optional callback to handle survey data including free form text response
1592
1620
  * Note that free form text response survey option is only going to be enabled when this callback is provided
@@ -2276,9 +2304,9 @@ export declare interface CallCompositeStrings {
2276
2304
  */
2277
2305
  capabilityChangedNotification?: CapabilityChangedNotificationStrings;
2278
2306
  /**
2279
- * Question for the survey
2307
+ * Title for the survey
2280
2308
  */
2281
- surveyQuestion: string;
2309
+ surveyTitle: string;
2282
2310
  /**
2283
2311
  * Helper text to explain what the survey is for
2284
2312
  */
@@ -2324,13 +2352,17 @@ export declare interface CallCompositeStrings {
2324
2352
  */
2325
2353
  surveyConfirmButtonLabel: string;
2326
2354
  /**
2327
- * Aria Label for cancel button
2355
+ * Cancel button label for survey
2328
2356
  */
2329
- surveyCancelButtonAriaLabel: string;
2357
+ surveySkipButtonLabel: string;
2330
2358
  /**
2331
2359
  * Default text for free form text box
2332
2360
  */
2333
2361
  surveyTextboxDefaultText: string;
2362
+ /**
2363
+ * Thank you text appeared on screen after survey is submitted
2364
+ */
2365
+ endOfSurveyText: string;
2334
2366
  /**
2335
2367
  * Corresponding texts to each call issue
2336
2368
  */
@@ -2387,6 +2419,10 @@ export declare interface CallCompositeStrings {
2387
2419
  * Label to hide the dtmf dialer in the more button menu
2388
2420
  */
2389
2421
  dtmfDialerMoreButtonLabelOff?: string;
2422
+ /**
2423
+ * Strings for spotlight prompt
2424
+ */
2425
+ spotlightPrompt: SpotlightPromptStrings;
2390
2426
  }
2391
2427
 
2392
2428
  /**
@@ -2878,9 +2914,9 @@ export declare interface CallWithChatAdapterManagement {
2878
2914
  /**
2879
2915
  * Start the call.
2880
2916
  * @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
2881
- * @beta
2917
+ * @public
2882
2918
  */
2883
- startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
2919
+ startCall(participants: (MicrosoftTeamsAppIdentifier | /* @conditional-compile-remove(PSTN-calls) */ PhoneNumberIdentifier | /* @conditional-compile-remove(one-to-n-calling) */ CommunicationUserIdentifier | /* @conditional-compile-remove(teams-adhoc-call) */ MicrosoftTeamsUserIdentifier | UnknownIdentifier)[], options?: StartCallOptions): Call | undefined;
2884
2920
  /**
2885
2921
  * Start sharing the screen during a call.
2886
2922
  *
@@ -3116,7 +3152,7 @@ export declare interface CallWithChatAdapterManagement {
3116
3152
  /**
3117
3153
  * send dtmf tone to another participant in the call in 1:1 calls
3118
3154
  *
3119
- * @beta
3155
+ * @public
3120
3156
  */
3121
3157
  sendDtmfTone: (dtmfTone: DtmfTone_2) => Promise<void>;
3122
3158
  /**
@@ -3511,9 +3547,10 @@ export declare type CallWithChatCompositeOptions = {
3511
3547
  */
3512
3548
  disableSurvey?: boolean;
3513
3549
  /**
3514
- * Optional callback to add extra logic when survey is dismissed. For self-host only
3550
+ * Optional callback to redirect users to custom screens when survey is done, note that default end call screen will be shown if this callback is not provided
3551
+ * This callback can be used to redirect users to different screens depending on survey state, whether it is submitted, skipped or has a problem when submitting the survey
3515
3552
  */
3516
- onSurveyDismissed?: () => void;
3553
+ onSurveyClosed?: (surveyState: 'sent' | 'skipped' | 'error', surveyError?: string) => void;
3517
3554
  /**
3518
3555
  * Optional callback to handle survey data including free form text response
3519
3556
  * Note that free form text response survey option is only going to be enabled when this callback is provided
@@ -4855,9 +4892,9 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
4855
4892
  /**
4856
4893
  * Start the call.
4857
4894
  * @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
4858
- * @beta
4895
+ * @public
4859
4896
  */
4860
- startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
4897
+ startCall(participants: StartCallIdentifier[], options?: StartCallOptions): void;
4861
4898
  }
4862
4899
 
4863
4900
  /**
@@ -4883,6 +4920,11 @@ export declare type CommonCallAdapterOptions = {
4883
4920
  * Sounds to use for calling events
4884
4921
  */
4885
4922
  callingSounds?: CallingSounds;
4923
+ /**
4924
+ * Reaction resource for reaction resources
4925
+ * @beta
4926
+ */
4927
+ reactionResources?: ReactionResources;
4886
4928
  };
4887
4929
 
4888
4930
  /**
@@ -5004,6 +5046,9 @@ export declare interface CommonCallingHandlers {
5004
5046
  onRaiseHand: () => Promise<void>;
5005
5047
  onLowerHand: () => Promise<void>;
5006
5048
  onToggleRaiseHand: () => Promise<void>;
5049
+ /**
5050
+ * @beta
5051
+ */
5007
5052
  onReactionClicked: (reaction: Reaction_2) => Promise<void>;
5008
5053
  onToggleHold: () => Promise<void>;
5009
5054
  onAddParticipant(participant: CommunicationUserIdentifier): Promise<void>;
@@ -5309,8 +5354,8 @@ export declare interface ComponentStrings {
5309
5354
  sendBox: SendBoxStrings;
5310
5355
  /** Strings for MentionPopover */
5311
5356
  mentionPopover: MentionPopoverStrings;
5312
- /** Strings for ImageGallery */
5313
- imageGallery: ImageGalleryStrings;
5357
+ /** Strings for ImageOverlay */
5358
+ imageOverlay: ImageOverlayStrings;
5314
5359
  /** Strings for MessageStatusIndicator */
5315
5360
  messageStatusIndicator: MessageStatusIndicatorStrings;
5316
5361
  /** Strings for ErroBar */
@@ -5727,7 +5772,28 @@ export declare interface ControlBarProps {
5727
5772
  *
5728
5773
  * @public
5729
5774
  */
5730
- export declare const createAzureCommunicationCallAdapter: ({ userId, displayName, credential, locator, alternateCallerId, options }: AzureCommunicationCallAdapterArgs) => Promise<CallAdapter>;
5775
+ export declare function createAzureCommunicationCallAdapter(args: AzureCommunicationCallAdapterArgs): Promise<CallAdapter>;
5776
+
5777
+ /**
5778
+ * Create a {@link CallAdapter} backed by Azure Communication Services.
5779
+ *
5780
+ * This is the default implementation of {@link CallAdapter} provided by this library.
5781
+ *
5782
+ * Note: `displayName` can be a maximum of 256 characters.
5783
+ *
5784
+ * @public
5785
+ */
5786
+ export declare function createAzureCommunicationCallAdapter(args: AzureCommunicationOutboundCallAdapterArgs): Promise<CallAdapter>;
5787
+
5788
+ /**
5789
+ * Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
5790
+ *
5791
+ * Useful if you want to keep a reference to {@link StatefulCallClient}.
5792
+ * Consider using {@link createAzureCommunicationCallAdapter} for a simpler API.
5793
+ *
5794
+ * @public
5795
+ */
5796
+ export declare function createAzureCommunicationCallAdapterFromClient(callClient: StatefulCallClient, callAgent: CallAgent, targetCallees: StartCallIdentifier[], options?: AzureCommunicationCallAdapterOptions): Promise<CallAdapter>;
5731
5797
 
5732
5798
  /**
5733
5799
  * Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
@@ -5737,7 +5803,7 @@ export declare const createAzureCommunicationCallAdapter: ({ userId, displayName
5737
5803
  *
5738
5804
  * @public
5739
5805
  */
5740
- export declare const createAzureCommunicationCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?: AzureCommunicationCallAdapterOptions) => Promise<CallAdapter>;
5806
+ export declare function createAzureCommunicationCallAdapterFromClient(callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?: AzureCommunicationCallAdapterOptions): Promise<CallAdapter>;
5741
5807
 
5742
5808
  /**
5743
5809
  * Create a CallWithChatAdapter backed by Azure Communication services
@@ -6042,7 +6108,7 @@ export declare interface CustomMessage extends MessageCommon {
6042
6108
  *
6043
6109
  * @public
6044
6110
  */
6045
- export declare const darkTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-gallery) */ ChatTheme;
6111
+ export declare const darkTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-overlay) */ ChatTheme;
6046
6112
 
6047
6113
  /**
6048
6114
  * @beta
@@ -6552,20 +6618,20 @@ export declare interface DiagnosticsCallFeatureState {
6552
6618
  * A component to allow users to enter phone number through clicking on dialpad/using keyboard
6553
6619
  * It will return empty component for stable builds
6554
6620
  *
6555
- * @beta
6621
+ * @public
6556
6622
  */
6557
6623
  export declare const Dialpad: (props: DialpadProps) => JSX.Element;
6558
6624
 
6559
6625
  /**
6560
6626
  * Modes of the dialpad component.
6561
- * @beta
6627
+ * @public
6562
6628
  */
6563
6629
  export declare type DialpadMode = 'dtmf' | 'dialer';
6564
6630
 
6565
6631
  /**
6566
6632
  * Props for {@link Dialpad} component.
6567
6633
  *
6568
- * @beta
6634
+ * @public
6569
6635
  */
6570
6636
  export declare interface DialpadProps {
6571
6637
  strings?: DialpadStrings;
@@ -6614,7 +6680,7 @@ export declare interface DialpadProps {
6614
6680
  /**
6615
6681
  * Strings of {@link Dialpad} that can be overridden.
6616
6682
  *
6617
- * @beta
6683
+ * @public
6618
6684
  */
6619
6685
  export declare interface DialpadStrings {
6620
6686
  placeholderText: string;
@@ -6624,7 +6690,7 @@ export declare interface DialpadStrings {
6624
6690
  /**
6625
6691
  * Styles for {@link Dialpad} component.
6626
6692
  *
6627
- * @beta
6693
+ * @public
6628
6694
  */
6629
6695
  export declare interface DialpadStyles {
6630
6696
  root?: IStyle;
@@ -6659,7 +6725,7 @@ export { Disposable_2 as Disposable }
6659
6725
  /**
6660
6726
  * DTMF tone for PSTN calls.
6661
6727
  *
6662
- * @beta
6728
+ * @public
6663
6729
  */
6664
6730
  export declare type DtmfTone = 'A' | 'B' | 'C' | 'D' | 'Flash' | 'Num0' | 'Num1' | 'Num2' | 'Num3' | 'Num4' | 'Num5' | 'Num6' | 'Num7' | 'Num8' | 'Num9' | 'Pound' | 'Star';
6665
6731
 
@@ -7369,70 +7435,60 @@ export declare interface _Identifiers {
7369
7435
  *
7370
7436
  * @beta
7371
7437
  */
7372
- export declare const ImageGallery: (props: ImageGalleryProps) => JSX.Element;
7438
+ export declare const ImageOverlay: (props: ImageOverlayProps) => JSX.Element;
7373
7439
 
7374
7440
  /**
7375
- * Props for {@link ImageGallery}.
7441
+ * Props for {@link ImageOverlay}.
7376
7442
  *
7377
7443
  * @beta
7378
7444
  */
7379
- export declare interface ImageGalleryImageProps {
7380
- /** Image Url used to display the image in a large scale. */
7381
- imageUrl: string;
7382
- /** String used as a file name when downloading this image to user's local device. */
7383
- downloadFilename: string;
7384
- /** Optional string used as a alt text for the image. @default 'image' */
7385
- altText?: string;
7386
- /** Optional string used as the title of the image and displayed on the top left corner of the ImageGallery. */
7387
- title?: string;
7388
- /** Optional JSX element used as a title icon and displayed to the left of the title element. */
7389
- titleIcon?: JSX.Element;
7390
- }
7391
-
7392
- /**
7393
- * Props for {@link ImageGallery}.
7394
- *
7395
- * @beta
7396
- */
7397
- export declare interface ImageGalleryProps {
7445
+ export declare interface ImageOverlayProps {
7398
7446
  /**
7399
7447
  * Boolean that controls whether the modal is displayed.
7400
7448
  */
7401
7449
  isOpen: boolean;
7402
7450
  /**
7403
- * Array of images used to populate the ImageGallery
7451
+ * Image source used to display the image in a large scale.
7452
+ */
7453
+ imageSrc: string;
7454
+ /**
7455
+ * Optional string used as a alt text for the image. @default 'image'
7456
+ */
7457
+ altText?: string;
7458
+ /**
7459
+ * Optional string used as the title of the image and displayed on the top left corner of the ImageOverlay.
7460
+ */
7461
+ title?: string;
7462
+ /**
7463
+ * Optional JSX element used as a title icon and displayed to the left of the title element.
7404
7464
  */
7405
- images: Array<ImageGalleryImageProps>;
7465
+ titleIcon?: JSX.Element;
7406
7466
  /**
7407
- * Callback to invoke when the ImageGallery modal is dismissed
7467
+ * Callback to invoke when the ImageOverlay modal is dismissed
7408
7468
  */
7409
7469
  onDismiss: () => void;
7410
7470
  /**
7411
7471
  * Callback called when the download button is clicked.
7412
7472
  */
7413
- onImageDownloadButtonClicked: (imageUrl: string, downloadFilename: string) => void;
7473
+ onDownloadButtonClicked: (imageSrc: string) => void;
7414
7474
  /**
7415
7475
  * Callback called when there's an error loading the image.
7416
7476
  */
7417
7477
  onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
7418
- /**
7419
- * Indicating which index of the images array to start with.
7420
- */
7421
- startIndex?: number;
7422
7478
  }
7423
7479
 
7424
7480
  /**
7425
- * Strings of {@link ImageGallery} that can be overridden.
7481
+ * Strings of {@link ImageOverlay} that can be overridden.
7426
7482
  *
7427
7483
  * @beta
7428
7484
  */
7429
- export declare interface ImageGalleryStrings {
7485
+ export declare interface ImageOverlayStrings {
7430
7486
  /**
7431
- * Download button label for ImageGallery
7487
+ * Download button label for ImageOverlay
7432
7488
  */
7433
7489
  downloadButtonLabel: string;
7434
7490
  /**
7435
- * Dismiss button aria label for ImageGallery
7491
+ * Dismiss button aria label for ImageOverlay
7436
7492
  */
7437
7493
  dismissButtonAriaLabel: string;
7438
7494
  }
@@ -7623,7 +7679,7 @@ export declare interface JumpToNewMessageButtonProps {
7623
7679
  *
7624
7680
  * @public
7625
7681
  */
7626
- export declare const lightTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-gallery) */ ChatTheme;
7682
+ export declare const lightTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-overlay) */ ChatTheme;
7627
7683
 
7628
7684
  /**
7629
7685
  * Whether the stream is loading or not.
@@ -7712,7 +7768,7 @@ export declare interface LocalVideoStreamVideoEffectsState {
7712
7768
  /**
7713
7769
  * Options for the local video tile in the Call composite.
7714
7770
  *
7715
- * @beta
7771
+ * @public
7716
7772
  */
7717
7773
  export declare interface LocalVideoTileOptions {
7718
7774
  /**
@@ -7736,7 +7792,7 @@ export declare type LocalVideoTileSize = '9:16' | '16:9' | 'hidden' | 'followDev
7736
7792
 
7737
7793
  /**
7738
7794
  * Modes of how the longpress handlers can be tiggered.
7739
- * @beta
7795
+ * @public
7740
7796
  */
7741
7797
  export declare type LongPressTrigger = 'mouseAndTouch' | 'touch';
7742
7798
 
@@ -9744,6 +9800,61 @@ export declare interface SpotlightCallFeatureState {
9744
9800
  spotlightedParticipants: SpotlightedParticipant[];
9745
9801
  }
9746
9802
 
9803
+ /**
9804
+ * Strings used in prompt related to spotlight
9805
+ * @beta
9806
+ */
9807
+ export declare interface SpotlightPromptStrings {
9808
+ /**
9809
+ * Heading for prompt when starting spotlight on participant
9810
+ */
9811
+ startSpotlightHeading: string;
9812
+ /**
9813
+ * Text for prompt when starting spotlight on participant
9814
+ */
9815
+ startSpotlightText: string;
9816
+ /**
9817
+ * Label for button to confirm starting spotlight on local user in prompt
9818
+ */
9819
+ startSpotlightOnSelfText: string;
9820
+ /**
9821
+ * Label for button to confirm starting spotlight on participant in prompt
9822
+ */
9823
+ startSpotlightConfirmButtonLabel: string;
9824
+ /**
9825
+ * Label for button to cancel starting spotlight on participant in prompt
9826
+ */
9827
+ startSpotlightCancelButtonLabel: string;
9828
+ /**
9829
+ * Heading for prompt when stopping spotlight on participant
9830
+ */
9831
+ stopSpotlightHeading: string;
9832
+ /**
9833
+ * Heading for prompt when stopping spotlight on local user
9834
+ */
9835
+ stopSpotlightOnSelfHeading: string;
9836
+ /**
9837
+ * Text for prompt when stopping spotlight on participant
9838
+ */
9839
+ stopSpotlightText: string;
9840
+ /**
9841
+ * Text for prompt when stopping spotlight on local user
9842
+ */
9843
+ stopSpotlightOnSelfText: string;
9844
+ /**
9845
+ * Label for button to confirm stopping spotlight on participant in prompt
9846
+ */
9847
+ stopSpotlightConfirmButtonLabel: string;
9848
+ /**
9849
+ * Label for button to confirm stopping spotlight on local user in prompt
9850
+ */
9851
+ stopSpotlightOnSelfConfirmButtonLabel: string;
9852
+ /**
9853
+ * Label for button to cancel stopping spotlight on participant in prompt
9854
+ */
9855
+ stopSpotlightCancelButtonLabel: string;
9856
+ }
9857
+
9747
9858
  /**
9748
9859
  * Spotlight state with order
9749
9860
  *
@@ -9756,6 +9867,12 @@ export declare interface SpotlightState {
9756
9867
  spotlightedOrderPosition?: number;
9757
9868
  }
9758
9869
 
9870
+ /**
9871
+ * Identifier types for initiating a call using the CallAdapter
9872
+ * @public
9873
+ */
9874
+ export declare type StartCallIdentifier = (MicrosoftTeamsAppIdentifier | /* @conditional-compile-remove(PSTN-calls) */ PhoneNumberIdentifier | /* @conditional-compile-remove(one-to-n-calling) */ CommunicationUserIdentifier | /* @conditional-compile-remove(teams-adhoc-call) */ MicrosoftTeamsUserIdentifier | UnknownIdentifier) | /* @conditional-compile-remove(start-call-beta) */ CommunicationIdentifier;
9875
+
9759
9876
  /**
9760
9877
  * Defines the methods that allow CallClient {@link @azure/communication-calling#CallClient} to be used statefully.
9761
9878
  * The interface provides access to proxied state and also allows registering a handler for state change events. For
@@ -10505,7 +10622,7 @@ export declare type UpdateMessageCallback = (messageId: string, content: string,
10505
10622
  *
10506
10623
  * @public
10507
10624
  */
10508
- export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs>, afterCreate?: ((adapter: CallAdapter) => Promise<CallAdapter>) | undefined, beforeDispose?: ((adapter: CallAdapter) => Promise<void>) | undefined) => CallAdapter | undefined;
10625
+ export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs | AzureCommunicationOutboundCallAdapterArgs>, afterCreate?: ((adapter: CallAdapter) => Promise<CallAdapter>) | undefined, beforeDispose?: ((adapter: CallAdapter) => Promise<void>) | undefined) => CallAdapter | undefined;
10509
10626
 
10510
10627
  /**
10511
10628
  * A custom React hook to simplify the creation of {@link CallWithChatAdapter}.