stream-chat-angular 3.0.0-beta.3 → 3.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +80 -52
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +18 -18
- package/esm2015/lib/chat-client.service.js +2 -2
- package/esm2015/lib/custom-templates.service.js +58 -18
- package/esm2015/lib/message-actions-box/message-actions-box.component.js +5 -17
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +80 -52
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +4 -4
- package/lib/chat-client.service.d.ts +3 -3
- package/lib/custom-templates.service.d.ts +57 -17
- package/lib/message-actions-box/message-actions-box.component.d.ts +1 -1
- package/lib/types.d.ts +2 -2
- package/package.json +2 -3
- package/src/assets/styles/assets/EmojiOneColor.woff2 +0 -0
- package/src/assets/styles/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/src/assets/styles/assets/Poweredby_100px-White_VertText.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/src/assets/styles/assets/str-chat__reaction-list-sprite@3x.png +0 -0
- package/src/assets/styles/css/index.css +1 -0
- package/src/assets/styles/css/index.css.map +1 -0
- package/src/assets/styles/scss/ActionsBox.scss +56 -0
- package/src/assets/styles/scss/Attachment.scss +227 -0
- package/src/assets/styles/scss/AttachmentActions.scss +44 -0
- package/src/assets/styles/scss/Audio.scss +112 -0
- package/src/assets/styles/scss/Avatar.scss +79 -0
- package/src/assets/styles/scss/Card.scss +100 -0
- package/src/assets/styles/scss/ChannelHeader.scss +282 -0
- package/src/assets/styles/scss/ChannelList.scss +117 -0
- package/src/assets/styles/scss/ChannelListMessenger.scss +9 -0
- package/src/assets/styles/scss/ChannelPreview.scss +108 -0
- package/src/assets/styles/scss/ChannelSearch.scss +111 -0
- package/src/assets/styles/scss/ChatDown.scss +15 -0
- package/src/assets/styles/scss/DateSeparator.scss +51 -0
- package/src/assets/styles/scss/EditMessageForm.scss +112 -0
- package/src/assets/styles/scss/EventComponent.scss +48 -0
- package/src/assets/styles/scss/Gallery.scss +135 -0
- package/src/assets/styles/scss/InfiniteScrollPaginator.scss +6 -0
- package/src/assets/styles/scss/LoadMoreButton.scss +44 -0
- package/src/assets/styles/scss/LoadingChannels.scss +70 -0
- package/src/assets/styles/scss/LoadingIndicator.scss +38 -0
- package/src/assets/styles/scss/Message.scss +1261 -0
- package/src/assets/styles/scss/MessageActions.scss +112 -0
- package/src/assets/styles/scss/MessageCommerce.scss +564 -0
- package/src/assets/styles/scss/MessageInput.scss +385 -0
- package/src/assets/styles/scss/MessageInputFlat.scss +305 -0
- package/src/assets/styles/scss/MessageList.scss +203 -0
- package/src/assets/styles/scss/MessageLivestream.scss +325 -0
- package/src/assets/styles/scss/MessageNotification.scss +49 -0
- package/src/assets/styles/scss/MessageRepliesCountButton.scss +33 -0
- package/src/assets/styles/scss/MessageTeam.scss +617 -0
- package/src/assets/styles/scss/Modal.scss +77 -0
- package/src/assets/styles/scss/ReactionList.scss +183 -0
- package/src/assets/styles/scss/ReactionSelector.scss +212 -0
- package/src/assets/styles/scss/SendButton.scss +14 -0
- package/src/assets/styles/scss/SimpleReactionsList.scss +76 -0
- package/src/assets/styles/scss/SmallMessageInput.scss +172 -0
- package/src/assets/styles/scss/Thread.scss +306 -0
- package/src/assets/styles/scss/Tooltip.scss +38 -0
- package/src/assets/styles/scss/TypingIndicator.scss +75 -0
- package/src/assets/styles/scss/VirtualMessage.scss +286 -0
- package/src/assets/styles/scss/_base.scss +206 -0
- package/src/assets/styles/scss/_variables.scss +158 -0
- package/src/assets/styles/scss/index.scss +50 -0
- package/src/assets/styles/scss/vendor/emoji-mart.scss +495 -0
- package/src/assets/styles/scss/vendor/mml-react.scss +1749 -0
- package/src/assets/styles/scss/vendor/react-file-utils.scss +378 -0
- package/src/assets/styles/scss/vendor/react-image-gallery.scss +224 -0
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.0.0-beta.
|
|
1
|
+
export declare const version = "3.0.0-beta.6";
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
var version = '3.0.0-beta.
|
|
357
|
+
var version = '3.0.0-beta.6';
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
this.connectionStateSubject = new rxjs.ReplaySubject(1);
|
|
450
450
|
this.appSettingsSubject = new rxjs.BehaviorSubject(undefined);
|
|
451
451
|
this.pendingInvitesSubject = new rxjs.BehaviorSubject([]);
|
|
452
|
-
this.
|
|
452
|
+
this.events$ = this.notificationSubject.asObservable();
|
|
453
453
|
this.connectionState$ = this.connectionStateSubject.asObservable();
|
|
454
454
|
this.appSettings$ = this.appSettingsSubject.asObservable();
|
|
455
455
|
this.pendingInvites$ = this.pendingInvitesSubject.asObservable();
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
return [4 /*yield*/, this.queryChannels()];
|
|
876
876
|
case 1:
|
|
877
877
|
_h.sent();
|
|
878
|
-
this.chatClientService.
|
|
878
|
+
this.chatClientService.events$.subscribe(function (notification) { return void _this.handleNotification(notification); });
|
|
879
879
|
return [2 /*return*/];
|
|
880
880
|
}
|
|
881
881
|
});
|
|
@@ -1218,16 +1218,16 @@
|
|
|
1218
1218
|
});
|
|
1219
1219
|
});
|
|
1220
1220
|
};
|
|
1221
|
-
ChannelService.prototype.handleNotification = function (
|
|
1221
|
+
ChannelService.prototype.handleNotification = function (clientEvent) {
|
|
1222
1222
|
var _this = this;
|
|
1223
|
-
switch (
|
|
1223
|
+
switch (clientEvent.eventType) {
|
|
1224
1224
|
case 'notification.message_new': {
|
|
1225
1225
|
this.ngZone.run(function () {
|
|
1226
1226
|
if (_this.customNewMessageNotificationHandler) {
|
|
1227
|
-
_this.customNewMessageNotificationHandler(
|
|
1227
|
+
_this.customNewMessageNotificationHandler(clientEvent, _this.channelListSetter);
|
|
1228
1228
|
}
|
|
1229
1229
|
else {
|
|
1230
|
-
_this.handleNewMessageNotification(
|
|
1230
|
+
_this.handleNewMessageNotification(clientEvent);
|
|
1231
1231
|
}
|
|
1232
1232
|
});
|
|
1233
1233
|
break;
|
|
@@ -1235,10 +1235,10 @@
|
|
|
1235
1235
|
case 'notification.added_to_channel': {
|
|
1236
1236
|
this.ngZone.run(function () {
|
|
1237
1237
|
if (_this.customAddedToChannelNotificationHandler) {
|
|
1238
|
-
_this.customAddedToChannelNotificationHandler(
|
|
1238
|
+
_this.customAddedToChannelNotificationHandler(clientEvent, _this.channelListSetter);
|
|
1239
1239
|
}
|
|
1240
1240
|
else {
|
|
1241
|
-
_this.handleAddedToChannelNotification(
|
|
1241
|
+
_this.handleAddedToChannelNotification(clientEvent);
|
|
1242
1242
|
}
|
|
1243
1243
|
});
|
|
1244
1244
|
break;
|
|
@@ -1246,27 +1246,27 @@
|
|
|
1246
1246
|
case 'notification.removed_from_channel': {
|
|
1247
1247
|
this.ngZone.run(function () {
|
|
1248
1248
|
if (_this.customRemovedFromChannelNotificationHandler) {
|
|
1249
|
-
_this.customRemovedFromChannelNotificationHandler(
|
|
1249
|
+
_this.customRemovedFromChannelNotificationHandler(clientEvent, _this.channelListSetter);
|
|
1250
1250
|
}
|
|
1251
1251
|
else {
|
|
1252
|
-
_this.handleRemovedFromChannelNotification(
|
|
1252
|
+
_this.handleRemovedFromChannelNotification(clientEvent);
|
|
1253
1253
|
}
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
|
-
ChannelService.prototype.handleRemovedFromChannelNotification = function (
|
|
1259
|
-
var channelIdToBeRemoved =
|
|
1258
|
+
ChannelService.prototype.handleRemovedFromChannelNotification = function (clientEvent) {
|
|
1259
|
+
var channelIdToBeRemoved = clientEvent.event.channel.cid;
|
|
1260
1260
|
this.removeChannelsFromChannelList([channelIdToBeRemoved]);
|
|
1261
1261
|
};
|
|
1262
|
-
ChannelService.prototype.handleNewMessageNotification = function (
|
|
1263
|
-
if (
|
|
1264
|
-
this.addChannelsFromNotification([
|
|
1262
|
+
ChannelService.prototype.handleNewMessageNotification = function (clientEvent) {
|
|
1263
|
+
if (clientEvent.event.channel) {
|
|
1264
|
+
this.addChannelsFromNotification([clientEvent.event.channel]);
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
|
-
ChannelService.prototype.handleAddedToChannelNotification = function (
|
|
1268
|
-
if (
|
|
1269
|
-
this.addChannelsFromNotification([
|
|
1267
|
+
ChannelService.prototype.handleAddedToChannelNotification = function (clientEvent) {
|
|
1268
|
+
if (clientEvent.event.channel) {
|
|
1269
|
+
this.addChannelsFromNotification([clientEvent.event.channel]);
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
1272
|
ChannelService.prototype.addChannelsFromNotification = function (channelResponses) {
|
|
@@ -2214,88 +2214,128 @@
|
|
|
2214
2214
|
}] } });
|
|
2215
2215
|
|
|
2216
2216
|
/**
|
|
2217
|
-
* A central location for registering your custom templates to override parts of the chat application
|
|
2217
|
+
* A central location for registering your custom templates to override parts of the chat application.
|
|
2218
|
+
*
|
|
2219
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2218
2220
|
*/
|
|
2219
2221
|
var CustomTemplatesService = /** @class */ (function () {
|
|
2220
2222
|
function CustomTemplatesService() {
|
|
2221
2223
|
/**
|
|
2222
|
-
* The autocomplete list item template for mentioning users
|
|
2224
|
+
* The autocomplete list item template for mentioning users (used in the [`AutocompleteTextareaComponent`](../components/AutocompleteTextareaComponent.mdx))
|
|
2223
2225
|
*/
|
|
2224
2226
|
this.mentionAutocompleteItemTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2225
2227
|
/**
|
|
2226
|
-
* The autocomplete list item template for commands
|
|
2228
|
+
* The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](../components/AutocompleteTextareaComponent.mdx))
|
|
2229
|
+
*
|
|
2230
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2227
2231
|
*/
|
|
2228
2232
|
this.commandAutocompleteItemTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2229
2233
|
/**
|
|
2230
|
-
*
|
|
2234
|
+
* Template used to display an item in the [channel list](../components/ChannelListComponent.mdx) (instead of the default [channal list item](../components/ChannelPreviewComponent.mdx))
|
|
2235
|
+
*
|
|
2236
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2231
2237
|
*/
|
|
2232
2238
|
this.channelPreviewTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2233
2239
|
/**
|
|
2234
|
-
* The message input template used when editing a message
|
|
2240
|
+
* The message input template used when editing a message (instead of the [default message input](../components/MessageInputComponent.mdx))
|
|
2241
|
+
*
|
|
2242
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2235
2243
|
*/
|
|
2236
2244
|
this.messageInputTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2237
2245
|
/**
|
|
2238
|
-
* The template used for displaying a mention inside a message
|
|
2246
|
+
* The template used for displaying a [mention inside a message](../code-examples/mention-actions.mdx)
|
|
2247
|
+
*
|
|
2248
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2239
2249
|
*/
|
|
2240
2250
|
this.mentionTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2241
2251
|
/**
|
|
2242
|
-
* The template for emoji picker
|
|
2252
|
+
* The template for [emoji picker](../code-examples/emoji-picker.mdx)
|
|
2253
|
+
*
|
|
2254
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2243
2255
|
*/
|
|
2244
2256
|
this.emojiPickerTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2245
2257
|
/**
|
|
2246
|
-
* The typing indicator template used in the message list
|
|
2258
|
+
* The typing indicator template used in the [message list](../components/MessageListComponent.mdx)
|
|
2259
|
+
*
|
|
2260
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2247
2261
|
*/
|
|
2248
2262
|
this.typingIndicatorTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2249
2263
|
/**
|
|
2250
|
-
* The template used to display a message in the message list
|
|
2264
|
+
* The template used to display a message in the [message list](../components/MessageListComponent.mdx) (instead of the [default message component](../components/MessageComponent.mdx))
|
|
2265
|
+
*
|
|
2266
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2251
2267
|
*/
|
|
2252
2268
|
this.messageTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2253
2269
|
/**
|
|
2254
|
-
* The template for channel actions
|
|
2270
|
+
* The template for channel actions displayed in the [channel header](../components/ChannelHeaderComponent.mdx) (by default no channel action is displayed)
|
|
2271
|
+
*
|
|
2272
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2255
2273
|
*/
|
|
2256
2274
|
this.channelActionsTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2257
2275
|
/**
|
|
2258
|
-
* The template used to display attachments of a message
|
|
2276
|
+
* The template used to display attachments of a [message](../components/MessageComponent.mdx) (instead of the [default attachment list](../components/AttachmentListComponent.mdx))
|
|
2277
|
+
*
|
|
2278
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2259
2279
|
*/
|
|
2260
2280
|
this.attachmentListTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2261
2281
|
/**
|
|
2262
|
-
* The template used to display attachments in the message input component
|
|
2282
|
+
* The template used to display attachments in the [message input](../components/MessageInputComponent.mdx) component (instead of the [default attachment preview](../components/AttachmentPreviewListComponent.mdx))
|
|
2283
|
+
*
|
|
2284
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2263
2285
|
*/
|
|
2264
2286
|
this.attachmentPreviewListTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2265
2287
|
/**
|
|
2266
|
-
* The template used to display avatars for channels and users
|
|
2288
|
+
* The template used to display avatars for channels and users (instead of the [default avatar](../components/AvatarComponent.mdx))
|
|
2289
|
+
*
|
|
2290
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2267
2291
|
*/
|
|
2268
2292
|
this.avatarTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2269
2293
|
/**
|
|
2270
|
-
* Template for displaying icons
|
|
2294
|
+
* Template for displaying icons (instead of the [default icon component](../components/IconComponent.mdx))
|
|
2295
|
+
*
|
|
2296
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2271
2297
|
*/
|
|
2272
2298
|
this.iconTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2273
2299
|
/**
|
|
2274
2300
|
* Template for displaying the loading indicator (instead of the [default loading indicator](../components/LoadingIndicatorComponent.mdx))
|
|
2301
|
+
*
|
|
2302
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2275
2303
|
*/
|
|
2276
2304
|
this.loadingIndicatorTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2277
2305
|
/**
|
|
2278
2306
|
* Template for displaying the message actions box (instead of the [default message actions box](../components/MessageActionsBoxComponent.mdx))
|
|
2307
|
+
*
|
|
2308
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2279
2309
|
*/
|
|
2280
2310
|
this.messageActionsBoxTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2281
2311
|
/**
|
|
2282
|
-
* The template used for displaying an item in the [message actions box](../components/MessageActionsBoxComponent.mdx)
|
|
2312
|
+
* The template used for displaying an item in the [message actions box](../components/MessageActionsBoxComponent.mdx)
|
|
2313
|
+
*
|
|
2314
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2283
2315
|
*/
|
|
2284
2316
|
this.messageActionsBoxItemTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2285
2317
|
/**
|
|
2286
|
-
* The template used to display the reactions of a message, and the selector to add a reaction to a message (instead of the [default message reactions component](../components/MessageReactionsComponent.mdx))
|
|
2318
|
+
* The template used to display the reactions of a [message](../components/MessageComponent.mdx), and the selector to add a reaction to a message (instead of the [default message reactions component](../components/MessageReactionsComponent.mdx))
|
|
2319
|
+
*
|
|
2320
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2287
2321
|
*/
|
|
2288
2322
|
this.messageReactionsTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2289
2323
|
/**
|
|
2290
2324
|
* The template used to display a modal window (instead of the [default modal](../components/ModalComponent.mdx))
|
|
2325
|
+
*
|
|
2326
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2291
2327
|
*/
|
|
2292
2328
|
this.modalTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2293
2329
|
/**
|
|
2294
2330
|
* The template used to override the [default notification component](../components/NotificationComponent.mdx)
|
|
2331
|
+
*
|
|
2332
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2295
2333
|
*/
|
|
2296
2334
|
this.notificationTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2297
2335
|
/**
|
|
2298
|
-
* The template used for header of thread
|
|
2336
|
+
* The template used for header of a [thread](../components/ThreadComponent.mdx)
|
|
2337
|
+
*
|
|
2338
|
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
|
|
2299
2339
|
*/
|
|
2300
2340
|
this.threadHeaderTemplate$ = new rxjs.BehaviorSubject(undefined);
|
|
2301
2341
|
}
|
|
@@ -3384,15 +3424,14 @@
|
|
|
3384
3424
|
actionName: 'quote',
|
|
3385
3425
|
actionLabelOrTranslationKey: 'streamChat.Reply',
|
|
3386
3426
|
actionHandler: function (message) { return _this.channelService.selectMessageToQuote(message); },
|
|
3387
|
-
isVisible: function (enabledActions, isMine, message) { return
|
|
3388
|
-
enabledActions.indexOf('quote-message') !== -1) &&
|
|
3427
|
+
isVisible: function (enabledActions, isMine, message) { return enabledActions.indexOf('quote-message') !== -1 &&
|
|
3389
3428
|
!(message === null || message === void 0 ? void 0 : message.quoted_message); },
|
|
3390
3429
|
},
|
|
3391
3430
|
{
|
|
3392
3431
|
actionName: 'pin',
|
|
3393
3432
|
actionLabelOrTranslationKey: function () { var _a; return ((_a = _this.message) === null || _a === void 0 ? void 0 : _a.pinned) ? 'streamChat.Unpin' : 'streamChat.Pin'; },
|
|
3394
3433
|
actionHandler: function () { return alert('Feature not yet implemented'); },
|
|
3395
|
-
isVisible: function (
|
|
3434
|
+
isVisible: function () { return false; },
|
|
3396
3435
|
},
|
|
3397
3436
|
{
|
|
3398
3437
|
actionName: 'flag',
|
|
@@ -3416,15 +3455,7 @@
|
|
|
3416
3455
|
}
|
|
3417
3456
|
});
|
|
3418
3457
|
}); },
|
|
3419
|
-
isVisible: function (enabledActions, isMine) { return
|
|
3420
|
-
enabledActions.indexOf('flag-message') !== -1) &&
|
|
3421
|
-
!isMine; },
|
|
3422
|
-
},
|
|
3423
|
-
{
|
|
3424
|
-
actionName: 'mute',
|
|
3425
|
-
actionLabelOrTranslationKey: 'streamChat.Mute',
|
|
3426
|
-
actionHandler: function () { return alert('Feature not yet implemented'); },
|
|
3427
|
-
isVisible: function (enabledActions) { return enabledActions.indexOf('mute') !== -1; },
|
|
3458
|
+
isVisible: function (enabledActions, isMine) { return enabledActions.indexOf('flag-message') !== -1 && !isMine; },
|
|
3428
3459
|
},
|
|
3429
3460
|
{
|
|
3430
3461
|
actionName: 'edit',
|
|
@@ -3433,10 +3464,7 @@
|
|
|
3433
3464
|
_this.isEditing.emit(true);
|
|
3434
3465
|
_this.isEditModalOpen = true;
|
|
3435
3466
|
},
|
|
3436
|
-
isVisible: function (enabledActions, isMine) { return (
|
|
3437
|
-
enabledActions.indexOf('update-own-message') !== -1) &&
|
|
3438
|
-
isMine) ||
|
|
3439
|
-
enabledActions.indexOf('edit-any') !== -1 ||
|
|
3467
|
+
isVisible: function (enabledActions, isMine) { return (enabledActions.indexOf('update-own-message') !== -1 && isMine) ||
|
|
3440
3468
|
enabledActions.indexOf('update-any-message') !== -1; },
|
|
3441
3469
|
},
|
|
3442
3470
|
{
|