@azure/communication-react 1.5.1-alpha-202303220012 → 1.5.1-alpha-202303230013
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 +6 -0
- package/dist/dist-cjs/communication-react/index.js +49 -7
- 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/react-components/src/components/CameraButton.d.ts +4 -0
- package/dist/dist-esm/react-components/src/components/CameraButton.js +12 -0
- package/dist/dist-esm/react-components/src/components/CameraButton.js.map +1 -1
- package/dist/dist-esm/react-components/src/theming/icons.d.ts +1 -0
- package/dist/dist-esm/react-components/src/theming/icons.js +5 -1
- package/dist/dist-esm/react-components/src/theming/icons.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +1 -1
- 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/buttons/Camera.d.ts +5 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/buttons/Camera.js +3 -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/CallWithChatComposite/CallWithChatComposite.js +13 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +4 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.d.ts +11 -0
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js +19 -0
- package/dist/dist-esm/react-composites/src/composites/common/VideoEffectsPane.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/icons.d.ts +1 -0
- package/package.json +8 -8
@@ -2888,6 +2888,10 @@ export declare interface CameraButtonProps extends ControlBarButtonProps {
|
|
2888
2888
|
* Styles for {@link CameraButton} and the device selection flyout.
|
2889
2889
|
*/
|
2890
2890
|
styles?: Partial<CameraButtonStyles>;
|
2891
|
+
/**
|
2892
|
+
* Callback when a effects is clicked
|
2893
|
+
*/
|
2894
|
+
onShowVideoEffectsPicker?: (showVideoEffectsOptions: boolean) => void;
|
2891
2895
|
}
|
2892
2896
|
|
2893
2897
|
/**
|
@@ -4628,6 +4632,7 @@ export declare const DEFAULT_COMPONENT_ICONS: {
|
|
4628
4632
|
SplitButtonPrimaryActionMicMuted: JSX.Element;
|
4629
4633
|
VerticalGalleryLeftButton: JSX.Element;
|
4630
4634
|
VerticalGalleryRightButton: JSX.Element;
|
4635
|
+
OptionsVideoBackgroundEffect: JSX.Element;
|
4631
4636
|
};
|
4632
4637
|
|
4633
4638
|
/**
|
@@ -4735,6 +4740,7 @@ export declare const DEFAULT_COMPOSITE_ICONS: {
|
|
4735
4740
|
SplitButtonPrimaryActionMicMuted: JSX.Element;
|
4736
4741
|
VerticalGalleryLeftButton: JSX.Element;
|
4737
4742
|
VerticalGalleryRightButton: JSX.Element;
|
4743
|
+
OptionsVideoBackgroundEffect: JSX.Element;
|
4738
4744
|
};
|
4739
4745
|
|
4740
4746
|
/**
|
@@ -162,7 +162,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
162
162
|
// Copyright (c) Microsoft Corporation.
|
163
163
|
// Licensed under the MIT license.
|
164
164
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
165
|
-
var telemetryVersion = '1.5.1-alpha-
|
165
|
+
var telemetryVersion = '1.5.1-alpha-202303230013';
|
166
166
|
|
167
167
|
// Copyright (c) Microsoft Corporation.
|
168
168
|
/**
|
@@ -5332,7 +5332,9 @@ const DEFAULT_COMPONENT_ICONS = {
|
|
5332
5332
|
/* @conditional-compile-remove(vertical-gallery) */
|
5333
5333
|
VerticalGalleryLeftButton: React__default['default'].createElement(reactIcons.ChevronLeft20Regular, null),
|
5334
5334
|
/* @conditional-compile-remove(vertical-gallery) */
|
5335
|
-
VerticalGalleryRightButton: React__default['default'].createElement(reactIcons.ChevronRight20Regular, null)
|
5335
|
+
VerticalGalleryRightButton: React__default['default'].createElement(reactIcons.ChevronRight20Regular, null),
|
5336
|
+
/* @conditional-compile-remove(video-background-effects) */
|
5337
|
+
OptionsVideoBackgroundEffect: React__default['default'].createElement(reactIcons.VideoBackgroundEffect20Regular, null)
|
5336
5338
|
};
|
5337
5339
|
|
5338
5340
|
// Copyright (c) Microsoft Corporation.
|
@@ -11727,6 +11729,18 @@ const CameraButton = (props) => {
|
|
11727
11729
|
iconName: props.checked ? 'SplitButtonPrimaryActionCameraOn' : 'SplitButtonPrimaryActionCameraOff',
|
11728
11730
|
styles: { root: { lineHeight: 0 } }
|
11729
11731
|
}
|
11732
|
+
},
|
11733
|
+
/* @conditional-compile-remove(video-background-effects) */
|
11734
|
+
{
|
11735
|
+
key: 'effects',
|
11736
|
+
text: 'Effects',
|
11737
|
+
title: 'Video Effects',
|
11738
|
+
iconProps: { iconName: 'OptionsVideoBackgroundEffect', styles: { root: { lineHeight: 0 } } },
|
11739
|
+
onClick: () => {
|
11740
|
+
if (props.onShowVideoEffectsPicker) {
|
11741
|
+
props.onShowVideoEffectsPicker(true);
|
11742
|
+
}
|
11743
|
+
}
|
11730
11744
|
}
|
11731
11745
|
]
|
11732
11746
|
}
|
@@ -17880,7 +17894,9 @@ const concatButtonBaseStyles = (...styles) => {
|
|
17880
17894
|
const Camera = (props) => {
|
17881
17895
|
const cameraButtonProps = usePropsFor$1(CameraButton);
|
17882
17896
|
const styles = React.useMemo(() => { var _a; return concatButtonBaseStyles((_a = props.styles) !== null && _a !== void 0 ? _a : {}); }, [props.styles]);
|
17883
|
-
return (React__default['default'].createElement(CameraButton, Object.assign({ "data-ui-id": "call-composite-camera-button" }, cameraButtonProps, { showLabel: props.displayType !== 'compact', styles: styles, enableDeviceSelectionMenu: props.splitButtonsForDeviceSelection, disabled: cameraButtonProps.disabled || props.disabled
|
17897
|
+
return (React__default['default'].createElement(CameraButton, Object.assign({ "data-ui-id": "call-composite-camera-button" }, cameraButtonProps, { showLabel: props.displayType !== 'compact', styles: styles, enableDeviceSelectionMenu: props.splitButtonsForDeviceSelection, disabled: cameraButtonProps.disabled || props.disabled,
|
17898
|
+
/* @conditional-compile-remove(video-background-effects) */
|
17899
|
+
onShowVideoEffectsPicker: props.onShowVideoEffectsPicker })));
|
17884
17900
|
};
|
17885
17901
|
|
17886
17902
|
// Copyright (c) Microsoft Corporation.
|
@@ -18358,7 +18374,7 @@ const CallControls = (props) => {
|
|
18358
18374
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
18359
18375
|
!props.isMobile && (React__default['default'].createElement(Participants, { option: options === null || options === void 0 ? void 0 : options.participantsButton, callInvitationURL: props.callInvitationURL, onFetchParticipantMenuItems: props.onFetchParticipantMenuItems, displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, isMobile: props.isMobile, disabled: isDisabled$2(options === null || options === void 0 ? void 0 : options.participantsButton) })) && (
|
18360
18376
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
18361
|
-
React__default['default'].createElement(People, { checked: props.peopleButtonChecked, 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$2(options === null || options === void 0 ? void 0 : options.participantsButton) })),
|
18377
|
+
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$2(options === null || options === void 0 ? void 0 : options.participantsButton) })),
|
18362
18378
|
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$2(options === null || options === void 0 ? void 0 : options.devicesButton) })),
|
18363
18379
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
18364
18380
|
isEnabled$2(options === null || options === void 0 ? void 0 : options.moreButton) && moreButtonContextualMenuItems().length > 0 && (React__default['default'].createElement(MoreButton, { strings: moreButtonStrings, menuIconProps: { hidden: true }, menuProps: { items: moreButtonContextualMenuItems() }, showLabel: (options === null || options === void 0 ? void 0 : options.displayType) !== 'compact' })),
|
@@ -22810,7 +22826,9 @@ const CallWithChatControlBar = (props) => {
|
|
22810
22826
|
disabled: props.disableButtonsForHoldScreen || isDisabled$2(options.microphoneButton) })),
|
22811
22827
|
isEnabled$1(options.cameraButton) && (React__default['default'].createElement(Camera, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
22812
22828
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
22813
|
-
disabled: props.disableButtonsForHoldScreen || isDisabled$2(options.cameraButton)
|
22829
|
+
disabled: props.disableButtonsForHoldScreen || isDisabled$2(options.cameraButton),
|
22830
|
+
/* @conditional-compile-remove(video-background-effects) */
|
22831
|
+
onShowVideoEffectsPicker: props.onShowVideoEffectsPicker })),
|
22814
22832
|
props.mobileView && isEnabled$1(options === null || options === void 0 ? void 0 : options.chatButton) && chatButton,
|
22815
22833
|
isEnabled$1(options.screenShareButton) && (React__default['default'].createElement(ScreenShare, { option: options.screenShareButton, displayType: options.displayType, styles: screenShareButtonStyles,
|
22816
22834
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -22835,7 +22853,7 @@ const CallWithChatControlBar = (props) => {
|
|
22835
22853
|
_b.slice(0, CUSTOM_BUTTON_OPTIONS.MAX_SECONDARY_DESKTOP_CUSTOM_BUTTONS).map((CustomButton, i) => {
|
22836
22854
|
return (React__default['default'].createElement(CustomButton, { key: `secondary-custom-button-${i}`, styles: commonButtonStyles, showLabel: options.displayType !== 'compact' }));
|
22837
22855
|
}),
|
22838
|
-
isEnabled$1(options === null || options === void 0 ? void 0 : options.peopleButton) && (React__default['default'].createElement(PeopleButton, { checked: props.peopleButtonChecked, showLabel: options.displayType !== 'compact', onClick: props.onPeopleButtonClicked, "data-ui-id": "call-with-chat-composite-people-button", disabled: props.disableButtonsForLobbyPage || isDisabled$2(options.peopleButton), strings: peopleButtonStrings, styles: commonButtonStyles })),
|
22856
|
+
isEnabled$1(options === null || options === void 0 ? void 0 : options.peopleButton) && (React__default['default'].createElement(PeopleButton, { checked: props.peopleButtonChecked, ariaLabel: peopleButtonStrings === null || peopleButtonStrings === void 0 ? void 0 : peopleButtonStrings.label, showLabel: options.displayType !== 'compact', onClick: props.onPeopleButtonClicked, "data-ui-id": "call-with-chat-composite-people-button", disabled: props.disableButtonsForLobbyPage || isDisabled$2(options.peopleButton), strings: peopleButtonStrings, styles: commonButtonStyles })),
|
22839
22857
|
isEnabled$1(options === null || options === void 0 ? void 0 : options.chatButton) && chatButton))));
|
22840
22858
|
};
|
22841
22859
|
const desktopButtonContainerStyle = {
|
@@ -23435,10 +23453,30 @@ const CallWithChatPane = (props) => {
|
|
23435
23453
|
React__default['default'].createElement(_DrawerMenu, { onLightDismiss: () => setDrawerMenuItems([]), items: drawerMenuItems })))));
|
23436
23454
|
};
|
23437
23455
|
|
23456
|
+
// Copyright (c) Microsoft Corporation.
|
23457
|
+
/**
|
23458
|
+
* Pane that is used to show video effects button
|
23459
|
+
* @private
|
23460
|
+
*/
|
23461
|
+
/** @beta */
|
23462
|
+
const VideoEffectsPane = (props) => {
|
23463
|
+
return VideoEffectsPaneTrampoline(props.showVideoEffectsOptions, props.setshowVideoEffectsOptions);
|
23464
|
+
};
|
23465
|
+
const VideoEffectsPaneTrampoline = (showVideoEffectsOptions, setshowVideoEffectsOptions) => {
|
23466
|
+
/* @conditional-compile-remove(video-background-effects) */
|
23467
|
+
return (React__default['default'].createElement(react.Panel, { headerText: "Effects", isOpen: showVideoEffectsOptions, onDismiss: () => setshowVideoEffectsOptions(false), hasCloseButton: true, closeButtonAriaLabel: "Close", isLightDismiss: true }));
|
23468
|
+
};
|
23469
|
+
|
23438
23470
|
// Copyright (c) Microsoft Corporation.
|
23439
23471
|
const CallWithChatScreen = (props) => {
|
23440
23472
|
const { callWithChatAdapter, fluentTheme, formFactor = 'desktop' } = props;
|
23441
23473
|
const mobileView = formFactor === 'mobile';
|
23474
|
+
/* @conditional-compile-remove(video-background-effects) */
|
23475
|
+
const [showVideoEffectsPane, setVideoEffectsPane] = React.useState(false);
|
23476
|
+
/* @conditional-compile-remove(video-background-effects) */
|
23477
|
+
const setShowVideoEffectsPane = React.useCallback((showVideoEffectsOptions) => {
|
23478
|
+
setVideoEffectsPane(showVideoEffectsOptions);
|
23479
|
+
}, [setVideoEffectsPane]);
|
23442
23480
|
if (!callWithChatAdapter) {
|
23443
23481
|
throw new Error('CallWithChatAdapter is undefined');
|
23444
23482
|
}
|
@@ -23583,6 +23621,8 @@ const CallWithChatScreen = (props) => {
|
|
23583
23621
|
// Perf: Instead of removing the video gallery from DOM, we hide it to prevent re-renders.
|
23584
23622
|
style: callCompositeContainerCSS },
|
23585
23623
|
React__default['default'].createElement(CallComposite, Object.assign({}, props, { formFactor: formFactor, options: callCompositeOptions, adapter: callAdapter, fluentTheme: fluentTheme }))),
|
23624
|
+
/* @conditional-compile-remove(video-background-effects) */
|
23625
|
+
React__default['default'].createElement(VideoEffectsPane, { showVideoEffectsOptions: showVideoEffectsPane, setshowVideoEffectsOptions: setShowVideoEffectsPane }),
|
23586
23626
|
chatProps.adapter && callAdapter && hasJoinedCall && (React__default['default'].createElement(CallWithChatPane, { chatCompositeProps: chatProps, inviteLink: props.joinInvitationURL, onClose: closePane, chatAdapter: chatProps.adapter, callAdapter: callAdapter, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData, onFetchParticipantMenuItems: props.onFetchParticipantMenuItems, onChatButtonClicked: showShowChatTabHeaderButton(props.callControls) ? selectChat : undefined, onPeopleButtonClicked: showShowPeopleTabHeaderButton(props.callControls) ? selectPeople : undefined, modalLayerHostId: modalLayerHostId, mobileView: mobileView, activePane: activePane,
|
23587
23627
|
/* @conditional-compile-remove(file-sharing) */
|
23588
23628
|
fileSharing: props.fileSharing, rtl: props.rtl, callControls: typeof props.callControls !== 'boolean' ? props.callControls : undefined }))),
|
@@ -23592,7 +23632,9 @@ const CallWithChatScreen = (props) => {
|
|
23592
23632
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
23593
23633
|
disableButtonsForHoldScreen: isInLocalHold, callControls: props.callControls, containerHeight: containerHeight, containerWidth: containerWidth,
|
23594
23634
|
/* @conditional-compile-remove(PSTN-calls) */
|
23595
|
-
onClickShowDialpad: alternateCallerId ? onClickShowDialpad : undefined
|
23635
|
+
onClickShowDialpad: alternateCallerId ? onClickShowDialpad : undefined,
|
23636
|
+
/* @conditional-compile-remove(video-background-effects) */
|
23637
|
+
onShowVideoEffectsPicker: setShowVideoEffectsPane })))),
|
23596
23638
|
showControlBar && showDrawer && (React__default['default'].createElement(ChatAdapterProvider, { adapter: chatProps.adapter },
|
23597
23639
|
React__default['default'].createElement(CallAdapterProvider, { adapter: callAdapter },
|
23598
23640
|
React__default['default'].createElement(react.Stack, { styles: drawerContainerStyles() },
|