stream-chat-angular 4.63.0 → 4.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare const version = "4.63.0";
1
+ export declare const version = "4.64.0";
@@ -356,7 +356,7 @@
356
356
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
357
357
  }
358
358
 
359
- var version = '4.63.0';
359
+ var version = '4.64.0';
360
360
 
361
361
  /**
362
362
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -3387,6 +3387,8 @@
3387
3387
  * A central location for registering your custom templates to override parts of the chat application.
3388
3388
  *
3389
3389
  * 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).
3390
+ *
3391
+ * You can find the type definitions of the context that is provided for each template [on GitHub](https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angu)
3390
3392
  */
3391
3393
  var CustomTemplatesService = /** @class */ (function () {
3392
3394
  function CustomTemplatesService() {
@@ -3396,116 +3398,96 @@
3396
3398
  this.mentionAutocompleteItemTemplate$ = new rxjs.BehaviorSubject(undefined);
3397
3399
  /**
3398
3400
  * The autocomplete list item template for commands (used in the [`AutocompleteTextareaComponent`](../components/AutocompleteTextareaComponent.mdx))
3399
- *
3400
- * 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).
3401
3401
  */
3402
3402
  this.commandAutocompleteItemTemplate$ = new rxjs.BehaviorSubject(undefined);
3403
3403
  /**
3404
3404
  * Template used to display an item in the [channel list](../components/ChannelListComponent.mdx) (instead of the default [channal list item](../components/ChannelPreviewComponent.mdx))
3405
3405
  *
3406
- * 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).
3407
3406
  */
3408
3407
  this.channelPreviewTemplate$ = new rxjs.BehaviorSubject(undefined);
3409
3408
  /**
3410
3409
  * The message input template used when editing a message (instead of the [default message input](../components/MessageInputComponent.mdx))
3411
3410
  *
3412
- * 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).
3413
3411
  */
3414
3412
  this.messageInputTemplate$ = new rxjs.BehaviorSubject(undefined);
3415
3413
  /**
3416
3414
  * The template used for displaying a [mention inside a message](../code-examples/mention-actions.mdx)
3417
3415
  *
3418
- * 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).
3419
3416
  */
3420
3417
  this.mentionTemplate$ = new rxjs.BehaviorSubject(undefined);
3421
3418
  /**
3422
3419
  * The template for [emoji picker](../code-examples/emoji-picker.mdx)
3423
3420
  *
3424
- * 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).
3425
3421
  */
3426
3422
  this.emojiPickerTemplate$ = new rxjs.BehaviorSubject(undefined);
3427
3423
  /**
3428
3424
  * The typing indicator template used in the [message list](../components/MessageListComponent.mdx)
3429
3425
  *
3430
- * 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).
3431
3426
  */
3432
3427
  this.typingIndicatorTemplate$ = new rxjs.BehaviorSubject(undefined);
3433
3428
  /**
3434
3429
  * The template used to display a message in the [message list](../components/MessageListComponent.mdx) (instead of the [default message component](../components/MessageComponent.mdx))
3435
3430
  *
3436
- * 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).
3437
3431
  */
3438
3432
  this.messageTemplate$ = new rxjs.BehaviorSubject(undefined);
3439
3433
  /**
3440
3434
  * The template for channel actions displayed in the [channel header](../components/ChannelHeaderComponent.mdx) (by default no channel action is displayed)
3441
3435
  *
3442
- * 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).
3443
3436
  */
3444
3437
  this.channelActionsTemplate$ = new rxjs.BehaviorSubject(undefined);
3445
3438
  /**
3446
3439
  * The template used to display attachments of a [message](../components/MessageComponent.mdx) (instead of the [default attachment list](../components/AttachmentListComponent.mdx))
3447
3440
  *
3448
- * 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).
3449
3441
  */
3450
3442
  this.attachmentListTemplate$ = new rxjs.BehaviorSubject(undefined);
3451
3443
  /**
3452
3444
  * The template used to display attachments in the [message input](../components/MessageInputComponent.mdx) component (instead of the [default attachment preview](../components/AttachmentPreviewListComponent.mdx))
3453
3445
  *
3454
- * 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).
3455
3446
  */
3456
3447
  this.attachmentPreviewListTemplate$ = new rxjs.BehaviorSubject(undefined);
3457
3448
  /**
3458
3449
  * The template used to display avatars for channels and users (instead of the [default avatar](../components/AvatarComponent.mdx))
3459
3450
  *
3460
- * 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).
3461
3451
  */
3462
3452
  this.avatarTemplate$ = new rxjs.BehaviorSubject(undefined);
3463
3453
  /**
3464
3454
  * Template for displaying icons (instead of the [default icon component](../components/IconComponent.mdx))
3465
3455
  *
3466
- * 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).
3467
3456
  */
3468
3457
  this.iconTemplate$ = new rxjs.BehaviorSubject(undefined);
3469
3458
  /**
3470
3459
  * Template for displaying the loading indicator (instead of the [default loading indicator](../components/LoadingIndicatorComponent.mdx))
3471
3460
  *
3472
- * 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).
3473
3461
  */
3474
3462
  this.loadingIndicatorTemplate$ = new rxjs.BehaviorSubject(undefined);
3475
3463
  /**
3476
3464
  * Template for displaying the message actions box (instead of the [default message actions box](../components/MessageActionsBoxComponent.mdx))
3477
3465
  *
3478
- * 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).
3479
3466
  */
3480
3467
  this.messageActionsBoxTemplate$ = new rxjs.BehaviorSubject(undefined);
3481
3468
  /**
3482
3469
  * The template used for displaying an item in the [message actions box](../components/MessageActionsBoxComponent.mdx)
3483
3470
  *
3484
- * 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).
3485
3471
  */
3486
3472
  this.messageActionsBoxItemTemplate$ = new rxjs.BehaviorSubject(undefined);
3487
3473
  /**
3488
3474
  * 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))
3489
3475
  *
3490
- * 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).
3491
3476
  */
3492
3477
  this.messageReactionsTemplate$ = new rxjs.BehaviorSubject(undefined);
3493
3478
  /**
3494
3479
  * The template used to display a modal window (instead of the [default modal](../components/ModalComponent.mdx))
3495
3480
  *
3496
- * 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).
3497
3481
  */
3498
3482
  this.modalTemplate$ = new rxjs.BehaviorSubject(undefined);
3499
3483
  /**
3500
3484
  * The template used to override the [default notification component](../components/NotificationComponent.mdx)
3501
3485
  *
3502
- * 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).
3503
3486
  */
3504
3487
  this.notificationTemplate$ = new rxjs.BehaviorSubject(undefined);
3505
3488
  /**
3506
3489
  * The template used for header of a [thread](../components/ThreadComponent.mdx)
3507
3490
  *
3508
- * 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).
3509
3491
  */
3510
3492
  this.threadHeaderTemplate$ = new rxjs.BehaviorSubject(undefined);
3511
3493
  /**
@@ -3513,7 +3495,6 @@
3513
3495
  *
3514
3496
  * Displayed for the last message sent by the current user, if the message isn't yet read by anyone
3515
3497
  *
3516
- * 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).
3517
3498
  */
3518
3499
  this.deliveredStatusTemplate$ = new rxjs.BehaviorSubject(undefined);
3519
3500
  /**
@@ -3521,7 +3502,6 @@
3521
3502
  *
3522
3503
  * Displayed for the last message sent by the current user, if the message is currently being sent
3523
3504
  *
3524
- * 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).
3525
3505
  */
3526
3506
  this.sendingStatusTemplate$ = new rxjs.BehaviorSubject(undefined);
3527
3507
  /**
@@ -3529,25 +3509,21 @@
3529
3509
  *
3530
3510
  * Displayed for the last message sent by the current user, if the message is read at least by one user
3531
3511
  *
3532
- * 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).
3533
3512
  */
3534
3513
  this.readStatusTemplate$ = new rxjs.BehaviorSubject(undefined);
3535
3514
  /**
3536
3515
  * Template to display custom metadata inside [message component](../components/MessageComponent.mdx)
3537
3516
  *
3538
- * 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).
3539
3517
  */
3540
3518
  this.customMessageMetadataTemplate$ = new rxjs.BehaviorSubject(undefined);
3541
3519
  /**
3542
3520
  * The template used to display additional information about a channel under the channel name inside the [channel header component](../components/ChannelHeaderComponent.mdx)
3543
3521
  *
3544
- * 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).
3545
3522
  */
3546
3523
  this.channelHeaderInfoTemplate$ = new rxjs.BehaviorSubject(undefined);
3547
3524
  /**
3548
3525
  * The template used for displaying file upload/attachment selector inside the [message input](../components/MessageInputComponent.mdx)
3549
3526
  *
3550
- * 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).
3551
3527
  */
3552
3528
  this.customAttachmentUploadTemplate$ = new rxjs.BehaviorSubject(undefined);
3553
3529
  /**
@@ -3614,6 +3590,11 @@
3614
3590
  * The template used to display the [message bounce prompt](../components/MessageBouncePromptComponent.mdx)
3615
3591
  */
3616
3592
  this.messageBouncePromptTemplate$ = new rxjs.BehaviorSubject(undefined);
3593
+ /**
3594
+ * Template used to display the channel information inside the [channel list item](../components/ChannelPreviewComponent.mdx)
3595
+ *
3596
+ */
3597
+ this.channelPreviewInfoTemplate$ = new rxjs.BehaviorSubject(undefined);
3617
3598
  }
3618
3599
  return CustomTemplatesService;
3619
3600
  }());
@@ -5851,14 +5832,15 @@
5851
5832
  * The `ChannelPreview` component displays a channel preview in the channel list, it consists of the image, name and latest message of the channel.
5852
5833
  */
5853
5834
  var ChannelPreviewComponent = /** @class */ (function () {
5854
- function ChannelPreviewComponent(channelService, ngZone, chatClientService, messageService) {
5835
+ function ChannelPreviewComponent(channelService, ngZone, chatClientService, messageService, customTemplatesService) {
5855
5836
  this.channelService = channelService;
5856
5837
  this.ngZone = ngZone;
5857
5838
  this.chatClientService = chatClientService;
5839
+ this.customTemplatesService = customTemplatesService;
5858
5840
  this.isActive = false;
5859
5841
  this.isUnreadMessageWasCalled = false;
5860
5842
  this.isUnread = false;
5861
- this.latestMessage = 'streamChat.Nothing yet...';
5843
+ this.latestMessageText = 'streamChat.Nothing yet...';
5862
5844
  this.subscriptions = [];
5863
5845
  this.canSendReadEvents = true;
5864
5846
  this.displayAs = messageService.displayAs;
@@ -5932,7 +5914,8 @@
5932
5914
  this.ngZone.run(function () {
5933
5915
  var _a, _b, _c;
5934
5916
  if (((_a = _this.channel) === null || _a === void 0 ? void 0 : _a.state.latestMessages.length) === 0) {
5935
- _this.latestMessage = 'streamChat.Nothing yet...';
5917
+ _this.latestMessage = undefined;
5918
+ _this.latestMessageText = 'streamChat.Nothing yet...';
5936
5919
  return;
5937
5920
  }
5938
5921
  if (!event.message ||
@@ -5944,15 +5927,16 @@
5944
5927
  });
5945
5928
  };
5946
5929
  ChannelPreviewComponent.prototype.setLatestMessage = function (message) {
5930
+ this.latestMessage = message;
5947
5931
  if (message === null || message === void 0 ? void 0 : message.deleted_at) {
5948
- this.latestMessage = 'streamChat.Message deleted';
5932
+ this.latestMessageText = 'streamChat.Message deleted';
5949
5933
  }
5950
5934
  else if (message === null || message === void 0 ? void 0 : message.text) {
5951
- this.latestMessage =
5935
+ this.latestMessageText =
5952
5936
  getMessageTranslation(message, this.channel, this.chatClientService.chatClient.user) || message.text;
5953
5937
  }
5954
5938
  else if ((message === null || message === void 0 ? void 0 : message.attachments) && message.attachments.length) {
5955
- this.latestMessage = 'streamChat.🏙 Attachment...';
5939
+ this.latestMessageText = 'streamChat.🏙 Attachment...';
5956
5940
  }
5957
5941
  };
5958
5942
  ChannelPreviewComponent.prototype.updateUnreadState = function () {
@@ -5967,8 +5951,8 @@
5967
5951
  };
5968
5952
  return ChannelPreviewComponent;
5969
5953
  }());
5970
- ChannelPreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: ChannelPreviewComponent, deps: [{ token: ChannelService }, { token: i0__namespace.NgZone }, { token: ChatClientService }, { token: MessageService }], target: i0__namespace.ɵɵFactoryTarget.Component });
5971
- ChannelPreviewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: ChannelPreviewComponent, selector: "stream-channel-preview", inputs: { channel: "channel" }, ngImport: i0__namespace, template: "<button\n class=\"str-chat__channel-preview-messenger str-chat__channel-preview\"\n [class.str-chat__channel-preview-messenger--active]=\"isActive\"\n [class.str-chat__channel-preview--active]=\"isActive\"\n [class.str-chat__channel-preview-messenger--unread]=\"isUnread\"\n (click)=\"setAsActiveChannel()\"\n data-testid=\"channel-preview-container\"\n>\n <div class=\"str-chat__channel-preview-messenger--left\">\n <stream-avatar-placeholder\n name=\"{{ avatarName }}\"\n imageUrl=\"{{ avatarImage }}\"\n type=\"channel\"\n [channel]=\"channel\"\n location=\"channel-preview\"\n [size]=\"49\"\n ></stream-avatar-placeholder>\n </div>\n <div\n class=\"\n str-chat__channel-preview-messenger--right str-chat__channel-preview-end\n \"\n >\n <div class=\"str-chat__channel-preview-end-first-row\">\n <div class=\"str-chat__channel-preview-messenger--name\">\n <span data-testid=\"channel-preview-title\">{{ title }}</span>\n </div>\n <div\n data-testid=\"unread-badge\"\n *ngIf=\"unreadCount\"\n class=\"str-chat__channel-preview-unread-badge\"\n >\n {{ unreadCount }}\n </div>\n </div>\n <div\n data-testid=\"latest-message\"\n class=\"str-chat__channel-preview-messenger--last-message\"\n >\n <ng-container *ngIf=\"displayAs === 'text'; else asHTML\">\n {{ latestMessage | translate }}\n </ng-container>\n <ng-template #asHTML>\n <span\n data-testid=\"html-content\"\n [innerHTML]=\"latestMessage | translate\"\n ></span>\n </ng-template>\n </div>\n </div>\n</button>\n", components: [{ type: AvatarPlaceholderComponent, selector: "stream-avatar-placeholder", inputs: ["name", "imageUrl", "size", "location", "channel", "user", "type", "initialsType", "showOnlineIndicator"] }], directives: [{ type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i6__namespace.TranslatePipe } });
5954
+ ChannelPreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: ChannelPreviewComponent, deps: [{ token: ChannelService }, { token: i0__namespace.NgZone }, { token: ChatClientService }, { token: MessageService }, { token: CustomTemplatesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
5955
+ ChannelPreviewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: ChannelPreviewComponent, selector: "stream-channel-preview", inputs: { channel: "channel" }, ngImport: i0__namespace, template: "<button\n class=\"str-chat__channel-preview-messenger str-chat__channel-preview\"\n [class.str-chat__channel-preview-messenger--active]=\"isActive\"\n [class.str-chat__channel-preview--active]=\"isActive\"\n [class.str-chat__channel-preview-messenger--unread]=\"isUnread\"\n (click)=\"setAsActiveChannel()\"\n data-testid=\"channel-preview-container\"\n>\n <div class=\"str-chat__channel-preview-messenger--left\">\n <stream-avatar-placeholder\n name=\"{{ avatarName }}\"\n imageUrl=\"{{ avatarImage }}\"\n type=\"channel\"\n [channel]=\"channel\"\n location=\"channel-preview\"\n [size]=\"49\"\n ></stream-avatar-placeholder>\n </div>\n <div\n class=\"\n str-chat__channel-preview-messenger--right str-chat__channel-preview-end\n \"\n >\n <ng-container\n *ngTemplateOutlet=\"\n (customTemplatesService.channelPreviewInfoTemplate$ | async) ||\n defaultChannelInfo;\n context: {\n channelDisplayTitle: title,\n channel: channel,\n unreadCount: unreadCount,\n latestMessageText: latestMessageText,\n latestMessage: latestMessage\n }\n \"\n ></ng-container>\n <ng-template\n #defaultChannelInfo\n let-channelDisplayTitle=\"channelDisplayTitle\"\n let-unreadCount=\"unreadCount\"\n let-latestMessageText=\"latestMessageText\"\n >\n <div class=\"str-chat__channel-preview-end-first-row\">\n <div class=\"str-chat__channel-preview-messenger--name\">\n <span data-testid=\"channel-preview-title\">{{\n channelDisplayTitle\n }}</span>\n </div>\n <div\n data-testid=\"unread-badge\"\n *ngIf=\"unreadCount\"\n class=\"str-chat__channel-preview-unread-badge\"\n >\n {{ unreadCount }}\n </div>\n </div>\n <div\n data-testid=\"latest-message\"\n class=\"str-chat__channel-preview-messenger--last-message\"\n >\n <ng-container *ngIf=\"displayAs === 'text'; else asHTML\">\n {{ latestMessageText | translate }}\n </ng-container>\n <ng-template #asHTML>\n <span\n data-testid=\"html-content\"\n [innerHTML]=\"latestMessageText | translate\"\n ></span>\n </ng-template>\n </div>\n </ng-template>\n </div>\n</button>\n", components: [{ type: AvatarPlaceholderComponent, selector: "stream-avatar-placeholder", inputs: ["name", "imageUrl", "size", "location", "channel", "user", "type", "initialsType", "showOnlineIndicator"] }], directives: [{ type: i8__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i8__namespace.AsyncPipe, "translate": i6__namespace.TranslatePipe } });
5972
5956
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: ChannelPreviewComponent, decorators: [{
5973
5957
  type: i0.Component,
5974
5958
  args: [{
@@ -5976,7 +5960,7 @@
5976
5960
  templateUrl: './channel-preview.component.html',
5977
5961
  styles: [],
5978
5962
  }]
5979
- }], ctorParameters: function () { return [{ type: ChannelService }, { type: i0__namespace.NgZone }, { type: ChatClientService }, { type: MessageService }]; }, propDecorators: { channel: [{
5963
+ }], ctorParameters: function () { return [{ type: ChannelService }, { type: i0__namespace.NgZone }, { type: ChatClientService }, { type: MessageService }, { type: CustomTemplatesService }]; }, propDecorators: { channel: [{
5980
5964
  type: i0.Input
5981
5965
  }] } });
5982
5966