stream-chat-angular 4.66.1 → 5.0.0-v5.1
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/{esm2015/assets/version.js → esm2020/assets/version.mjs} +2 -2
- package/esm2020/lib/attachment-configuration.service.mjs +185 -0
- package/esm2020/lib/attachment-list/attachment-list.component.mjs +205 -0
- package/esm2020/lib/attachment-preview-list/attachment-preview-list.component.mjs +45 -0
- package/esm2020/lib/attachment.service.mjs +262 -0
- package/esm2020/lib/avatar/avatar.component.mjs +163 -0
- package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +74 -0
- package/esm2020/lib/channel/channel.component.mjs +46 -0
- package/esm2020/lib/channel-header/channel-header.component.mjs +79 -0
- package/esm2020/lib/channel-list/channel-list-toggle.service.mjs +72 -0
- package/esm2020/lib/channel-list/channel-list.component.mjs +60 -0
- package/esm2020/lib/channel-preview/channel-preview.component.mjs +155 -0
- package/esm2020/lib/channel.service.mjs +1460 -0
- package/esm2020/lib/chat-client.service.mjs +206 -0
- package/{esm2015/lib/custom-templates.service.js → esm2020/lib/custom-templates.service.mjs} +3 -3
- package/{esm2015/lib/date-parser.service.js → esm2020/lib/date-parser.service.mjs} +3 -3
- package/esm2020/lib/edit-message-form/edit-message-form.component.mjs +83 -0
- package/esm2020/lib/get-channel-display-text.mjs +14 -0
- package/esm2020/lib/get-message-translation.mjs +12 -0
- package/esm2020/lib/icon/icon.component.mjs +21 -0
- package/esm2020/lib/icon-placeholder/icon-placeholder.component.mjs +31 -0
- package/esm2020/lib/loading-indicator/loading-indicator.component.mjs +31 -0
- package/esm2020/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +38 -0
- package/esm2020/lib/message/message.component.mjs +422 -0
- package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +130 -0
- package/esm2020/lib/message-actions.service.mjs +119 -0
- package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
- package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +262 -0
- package/{esm2015/lib/message-input/emoji-input.service.js → esm2020/lib/message-input/emoji-input.service.mjs} +3 -3
- package/{esm2015/lib/message-input/message-input-config.service.js → esm2020/lib/message-input/message-input-config.service.mjs} +3 -3
- package/esm2020/lib/message-input/message-input.component.mjs +443 -0
- package/{esm2015/lib/message-input/textarea/textarea.component.js → esm2020/lib/message-input/textarea/textarea.component.mjs} +5 -9
- package/esm2020/lib/message-input/textarea.directive.mjs +89 -0
- package/esm2020/lib/message-list/group-styles.mjs +52 -0
- package/{esm2015/lib/message-list/image-load.service.js → esm2020/lib/message-list/image-load.service.mjs} +3 -3
- package/esm2020/lib/message-list/message-list.component.mjs +699 -0
- package/esm2020/lib/message-preview.mjs +21 -0
- package/esm2020/lib/message-reactions/message-reactions.component.mjs +255 -0
- package/{esm2015/lib/message-reactions.service.js → esm2020/lib/message-reactions.service.mjs} +3 -3
- package/{esm2015/lib/message.service.js → esm2020/lib/message.service.mjs} +4 -4
- package/esm2020/lib/modal/modal.component.mjs +69 -0
- package/esm2020/lib/notification/notification.component.mjs +20 -0
- package/esm2020/lib/notification-list/notification-list.component.mjs +37 -0
- package/esm2020/lib/notification.service.mjs +79 -0
- package/esm2020/lib/read-by.mjs +12 -0
- package/{esm2015/lib/stream-autocomplete-textarea.module.js → esm2020/lib/stream-autocomplete-textarea.module.mjs} +6 -6
- package/{esm2015/lib/stream-avatar.module.js → esm2020/lib/stream-avatar.module.mjs} +5 -5
- package/{esm2015/lib/stream-chat.module.js → esm2020/lib/stream-chat.module.mjs} +8 -10
- package/{esm2015/lib/stream-i18n.service.js → esm2020/lib/stream-i18n.service.mjs} +5 -5
- package/{esm2015/lib/stream-textarea.module.js → esm2020/lib/stream-textarea.module.mjs} +6 -6
- package/esm2020/lib/theme.service.mjs +123 -0
- package/esm2020/lib/thread/thread.component.mjs +51 -0
- package/{esm2015/lib/transliteration.service.js → esm2020/lib/transliteration.service.mjs} +3 -3
- package/esm2020/lib/types.mjs +2 -0
- package/esm2020/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +183 -0
- package/esm2020/lib/voice-recording/voice-recording.component.mjs +102 -0
- package/fesm2015/{stream-chat-angular.js → stream-chat-angular.mjs} +304 -412
- package/fesm2015/stream-chat-angular.mjs.map +1 -0
- package/fesm2020/stream-chat-angular.mjs +7128 -0
- package/fesm2020/stream-chat-angular.mjs.map +1 -0
- package/lib/attachment-list/attachment-list.component.d.ts +3 -3
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +1 -1
- package/lib/attachment.service.d.ts +0 -1
- package/lib/avatar/avatar.component.d.ts +1 -1
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
- package/lib/channel/channel.component.d.ts +1 -1
- package/lib/channel-header/channel-header.component.d.ts +1 -1
- package/lib/channel-list/channel-list-toggle.service.d.ts +0 -1
- package/lib/channel-list/channel-list.component.d.ts +1 -1
- package/lib/channel-preview/channel-preview.component.d.ts +1 -1
- package/lib/channel.service.d.ts +7 -7
- package/lib/chat-client.service.d.ts +1 -1
- package/lib/edit-message-form/edit-message-form.component.d.ts +1 -1
- package/lib/get-message-translation.d.ts +1 -1
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/icon-placeholder/icon-placeholder.component.d.ts +1 -1
- package/lib/loading-indicator/loading-indicator.component.d.ts +1 -1
- package/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
- package/lib/message/message.component.d.ts +1 -2
- package/lib/message-actions-box/message-actions-box.component.d.ts +2 -4
- package/lib/message-actions.service.d.ts +0 -1
- package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +1 -1
- package/lib/message-input/message-input.component.d.ts +2 -2
- package/lib/message-input/textarea/textarea.component.d.ts +1 -1
- package/lib/message-input/textarea.directive.d.ts +1 -1
- package/lib/message-list/group-styles.d.ts +1 -1
- package/lib/message-list/message-list.component.d.ts +4 -5
- package/lib/message-reactions/message-reactions.component.d.ts +1 -1
- package/lib/message.service.d.ts +0 -1
- package/lib/modal/modal.component.d.ts +1 -1
- package/lib/notification/notification.component.d.ts +1 -1
- package/lib/notification-list/notification-list.component.d.ts +2 -2
- package/lib/notification.service.d.ts +2 -5
- package/lib/theme.service.d.ts +1 -2
- package/lib/thread/thread.component.d.ts +1 -1
- package/lib/types.d.ts +18 -18
- package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +2 -2
- package/lib/voice-recording/voice-recording.component.d.ts +1 -1
- package/package.json +28 -15
- package/src/assets/version.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +0 -8445
- package/bundles/stream-chat-angular.umd.js.map +0 -1
- package/esm2015/lib/attachment-configuration.service.js +0 -186
- package/esm2015/lib/attachment-list/attachment-list.component.js +0 -209
- package/esm2015/lib/attachment-preview-list/attachment-preview-list.component.js +0 -49
- package/esm2015/lib/attachment.service.js +0 -276
- package/esm2015/lib/avatar/avatar.component.js +0 -172
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +0 -78
- package/esm2015/lib/channel/channel.component.js +0 -50
- package/esm2015/lib/channel-header/channel-header.component.js +0 -86
- package/esm2015/lib/channel-list/channel-list-toggle.service.js +0 -73
- package/esm2015/lib/channel-list/channel-list.component.js +0 -67
- package/esm2015/lib/channel-preview/channel-preview.component.js +0 -167
- package/esm2015/lib/channel.service.js +0 -1487
- package/esm2015/lib/chat-client.service.js +0 -211
- package/esm2015/lib/edit-message-form/edit-message-form.component.js +0 -87
- package/esm2015/lib/get-channel-display-text.js +0 -15
- package/esm2015/lib/get-message-translation.js +0 -13
- package/esm2015/lib/icon/icon.component.js +0 -25
- package/esm2015/lib/icon-placeholder/icon-placeholder.component.js +0 -35
- package/esm2015/lib/loading-indicator/loading-indicator.component.js +0 -35
- package/esm2015/lib/loading-indicator-placeholder/loading-indicator-placeholder.component.js +0 -42
- package/esm2015/lib/message/message.component.js +0 -436
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +0 -137
- package/esm2015/lib/message-actions.service.js +0 -114
- package/esm2015/lib/message-bounce-prompt/message-bounce-prompt.component.js +0 -80
- package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +0 -262
- package/esm2015/lib/message-input/message-input.component.js +0 -455
- package/esm2015/lib/message-input/textarea.directive.js +0 -90
- package/esm2015/lib/message-list/group-styles.js +0 -53
- package/esm2015/lib/message-list/message-list.component.js +0 -726
- package/esm2015/lib/message-preview.js +0 -7
- package/esm2015/lib/message-reactions/message-reactions.component.js +0 -266
- package/esm2015/lib/modal/modal.component.js +0 -74
- package/esm2015/lib/notification/notification.component.js +0 -24
- package/esm2015/lib/notification-list/notification-list.component.js +0 -38
- package/esm2015/lib/notification.service.js +0 -79
- package/esm2015/lib/read-by.js +0 -13
- package/esm2015/lib/theme.service.js +0 -122
- package/esm2015/lib/thread/thread.component.js +0 -55
- package/esm2015/lib/types.js +0 -2
- package/esm2015/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.js +0 -192
- package/esm2015/lib/voice-recording/voice-recording.component.js +0 -115
- package/fesm2015/stream-chat-angular.js.map +0 -1
- /package/{esm2015/assets/i18n/en.js → esm2020/assets/i18n/en.mjs} +0 -0
- /package/{esm2015/lib/injection-tokens.js → esm2020/lib/injection-tokens.mjs} +0 -0
- /package/{esm2015/lib/is-image-attachment.js → esm2020/lib/is-image-attachment.mjs} +0 -0
- /package/{esm2015/lib/is-image-file.js → esm2020/lib/is-image-file.mjs} +0 -0
- /package/{esm2015/lib/is-on-separate-date.js → esm2020/lib/is-on-separate-date.mjs} +0 -0
- /package/{esm2015/lib/list-users.js → esm2020/lib/list-users.mjs} +0 -0
- /package/{esm2015/lib/message-input/textarea.interface.js → esm2020/lib/message-input/textarea.interface.mjs} +0 -0
- /package/{esm2015/lib/parse-date.js → esm2020/lib/parse-date.mjs} +0 -0
- /package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- /package/{esm2015/stream-chat-angular.js → esm2020/stream-chat-angular.mjs} +0 -0
- /package/{stream-chat-angular.d.ts → index.d.ts} +0 -0
|
@@ -38,7 +38,7 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
38
38
|
private attachmentConfigurations;
|
|
39
39
|
constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, attachmentConfigurationService: AttachmentConfigurationService, themeService: ThemeService);
|
|
40
40
|
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
-
trackByUrl(_: number, attachment: Attachment):
|
|
41
|
+
trackByUrl(_: number, attachment: Attachment): {} | undefined;
|
|
42
42
|
isImage(attachment: Attachment): boolean;
|
|
43
43
|
isSvg(attachment: Attachment): boolean;
|
|
44
44
|
isFile(attachment: Attachment): boolean;
|
|
@@ -54,7 +54,7 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
54
54
|
trackByActionValue(_: number, item: Action): string | undefined;
|
|
55
55
|
openImageModal(attachments: Attachment[], selectedIndex?: number): void;
|
|
56
56
|
stepImages(dir: -1 | 1): void;
|
|
57
|
-
trackByImageUrl(_: number, item: Attachment):
|
|
57
|
+
trackByImageUrl(_: number, item: Attachment): {} | undefined;
|
|
58
58
|
getAttachmentContext(attachment: Attachment<DefaultStreamChatGenerics>): AttachmentContext;
|
|
59
59
|
getImageAttachmentConfiguration(attachment: Attachment, type: 'gallery' | 'single', element: HTMLElement): ImageAttachmentConfiguration;
|
|
60
60
|
getCarouselImageAttachmentConfiguration(attachment: Attachment, element: HTMLElement): ImageAttachmentConfiguration;
|
|
@@ -65,5 +65,5 @@ export declare class AttachmentListComponent implements OnChanges {
|
|
|
65
65
|
private createGallery;
|
|
66
66
|
private closeImageModal;
|
|
67
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentListComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, { "imageModalStateChange": "imageModalStateChange"; }, never, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentListComponent, "stream-attachment-list", never, { "messageId": "messageId"; "parentMessageId": "parentMessageId"; "attachments": "attachments"; }, { "imageModalStateChange": "imageModalStateChange"; }, never, never, false, never>;
|
|
69
69
|
}
|
|
@@ -25,5 +25,5 @@ export declare class AttachmentPreviewListComponent {
|
|
|
25
25
|
attachmentDeleted(upload: AttachmentUpload): void;
|
|
26
26
|
trackByFile(_: number, item: AttachmentUpload): File;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentPreviewListComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentPreviewListComponent, "stream-attachment-preview-list", never, { "attachmentUploads$": "attachmentUploads$"; }, { "retryAttachmentUpload": "retryAttachmentUpload"; "deleteAttachment": "deleteAttachment"; }, never, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentPreviewListComponent, "stream-attachment-preview-list", never, { "attachmentUploads$": "attachmentUploads$"; }, { "retryAttachmentUpload": "retryAttachmentUpload"; "deleteAttachment": "deleteAttachment"; }, never, never, false, never>;
|
|
29
29
|
}
|
|
@@ -35,7 +35,6 @@ export declare class AttachmentService<T extends DefaultStreamChatGenerics = Def
|
|
|
35
35
|
* You can add custom `image`, `video` and `file` attachments using this method.
|
|
36
36
|
*
|
|
37
37
|
* Note: If you just want to use your own CDN for file uploads, you don't necessary need this method, you can just specify you own upload function in the [`ChannelService`](./ChannelService.mdx)
|
|
38
|
-
*
|
|
39
38
|
* @param attachment
|
|
40
39
|
*/
|
|
41
40
|
addAttachment(attachment: Attachment<T>): void;
|
|
@@ -63,5 +63,5 @@ export declare class AvatarComponent implements OnChanges, OnInit, OnChanges, Af
|
|
|
63
63
|
ngAfterViewInit(): void;
|
|
64
64
|
private getOtherMemberIfOneToOneChannel;
|
|
65
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "showOnlineIndicator": "showOnlineIndicator"; "initialsType": "initialsType"; }, {}, never, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "showOnlineIndicator": "showOnlineIndicator"; "initialsType": "initialsType"; }, {}, never, never, false, never>;
|
|
67
67
|
}
|
|
@@ -48,5 +48,5 @@ export declare class AvatarPlaceholderComponent implements OnChanges {
|
|
|
48
48
|
constructor(customTemplatesService: CustomTemplatesService);
|
|
49
49
|
ngOnChanges(): void;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarPlaceholderComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarPlaceholderComponent, "stream-avatar-placeholder", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "initialsType": "initialsType"; "showOnlineIndicator": "showOnlineIndicator"; }, {}, never, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarPlaceholderComponent, "stream-avatar-placeholder", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "initialsType": "initialsType"; "showOnlineIndicator": "showOnlineIndicator"; }, {}, never, never, false, never>;
|
|
52
52
|
}
|
|
@@ -18,5 +18,5 @@ export declare class ChannelComponent {
|
|
|
18
18
|
theme$: Observable<string>;
|
|
19
19
|
constructor(channelService: ChannelService, themeService: ThemeService, customTemplatesService: CustomTemplatesService);
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelComponent, "stream-channel", never, {}, {}, never, ["*", "[name=\"thread\"]"]>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelComponent, "stream-channel", never, {}, {}, never, ["*", "[name=\"thread\"]"], false, never>;
|
|
22
22
|
}
|
|
@@ -35,5 +35,5 @@ export declare class ChannelHeaderComponent implements OnInit, OnDestroy {
|
|
|
35
35
|
get displayText(): string | undefined;
|
|
36
36
|
get avatarName(): string | undefined;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelHeaderComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelHeaderComponent, "stream-channel-header", never, {}, {}, never, ["*"]>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelHeaderComponent, "stream-channel-header", never, {}, {}, never, ["*"], false, never>;
|
|
39
39
|
}
|
|
@@ -2,7 +2,6 @@ import { Observable } from 'rxjs';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* The `ChannelListToggleService` can be used to toggle the channel list.
|
|
5
|
-
*
|
|
6
5
|
* @deprecated This service can only be used with [theming-v1](../concepts/theming-and-css.mdx), if you are using [thmeing-v2](../theming/introduction.mdx) please refer to our [responsive layout guide](../code-examples/responsive-layout.mdx)
|
|
7
6
|
*/
|
|
8
7
|
export declare class ChannelListToggleService {
|
|
@@ -32,5 +32,5 @@ export declare class ChannelListComponent implements AfterViewInit, OnDestroy {
|
|
|
32
32
|
trackByChannelId(index: number, item: Channel<DefaultStreamChatGenerics>): string;
|
|
33
33
|
channelSelected(): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelListComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelListComponent, "stream-channel-list", never, {}, {}, never, ["[channel-list-top]", "[channel-list-bottom]"]>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelListComponent, "stream-channel-list", never, {}, {}, never, ["[channel-list-top]", "[channel-list-bottom]"], false, never>;
|
|
36
36
|
}
|
|
@@ -43,5 +43,5 @@ export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
|
|
|
43
43
|
private setLatestMessage;
|
|
44
44
|
private updateUnreadState;
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChannelPreviewComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelPreviewComponent, "stream-channel-preview", never, { "channel": "channel"; }, {}, never, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChannelPreviewComponent, "stream-channel-preview", never, { "channel": "channel"; }, {}, never, never, false, never>;
|
|
47
47
|
}
|
package/lib/channel.service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { Attachment, Channel, ChannelFilters, ChannelOptions, ChannelResponse, ChannelSort, Event, FormatMessageResponse, MessageResponse, ReactionResponse, UserResponse } from 'stream-chat';
|
|
3
|
+
import { Attachment, Channel, ChannelFilters, ChannelOptions, ChannelResponse, ChannelSort, Event, FormatMessageResponse, MessageResponse, QueryChannelAPIResponse, ReactionResponse, UserResponse } from 'stream-chat';
|
|
4
4
|
import { ChatClientService, ClientEvent } from './chat-client.service';
|
|
5
5
|
import { NotificationService } from './notification.service';
|
|
6
6
|
import { AttachmentUpload, ChannelQueryState, DefaultStreamChatGenerics, MessageInput, MessageReactionType, NextPageConfiguration, StreamMessage } from './types';
|
|
@@ -243,7 +243,6 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
243
243
|
/**
|
|
244
244
|
* Sets the given `channel` as active and marks it as read.
|
|
245
245
|
* If the channel wasn't previously part of the channel, it will be added to the beginning of the list.
|
|
246
|
-
*
|
|
247
246
|
* @param channel
|
|
248
247
|
*/
|
|
249
248
|
setAsActiveChannel(channel: Channel<T>): void;
|
|
@@ -261,7 +260,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
261
260
|
* Loads the next page of messages of the active channel. The page size can be set in the [query option](https://getstream.io/chat/docs/javascript/query_channels/?language=javascript#query-options) object.
|
|
262
261
|
* @param direction
|
|
263
262
|
*/
|
|
264
|
-
loadMoreMessages(direction?: 'older' | 'newer'): false | Promise<
|
|
263
|
+
loadMoreMessages(direction?: 'older' | 'newer'): false | Promise<QueryChannelAPIResponse<T>> | undefined;
|
|
265
264
|
/**
|
|
266
265
|
* Loads the next page of messages of the active thread. The page size can be set in the [query option](https://getstream.io/chat/docs/javascript/query_channels/?language=javascript#query-options) object.
|
|
267
266
|
* @param direction
|
|
@@ -308,12 +307,12 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
308
307
|
* @param quotedMessageId Id of the message to quote (if sending a quote reply)
|
|
309
308
|
* @param customData
|
|
310
309
|
*/
|
|
311
|
-
sendMessage(text: string, attachments?: Attachment<T>[], mentionedUsers?: UserResponse<T>[], parentId?: string | undefined, quotedMessageId?: string | undefined, customData?: undefined | Partial<T['messageType']>): Promise<
|
|
310
|
+
sendMessage(text: string, attachments?: Attachment<T>[], mentionedUsers?: UserResponse<T>[], parentId?: string | undefined, quotedMessageId?: string | undefined, customData?: undefined | Partial<T['messageType']>): Promise<StreamMessage<T>>;
|
|
312
311
|
/**
|
|
313
312
|
* Resends the given message to the active channel
|
|
314
313
|
* @param message The message to resend
|
|
315
314
|
*/
|
|
316
|
-
resendMessage(message: StreamMessage): Promise<
|
|
315
|
+
resendMessage(message: StreamMessage): Promise<StreamMessage<T>>;
|
|
317
316
|
/**
|
|
318
317
|
* Updates the message in the active channel
|
|
319
318
|
* @param message Mesage to be updated
|
|
@@ -336,6 +335,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
336
335
|
} & {
|
|
337
336
|
type: import("stream-chat").MessageLabel;
|
|
338
337
|
args?: string | undefined;
|
|
338
|
+
before_message_send_failed?: boolean | undefined;
|
|
339
339
|
channel?: ChannelResponse<T> | undefined;
|
|
340
340
|
cid?: string | undefined;
|
|
341
341
|
command?: string | undefined;
|
|
@@ -345,7 +345,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
345
345
|
created_at?: string | undefined;
|
|
346
346
|
deleted_at?: string | undefined;
|
|
347
347
|
deleted_reply_count?: number | undefined;
|
|
348
|
-
i18n?: (import("stream-chat").RequireAtLeastOne<Record<"_text" | "
|
|
348
|
+
i18n?: (import("stream-chat").RequireAtLeastOne<Record<"_text" | "id_text" | "hr_text" | "th_text" | "tr_text" | "so_text" | "no_text" | "af_text" | "am_text" | "ar_text" | "az_text" | "bg_text" | "bn_text" | "bs_text" | "cs_text" | "da_text" | "de_text" | "el_text" | "en_text" | "es_text" | "es-MX_text" | "et_text" | "fa_text" | "fa-AF_text" | "fi_text" | "fr_text" | "fr-CA_text" | "ha_text" | "he_text" | "hi_text" | "hu_text" | "it_text" | "ja_text" | "ka_text" | "ko_text" | "lt_text" | "lv_text" | "ms_text" | "nl_text" | "pl_text" | "ps_text" | "pt_text" | "ro_text" | "ru_text" | "sk_text" | "sl_text" | "sq_text" | "sr_text" | "sv_text" | "sw_text" | "ta_text" | "tl_text" | "uk_text" | "ur_text" | "vi_text" | "zh_text" | "zh-TW_text", string>> & {
|
|
349
349
|
language: import("stream-chat").TranslationLanguages;
|
|
350
350
|
}) | undefined;
|
|
351
351
|
latest_reactions?: ReactionResponse<T>[] | undefined;
|
|
@@ -377,7 +377,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
377
377
|
messageType: {};
|
|
378
378
|
reactionType: import("stream-chat").UR;
|
|
379
379
|
userType: import("stream-chat").UR;
|
|
380
|
-
}>, "
|
|
380
|
+
}>, "status" | "created_at" | "pinned_at" | "updated_at"> & import("stream-chat").UR & {
|
|
381
381
|
created_at: Date;
|
|
382
382
|
pinned_at: Date | null;
|
|
383
383
|
status: string;
|
|
@@ -61,7 +61,7 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
61
61
|
* </ul>
|
|
62
62
|
* @param clientOptions Setting to provide to the Stream client instance
|
|
63
63
|
*/
|
|
64
|
-
init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T> | undefined, userTokenOrProvider: TokenOrProvider
|
|
64
|
+
init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T> | undefined, userTokenOrProvider: TokenOrProvider, clientOptions?: StreamChatOptions): ConnectAPIResponse<T>;
|
|
65
65
|
/**
|
|
66
66
|
* Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](./ChannelService.mdx/#reset).
|
|
67
67
|
*/
|
|
@@ -27,5 +27,5 @@ export declare class EditMessageFormComponent implements OnInit, OnDestroy {
|
|
|
27
27
|
sendClicked(): void;
|
|
28
28
|
dismissed(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditMessageFormComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EditMessageFormComponent, "stream-edit-message-form", never, {}, {}, never, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditMessageFormComponent, "stream-edit-message-form", never, {}, {}, never, never, false, never>;
|
|
31
31
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Channel, FormatMessageResponse, MessageResponse, User } from 'stream-chat';
|
|
2
2
|
import { DefaultStreamChatGenerics, StreamMessage } from './types';
|
|
3
|
-
export declare const getMessageTranslation: <T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message?: StreamMessage
|
|
3
|
+
export declare const getMessageTranslation: <T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message?: StreamMessage | MessageResponse | FormatMessageResponse, channel?: Channel<T> | undefined, user?: User) => string | undefined;
|
|
@@ -14,5 +14,5 @@ export declare class IconComponent {
|
|
|
14
14
|
size: number | undefined;
|
|
15
15
|
constructor();
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "stream-icon", never, { "icon": "icon"; "size": "size"; }, {}, never, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "stream-icon", never, { "icon": "icon"; "size": "size"; }, {}, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -20,5 +20,5 @@ export declare class IconPlaceholderComponent implements OnChanges {
|
|
|
20
20
|
constructor(customTemplatesService: CustomTemplatesService);
|
|
21
21
|
ngOnChanges(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconPlaceholderComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconPlaceholderComponent, "stream-icon-placeholder", never, { "icon": "icon"; "size": "size"; }, {}, never, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconPlaceholderComponent, "stream-icon-placeholder", never, { "icon": "icon"; "size": "size"; }, {}, never, never, false, never>;
|
|
24
24
|
}
|
|
@@ -14,5 +14,5 @@ export declare class LoadingIndicatorComponent {
|
|
|
14
14
|
linearGradientId: string;
|
|
15
15
|
constructor();
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicatorComponent, "stream-loading-indicator", never, { "size": "size"; "color": "color"; }, {}, never, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicatorComponent, "stream-loading-indicator", never, { "size": "size"; "color": "color"; }, {}, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -17,5 +17,5 @@ export declare class LoadingIndicatorPlaceholderComponent {
|
|
|
17
17
|
constructor(customTemplatesService: CustomTemplatesService);
|
|
18
18
|
getLoadingIndicatorContext(): LoadingIndicatorContext;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorPlaceholderComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicatorPlaceholderComponent, "stream-loading-indicator-placeholder", never, { "size": "size"; "color": "color"; }, {}, never, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicatorPlaceholderComponent, "stream-loading-indicator-placeholder", never, { "size": "size"; "color": "color"; }, {}, never, never, false, never>;
|
|
21
21
|
}
|
|
@@ -49,7 +49,6 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
49
49
|
isHighlighted: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* A list of custom message actions to be displayed in the action box
|
|
52
|
-
*
|
|
53
52
|
* @deprecated please use the [`MessageActionsService`](https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService) to set this property.
|
|
54
53
|
*/
|
|
55
54
|
customActions: CustomMessageActionItem[];
|
|
@@ -123,6 +122,6 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
123
122
|
private setIsSentByCurrentUser;
|
|
124
123
|
private setLastReadUser;
|
|
125
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
|
|
126
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "message": "message"; "enabledMessageActions": "enabledMessageActions"; "isLastSentMessage": "isLastSentMessage"; "mode": "mode"; "isHighlighted": "isHighlighted"; "customActions": "customActions"; }, {}, never, never>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "message": "message"; "enabledMessageActions": "enabledMessageActions"; "isLastSentMessage": "isLastSentMessage"; "mode": "mode"; "isHighlighted": "isHighlighted"; "customActions": "customActions"; }, {}, never, never, false, never>;
|
|
127
126
|
}
|
|
128
127
|
export {};
|
|
@@ -37,7 +37,6 @@ export declare class MessageActionsBoxComponent implements OnInit, OnChanges, On
|
|
|
37
37
|
customActions: CustomMessageActionItem[];
|
|
38
38
|
/**
|
|
39
39
|
* The number of authorized actions (it can be less or equal than the number of enabled actions)
|
|
40
|
-
*
|
|
41
40
|
* @deprecated components should use `messageReactionsService.getAuthorizedMessageActionsCount` method
|
|
42
41
|
*
|
|
43
42
|
* More information: https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService
|
|
@@ -45,7 +44,6 @@ export declare class MessageActionsBoxComponent implements OnInit, OnChanges, On
|
|
|
45
44
|
readonly displayedActionsCount: EventEmitter<number>;
|
|
46
45
|
/**
|
|
47
46
|
* An event which emits `true` if the edit message modal is open, and `false` when it is closed.
|
|
48
|
-
*
|
|
49
47
|
* @deprecated components should use `messageReactionsService.messageToEdit$` Observable
|
|
50
48
|
*
|
|
51
49
|
* More information: https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService
|
|
@@ -64,9 +62,9 @@ export declare class MessageActionsBoxComponent implements OnInit, OnChanges, On
|
|
|
64
62
|
ngAfterViewInit(): void;
|
|
65
63
|
ngOnDestroy(): void;
|
|
66
64
|
getActionLabel(actionLabelOrTranslationKey: ((message: StreamMessage) => string) | string): string;
|
|
67
|
-
getMessageActionTemplateContext(item: MessageActionItem | CustomMessageActionItem): MessageActionBoxItemContext
|
|
65
|
+
getMessageActionTemplateContext(item: MessageActionItem | CustomMessageActionItem): MessageActionBoxItemContext;
|
|
68
66
|
trackByActionName(_: number, item: MessageActionItem | CustomMessageActionItem): string;
|
|
69
67
|
private setVisibleActions;
|
|
70
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageActionsBoxComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageActionsBoxComponent, "stream-message-actions-box", never, { "isOpen": "isOpen"; "isMine": "isMine"; "message": "message"; "enabledActions": "enabledActions"; "customActions": "customActions"; }, { "displayedActionsCount": "displayedActionsCount"; "isEditing": "isEditing"; }, never, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageActionsBoxComponent, "stream-message-actions-box", never, { "isOpen": "isOpen"; "isMine": "isMine"; "message": "message"; "enabledActions": "enabledActions"; "customActions": "customActions"; }, { "displayedActionsCount": "displayedActionsCount"; "isEditing": "isEditing"; }, never, never, false, never>;
|
|
72
70
|
}
|
|
@@ -30,7 +30,6 @@ export declare class MessageActionsService<T extends DefaultStreamChatGenerics =
|
|
|
30
30
|
constructor(chatClientService: ChatClientService, notificationService: NotificationService, channelService: ChannelService);
|
|
31
31
|
/**
|
|
32
32
|
* This method returns how many authorized actions are available to the given message
|
|
33
|
-
*
|
|
34
33
|
* @param message
|
|
35
34
|
* @param enabledActions
|
|
36
35
|
* @returns the count
|
|
@@ -24,5 +24,5 @@ export declare class MessageBouncePromptComponent implements OnDestroy {
|
|
|
24
24
|
deleteMessage(): Promise<void>;
|
|
25
25
|
editMessage(): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageBouncePromptComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageBouncePromptComponent, "stream-message-bounce-prompt", never, {}, {}, never, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageBouncePromptComponent, "stream-message-bounce-prompt", never, {}, {}, never, never, false, never>;
|
|
28
28
|
}
|
|
@@ -89,5 +89,5 @@ export declare class AutocompleteTextareaComponent implements TextareaInterface,
|
|
|
89
89
|
private updateMentionOptions;
|
|
90
90
|
private updateMentionedUsersFromText;
|
|
91
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteTextareaComponent, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteTextareaComponent, "stream-autocomplete-textarea", never, { "value": "value"; "placeholder": "placeholder"; "areMentionsEnabled": "areMentionsEnabled"; "inputMode": "inputMode"; "mentionScope": "mentionScope"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; "userMentions": "userMentions"; }, never, never>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteTextareaComponent, "stream-autocomplete-textarea", never, { "value": "value"; "placeholder": "placeholder"; "areMentionsEnabled": "areMentionsEnabled"; "inputMode": "inputMode"; "mentionScope": "mentionScope"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; "userMentions": "userMentions"; }, never, never, false, never>;
|
|
93
93
|
}
|
|
@@ -117,7 +117,7 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
117
117
|
member_count?: number | undefined;
|
|
118
118
|
subtitle?: string | undefined;
|
|
119
119
|
};
|
|
120
|
-
commandType: string
|
|
120
|
+
commandType: string;
|
|
121
121
|
eventType: import("stream-chat").UR & import("../types").UnknownType;
|
|
122
122
|
messageType: {};
|
|
123
123
|
reactionType: import("stream-chat").UR & import("../types").UnknownType;
|
|
@@ -142,5 +142,5 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
142
142
|
private startCooldown;
|
|
143
143
|
private stopCooldown;
|
|
144
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
|
|
145
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": "isFileUploadEnabled"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "mode": "mode"; "isMultipleFileUploadEnabled": "isMultipleFileUploadEnabled"; "message": "message"; "sendMessage$": "sendMessage$"; "inputMode": "inputMode"; "autoFocus": "autoFocus"; }, { "messageUpdate": "messageUpdate"; }, never, never>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": "isFileUploadEnabled"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "mode": "mode"; "isMultipleFileUploadEnabled": "isMultipleFileUploadEnabled"; "message": "message"; "sendMessage$": "sendMessage$"; "inputMode": "inputMode"; "autoFocus": "autoFocus"; }, { "messageUpdate": "messageUpdate"; }, never, never, false, never>;
|
|
146
146
|
}
|
|
@@ -44,5 +44,5 @@ export declare class TextareaComponent implements TextareaInterface, OnChanges,
|
|
|
44
44
|
enterHit(event: Event): void;
|
|
45
45
|
private adjustTextareaHeight;
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "stream-textarea", never, { "value": "value"; "placeholder": "placeholder"; "inputMode": "inputMode"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; }, never, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "stream-textarea", never, { "value": "value"; "placeholder": "placeholder"; "inputMode": "inputMode"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; }, never, never, false, never>;
|
|
48
48
|
}
|
|
@@ -19,5 +19,5 @@ export declare class TextareaDirective implements OnChanges {
|
|
|
19
19
|
constructor(viewContainerRef: ViewContainerRef);
|
|
20
20
|
ngOnChanges(changes: SimpleChanges): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaDirective, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TextareaDirective, "[streamTextarea]", never, { "componentRef": "componentRef"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "inputMode": "inputMode"; "value": "value"; "placeholder": "placeholder"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; "userMentions": "userMentions"; }, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextareaDirective, "[streamTextarea]", never, { "componentRef": "componentRef"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "inputMode": "inputMode"; "value": "value"; "placeholder": "placeholder"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; "userMentions": "userMentions"; }, never, never, false, never>;
|
|
23
23
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
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
|
|
3
|
+
export declare const getGroupStyles: (message: StreamMessage, previousMessage?: StreamMessage, nextMessage?: StreamMessage, options?: GroupStyleOptions) => GroupStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ChannelService } from '../channel.service';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { MessageContext, StreamMessage, TypingIndicatorContext, CustomMessageActionItem, DateSeparatorContext, UnreadMessagesNotificationContext, UnreadMessagesIndicatorContext } from '../types';
|
|
4
|
+
import { MessageContext, DefaultStreamChatGenerics, StreamMessage, TypingIndicatorContext, CustomMessageActionItem, DateSeparatorContext, UnreadMessagesNotificationContext, UnreadMessagesIndicatorContext } from '../types';
|
|
5
5
|
import { ChatClientService } from '../chat-client.service';
|
|
6
6
|
import { GroupStyle } from './group-styles';
|
|
7
7
|
import { UserResponse } from 'stream-chat';
|
|
@@ -39,10 +39,9 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
39
39
|
hideJumpToLatestButtonDuringScroll: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* A list of custom message actions to be displayed in the message action box
|
|
42
|
-
*
|
|
43
42
|
* @deprecated please use the [`MessageActionsService`](https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService) to set this property.
|
|
44
43
|
*/
|
|
45
|
-
customMessageActions: CustomMessageActionItem<
|
|
44
|
+
customMessageActions: CustomMessageActionItem<DefaultStreamChatGenerics>[];
|
|
46
45
|
/**
|
|
47
46
|
* If `true` date separators will be displayed
|
|
48
47
|
*/
|
|
@@ -87,7 +86,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
87
86
|
parentMessage: StreamMessage | undefined;
|
|
88
87
|
highlightedMessageId: string | undefined;
|
|
89
88
|
isLoading: boolean;
|
|
90
|
-
scrollEndTimeout
|
|
89
|
+
scrollEndTimeout?: ReturnType<typeof setTimeout>;
|
|
91
90
|
lastReadMessageId?: string;
|
|
92
91
|
isUnreadNotificationVisible: boolean;
|
|
93
92
|
firstUnreadMessageId?: string;
|
|
@@ -149,5 +148,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
149
148
|
private newMessageReceived;
|
|
150
149
|
private checkIfOnSeparateDates;
|
|
151
150
|
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>;
|
|
151
|
+
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, false, never>;
|
|
153
152
|
}
|
|
@@ -86,5 +86,5 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
|
|
|
86
86
|
private fetchAllReactions;
|
|
87
87
|
private setExistingReactions;
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsComponent, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionCounts": "messageReactionCounts"; "isSelectorOpen": "isSelectorOpen"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, { "isSelectorOpenChange": "isSelectorOpenChange"; }, never, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionCounts": "messageReactionCounts"; "isSelectorOpen": "isSelectorOpen"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, { "isSelectorOpenChange": "isSelectorOpenChange"; }, never, never, false, never>;
|
|
90
90
|
}
|
package/lib/message.service.d.ts
CHANGED
|
@@ -25,5 +25,5 @@ export declare class ModalComponent implements OnChanges {
|
|
|
25
25
|
private watchForOutsideClicks;
|
|
26
26
|
private stopWatchForOutsideClicks;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "stream-modal", never, { "isOpen": "isOpen"; "content": "content"; }, { "isOpenChange": "isOpenChange"; }, never, ["*"]>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "stream-modal", never, { "isOpen": "isOpen"; "content": "content"; }, { "isOpenChange": "isOpenChange"; }, never, ["*"], false, never>;
|
|
29
29
|
}
|
|
@@ -15,5 +15,5 @@ export declare class NotificationComponent {
|
|
|
15
15
|
content: TemplateRef<void> | undefined;
|
|
16
16
|
constructor();
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "stream-notification", never, { "type": "type"; "content": "content"; }, {}, never, ["*"]>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "stream-notification", never, { "type": "type"; "content": "content"; }, {}, never, ["*"], false, never>;
|
|
19
19
|
}
|
|
@@ -17,8 +17,8 @@ export declare class NotificationListComponent {
|
|
|
17
17
|
constructor(customTemplatesService: CustomTemplatesService, notificationService: NotificationService, themeService: ThemeService);
|
|
18
18
|
trackById(_: number, item: NotificationPayload): string;
|
|
19
19
|
getNotificationContentContext(notification: NotificationPayload): {
|
|
20
|
-
dismissFn:
|
|
20
|
+
dismissFn: () => void;
|
|
21
21
|
};
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationListComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationListComponent, "stream-notification-list", never, {}, {}, never, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationListComponent, "stream-notification-list", never, {}, {}, never, never, false, never>;
|
|
24
24
|
}
|
|
@@ -21,7 +21,7 @@ export declare class NotificationService {
|
|
|
21
21
|
* @param templateContext The input of the notification template (for HTML notifications)
|
|
22
22
|
* @returns A method to clear the notification (before the timeout).
|
|
23
23
|
*/
|
|
24
|
-
addTemporaryNotification<T>(content: string | TemplateRef<T>, type?: NotificationType, timeout?: number, translateParams?:
|
|
24
|
+
addTemporaryNotification<T>(content: string | TemplateRef<T>, type?: NotificationType, timeout?: number, translateParams?: object, templateContext?: T): () => void;
|
|
25
25
|
/**
|
|
26
26
|
* Displays a notification, that will be visible until it's removed.
|
|
27
27
|
* @param content The text of the notification or the HTML template for the notification
|
|
@@ -30,10 +30,7 @@ export declare class NotificationService {
|
|
|
30
30
|
* @param templateContext The input of the notification template (for HTML notifications)
|
|
31
31
|
* @returns A method to clear the notification.
|
|
32
32
|
*/
|
|
33
|
-
addPermanentNotification<T =
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
dismissFn: () => {};
|
|
36
|
-
}>(content: string | TemplateRef<T>, type?: NotificationType, translateParams?: Object, templateContext?: T): () => void;
|
|
33
|
+
addPermanentNotification<T = object>(content: string | TemplateRef<T>, type?: NotificationType, translateParams?: object, templateContext?: T): () => void;
|
|
37
34
|
private createNotification;
|
|
38
35
|
private removeNotification;
|
|
39
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
package/lib/theme.service.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare type Theme = 'light' | 'dark';
|
|
4
3
|
/**
|
|
5
4
|
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](../theming/introduction.mdx) gives a complete overview about the topic.
|
|
6
5
|
*/
|
|
7
6
|
export declare class ThemeService {
|
|
8
7
|
/**
|
|
9
|
-
* A Subject that can be used to get or set the currently active theme.
|
|
8
|
+
* A Subject that can be used to get or set the currently active theme. By default light and dark themes are supported.
|
|
10
9
|
*/
|
|
11
10
|
theme$: BehaviorSubject<string>;
|
|
12
11
|
/**
|
|
@@ -22,5 +22,5 @@ export declare class ThreadComponent implements OnDestroy {
|
|
|
22
22
|
closeThread(): void;
|
|
23
23
|
get channelName(): string | undefined;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThreadComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThreadComponent, "stream-thread", never, {}, {}, never, ["*"]>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThreadComponent, "stream-thread", never, {}, {}, never, ["*"], false, never>;
|
|
26
26
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -77,14 +77,14 @@ export declare type ComandAutocompleteListItem = CommandResponse & {
|
|
|
77
77
|
autocompleteLabel: string;
|
|
78
78
|
};
|
|
79
79
|
export declare type NotificationType = 'success' | 'error' | 'info';
|
|
80
|
-
export declare type NotificationPayload<T =
|
|
80
|
+
export declare type NotificationPayload<T = object> = {
|
|
81
81
|
id: string;
|
|
82
82
|
type: NotificationType;
|
|
83
83
|
text?: string;
|
|
84
|
-
translateParams?:
|
|
84
|
+
translateParams?: object;
|
|
85
85
|
template?: TemplateRef<T>;
|
|
86
86
|
templateContext?: T;
|
|
87
|
-
dismissFn:
|
|
87
|
+
dismissFn: () => void;
|
|
88
88
|
};
|
|
89
89
|
export declare type ChannelPreviewContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
90
90
|
channel: Channel<T>;
|
|
@@ -116,7 +116,7 @@ export declare type MessageInputContext = {
|
|
|
116
116
|
mode: 'thread' | 'main' | undefined;
|
|
117
117
|
isMultipleFileUploadEnabled: boolean | undefined;
|
|
118
118
|
message: StreamMessage | undefined;
|
|
119
|
-
messageUpdateHandler:
|
|
119
|
+
messageUpdateHandler: () => void | undefined;
|
|
120
120
|
sendMessage$: Observable<void>;
|
|
121
121
|
};
|
|
122
122
|
export declare type MentionTemplateContext = {
|
|
@@ -144,7 +144,7 @@ export declare type AttachmentListContext = {
|
|
|
144
144
|
messageId: string;
|
|
145
145
|
attachments: Attachment<DefaultStreamChatGenerics>[];
|
|
146
146
|
parentMessageId?: string;
|
|
147
|
-
imageModalStateChangeHandler?: (state: 'opened' | 'closed') =>
|
|
147
|
+
imageModalStateChangeHandler?: (state: 'opened' | 'closed') => void;
|
|
148
148
|
};
|
|
149
149
|
export declare type AvatarType = 'channel' | 'user';
|
|
150
150
|
export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator' | 'reaction';
|
|
@@ -161,8 +161,8 @@ export declare type AvatarContext = {
|
|
|
161
161
|
};
|
|
162
162
|
export declare type AttachmentPreviewListContext = {
|
|
163
163
|
attachmentUploads$: Observable<AttachmentUpload[]> | undefined;
|
|
164
|
-
retryUploadHandler: (f: File) =>
|
|
165
|
-
deleteUploadHandler: (u: AttachmentUpload) =>
|
|
164
|
+
retryUploadHandler: (f: File) => void;
|
|
165
|
+
deleteUploadHandler: (u: AttachmentUpload) => void;
|
|
166
166
|
};
|
|
167
167
|
export declare type IconContext = {
|
|
168
168
|
icon: Icon | undefined;
|
|
@@ -186,25 +186,25 @@ export declare type MessageActionsBoxContext = {
|
|
|
186
186
|
/**
|
|
187
187
|
* @deprecated because the name contains typos, use the `displayedActionsCountChangeHandler` instead
|
|
188
188
|
*/
|
|
189
|
-
displayedActionsCountChaneHanler: (count: number) =>
|
|
189
|
+
displayedActionsCountChaneHanler: (count: number) => void;
|
|
190
190
|
/**
|
|
191
191
|
* @deprecated components should use `messageReactionsService.getAuthorizedMessageActionsCount` method
|
|
192
192
|
*
|
|
193
193
|
* More information: https://getstream.io/chat/docs/sdk/angular/services/MessageActionsService
|
|
194
194
|
*/
|
|
195
|
-
displayedActionsCountChangeHandler: (count: number) =>
|
|
195
|
+
displayedActionsCountChangeHandler: (count: number) => void;
|
|
196
196
|
};
|
|
197
197
|
export declare type MessageActionBoxItemContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
198
|
-
actionName:
|
|
198
|
+
actionName: string;
|
|
199
199
|
actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
|
|
200
200
|
message: StreamMessage<T>;
|
|
201
201
|
isMine: boolean;
|
|
202
|
-
actionHandler: (message: StreamMessage<T>, isMine: boolean) =>
|
|
202
|
+
actionHandler: (message: StreamMessage<T>, isMine: boolean) => void;
|
|
203
203
|
};
|
|
204
204
|
declare type MessageActionItemBase<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
205
205
|
actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
|
|
206
206
|
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage<T>) => boolean;
|
|
207
|
-
actionHandler: (message: StreamMessage<T>, isMine: boolean) =>
|
|
207
|
+
actionHandler: (message: StreamMessage<T>, isMine: boolean) => void;
|
|
208
208
|
};
|
|
209
209
|
export declare type MessageActionItem<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionItemBase<T> & {
|
|
210
210
|
actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete' | 'mark-unread';
|
|
@@ -220,11 +220,11 @@ export declare type MessageReactionsContext = {
|
|
|
220
220
|
isSelectorOpen: boolean;
|
|
221
221
|
latestReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
222
222
|
ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
223
|
-
isSelectorOpenChangeHandler: (isOpen: boolean) =>
|
|
223
|
+
isSelectorOpenChangeHandler: (isOpen: boolean) => void;
|
|
224
224
|
};
|
|
225
225
|
export declare type ModalContext = {
|
|
226
226
|
isOpen: boolean;
|
|
227
|
-
isOpenChangeHandler: (isOpen: boolean) =>
|
|
227
|
+
isOpenChangeHandler: (isOpen: boolean) => void;
|
|
228
228
|
content: TemplateRef<void>;
|
|
229
229
|
};
|
|
230
230
|
export declare type NotificationContext = {
|
|
@@ -233,9 +233,9 @@ export declare type NotificationContext = {
|
|
|
233
233
|
};
|
|
234
234
|
export declare type ThreadHeaderContext = {
|
|
235
235
|
parentMessage: StreamMessage | undefined;
|
|
236
|
-
closeThreadHandler:
|
|
236
|
+
closeThreadHandler: () => void;
|
|
237
237
|
};
|
|
238
|
-
export declare type MessageReactionType =
|
|
238
|
+
export declare type MessageReactionType = string;
|
|
239
239
|
export declare type AttachmentConfigration = {
|
|
240
240
|
url: string;
|
|
241
241
|
height: string;
|
|
@@ -282,8 +282,8 @@ export declare type UnreadMessagesIndicatorContext = {
|
|
|
282
282
|
unreadCount: number;
|
|
283
283
|
};
|
|
284
284
|
export declare type UnreadMessagesNotificationContext = UnreadMessagesIndicatorContext & {
|
|
285
|
-
onJump:
|
|
286
|
-
onDismiss:
|
|
285
|
+
onJump: () => void;
|
|
286
|
+
onDismiss: () => void;
|
|
287
287
|
};
|
|
288
288
|
export declare type ChannelQueryState = {
|
|
289
289
|
state: 'in-progress' | 'success' | 'error';
|