stream-chat-angular 3.5.0 → 3.5.3
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 +40 -16
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/avatar/avatar.component.js +3 -4
- package/esm2015/lib/channel.service.js +15 -4
- package/esm2015/lib/chat-client.service.js +10 -6
- package/esm2015/lib/get-channel-display-text.js +2 -2
- package/fesm2015/stream-chat-angular.js +27 -13
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +1 -0
- package/lib/chat-client.service.d.ts +3 -2
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
158
158
|
private _shouldMarkActiveChannelAsRead;
|
|
159
159
|
private shouldSetActiveChannel;
|
|
160
160
|
private clientEventsSubscription;
|
|
161
|
+
private isStateRecoveryInProgress;
|
|
161
162
|
private channelListSetter;
|
|
162
163
|
private messageListSetter;
|
|
163
164
|
private threadListSetter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Channel, ChannelResponse, OwnUserResponse, UserResponse } from 'stream-chat';
|
|
3
|
+
import { Channel, ChannelResponse, ConnectAPIResponse, OwnUserResponse, UserResponse } from 'stream-chat';
|
|
4
4
|
import { AppSettings, Event, StreamChat, TokenOrProvider } from 'stream-chat';
|
|
5
5
|
import { NotificationService } from './notification.service';
|
|
6
6
|
import { DefaultStreamChatGenerics } from './types';
|
|
@@ -42,6 +42,7 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
42
42
|
private connectionStateSubject;
|
|
43
43
|
private appSettingsSubject;
|
|
44
44
|
private pendingInvitesSubject;
|
|
45
|
+
private subscriptions;
|
|
45
46
|
constructor(ngZone: NgZone, notificationService: NotificationService);
|
|
46
47
|
/**
|
|
47
48
|
* Creates a [`StreamChat`](https://github.com/GetStream/stream-chat-js/blob/668b3e5521339f4e14fc657834531b4c8bf8176b/src/client.ts#L124) instance using the provided `apiKey`, and connects a user with the given meta data and token. More info about [connecting users](https://getstream.io/chat/docs/javascript/init_and_users/?language=javascript) can be found in the platform documentation.
|
|
@@ -49,7 +50,7 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
49
50
|
* @param userOrId
|
|
50
51
|
* @param userTokenOrProvider
|
|
51
52
|
*/
|
|
52
|
-
init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T>, userTokenOrProvider: TokenOrProvider):
|
|
53
|
+
init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T>, userTokenOrProvider: TokenOrProvider): ConnectAPIResponse<T>;
|
|
53
54
|
/**
|
|
54
55
|
* Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](./ChannelService.mdx/#reset).
|
|
55
56
|
*/
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.5.
|
|
1
|
+
export const version = '3.5.3';
|