@azure/communication-react 1.3.3-alpha-202208270015.0 → 1.3.3-alpha-202208280018.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 +21 -25
- 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/Dialpad/Dialpad.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js +17 -21
- package/dist/dist-esm/react-components/src/components/Dialpad/Dialpad.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.d.ts +2 -2
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js +2 -2
- package/dist/dist-esm/react-components/src/components/styles/Dialpad.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/CallingDialpad.styles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/SendDtmfDialpad.styles.js.map +1 -1
- package/package.json +8 -8
@@ -4259,8 +4259,8 @@ export declare interface DialpadStyles {
|
|
4259
4259
|
root?: IStyle;
|
4260
4260
|
button?: IButtonStyles;
|
4261
4261
|
textField?: Partial<ITextFieldStyles>;
|
4262
|
-
|
4263
|
-
|
4262
|
+
digit?: IStyle;
|
4263
|
+
letter?: IStyle;
|
4264
4264
|
deleteIcon?: IButtonStyles;
|
4265
4265
|
}
|
4266
4266
|
|
@@ -192,7 +192,7 @@ const fromFlatCommunicationIdentifier = (id) => {
|
|
192
192
|
// Copyright (c) Microsoft Corporation.
|
193
193
|
// Licensed under the MIT license.
|
194
194
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
195
|
-
var telemetryVersion = '1.3.3-alpha-
|
195
|
+
var telemetryVersion = '1.3.3-alpha-202208280018.0';
|
196
196
|
|
197
197
|
// Copyright (c) Microsoft Corporation.
|
198
198
|
/**
|
@@ -7722,7 +7722,7 @@ const buttonStyles = (theme) => ({
|
|
7722
7722
|
/**
|
7723
7723
|
* @private
|
7724
7724
|
*/
|
7725
|
-
const
|
7725
|
+
const digitStyles = (theme) => {
|
7726
7726
|
return {
|
7727
7727
|
fontSize: '1.25rem',
|
7728
7728
|
fontWeight: theme.fonts.medium.fontWeight,
|
@@ -7758,7 +7758,7 @@ const textFieldStyles = (theme) => ({
|
|
7758
7758
|
/**
|
7759
7759
|
* @private
|
7760
7760
|
*/
|
7761
|
-
const
|
7761
|
+
const letterStyles = (theme) => {
|
7762
7762
|
return {
|
7763
7763
|
fontSize: '0.625rem',
|
7764
7764
|
color: `${theme.palette.neutralSecondary}`,
|
@@ -7888,22 +7888,18 @@ var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
7888
7888
|
});
|
7889
7889
|
};
|
7890
7890
|
const dialPadButtonsDefault = [
|
7891
|
+
[{ digit: '1' }, { digit: '2', letter: 'ABC' }, { digit: '3', letter: 'DEF' }],
|
7891
7892
|
[
|
7892
|
-
{
|
7893
|
-
{
|
7894
|
-
{
|
7893
|
+
{ digit: '4', letter: 'GHI' },
|
7894
|
+
{ digit: '5', letter: 'JKL' },
|
7895
|
+
{ digit: '6', letter: 'MNO' }
|
7895
7896
|
],
|
7896
7897
|
[
|
7897
|
-
{
|
7898
|
-
{
|
7899
|
-
{
|
7898
|
+
{ digit: '7', letter: 'PQRS' },
|
7899
|
+
{ digit: '8', letter: 'TUV' },
|
7900
|
+
{ digit: '9', letter: 'WXYZ' }
|
7900
7901
|
],
|
7901
|
-
[
|
7902
|
-
{ primaryContent: '7', secondaryContent: 'PQRS' },
|
7903
|
-
{ primaryContent: '8', secondaryContent: 'TUV' },
|
7904
|
-
{ primaryContent: '9', secondaryContent: 'WXYZ' }
|
7905
|
-
],
|
7906
|
-
[{ primaryContent: '*' }, { primaryContent: '0', secondaryContent: '+' }, { primaryContent: '#' }]
|
7902
|
+
[{ digit: '*' }, { digit: '0', letter: '+' }, { digit: '#' }]
|
7907
7903
|
];
|
7908
7904
|
const DtmfTones = [
|
7909
7905
|
'Num1',
|
@@ -7922,18 +7918,18 @@ const DtmfTones = [
|
|
7922
7918
|
const DialpadButton = (props) => {
|
7923
7919
|
var _a, _b, _c, _d;
|
7924
7920
|
const theme = react.useTheme();
|
7925
|
-
const {
|
7921
|
+
const { digit, index, onClick, onLongPress } = props;
|
7926
7922
|
const clickFunction = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
7927
|
-
onClick(
|
7928
|
-
}), [
|
7923
|
+
onClick(digit, index);
|
7924
|
+
}), [digit, index, onClick]);
|
7929
7925
|
const longPressFunction = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
7930
|
-
onLongPress(
|
7931
|
-
}), [
|
7926
|
+
onLongPress(digit, index);
|
7927
|
+
}), [digit, index, onLongPress]);
|
7932
7928
|
const { handlers } = useLongPress(clickFunction, longPressFunction);
|
7933
7929
|
return (React__default['default'].createElement(react.DefaultButton, Object.assign({ "data-test-id": `dialpad-button-${props.index}`, styles: react.concatStyleSets(buttonStyles(), (_a = props.styles) === null || _a === void 0 ? void 0 : _a.button) }, handlers),
|
7934
7930
|
React__default['default'].createElement(react.Stack, null,
|
7935
|
-
React__default['default'].createElement(react.Text, { className: react.mergeStyles(
|
7936
|
-
React__default['default'].createElement(react.Text, { className: react.mergeStyles(
|
7931
|
+
React__default['default'].createElement(react.Text, { className: react.mergeStyles(digitStyles(theme), (_b = props.styles) === null || _b === void 0 ? void 0 : _b.digit) }, props.digit),
|
7932
|
+
React__default['default'].createElement(react.Text, { className: react.mergeStyles(letterStyles(theme), (_c = props.styles) === null || _c === void 0 ? void 0 : _c.letter) }, (_d = props.letter) !== null && _d !== void 0 ? _d : ' '))));
|
7937
7933
|
};
|
7938
7934
|
const DialpadContainer = (props) => {
|
7939
7935
|
var _a, _b;
|
@@ -8009,7 +8005,7 @@ const DialpadContainer = (props) => {
|
|
8009
8005
|
then use this index to locate the corresponding dtmf tones
|
8010
8006
|
DtmfTones[index]
|
8011
8007
|
*/
|
8012
|
-
index: columnIndex + rowIndex * rows.length,
|
8008
|
+
index: columnIndex + rowIndex * rows.length, digit: button.digit, letter: button.letter, styles: props.styles, onClick: onClickDialpad, onLongPress: onLongPressDialpad })))));
|
8013
8009
|
}))));
|
8014
8010
|
};
|
8015
8011
|
/**
|
@@ -15067,7 +15063,7 @@ const themedDialpadStyle$1 = (isMobile, theme) => ({
|
|
15067
15063
|
}
|
15068
15064
|
}
|
15069
15065
|
},
|
15070
|
-
|
15066
|
+
digit: {
|
15071
15067
|
color: theme.palette.themeDarkAlt
|
15072
15068
|
}
|
15073
15069
|
});
|
@@ -15742,7 +15738,7 @@ const themedDialpadStyle = (isMobile, theme) => ({
|
|
15742
15738
|
}
|
15743
15739
|
}
|
15744
15740
|
},
|
15745
|
-
|
15741
|
+
digit: {
|
15746
15742
|
color: theme.palette.themeDarkAlt
|
15747
15743
|
}
|
15748
15744
|
});
|