stream-chat-angular 4.63.0 → 4.64.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 +20 -36
- 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 +17 -13
- package/esm2015/lib/custom-templates.service.js +8 -27
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +20 -36
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel-preview/channel-preview.component.d.ts +6 -3
- package/lib/custom-templates.service.d.ts +8 -27
- package/lib/types.d.ts +12 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Channel } from 'stream-chat';
|
|
3
3
|
import { ChannelService } from '../channel.service';
|
|
4
|
-
import { DefaultStreamChatGenerics } from '../types';
|
|
4
|
+
import { DefaultStreamChatGenerics, StreamMessage } from '../types';
|
|
5
5
|
import { ChatClientService } from '../chat-client.service';
|
|
6
6
|
import { MessageService } from '../message.service';
|
|
7
|
+
import { CustomTemplatesService } from '../custom-templates.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* The `ChannelPreview` component displays a channel preview in the channel list, it consists of the image, name and latest message of the channel.
|
|
@@ -12,6 +13,7 @@ export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
|
|
|
12
13
|
private channelService;
|
|
13
14
|
private ngZone;
|
|
14
15
|
private chatClientService;
|
|
16
|
+
customTemplatesService: CustomTemplatesService;
|
|
15
17
|
/**
|
|
16
18
|
* The channel to be displayed
|
|
17
19
|
*/
|
|
@@ -20,11 +22,12 @@ export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
|
|
|
20
22
|
isUnreadMessageWasCalled: boolean;
|
|
21
23
|
isUnread: boolean;
|
|
22
24
|
unreadCount: number | undefined;
|
|
23
|
-
|
|
25
|
+
latestMessageText: string;
|
|
26
|
+
latestMessage?: StreamMessage;
|
|
24
27
|
displayAs: 'text' | 'html';
|
|
25
28
|
private subscriptions;
|
|
26
29
|
private canSendReadEvents;
|
|
27
|
-
constructor(channelService: ChannelService, ngZone: NgZone, chatClientService: ChatClientService, messageService: MessageService);
|
|
30
|
+
constructor(channelService: ChannelService, ngZone: NgZone, chatClientService: ChatClientService, messageService: MessageService, customTemplatesService: CustomTemplatesService);
|
|
28
31
|
ngOnInit(): void;
|
|
29
32
|
ngOnDestroy(): void;
|
|
30
33
|
get avatarImage(): string | undefined;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { AttachmentContext, AttachmentListContext, AttachmentPreviewListContext, AvatarContext, ChannelActionsContext, ChannelHeaderInfoContext, ChannelPreviewContext, CommandAutocompleteListItemContext, CustomAttachmentUploadContext, CustomMetadataContext, DateSeparatorContext, DefaultStreamChatGenerics, DeliveredStatusContext, EmojiPickerContext, IconContext, LoadingIndicatorContext, MentionAutcompleteListItemContext, MentionTemplateContext, MessageActionBoxItemContext, MessageActionsBoxContext, MessageContext, MessageInputContext, MessageReactionsContext, ModalContext, NotificationContext, ReadStatusContext, SendingStatusContext, SystemMessageContext, ThreadHeaderContext, TypingIndicatorContext, UnreadMessagesIndicatorContext, UnreadMessagesNotificationContext } from './types';
|
|
3
|
+
import { AttachmentContext, AttachmentListContext, AttachmentPreviewListContext, AvatarContext, ChannelActionsContext, ChannelHeaderInfoContext, ChannelPreviewContext, ChannelPreviewInfoContext, CommandAutocompleteListItemContext, CustomAttachmentUploadContext, CustomMetadataContext, DateSeparatorContext, DefaultStreamChatGenerics, DeliveredStatusContext, EmojiPickerContext, IconContext, LoadingIndicatorContext, MentionAutcompleteListItemContext, MentionTemplateContext, MessageActionBoxItemContext, MessageActionsBoxContext, MessageContext, MessageInputContext, MessageReactionsContext, ModalContext, NotificationContext, ReadStatusContext, SendingStatusContext, SystemMessageContext, ThreadHeaderContext, TypingIndicatorContext, UnreadMessagesIndicatorContext, UnreadMessagesNotificationContext } from './types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* A central location for registering your custom templates to override parts of the chat application.
|
|
7
7
|
*
|
|
8
8
|
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
9
|
+
*
|
|
10
|
+
* You can find the type definitions of the context that is provided for each template [on GitHub](https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angu)
|
|
9
11
|
*/
|
|
10
12
|
export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> {
|
|
11
13
|
/**
|
|
@@ -14,116 +16,96 @@ export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics
|
|
|
14
16
|
mentionAutocompleteItemTemplate$: BehaviorSubject<TemplateRef<MentionAutcompleteListItemContext> | undefined>;
|
|
15
17
|
/**
|
|
16
18
|
* The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](../components/AutocompleteTextareaComponent.mdx))
|
|
17
|
-
*
|
|
18
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
19
19
|
*/
|
|
20
20
|
commandAutocompleteItemTemplate$: BehaviorSubject<TemplateRef<CommandAutocompleteListItemContext> | undefined>;
|
|
21
21
|
/**
|
|
22
22
|
* Template used to display an item in the [channel list](../components/ChannelListComponent.mdx) (instead of the default [channal list item](../components/ChannelPreviewComponent.mdx))
|
|
23
23
|
*
|
|
24
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
25
24
|
*/
|
|
26
25
|
channelPreviewTemplate$: BehaviorSubject<TemplateRef<ChannelPreviewContext<DefaultStreamChatGenerics>> | undefined>;
|
|
27
26
|
/**
|
|
28
27
|
* The message input template used when editing a message (instead of the [default message input](../components/MessageInputComponent.mdx))
|
|
29
28
|
*
|
|
30
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
31
29
|
*/
|
|
32
30
|
messageInputTemplate$: BehaviorSubject<TemplateRef<MessageInputContext> | undefined>;
|
|
33
31
|
/**
|
|
34
32
|
* The template used for displaying a [mention inside a message](../code-examples/mention-actions.mdx)
|
|
35
33
|
*
|
|
36
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
37
34
|
*/
|
|
38
35
|
mentionTemplate$: BehaviorSubject<TemplateRef<MentionTemplateContext> | undefined>;
|
|
39
36
|
/**
|
|
40
37
|
* The template for [emoji picker](../code-examples/emoji-picker.mdx)
|
|
41
38
|
*
|
|
42
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
43
39
|
*/
|
|
44
40
|
emojiPickerTemplate$: BehaviorSubject<TemplateRef<EmojiPickerContext> | undefined>;
|
|
45
41
|
/**
|
|
46
42
|
* The typing indicator template used in the [message list](../components/MessageListComponent.mdx)
|
|
47
43
|
*
|
|
48
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
49
44
|
*/
|
|
50
45
|
typingIndicatorTemplate$: BehaviorSubject<TemplateRef<TypingIndicatorContext> | undefined>;
|
|
51
46
|
/**
|
|
52
47
|
* The template used to display a message in the [message list](../components/MessageListComponent.mdx) (instead of the [default message component](../components/MessageComponent.mdx))
|
|
53
48
|
*
|
|
54
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
55
49
|
*/
|
|
56
50
|
messageTemplate$: BehaviorSubject<TemplateRef<MessageContext> | undefined>;
|
|
57
51
|
/**
|
|
58
52
|
* The template for channel actions displayed in the [channel header](../components/ChannelHeaderComponent.mdx) (by default no channel action is displayed)
|
|
59
53
|
*
|
|
60
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
61
54
|
*/
|
|
62
55
|
channelActionsTemplate$: BehaviorSubject<TemplateRef<ChannelActionsContext<DefaultStreamChatGenerics>> | undefined>;
|
|
63
56
|
/**
|
|
64
57
|
* The template used to display attachments of a [message](../components/MessageComponent.mdx) (instead of the [default attachment list](../components/AttachmentListComponent.mdx))
|
|
65
58
|
*
|
|
66
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
67
59
|
*/
|
|
68
60
|
attachmentListTemplate$: BehaviorSubject<TemplateRef<AttachmentListContext> | undefined>;
|
|
69
61
|
/**
|
|
70
62
|
* The template used to display attachments in the [message input](../components/MessageInputComponent.mdx) component (instead of the [default attachment preview](../components/AttachmentPreviewListComponent.mdx))
|
|
71
63
|
*
|
|
72
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
73
64
|
*/
|
|
74
65
|
attachmentPreviewListTemplate$: BehaviorSubject<TemplateRef<AttachmentPreviewListContext> | undefined>;
|
|
75
66
|
/**
|
|
76
67
|
* The template used to display avatars for channels and users (instead of the [default avatar](../components/AvatarComponent.mdx))
|
|
77
68
|
*
|
|
78
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
79
69
|
*/
|
|
80
70
|
avatarTemplate$: BehaviorSubject<TemplateRef<AvatarContext> | undefined>;
|
|
81
71
|
/**
|
|
82
72
|
* Template for displaying icons (instead of the [default icon component](../components/IconComponent.mdx))
|
|
83
73
|
*
|
|
84
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
85
74
|
*/
|
|
86
75
|
iconTemplate$: BehaviorSubject<TemplateRef<IconContext> | undefined>;
|
|
87
76
|
/**
|
|
88
77
|
* Template for displaying the loading indicator (instead of the [default loading indicator](../components/LoadingIndicatorComponent.mdx))
|
|
89
78
|
*
|
|
90
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
91
79
|
*/
|
|
92
80
|
loadingIndicatorTemplate$: BehaviorSubject<TemplateRef<LoadingIndicatorContext> | undefined>;
|
|
93
81
|
/**
|
|
94
82
|
* Template for displaying the message actions box (instead of the [default message actions box](../components/MessageActionsBoxComponent.mdx))
|
|
95
83
|
*
|
|
96
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
97
84
|
*/
|
|
98
85
|
messageActionsBoxTemplate$: BehaviorSubject<TemplateRef<MessageActionsBoxContext> | undefined>;
|
|
99
86
|
/**
|
|
100
87
|
* The template used for displaying an item in the [message actions box](../components/MessageActionsBoxComponent.mdx)
|
|
101
88
|
*
|
|
102
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
103
89
|
*/
|
|
104
90
|
messageActionsBoxItemTemplate$: BehaviorSubject<TemplateRef<MessageActionBoxItemContext<DefaultStreamChatGenerics>> | undefined>;
|
|
105
91
|
/**
|
|
106
92
|
* The template used to display the reactions of a [message](../components/MessageComponent.mdx), and the selector to add a reaction to a message (instead of the [default message reactions component](../components/MessageReactionsComponent.mdx))
|
|
107
93
|
*
|
|
108
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
109
94
|
*/
|
|
110
95
|
messageReactionsTemplate$: BehaviorSubject<TemplateRef<MessageReactionsContext> | undefined>;
|
|
111
96
|
/**
|
|
112
97
|
* The template used to display a modal window (instead of the [default modal](../components/ModalComponent.mdx))
|
|
113
98
|
*
|
|
114
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
115
99
|
*/
|
|
116
100
|
modalTemplate$: BehaviorSubject<TemplateRef<ModalContext> | undefined>;
|
|
117
101
|
/**
|
|
118
102
|
* The template used to override the [default notification component](../components/NotificationComponent.mdx)
|
|
119
103
|
*
|
|
120
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
121
104
|
*/
|
|
122
105
|
notificationTemplate$: BehaviorSubject<TemplateRef<NotificationContext> | undefined>;
|
|
123
106
|
/**
|
|
124
107
|
* The template used for header of a [thread](../components/ThreadComponent.mdx)
|
|
125
108
|
*
|
|
126
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
127
109
|
*/
|
|
128
110
|
threadHeaderTemplate$: BehaviorSubject<TemplateRef<ThreadHeaderContext> | undefined>;
|
|
129
111
|
/**
|
|
@@ -131,7 +113,6 @@ export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics
|
|
|
131
113
|
*
|
|
132
114
|
* Displayed for the last message sent by the current user, if the message isn't yet read by anyone
|
|
133
115
|
*
|
|
134
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
135
116
|
*/
|
|
136
117
|
deliveredStatusTemplate$: BehaviorSubject<TemplateRef<DeliveredStatusContext> | undefined>;
|
|
137
118
|
/**
|
|
@@ -139,7 +120,6 @@ export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics
|
|
|
139
120
|
*
|
|
140
121
|
* Displayed for the last message sent by the current user, if the message is currently being sent
|
|
141
122
|
*
|
|
142
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
143
123
|
*/
|
|
144
124
|
sendingStatusTemplate$: BehaviorSubject<TemplateRef<SendingStatusContext> | undefined>;
|
|
145
125
|
/**
|
|
@@ -147,25 +127,21 @@ export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics
|
|
|
147
127
|
*
|
|
148
128
|
* Displayed for the last message sent by the current user, if the message is read at least by one user
|
|
149
129
|
*
|
|
150
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
151
130
|
*/
|
|
152
131
|
readStatusTemplate$: BehaviorSubject<TemplateRef<ReadStatusContext> | undefined>;
|
|
153
132
|
/**
|
|
154
133
|
* Template to display custom metadata inside [message component](../components/MessageComponent.mdx)
|
|
155
134
|
*
|
|
156
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
157
135
|
*/
|
|
158
136
|
customMessageMetadataTemplate$: BehaviorSubject<TemplateRef<CustomMetadataContext<T>> | undefined>;
|
|
159
137
|
/**
|
|
160
138
|
* The template used to display additional information about a channel under the channel name inside the [channel header component](../components/ChannelHeaderComponent.mdx)
|
|
161
139
|
*
|
|
162
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
163
140
|
*/
|
|
164
141
|
channelHeaderInfoTemplate$: BehaviorSubject<TemplateRef<ChannelHeaderInfoContext<DefaultStreamChatGenerics>> | undefined>;
|
|
165
142
|
/**
|
|
166
143
|
* The template used for displaying file upload/attachment selector inside the [message input](../components/MessageInputComponent.mdx)
|
|
167
144
|
*
|
|
168
|
-
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
169
145
|
*/
|
|
170
146
|
customAttachmentUploadTemplate$: BehaviorSubject<TemplateRef<CustomAttachmentUploadContext> | undefined>;
|
|
171
147
|
/**
|
|
@@ -232,6 +208,11 @@ export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics
|
|
|
232
208
|
* The template used to display the [message bounce prompt](../components/MessageBouncePromptComponent.mdx)
|
|
233
209
|
*/
|
|
234
210
|
messageBouncePromptTemplate$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* Template used to display the channel information inside the [channel list item](../components/ChannelPreviewComponent.mdx)
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
channelPreviewInfoTemplate$: BehaviorSubject<TemplateRef<ChannelPreviewInfoContext<DefaultStreamChatGenerics>> | undefined>;
|
|
235
216
|
constructor();
|
|
236
217
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTemplatesService<any>, never>;
|
|
237
218
|
static ɵprov: i0.ɵɵInjectableDeclaration<CustomTemplatesService<any>>;
|
package/lib/types.d.ts
CHANGED
|
@@ -89,6 +89,18 @@ export declare type NotificationPayload<T = {}> = {
|
|
|
89
89
|
export declare type ChannelPreviewContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = {
|
|
90
90
|
channel: Channel<T>;
|
|
91
91
|
};
|
|
92
|
+
export declare type ChannelPreviewInfoContext<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> = ChannelPreviewContext & {
|
|
93
|
+
latestMessage?: StreamMessage<T>;
|
|
94
|
+
/**
|
|
95
|
+
* The text of the latest message, or some meta information (for example: "Nothing yet")
|
|
96
|
+
*/
|
|
97
|
+
latestMessageText: string;
|
|
98
|
+
/**
|
|
99
|
+
* The title of the channel, or the name of the channel members
|
|
100
|
+
*/
|
|
101
|
+
channelDisplayTitle: string;
|
|
102
|
+
unreadCount: number;
|
|
103
|
+
};
|
|
92
104
|
export declare type MessageInputContext = {
|
|
93
105
|
isFileUploadEnabled: boolean | undefined;
|
|
94
106
|
areMentionsEnabled: boolean | undefined;
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.64.0';
|