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
package/lib/types.d.ts
CHANGED
|
@@ -1,57 +1,25 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
|
-
import type { Attachment, Channel, ChannelFilters,
|
|
3
|
+
import type { Attachment, Channel, ChannelFilters, ChannelMemberResponse, CommandResponse, CustomMessageData, FormatMessageResponse, MessageResponseBase, ReactionGroupResponse, ReactionResponse, User, UserResponse } from 'stream-chat';
|
|
4
4
|
import { AttachmentService } from './attachment.service';
|
|
5
5
|
import { Icon } from './icon/icon.component';
|
|
6
|
-
export type UnknownType = Record<string, unknown>;
|
|
7
|
-
export type CustomTrigger = {
|
|
6
|
+
export declare type UnknownType = Record<string, unknown>;
|
|
7
|
+
export declare type CustomTrigger = {
|
|
8
8
|
[key: string]: {
|
|
9
9
|
componentProps: UnknownType;
|
|
10
10
|
data: UnknownType;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export type
|
|
14
|
-
|
|
15
|
-
channelType: DefaultChannelType;
|
|
16
|
-
commandType: LiteralStringForUnion;
|
|
17
|
-
eventType: UnknownType;
|
|
18
|
-
messageType: DefaultMessageType;
|
|
19
|
-
reactionType: UnknownType;
|
|
20
|
-
userType: DefaultUserType;
|
|
21
|
-
};
|
|
22
|
-
export type DefaultAttachmentType = UnknownType & {
|
|
23
|
-
asset_url?: string;
|
|
24
|
-
id?: string;
|
|
25
|
-
images?: Array<Attachment<DefaultStreamChatGenerics>>;
|
|
26
|
-
mime_type?: string;
|
|
27
|
-
isCustomAttachment?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export type DefaultChannelType = UnknownType & {
|
|
30
|
-
image?: string;
|
|
31
|
-
member_count?: number;
|
|
32
|
-
subtitle?: string;
|
|
33
|
-
};
|
|
34
|
-
export type DefaultCommandType = LiteralStringForUnion;
|
|
35
|
-
export type DefaultMessageType = UnknownType & {
|
|
36
|
-
customType?: 'channel.intro' | 'message.date';
|
|
37
|
-
date?: string | Date;
|
|
38
|
-
errorStatusCode?: number;
|
|
39
|
-
event?: Event<DefaultStreamChatGenerics>;
|
|
40
|
-
unread?: boolean;
|
|
41
|
-
readBy: UserResponse<DefaultStreamChatGenerics>[];
|
|
13
|
+
export declare type StreamMessage = FormatMessageResponse & {
|
|
14
|
+
readBy: UserResponse[];
|
|
42
15
|
translation?: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
status?: string;
|
|
48
|
-
};
|
|
49
|
-
export type DefaultUserType = UnknownType & DefaultUserTypeInternal & {
|
|
50
|
-
mutes?: Array<Mute<DefaultStreamChatGenerics>>;
|
|
16
|
+
errorStatusCode?: number;
|
|
17
|
+
quoted_message?: MessageResponseBase & {
|
|
18
|
+
translation?: string;
|
|
19
|
+
};
|
|
51
20
|
};
|
|
52
|
-
export type
|
|
53
|
-
export type
|
|
54
|
-
export type AttachmentUpload<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
21
|
+
export declare type AttachmentUploadErrorReason = 'file-size' | 'file-extension' | 'unknown';
|
|
22
|
+
export declare type AttachmentUpload = {
|
|
55
23
|
file: File;
|
|
56
24
|
state: 'error' | 'success' | 'uploading';
|
|
57
25
|
errorReason?: AttachmentUploadErrorReason;
|
|
@@ -62,23 +30,23 @@ export type AttachmentUpload<T extends DefaultStreamChatGenerics = DefaultStream
|
|
|
62
30
|
type: 'image' | 'file' | 'video' | 'voiceRecording';
|
|
63
31
|
previewUri?: string | ArrayBuffer;
|
|
64
32
|
thumb_url?: string;
|
|
65
|
-
extraData?: Partial<Attachment
|
|
66
|
-
fromAttachment?: Attachment
|
|
33
|
+
extraData?: Partial<Attachment>;
|
|
34
|
+
fromAttachment?: Attachment;
|
|
67
35
|
};
|
|
68
|
-
export type MentionAutcompleteListItemContext = {
|
|
36
|
+
export declare type MentionAutcompleteListItemContext = {
|
|
69
37
|
item: MentionAutcompleteListItem;
|
|
70
38
|
};
|
|
71
|
-
export type CommandAutocompleteListItemContext = {
|
|
39
|
+
export declare type CommandAutocompleteListItemContext = {
|
|
72
40
|
item: ComandAutocompleteListItem;
|
|
73
41
|
};
|
|
74
|
-
export type MentionAutcompleteListItem = (ChannelMemberResponse | UserResponse) & {
|
|
42
|
+
export declare type MentionAutcompleteListItem = (ChannelMemberResponse | UserResponse) & {
|
|
75
43
|
autocompleteLabel: string;
|
|
76
44
|
};
|
|
77
|
-
export type ComandAutocompleteListItem = CommandResponse & {
|
|
45
|
+
export declare type ComandAutocompleteListItem = CommandResponse & {
|
|
78
46
|
autocompleteLabel: string;
|
|
79
47
|
};
|
|
80
|
-
export type NotificationType = 'success' | 'error' | 'info';
|
|
81
|
-
export type NotificationPayload<T = object> = {
|
|
48
|
+
export declare type NotificationType = 'success' | 'error' | 'info';
|
|
49
|
+
export declare type NotificationPayload<T = object> = {
|
|
82
50
|
id: string;
|
|
83
51
|
type: NotificationType;
|
|
84
52
|
text?: string;
|
|
@@ -87,11 +55,11 @@ export type NotificationPayload<T = object> = {
|
|
|
87
55
|
templateContext?: T;
|
|
88
56
|
dismissFn: () => void;
|
|
89
57
|
};
|
|
90
|
-
export type ChannelPreviewContext
|
|
91
|
-
channel: Channel
|
|
58
|
+
export declare type ChannelPreviewContext = {
|
|
59
|
+
channel: Channel;
|
|
92
60
|
};
|
|
93
|
-
export type ChannelPreviewInfoContext
|
|
94
|
-
latestMessage?: StreamMessage
|
|
61
|
+
export declare type ChannelPreviewInfoContext = ChannelPreviewContext & {
|
|
62
|
+
latestMessage?: StreamMessage;
|
|
95
63
|
/**
|
|
96
64
|
* The text of the latest message, or some meta information (for example: "Nothing yet")
|
|
97
65
|
*/
|
|
@@ -110,17 +78,17 @@ export type ChannelPreviewInfoContext<T extends DefaultStreamChatGenerics = Defa
|
|
|
110
78
|
latestMessageTime?: string;
|
|
111
79
|
unreadCount: number;
|
|
112
80
|
};
|
|
113
|
-
export type MentionTemplateContext = {
|
|
81
|
+
export declare type MentionTemplateContext = {
|
|
114
82
|
content: string;
|
|
115
83
|
user: UserResponse;
|
|
116
84
|
};
|
|
117
|
-
export type EmojiPickerContext = {
|
|
85
|
+
export declare type EmojiPickerContext = {
|
|
118
86
|
emojiInput$: Subject<string>;
|
|
119
87
|
};
|
|
120
|
-
export type TypingIndicatorContext = {
|
|
121
|
-
usersTyping$: Observable<UserResponse
|
|
88
|
+
export declare type TypingIndicatorContext = {
|
|
89
|
+
usersTyping$: Observable<UserResponse[]>;
|
|
122
90
|
};
|
|
123
|
-
export type MessageContext = {
|
|
91
|
+
export declare type MessageContext = {
|
|
124
92
|
message: StreamMessage | undefined;
|
|
125
93
|
enabledMessageActions: string[];
|
|
126
94
|
isLastSentMessage: boolean | undefined;
|
|
@@ -129,225 +97,228 @@ export type MessageContext = {
|
|
|
129
97
|
customActions: CustomMessageActionItem[];
|
|
130
98
|
scroll$?: Observable<void>;
|
|
131
99
|
};
|
|
132
|
-
export type ChannelActionsContext
|
|
133
|
-
channel: Channel
|
|
100
|
+
export declare type ChannelActionsContext = {
|
|
101
|
+
channel: Channel;
|
|
134
102
|
};
|
|
135
|
-
export type CustomAttachmentListContext
|
|
103
|
+
export declare type CustomAttachmentListContext = {
|
|
136
104
|
messageId: string;
|
|
137
|
-
attachments: Attachment
|
|
105
|
+
attachments: Attachment[];
|
|
138
106
|
parentMessageId?: string;
|
|
139
107
|
};
|
|
140
|
-
export type AttachmentListContext = CustomAttachmentListContext & {
|
|
108
|
+
export declare type AttachmentListContext = CustomAttachmentListContext & {
|
|
141
109
|
imageModalStateChangeHandler?: (state: 'opened' | 'closed') => void;
|
|
142
110
|
};
|
|
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'
|
|
111
|
+
export declare type AvatarType = 'channel' | 'user';
|
|
112
|
+
export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator'
|
|
145
113
|
/**
|
|
146
114
|
* @deprecated this will be renamed to user-list in the next major release
|
|
147
115
|
*/
|
|
148
116
|
| 'reaction';
|
|
149
|
-
export type AvatarContext = {
|
|
117
|
+
export declare type AvatarContext = {
|
|
150
118
|
name: string | undefined;
|
|
151
119
|
imageUrl: string | undefined;
|
|
152
120
|
type: AvatarType | undefined;
|
|
153
121
|
location: AvatarLocation | undefined;
|
|
154
|
-
channel?: Channel
|
|
155
|
-
user?: User
|
|
122
|
+
channel?: Channel;
|
|
123
|
+
user?: User;
|
|
156
124
|
initialsType?: 'first-letter-of-first-word' | 'first-letter-of-each-word';
|
|
157
125
|
showOnlineIndicator?: boolean;
|
|
158
126
|
};
|
|
159
|
-
export type AttachmentPreviewListContext = {
|
|
127
|
+
export declare type AttachmentPreviewListContext = {
|
|
160
128
|
attachmentUploads$: Observable<AttachmentUpload[]> | undefined;
|
|
161
129
|
retryUploadHandler: (f: File) => void;
|
|
162
130
|
deleteUploadHandler: (u: AttachmentUpload) => void;
|
|
163
131
|
service: AttachmentService;
|
|
164
132
|
};
|
|
165
|
-
export type IconContext = {
|
|
133
|
+
export declare type IconContext = {
|
|
166
134
|
icon: Icon | undefined;
|
|
167
135
|
};
|
|
168
|
-
export type MessageActionsBoxContext
|
|
136
|
+
export declare type MessageActionsBoxContext = {
|
|
169
137
|
isMine: boolean;
|
|
170
|
-
message: StreamMessage
|
|
138
|
+
message: StreamMessage | undefined;
|
|
171
139
|
enabledActions: string[];
|
|
172
140
|
messageTextHtmlElement: HTMLElement | undefined;
|
|
173
141
|
};
|
|
174
|
-
export type MessageActionHandlerExtraParams = {
|
|
142
|
+
export declare type MessageActionHandlerExtraParams = {
|
|
175
143
|
isMine: boolean;
|
|
176
144
|
messageTextHtmlElement?: HTMLElement;
|
|
177
145
|
};
|
|
178
|
-
export type MessageActionHandler
|
|
179
|
-
export type MessageActionBoxItemContext
|
|
146
|
+
export declare type MessageActionHandler = (message: StreamMessage, params: MessageActionHandlerExtraParams) => void;
|
|
147
|
+
export declare type MessageActionBoxItemContext = {
|
|
180
148
|
actionName: string;
|
|
181
|
-
actionLabelOrTranslationKey: ((message: StreamMessage
|
|
182
|
-
message: StreamMessage
|
|
149
|
+
actionLabelOrTranslationKey: ((message: StreamMessage) => string) | string;
|
|
150
|
+
message: StreamMessage;
|
|
183
151
|
actionHandlerExtraParams: MessageActionHandlerExtraParams;
|
|
184
|
-
actionHandler: MessageActionHandler
|
|
152
|
+
actionHandler: MessageActionHandler;
|
|
185
153
|
};
|
|
186
|
-
export type MessageReactionActionItem
|
|
154
|
+
export declare type MessageReactionActionItem = {
|
|
187
155
|
actionName: 'react';
|
|
188
|
-
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage
|
|
156
|
+
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage) => boolean;
|
|
189
157
|
};
|
|
190
|
-
type MessageActionItemBase
|
|
191
|
-
actionLabelOrTranslationKey: ((message: StreamMessage
|
|
192
|
-
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage
|
|
158
|
+
declare type MessageActionItemBase = {
|
|
159
|
+
actionLabelOrTranslationKey: ((message: StreamMessage) => string) | string;
|
|
160
|
+
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage) => boolean;
|
|
193
161
|
actionHandler: MessageActionHandler;
|
|
194
162
|
};
|
|
195
|
-
export type MessageActionItem
|
|
163
|
+
export declare type MessageActionItem = MessageActionItemBase & {
|
|
196
164
|
actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete' | 'mark-unread' | 'thread-reply' | 'copy-message-text';
|
|
197
165
|
};
|
|
198
|
-
export type CustomMessageActionItem
|
|
166
|
+
export declare type CustomMessageActionItem = MessageActionItemBase & {
|
|
199
167
|
actionName: string;
|
|
200
168
|
};
|
|
201
|
-
export type MessageReactionsSelectorContext = {
|
|
169
|
+
export declare type MessageReactionsSelectorContext = {
|
|
202
170
|
messageId: string | undefined;
|
|
203
|
-
ownReactions: ReactionResponse
|
|
171
|
+
ownReactions: ReactionResponse[];
|
|
204
172
|
};
|
|
205
|
-
export type MessageReactionsContext = {
|
|
173
|
+
export declare type MessageReactionsContext = {
|
|
206
174
|
messageId: string | undefined;
|
|
207
175
|
/** @deprecated use `messageReactionGroups` */
|
|
208
176
|
messageReactionCounts: {
|
|
209
177
|
[key in MessageReactionType]?: number;
|
|
210
178
|
};
|
|
211
179
|
/** @deprecated you can fetch the reactions using [`chatService.chatClient.queryReactions()`](/chat/docs/javascript/send_reaction/&q=queryReactions#query-reactions) */
|
|
212
|
-
latestReactions: ReactionResponse
|
|
213
|
-
ownReactions: ReactionResponse
|
|
180
|
+
latestReactions: ReactionResponse[];
|
|
181
|
+
ownReactions: ReactionResponse[];
|
|
214
182
|
messageReactionGroups: {
|
|
215
183
|
[key in MessageReactionType]: ReactionGroupResponse;
|
|
216
184
|
};
|
|
217
185
|
};
|
|
218
|
-
export type ModalContext = {
|
|
186
|
+
export declare type ModalContext = {
|
|
219
187
|
isOpen: boolean;
|
|
220
188
|
isOpenChangeHandler: (isOpen: boolean) => void;
|
|
221
189
|
content: TemplateRef<void>;
|
|
222
190
|
};
|
|
223
|
-
export type NotificationContext = {
|
|
191
|
+
export declare type NotificationContext = {
|
|
224
192
|
type: NotificationType | undefined;
|
|
225
193
|
content: TemplateRef<void> | undefined;
|
|
226
194
|
};
|
|
227
|
-
export type ThreadHeaderContext = {
|
|
195
|
+
export declare type ThreadHeaderContext = {
|
|
228
196
|
parentMessage: StreamMessage | undefined;
|
|
229
197
|
closeThreadHandler: () => void;
|
|
230
198
|
};
|
|
231
|
-
export type MessageReactionType = string;
|
|
232
|
-
export type AttachmentConfigration = {
|
|
199
|
+
export declare type MessageReactionType = string;
|
|
200
|
+
export declare type AttachmentConfigration = {
|
|
233
201
|
url: string;
|
|
234
202
|
height: string;
|
|
235
203
|
width: string;
|
|
236
204
|
};
|
|
237
|
-
export type ImageAttachmentConfiguration = AttachmentConfigration & {
|
|
205
|
+
export declare type ImageAttachmentConfiguration = AttachmentConfigration & {
|
|
238
206
|
originalHeight: number;
|
|
239
207
|
originalWidth: number;
|
|
240
208
|
};
|
|
241
|
-
export type VideoAttachmentConfiguration = ImageAttachmentConfiguration & {
|
|
209
|
+
export declare type VideoAttachmentConfiguration = ImageAttachmentConfiguration & {
|
|
242
210
|
thumbUrl?: string;
|
|
243
211
|
};
|
|
244
|
-
export type DeliveredStatusContext = {
|
|
212
|
+
export declare type DeliveredStatusContext = {
|
|
245
213
|
message: StreamMessage;
|
|
246
214
|
};
|
|
247
|
-
export type SendingStatusContext = {
|
|
215
|
+
export declare type SendingStatusContext = {
|
|
248
216
|
message: StreamMessage;
|
|
249
217
|
};
|
|
250
|
-
export type CustomMetadataContext
|
|
251
|
-
message: StreamMessage
|
|
218
|
+
export declare type CustomMetadataContext = {
|
|
219
|
+
message: StreamMessage;
|
|
252
220
|
};
|
|
253
|
-
export type ReadStatusContext = {
|
|
221
|
+
export declare type ReadStatusContext = {
|
|
254
222
|
message: StreamMessage;
|
|
255
223
|
readByText: string;
|
|
256
224
|
};
|
|
257
|
-
export type ChannelHeaderInfoContext
|
|
258
|
-
channel: Channel
|
|
225
|
+
export declare type ChannelHeaderInfoContext = {
|
|
226
|
+
channel: Channel;
|
|
259
227
|
};
|
|
260
|
-
export type CustomAttachmentUploadContext = {
|
|
228
|
+
export declare type CustomAttachmentUploadContext = {
|
|
261
229
|
isMultipleFileUploadEnabled: boolean | undefined;
|
|
262
230
|
attachmentService: AttachmentService;
|
|
263
231
|
};
|
|
264
|
-
export type AttachmentContext = {
|
|
265
|
-
attachment: Attachment
|
|
232
|
+
export declare type AttachmentContext = {
|
|
233
|
+
attachment: Attachment;
|
|
266
234
|
};
|
|
267
|
-
export type
|
|
235
|
+
export declare type GalleryAttachmentContext = {
|
|
236
|
+
attachment: GalleryAttachment;
|
|
237
|
+
};
|
|
238
|
+
export declare type SystemMessageContext = MessageContext & {
|
|
268
239
|
parsedDate: string | undefined;
|
|
269
240
|
};
|
|
270
|
-
export type DateSeparatorContext = {
|
|
241
|
+
export declare type DateSeparatorContext = {
|
|
271
242
|
date: Date;
|
|
272
243
|
parsedDate: string;
|
|
273
244
|
};
|
|
274
|
-
export type UnreadMessagesIndicatorContext = {
|
|
245
|
+
export declare type UnreadMessagesIndicatorContext = {
|
|
275
246
|
unreadCount: number;
|
|
276
247
|
};
|
|
277
|
-
export type UnreadMessagesNotificationContext = UnreadMessagesIndicatorContext & {
|
|
248
|
+
export declare type UnreadMessagesNotificationContext = UnreadMessagesIndicatorContext & {
|
|
278
249
|
onJump: () => void;
|
|
279
250
|
onDismiss: () => void;
|
|
280
251
|
};
|
|
281
|
-
export type ChannelQueryState = {
|
|
252
|
+
export declare type ChannelQueryState = {
|
|
282
253
|
state: 'in-progress' | 'success' | 'error';
|
|
283
254
|
error?: unknown;
|
|
284
255
|
};
|
|
285
|
-
export type MessageInput
|
|
256
|
+
export declare type MessageInput = {
|
|
286
257
|
text: string;
|
|
287
|
-
attachments: Attachment
|
|
288
|
-
mentionedUsers: UserResponse
|
|
258
|
+
attachments: Attachment[];
|
|
259
|
+
mentionedUsers: UserResponse[];
|
|
289
260
|
parentId: string | undefined;
|
|
290
261
|
quotedMessageId: string | undefined;
|
|
291
|
-
customData: undefined |
|
|
262
|
+
customData: undefined | CustomMessageData;
|
|
292
263
|
};
|
|
293
|
-
export type OffsetNextPageConfiguration = {
|
|
264
|
+
export declare type OffsetNextPageConfiguration = {
|
|
294
265
|
type: 'offset';
|
|
295
266
|
offset: number;
|
|
296
267
|
};
|
|
297
|
-
export type FiltertNextPageConfiguration
|
|
268
|
+
export declare type FiltertNextPageConfiguration = {
|
|
298
269
|
type: 'filter';
|
|
299
|
-
paginationFilter: ChannelFilters
|
|
270
|
+
paginationFilter: ChannelFilters;
|
|
300
271
|
};
|
|
301
|
-
export type NextPageConfiguration = OffsetNextPageConfiguration | FiltertNextPageConfiguration | undefined;
|
|
302
|
-
export type MessageReactionClickDetails = {
|
|
272
|
+
export declare type NextPageConfiguration = OffsetNextPageConfiguration | FiltertNextPageConfiguration | undefined;
|
|
273
|
+
export declare type MessageReactionClickDetails = {
|
|
303
274
|
messageId: string;
|
|
304
275
|
reactionType: string;
|
|
305
276
|
};
|
|
306
|
-
export type MessageActionsClickDetails
|
|
277
|
+
export declare type MessageActionsClickDetails = MessageActionsBoxContext & {
|
|
307
278
|
customActions: CustomMessageActionItem[];
|
|
308
279
|
};
|
|
309
|
-
export type GroupStyleOptions = {
|
|
280
|
+
export declare type GroupStyleOptions = {
|
|
310
281
|
noGroupByUser?: boolean;
|
|
311
282
|
lastReadMessageId?: string;
|
|
312
283
|
noGroupByReadState?: boolean;
|
|
313
284
|
};
|
|
314
|
-
export type ChannelQueryType = 'first-page' | 'next-page' | 'recover-state';
|
|
315
|
-
export type ChannelQueryResult
|
|
316
|
-
channels: Channel
|
|
285
|
+
export declare type ChannelQueryType = 'first-page' | 'next-page' | 'recover-state';
|
|
286
|
+
export declare type ChannelQueryResult = {
|
|
287
|
+
channels: Channel[];
|
|
317
288
|
hasMorePage: boolean;
|
|
318
289
|
};
|
|
319
|
-
export type VirtualizedListScrollPosition = 'top' | 'bottom' | 'middle';
|
|
320
|
-
export type VirtualizedListQueryState = {
|
|
290
|
+
export declare type VirtualizedListScrollPosition = 'top' | 'bottom' | 'middle';
|
|
291
|
+
export declare type VirtualizedListQueryState = {
|
|
321
292
|
state: 'loading-top' | 'loading-bottom' | 'success' | 'error';
|
|
322
293
|
error?: unknown;
|
|
323
294
|
};
|
|
324
|
-
export type VirtualizedListQueryDirection = 'top' | 'bottom';
|
|
325
|
-
export type VirtualizedListVerticalItemPosition = 'top' | 'bottom' | 'middle';
|
|
326
|
-
export type AudioRecording = MediaRecording & {
|
|
295
|
+
export declare type VirtualizedListQueryDirection = 'top' | 'bottom';
|
|
296
|
+
export declare type VirtualizedListVerticalItemPosition = 'top' | 'bottom' | 'middle';
|
|
297
|
+
export declare type AudioRecording = MediaRecording & {
|
|
327
298
|
waveform_data: number[];
|
|
328
299
|
};
|
|
329
|
-
export type MediaRecording = {
|
|
300
|
+
export declare type MediaRecording = {
|
|
330
301
|
recording: File;
|
|
331
302
|
duration: number;
|
|
332
303
|
mime_type: string;
|
|
333
304
|
asset_url: string | ArrayBuffer | undefined;
|
|
334
305
|
};
|
|
335
|
-
export type CustomAttachmentPreviewListContext
|
|
336
|
-
|
|
306
|
+
export declare type CustomAttachmentPreviewListContext = {
|
|
307
|
+
attachmentService: AttachmentService;
|
|
337
308
|
};
|
|
338
|
-
export type ThreadReplyButtonContext
|
|
339
|
-
message: StreamMessage
|
|
309
|
+
export declare type ThreadReplyButtonContext = {
|
|
310
|
+
message: StreamMessage;
|
|
340
311
|
};
|
|
341
|
-
export type CustomAutocompleteItemContext = {
|
|
312
|
+
export declare type CustomAutocompleteItemContext = {
|
|
342
313
|
item: CustomAutocompleteItem;
|
|
343
314
|
};
|
|
344
|
-
export type CustomAutocompleteItem = {
|
|
315
|
+
export declare type CustomAutocompleteItem = {
|
|
345
316
|
/**
|
|
346
317
|
* This is the text that will be inserted into the message input once a user selects an option (appended after the trigger character)
|
|
347
318
|
*/
|
|
348
319
|
autocompleteLabel: string;
|
|
349
320
|
};
|
|
350
|
-
export type CustomAutocomplete = {
|
|
321
|
+
export declare type CustomAutocomplete = {
|
|
351
322
|
/**
|
|
352
323
|
* The character that will trigger the autocomplete (for example #)
|
|
353
324
|
*
|
|
@@ -377,23 +348,13 @@ export type CustomAutocomplete = {
|
|
|
377
348
|
*/
|
|
378
349
|
updateOptions?: (searchTerm: string) => Promise<CustomAutocompleteItem[]>;
|
|
379
350
|
};
|
|
380
|
-
export type MessageTextContext = {
|
|
351
|
+
export declare type MessageTextContext = {
|
|
381
352
|
message: StreamMessage | undefined | MessageResponseBase;
|
|
382
353
|
isQuoted: boolean;
|
|
383
354
|
shouldTranslate: boolean;
|
|
384
355
|
};
|
|
385
|
-
export type
|
|
386
|
-
|
|
387
|
-
|
|
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;
|
|
356
|
+
export declare type GalleryAttachment = {
|
|
357
|
+
type: 'gallery';
|
|
358
|
+
images: Attachment[];
|
|
398
359
|
};
|
|
399
360
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { UserResponse } from 'stream-chat';
|
|
3
|
-
import { DefaultStreamChatGenerics } from '../types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* The `UserListComponent` can display a list of Stream users with pagination
|
|
@@ -9,7 +8,7 @@ export declare class UserListComponent {
|
|
|
9
8
|
/**
|
|
10
9
|
* The users to display
|
|
11
10
|
*/
|
|
12
|
-
users: UserResponse
|
|
11
|
+
users: UserResponse[];
|
|
13
12
|
/**
|
|
14
13
|
* If `true`, the loading indicator will be displayed
|
|
15
14
|
*/
|
|
@@ -26,5 +25,5 @@ export declare class UserListComponent {
|
|
|
26
25
|
readonly loadMore: EventEmitter<void>;
|
|
27
26
|
trackByUserId(_: number, item: UserResponse): string;
|
|
28
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "stream-user-list", never, { "users":
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "stream-user-list", never, { "users": "users"; "isLoading": "isLoading"; "hasMore": "hasMore"; }, { "loadMore": "loadMore"; }, never, never, false, never>;
|
|
30
29
|
}
|
|
@@ -11,5 +11,5 @@ export declare class VirtualizedMessageListService extends VirtualizedListServic
|
|
|
11
11
|
constructor(mode: 'thread' | 'main', scrollPosition$: Observable<VirtualizedListScrollPosition>, channelService: ChannelService);
|
|
12
12
|
protected loadMoreFromBuffer(direction: VirtualizedListQueryDirection): void;
|
|
13
13
|
protected isEqual: (t1: StreamMessage, t2: StreamMessage) => boolean;
|
|
14
|
-
protected query: (direction: VirtualizedListQueryDirection) => Promise<void> | Promise<import("stream-chat").QueryChannelAPIResponse
|
|
14
|
+
protected query: (direction: VirtualizedListQueryDirection) => Promise<void> | Promise<import("stream-chat").QueryChannelAPIResponse>;
|
|
15
15
|
}
|
|
@@ -20,8 +20,8 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
* where 0 dB is the loudest possible sound, -10 dB is a 10th of that, etc.
|
|
21
21
|
* The default value is -100 dB.
|
|
22
22
|
*/
|
|
23
|
-
export type AmplitudeAnalyserConfig = Pick<AnalyserNode, 'fftSize' | 'maxDecibels' | 'minDecibels'>;
|
|
24
|
-
export type AmplitudeRecorderConfig = {
|
|
23
|
+
export declare type AmplitudeAnalyserConfig = Pick<AnalyserNode, 'fftSize' | 'maxDecibels' | 'minDecibels'>;
|
|
24
|
+
export declare type AmplitudeRecorderConfig = {
|
|
25
25
|
analyserConfig: AmplitudeAnalyserConfig;
|
|
26
26
|
sampleCount: number;
|
|
27
27
|
samplingFrequencyMs: number;
|
|
@@ -3,14 +3,14 @@ import { NotificationService } from '../notification.service';
|
|
|
3
3
|
import { ChatClientService } from '../chat-client.service';
|
|
4
4
|
import { TranscoderService } from './transcoder.service';
|
|
5
5
|
import { MediaRecording } from '../types';
|
|
6
|
-
export type MediaRecorderConfig = Omit<MediaRecorderOptions, 'mimeType'> & Required<Pick<MediaRecorderOptions, 'mimeType'>>;
|
|
6
|
+
export declare type MediaRecorderConfig = Omit<MediaRecorderOptions, 'mimeType'> & Required<Pick<MediaRecorderOptions, 'mimeType'>>;
|
|
7
7
|
export declare enum MediaRecordingState {
|
|
8
8
|
PAUSED = "paused",
|
|
9
9
|
RECORDING = "recording",
|
|
10
10
|
STOPPED = "stopped",
|
|
11
11
|
ERROR = "error"
|
|
12
12
|
}
|
|
13
|
-
export type MediaRecordingTitleOptions = {
|
|
13
|
+
export declare type MediaRecordingTitleOptions = {
|
|
14
14
|
mimeType: string;
|
|
15
15
|
};
|
|
16
16
|
export declare abstract class MultimediaRecorder<T = null> {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export type TranscoderConfig = {
|
|
2
|
+
export declare type TranscoderConfig = {
|
|
3
3
|
sampleRate: number;
|
|
4
4
|
};
|
|
5
|
-
export type TranscodeParams = TranscoderConfig & {
|
|
5
|
+
export declare type TranscodeParams = TranscoderConfig & {
|
|
6
6
|
blob: Blob;
|
|
7
7
|
};
|
|
8
|
-
type WriteWaveHeaderParams = {
|
|
8
|
+
declare type WriteWaveHeaderParams = {
|
|
9
9
|
arrayBuffer: ArrayBuffer;
|
|
10
10
|
channelCount: number;
|
|
11
11
|
sampleRate: number;
|
|
12
12
|
};
|
|
13
|
-
type WriteAudioDataParams = {
|
|
13
|
+
declare type WriteAudioDataParams = {
|
|
14
14
|
arrayBuffer: ArrayBuffer;
|
|
15
15
|
dataByChannel: Float32Array[];
|
|
16
16
|
};
|
|
@@ -14,6 +14,7 @@ export declare class VoiceRecorderWavebarComponent implements OnDestroy {
|
|
|
14
14
|
durationComputeInterval: ReturnType<typeof setInterval>;
|
|
15
15
|
isLongerThanOneHour: boolean;
|
|
16
16
|
constructor(amplitudeRecorder: AmplitudeRecorderService, audioRecorder: AudioRecorderService);
|
|
17
|
+
trackByIndex(i: number): number;
|
|
17
18
|
ngOnDestroy(): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecorderWavebarComponent, never>;
|
|
19
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecorderWavebarComponent, "stream-voice-recorder-wavebar", never, {}, {}, never, never, false, never>;
|
|
@@ -17,8 +17,8 @@ export declare class VoiceRecorderComponent implements OnInit, OnDestroy, OnChan
|
|
|
17
17
|
private subscriptions;
|
|
18
18
|
private isVisibleSubscription?;
|
|
19
19
|
constructor(recorder: AudioRecorderService);
|
|
20
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
21
20
|
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
22
|
ngOnDestroy(): void;
|
|
23
23
|
cancel(): void;
|
|
24
24
|
stop(): Promise<void>;
|
|
@@ -26,5 +26,5 @@ export declare class VoiceRecorderComponent implements OnInit, OnDestroy, OnChan
|
|
|
26
26
|
resume(): void;
|
|
27
27
|
uploadRecording(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecorderComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecorderComponent, "stream-voice-recorder", never, { "voiceRecorderService":
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecorderComponent, "stream-voice-recorder", never, { "voiceRecorderService": "voiceRecorderService"; }, {}, never, never, false, never>;
|
|
30
30
|
}
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
/**
|
|
4
4
|
* This component can be used to visualize the wave bar of a voice recording
|
|
5
5
|
*/
|
|
6
|
-
export declare class VoiceRecordingWavebarComponent implements
|
|
6
|
+
export declare class VoiceRecordingWavebarComponent implements OnInit, OnChanges, AfterViewInit {
|
|
7
7
|
private ngZone;
|
|
8
8
|
private cdRef;
|
|
9
9
|
/**
|
|
@@ -25,12 +25,12 @@ export declare class VoiceRecordingWavebarComponent implements OnChanges, OnInit
|
|
|
25
25
|
private container?;
|
|
26
26
|
private isViewInited;
|
|
27
27
|
constructor(ngZone: NgZone, cdRef: ChangeDetectorRef);
|
|
28
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
29
28
|
ngOnInit(): void;
|
|
29
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
30
30
|
ngAfterViewInit(): void;
|
|
31
31
|
seek(event: MouseEvent): void;
|
|
32
32
|
trackByIndex(index: number): number;
|
|
33
33
|
private containerSizeChanged;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordingWavebarComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingWavebarComponent, "stream-voice-recording-wavebar", never, { "audioElement":
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingWavebarComponent, "stream-voice-recording-wavebar", never, { "audioElement": "audioElement"; "waveFormData": "waveFormData"; "duration": "duration"; }, {}, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Attachment } from 'stream-chat';
|
|
3
|
-
import { DefaultStreamChatGenerics } from '../types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* This component can be used to display an attachment with type `voiceRecording`. The component allows playing the attachment inside the browser.
|
|
@@ -11,7 +10,7 @@ export declare class VoiceRecordingComponent implements OnChanges, AfterViewInit
|
|
|
11
10
|
/**
|
|
12
11
|
* The voice recording attachment
|
|
13
12
|
*/
|
|
14
|
-
attachment?: Attachment
|
|
13
|
+
attachment?: Attachment;
|
|
15
14
|
fileSize: string;
|
|
16
15
|
secondsElapsedFormatted: string;
|
|
17
16
|
durationFormatted: string;
|
|
@@ -26,5 +25,5 @@ export declare class VoiceRecordingComponent implements OnChanges, AfterViewInit
|
|
|
26
25
|
private getFormattedDuration;
|
|
27
26
|
private getFileSize;
|
|
28
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<VoiceRecordingComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingComponent, "stream-voice-recording", never, { "attachment":
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingComponent, "stream-voice-recording", never, { "attachment": "attachment"; }, {}, never, never, false, never>;
|
|
30
29
|
}
|