stream-chat-angular 2.6.0 → 2.6.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 +156 -141
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel-preview/channel-preview.component.js +22 -17
- package/esm2015/lib/channel.service.js +92 -83
- package/esm2015/lib/chat-client.service.js +19 -32
- package/fesm2015/stream-chat-angular.js +131 -130
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel-preview/channel-preview.component.d.ts +3 -2
- package/lib/channel.service.d.ts +2 -3
- package/lib/chat-client.service.d.ts +3 -4
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Channel } from 'stream-chat';
|
|
3
3
|
import { ChannelService } from '../channel.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
|
|
6
6
|
private channelService;
|
|
7
|
+
private ngZone;
|
|
7
8
|
channel: Channel | undefined;
|
|
8
9
|
isActive: boolean;
|
|
9
10
|
isUnread: boolean;
|
|
10
11
|
latestMessage: string;
|
|
11
12
|
private subscriptions;
|
|
12
13
|
private canSendReadEvents;
|
|
13
|
-
constructor(channelService: ChannelService);
|
|
14
|
+
constructor(channelService: ChannelService, ngZone: NgZone);
|
|
14
15
|
ngOnInit(): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
17
|
get avatarImage(): unknown;
|
package/lib/channel.service.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Attachment, Channel, ChannelFilters, ChannelOptions, ChannelSort, Event, UserResponse } from 'stream-chat';
|
|
4
4
|
import { ChatClientService, Notification } from './chat-client.service';
|
|
@@ -7,7 +7,6 @@ import { AttachmentUpload, StreamMessage } from './types';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ChannelService {
|
|
9
9
|
private chatClientService;
|
|
10
|
-
private appRef;
|
|
11
10
|
private ngZone;
|
|
12
11
|
hasMoreChannels$: Observable<boolean>;
|
|
13
12
|
channels$: Observable<Channel[] | undefined>;
|
|
@@ -32,7 +31,7 @@ export declare class ChannelService {
|
|
|
32
31
|
private options;
|
|
33
32
|
private channelListSetter;
|
|
34
33
|
private messageListSetter;
|
|
35
|
-
constructor(chatClientService: ChatClientService,
|
|
34
|
+
constructor(chatClientService: ChatClientService, ngZone: NgZone);
|
|
36
35
|
setAsActiveChannel(channel: Channel): void;
|
|
37
36
|
loadMoreMessages(): Promise<void>;
|
|
38
37
|
init(filters: ChannelFilters, sort?: ChannelSort, options?: ChannelOptions): Promise<void>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NgZone } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AppSettings, Event, StreamChat } from 'stream-chat';
|
|
4
4
|
import { NotificationService } from './notification.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare type Notification = {
|
|
7
|
-
eventType:
|
|
7
|
+
eventType: string;
|
|
8
8
|
event: Event;
|
|
9
9
|
};
|
|
10
10
|
export declare class ChatClientService {
|
|
11
11
|
private ngZone;
|
|
12
|
-
private appRef;
|
|
13
12
|
private notificationService;
|
|
14
13
|
chatClient: StreamChat;
|
|
15
14
|
notification$: Observable<Notification>;
|
|
@@ -18,7 +17,7 @@ export declare class ChatClientService {
|
|
|
18
17
|
private notificationSubject;
|
|
19
18
|
private connectionStateSubject;
|
|
20
19
|
private appSettingsSubject;
|
|
21
|
-
constructor(ngZone: NgZone,
|
|
20
|
+
constructor(ngZone: NgZone, notificationService: NotificationService);
|
|
22
21
|
init(apiKey: string, userId: string, userToken: string): Promise<void>;
|
|
23
22
|
getAppSettings(): Promise<void>;
|
|
24
23
|
flagMessage(messageId: string): Promise<void>;
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.6.
|
|
1
|
+
export const version = '2.6.1';
|