stream-chat-angular 6.0.0-rc.8 → 6.0.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/README.md +2 -2
- package/assets/version.d.ts +1 -1
- package/esm2020/assets/version.mjs +2 -2
- package/esm2020/lib/attachment-configuration.service.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 +5 -5
- package/esm2020/lib/chat-client.service.mjs +2 -2
- package/esm2020/lib/custom-templates.service.mjs +45 -45
- 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 +4 -4
- package/esm2020/lib/message-input/emoji-input.service.mjs +3 -3
- package/esm2020/lib/message-input/message-input-config.service.mjs +3 -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 +4 -4
- 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/message.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/fesm2015/stream-chat-angular.mjs +84 -84
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +84 -84
- 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 +16 -16
- package/lib/chat-client.service.d.ts +3 -3
- package/lib/custom-templates.service.d.ts +44 -44
- 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 +4 -4
- package/lib/message-input/emoji-input.service.d.ts +2 -2
- package/lib/message-input/message-input-config.service.d.ts +3 -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 +3 -3
- package/lib/message-reactions-selector/message-reactions-selector.component.d.ts +2 -2
- package/lib/message-reactions.service.d.ts +3 -3
- package/lib/message.service.d.ts +1 -1
- 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/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -21,10 +21,10 @@ import transliterate from '@stream-io/transliterate';
|
|
|
21
21
|
import * as i8$1 from 'angular-mentions';
|
|
22
22
|
import { MentionModule } from 'angular-mentions';
|
|
23
23
|
|
|
24
|
-
const version = '6.0.0
|
|
24
|
+
const version = '6.0.0';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/
|
|
27
|
+
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/) component displays the currently active notifications.
|
|
28
28
|
*/
|
|
29
29
|
class NotificationService {
|
|
30
30
|
constructor() {
|
|
@@ -200,7 +200,7 @@ class ChatClientService {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
|
-
* Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](/chat/docs/sdk/angular/
|
|
203
|
+
* 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/).
|
|
204
204
|
*/
|
|
205
205
|
disconnectUser() {
|
|
206
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -778,7 +778,7 @@ class ChannelService {
|
|
|
778
778
|
return this._init(options);
|
|
779
779
|
}
|
|
780
780
|
/**
|
|
781
|
-
* Resets the `activeChannel$`, `channels$` and `activeChannelMessages$` Observables. Useful when disconnecting a chat user, use in combination with [`disconnectUser`](/chat/docs/sdk/angular/
|
|
781
|
+
* 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/).
|
|
782
782
|
*/
|
|
783
783
|
reset() {
|
|
784
784
|
var _a, _b;
|
|
@@ -938,7 +938,7 @@ class ChannelService {
|
|
|
938
938
|
}
|
|
939
939
|
/**
|
|
940
940
|
* Uploads files to the channel. If you want to know more about [file uploads](/chat/docs/javascript/file_uploads/) check out the platform documentation.
|
|
941
|
-
* @param uploads the attachments to upload (output of the [`AttachmentService`](/chat/docs/sdk/angular/
|
|
941
|
+
* @param uploads the attachments to upload (output of the [`AttachmentService`](/chat/docs/sdk/angular/services/AttachmentService/))
|
|
942
942
|
* @returns the result of file upload requests
|
|
943
943
|
*/
|
|
944
944
|
uploadAttachments(uploads) {
|
|
@@ -1009,7 +1009,7 @@ class ChannelService {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Deletes an uploaded file by URL. If you want to know more about [file uploads](/chat/docs/javascript/file_uploads/) check out the platform documentation
|
|
1012
|
-
* @param attachmentUpload Attachment to be deleted (output of the [`AttachmentService`](/chat/docs/sdk/angular/
|
|
1012
|
+
* @param attachmentUpload Attachment to be deleted (output of the [`AttachmentService`](/chat/docs/sdk/angular/services/AttachmentService/))
|
|
1013
1013
|
*/
|
|
1014
1014
|
deleteAttachment(attachmentUpload) {
|
|
1015
1015
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1494,7 +1494,7 @@ class ChannelService {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Get the last 1200 reactions of a message in the current active channel. If you need to fetch more reactions please use the [following endpoint](/chat/docs/javascript/send_reaction/#paginating-reactions).
|
|
1497
|
-
* @deprecated use [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/
|
|
1497
|
+
* @deprecated use [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions) instead
|
|
1498
1498
|
* @param messageId
|
|
1499
1499
|
* @returns all reactions of a message
|
|
1500
1500
|
*/
|
|
@@ -2012,7 +2012,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
2012
2012
|
}], ctorParameters: function () { return [{ type: ChatClientService }, { type: i0.NgZone }, { type: NotificationService }]; } });
|
|
2013
2013
|
|
|
2014
2014
|
/**
|
|
2015
|
-
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](/chat/docs/sdk/angular/
|
|
2015
|
+
* The `ThemeService` can be used to change the theme of the chat UI and to customize the theme. Our [theming guide](/chat/docs/sdk/angular/theming/themingv2/) gives a complete overview about the topic.
|
|
2016
2016
|
*/
|
|
2017
2017
|
class ThemeService {
|
|
2018
2018
|
constructor() {
|
|
@@ -2082,7 +2082,7 @@ class MessageService {
|
|
|
2082
2082
|
* Decides if the message content should be formatted as text or HTML
|
|
2083
2083
|
*
|
|
2084
2084
|
* If you display messages as text the following parts are still be displayed as HTML:
|
|
2085
|
-
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](/chat/docs/sdk/angular/
|
|
2085
|
+
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](/chat/docs/sdk/angular/services/CustomTemplatesService/#mentiontemplate)
|
|
2086
2086
|
* - links -> you can customize this by providing you own [`customLinkRenderer`](#customlinkrenderer) method
|
|
2087
2087
|
*/
|
|
2088
2088
|
this.displayAs = 'text';
|
|
@@ -2136,7 +2136,7 @@ class AttachmentService {
|
|
|
2136
2136
|
/**
|
|
2137
2137
|
* You can get and set the list if uploaded custom attachments
|
|
2138
2138
|
*
|
|
2139
|
-
* 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/
|
|
2139
|
+
* 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/).
|
|
2140
2140
|
*/
|
|
2141
2141
|
this.customAttachments$ = new BehaviorSubject([]);
|
|
2142
2142
|
/**
|
|
@@ -2272,7 +2272,7 @@ class AttachmentService {
|
|
|
2272
2272
|
/**
|
|
2273
2273
|
* You can add custom `image`, `video` and `file` attachments using this method.
|
|
2274
2274
|
*
|
|
2275
|
-
* 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/
|
|
2275
|
+
* 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/)
|
|
2276
2276
|
* @param attachment
|
|
2277
2277
|
*
|
|
2278
2278
|
* Will set `isCustomAttachment` to `true` on the attachment. This is a non-standard field, other SDKs will ignore this property.
|
|
@@ -2758,7 +2758,7 @@ class AttachmentConfigurationService {
|
|
|
2758
2758
|
else {
|
|
2759
2759
|
sizeRestriction = undefined;
|
|
2760
2760
|
if (displayWarning) {
|
|
2761
|
-
console.warn(`Invalid value set for height/max-height and/or max-width for HTML element, this can cause scrolling issues inside the message list, more info https://getstream.io/chat/docs/sdk/angular/
|
|
2761
|
+
console.warn(`Invalid value set for height/max-height and/or max-width for HTML element, this can cause scrolling issues inside the message list, more info https://getstream.io/chat/docs/sdk/angular/components/AttachmentListComponent/#image-and-video-sizing, attachment URL: ${url.toString()}`);
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
2764
|
return sizeRestriction;
|
|
@@ -2905,7 +2905,7 @@ const en = {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
2907
|
/**
|
|
2908
|
-
* The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](/chat/docs/sdk/angular/
|
|
2908
|
+
* The `StreamI18nService` can be used to customize the labels of the chat UI. Our [translation guide](/chat/docs/sdk/angular/concepts/translation/) covers this topic in detail.
|
|
2909
2909
|
*/
|
|
2910
2910
|
class StreamI18nService {
|
|
2911
2911
|
constructor(translteService) {
|
|
@@ -3102,183 +3102,183 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3102
3102
|
class CustomTemplatesService {
|
|
3103
3103
|
constructor() {
|
|
3104
3104
|
/**
|
|
3105
|
-
* The autocomplete list item template for mentioning users (used in the [`AutocompleteTextareaComponent`](/chat/docs/sdk/angular/
|
|
3105
|
+
* The autocomplete list item template for mentioning users (used in the [`AutocompleteTextareaComponent`](/chat/docs/sdk/angular/components/AutocompleteTextareaComponent/))
|
|
3106
3106
|
*/
|
|
3107
3107
|
this.mentionAutocompleteItemTemplate$ = new BehaviorSubject(undefined);
|
|
3108
3108
|
/**
|
|
3109
|
-
* The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](/chat/docs/sdk/angular/
|
|
3109
|
+
* The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](/chat/docs/sdk/angular/components/AutocompleteTextareaComponent/))
|
|
3110
3110
|
*/
|
|
3111
3111
|
this.commandAutocompleteItemTemplate$ = new BehaviorSubject(undefined);
|
|
3112
3112
|
/**
|
|
3113
|
-
* Template used to display an item in the [channel list](/chat/docs/sdk/angular/
|
|
3113
|
+
* 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/))
|
|
3114
3114
|
*
|
|
3115
3115
|
*/
|
|
3116
3116
|
this.channelPreviewTemplate$ = new BehaviorSubject(undefined);
|
|
3117
3117
|
/**
|
|
3118
|
-
* The template used for displaying a [mention inside a message](/chat/docs/sdk/angular/
|
|
3118
|
+
* The template used for displaying a [mention inside a message](/chat/docs/sdk/angular/code-examples/mention-actions/)
|
|
3119
3119
|
*
|
|
3120
3120
|
*/
|
|
3121
3121
|
this.mentionTemplate$ = new BehaviorSubject(undefined);
|
|
3122
3122
|
/**
|
|
3123
|
-
* The template for [emoji picker](/chat/docs/sdk/angular/
|
|
3123
|
+
* The template for [emoji picker](/chat/docs/sdk/angular/code-examples/emoji-picker)
|
|
3124
3124
|
*
|
|
3125
3125
|
*/
|
|
3126
3126
|
this.emojiPickerTemplate$ = new BehaviorSubject(undefined);
|
|
3127
3127
|
/**
|
|
3128
|
-
* The typing indicator template used in the [message list](/chat/docs/sdk/angular/
|
|
3128
|
+
* The typing indicator template used in the [message list](/chat/docs/sdk/angular/components/MessageListComponent/)
|
|
3129
3129
|
*
|
|
3130
3130
|
*/
|
|
3131
3131
|
this.typingIndicatorTemplate$ = new BehaviorSubject(undefined);
|
|
3132
3132
|
/**
|
|
3133
|
-
* The template used to display a message in the [message list](/chat/docs/sdk/angular/
|
|
3133
|
+
* 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/))
|
|
3134
3134
|
*
|
|
3135
3135
|
*/
|
|
3136
3136
|
this.messageTemplate$ = new BehaviorSubject(undefined);
|
|
3137
3137
|
/**
|
|
3138
|
-
* The template for channel actions displayed in the [channel header](/chat/docs/sdk/angular/
|
|
3138
|
+
* The template for channel actions displayed in the [channel header](/chat/docs/sdk/angular/components/ChannelHeaderComponent/) (by default no channel action is displayed)
|
|
3139
3139
|
*
|
|
3140
3140
|
*/
|
|
3141
3141
|
this.channelActionsTemplate$ = new BehaviorSubject(undefined);
|
|
3142
3142
|
/**
|
|
3143
|
-
* The template used to display attachments of a [message](/chat/docs/sdk/angular/
|
|
3143
|
+
* 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/))
|
|
3144
3144
|
*
|
|
3145
3145
|
*/
|
|
3146
3146
|
this.attachmentListTemplate$ = new BehaviorSubject(undefined);
|
|
3147
3147
|
/**
|
|
3148
|
-
* The template used to display attachments in the [message input](/chat/docs/sdk/angular/
|
|
3148
|
+
* 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))
|
|
3149
3149
|
*
|
|
3150
3150
|
*/
|
|
3151
3151
|
this.attachmentPreviewListTemplate$ = new BehaviorSubject(undefined);
|
|
3152
3152
|
/**
|
|
3153
|
-
* The template used to display avatars for channels and users (instead of the [default avatar](/chat/docs/sdk/angular/
|
|
3153
|
+
* The template used to display avatars for channels and users (instead of the [default avatar](/chat/docs/sdk/angular/components/AvatarComponent/))
|
|
3154
3154
|
*
|
|
3155
3155
|
*/
|
|
3156
3156
|
this.avatarTemplate$ = new BehaviorSubject(undefined);
|
|
3157
3157
|
/**
|
|
3158
|
-
* Template for displaying icons (instead of the [default icon component](/chat/docs/sdk/angular/
|
|
3158
|
+
* Template for displaying icons (instead of the [default icon component](/chat/docs/sdk/angular/components/IconComponent/))
|
|
3159
3159
|
*
|
|
3160
3160
|
*/
|
|
3161
3161
|
this.iconTemplate$ = new BehaviorSubject(undefined);
|
|
3162
3162
|
/**
|
|
3163
|
-
* Template for displaying the loading indicator (instead of the [default loading indicator](/chat/docs/sdk/angular/
|
|
3163
|
+
* Template for displaying the loading indicator (instead of the [default loading indicator](/chat/docs/sdk/angular/components/LoadingIndicatorComponent/))
|
|
3164
3164
|
*
|
|
3165
3165
|
*/
|
|
3166
3166
|
this.loadingIndicatorTemplate$ = new BehaviorSubject(undefined);
|
|
3167
3167
|
/**
|
|
3168
|
-
* Template for displaying the message actions box (instead of the [default message actions box](/chat/docs/sdk/angular/
|
|
3168
|
+
* Template for displaying the message actions box (instead of the [default message actions box](/chat/docs/sdk/angular/components/MessageActionsBoxComponent/))
|
|
3169
3169
|
*
|
|
3170
3170
|
*/
|
|
3171
3171
|
this.messageActionsBoxTemplate$ = new BehaviorSubject(undefined);
|
|
3172
3172
|
/**
|
|
3173
|
-
* The template used for displaying an item in the [message actions box](/chat/docs/sdk/angular/
|
|
3173
|
+
* The template used for displaying an item in the [message actions box](/chat/docs/sdk/angular/components/MessageActionsBoxComponent/)
|
|
3174
3174
|
*
|
|
3175
3175
|
*/
|
|
3176
3176
|
this.messageActionsBoxItemTemplate$ = new BehaviorSubject(undefined);
|
|
3177
3177
|
/**
|
|
3178
|
-
* The template used to display the reactions of a [message](/chat/docs/sdk/angular/
|
|
3178
|
+
* 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/))
|
|
3179
3179
|
*
|
|
3180
3180
|
*/
|
|
3181
3181
|
this.messageReactionsTemplate$ = new BehaviorSubject(undefined);
|
|
3182
3182
|
/**
|
|
3183
|
-
* The template used to display the reactions of a [message](/chat/docs/sdk/angular/
|
|
3183
|
+
* 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/))
|
|
3184
3184
|
*
|
|
3185
3185
|
*/
|
|
3186
3186
|
this.messageReactionsSelectorTemplate$ = new BehaviorSubject(undefined);
|
|
3187
3187
|
/**
|
|
3188
|
-
* The template used to display a modal window (instead of the [default modal](/chat/docs/sdk/angular/
|
|
3188
|
+
* The template used to display a modal window (instead of the [default modal](/chat/docs/sdk/angular/components/ModalComponent/))
|
|
3189
3189
|
*
|
|
3190
3190
|
*/
|
|
3191
3191
|
this.modalTemplate$ = new BehaviorSubject(undefined);
|
|
3192
3192
|
/**
|
|
3193
|
-
* The template used to override the [default notification component](/chat/docs/sdk/angular/
|
|
3193
|
+
* The template used to override the [default notification component](/chat/docs/sdk/angular/components/NotificationComponent/)
|
|
3194
3194
|
*
|
|
3195
3195
|
*/
|
|
3196
3196
|
this.notificationTemplate$ = new BehaviorSubject(undefined);
|
|
3197
3197
|
/**
|
|
3198
|
-
* The template used for header of a [thread](/chat/docs/sdk/angular/
|
|
3198
|
+
* The template used for header of a [thread](/chat/docs/sdk/angular/components/ThreadComponent/)
|
|
3199
3199
|
*
|
|
3200
3200
|
*/
|
|
3201
3201
|
this.threadHeaderTemplate$ = new BehaviorSubject(undefined);
|
|
3202
3202
|
/**
|
|
3203
|
-
* The template used for displaying the delivered state of the message inside the [message component](/chat/docs/sdk/angular/
|
|
3203
|
+
* The template used for displaying the delivered state of the message inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3204
3204
|
*
|
|
3205
3205
|
* Displayed for the last message sent by the current user, if the message isn't yet read by anyone
|
|
3206
3206
|
*
|
|
3207
3207
|
*/
|
|
3208
3208
|
this.deliveredStatusTemplate$ = new BehaviorSubject(undefined);
|
|
3209
3209
|
/**
|
|
3210
|
-
* The template used for displaying the sending state of the message inside the [message component](/chat/docs/sdk/angular/
|
|
3210
|
+
* The template used for displaying the sending state of the message inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3211
3211
|
*
|
|
3212
3212
|
* Displayed for the last message sent by the current user, if the message is currently being sent
|
|
3213
3213
|
*
|
|
3214
3214
|
*/
|
|
3215
3215
|
this.sendingStatusTemplate$ = new BehaviorSubject(undefined);
|
|
3216
3216
|
/**
|
|
3217
|
-
* The template used for displaying the sent state of the message inside the [message component](/chat/docs/sdk/angular/
|
|
3217
|
+
* The template used for displaying the sent state of the message inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3218
3218
|
*
|
|
3219
3219
|
* Displayed for the last message sent by the current user, if the message is read at least by one user
|
|
3220
3220
|
*
|
|
3221
3221
|
*/
|
|
3222
3222
|
this.readStatusTemplate$ = new BehaviorSubject(undefined);
|
|
3223
3223
|
/**
|
|
3224
|
-
* Template to display custom metadata inside [message component](/chat/docs/sdk/angular/
|
|
3224
|
+
* Template to display custom metadata inside [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3225
3225
|
*
|
|
3226
3226
|
*/
|
|
3227
3227
|
this.customMessageMetadataTemplate$ = new BehaviorSubject(undefined);
|
|
3228
3228
|
/**
|
|
3229
|
-
* The template used to display additional information about a channel under the channel name inside the [channel header component](/chat/docs/sdk/angular/
|
|
3229
|
+
* 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/)
|
|
3230
3230
|
*
|
|
3231
3231
|
*/
|
|
3232
3232
|
this.channelHeaderInfoTemplate$ = new BehaviorSubject(undefined);
|
|
3233
3233
|
/**
|
|
3234
|
-
* The template used for displaying file upload/attachment selector inside the [message input](/chat/docs/sdk/angular/
|
|
3234
|
+
* The template used for displaying file upload/attachment selector inside the [message input](/chat/docs/sdk/angular/components/MessageInputComponent/)
|
|
3235
3235
|
*
|
|
3236
3236
|
*/
|
|
3237
3237
|
this.customAttachmentUploadTemplate$ = new BehaviorSubject(undefined);
|
|
3238
3238
|
/**
|
|
3239
|
-
* The template that can be used to override how a single image attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3239
|
+
* 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/)
|
|
3240
3240
|
*/
|
|
3241
3241
|
this.imageAttachmentTemplate$ = new BehaviorSubject(undefined);
|
|
3242
3242
|
/**
|
|
3243
|
-
* The template that can be used to override how a voice recording attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3243
|
+
* 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
|
|
3244
3244
|
*/
|
|
3245
3245
|
this.voiceRecordingAttachmentTemplate$ = new BehaviorSubject(undefined);
|
|
3246
3246
|
/**
|
|
3247
|
-
* The template that can be used to override how a video attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3247
|
+
* The template that can be used to override how a video attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
3248
3248
|
*/
|
|
3249
3249
|
this.videoAttachmentTemplate$ = new BehaviorSubject(undefined);
|
|
3250
3250
|
/**
|
|
3251
|
-
* The template that can be used to override how image gallery is displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3251
|
+
* The template that can be used to override how image gallery is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
3252
3252
|
*/
|
|
3253
3253
|
this.galleryAttachmentTemplate$ = new BehaviorSubject(undefined);
|
|
3254
3254
|
/**
|
|
3255
|
-
* The template that can be used to override how a file attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3255
|
+
* The template that can be used to override how a file attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
3256
3256
|
*/
|
|
3257
3257
|
this.fileAttachmentTemplate$ = new BehaviorSubject(undefined);
|
|
3258
3258
|
/**
|
|
3259
|
-
* The template that can be used to override how a card attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3259
|
+
* The template that can be used to override how a card attachment is displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
3260
3260
|
*/
|
|
3261
3261
|
this.cardAttachmentTemplate$ = new BehaviorSubject(undefined);
|
|
3262
3262
|
/**
|
|
3263
|
-
* The template that can be used to override how attachment actions are displayed inside the [attachment list](/chat/docs/sdk/angular/
|
|
3263
|
+
* The template that can be used to override how attachment actions are displayed inside the [attachment list](/chat/docs/sdk/angular/components/AttachmentListComponent/)
|
|
3264
3264
|
*/
|
|
3265
3265
|
this.attachmentActionsTemplate$ = new BehaviorSubject(undefined);
|
|
3266
3266
|
/**
|
|
3267
|
-
* The template used to display [system messages](/chat/docs/javascript/silent_messages/) indise the [message component](/chat/docs/sdk/angular/
|
|
3267
|
+
* The template used to display [system messages](/chat/docs/javascript/silent_messages/) indise the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3268
3268
|
*/
|
|
3269
3269
|
this.systemMessageTemplate$ = new BehaviorSubject(undefined);
|
|
3270
3270
|
/**
|
|
3271
|
-
* The template used to display the date separator inside the [message list](/chat/docs/sdk/angular/
|
|
3271
|
+
* The template used to display the date separator inside the [message list](/chat/docs/sdk/angular/components/MessageListComponent/)
|
|
3272
3272
|
*/
|
|
3273
3273
|
this.dateSeparatorTemplate$ = new BehaviorSubject(undefined);
|
|
3274
3274
|
/**
|
|
3275
|
-
* The template used to display unread messages indicator inside the [message list](/chat/docs/sdk/angular/
|
|
3275
|
+
* The template used to display unread messages indicator inside the [message list](/chat/docs/sdk/angular/components/MessageListComponent/) when the channel is opened
|
|
3276
3276
|
*
|
|
3277
3277
|
* This UI element is used to separate unread messages from read messages
|
|
3278
3278
|
*/
|
|
3279
3279
|
this.newMessagesIndicatorTemplate$ = new BehaviorSubject(undefined);
|
|
3280
3280
|
/**
|
|
3281
|
-
* The template used to display unread messages notification inside the [message list](/chat/docs/sdk/angular/
|
|
3281
|
+
* The template used to display unread messages notification inside the [message list](/chat/docs/sdk/angular/components/MessageListComponent/) when the channel is opened
|
|
3282
3282
|
*
|
|
3283
3283
|
* Users can use this notification to jump to the first unread message when it's clicked
|
|
3284
3284
|
*/
|
|
@@ -3292,34 +3292,34 @@ class CustomTemplatesService {
|
|
|
3292
3292
|
*/
|
|
3293
3293
|
this.emptyThreadMessageListPlaceholder$ = new BehaviorSubject(undefined);
|
|
3294
3294
|
/**
|
|
3295
|
-
* The template used to display the [message bounce prompt](/chat/docs/sdk/angular/
|
|
3295
|
+
* The template used to display the [message bounce prompt](/chat/docs/sdk/angular/components/MessageBouncePromptComponent/)
|
|
3296
3296
|
*/
|
|
3297
3297
|
this.messageBouncePromptTemplate$ = new BehaviorSubject(undefined);
|
|
3298
3298
|
/**
|
|
3299
|
-
* Template used to display the channel information inside the [channel list item](/chat/docs/sdk/angular/
|
|
3299
|
+
* Template used to display the channel information inside the [channel list item](/chat/docs/sdk/angular/components/ChannelPreviewComponent/)
|
|
3300
3300
|
*
|
|
3301
3301
|
*/
|
|
3302
3302
|
this.channelPreviewInfoTemplate$ = new BehaviorSubject(undefined);
|
|
3303
3303
|
/**
|
|
3304
|
-
* The template used to display custom attachment previews in the [message input component](/chat/docs/sdk/angular/
|
|
3304
|
+
* The template used to display custom attachment previews in the [message input component](/chat/docs/sdk/angular/components/MessageInputComponent/)
|
|
3305
3305
|
*/
|
|
3306
3306
|
this.customAttachmentPreviewListTemplate$ = new BehaviorSubject(undefined);
|
|
3307
3307
|
/**
|
|
3308
|
-
* The template used to display custom attachments in the [message component](/chat/docs/sdk/angular/
|
|
3308
|
+
* The template used to display custom attachments in the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3309
3309
|
*/
|
|
3310
3310
|
this.customAttachmentListTemplate$ = new BehaviorSubject(undefined);
|
|
3311
3311
|
/**
|
|
3312
|
-
* The template used to display the number of thread replies inside the [message component](/chat/docs/sdk/angular/
|
|
3312
|
+
* The template used to display the number of thread replies inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3313
3313
|
*/
|
|
3314
3314
|
this.threadLinkButton$ = new BehaviorSubject(undefined);
|
|
3315
3315
|
/**
|
|
3316
|
-
* Template to display custom metadata inside the message bubble of the [message component](/chat/docs/sdk/angular/
|
|
3316
|
+
* Template to display custom metadata inside the message bubble of the [message component](/chat/docs/sdk/angular/components/MessageComponent/)
|
|
3317
3317
|
*
|
|
3318
3318
|
* To properly position your template you should override the `grid-template-areas` of the `.str-chat__message-inner` selector
|
|
3319
3319
|
*/
|
|
3320
3320
|
this.customMessageMetadataInsideBubbleTemplate$ = new BehaviorSubject(undefined);
|
|
3321
3321
|
/**
|
|
3322
|
-
* Template to display the text content inside the [message component](/chat/docs/sdk/angular/
|
|
3322
|
+
* Template to display the text content inside the [message component](/chat/docs/sdk/angular/components/MessageComponent/). The default component is [stream-message-text](/chat/docs/sdk/angular/components/MessageTextComponent/)
|
|
3323
3323
|
*/
|
|
3324
3324
|
this.messageTextTemplate$ = new BehaviorSubject(undefined);
|
|
3325
3325
|
/**
|
|
@@ -3340,7 +3340,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3340
3340
|
}], ctorParameters: function () { return []; } });
|
|
3341
3341
|
|
|
3342
3342
|
/**
|
|
3343
|
-
* The `AvatarPlaceholder` component displays the [default avatar](/chat/docs/sdk/angular/
|
|
3343
|
+
* 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.
|
|
3344
3344
|
*/
|
|
3345
3345
|
class AvatarPlaceholderComponent {
|
|
3346
3346
|
constructor(customTemplatesService) {
|
|
@@ -3416,7 +3416,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3416
3416
|
}] } });
|
|
3417
3417
|
|
|
3418
3418
|
/**
|
|
3419
|
-
* The `IconPlaceholder` component displays the [default icons](/chat/docs/sdk/angular/
|
|
3419
|
+
* 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.
|
|
3420
3420
|
*/
|
|
3421
3421
|
class IconPlaceholderComponent {
|
|
3422
3422
|
constructor(customTemplatesService) {
|
|
@@ -3452,7 +3452,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3452
3452
|
}], ctorParameters: function () { return []; } });
|
|
3453
3453
|
|
|
3454
3454
|
/**
|
|
3455
|
-
* The `LoadingInficatorPlaceholder` component displays the [default loading indicator](/chat/docs/sdk/angular/
|
|
3455
|
+
* 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.
|
|
3456
3456
|
*/
|
|
3457
3457
|
class LoadingIndicatorPlaceholderComponent {
|
|
3458
3458
|
constructor(customTemplatesService) {
|
|
@@ -3467,7 +3467,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3467
3467
|
}], ctorParameters: function () { return [{ type: CustomTemplatesService }]; } });
|
|
3468
3468
|
|
|
3469
3469
|
/**
|
|
3470
|
-
* The message actions service provides customization options for the [message actions](/chat/docs/sdk/angular/
|
|
3470
|
+
* The message actions service provides customization options for the [message actions](/chat/docs/sdk/angular/components/MessageActionsBoxComponent)
|
|
3471
3471
|
*/
|
|
3472
3472
|
class MessageActionsService {
|
|
3473
3473
|
constructor(chatClientService, notificationService, channelService) {
|
|
@@ -3661,7 +3661,7 @@ class MessageReactionsService {
|
|
|
3661
3661
|
/**
|
|
3662
3662
|
* The enabled [reactions](/chat/docs/javascript/send_reaction/) and the associated emoji
|
|
3663
3663
|
*
|
|
3664
|
-
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](/chat/docs/sdk/angular/
|
|
3664
|
+
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](/chat/docs/sdk/angular/services/CustomTemplatesService/#messagereactionstemplate/)
|
|
3665
3665
|
*/
|
|
3666
3666
|
this.reactions$ = new BehaviorSubject({
|
|
3667
3667
|
haha: '😂',
|
|
@@ -3718,7 +3718,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3718
3718
|
}], ctorParameters: function () { return [{ type: ChatClientService }, { type: NotificationService }]; } });
|
|
3719
3719
|
|
|
3720
3720
|
/**
|
|
3721
|
-
* The `MessageReactionsSelectorComponent` makes it possible for users to react to a message, the reaction options can be set using the [`MessageReactionsService`](/chat/docs/sdk/angular/
|
|
3721
|
+
* The `MessageReactionsSelectorComponent` makes it possible for users to react to a message, the reaction options can be set using the [`MessageReactionsService`](/chat/docs/sdk/angular/services/MessageReactionsService/). You can read more about [message reactions](/chat/docs/javascript/send_reaction/) in the platform documentation.
|
|
3722
3722
|
*/
|
|
3723
3723
|
class MessageReactionsSelectorComponent {
|
|
3724
3724
|
constructor(channelService, messageReactionsService, cdRef) {
|
|
@@ -3726,7 +3726,7 @@ class MessageReactionsSelectorComponent {
|
|
|
3726
3726
|
this.messageReactionsService = messageReactionsService;
|
|
3727
3727
|
this.cdRef = cdRef;
|
|
3728
3728
|
/**
|
|
3729
|
-
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/
|
|
3729
|
+
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
3730
3730
|
*/
|
|
3731
3731
|
this.ownReactions = [];
|
|
3732
3732
|
this.reactionOptions = [];
|
|
@@ -3776,7 +3776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3776
3776
|
}] } });
|
|
3777
3777
|
|
|
3778
3778
|
/**
|
|
3779
|
-
* 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/
|
|
3779
|
+
* 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.
|
|
3780
3780
|
*/
|
|
3781
3781
|
class MessageActionsBoxComponent {
|
|
3782
3782
|
constructor(customTemplatesService, messageActionsService, cdRef) {
|
|
@@ -3788,7 +3788,7 @@ class MessageActionsBoxComponent {
|
|
|
3788
3788
|
*/
|
|
3789
3789
|
this.isMine = false;
|
|
3790
3790
|
/**
|
|
3791
|
-
* The list of [channel capabilities](/chat/docs/javascript/channel_capabilities/) that are enabled for the current user, the list of [supported interactions](/chat/docs/sdk/angular/
|
|
3791
|
+
* The list of [channel capabilities](/chat/docs/javascript/channel_capabilities/) 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.
|
|
3792
3792
|
*/
|
|
3793
3793
|
this.enabledActions = [];
|
|
3794
3794
|
this.visibleMessageActionItems = [];
|
|
@@ -3894,7 +3894,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3894
3894
|
}] } });
|
|
3895
3895
|
|
|
3896
3896
|
/**
|
|
3897
|
-
* The `Notification` component displays a notification within the [`NotificationList`](/chat/docs/sdk/angular/
|
|
3897
|
+
* The `Notification` component displays a notification within the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/)
|
|
3898
3898
|
*/
|
|
3899
3899
|
class NotificationComponent {
|
|
3900
3900
|
constructor() { }
|
|
@@ -4002,7 +4002,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
4002
4002
|
}] } });
|
|
4003
4003
|
|
|
4004
4004
|
/**
|
|
4005
|
-
* The component watches for the [`channelService.bouncedMessage$` stream](/chat/docs/sdk/angular/
|
|
4005
|
+
* 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.
|
|
4006
4006
|
*
|
|
4007
4007
|
* To bounce messages, you need to set up [semantic filters for moderation](https://getstream.io/automated-moderation/docs/automod_configuration/?q=semantic%20filters).
|
|
4008
4008
|
*/
|
|
@@ -4069,7 +4069,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
4069
4069
|
}] } });
|
|
4070
4070
|
|
|
4071
4071
|
/**
|
|
4072
|
-
* The `Channel` component is a container component that displays the [`ChannelHeader`](/chat/docs/sdk/angular/
|
|
4072
|
+
* 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](/chat/docs/javascript/threads/).
|
|
4073
4073
|
*/
|
|
4074
4074
|
class ChannelComponent {
|
|
4075
4075
|
constructor(channelService, themeService, customTemplatesService) {
|
|
@@ -5125,12 +5125,12 @@ class MessageReactionsComponent {
|
|
|
5125
5125
|
*/
|
|
5126
5126
|
this.messageReactionCounts = {};
|
|
5127
5127
|
/**
|
|
5128
|
-
* List of reactions of a [message](/chat/docs/sdk/angular/
|
|
5129
|
-
* @deprecated you can fetch the reactions using [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/
|
|
5128
|
+
* List of reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
5129
|
+
* @deprecated you can fetch the reactions using [`messageReactionsService.queryReactions()`](/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions)
|
|
5130
5130
|
*/
|
|
5131
5131
|
this.latestReactions = [];
|
|
5132
5132
|
/**
|
|
5133
|
-
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/
|
|
5133
|
+
* List of the user's own reactions of a [message](/chat/docs/sdk/angular/types/stream-message/), used to display the users of a reaction type.
|
|
5134
5134
|
*/
|
|
5135
5135
|
this.ownReactions = [];
|
|
5136
5136
|
this.isLoading = true;
|
|
@@ -5435,7 +5435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
5435
5435
|
}] } });
|
|
5436
5436
|
|
|
5437
5437
|
/**
|
|
5438
|
-
* 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/
|
|
5438
|
+
* 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/).
|
|
5439
5439
|
*/
|
|
5440
5440
|
class MessageComponent {
|
|
5441
5441
|
constructor(chatClientService, channelService, customTemplatesService, cdRef, dateParser, messageActionsService, ngZone, translateService) {
|
|
@@ -5448,7 +5448,7 @@ class MessageComponent {
|
|
|
5448
5448
|
this.ngZone = ngZone;
|
|
5449
5449
|
this.translateService = translateService;
|
|
5450
5450
|
/**
|
|
5451
|
-
* The list of [channel capabilities](/chat/docs/javascript/channel_capabilities/) that are enabled for the current user, the list of [supported interactions](/chat/docs/sdk/angular/
|
|
5451
|
+
* The list of [channel capabilities](/chat/docs/javascript/channel_capabilities/) 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](/chat/docs/javascript/channel_capabilities/).
|
|
5452
5452
|
*/
|
|
5453
5453
|
this.enabledMessageActions = [];
|
|
5454
5454
|
/**
|
|
@@ -6009,12 +6009,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
6009
6009
|
}] } });
|
|
6010
6010
|
|
|
6011
6011
|
/**
|
|
6012
|
-
* If you have an emoji picker in your application, you can propagate the selected emoji to the textarea using this service, more info can be found in [custom emoji picker guide](/chat/docs/sdk/angular/
|
|
6012
|
+
* If you have an emoji picker in your application, you can propagate the selected emoji to the textarea using this service, more info can be found in [custom emoji picker guide](/chat/docs/sdk/angular/code-examples/emoji-picker/)
|
|
6013
6013
|
*/
|
|
6014
6014
|
class EmojiInputService {
|
|
6015
6015
|
constructor() {
|
|
6016
6016
|
/**
|
|
6017
|
-
* If you have an emoji picker in your application, you can propagate the selected emoji to the textarea using this Subject, more info can be found in [custom emoji picker guide](/chat/docs/sdk/angular/
|
|
6017
|
+
* If you have an emoji picker in your application, you can propagate the selected emoji to the textarea using this Subject, more info can be found in [custom emoji picker guide](/chat/docs/sdk/angular/code-examples/emoji-picker/)
|
|
6018
6018
|
*/
|
|
6019
6019
|
this.emojiInput$ = new Subject();
|
|
6020
6020
|
}
|
|
@@ -6053,7 +6053,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
6053
6053
|
}], ctorParameters: function () { return []; } });
|
|
6054
6054
|
|
|
6055
6055
|
/**
|
|
6056
|
-
* The `MessageInputConfigService` is used to keep a consistent configuration among the different [`MessageInput`](/chat/docs/sdk/angular/
|
|
6056
|
+
* The `MessageInputConfigService` is used to keep a consistent configuration among the different [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) components if your UI has more than one input component.
|
|
6057
6057
|
*/
|
|
6058
6058
|
class MessageInputConfigService {
|
|
6059
6059
|
constructor() {
|
|
@@ -6062,7 +6062,7 @@ class MessageInputConfigService {
|
|
|
6062
6062
|
*/
|
|
6063
6063
|
this.isFileUploadEnabled = true;
|
|
6064
6064
|
/**
|
|
6065
|
-
* If true, users can mention other users in messages. You also [need to use the `AutocompleteTextarea`](/chat/docs/sdk/angular/
|
|
6065
|
+
* If true, users can mention other users in messages. You also [need to use the `AutocompleteTextarea`](/chat/docs/sdk/angular/concepts/opt-in-architecture/) for this feature to work.
|
|
6066
6066
|
*/
|
|
6067
6067
|
this.areMentionsEnabled = true;
|
|
6068
6068
|
/**
|
|
@@ -6690,7 +6690,7 @@ class MessageInputComponent {
|
|
|
6690
6690
|
*/
|
|
6691
6691
|
this.autoFocus = true;
|
|
6692
6692
|
/**
|
|
6693
|
-
* By default the input will react to changes in `messageToEdit$` from [`MessageActionsService`](/chat/docs/sdk/angular/
|
|
6693
|
+
* By default the input will react to changes in `messageToEdit$` from [`MessageActionsService`](/chat/docs/sdk/angular/services/MessageActionsService/) and display the message to be edited (taking into account the current `mode`).
|
|
6694
6694
|
*
|
|
6695
6695
|
* If you don't need that behavior, you can turn this of with this flag. In that case you should create your own edit message UI.
|
|
6696
6696
|
*/
|
|
@@ -7158,7 +7158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7158
7158
|
}] } });
|
|
7159
7159
|
|
|
7160
7160
|
/**
|
|
7161
|
-
* The `Textarea` component is used by the [`MessageInput`](/chat/docs/sdk/angular/
|
|
7161
|
+
* The `Textarea` component is used by the [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) component to display the input HTML element where users can type their message.
|
|
7162
7162
|
*/
|
|
7163
7163
|
class TextareaComponent {
|
|
7164
7164
|
constructor(emojiInputService) {
|
|
@@ -7288,7 +7288,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
7288
7288
|
}], ctorParameters: function () { return []; } });
|
|
7289
7289
|
|
|
7290
7290
|
/**
|
|
7291
|
-
* The `AutocompleteTextarea` component is used by the [`MessageInput`](/chat/docs/sdk/angular/
|
|
7291
|
+
* The `AutocompleteTextarea` component is used by the [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) component to display the input HTML element where users can type their message.
|
|
7292
7292
|
*/
|
|
7293
7293
|
class AutocompleteTextareaComponent {
|
|
7294
7294
|
constructor(channelService, chatClientService, transliterationService, emojiInputService, customTemplatesService, cdRef, messageInputConfigService) {
|
|
@@ -7309,11 +7309,11 @@ class AutocompleteTextareaComponent {
|
|
|
7309
7309
|
*/
|
|
7310
7310
|
this.placeholder = '';
|
|
7311
7311
|
/**
|
|
7312
|
-
* If true, users can mention other users in messages. You can also set this input on the [`MessageInput`](/chat/docs/sdk/angular/
|
|
7312
|
+
* If true, users can mention other users in messages. You can also set this input on the [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/#inputs-and-outputs/) component.
|
|
7313
7313
|
*/
|
|
7314
7314
|
this.areMentionsEnabled = true;
|
|
7315
7315
|
/**
|
|
7316
|
-
* The scope for user mentions, either members of the current channel of members of the application. You can also set this input on the [`MessageInput`](/chat/docs/sdk/angular/
|
|
7316
|
+
* The scope for user mentions, either members of the current channel of members of the application. You can also set this input on the [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/#inputs-and-outputs) component.
|
|
7317
7317
|
*/
|
|
7318
7318
|
this.mentionScope = 'channel';
|
|
7319
7319
|
/**
|
|
@@ -8722,7 +8722,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
8722
8722
|
}] } });
|
|
8723
8723
|
|
|
8724
8724
|
/**
|
|
8725
|
-
* The `Thread` component represents a [message thread](/chat/docs/javascript/threads/), it is a container component that displays a thread with a header, [`MessageList`](/chat/docs/sdk/angular/
|
|
8725
|
+
* The `Thread` component represents a [message thread](/chat/docs/javascript/threads/), it is a container component that displays a thread with a header, [`MessageList`](/chat/docs/sdk/angular/components/MessageListComponent) and [`MessageInput`](/chat/docs/sdk/angular/components/MessageInputComponent/) components.
|
|
8726
8726
|
*/
|
|
8727
8727
|
class ThreadComponent {
|
|
8728
8728
|
constructor(customTemplatesService, channelService, chatClientService) {
|