stream-chat-angular 4.67.0 → 4.68.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.
@@ -198,7 +198,11 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
198
198
  */
199
199
  customPaginator?: (channelQueryResult: Channel<T>[]) => NextPageConfiguration;
200
200
  /**
201
- * internal
201
+ * @internal
202
+ */
203
+ static readonly MAX_MESSAGE_COUNT_IN_MESSAGE_LIST = 250;
204
+ /**
205
+ * @internal
202
206
  */
203
207
  static readonly MAX_MESSAGE_REACTIONS_TO_FETCH = 1200;
204
208
  private channelsSubject;
@@ -232,6 +236,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
232
236
  private nextPageConfiguration?;
233
237
  private areReadEventsPaused;
234
238
  constructor(chatClientService: ChatClientService<T>, ngZone: NgZone, notificationService: NotificationService);
239
+ /**
240
+ * internal
241
+ */
242
+ removeOldMessageFromMessageList(): void;
235
243
  /**
236
244
  * If set to false, read events won't be sent as new messages are received. If set to true active channel (if any) will immediately be marked as read.
237
245
  */
@@ -439,6 +447,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
439
447
  * @param parentMessageId The ID of the parent message if we want to load a thread message
440
448
  */
441
449
  jumpToMessage(messageId: string, parentMessageId?: string): Promise<void>;
450
+ /**
451
+ * Clears the currently selected message to jump
452
+ */
453
+ clearMessageJump(): void;
442
454
  /**
443
455
  * Pins the given message in the channel
444
456
  * @param message
@@ -69,6 +69,10 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
69
69
  * You can turn on and off the loading indicator that signals to users that more messages are being loaded to the message list
70
70
  */
71
71
  displayLoadingIndicator: boolean;
72
+ /**
73
+ * @internal
74
+ */
75
+ limitNumberOfMessagesInList: boolean;
72
76
  typingIndicatorTemplate: TemplateRef<TypingIndicatorContext> | undefined;
73
77
  messageTemplate: TemplateRef<MessageContext> | undefined;
74
78
  customDateSeparatorTemplate: TemplateRef<DateSeparatorContext> | undefined;
@@ -113,6 +117,10 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
113
117
  private isViewInited;
114
118
  private checkIfUnreadNotificationIsVisibleTimeout?;
115
119
  private jumpToLatestButtonVisibilityTimeout?;
120
+ private messageRemoveTimeout?;
121
+ private removeOldMessagesSubscription?;
122
+ private isSafari;
123
+ private forceRepaintSubject;
116
124
  private get class();
117
125
  constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone, cdRef: ChangeDetectorRef, messageActionsService: MessageActionsService);
118
126
  messageNotificationJumpClicked: () => void;
@@ -149,5 +157,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
149
157
  private newMessageReceived;
150
158
  private checkIfOnSeparateDates;
151
159
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "customMessageActions": "customMessageActions"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; }, {}, never, never>;
160
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "customMessageActions": "customMessageActions"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; "limitNumberOfMessagesInList": "limitNumberOfMessagesInList"; }, {}, never, never>;
153
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.67.0",
3
+ "version": "4.68.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.67.0';
1
+ export const version = '4.68.0';