stream-chat-angular 2.15.0 → 2.17.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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +176 -94
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-list/attachment-list.component.js +2 -2
- package/esm2015/lib/channel.service.js +26 -2
- package/esm2015/lib/message-input/message-input.component.js +52 -4
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +78 -6
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +1 -1
- package/lib/channel.service.d.ts +18 -1
- package/lib/message-input/message-input.component.d.ts +5 -0
- package/lib/types.d.ts +0 -1
- package/package.json +2 -2
- package/src/assets/version.ts +1 -1
|
@@ -26,7 +26,7 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
26
26
|
isFile(attachment: Attachment): boolean;
|
|
27
27
|
isCard(attachment: Attachment): boolean;
|
|
28
28
|
imageLoaded(): void;
|
|
29
|
-
hasFileSize(attachment: Attachment<DefaultAttachmentType>): boolean | 0 | undefined;
|
|
29
|
+
hasFileSize(attachment: Attachment<DefaultAttachmentType>): boolean | "" | 0 | undefined;
|
|
30
30
|
getFileSize(attachment: Attachment<DefaultAttachmentType>): string;
|
|
31
31
|
trimUrl(url?: string | null): string | null;
|
|
32
32
|
sendAction(action: Action): void;
|
package/lib/channel.service.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.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/",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@angular/core": "^12.2.0 || ^13.0.0",
|
|
14
14
|
"@ngx-translate/core": "^13.0.0 || ^14.0.0",
|
|
15
15
|
"stream-chat": "^4.3.0 || ^5.0.0",
|
|
16
|
-
"@stream-io/stream-chat-css": "2.
|
|
16
|
+
"@stream-io/stream-chat-css": "2.4.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"angular-mentions": "^1.4.0",
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.17.0';
|