stream-chat-angular 6.0.0-beta.5 → 6.0.0-rc.2
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/README.md +2 -2
- package/assets/i18n/en.d.ts +0 -1
- package/assets/version.d.ts +1 -1
- package/{esm2022 → esm2020}/assets/i18n/en.mjs +1 -2
- package/{esm2022 → esm2020}/assets/version.mjs +2 -2
- package/esm2020/lib/attachment-configuration.service.mjs +182 -0
- package/esm2020/lib/attachment-list/attachment-list.component.mjs +232 -0
- package/esm2020/lib/attachment-preview-list/attachment-preview-list.component.mjs +55 -0
- package/esm2020/lib/attachment.service.mjs +481 -0
- package/esm2020/lib/avatar/avatar.component.mjs +160 -0
- package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +66 -0
- package/esm2020/lib/channel/channel.component.mjs +45 -0
- package/esm2020/lib/channel-header/channel-header.component.mjs +72 -0
- package/esm2020/lib/channel-list/channel-list.component.mjs +47 -0
- package/esm2020/lib/channel-preview/channel-preview.component.mjs +155 -0
- package/esm2020/lib/channel-query.mjs +77 -0
- package/esm2020/lib/channel.service.mjs +1561 -0
- package/esm2020/lib/chat-client.service.mjs +233 -0
- package/esm2020/lib/custom-templates.service.mjs +244 -0
- package/{esm2022 → esm2020}/lib/date-parser.service.mjs +5 -5
- package/esm2020/lib/file-utils.mjs +35 -0
- package/{esm2022 → esm2020}/lib/get-channel-display-text.mjs +1 -1
- package/esm2020/lib/get-message-translation.mjs +12 -0
- package/esm2020/lib/icon/icon-placeholder/icon-placeholder.component.mjs +28 -0
- package/{esm2022 → esm2020}/lib/icon/icon.component.mjs +5 -5
- package/{esm2022 → esm2020}/lib/icon/icon.module.mjs +11 -11
- package/{esm2022 → esm2020}/lib/icon/loading-indicator/loading-indicator.component.mjs +5 -5
- package/esm2020/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +20 -0
- package/{esm2022 → esm2020}/lib/list-users.mjs +1 -1
- package/esm2020/lib/message/message.component.mjs +486 -0
- package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +123 -0
- package/esm2020/lib/message-actions.service.mjs +187 -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 +333 -0
- package/{esm2022 → esm2020}/lib/message-input/emoji-input.service.mjs +7 -7
- package/esm2020/lib/message-input/message-input-config.service.mjs +50 -0
- package/esm2020/lib/message-input/message-input.component.mjs +507 -0
- package/{esm2022 → esm2020}/lib/message-input/textarea/textarea.component.mjs +6 -6
- package/{esm2022 → esm2020}/lib/message-input/textarea.directive.mjs +5 -5
- package/{esm2022 → esm2020}/lib/message-input/voice-recorder.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/message-list/group-styles.mjs +1 -1
- package/esm2020/lib/message-list/message-list.component.mjs +717 -0
- package/esm2020/lib/message-preview.mjs +21 -0
- package/esm2020/lib/message-reactions/message-reactions.component.mjs +168 -0
- package/esm2020/lib/message-reactions-selector/message-reactions-selector.component.mjs +61 -0
- package/{esm2022 → esm2020}/lib/message-reactions.service.mjs +6 -6
- package/esm2020/lib/message-text/message-text.component.mjs +143 -0
- package/esm2020/lib/message.service.mjs +43 -0
- package/{esm2022 → esm2020}/lib/modal/modal.component.mjs +6 -6
- package/esm2020/lib/notification/notification.component.mjs +20 -0
- package/esm2020/lib/notification-list/notification-list.component.mjs +36 -0
- package/{esm2022 → esm2020}/lib/notification.service.mjs +6 -6
- package/esm2020/lib/paginated-list/paginated-list.component.mjs +94 -0
- package/{esm2022 → esm2020}/lib/parse-date.mjs +1 -1
- package/esm2020/lib/read-by.mjs +12 -0
- package/esm2020/lib/stream-autocomplete-textarea.module.mjs +33 -0
- package/{esm2022 → esm2020}/lib/stream-avatar.module.mjs +5 -5
- package/{esm2022 → esm2020}/lib/stream-chat.module.mjs +59 -59
- package/{esm2022 → esm2020}/lib/stream-i18n.service.mjs +6 -6
- package/esm2020/lib/stream-textarea.module.mjs +31 -0
- package/{esm2022 → esm2020}/lib/theme.service.mjs +6 -6
- package/esm2020/lib/thread/thread.component.mjs +51 -0
- package/{esm2022 → esm2020}/lib/transliteration.service.mjs +5 -5
- package/esm2020/lib/types-custom.mjs +2 -0
- package/esm2020/lib/types.mjs +2 -0
- package/esm2020/lib/user-list/user-list.component.mjs +47 -0
- package/esm2020/lib/virtualized-list.service.mjs +271 -0
- package/{esm2022 → esm2020}/lib/virtualized-message-list.service.mjs +1 -1
- package/{esm2022 → esm2020}/lib/voice-recorder/amplitude-recorder.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/voice-recorder/audio-recorder.service.mjs +5 -5
- package/{esm2022 → esm2020}/lib/voice-recorder/media-recorder.mjs +1 -1
- package/esm2020/lib/voice-recorder/mp3-transcoder.mjs +61 -0
- package/esm2020/lib/voice-recorder/transcoder.service.mjs +121 -0
- package/esm2020/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +35 -0
- package/esm2020/lib/voice-recorder/voice-recorder.component.mjs +80 -0
- package/{esm2022 → esm2020}/lib/voice-recorder/voice-recorder.module.mjs +9 -9
- package/esm2020/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +112 -0
- package/esm2020/lib/voice-recording/voice-recording.component.mjs +91 -0
- package/{esm2022 → esm2020}/lib/voice-recording/voice-recording.module.mjs +5 -5
- package/{esm2022 → esm2020}/lib/wave-form-sampler.mjs +1 -1
- package/esm2020/public-api.mjs +86 -0
- package/esm2020/stream-chat.mjs +2 -0
- package/fesm2015/stream-chat-angular.mjs +9171 -0
- package/fesm2015/stream-chat-angular.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/stream-chat-angular.mjs +1251 -961
- package/fesm2020/stream-chat-angular.mjs.map +1 -0
- package/lib/attachment-configuration.service.d.ts +12 -12
- package/lib/attachment-list/attachment-list.component.d.ts +15 -10
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +1 -1
- package/lib/attachment.service.d.ts +12 -10
- package/lib/avatar/avatar.component.d.ts +7 -7
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +5 -5
- package/lib/channel/channel.component.d.ts +1 -1
- package/lib/channel-header/channel-header.component.d.ts +2 -2
- package/lib/channel-list/channel-list.component.d.ts +3 -4
- package/lib/channel-preview/channel-preview.component.d.ts +6 -6
- package/lib/channel-query.d.ts +26 -0
- package/lib/channel.service.d.ts +146 -154
- package/lib/chat-client.service.d.ts +17 -15
- package/lib/custom-templates.service.d.ts +50 -50
- package/lib/get-channel-display-text.d.ts +1 -2
- package/lib/get-message-translation.d.ts +3 -3
- package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +2 -2
- package/lib/icon/icon.component.d.ts +2 -2
- package/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
- package/lib/message/message.component.d.ts +6 -6
- package/lib/message-actions-box/message-actions-box.component.d.ts +5 -4
- package/lib/message-actions.service.d.ts +10 -10
- package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +5 -5
- package/lib/message-input/emoji-input.service.d.ts +2 -2
- package/lib/message-input/message-input-config.service.d.ts +3 -3
- package/lib/message-input/message-input.component.d.ts +10 -33
- package/lib/message-input/textarea/textarea.component.d.ts +3 -3
- 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 +3 -2
- package/lib/message-preview.d.ts +2 -3
- package/lib/message-reactions/message-reactions.component.d.ts +9 -8
- package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +6 -5
- package/lib/message-reactions.service.d.ts +4 -4
- package/lib/message-text/message-text.component.d.ts +5 -5
- package/lib/message.service.d.ts +6 -7
- package/lib/modal/modal.component.d.ts +1 -1
- package/lib/notification/notification.component.d.ts +2 -2
- package/lib/notification-list/notification-list.component.d.ts +1 -0
- package/lib/notification.service.d.ts +1 -1
- package/lib/paginated-list/paginated-list.component.d.ts +2 -5
- package/lib/read-by.d.ts +1 -2
- package/lib/stream-i18n.service.d.ts +1 -1
- package/lib/theme.service.d.ts +1 -1
- package/lib/thread/thread.component.d.ts +3 -3
- package/lib/types-custom.d.ts +15 -0
- package/lib/types.d.ts +116 -155
- package/lib/user-list/user-list.component.d.ts +2 -3
- package/lib/virtualized-message-list.service.d.ts +1 -1
- package/lib/voice-recorder/amplitude-recorder.service.d.ts +2 -2
- package/lib/voice-recorder/media-recorder.d.ts +2 -2
- package/lib/voice-recorder/transcoder.service.d.ts +4 -4
- package/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.d.ts +1 -0
- package/lib/voice-recorder/voice-recorder.component.d.ts +2 -2
- package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +3 -3
- package/lib/voice-recording/voice-recording.component.d.ts +2 -3
- package/package.json +21 -15
- package/public-api.d.ts +3 -0
- package/src/assets/i18n/en.ts +0 -1
- package/src/assets/version.ts +1 -1
- package/esm2022/lib/attachment-configuration.service.mjs +0 -185
- package/esm2022/lib/attachment-list/attachment-list.component.mjs +0 -212
- package/esm2022/lib/attachment-preview-list/attachment-preview-list.component.mjs +0 -55
- package/esm2022/lib/attachment.service.mjs +0 -479
- package/esm2022/lib/avatar/avatar.component.mjs +0 -157
- package/esm2022/lib/avatar-placeholder/avatar-placeholder.component.mjs +0 -66
- package/esm2022/lib/channel/channel.component.mjs +0 -45
- package/esm2022/lib/channel-header/channel-header.component.mjs +0 -72
- package/esm2022/lib/channel-list/channel-list.component.mjs +0 -50
- package/esm2022/lib/channel-preview/channel-preview.component.mjs +0 -150
- package/esm2022/lib/channel.service.mjs +0 -1393
- package/esm2022/lib/chat-client.service.mjs +0 -227
- package/esm2022/lib/custom-templates.service.mjs +0 -244
- package/esm2022/lib/file-utils.mjs +0 -35
- package/esm2022/lib/get-message-translation.mjs +0 -12
- package/esm2022/lib/icon/icon-placeholder/icon-placeholder.component.mjs +0 -28
- package/esm2022/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +0 -20
- package/esm2022/lib/message/message.component.mjs +0 -486
- package/esm2022/lib/message-actions-box/message-actions-box.component.mjs +0 -120
- package/esm2022/lib/message-actions.service.mjs +0 -187
- package/esm2022/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +0 -71
- package/esm2022/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +0 -333
- package/esm2022/lib/message-input/message-input-config.service.mjs +0 -50
- package/esm2022/lib/message-input/message-input.component.mjs +0 -507
- package/esm2022/lib/message-list/message-list.component.mjs +0 -715
- package/esm2022/lib/message-preview.mjs +0 -21
- package/esm2022/lib/message-reactions/message-reactions.component.mjs +0 -165
- package/esm2022/lib/message-reactions-selector/message-reactions-selector.component.mjs +0 -57
- package/esm2022/lib/message-text/message-text.component.mjs +0 -143
- package/esm2022/lib/message.service.mjs +0 -43
- package/esm2022/lib/notification/notification.component.mjs +0 -20
- package/esm2022/lib/notification-list/notification-list.component.mjs +0 -33
- package/esm2022/lib/paginated-list/paginated-list.component.mjs +0 -94
- package/esm2022/lib/read-by.mjs +0 -12
- package/esm2022/lib/stream-autocomplete-textarea.module.mjs +0 -33
- package/esm2022/lib/stream-textarea.module.mjs +0 -31
- package/esm2022/lib/thread/thread.component.mjs +0 -51
- package/esm2022/lib/types.mjs +0 -2
- package/esm2022/lib/user-list/user-list.component.mjs +0 -47
- package/esm2022/lib/virtualized-list.service.mjs +0 -273
- package/esm2022/lib/voice-recorder/mp3-transcoder.mjs +0 -61
- package/esm2022/lib/voice-recorder/transcoder.service.mjs +0 -121
- package/esm2022/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +0 -32
- package/esm2022/lib/voice-recorder/voice-recorder.component.mjs +0 -80
- package/esm2022/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +0 -112
- package/esm2022/lib/voice-recording/voice-recording.component.mjs +0 -91
- package/esm2022/public-api.mjs +0 -82
- package/fesm2022/stream-chat-angular.mjs.map +0 -1
- /package/{esm2022 → esm2020}/lib/format-duration.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/injection-tokens.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/is-image-attachment.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/is-on-separate-date.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/is-safari.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/message-input/textarea.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/stream-chat-angular.mjs +0 -0
|
@@ -4,7 +4,7 @@ import { Attachment, UserResponse } from 'stream-chat';
|
|
|
4
4
|
import { AttachmentService } from '../attachment.service';
|
|
5
5
|
import { ChannelService } from '../channel.service';
|
|
6
6
|
import { NotificationService } from '../notification.service';
|
|
7
|
-
import { AttachmentPreviewListContext, AttachmentUpload, AudioRecording, CustomAttachmentUploadContext,
|
|
7
|
+
import { AttachmentPreviewListContext, AttachmentUpload, AudioRecording, CustomAttachmentUploadContext, EmojiPickerContext, MessageTextContext, StreamMessage } from '../types';
|
|
8
8
|
import { MessageInputConfigService } from './message-input-config.service';
|
|
9
9
|
import { TextareaInterface } from './textarea.interface';
|
|
10
10
|
import { EmojiInputService } from './emoji-input.service';
|
|
@@ -30,15 +30,15 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
30
30
|
readonly voiceRecorderService: VoiceRecorderService;
|
|
31
31
|
audioRecorder?: AudioRecorderService | undefined;
|
|
32
32
|
/**
|
|
33
|
-
* If file upload is enabled, the user can open a file selector from the input. Please note that the user also needs to have the necessary [channel capability](/chat/docs/javascript/channel_capabilities/). If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/services/MessageInputConfigService/).
|
|
33
|
+
* If file upload is enabled, the user can open a file selector from the input. Please note that the user also needs to have the necessary [channel capability](/chat/docs/javascript/channel_capabilities/). If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/v6-rc/services/MessageInputConfigService/).
|
|
34
34
|
*/
|
|
35
35
|
isFileUploadEnabled: boolean | undefined;
|
|
36
36
|
/**
|
|
37
|
-
* If true, users can mention other users in messages. You also [need to use the `AutocompleteTextarea`](/chat/docs/sdk/angular/concepts/opt-in-architecture/) for this feature to work. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/services/MessageInputConfigService/).
|
|
37
|
+
* If true, users can mention other users in messages. You also [need to use the `AutocompleteTextarea`](/chat/docs/sdk/angular/v6-rc/concepts/opt-in-architecture/) for this feature to work. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/v6-rc/services/MessageInputConfigService/).
|
|
38
38
|
*/
|
|
39
39
|
areMentionsEnabled: boolean | undefined;
|
|
40
40
|
/**
|
|
41
|
-
* The scope for user mentions, either members of the current channel of members of the application. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/services/MessageInputConfigService/).
|
|
41
|
+
* The scope for user mentions, either members of the current channel of members of the application. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/v6-rc/services/MessageInputConfigService/).
|
|
42
42
|
*/
|
|
43
43
|
mentionScope: 'channel' | 'application' | undefined;
|
|
44
44
|
/**
|
|
@@ -46,7 +46,7 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
46
46
|
*/
|
|
47
47
|
mode: 'thread' | 'main';
|
|
48
48
|
/**
|
|
49
|
-
* If true, users can select multiple files to upload. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/services/MessageInputConfigService/).
|
|
49
|
+
* If true, users can select multiple files to upload. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/v6-rc/services/MessageInputConfigService/).
|
|
50
50
|
*/
|
|
51
51
|
isMultipleFileUploadEnabled: boolean | undefined;
|
|
52
52
|
/**
|
|
@@ -58,7 +58,7 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
58
58
|
*/
|
|
59
59
|
sendMessage$: Observable<void> | undefined;
|
|
60
60
|
/**
|
|
61
|
-
* In `desktop` mode the `Enter` key will trigger message sending, in `mobile` mode the `Enter` key will insert a new line to the message input. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/services/MessageInputConfigService/).
|
|
61
|
+
* In `desktop` mode the `Enter` key will trigger message sending, in `mobile` mode the `Enter` key will insert a new line to the message input. If no value is provided, it is set from the [`MessageInputConfigService`](/chat/docs/sdk/angular/v6-rc/services/MessageInputConfigService/).
|
|
62
62
|
*/
|
|
63
63
|
inputMode: 'desktop' | 'mobile';
|
|
64
64
|
/**
|
|
@@ -66,7 +66,7 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
66
66
|
*/
|
|
67
67
|
autoFocus: boolean;
|
|
68
68
|
/**
|
|
69
|
-
* By default the input will react to changes in `messageToEdit$` from [`MessageActionsService`](/chat/docs/sdk/angular/services/MessageActionsService/) and display the message to be edited (taking into account the current `mode`).
|
|
69
|
+
* By default the input will react to changes in `messageToEdit$` from [`MessageActionsService`](/chat/docs/sdk/angular/v6-rc/services/MessageActionsService/) and display the message to be edited (taking into account the current `mode`).
|
|
70
70
|
*
|
|
71
71
|
* If you don't need that behavior, you can turn this of with this flag. In that case you should create your own edit message UI.
|
|
72
72
|
*/
|
|
@@ -119,36 +119,13 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
119
119
|
private readonly slowModeTextareaPlaceholder;
|
|
120
120
|
private messageToEdit?;
|
|
121
121
|
constructor(channelService: ChannelService, notificationService: NotificationService, attachmentService: AttachmentService, configService: MessageInputConfigService, textareaType: Type<TextareaInterface>, componentFactoryResolver: ComponentFactoryResolver, cdRef: ChangeDetectorRef, emojiInputService: EmojiInputService, customTemplatesService: CustomTemplatesService, messageActionsService: MessageActionsService, voiceRecorderService: VoiceRecorderService, audioRecorder?: AudioRecorderService | undefined);
|
|
122
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
123
122
|
ngOnInit(): void;
|
|
124
123
|
ngAfterViewInit(): void;
|
|
124
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
125
125
|
ngOnDestroy(): void;
|
|
126
126
|
messageSent(): Promise<void>;
|
|
127
127
|
get containsLinks(): boolean;
|
|
128
|
-
get quotedMessageAttachments(): Attachment
|
|
129
|
-
attachmentType: import("stream-chat").UR & import("../types").UnknownType & {
|
|
130
|
-
asset_url?: string | undefined;
|
|
131
|
-
id?: string | undefined;
|
|
132
|
-
images?: Attachment<DefaultStreamChatGenerics>[] | undefined;
|
|
133
|
-
mime_type?: string | undefined;
|
|
134
|
-
isCustomAttachment?: boolean | undefined;
|
|
135
|
-
};
|
|
136
|
-
channelType: import("stream-chat").UR & import("../types").UnknownType & {
|
|
137
|
-
image?: string | undefined;
|
|
138
|
-
member_count?: number | undefined;
|
|
139
|
-
subtitle?: string | undefined;
|
|
140
|
-
};
|
|
141
|
-
commandType: string;
|
|
142
|
-
eventType: import("stream-chat").UR & import("../types").UnknownType;
|
|
143
|
-
memberType: import("stream-chat").UR;
|
|
144
|
-
messageType: {};
|
|
145
|
-
pollOptionType: import("stream-chat").UR;
|
|
146
|
-
pollType: import("stream-chat").UR;
|
|
147
|
-
reactionType: import("stream-chat").UR & import("../types").UnknownType;
|
|
148
|
-
userType: import("stream-chat").UR & import("../types").UnknownType & import("../types").DefaultUserTypeInternal & {
|
|
149
|
-
mutes?: import("stream-chat").Mute<DefaultStreamChatGenerics>[] | undefined;
|
|
150
|
-
};
|
|
151
|
-
}>[];
|
|
128
|
+
get quotedMessageAttachments(): Attachment[];
|
|
152
129
|
get disabledTextareaText(): "" | "streamChat.You can't send thread replies in this channel" | "streamChat.You can't send messages in this channel";
|
|
153
130
|
itemsPasted(event: ClipboardEvent): void;
|
|
154
131
|
filesSelected(fileList: FileList | null): Promise<void>;
|
|
@@ -172,5 +149,5 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
172
149
|
private checkIfInEditMode;
|
|
173
150
|
private messageToUpdateChanged;
|
|
174
151
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
175
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled":
|
|
152
|
+
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"; "watchForMessageToEdit": "watchForMessageToEdit"; "displaySendButton": "displaySendButton"; "displayVoiceRecordingButton": "displayVoiceRecordingButton"; }, { "messageUpdate": "messageUpdate"; }, ["voiceRecorderRef"], ["[message-input-start]", "[message-input-end]"], false, never>;
|
|
176
153
|
}
|
|
@@ -4,7 +4,7 @@ import { TextareaInterface } from '../textarea.interface';
|
|
|
4
4
|
import { UserResponse } from 'stream-chat';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `Textarea` component is used by the [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) component to display the input HTML element where users can type their message.
|
|
7
|
+
* The `Textarea` component is used by the [`MessageInput`](/chat/docs/sdk/angular/v6-rc/components/MessageInputComponent/) component to display the input HTML element where users can type their message.
|
|
8
8
|
*/
|
|
9
9
|
export declare class TextareaComponent implements TextareaInterface, OnChanges, OnDestroy, AfterViewInit {
|
|
10
10
|
private emojiInputService;
|
|
@@ -18,7 +18,7 @@ export declare class TextareaComponent implements TextareaInterface, OnChanges,
|
|
|
18
18
|
*/
|
|
19
19
|
placeholder: string;
|
|
20
20
|
/**
|
|
21
|
-
* See [`MessageInputConfigService`](/chat/docs/sdk/angular/services/MessageInputConfigService) for more information
|
|
21
|
+
* See [`MessageInputConfigService`](/chat/docs/sdk/angular/v6-rc/services/MessageInputConfigService) for more information
|
|
22
22
|
*/
|
|
23
23
|
inputMode: 'desktop' | 'mobile';
|
|
24
24
|
/**
|
|
@@ -51,5 +51,5 @@ export declare class TextareaComponent implements TextareaInterface, OnChanges,
|
|
|
51
51
|
enterHit(event: Event): void;
|
|
52
52
|
private adjustTextareaHeight;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "stream-textarea", never, { "value":
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "stream-textarea", never, { "value": "value"; "placeholder": "placeholder"; "inputMode": "inputMode"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; "pasteFromClipboard": "pasteFromClipboard"; }, never, never, false, never>;
|
|
55
55
|
}
|
|
@@ -20,5 +20,5 @@ export declare class TextareaDirective implements OnChanges {
|
|
|
20
20
|
constructor(viewContainerRef: ViewContainerRef);
|
|
21
21
|
ngOnChanges(changes: SimpleChanges): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaDirective, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TextareaDirective, "[streamTextarea]", never, { "componentRef":
|
|
23
|
+
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"; "pasteFromClipboard": "pasteFromClipboard"; }, never, never, false, never>;
|
|
24
24
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GroupStyleOptions, StreamMessage } from '../types';
|
|
2
|
-
export type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
|
|
2
|
+
export declare type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
|
|
3
3
|
export declare const getGroupStyles: (message: StreamMessage, previousMessage?: StreamMessage, nextMessage?: StreamMessage, options?: GroupStyleOptions) => GroupStyle;
|
|
@@ -110,11 +110,12 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
110
110
|
constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone, cdRef: ChangeDetectorRef);
|
|
111
111
|
messageNotificationJumpClicked: () => void;
|
|
112
112
|
messageNotificationDismissClicked: () => void;
|
|
113
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
114
113
|
ngOnInit(): void;
|
|
114
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
115
115
|
ngAfterViewInit(): void;
|
|
116
116
|
ngAfterViewChecked(): void;
|
|
117
117
|
ngOnDestroy(): void;
|
|
118
|
+
trackByMessageId(_: number, item: StreamMessage): string;
|
|
118
119
|
trackByUserId(_: number, user: UserResponse): string;
|
|
119
120
|
jumpToLatestMessage(): void;
|
|
120
121
|
scrollToBottom(): void;
|
|
@@ -141,5 +142,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
141
142
|
private newMessageReceived;
|
|
142
143
|
private checkIfOnSeparateDates;
|
|
143
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode":
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; }, {}, never, never, false, never>;
|
|
145
146
|
}
|
package/lib/message-preview.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Attachment, MessageResponse, UserResponse } from 'stream-chat';
|
|
2
|
-
|
|
3
|
-
export declare const createMessagePreview: <T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(user: UserResponse, text: string, attachments: Attachment<T>[] | undefined, mentionedUsers: UserResponse<T>[] | undefined, parentId: undefined | string, quotedMessageId: undefined | string, customData: Partial<T["messageType"]> | undefined) => MessageResponse<T>;
|
|
1
|
+
import { Attachment, CustomMessageData, MessageResponse, UserResponse } from 'stream-chat';
|
|
2
|
+
export declare const createMessagePreview: (user: UserResponse, text: string, attachments: Attachment[] | undefined, mentionedUsers: UserResponse[] | undefined, parentId: undefined | string, quotedMessageId: undefined | string, customData: undefined | CustomMessageData) => MessageResponse;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ReactionGroupResponse, ReactionResponse, UserResponse } from 'stream-chat';
|
|
3
|
-
import { MessageReactionType
|
|
3
|
+
import { MessageReactionType } from '../types';
|
|
4
4
|
import { MessageReactionsService } from '../message-reactions.service';
|
|
5
5
|
import { CustomTemplatesService } from '../custom-templates.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -29,14 +29,14 @@ export declare class MessageReactionsComponent implements OnChanges, OnInit, Aft
|
|
|
29
29
|
[key in MessageReactionType]?: number;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* List of reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
33
|
-
* @deprecated you can fetch the reactions using [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions)
|
|
32
|
+
* List of reactions of a [message](/chat/docs/sdk/angular/v6-rc/types/stream-message/), used to display the users of a reaction type.
|
|
33
|
+
* @deprecated you can fetch the reactions using [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/v6-rc/services/MessageReactionsService/#queryreactions)
|
|
34
34
|
*/
|
|
35
|
-
latestReactions: ReactionResponse
|
|
35
|
+
latestReactions: ReactionResponse[];
|
|
36
36
|
/**
|
|
37
|
-
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
37
|
+
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/v6-rc/types/stream-message/), used to display the users of a reaction type.
|
|
38
38
|
*/
|
|
39
|
-
ownReactions: ReactionResponse
|
|
39
|
+
ownReactions: ReactionResponse[];
|
|
40
40
|
private selectorContainer;
|
|
41
41
|
selectedReactionType: string | undefined;
|
|
42
42
|
isLoading: boolean;
|
|
@@ -53,16 +53,17 @@ export declare class MessageReactionsComponent implements OnChanges, OnInit, Aft
|
|
|
53
53
|
private subscriptions;
|
|
54
54
|
private isViewInited;
|
|
55
55
|
constructor(cdRef: ChangeDetectorRef, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService);
|
|
56
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
57
56
|
ngOnInit(): void;
|
|
57
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
58
58
|
ngAfterViewInit(): void;
|
|
59
59
|
ngOnDestroy(): void;
|
|
60
60
|
getEmojiByReaction(reactionType: MessageReactionType): string;
|
|
61
61
|
reactionSelected(reactionType: string): Promise<void>;
|
|
62
62
|
loadNextPageOfReactions(): Promise<void>;
|
|
63
|
+
trackByMessageReaction(_: number, item: MessageReactionType): string;
|
|
63
64
|
isOwnReaction(reactionType: MessageReactionType): boolean;
|
|
64
65
|
isOpenChange: (isOpen: boolean) => void;
|
|
65
66
|
private setExistingReactions;
|
|
66
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsComponent, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId":
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionGroups": "messageReactionGroups"; "messageReactionCounts": "messageReactionCounts"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, {}, never, never, false, never>;
|
|
68
69
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { MessageReactionType } from '../types';
|
|
3
3
|
import { ReactionResponse } from 'stream-chat';
|
|
4
4
|
import { ChannelService } from '../channel.service';
|
|
5
5
|
import { MessageReactionsService } from '../message-reactions.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* The `MessageReactionsSelectorComponent` makes it possible for users to react to a message, the reaction options can be set using the [`MessageReactionsService`](/chat/docs/sdk/angular/services/MessageReactionsService/). You can read more about [message reactions](/chat/docs/javascript/send_reaction/) in the platform documentation.
|
|
8
|
+
* The `MessageReactionsSelectorComponent` makes it possible for users to react to a message, the reaction options can be set using the [`MessageReactionsService`](/chat/docs/sdk/angular/v6-rc/services/MessageReactionsService/). You can read more about [message reactions](/chat/docs/javascript/send_reaction/) in the platform documentation.
|
|
9
9
|
*/
|
|
10
10
|
export declare class MessageReactionsSelectorComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
11
11
|
private channelService;
|
|
12
12
|
private messageReactionsService;
|
|
13
13
|
private cdRef;
|
|
14
14
|
/**
|
|
15
|
-
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
15
|
+
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/v6-rc/types/stream-message/), used to display the users of a reaction type.
|
|
16
16
|
*/
|
|
17
|
-
ownReactions: ReactionResponse
|
|
17
|
+
ownReactions: ReactionResponse[];
|
|
18
18
|
/**
|
|
19
19
|
* The id of the message the reactions belong to
|
|
20
20
|
*/
|
|
@@ -26,9 +26,10 @@ export declare class MessageReactionsSelectorComponent implements OnInit, OnDest
|
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
ngAfterViewInit(): void;
|
|
28
28
|
ngOnDestroy(): void;
|
|
29
|
+
trackByMessageReaction(_: number, item: MessageReactionType): string;
|
|
29
30
|
isOwnReaction(reactionType: MessageReactionType): boolean;
|
|
30
31
|
getEmojiByReaction(reactionType: MessageReactionType): string;
|
|
31
32
|
react(type: MessageReactionType): Promise<void>;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsSelectorComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsSelectorComponent, "stream-message-reactions-selector", never, { "ownReactions":
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsSelectorComponent, "stream-message-reactions-selector", never, { "ownReactions": "ownReactions"; "messageId": "messageId"; }, {}, never, never, false, never>;
|
|
34
35
|
}
|
|
@@ -13,15 +13,15 @@ export declare class MessageReactionsService {
|
|
|
13
13
|
/**
|
|
14
14
|
* The enabled [reactions](/chat/docs/javascript/send_reaction/) and the associated emoji
|
|
15
15
|
*
|
|
16
|
-
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](/chat/docs/sdk/angular/services/CustomTemplatesService/#messagereactionstemplate/)
|
|
16
|
+
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](/chat/docs/sdk/angular/v6-rc/services/CustomTemplatesService/#messagereactionstemplate/)
|
|
17
17
|
*/
|
|
18
18
|
reactions$: BehaviorSubject<{
|
|
19
19
|
[x: string]: string;
|
|
20
20
|
}>;
|
|
21
21
|
/**
|
|
22
|
-
* By default the [`MessageReactionsComponent`](/chat/docs/sdk/angular/components/MessageReactionsComponent/) will display the reacting users when a reaction is clicked. You can override this with your own UI by providing a custom event handler.
|
|
22
|
+
* By default the [`MessageReactionsComponent`](/chat/docs/sdk/angular/v6-rc/components/MessageReactionsComponent/) will display the reacting users when a reaction is clicked. You can override this with your own UI by providing a custom event handler.
|
|
23
23
|
*
|
|
24
|
-
* The event handler can retrieve all reactions of a message using the [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions)
|
|
24
|
+
* The event handler can retrieve all reactions of a message using the [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/v6-rc/services/MessageReactionsService/#queryreactions)
|
|
25
25
|
*/
|
|
26
26
|
customReactionClickHandler?: (details: MessageReactionClickDetails) => void;
|
|
27
27
|
constructor(chatClientService: ChatClientService, notificationService: NotificationService);
|
|
@@ -44,7 +44,7 @@ export declare class MessageReactionsService {
|
|
|
44
44
|
* @param next
|
|
45
45
|
* @returns the reactions and the cursor for the next/prev pages
|
|
46
46
|
*/
|
|
47
|
-
queryReactions(messageId: string, type: string, next?: string): Promise<import("stream-chat").QueryReactionsAPIResponse
|
|
47
|
+
queryReactions(messageId: string, type: string, next?: string): Promise<import("stream-chat").QueryReactionsAPIResponse>;
|
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsService, never>;
|
|
49
49
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageReactionsService>;
|
|
50
50
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { MentionTemplateContext, StreamMessage } from '../types';
|
|
3
|
+
import { UserResponse } from 'stream-chat';
|
|
4
4
|
import { MessageService } from '../message.service';
|
|
5
5
|
import { CustomTemplatesService } from '../custom-templates.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
type MessagePart = {
|
|
7
|
+
declare type MessagePart = {
|
|
8
8
|
content: string;
|
|
9
9
|
type: 'text' | 'mention';
|
|
10
10
|
user?: UserResponse;
|
|
@@ -18,7 +18,7 @@ export declare class MessageTextComponent implements OnChanges {
|
|
|
18
18
|
/**
|
|
19
19
|
* The message which text should be displayed
|
|
20
20
|
*/
|
|
21
|
-
message: StreamMessage
|
|
21
|
+
message: StreamMessage | undefined | StreamMessage['quoted_message'];
|
|
22
22
|
/**
|
|
23
23
|
* `true` if the component displayes a message quote
|
|
24
24
|
*/
|
|
@@ -40,6 +40,6 @@ export declare class MessageTextComponent implements OnChanges {
|
|
|
40
40
|
private fixEmojiDisplay;
|
|
41
41
|
private wrapLinksWithAnchorTag;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageTextComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageTextComponent, "stream-message-text", never, { "message":
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageTextComponent, "stream-message-text", never, { "message": "message"; "isQuoted": "isQuoted"; "shouldTranslate": "shouldTranslate"; }, {}, never, never, false, never>;
|
|
44
44
|
}
|
|
45
45
|
export {};
|
package/lib/message.service.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Attachment } from 'stream-chat';
|
|
2
|
-
import { DefaultStreamChatGenerics } from './types';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* The message service contains configuration options related to displaying the message content
|
|
6
5
|
*/
|
|
7
|
-
export declare class MessageService
|
|
6
|
+
export declare class MessageService {
|
|
8
7
|
/**
|
|
9
8
|
* Decides if the message content should be formatted as text or HTML
|
|
10
9
|
*
|
|
11
10
|
* If you display messages as text the following parts are still be displayed as HTML:
|
|
12
|
-
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](/chat/docs/sdk/angular/services/CustomTemplatesService/#mentiontemplate)
|
|
11
|
+
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](/chat/docs/sdk/angular/v6-rc/services/CustomTemplatesService/#mentiontemplate)
|
|
13
12
|
* - links -> you can customize this by providing you own [`customLinkRenderer`](#customlinkrenderer) method
|
|
14
13
|
*/
|
|
15
14
|
displayAs: 'text' | 'html';
|
|
@@ -26,14 +25,14 @@ export declare class MessageService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
26
25
|
*
|
|
27
26
|
* Provide a method which retruns `true` if an attachment should be considered as custom.
|
|
28
27
|
*/
|
|
29
|
-
filterCustomAttachment?: (attachment: Attachment
|
|
28
|
+
filterCustomAttachment?: (attachment: Attachment) => boolean;
|
|
30
29
|
constructor();
|
|
31
30
|
/**
|
|
32
31
|
* Tells if an attachment is custom (you need to provide your own template to display them) or built-in (the SDK supports it out-of-the-box)
|
|
33
32
|
* @param attachment
|
|
34
33
|
* @returns `true` if the attachment is custom
|
|
35
34
|
*/
|
|
36
|
-
isCustomAttachment(attachment: Attachment
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService
|
|
35
|
+
isCustomAttachment(attachment: Attachment): boolean;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
|
39
38
|
}
|
|
@@ -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":
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "stream-modal", never, { "isOpen": "isOpen"; "content": "content"; }, { "isOpenChange": "isOpenChange"; }, never, ["*"], false, never>;
|
|
29
29
|
}
|
|
@@ -2,7 +2,7 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { NotificationType } from '../types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
-
* The `Notification` component displays a notification within the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/)
|
|
5
|
+
* The `Notification` component displays a notification within the [`NotificationList`](/chat/docs/sdk/angular/v6-rc/components/NotificationListComponent/)
|
|
6
6
|
*/
|
|
7
7
|
export declare class NotificationComponent {
|
|
8
8
|
/**
|
|
@@ -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":
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "stream-notification", never, { "type": "type"; "content": "content"; }, {}, never, ["*"], false, never>;
|
|
19
19
|
}
|
|
@@ -14,6 +14,7 @@ export declare class NotificationListComponent {
|
|
|
14
14
|
notifications$: Observable<NotificationPayload[]>;
|
|
15
15
|
theme$: Observable<string>;
|
|
16
16
|
constructor(customTemplatesService: CustomTemplatesService, notificationService: NotificationService, themeService: ThemeService);
|
|
17
|
+
trackById(_: number, item: NotificationPayload): string;
|
|
17
18
|
getNotificationContentContext(notification: NotificationPayload): {
|
|
18
19
|
dismissFn: () => void;
|
|
19
20
|
};
|
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { NotificationPayload, NotificationType } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
|
-
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/) component displays the currently active notifications.
|
|
6
|
+
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/v6-rc/components/NotificationListComponent/) component displays the currently active notifications.
|
|
7
7
|
*/
|
|
8
8
|
export declare class NotificationService {
|
|
9
9
|
/**
|
|
@@ -24,10 +24,7 @@ export declare class PaginatedListComponent<T> implements AfterViewInit {
|
|
|
24
24
|
* @returns the track by id
|
|
25
25
|
*/
|
|
26
26
|
trackBy: TrackByFunction<T>;
|
|
27
|
-
itemTempalteRef: TemplateRef<
|
|
28
|
-
item: T;
|
|
29
|
-
index: number;
|
|
30
|
-
}> | undefined;
|
|
27
|
+
itemTempalteRef: TemplateRef<T> | undefined;
|
|
31
28
|
/**
|
|
32
29
|
* The component will signal via this output when more items should be fetched
|
|
33
30
|
*
|
|
@@ -41,5 +38,5 @@ export declare class PaginatedListComponent<T> implements AfterViewInit {
|
|
|
41
38
|
ngAfterViewInit(): void;
|
|
42
39
|
private scrolled;
|
|
43
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedListComponent<any>, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedListComponent<any>, "stream-paginated-list", never, { "items":
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedListComponent<any>, "stream-paginated-list", never, { "items": "items"; "isLoading": "isLoading"; "hasMore": "hasMore"; "trackBy": "trackBy"; }, { "loadMore": "loadMore"; }, ["itemTempalteRef"], never, false, never>;
|
|
45
42
|
}
|
package/lib/read-by.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { Channel, FormatMessageResponse, UserResponse } from 'stream-chat';
|
|
2
|
-
|
|
3
|
-
export declare const getReadBy: <T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: FormatMessageResponse<T>, channel: Channel<T>) => UserResponse[];
|
|
2
|
+
export declare const getReadBy: (message: FormatMessageResponse, channel: Channel) => UserResponse[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TranslateService } from '@ngx-translate/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](/chat/docs/sdk/angular/concepts/translation/) covers this topic in detail.
|
|
4
|
+
* The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](/chat/docs/sdk/angular/v6-rc/concepts/translation/) covers this topic in detail.
|
|
5
5
|
*/
|
|
6
6
|
export declare class StreamI18nService {
|
|
7
7
|
private translteService;
|
package/lib/theme.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](/chat/docs/sdk/angular/theming/themingv2/) gives a complete overview about the topic.
|
|
4
|
+
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](/chat/docs/sdk/angular/v6-rc/theming/themingv2/) gives a complete overview about the topic.
|
|
5
5
|
*/
|
|
6
6
|
export declare class ThemeService {
|
|
7
7
|
/**
|
|
@@ -3,10 +3,10 @@ import { Channel } from 'stream-chat';
|
|
|
3
3
|
import { ChatClientService } from '../chat-client.service';
|
|
4
4
|
import { ChannelService } from '../channel.service';
|
|
5
5
|
import { CustomTemplatesService } from '../custom-templates.service';
|
|
6
|
-
import {
|
|
6
|
+
import { StreamMessage, ThreadHeaderContext } from '../types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* The `Thread` component represents a [message thread](/chat/docs/javascript/threads/), it is a container component that displays a thread with a header, [`MessageList`](/chat/docs/sdk/angular/components/MessageListComponent) and [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) components.
|
|
9
|
+
* The `Thread` component represents a [message thread](/chat/docs/javascript/threads/), it is a container component that displays a thread with a header, [`MessageList`](/chat/docs/sdk/angular/v6-rc/components/MessageListComponent) and [`MessageInput`](/chat/docs/sdk/angular/v6-rc/components/MessageInputComponent/) components.
|
|
10
10
|
*/
|
|
11
11
|
export declare class ThreadComponent implements OnDestroy {
|
|
12
12
|
customTemplatesService: CustomTemplatesService;
|
|
@@ -14,7 +14,7 @@ export declare class ThreadComponent implements OnDestroy {
|
|
|
14
14
|
private chatClientService;
|
|
15
15
|
private class;
|
|
16
16
|
parentMessage: StreamMessage | undefined;
|
|
17
|
-
channel: Channel
|
|
17
|
+
channel: Channel | undefined;
|
|
18
18
|
private subscriptions;
|
|
19
19
|
constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, chatClientService: ChatClientService);
|
|
20
20
|
ngOnDestroy(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface DefaultChannelData {
|
|
2
|
+
image?: string;
|
|
3
|
+
}
|
|
4
|
+
export interface DefaultAttachmentData {
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Please use `image_url` instead
|
|
7
|
+
*/
|
|
8
|
+
img_url?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Will be `true` if an attachment was added using `attachmentService.addAttachment`
|
|
11
|
+
*
|
|
12
|
+
* This is a non-standard property, other SDKs will ignore this property
|
|
13
|
+
*/
|
|
14
|
+
isCustomAttachment?: boolean;
|
|
15
|
+
}
|