stream-chat-angular 4.55.1-perf-message-list.2 → 4.55.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.
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { Action, Attachment } from 'stream-chat';
3
3
  import { ModalContext, DefaultStreamChatGenerics, AttachmentConfigration, VideoAttachmentConfiguration, ImageAttachmentConfiguration, AttachmentContext } from '../types';
4
4
  import { ChannelService } from '../channel.service';
@@ -9,11 +9,10 @@ import * as i0 from "@angular/core";
9
9
  /**
10
10
  * The `AttachmentList` component displays the attachments of a message
11
11
  */
12
- export declare class AttachmentListComponent implements OnChanges, AfterViewInit {
12
+ export declare class AttachmentListComponent implements OnChanges {
13
13
  readonly customTemplatesService: CustomTemplatesService;
14
14
  private channelService;
15
15
  private attachmentConfigurationService;
16
- private cdRef;
17
16
  /**
18
17
  * The id of the message the attachments belong to
19
18
  */
@@ -34,13 +33,11 @@ export declare class AttachmentListComponent implements OnChanges, AfterViewInit
34
33
  orderedAttachments: Attachment<DefaultStreamChatGenerics>[];
35
34
  imagesToView: Attachment<DefaultStreamChatGenerics>[];
36
35
  imagesToViewCurrentIndex: number;
37
- isInited: boolean;
38
36
  themeVersion: '1' | '2';
39
37
  private modalContent;
40
38
  private attachmentConfigurations;
41
- constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, attachmentConfigurationService: AttachmentConfigurationService, cdRef: ChangeDetectorRef, themeService: ThemeService);
39
+ constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, attachmentConfigurationService: AttachmentConfigurationService, themeService: ThemeService);
42
40
  ngOnChanges(changes: SimpleChanges): void;
43
- ngAfterViewInit(): void;
44
41
  trackByUrl(_: number, attachment: Attachment): unknown;
45
42
  isImage(attachment: Attachment): boolean;
46
43
  isSvg(attachment: Attachment): boolean;
@@ -183,6 +183,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
183
183
  * You can return either an offset, or a filter using the [`$lte`/`$gte` operator](https://getstream.io/chat/docs/javascript/query_syntax_operators/). If you return a filter, it will be merged with the filter provided for the `init` method.
184
184
  */
185
185
  customPaginator?: (channelQueryResult: Channel<T>[]) => NextPageConfiguration;
186
+ /**
187
+ * internal
188
+ */
189
+ static readonly MAX_MESSAGE_REACTIONS_TO_FETCH = 1200;
186
190
  private channelsSubject;
187
191
  private activeChannelSubject;
188
192
  private activeChannelMessagesSubject;
@@ -449,7 +453,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
449
453
  */
450
454
  get activeChannelMessages(): (StreamMessage<T> | MessageResponse<T> | FormatMessageResponse<T>)[];
451
455
  /**
452
- * Get all reactions of a message in the current active channel
456
+ * Get the last 1200 reactions of a message in the current active channel. If you need to fetch more reactions please use the [following endpoint](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript#paginating-reactions).
453
457
  * @param messageId
454
458
  * @returns all reactions of a message
455
459
  */
@@ -55,6 +55,7 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
55
55
  selectedReactionType: string | undefined;
56
56
  isLoading: boolean;
57
57
  reactions: ReactionResponse[];
58
+ shouldHandleReactionClick: boolean;
58
59
  constructor(cdRef: ChangeDetectorRef, channelService: ChannelService, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService, themeService: ThemeService);
59
60
  ngOnChanges(changes: SimpleChanges): void;
60
61
  ngAfterViewChecked(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.55.1-perf-message-list.2",
3
+ "version": "4.55.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/",
@@ -1 +1 @@
1
- export const version = '4.55.1-perf-message-list.2';
1
+ export const version = '4.55.1';