@azure/communication-react 1.4.2-alpha-202211050017.0 → 1.4.2-alpha-202211090017.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 +33 -32
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetry.d.ts +10 -0
- package/dist/dist-esm/acs-ui-common/src/telemetry.js +10 -0
- package/dist/dist-esm/acs-ui-common/src/telemetry.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/TroubleshootingGuideErrorBar.js +3 -3
- package/dist/dist-esm/react-components/src/components/TroubleshootingGuideErrorBar.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.d.ts +1 -5
- package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.js +0 -11
- package/dist/dist-esm/react-components/src/components/styles/TroubleshootingGuideErrorBar.styles.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-202211090017.0';
|
206
206
|
|
207
207
|
// Copyright (c) Microsoft Corporation.
|
208
208
|
/**
|
@@ -219,6 +219,16 @@ const sanitize = (version) => {
|
|
219
219
|
};
|
220
220
|
/**
|
221
221
|
* Application ID to be included in telemetry data from the UI library.
|
222
|
+
* Template: acXYYY/<version>
|
223
|
+
* Where:
|
224
|
+
* - X describes a platform, [r: web, i: iOS, a: Android]
|
225
|
+
* - YYY describes what's running on this platform (optional, currently unused by this library):
|
226
|
+
* Y[0] is high-level artifact,
|
227
|
+
* [0: undefined, 1: AzureCommunicationLibrary, 2: ACS SampleApp]
|
228
|
+
* Y[1] is specific implementation,
|
229
|
+
* [0: undefined, 1: Call Composite, 2: Chat Composite, 3: CallWithChatComposite, 4: UI Components]
|
230
|
+
* Y[2] is reserved for implementation details,
|
231
|
+
* [0: undefined]
|
222
232
|
*
|
223
233
|
* @internal
|
224
234
|
*/
|
@@ -8500,7 +8510,6 @@ const messageBarStyle = (theme, errorType) => ({
|
|
8500
8510
|
innerText: {
|
8501
8511
|
paddingTop: errorType === react.MessageBarType.warning ? '0.15rem' : '0.1rem',
|
8502
8512
|
lineHeight: 'none',
|
8503
|
-
color: theme.palette.black,
|
8504
8513
|
alignSelf: 'center',
|
8505
8514
|
whiteSpace: 'normal'
|
8506
8515
|
},
|
@@ -8516,16 +8525,6 @@ const messageBarStyle = (theme, errorType) => ({
|
|
8516
8525
|
paddingTop: '0.8rem'
|
8517
8526
|
}
|
8518
8527
|
});
|
8519
|
-
/**
|
8520
|
-
* @private
|
8521
|
-
*/
|
8522
|
-
const linkStyle = (theme) => ({
|
8523
|
-
root: {
|
8524
|
-
span: {
|
8525
|
-
color: theme.palette.black
|
8526
|
-
}
|
8527
|
-
}
|
8528
|
-
});
|
8529
8528
|
|
8530
8529
|
// Copyright (c) Microsoft Corporation.
|
8531
8530
|
/**
|
@@ -8551,14 +8550,14 @@ const _TroubleshootingGuideErrorBar = (props) => {
|
|
8551
8550
|
const devicePermissionErrorBar = (React__default['default'].createElement("div", null,
|
8552
8551
|
strings[error.type],
|
8553
8552
|
' ',
|
8554
|
-
onPermissionsTroubleshootingClick && (React__default['default'].createElement(react.Link, {
|
8553
|
+
onPermissionsTroubleshootingClick && (React__default['default'].createElement(react.Link, { onClick: () => {
|
8555
8554
|
onPermissionsTroubleshootingClick(permissionsState);
|
8556
8555
|
}, underline: true },
|
8557
8556
|
React__default['default'].createElement("span", null, troubleshootingGuideStrings.devicePermissionLinkText)))));
|
8558
8557
|
const networkErrorBar = (React__default['default'].createElement("div", null,
|
8559
8558
|
strings[error.type],
|
8560
8559
|
' ',
|
8561
|
-
onNetworkingTroubleshootingClick && (React__default['default'].createElement(react.Link, {
|
8560
|
+
onNetworkingTroubleshootingClick && (React__default['default'].createElement(react.Link, { onClick: onNetworkingTroubleshootingClick, underline: true },
|
8562
8561
|
React__default['default'].createElement("span", null, troubleshootingGuideStrings.networkTroubleshootingLinkText)))));
|
8563
8562
|
return (React__default['default'].createElement(react.MessageBar, Object.assign({}, props, { styles: messageBarStyle(theme, messageBarType(error.type)), key: error.type, messageBarType: messageBarType(error.type), messageBarIconProps: messageBarIconProps(error.type), actions: React__default['default'].createElement(react.MessageBarButton, { text: troubleshootingGuideStrings.dismissButtonText, styles: dismissButtonStyle(theme), onClick: () => {
|
8564
8563
|
setDismissedErrors(dismissError(dismissedErrors, error));
|
@@ -15062,7 +15061,7 @@ const ParticipantListWithHeading = (props) => {
|
|
15062
15061
|
}), [theme.palette.neutralSecondary, theme.fonts.smallPlus.fontSize, props.isMobile]);
|
15063
15062
|
return (React__default['default'].createElement(react.Stack, { className: participantListStack },
|
15064
15063
|
React__default['default'].createElement(react.Stack.Item, { styles: subheadingStyleThemed }, title),
|
15065
|
-
React__default['default'].createElement(react.FocusZone, { className: participantListContainerStyle },
|
15064
|
+
React__default['default'].createElement(react.FocusZone, { className: participantListContainerStyle, shouldFocusOnMount: true },
|
15066
15065
|
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
15066
|
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
15067
|
(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 +16130,9 @@ const controlBarStyles = react.memoizeFunction((background) => ({ root: { backgr
|
|
16131
16130
|
*/
|
16132
16131
|
const CallControls = (props) => {
|
16133
16132
|
const options = React.useMemo(() => (typeof props.options === 'boolean' ? {} : props.options), [props.options]);
|
16134
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
16133
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
16135
16134
|
const localeStrings = useLocale();
|
16136
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
16135
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
16137
16136
|
const peopleButtonStrings = React.useMemo(() => ({
|
16138
16137
|
label: localeStrings.strings.call.peopleButtonLabel,
|
16139
16138
|
tooltipOffContent: localeStrings.strings.call.peopleButtonTooltipOpen,
|
@@ -17226,7 +17225,7 @@ const CallPane = (props) => {
|
|
17226
17225
|
const localeStrings = useLocale();
|
17227
17226
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
17228
17227
|
const getStrings = () => {
|
17229
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17228
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17230
17229
|
return localeStrings.strings.call;
|
17231
17230
|
};
|
17232
17231
|
const strings = getStrings();
|
@@ -17316,23 +17315,23 @@ const CallArrangement = (props) => {
|
|
17316
17315
|
const containerRef = React.useRef(null);
|
17317
17316
|
const containerWidth = _useContainerWidth(containerRef);
|
17318
17317
|
const containerHeight = _useContainerHeight(containerRef);
|
17319
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17318
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17320
17319
|
const adapter = useAdapter();
|
17321
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17320
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17322
17321
|
const { activePane, closePane, openPeoplePane, togglePeoplePane } = useSidePaneState();
|
17323
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17322
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17324
17323
|
const isMobileWithActivePane = props.mobileView && activePane;
|
17325
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17324
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17326
17325
|
const callCompositeContainerCSS = React.useMemo(() => {
|
17327
17326
|
return { display: isMobileWithActivePane ? 'none' : 'flex' };
|
17328
17327
|
}, [isMobileWithActivePane]);
|
17329
17328
|
// To be removed once feature is out of beta, replace with callCompositeContainerCSS
|
17330
17329
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
17331
17330
|
const callCompositeContainerFlex = () => {
|
17332
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17331
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17333
17332
|
return callCompositeContainerCSS;
|
17334
17333
|
};
|
17335
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17334
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17336
17335
|
const callPaneContent = React.useCallback(() => {
|
17337
17336
|
var _a;
|
17338
17337
|
if (adapter && activePane === 'people') {
|
@@ -17373,16 +17372,18 @@ const CallArrangement = (props) => {
|
|
17373
17372
|
canUnmute && !!props.mutedNotificationProps && React__default['default'].createElement(MutedNotification, Object.assign({}, props.mutedNotificationProps))),
|
17374
17373
|
React__default['default'].createElement(react.Stack.Item, { grow: true, style: callCompositeContainerFlex() },
|
17375
17374
|
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())))),
|
17375
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17376
17376
|
callPaneContent()),
|
17377
17377
|
((_b = props.callControlProps) === null || _b === void 0 ? void 0 : _b.options) !== false &&
|
17378
|
-
/* @conditional-compile-remove(one-to-n-calling)
|
17378
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17379
|
+
!isMobileWithActivePane && (React__default['default'].createElement(react.Stack.Item, { className: callControlsContainerStyles },
|
17379
17380
|
React__default['default'].createElement(CallControls, Object.assign({}, props.callControlProps, { containerWidth: containerWidth, containerHeight: containerHeight, isMobile: props.mobileView,
|
17380
17381
|
/* @conditional-compile-remove(one-to-n-calling) */
|
17381
17382
|
peopleButtonChecked: activePane === 'people',
|
17382
17383
|
/* @conditional-compile-remove(one-to-n-calling) */
|
17383
17384
|
onPeopleButtonClicked: togglePeoplePane })))))));
|
17384
17385
|
};
|
17385
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
17386
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
17386
17387
|
const showShowPeopleTabHeaderButton$1 = (callControls) => {
|
17387
17388
|
if (callControls === undefined || callControls === true) {
|
17388
17389
|
return true;
|
@@ -18766,12 +18767,12 @@ const MainScreen = (props) => {
|
|
18766
18767
|
break;
|
18767
18768
|
case 'lobby':
|
18768
18769
|
pageElement = (React__default['default'].createElement(LobbyPage, { mobileView: props.mobileView,
|
18769
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18770
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18770
18771
|
modalLayerHostId: props.modalLayerHostId, options: props.options }));
|
18771
18772
|
break;
|
18772
18773
|
case 'call':
|
18773
18774
|
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) */
|
18775
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18775
18776
|
modalLayerHostId: props.modalLayerHostId, options: props.options }));
|
18776
18777
|
break;
|
18777
18778
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
@@ -18826,7 +18827,7 @@ const CallComposite = (props) => {
|
|
18826
18827
|
/* @conditional-compile-remove(call-readiness) */ options === null || options === void 0 ? void 0 : options.callReadinessOptedIn
|
18827
18828
|
]);
|
18828
18829
|
const mobileView = formFactor === 'mobile';
|
18829
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18830
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18830
18831
|
const modalLayerHostId = reactHooks.useId('modalLayerhost');
|
18831
18832
|
const mainScreenContainerClassName = React.useMemo(() => {
|
18832
18833
|
return mobileView ? mainScreenContainerStyleMobile : mainScreenContainerStyleDesktop;
|
@@ -18835,7 +18836,7 @@ const CallComposite = (props) => {
|
|
18835
18836
|
React__default['default'].createElement(BaseProvider, Object.assign({}, props),
|
18836
18837
|
React__default['default'].createElement(CallAdapterProvider, { adapter: adapter },
|
18837
18838
|
React__default['default'].createElement(MainScreen, { callInvitationUrl: callInvitationUrl, onFetchAvatarPersonaData: onFetchAvatarPersonaData, onFetchParticipantMenuItems: onFetchParticipantMenuItems, mobileView: mobileView,
|
18838
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18839
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18839
18840
|
modalLayerHostId: modalLayerHostId, options: options,
|
18840
18841
|
/* @conditional-compile-remove(rooms) */
|
18841
18842
|
roleHint: roleHint }),
|
@@ -18847,7 +18848,7 @@ const CallComposite = (props) => {
|
|
18847
18848
|
// Warning: this is fragile and works because the call arrangement page is only rendered after the call has connected and thus this
|
18848
18849
|
// LayerHost will be guaranteed to have rendered (and subsequently mounted in the DOM). This ensures the DOM element will be available
|
18849
18850
|
// before the call to `document.getElementById(modalLayerHostId)` is made.
|
18850
|
-
/* @conditional-compile-remove(one-to-n-calling) */
|
18851
|
+
/* @conditional-compile-remove(one-to-n-calling) @conditional-compile-remove(PSTN-calls) */
|
18851
18852
|
mobileView && React__default['default'].createElement(react.LayerHost, { id: modalLayerHostId, className: react.mergeStyles(modalLayerHostStyle) })))));
|
18852
18853
|
};
|
18853
18854
|
const holdPageTrampoline = () => {
|
@@ -20593,7 +20594,7 @@ const CallWithChatPane = (props) => {
|
|
20593
20594
|
React__default['default'].createElement(react.Stack, { horizontal: true, styles: scrollableContainer },
|
20594
20595
|
React__default['default'].createElement(react.Stack.Item, { verticalFill: true, styles: scrollableContainerContents },
|
20595
20596
|
React__default['default'].createElement(react.Stack, { styles: props.activePane === 'chat' ? availableSpaceStyles : hiddenStyles }, chatContent),
|
20596
|
-
|
20597
|
+
props.activePane === 'people' && peopleContent))),
|
20597
20598
|
props.mobileView && (React__default['default'].createElement(CallAdapterProvider, { adapter: props.callAdapter },
|
20598
20599
|
React__default['default'].createElement(ModalLocalAndRemotePIP, { modalLayerHostId: props.modalLayerHostId, hidden: hidden, styles: pipStyles, minDragPosition: minMaxDragPosition.minDragPosition, maxDragPosition: minMaxDragPosition.maxDragPosition }))),
|
20599
20600
|
drawerMenuItems.length > 0 && (React__default['default'].createElement(react.Stack, { styles: drawerContainerStyles() },
|