stream-chat-angular 5.1.7 → 5.1.9
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/assets/version.d.ts +1 -1
- package/esm2020/assets/version.mjs +2 -2
- package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +3 -3
- package/esm2020/lib/message-input/textarea/textarea.component.mjs +3 -3
- package/fesm2015/stream-chat-angular.mjs +5 -5
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +5 -5
- package/fesm2020/stream-chat-angular.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -19,7 +19,7 @@ import transliterate from '@stream-io/transliterate';
|
|
|
19
19
|
import * as i8$1 from 'angular-mentions';
|
|
20
20
|
import { MentionModule } from 'angular-mentions';
|
|
21
21
|
|
|
22
|
-
const version = '5.1.
|
|
22
|
+
const version = '5.1.9';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -5912,7 +5912,7 @@ class TextareaComponent {
|
|
|
5912
5912
|
}
|
|
5913
5913
|
ngAfterViewInit() {
|
|
5914
5914
|
this.isViewInited = true;
|
|
5915
|
-
if (this.messageInput.nativeElement.scrollHeight > 0) {
|
|
5915
|
+
if (this.messageInput.nativeElement.scrollHeight > 0 && this.value) {
|
|
5916
5916
|
this.adjustTextareaHeight();
|
|
5917
5917
|
}
|
|
5918
5918
|
}
|
|
@@ -5924,7 +5924,7 @@ class TextareaComponent {
|
|
|
5924
5924
|
this.adjustTextareaHeight();
|
|
5925
5925
|
}
|
|
5926
5926
|
enterHit(event) {
|
|
5927
|
-
if (this.inputMode === 'desktop') {
|
|
5927
|
+
if (this.inputMode === 'desktop' && !event.isComposing) {
|
|
5928
5928
|
event.preventDefault();
|
|
5929
5929
|
this.send.next();
|
|
5930
5930
|
}
|
|
@@ -6120,7 +6120,7 @@ class AutocompleteTextareaComponent {
|
|
|
6120
6120
|
ngAfterViewInit() {
|
|
6121
6121
|
this.isViewInited = true;
|
|
6122
6122
|
this.chatClientService?.chatClient?.logger?.('info', '[Autocomplete textarea] View inited');
|
|
6123
|
-
if (this.messageInput.nativeElement.scrollHeight > 0) {
|
|
6123
|
+
if (this.messageInput.nativeElement.scrollHeight > 0 && this.value) {
|
|
6124
6124
|
this.adjustTextareaHeight();
|
|
6125
6125
|
}
|
|
6126
6126
|
}
|
|
@@ -6151,7 +6151,7 @@ class AutocompleteTextareaComponent {
|
|
|
6151
6151
|
this.updateMentionedUsersFromText();
|
|
6152
6152
|
}
|
|
6153
6153
|
enterHit(event) {
|
|
6154
|
-
if (this.inputMode === 'desktop') {
|
|
6154
|
+
if (this.inputMode === 'desktop' && !event.isComposing) {
|
|
6155
6155
|
event.preventDefault();
|
|
6156
6156
|
this.updateMentionedUsersFromText();
|
|
6157
6157
|
this.send.next();
|