@azure/communication-react 1.4.2-alpha-202211050017.0 → 1.4.2-alpha-202211080016.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 +21 -19
- 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/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +8 -8
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js +14 -12
- 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/CallControls.js +4 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/AddPeopleButton.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ParticipantContainer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SidePaneHeader.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/TabHeader.d.ts +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/TabHeader.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.2-alpha-
|
205
|
+
var telemetryVersion = '1.4.2-alpha-202211080016.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -15062,7 +15062,7 @@ const ParticipantListWithHeading = (props) => {
|
|
15062
15062
|
}), [theme.palette.neutralSecondary, theme.fonts.smallPlus.fontSize, props.isMobile]);
|
15063
15063
|
return (React__default['default'].createElement(react.Stack, { className: participantListStack },
|
15064
15064
|
React__default['default'].createElement(react.Stack.Item, { styles: subheadingStyleThemed }, title),
|
15065
|
-
React__default['default'].createElement(react.FocusZone, { className: participantListContainerStyle },
|
15065
|
+
React__default['default'].createElement(react.FocusZone, { className: participantListContainerStyle, shouldFocusOnMount: true },
|
15066
15066
|
React__default['default'].createElement(ParticipantList, Object.assign({}, participantListProps, { styles: props.isMobile ? participantListMobileStyle : participantListStyle, onRenderAvatar: (userId, options) => (React__default['default'].createElement(React__default['default'].Fragment, null,
|
15067
15067
|
React__default['default'].createElement(AvatarPersona, Object.assign({ "data-ui-id": "chat-composite-participant-custom-avatar", userId: userId }, options, { hidePersonaDetails: !!(options === null || options === void 0 ? void 0 : options.text) }, { dataProvider: onFetchAvatarPersonaData })),
|
15068
15068
|
(options === null || options === void 0 ? void 0 : options.text) && (React__default['default'].createElement(react.Text, { nowrap: true, styles: displayNameStyles }, options === null || options === void 0 ? void 0 : options.text)))), onFetchParticipantMenuItems: onFetchParticipantMenuItems, showParticipantOverflowTooltip: !props.isMobile })))));
|
@@ -16131,9 +16131,9 @@ const controlBarStyles = react.memoizeFunction((background) => ({ root: { backgr
|
|
16131
16131
|
*/
|
16132
16132
|
const CallControls = (props) => {
|
16133
16133
|
const options = React.useMemo(() => (typeof props.options === 'boolean' ? {} : props.options), [props.options]);
|
16134
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
16134
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
16135
16135
|
const localeStrings = useLocale();
|
16136
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
16136
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
16137
16137
|
const peopleButtonStrings = React.useMemo(() => ({
|
16138
16138
|
label: localeStrings.strings.call.peopleButtonLabel,
|
16139
16139
|
tooltipOffContent: localeStrings.strings.call.peopleButtonTooltipOpen,
|
@@ -17226,7 +17226,7 @@ const CallPane = (props) => {
|
|
17226
17226
|
const localeStrings = useLocale();
|
17227
17227
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
17228
17228
|
const getStrings = () => {
|
17229
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17229
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17230
17230
|
return localeStrings.strings.call;
|
17231
17231
|
};
|
17232
17232
|
const strings = getStrings();
|
@@ -17316,23 +17316,23 @@ const CallArrangement = (props) => {
|
|
17316
17316
|
const containerRef = React.useRef(null);
|
17317
17317
|
const containerWidth = _useContainerWidth(containerRef);
|
17318
17318
|
const containerHeight = _useContainerHeight(containerRef);
|
17319
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17319
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17320
17320
|
const adapter = useAdapter();
|
17321
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17321
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17322
17322
|
const { activePane, closePane, openPeoplePane, togglePeoplePane } = useSidePaneState();
|
17323
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17323
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17324
17324
|
const isMobileWithActivePane = props.mobileView && activePane;
|
17325
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17325
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17326
17326
|
const callCompositeContainerCSS = React.useMemo(() => {
|
17327
17327
|
return { display: isMobileWithActivePane ? 'none' : 'flex' };
|
17328
17328
|
}, [isMobileWithActivePane]);
|
17329
17329
|
// To be removed once feature is out of beta, replace with callCompositeContainerCSS
|
17330
17330
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
17331
17331
|
const callCompositeContainerFlex = () => {
|
17332
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17332
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17333
17333
|
return callCompositeContainerCSS;
|
17334
17334
|
};
|
17335
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17335
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17336
17336
|
const callPaneContent = React.useCallback(() => {
|
17337
17337
|
var _a;
|
17338
17338
|
if (adapter && activePane === 'people') {
|
@@ -17373,16 +17373,18 @@ const CallArrangement = (props) => {
|
|
17373
17373
|
canUnmute && !!props.mutedNotificationProps && React__default['default'].createElement(MutedNotification, Object.assign({}, props.mutedNotificationProps))),
|
17374
17374
|
React__default['default'].createElement(react.Stack.Item, { grow: true, style: callCompositeContainerFlex() },
|
17375
17375
|
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())))),
|
17376
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17376
17377
|
callPaneContent()),
|
17377
17378
|
((_b = props.callControlProps) === null || _b === void 0 ? void 0 : _b.options) !== false &&
|
17378
|
-
/* @conditional-compile-remove(one-to-n-calling)
|
17379
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17380
|
+
!isMobileWithActivePane && (React__default['default'].createElement(react.Stack.Item, { className: callControlsContainerStyles },
|
17379
17381
|
React__default['default'].createElement(CallControls, Object.assign({}, props.callControlProps, { containerWidth: containerWidth, containerHeight: containerHeight, isMobile: props.mobileView,
|
17380
17382
|
/* @conditional-compile-remove(one-to-n-calling) */
|
17381
17383
|
peopleButtonChecked: activePane === 'people',
|
17382
17384
|
/* @conditional-compile-remove(one-to-n-calling) */
|
17383
17385
|
onPeopleButtonClicked: togglePeoplePane })))))));
|
17384
17386
|
};
|
17385
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17387
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17386
17388
|
const showShowPeopleTabHeaderButton$1 = (callControls) => {
|
17387
17389
|
if (callControls === undefined || callControls === true) {
|
17388
17390
|
return true;
|
@@ -18766,12 +18768,12 @@ const MainScreen = (props) => {
|
|
18766
18768
|
break;
|
18767
18769
|
case 'lobby':
|
18768
18770
|
pageElement = (React__default['default'].createElement(LobbyPage, { mobileView: props.mobileView,
|
18769
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18771
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18770
18772
|
modalLayerHostId: props.modalLayerHostId, options: props.options }));
|
18771
18773
|
break;
|
18772
18774
|
case 'call':
|
18773
18775
|
pageElement = (React__default['default'].createElement(CallPage, { onRenderAvatar: onRenderAvatar, callInvitationURL: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: props.mobileView,
|
18774
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18776
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18775
18777
|
modalLayerHostId: props.modalLayerHostId, options: props.options }));
|
18776
18778
|
break;
|
18777
18779
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -18826,7 +18828,7 @@ const CallComposite = (props) => {
|
|
18826
18828
|
/* @conditional-compile-remove(call-readiness) */ options === null || options === void 0 ? void 0 : options.callReadinessOptedIn
|
18827
18829
|
]);
|
18828
18830
|
const mobileView = formFactor === 'mobile';
|
18829
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18831
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18830
18832
|
const modalLayerHostId = reactHooks.useId('modalLayerhost');
|
18831
18833
|
const mainScreenContainerClassName = React.useMemo(() => {
|
18832
18834
|
return mobileView ? mainScreenContainerStyleMobile : mainScreenContainerStyleDesktop;
|
@@ -18835,7 +18837,7 @@ const CallComposite = (props) => {
|
|
18835
18837
|
React__default['default'].createElement(BaseProvider, Object.assign({}, props),
|
18836
18838
|
React__default['default'].createElement(CallAdapterProvider, { adapter: adapter },
|
18837
18839
|
React__default['default'].createElement(MainScreen, { callInvitationUrl: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: mobileView,
|
18838
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18840
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18839
18841
|
modalLayerHostId: modalLayerHostId, options: options,
|
18840
18842
|
/* @conditional-compile-remove(rooms) */
|
18841
18843
|
roleHint: roleHint }),
|
@@ -18847,7 +18849,7 @@ const CallComposite = (props) => {
|
|
18847
18849
|
// Warning: this is fragile and works because the call arrangement page is only rendered after the call has connected and thus this
|
18848
18850
|
// LayerHost will be guaranteed to have rendered (and subsequently mounted in the DOM). This ensures the DOM element will be available
|
18849
18851
|
// before the call to `document.getElementById(modalLayerHostId)` is made.
|
18850
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18852
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18851
18853
|
mobileView && React__default['default'].createElement(react.LayerHost, { id: modalLayerHostId, className: react.mergeStyles(modalLayerHostStyle) })))));
|
18852
18854
|
};
|
18853
18855
|
const holdPageTrampoline = () => {
|
@@ -20593,7 +20595,7 @@ const CallWithChatPane = (props) => {
|
|
20593
20595
|
React__default['default'].createElement(react.Stack, { horizontal: true, styles: scrollableContainer },
|
20594
20596
|
React__default['default'].createElement(react.Stack.Item, { verticalFill: true, styles: scrollableContainerContents },
|
20595
20597
|
React__default['default'].createElement(react.Stack, { styles: props.activePane === 'chat' ? availableSpaceStyles : hiddenStyles }, chatContent),
|
20596
|
-
|
20598
|
+
props.activePane === 'people' && peopleContent))),
|
20597
20599
|
props.mobileView && (React__default['default'].createElement(CallAdapterProvider, { adapter: props.callAdapter },
|
20598
20600
|
React__default['default'].createElement(ModalLocalAndRemotePIP, { modalLayerHostId: props.modalLayerHostId, hidden: hidden, styles: pipStyles, minDragPosition: minMaxDragPosition.minDragPosition, maxDragPosition: minMaxDragPosition.maxDragPosition }))),
|
20599
20601
|
drawerMenuItems.length > 0 && (React__default['default'].createElement(react.Stack, { styles: drawerContainerStyles() },
|