@azure/communication-react 1.4.3-alpha-202301040014.0 → 1.4.3-alpha-202301060015.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 +2 -2
- package/dist/dist-cjs/communication-react/index.js +63 -27
- 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/UnsupportedBrowser.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js +12 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowser.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js +13 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedBrowserVersion.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.d.ts +1 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js +12 -1
- package/dist/dist-esm/react-components/src/components/UnsupportedOperatingSystem.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoTile.js +15 -16
- package/dist/dist-esm/react-components/src/components/VideoTile.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +5 -3
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js +14 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallReadinessModal.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js +11 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/ConfigurationPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/styles/ModalLocalAndRemotePIP.styles.js.map +1 -1
- package/package.json +8 -8
@@ -7838,7 +7838,7 @@ export declare interface UnsupportedBrowserProps {
|
|
7838
7838
|
/** Handler to perform an action when the help link is actioned */
|
7839
7839
|
onTroubleshootingClick?: () => void;
|
7840
7840
|
/** String overrides for the component */
|
7841
|
-
strings
|
7841
|
+
strings?: UnsupportedBrowserStrings;
|
7842
7842
|
}
|
7843
7843
|
|
7844
7844
|
/**
|
@@ -7909,7 +7909,7 @@ export declare interface UnsupportedOperatingSystemProps {
|
|
7909
7909
|
/** Handler to perform a action when the help link is actioned */
|
7910
7910
|
onTroubleshootingClick?: () => void;
|
7911
7911
|
/** String overrides for the component */
|
7912
|
-
strings
|
7912
|
+
strings?: UnsupportedOperatingSystemStrings;
|
7913
7913
|
}
|
7914
7914
|
|
7915
7915
|
/**
|
@@ -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-202301060015.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -8530,21 +8530,21 @@ const VideoTile = (props) => {
|
|
8530
8530
|
const ids = useIdentifiers();
|
8531
8531
|
const canShowLabel = showLabel && (displayName || (showMuteIndicator && isMuted));
|
8532
8532
|
const participantStateString = participantStateStringTrampoline(props, locale);
|
8533
|
-
return (React__default['default'].createElement(
|
8534
|
-
|
8535
|
-
|
8536
|
-
|
8537
|
-
|
8538
|
-
'
|
8539
|
-
|
8540
|
-
|
8541
|
-
|
8542
|
-
|
8543
|
-
|
8544
|
-
|
8545
|
-
|
8546
|
-
|
8547
|
-
|
8533
|
+
return (React__default['default'].createElement(react.Stack, Object.assign({ "data-ui-id": ids.videoTile, className: react.mergeStyles(rootStyles, {
|
8534
|
+
background: theme.palette.neutralLighter,
|
8535
|
+
borderRadius: theme.effects.roundedCorner4
|
8536
|
+
}, isSpeaking && {
|
8537
|
+
'&::before': {
|
8538
|
+
content: `''`,
|
8539
|
+
position: 'absolute',
|
8540
|
+
zIndex: 1,
|
8541
|
+
border: `0.25rem solid ${theme.palette.themePrimary}`,
|
8542
|
+
borderRadius: theme.effects.roundedCorner4,
|
8543
|
+
width: '100%',
|
8544
|
+
height: '100%'
|
8545
|
+
}
|
8546
|
+
}, styles === null || styles === void 0 ? void 0 : styles.root) }, longPressHandlersTrampoline),
|
8547
|
+
React__default['default'].createElement("div", { ref: videoTileRef, style: { width: '100%', height: '100%' } },
|
8548
8548
|
isVideoRendered ? (React__default['default'].createElement(react.Stack, { className: react.mergeStyles(videoContainerStyles, isMirrored && { transform: 'scaleX(-1)' }, styles === null || styles === void 0 ? void 0 : styles.videoContainer) }, renderElement)) : (React__default['default'].createElement(react.Stack, { className: react.mergeStyles(videoContainerStyles), style: { opacity: participantStateString ? 0.4 : 1 } }, onRenderPlaceholder ? (onRenderPlaceholder(userId !== null && userId !== void 0 ? userId : '', placeholderOptions, DefaultPlaceholder)) : (React__default['default'].createElement(DefaultPlaceholder, Object.assign({}, placeholderOptions))))),
|
8549
8549
|
(canShowLabel || participantStateString) && (React__default['default'].createElement(react.Stack, { horizontal: true, className: tileInfoContainerStyle, tokens: tileInfoContainerTokens },
|
8550
8550
|
React__default['default'].createElement(react.Stack, { horizontal: true, className: tileInfoStyle },
|
@@ -12117,7 +12117,12 @@ const UnsupportedEnvironment = (props) => {
|
|
12117
12117
|
*/
|
12118
12118
|
const UnsupportedBrowser = (props) => {
|
12119
12119
|
const { onTroubleshootingClick, strings } = props;
|
12120
|
-
|
12120
|
+
const locale = useLocale$1();
|
12121
|
+
return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: Object.assign(Object.assign({}, unsupportedBrowserStringsTrampoline(locale)), strings) }));
|
12122
|
+
};
|
12123
|
+
const unsupportedBrowserStringsTrampoline = (locale) => {
|
12124
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
12125
|
+
return locale.strings.UnsupportedBrowser;
|
12121
12126
|
};
|
12122
12127
|
|
12123
12128
|
// Copyright (c) Microsoft Corporation.
|
@@ -12129,7 +12134,12 @@ const UnsupportedBrowser = (props) => {
|
|
12129
12134
|
*/
|
12130
12135
|
const UnsupportedBrowserVersion = (props) => {
|
12131
12136
|
const { onTroubleshootingClick, strings, onContinueAnywayClick } = props;
|
12132
|
-
|
12137
|
+
const locale = useLocale$1();
|
12138
|
+
return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: Object.assign(Object.assign({}, unsupportedBrowserVersionStringsTrampoline(locale)), strings), onContinueAnywayClick: onContinueAnywayClick }));
|
12139
|
+
};
|
12140
|
+
const unsupportedBrowserVersionStringsTrampoline = (locale) => {
|
12141
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
12142
|
+
return locale.strings.UnsupportedBrowserVersion;
|
12133
12143
|
};
|
12134
12144
|
|
12135
12145
|
// Copyright (c) Microsoft Corporation.
|
@@ -12140,7 +12150,12 @@ const UnsupportedBrowserVersion = (props) => {
|
|
12140
12150
|
*/
|
12141
12151
|
const UnsupportedOperatingSystem = (props) => {
|
12142
12152
|
const { onTroubleshootingClick, strings } = props;
|
12143
|
-
|
12153
|
+
const locale = useLocale$1();
|
12154
|
+
return (React__default['default'].createElement(UnsupportedEnvironment, { onTroubleshootingClick: onTroubleshootingClick, strings: Object.assign(Object.assign({}, unsupportedOperatingSystemStringsTrampoline(locale)), strings) }));
|
12155
|
+
};
|
12156
|
+
const unsupportedOperatingSystemStringsTrampoline = (locale) => {
|
12157
|
+
/* @conditional-compile-remove(unsupported-browser) */
|
12158
|
+
return locale.strings.UnsupportedOperatingSystem;
|
12144
12159
|
};
|
12145
12160
|
|
12146
12161
|
// Copyright (c) Microsoft Corporation.
|
@@ -17669,6 +17684,7 @@ const modalLayerHostStyle = {
|
|
17669
17684
|
width: '100%',
|
17670
17685
|
height: '100%',
|
17671
17686
|
overflow: 'hidden',
|
17687
|
+
zIndex: '100000',
|
17672
17688
|
// pointer events for layerHost set to none to make descendants interactive
|
17673
17689
|
pointerEvents: 'none'
|
17674
17690
|
};
|
@@ -19487,7 +19503,10 @@ const CallReadinessModal = (props) => {
|
|
19487
19503
|
return (React__default['default'].createElement(React__default['default'].Fragment, null, isPermissionsModalDismissed && (React__default['default'].createElement(_DrawerSurface, { onLightDismiss: onLightDismissTriggered, styles: drawerContainerStyles(DRAWER_HIGH_Z_BAND) }, modal()))));
|
19488
19504
|
}
|
19489
19505
|
else if (!mobileView && modal !== undefined) {
|
19490
|
-
return (React__default['default'].createElement(
|
19506
|
+
return (React__default['default'].createElement(_ModalClone, { styles: {
|
19507
|
+
root: { position: 'unset' },
|
19508
|
+
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
19509
|
+
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
19491
19510
|
setIsPermissionsModalDismissed(false);
|
19492
19511
|
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.9)' } } } }, modal()));
|
19493
19512
|
}
|
@@ -19562,7 +19581,10 @@ const CallReadinessModalFallBack = (props) => {
|
|
19562
19581
|
}
|
19563
19582
|
else {
|
19564
19583
|
return (React__default['default'].createElement(React__default['default'].Fragment, null,
|
19565
|
-
(checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && (React__default['default'].createElement(
|
19584
|
+
(checkPermissionModalShowing || audioState === 'prompt' || videoState === 'prompt') && (React__default['default'].createElement(_ModalClone, { styles: {
|
19585
|
+
root: { position: 'unset' },
|
19586
|
+
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
19587
|
+
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
19566
19588
|
setIsPermissionsModalDismissed(false);
|
19567
19589
|
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.9)' } } } },
|
19568
19590
|
React__default['default'].createElement(CameraAndMicrophoneSitePermissions, { appName: 'app',
|
@@ -19572,7 +19594,10 @@ const CallReadinessModalFallBack = (props) => {
|
|
19572
19594
|
onPermissionsTroubleshootingClick(permissionsState);
|
19573
19595
|
}
|
19574
19596
|
: undefined, type: "check" }))),
|
19575
|
-
!checkPermissionModalShowing && modal !== undefined && (React__default['default'].createElement(
|
19597
|
+
!checkPermissionModalShowing && modal !== undefined && (React__default['default'].createElement(_ModalClone, { styles: {
|
19598
|
+
root: { position: 'unset' },
|
19599
|
+
main: { position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }
|
19600
|
+
}, layerProps: { hostId: props.modalLayerHostId }, isOpen: isPermissionsModalDismissed, isBlocking: false, onDismiss: () => {
|
19576
19601
|
setIsPermissionsModalDismissed(false);
|
19577
19602
|
}, overlay: { styles: { root: { background: 'rgba(0,0,0,0.9)' } } } }, modal()))));
|
19578
19603
|
}
|
@@ -19585,6 +19610,7 @@ const CallReadinessModalFallBack = (props) => {
|
|
19585
19610
|
const ConfigurationPage = (props) => {
|
19586
19611
|
var _a, _b;
|
19587
19612
|
const { startCallHandler, mobileView,
|
19613
|
+
/* @conditional-compile-remove(call-readiness) */ modalLayerHostId,
|
19588
19614
|
/* @conditional-compile-remove(call-readiness) */ deviceChecks,
|
19589
19615
|
/* @conditional-compile-remove(call-readiness) */ onPermissionsTroubleshootingClick,
|
19590
19616
|
/* @conditional-compile-remove(call-readiness) */ onNetworkingTroubleShootingClick } = props;
|
@@ -19687,12 +19713,20 @@ const ConfigurationPage = (props) => {
|
|
19687
19713
|
onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick, errorBarProps: errorBarProps })),
|
19688
19714
|
/* @conditional-compile-remove(call-readiness) */
|
19689
19715
|
// show the following screen if permission API is availible (not unsupported) and videoState, audioState is assigned values
|
19690
|
-
videoState && videoState !== 'unsupported' && audioState && audioState !== 'unsupported' && (React__default['default'].createElement(CallReadinessModal
|
19716
|
+
videoState && videoState !== 'unsupported' && audioState && audioState !== 'unsupported' && (React__default['default'].createElement(CallReadinessModal
|
19717
|
+
/* @conditional-compile-remove(call-readiness) */
|
19718
|
+
, {
|
19719
|
+
/* @conditional-compile-remove(call-readiness) */
|
19720
|
+
modalLayerHostId: modalLayerHostId, mobileView: mobileView,
|
19691
19721
|
/* @conditional-compile-remove(unsupported-browser) */
|
19692
19722
|
environmentInfo: environmentInfo, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed, setIsPermissionsModalDismissed: setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick })),
|
19693
19723
|
/* @conditional-compile-remove(call-readiness) */
|
19694
19724
|
// show the following screen if permission API is not availible (unsupported) and videoState, audioState is assigned values
|
19695
|
-
videoState && audioState && (videoState === 'unsupported' || audioState === 'unsupported') && (React__default['default'].createElement(CallReadinessModalFallBack
|
19725
|
+
videoState && audioState && (videoState === 'unsupported' || audioState === 'unsupported') && (React__default['default'].createElement(CallReadinessModalFallBack
|
19726
|
+
/* @conditional-compile-remove(call-readiness) */
|
19727
|
+
, {
|
19728
|
+
/* @conditional-compile-remove(call-readiness) */
|
19729
|
+
modalLayerHostId: modalLayerHostId, mobileView: mobileView, checkPermissionModalShowing: forceShowingCheckPermissions, permissionsState: permissionsState, isPermissionsModalDismissed: isPermissionsModalDismissed,
|
19696
19730
|
/* @conditional-compile-remove(unsupported-browser) */
|
19697
19731
|
environmentInfo: environmentInfo, setIsPermissionsModalDismissed: setIsPermissionsModalDismissed, onPermissionsTroubleshootingClick: onPermissionsTroubleshootingClick })),
|
19698
19732
|
React__default['default'].createElement(react.Stack, { grow: true, horizontal: !mobileWithPreview, horizontalAlign: mobileWithPreview ? 'stretch' : 'center', verticalAlign: "center", tokens: mobileWithPreview ? configurationStackTokensMobile : configurationStackTokensDesktop },
|
@@ -20174,6 +20208,8 @@ const MainScreen = (props) => {
|
|
20174
20208
|
adapter.joinCall();
|
20175
20209
|
},
|
20176
20210
|
/* @conditional-compile-remove(call-readiness) */
|
20211
|
+
modalLayerHostId: props.modalLayerHostId,
|
20212
|
+
/* @conditional-compile-remove(call-readiness) */
|
20177
20213
|
deviceChecks: (_a = props.options) === null || _a === void 0 ? void 0 : _a.deviceChecks,
|
20178
20214
|
/* @conditional-compile-remove(call-readiness) */
|
20179
20215
|
onPermissionsTroubleshootingClick: (_b = props.options) === null || _b === void 0 ? void 0 : _b.onPermissionsTroubleshootingClick,
|
@@ -20261,7 +20297,7 @@ const CallComposite = (props) => {
|
|
20261
20297
|
React__default['default'].createElement(BaseProvider, Object.assign({}, props),
|
20262
20298
|
React__default['default'].createElement(CallAdapterProvider, { adapter: adapter },
|
20263
20299
|
React__default['default'].createElement(MainScreen, { callInvitationUrl: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: mobileView,
|
20264
|
-
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
20300
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) @conditional-compile-remove(call-readiness) */
|
20265
20301
|
modalLayerHostId: modalLayerHostId, options: options,
|
20266
20302
|
/* @conditional-compile-remove(rooms) */
|
20267
20303
|
roleHint: roleHint }),
|
@@ -20273,8 +20309,8 @@ const CallComposite = (props) => {
|
|
20273
20309
|
// Warning: this is fragile and works because the call arrangement page is only rendered after the call has connected and thus this
|
20274
20310
|
// LayerHost will be guaranteed to have rendered (and subsequently mounted in the DOM). This ensures the DOM element will be available
|
20275
20311
|
// before the call to `document.getElementById(modalLayerHostId)` is made.
|
20276
|
-
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
20277
|
-
|
20312
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) @conditional-compile-remove(call-readiness) */
|
20313
|
+
React__default['default'].createElement(react.LayerHost, { id: modalLayerHostId, className: react.mergeStyles(modalLayerHostStyle) })))));
|
20278
20314
|
};
|
20279
20315
|
const holdPageTrampoline = () => {
|
20280
20316
|
/* @conditional-compile-remove(one-to-n-calling) */
|