stream-chat-angular 5.7.1 → 5.7.2
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/is-safari.mjs +2 -2
- package/esm2020/lib/message-list/message-list.component.mjs +4 -3
- package/esm2020/lib/voice-recorder/audio-recorder.service.mjs +2 -2
- package/fesm2015/stream-chat-angular.mjs +6 -5
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +6 -5
- package/fesm2020/stream-chat-angular.mjs.map +1 -1
- package/lib/is-safari.d.ts +1 -1
- package/lib/message-list/message-list.component.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -21,7 +21,7 @@ import transliterate from '@stream-io/transliterate';
|
|
|
21
21
|
import * as i7 from 'angular-mentions';
|
|
22
22
|
import { MentionModule } from 'angular-mentions';
|
|
23
23
|
|
|
24
|
-
const version = '5.7.
|
|
24
|
+
const version = '5.7.2';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -5804,7 +5804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
5804
5804
|
}]
|
|
5805
5805
|
}], ctorParameters: function () { return []; } });
|
|
5806
5806
|
|
|
5807
|
-
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
5807
|
+
const isSafari = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
5808
5808
|
|
|
5809
5809
|
var MediaRecordingState;
|
|
5810
5810
|
(function (MediaRecordingState) {
|
|
@@ -6239,7 +6239,7 @@ class AudioRecorderService extends MultimediaRecorder {
|
|
|
6239
6239
|
* - For all other browsers we use audio/webm (which is then transcoded to wav)
|
|
6240
6240
|
*/
|
|
6241
6241
|
this.config = {
|
|
6242
|
-
mimeType: isSafari ? 'audio/mp4;codecs=mp4a.40.2' : 'audio/webm',
|
|
6242
|
+
mimeType: isSafari() ? 'audio/mp4;codecs=mp4a.40.2' : 'audio/webm',
|
|
6243
6243
|
};
|
|
6244
6244
|
}
|
|
6245
6245
|
enrichWithExtraData() {
|
|
@@ -7673,6 +7673,7 @@ class MessageListComponent {
|
|
|
7673
7673
|
this.parsedDates = new Map();
|
|
7674
7674
|
this.isViewInited = false;
|
|
7675
7675
|
this.forceRepaintSubject = new Subject();
|
|
7676
|
+
this.isSafari = isSafari();
|
|
7676
7677
|
this.scrollPosition$ = new BehaviorSubject('bottom');
|
|
7677
7678
|
this.messageNotificationJumpClicked = () => {
|
|
7678
7679
|
this.jumpToFirstUnreadMessage();
|
|
@@ -7917,7 +7918,7 @@ class MessageListComponent {
|
|
|
7917
7918
|
scrollToBottom() {
|
|
7918
7919
|
this.scrollContainer.nativeElement.scrollTop =
|
|
7919
7920
|
this.scrollContainer.nativeElement.scrollHeight + 0.1;
|
|
7920
|
-
if (isSafari) {
|
|
7921
|
+
if (this.isSafari) {
|
|
7921
7922
|
this.forceRepaintSubject.next();
|
|
7922
7923
|
}
|
|
7923
7924
|
}
|
|
@@ -8040,7 +8041,7 @@ class MessageListComponent {
|
|
|
8040
8041
|
(messageToAlignTo?.getBoundingClientRect()?.top || 0) -
|
|
8041
8042
|
(this.anchorMessageTopOffset || 0);
|
|
8042
8043
|
this.anchorMessageTopOffset = undefined;
|
|
8043
|
-
if (isSafari) {
|
|
8044
|
+
if (this.isSafari) {
|
|
8044
8045
|
this.forceRepaintSubject.next();
|
|
8045
8046
|
}
|
|
8046
8047
|
}
|