@azure/communication-react 1.5.1-alpha-202305100015 → 1.5.1-alpha-202305120012
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 +29 -80
- 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/InputBoxComponent.js +16 -5
- package/dist/dist-esm/react-components/src/components/InputBoxComponent.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/SendBox.js +4 -5
- package/dist/dist-esm/react-components/src/components/SendBox.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js +4 -7
- package/dist/dist-esm/react-components/src/components/styles/EditBox.styles.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.d.ts +3 -3
- package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js +7 -11
- package/dist/dist-esm/react-components/src/components/styles/InputBoxComponent.style.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.d.ts +0 -4
- package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js +0 -6
- package/dist/dist-esm/react-components/src/components/styles/SendBox.styles.js.map +1 -1
- package/package.json +8 -8
- package/dist/dist-esm/react-components/src/components/VoiceOverButton.d.ts +0 -7
- package/dist/dist-esm/react-components/src/components/VoiceOverButton.js +0 -32
- package/dist/dist-esm/react-components/src/components/VoiceOverButton.js.map +0 -1
- package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.d.ts +0 -9
- package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js +0 -26
- package/dist/dist-esm/react-components/src/components/styles/VoiceOverButton.style.js.map +0 -1
@@ -164,7 +164,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
164
164
|
// Copyright (c) Microsoft Corporation.
|
165
165
|
// Licensed under the MIT license.
|
166
166
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
167
|
-
var telemetryVersion = '1.5.1-alpha-
|
167
|
+
var telemetryVersion = '1.5.1-alpha-202305120012';
|
168
168
|
|
169
169
|
// Copyright (c) Microsoft Corporation.
|
170
170
|
/**
|
@@ -5268,12 +5268,6 @@ const sendBoxWrapperStyles = react.mergeStyles({
|
|
5268
5268
|
marginTop: '0.25rem'
|
5269
5269
|
}
|
5270
5270
|
});
|
5271
|
-
/**
|
5272
|
-
* @private
|
5273
|
-
*/
|
5274
|
-
const sendBoxStyle = react.mergeStyles({
|
5275
|
-
paddingRight: '2rem'
|
5276
|
-
});
|
5277
5271
|
/**
|
5278
5272
|
* @private
|
5279
5273
|
*/
|
@@ -5779,21 +5773,11 @@ const inputButtonStyle = react.mergeStyles({
|
|
5779
5773
|
margin: 'auto',
|
5780
5774
|
width: '1.0625rem',
|
5781
5775
|
height: '1.0625rem',
|
5776
|
+
backgroundColor: 'transparent',
|
5782
5777
|
'&:hover': {
|
5783
5778
|
backgroundColor: 'transparent'
|
5784
5779
|
}
|
5785
5780
|
});
|
5786
|
-
/**
|
5787
|
-
* @private
|
5788
|
-
*/
|
5789
|
-
const inlineButtonsContainerStyle = {
|
5790
|
-
position: 'absolute',
|
5791
|
-
right: '0.3rem',
|
5792
|
-
top: '0',
|
5793
|
-
bottom: '0',
|
5794
|
-
gap: '0.25rem',
|
5795
|
-
alignItems: 'center'
|
5796
|
-
};
|
5797
5781
|
/**
|
5798
5782
|
* @private
|
5799
5783
|
*/
|
@@ -5810,6 +5794,12 @@ const inputButtonTooltipStyle = react.mergeStyles({
|
|
5810
5794
|
// The toolTip host container show be a flex box, so that alignItems: 'center' works for inside buttons
|
5811
5795
|
display: 'flex'
|
5812
5796
|
});
|
5797
|
+
/**
|
5798
|
+
* @private
|
5799
|
+
*/
|
5800
|
+
const iconWrapperStyle$1 = react.mergeStyles({
|
5801
|
+
pointerEvents: 'none'
|
5802
|
+
});
|
5813
5803
|
|
5814
5804
|
// Copyright (c) Microsoft Corporation.
|
5815
5805
|
// Licensed under the MIT license.
|
@@ -6089,8 +6079,15 @@ const InputBoxComponent = (props) => {
|
|
6089
6079
|
const mergedTextContainerStyle = react.mergeStyles(textContainerStyle, styles === null || styles === void 0 ? void 0 : styles.textFieldContainer);
|
6090
6080
|
const mergedTextFieldStyle = react.concatStyleSets(textFieldStyle, {
|
6091
6081
|
fieldGroup: styles === null || styles === void 0 ? void 0 : styles.textField,
|
6092
|
-
errorMessage: styles === null || styles === void 0 ? void 0 : styles.systemMessage
|
6082
|
+
errorMessage: styles === null || styles === void 0 ? void 0 : styles.systemMessage,
|
6083
|
+
suffix: {
|
6084
|
+
backgroundColor: 'transparent',
|
6085
|
+
// Remove empty space in the suffix area when adding newline-style buttons
|
6086
|
+
display: props.inlineChildren ? 'flex' : 'contents',
|
6087
|
+
padding: '0 0.25rem'
|
6088
|
+
}
|
6093
6089
|
});
|
6090
|
+
const mergedChildrenStyle = react.mergeStyles(props.inlineChildren ? {} : newLineButtonsContainerStyle);
|
6094
6091
|
/* @conditional-compile-remove(mention) */
|
6095
6092
|
const onSuggestionSelected = React.useCallback((suggestion) => {
|
6096
6093
|
var _a, _b;
|
@@ -6178,6 +6175,9 @@ const InputBoxComponent = (props) => {
|
|
6178
6175
|
/* @conditional-compile-remove(mention) */
|
6179
6176
|
onSuggestionSelected
|
6180
6177
|
]);
|
6178
|
+
const onRenderChildren = () => {
|
6179
|
+
return (React__default['default'].createElement(react.Stack, { horizontal: true, className: mergedChildrenStyle }, children));
|
6180
|
+
};
|
6181
6181
|
/* @conditional-compile-remove(mention) */
|
6182
6182
|
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$w(void 0, void 0, void 0, function* () {
|
6183
6183
|
var _a;
|
@@ -6391,8 +6391,7 @@ const InputBoxComponent = (props) => {
|
|
6391
6391
|
// see onMouseDown for more details
|
6392
6392
|
/* @conditional-compile-remove(mention) */
|
6393
6393
|
setShouldHandleOnMouseDownDuringSelect(true);
|
6394
|
-
}, autoComplete: "off", onKeyDown: onTextFieldKeyDown, styles: mergedTextFieldStyle, disabled: disabled, errorMessage: errorMessage, elementRef: inputBoxRef })
|
6395
|
-
React__default['default'].createElement(react.Stack, { horizontal: true, className: react.mergeStyles(props.inlineChildren ? inlineButtonsContainerStyle : newLineButtonsContainerStyle) }, children))));
|
6394
|
+
}, autoComplete: "off", onKeyDown: onTextFieldKeyDown, styles: mergedTextFieldStyle, disabled: disabled, errorMessage: errorMessage, onRenderSuffix: onRenderChildren, elementRef: inputBoxRef }))));
|
6396
6395
|
};
|
6397
6396
|
/**
|
6398
6397
|
* @private
|
@@ -6414,7 +6413,9 @@ const InputBoxButton = (props) => {
|
|
6414
6413
|
setIsHover(true);
|
6415
6414
|
}, onMouseLeave: () => {
|
6416
6415
|
setIsHover(false);
|
6417
|
-
},
|
6416
|
+
},
|
6417
|
+
// VoiceOver fix: Avoid icon from stealing focus when IconButton is double-tapped to send message by wrapping with Stack with pointerEvents style to none
|
6418
|
+
onRenderIcon: () => React__default['default'].createElement(react.Stack, { className: iconWrapperStyle$1 }, onRenderIcon(isHover)) })));
|
6418
6419
|
};
|
6419
6420
|
/* @conditional-compile-remove(mention) */
|
6420
6421
|
/**
|
@@ -7093,55 +7094,6 @@ const addTag = (tag, parseStack, tags) => {
|
|
7093
7094
|
}
|
7094
7095
|
};
|
7095
7096
|
|
7096
|
-
// Copyright (c) Microsoft Corporation.
|
7097
|
-
/**
|
7098
|
-
* @private
|
7099
|
-
*/
|
7100
|
-
const buttonStyle$1 = react.mergeStyles({
|
7101
|
-
color: 'grey',
|
7102
|
-
margin: '0',
|
7103
|
-
padding: '0',
|
7104
|
-
width: '1.0625rem',
|
7105
|
-
height: '1.0625rem',
|
7106
|
-
border: 'none',
|
7107
|
-
minWidth: '0',
|
7108
|
-
'&:hover': {
|
7109
|
-
backgroundColor: 'transparent'
|
7110
|
-
}
|
7111
|
-
});
|
7112
|
-
/**
|
7113
|
-
* @private
|
7114
|
-
*/
|
7115
|
-
const iconWrapperStyle$1 = react.mergeStyles({
|
7116
|
-
position: 'absolute',
|
7117
|
-
pointerEvents: 'none'
|
7118
|
-
});
|
7119
|
-
|
7120
|
-
// Copyright (c) Microsoft Corporation.
|
7121
|
-
/**
|
7122
|
-
* @private
|
7123
|
-
*/
|
7124
|
-
const VoiceOverButton = (props) => {
|
7125
|
-
const { onRenderIcon, onClick, ariaLabel, className, id, tooltipContent } = props;
|
7126
|
-
const [isHover, setIsHover] = React.useState(false);
|
7127
|
-
const mergedButtonStyle = react.mergeStyles(buttonStyle$1, className);
|
7128
|
-
const theme = useTheme();
|
7129
|
-
const calloutStyle = { root: { padding: 0 }, calloutMain: { padding: '0.5rem' } };
|
7130
|
-
// Place callout with no gap between it and the button.
|
7131
|
-
const calloutProps = {
|
7132
|
-
gapSpace: 0,
|
7133
|
-
styles: calloutStyle,
|
7134
|
-
backgroundColor: isDarkThemed(theme) ? theme.palette.neutralLighter : ''
|
7135
|
-
};
|
7136
|
-
return (React__default['default'].createElement(react.TooltipHost, { hostClassName: inputButtonTooltipStyle, content: tooltipContent, calloutProps: Object.assign({}, calloutProps) },
|
7137
|
-
React__default['default'].createElement(react.DefaultButton, { className: mergedButtonStyle, ariaLabel: ariaLabel, onClick: onClick, id: id, onMouseEnter: () => {
|
7138
|
-
setIsHover(true);
|
7139
|
-
}, onMouseLeave: () => {
|
7140
|
-
setIsHover(false);
|
7141
|
-
} }),
|
7142
|
-
React__default['default'].createElement("div", { className: iconWrapperStyle$1 }, onRenderIcon(isHover))));
|
7143
|
-
};
|
7144
|
-
|
7145
7097
|
// Copyright (c) Microsoft Corporation.
|
7146
7098
|
/**
|
7147
7099
|
* @internal
|
@@ -7486,7 +7438,7 @@ const SendBox = (props) => {
|
|
7486
7438
|
hasErrorMessage: !!errorMessage,
|
7487
7439
|
disabled: !!disabled
|
7488
7440
|
})) },
|
7489
|
-
React__default['default'].createElement(InputBoxComponent, { autoFocus: autoFocus, "data-ui-id": ids.sendboxTextField, inlineChildren: true, disabled: disabled, errorMessage: onRenderSystemMessage ? onRenderSystemMessage(errorMessage) : errorMessage, textFieldRef: sendTextFieldRef, id: "sendbox",
|
7441
|
+
React__default['default'].createElement(InputBoxComponent, { autoFocus: autoFocus, "data-ui-id": ids.sendboxTextField, inlineChildren: true, disabled: disabled, errorMessage: onRenderSystemMessage ? onRenderSystemMessage(errorMessage) : errorMessage, textFieldRef: sendTextFieldRef, id: "sendbox", placeholderText: strings.placeholderText, textValue: textValue, onChange: (_, newValue) => setText(newValue), onKeyDown: (ev) => {
|
7490
7442
|
const keyWasSendingMessage = ev.key === 'Enter' && (ev.shiftKey === false || !supportNewline);
|
7491
7443
|
if (!keyWasSendingMessage) {
|
7492
7444
|
onTyping === null || onTyping === void 0 ? void 0 : onTyping();
|
@@ -7496,7 +7448,7 @@ const SendBox = (props) => {
|
|
7496
7448
|
}, styles: mergedStyles, supportNewline: supportNewline, maxLength: MAXIMUM_LENGTH_OF_MESSAGE$1,
|
7497
7449
|
/* @conditional-compile-remove(mention) */
|
7498
7450
|
mentionLookupOptions: mentionLookupOptions },
|
7499
|
-
React__default['default'].createElement(
|
7451
|
+
React__default['default'].createElement(InputBoxButton, { onRenderIcon: onRenderSendIcon, onClick: (e) => {
|
7500
7452
|
if (!textValueOverflow) {
|
7501
7453
|
sendMessageOnClick();
|
7502
7454
|
}
|
@@ -7869,13 +7821,10 @@ const SystemMessage = (props) => {
|
|
7869
7821
|
/**
|
7870
7822
|
* @private
|
7871
7823
|
*/
|
7872
|
-
const editBoxStyle = (inlineEditButtons) =>
|
7873
|
-
|
7874
|
-
marginBottom: '0.0875rem',
|
7875
|
-
|
7876
|
-
// This space affordance should be handled by the InputBoxComponent not the here (by the parent of the InputBoxComponent)
|
7877
|
-
paddingRight: inlineEditButtons ? '3.25rem' : '0.5rem'
|
7878
|
-
});
|
7824
|
+
const editBoxStyle = (inlineEditButtons) => {
|
7825
|
+
const paddingRight = inlineEditButtons ? {} : { paddingRight: '0.5rem' };
|
7826
|
+
return react.mergeStyles(Object.assign({ marginTop: '0.0875rem', marginBottom: '0.0875rem' }, paddingRight));
|
7827
|
+
};
|
7879
7828
|
/**
|
7880
7829
|
* @private
|
7881
7830
|
*/
|