stream-chat-angular 4.55.0 → 4.55.1-perf-message-list.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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, 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,10 +9,11 @@ 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 {
12
+ export declare class AttachmentListComponent implements OnChanges, AfterViewInit {
13
13
  readonly customTemplatesService: CustomTemplatesService;
14
14
  private channelService;
15
15
  private attachmentConfigurationService;
16
+ private cdRef;
16
17
  /**
17
18
  * The id of the message the attachments belong to
18
19
  */
@@ -33,11 +34,13 @@ export declare class AttachmentListComponent implements OnChanges {
33
34
  orderedAttachments: Attachment<DefaultStreamChatGenerics>[];
34
35
  imagesToView: Attachment<DefaultStreamChatGenerics>[];
35
36
  imagesToViewCurrentIndex: number;
37
+ isInited: boolean;
36
38
  themeVersion: '1' | '2';
37
39
  private modalContent;
38
40
  private attachmentConfigurations;
39
- constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, attachmentConfigurationService: AttachmentConfigurationService, themeService: ThemeService);
41
+ constructor(customTemplatesService: CustomTemplatesService, channelService: ChannelService, attachmentConfigurationService: AttachmentConfigurationService, cdRef: ChangeDetectorRef, themeService: ThemeService);
40
42
  ngOnChanges(changes: SimpleChanges): void;
43
+ ngAfterViewInit(): void;
41
44
  trackByUrl(_: number, attachment: Attachment): unknown;
42
45
  isImage(attachment: Attachment): boolean;
43
46
  isSvg(attachment: Attachment): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.55.0",
3
+ "version": "4.55.1-perf-message-list.2",
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.0';
1
+ export const version = '4.55.1-perf-message-list.2';