@azure/communication-react 1.10.0-alpha-202311040013 → 1.10.0-alpha-202311060013
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 +74 -42
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/common.d.ts +7 -0
- package/dist/dist-esm/acs-ui-common/src/common.js +9 -0
- package/dist/dist-esm/acs-ui-common/src/common.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.d.ts +1 -1
- package/dist/dist-esm/acs-ui-common/src/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/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/VideoGallery/DefaultLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/DefaultLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/FloatingLocalVideoLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/LargeGalleryLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.d.ts +1 -0
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js +16 -5
- package/dist/dist-esm/react-components/src/components/VideoGallery/OverflowGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js +3 -8
- package/dist/dist-esm/react-components/src/components/VideoGallery/ScrollableHorizontalGallery.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js +3 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/SpeakerVideoLayout.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js +7 -12
- package/dist/dist-esm/react-components/src/components/VideoGallery/styles/ScrollableHorizontalGallery.style.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js +10 -5
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallControls.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js +11 -6
- package/dist/dist-esm/react-composites/src/composites/common/ControlBar/CommonCallControlBar.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +12 -2
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/package.json +1 -1
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
178
178
|
// Licensed under the MIT License.
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
180
|
-
var telemetryVersion = '1.10.0-alpha-
|
180
|
+
var telemetryVersion = '1.10.0-alpha-202311060013';
|
181
181
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
183
183
|
/**
|
@@ -286,6 +286,15 @@ const createSafeReplacer = () => {
|
|
286
286
|
const _convertRemToPx = (rem) => {
|
287
287
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
288
288
|
};
|
289
|
+
/**
|
290
|
+
* @internal
|
291
|
+
* Converts units of pixels to units of rem
|
292
|
+
* @param px - units of px
|
293
|
+
* @returns units of rem
|
294
|
+
*/
|
295
|
+
const _convertPxToRem = (px) => {
|
296
|
+
return px / parseFloat(getComputedStyle(document.documentElement).fontSize);
|
297
|
+
};
|
289
298
|
/**
|
290
299
|
* @internal
|
291
300
|
* Disable dismiss on resize to work around a couple Fluent UI bugs
|
@@ -14035,16 +14044,13 @@ const scrollableHorizontalGalleryStyles = {
|
|
14035
14044
|
/**
|
14036
14045
|
* @private
|
14037
14046
|
*/
|
14038
|
-
const scrollableHorizontalGalleryContainerStyles =
|
14039
|
-
|
14040
|
-
|
14041
|
-
|
14042
|
-
|
14043
|
-
|
14044
|
-
|
14045
|
-
'scrollbar-width': 'none',
|
14046
|
-
'::-webkit-scrollbar': { display: 'none' }
|
14047
|
-
});
|
14047
|
+
const scrollableHorizontalGalleryContainerStyles = {
|
14048
|
+
display: 'flex',
|
14049
|
+
minHeight: `${SMALL_HORIZONTAL_GALLERY_TILE_SIZE_REM.height}rem`,
|
14050
|
+
overflow: 'scroll',
|
14051
|
+
'-ms-overflow-style': 'none',
|
14052
|
+
'scrollbar-width': 'none',
|
14053
|
+
'::-webkit-scrollbar': { display: 'none' }
|
14048
14054
|
};
|
14049
14055
|
|
14050
14056
|
// Copyright (c) Microsoft Corporation.
|
@@ -14053,11 +14059,7 @@ const scrollableHorizontalGalleryContainerStyles = (fullWidth) => {
|
|
14053
14059
|
* @private
|
14054
14060
|
*/
|
14055
14061
|
const ScrollableHorizontalGallery = (props) => {
|
14056
|
-
const { horizontalGalleryElements, onFetchTilesToRender,
|
14057
|
-
const useFullWidthTrampoline = () => {
|
14058
|
-
/* @conditional-compile-remove(gallery-layouts) */
|
14059
|
-
return layout === 'default' ? true : false;
|
14060
|
-
};
|
14062
|
+
const { horizontalGalleryElements, onFetchTilesToRender, containerStyles } = props;
|
14061
14063
|
React.useEffect(() => {
|
14062
14064
|
const indexesArray = [...Array(horizontalGalleryElements === null || horizontalGalleryElements === void 0 ? void 0 : horizontalGalleryElements.length).keys()];
|
14063
14065
|
if (onFetchTilesToRender && indexesArray) {
|
@@ -14066,7 +14068,7 @@ const ScrollableHorizontalGallery = (props) => {
|
|
14066
14068
|
}, [onFetchTilesToRender, horizontalGalleryElements === null || horizontalGalleryElements === void 0 ? void 0 : horizontalGalleryElements.length]);
|
14067
14069
|
const ref = React.useRef();
|
14068
14070
|
const { events: dragabbleEvents } = reactUseDraggableScroll.useDraggable(ref);
|
14069
|
-
return (React__default["default"].createElement("div", Object.assign({ ref: ref }, dragabbleEvents, { className: scrollableHorizontalGalleryContainerStyles
|
14071
|
+
return (React__default["default"].createElement("div", Object.assign({ ref: ref }, dragabbleEvents, { className: react.mergeStyles(scrollableHorizontalGalleryContainerStyles, containerStyles) }),
|
14070
14072
|
React__default["default"].createElement(react.Stack, { "data-ui-id": "scrollable-horizontal-gallery", horizontal: true, styles: scrollableHorizontalGalleryStyles, tokens: { childrenGap: '0.5rem' } }, horizontalGalleryElements)));
|
14071
14073
|
};
|
14072
14074
|
|
@@ -14081,7 +14083,7 @@ const OverflowGallery = (props) => {
|
|
14081
14083
|
/* @conditional-compile-remove(vertical-gallery) */
|
14082
14084
|
isShort = false, overflowGalleryElements, horizontalGalleryStyles,
|
14083
14085
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition = 'horizontalBottom',
|
14084
|
-
/* @conditional-compile-remove(vertical-gallery) */ verticalGalleryStyles, onChildrenPerPageChange } = props;
|
14086
|
+
/* @conditional-compile-remove(vertical-gallery) */ verticalGalleryStyles, onChildrenPerPageChange, parentWidth } = props;
|
14085
14087
|
const containerStyles = React.useMemo(() => {
|
14086
14088
|
/* @conditional-compile-remove(vertical-gallery) */
|
14087
14089
|
if (overflowGalleryPosition === 'verticalRight') {
|
@@ -14107,6 +14109,16 @@ const OverflowGallery = (props) => {
|
|
14107
14109
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
14108
14110
|
/* @conditional-compile-remove(vertical-gallery) */ verticalGalleryStyles
|
14109
14111
|
]);
|
14112
|
+
const scrollableHorizontalGalleryContainerStyles = React.useMemo(() => {
|
14113
|
+
if (isNarrow && parentWidth) {
|
14114
|
+
return {
|
14115
|
+
width: props.layout === 'default'
|
14116
|
+
? `${_convertPxToRem(parentWidth) - 1}rem`
|
14117
|
+
: `${_convertPxToRem(parentWidth) - SMALL_FLOATING_MODAL_SIZE_REM.width - 1}rem`
|
14118
|
+
};
|
14119
|
+
}
|
14120
|
+
return undefined;
|
14121
|
+
}, [isNarrow, parentWidth, props.layout]);
|
14110
14122
|
/* @conditional-compile-remove(vertical-gallery) */
|
14111
14123
|
if (overflowGalleryPosition === 'verticalRight') {
|
14112
14124
|
return (React__default["default"].createElement(ResponsiveVerticalGallery, { key: "responsive-vertical-gallery", containerStyles: containerStyles, verticalGalleryStyles: galleryStyles, controlBarHeightRem: HORIZONTAL_GALLERY_BUTTON_WIDTH, gapHeightRem: HORIZONTAL_GALLERY_GAP, isShort: isShort, onFetchTilesToRender: onFetchTilesToRender, onChildrenPerPageChange: onChildrenPerPageChange }, overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)]));
|
@@ -14116,9 +14128,7 @@ const OverflowGallery = (props) => {
|
|
14116
14128
|
// There are no pages for ScrollableHorizontalGallery so we will approximate the first 3 remote
|
14117
14129
|
// participant tiles are visible
|
14118
14130
|
onChildrenPerPageChange === null || onChildrenPerPageChange === void 0 ? void 0 : onChildrenPerPageChange(3);
|
14119
|
-
return (React__default["default"].createElement(ScrollableHorizontalGallery, { horizontalGalleryElements: overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)], onFetchTilesToRender: onFetchTilesToRender, key: "scrollable-horizontal-gallery",
|
14120
|
-
/* @conditional-compile-remove(gallery-layouts) */
|
14121
|
-
layout: props.layout }));
|
14131
|
+
return (React__default["default"].createElement(ScrollableHorizontalGallery, { horizontalGalleryElements: overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)], onFetchTilesToRender: onFetchTilesToRender, key: "scrollable-horizontal-gallery", containerStyles: scrollableHorizontalGalleryContainerStyles }));
|
14122
14132
|
}
|
14123
14133
|
return (React__default["default"].createElement(ResponsiveHorizontalGallery, { key: "responsive-horizontal-gallery", containerStyles: containerStyles, onFetchTilesToRender: onFetchTilesToRender, horizontalGalleryStyles: galleryStyles, buttonWidthRem: HORIZONTAL_GALLERY_BUTTON_WIDTH, gapWidthRem: HORIZONTAL_GALLERY_GAP, onChildrenPerPageChange: onChildrenPerPageChange }, overflowGalleryElements ? overflowGalleryElements : [React__default["default"].createElement(React__default["default"].Fragment, null)]));
|
14124
14134
|
};
|
@@ -14192,7 +14202,7 @@ const DefaultLayout = (props) => {
|
|
14192
14202
|
childrenPerPage.current = n;
|
14193
14203
|
},
|
14194
14204
|
/* @conditional-compile-remove(gallery-layouts) */
|
14195
|
-
layout: 'default' }));
|
14205
|
+
layout: 'default', parentWidth: parentWidth }));
|
14196
14206
|
}, [
|
14197
14207
|
isNarrow,
|
14198
14208
|
/* @conditional-compile-remove(vertical-gallery) */ isShort,
|
@@ -14200,7 +14210,8 @@ const DefaultLayout = (props) => {
|
|
14200
14210
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
14201
14211
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
14202
14212
|
setIndexesToRender,
|
14203
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
14213
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
14214
|
+
parentWidth
|
14204
14215
|
]);
|
14205
14216
|
return (React__default["default"].createElement(react.Stack
|
14206
14217
|
/* @conditional-compile-remove(vertical-gallery) */
|
@@ -15061,7 +15072,7 @@ const FloatingLocalVideoLayout = (props) => {
|
|
15061
15072
|
/* @conditional-compile-remove(vertical-gallery) */
|
15062
15073
|
overflowGalleryPosition: overflowGalleryPosition, onChildrenPerPageChange: (n) => {
|
15063
15074
|
childrenPerPage.current = n;
|
15064
|
-
} }));
|
15075
|
+
}, parentWidth: parentWidth }));
|
15065
15076
|
}, [
|
15066
15077
|
isNarrow,
|
15067
15078
|
/* @conditional-compile-remove(vertical-gallery) */ isShort,
|
@@ -15070,7 +15081,8 @@ const FloatingLocalVideoLayout = (props) => {
|
|
15070
15081
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
15071
15082
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
15072
15083
|
setIndexesToRender,
|
15073
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
15084
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
15085
|
+
parentWidth
|
15074
15086
|
]);
|
15075
15087
|
return (React__default["default"].createElement(react.Stack, { styles: rootLayoutStyle },
|
15076
15088
|
wrappedLocalVideoComponent,
|
@@ -15189,7 +15201,7 @@ const SpeakerVideoLayout = (props) => {
|
|
15189
15201
|
/* @conditional-compile-remove(vertical-gallery) */
|
15190
15202
|
overflowGalleryPosition: overflowGalleryPosition, onChildrenPerPageChange: (n) => {
|
15191
15203
|
childrenPerPage.current = n;
|
15192
|
-
} }));
|
15204
|
+
}, parentWidth: parentWidth }));
|
15193
15205
|
}, [
|
15194
15206
|
isNarrow,
|
15195
15207
|
/* @conditional-compile-remove(vertical-gallery) */ isShort,
|
@@ -15198,7 +15210,8 @@ const SpeakerVideoLayout = (props) => {
|
|
15198
15210
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
15199
15211
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
15200
15212
|
setIndexesToRender,
|
15201
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
15213
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
15214
|
+
parentWidth
|
15202
15215
|
]);
|
15203
15216
|
return (React__default["default"].createElement(react.Stack, { styles: rootLayoutStyle },
|
15204
15217
|
wrappedLocalVideoComponent,
|
@@ -15308,7 +15321,7 @@ const LargeGalleryLayout = (props) => {
|
|
15308
15321
|
/* @conditional-compile-remove(vertical-gallery) */
|
15309
15322
|
overflowGalleryPosition: overflowGalleryPosition, onFetchTilesToRender: setIndexesToRender, onChildrenPerPageChange: (n) => {
|
15310
15323
|
childrenPerPage.current = n;
|
15311
|
-
} }));
|
15324
|
+
}, parentWidth: parentWidth }));
|
15312
15325
|
}, [
|
15313
15326
|
isNarrow,
|
15314
15327
|
/* @conditional-compile-remove(gallery-layouts) */ isShort,
|
@@ -15316,7 +15329,8 @@ const LargeGalleryLayout = (props) => {
|
|
15316
15329
|
styles === null || styles === void 0 ? void 0 : styles.horizontalGallery,
|
15317
15330
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
15318
15331
|
setIndexesToRender,
|
15319
|
-
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery
|
15332
|
+
/* @conditional-compile-remove(vertical-gallery) */ styles === null || styles === void 0 ? void 0 : styles.verticalGallery,
|
15333
|
+
parentWidth
|
15320
15334
|
]);
|
15321
15335
|
return (React__default["default"].createElement(react.Stack
|
15322
15336
|
/* @conditional-compile-remove(vertical-gallery) */
|
@@ -24322,7 +24336,7 @@ const controlBarStyles = react.memoizeFunction((background) => ({ root: { backgr
|
|
24322
24336
|
* @private
|
24323
24337
|
*/
|
24324
24338
|
const CallControls = (props) => {
|
24325
|
-
var _a;
|
24339
|
+
var _a, _b;
|
24326
24340
|
const options = React.useMemo(() => (typeof props.options === 'boolean' ? {} : props.options), [props.options]);
|
24327
24341
|
/* @conditional-compile-remove(PSTN-calls) */
|
24328
24342
|
const adapter = useAdapter();
|
@@ -24446,6 +24460,10 @@ const CallControls = (props) => {
|
|
24446
24460
|
const raiseHandButtonIsEnabled = isEnabled$2(options === null || options === void 0 ? void 0 : options.raiseHandButton);
|
24447
24461
|
/* @conditional-compile-remove(raise-hand) */
|
24448
24462
|
let showRaiseHandButtonInControlBar = raiseHandButtonIsEnabled;
|
24463
|
+
/* @conditional-compile-remove(rooms) */
|
24464
|
+
const role = (_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.role;
|
24465
|
+
/* @conditional-compile-remove(rooms) */
|
24466
|
+
const hideRaiseHandButtonInRoomsCall = adapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
|
24449
24467
|
/* @conditional-compile-remove(raise-hand) */
|
24450
24468
|
if (showRaiseHandButtonInControlBar && (props.isMobile ? numberOfButtons < 5 : true)) {
|
24451
24469
|
numberOfButtons++;
|
@@ -24469,7 +24487,7 @@ const CallControls = (props) => {
|
|
24469
24487
|
});
|
24470
24488
|
}
|
24471
24489
|
/* @conditional-compile-remove(raise-hand) */
|
24472
|
-
if (!showRaiseHandButtonInControlBar) {
|
24490
|
+
if (!showRaiseHandButtonInControlBar && /* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall) {
|
24473
24491
|
moreButtonMenuItems.push({
|
24474
24492
|
key: 'raiseHandButtonKey',
|
24475
24493
|
text: raiseHandButtonProps.checked
|
@@ -24532,13 +24550,14 @@ const CallControls = (props) => {
|
|
24532
24550
|
React__default["default"].createElement(ControlBar, { layout: props.displayVertical ? 'vertical' : 'horizontal', styles: controlBarStyles(theme.semanticColors.bodyBackground) },
|
24533
24551
|
microphoneButtonIsEnabled && (React__default["default"].createElement(Microphone, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.microphoneButton) })),
|
24534
24552
|
cameraButtonIsEnabled && (React__default["default"].createElement(Camera, { displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.cameraButton) })),
|
24535
|
-
/* @conditional-compile-remove(raise-hand) */ showRaiseHandButtonInControlBar &&
|
24553
|
+
/* @conditional-compile-remove(raise-hand) */ showRaiseHandButtonInControlBar &&
|
24554
|
+
/* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall && (React__default["default"].createElement(RaiseHand, { displayType: options === null || options === void 0 ? void 0 : options.displayType })),
|
24536
24555
|
screenShareButtonIsEnabled && (React__default["default"].createElement(ScreenShare, { option: options === null || options === void 0 ? void 0 : options.screenShareButton, displayType: options === null || options === void 0 ? void 0 : options.displayType, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.screenShareButton) })),
|
24537
24556
|
showParticipantsButtonInControlBar && (React__default["default"].createElement(Participants, { option: options === null || options === void 0 ? void 0 : options.participantsButton, callInvitationURL: props.callInvitationURL, onFetchParticipantMenuItems: props.onFetchParticipantMenuItems, displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, isMobile: props.isMobile, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.participantsButton) })) && (
|
24538
24557
|
/* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(PSTN-calls) */
|
24539
24558
|
React__default["default"].createElement(People, { checked: props.peopleButtonChecked, ariaLabel: peopleButtonStrings === null || peopleButtonStrings === void 0 ? void 0 : peopleButtonStrings.label, 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$3(options === null || options === void 0 ? void 0 : options.participantsButton), disableTooltip: props.isMobile })),
|
24540
|
-
showDevicesButtonInControlBar && (React__default["default"].createElement(Devices, { displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.devicesButton) })), (
|
24541
|
-
|
24559
|
+
showDevicesButtonInControlBar && (React__default["default"].createElement(Devices, { displayType: options === null || options === void 0 ? void 0 : options.displayType, increaseFlyoutItemSize: props.increaseFlyoutItemSize, disabled: isDisabled$3(options === null || options === void 0 ? void 0 : options.devicesButton) })), (_b = customButtons['primary']) === null || _b === void 0 ? void 0 :
|
24560
|
+
_b.slice(0, props.isMobile
|
24542
24561
|
? CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_MOBILE_CUSTOM_BUTTONS
|
24543
24562
|
: CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_DESKTOP_CUSTOM_BUTTONS).map((CustomButton, i) => {
|
24544
24563
|
return (React__default["default"].createElement(CustomButton, { key: `primary-custom-button-${i}`,
|
@@ -24973,7 +24992,7 @@ const inferCommonCallControlOptions = (mobileView, commonCallControlOptions) =>
|
|
24973
24992
|
* @private
|
24974
24993
|
*/
|
24975
24994
|
const CommonCallControlBar = (props) => {
|
24976
|
-
var _a, _b;
|
24995
|
+
var _a, _b, _c;
|
24977
24996
|
const theme = react.useTheme();
|
24978
24997
|
const rtl = theme.rtl;
|
24979
24998
|
const controlBarContainerRef = React.useRef(null);
|
@@ -25063,6 +25082,10 @@ const CommonCallControlBar = (props) => {
|
|
25063
25082
|
(/*@conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ isEnabled$1(options === null || options === void 0 ? void 0 : options.holdButton) ||
|
25064
25083
|
/* @conditional-compile-remove(close-captions) */ props.isCaptionsSupported ||
|
25065
25084
|
/* @conditional-compile-remove(gallery-layouts) */ props.onUserSetGalleryLayout);
|
25085
|
+
/*@conditional-compile-remove(rooms) */
|
25086
|
+
const role = (_a = props.callAdapter.getState().call) === null || _a === void 0 ? void 0 : _a.role;
|
25087
|
+
/*@conditional-compile-remove(rooms) */
|
25088
|
+
const hideRaiseHandButtonInRoomsCall = props.callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
|
25066
25089
|
return (React__default["default"].createElement("div", { ref: controlBarSizeRef },
|
25067
25090
|
React__default["default"].createElement(CallAdapterProvider, { adapter: props.callAdapter },
|
25068
25091
|
/* @conditional-compile-remove(close-captions) */ showCaptionsSettingsModal && (React__default["default"].createElement(CaptionsSettingsModal, { showCaptionsSettingsModal: showCaptionsSettingsModal, onDismissCaptionsSettings: onDismissCaptionsSettings, changeCaptionLanguage: props.isCaptionsOn }))),
|
@@ -25083,13 +25106,14 @@ const CommonCallControlBar = (props) => {
|
|
25083
25106
|
/* @conditional-compile-remove(video-background-effects) */
|
25084
25107
|
onClickVideoEffects: props.onClickVideoEffects, componentRef: props.cameraButtonRef, disableTooltip: props.mobileView })),
|
25085
25108
|
/* @conditional-compile-remove(raise-hand) */ !props.mobileView &&
|
25086
|
-
isEnabled$1(options.raiseHandButton) &&
|
25109
|
+
isEnabled$1(options.raiseHandButton) &&
|
25110
|
+
/* @conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall && (React__default["default"].createElement(RaiseHand, { displayType: options.displayType, styles: commonButtonStyles,
|
25087
25111
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
25088
25112
|
disabled: props.disableButtonsForHoldScreen || isDisabled$3(options.microphoneButton) })),
|
25089
25113
|
screenShareButtonIsEnabled && (React__default["default"].createElement(ScreenShare, { option: options.screenShareButton, displayType: options.displayType, styles: screenShareButtonStyles,
|
25090
25114
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
25091
|
-
disabled: props.disableButtonsForHoldScreen || isDisabled$3(options.screenShareButton) })), (
|
25092
|
-
|
25115
|
+
disabled: props.disableButtonsForHoldScreen || isDisabled$3(options.screenShareButton) })), (_b = customButtons['primary']) === null || _b === void 0 ? void 0 :
|
25116
|
+
_b.slice(0, props.mobileView
|
25093
25117
|
? CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_MOBILE_CUSTOM_BUTTONS
|
25094
25118
|
: CUSTOM_BUTTON_OPTIONS.MAX_PRIMARY_DESKTOP_CUSTOM_BUTTONS).map((CustomButton, i) => {
|
25095
25119
|
return (React__default["default"].createElement(CustomButton, { key: `primary-custom-button-${i}`, styles: commonButtonStyles, showLabel: options.displayType !== 'compact', disableTooltip: props.mobileView }));
|
@@ -25116,8 +25140,8 @@ const CommonCallControlBar = (props) => {
|
|
25116
25140
|
React__default["default"].createElement(react.Stack, { horizontal: true, className: !props.mobileView ? react.mergeStyles(desktopButtonContainerStyle) : undefined },
|
25117
25141
|
isEnabled$1(options === null || options === void 0 ? void 0 : options.peopleButton) && (React__default["default"].createElement(PeopleButton, { checked: props.peopleButtonChecked, ariaLabel: props.peopleButtonChecked ? peopleButtonStrings === null || peopleButtonStrings === void 0 ? void 0 : peopleButtonStrings.selectedLabel : peopleButtonStrings === null || peopleButtonStrings === void 0 ? void 0 : peopleButtonStrings.label, showLabel: options.displayType !== 'compact', onClick: props.onPeopleButtonClicked, "data-ui-id": "common-call-composite-people-button", disabled: props.disableButtonsForLobbyPage ||
|
25118
25142
|
props.disableButtonsForHoldScreen ||
|
25119
|
-
isDisabled$3(options.peopleButton), strings: peopleButtonStrings, styles: commonButtonStyles, componentRef: props.peopleButtonRef })), (
|
25120
|
-
|
25143
|
+
isDisabled$3(options.peopleButton), strings: peopleButtonStrings, styles: commonButtonStyles, componentRef: props.peopleButtonRef })), (_c = customButtons['secondary']) === null || _c === void 0 ? void 0 :
|
25144
|
+
_c.slice(0, CUSTOM_BUTTON_OPTIONS.MAX_SECONDARY_DESKTOP_CUSTOM_BUTTONS).map((CustomButton, i) => {
|
25121
25145
|
return (React__default["default"].createElement(CustomButton, { key: `secondary-custom-button-${i}`, styles: commonButtonStyles, showLabel: options.displayType !== 'compact' }));
|
25122
25146
|
}))))))));
|
25123
25147
|
};
|
@@ -25372,9 +25396,11 @@ const inferCallWithChatControlOptions = (callWithChatControls) => {
|
|
25372
25396
|
};
|
25373
25397
|
/** @private */
|
25374
25398
|
const MoreDrawer = (props) => {
|
25375
|
-
var _a, _b, _c;
|
25399
|
+
var _a, _b, _c, _d;
|
25376
25400
|
/* @conditional-compile-remove(close-captions) */
|
25377
25401
|
const theme = react.useTheme();
|
25402
|
+
/* @conditional-compile-remove(rooms) */
|
25403
|
+
const callAdapter = useAdapter();
|
25378
25404
|
const drawerMenuItems = [];
|
25379
25405
|
const { speakers, onSelectSpeaker, onLightDismiss } = props;
|
25380
25406
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */ /* @conditional-compile-remove(close-captions) */ /* @conditional-compile-remove(raise-hand) */
|
@@ -25527,8 +25553,14 @@ const MoreDrawer = (props) => {
|
|
25527
25553
|
iconProps: { iconName: 'HoldCallContextualMenuItem', styles: { root: { lineHeight: 0 } } }
|
25528
25554
|
});
|
25529
25555
|
}
|
25556
|
+
/*@conditional-compile-remove(rooms) */
|
25557
|
+
const role = (_d = callAdapter.getState().call) === null || _d === void 0 ? void 0 : _d.role;
|
25558
|
+
/*@conditional-compile-remove(rooms) */
|
25559
|
+
const hideRaiseHandButtonInRoomsCall = callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
|
25530
25560
|
/* @conditional-compile-remove(raise-hand) */
|
25531
|
-
if (drawerSelectionOptions !== false &&
|
25561
|
+
if (drawerSelectionOptions !== false &&
|
25562
|
+
isEnabled(drawerSelectionOptions === null || drawerSelectionOptions === void 0 ? void 0 : drawerSelectionOptions.raiseHandButton) &&
|
25563
|
+
/*@conditional-compile-remove(rooms) */ !hideRaiseHandButtonInRoomsCall) {
|
25532
25564
|
const raiseHandIcon = raiseHandButtonProps.checked ? 'LowerHandContextualMenuItem' : 'RaiseHandContextualMenuItem';
|
25533
25565
|
drawerMenuItems.push({
|
25534
25566
|
itemKey: 'raiseHandButtonKey',
|