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

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 (120) hide show
  1. package/dist/communication-react.d.ts +114 -56
  2. package/dist/dist-cjs/communication-react/index.js +772 -645
  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 +3 -0
  7. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  8. package/dist/dist-esm/communication-react/src/index.d.ts +2 -2
  9. package/dist/dist-esm/communication-react/src/index.js +2 -2
  10. package/dist/dist-esm/communication-react/src/index.js.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js +1 -1
  12. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponent.js.map +1 -1
  13. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js +3 -3
  14. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentAsMessageBubble.js.map +1 -1
  15. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageComponentWrapper.js.map +1 -1
  16. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js +3 -3
  17. package/dist/dist-esm/react-components/src/components/ChatMessage/ChatMessageContent.js.map +1 -1
  18. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js +3 -3
  19. package/dist/dist-esm/react-components/src/components/ChatMessage/FluentChatMessageComponentWrapper.js.map +1 -1
  20. package/dist/dist-esm/react-components/src/components/ImageOverlay.d.ts +62 -0
  21. package/dist/dist-esm/react-components/src/components/ImageOverlay.js +52 -0
  22. package/dist/dist-esm/react-components/src/components/ImageOverlay.js.map +1 -0
  23. package/dist/dist-esm/react-components/src/components/MessageThread.js +2 -2
  24. package/dist/dist-esm/react-components/src/components/MessageThread.js.map +1 -1
  25. package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
  26. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js +4 -4
  27. package/dist/dist-esm/react-components/src/components/Survey/StarSurvey/StarSurvey.styles.js.map +1 -1
  28. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js +3 -1
  29. package/dist/dist-esm/react-components/src/components/Survey/TagsSurvey/TagsSurvey.styles.js.map +1 -1
  30. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  31. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js +56 -56
  32. package/dist/dist-esm/react-components/src/components/assets/RaisedHandIcon.js.map +1 -1
  33. package/dist/dist-esm/react-components/src/components/index.d.ts +3 -3
  34. package/dist/dist-esm/react-components/src/components/index.js +2 -2
  35. package/dist/dist-esm/react-components/src/components/index.js.map +1 -1
  36. package/dist/dist-esm/react-components/src/components/styles/{ImageGallery.style.d.ts → ImageOverlay.style.d.ts} +1 -1
  37. package/dist/dist-esm/react-components/src/components/styles/{ImageGallery.style.js → ImageOverlay.style.js} +7 -7
  38. package/dist/dist-esm/react-components/src/components/styles/{ImageGallery.style.js.map → ImageOverlay.style.js.map} +1 -1
  39. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +3 -3
  40. package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
  41. package/dist/dist-esm/react-components/src/localization/locales/ar-SA/strings.json +1 -1
  42. package/dist/dist-esm/react-components/src/localization/locales/cs-CZ/strings.json +1 -1
  43. package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +1 -1
  44. package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +1 -1
  45. package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +1 -1
  46. package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +1 -1
  47. package/dist/dist-esm/react-components/src/localization/locales/fi-FI/strings.json +1 -1
  48. package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +1 -1
  49. package/dist/dist-esm/react-components/src/localization/locales/he-IL/strings.json +1 -1
  50. package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +1 -1
  51. package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +1 -1
  52. package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +1 -1
  53. package/dist/dist-esm/react-components/src/localization/locales/nb-NO/strings.json +1 -1
  54. package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +1 -1
  55. package/dist/dist-esm/react-components/src/localization/locales/pl-PL/strings.json +1 -1
  56. package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +1 -1
  57. package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +1 -1
  58. package/dist/dist-esm/react-components/src/localization/locales/sv-SE/strings.json +1 -1
  59. package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +1 -1
  60. package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +1 -1
  61. package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +1 -1
  62. package/dist/dist-esm/react-components/src/theming/themes.d.ts +2 -2
  63. package/dist/dist-esm/react-components/src/theming/themes.js +2 -2
  64. package/dist/dist-esm/react-components/src/theming/themes.js.map +1 -1
  65. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +3 -2
  66. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +25 -22
  67. package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +8 -4
  69. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  70. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +60 -8
  71. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +113 -77
  72. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  73. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +13 -7
  74. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  75. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +2 -2
  76. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
  77. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +2 -2
  78. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  79. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.d.ts +0 -35
  80. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js +1 -11
  81. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/NoticePage.js.map +1 -1
  82. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.d.ts +56 -0
  83. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js +29 -0
  84. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/SurveyPage.js.map +1 -0
  85. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.d.ts +14 -0
  86. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js +27 -0
  87. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ThankYouForFeedbackPage.js.map +1 -0
  88. package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/baseSelectors.js.map +1 -1
  89. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +9 -2
  90. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js +9 -0
  91. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +3 -2
  93. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  94. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -2
  95. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +9 -4
  96. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  97. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +6 -3
  98. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  99. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -3
  100. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +9 -5
  101. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  102. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +3 -1
  103. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  104. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js +30 -34
  105. package/dist/dist-esm/react-composites/src/composites/ChatComposite/ChatScreen.js.map +1 -1
  106. package/dist/dist-esm/react-composites/src/composites/common/Survey.d.ts +20 -0
  107. package/dist/dist-esm/react-composites/src/composites/common/Survey.js +136 -0
  108. package/dist/dist-esm/react-composites/src/composites/common/Survey.js.map +1 -0
  109. package/dist/dist-esm/react-composites/src/composites/common/{SurveyPaneContent.d.ts → SurveyContent.d.ts} +2 -2
  110. package/dist/dist-esm/react-composites/src/composites/common/{SurveyPaneContent.js → SurveyContent.js} +4 -4
  111. package/dist/dist-esm/react-composites/src/composites/common/SurveyContent.js.map +1 -0
  112. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +3 -2
  113. package/package.json +1 -1
  114. package/dist/dist-esm/react-components/src/components/ImageGallery.d.ts +0 -71
  115. package/dist/dist-esm/react-components/src/components/ImageGallery.js +0 -53
  116. package/dist/dist-esm/react-components/src/components/ImageGallery.js.map +0 -1
  117. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.d.ts +0 -13
  118. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js +0 -87
  119. package/dist/dist-esm/react-composites/src/composites/common/SurveyPane.js.map +0 -1
  120. 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
  /**
@@ -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
  */
@@ -2878,9 +2910,9 @@ export declare interface CallWithChatAdapterManagement {
2878
2910
  /**
2879
2911
  * Start the call.
2880
2912
  * @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
2881
- * @beta
2913
+ * @public
2882
2914
  */
2883
- startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): Call | undefined;
2915
+ 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
2916
  /**
2885
2917
  * Start sharing the screen during a call.
2886
2918
  *
@@ -3511,9 +3543,10 @@ export declare type CallWithChatCompositeOptions = {
3511
3543
  */
3512
3544
  disableSurvey?: boolean;
3513
3545
  /**
3514
- * Optional callback to add extra logic when survey is dismissed. For self-host only
3546
+ * 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
3547
+ * 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
3548
  */
3516
- onSurveyDismissed?: () => void;
3549
+ onSurveyClosed?: (surveyState: 'sent' | 'skipped' | 'error', surveyError?: string) => void;
3517
3550
  /**
3518
3551
  * Optional callback to handle survey data including free form text response
3519
3552
  * Note that free form text response survey option is only going to be enabled when this callback is provided
@@ -4855,9 +4888,9 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
4855
4888
  /**
4856
4889
  * Start the call.
4857
4890
  * @param participants - An array of {@link @azure/communication-common#CommunicationIdentifier} to be called
4858
- * @beta
4891
+ * @public
4859
4892
  */
4860
- startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
4893
+ startCall(participants: StartCallIdentifier[], options?: StartCallOptions): void;
4861
4894
  }
4862
4895
 
4863
4896
  /**
@@ -4883,6 +4916,11 @@ export declare type CommonCallAdapterOptions = {
4883
4916
  * Sounds to use for calling events
4884
4917
  */
4885
4918
  callingSounds?: CallingSounds;
4919
+ /**
4920
+ * Reaction resource for reaction resources
4921
+ * @beta
4922
+ */
4923
+ reactionResources?: ReactionResources;
4886
4924
  };
4887
4925
 
4888
4926
  /**
@@ -5004,6 +5042,9 @@ export declare interface CommonCallingHandlers {
5004
5042
  onRaiseHand: () => Promise<void>;
5005
5043
  onLowerHand: () => Promise<void>;
5006
5044
  onToggleRaiseHand: () => Promise<void>;
5045
+ /**
5046
+ * @beta
5047
+ */
5007
5048
  onReactionClicked: (reaction: Reaction_2) => Promise<void>;
5008
5049
  onToggleHold: () => Promise<void>;
5009
5050
  onAddParticipant(participant: CommunicationUserIdentifier): Promise<void>;
@@ -5309,8 +5350,8 @@ export declare interface ComponentStrings {
5309
5350
  sendBox: SendBoxStrings;
5310
5351
  /** Strings for MentionPopover */
5311
5352
  mentionPopover: MentionPopoverStrings;
5312
- /** Strings for ImageGallery */
5313
- imageGallery: ImageGalleryStrings;
5353
+ /** Strings for ImageOverlay */
5354
+ imageOverlay: ImageOverlayStrings;
5314
5355
  /** Strings for MessageStatusIndicator */
5315
5356
  messageStatusIndicator: MessageStatusIndicatorStrings;
5316
5357
  /** Strings for ErroBar */
@@ -5727,7 +5768,18 @@ export declare interface ControlBarProps {
5727
5768
  *
5728
5769
  * @public
5729
5770
  */
5730
- export declare const createAzureCommunicationCallAdapter: ({ userId, displayName, credential, locator, alternateCallerId, options }: AzureCommunicationCallAdapterArgs) => Promise<CallAdapter>;
5771
+ export declare function createAzureCommunicationCallAdapter(args: AzureCommunicationCallAdapterArgs): Promise<CallAdapter>;
5772
+
5773
+ /**
5774
+ * Create a {@link CallAdapter} backed by Azure Communication Services.
5775
+ *
5776
+ * This is the default implementation of {@link CallAdapter} provided by this library.
5777
+ *
5778
+ * Note: `displayName` can be a maximum of 256 characters.
5779
+ *
5780
+ * @public
5781
+ */
5782
+ export declare function createAzureCommunicationCallAdapter(args: AzureCommunicationOutboundCallAdapterArgs): Promise<CallAdapter>;
5731
5783
 
5732
5784
  /**
5733
5785
  * Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
@@ -5737,7 +5789,17 @@ export declare const createAzureCommunicationCallAdapter: ({ userId, displayName
5737
5789
  *
5738
5790
  * @public
5739
5791
  */
5740
- export declare const createAzureCommunicationCallAdapterFromClient: (callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?: AzureCommunicationCallAdapterOptions) => Promise<CallAdapter>;
5792
+ export declare function createAzureCommunicationCallAdapterFromClient(callClient: StatefulCallClient, callAgent: CallAgent, targetCallees: StartCallIdentifier[], options?: AzureCommunicationCallAdapterOptions): Promise<CallAdapter>;
5793
+
5794
+ /**
5795
+ * Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
5796
+ *
5797
+ * Useful if you want to keep a reference to {@link StatefulCallClient}.
5798
+ * Consider using {@link createAzureCommunicationCallAdapter} for a simpler API.
5799
+ *
5800
+ * @public
5801
+ */
5802
+ export declare function createAzureCommunicationCallAdapterFromClient(callClient: StatefulCallClient, callAgent: CallAgent, locator: CallAdapterLocator, options?: AzureCommunicationCallAdapterOptions): Promise<CallAdapter>;
5741
5803
 
5742
5804
  /**
5743
5805
  * Create a CallWithChatAdapter backed by Azure Communication services
@@ -6042,7 +6104,7 @@ export declare interface CustomMessage extends MessageCommon {
6042
6104
  *
6043
6105
  * @public
6044
6106
  */
6045
- export declare const darkTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-gallery) */ ChatTheme;
6107
+ export declare const darkTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-overlay) */ ChatTheme;
6046
6108
 
6047
6109
  /**
6048
6110
  * @beta
@@ -7369,70 +7431,60 @@ export declare interface _Identifiers {
7369
7431
  *
7370
7432
  * @beta
7371
7433
  */
7372
- export declare const ImageGallery: (props: ImageGalleryProps) => JSX.Element;
7434
+ export declare const ImageOverlay: (props: ImageOverlayProps) => JSX.Element;
7373
7435
 
7374
7436
  /**
7375
- * Props for {@link ImageGallery}.
7437
+ * Props for {@link ImageOverlay}.
7376
7438
  *
7377
7439
  * @beta
7378
7440
  */
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 {
7441
+ export declare interface ImageOverlayProps {
7398
7442
  /**
7399
7443
  * Boolean that controls whether the modal is displayed.
7400
7444
  */
7401
7445
  isOpen: boolean;
7402
7446
  /**
7403
- * Array of images used to populate the ImageGallery
7447
+ * Image source used to display the image in a large scale.
7448
+ */
7449
+ imageSrc: string;
7450
+ /**
7451
+ * Optional string used as a alt text for the image. @default 'image'
7452
+ */
7453
+ altText?: string;
7454
+ /**
7455
+ * Optional string used as the title of the image and displayed on the top left corner of the ImageOverlay.
7404
7456
  */
7405
- images: Array<ImageGalleryImageProps>;
7457
+ title?: string;
7406
7458
  /**
7407
- * Callback to invoke when the ImageGallery modal is dismissed
7459
+ * Optional JSX element used as a title icon and displayed to the left of the title element.
7460
+ */
7461
+ titleIcon?: JSX.Element;
7462
+ /**
7463
+ * Callback to invoke when the ImageOverlay modal is dismissed
7408
7464
  */
7409
7465
  onDismiss: () => void;
7410
7466
  /**
7411
7467
  * Callback called when the download button is clicked.
7412
7468
  */
7413
- onImageDownloadButtonClicked: (imageUrl: string, downloadFilename: string) => void;
7469
+ onDownloadButtonClicked: (imageSrc: string) => void;
7414
7470
  /**
7415
7471
  * Callback called when there's an error loading the image.
7416
7472
  */
7417
7473
  onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
7418
- /**
7419
- * Indicating which index of the images array to start with.
7420
- */
7421
- startIndex?: number;
7422
7474
  }
7423
7475
 
7424
7476
  /**
7425
- * Strings of {@link ImageGallery} that can be overridden.
7477
+ * Strings of {@link ImageOverlay} that can be overridden.
7426
7478
  *
7427
7479
  * @beta
7428
7480
  */
7429
- export declare interface ImageGalleryStrings {
7481
+ export declare interface ImageOverlayStrings {
7430
7482
  /**
7431
- * Download button label for ImageGallery
7483
+ * Download button label for ImageOverlay
7432
7484
  */
7433
7485
  downloadButtonLabel: string;
7434
7486
  /**
7435
- * Dismiss button aria label for ImageGallery
7487
+ * Dismiss button aria label for ImageOverlay
7436
7488
  */
7437
7489
  dismissButtonAriaLabel: string;
7438
7490
  }
@@ -7623,7 +7675,7 @@ export declare interface JumpToNewMessageButtonProps {
7623
7675
  *
7624
7676
  * @public
7625
7677
  */
7626
- export declare const lightTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-gallery) */ ChatTheme;
7678
+ export declare const lightTheme: PartialTheme & CallingTheme & /* @conditional-compile-remove(image-overlay) */ ChatTheme;
7627
7679
 
7628
7680
  /**
7629
7681
  * Whether the stream is loading or not.
@@ -9756,6 +9808,12 @@ export declare interface SpotlightState {
9756
9808
  spotlightedOrderPosition?: number;
9757
9809
  }
9758
9810
 
9811
+ /**
9812
+ * Identifier types for initiating a call using the CallAdapter
9813
+ * @public
9814
+ */
9815
+ 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;
9816
+
9759
9817
  /**
9760
9818
  * Defines the methods that allow CallClient {@link @azure/communication-calling#CallClient} to be used statefully.
9761
9819
  * The interface provides access to proxied state and also allows registering a handler for state change events. For
@@ -10505,7 +10563,7 @@ export declare type UpdateMessageCallback = (messageId: string, content: string,
10505
10563
  *
10506
10564
  * @public
10507
10565
  */
10508
- export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs>, afterCreate?: ((adapter: CallAdapter) => Promise<CallAdapter>) | undefined, beforeDispose?: ((adapter: CallAdapter) => Promise<void>) | undefined) => CallAdapter | undefined;
10566
+ export declare const useAzureCommunicationCallAdapter: (args: Partial<AzureCommunicationCallAdapterArgs | AzureCommunicationOutboundCallAdapterArgs>, afterCreate?: ((adapter: CallAdapter) => Promise<CallAdapter>) | undefined, beforeDispose?: ((adapter: CallAdapter) => Promise<void>) | undefined) => CallAdapter | undefined;
10509
10567
 
10510
10568
  /**
10511
10569
  * A custom React hook to simplify the creation of {@link CallWithChatAdapter}.