stream-chat-angular 4.31.0 → 4.31.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 +54 -22
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel/channel.component.js +15 -5
- package/esm2015/lib/channel-list/channel-list.component.js +4 -5
- package/esm2015/lib/channel.service.js +32 -15
- package/esm2015/lib/date-parser.service.js +3 -3
- package/esm2015/lib/message-list/message-list.component.js +6 -2
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +55 -24
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +10 -2
- package/lib/date-parser.service.d.ts +2 -2
- package/lib/message-list/message-list.component.d.ts +1 -0
- package/lib/types.d.ts +4 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { Attachment, Channel, ChannelFilters, ChannelOptions, ChannelResponse, ChannelSort, Event, UserResponse } from 'stream-chat';
|
|
4
4
|
import { ChatClientService, ClientEvent } from './chat-client.service';
|
|
5
5
|
import { NotificationService } from './notification.service';
|
|
6
|
-
import { AttachmentUpload, DefaultStreamChatGenerics, MessageReactionType, StreamMessage } from './types';
|
|
6
|
+
import { AttachmentUpload, ChannelQueryState, DefaultStreamChatGenerics, MessageReactionType, StreamMessage } from './types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* The `ChannelService` provides data and interaction for the channel list and message list.
|
|
@@ -42,6 +42,10 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
42
42
|
* Our platform documentation covers the topic of [channel events](https://getstream.io/chat/docs/javascript/event_object/?language=javascript#events) in depth.
|
|
43
43
|
*/
|
|
44
44
|
channels$: Observable<Channel<T>[] | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* The result of the latest channel query request.
|
|
47
|
+
*/
|
|
48
|
+
channelQueryState$: Observable<ChannelQueryState | undefined>;
|
|
45
49
|
/**
|
|
46
50
|
* Emits the currently active channel.
|
|
47
51
|
*
|
|
@@ -174,10 +178,12 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
174
178
|
private shouldSetActiveChannel;
|
|
175
179
|
private clientEventsSubscription;
|
|
176
180
|
private isStateRecoveryInProgress;
|
|
181
|
+
private channelQueryStateSubject;
|
|
177
182
|
private channelListSetter;
|
|
178
183
|
private messageListSetter;
|
|
179
184
|
private threadListSetter;
|
|
180
185
|
private parentMessageSetter;
|
|
186
|
+
private dismissErrorNotification?;
|
|
181
187
|
constructor(chatClientService: ChatClientService<T>, ngZone: NgZone, notificationService: NotificationService);
|
|
182
188
|
/**
|
|
183
189
|
* 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.
|
|
@@ -222,7 +228,9 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
222
228
|
* @param shouldSetActiveChannel Decides if the first channel in the result should be made as an active channel, or no channel should be marked as active
|
|
223
229
|
* @returns the list of channels found by the query
|
|
224
230
|
*/
|
|
225
|
-
init(filters: ChannelFilters<T>, sort?: ChannelSort<T>, options?: ChannelOptions
|
|
231
|
+
init(filters: ChannelFilters<T>, sort?: ChannelSort<T>, options?: ChannelOptions & {
|
|
232
|
+
keepAliveChannels$OnError?: boolean;
|
|
233
|
+
}, shouldSetActiveChannel?: boolean): Promise<Channel<T>[]>;
|
|
226
234
|
/**
|
|
227
235
|
* Resets the `activeChannel$`, `channels$` and `activeChannelMessages$` Observables. Useful when disconnecting a chat user, use in combination with [`disconnectUser`](./ChatClientService.mdx/#disconnectuser).
|
|
228
236
|
*/
|
|
@@ -15,13 +15,13 @@ export declare class DateParserService {
|
|
|
15
15
|
/**
|
|
16
16
|
* Return a user-friendly string representation of the date (year, month and date)
|
|
17
17
|
* @param date
|
|
18
|
-
* @returns
|
|
18
|
+
* @returns The parsed date
|
|
19
19
|
*/
|
|
20
20
|
parseDate(date: Date): string;
|
|
21
21
|
/**
|
|
22
22
|
* Return a user-friendly string representation of the date and time
|
|
23
23
|
* @param date
|
|
24
|
-
* @returns
|
|
24
|
+
* @returns The parsed date
|
|
25
25
|
*/
|
|
26
26
|
parseDateTime(date: Date): string;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateParserService, never>;
|
|
@@ -73,6 +73,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
73
73
|
private usersTypingInChannel$;
|
|
74
74
|
private usersTypingInThread$;
|
|
75
75
|
private isLatestMessageInList;
|
|
76
|
+
private channelId?;
|
|
76
77
|
constructor(channelService: ChannelService, chatClientService: ChatClientService, customTemplatesService: CustomTemplatesService, dateParser: DateParserService);
|
|
77
78
|
ngOnInit(): void;
|
|
78
79
|
ngOnChanges(changes: SimpleChanges): void;
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.31.
|
|
1
|
+
export const version = '4.31.2';
|