@azure/communication-react 1.6.1-alpha-202307010018 → 1.7.0-alpha-202307050016
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 +17 -6
- 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/TextFieldWithMention/TextFieldWithMention.js +6 -3
- package/dist/dist-esm/react-components/src/components/TextFieldWithMention/TextFieldWithMention.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +10 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/package.json +8 -8
@@ -178,7 +178,7 @@ const _isValidIdentifier = (identifier) => {
|
|
178
178
|
// Copyright (c) Microsoft Corporation.
|
179
179
|
// Licensed under the MIT license.
|
180
180
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
181
|
-
var telemetryVersion = '1.
|
181
|
+
var telemetryVersion = '1.7.0-alpha-202307050016';
|
182
182
|
|
183
183
|
// Copyright (c) Microsoft Corporation.
|
184
184
|
/**
|
@@ -7471,11 +7471,14 @@ const TextFieldWithMention = (props) => {
|
|
7471
7471
|
setCaretPosition(relativePosition);
|
7472
7472
|
if (triggerPriorIndex !== undefined) {
|
7473
7473
|
// trigger is found
|
7474
|
-
const
|
7474
|
+
const symbolBeforeTrigger = newValue.substring(triggerPriorIndex - 1, triggerPriorIndex);
|
7475
|
+
const isSpaceBeforeTrigger = symbolBeforeTrigger === ' ';
|
7476
|
+
// check if \r (Carriage Return), \n (Line Feed) or \r\n (End Of Line) is before the trigger
|
7477
|
+
const isNewLineBeforeTrigger = /\r|\n/.exec(symbolBeforeTrigger);
|
7475
7478
|
const wordAtSelection = newValue.substring(triggerPriorIndex, currentSelectionEndValue);
|
7476
7479
|
let tagIndex = currentTriggerStartIndex;
|
7477
|
-
if (!isSpaceBeforeTrigger && triggerPriorIndex !== 0) {
|
7478
|
-
//no space before the trigger <- continuation of the previous word
|
7480
|
+
if (!isSpaceBeforeTrigger && triggerPriorIndex !== 0 && isNewLineBeforeTrigger === null) {
|
7481
|
+
// no space before the trigger, it's not a beginning of the line and no new line before <- continuation of the previous word
|
7479
7482
|
tagIndex = -1;
|
7480
7483
|
setCurrentTriggerStartIndex(tagIndex);
|
7481
7484
|
}
|
@@ -24706,6 +24709,8 @@ const MediaGallery = (props) => {
|
|
24706
24709
|
const containerWidth = _useContainerWidth(containerRef);
|
24707
24710
|
/* @conditional-compile-remove(vertical-gallery) */
|
24708
24711
|
const containerHeight = _useContainerHeight(containerRef);
|
24712
|
+
/* @conditional-compile-remove(click-to-call) */
|
24713
|
+
const containerAspectRatio = containerWidth && containerHeight ? containerWidth / containerHeight : 0;
|
24709
24714
|
const layoutBasedOnTilePosition = localVideoTileLayoutTrampoline(
|
24710
24715
|
/* @conditional-compile-remove(click-to-call) */ (_a = props.localVideoTileOptions) === null || _a === void 0 ? void 0 : _a.position);
|
24711
24716
|
const cameraSwitcherProps = React.useMemo(() => {
|
@@ -24737,7 +24742,11 @@ const MediaGallery = (props) => {
|
|
24737
24742
|
/* @conditional-compile-remove(vertical-gallery) */
|
24738
24743
|
overflowGalleryPosition: overflowGalleryPosition,
|
24739
24744
|
/* @conditional-compile-remove(click-to-call) */
|
24740
|
-
localVideoTileSize: props.localVideoTileOptions === false
|
24745
|
+
localVideoTileSize: props.localVideoTileOptions === false
|
24746
|
+
? 'hidden'
|
24747
|
+
: props.isMobile && containerAspectRatio < 1
|
24748
|
+
? '9:16'
|
24749
|
+
: '16:9' })));
|
24741
24750
|
}, [
|
24742
24751
|
videoGalleryProps,
|
24743
24752
|
props.isMobile,
|
@@ -24747,7 +24756,9 @@ const MediaGallery = (props) => {
|
|
24747
24756
|
/* @conditional-compile-remove(pinned-participants) */ remoteVideoTileMenuOptions,
|
24748
24757
|
/* @conditional-compile-remove(vertical-gallery) */ overflowGalleryPosition,
|
24749
24758
|
/* @conditional-compile-remove(click-to-call) */ props.localVideoTileOptions,
|
24750
|
-
layoutBasedOnTilePosition
|
24759
|
+
layoutBasedOnTilePosition,
|
24760
|
+
/* @conditional-compile-remove(click-to-call) */
|
24761
|
+
containerAspectRatio
|
24751
24762
|
]);
|
24752
24763
|
return (React__default['default'].createElement("div", { ref: containerRef, style: mediaGalleryContainerStyles },
|
24753
24764
|
React__default['default'].createElement(Announcer$1, { announcementString: announcerString, ariaLive: 'polite' }),
|