@azure/communication-react 1.3.3-alpha-202210070024.0 → 1.3.3-alpha-202210130020.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/communication-react.d.ts +14 -1
- package/dist/dist-cjs/communication-react/index.js +40 -8
- 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/RemoteVideoTile.js +3 -2
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +11 -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/CallAdapter.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js +2 -1
- 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/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/pages/UnsupportedBrowser.d.ts +13 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js +26 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/UnsupportedBrowser.js.map +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/utils/Utils.d.ts +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.js +4 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +5 -0
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
- package/package.json +8 -8
@@ -1142,6 +1142,19 @@ export declare type CallCompositeOptions = {
|
|
1142
1142
|
* if this is not supplied, the composite will not show a 'network troubleshooting' link.
|
1143
1143
|
*/
|
1144
1144
|
onNetworkingTroubleShootingClick?: () => void;
|
1145
|
+
/**
|
1146
|
+
* Callback you may provide to supply users with a provided page to showcase supported browsers by ACS.
|
1147
|
+
*
|
1148
|
+
* @example
|
1149
|
+
* ```ts
|
1150
|
+
* onBrowserTroubleShootingClick?: () =>
|
1151
|
+
* window.open('https://contoso.com/browser-troubleshooting', '_blank');
|
1152
|
+
* ```
|
1153
|
+
*
|
1154
|
+
* @remarks
|
1155
|
+
* if this is not supplied, the composite will not show a unsupported browser page.
|
1156
|
+
*/
|
1157
|
+
onEnvironmentInfoTroubleshootingClick?: () => void;
|
1145
1158
|
};
|
1146
1159
|
|
1147
1160
|
/**
|
@@ -1149,7 +1162,7 @@ export declare type CallCompositeOptions = {
|
|
1149
1162
|
*
|
1150
1163
|
* @public
|
1151
1164
|
*/
|
1152
|
-
export declare type CallCompositePage = 'accessDeniedTeamsMeeting' | 'call' | 'configuration' | /* @conditional-compile-remove(PSTN-calls) */ 'hold' | 'joinCallFailedDueToNoNetwork' | 'leftCall' | 'lobby' | /* @conditional-compile-remove(rooms) */ 'deniedPermissionToRoom' | 'removedFromCall' | /* @conditional-compile-remove(rooms) */ 'roomNotFound';
|
1165
|
+
export declare type CallCompositePage = 'accessDeniedTeamsMeeting' | 'call' | 'configuration' | /* @conditional-compile-remove(PSTN-calls) */ 'hold' | 'joinCallFailedDueToNoNetwork' | 'leftCall' | 'lobby' | /* @conditional-compile-remove(rooms) */ 'deniedPermissionToRoom' | 'removedFromCall' | /* @conditional-compile-remove(rooms) */ 'roomNotFound' | /* @conditional-compile-remove(unsupported-browser) */ 'unsupportedEnvironment';
|
1153
1166
|
|
1154
1167
|
/**
|
1155
1168
|
* Props for {@link CallComposite}.
|
@@ -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.3.3-alpha-
|
205
|
+
var telemetryVersion = '1.3.3-alpha-202210130020.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -5155,6 +5155,7 @@ const _RemoteVideoTile = React__default['default'].memo((props) => {
|
|
5155
5155
|
]);
|
5156
5156
|
// Handle creating, destroying and updating the video stream as necessary
|
5157
5157
|
useRemoteVideoStreamLifecycleMaintainer(remoteVideoStreamProps);
|
5158
|
+
const showLoadingIndicator = isAvailable && isReceiving === false && props.participantState !== 'Disconnected';
|
5158
5159
|
const renderVideoStreamElement = React.useMemo(() => {
|
5159
5160
|
// Checking if renderElement is well defined or not as calling SDK has a number of video streams limitation which
|
5160
5161
|
// implies that, after their threshold, all streams have no child (blank video)
|
@@ -5162,8 +5163,8 @@ const _RemoteVideoTile = React__default['default'].memo((props) => {
|
|
5162
5163
|
// Returning `undefined` results in the placeholder with avatar being shown
|
5163
5164
|
return undefined;
|
5164
5165
|
}
|
5165
|
-
return (React__default['default'].createElement(StreamMedia, { videoStreamElement: renderElement, loadingState:
|
5166
|
-
}, [renderElement,
|
5166
|
+
return (React__default['default'].createElement(StreamMedia, { videoStreamElement: renderElement, loadingState: showLoadingIndicator ? 'loading' : 'none' }));
|
5167
|
+
}, [renderElement, showLoadingIndicator]);
|
5167
5168
|
return (React__default['default'].createElement(VideoTile, { key: userId, userId: userId, renderElement: renderVideoStreamElement, displayName: displayName, onRenderPlaceholder: onRenderAvatar, isMuted: isMuted, isSpeaking: isSpeaking, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize, showLabel: props.showLabel,
|
5168
5169
|
/* @conditional-compile-remove(one-to-n-calling) */
|
5169
5170
|
/* @conditional-compile-remove(PSTN-calls) */
|
@@ -14789,7 +14790,8 @@ const END_CALL_PAGES = [
|
|
14789
14790
|
'leftCall',
|
14790
14791
|
/* @conditional-compile-remove(rooms) */ 'deniedPermissionToRoom',
|
14791
14792
|
'removedFromCall',
|
14792
|
-
/* @conditional-compile-remove(rooms) */ 'roomNotFound'
|
14793
|
+
/* @conditional-compile-remove(rooms) */ 'roomNotFound',
|
14794
|
+
/* @conditional-compile-remove(unsupported-browser) */ 'unsupportedEnvironment'
|
14793
14795
|
];
|
14794
14796
|
|
14795
14797
|
// Copyright (c) Microsoft Corporation.
|
@@ -15682,7 +15684,7 @@ const CallControls = (props) => {
|
|
15682
15684
|
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) })),
|
15683
15685
|
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) })),
|
15684
15686
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
15685
|
-
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:
|
15687
|
+
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' })),
|
15686
15688
|
customButtons['primary'],
|
15687
15689
|
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 })))));
|
15688
15690
|
};
|
@@ -16229,6 +16231,11 @@ const themedDialpadStyle = (isMobile, theme) => ({
|
|
16229
16231
|
}
|
16230
16232
|
}
|
16231
16233
|
},
|
16234
|
+
deleteIcon: {
|
16235
|
+
root: {
|
16236
|
+
backgroundColor: theme.palette.white
|
16237
|
+
}
|
16238
|
+
},
|
16232
16239
|
digit: {
|
16233
16240
|
color: theme.palette.themeDarkAlt
|
16234
16241
|
}
|
@@ -17983,6 +17990,23 @@ const HoldPage = (props) => {
|
|
17983
17990
|
modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => React__default['default'].createElement(HoldPane, null), dataUiId: 'hold-page' }));
|
17984
17991
|
};
|
17985
17992
|
|
17993
|
+
// Copyright (c) Microsoft Corporation.
|
17994
|
+
/**
|
17995
|
+
*
|
17996
|
+
* @internal
|
17997
|
+
*/
|
17998
|
+
const UnsupportedBrowserPage = (props) => {
|
17999
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18000
|
+
const { onTroubleshootingClick } = props;
|
18001
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18002
|
+
const locale = useLocale();
|
18003
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18004
|
+
const unsupportedBrowserStrings = locale.component.strings.UnsupportedBrowser;
|
18005
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18006
|
+
return (React__default['default'].createElement(react.Stack, { styles: { root: { margin: 'auto', paddingTop: '3rem' } } },
|
18007
|
+
React__default['default'].createElement(UnsupportedBrowser, { onTroubleShootingClick: onTroubleshootingClick, strings: unsupportedBrowserStrings })));
|
18008
|
+
};
|
18009
|
+
|
17986
18010
|
// Copyright (c) Microsoft Corporation.
|
17987
18011
|
// Licensed under the MIT license.
|
17988
18012
|
var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
@@ -17995,7 +18019,7 @@ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
17995
18019
|
});
|
17996
18020
|
};
|
17997
18021
|
const MainScreen = (props) => {
|
17998
|
-
var _a;
|
18022
|
+
var _a, _b, _c;
|
17999
18023
|
const { callInvitationUrl, onRenderAvatar, onFetchAvatarPersonaData, onFetchParticipantMenuItems } = props;
|
18000
18024
|
const page = useSelector$1(getPage);
|
18001
18025
|
const adapter = useAdapter();
|
@@ -18045,6 +18069,9 @@ const MainScreen = (props) => {
|
|
18045
18069
|
pageElement = (React__default['default'].createElement(React__default['default'].Fragment, null,
|
18046
18070
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ React__default['default'].createElement(HoldPage, { mobileView: props.mobileView, modalLayerHostId: props.modalLayerHostId, options: props.options })));
|
18047
18071
|
break;
|
18072
|
+
case unsupportedEnvironmentPageTrampoline():
|
18073
|
+
pageElement = (React__default['default'].createElement(React__default['default'].Fragment, null,
|
18074
|
+
/* @conditional-compile-remove(unsupported-browser) */ ((_b = props.options) === null || _b === void 0 ? void 0 : _b.onEnvironmentInfoTroubleshootingClick) && (React__default['default'].createElement(UnsupportedBrowserPage, { onTroubleshootingClick: (_c = props.options) === null || _c === void 0 ? void 0 : _c.onEnvironmentInfoTroubleshootingClick }))));
|
18048
18075
|
}
|
18049
18076
|
if (!pageElement) {
|
18050
18077
|
throw new Error('Invalid call composite page');
|
@@ -18137,6 +18164,10 @@ const holdPageTrampoline = () => {
|
|
18137
18164
|
/* @conditional-compile-remove(PSTN-calls) */
|
18138
18165
|
return 'hold';
|
18139
18166
|
};
|
18167
|
+
const unsupportedEnvironmentPageTrampoline = () => {
|
18168
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18169
|
+
return 'unsupportedEnvironment';
|
18170
|
+
};
|
18140
18171
|
|
18141
18172
|
/**
|
18142
18173
|
* @private
|
@@ -20002,8 +20033,9 @@ const CallWithChatComposite = (props) => {
|
|
20002
20033
|
};
|
20003
20034
|
const hasJoinedCallFn = (page, callStatus) => {
|
20004
20035
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(one-to-n-calling) */
|
20005
|
-
return ((page === 'call' &&
|
20006
|
-
(
|
20036
|
+
return ((page === 'call' &&
|
20037
|
+
(callStatus === 'Connected' || callStatus === 'RemoteHold' || callStatus === 'Disconnecting')) ||
|
20038
|
+
(page === 'hold' && (callStatus === 'LocalHold' || callStatus === 'Disconnecting')));
|
20007
20039
|
};
|
20008
20040
|
const showShowChatTabHeaderButton = (callControls) => {
|
20009
20041
|
if (callControls === undefined || callControls === true) {
|