@azure/communication-react 1.4.3-alpha-202212130014.0 → 1.4.3-alpha-202212140016.0
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/dist-cjs/communication-react/index.js +79 -48
- 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-stateful-client/src/TypeGuards.js +2 -2
- package/dist/dist-esm/calling-stateful-client/src/TypeGuards.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedEnvironment.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js +4 -4
- package/dist/dist-esm/react-components/src/components/styles/UnsupportedEnvironment.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +11 -11
- 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/Microphone.js +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/styles/CallPage.styles.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/styles/CallPage.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js +11 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +15 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
- package/package.json +8 -8
@@ -202,7 +202,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
202
202
|
// Copyright (c) Microsoft Corporation.
|
203
203
|
// Licensed under the MIT license.
|
204
204
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
205
|
-
var telemetryVersion = '1.4.3-alpha-
|
205
|
+
var telemetryVersion = '1.4.3-alpha-202212140016.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -1799,14 +1799,14 @@ const findOldestCallEnded = (calls) => {
|
|
1799
1799
|
*/
|
1800
1800
|
const _isACSCall = (call) => {
|
1801
1801
|
/* @conditional-compile-remove(teams-identity-support) */
|
1802
|
-
return call.kind === 'Call';
|
1802
|
+
return !call.kind || call.kind === 'Call';
|
1803
1803
|
};
|
1804
1804
|
/**
|
1805
1805
|
* @internal
|
1806
1806
|
*/
|
1807
1807
|
const _isACSCallAgent = (callAgent) => {
|
1808
1808
|
/* @conditional-compile-remove(teams-identity-support) */
|
1809
|
-
return callAgent.kind === 'CallAgent';
|
1809
|
+
return !callAgent.kind || callAgent.kind === 'CallAgent';
|
1810
1810
|
};
|
1811
1811
|
/**
|
1812
1812
|
* @internal
|
@@ -11789,8 +11789,8 @@ const linkTextStyles = {
|
|
11789
11789
|
*/
|
11790
11790
|
const containerStyles$2 = {
|
11791
11791
|
root: {
|
11792
|
-
|
11793
|
-
|
11792
|
+
maxWidth: _pxToRem(375),
|
11793
|
+
padding: '2rem'
|
11794
11794
|
}
|
11795
11795
|
};
|
11796
11796
|
/**
|
@@ -11801,8 +11801,8 @@ const continueAnywayButtonStyles = (theme) => {
|
|
11801
11801
|
root: {
|
11802
11802
|
backgroundColor: '#C4314B',
|
11803
11803
|
borderColor: theme.palette.neutralLight,
|
11804
|
-
|
11805
|
-
|
11804
|
+
color: theme.palette.white,
|
11805
|
+
padding: '1rem'
|
11806
11806
|
}
|
11807
11807
|
};
|
11808
11808
|
};
|
@@ -11818,7 +11818,7 @@ const UnsupportedEnvironmentContainer = (props) => {
|
|
11818
11818
|
React__default['default'].createElement(react.Text, { styles: mainTextStyles }, strings === null || strings === void 0 ? void 0 : strings.primaryText),
|
11819
11819
|
React__default['default'].createElement(react.Text, { styles: secondaryTextStyles }, strings === null || strings === void 0 ? void 0 : strings.secondaryText)),
|
11820
11820
|
onTroubleshootingClick && (React__default['default'].createElement(react.Link, { styles: linkTextStyles, onClick: onTroubleshootingClick, "data-ui-id": "unsupported-environment-link" }, strings === null || strings === void 0 ? void 0 : strings.moreHelpLinkText)),
|
11821
|
-
onContinueClick && (React__default['default'].createElement(react.DefaultButton, { styles: continueAnywayButtonStyles(theme), onClick: onContinueClick }, strings === null || strings === void 0 ? void 0 : strings.continueAnywayButtonText))));
|
11821
|
+
onContinueClick && (React__default['default'].createElement(react.DefaultButton, { "data-ui-id": "allowUnsupportedBrowserButton", styles: continueAnywayButtonStyles(theme), onClick: onContinueClick }, strings === null || strings === void 0 ? void 0 : strings.continueAnywayButtonText))));
|
11822
11822
|
};
|
11823
11823
|
/**
|
11824
11824
|
* UI to display to the user that the environment they are using is not supported by calling application.
|
@@ -16665,7 +16665,7 @@ const Microphone = (props) => {
|
|
16665
16665
|
: {};
|
16666
16666
|
const styles = React.useMemo(() => { var _a; return concatButtonBaseStyles((_a = props.styles) !== null && _a !== void 0 ? _a : {}); }, [props.styles]);
|
16667
16667
|
// tab focus on MicrophoneButton on page load
|
16668
|
-
return (React__default['default'].createElement(MicrophoneButton, Object.assign({
|
16668
|
+
return (React__default['default'].createElement(MicrophoneButton, Object.assign({ "data-ui-id": "call-composite-microphone-button" }, microphoneButtonProps, { showLabel: props.displayType !== 'compact', styles: styles }, microphoneButtonStrings, { enableDeviceSelectionMenu: props.splitButtonsForDeviceSelection, disabled: microphoneButtonProps.disabled || props.disabled })));
|
16669
16669
|
};
|
16670
16670
|
|
16671
16671
|
// Copyright (c) Microsoft Corporation.
|
@@ -17096,6 +17096,14 @@ const bannerNotificationStyles = {
|
|
17096
17096
|
pointerEvents: 'auto' // to allow the dismissal or error and warning bars in the notification container
|
17097
17097
|
}
|
17098
17098
|
};
|
17099
|
+
/**
|
17100
|
+
* @private
|
17101
|
+
*/
|
17102
|
+
const callArrangementContainerStyles = {
|
17103
|
+
root: {
|
17104
|
+
flexDirection: 'column-reverse' // to allow first initial keyboard focus on ControlBar
|
17105
|
+
}
|
17106
|
+
};
|
17099
17107
|
|
17100
17108
|
// Copyright (c) Microsoft Corporation.
|
17101
17109
|
/**
|
@@ -18081,25 +18089,25 @@ const CallArrangement = (props) => {
|
|
18081
18089
|
}
|
18082
18090
|
return (React__default['default'].createElement("div", { ref: containerRef, className: react.mergeStyles(containerDivStyles) },
|
18083
18091
|
React__default['default'].createElement(react.Stack, { verticalFill: true, horizontalAlign: "stretch", className: containerClassName, "data-ui-id": props.dataUiId },
|
18084
|
-
React__default['default'].createElement(react.Stack, { horizontal: true, grow: true },
|
18092
|
+
React__default['default'].createElement(react.Stack, { horizontal: true, grow: true, styles: callArrangementContainerStyles },
|
18085
18093
|
React__default['default'].createElement(react.Stack.Item, { styles: notificationsContainerStyles },
|
18086
18094
|
React__default['default'].createElement(react.Stack, { styles: bannerNotificationStyles },
|
18087
18095
|
React__default['default'].createElement(_ComplianceBanner, Object.assign({}, props.complianceBannerProps))),
|
18088
18096
|
errorBarProps !== false && (React__default['default'].createElement(react.Stack, { styles: bannerNotificationStyles },
|
18089
18097
|
React__default['default'].createElement(ErrorBar, Object.assign({}, errorBarProps)))),
|
18090
18098
|
canUnmute && !!props.mutedNotificationProps && React__default['default'].createElement(MutedNotification, Object.assign({}, props.mutedNotificationProps))),
|
18099
|
+
((_b = props.callControlProps) === null || _b === void 0 ? void 0 : _b.options) !== false &&
|
18100
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18101
|
+
!isMobileWithActivePane && (React__default['default'].createElement(react.Stack.Item, { className: callControlsContainerStyles },
|
18102
|
+
React__default['default'].createElement(CallControls, Object.assign({}, props.callControlProps, { containerWidth: containerWidth, containerHeight: containerHeight, isMobile: props.mobileView,
|
18103
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
18104
|
+
peopleButtonChecked: activePane === 'people',
|
18105
|
+
/* @conditional-compile-remove(one-to-n-calling) */
|
18106
|
+
onPeopleButtonClicked: togglePeoplePane })))),
|
18091
18107
|
React__default['default'].createElement(react.Stack.Item, { grow: true, style: callCompositeContainerFlex() },
|
18092
18108
|
React__default['default'].createElement(react.Stack.Item, { styles: callGalleryStyles, grow: true }, props.onRenderGalleryContent && (React__default['default'].createElement(react.Stack, { verticalFill: true, styles: mediaGalleryContainerStyles }, props.onRenderGalleryContent())))),
|
18093
18109
|
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18094
|
-
callPaneContent())
|
18095
|
-
((_b = props.callControlProps) === null || _b === void 0 ? void 0 : _b.options) !== false &&
|
18096
|
-
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18097
|
-
!isMobileWithActivePane && (React__default['default'].createElement(react.Stack.Item, { className: callControlsContainerStyles },
|
18098
|
-
React__default['default'].createElement(CallControls, Object.assign({}, props.callControlProps, { containerWidth: containerWidth, containerHeight: containerHeight, isMobile: props.mobileView,
|
18099
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18100
|
-
peopleButtonChecked: activePane === 'people',
|
18101
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18102
|
-
onPeopleButtonClicked: togglePeoplePane })))))));
|
18110
|
+
callPaneContent()))));
|
18103
18111
|
};
|
18104
18112
|
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18105
18113
|
const showShowPeopleTabHeaderButton$1 = (callControls) => {
|
@@ -21087,6 +21095,50 @@ const DesktopMoreButton = (props) => {
|
|
21087
21095
|
strings: moreButtonStrings, menuIconProps: { hidden: true }, menuProps: { items: moreButtonContextualMenuItems() } })));
|
21088
21096
|
};
|
21089
21097
|
|
21098
|
+
// Copyright (c) Microsoft Corporation.
|
21099
|
+
// Licensed under the MIT license.
|
21100
|
+
/**
|
21101
|
+
* @private
|
21102
|
+
*/
|
21103
|
+
const compositeOuterContainerStyles = {
|
21104
|
+
root: {
|
21105
|
+
width: '100%',
|
21106
|
+
// Create a new stacking context so that DrawerMenu can be positioned absolutely.
|
21107
|
+
position: 'relative'
|
21108
|
+
}
|
21109
|
+
};
|
21110
|
+
/** @private */
|
21111
|
+
const callCompositeContainerStyles = {
|
21112
|
+
root: {
|
21113
|
+
// Start a new stacking context so that any `position:absolute` elements
|
21114
|
+
// inside the call composite do not compete with its siblings.
|
21115
|
+
position: 'relative'
|
21116
|
+
}
|
21117
|
+
};
|
21118
|
+
/** @private */
|
21119
|
+
const controlBarContainerStyles = {
|
21120
|
+
root: {
|
21121
|
+
// Start a new stacking context so that any `position:absolute` elements
|
21122
|
+
// inside the control bar do not compete with its siblings.
|
21123
|
+
position: 'relative'
|
21124
|
+
}
|
21125
|
+
};
|
21126
|
+
/** @private */
|
21127
|
+
const hiddenAutoFocusButtonStyles = {
|
21128
|
+
root: {
|
21129
|
+
width: '0',
|
21130
|
+
height: '0',
|
21131
|
+
margin: '0',
|
21132
|
+
minHeight: '0',
|
21133
|
+
minWidth: '0',
|
21134
|
+
maxHeight: '0',
|
21135
|
+
maxWidth: '0',
|
21136
|
+
outline: 'none',
|
21137
|
+
padding: '0',
|
21138
|
+
position: 'absolute'
|
21139
|
+
}
|
21140
|
+
};
|
21141
|
+
|
21090
21142
|
// Copyright (c) Microsoft Corporation.
|
21091
21143
|
const inferCallWithChatControlOptions$1 = (mobileView, callWithChatControls) => {
|
21092
21144
|
if (callWithChatControls === false) {
|
@@ -21109,6 +21161,13 @@ const inferCallWithChatControlOptions$1 = (mobileView, callWithChatControls) =>
|
|
21109
21161
|
*/
|
21110
21162
|
const CallWithChatControlBar = (props) => {
|
21111
21163
|
var _a, _b;
|
21164
|
+
React.useEffect(() => {
|
21165
|
+
var _a;
|
21166
|
+
// On mount, button used for initial focus is hidden to prevent screen readers from announcing the initial focus
|
21167
|
+
if (document.querySelector('[data-ui-id=call-with-chat-autofocus-hidden-button]') === document.activeElement) {
|
21168
|
+
(_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.setAttribute('hidden', 'true');
|
21169
|
+
}
|
21170
|
+
}, []);
|
21112
21171
|
const theme = react.useTheme();
|
21113
21172
|
const callWithChatStrings = useCallWithChatCompositeStrings();
|
21114
21173
|
const options = inferCallWithChatControlOptions$1(props.mobileView, props.callControls);
|
@@ -21149,6 +21208,7 @@ const CallWithChatControlBar = (props) => {
|
|
21149
21208
|
React__default['default'].createElement(react.Stack.Item, { grow: true },
|
21150
21209
|
React__default['default'].createElement(CallAdapterProvider, { adapter: props.callAdapter },
|
21151
21210
|
React__default['default'].createElement(react.Stack, { horizontalAlign: "center" },
|
21211
|
+
React__default['default'].createElement(ControlBarButton, { autoFocus: true, ariaHidden: true, "data-ui-id": 'call-with-chat-autofocus-hidden-button', styles: hiddenAutoFocusButtonStyles, tabIndex: -1 }),
|
21152
21212
|
React__default['default'].createElement(react.Stack.Item, null,
|
21153
21213
|
React__default['default'].createElement(ControlBar, { layout: "horizontal", styles: centerContainerStyles },
|
21154
21214
|
isEnabled$1(options.microphoneButton) && (React__default['default'].createElement(Microphone, { displayType: options.displayType, styles: commonButtonStyles, splitButtonsForDeviceSelection: !props.mobileView,
|
@@ -21255,35 +21315,6 @@ const getDesktopEndCallButtonStyles = (theme) => {
|
|
21255
21315
|
};
|
21256
21316
|
const isEnabled$1 = (option) => option !== false;
|
21257
21317
|
|
21258
|
-
// Copyright (c) Microsoft Corporation.
|
21259
|
-
// Licensed under the MIT license.
|
21260
|
-
/**
|
21261
|
-
* @private
|
21262
|
-
*/
|
21263
|
-
const compositeOuterContainerStyles = {
|
21264
|
-
root: {
|
21265
|
-
width: '100%',
|
21266
|
-
// Create a new stacking context so that DrawerMenu can be positioned absolutely.
|
21267
|
-
position: 'relative'
|
21268
|
-
}
|
21269
|
-
};
|
21270
|
-
/** @private */
|
21271
|
-
const callCompositeContainerStyles = {
|
21272
|
-
root: {
|
21273
|
-
// Start a new stacking context so that any `position:absolute` elements
|
21274
|
-
// inside the call composite do not compete with its siblings.
|
21275
|
-
position: 'relative'
|
21276
|
-
}
|
21277
|
-
};
|
21278
|
-
/** @private */
|
21279
|
-
const controlBarContainerStyles = {
|
21280
|
-
root: {
|
21281
|
-
// Start a new stacking context so that any `position:absolute` elements
|
21282
|
-
// inside the control bar do not compete with its siblings.
|
21283
|
-
position: 'relative'
|
21284
|
-
}
|
21285
|
-
};
|
21286
|
-
|
21287
21318
|
// Copyright (c) Microsoft Corporation.
|
21288
21319
|
// Licensed under the MIT license.
|
21289
21320
|
var __awaiter$3 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|