@azure/communication-react 1.8.0-alpha-202309060012 → 1.8.0-alpha-202309080012
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 +35 -26
- package/dist/dist-cjs/communication-react/index.js +40 -21
- 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/baseSelectors.js +1 -1
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js +1 -1
- package/dist/dist-esm/calling-component-bindings/src/callControlSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.d.ts +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createCommonHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.d.ts +1 -1
- package/dist/dist-esm/calling-component-bindings/src/handlers/createHandlers.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js +2 -0
- package/dist/dist-esm/calling-component-bindings/src/hooks/usePropsFor.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +3 -3
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.d.ts +1 -1
- package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/CameraButton.js +3 -3
- package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +3 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +1 -1
- 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 +9 -9
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +1 -1
- 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/CallControls.js +8 -8
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/LocalDeviceSettings.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 +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/index.d.ts +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/index.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +12 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +17 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.d.ts +4 -4
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/CallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +5 -2
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +3 -3
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependency.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/resolveVideoEffectDependencyLazy.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/types/CommonCallControlOptions.js.map +1 -1
- package/package.json +12 -12
@@ -316,7 +316,7 @@ export declare type AzureCommunicationCallAdapterArgs = {
|
|
316
316
|
/**
|
317
317
|
* Optional parameters to create {@link AzureCommunicationCallAdapter}
|
318
318
|
*
|
319
|
-
* @
|
319
|
+
* @public
|
320
320
|
*/
|
321
321
|
export declare type AzureCommunicationCallAdapterOptions = CommonCallAdapterOptions;
|
322
322
|
|
@@ -879,13 +879,13 @@ export declare interface CallAdapterCallOperations {
|
|
879
879
|
/**
|
880
880
|
* Start the video background effect.
|
881
881
|
*
|
882
|
-
* @
|
882
|
+
* @public
|
883
883
|
*/
|
884
884
|
startVideoBackgroundEffect(videoBackgroundEffect: VideoBackgroundEffect): Promise<void>;
|
885
885
|
/**
|
886
886
|
* Stop the video background effect.
|
887
887
|
*
|
888
|
-
* @
|
888
|
+
* @public
|
889
889
|
*/
|
890
890
|
stopVideoBackgroundEffects(): Promise<void>;
|
891
891
|
/**
|
@@ -893,13 +893,13 @@ export declare interface CallAdapterCallOperations {
|
|
893
893
|
*
|
894
894
|
* @param backgroundImages - Array of custom background images.
|
895
895
|
*
|
896
|
-
* @
|
896
|
+
* @public
|
897
897
|
*/
|
898
898
|
updateBackgroundPickerImages(backgroundImages: VideoBackgroundImage[]): void;
|
899
899
|
/**
|
900
900
|
* Update the selected video background effect.
|
901
901
|
*
|
902
|
-
* @
|
902
|
+
* @public
|
903
903
|
*/
|
904
904
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground: VideoBackgroundEffect): void;
|
905
905
|
}
|
@@ -2209,7 +2209,7 @@ export declare type CallErrors = {
|
|
2209
2209
|
*
|
2210
2210
|
* @public
|
2211
2211
|
*/
|
2212
|
-
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | /* @conditional-compile-remove(
|
2212
|
+
export declare type CallErrorTarget = 'Call.addParticipant' | 'Call.dispose' | 'Call.feature' | 'Call.hangUp' | 'Call.hold' | 'Call.mute' | 'Call.muteIncomingAudio' | 'Call.off' | 'Call.on' | 'Call.removeParticipant' | 'Call.resume' | 'Call.sendDtmf' | 'Call.startAudio' | 'Call.startScreenSharing' | 'Call.startVideo' | 'Call.stopScreenSharing' | 'Call.stopAudio' | 'Call.stopVideo' | 'Call.unmute' | 'Call.unmuteIncomingAudio' | 'CallAgent.dispose' | 'CallAgent.feature' | 'CallAgent.join' | 'CallAgent.off' | 'CallAgent.on' | 'CallAgent.startCall' | 'CallClient.createCallAgent' | 'CallClient.createTeamsCallAgent' | 'CallClient.feature' | 'CallClient.getDeviceManager' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallClient.getEnvironmentInfo' | 'DeviceManager.askDevicePermission' | 'DeviceManager.getCameras' | 'DeviceManager.getMicrophones' | 'DeviceManager.getSpeakers' | 'DeviceManager.off' | 'DeviceManager.on' | 'DeviceManager.selectMicrophone' | 'DeviceManager.selectSpeaker' | 'IncomingCall.accept' | 'IncomingCall.reject' | /* @conditional-compile-remove(calling-beta-sdk) */ /* @conditional-compile-remove(teams-identity-support) */ 'TeamsCall.addParticipant' | 'VideoEffectsFeature.startEffects' | /* @conditional-compile-remove(calling-beta-sdk) */ 'CallAgent.handlePushNotification' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admit' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.rejectParticipant' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.admitAll' | /* @conditional-compile-remove(calling-beta-sdk) */ 'Call.setConstraints';
|
2213
2213
|
|
2214
2214
|
/**
|
2215
2215
|
* Callback for {@link CallAdapterSubscribers} 'callIdChanged' event.
|
@@ -2243,7 +2243,7 @@ export declare interface CallingHandlers extends CommonCallingHandlers {
|
|
2243
2243
|
|
2244
2244
|
/**
|
2245
2245
|
* Configuration options to include video effect background dependency.
|
2246
|
-
* @
|
2246
|
+
* @public
|
2247
2247
|
*/
|
2248
2248
|
export declare type CallingHandlersOptions = {
|
2249
2249
|
onResolveVideoBackgroundEffectsDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
@@ -2807,13 +2807,13 @@ export declare interface CallWithChatAdapterManagement {
|
|
2807
2807
|
/**
|
2808
2808
|
* Start the video background effect.
|
2809
2809
|
*
|
2810
|
-
* @
|
2810
|
+
* @public
|
2811
2811
|
*/
|
2812
2812
|
startVideoBackgroundEffect(videoBackgroundEffect: VideoBackgroundEffect): Promise<void>;
|
2813
2813
|
/**
|
2814
2814
|
* Stop the video background effect.
|
2815
2815
|
*
|
2816
|
-
* @
|
2816
|
+
* @public
|
2817
2817
|
*/
|
2818
2818
|
stopVideoBackgroundEffects(): Promise<void>;
|
2819
2819
|
/**
|
@@ -2821,13 +2821,13 @@ export declare interface CallWithChatAdapterManagement {
|
|
2821
2821
|
*
|
2822
2822
|
* @param backgroundImages - Array of custom background images.
|
2823
2823
|
*
|
2824
|
-
* @
|
2824
|
+
* @public
|
2825
2825
|
*/
|
2826
2826
|
updateBackgroundPickerImages(backgroundImages: VideoBackgroundImage[]): void;
|
2827
2827
|
/**
|
2828
2828
|
* Update the selected video background effect
|
2829
2829
|
*
|
2830
|
-
* @
|
2830
|
+
* @public
|
2831
2831
|
*/
|
2832
2832
|
updateSelectedVideoBackgroundEffect(selectedVideoBackground: VideoBackgroundEffect): void;
|
2833
2833
|
}
|
@@ -3113,6 +3113,16 @@ export declare type CallWithChatCompositeOptions = {
|
|
3113
3113
|
* if this is not supplied, the composite will not show a unsupported browser page.
|
3114
3114
|
*/
|
3115
3115
|
onEnvironmentInfoTroubleshootingClick?: () => void;
|
3116
|
+
/**
|
3117
|
+
* Remote participant video tile menu options
|
3118
|
+
*/
|
3119
|
+
remoteVideoTileMenuOptions?: RemoteVideoTileMenuOptions;
|
3120
|
+
/**
|
3121
|
+
* Options for controlling the local video tile.
|
3122
|
+
*
|
3123
|
+
* @remarks if 'false' the local video tile will not be rendered.
|
3124
|
+
*/
|
3125
|
+
localVideoTile?: boolean | LocalVideoTileOptions;
|
3116
3126
|
/**
|
3117
3127
|
* Options for controlling the starting layout of the composite's video gallery
|
3118
3128
|
*/
|
@@ -3435,7 +3445,7 @@ export declare interface CameraButtonProps extends ControlBarButtonProps {
|
|
3435
3445
|
/**
|
3436
3446
|
* Callback when a effects is clicked
|
3437
3447
|
*/
|
3438
|
-
|
3448
|
+
onClickVideoEffects?: (showVideoEffects: boolean) => void;
|
3439
3449
|
}
|
3440
3450
|
|
3441
3451
|
/**
|
@@ -4378,7 +4388,7 @@ export declare interface CommonCallAdapter extends AdapterState<CallAdapterState
|
|
4378
4388
|
/**
|
4379
4389
|
* Common optional parameters to create {@link AzureCommunicationCallAdapter} or {@link TeamsCallAdapter}
|
4380
4390
|
*
|
4381
|
-
* @
|
4391
|
+
* @public
|
4382
4392
|
*/
|
4383
4393
|
export declare type CommonCallAdapterOptions = {
|
4384
4394
|
/**
|
@@ -7109,7 +7119,7 @@ export declare interface LocalVideoStreamState {
|
|
7109
7119
|
view?: VideoStreamRendererViewState;
|
7110
7120
|
/**
|
7111
7121
|
* Stores the state of the video effects.
|
7112
|
-
* @
|
7122
|
+
* @public
|
7113
7123
|
*/
|
7114
7124
|
videoEffects?: LocalVideoStreamVideoEffectsState;
|
7115
7125
|
}
|
@@ -7117,7 +7127,7 @@ export declare interface LocalVideoStreamState {
|
|
7117
7127
|
/**
|
7118
7128
|
* State only version of a LocalVideoStream's {@link @azure/communication-calling#VideoEffectsFeature}.
|
7119
7129
|
*
|
7120
|
-
* @
|
7130
|
+
* @public
|
7121
7131
|
*/
|
7122
7132
|
export declare interface LocalVideoStreamVideoEffectsState {
|
7123
7133
|
/**
|
@@ -7139,7 +7149,6 @@ export declare interface LocalVideoTileOptions {
|
|
7139
7149
|
* @remarks 'grid' - local video tile will be rendered in the grid view of the videoGallery.
|
7140
7150
|
* 'floating' - local video tile will be rendered in the floating position and will observe overflow gallery
|
7141
7151
|
* local video tile rules and be docked in the bottom corner.
|
7142
|
-
* 'hidden' - local video tile will not be rendered.
|
7143
7152
|
* This does not affect the Configuration screen or the side pane Picture in Picture in Picture view.
|
7144
7153
|
*/
|
7145
7154
|
position?: 'grid' | 'floating';
|
@@ -7967,14 +7976,14 @@ defaultOnRender?: (props: CustomAvatarOptions) => JSX.Element) => JSX.Element;
|
|
7967
7976
|
/**
|
7968
7977
|
* Dependency resolution for video background effects.
|
7969
7978
|
*
|
7970
|
-
* @
|
7979
|
+
* @public
|
7971
7980
|
*/
|
7972
7981
|
export declare const onResolveVideoEffectDependency: () => Promise<VideoBackgroundEffectsDependency>;
|
7973
7982
|
|
7974
7983
|
/**
|
7975
7984
|
*
|
7976
7985
|
* Dependency resolution for video background effects using lazy loading.
|
7977
|
-
* @
|
7986
|
+
* @public
|
7978
7987
|
*/
|
7979
7988
|
export declare const onResolveVideoEffectDependencyLazy: () => Promise<VideoBackgroundEffectsDependency>;
|
7980
7989
|
|
@@ -9209,7 +9218,7 @@ export declare interface StatefulDeviceManager extends DeviceManager {
|
|
9209
9218
|
* {@link @azure/communication-calling#Call}. This is useful for developers who want to interact with rendered
|
9210
9219
|
* video streams before they have started a call. See also {@link @azure/communication-react#CallClient.createView}.
|
9211
9220
|
*
|
9212
|
-
* @
|
9221
|
+
* @public
|
9213
9222
|
*/
|
9214
9223
|
getUnparentedVideoStreams: () => LocalVideoStream[];
|
9215
9224
|
}
|
@@ -9267,7 +9276,7 @@ export declare interface SystemMessageCommon extends MessageCommon {
|
|
9267
9276
|
/**
|
9268
9277
|
* Optional parameters to create {@link TeamsCallAdapter}
|
9269
9278
|
*
|
9270
|
-
* @
|
9279
|
+
* @public
|
9271
9280
|
*/
|
9272
9281
|
export declare type TeamsAdapterOptions = CommonCallAdapterOptions;
|
9273
9282
|
|
@@ -9889,7 +9898,7 @@ export declare interface VerticalGalleryStyles extends BaseCustomStyles {
|
|
9889
9898
|
/**
|
9890
9899
|
* Contains the attibutes of the blur video background effect
|
9891
9900
|
*
|
9892
|
-
* @
|
9901
|
+
* @public
|
9893
9902
|
*/
|
9894
9903
|
export declare interface VideoBackgroundBlurEffect extends BackgroundBlurConfig {
|
9895
9904
|
/**
|
@@ -9901,14 +9910,14 @@ export declare interface VideoBackgroundBlurEffect extends BackgroundBlurConfig
|
|
9901
9910
|
/**
|
9902
9911
|
* Contains the attibutes of a selected video background effect
|
9903
9912
|
*
|
9904
|
-
* @
|
9913
|
+
* @public
|
9905
9914
|
*/
|
9906
9915
|
export declare type VideoBackgroundEffect = VideoBackgroundNoEffect | VideoBackgroundBlurEffect | VideoBackgroundReplacementEffect;
|
9907
9916
|
|
9908
9917
|
/**
|
9909
9918
|
* Dependency type to be injected for video background effects
|
9910
9919
|
*
|
9911
|
-
* @
|
9920
|
+
* @public
|
9912
9921
|
*/
|
9913
9922
|
export declare type VideoBackgroundEffectsDependency = {
|
9914
9923
|
createBackgroundBlurEffect: (config?: BackgroundBlurConfig) => BackgroundBlurEffect;
|
@@ -9918,7 +9927,7 @@ export declare type VideoBackgroundEffectsDependency = {
|
|
9918
9927
|
/**
|
9919
9928
|
* Contains the attibutes of a background image like url, name etc.
|
9920
9929
|
*
|
9921
|
-
* @
|
9930
|
+
* @public
|
9922
9931
|
*/
|
9923
9932
|
export declare interface VideoBackgroundImage {
|
9924
9933
|
/**
|
@@ -9938,7 +9947,7 @@ export declare interface VideoBackgroundImage {
|
|
9938
9947
|
/**
|
9939
9948
|
* Contains the attibutes to remove video background effect
|
9940
9949
|
*
|
9941
|
-
* @
|
9950
|
+
* @public
|
9942
9951
|
*/
|
9943
9952
|
export declare interface VideoBackgroundNoEffect {
|
9944
9953
|
/**
|
@@ -9950,7 +9959,7 @@ export declare interface VideoBackgroundNoEffect {
|
|
9950
9959
|
/**
|
9951
9960
|
* Contains the attibutes of a selected replacement video background effect
|
9952
9961
|
*
|
9953
|
-
* @
|
9962
|
+
* @public
|
9954
9963
|
*/
|
9955
9964
|
export declare interface VideoBackgroundReplacementEffect extends BackgroundReplacementConfig {
|
9956
9965
|
/**
|
@@ -178,7 +178,7 @@ const _isValidIdentifier = (identifier) => {
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
179
179
|
// Licensed under the MIT license.
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
181
|
-
var telemetryVersion = '1.8.0-alpha-
|
181
|
+
var telemetryVersion = '1.8.0-alpha-202309080012';
|
182
182
|
|
183
183
|
// Copyright (c) Microsoft Corporation.
|
184
184
|
/**
|
@@ -405,7 +405,7 @@ const getLatestErrors$1 = (state) => state.latestErrors;
|
|
405
405
|
* @private
|
406
406
|
*/
|
407
407
|
const getDiagnostics = (state, props) => { var _a; return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.diagnostics; };
|
408
|
-
/* @conditional-compile-remove(PSTN-calls) */
|
408
|
+
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(raise-hand) */
|
409
409
|
/**
|
410
410
|
* @private
|
411
411
|
*/
|
@@ -15596,15 +15596,15 @@ const CameraButton = (props) => {
|
|
15596
15596
|
}), [cameraOn, localVideoViewOptions, onToggleCamera, toggleAnnouncerString]);
|
15597
15597
|
const splitButtonMenuItems = [];
|
15598
15598
|
/* @conditional-compile-remove(video-background-effects) */
|
15599
|
-
if (props.
|
15599
|
+
if (props.onClickVideoEffects) {
|
15600
15600
|
splitButtonMenuItems.push({
|
15601
15601
|
key: 'effects',
|
15602
15602
|
'data-ui-id': 'camera-split-button-video-effects',
|
15603
15603
|
text: strings.videoEffectsMenuItemTitle,
|
15604
15604
|
iconProps: { iconName: 'ControlButtonVideoEffectsOption', styles: { root: { lineHeight: 0 } } },
|
15605
15605
|
onClick: () => {
|
15606
|
-
if (props.
|
15607
|
-
props.
|
15606
|
+
if (props.onClickVideoEffects) {
|
15607
|
+
props.onClickVideoEffects(true);
|
15608
15608
|
}
|
15609
15609
|
}
|
15610
15610
|
});
|
@@ -18336,7 +18336,9 @@ const findSelector$1 = (component) => {
|
|
18336
18336
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(raise-hand) */
|
18337
18337
|
const findConditionalCompiledSelector = (component) => {
|
18338
18338
|
switch (component) {
|
18339
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
18339
18340
|
case HoldButton:
|
18341
|
+
/* @conditional-compile-remove(PSTN-calls) */
|
18340
18342
|
return holdButtonSelector;
|
18341
18343
|
/* @conditional-compile-remove(raise-hand) */
|
18342
18344
|
case RaiseHandButton:
|
@@ -23168,7 +23170,7 @@ const Camera = (props) => {
|
|
23168
23170
|
? () => React__default['default'].createElement(_HighContrastAwareIcon, { disabled: true, iconName: 'ControlButtonCameraProhibited' })
|
23169
23171
|
: undefined,
|
23170
23172
|
/* @conditional-compile-remove(video-background-effects) */
|
23171
|
-
|
23173
|
+
onClickVideoEffects: props.onClickVideoEffects, componentRef: props.componentRef })));
|
23172
23174
|
};
|
23173
23175
|
|
23174
23176
|
// Copyright (c) Microsoft Corporation.
|
@@ -23717,7 +23719,7 @@ const CallControls = (props) => {
|
|
23717
23719
|
const options = React.useMemo(() => (typeof props.options === 'boolean' ? {} : props.options), [props.options]);
|
23718
23720
|
/* @conditional-compile-remove(PSTN-calls) */
|
23719
23721
|
const adapter = useAdapter();
|
23720
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
23722
|
+
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
23721
23723
|
const localeStrings = useLocale();
|
23722
23724
|
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
23723
23725
|
const peopleButtonStrings = React.useMemo(() => ({
|
@@ -23725,7 +23727,7 @@ const CallControls = (props) => {
|
|
23725
23727
|
tooltipOffContent: localeStrings.strings.call.peopleButtonTooltipOpen,
|
23726
23728
|
tooltipOnContent: localeStrings.strings.call.peopleButtonTooltipClose
|
23727
23729
|
}), [localeStrings]);
|
23728
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
23730
|
+
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
23729
23731
|
const moreButtonStrings = React.useMemo(() => ({
|
23730
23732
|
label: localeStrings.strings.call.moreButtonCallingLabel,
|
23731
23733
|
tooltipOffContent: localeStrings.strings.callWithChat.moreDrawerButtonTooltip
|
@@ -23742,7 +23744,7 @@ const CallControls = (props) => {
|
|
23742
23744
|
const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
|
23743
23745
|
/* @conditional-compile-remove(PSTN-calls) */
|
23744
23746
|
const alternateCallerId = useAdapter().getState().alternateCallerId;
|
23745
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
23747
|
+
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
23746
23748
|
const moreButtonContextualMenuItems = () => {
|
23747
23749
|
const items = [];
|
23748
23750
|
if (props.isMobile && props.onPeopleButtonClicked && isEnabled$2(options === null || options === void 0 ? void 0 : options.participantsButton)) {
|
@@ -23847,7 +23849,7 @@ const CallControls = (props) => {
|
|
23847
23849
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
23848
23850
|
React__default['default'].createElement(People, { checked: props.peopleButtonChecked, ariaLabel: peopleButtonStrings === null || peopleButtonStrings === void 0 ? void 0 : peopleButtonStrings.label, showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact', onClick: props.onPeopleButtonClicked, "data-ui-id": "call-composite-people-button", strings: peopleButtonStrings, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.participantsButton) })),
|
23849
23851
|
isEnabled$2(options === null || options === void 0 ? void 0 : options.devicesButton) && (React__default['default'].createElement(Devices, { displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.devicesButton) })),
|
23850
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
23852
|
+
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
23851
23853
|
isEnabled$2(options === null || options === void 0 ? void 0 : options.moreButton) && moreButtonContextualMenuItems().length > 0 && (React__default['default'].createElement(MoreButton, { "data-ui-id": "common-call-composite-more-button", strings: moreButtonStrings, menuIconProps: { hidden: true }, menuProps: { items: moreButtonContextualMenuItems() }, showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact' })),
|
23852
23854
|
customButtons['primary'],
|
23853
23855
|
isEnabled$2(options === null || options === void 0 ? void 0 : options.endCallButton) && React__default['default'].createElement(EndCall, { displayType: options === null || options === void 0 ? void 0 : options.displayType })))));
|
@@ -24429,7 +24431,7 @@ const CommonCallControlBar = (props) => {
|
|
24429
24431
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
24430
24432
|
disabled: props.disableButtonsForHoldScreen || isDisabled$3(options.cameraButton),
|
24431
24433
|
/* @conditional-compile-remove(video-background-effects) */
|
24432
|
-
|
24434
|
+
onClickVideoEffects: props.onClickVideoEffects, componentRef: props.cameraButtonRef })),
|
24433
24435
|
/* @conditional-compile-remove(raise-hand) */ !props.mobileView &&
|
24434
24436
|
isEnabled$1(options.raiseHandButton) && (React__default['default'].createElement(RaiseHand, { displayType: options.displayType, styles: commonButtonStyles,
|
24435
24437
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -24557,7 +24559,10 @@ const getDesktopEndCallButtonStyles = (theme) => {
|
|
24557
24559
|
rootFocused: {
|
24558
24560
|
'@media (forced-colors: active)': {
|
24559
24561
|
background: 'highlight',
|
24560
|
-
|
24562
|
+
color: 'highlightText',
|
24563
|
+
borderColor: theme.palette.black,
|
24564
|
+
borderRadius: 'unset',
|
24565
|
+
outline: `3px solid ${theme.palette.black}`
|
24561
24566
|
}
|
24562
24567
|
},
|
24563
24568
|
icon: {
|
@@ -24722,7 +24727,7 @@ const MoreDrawer = (props) => {
|
|
24722
24727
|
const theme = react.useTheme();
|
24723
24728
|
const drawerMenuItems = [];
|
24724
24729
|
const { speakers, onSelectSpeaker, onLightDismiss } = props;
|
24725
|
-
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */
|
24730
|
+
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
24726
24731
|
const localeStrings = useLocale();
|
24727
24732
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
24728
24733
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
@@ -26508,7 +26513,7 @@ const CallArrangement = (props) => {
|
|
26508
26513
|
/* @conditional-compile-remove(close-captions) */
|
26509
26514
|
isCaptionsOn: isCaptionsOn,
|
26510
26515
|
/* @conditional-compile-remove(video-background-effects) */
|
26511
|
-
|
26516
|
+
onClickVideoEffects: onResolveVideoEffectDependency ? openVideoEffectsPane : undefined,
|
26512
26517
|
/* @conditional-compile-remove(PSTN-calls) */
|
26513
26518
|
onClickShowDialpad: alternateCallerId ? onClickShowDialpad : undefined, displayVertical: verticalControlBar,
|
26514
26519
|
/* @conditional-compile-remove(gallery-layouts) */
|
@@ -27456,7 +27461,7 @@ const LocalDeviceSettings = (props) => {
|
|
27456
27461
|
React__default['default'].createElement(react.Stack, { horizontal: true, horizontalAlign: "space-between", styles: cameraAndVideoEffectsContainerStyleDesktop },
|
27457
27462
|
React__default['default'].createElement(react.Label, { id: 'call-composite-local-camera-settings-label', className: react.mergeStyles(dropDownStyles(theme).label), disabled: !cameraPermissionGranted }, cameraLabel),
|
27458
27463
|
/* @conditional-compile-remove(video-background-effects) */
|
27459
|
-
onResolveVideoEffectDependency && (React__default['default'].createElement(react.DefaultButton, { iconProps: { iconName: 'ConfigurationScreenVideoEffectsButton' }, styles: effectsButtonStyles(theme), onClick: props.
|
27464
|
+
onResolveVideoEffectDependency && (React__default['default'].createElement(react.DefaultButton, { iconProps: { iconName: 'ConfigurationScreenVideoEffectsButton' }, styles: effectsButtonStyles(theme), onClick: props.onClickVideoEffects, "data-ui-id": 'call-config-video-effects-button' }, locale.strings.call.configurationPageVideoEffectsButtonLabel))),
|
27460
27465
|
React__default['default'].createElement(ConfigurationPageCameraDropdown, { cameraGrantedDropdown: cameraGrantedDropdown, cameraPermissionGranted: cameraPermissionGranted !== null && cameraPermissionGranted !== void 0 ? cameraPermissionGranted : false,
|
27461
27466
|
/* @conditional-compile-remove(call-readiness) */
|
27462
27467
|
dropdownProps: dropdownProps,
|
@@ -28050,7 +28055,7 @@ const ConfigurationPage = (props) => {
|
|
28050
28055
|
setIsPermissionsModalDismissed(true);
|
28051
28056
|
},
|
28052
28057
|
/* @conditional-compile-remove(video-background-effects) */
|
28053
|
-
|
28058
|
+
onClickVideoEffects: toggleVideoEffectsPane })))),
|
28054
28059
|
React__default['default'].createElement(react.Stack, { styles: mobileWithPreview ? startCallButtonContainerStyleMobile : startCallButtonContainerStyleDesktop },
|
28055
28060
|
React__default['default'].createElement(StartCallButton, { className: mobileWithPreview ? startCallButtonStyleMobile : undefined, onClick: startCall, disabled: disableStartCallButton })))),
|
28056
28061
|
React__default['default'].createElement(react.Panel
|
@@ -30973,8 +30978,12 @@ const CallWithChatScreen = (props) => {
|
|
30973
30978
|
onPermissionsTroubleshootingClick: props.onPermissionsTroubleshootingClick,
|
30974
30979
|
/* @conditional-compile-remove(unsupported-browser) */
|
30975
30980
|
onEnvironmentInfoTroubleshootingClick: props.onEnvironmentInfoTroubleshootingClick,
|
30981
|
+
/* @conditional-compile-remove(pinned-participants) */
|
30982
|
+
remoteVideoTileMenuOptions: props.remoteVideoTileMenuOptions,
|
30976
30983
|
/* @conditional-compile-remove(gallery-layouts) */
|
30977
|
-
galleryOptions: props.galleryOptions
|
30984
|
+
galleryOptions: props.galleryOptions,
|
30985
|
+
/* @conditional-compile-remove(click-to-call) */
|
30986
|
+
localVideoTile: props.localVideoTile
|
30978
30987
|
}), [
|
30979
30988
|
props.callControls,
|
30980
30989
|
callControlOptionsFromProps,
|
@@ -30990,7 +30999,11 @@ const CallWithChatScreen = (props) => {
|
|
30990
30999
|
/* @conditional-compile-remove(call-readiness) */
|
30991
31000
|
props.onPermissionsTroubleshootingClick,
|
30992
31001
|
/* @conditional-compile-remove(gallery-layouts) */
|
30993
|
-
props.galleryOptions
|
31002
|
+
props.galleryOptions,
|
31003
|
+
/* @conditional-compile-remove(click-to-call) */
|
31004
|
+
props.localVideoTile,
|
31005
|
+
/* @conditional-compile-remove(pinned-participants) */
|
31006
|
+
props.remoteVideoTileMenuOptions
|
30994
31007
|
]);
|
30995
31008
|
const onRenderChatContent = React.useCallback(() => (React__default['default'].createElement(ChatComposite, Object.assign({}, chatProps, { fluentTheme: theme, options: {
|
30996
31009
|
topic: false,
|
@@ -31042,8 +31055,14 @@ const CallWithChatComposite = (props) => {
|
|
31042
31055
|
React__default['default'].createElement(CallWithChatScreen, Object.assign({}, props, {
|
31043
31056
|
/* @conditional-compile-remove(call-readiness) */
|
31044
31057
|
deviceChecks: options === null || options === void 0 ? void 0 : options.deviceChecks, callWithChatAdapter: adapter, formFactor: formFactor, callControls: options === null || options === void 0 ? void 0 : options.callControls, joinInvitationURL: joinInvitationURL, fluentTheme: fluentTheme,
|
31058
|
+
/* @conditional-compile-remove(pinned-participants) */
|
31059
|
+
remoteVideoTileMenuOptions: options === null || options === void 0 ? void 0 : options.remoteVideoTileMenuOptions,
|
31045
31060
|
/* @conditional-compile-remove(file-sharing) */
|
31046
|
-
fileSharing: options === null || options === void 0 ? void 0 : options.fileSharing
|
31061
|
+
fileSharing: options === null || options === void 0 ? void 0 : options.fileSharing,
|
31062
|
+
/* @conditional-compile-remove(click-to-call) */
|
31063
|
+
localVideoTile: options === null || options === void 0 ? void 0 : options.localVideoTile,
|
31064
|
+
/* @conditional-compile-remove(gallery-layouts) */
|
31065
|
+
galleryOptions: options === null || options === void 0 ? void 0 : options.galleryOptions }))));
|
31047
31066
|
};
|
31048
31067
|
const hasJoinedCallFn = (page, callStatus) => {
|
31049
31068
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -31960,7 +31979,7 @@ var __awaiter$1 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
31960
31979
|
/**
|
31961
31980
|
*
|
31962
31981
|
* Dependency resolution for video background effects using lazy loading.
|
31963
|
-
* @
|
31982
|
+
* @public
|
31964
31983
|
*/
|
31965
31984
|
const onResolveVideoEffectDependencyLazy = () => __awaiter$1(void 0, void 0, void 0, function* () {
|
31966
31985
|
const module = yield Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@azure/communication-calling-effects')); });
|
@@ -31990,7 +32009,7 @@ var __awaiter = (window && window.__awaiter) || function (thisArg, _arguments, P
|
|
31990
32009
|
/**
|
31991
32010
|
* Dependency resolution for video background effects.
|
31992
32011
|
*
|
31993
|
-
* @
|
32012
|
+
* @public
|
31994
32013
|
*/
|
31995
32014
|
const onResolveVideoEffectDependency = () => __awaiter(void 0, void 0, void 0, function* () {
|
31996
32015
|
const createBackgroundBlurEffect = (config) => {
|