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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +42 -50
- 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 +5 -11
- package/esm2015/lib/channel.service.js +10 -4
- package/esm2015/lib/message-list/message-list.component.js +14 -32
- package/esm2015/lib/message-reactions/message-reactions.component.js +13 -2
- package/fesm2015/stream-chat-angular.js +37 -45
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +3 -6
- package/lib/channel.service.d.ts +5 -1
- package/lib/message-reactions/message-reactions.component.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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,
|
|
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;
|
package/lib/channel.service.d.ts
CHANGED
|
@@ -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
|
|
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
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.55.1
|
|
1
|
+
export const version = '4.55.1';
|