stream-chat-angular 5.7.0 → 5.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,8 +34,19 @@ export declare class AttachmentService<T extends DefaultStreamChatGenerics = Def
34
34
  * By default the SDK components won't display these, but you can provide your own `customAttachmentPreviewListTemplate$` and `customAttachmentListTemplate$` for the [`CustomTemplatesService`](../../services/CustomTemplatesService).
35
35
  */
36
36
  customAttachments$: BehaviorSubject<Attachment<T>[]>;
37
+ /**
38
+ * The current number of attachments
39
+ */
40
+ attachmentsCounter$: Observable<number>;
41
+ /**
42
+ * The maximum number of attachments allowed for a message.
43
+ *
44
+ * The maximum is 30, you can set it to lower, but not higher.
45
+ */
46
+ maxNumberOfAttachments: number;
37
47
  private attachmentUploadsSubject;
38
48
  private appSettings;
49
+ private attachmentLimitNotificationHide?;
39
50
  constructor(channelService: ChannelService, notificationService: NotificationService, chatClientService: ChatClientService, messageService: MessageService);
40
51
  /**
41
52
  * Resets the attachments uploads (for example after the message with the attachments sent successfully)
@@ -85,6 +96,7 @@ export declare class AttachmentService<T extends DefaultStreamChatGenerics = Def
85
96
  private uploadAttachments;
86
97
  private areAttachmentsHaveValidExtension;
87
98
  private areAttachmentsHaveValidSize;
99
+ private isWithinLimit;
88
100
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentService<any>, never>;
89
101
  static ɵprov: i0.ɵɵInjectableDeclaration<AttachmentService<any>>;
90
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "5.7.0",
3
+ "version": "5.7.1",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -126,5 +126,9 @@ export const en = {
126
126
  'An error has occurred during recording':
127
127
  'An error has occurred during recording',
128
128
  'Media recording not supported': 'Media recording not supported',
129
+ "You can't uplod more than {{max}} attachments":
130
+ "You can't uplod more than {{max}} attachments",
131
+ 'You currently have {{count}} attachments, the maximum is {{max}}':
132
+ 'You currently have {{count}} attachments, the maximum is {{max}}',
129
133
  },
130
134
  };
@@ -1 +1 @@
1
- export const version = '5.7.0';
1
+ export const version = '5.7.1';