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.
Files changed (202) hide show
  1. package/README.md +2 -2
  2. package/assets/i18n/en.d.ts +0 -1
  3. package/assets/version.d.ts +1 -1
  4. package/{esm2022 → esm2020}/assets/i18n/en.mjs +1 -2
  5. package/{esm2022 → esm2020}/assets/version.mjs +2 -2
  6. package/esm2020/lib/attachment-configuration.service.mjs +182 -0
  7. package/esm2020/lib/attachment-list/attachment-list.component.mjs +232 -0
  8. package/esm2020/lib/attachment-preview-list/attachment-preview-list.component.mjs +55 -0
  9. package/esm2020/lib/attachment.service.mjs +481 -0
  10. package/esm2020/lib/avatar/avatar.component.mjs +160 -0
  11. package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +66 -0
  12. package/esm2020/lib/channel/channel.component.mjs +45 -0
  13. package/esm2020/lib/channel-header/channel-header.component.mjs +72 -0
  14. package/esm2020/lib/channel-list/channel-list.component.mjs +47 -0
  15. package/esm2020/lib/channel-preview/channel-preview.component.mjs +155 -0
  16. package/esm2020/lib/channel-query.mjs +77 -0
  17. package/esm2020/lib/channel.service.mjs +1561 -0
  18. package/esm2020/lib/chat-client.service.mjs +233 -0
  19. package/esm2020/lib/custom-templates.service.mjs +244 -0
  20. package/{esm2022 → esm2020}/lib/date-parser.service.mjs +5 -5
  21. package/esm2020/lib/file-utils.mjs +35 -0
  22. package/{esm2022 → esm2020}/lib/get-channel-display-text.mjs +1 -1
  23. package/esm2020/lib/get-message-translation.mjs +12 -0
  24. package/esm2020/lib/icon/icon-placeholder/icon-placeholder.component.mjs +28 -0
  25. package/{esm2022 → esm2020}/lib/icon/icon.component.mjs +5 -5
  26. package/{esm2022 → esm2020}/lib/icon/icon.module.mjs +11 -11
  27. package/{esm2022 → esm2020}/lib/icon/loading-indicator/loading-indicator.component.mjs +5 -5
  28. package/esm2020/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +20 -0
  29. package/{esm2022 → esm2020}/lib/list-users.mjs +1 -1
  30. package/esm2020/lib/message/message.component.mjs +486 -0
  31. package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +123 -0
  32. package/esm2020/lib/message-actions.service.mjs +187 -0
  33. package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +71 -0
  34. package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +333 -0
  35. package/{esm2022 → esm2020}/lib/message-input/emoji-input.service.mjs +7 -7
  36. package/esm2020/lib/message-input/message-input-config.service.mjs +50 -0
  37. package/esm2020/lib/message-input/message-input.component.mjs +507 -0
  38. package/{esm2022 → esm2020}/lib/message-input/textarea/textarea.component.mjs +6 -6
  39. package/{esm2022 → esm2020}/lib/message-input/textarea.directive.mjs +5 -5
  40. package/{esm2022 → esm2020}/lib/message-input/voice-recorder.service.mjs +5 -5
  41. package/{esm2022 → esm2020}/lib/message-list/group-styles.mjs +1 -1
  42. package/esm2020/lib/message-list/message-list.component.mjs +717 -0
  43. package/esm2020/lib/message-preview.mjs +21 -0
  44. package/esm2020/lib/message-reactions/message-reactions.component.mjs +168 -0
  45. package/esm2020/lib/message-reactions-selector/message-reactions-selector.component.mjs +61 -0
  46. package/{esm2022 → esm2020}/lib/message-reactions.service.mjs +6 -6
  47. package/esm2020/lib/message-text/message-text.component.mjs +143 -0
  48. package/esm2020/lib/message.service.mjs +43 -0
  49. package/{esm2022 → esm2020}/lib/modal/modal.component.mjs +6 -6
  50. package/esm2020/lib/notification/notification.component.mjs +20 -0
  51. package/esm2020/lib/notification-list/notification-list.component.mjs +36 -0
  52. package/{esm2022 → esm2020}/lib/notification.service.mjs +6 -6
  53. package/esm2020/lib/paginated-list/paginated-list.component.mjs +94 -0
  54. package/{esm2022 → esm2020}/lib/parse-date.mjs +1 -1
  55. package/esm2020/lib/read-by.mjs +12 -0
  56. package/esm2020/lib/stream-autocomplete-textarea.module.mjs +33 -0
  57. package/{esm2022 → esm2020}/lib/stream-avatar.module.mjs +5 -5
  58. package/{esm2022 → esm2020}/lib/stream-chat.module.mjs +59 -59
  59. package/{esm2022 → esm2020}/lib/stream-i18n.service.mjs +6 -6
  60. package/esm2020/lib/stream-textarea.module.mjs +31 -0
  61. package/{esm2022 → esm2020}/lib/theme.service.mjs +6 -6
  62. package/esm2020/lib/thread/thread.component.mjs +51 -0
  63. package/{esm2022 → esm2020}/lib/transliteration.service.mjs +5 -5
  64. package/esm2020/lib/types-custom.mjs +2 -0
  65. package/esm2020/lib/types.mjs +2 -0
  66. package/esm2020/lib/user-list/user-list.component.mjs +47 -0
  67. package/esm2020/lib/virtualized-list.service.mjs +271 -0
  68. package/{esm2022 → esm2020}/lib/virtualized-message-list.service.mjs +1 -1
  69. package/{esm2022 → esm2020}/lib/voice-recorder/amplitude-recorder.service.mjs +5 -5
  70. package/{esm2022 → esm2020}/lib/voice-recorder/audio-recorder.service.mjs +5 -5
  71. package/{esm2022 → esm2020}/lib/voice-recorder/media-recorder.mjs +1 -1
  72. package/esm2020/lib/voice-recorder/mp3-transcoder.mjs +61 -0
  73. package/esm2020/lib/voice-recorder/transcoder.service.mjs +121 -0
  74. package/esm2020/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +35 -0
  75. package/esm2020/lib/voice-recorder/voice-recorder.component.mjs +80 -0
  76. package/{esm2022 → esm2020}/lib/voice-recorder/voice-recorder.module.mjs +9 -9
  77. package/esm2020/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +112 -0
  78. package/esm2020/lib/voice-recording/voice-recording.component.mjs +91 -0
  79. package/{esm2022 → esm2020}/lib/voice-recording/voice-recording.module.mjs +5 -5
  80. package/{esm2022 → esm2020}/lib/wave-form-sampler.mjs +1 -1
  81. package/esm2020/public-api.mjs +86 -0
  82. package/esm2020/stream-chat.mjs +2 -0
  83. package/fesm2015/stream-chat-angular.mjs +9171 -0
  84. package/fesm2015/stream-chat-angular.mjs.map +1 -0
  85. package/{fesm2022 → fesm2020}/stream-chat-angular.mjs +1251 -961
  86. package/fesm2020/stream-chat-angular.mjs.map +1 -0
  87. package/lib/attachment-configuration.service.d.ts +12 -12
  88. package/lib/attachment-list/attachment-list.component.d.ts +15 -10
  89. package/lib/attachment-preview-list/attachment-preview-list.component.d.ts +1 -1
  90. package/lib/attachment.service.d.ts +12 -10
  91. package/lib/avatar/avatar.component.d.ts +7 -7
  92. package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +5 -5
  93. package/lib/channel/channel.component.d.ts +1 -1
  94. package/lib/channel-header/channel-header.component.d.ts +2 -2
  95. package/lib/channel-list/channel-list.component.d.ts +3 -4
  96. package/lib/channel-preview/channel-preview.component.d.ts +6 -6
  97. package/lib/channel-query.d.ts +26 -0
  98. package/lib/channel.service.d.ts +146 -154
  99. package/lib/chat-client.service.d.ts +17 -15
  100. package/lib/custom-templates.service.d.ts +50 -50
  101. package/lib/get-channel-display-text.d.ts +1 -2
  102. package/lib/get-message-translation.d.ts +3 -3
  103. package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +2 -2
  104. package/lib/icon/icon.component.d.ts +2 -2
  105. package/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
  106. package/lib/message/message.component.d.ts +6 -6
  107. package/lib/message-actions-box/message-actions-box.component.d.ts +5 -4
  108. package/lib/message-actions.service.d.ts +10 -10
  109. package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
  110. package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +5 -5
  111. package/lib/message-input/emoji-input.service.d.ts +2 -2
  112. package/lib/message-input/message-input-config.service.d.ts +3 -3
  113. package/lib/message-input/message-input.component.d.ts +10 -33
  114. package/lib/message-input/textarea/textarea.component.d.ts +3 -3
  115. package/lib/message-input/textarea.directive.d.ts +1 -1
  116. package/lib/message-list/group-styles.d.ts +1 -1
  117. package/lib/message-list/message-list.component.d.ts +3 -2
  118. package/lib/message-preview.d.ts +2 -3
  119. package/lib/message-reactions/message-reactions.component.d.ts +9 -8
  120. package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +6 -5
  121. package/lib/message-reactions.service.d.ts +4 -4
  122. package/lib/message-text/message-text.component.d.ts +5 -5
  123. package/lib/message.service.d.ts +6 -7
  124. package/lib/modal/modal.component.d.ts +1 -1
  125. package/lib/notification/notification.component.d.ts +2 -2
  126. package/lib/notification-list/notification-list.component.d.ts +1 -0
  127. package/lib/notification.service.d.ts +1 -1
  128. package/lib/paginated-list/paginated-list.component.d.ts +2 -5
  129. package/lib/read-by.d.ts +1 -2
  130. package/lib/stream-i18n.service.d.ts +1 -1
  131. package/lib/theme.service.d.ts +1 -1
  132. package/lib/thread/thread.component.d.ts +3 -3
  133. package/lib/types-custom.d.ts +15 -0
  134. package/lib/types.d.ts +116 -155
  135. package/lib/user-list/user-list.component.d.ts +2 -3
  136. package/lib/virtualized-message-list.service.d.ts +1 -1
  137. package/lib/voice-recorder/amplitude-recorder.service.d.ts +2 -2
  138. package/lib/voice-recorder/media-recorder.d.ts +2 -2
  139. package/lib/voice-recorder/transcoder.service.d.ts +4 -4
  140. package/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.d.ts +1 -0
  141. package/lib/voice-recorder/voice-recorder.component.d.ts +2 -2
  142. package/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.d.ts +3 -3
  143. package/lib/voice-recording/voice-recording.component.d.ts +2 -3
  144. package/package.json +21 -15
  145. package/public-api.d.ts +3 -0
  146. package/src/assets/i18n/en.ts +0 -1
  147. package/src/assets/version.ts +1 -1
  148. package/esm2022/lib/attachment-configuration.service.mjs +0 -185
  149. package/esm2022/lib/attachment-list/attachment-list.component.mjs +0 -212
  150. package/esm2022/lib/attachment-preview-list/attachment-preview-list.component.mjs +0 -55
  151. package/esm2022/lib/attachment.service.mjs +0 -479
  152. package/esm2022/lib/avatar/avatar.component.mjs +0 -157
  153. package/esm2022/lib/avatar-placeholder/avatar-placeholder.component.mjs +0 -66
  154. package/esm2022/lib/channel/channel.component.mjs +0 -45
  155. package/esm2022/lib/channel-header/channel-header.component.mjs +0 -72
  156. package/esm2022/lib/channel-list/channel-list.component.mjs +0 -50
  157. package/esm2022/lib/channel-preview/channel-preview.component.mjs +0 -150
  158. package/esm2022/lib/channel.service.mjs +0 -1393
  159. package/esm2022/lib/chat-client.service.mjs +0 -227
  160. package/esm2022/lib/custom-templates.service.mjs +0 -244
  161. package/esm2022/lib/file-utils.mjs +0 -35
  162. package/esm2022/lib/get-message-translation.mjs +0 -12
  163. package/esm2022/lib/icon/icon-placeholder/icon-placeholder.component.mjs +0 -28
  164. package/esm2022/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +0 -20
  165. package/esm2022/lib/message/message.component.mjs +0 -486
  166. package/esm2022/lib/message-actions-box/message-actions-box.component.mjs +0 -120
  167. package/esm2022/lib/message-actions.service.mjs +0 -187
  168. package/esm2022/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +0 -71
  169. package/esm2022/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +0 -333
  170. package/esm2022/lib/message-input/message-input-config.service.mjs +0 -50
  171. package/esm2022/lib/message-input/message-input.component.mjs +0 -507
  172. package/esm2022/lib/message-list/message-list.component.mjs +0 -715
  173. package/esm2022/lib/message-preview.mjs +0 -21
  174. package/esm2022/lib/message-reactions/message-reactions.component.mjs +0 -165
  175. package/esm2022/lib/message-reactions-selector/message-reactions-selector.component.mjs +0 -57
  176. package/esm2022/lib/message-text/message-text.component.mjs +0 -143
  177. package/esm2022/lib/message.service.mjs +0 -43
  178. package/esm2022/lib/notification/notification.component.mjs +0 -20
  179. package/esm2022/lib/notification-list/notification-list.component.mjs +0 -33
  180. package/esm2022/lib/paginated-list/paginated-list.component.mjs +0 -94
  181. package/esm2022/lib/read-by.mjs +0 -12
  182. package/esm2022/lib/stream-autocomplete-textarea.module.mjs +0 -33
  183. package/esm2022/lib/stream-textarea.module.mjs +0 -31
  184. package/esm2022/lib/thread/thread.component.mjs +0 -51
  185. package/esm2022/lib/types.mjs +0 -2
  186. package/esm2022/lib/user-list/user-list.component.mjs +0 -47
  187. package/esm2022/lib/virtualized-list.service.mjs +0 -273
  188. package/esm2022/lib/voice-recorder/mp3-transcoder.mjs +0 -61
  189. package/esm2022/lib/voice-recorder/transcoder.service.mjs +0 -121
  190. package/esm2022/lib/voice-recorder/voice-recorder-wavebar/voice-recorder-wavebar.component.mjs +0 -32
  191. package/esm2022/lib/voice-recorder/voice-recorder.component.mjs +0 -80
  192. package/esm2022/lib/voice-recording/voice-recording-wavebar/voice-recording-wavebar.component.mjs +0 -112
  193. package/esm2022/lib/voice-recording/voice-recording.component.mjs +0 -91
  194. package/esm2022/public-api.mjs +0 -82
  195. package/fesm2022/stream-chat-angular.mjs.map +0 -1
  196. /package/{esm2022 → esm2020}/lib/format-duration.mjs +0 -0
  197. /package/{esm2022 → esm2020}/lib/injection-tokens.mjs +0 -0
  198. /package/{esm2022 → esm2020}/lib/is-image-attachment.mjs +0 -0
  199. /package/{esm2022 → esm2020}/lib/is-on-separate-date.mjs +0 -0
  200. /package/{esm2022 → esm2020}/lib/is-safari.mjs +0 -0
  201. /package/{esm2022 → esm2020}/lib/message-input/textarea.interface.mjs +0 -0
  202. /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, ChannelManagerEventHandlerOverrides, ChannelMemberResponse, ChannelOptions, ChannelSort, CommandResponse, Event, ExtendableGenerics, FormatMessageResponse, LiteralStringForUnion, MessageResponseBase, Mute, ReactionGroupResponse, ReactionResponse, User, UserResponse } from 'stream-chat';
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 DefaultStreamChatGenerics = ExtendableGenerics & {
14
- attachmentType: DefaultAttachmentType;
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
- quoted_message?: MessageResponseBase<DefaultStreamChatGenerics>;
44
- };
45
- export type DefaultUserTypeInternal = {
46
- image?: string;
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 StreamMessage<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = FormatMessageResponse<T>;
53
- export type AttachmentUploadErrorReason = 'file-size' | 'file-extension' | 'unknown';
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<T>>;
66
- fromAttachment?: Attachment<T>;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
91
- channel: Channel<T>;
58
+ export declare type ChannelPreviewContext = {
59
+ channel: Channel;
92
60
  };
93
- export type ChannelPreviewInfoContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ChannelPreviewContext & {
94
- latestMessage?: StreamMessage<T>;
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<DefaultStreamChatGenerics>[]>;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
133
- channel: Channel<T>;
100
+ export declare type ChannelActionsContext = {
101
+ channel: Channel;
134
102
  };
135
- export type CustomAttachmentListContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
103
+ export declare type CustomAttachmentListContext = {
136
104
  messageId: string;
137
- attachments: Attachment<T>[];
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<DefaultStreamChatGenerics>;
155
- user?: User<DefaultStreamChatGenerics>;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
136
+ export declare type MessageActionsBoxContext = {
169
137
  isMine: boolean;
170
- message: StreamMessage<T> | undefined;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = (message: StreamMessage<T>, params: MessageActionHandlerExtraParams) => void;
179
- export type MessageActionBoxItemContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
146
+ export declare type MessageActionHandler = (message: StreamMessage, params: MessageActionHandlerExtraParams) => void;
147
+ export declare type MessageActionBoxItemContext = {
180
148
  actionName: string;
181
- actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
182
- message: StreamMessage<T>;
149
+ actionLabelOrTranslationKey: ((message: StreamMessage) => string) | string;
150
+ message: StreamMessage;
183
151
  actionHandlerExtraParams: MessageActionHandlerExtraParams;
184
- actionHandler: MessageActionHandler<T>;
152
+ actionHandler: MessageActionHandler;
185
153
  };
186
- export type MessageReactionActionItem<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
154
+ export declare type MessageReactionActionItem = {
187
155
  actionName: 'react';
188
- isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage<T>) => boolean;
156
+ isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage) => boolean;
189
157
  };
190
- type MessageActionItemBase<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
191
- actionLabelOrTranslationKey: ((message: StreamMessage<T>) => string) | string;
192
- isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage<T>) => boolean;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionItemBase<T> & {
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionItemBase<T> & {
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<DefaultStreamChatGenerics>[];
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<DefaultStreamChatGenerics>[];
213
- ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
251
- message: StreamMessage<T>;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
258
- channel: Channel<T>;
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<DefaultStreamChatGenerics>;
232
+ export declare type AttachmentContext = {
233
+ attachment: Attachment;
266
234
  };
267
- export type SystemMessageContext = MessageContext & {
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
256
+ export declare type MessageInput = {
286
257
  text: string;
287
- attachments: Attachment<T>[];
288
- mentionedUsers: UserResponse<T>[];
258
+ attachments: Attachment[];
259
+ mentionedUsers: UserResponse[];
289
260
  parentId: string | undefined;
290
261
  quotedMessageId: string | undefined;
291
- customData: undefined | Partial<T['messageType']>;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
268
+ export declare type FiltertNextPageConfiguration = {
298
269
  type: 'filter';
299
- paginationFilter: ChannelFilters<T>;
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = MessageActionsBoxContext<T> & {
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
316
- channels: Channel<T>[];
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<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
336
- service: AttachmentService<T>;
306
+ export declare type CustomAttachmentPreviewListContext = {
307
+ attachmentService: AttachmentService;
337
308
  };
338
- export type ThreadReplyButtonContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
339
- message: StreamMessage<T>;
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 ChannelServiceOptions<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
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;
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<DefaultStreamChatGenerics>[];
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": { "alias": "users"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "hasMore": { "alias": "hasMore"; "required": false; }; }, { "loadMore": "loadMore"; }, never, never, false, never>;
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<import("./types").DefaultStreamChatGenerics>>;
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": { "alias": "voiceRecorderService"; "required": false; }; }, {}, never, never, false, never>;
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 OnChanges, OnInit, AfterViewInit {
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": { "alias": "audioElement"; "required": false; }; "waveFormData": { "alias": "waveFormData"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; }, {}, never, never, false, never>;
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<DefaultStreamChatGenerics>;
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": { "alias": "attachment"; "required": false; }; }, {}, never, never, false, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<VoiceRecordingComponent, "stream-voice-recording", never, { "attachment": "attachment"; }, {}, never, never, false, never>;
30
29
  }