stream-chat-angular 5.1.5 → 5.1.6
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 +6 -1
- package/fesm2015/stream-chat-angular.mjs +10 -1
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +6 -1
- 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.6';
|
|
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.
|
|
@@ -6102,12 +6102,14 @@ class AutocompleteTextareaComponent {
|
|
|
6102
6102
|
}
|
|
6103
6103
|
if (changes.value && !this.value && this.messageInput) {
|
|
6104
6104
|
this.messageInput.nativeElement.style.height = 'auto';
|
|
6105
|
+
this.chatClientService?.chatClient?.logger?.('info', '[Autocomplete textarea] Value reset, adjusting textarea height to auto');
|
|
6105
6106
|
this.updateMentionedUsersFromText();
|
|
6106
6107
|
}
|
|
6107
6108
|
else if (changes.value &&
|
|
6108
6109
|
this.value &&
|
|
6109
6110
|
this.messageInput &&
|
|
6110
6111
|
this.isViewInited) {
|
|
6112
|
+
this.chatClientService?.chatClient?.logger?.('info', '[Autocomplete textarea] Value changed');
|
|
6111
6113
|
setTimeout(() => {
|
|
6112
6114
|
if (this.messageInput.nativeElement.scrollHeight > 0) {
|
|
6113
6115
|
this.adjustTextareaHeight();
|
|
@@ -6117,6 +6119,7 @@ class AutocompleteTextareaComponent {
|
|
|
6117
6119
|
}
|
|
6118
6120
|
ngAfterViewInit() {
|
|
6119
6121
|
this.isViewInited = true;
|
|
6122
|
+
this.chatClientService?.chatClient?.logger?.('info', '[Autocomplete textarea] View inited');
|
|
6120
6123
|
if (this.messageInput.nativeElement.scrollHeight > 0) {
|
|
6121
6124
|
this.adjustTextareaHeight();
|
|
6122
6125
|
}
|
|
@@ -6140,6 +6143,7 @@ class AutocompleteTextareaComponent {
|
|
|
6140
6143
|
}
|
|
6141
6144
|
}
|
|
6142
6145
|
inputChanged() {
|
|
6146
|
+
this.chatClientService?.chatClient?.logger?.('info', '[Autocomplete textarea] Input changed');
|
|
6143
6147
|
this.valueChange.emit(this.messageInput.nativeElement.value);
|
|
6144
6148
|
this.adjustTextareaHeight();
|
|
6145
6149
|
}
|
|
@@ -6154,6 +6158,7 @@ class AutocompleteTextareaComponent {
|
|
|
6154
6158
|
}
|
|
6155
6159
|
}
|
|
6156
6160
|
adjustTextareaHeight() {
|
|
6161
|
+
this.chatClientService?.chatClient?.logger?.('info', `[Autocomplete textarea] Textarea height set from ${this.messageInput.nativeElement.style.height} to ${this.messageInput.nativeElement.scrollHeight}px`);
|
|
6157
6162
|
this.messageInput.nativeElement.style.height = '';
|
|
6158
6163
|
this.messageInput.nativeElement.style.height = `${this.messageInput.nativeElement.scrollHeight}px`;
|
|
6159
6164
|
}
|