@azure/communication-react 1.3.3-alpha-202210070024.0 → 1.3.3-alpha-202210080019.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 +29 -4
- 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-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/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-202210080019.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -14789,7 +14789,8 @@ const END_CALL_PAGES = [
|
|
14789
14789
|
'leftCall',
|
14790
14790
|
/* @conditional-compile-remove(rooms) */ 'deniedPermissionToRoom',
|
14791
14791
|
'removedFromCall',
|
14792
|
-
/* @conditional-compile-remove(rooms) */ 'roomNotFound'
|
14792
|
+
/* @conditional-compile-remove(rooms) */ 'roomNotFound',
|
14793
|
+
/* @conditional-compile-remove(unsupported-browser) */ 'unsupportedEnvironment'
|
14793
14794
|
];
|
14794
14795
|
|
14795
14796
|
// Copyright (c) Microsoft Corporation.
|
@@ -15682,7 +15683,7 @@ const CallControls = (props) => {
|
|
15682
15683
|
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
15684
|
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
15685
|
/* @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:
|
15686
|
+
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
15687
|
customButtons['primary'],
|
15687
15688
|
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
15689
|
};
|
@@ -17983,6 +17984,23 @@ const HoldPage = (props) => {
|
|
17983
17984
|
modalLayerHostId: props.modalLayerHostId, onRenderGalleryContent: () => React__default['default'].createElement(HoldPane, null), dataUiId: 'hold-page' }));
|
17984
17985
|
};
|
17985
17986
|
|
17987
|
+
// Copyright (c) Microsoft Corporation.
|
17988
|
+
/**
|
17989
|
+
*
|
17990
|
+
* @internal
|
17991
|
+
*/
|
17992
|
+
const UnsupportedBrowserPage = (props) => {
|
17993
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
17994
|
+
const { onTroubleshootingClick } = props;
|
17995
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
17996
|
+
const locale = useLocale();
|
17997
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
17998
|
+
const unsupportedBrowserStrings = locale.component.strings.UnsupportedBrowser;
|
17999
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18000
|
+
return (React__default['default'].createElement(react.Stack, { styles: { root: { margin: 'auto', paddingTop: '3rem' } } },
|
18001
|
+
React__default['default'].createElement(UnsupportedBrowser, { onTroubleShootingClick: onTroubleshootingClick, strings: unsupportedBrowserStrings })));
|
18002
|
+
};
|
18003
|
+
|
17986
18004
|
// Copyright (c) Microsoft Corporation.
|
17987
18005
|
// Licensed under the MIT license.
|
17988
18006
|
var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
@@ -17995,7 +18013,7 @@ var __awaiter$5 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
17995
18013
|
});
|
17996
18014
|
};
|
17997
18015
|
const MainScreen = (props) => {
|
17998
|
-
var _a;
|
18016
|
+
var _a, _b, _c;
|
17999
18017
|
const { callInvitationUrl, onRenderAvatar, onFetchAvatarPersonaData, onFetchParticipantMenuItems } = props;
|
18000
18018
|
const page = useSelector$1(getPage);
|
18001
18019
|
const adapter = useAdapter();
|
@@ -18045,6 +18063,9 @@ const MainScreen = (props) => {
|
|
18045
18063
|
pageElement = (React__default['default'].createElement(React__default['default'].Fragment, null,
|
18046
18064
|
/* @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
18065
|
break;
|
18066
|
+
case unsupportedEnvironmentPageTrampoline():
|
18067
|
+
pageElement = (React__default['default'].createElement(React__default['default'].Fragment, null,
|
18068
|
+
/* @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
18069
|
}
|
18049
18070
|
if (!pageElement) {
|
18050
18071
|
throw new Error('Invalid call composite page');
|
@@ -18137,6 +18158,10 @@ const holdPageTrampoline = () => {
|
|
18137
18158
|
/* @conditional-compile-remove(PSTN-calls) */
|
18138
18159
|
return 'hold';
|
18139
18160
|
};
|
18161
|
+
const unsupportedEnvironmentPageTrampoline = () => {
|
18162
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
18163
|
+
return 'unsupportedEnvironment';
|
18164
|
+
};
|
18140
18165
|
|
18141
18166
|
/**
|
18142
18167
|
* @private
|