@azure/communication-react 1.5.1-alpha-202303310013 → 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.
- package/dist/communication-react.d.ts +131 -162
- package/dist/dist-cjs/communication-react/index.js +4200 -4086
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +2 -2
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +6 -4
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +5 -7
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.d.ts +0 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js +3 -5
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/VideoGalleryResponsiveVerticalGallery.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery.js +1 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +9 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +18 -6
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +10 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +79 -14
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.d.ts +9 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Custom.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Devices.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/EndCall.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Microphone.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Participants.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/ScreenShare.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/hooks/useHandlers.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.d.ts +5 -87
- package/dist/dist-esm/react-composites/src/composites/CallComposite/types/CallControlOptions.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +15 -75
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +11 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +11 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.d.ts +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js +11 -5
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatBackedCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +4 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +29 -0
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/CallWithChatControlBar.js → common/ControlBar/CommonCallControlBar.js} +28 -28
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/CustomButton.d.ts +19 -16
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/CustomButton.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CustomButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/ControlBar}/DesktopMoreButton.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/ControlBar}/DesktopMoreButton.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/DesktopMoreButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/ControlBar}/PeopleButton.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/PeopleButton.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite/components → common/Drawer}/MoreDrawer.js +4 -5
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.d.ts +2 -2
- package/dist/dist-esm/react-composites/src/composites/{CallWithChatComposite → common/Drawer}/PreparedMoreDrawer.js +5 -5
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +48 -21
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/common/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js +9 -0
- package/dist/dist-esm/react-composites/src/composites/common/styles/Composite.styles.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.d.ts +165 -0
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/index.d.ts +3 -0
- package/dist/dist-esm/react-composites/src/composites/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +0 -28
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CustomButton.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PeopleButton.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/PreparedMoreDrawer.js.map +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/components/DesktopMoreButton.js.map +0 -1
- 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(
|
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(
|
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;
|
@@ -1718,71 +1731,15 @@ export declare type CallControlDisplayType = 'default' | 'compact';
|
|
1718
1731
|
*
|
1719
1732
|
* @public
|
1720
1733
|
*/
|
1721
|
-
export declare type CallControlOptions = {
|
1722
|
-
/**
|
1723
|
-
* {@link CallControlDisplayType} to change how the call controls are displayed.
|
1724
|
-
* `'compact'` display type will decreases the size of buttons and hide the labels.
|
1725
|
-
*
|
1726
|
-
* @remarks
|
1727
|
-
* If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
|
1728
|
-
*
|
1729
|
-
* @defaultValue 'default'
|
1730
|
-
*/
|
1731
|
-
displayType?: CallControlDisplayType;
|
1732
|
-
/**
|
1733
|
-
* Show or Hide Camera Button during a call
|
1734
|
-
* @defaultValue true
|
1735
|
-
*/
|
1736
|
-
cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
1737
|
-
disabled: boolean;
|
1738
|
-
};
|
1739
|
-
/**
|
1740
|
-
* Show or Hide EndCall button during a call.
|
1741
|
-
* @defaultValue true
|
1742
|
-
*/
|
1743
|
-
endCallButton?: boolean;
|
1744
|
-
/**
|
1745
|
-
* Show or Hide Microphone button during a call.
|
1746
|
-
* @defaultValue true
|
1747
|
-
*/
|
1748
|
-
microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
1749
|
-
disabled: boolean;
|
1750
|
-
};
|
1751
|
-
/**
|
1752
|
-
* Show or Hide Devices button during a call.
|
1753
|
-
* @defaultValue true
|
1754
|
-
*/
|
1755
|
-
devicesButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
1756
|
-
disabled: boolean;
|
1757
|
-
};
|
1734
|
+
export declare type CallControlOptions = CommonCallControlOptions & {
|
1758
1735
|
/**
|
1759
|
-
* 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.
|
1760
1737
|
* @defaultValue true
|
1761
1738
|
*/
|
1762
1739
|
participantsButton?: boolean | {
|
1763
1740
|
disabled: boolean;
|
1764
1741
|
};
|
1765
|
-
|
1766
|
-
* Show, Hide or Disable the screen share button during a call.
|
1767
|
-
* @defaultValue true
|
1768
|
-
*/
|
1769
|
-
screenShareButton?: boolean | {
|
1770
|
-
disabled: boolean;
|
1771
|
-
};
|
1772
|
-
/**
|
1773
|
-
* Show, Hide or disable the more button during a call.
|
1774
|
-
* @defaultValue true
|
1775
|
-
*/
|
1776
|
-
moreButton?: boolean;
|
1777
|
-
/**
|
1778
|
-
* Inject custom buttons in the call controls.
|
1779
|
-
*
|
1780
|
-
* @beta
|
1781
|
-
*/
|
1782
|
-
onFetchCustomButtonProps?: CustomCallControlButtonCallback[];
|
1783
|
-
holdButton?: boolean | {
|
1784
|
-
disabled: boolean;
|
1785
|
-
};
|
1742
|
+
legacyControlBarExperience?: boolean;
|
1786
1743
|
};
|
1787
1744
|
|
1788
1745
|
/**
|
@@ -2346,19 +2303,27 @@ export declare interface CallWithChatAdapterManagement {
|
|
2346
2303
|
*
|
2347
2304
|
* @beta
|
2348
2305
|
*/
|
2349
|
-
blurVideoBackground(
|
2306
|
+
blurVideoBackground(backgroundBlurConfig?: BackgroundBlurConfig): Promise<void>;
|
2350
2307
|
/**
|
2351
2308
|
* Start the video background replacement effect.
|
2352
2309
|
*
|
2353
2310
|
* @beta
|
2354
2311
|
*/
|
2355
|
-
replaceVideoBackground(
|
2312
|
+
replaceVideoBackground(backgroundReplacementConfig: BackgroundReplacementConfig): Promise<void>;
|
2356
2313
|
/**
|
2357
2314
|
* Stop the video background effect.
|
2358
2315
|
*
|
2359
2316
|
* @beta
|
2360
2317
|
*/
|
2361
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;
|
2362
2327
|
}
|
2363
2328
|
|
2364
2329
|
/**
|
@@ -2473,6 +2438,8 @@ export declare interface CallWithChatClientState {
|
|
2473
2438
|
alternateCallerId?: string | undefined;
|
2474
2439
|
/** Environment information for system adapter is made on */
|
2475
2440
|
environmentInfo?: EnvironmentInfo;
|
2441
|
+
/** Default set of background images for background replacement effect */
|
2442
|
+
videoBackgroundImages?: VideoBackgroundImage[];
|
2476
2443
|
}
|
2477
2444
|
|
2478
2445
|
/**
|
@@ -2800,47 +2767,11 @@ export declare interface CallWithChatCompositeStrings {
|
|
2800
2767
|
}
|
2801
2768
|
|
2802
2769
|
/**
|
2803
|
-
*
|
2770
|
+
* Customization options for the control bar in calling with chat experience.
|
2804
2771
|
*
|
2805
2772
|
* @public
|
2806
2773
|
*/
|
2807
|
-
export declare interface CallWithChatControlOptions {
|
2808
|
-
/**
|
2809
|
-
* {@link CallControlDisplayType} to change how the call controls are displayed.
|
2810
|
-
* `'compact'` display type will decreases the size of buttons and hide the labels.
|
2811
|
-
*
|
2812
|
-
* @remarks
|
2813
|
-
* If the composite `formFactor` is set to `'mobile'`, the control bar will always use compact view.
|
2814
|
-
*
|
2815
|
-
* @defaultValue 'default'
|
2816
|
-
*/
|
2817
|
-
displayType?: CallControlDisplayType;
|
2818
|
-
/**
|
2819
|
-
* Show or Hide Microphone button during a call.
|
2820
|
-
* @defaultValue true
|
2821
|
-
*/
|
2822
|
-
microphoneButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
2823
|
-
disabled: boolean;
|
2824
|
-
};
|
2825
|
-
/**
|
2826
|
-
* Show or Hide Camera Button during a call
|
2827
|
-
* @defaultValue true
|
2828
|
-
*/
|
2829
|
-
cameraButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
2830
|
-
disabled: boolean;
|
2831
|
-
};
|
2832
|
-
/**
|
2833
|
-
* Show, Hide or Disable the screen share button during a call.
|
2834
|
-
* @defaultValue true
|
2835
|
-
*/
|
2836
|
-
screenShareButton?: boolean | {
|
2837
|
-
disabled: boolean;
|
2838
|
-
};
|
2839
|
-
/**
|
2840
|
-
* Show or Hide EndCall button during a call.
|
2841
|
-
* @defaultValue true
|
2842
|
-
*/
|
2843
|
-
endCallButton?: boolean;
|
2774
|
+
export declare interface CallWithChatControlOptions extends CommonCallControlOptions {
|
2844
2775
|
/**
|
2845
2776
|
* Show or hide the chat button in the call-with-chat composite control bar.
|
2846
2777
|
* @defaultValue true
|
@@ -2848,29 +2779,6 @@ export declare interface CallWithChatControlOptions {
|
|
2848
2779
|
chatButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
2849
2780
|
disabled: boolean;
|
2850
2781
|
};
|
2851
|
-
/**
|
2852
|
-
* Show or hide the people button in the call-with-chat composite control bar.
|
2853
|
-
* @defaultValue true
|
2854
|
-
*/
|
2855
|
-
peopleButton?: boolean | /* @conditional-compile-remove(PSTN-calls) */ {
|
2856
|
-
disabled: boolean;
|
2857
|
-
};
|
2858
|
-
/**
|
2859
|
-
* Inject custom buttons in the call controls.
|
2860
|
-
*
|
2861
|
-
* @beta
|
2862
|
-
*/
|
2863
|
-
onFetchCustomButtonProps?: CustomCallWithChatControlButtonCallback[];
|
2864
|
-
/**
|
2865
|
-
* Show or hide the more button in the call-with-chat control bar.
|
2866
|
-
*/
|
2867
|
-
moreButton?: boolean;
|
2868
|
-
/**
|
2869
|
-
* Show or hide the hold button in the bottom sheet drawer
|
2870
|
-
*/
|
2871
|
-
holdButton?: boolean | {
|
2872
|
-
disabled: boolean;
|
2873
|
-
};
|
2874
2782
|
}
|
2875
2783
|
|
2876
2784
|
/**
|
@@ -3675,6 +3583,85 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
|
|
3675
3583
|
startCall(participants: CommunicationIdentifier[], options?: StartCallOptions): void;
|
3676
3584
|
}
|
3677
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
|
+
|
3678
3665
|
/**
|
3679
3666
|
* Object containing all the handlers required for calling components.
|
3680
3667
|
*
|
@@ -3707,8 +3694,8 @@ export declare interface CommonCallingHandlers {
|
|
3707
3694
|
askDevicePermission: (constrain: PermissionConstraints) => Promise<void>;
|
3708
3695
|
onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void;
|
3709
3696
|
onRemoveVideoBackgroundEffects: () => Promise<void>;
|
3710
|
-
onBlurVideoBackground: (
|
3711
|
-
onReplaceVideoBackground: (
|
3697
|
+
onBlurVideoBackground: (backgroundBlurConfig?: BackgroundBlurConfig) => Promise<void>;
|
3698
|
+
onReplaceVideoBackground: (backgroundReplacementConfig: BackgroundReplacementConfig) => Promise<void>;
|
3712
3699
|
}
|
3713
3700
|
|
3714
3701
|
/**
|
@@ -4277,7 +4264,7 @@ export declare interface ControlBarProps {
|
|
4277
4264
|
*
|
4278
4265
|
* @public
|
4279
4266
|
*/
|
4280
|
-
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>;
|
4281
4268
|
|
4282
4269
|
/**
|
4283
4270
|
* Create a {@link CallAdapter} using the provided {@link StatefulCallClient}.
|
@@ -4458,15 +4445,16 @@ export declare type CustomAvatarOptions = {
|
|
4458
4445
|
};
|
4459
4446
|
|
4460
4447
|
/**
|
4461
|
-
* 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}.
|
4462
4449
|
*
|
4463
4450
|
* The response indicates where the custom button should be placed.
|
4464
4451
|
*
|
4465
4452
|
* Performance tip: This callback is only called when either the callback or its arguments change.
|
4466
|
-
*
|
4467
4453
|
* @beta
|
4468
4454
|
*/
|
4469
|
-
|
4455
|
+
declare type CustomCallControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallWithChatControlButtonProps;
|
4456
|
+
export { CustomCallControlButtonCallback }
|
4457
|
+
export { CustomCallControlButtonCallback as CustomCallWithChatControlButtonCallback }
|
4470
4458
|
|
4471
4459
|
/**
|
4472
4460
|
* Arguments for {@link CustomCallControlButtonCallback}.
|
@@ -4483,17 +4471,23 @@ export declare interface CustomCallControlButtonCallbackArgs {
|
|
4483
4471
|
}
|
4484
4472
|
|
4485
4473
|
/**
|
4486
|
-
* Placement for a custom button injected in the {@link
|
4474
|
+
* Placement for a custom button injected in the {@link CommonCallControlBar}.
|
4487
4475
|
*
|
4488
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).
|
4489
4479
|
*
|
4490
4480
|
* Multiple buttons assigned the same placement are appended in order.
|
4491
|
-
* E.g., if two buttons are placed in '
|
4492
|
-
*
|
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
|
4493
4485
|
*
|
4494
4486
|
* @beta
|
4495
4487
|
*/
|
4496
|
-
|
4488
|
+
declare type CustomCallControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
|
4489
|
+
export { CustomCallControlButtonPlacement }
|
4490
|
+
export { CustomCallControlButtonPlacement as CustomCallWithChatControlButtonPlacement }
|
4497
4491
|
|
4498
4492
|
/**
|
4499
4493
|
* Response from {@link CustomCallControlButtonCallback}.
|
@@ -4516,32 +4510,7 @@ export declare interface CustomCallControlButtonProps extends CustomControlButto
|
|
4516
4510
|
}
|
4517
4511
|
|
4518
4512
|
/**
|
4519
|
-
*
|
4520
|
-
*
|
4521
|
-
* The response indicates where the custom button should be placed.
|
4522
|
-
*
|
4523
|
-
* Performance tip: This callback is only called when either the callback or its arguments change.
|
4524
|
-
* @beta
|
4525
|
-
*/
|
4526
|
-
export declare type CustomCallWithChatControlButtonCallback = (args: CustomCallControlButtonCallbackArgs) => CustomCallWithChatControlButtonProps;
|
4527
|
-
|
4528
|
-
/**
|
4529
|
-
* Placement for a custom button injected in the {@link CallWithChatControlBar}.
|
4530
|
-
*
|
4531
|
-
* 'primary': Place the button(s) on the right end of the center control bar but before the EndCallButton (left end in rtl mode).
|
4532
|
-
* 'overflow': Place the buttons(s) on the end of the overflow Menu.
|
4533
|
-
* 'secondary': Place the button(s) on the left end of the side control bar (right in rtl mode).
|
4534
|
-
*
|
4535
|
-
* Multiple buttons assigned the same placement are appended in order.
|
4536
|
-
* E.g., if two buttons are placed in 'secondary', they'll both appear on the left end (right end in rtl mode)
|
4537
|
-
* in the order provided.
|
4538
|
-
*
|
4539
|
-
* @beta
|
4540
|
-
*/
|
4541
|
-
export declare type CustomCallWithChatControlButtonPlacement = 'primary' | 'overflow' | 'secondary';
|
4542
|
-
|
4543
|
-
/**
|
4544
|
-
* Response from {@link CustomCallWithChatControlButtonCallback}.
|
4513
|
+
* Response from {@link CustomCallControlButtonCallback}.
|
4545
4514
|
*
|
4546
4515
|
* Includes the icon and placement prop necessary to indicate where to place the
|
4547
4516
|
* {@link ControlBarButton} and a {@link DrawerMenuItem}
|
@@ -4552,7 +4521,7 @@ export declare interface CustomCallWithChatControlButtonProps extends CustomCont
|
|
4552
4521
|
/**
|
4553
4522
|
* Where to place the custom button relative to other buttons.
|
4554
4523
|
*/
|
4555
|
-
placement:
|
4524
|
+
placement: CustomCallControlButtonPlacement;
|
4556
4525
|
/**
|
4557
4526
|
* Icon to render. Icon is a non-default icon name that needs to be registered as a
|
4558
4527
|
* custom icon using registerIcons through fluentui. Examples include icons from the fluentui library
|
@@ -4739,6 +4708,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4739
4708
|
SendBoxSend: JSX.Element;
|
4740
4709
|
SendBoxSendHovered: JSX.Element;
|
4741
4710
|
SendBoxAttachFile?: JSX.Element | undefined;
|
4711
|
+
ControlBarPeopleButton?: JSX.Element | undefined;
|
4742
4712
|
ControlButtonCameraOff: JSX.Element;
|
4743
4713
|
ControlButtonCameraOn: JSX.Element;
|
4744
4714
|
ControlButtonEndCall: JSX.Element;
|
@@ -4790,7 +4760,6 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4790
4760
|
ChevronLeft?: JSX.Element | undefined;
|
4791
4761
|
ControlBarChatButtonActive?: JSX.Element | undefined;
|
4792
4762
|
ControlBarChatButtonInactive?: JSX.Element | undefined;
|
4793
|
-
ControlBarPeopleButton?: JSX.Element | undefined;
|
4794
4763
|
Link?: JSX.Element | undefined;
|
4795
4764
|
MoreDrawerMicrophones?: JSX.Element | undefined;
|
4796
4765
|
MoreDrawerPeople?: JSX.Element | undefined;
|