stream-chat-angular 3.0.0-beta.4 → 3.0.0-beta.7
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 +37 -68
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-list/attachment-list.component.js +1 -1
- package/esm2015/lib/channel-header/channel-header.component.js +1 -1
- package/esm2015/lib/channel-list/channel-list.component.js +1 -1
- package/esm2015/lib/channel-preview/channel-preview.component.js +1 -1
- package/esm2015/lib/channel.service.js +28 -35
- package/esm2015/lib/chat-client.service.js +5 -4
- package/esm2015/lib/message/message.component.js +1 -1
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +5 -17
- package/esm2015/lib/message-input/message-input.component.js +1 -1
- package/esm2015/lib/message-list/message-list.component.js +1 -1
- package/esm2015/lib/message-preview.js +4 -17
- package/esm2015/lib/message-reactions/message-reactions.component.js +1 -1
- package/esm2015/lib/read-by.js +1 -1
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +39 -70
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-list/attachment-list.component.d.ts +6 -6
- package/lib/attachment.service.d.ts +1 -1
- package/lib/channel-header/channel-header.component.d.ts +3 -3
- package/lib/channel-list/channel-list.component.d.ts +4 -4
- package/lib/channel-preview/channel-preview.component.d.ts +3 -2
- package/lib/channel.service.d.ts +32 -30
- package/lib/chat-client.service.d.ts +12 -11
- package/lib/custom-templates.service.d.ts +2 -2
- package/lib/message/message.component.d.ts +22 -3
- package/lib/message-actions-box/message-actions-box.component.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +1 -1
- package/lib/message-input/message-input.component.d.ts +21 -2
- package/lib/message-input/textarea.directive.d.ts +1 -1
- package/lib/message-list/group-styles.d.ts +1 -1
- package/lib/message-preview.d.ts +2 -1
- package/lib/message-reactions/message-reactions.component.d.ts +4 -4
- package/lib/read-by.d.ts +2 -1
- package/lib/types.d.ts +26 -19
- package/package.json +2 -2
- package/src/assets/version.ts +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable, Subject } from 'rxjs';
|
|
3
|
-
import type { Attachment, Channel, ChannelMemberResponse, CommandResponse, Event, FormatMessageResponse, LiteralStringForUnion, Mute, ReactionResponse, UserResponse } from 'stream-chat';
|
|
3
|
+
import type { Attachment, Channel, ChannelMemberResponse, CommandResponse, Event, ExtendableGenerics, FormatMessageResponse, LiteralStringForUnion, Mute, ReactionResponse, UserResponse } from 'stream-chat';
|
|
4
4
|
import { Icon } from './icon/icon.component';
|
|
5
5
|
export declare type UnknownType = Record<string, unknown>;
|
|
6
6
|
export declare type CustomTrigger = {
|
|
@@ -9,10 +9,19 @@ export declare type CustomTrigger = {
|
|
|
9
9
|
data: UnknownType;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export declare type DefaultStreamChatGenerics = ExtendableGenerics & {
|
|
13
|
+
attachmentType: DefaultAttachmentType;
|
|
14
|
+
channelType: DefaultChannelType;
|
|
15
|
+
commandType: LiteralStringForUnion;
|
|
16
|
+
eventType: UnknownType;
|
|
17
|
+
messageType: DefaultMessageType;
|
|
18
|
+
reactionType: UnknownType;
|
|
19
|
+
userType: DefaultUserType;
|
|
20
|
+
};
|
|
12
21
|
export declare type DefaultAttachmentType = UnknownType & {
|
|
13
22
|
asset_url?: string;
|
|
14
23
|
id?: string;
|
|
15
|
-
images?: Array<Attachment<
|
|
24
|
+
images?: Array<Attachment<DefaultStreamChatGenerics>>;
|
|
16
25
|
mime_type?: string;
|
|
17
26
|
};
|
|
18
27
|
export declare type DefaultChannelType = UnknownType & {
|
|
@@ -21,24 +30,22 @@ export declare type DefaultChannelType = UnknownType & {
|
|
|
21
30
|
subtitle?: string;
|
|
22
31
|
};
|
|
23
32
|
export declare type DefaultCommandType = LiteralStringForUnion;
|
|
24
|
-
export declare type DefaultEventType = UnknownType;
|
|
25
33
|
export declare type DefaultMessageType = UnknownType & {
|
|
26
34
|
customType?: 'channel.intro' | 'message.date';
|
|
27
35
|
date?: string | Date;
|
|
28
36
|
errorStatusCode?: number;
|
|
29
|
-
event?: Event<
|
|
37
|
+
event?: Event<DefaultStreamChatGenerics>;
|
|
30
38
|
unread?: boolean;
|
|
31
|
-
readBy: UserResponse<
|
|
39
|
+
readBy: UserResponse<DefaultStreamChatGenerics>[];
|
|
32
40
|
};
|
|
33
|
-
export declare type DefaultReactionType = UnknownType;
|
|
34
41
|
export declare type DefaultUserTypeInternal = {
|
|
35
42
|
image?: string;
|
|
36
43
|
status?: string;
|
|
37
44
|
};
|
|
38
|
-
export declare type DefaultUserType
|
|
39
|
-
mutes?: Array<Mute<
|
|
45
|
+
export declare type DefaultUserType = UnknownType & DefaultUserTypeInternal & {
|
|
46
|
+
mutes?: Array<Mute<DefaultStreamChatGenerics>>;
|
|
40
47
|
};
|
|
41
|
-
export declare type StreamMessage<
|
|
48
|
+
export declare type StreamMessage<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = FormatMessageResponse<T>;
|
|
42
49
|
export declare type AttachmentUpload = {
|
|
43
50
|
file: File;
|
|
44
51
|
state: 'error' | 'success' | 'uploading';
|
|
@@ -68,8 +75,8 @@ export declare type NotificationPayload<T = {}> = {
|
|
|
68
75
|
templateContext?: T;
|
|
69
76
|
dismissFn: Function;
|
|
70
77
|
};
|
|
71
|
-
export declare type ChannelPreviewContext = {
|
|
72
|
-
channel: Channel
|
|
78
|
+
export declare type ChannelPreviewContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
79
|
+
channel: Channel<T>;
|
|
73
80
|
};
|
|
74
81
|
export declare type MessageInputContext = {
|
|
75
82
|
isFileUploadEnabled: boolean | undefined;
|
|
@@ -88,7 +95,7 @@ export declare type EmojiPickerContext = {
|
|
|
88
95
|
emojiInput$: Subject<string>;
|
|
89
96
|
};
|
|
90
97
|
export declare type TypingIndicatorContext = {
|
|
91
|
-
usersTyping$: Observable<UserResponse<
|
|
98
|
+
usersTyping$: Observable<UserResponse<DefaultStreamChatGenerics>[]>;
|
|
92
99
|
};
|
|
93
100
|
export declare type MessageContext = {
|
|
94
101
|
message: StreamMessage | undefined;
|
|
@@ -96,12 +103,12 @@ export declare type MessageContext = {
|
|
|
96
103
|
isLastSentMessage: boolean | undefined;
|
|
97
104
|
mode: 'thread' | 'main';
|
|
98
105
|
};
|
|
99
|
-
export declare type ChannelActionsContext = {
|
|
100
|
-
channel: Channel
|
|
106
|
+
export declare type ChannelActionsContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
107
|
+
channel: Channel<T>;
|
|
101
108
|
};
|
|
102
109
|
export declare type AttachmentListContext = {
|
|
103
110
|
messageId: string;
|
|
104
|
-
attachments: Attachment<
|
|
111
|
+
attachments: Attachment<DefaultStreamChatGenerics>[];
|
|
105
112
|
};
|
|
106
113
|
export declare type AvatarContext = {
|
|
107
114
|
name: string | undefined;
|
|
@@ -130,12 +137,12 @@ export declare type MessageActionsBoxContext = {
|
|
|
130
137
|
isEditingChangeHandler: (isEditing: boolean) => any;
|
|
131
138
|
};
|
|
132
139
|
export declare type MessageActionBoxItemContext = {
|
|
133
|
-
actionName: 'quote' | 'pin' | 'flag' | '
|
|
140
|
+
actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete';
|
|
134
141
|
actionLabelOrTranslationKey: (() => string) | string;
|
|
135
142
|
actionHandler: () => any;
|
|
136
143
|
};
|
|
137
144
|
export declare type MessageActionItem = {
|
|
138
|
-
actionName: 'quote' | 'pin' | 'flag' | '
|
|
145
|
+
actionName: 'quote' | 'pin' | 'flag' | 'edit' | 'delete';
|
|
139
146
|
actionLabelOrTranslationKey: (() => string) | string;
|
|
140
147
|
isVisible: (enabledActions: string[], isMine: boolean, message: StreamMessage) => boolean;
|
|
141
148
|
actionHandler: (message: StreamMessage, isMine: boolean) => any;
|
|
@@ -146,8 +153,8 @@ export declare type MessageReactionsContext = {
|
|
|
146
153
|
[key in MessageReactionType]?: number;
|
|
147
154
|
};
|
|
148
155
|
isSelectorOpen: boolean;
|
|
149
|
-
latestReactions: ReactionResponse<
|
|
150
|
-
ownReactions: ReactionResponse<
|
|
156
|
+
latestReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
157
|
+
ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
|
|
151
158
|
isSelectorOpenChangeHandler: (isOpen: boolean) => any;
|
|
152
159
|
};
|
|
153
160
|
export declare type ModalContext = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-angular",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
4
4
|
"description": "Angular components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/common": "^12.2.0 || ^13.0.0",
|
|
13
13
|
"@angular/core": "^12.2.0 || ^13.0.0",
|
|
14
14
|
"@ngx-translate/core": "^13.0.0 || ^14.0.0",
|
|
15
|
-
"stream-chat": "^
|
|
15
|
+
"stream-chat": "^6.2.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"angular-mentions": "^1.4.0",
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.0.0-beta.
|
|
1
|
+
export const version = '3.0.0-beta.7';
|