stream-chat-angular 2.10.0 → 2.11.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/i18n/en.d.ts +2 -0
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +449 -182
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/i18n/en.js +3 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel/channel.component.js +3 -2
- package/esm2015/lib/channel.service.js +158 -40
- package/esm2015/lib/icon/icon.component.js +2 -2
- package/esm2015/lib/message/message.component.js +18 -3
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +1 -1
- package/esm2015/lib/message-input/message-input.component.js +32 -8
- package/esm2015/lib/message-list/message-list.component.js +100 -53
- package/esm2015/lib/message-preview.js +3 -2
- package/esm2015/lib/stream-chat.module.js +8 -3
- package/esm2015/lib/thread/thread.component.js +37 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/stream-chat-angular.js +351 -108
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel/channel.component.d.ts +2 -1
- package/lib/channel.service.d.ts +18 -7
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/message/message.component.d.ts +7 -1
- package/lib/message-input/message-input.component.d.ts +4 -1
- package/lib/message-list/message-list.component.d.ts +12 -3
- package/lib/message-preview.d.ts +1 -1
- package/lib/stream-chat.module.d.ts +5 -4
- package/lib/thread/thread.component.d.ts +18 -0
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/src/assets/i18n/en.ts +4 -0
- package/src/assets/version.ts +1 -1
|
@@ -5,8 +5,9 @@ export declare class ChannelComponent {
|
|
|
5
5
|
private channelService;
|
|
6
6
|
isError$: Observable<boolean>;
|
|
7
7
|
isInitializing$: Observable<boolean>;
|
|
8
|
+
isActiveThread$: Observable<boolean>;
|
|
8
9
|
subscriptions: Subscription[];
|
|
9
10
|
constructor(channelService: ChannelService);
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelComponent, "stream-channel", never, {}, {}, never, ["*"]>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelComponent, "stream-channel", never, {}, {}, never, ["*", "[name=\"thread\"]"]>;
|
|
12
13
|
}
|
package/lib/channel.service.d.ts
CHANGED
|
@@ -12,34 +12,44 @@ export declare class ChannelService {
|
|
|
12
12
|
channels$: Observable<Channel[] | undefined>;
|
|
13
13
|
activeChannel$: Observable<Channel | undefined>;
|
|
14
14
|
activeChannelMessages$: Observable<StreamMessage[]>;
|
|
15
|
+
activeParentMessageId$: Observable<string | undefined>;
|
|
16
|
+
activeThreadMessages$: Observable<StreamMessage[]>;
|
|
17
|
+
activeParentMessage$: Observable<StreamMessage | undefined>;
|
|
15
18
|
customNewMessageNotificationHandler?: (notification: Notification, channelListSetter: (channels: Channel[]) => void) => void;
|
|
16
19
|
customAddedToChannelNotificationHandler?: (notification: Notification, channelListSetter: (channels: Channel[]) => void) => void;
|
|
17
20
|
customRemovedFromChannelNotificationHandler?: (notification: Notification, channelListSetter: (channels: Channel[]) => void) => void;
|
|
18
|
-
customChannelDeletedHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void) => void;
|
|
19
|
-
customChannelUpdatedHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void) => void;
|
|
20
|
-
customChannelTruncatedHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void) => void;
|
|
21
|
-
customChannelHiddenHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void) => void;
|
|
22
|
-
customChannelVisibleHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void) => void;
|
|
23
|
-
customNewMessageHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void) => void;
|
|
21
|
+
customChannelDeletedHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
22
|
+
customChannelUpdatedHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
23
|
+
customChannelTruncatedHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
24
|
+
customChannelHiddenHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
25
|
+
customChannelVisibleHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
26
|
+
customNewMessageHandler?: (event: Event, channel: Channel, channelListSetter: (channels: Channel[]) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
24
27
|
private channelsSubject;
|
|
25
28
|
private activeChannelSubject;
|
|
26
29
|
private activeChannelMessagesSubject;
|
|
27
30
|
private hasMoreChannelsSubject;
|
|
28
31
|
private activeChannelSubscriptions;
|
|
32
|
+
private activeParentMessageIdSubject;
|
|
33
|
+
private activeThreadMessagesSubject;
|
|
29
34
|
private filters;
|
|
30
35
|
private sort;
|
|
31
36
|
private options;
|
|
37
|
+
private readonly messagePageSize;
|
|
32
38
|
private channelListSetter;
|
|
33
39
|
private messageListSetter;
|
|
40
|
+
private threadListSetter;
|
|
41
|
+
private parentMessageSetter;
|
|
34
42
|
constructor(chatClientService: ChatClientService, ngZone: NgZone);
|
|
35
43
|
setAsActiveChannel(channel: Channel): void;
|
|
44
|
+
setAsActiveParentMessage(message: StreamMessage | undefined): Promise<void>;
|
|
36
45
|
loadMoreMessages(): Promise<void>;
|
|
46
|
+
loadMoreThreadReplies(): Promise<void>;
|
|
37
47
|
init(filters: ChannelFilters, sort?: ChannelSort, options?: ChannelOptions): Promise<void>;
|
|
38
48
|
reset(): void;
|
|
39
49
|
loadMoreChannels(): Promise<void>;
|
|
40
50
|
addReaction(messageId: string, reactionType: MessageReactionType): Promise<void>;
|
|
41
51
|
removeReaction(messageId: string, reactionType: MessageReactionType): Promise<void>;
|
|
42
|
-
sendMessage(text: string, attachments?: Attachment[], mentionedUsers?: UserResponse[]): Promise<void>;
|
|
52
|
+
sendMessage(text: string, attachments?: Attachment[], mentionedUsers?: UserResponse[], parentId?: string | undefined): Promise<void>;
|
|
43
53
|
resendMessage(message: StreamMessage): Promise<void>;
|
|
44
54
|
updateMessage(message: StreamMessage): Promise<void>;
|
|
45
55
|
deleteMessage(message: StreamMessage): Promise<void>;
|
|
@@ -71,6 +81,7 @@ export declare class ChannelService {
|
|
|
71
81
|
private handleChannelTruncate;
|
|
72
82
|
private get channels();
|
|
73
83
|
private get canSendReadEvents();
|
|
84
|
+
private transformToStreamMessage;
|
|
74
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelService, never>;
|
|
75
86
|
static ɵprov: i0.ɵɵInjectableDeclaration<ChannelService>;
|
|
76
87
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare type Icon = 'action-icon' | 'delivered-icon' | 'reaction-icon' | 'connection-error' | 'send' | 'file-upload' | 'retry' | 'close' | 'file';
|
|
2
|
+
export declare type Icon = 'action-icon' | 'delivered-icon' | 'reaction-icon' | 'connection-error' | 'send' | 'file-upload' | 'retry' | 'close' | 'file' | 'reply' | 'close-no-outline' | 'reply-in-thread';
|
|
3
3
|
export declare class IconComponent {
|
|
4
4
|
icon: Icon | undefined;
|
|
5
5
|
size: number | undefined;
|
|
@@ -24,6 +24,7 @@ export declare class MessageComponent implements OnChanges {
|
|
|
24
24
|
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#canreceivereadevents-deprecated
|
|
25
25
|
*/
|
|
26
26
|
canReceiveReadEvents: boolean | undefined;
|
|
27
|
+
mode: 'thread' | 'main';
|
|
27
28
|
isEditing: boolean | undefined;
|
|
28
29
|
isActionBoxOpen: boolean;
|
|
29
30
|
isReactionSelectorOpen: boolean;
|
|
@@ -48,8 +49,13 @@ export declare class MessageComponent implements OnChanges {
|
|
|
48
49
|
get areOptionsVisible(): boolean;
|
|
49
50
|
get hasAttachment(): boolean;
|
|
50
51
|
get hasReactions(): boolean;
|
|
52
|
+
get replyCountParam(): {
|
|
53
|
+
replyCount: number | undefined;
|
|
54
|
+
};
|
|
55
|
+
get canDisplayReadStatus(): boolean;
|
|
51
56
|
resendMessage(): void;
|
|
52
57
|
textClicked(): void;
|
|
58
|
+
setAsActiveParentMessage(): void;
|
|
53
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "messageInputTemplate": "messageInputTemplate"; "mentionTemplate": "mentionTemplate"; "message": "message"; "enabledMessageActions": "enabledMessageActions"; "areReactionsEnabled": "areReactionsEnabled"; "canReactToMessage": "canReactToMessage"; "isLastSentMessage": "isLastSentMessage"; "canReceiveReadEvents": "canReceiveReadEvents"; }, {}, never, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "messageInputTemplate": "messageInputTemplate"; "mentionTemplate": "mentionTemplate"; "message": "message"; "enabledMessageActions": "enabledMessageActions"; "areReactionsEnabled": "areReactionsEnabled"; "canReactToMessage": "canReactToMessage"; "isLastSentMessage": "isLastSentMessage"; "canReceiveReadEvents": "canReceiveReadEvents"; "mode": "mode"; }, {}, never, never>;
|
|
55
61
|
}
|
|
@@ -23,6 +23,7 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
|
|
|
23
23
|
mentionScope: 'channel' | 'application' | undefined;
|
|
24
24
|
mentionAutocompleteItemTemplate: TemplateRef<MentionAutcompleteListItemContext> | undefined;
|
|
25
25
|
commandAutocompleteItemTemplate: TemplateRef<CommandAutocompleteListItemContext> | undefined;
|
|
26
|
+
mode: 'thread' | 'main';
|
|
26
27
|
/**
|
|
27
28
|
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message-input/#caution-acceptedfiletypes
|
|
28
29
|
*/
|
|
@@ -43,6 +44,7 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
|
|
|
43
44
|
private hideNotification;
|
|
44
45
|
private isViewInited;
|
|
45
46
|
private appSettings;
|
|
47
|
+
private channel;
|
|
46
48
|
constructor(channelService: ChannelService, notificationService: NotificationService, attachmentService: AttachmentService, configService: MessageInputConfigService, textareaType: Type<TextareaInterface>, componentFactoryResolver: ComponentFactoryResolver, cdRef: ChangeDetectorRef, chatClient: ChatClientService);
|
|
47
49
|
ngAfterViewInit(): void;
|
|
48
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -55,6 +57,7 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
|
|
|
55
57
|
private get isUpdate();
|
|
56
58
|
private initTextarea;
|
|
57
59
|
private areAttachemntsValid;
|
|
60
|
+
private setCanSendMessages;
|
|
58
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": "isFileUploadEnabled"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "mentionAutocompleteItemTemplate": "mentionAutocompleteItemTemplate"; "commandAutocompleteItemTemplate": "commandAutocompleteItemTemplate"; "acceptedFileTypes": "acceptedFileTypes"; "isMultipleFileUploadEnabled": "isMultipleFileUploadEnabled"; "message": "message"; }, { "messageUpdate": "messageUpdate"; }, never, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": "isFileUploadEnabled"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "mentionAutocompleteItemTemplate": "mentionAutocompleteItemTemplate"; "commandAutocompleteItemTemplate": "commandAutocompleteItemTemplate"; "mode": "mode"; "acceptedFileTypes": "acceptedFileTypes"; "isMultipleFileUploadEnabled": "isMultipleFileUploadEnabled"; "message": "message"; }, { "messageUpdate": "messageUpdate"; }, never, never>;
|
|
60
63
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewChecked, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterViewChecked, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ChannelService } from '../channel.service';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { StreamMessage } from '../types';
|
|
@@ -6,7 +6,7 @@ import { ChatClientService } from '../chat-client.service';
|
|
|
6
6
|
import { GroupStyle } from './group-styles';
|
|
7
7
|
import { ImageLoadService } from './image-load.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class MessageListComponent implements AfterViewChecked, OnChanges {
|
|
9
|
+
export declare class MessageListComponent implements AfterViewChecked, OnChanges, OnInit, OnDestroy {
|
|
10
10
|
private channelService;
|
|
11
11
|
private chatClientService;
|
|
12
12
|
private imageLoadService;
|
|
@@ -21,6 +21,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
21
21
|
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#caution-enabledmessageactions-deprecated
|
|
22
22
|
*/
|
|
23
23
|
enabledMessageActionsInput: string[] | undefined;
|
|
24
|
+
mode: 'main' | 'thread';
|
|
24
25
|
messages$: Observable<StreamMessage[]>;
|
|
25
26
|
canReactToMessage: boolean | undefined;
|
|
26
27
|
canReceiveReadEvents: boolean | undefined;
|
|
@@ -30,7 +31,9 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
30
31
|
isUserScrolledUp: boolean | undefined;
|
|
31
32
|
groupStyles: GroupStyle[];
|
|
32
33
|
lastSentMessageId: string | undefined;
|
|
34
|
+
parentMessage: StreamMessage | undefined;
|
|
33
35
|
private scrollContainer;
|
|
36
|
+
private parentMessageElement;
|
|
34
37
|
private latestMessageDate;
|
|
35
38
|
private hasNewMessages;
|
|
36
39
|
private containerHeight;
|
|
@@ -39,14 +42,20 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
39
42
|
private isNewMessageSentByUser;
|
|
40
43
|
private authorizedMessageActions;
|
|
41
44
|
private readonly isUserScrolledUpThreshold;
|
|
45
|
+
private subscriptions;
|
|
46
|
+
private prevScrollTop;
|
|
42
47
|
constructor(channelService: ChannelService, chatClientService: ChatClientService, imageLoadService: ImageLoadService);
|
|
48
|
+
ngOnInit(): void;
|
|
43
49
|
ngOnChanges(changes: SimpleChanges): void;
|
|
44
50
|
ngAfterViewChecked(): void;
|
|
51
|
+
ngOnDestroy(): void;
|
|
45
52
|
trackByMessageId(index: number, item: StreamMessage): string;
|
|
46
53
|
scrollToBottom(): void;
|
|
47
54
|
scrolled(): void;
|
|
48
55
|
private preserveScrollbarPosition;
|
|
49
56
|
private setEnabledActions;
|
|
57
|
+
private setMessages$;
|
|
58
|
+
private resetScrollState;
|
|
50
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "messageTemplate": "messageTemplate"; "messageInputTemplate": "messageInputTemplate"; "mentionTemplate": "mentionTemplate"; "areReactionsEnabled": "areReactionsEnabled"; "enabledMessageActionsInput": "enabledMessageActions"; }, {}, never, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "messageTemplate": "messageTemplate"; "messageInputTemplate": "messageInputTemplate"; "mentionTemplate": "mentionTemplate"; "areReactionsEnabled": "areReactionsEnabled"; "enabledMessageActionsInput": "enabledMessageActions"; "mode": "mode"; }, {}, never, never>;
|
|
52
61
|
}
|
package/lib/message-preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Attachment, MessageResponse, UserResponse } from 'stream-chat';
|
|
2
|
-
export declare const createMessagePreview: (user: UserResponse, text: string, attachments: Attachment[], mentionedUsers: UserResponse[]) => MessageResponse<import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").LiteralStringForUnion, import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").UR>;
|
|
2
|
+
export declare const createMessagePreview: (user: UserResponse, text: string, attachments: Attachment[], mentionedUsers: UserResponse[], parentId: undefined | string) => MessageResponse<import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").LiteralStringForUnion, import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").UR>;
|
|
@@ -16,11 +16,12 @@ import * as i14 from "./notification-list/notification-list.component";
|
|
|
16
16
|
import * as i15 from "./attachment-preview-list/attachment-preview-list.component";
|
|
17
17
|
import * as i16 from "./modal/modal.component";
|
|
18
18
|
import * as i17 from "./message-input/textarea.directive";
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "@
|
|
21
|
-
import * as i20 from "
|
|
19
|
+
import * as i18 from "./thread/thread.component";
|
|
20
|
+
import * as i19 from "@angular/common";
|
|
21
|
+
import * as i20 from "@ngx-translate/core";
|
|
22
|
+
import * as i21 from "./stream-avatar.module";
|
|
22
23
|
export declare class StreamChatModule {
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<StreamChatModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective], [typeof
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.ThreadComponent], [typeof i19.CommonModule, typeof i20.TranslateModule, typeof i21.StreamAvatarModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i21.StreamAvatarModule, typeof i18.ThreadComponent]>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<StreamChatModule>;
|
|
26
27
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { ChannelService } from '../channel.service';
|
|
3
|
+
import { StreamMessage } from '../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ThreadComponent implements OnDestroy {
|
|
6
|
+
private channelService;
|
|
7
|
+
private class;
|
|
8
|
+
parentMessage: StreamMessage | undefined;
|
|
9
|
+
private subscriptions;
|
|
10
|
+
constructor(channelService: ChannelService);
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
get replyCountParam(): {
|
|
13
|
+
replyCount: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
closeThread(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThreadComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThreadComponent, "stream-thread", never, {}, {}, never, ["[name=\"thread-message-list\"]", "[name=\"thread-message-input\"]"]>;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.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/",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@ngx-translate/core": "^13.0.0 || ^14.0.0",
|
|
15
15
|
"stream-chat": ">=4.3.0",
|
|
16
16
|
"stream-chat-css": "1.0.23",
|
|
17
|
-
"@stream-io/stream-chat-css": "2.0
|
|
17
|
+
"@stream-io/stream-chat-css": "2.1.0"
|
|
18
18
|
},
|
|
19
19
|
"peerDependenciesMeta": {
|
|
20
20
|
"stream-chat-css": {
|
package/public-api.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './lib/attachment-preview-list/attachment-preview-list.component';
|
|
|
29
29
|
export * from './lib/message-reactions/message-reactions.component';
|
|
30
30
|
export * from './lib/notification/notification.component';
|
|
31
31
|
export * from './lib/notification-list/notification-list.component';
|
|
32
|
+
export * from './lib/thread/thread.component';
|
|
32
33
|
export * from './lib/modal/modal.component';
|
|
33
34
|
export * from './lib/read-by';
|
|
34
35
|
export * from './lib/is-image-attachment';
|
package/src/assets/i18n/en.ts
CHANGED
|
@@ -31,6 +31,8 @@ export const en = {
|
|
|
31
31
|
Flag: 'Flag',
|
|
32
32
|
'Message Failed': 'Message Failed',
|
|
33
33
|
'Message Failed · Unauthorized': 'Message Failed · Unauthorized',
|
|
34
|
+
'Message Failed · Click to try again':
|
|
35
|
+
'Message Failed · Click to try again',
|
|
34
36
|
'Message deleted': 'Message deleted',
|
|
35
37
|
'Message has been successfully flagged':
|
|
36
38
|
'Message has been successfully flagged',
|
|
@@ -90,6 +92,8 @@ export const en = {
|
|
|
90
92
|
'Sending links is not allowed in this conversation',
|
|
91
93
|
"You can't send messages in this channel":
|
|
92
94
|
"You can't send messages in this channel",
|
|
95
|
+
"You can't send thread replies in this channel":
|
|
96
|
+
"You can't send thread replies in this channel",
|
|
93
97
|
'Unsupported file type: {{type}}': 'Unsupported file type: {{type}}',
|
|
94
98
|
},
|
|
95
99
|
};
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.11.0';
|