stream-chat-angular 5.9.1 → 5.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/esm2020/assets/version.mjs +2 -2
- package/esm2020/lib/attachment.service.mjs +3 -3
- package/esm2020/lib/avatar-placeholder/avatar-placeholder.component.mjs +2 -2
- package/esm2020/lib/channel/channel.component.mjs +2 -2
- package/esm2020/lib/channel.service.mjs +4 -4
- package/esm2020/lib/chat-client.service.mjs +2 -2
- package/esm2020/lib/custom-templates.service.mjs +44 -44
- package/esm2020/lib/icon/icon-placeholder/icon-placeholder.component.mjs +2 -2
- package/esm2020/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.mjs +2 -2
- package/esm2020/lib/message/message.component.mjs +3 -3
- package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +3 -3
- package/esm2020/lib/message-actions.service.mjs +2 -2
- package/esm2020/lib/message-bounce-prompt/message-bounce-prompt.component.mjs +2 -2
- package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +86 -33
- package/esm2020/lib/message-input/emoji-input.service.mjs +3 -3
- package/esm2020/lib/message-input/message-input-config.service.mjs +10 -3
- package/esm2020/lib/message-input/message-input.component.mjs +2 -2
- package/esm2020/lib/message-input/textarea/textarea.component.mjs +2 -2
- package/esm2020/lib/message-reactions/message-reactions.component.mjs +3 -3
- package/esm2020/lib/message-reactions-selector/message-reactions-selector.component.mjs +3 -3
- package/esm2020/lib/message-reactions.service.mjs +2 -2
- package/esm2020/lib/notification/notification.component.mjs +2 -2
- package/esm2020/lib/notification.service.mjs +2 -2
- package/esm2020/lib/stream-i18n.service.mjs +2 -2
- package/esm2020/lib/theme.service.mjs +2 -2
- package/esm2020/lib/thread/thread.component.mjs +2 -2
- package/esm2020/lib/types.mjs +1 -1
- package/fesm2015/stream-chat-angular.mjs +164 -107
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +162 -104
- package/fesm2020/stream-chat-angular.mjs.map +1 -1
- package/lib/attachment.service.d.ts +3 -3
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +1 -1
- package/lib/channel/channel.component.d.ts +1 -1
- package/lib/channel.service.d.ts +15 -15
- package/lib/chat-client.service.d.ts +3 -3
- package/lib/custom-templates.service.d.ts +43 -43
- package/lib/icon/icon-placeholder/icon-placeholder.component.d.ts +1 -1
- package/lib/icon/loading-indicator-placeholder/loading-indicator-placeholder.component.d.ts +1 -1
- package/lib/message/message.component.d.ts +2 -2
- package/lib/message-actions-box/message-actions-box.component.d.ts +2 -2
- package/lib/message-actions.service.d.ts +2 -2
- package/lib/message-bounce-prompt/message-bounce-prompt.component.d.ts +1 -1
- package/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.d.ts +8 -5
- package/lib/message-input/emoji-input.service.d.ts +2 -2
- package/lib/message-input/message-input-config.service.d.ts +11 -3
- package/lib/message-input/message-input.component.d.ts +6 -6
- package/lib/message-input/textarea/textarea.component.d.ts +2 -2
- package/lib/message-reactions/message-reactions.component.d.ts +2 -2
- package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +2 -2
- package/lib/message-reactions.service.d.ts +2 -2
- package/lib/notification/notification.component.d.ts +1 -1
- package/lib/notification.service.d.ts +1 -1
- package/lib/stream-i18n.service.d.ts +1 -1
- package/lib/theme.service.d.ts +1 -1
- package/lib/thread/thread.component.d.ts +1 -1
- package/lib/types.d.ts +39 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -25,13 +25,13 @@ export declare class AttachmentService<T extends DefaultStreamChatGenerics = Def
|
|
|
25
25
|
*/
|
|
26
26
|
attachmentUploadInProgressCounter$: BehaviorSubject<number>;
|
|
27
27
|
/**
|
|
28
|
-
* Emits the state of the uploads ([`AttachmentUpload[]`](https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angular/src/lib/types.ts)), it adds a state (`success`, `error` or `uploading`) to each file the user selects for upload. It is used by the [`AttachmentPreviewList`](
|
|
28
|
+
* Emits the state of the uploads ([`AttachmentUpload[]`](https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angular/src/lib/types.ts)), it adds a state (`success`, `error` or `uploading`) to each file the user selects for upload. It is used by the [`AttachmentPreviewList`](/chat/docs/sdk/angular/components/AttachmentPreviewListComponent/) to display the attachment previews.
|
|
29
29
|
*/
|
|
30
30
|
attachmentUploads$: Observable<AttachmentUpload[]>;
|
|
31
31
|
/**
|
|
32
32
|
* You can get and set the list if uploaded custom attachments
|
|
33
33
|
*
|
|
34
|
-
* By default the SDK components won't display these, but you can provide your own `customAttachmentPreviewListTemplate$` and `customAttachmentListTemplate$` for the [`CustomTemplatesService`](
|
|
34
|
+
* By default the SDK components won't display these, but you can provide your own `customAttachmentPreviewListTemplate$` and `customAttachmentListTemplate$` for the [`CustomTemplatesService`](/chat/docs/sdk/angular/services/CustomTemplatesService/).
|
|
35
35
|
*/
|
|
36
36
|
customAttachments$: BehaviorSubject<Attachment<T>[]>;
|
|
37
37
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class AttachmentService<T extends DefaultStreamChatGenerics = Def
|
|
|
67
67
|
/**
|
|
68
68
|
* You can add custom `image`, `video` and `file` attachments using this method.
|
|
69
69
|
*
|
|
70
|
-
* Note: If you just want to use your own CDN for file uploads, you don't necessary need this method, you can just specify you own upload function in the [`ChannelService`](
|
|
70
|
+
* Note: If you just want to use your own CDN for file uploads, you don't necessary need this method, you can just specify you own upload function in the [`ChannelService`](/chat/docs/sdk/angular/services/ChannelService/)
|
|
71
71
|
* @param attachment
|
|
72
72
|
*/
|
|
73
73
|
addAttachment(attachment: Attachment<T>): void;
|
|
@@ -4,7 +4,7 @@ import { CustomTemplatesService } from '../custom-templates.service';
|
|
|
4
4
|
import { AvatarContext, AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `AvatarPlaceholder` component displays the [default avatar](
|
|
7
|
+
* The `AvatarPlaceholder` component displays the [default avatar](/chat/docs/sdk/angular/components/AvatarComponent/) unless a [custom template](/chat/docs/sdk/angular/services/CustomTemplatesService/) is provided. This component is used by the SDK internally, you likely won't need to use it.
|
|
8
8
|
*/
|
|
9
9
|
export declare class AvatarPlaceholderComponent implements OnChanges {
|
|
10
10
|
customTemplatesService: CustomTemplatesService;
|
|
@@ -4,7 +4,7 @@ import { ThemeService } from '../theme.service';
|
|
|
4
4
|
import { CustomTemplatesService } from '../custom-templates.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `Channel` component is a container component that displays the [`ChannelHeader`](
|
|
7
|
+
* The `Channel` component is a container component that displays the [`ChannelHeader`](/chat/docs/sdk/angular/components/ChannelHeaderComponent/), [`MessageList`](/chat/docs/sdk/angular/components/MessageListComponent), [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/) and [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) components. You can also provide the [`Thread`](/chat/docs/sdk/angular/components/ThreadComponent/) component to use message [threads](https://getstream.io/chat/docs/javascript/threads/?language=javascript).
|
|
8
8
|
*/
|
|
9
9
|
export declare class ChannelComponent {
|
|
10
10
|
private channelService;
|
package/lib/channel.service.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
20
20
|
* Emits the currently loaded and [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel list.
|
|
21
21
|
*
|
|
22
22
|
* :::important
|
|
23
|
-
* If you want to subscribe to channel events, you need to manually reenter Angular's change detection zone, our [Change detection guide](
|
|
23
|
+
* If you want to subscribe to channel events, you need to manually reenter Angular's change detection zone, our [Change detection guide](/chat/docs/sdk/angular/concepts/change-detection/) explains this in detail.
|
|
24
24
|
* :::
|
|
25
25
|
*/
|
|
26
26
|
channels$: Observable<Channel<T>[] | undefined>;
|
|
@@ -32,7 +32,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
32
32
|
* Emits the currently active channel.
|
|
33
33
|
*
|
|
34
34
|
* :::important
|
|
35
|
-
* If you want to subscribe to channel events, you need to manually reenter Angular's change detection zone, our [Change detection guide](
|
|
35
|
+
* If you want to subscribe to channel events, you need to manually reenter Angular's change detection zone, our [Change detection guide](/chat/docs/sdk/angular/concepts/change-detection/) explains this in detail.
|
|
36
36
|
* :::
|
|
37
37
|
*
|
|
38
38
|
* The active channel will always be marked as read when a new message is received
|
|
@@ -86,7 +86,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
86
86
|
/**
|
|
87
87
|
* If you're using [semantic filters for moderation](https://getstream.io/automated-moderation/docs/automod_configuration/?q=semantic%20filters) you can set up rules for bouncing messages.
|
|
88
88
|
*
|
|
89
|
-
* If a message is bounced, it will be emitted via this `Observable`. The built-in [`MessageBouncePrompt` component](
|
|
89
|
+
* If a message is bounced, it will be emitted via this `Observable`. The built-in [`MessageBouncePrompt` component](/chat/docs/sdk/angular/components/MessageBouncePromptComponent/) will display the bounce option to the user if a bounced message is clicked.
|
|
90
90
|
*/
|
|
91
91
|
bouncedMessage$: BehaviorSubject<StreamMessage<T> | undefined>;
|
|
92
92
|
/**
|
|
@@ -102,55 +102,55 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
102
102
|
*/
|
|
103
103
|
activeChannelUnreadCount?: number;
|
|
104
104
|
/**
|
|
105
|
-
* 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](
|
|
105
|
+
* 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](/chat/docs/sdk/angular/services/ChannelService/#channels/)
|
|
106
106
|
*
|
|
107
107
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
108
108
|
*/
|
|
109
109
|
customNewMessageNotificationHandler?: (clientEvent: ClientEvent, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void) => void;
|
|
110
110
|
/**
|
|
111
|
-
* 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](
|
|
111
|
+
* 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](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
112
112
|
*
|
|
113
113
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
114
114
|
*/
|
|
115
115
|
customAddedToChannelNotificationHandler?: (clientEvent: ClientEvent, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void) => void;
|
|
116
116
|
/**
|
|
117
|
-
* 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](
|
|
117
|
+
* 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](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
118
118
|
*
|
|
119
119
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
120
120
|
*/
|
|
121
121
|
customRemovedFromChannelNotificationHandler?: (clientEvent: ClientEvent, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void) => void;
|
|
122
122
|
/**
|
|
123
|
-
* Custom event handler to call when a channel is deleted, provide an event handler if you want to override the [default channel list ordering](
|
|
123
|
+
* Custom event handler to call when a channel is deleted, provide an event handler if you want to override the [default channel list ordering](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
124
124
|
*
|
|
125
125
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
126
126
|
*/
|
|
127
127
|
customChannelDeletedHandler?: (event: Event, channel: Channel<T>, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void, messageListSetter: (messages: StreamMessage<T>[]) => void, threadListSetter: (messages: StreamMessage<T>[]) => void, parentMessageSetter: (message: StreamMessage<T> | undefined) => void) => void;
|
|
128
128
|
/**
|
|
129
|
-
* Custom event handler to call when a channel is updated, provide an event handler if you want to override the [default channel list ordering](
|
|
129
|
+
* Custom event handler to call when a channel is updated, provide an event handler if you want to override the [default channel list ordering](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
130
130
|
*
|
|
131
131
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
132
132
|
*/
|
|
133
133
|
customChannelUpdatedHandler?: (event: Event, channel: Channel<T>, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void, messageListSetter: (messages: StreamMessage[]) => void, threadListSetter: (messages: StreamMessage[]) => void, parentMessageSetter: (message: StreamMessage | undefined) => void) => void;
|
|
134
134
|
/**
|
|
135
|
-
* Custom event handler to call when a channel is truncated, provide an event handler if you want to override the [default channel list ordering](
|
|
135
|
+
* Custom event handler to call when a channel is truncated, provide an event handler if you want to override the [default channel list ordering](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
136
136
|
*
|
|
137
137
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
138
138
|
*/
|
|
139
139
|
customChannelTruncatedHandler?: (event: Event, channel: Channel<T>, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void, messageListSetter: (messages: StreamMessage<T>[]) => void, threadListSetter: (messages: StreamMessage<T>[]) => void, parentMessageSetter: (message: StreamMessage<T> | undefined) => void) => void;
|
|
140
140
|
/**
|
|
141
|
-
* Custom event handler to call when a channel becomes hidden, provide an event handler if you want to override the [default channel list ordering](
|
|
141
|
+
* Custom event handler to call when a channel becomes hidden, provide an event handler if you want to override the [default channel list ordering](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
142
142
|
*
|
|
143
143
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
144
144
|
*/
|
|
145
145
|
customChannelHiddenHandler?: (event: Event, channel: Channel<T>, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void, messageListSetter: (messages: StreamMessage<T>[]) => void, threadListSetter: (messages: StreamMessage<T>[]) => void, parentMessageSetter: (message: StreamMessage<T> | undefined) => void) => void;
|
|
146
146
|
/**
|
|
147
|
-
* Custom event handler to call when a channel becomes visible, provide an event handler if you want to override the [default channel list ordering](
|
|
147
|
+
* Custom event handler to call when a channel becomes visible, provide an event handler if you want to override the [default channel list ordering](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
148
148
|
*
|
|
149
149
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
150
150
|
*/
|
|
151
151
|
customChannelVisibleHandler?: (event: Event, channel: Channel<T>, channelListSetter: (channels: Channel<T>[], shouldStopWatchingRemovedChannels?: boolean) => void, messageListSetter: (messages: StreamMessage<T>[]) => void, threadListSetter: (messages: StreamMessage<T>[]) => void, parentMessageSetter: (message: StreamMessage<T> | undefined) => void) => void;
|
|
152
152
|
/**
|
|
153
|
-
* Custom event handler to call if a new message received from a channel that is being watched, provide an event handler if you want to override the [default channel list ordering](
|
|
153
|
+
* Custom event handler to call if a new message received from a channel that is being watched, provide an event handler if you want to override the [default channel list ordering](/chat/docs/sdk/angular/services/ChannelService/#channels/).
|
|
154
154
|
*
|
|
155
155
|
* If you're adding a new channel, make sure that it's a [watched](https://getstream.io/chat/docs/javascript/watch_channel/?language=javascript) channel.
|
|
156
156
|
*/
|
|
@@ -288,7 +288,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
288
288
|
messagePageSize: number;
|
|
289
289
|
}): Promise<Channel<T>[]>;
|
|
290
290
|
/**
|
|
291
|
-
* Resets the `activeChannel$`, `channels$` and `activeChannelMessages$` Observables. Useful when disconnecting a chat user, use in combination with [`disconnectUser`](
|
|
291
|
+
* Resets the `activeChannel$`, `channels$` and `activeChannelMessages$` Observables. Useful when disconnecting a chat user, use in combination with [`disconnectUser`](/chat/docs/sdk/angular/services/ChatClientService/#disconnectuser/).
|
|
292
292
|
*/
|
|
293
293
|
reset(): void;
|
|
294
294
|
/**
|
|
@@ -410,13 +410,13 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
|
|
|
410
410
|
deleteMessage(message: StreamMessage, isLocalDelete?: boolean): Promise<void>;
|
|
411
411
|
/**
|
|
412
412
|
* Uploads files to the channel. If you want to know more about [file uploads](https://getstream.io/chat/docs/javascript/file_uploads/?language=javascript) check out the platform documentation.
|
|
413
|
-
* @param uploads the attachments to upload (output of the [`AttachmentService`](
|
|
413
|
+
* @param uploads the attachments to upload (output of the [`AttachmentService`](/chat/docs/sdk/angular/services/AttachmentService/))
|
|
414
414
|
* @returns the result of file upload requests
|
|
415
415
|
*/
|
|
416
416
|
uploadAttachments(uploads: AttachmentUpload[]): Promise<AttachmentUpload[]>;
|
|
417
417
|
/**
|
|
418
418
|
* Deletes an uploaded file by URL. If you want to know more about [file uploads](https://getstream.io/chat/docs/javascript/file_uploads/?language=javascript) check out the platform documentation
|
|
419
|
-
* @param attachmentUpload Attachment to be deleted (output of the [`AttachmentService`](
|
|
419
|
+
* @param attachmentUpload Attachment to be deleted (output of the [`AttachmentService`](/chat/docs/sdk/angular/services/AttachmentService/))
|
|
420
420
|
*/
|
|
421
421
|
deleteAttachment(attachmentUpload: AttachmentUpload): Promise<void>;
|
|
422
422
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
22
22
|
/**
|
|
23
23
|
* 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).
|
|
24
24
|
* :::important
|
|
25
|
-
* 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](
|
|
25
|
+
* 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](/chat/docs/sdk/angular/concepts/change-detection/) explains this in detail.
|
|
26
26
|
* :::
|
|
27
27
|
*/
|
|
28
28
|
events$: Observable<ClientEvent<T>>;
|
|
@@ -35,7 +35,7 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
35
35
|
*/
|
|
36
36
|
connectionState$: Observable<'offline' | 'online'>;
|
|
37
37
|
/**
|
|
38
|
-
* Emits the list of pending invites of the user. It emits every pending invitation during initialization and then extends the list when a new invite is received. More information can be found in the [channel invitations](
|
|
38
|
+
* Emits the list of pending invites of the user. It emits every pending invitation during initialization and then extends the list when a new invite is received. More information can be found in the [channel invitations](/chat/docs/sdk/angular/code-examples/channel-invites/) guide.
|
|
39
39
|
*/
|
|
40
40
|
pendingInvites$: Observable<Channel<T>[]>;
|
|
41
41
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
|
|
|
67
67
|
trackPendingChannelInvites?: boolean;
|
|
68
68
|
}): ConnectAPIResponse<T>;
|
|
69
69
|
/**
|
|
70
|
-
* Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](
|
|
70
|
+
* Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](/chat/docs/sdk/angular/services/ChannelService/#reset/).
|
|
71
71
|
*/
|
|
72
72
|
disconnectUser(): Promise<void>;
|
|
73
73
|
/**
|
|
@@ -11,183 +11,183 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> {
|
|
13
13
|
/**
|
|
14
|
-
* The autocomplete list item template for mentioning users (used in the [`AutocompleteTextareaComponent`](
|
|
14
|
+
* The autocomplete list item template for mentioning users (used in the [`AutocompleteTextareaComponent`](/chat/docs/sdk/angular/components/AutocompleteTextareaComponent/))
|
|
15
15
|
*/
|
|
16
16
|
mentionAutocompleteItemTemplate$: BehaviorSubject<TemplateRef<MentionAutcompleteListItemContext> | undefined>;
|
|
17
17
|
/**
|
|
18
|
-
* The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](
|
|
18
|
+
* The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](/chat/docs/sdk/angular/components/AutocompleteTextareaComponent/))
|
|
19
19
|
*/
|
|
20
20
|
commandAutocompleteItemTemplate$: BehaviorSubject<TemplateRef<CommandAutocompleteListItemContext> | undefined>;
|
|
21
21
|
/**
|
|
22
|
-
* Template used to display an item in the [channel list](
|
|
22
|
+
* Template used to display an item in the [channel list](/chat/docs/sdk/angular/components/ChannelListComponent/) (instead of the default [channal list item](/chat/docs/sdk/angular/components/ChannelPreviewComponent/))
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
channelPreviewTemplate$: BehaviorSubject<TemplateRef<ChannelPreviewContext<DefaultStreamChatGenerics>> | undefined>;
|
|
26
26
|
/**
|
|
27
|
-
* The template used for displaying a [mention inside a message](
|
|
27
|
+
* The template used for displaying a [mention inside a message](/chat/docs/sdk/angular/code-examples/mention-actions/)
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
mentionTemplate$: BehaviorSubject<TemplateRef<MentionTemplateContext> | undefined>;
|
|
31
31
|
/**
|
|
32
|
-
* The template for [emoji picker](
|
|
32
|
+
* The template for [emoji picker](/chat/docs/sdk/angular/code-examples/emoji-picker)
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
35
|
emojiPickerTemplate$: BehaviorSubject<TemplateRef<EmojiPickerContext> | undefined>;
|
|
36
36
|
/**
|
|
37
|
-
* The typing indicator template used in the [message list](
|
|
37
|
+
* The typing indicator template used in the [message list](/chat/docs/sdk/angular/components/MessageListComponent/)
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
typingIndicatorTemplate$: BehaviorSubject<TemplateRef<TypingIndicatorContext> | undefined>;
|
|
41
41
|
/**
|
|
42
|
-
* The template used to display a message in the [message list](
|
|
42
|
+
* The template used to display a message in the [message list](/chat/docs/sdk/angular/components/MessageListComponent/) (instead of the [default message component](/chat/docs/sdk/angular/components/MessageComponent/))
|
|
43
43
|
*
|
|
44
44
|
*/
|
|
45
45
|
messageTemplate$: BehaviorSubject<TemplateRef<MessageContext> | undefined>;
|
|
46
46
|
/**
|
|
47
|
-
* The template for channel actions displayed in the [channel header](
|
|
47
|
+
* The template for channel actions displayed in the [channel header](/chat/docs/sdk/angular/components/ChannelHeaderComponent/) (by default no channel action is displayed)
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
50
|
channelActionsTemplate$: BehaviorSubject<TemplateRef<ChannelActionsContext<DefaultStreamChatGenerics>> | undefined>;
|
|
51
51
|
/**
|
|
52
|
-
* The template used to display attachments of a [message](
|
|
52
|
+
* The template used to display attachments of a [message](/chat/docs/sdk/angular/components/MessageComponent/) (instead of the [default attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/))
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
attachmentListTemplate$: BehaviorSubject<TemplateRef<AttachmentListContext> | undefined>;
|
|
56
56
|
/**
|
|
57
|
-
* The template used to display attachments in the [message input](
|
|
57
|
+
* The template used to display attachments in the [message input](/chat/docs/sdk/angular/components/MessageInputComponent) component (instead of the [default attachment preview](/chat/docs/sdk/angular/components/AttachmentPreviewListComponent))
|
|
58
58
|
*
|
|
59
59
|
*/
|
|
60
60
|
attachmentPreviewListTemplate$: BehaviorSubject<TemplateRef<AttachmentPreviewListContext> | undefined>;
|
|
61
61
|
/**
|
|
62
|
-
* The template used to display avatars for channels and users (instead of the [default avatar](
|
|
62
|
+
* The template used to display avatars for channels and users (instead of the [default avatar](/chat/docs/sdk/angular/components/AvatarComponent/))
|
|
63
63
|
*
|
|
64
64
|
*/
|
|
65
65
|
avatarTemplate$: BehaviorSubject<TemplateRef<AvatarContext> | undefined>;
|
|
66
66
|
/**
|
|
67
|
-
* Template for displaying icons (instead of the [default icon component](
|
|
67
|
+
* Template for displaying icons (instead of the [default icon component](/chat/docs/sdk/angular/components/IconComponent/))
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
70
|
iconTemplate$: BehaviorSubject<TemplateRef<IconContext> | undefined>;
|
|
71
71
|
/**
|
|
72
|
-
* Template for displaying the loading indicator (instead of the [default loading indicator](
|
|
72
|
+
* Template for displaying the loading indicator (instead of the [default loading indicator](/chat/docs/sdk/angular/components/LoadingIndicatorComponent/))
|
|
73
73
|
*
|
|
74
74
|
*/
|
|
75
75
|
loadingIndicatorTemplate$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
76
76
|
/**
|
|
77
|
-
* Template for displaying the message actions box (instead of the [default message actions box](
|
|
77
|
+
* Template for displaying the message actions box (instead of the [default message actions box](/chat/docs/sdk/angular/components/MessageActionsBoxComponent/))
|
|
78
78
|
*
|
|
79
79
|
*/
|
|
80
80
|
messageActionsBoxTemplate$: BehaviorSubject<TemplateRef<MessageActionsBoxContext<DefaultStreamChatGenerics>> | undefined>;
|
|
81
81
|
/**
|
|
82
|
-
* The template used for displaying an item in the [message actions box](
|
|
82
|
+
* The template used for displaying an item in the [message actions box](/chat/docs/sdk/angular/components/MessageActionsBoxComponent/)
|
|
83
83
|
*
|
|
84
84
|
*/
|
|
85
85
|
messageActionsBoxItemTemplate$: BehaviorSubject<TemplateRef<MessageActionBoxItemContext<DefaultStreamChatGenerics>> | undefined>;
|
|
86
86
|
/**
|
|
87
|
-
* The template used to display the reactions of a [message](
|
|
87
|
+
* The template used to display the reactions of a [message](/chat/docs/sdk/angular/components/MessageComponent/), and the selector to add a reaction to a message (instead of the [default message reactions component](/chat/docs/sdk/angular/components/MessageReactionsComponent/))
|
|
88
88
|
*
|
|
89
89
|
*/
|
|
90
90
|
messageReactionsTemplate$: BehaviorSubject<TemplateRef<MessageReactionsContext> | undefined>;
|
|
91
91
|
/**
|
|
92
|
-
* The template used to display the reactions of a [message](
|
|
92
|
+
* The template used to display the reactions of a [message](/chat/docs/sdk/angular/components/MessageComponent/), and the selector to add a reaction to a message (instead of the [default message reactions component](/chat/docs/sdk/angular/components/MessageReactionsComponent/))
|
|
93
93
|
*
|
|
94
94
|
*/
|
|
95
95
|
messageReactionsSelectorTemplate$: BehaviorSubject<TemplateRef<MessageReactionsSelectorContext> | undefined>;
|
|
96
96
|
/**
|
|
97
|
-
* The template used to display a modal window (instead of the [default modal](
|
|
97
|
+
* The template used to display a modal window (instead of the [default modal](/chat/docs/sdk/angular/components/ModalComponent/))
|
|
98
98
|
*
|
|
99
99
|
*/
|
|
100
100
|
modalTemplate$: BehaviorSubject<TemplateRef<ModalContext> | undefined>;
|
|
101
101
|
/**
|
|
102
|
-
* The template used to override the [default notification component](
|
|
102
|
+
* The template used to override the [default notification component](/chat/docs/sdk/angular/components/NotificationComponent/)
|
|
103
103
|
*
|
|
104
104
|
*/
|
|
105
105
|
notificationTemplate$: BehaviorSubject<TemplateRef<NotificationContext> | undefined>;
|
|
106
106
|
/**
|
|
107
|
-
* The template used for header of a [thread](
|
|
107
|
+
* The template used for header of a [thread](/chat/docs/sdk/angular/components/ThreadComponent/)
|
|
108
108
|
*
|
|
109
109
|
*/
|
|
110
110
|
threadHeaderTemplate$: BehaviorSubject<TemplateRef<ThreadHeaderContext> | undefined>;
|
|
111
111
|
/**
|
|
112
|
-
* The template used for displaying the delivered state of the message inside the [message component](
|
|
112
|
+
* The template used for displaying the delivered state of the message inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
113
113
|
*
|
|
114
114
|
* Displayed for the last message sent by the current user, if the message isn't yet read by anyone
|
|
115
115
|
*
|
|
116
116
|
*/
|
|
117
117
|
deliveredStatusTemplate$: BehaviorSubject<TemplateRef<DeliveredStatusContext> | undefined>;
|
|
118
118
|
/**
|
|
119
|
-
* The template used for displaying the sending state of the message inside the [message component](
|
|
119
|
+
* The template used for displaying the sending state of the message inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
120
120
|
*
|
|
121
121
|
* Displayed for the last message sent by the current user, if the message is currently being sent
|
|
122
122
|
*
|
|
123
123
|
*/
|
|
124
124
|
sendingStatusTemplate$: BehaviorSubject<TemplateRef<SendingStatusContext> | undefined>;
|
|
125
125
|
/**
|
|
126
|
-
* The template used for displaying the sent state of the message inside the [message component](
|
|
126
|
+
* The template used for displaying the sent state of the message inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
127
127
|
*
|
|
128
128
|
* Displayed for the last message sent by the current user, if the message is read at least by one user
|
|
129
129
|
*
|
|
130
130
|
*/
|
|
131
131
|
readStatusTemplate$: BehaviorSubject<TemplateRef<ReadStatusContext> | undefined>;
|
|
132
132
|
/**
|
|
133
|
-
* Template to display custom metadata inside [message component](
|
|
133
|
+
* Template to display custom metadata inside [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
134
134
|
*
|
|
135
135
|
*/
|
|
136
136
|
customMessageMetadataTemplate$: BehaviorSubject<TemplateRef<CustomMetadataContext<T>> | undefined>;
|
|
137
137
|
/**
|
|
138
|
-
* The template used to display additional information about a channel under the channel name inside the [channel header component](
|
|
138
|
+
* The template used to display additional information about a channel under the channel name inside the [channel header component](/chat/docs/sdk/angular/components/ChannelHeaderComponent/)
|
|
139
139
|
*
|
|
140
140
|
*/
|
|
141
141
|
channelHeaderInfoTemplate$: BehaviorSubject<TemplateRef<ChannelHeaderInfoContext<DefaultStreamChatGenerics>> | undefined>;
|
|
142
142
|
/**
|
|
143
|
-
* The template used for displaying file upload/attachment selector inside the [message input](
|
|
143
|
+
* The template used for displaying file upload/attachment selector inside the [message input](/chat/docs/sdk/angular/components/MessageInputComponent/)
|
|
144
144
|
*
|
|
145
145
|
*/
|
|
146
146
|
customAttachmentUploadTemplate$: BehaviorSubject<TemplateRef<CustomAttachmentUploadContext> | undefined>;
|
|
147
147
|
/**
|
|
148
|
-
* The template that can be used to override how a single image attachment is displayed inside the [attachment list](
|
|
148
|
+
* The template that can be used to override how a single image attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
149
149
|
*/
|
|
150
150
|
imageAttachmentTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
151
151
|
/**
|
|
152
|
-
* The template that can be used to override how a voice recording attachment is displayed inside the [attachment list](
|
|
152
|
+
* The template that can be used to override how a voice recording attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/), by default the [voice recording component](/chat/docs/sdk/angular/components/VoiceRecordingComponent/) is used
|
|
153
153
|
*/
|
|
154
154
|
voiceRecordingAttachmentTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
155
155
|
/**
|
|
156
|
-
* The template that can be used to override how a video attachment is displayed inside the [attachment list](
|
|
156
|
+
* The template that can be used to override how a video attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
157
157
|
*/
|
|
158
158
|
videoAttachmentTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
159
159
|
/**
|
|
160
|
-
* The template that can be used to override how image gallery is displayed inside the [attachment list](
|
|
160
|
+
* The template that can be used to override how image gallery is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
161
161
|
*/
|
|
162
162
|
galleryAttachmentTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
163
163
|
/**
|
|
164
|
-
* The template that can be used to override how a file attachment is displayed inside the [attachment list](
|
|
164
|
+
* The template that can be used to override how a file attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
165
165
|
*/
|
|
166
166
|
fileAttachmentTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
167
167
|
/**
|
|
168
|
-
* The template that can be used to override how a card attachment is displayed inside the [attachment list](
|
|
168
|
+
* The template that can be used to override how a card attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
169
169
|
*/
|
|
170
170
|
cardAttachmentTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
171
171
|
/**
|
|
172
|
-
* The template that can be used to override how attachment actions are displayed inside the [attachment list](
|
|
172
|
+
* The template that can be used to override how attachment actions are displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
173
173
|
*/
|
|
174
174
|
attachmentActionsTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
|
|
175
175
|
/**
|
|
176
|
-
* The template used to display [system messages](https://getstream.io/chat/docs/javascript/silent_messages/?language=javascript&q=system) indise the [message component](
|
|
176
|
+
* The template used to display [system messages](https://getstream.io/chat/docs/javascript/silent_messages/?language=javascript&q=system) indise the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
177
177
|
*/
|
|
178
178
|
systemMessageTemplate$: BehaviorSubject<TemplateRef<SystemMessageContext> | undefined>;
|
|
179
179
|
/**
|
|
180
|
-
* The template used to display the date separator inside the [message list](
|
|
180
|
+
* The template used to display the date separator inside the [message list](/chat/docs/sdk/angular/components/MessageListComponent/)
|
|
181
181
|
*/
|
|
182
182
|
dateSeparatorTemplate$: BehaviorSubject<TemplateRef<DateSeparatorContext> | undefined>;
|
|
183
183
|
/**
|
|
184
|
-
* The template used to display unread messages indicator inside the [message list](
|
|
184
|
+
* The template used to display unread messages indicator inside the [message list](/chat/docs/sdk/angular/components/MessageListComponent/) when the channel is opened
|
|
185
185
|
*
|
|
186
186
|
* This UI element is used to separate unread messages from read messages
|
|
187
187
|
*/
|
|
188
188
|
newMessagesIndicatorTemplate$: BehaviorSubject<TemplateRef<UnreadMessagesIndicatorContext> | undefined>;
|
|
189
189
|
/**
|
|
190
|
-
* The template used to display unread messages notification inside the [message list](
|
|
190
|
+
* The template used to display unread messages notification inside the [message list](/chat/docs/sdk/angular/components/MessageListComponent/) when the channel is opened
|
|
191
191
|
*
|
|
192
192
|
* Users can use this notification to jump to the first unread message when it's clicked
|
|
193
193
|
*/
|
|
@@ -201,28 +201,28 @@ export declare class CustomTemplatesService<T extends DefaultStreamChatGenerics
|
|
|
201
201
|
*/
|
|
202
202
|
emptyThreadMessageListPlaceholder$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
203
203
|
/**
|
|
204
|
-
* The template used to display the [message bounce prompt](
|
|
204
|
+
* The template used to display the [message bounce prompt](/chat/docs/sdk/angular/components/MessageBouncePromptComponent/)
|
|
205
205
|
*/
|
|
206
206
|
messageBouncePromptTemplate$: BehaviorSubject<TemplateRef<void> | undefined>;
|
|
207
207
|
/**
|
|
208
|
-
* Template used to display the channel information inside the [channel list item](
|
|
208
|
+
* Template used to display the channel information inside the [channel list item](/chat/docs/sdk/angular/components/ChannelPreviewComponent/)
|
|
209
209
|
*
|
|
210
210
|
*/
|
|
211
211
|
channelPreviewInfoTemplate$: BehaviorSubject<TemplateRef<ChannelPreviewInfoContext<DefaultStreamChatGenerics>> | undefined>;
|
|
212
212
|
/**
|
|
213
|
-
* The template used to display custom attachment previews in the [message input component](
|
|
213
|
+
* The template used to display custom attachment previews in the [message input component](/chat/docs/sdk/angular/components/MessageInputComponent/)
|
|
214
214
|
*/
|
|
215
215
|
customAttachmentPreviewListTemplate$: BehaviorSubject<TemplateRef<CustomAttachmentPreviewListContext<DefaultStreamChatGenerics>> | undefined>;
|
|
216
216
|
/**
|
|
217
|
-
* The template used to display custom attachments in the [message component](
|
|
217
|
+
* The template used to display custom attachments in the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
218
218
|
*/
|
|
219
219
|
customAttachmentListTemplate$: BehaviorSubject<TemplateRef<CustomAttachmentListContext<DefaultStreamChatGenerics>> | undefined>;
|
|
220
220
|
/**
|
|
221
|
-
* The template used to display the number of thread replies inside the [message component](
|
|
221
|
+
* The template used to display the number of thread replies inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
222
222
|
*/
|
|
223
223
|
threadLinkButton$: BehaviorSubject<TemplateRef<ThreadReplyButtonContext<DefaultStreamChatGenerics>> | undefined>;
|
|
224
224
|
/**
|
|
225
|
-
* Template to display custom metadata inside the message bubble of the [message component](
|
|
225
|
+
* Template to display custom metadata inside the message bubble of the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
226
226
|
*
|
|
227
227
|
* To properly position your template you should override the `grid-template-areas` of the `.str-chat__message-inner` selector
|
|
228
228
|
*/
|
|
@@ -4,7 +4,7 @@ import { IconContext } from '../../types';
|
|
|
4
4
|
import { CustomTemplatesService } from '../../custom-templates.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `IconPlaceholder` component displays the [default icons](
|
|
7
|
+
* The `IconPlaceholder` component displays the [default icons](/chat/docs/sdk/angular/components/IconComponent/) unless a [custom template](/chat/docs/sdk/angular/services/CustomTemplatesService/) is provided. This component is used by the SDK internally, you likely won't need to use it.
|
|
8
8
|
*/
|
|
9
9
|
export declare class IconPlaceholderComponent implements OnChanges {
|
|
10
10
|
customTemplatesService: CustomTemplatesService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomTemplatesService } from '../../custom-templates.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
* The `LoadingInficatorPlaceholder` component displays the [default loading indicator](
|
|
4
|
+
* The `LoadingInficatorPlaceholder` component displays the [default loading indicator](/chat/docs/sdk/angular/components/LoadingIndicatorComponent/) unless a [custom template](/chat/docs/sdk/angular/services/CustomTemplatesService/) is provided. This component is used by the SDK internally, you likely won't need to use it.
|
|
5
5
|
*/
|
|
6
6
|
export declare class LoadingIndicatorPlaceholderComponent {
|
|
7
7
|
customTemplatesService: CustomTemplatesService;
|
|
@@ -17,7 +17,7 @@ declare type MessagePart = {
|
|
|
17
17
|
user?: UserResponse;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* The `Message` component displays a message with additional information such as sender and date, and enables [interaction with the message (i.e. edit or react)](
|
|
20
|
+
* The `Message` component displays a message with additional information such as sender and date, and enables [interaction with the message (i.e. edit or react)](/chat/docs/sdk/angular/concepts/message-interactions/).
|
|
21
21
|
*/
|
|
22
22
|
export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
23
23
|
private chatClientService;
|
|
@@ -34,7 +34,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
|
|
|
34
34
|
*/
|
|
35
35
|
message: StreamMessage | undefined;
|
|
36
36
|
/**
|
|
37
|
-
* The list of [channel capabilities](https://getstream.io/chat/docs/javascript/channel_capabilities/?language=javascript) that are enabled for the current user, the list of [supported interactions](
|
|
37
|
+
* The list of [channel capabilities](https://getstream.io/chat/docs/javascript/channel_capabilities/?language=javascript) that are enabled for the current user, the list of [supported interactions](/chat/docs/sdk/angular/concepts/message-interactions/) can be found in our message interaction guide. Unathorized actions won't be displayed on the UI. The [`MessageList`](/chat/docs/sdk/angular/components/MessageListComponent/) component automatically sets this based on [channel capabilities](https://getstream.io/chat/docs/javascript/channel_capabilities/?language=javascript).
|
|
38
38
|
*/
|
|
39
39
|
enabledMessageActions: string[];
|
|
40
40
|
/**
|
|
@@ -4,7 +4,7 @@ import { CustomMessageActionItem, MessageActionBoxItemContext, MessageActionItem
|
|
|
4
4
|
import { MessageActionsService } from '../message-actions.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* The `MessageActionsBox` component displays a list of message actions (i.e edit), that can be opened or closed. You can find the [list of the supported actions](
|
|
7
|
+
* The `MessageActionsBox` component displays a list of message actions (i.e edit), that can be opened or closed. You can find the [list of the supported actions](/chat/docs/sdk/angular/concepts/message-interactions/) in the message interaction guide.
|
|
8
8
|
*/
|
|
9
9
|
export declare class MessageActionsBoxComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
10
10
|
readonly customTemplatesService: CustomTemplatesService;
|
|
@@ -23,7 +23,7 @@ export declare class MessageActionsBoxComponent implements OnInit, OnChanges, On
|
|
|
23
23
|
*/
|
|
24
24
|
messageTextHtmlElement: HTMLElement | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* The list of [channel capabilities](https://getstream.io/chat/docs/javascript/channel_capabilities/?language=javascript) that are enabled for the current user, the list of [supported interactions](
|
|
26
|
+
* The list of [channel capabilities](https://getstream.io/chat/docs/javascript/channel_capabilities/?language=javascript) that are enabled for the current user, the list of [supported interactions](/chat/docs/sdk/angular/concepts/message-interactions) can be found in our message interaction guide. Unathorized actions won't be displayed on the UI.
|
|
27
27
|
*/
|
|
28
28
|
enabledActions: string[];
|
|
29
29
|
messageActionItemTemplate: TemplateRef<MessageActionBoxItemContext> | undefined;
|
|
@@ -5,7 +5,7 @@ import { NotificationService } from './notification.service';
|
|
|
5
5
|
import { ChannelService } from './channel.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* The message actions service provides customization options for the [message actions](
|
|
8
|
+
* The message actions service provides customization options for the [message actions](/chat/docs/sdk/angular/components/MessageActionsBoxComponent)
|
|
9
9
|
*/
|
|
10
10
|
export declare class MessageActionsService<T extends DefaultStreamChatGenerics = DefaultStreamChatGenerics> {
|
|
11
11
|
private chatClientService;
|
|
@@ -24,7 +24,7 @@ export declare class MessageActionsService<T extends DefaultStreamChatGenerics =
|
|
|
24
24
|
*/
|
|
25
25
|
customActions$: BehaviorSubject<CustomMessageActionItem<DefaultStreamChatGenerics>[]>;
|
|
26
26
|
/**
|
|
27
|
-
* By default the [`MessageComponent`](
|
|
27
|
+
* By default the [`MessageComponent`](/chat/docs/sdk/angular/components/MessageComponent/) will display the [`MessageActionsBoxComponent`](/chat/docs/sdk/angular/components/MessageActionsBoxComponent/). You can override that behavior by providing your own event handler.
|
|
28
28
|
*/
|
|
29
29
|
customActionClickHandler?: (details: MessageActionsClickDetails<T>) => void;
|
|
30
30
|
private hasDisplayedClipboardWarning;
|
|
@@ -5,7 +5,7 @@ import { MessageActionsService } from '../message-actions.service';
|
|
|
5
5
|
import { StreamMessage } from '../types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* The component watches for the [`channelService.bouncedMessage$` stream](
|
|
8
|
+
* The component watches for the [`channelService.bouncedMessage$` stream](/chat/docs/sdk/angular/services/ChannelService/#bouncedmessage) and opens the bounce modal if a message is emitted.
|
|
9
9
|
*
|
|
10
10
|
* To bounce messages, you need to set up [semantic filters for moderation](https://getstream.io/automated-moderation/docs/automod_configuration/?q=semantic%20filters).
|
|
11
11
|
*/
|