stream-chat-angular 4.46.0 → 4.47.0

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.
@@ -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
- private class;
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
- constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.46.0",
3
+ "version": "4.47.0",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -1 +1 @@
1
- export const version = '4.46.0';
1
+ export const version = '4.47.0';