stream-chat-angular 5.13.0 → 6.0.0-beta.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/i18n/en.d.ts +1 -0
- package/assets/version.d.ts +1 -1
- package/{esm2020 → esm2022}/assets/i18n/en.mjs +2 -1
- package/{esm2020 → esm2022}/assets/version.mjs +2 -2
- package/{esm2020 → esm2022}/lib/attachment-configuration.service.mjs +4 -4
- package/esm2022/lib/attachment-list/attachment-list.component.mjs +212 -0
- package/esm2022/lib/attachment-preview-list/attachment-preview-list.component.mjs +55 -0
- package/{esm2020 → esm2022}/lib/attachment.service.mjs +5 -5
- package/esm2022/lib/avatar/avatar.component.mjs +157 -0
- package/{esm2020 → esm2022}/lib/avatar-placeholder/avatar-placeholder.component.mjs +6 -6
- package/esm2022/lib/channel/channel.component.mjs +45 -0
- package/esm2022/lib/channel-header/channel-header.component.mjs +72 -0
- package/esm2022/lib/channel-list/channel-list.component.mjs +50 -0
- package/esm2022/lib/channel-preview/channel-preview.component.mjs +150 -0
- package/esm2022/lib/channel.service.mjs +1381 -0
- package/esm2022/lib/chat-client.service.mjs +227 -0
- package/{esm2020 → esm2022}/lib/custom-templates.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/date-parser.service.mjs +5 -5
- package/esm2022/lib/file-utils.mjs +35 -0
- package/{esm2020 → esm2022}/lib/get-channel-display-text.mjs +1 -1
- package/{esm2020 → esm2022}/lib/get-message-translation.mjs +1 -1
- package/{esm2020 → esm2022}/lib/icon/icon-placeholder/icon-placeholder.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/icon/icon.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/icon/icon.module.mjs +11 -11
- package/{esm2020 → esm2022}/lib/icon/loading-indicator/loading-indicator.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/list-users.mjs +1 -1
- package/esm2022/lib/message/message.component.mjs +486 -0
- package/esm2022/lib/message-actions-box/message-actions-box.component.mjs +120 -0
- package/{esm2020 → esm2022}/lib/message-actions.service.mjs +5 -5
- package/esm2022/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
- package/{esm2020 → esm2022}/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/message-input/emoji-input.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/message-input/message-input-config.service.mjs +5 -5
- package/esm2022/lib/message-input/message-input.component.mjs +507 -0
- package/{esm2020 → esm2022}/lib/message-input/textarea/textarea.component.mjs +5 -5
- package/{esm2020 → esm2022}/lib/message-input/textarea.directive.mjs +5 -5
- package/{esm2020 → esm2022}/lib/message-input/voice-recorder.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/message-list/group-styles.mjs +1 -1
- package/esm2022/lib/message-list/message-list.component.mjs +715 -0
- package/{esm2020 → esm2022}/lib/message-preview.mjs +1 -1
- package/esm2022/lib/message-reactions/message-reactions.component.mjs +165 -0
- package/esm2022/lib/message-reactions-selector/message-reactions-selector.component.mjs +57 -0
- package/{esm2020 → esm2022}/lib/message-reactions.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/message-text/message-text.component.mjs +6 -6
- package/esm2022/lib/message.service.mjs +43 -0
- package/{esm2020 → esm2022}/lib/modal/modal.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/notification/notification.component.mjs +6 -6
- package/esm2022/lib/notification-list/notification-list.component.mjs +33 -0
- package/{esm2020 → esm2022}/lib/notification.service.mjs +5 -5
- package/esm2022/lib/paginated-list/paginated-list.component.mjs +94 -0
- package/{esm2020 → esm2022}/lib/parse-date.mjs +1 -1
- package/{esm2020 → esm2022}/lib/read-by.mjs +1 -1
- package/esm2022/lib/stream-autocomplete-textarea.module.mjs +33 -0
- package/{esm2020 → esm2022}/lib/stream-avatar.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/stream-chat.module.mjs +59 -59
- package/{esm2020 → esm2022}/lib/stream-i18n.service.mjs +5 -5
- package/esm2022/lib/stream-textarea.module.mjs +31 -0
- package/{esm2020 → esm2022}/lib/theme.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/thread/thread.component.mjs +6 -6
- package/{esm2020 → esm2022}/lib/transliteration.service.mjs +5 -5
- package/esm2022/lib/types.mjs +2 -0
- package/{esm2020 → esm2022}/lib/user-list/user-list.component.mjs +5 -5
- package/esm2022/lib/virtualized-list.service.mjs +273 -0
- package/{esm2020 → esm2022}/lib/virtualized-message-list.service.mjs +1 -1
- package/{esm2020 → esm2022}/lib/voice-recorder/amplitude-recorder.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/voice-recorder/audio-recorder.service.mjs +5 -5
- package/{esm2020 → esm2022}/lib/voice-recorder/media-recorder.mjs +1 -1
- package/esm2022/lib/voice-recorder/mp3-transcoder.mjs +61 -0
- package/esm2022/lib/voice-recorder/transcoder.service.mjs +121 -0
- package/esm2022/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +32 -0
- package/esm2022/lib/voice-recorder/voice-recorder.component.mjs +80 -0
- package/{esm2020 → esm2022}/lib/voice-recorder/voice-recorder.module.mjs +9 -9
- package/esm2022/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +112 -0
- package/esm2022/lib/voice-recording/voice-recording.component.mjs +91 -0
- package/{esm2020 → esm2022}/lib/voice-recording/voice-recording.module.mjs +5 -5
- package/{esm2020 → esm2022}/lib/wave-form-sampler.mjs +1 -1
- package/esm2022/public-api.mjs +82 -0
- package/{fesm2020 → fesm2022}/stream-chat-angular.mjs +857 -1140
- package/fesm2022/stream-chat-angular.mjs.map +1 -0
- package/lib/attachment-list/attachment-list.component.d.ts +2 -5
- package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +2 -2
- package/lib/attachment.service.d.ts +1 -1
- package/lib/avatar/avatar.component.d.ts +4 -4
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
- package/lib/channel-list/channel-list.component.d.ts +1 -0
- package/lib/channel-preview/channel-preview.component.d.ts +3 -4
- package/lib/channel.service.d.ts +40 -106
- package/lib/chat-client.service.d.ts +1 -4
- package/lib/custom-templates.service.d.ts +10 -10
- package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +1 -1
- package/lib/icon/icon.component.d.ts +2 -2
- package/lib/message/message.component.d.ts +2 -2
- package/lib/message-actions-box/message-actions-box.component.d.ts +2 -3
- package/lib/message-actions.service.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +2 -2
- 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 +2 -2
- package/lib/message-list/group-styles.d.ts +1 -1
- package/lib/message-list/message-list.component.d.ts +2 -3
- package/lib/message-reactions/message-reactions.component.d.ts +2 -3
- package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +1 -2
- package/lib/message-text/message-text.component.d.ts +2 -2
- 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 +0 -1
- package/lib/paginated-list/paginated-list.component.d.ts +5 -2
- package/lib/read-by.d.ts +1 -1
- package/lib/types.d.ts +98 -84
- package/lib/user-list/user-list.component.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 +0 -1
- 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 +1 -1
- package/package.json +15 -21
- package/public-api.d.ts +0 -1
- package/src/assets/i18n/en.ts +1 -0
- package/src/assets/version.ts +1 -1
- package/esm2020/lib/attachment-list/attachment-list.component.mjs +0 -224
- package/esm2020/lib/attachment-preview-list/attachment-preview-list.component.mjs +0 -55
- package/esm2020/lib/avatar/avatar.component.mjs +0 -160
- package/esm2020/lib/channel/channel.component.mjs +0 -45
- package/esm2020/lib/channel-header/channel-header.component.mjs +0 -72
- package/esm2020/lib/channel-list/channel-list.component.mjs +0 -47
- package/esm2020/lib/channel-preview/channel-preview.component.mjs +0 -155
- package/esm2020/lib/channel-query.mjs +0 -77
- package/esm2020/lib/channel.service.mjs +0 -1546
- package/esm2020/lib/chat-client.service.mjs +0 -238
- package/esm2020/lib/file-utils.mjs +0 -35
- package/esm2020/lib/message/message.component.mjs +0 -486
- package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +0 -123
- package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +0 -71
- package/esm2020/lib/message-input/message-input.component.mjs +0 -507
- package/esm2020/lib/message-list/message-list.component.mjs +0 -717
- package/esm2020/lib/message-reactions/message-reactions.component.mjs +0 -168
- package/esm2020/lib/message-reactions-selector/message-reactions-selector.component.mjs +0 -61
- package/esm2020/lib/message.service.mjs +0 -43
- package/esm2020/lib/notification-list/notification-list.component.mjs +0 -36
- package/esm2020/lib/paginated-list/paginated-list.component.mjs +0 -94
- package/esm2020/lib/stream-autocomplete-textarea.module.mjs +0 -33
- package/esm2020/lib/stream-textarea.module.mjs +0 -31
- package/esm2020/lib/types.mjs +0 -2
- package/esm2020/lib/virtualized-list.service.mjs +0 -271
- package/esm2020/lib/voice-recorder/mp3-transcoder.mjs +0 -61
- package/esm2020/lib/voice-recorder/transcoder.service.mjs +0 -121
- package/esm2020/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +0 -35
- package/esm2020/lib/voice-recorder/voice-recorder.component.mjs +0 -80
- package/esm2020/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +0 -112
- package/esm2020/lib/voice-recording/voice-recording.component.mjs +0 -91
- package/esm2020/public-api.mjs +0 -83
- package/fesm2015/stream-chat-angular.mjs +0 -9152
- package/fesm2015/stream-chat-angular.mjs.map +0 -1
- package/fesm2020/stream-chat-angular.mjs.map +0 -1
- package/lib/channel-query.d.ts +0 -26
- /package/{esm2020 → esm2022}/lib/format-duration.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/injection-tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/is-image-attachment.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/is-on-separate-date.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/is-safari.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/message-input/textarea.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/stream-chat-angular.mjs +0 -0
|
@@ -119,9 +119,9 @@ 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;
|
|
122
123
|
ngOnInit(): void;
|
|
123
124
|
ngAfterViewInit(): void;
|
|
124
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
125
125
|
ngOnDestroy(): void;
|
|
126
126
|
messageSent(): Promise<void>;
|
|
127
127
|
get containsLinks(): boolean;
|
|
@@ -172,5 +172,5 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
172
172
|
private checkIfInEditMode;
|
|
173
173
|
private messageToUpdateChanged;
|
|
174
174
|
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": "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>;
|
|
175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": { "alias": "isFileUploadEnabled"; "required": false; }; "areMentionsEnabled": { "alias": "areMentionsEnabled"; "required": false; }; "mentionScope": { "alias": "mentionScope"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "isMultipleFileUploadEnabled": { "alias": "isMultipleFileUploadEnabled"; "required": false; }; "message": { "alias": "message"; "required": false; }; "sendMessage$": { "alias": "sendMessage$"; "required": false; }; "inputMode": { "alias": "inputMode"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "watchForMessageToEdit": { "alias": "watchForMessageToEdit"; "required": false; }; "displaySendButton": { "alias": "displaySendButton"; "required": false; }; "displayVoiceRecordingButton": { "alias": "displayVoiceRecordingButton"; "required": false; }; }, { "messageUpdate": "messageUpdate"; }, ["voiceRecorderRef"], ["[message-input-start]", "[message-input-end]"], false, never>;
|
|
176
176
|
}
|
|
@@ -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": "value"; "placeholder": "placeholder"; "inputMode": "inputMode"; "autoFocus": "autoFocus"; }, { "valueChange": "valueChange"; "send": "send"; "pasteFromClipboard": "pasteFromClipboard"; }, never, never, false, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "stream-textarea", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputMode": { "alias": "inputMode"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; }, { "valueChange": "valueChange"; "send": "send"; "pasteFromClipboard": "pasteFromClipboard"; }, never, never, false, never>;
|
|
55
55
|
}
|
|
@@ -13,12 +13,12 @@ export declare class TextareaDirective implements OnChanges {
|
|
|
13
13
|
autoFocus: boolean;
|
|
14
14
|
readonly valueChange: EventEmitter<string>;
|
|
15
15
|
readonly send: EventEmitter<void>;
|
|
16
|
-
readonly userMentions: EventEmitter<UserResponse
|
|
16
|
+
readonly userMentions: EventEmitter<UserResponse[]>;
|
|
17
17
|
readonly pasteFromClipboard: EventEmitter<ClipboardEvent>;
|
|
18
18
|
private subscriptions;
|
|
19
19
|
private unpropagatedChanges;
|
|
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": "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>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextareaDirective, "[streamTextarea]", never, { "componentRef": { "alias": "componentRef"; "required": false; }; "areMentionsEnabled": { "alias": "areMentionsEnabled"; "required": false; }; "mentionScope": { "alias": "mentionScope"; "required": false; }; "inputMode": { "alias": "inputMode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; }, { "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
|
|
2
|
+
export type GroupStyle = '' | 'middle' | 'top' | 'bottom' | 'single';
|
|
3
3
|
export declare const getGroupStyles: (message: StreamMessage, previousMessage?: StreamMessage, nextMessage?: StreamMessage, options?: GroupStyleOptions) => GroupStyle;
|
|
@@ -110,12 +110,11 @@ 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
|
-
ngOnInit(): void;
|
|
114
113
|
ngOnChanges(changes: SimpleChanges): void;
|
|
114
|
+
ngOnInit(): void;
|
|
115
115
|
ngAfterViewInit(): void;
|
|
116
116
|
ngAfterViewChecked(): void;
|
|
117
117
|
ngOnDestroy(): void;
|
|
118
|
-
trackByMessageId(_: number, item: StreamMessage): string;
|
|
119
118
|
trackByUserId(_: number, user: UserResponse): string;
|
|
120
119
|
jumpToLatestMessage(): void;
|
|
121
120
|
scrollToBottom(): void;
|
|
@@ -142,5 +141,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
142
141
|
private newMessageReceived;
|
|
143
142
|
private checkIfOnSeparateDates;
|
|
144
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
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>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": { "alias": "mode"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "hideJumpToLatestButtonDuringScroll": { "alias": "hideJumpToLatestButtonDuringScroll"; "required": false; }; "displayDateSeparator": { "alias": "displayDateSeparator"; "required": false; }; "displayUnreadSeparator": { "alias": "displayUnreadSeparator"; "required": false; }; "dateSeparatorTextPos": { "alias": "dateSeparatorTextPos"; "required": false; }; "openMessageListAt": { "alias": "openMessageListAt"; "required": false; }; "hideUnreadCountForNotificationAndIndicator": { "alias": "hideUnreadCountForNotificationAndIndicator"; "required": false; }; "displayLoadingIndicator": { "alias": "displayLoadingIndicator"; "required": false; }; }, {}, never, never, false, never>;
|
|
146
145
|
}
|
|
@@ -53,17 +53,16 @@ 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
|
-
ngOnInit(): void;
|
|
57
56
|
ngOnChanges(changes: SimpleChanges): void;
|
|
57
|
+
ngOnInit(): 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;
|
|
64
63
|
isOwnReaction(reactionType: MessageReactionType): boolean;
|
|
65
64
|
isOpenChange: (isOpen: boolean) => void;
|
|
66
65
|
private setExistingReactions;
|
|
67
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionGroups": "messageReactionGroups"; "messageReactionCounts": "messageReactionCounts"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, {}, never, never, false, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": { "alias": "messageId"; "required": false; }; "messageReactionGroups": { "alias": "messageReactionGroups"; "required": false; }; "messageReactionCounts": { "alias": "messageReactionCounts"; "required": false; }; "latestReactions": { "alias": "latestReactions"; "required": false; }; "ownReactions": { "alias": "ownReactions"; "required": false; }; }, {}, never, never, false, never>;
|
|
69
68
|
}
|
|
@@ -26,10 +26,9 @@ 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;
|
|
30
29
|
isOwnReaction(reactionType: MessageReactionType): boolean;
|
|
31
30
|
getEmojiByReaction(reactionType: MessageReactionType): string;
|
|
32
31
|
react(type: MessageReactionType): Promise<void>;
|
|
33
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsSelectorComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsSelectorComponent, "stream-message-reactions-selector", never, { "ownReactions": "ownReactions"; "messageId": "messageId"; }, {}, never, never, false, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsSelectorComponent, "stream-message-reactions-selector", never, { "ownReactions": { "alias": "ownReactions"; "required": false; }; "messageId": { "alias": "messageId"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
34
|
}
|
|
@@ -4,7 +4,7 @@ import { MessageResponseBase, 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
|
-
|
|
7
|
+
type MessagePart = {
|
|
8
8
|
content: string;
|
|
9
9
|
type: 'text' | 'mention';
|
|
10
10
|
user?: UserResponse;
|
|
@@ -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": "message"; "isQuoted": "isQuoted"; "shouldTranslate": "shouldTranslate"; }, {}, never, never, false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageTextComponent, "stream-message-text", never, { "message": { "alias": "message"; "required": false; }; "isQuoted": { "alias": "isQuoted"; "required": false; }; "shouldTranslate": { "alias": "shouldTranslate"; "required": false; }; }, {}, never, never, false, never>;
|
|
44
44
|
}
|
|
45
45
|
export {};
|
|
@@ -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": { "alias": "isOpen"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, { "isOpenChange": "isOpenChange"; }, never, 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": { "alias": "type"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
@@ -14,7 +14,6 @@ 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;
|
|
18
17
|
getNotificationContentContext(notification: NotificationPayload): {
|
|
19
18
|
dismissFn: () => void;
|
|
20
19
|
};
|
|
@@ -24,7 +24,10 @@ export declare class PaginatedListComponent<T> implements AfterViewInit {
|
|
|
24
24
|
* @returns the track by id
|
|
25
25
|
*/
|
|
26
26
|
trackBy: TrackByFunction<T>;
|
|
27
|
-
itemTempalteRef: TemplateRef<
|
|
27
|
+
itemTempalteRef: TemplateRef<{
|
|
28
|
+
item: T;
|
|
29
|
+
index: number;
|
|
30
|
+
}> | undefined;
|
|
28
31
|
/**
|
|
29
32
|
* The component will signal via this output when more items should be fetched
|
|
30
33
|
*
|
|
@@ -38,5 +41,5 @@ export declare class PaginatedListComponent<T> implements AfterViewInit {
|
|
|
38
41
|
ngAfterViewInit(): void;
|
|
39
42
|
private scrolled;
|
|
40
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedListComponent<any>, never>;
|
|
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>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedListComponent<any>, "stream-paginated-list", never, { "items": { "alias": "items"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "hasMore": { "alias": "hasMore"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, { "loadMore": "loadMore"; }, ["itemTempalteRef"], never, false, never>;
|
|
42
45
|
}
|
package/lib/read-by.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Channel, FormatMessageResponse, UserResponse } from 'stream-chat';
|
|
2
2
|
import { DefaultStreamChatGenerics } from './types';
|
|
3
|
-
export declare const getReadBy: <T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: FormatMessageResponse<T>, channel: Channel<T>) => UserResponse
|
|
3
|
+
export declare const getReadBy: <T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics>(message: FormatMessageResponse<T>, channel: Channel<T>) => UserResponse[];
|
package/lib/types.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
|
-
import type { Attachment, Channel, ChannelFilters, ChannelMemberResponse, CommandResponse, Event, ExtendableGenerics, FormatMessageResponse, LiteralStringForUnion, MessageResponseBase, Mute, ReactionGroupResponse, ReactionResponse, User, UserResponse } from 'stream-chat';
|
|
3
|
+
import type { Attachment, Channel, ChannelFilters, ChannelManagerEventHandlerOverrides, ChannelManagerOptions, ChannelMemberResponse, ChannelOptions, ChannelSort, CommandResponse, Event, ExtendableGenerics, FormatMessageResponse, LiteralStringForUnion, MessageResponseBase, Mute, ReactionGroupResponse, ReactionResponse, User, UserResponse } from 'stream-chat';
|
|
4
4
|
import { AttachmentService } from './attachment.service';
|
|
5
5
|
import { Icon } from './icon/icon.component';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type UnknownType = Record<string, unknown>;
|
|
7
|
+
export type CustomTrigger = {
|
|
8
8
|
[key: string]: {
|
|
9
9
|
componentProps: UnknownType;
|
|
10
10
|
data: UnknownType;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type DefaultStreamChatGenerics = ExtendableGenerics & {
|
|
14
14
|
attachmentType: DefaultAttachmentType;
|
|
15
15
|
channelType: DefaultChannelType;
|
|
16
16
|
commandType: LiteralStringForUnion;
|
|
@@ -19,20 +19,20 @@ export declare type DefaultStreamChatGenerics = ExtendableGenerics & {
|
|
|
19
19
|
reactionType: UnknownType;
|
|
20
20
|
userType: DefaultUserType;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type DefaultAttachmentType = UnknownType & {
|
|
23
23
|
asset_url?: string;
|
|
24
24
|
id?: string;
|
|
25
25
|
images?: Array<Attachment<DefaultStreamChatGenerics>>;
|
|
26
26
|
mime_type?: string;
|
|
27
27
|
isCustomAttachment?: boolean;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type DefaultChannelType = UnknownType & {
|
|
30
30
|
image?: string;
|
|
31
31
|
member_count?: number;
|
|
32
32
|
subtitle?: string;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
35
|
-
export
|
|
34
|
+
export type DefaultCommandType = LiteralStringForUnion;
|
|
35
|
+
export type DefaultMessageType = UnknownType & {
|
|
36
36
|
customType?: 'channel.intro' | 'message.date';
|
|
37
37
|
date?: string | Date;
|
|
38
38
|
errorStatusCode?: number;
|
|
@@ -42,16 +42,16 @@ export declare type DefaultMessageType = UnknownType & {
|
|
|
42
42
|
translation?: string;
|
|
43
43
|
quoted_message?: MessageResponseBase<DefaultStreamChatGenerics>;
|
|
44
44
|
};
|
|
45
|
-
export
|
|
45
|
+
export type DefaultUserTypeInternal = {
|
|
46
46
|
image?: string;
|
|
47
47
|
status?: string;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type DefaultUserType = UnknownType & DefaultUserTypeInternal & {
|
|
50
50
|
mutes?: Array<Mute<DefaultStreamChatGenerics>>;
|
|
51
51
|
};
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
52
|
+
export type StreamMessage<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = FormatMessageResponse<T>;
|
|
53
|
+
export type AttachmentUploadErrorReason = 'file-size' | 'file-extension' | 'unknown';
|
|
54
|
+
export type AttachmentUpload<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
55
55
|
file: File;
|
|
56
56
|
state: 'error' | 'success' | 'uploading';
|
|
57
57
|
errorReason?: AttachmentUploadErrorReason;
|
|
@@ -65,20 +65,20 @@ export declare type AttachmentUpload<T extends DefaultStreamChatGenerics = Defau
|
|
|
65
65
|
extraData?: Partial<Attachment<T>>;
|
|
66
66
|
fromAttachment?: Attachment<T>;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type MentionAutcompleteListItemContext = {
|
|
69
69
|
item: MentionAutcompleteListItem;
|
|
70
70
|
};
|
|
71
|
-
export
|
|
71
|
+
export type CommandAutocompleteListItemContext = {
|
|
72
72
|
item: ComandAutocompleteListItem;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type MentionAutcompleteListItem = (ChannelMemberResponse | UserResponse) & {
|
|
75
75
|
autocompleteLabel: string;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
77
|
+
export type ComandAutocompleteListItem = CommandResponse & {
|
|
78
78
|
autocompleteLabel: string;
|
|
79
79
|
};
|
|
80
|
-
export
|
|
81
|
-
export
|
|
80
|
+
export type NotificationType = 'success' | 'error' | 'info';
|
|
81
|
+
export type NotificationPayload<T = object> = {
|
|
82
82
|
id: string;
|
|
83
83
|
type: NotificationType;
|
|
84
84
|
text?: string;
|
|
@@ -87,10 +87,10 @@ export declare type NotificationPayload<T = object> = {
|
|
|
87
87
|
templateContext?: T;
|
|
88
88
|
dismissFn: () => void;
|
|
89
89
|
};
|
|
90
|
-
export
|
|
90
|
+
export type ChannelPreviewContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
91
91
|
channel: Channel<T>;
|
|
92
92
|
};
|
|
93
|
-
export
|
|
93
|
+
export type ChannelPreviewInfoContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ChannelPreviewContext & {
|
|
94
94
|
latestMessage?: StreamMessage<T>;
|
|
95
95
|
/**
|
|
96
96
|
* The text of the latest message, or some meta information (for example: "Nothing yet")
|
|
@@ -110,17 +110,17 @@ export declare type ChannelPreviewInfoContext<T extends DefaultStreamChatGeneric
|
|
|
110
110
|
latestMessageTime?: string;
|
|
111
111
|
unreadCount: number;
|
|
112
112
|
};
|
|
113
|
-
export
|
|
113
|
+
export type MentionTemplateContext = {
|
|
114
114
|
content: string;
|
|
115
115
|
user: UserResponse;
|
|
116
116
|
};
|
|
117
|
-
export
|
|
117
|
+
export type EmojiPickerContext = {
|
|
118
118
|
emojiInput$: Subject<string>;
|
|
119
119
|
};
|
|
120
|
-
export
|
|
120
|
+
export type TypingIndicatorContext = {
|
|
121
121
|
usersTyping$: Observable<UserResponse<DefaultStreamChatGenerics>[]>;
|
|
122
122
|
};
|
|
123
|
-
export
|
|
123
|
+
export type MessageContext = {
|
|
124
124
|
message: StreamMessage | undefined;
|
|
125
125
|
enabledMessageActions: string[];
|
|
126
126
|
isLastSentMessage: boolean | undefined;
|
|
@@ -129,24 +129,24 @@ export declare type MessageContext = {
|
|
|
129
129
|
customActions: CustomMessageActionItem[];
|
|
130
130
|
scroll$?: Observable<void>;
|
|
131
131
|
};
|
|
132
|
-
export
|
|
132
|
+
export type ChannelActionsContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
133
133
|
channel: Channel<T>;
|
|
134
134
|
};
|
|
135
|
-
export
|
|
135
|
+
export type CustomAttachmentListContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
136
136
|
messageId: string;
|
|
137
137
|
attachments: Attachment<T>[];
|
|
138
138
|
parentMessageId?: string;
|
|
139
139
|
};
|
|
140
|
-
export
|
|
140
|
+
export type AttachmentListContext = CustomAttachmentListContext & {
|
|
141
141
|
imageModalStateChangeHandler?: (state: 'opened' | 'closed') => void;
|
|
142
142
|
};
|
|
143
|
-
export
|
|
144
|
-
export
|
|
143
|
+
export type AvatarType = 'channel' | 'user';
|
|
144
|
+
export type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator'
|
|
145
145
|
/**
|
|
146
146
|
* @deprecated this will be renamed to user-list in the next major release
|
|
147
147
|
*/
|
|
148
148
|
| 'reaction';
|
|
149
|
-
export
|
|
149
|
+
export type AvatarContext = {
|
|
150
150
|
name: string | undefined;
|
|
151
151
|
imageUrl: string | undefined;
|
|
152
152
|
type: AvatarType | undefined;
|
|
@@ -156,53 +156,53 @@ export declare type AvatarContext = {
|
|
|
156
156
|
initialsType?: 'first-letter-of-first-word' | 'first-letter-of-each-word';
|
|
157
157
|
showOnlineIndicator?: boolean;
|
|
158
158
|
};
|
|
159
|
-
export
|
|
159
|
+
export type AttachmentPreviewListContext = {
|
|
160
160
|
attachmentUploads$: Observable<AttachmentUpload[]> | undefined;
|
|
161
161
|
retryUploadHandler: (f: File) => void;
|
|
162
162
|
deleteUploadHandler: (u: AttachmentUpload) => void;
|
|
163
163
|
service: AttachmentService;
|
|
164
164
|
};
|
|
165
|
-
export
|
|
165
|
+
export type IconContext = {
|
|
166
166
|
icon: Icon | undefined;
|
|
167
167
|
};
|
|
168
|
-
export
|
|
168
|
+
export type MessageActionsBoxContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
169
169
|
isMine: boolean;
|
|
170
170
|
message: StreamMessage<T> | undefined;
|
|
171
171
|
enabledActions: string[];
|
|
172
172
|
messageTextHtmlElement: HTMLElement | undefined;
|
|
173
173
|
};
|
|
174
|
-
export
|
|
174
|
+
export type MessageActionHandlerExtraParams = {
|
|
175
175
|
isMine: boolean;
|
|
176
176
|
messageTextHtmlElement?: HTMLElement;
|
|
177
177
|
};
|
|
178
|
-
export
|
|
179
|
-
export
|
|
178
|
+
export type MessageActionHandler<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (message: StreamMessage<T>, params: MessageActionHandlerExtraParams) => void;
|
|
179
|
+
export type MessageActionBoxItemContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
180
180
|
actionName: string;
|
|
181
181
|
actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
|
|
182
182
|
message: StreamMessage<T>;
|
|
183
183
|
actionHandlerExtraParams: MessageActionHandlerExtraParams;
|
|
184
184
|
actionHandler: MessageActionHandler<T>;
|
|
185
185
|
};
|
|
186
|
-
export
|
|
186
|
+
export type MessageReactionActionItem<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
187
187
|
actionName: 'react';
|
|
188
188
|
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage<T>) => boolean;
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
type MessageActionItemBase<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
191
191
|
actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
|
|
192
192
|
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage<T>) => boolean;
|
|
193
193
|
actionHandler: MessageActionHandler;
|
|
194
194
|
};
|
|
195
|
-
export
|
|
195
|
+
export type MessageActionItem<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionItemBase<T> & {
|
|
196
196
|
actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete' | 'mark-unread' | 'thread-reply' | 'copy-message-text';
|
|
197
197
|
};
|
|
198
|
-
export
|
|
198
|
+
export type CustomMessageActionItem<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionItemBase<T> & {
|
|
199
199
|
actionName: string;
|
|
200
200
|
};
|
|
201
|
-
export
|
|
201
|
+
export type MessageReactionsSelectorContext = {
|
|
202
202
|
messageId: string | undefined;
|
|
203
203
|
ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
204
204
|
};
|
|
205
|
-
export
|
|
205
|
+
export type MessageReactionsContext = {
|
|
206
206
|
messageId: string | undefined;
|
|
207
207
|
/** @deprecated use `messageReactionGroups` */
|
|
208
208
|
messageReactionCounts: {
|
|
@@ -215,74 +215,74 @@ export declare type MessageReactionsContext = {
|
|
|
215
215
|
[key in MessageReactionType]: ReactionGroupResponse;
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
|
-
export
|
|
218
|
+
export type ModalContext = {
|
|
219
219
|
isOpen: boolean;
|
|
220
220
|
isOpenChangeHandler: (isOpen: boolean) => void;
|
|
221
221
|
content: TemplateRef<void>;
|
|
222
222
|
};
|
|
223
|
-
export
|
|
223
|
+
export type NotificationContext = {
|
|
224
224
|
type: NotificationType | undefined;
|
|
225
225
|
content: TemplateRef<void> | undefined;
|
|
226
226
|
};
|
|
227
|
-
export
|
|
227
|
+
export type ThreadHeaderContext = {
|
|
228
228
|
parentMessage: StreamMessage | undefined;
|
|
229
229
|
closeThreadHandler: () => void;
|
|
230
230
|
};
|
|
231
|
-
export
|
|
232
|
-
export
|
|
231
|
+
export type MessageReactionType = string;
|
|
232
|
+
export type AttachmentConfigration = {
|
|
233
233
|
url: string;
|
|
234
234
|
height: string;
|
|
235
235
|
width: string;
|
|
236
236
|
};
|
|
237
|
-
export
|
|
237
|
+
export type ImageAttachmentConfiguration = AttachmentConfigration & {
|
|
238
238
|
originalHeight: number;
|
|
239
239
|
originalWidth: number;
|
|
240
240
|
};
|
|
241
|
-
export
|
|
241
|
+
export type VideoAttachmentConfiguration = ImageAttachmentConfiguration & {
|
|
242
242
|
thumbUrl?: string;
|
|
243
243
|
};
|
|
244
|
-
export
|
|
244
|
+
export type DeliveredStatusContext = {
|
|
245
245
|
message: StreamMessage;
|
|
246
246
|
};
|
|
247
|
-
export
|
|
247
|
+
export type SendingStatusContext = {
|
|
248
248
|
message: StreamMessage;
|
|
249
249
|
};
|
|
250
|
-
export
|
|
250
|
+
export type CustomMetadataContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
251
251
|
message: StreamMessage<T>;
|
|
252
252
|
};
|
|
253
|
-
export
|
|
253
|
+
export type ReadStatusContext = {
|
|
254
254
|
message: StreamMessage;
|
|
255
255
|
readByText: string;
|
|
256
256
|
};
|
|
257
|
-
export
|
|
257
|
+
export type ChannelHeaderInfoContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
258
258
|
channel: Channel<T>;
|
|
259
259
|
};
|
|
260
|
-
export
|
|
260
|
+
export type CustomAttachmentUploadContext = {
|
|
261
261
|
isMultipleFileUploadEnabled: boolean | undefined;
|
|
262
262
|
attachmentService: AttachmentService;
|
|
263
263
|
};
|
|
264
|
-
export
|
|
264
|
+
export type AttachmentContext = {
|
|
265
265
|
attachment: Attachment<DefaultStreamChatGenerics>;
|
|
266
266
|
};
|
|
267
|
-
export
|
|
267
|
+
export type SystemMessageContext = MessageContext & {
|
|
268
268
|
parsedDate: string | undefined;
|
|
269
269
|
};
|
|
270
|
-
export
|
|
270
|
+
export type DateSeparatorContext = {
|
|
271
271
|
date: Date;
|
|
272
272
|
parsedDate: string;
|
|
273
273
|
};
|
|
274
|
-
export
|
|
274
|
+
export type UnreadMessagesIndicatorContext = {
|
|
275
275
|
unreadCount: number;
|
|
276
276
|
};
|
|
277
|
-
export
|
|
277
|
+
export type UnreadMessagesNotificationContext = UnreadMessagesIndicatorContext & {
|
|
278
278
|
onJump: () => void;
|
|
279
279
|
onDismiss: () => void;
|
|
280
280
|
};
|
|
281
|
-
export
|
|
281
|
+
export type ChannelQueryState = {
|
|
282
282
|
state: 'in-progress' | 'success' | 'error';
|
|
283
283
|
error?: unknown;
|
|
284
284
|
};
|
|
285
|
-
export
|
|
285
|
+
export type MessageInput<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
286
286
|
text: string;
|
|
287
287
|
attachments: Attachment<T>[];
|
|
288
288
|
mentionedUsers: UserResponse<T>[];
|
|
@@ -290,64 +290,64 @@ export declare type MessageInput<T extends DefaultStreamChatGenerics = DefaultSt
|
|
|
290
290
|
quotedMessageId: string | undefined;
|
|
291
291
|
customData: undefined | Partial<T['messageType']>;
|
|
292
292
|
};
|
|
293
|
-
export
|
|
293
|
+
export type OffsetNextPageConfiguration = {
|
|
294
294
|
type: 'offset';
|
|
295
295
|
offset: number;
|
|
296
296
|
};
|
|
297
|
-
export
|
|
297
|
+
export type FiltertNextPageConfiguration<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
298
298
|
type: 'filter';
|
|
299
299
|
paginationFilter: ChannelFilters<T>;
|
|
300
300
|
};
|
|
301
|
-
export
|
|
302
|
-
export
|
|
301
|
+
export type NextPageConfiguration = OffsetNextPageConfiguration | FiltertNextPageConfiguration | undefined;
|
|
302
|
+
export type MessageReactionClickDetails = {
|
|
303
303
|
messageId: string;
|
|
304
304
|
reactionType: string;
|
|
305
305
|
};
|
|
306
|
-
export
|
|
306
|
+
export type MessageActionsClickDetails<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionsBoxContext<T> & {
|
|
307
307
|
customActions: CustomMessageActionItem[];
|
|
308
308
|
};
|
|
309
|
-
export
|
|
309
|
+
export type GroupStyleOptions = {
|
|
310
310
|
noGroupByUser?: boolean;
|
|
311
311
|
lastReadMessageId?: string;
|
|
312
312
|
noGroupByReadState?: boolean;
|
|
313
313
|
};
|
|
314
|
-
export
|
|
315
|
-
export
|
|
314
|
+
export type ChannelQueryType = 'first-page' | 'next-page' | 'recover-state';
|
|
315
|
+
export type ChannelQueryResult<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
316
316
|
channels: Channel<T>[];
|
|
317
317
|
hasMorePage: boolean;
|
|
318
318
|
};
|
|
319
|
-
export
|
|
320
|
-
export
|
|
319
|
+
export type VirtualizedListScrollPosition = 'top' | 'bottom' | 'middle';
|
|
320
|
+
export type VirtualizedListQueryState = {
|
|
321
321
|
state: 'loading-top' | 'loading-bottom' | 'success' | 'error';
|
|
322
322
|
error?: unknown;
|
|
323
323
|
};
|
|
324
|
-
export
|
|
325
|
-
export
|
|
326
|
-
export
|
|
324
|
+
export type VirtualizedListQueryDirection = 'top' | 'bottom';
|
|
325
|
+
export type VirtualizedListVerticalItemPosition = 'top' | 'bottom' | 'middle';
|
|
326
|
+
export type AudioRecording = MediaRecording & {
|
|
327
327
|
waveform_data: number[];
|
|
328
328
|
};
|
|
329
|
-
export
|
|
329
|
+
export type MediaRecording = {
|
|
330
330
|
recording: File;
|
|
331
331
|
duration: number;
|
|
332
332
|
mime_type: string;
|
|
333
333
|
asset_url: string | ArrayBuffer | undefined;
|
|
334
334
|
};
|
|
335
|
-
export
|
|
336
|
-
|
|
335
|
+
export type CustomAttachmentPreviewListContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
336
|
+
service: AttachmentService<T>;
|
|
337
337
|
};
|
|
338
|
-
export
|
|
338
|
+
export type ThreadReplyButtonContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
339
339
|
message: StreamMessage<T>;
|
|
340
340
|
};
|
|
341
|
-
export
|
|
341
|
+
export type CustomAutocompleteItemContext = {
|
|
342
342
|
item: CustomAutocompleteItem;
|
|
343
343
|
};
|
|
344
|
-
export
|
|
344
|
+
export type CustomAutocompleteItem = {
|
|
345
345
|
/**
|
|
346
346
|
* This is the text that will be inserted into the message input once a user selects an option (appended after the trigger character)
|
|
347
347
|
*/
|
|
348
348
|
autocompleteLabel: string;
|
|
349
349
|
};
|
|
350
|
-
export
|
|
350
|
+
export type CustomAutocomplete = {
|
|
351
351
|
/**
|
|
352
352
|
* The character that will trigger the autocomplete (for example #)
|
|
353
353
|
*
|
|
@@ -377,9 +377,23 @@ export declare type CustomAutocomplete = {
|
|
|
377
377
|
*/
|
|
378
378
|
updateOptions?: (searchTerm: string) => Promise<CustomAutocompleteItem[]>;
|
|
379
379
|
};
|
|
380
|
-
export
|
|
380
|
+
export type MessageTextContext = {
|
|
381
381
|
message: StreamMessage | undefined | MessageResponseBase;
|
|
382
382
|
isQuoted: boolean;
|
|
383
383
|
shouldTranslate: boolean;
|
|
384
384
|
};
|
|
385
|
+
export type ChannelServiceOptions<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ChannelManagerOptions & {
|
|
386
|
+
shouldSetActiveChannel?: boolean;
|
|
387
|
+
eventHandlerOverrides?: ChannelManagerEventHandlerOverrides<T>;
|
|
388
|
+
};
|
|
389
|
+
export type ChannelQueryConfig<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
390
|
+
filters: ChannelFilters<T>;
|
|
391
|
+
sort: ChannelSort<T>;
|
|
392
|
+
options: ChannelOptions;
|
|
393
|
+
};
|
|
394
|
+
export type ChannelQueryConfigInput<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
395
|
+
filters: ChannelFilters<T>;
|
|
396
|
+
sort?: ChannelSort<T>;
|
|
397
|
+
options?: ChannelOptions;
|
|
398
|
+
};
|
|
385
399
|
export {};
|
|
@@ -26,5 +26,5 @@ export declare class UserListComponent {
|
|
|
26
26
|
readonly loadMore: EventEmitter<void>;
|
|
27
27
|
trackByUserId(_: number, item: UserResponse): string;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "stream-user-list", never, { "users": "users"; "isLoading": "isLoading"; "hasMore": "hasMore"; }, { "loadMore": "loadMore"; }, never, never, false, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "stream-user-list", never, { "users": { "alias": "users"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "hasMore": { "alias": "hasMore"; "required": false; }; }, { "loadMore": "loadMore"; }, never, never, false, never>;
|
|
30
30
|
}
|