@azure/communication-react 1.5.1-alpha-202303300013 → 1.5.1-alpha-202304010014

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 (111) hide show
  1. package/dist/communication-react.d.ts +155 -169
  2. package/dist/dist-cjs/communication-react/index.js +4624 -4288
  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 +2 -2
  7. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +6 -4
  8. package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
  9. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +5 -7
  10. package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
  11. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.d.ts +0 -2
  12. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +3 -5
  13. package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
  14. package/dist/dist-esm/react-components/src/components/VideoGallery.js +1 -2
  15. package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
  16. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.d.ts +20 -0
  17. package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
  18. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +9 -3
  19. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +18 -6
  20. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
  21. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +10 -2
  22. package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
  23. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +88 -21
  24. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
  25. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +1 -1
  26. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
  27. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +9 -3
  28. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +3 -1
  29. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -1
  30. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +1 -1
  31. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
  32. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -1
  33. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
  34. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +1 -1
  35. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
  36. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +1 -1
  37. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
  38. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +1 -1
  39. package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
  40. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -4
  41. package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
  42. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +2 -2
  43. package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
  44. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +19 -1
  45. package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
  46. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.d.ts +5 -1
  47. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js +20 -0
  48. package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallConfiguration.styles.js.map +1 -1
  49. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +5 -87
  50. package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
  51. package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
  52. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +15 -75
  53. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +5 -5
  54. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
  55. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -2
  56. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +11 -5
  57. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
  58. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +11 -2
  59. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
  60. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -2
  61. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +11 -5
  62. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
  63. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
  64. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
  65. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
  66. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +6 -2
  67. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
  68. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +1 -1
  69. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +5 -3
  70. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
  71. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +29 -0
  72. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/CallWithChatControlBar.js → common/ControlBar/CommonCallControlBar.js} +28 -28
  73. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -0
  74. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/CustomButton.d.ts +19 -16
  75. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/CustomButton.js +4 -4
  76. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -0
  77. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/ControlBar}/DesktopMoreButton.d.ts +2 -2
  78. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/ControlBar}/DesktopMoreButton.js +3 -3
  79. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -0
  80. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.d.ts +1 -1
  81. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.js +3 -3
  82. package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -0
  83. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.d.ts +2 -2
  84. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.js +4 -5
  85. package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -0
  86. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.d.ts +2 -2
  87. package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.js +5 -5
  88. package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -0
  89. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +2 -0
  90. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +88 -3
  91. package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
  92. package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +6 -8
  93. package/dist/dist-esm/react-composites/src/composites/common/icons.js +7 -1
  94. package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
  95. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.d.ts +7 -0
  96. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js +9 -0
  97. package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -0
  98. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +165 -0
  99. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js +4 -0
  100. package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -0
  101. package/dist/dist-esm/react-composites/src/composites/index.d.ts +3 -0
  102. package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
  103. package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +5 -0
  104. package/package.json +8 -8
  105. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +0 -28
  106. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +0 -1
  107. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +0 -1
  108. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +0 -1
  109. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +0 -1
  110. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +0 -1
  111. package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/MoreDrawer.js.map +0 -1
@@ -295,6 +295,10 @@ export declare type AzureCommunicationCallAdapterOptions = {
295
295
  * {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
296
296
  */
297
297
  roleHint?: Role;
298
+ /**
299
+ * Default set of background images for background image picker.
300
+ */
301
+ videoBackgroundImages?: VideoBackgroundImage[];
298
302
  };
299
303
 
300
304
  /**
@@ -738,19 +742,27 @@ export declare interface CallAdapterCallOperations {
738
742
  *
739
743
  * @beta
740
744
  */
741
- blurVideoBackground(bgBlurConfig?: BackgroundBlurConfig): Promise<void>;
745
+ blurVideoBackground(backgroundBlurConfig?: BackgroundBlurConfig): Promise<void>;
742
746
  /**
743
747
  * Start the video background replacement effect.
744
748
  *
745
749
  * @beta
746
750
  */
747
- replaceVideoBackground(bgReplacementConfig: BackgroundReplacementConfig): Promise<void>;
751
+ replaceVideoBackground(backgroundReplacementConfig: BackgroundReplacementConfig): Promise<void>;
748
752
  /**
749
753
  * Stop the video background effect.
750
754
  *
751
755
  * @beta
752
756
  */
753
757
  stopVideoBackgroundEffect(): Promise<void>;
758
+ /**
759
+ * Override the background picker images for background replacement effect.
760
+ *
761
+ * @param backgroundImages - Array of custom background images.
762
+ *
763
+ * @beta
764
+ */
765
+ updateBackgroundPickerImages(backgroundImages: VideoBackgroundImage[]): void;
754
766
  }
755
767
 
756
768
  /**
@@ -1171,6 +1183,7 @@ export declare const CallComposite: (props: CallCompositeProps) => JSX.Element;
1171
1183
  * @public
1172
1184
  */
1173
1185
  export declare type CallCompositeIcons = {
1186
+ ControlBarPeopleButton?: JSX.Element;
1174
1187
  ControlButtonCameraOff?: JSX.Element;
1175
1188
  ControlButtonCameraOn?: JSX.Element;
1176
1189
  ControlButtonEndCall?: JSX.Element;
@@ -1219,6 +1232,8 @@ export declare type CallCompositeIcons = {
1219
1232
  PeoplePaneOpenDialpad?: JSX.Element;
1220
1233
  DialpadStartCall?: JSX.Element;
1221
1234
  NoticePageInvalidRoom?: JSX.Element;
1235
+ BlurVideoBackground?: JSX.Element;
1236
+ RemoveVideoBackgroundEffect?: JSX.Element;
1222
1237
  };
1223
1238
 
1224
1239
  /**
@@ -1618,6 +1633,26 @@ export declare interface CallCompositeStrings {
1618
1633
  * More details text of the page shown to the user when the user attempts to join a room that cannot be found.
1619
1634
  */
1620
1635
  roomNotFoundDetails?: string;
1636
+ /**
1637
+ * Label for the button to open effects and title of the effects
1638
+ */
1639
+ effects?: string;
1640
+ /**
1641
+ * Label for the blur video background effect item
1642
+ */
1643
+ blurBackgroundEffectButtonLabel?: string;
1644
+ /**
1645
+ * Tooltip text for the blur video background effect item
1646
+ */
1647
+ blurBackgroundTooltip?: string;
1648
+ /**
1649
+ * Label for the remove video background effect item
1650
+ */
1651
+ removeBackgroundEffectButtonLabel?: string;
1652
+ /**
1653
+ * Tooltip text for the blur video background effect item
1654
+ */
1655
+ removeBackgroundTooltip?: string;
1621
1656
  /**
1622
1657
  * Title text of the page shown to the user when the user attempts to join a room to which they are not invited.
1623
1658
  */
@@ -1696,71 +1731,15 @@ export declare type CallControlDisplayType = 'default' | 'compact';
1696
1731
  *
1697
1732
  * @public
1698
1733
  */
1699
- export declare type CallControlOptions = {
1700
- /**
1701
- * {@link CallControlDisplayType} to change how the call controls are displayed.
1702
- * `'compact'` display type will decreases the size of buttons and hide the labels.
1703
- *
1704
- * @remarks
1705
- * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
1706
- *
1707
- * @defaultValue 'default'
1708
- */
1709
- displayType?: CallControlDisplayType;
1710
- /**
1711
- * Show or Hide Camera Button during a call
1712
- * @defaultValue true
1713
- */
1714
- cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
1715
- disabled: boolean;
1716
- };
1717
- /**
1718
- * Show or Hide EndCall button during a call.
1719
- * @defaultValue true
1720
- */
1721
- endCallButton?: boolean;
1722
- /**
1723
- * Show or Hide Microphone button during a call.
1724
- * @defaultValue true
1725
- */
1726
- microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
1727
- disabled: boolean;
1728
- };
1734
+ export declare type CallControlOptions = CommonCallControlOptions & {
1729
1735
  /**
1730
- * Show or Hide Devices button during a call.
1731
- * @defaultValue true
1732
- */
1733
- devicesButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
1734
- disabled: boolean;
1735
- };
1736
- /**
1737
- * Show, Hide or Disable participants button during a call.
1736
+ * Show, Hide or Disable participants button during a call. This is the option only work for legacyControl bar.
1738
1737
  * @defaultValue true
1739
1738
  */
1740
1739
  participantsButton?: boolean | {
1741
1740
  disabled: boolean;
1742
1741
  };
1743
- /**
1744
- * Show, Hide or Disable the screen share button during a call.
1745
- * @defaultValue true
1746
- */
1747
- screenShareButton?: boolean | {
1748
- disabled: boolean;
1749
- };
1750
- /**
1751
- * Show, Hide or disable the more button during a call.
1752
- * @defaultValue true
1753
- */
1754
- moreButton?: boolean;
1755
- /**
1756
- * Inject custom buttons in the call controls.
1757
- *
1758
- * @beta
1759
- */
1760
- onFetchCustomButtonProps?: CustomCallControlButtonCallback[];
1761
- holdButton?: boolean | {
1762
- disabled: boolean;
1763
- };
1742
+ legacyControlBarExperience?: boolean;
1764
1743
  };
1765
1744
 
1766
1745
  /**
@@ -2324,19 +2303,27 @@ export declare interface CallWithChatAdapterManagement {
2324
2303
  *
2325
2304
  * @beta
2326
2305
  */
2327
- blurVideoBackground(bgBlurConfig?: BackgroundBlurConfig): Promise<void>;
2306
+ blurVideoBackground(backgroundBlurConfig?: BackgroundBlurConfig): Promise<void>;
2328
2307
  /**
2329
2308
  * Start the video background replacement effect.
2330
2309
  *
2331
2310
  * @beta
2332
2311
  */
2333
- replaceVideoBackground(bgReplacementConfig: BackgroundReplacementConfig): Promise<void>;
2312
+ replaceVideoBackground(backgroundReplacementConfig: BackgroundReplacementConfig): Promise<void>;
2334
2313
  /**
2335
2314
  * Stop the video background effect.
2336
2315
  *
2337
2316
  * @beta
2338
2317
  */
2339
2318
  stopVideoBackgroundEffect(): Promise<void>;
2319
+ /**
2320
+ * Override the background picker images for background replacement effect.
2321
+ *
2322
+ * @param backgroundImages - Array of custom background images.
2323
+ *
2324
+ * @beta
2325
+ */
2326
+ updateBackgroundPickerImages(backgroundImages: VideoBackgroundImage[]): void;
2340
2327
  }
2341
2328
 
2342
2329
  /**
@@ -2451,6 +2438,8 @@ export declare interface CallWithChatClientState {
2451
2438
  alternateCallerId?: string | undefined;
2452
2439
  /** Environment information for system adapter is made on */
2453
2440
  environmentInfo?: EnvironmentInfo;
2441
+ /** Default set of background images for background replacement effect */
2442
+ videoBackgroundImages?: VideoBackgroundImage[];
2454
2443
  }
2455
2444
 
2456
2445
  /**
@@ -2778,47 +2767,11 @@ export declare interface CallWithChatCompositeStrings {
2778
2767
  }
2779
2768
 
2780
2769
  /**
2781
- * {@link CallWithChatComposite} Call controls to show or hide buttons on the calling control bar.
2770
+ * Customization options for the control bar in calling with chat experience.
2782
2771
  *
2783
2772
  * @public
2784
2773
  */
2785
- export declare interface CallWithChatControlOptions {
2786
- /**
2787
- * {@link CallControlDisplayType} to change how the call controls are displayed.
2788
- * `'compact'` display type will decreases the size of buttons and hide the labels.
2789
- *
2790
- * @remarks
2791
- * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
2792
- *
2793
- * @defaultValue 'default'
2794
- */
2795
- displayType?: CallControlDisplayType;
2796
- /**
2797
- * Show or Hide Microphone button during a call.
2798
- * @defaultValue true
2799
- */
2800
- microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2801
- disabled: boolean;
2802
- };
2803
- /**
2804
- * Show or Hide Camera Button during a call
2805
- * @defaultValue true
2806
- */
2807
- cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2808
- disabled: boolean;
2809
- };
2810
- /**
2811
- * Show, Hide or Disable the screen share button during a call.
2812
- * @defaultValue true
2813
- */
2814
- screenShareButton?: boolean | {
2815
- disabled: boolean;
2816
- };
2817
- /**
2818
- * Show or Hide EndCall button during a call.
2819
- * @defaultValue true
2820
- */
2821
- endCallButton?: boolean;
2774
+ export declare interface CallWithChatControlOptions extends CommonCallControlOptions {
2822
2775
  /**
2823
2776
  * Show or hide the chat button in the call-with-chat composite control bar.
2824
2777
  * @defaultValue true
@@ -2826,29 +2779,6 @@ export declare interface CallWithChatControlOptions {
2826
2779
  chatButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2827
2780
  disabled: boolean;
2828
2781
  };
2829
- /**
2830
- * Show or hide the people button in the call-with-chat composite control bar.
2831
- * @defaultValue true
2832
- */
2833
- peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
2834
- disabled: boolean;
2835
- };
2836
- /**
2837
- * Inject custom buttons in the call controls.
2838
- *
2839
- * @beta
2840
- */
2841
- onFetchCustomButtonProps?: CustomCallWithChatControlButtonCallback[];
2842
- /**
2843
- * Show or hide the more button in the call-with-chat control bar.
2844
- */
2845
- moreButton?: boolean;
2846
- /**
2847
- * Show or hide the hold button in the bottom sheet drawer
2848
- */
2849
- holdButton?: boolean | {
2850
- disabled: boolean;
2851
- };
2852
2782
  }
2853
2783
 
2854
2784
  /**
@@ -3653,6 +3583,85 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
3653
3583
  startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
3654
3584
  }
3655
3585
 
3586
+ /**
3587
+ * Customization options for the control bar in calling experience.
3588
+ *
3589
+ * @public
3590
+ */
3591
+ export declare type CommonCallControlOptions = {
3592
+ /**
3593
+ * {@link CallControlDisplayType} to change how the call controls are displayed.
3594
+ * `'compact'` display type will decreases the size of buttons and hide the labels.
3595
+ *
3596
+ * @remarks
3597
+ * If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
3598
+ *
3599
+ * @defaultValue 'default'
3600
+ */
3601
+ displayType?: CallControlDisplayType;
3602
+ /**
3603
+ * Show or Hide Camera Button during a call
3604
+ * @defaultValue true
3605
+ */
3606
+ cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3607
+ disabled: boolean;
3608
+ };
3609
+ /**
3610
+ * Show or Hide EndCall button during a call.
3611
+ * @defaultValue true
3612
+ */
3613
+ endCallButton?: boolean;
3614
+ /**
3615
+ * Show or Hide Microphone button during a call.
3616
+ * @defaultValue true
3617
+ */
3618
+ microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3619
+ disabled: boolean;
3620
+ };
3621
+ /**
3622
+ * Show or Hide Devices button during a call.
3623
+ * @defaultValue true
3624
+ */
3625
+ devicesButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3626
+ disabled: boolean;
3627
+ };
3628
+ /**
3629
+ * Show, Hide or Disable participants button during a call.
3630
+ * @defaultValue true
3631
+ */
3632
+ participantsButton?: boolean | {
3633
+ disabled: boolean;
3634
+ };
3635
+ /**
3636
+ * Show, Hide or Disable the screen share button during a call.
3637
+ * @defaultValue true
3638
+ */
3639
+ screenShareButton?: boolean | {
3640
+ disabled: boolean;
3641
+ };
3642
+ /**
3643
+ * Show, Hide or disable the more button during a call.
3644
+ * @defaultValue true
3645
+ */
3646
+ moreButton?: boolean;
3647
+ /**
3648
+ * Inject custom buttons in the call controls.
3649
+ *
3650
+ * @beta
3651
+ */
3652
+ onFetchCustomButtonProps?: CustomCallControlButtonCallback[];
3653
+ holdButton?: boolean | {
3654
+ disabled: boolean;
3655
+ };
3656
+ /**
3657
+ * Show or hide the people button in the composite control bar.
3658
+ * @defaultValue true
3659
+ */
3660
+ peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
3661
+ disabled: boolean;
3662
+ };
3663
+ };
3664
+
3656
3665
  /**
3657
3666
  * Object containing all the handlers required for calling components.
3658
3667
  *
@@ -3685,8 +3694,8 @@ export declare interface CommonCallingHandlers {
3685
3694
  askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
3686
3695
  onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
3687
3696
  onRemoveVideoBackgroundEffects: () => Promise<void>;
3688
- onBlurVideoBackground: (bgBlurConfig?: BackgroundBlurConfig) => Promise<void>;
3689
- onReplaceVideoBackground: (bgReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
3697
+ onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
3698
+ onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
3690
3699
  }
3691
3700
 
3692
3701
  /**
@@ -4255,7 +4264,7 @@ export declare interface ControlBarProps {
4255
4264
  *
4256
4265
  * @public
4257
4266
  */
4258
- export declare const createAzureCommunicationCallAdapter: ({ userId, displayName, credential, locator, alternateCallerId }: AzureCommunicationCallAdapterArgs) => Promise<CallAdapter>;
4267
+ export declare const createAzureCommunicationCallAdapter: ({ userId, displayName, credential, locator, alternateCallerId, options }: AzureCommunicationCallAdapterArgs) => Promise<CallAdapter>;
4259
4268
 
4260
4269
  /**
4261
4270
  * Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
@@ -4436,15 +4445,16 @@ export declare type CustomAvatarOptions = {
4436
4445
  };
4437
4446
 
4438
4447
  /**
4439
- * A callback that returns the props to render a custom {@link ControlBarButton}.
4448
+ * A callback that returns the props to render a custom {@link ControlBarButton} and {@link DrawerMenuItem}.
4440
4449
  *
4441
4450
  * The response indicates where the custom button should be placed.
4442
4451
  *
4443
4452
  * Performance tip: This callback is only called when either the callback or its arguments change.
4444
- *
4445
4453
  * @beta
4446
4454
  */
4447
- export declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallControlButtonProps;
4455
+ declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallWithChatControlButtonProps;
4456
+ export { CustomCallControlButtonCallback }
4457
+ export { CustomCallControlButtonCallback as CustomCallWithChatControlButtonCallback }
4448
4458
 
4449
4459
  /**
4450
4460
  * Arguments for {@link CustomCallControlButtonCallback}.
@@ -4461,17 +4471,23 @@ export declare interface CustomCallControlButtonCallbackArgs {
4461
4471
  }
4462
4472
 
4463
4473
  /**
4464
- * Placement for a custom button injected in the {@link CallControls}.
4474
+ * Placement for a custom button injected in the {@link CommonCallControlBar}.
4465
4475
  *
4466
4476
  * 'primary': Place the button(s) on the right end of the center control bar but before the EndCallButton (left end in rtl mode).
4477
+ * 'overflow': Place the buttons(s) on the end of the overflow Menu.
4478
+ * 'secondary': Place the button(s) on the left end of the side control bar (right in rtl mode).
4467
4479
  *
4468
4480
  * Multiple buttons assigned the same placement are appended in order.
4469
- * E.g., if two buttons are placed in 'primary', they'll both appear on the right end (left end in rtl mode)
4470
- * before the EndCallButton in the order provided.
4481
+ * E.g., if two buttons are placed in 'secondary', they'll both appear on the left end (right end in rtl mode)
4482
+ * in the order provided.
4483
+ *
4484
+ * Only 'primary' placement works when legacy call control is enabled in call composite
4471
4485
  *
4472
4486
  * @beta
4473
4487
  */
4474
- export declare type CustomCallControlButtonPlacement = 'primary';
4488
+ declare type CustomCallControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
4489
+ export { CustomCallControlButtonPlacement }
4490
+ export { CustomCallControlButtonPlacement as CustomCallWithChatControlButtonPlacement }
4475
4491
 
4476
4492
  /**
4477
4493
  * Response from {@link CustomCallControlButtonCallback}.
@@ -4494,32 +4510,7 @@ export declare interface CustomCallControlButtonProps extends CustomControlButto
4494
4510
  }
4495
4511
 
4496
4512
  /**
4497
- * A callback that returns the props to render a custom {@link ControlBarButton} and {@link DrawerMenuItem}.
4498
- *
4499
- * The response indicates where the custom button should be placed.
4500
- *
4501
- * Performance tip: This callback is only called when either the callback or its arguments change.
4502
- * @beta
4503
- */
4504
- export declare type CustomCallWithChatControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallWithChatControlButtonProps;
4505
-
4506
- /**
4507
- * Placement for a custom button injected in the {@link CallWithChatControlBar}.
4508
- *
4509
- * 'primary': Place the button(s) on the right end of the center control bar but before the EndCallButton (left end in rtl mode).
4510
- * 'overflow': Place the buttons(s) on the end of the overflow Menu.
4511
- * 'secondary': Place the button(s) on the left end of the side control bar (right in rtl mode).
4512
- *
4513
- * Multiple buttons assigned the same placement are appended in order.
4514
- * E.g., if two buttons are placed in 'secondary', they'll both appear on the left end (right end in rtl mode)
4515
- * in the order provided.
4516
- *
4517
- * @beta
4518
- */
4519
- export declare type CustomCallWithChatControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
4520
-
4521
- /**
4522
- * Response from {@link CustomCallWithChatControlButtonCallback}.
4513
+ * Response from {@link CustomCallControlButtonCallback}.
4523
4514
  *
4524
4515
  * Includes the icon and placement prop necessary to indicate where to place the
4525
4516
  * {@link ControlBarButton} and a {@link DrawerMenuItem}
@@ -4530,7 +4521,7 @@ export declare interface CustomCallWithChatControlButtonProps extends CustomCont
4530
4521
  /**
4531
4522
  * Where to place the custom button relative to other buttons.
4532
4523
  */
4533
- placement: CustomCallWithChatControlButtonPlacement;
4524
+ placement: CustomCallControlButtonPlacement;
4534
4525
  /**
4535
4526
  * Icon to render. Icon is a non-default icon name that needs to be registered as a
4536
4527
  * custom icon using registerIcons through fluentui. Examples include icons from the fluentui library
@@ -4717,6 +4708,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4717
4708
  SendBoxSend: JSX.Element;
4718
4709
  SendBoxSendHovered: JSX.Element;
4719
4710
  SendBoxAttachFile?: JSX.Element | undefined;
4711
+ ControlBarPeopleButton?: JSX.Element | undefined;
4720
4712
  ControlButtonCameraOff: JSX.Element;
4721
4713
  ControlButtonCameraOn: JSX.Element;
4722
4714
  ControlButtonEndCall: JSX.Element;
@@ -4763,10 +4755,11 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4763
4755
  PeoplePaneOpenDialpad?: JSX.Element | undefined;
4764
4756
  DialpadStartCall?: JSX.Element | undefined;
4765
4757
  NoticePageInvalidRoom?: JSX.Element | undefined;
4758
+ BlurVideoBackground?: JSX.Element | undefined;
4759
+ RemoveVideoBackgroundEffect?: JSX.Element | undefined;
4766
4760
  ChevronLeft?: JSX.Element | undefined;
4767
4761
  ControlBarChatButtonActive?: JSX.Element | undefined;
4768
4762
  ControlBarChatButtonInactive?: JSX.Element | undefined;
4769
- ControlBarPeopleButton?: JSX.Element | undefined;
4770
4763
  Link?: JSX.Element | undefined;
4771
4764
  MoreDrawerMicrophones?: JSX.Element | undefined;
4772
4765
  MoreDrawerPeople?: JSX.Element | undefined;
@@ -4793,13 +4786,6 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
4793
4786
  UnsupportedEnvironmentWarning: JSX.Element;
4794
4787
  BrowserPermissionDeniedError: JSX.Element;
4795
4788
  VideoTilePinned: JSX.Element;
4796
- /**
4797
- * Icons that can be overridden in one of the composites exported by this library.
4798
- *
4799
- * See {@link ChatCompositeIcons}, {@link CallCompositeIcons} and {@link CallWithChatCompositeIcons} for more targeted types.
4800
- *
4801
- * @public
4802
- */
4803
4789
  VideoTileMoreOptions: JSX.Element;
4804
4790
  VideoTileScaleFit: JSX.Element;
4805
4791
  VideoTileScaleFill: JSX.Element;