stream-chat-angular 4.67.0 → 4.68.0
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 +101 -9
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +29 -2
- package/esm2015/lib/message-list/message-list.component.js +75 -9
- package/fesm2015/stream-chat-angular.js +101 -10
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +13 -1
- package/lib/message-list/message-list.component.d.ts +9 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -198,7 +198,11 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
198
198
|
*/
|
|
199
199
|
customPaginator?: (channelQueryResult: Channel<T>[]) => NextPageConfiguration;
|
|
200
200
|
/**
|
|
201
|
-
* internal
|
|
201
|
+
* @internal
|
|
202
|
+
*/
|
|
203
|
+
static readonly MAX_MESSAGE_COUNT_IN_MESSAGE_LIST = 250;
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
202
206
|
*/
|
|
203
207
|
static readonly MAX_MESSAGE_REACTIONS_TO_FETCH = 1200;
|
|
204
208
|
private channelsSubject;
|
|
@@ -232,6 +236,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
232
236
|
private nextPageConfiguration?;
|
|
233
237
|
private areReadEventsPaused;
|
|
234
238
|
constructor(chatClientService: ChatClientService<T>, ngZone: NgZone, notificationService: NotificationService);
|
|
239
|
+
/**
|
|
240
|
+
* internal
|
|
241
|
+
*/
|
|
242
|
+
removeOldMessageFromMessageList(): void;
|
|
235
243
|
/**
|
|
236
244
|
* If set to false, read events won't be sent as new messages are received. If set to true active channel (if any) will immediately be marked as read.
|
|
237
245
|
*/
|
|
@@ -439,6 +447,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
439
447
|
* @param parentMessageId The ID of the parent message if we want to load a thread message
|
|
440
448
|
*/
|
|
441
449
|
jumpToMessage(messageId: string, parentMessageId?: string): Promise<void>;
|
|
450
|
+
/**
|
|
451
|
+
* Clears the currently selected message to jump
|
|
452
|
+
*/
|
|
453
|
+
clearMessageJump(): void;
|
|
442
454
|
/**
|
|
443
455
|
* Pins the given message in the channel
|
|
444
456
|
* @param message
|
|
@@ -69,6 +69,10 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
69
69
|
* You can turn on and off the loading indicator that signals to users that more messages are being loaded to the message list
|
|
70
70
|
*/
|
|
71
71
|
displayLoadingIndicator: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
limitNumberOfMessagesInList: boolean;
|
|
72
76
|
typingIndicatorTemplate: TemplateRef<TypingIndicatorContext> | undefined;
|
|
73
77
|
messageTemplate: TemplateRef<MessageContext> | undefined;
|
|
74
78
|
customDateSeparatorTemplate: TemplateRef<DateSeparatorContext> | undefined;
|
|
@@ -113,6 +117,10 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
113
117
|
private isViewInited;
|
|
114
118
|
private checkIfUnreadNotificationIsVisibleTimeout?;
|
|
115
119
|
private jumpToLatestButtonVisibilityTimeout?;
|
|
120
|
+
private messageRemoveTimeout?;
|
|
121
|
+
private removeOldMessagesSubscription?;
|
|
122
|
+
private isSafari;
|
|
123
|
+
private forceRepaintSubject;
|
|
116
124
|
private get class();
|
|
117
125
|
constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService, ngZone: NgZone, cdRef: ChangeDetectorRef, messageActionsService: MessageActionsService);
|
|
118
126
|
messageNotificationJumpClicked: () => void;
|
|
@@ -149,5 +157,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
149
157
|
private newMessageReceived;
|
|
150
158
|
private checkIfOnSeparateDates;
|
|
151
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
|
|
152
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "customMessageActions": "customMessageActions"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; }, {}, never, never>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; "customMessageActions": "customMessageActions"; "displayDateSeparator": "displayDateSeparator"; "displayUnreadSeparator": "displayUnreadSeparator"; "dateSeparatorTextPos": "dateSeparatorTextPos"; "openMessageListAt": "openMessageListAt"; "hideUnreadCountForNotificationAndIndicator": "hideUnreadCountForNotificationAndIndicator"; "displayLoadingIndicator": "displayLoadingIndicator"; "limitNumberOfMessagesInList": "limitNumberOfMessagesInList"; }, {}, never, never>;
|
|
153
161
|
}
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.68.0';
|