stream-chat-angular 4.46.0 → 4.47.1
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/bundles/stream-chat-angular.umd.js +56 -10
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +2 -2
- package/esm2015/lib/custom-templates.service.js +9 -1
- package/esm2015/lib/message-list/message-list.component.js +39 -9
- package/fesm2015/stream-chat-angular.js +48 -10
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +2 -0
- package/lib/custom-templates.service.d.ts +8 -0
- package/lib/message-list/message-list.component.d.ts +8 -3
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -40,6 +40,8 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
40
40
|
* It's important to note that filters don't apply to updates to the list from events.
|
|
41
41
|
*
|
|
42
42
|
* Our platform documentation covers the topic of [channel events](https://getstream.io/chat/docs/javascript/event_object/?language=javascript#events) in depth.
|
|
43
|
+
*
|
|
44
|
+
* By default if an error occurs during channel load, the Observable will emit an error, which will close the stream. Users will have to reload the page to be able to reinitialize the `ChannelService`. If you don't want the streams to be closed, you can pass `options.keepAliveChannels$OnError = true` to the `init` method. In that case the `channelQueryState$` stream will emit the status of the latest channel load request.
|
|
43
45
|
*/
|
|
44
46
|
channels$: Observable<Channel<T>[] | undefined>;
|
|
45
47
|
/**
|
|
@@ -192,6 +192,14 @@ export declare class CustomTemplatesService {
|
|
|
192
192
|
* The template used to display the new messages indicator inside the [message list](../components/MessageListComponent.mdx)
|
|
193
193
|
*/
|
|
194
194
|
newMessagesIndicatorTemplate$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
195
|
+
/**
|
|
196
|
+
* The template to show if the main message list is empty
|
|
197
|
+
*/
|
|
198
|
+
emptyMainMessageListPlaceholder$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
199
|
+
/**
|
|
200
|
+
* The template to show if the thread message list is empty
|
|
201
|
+
*/
|
|
202
|
+
emptyThreadMessageListPlaceholder$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
195
203
|
constructor();
|
|
196
204
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTemplatesService, never>;
|
|
197
205
|
static ɵprov: i0.ɵɵInjectableDeclaration<CustomTemplatesService>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewChecked, AfterViewInit, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ChannelService } from '../channel.service';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MessageContext, StreamMessage, TypingIndicatorContext, CustomMessageActionItem, DateSeparatorContext } from '../types';
|
|
@@ -17,6 +17,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
17
17
|
private customTemplatesService;
|
|
18
18
|
private dateParser;
|
|
19
19
|
private ngZone;
|
|
20
|
+
private cdRef;
|
|
20
21
|
/**
|
|
21
22
|
* Determines if the message list should display channel messages or [thread messages](https://getstream.io/chat/docs/javascript/threads/?language=javascript).
|
|
22
23
|
*/
|
|
@@ -60,9 +61,11 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
60
61
|
messageTemplate: TemplateRef<MessageContext> | undefined;
|
|
61
62
|
customDateSeparatorTemplate: TemplateRef<DateSeparatorContext> | undefined;
|
|
62
63
|
customnewMessagesIndicatorTemplate: TemplateRef<void> | undefined;
|
|
64
|
+
emptyMainMessageListTemplate: TemplateRef<void> | null;
|
|
65
|
+
emptyThreadMessageListTemplate: TemplateRef<void> | null;
|
|
63
66
|
messages$: Observable<StreamMessage[]>;
|
|
64
67
|
enabledMessageActions: string[];
|
|
65
|
-
|
|
68
|
+
isEmpty: boolean;
|
|
66
69
|
unreadMessageCount: number;
|
|
67
70
|
isUserScrolled: boolean | undefined;
|
|
68
71
|
groupStyles: GroupStyle[];
|
|
@@ -90,7 +93,8 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
90
93
|
private isLatestMessageInList;
|
|
91
94
|
private channelId?;
|
|
92
95
|
private parsedDates;
|
|
93
|
-
|
|
96
|
+
private get class();
|
|
97
|
+
constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone, cdRef: ChangeDetectorRef);
|
|
94
98
|
ngOnInit(): void;
|
|
95
99
|
ngOnChanges(changes: SimpleChanges): void;
|
|
96
100
|
ngAfterViewInit(): void;
|
|
@@ -109,6 +113,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
109
113
|
get replyCountParam(): {
|
|
110
114
|
replyCount: number | undefined;
|
|
111
115
|
};
|
|
116
|
+
get emptyListTemplate(): TemplateRef<void> | null;
|
|
112
117
|
private preserveScrollbarPosition;
|
|
113
118
|
private forceRepaint;
|
|
114
119
|
private getScrollPosition;
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.47.1';
|