@azure/communication-react 1.12.1-alpha-202401250013 → 1.12.1-alpha-202401260012
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 +42 -21
- 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/components/CallArrangement.js +5 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallArrangement.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js +42 -19
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/MoreDrawer.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/common/Drawer/PreparedMoreDrawer.js.map +1 -1
- package/package.json +1 -1
@@ -173,7 +173,7 @@ function getDefaultExportFromCjs (x) {
|
|
173
173
|
// Copyright (c) Microsoft Corporation.
|
174
174
|
// Licensed under the MIT License.
|
175
175
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
176
|
-
var telemetryVersion = '1.12.1-alpha-
|
176
|
+
var telemetryVersion = '1.12.1-alpha-202401260012';
|
177
177
|
|
178
178
|
|
179
179
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -27531,7 +27531,7 @@ const inferCallWithChatControlOptions = (callWithChatControls) => {
|
|
27531
27531
|
};
|
27532
27532
|
/** @private */
|
27533
27533
|
const MoreDrawer = (props) => {
|
27534
|
-
var _a, _b, _c, _d;
|
27534
|
+
var _a, _b, _c, _d, _e;
|
27535
27535
|
/* @conditional-compile-remove(close-captions) */
|
27536
27536
|
const theme = react.useTheme();
|
27537
27537
|
/* @conditional-compile-remove(rooms) */
|
@@ -27542,6 +27542,12 @@ const MoreDrawer = (props) => {
|
|
27542
27542
|
const localeStrings = useLocale();
|
27543
27543
|
/* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
|
27544
27544
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
27545
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
27546
|
+
const callees = useSelector$1(getTargetCallees);
|
27547
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
27548
|
+
const allowDtmfDialer = showDtmfDialer(callees);
|
27549
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
27550
|
+
const [dtmfDialerChecked, setDtmfDialerChecked] = React.useState((_a = props.dtmfDialerPresent) !== null && _a !== void 0 ? _a : false);
|
27545
27551
|
/* @conditional-compile-remove(raise-hand) */
|
27546
27552
|
const raiseHandButtonProps = usePropsFor$1(RaiseHandButton);
|
27547
27553
|
const onSpeakerItemClick = React.useCallback((_ev, itemKey) => {
|
@@ -27571,7 +27577,7 @@ const MoreDrawer = (props) => {
|
|
27571
27577
|
onItemClick: onSpeakerItemClick,
|
27572
27578
|
secondaryIconProps: isDeviceSelected(speaker, props.selectedSpeaker) ? { iconName: 'Accept' } : undefined
|
27573
27579
|
})),
|
27574
|
-
secondaryText: (
|
27580
|
+
secondaryText: (_b = props.selectedSpeaker) === null || _b === void 0 ? void 0 : _b.name
|
27575
27581
|
});
|
27576
27582
|
}
|
27577
27583
|
const { microphones, onSelectMicrophone } = props;
|
@@ -27606,9 +27612,34 @@ const MoreDrawer = (props) => {
|
|
27606
27612
|
secondaryIconProps: isDeviceSelected(mic, props.selectedMicrophone) ? { iconName: 'Accept' } : undefined,
|
27607
27613
|
disabled: drawerSelectionOptions !== false ? isDisabled$4(drawerSelectionOptions.microphoneButton) : undefined
|
27608
27614
|
})),
|
27609
|
-
secondaryText: (
|
27615
|
+
secondaryText: (_c = props.selectedMicrophone) === null || _c === void 0 ? void 0 : _c.name
|
27610
27616
|
});
|
27611
27617
|
}
|
27618
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
27619
|
+
const dtmfDialerScreenOption = {
|
27620
|
+
itemKey: 'dtmfDialerScreenKey',
|
27621
|
+
text: !dtmfDialerChecked
|
27622
|
+
? localeStrings.strings.call.dtmfDialerMoreButtonLabelOn
|
27623
|
+
: localeStrings.strings.call.dtmfDialerMoreButtonLabelOff,
|
27624
|
+
onItemClick: () => {
|
27625
|
+
if (props.onSetDialpadPage) {
|
27626
|
+
props.onSetDialpadPage();
|
27627
|
+
}
|
27628
|
+
setDtmfDialerChecked(!dtmfDialerChecked);
|
27629
|
+
onLightDismiss();
|
27630
|
+
},
|
27631
|
+
iconProps: {
|
27632
|
+
iconName: 'DtmfDialpadButton',
|
27633
|
+
styles: { root: { lineHeight: 0 } }
|
27634
|
+
}
|
27635
|
+
};
|
27636
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
27637
|
+
/**
|
27638
|
+
* Only render the dtmf dialer if the dialpad for PSTN calls is not present
|
27639
|
+
*/
|
27640
|
+
if (props.onSetDialpadPage && allowDtmfDialer) {
|
27641
|
+
drawerMenuItems.push(dtmfDialerScreenOption);
|
27642
|
+
}
|
27612
27643
|
/* @conditional-compile-remove(gallery-layouts) */
|
27613
27644
|
const galleryLayoutOptions = {
|
27614
27645
|
itemKey: 'galleryPositionKey',
|
@@ -27662,7 +27693,7 @@ const MoreDrawer = (props) => {
|
|
27662
27693
|
secondaryIconProps: props.userSetGalleryLayout === 'default' ? { iconName: 'Accept' } : undefined
|
27663
27694
|
};
|
27664
27695
|
/* @conditional-compile-remove(gallery-layout-composite) */
|
27665
|
-
(
|
27696
|
+
(_d = galleryLayoutOptions.subMenuProps) === null || _d === void 0 ? void 0 : _d.push(galleryOption);
|
27666
27697
|
/* @conditional-compile-remove(gallery-layouts) */
|
27667
27698
|
drawerMenuItems.push(galleryLayoutOptions);
|
27668
27699
|
if (drawerSelectionOptions !== false && isEnabled(drawerSelectionOptions === null || drawerSelectionOptions === void 0 ? void 0 : drawerSelectionOptions.peopleButton)) {
|
@@ -27689,7 +27720,7 @@ const MoreDrawer = (props) => {
|
|
27689
27720
|
});
|
27690
27721
|
}
|
27691
27722
|
/*@conditional-compile-remove(rooms) */
|
27692
|
-
const role = (
|
27723
|
+
const role = (_e = callAdapter.getState().call) === null || _e === void 0 ? void 0 : _e.role;
|
27693
27724
|
/*@conditional-compile-remove(rooms) */
|
27694
27725
|
const hideRaiseHandButtonInRoomsCall = callAdapter.getState().isRoomsCall && role && ['Consumer', 'Unknown'].includes(role);
|
27695
27726
|
/* @conditional-compile-remove(raise-hand) */
|
@@ -27715,20 +27746,6 @@ const MoreDrawer = (props) => {
|
|
27715
27746
|
}
|
27716
27747
|
});
|
27717
27748
|
}
|
27718
|
-
/*@conditional-compile-remove(PSTN-calls) */
|
27719
|
-
// dtmf tone sending only works for 1:1 PSTN call
|
27720
|
-
if (drawerSelectionOptions !== false && props.onClickShowDialpad) {
|
27721
|
-
drawerMenuItems.push({
|
27722
|
-
itemKey: 'showDialpadKey',
|
27723
|
-
disabled: props.disableButtonsForHoldScreen,
|
27724
|
-
text: localeStrings.strings.callWithChat.openDtmfDialpadLabel,
|
27725
|
-
onItemClick: () => {
|
27726
|
-
props.onClickShowDialpad && props.onClickShowDialpad();
|
27727
|
-
onLightDismiss();
|
27728
|
-
},
|
27729
|
-
iconProps: { iconName: 'Dialpad', styles: { root: { lineHeight: 0 } } }
|
27730
|
-
});
|
27731
|
-
}
|
27732
27749
|
/* @conditional-compile-remove(close-captions) */
|
27733
27750
|
//Captions drawer menu
|
27734
27751
|
const supportedSpokenLanguageStrings = useLocale().strings.call.spokenLanguageStrings;
|
@@ -29506,7 +29523,11 @@ const CallArrangement = (props) => {
|
|
29506
29523
|
/* @conditional-compile-remove(gallery-layouts) */
|
29507
29524
|
onUserSetGalleryLayout: props.onUserSetGalleryLayoutChange,
|
29508
29525
|
/* @conditional-compile-remove(gallery-layouts) */
|
29509
|
-
userSetGalleryLayout: props.userSetGalleryLayout
|
29526
|
+
userSetGalleryLayout: props.userSetGalleryLayout,
|
29527
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
29528
|
+
onSetDialpadPage: props.onSetDialpadPage,
|
29529
|
+
/* @conditional-compile-remove(dtmf-dialer) */
|
29530
|
+
dtmfDialerPresent: props.dtmfDialerPresent }))),
|
29510
29531
|
/* @conditional-compile-remove(PSTN-calls) */
|
29511
29532
|
((_h = props.callControlProps) === null || _h === void 0 ? void 0 : _h.options) !== false && showDtmfDialpad && (React.createElement(react.Stack, { styles: drawerContainerStylesValue },
|
29512
29533
|
React.createElement(SendDtmfDialpad, { isMobile: props.mobileView, strings: dialpadStrings, showDialpad: showDtmfDialpad, onDismissDialpad: onDismissDtmfDialpad }))),
|