@azure/communication-react 1.14.0-beta.1 → 1.14.0-beta.2
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 +78 -0
- package/dist/dist-cjs/communication-react/index.js +29 -12
- 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 +39 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +6 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +9 -4
- 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 +39 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +13 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/package.json +1 -1
@@ -1540,6 +1540,45 @@ export declare type CallCompositeOptions = {
|
|
1540
1540
|
*/
|
1541
1541
|
layout?: VideoGalleryLayout;
|
1542
1542
|
};
|
1543
|
+
/**
|
1544
|
+
* Options for setting additional customizations related to personalized branding.
|
1545
|
+
*/
|
1546
|
+
branding?: {
|
1547
|
+
/**
|
1548
|
+
* Logo displayed on the configuration page.
|
1549
|
+
*/
|
1550
|
+
logo?: {
|
1551
|
+
/**
|
1552
|
+
* URL for the logo image.
|
1553
|
+
*
|
1554
|
+
* @remarks
|
1555
|
+
* Recommended size is 80x80 pixels.
|
1556
|
+
*/
|
1557
|
+
url: string;
|
1558
|
+
/**
|
1559
|
+
* Alt text for the logo image.
|
1560
|
+
*/
|
1561
|
+
alt?: string;
|
1562
|
+
/**
|
1563
|
+
* The logo can be displayed as a circle.
|
1564
|
+
*
|
1565
|
+
* @defaultValue 'unset'
|
1566
|
+
*/
|
1567
|
+
shape?: 'unset' | 'circle';
|
1568
|
+
};
|
1569
|
+
/**
|
1570
|
+
* Background image displayed on the configuration page.
|
1571
|
+
*/
|
1572
|
+
backgroundImage?: {
|
1573
|
+
/**
|
1574
|
+
* URL for the background image.
|
1575
|
+
*
|
1576
|
+
* @remarks
|
1577
|
+
* Background image should be larger than 576x567 pixels and smaller than 2048x2048 pixels pixels.
|
1578
|
+
*/
|
1579
|
+
url: string;
|
1580
|
+
};
|
1581
|
+
};
|
1543
1582
|
};
|
1544
1583
|
|
1545
1584
|
/**
|
@@ -3234,6 +3273,45 @@ export declare type CallWithChatCompositeOptions = {
|
|
3234
3273
|
*/
|
3235
3274
|
layout?: VideoGalleryLayout;
|
3236
3275
|
};
|
3276
|
+
/**
|
3277
|
+
* Options for setting additional customizations related to personalized branding.
|
3278
|
+
*/
|
3279
|
+
branding?: {
|
3280
|
+
/**
|
3281
|
+
* Logo displayed on the configuration page.
|
3282
|
+
*/
|
3283
|
+
logo?: {
|
3284
|
+
/**
|
3285
|
+
* URL for the logo image.
|
3286
|
+
*
|
3287
|
+
* @remarks
|
3288
|
+
* Recommended size is 80x80 pixels.
|
3289
|
+
*/
|
3290
|
+
url: string;
|
3291
|
+
/**
|
3292
|
+
* Alt text for the logo image.
|
3293
|
+
*/
|
3294
|
+
alt?: string;
|
3295
|
+
/**
|
3296
|
+
* The logo can be displayed as a circle.
|
3297
|
+
*
|
3298
|
+
* @defaultValue 'unset'
|
3299
|
+
*/
|
3300
|
+
shape?: 'unset' | 'circle';
|
3301
|
+
};
|
3302
|
+
/**
|
3303
|
+
* Background image displayed on the configuration page.
|
3304
|
+
*/
|
3305
|
+
backgroundImage?: {
|
3306
|
+
/**
|
3307
|
+
* URL for the background image.
|
3308
|
+
*
|
3309
|
+
* @remarks
|
3310
|
+
* Background image should be larger than 576x567 pixels and smaller than 2048x2048 pixels pixels.
|
3311
|
+
*/
|
3312
|
+
url: string;
|
3313
|
+
};
|
3314
|
+
};
|
3237
3315
|
};
|
3238
3316
|
|
3239
3317
|
/**
|
@@ -167,7 +167,7 @@ function getDefaultExportFromCjs (x) {
|
|
167
167
|
// Copyright (c) Microsoft Corporation.
|
168
168
|
// Licensed under the MIT License.
|
169
169
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
170
|
-
var telemetryVersion = '1.14.0-beta.
|
170
|
+
var telemetryVersion = '1.14.0-beta.2';
|
171
171
|
|
172
172
|
|
173
173
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -29858,7 +29858,7 @@ var __awaiter$9 = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
29858
29858
|
* @private
|
29859
29859
|
*/
|
29860
29860
|
const ConfigurationPage = (props) => {
|
29861
|
-
var _a, _b, _c;
|
29861
|
+
var _a, _b, _c, _d;
|
29862
29862
|
const { startCallHandler, mobileView, modalLayerHostId,
|
29863
29863
|
/* @conditional-compile-remove(call-readiness) */ deviceChecks,
|
29864
29864
|
/* @conditional-compile-remove(call-readiness) */ onPermissionsTroubleshootingClick,
|
@@ -29948,7 +29948,10 @@ const ConfigurationPage = (props) => {
|
|
29948
29948
|
hostId: modalLayerHostId
|
29949
29949
|
}), [modalLayerHostId]);
|
29950
29950
|
const filteredErrorBarProps = React.useMemo(() => (Object.assign(Object.assign({}, errorBarProps), { activeErrorMessages: filteredLatestErrors })), [errorBarProps, filteredLatestErrors]);
|
29951
|
-
const containerStyles = React.useMemo(() =>
|
29951
|
+
const containerStyles = React.useMemo(() => {
|
29952
|
+
var _a;
|
29953
|
+
return configurationContainerStyle(!mobileView, /* @conditional-compile-remove(custom-branding) */ (_a = props.backgroundImage) === null || _a === void 0 ? void 0 : _a.url);
|
29954
|
+
}, [mobileView, /* @conditional-compile-remove(custom-branding) */ (_d = props.backgroundImage) === null || _d === void 0 ? void 0 : _d.url]);
|
29952
29955
|
return React.createElement(react.Stack, { styles: containerStyles },
|
29953
29956
|
React.createElement(react.Stack, { styles: bannerNotificationStyles },
|
29954
29957
|
React.createElement(ConfigurationPageErrorBar
|
@@ -29970,9 +29973,11 @@ const ConfigurationPage = (props) => {
|
|
29970
29973
|
/* @conditional-compile-remove(call-readiness) */ modalLayerHostId: modalLayerHostId, mobileView: mobileView, checkPermissionModalShowing: forceShowingCheckPermissions, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed,
|
29971
29974
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: environmentInfo, setIsPermissionsModalDismissed: setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick }),
|
29972
29975
|
React.createElement(react.Stack, { verticalFill: true, grow: true, horizontal: true, className: fillWidth },
|
29973
|
-
React.createElement(react.Stack, { className: configurationCenteredContent(mobileWithPreview), verticalAlign: "center", verticalFill: mobileWithPreview, tokens: mobileWithPreview ? configurationStackTokensMobile : configurationStackTokensDesktop },
|
29976
|
+
React.createElement(react.Stack, { className: configurationCenteredContent(mobileWithPreview, /* @conditional-compile-remove(custom-branding) */ !!props.logo), verticalAlign: "center", verticalFill: mobileWithPreview, tokens: mobileWithPreview ? configurationStackTokensMobile : configurationStackTokensDesktop },
|
29974
29977
|
React.createElement(react.Stack.Item, { styles: callDetailsContainerStyles },
|
29975
|
-
React.createElement(Logo
|
29978
|
+
React.createElement(Logo
|
29979
|
+
/* @conditional-compile-remove(custom-branding) */ , {
|
29980
|
+
/* @conditional-compile-remove(custom-branding) */ logo: props.logo }),
|
29976
29981
|
title,
|
29977
29982
|
callDescription),
|
29978
29983
|
React.createElement(react.Stack, { horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalFill: mobileWithPreview, tokens: deviceConfigurationStackTokens },
|
@@ -30765,7 +30770,7 @@ const isShowing = (overrideSidePane) => {
|
|
30765
30770
|
return !!(overrideSidePane === null || overrideSidePane === void 0 ? void 0 : overrideSidePane.isActive);
|
30766
30771
|
};
|
30767
30772
|
const MainScreen = (props) => {
|
30768
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
30773
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
30769
30774
|
const adapter = useAdapter();
|
30770
30775
|
const { camerasCount, microphonesCount } = useSelector$1(deviceCountSelector);
|
30771
30776
|
const hasCameras = camerasCount > 0;
|
@@ -30855,7 +30860,9 @@ const MainScreen = (props) => {
|
|
30855
30860
|
/* @conditional-compile-remove(call-readiness) */ deviceChecks: (_d = props.options) === null || _d === void 0 ? void 0 : _d.deviceChecks,
|
30856
30861
|
/* @conditional-compile-remove(call-readiness) */ onPermissionsTroubleshootingClick: (_e = props.options) === null || _e === void 0 ? void 0 : _e.onPermissionsTroubleshootingClick,
|
30857
30862
|
/* @conditional-compile-remove(call-readiness) */ onNetworkingTroubleShootingClick: (_f = props.options) === null || _f === void 0 ? void 0 : _f.onNetworkingTroubleShootingClick,
|
30858
|
-
/* @conditional-compile-remove(capabilities) */ capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps
|
30863
|
+
/* @conditional-compile-remove(capabilities) */ capabilitiesChangedNotificationBarProps: capabilitiesChangedNotificationBarProps,
|
30864
|
+
/* @conditional-compile-remove(custom-branding) */ logo: (_h = (_g = props.options) === null || _g === void 0 ? void 0 : _g.branding) === null || _h === void 0 ? void 0 : _h.logo,
|
30865
|
+
/* @conditional-compile-remove(custom-branding) */ backgroundImage: (_k = (_j = props.options) === null || _j === void 0 ? void 0 : _j.branding) === null || _k === void 0 ? void 0 : _k.backgroundImage });
|
30859
30866
|
break;
|
30860
30867
|
case 'accessDeniedTeamsMeeting':
|
30861
30868
|
pageElement = React.createElement(NoticePage, { iconName: "NoticePageAccessDeniedTeamsMeeting", title: locale.strings.call.failedToJoinTeamsMeetingReasonAccessDeniedTitle, moreDetails: locale.strings.call.failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails, dataUiId: 'access-denied-teams-meeting-page' });
|
@@ -30867,7 +30874,7 @@ const MainScreen = (props) => {
|
|
30867
30874
|
pageElement = React.createElement(NoticePage, { iconName: "NoticePageJoinCallFailedDueToNoNetwork", title: locale.strings.call.failedToJoinCallDueToNoNetworkTitle, moreDetails: locale.strings.call.failedToJoinCallDueToNoNetworkMoreDetails, dataUiId: 'join-call-failed-due-to-no-network-page' });
|
30868
30875
|
break;
|
30869
30876
|
case 'leaving':
|
30870
|
-
pageElement = React.createElement(NoticePage, { title: (
|
30877
|
+
pageElement = React.createElement(NoticePage, { title: (_l = locale.strings.call.leavingCallTitle) !== null && _l !== void 0 ? _l : 'Leaving...', dataUiId: 'leaving-page', pageStyle: leavePageStyle, disableStartCallButton: true });
|
30871
30878
|
break;
|
30872
30879
|
case 'leftCall':
|
30873
30880
|
{
|
@@ -30902,7 +30909,7 @@ const MainScreen = (props) => {
|
|
30902
30909
|
/* @conditional-compile-remove(unsupported-browser) */
|
30903
30910
|
switch (page) {
|
30904
30911
|
case 'unsupportedEnvironment':
|
30905
|
-
pageElement = React.createElement(React.Fragment, null, /* @conditional-compile-remove(unsupported-browser) */ React.createElement(UnsupportedBrowserPage, { onTroubleshootingClick: (
|
30912
|
+
pageElement = React.createElement(React.Fragment, null, /* @conditional-compile-remove(unsupported-browser) */ React.createElement(UnsupportedBrowserPage, { onTroubleshootingClick: (_m = props.options) === null || _m === void 0 ? void 0 : _m.onEnvironmentInfoTroubleshootingClick, environmentInfo: adapter.getState().environmentInfo }));
|
30906
30913
|
break;
|
30907
30914
|
}
|
30908
30915
|
if (!pageElement) {
|
@@ -33068,14 +33075,21 @@ const CallWithChatScreen = (props) => {
|
|
33068
33075
|
/* @conditional-compile-remove(gallery-layouts) */
|
33069
33076
|
galleryOptions: props.galleryOptions,
|
33070
33077
|
/* @conditional-compile-remove(click-to-call) */
|
33071
|
-
localVideoTile: props.localVideoTile
|
33078
|
+
localVideoTile: props.localVideoTile,
|
33079
|
+
/* @conditional-compile-remove(custom-branding) */
|
33080
|
+
branding: {
|
33081
|
+
logo: props.logo,
|
33082
|
+
backgroundImage: props.backgroundImage
|
33083
|
+
}
|
33072
33084
|
}), [props.callControls, callControlOptionsFromProps, showChatButton, customChatButton, injectedCustomButtonsFromProps, /* @conditional-compile-remove(call-readiness) */
|
33073
33085
|
props.deviceChecks, /* @conditional-compile-remove(unsupported-browser) */
|
33074
33086
|
props.onEnvironmentInfoTroubleshootingClick, /* @conditional-compile-remove(call-readiness) */
|
33075
33087
|
props.onNetworkingTroubleShootingClick, /* @conditional-compile-remove(call-readiness) */
|
33076
33088
|
props.onPermissionsTroubleshootingClick, /* @conditional-compile-remove(gallery-layouts) */
|
33077
33089
|
props.galleryOptions, /* @conditional-compile-remove(click-to-call) */
|
33078
|
-
props.localVideoTile, props.remoteVideoTileMenuOptions
|
33090
|
+
props.localVideoTile, props.remoteVideoTileMenuOptions, /* @conditional-compile-remove(custom-branding) */
|
33091
|
+
props.logo, /* @conditional-compile-remove(custom-branding) */
|
33092
|
+
props.backgroundImage]);
|
33079
33093
|
const onRenderChatContent = React.useCallback(() => React.createElement(ChatComposite, { adapter: chatAdapter, fluentTheme: theme, options: {
|
33080
33094
|
topic: false,
|
33081
33095
|
/* @conditional-compile-remove(chat-composite-participant-pane) */
|
@@ -33120,13 +33134,16 @@ const CallWithChatScreen = (props) => {
|
|
33120
33134
|
* @public
|
33121
33135
|
*/
|
33122
33136
|
const CallWithChatComposite = (props) => {
|
33137
|
+
var _a, _b;
|
33123
33138
|
const { adapter, fluentTheme, rtl, formFactor, joinInvitationURL, options } = props;
|
33124
33139
|
return React.createElement(BaseProvider, { fluentTheme: fluentTheme, rtl: rtl, locale: props.locale, icons: props.icons },
|
33125
33140
|
React.createElement(CallWithChatScreen, Object.assign({}, props, {
|
33126
33141
|
/* @conditional-compile-remove(call-readiness) */ 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, remoteVideoTileMenuOptions: options === null || options === void 0 ? void 0 : options.remoteVideoTileMenuOptions,
|
33127
33142
|
/* @conditional-compile-remove(file-sharing) */ fileSharing: options === null || options === void 0 ? void 0 : options.fileSharing,
|
33128
33143
|
/* @conditional-compile-remove(click-to-call) */ localVideoTile: options === null || options === void 0 ? void 0 : options.localVideoTile,
|
33129
|
-
/* @conditional-compile-remove(gallery-layouts) */ galleryOptions: options === null || options === void 0 ? void 0 : options.galleryOptions
|
33144
|
+
/* @conditional-compile-remove(gallery-layouts) */ galleryOptions: options === null || options === void 0 ? void 0 : options.galleryOptions,
|
33145
|
+
/* @conditional-compile-remove(custom-branding) */ logo: (_a = options === null || options === void 0 ? void 0 : options.branding) === null || _a === void 0 ? void 0 : _a.logo,
|
33146
|
+
/* @conditional-compile-remove(custom-branding) */ backgroundImage: (_b = options === null || options === void 0 ? void 0 : options.branding) === null || _b === void 0 ? void 0 : _b.backgroundImage })));
|
33130
33147
|
};
|
33131
33148
|
const hasJoinedCallFn = (page, callStatus) => {
|
33132
33149
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(one-to-n-calling) */
|