stream-chat-angular 2.15.0 → 2.16.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.
@@ -65,12 +65,27 @@ export declare class ChannelService {
65
65
  * Emits the currently selected parent message. If no message is selected, it emits undefined.
66
66
  */
67
67
  activeParentMessage$: Observable<StreamMessage | undefined>;
68
+ /**
69
+ * Emits the currently selected message to quote
70
+ */
68
71
  messageToQuote$: Observable<StreamMessage | undefined>;
69
72
  /**
70
- * Custom event handler to call if a new message received from a channel that is not being watched, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
73
+ * Emits the list of users that are currently typing in the channel (current user is not included)
71
74
  */
72
75
  usersTypingInChannel$: Observable<UserResponse[]>;
76
+ /**
77
+ * Emits the list of users that are currently typing in the active thread (current user is not included)
78
+ */
73
79
  usersTypingInThread$: Observable<UserResponse[]>;
80
+ /**
81
+ * Emits a map that contains the date of the latest message sent by the current user by channels (this is used to detect is slow mode countdown should be started)
82
+ */
83
+ latestMessageDateByUserByChannels$: Observable<{
84
+ [key: string]: Date;
85
+ }>;
86
+ /**
87
+ * Custom event handler to call if a new message received from a channel that is not being watched, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
88
+ */
74
89
  customNewMessageNotificationHandler?: (notification: Notification, channelListSetter: (channels: Channel[]) => void) => void;
75
90
  /**
76
91
  * Custom event handler to call when the user is added to a channel, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
@@ -111,6 +126,7 @@ export declare class ChannelService {
111
126
  private activeChannelSubscriptions;
112
127
  private activeParentMessageIdSubject;
113
128
  private activeThreadMessagesSubject;
129
+ private latestMessageDateByUserByChannelsSubject;
114
130
  private filters;
115
131
  private sort;
116
132
  private options;
@@ -257,6 +273,7 @@ export declare class ChannelService {
257
273
  private transformToStreamMessage;
258
274
  private handleTypingStartEvent;
259
275
  private handleTypingStopEvent;
276
+ private updateLatestMessages;
260
277
  static ɵfac: i0.ɵɵFactoryDeclaration<ChannelService, never>;
261
278
  static ɵprov: i0.ɵɵInjectableDeclaration<ChannelService>;
262
279
  }
@@ -78,6 +78,8 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
78
78
  mentionedUsers: UserResponse[];
79
79
  quotedMessage: undefined | StreamMessage;
80
80
  typingStart$: Subject<void>;
81
+ cooldown$: Observable<number> | undefined;
82
+ isCooldownInProgress: boolean;
81
83
  private fileInput;
82
84
  private textareaAnchor;
83
85
  private subscriptions;
@@ -93,6 +95,7 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
93
95
  get containsLinks(): boolean;
94
96
  get accept(): string;
95
97
  get quotedMessageAttachments(): import("stream-chat").Attachment<import("../types").DefaultAttachmentType>[];
98
+ get disabledTextareaText(): "" | "streamChat.You can't send thread replies in this channel" | "streamChat.You can't send messages in this channel" | "streamChat.Slow Mode ON";
96
99
  filesSelected(fileList: FileList | null): Promise<void>;
97
100
  deselectMessageToQuote(): void;
98
101
  private clearFileInput;
@@ -101,6 +104,8 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
101
104
  private areAttachemntsValid;
102
105
  private setCanSendMessages;
103
106
  private get parentMessageId();
107
+ private startCooldown;
108
+ private stopCooldown;
104
109
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
105
110
  static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": "isFileUploadEnabled"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "mentionAutocompleteItemTemplate": "mentionAutocompleteItemTemplate"; "commandAutocompleteItemTemplate": "commandAutocompleteItemTemplate"; "emojiPickerTemplate": "emojiPickerTemplate"; "mode": "mode"; "acceptedFileTypes": "acceptedFileTypes"; "isMultipleFileUploadEnabled": "isMultipleFileUploadEnabled"; "message": "message"; }, { "messageUpdate": "messageUpdate"; }, never, never>;
106
111
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "2.15.0",
3
+ "version": "2.16.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 = '2.15.0';
1
+ export const version = '2.16.0';