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