stream-chat-angular 3.0.0-beta.4 → 3.0.0-beta.5
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 +19 -19
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +18 -18
- package/esm2015/lib/chat-client.service.js +2 -2
- package/fesm2015/stream-chat-angular.js +19 -19
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +4 -4
- package/lib/chat-client.service.d.ts +3 -3
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Attachment, Channel, ChannelFilters, ChannelOptions, ChannelResponse, ChannelSort, Event, UserResponse } from 'stream-chat';
|
|
4
|
-
import { ChatClientService,
|
|
4
|
+
import { ChatClientService, ClientEvent } from './chat-client.service';
|
|
5
5
|
import { AttachmentUpload, MessageReactionType, StreamMessage } from './types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -85,15 +85,15 @@ export declare class ChannelService {
|
|
|
85
85
|
/**
|
|
86
86
|
* Custom event handler to call if a new message received from a channel that is not being watched, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
|
|
87
87
|
*/
|
|
88
|
-
customNewMessageNotificationHandler?: (
|
|
88
|
+
customNewMessageNotificationHandler?: (clientEvent: ClientEvent, channelListSetter: (channels: (Channel | ChannelResponse)[]) => void) => void;
|
|
89
89
|
/**
|
|
90
90
|
* Custom event handler to call when the user is added to a channel, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
|
|
91
91
|
*/
|
|
92
|
-
customAddedToChannelNotificationHandler?: (
|
|
92
|
+
customAddedToChannelNotificationHandler?: (clientEvent: ClientEvent, channelListSetter: (channels: (Channel | ChannelResponse)[]) => void) => void;
|
|
93
93
|
/**
|
|
94
94
|
* Custom event handler to call when the user is removed from a channel, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
|
|
95
95
|
*/
|
|
96
|
-
customRemovedFromChannelNotificationHandler?: (
|
|
96
|
+
customRemovedFromChannelNotificationHandler?: (clientEvent: ClientEvent, channelListSetter: (channels: (Channel | ChannelResponse)[]) => void) => void;
|
|
97
97
|
/**
|
|
98
98
|
* Custom event handler to call when a channel is deleted, provide an event handler if you want to override the [default channel list ordering](./ChannelService.mdx/#channels)
|
|
99
99
|
*/
|
|
@@ -4,7 +4,7 @@ import { Channel, ChannelResponse, OwnUserResponse, UserResponse } from 'stream-
|
|
|
4
4
|
import { AppSettings, Event, StreamChat, TokenOrProvider } from 'stream-chat';
|
|
5
5
|
import { NotificationService } from './notification.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type ClientEvent = {
|
|
8
8
|
eventType: string;
|
|
9
9
|
event: Event;
|
|
10
10
|
};
|
|
@@ -19,12 +19,12 @@ export declare class ChatClientService {
|
|
|
19
19
|
*/
|
|
20
20
|
chatClient: StreamChat;
|
|
21
21
|
/**
|
|
22
|
-
* Emits [`
|
|
22
|
+
* Emits [`ClientEvent`](https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angular/src/lib/chat-client.service.ts) events. The platform documentation covers [the list of client, user presence and notification events](https://getstream.io/chat/docs/javascript/event_object/?language=javascript).
|
|
23
23
|
* :::important
|
|
24
24
|
* For performance reasons this Observable operates outside of the Angular change detection zone. If you subscribe to it, you need to manually reenter Angular's change detection zone, our [Change detection guide](../concepts/change-detection.mdx) explains this in detail.
|
|
25
25
|
* :::
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
events$: Observable<ClientEvent>;
|
|
28
28
|
/**
|
|
29
29
|
* Emits the current [application settings](https://getstream.io/chat/docs/javascript/app_setting_overview/?language=javascript). Since getting the application settings is an expensive API call and we don't always need the result, this is not initialized by default, you need to call `getApplicationSettings` to load them.
|
|
30
30
|
*/
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.0.0-beta.
|
|
1
|
+
export const version = '3.0.0-beta.5';
|