stream-chat-angular 4.64.0 → 4.65.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.
@@ -1,7 +1,7 @@
1
1
  import { NgZone, OnDestroy, OnInit } from '@angular/core';
2
- import { Channel } from 'stream-chat';
2
+ import { Channel, FormatMessageResponse } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
- import { DefaultStreamChatGenerics, StreamMessage } from '../types';
4
+ import { DefaultStreamChatGenerics } from '../types';
5
5
  import { ChatClientService } from '../chat-client.service';
6
6
  import { MessageService } from '../message.service';
7
7
  import { CustomTemplatesService } from '../custom-templates.service';
@@ -23,7 +23,7 @@ export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
23
23
  isUnread: boolean;
24
24
  unreadCount: number | undefined;
25
25
  latestMessageText: string;
26
- latestMessage?: StreamMessage;
26
+ latestMessage?: FormatMessageResponse;
27
27
  displayAs: 'text' | 'html';
28
28
  private subscriptions;
29
29
  private canSendReadEvents;
@@ -1,3 +1,3 @@
1
- import { StreamMessage } from '../types';
1
+ import { GroupStyleOptions, StreamMessage } from '../types';
2
2
  export declare type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
3
- export declare const getGroupStyles: (message: StreamMessage, previousMessage?: StreamMessage<import("../types").DefaultStreamChatGenerics> | undefined, nextMessage?: StreamMessage<import("../types").DefaultStreamChatGenerics> | undefined, noGroupByUser?: boolean, lastReadMessageId?: string | undefined) => GroupStyle;
3
+ export declare const getGroupStyles: (message: StreamMessage, previousMessage?: StreamMessage<import("../types").DefaultStreamChatGenerics> | undefined, nextMessage?: StreamMessage<import("../types").DefaultStreamChatGenerics> | undefined, options?: GroupStyleOptions) => GroupStyle;
@@ -47,6 +47,10 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
47
47
  * If `true` date separators will be displayed
48
48
  */
49
49
  displayDateSeparator: boolean;
50
+ /**
51
+ * If `true` unread indicator will be displayed
52
+ */
53
+ displayUnreadSeparator: boolean;
50
54
  /**
51
55
  * If date separators are displayed, you can set the horizontal position of the date text.
52
56
  */
@@ -145,5 +149,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
145
149
  private newMessageReceived;
146
150
  private checkIfOnSeparateDates;
147
151
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
148
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "customMessageActions": "customMessageActions"; "displayDateSeparator": "displayDateSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; }, {}, never, 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>;
149
153
  }
package/lib/types.d.ts CHANGED
@@ -308,4 +308,9 @@ export declare type MessageActionsClickDetails<T extends DefaultStreamChatGeneri
308
308
  isMine: boolean;
309
309
  customActions: CustomMessageActionItem[];
310
310
  };
311
+ export declare type GroupStyleOptions = {
312
+ noGroupByUser?: boolean;
313
+ lastReadMessageId?: string;
314
+ noGroupByReadState?: boolean;
315
+ };
311
316
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.64.0",
3
+ "version": "4.65.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.64.0';
1
+ export const version = '4.65.0';