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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +46 -22
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-list/attachment-list.component.js +11 -5
- package/esm2015/lib/message-list/message-list.component.js +32 -14
- package/fesm2015/stream-chat-angular.js +41 -17
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +6 -3
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -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
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.55.
|
|
1
|
+
export const version = '4.55.1-perf-message-list.2';
|