stream-chat-angular 2.9.0 → 2.10.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 +51 -9
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +6 -1
- package/esm2015/lib/chat-client.service.js +6 -1
- package/esm2015/lib/message/message.component.js +2 -2
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +14 -6
- package/esm2015/lib/message-list/message-list.component.js +21 -3
- package/fesm2015/stream-chat-angular.js +45 -9
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +1 -0
- package/lib/chat-client.service.d.ts +1 -0
- package/lib/message/message.component.d.ts +10 -2
- package/lib/message-actions-box/message-actions-box.component.d.ts +4 -1
- package/lib/message-list/message-list.component.d.ts +9 -4
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare class ChannelService {
|
|
|
35
35
|
setAsActiveChannel(channel: Channel): void;
|
|
36
36
|
loadMoreMessages(): Promise<void>;
|
|
37
37
|
init(filters: ChannelFilters, sort?: ChannelSort, options?: ChannelOptions): Promise<void>;
|
|
38
|
+
reset(): void;
|
|
38
39
|
loadMoreChannels(): Promise<void>;
|
|
39
40
|
addReaction(messageId: string, reactionType: MessageReactionType): Promise<void>;
|
|
40
41
|
removeReaction(messageId: string, reactionType: MessageReactionType): Promise<void>;
|
|
@@ -20,6 +20,7 @@ export declare class ChatClientService {
|
|
|
20
20
|
private appSettingsSubject;
|
|
21
21
|
constructor(ngZone: NgZone, notificationService: NotificationService);
|
|
22
22
|
init(apiKey: string, userOrId: string | OwnUserResponse | UserResponse, userTokenOrProvider: TokenOrProvider): Promise<void>;
|
|
23
|
+
disconnectUser(): Promise<void>;
|
|
23
24
|
getAppSettings(): Promise<void>;
|
|
24
25
|
flagMessage(messageId: string): Promise<void>;
|
|
25
26
|
autocompleteUsers(searchTerm: string): Promise<UserResponse<import("stream-chat").UR>[]>;
|
|
@@ -2,7 +2,6 @@ import { TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { UserResponse } from 'stream-chat';
|
|
3
3
|
import { ChannelService } from '../channel.service';
|
|
4
4
|
import { ChatClientService } from '../chat-client.service';
|
|
5
|
-
import { MessageActions } from '../message-actions-box/message-actions-box.component';
|
|
6
5
|
import { DefaultUserType, StreamMessage } from '../types';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class MessageComponent implements OnChanges {
|
|
@@ -11,10 +10,19 @@ export declare class MessageComponent implements OnChanges {
|
|
|
11
10
|
messageInputTemplate: TemplateRef<any> | undefined;
|
|
12
11
|
mentionTemplate: TemplateRef<any> | undefined;
|
|
13
12
|
message: StreamMessage | undefined;
|
|
14
|
-
enabledMessageActions:
|
|
13
|
+
enabledMessageActions: string[];
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#caution-arereactionsenabled-deprecated
|
|
16
|
+
*/
|
|
15
17
|
areReactionsEnabled: boolean | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#canreacttomessage-deprecated
|
|
20
|
+
*/
|
|
16
21
|
canReactToMessage: boolean | undefined;
|
|
17
22
|
isLastSentMessage: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#canreceivereadevents-deprecated
|
|
25
|
+
*/
|
|
18
26
|
canReceiveReadEvents: boolean | undefined;
|
|
19
27
|
isEditing: boolean | undefined;
|
|
20
28
|
isActionBoxOpen: boolean;
|
|
@@ -4,6 +4,9 @@ import { ChatClientService } from '../chat-client.service';
|
|
|
4
4
|
import { NotificationService } from '../notification.service';
|
|
5
5
|
import { StreamMessage } from '../types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message-actions/#required-enabledactions
|
|
9
|
+
*/
|
|
7
10
|
export declare type MessageActions = 'edit' | 'delete' | 'edit-any' | 'delete-any' | 'pin' | 'quote' | 'flag' | 'mute';
|
|
8
11
|
export declare class MessageActionsBoxComponent implements OnChanges {
|
|
9
12
|
private chatClientService;
|
|
@@ -13,7 +16,7 @@ export declare class MessageActionsBoxComponent implements OnChanges {
|
|
|
13
16
|
isOpen: boolean;
|
|
14
17
|
isMine: boolean;
|
|
15
18
|
message: StreamMessage | undefined;
|
|
16
|
-
enabledActions:
|
|
19
|
+
enabledActions: string[];
|
|
17
20
|
readonly displayedActionsCount: EventEmitter<number>;
|
|
18
21
|
readonly isEditing: EventEmitter<boolean>;
|
|
19
22
|
isEditModalOpen: boolean;
|
|
@@ -5,7 +5,6 @@ import { StreamMessage } from '../types';
|
|
|
5
5
|
import { ChatClientService } from '../chat-client.service';
|
|
6
6
|
import { GroupStyle } from './group-styles';
|
|
7
7
|
import { ImageLoadService } from './image-load.service';
|
|
8
|
-
import { MessageActions } from '../message-actions-box/message-actions-box.component';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class MessageListComponent implements AfterViewChecked, OnChanges {
|
|
11
10
|
private channelService;
|
|
@@ -14,12 +13,18 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
|
|
|
14
13
|
messageTemplate: TemplateRef<any> | undefined;
|
|
15
14
|
messageInputTemplate: TemplateRef<any> | undefined;
|
|
16
15
|
mentionTemplate: TemplateRef<any> | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#caution-arereactionsenabled-deprecated
|
|
18
|
+
*/
|
|
19
|
+
areReactionsEnabled: boolean | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated https://getstream.io/chat/docs/sdk/angular/components/message_list/#caution-enabledmessageactions-deprecated
|
|
22
|
+
*/
|
|
23
|
+
enabledMessageActionsInput: string[] | undefined;
|
|
19
24
|
messages$: Observable<StreamMessage[]>;
|
|
20
25
|
canReactToMessage: boolean | undefined;
|
|
21
26
|
canReceiveReadEvents: boolean | undefined;
|
|
22
|
-
enabledMessageActions:
|
|
27
|
+
enabledMessageActions: string[];
|
|
23
28
|
private class;
|
|
24
29
|
unreadMessageCount: number;
|
|
25
30
|
isUserScrolledUp: boolean | undefined;
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.10.0';
|