stream-chat-angular 4.26.1 → 4.27.1

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,6 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
- import { AttachmentContext, AttachmentListContext, AttachmentPreviewListContext, AvatarContext, ChannelActionsContext, ChannelHeaderInfoContext, ChannelPreviewContext, CommandAutocompleteListItemContext, CustomAttachmentUploadContext, DeliveredStatusContext, EmojiPickerContext, IconContext, LoadingIndicatorContext, MentionAutcompleteListItemContext, MentionTemplateContext, MessageActionBoxItemContext, MessageActionsBoxContext, MessageContext, MessageInputContext, MessageReactionsContext, ModalContext, NotificationContext, ReadStatusContext, SendingStatusContext, ThreadHeaderContext, TypingIndicatorContext } from './types';
3
+ import { AttachmentContext, AttachmentListContext, AttachmentPreviewListContext, AvatarContext, ChannelActionsContext, ChannelHeaderInfoContext, ChannelPreviewContext, CommandAutocompleteListItemContext, CustomAttachmentUploadContext, DeliveredStatusContext, EmojiPickerContext, IconContext, LoadingIndicatorContext, MentionAutcompleteListItemContext, MentionTemplateContext, MessageActionBoxItemContext, MessageActionsBoxContext, MessageContext, MessageInputContext, MessageReactionsContext, ModalContext, NotificationContext, ReadStatusContext, SendingStatusContext, SystemMessageContext, ThreadHeaderContext, TypingIndicatorContext } from './types';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * A central location for registering your custom templates to override parts of the chat application.
@@ -180,6 +180,10 @@ export declare class CustomTemplatesService {
180
180
  * The template that can be used to override how attachment actions are displayed inside the [attachment list](../components/AttachmentListComponent.mdx)
181
181
  */
182
182
  attachmentActionsTemplate$: BehaviorSubject<TemplateRef<AttachmentContext> | undefined>;
183
+ /**
184
+ * The template used to display [system messages](https://getstream.io/chat/docs/javascript/silent_messages/?language=javascript&q=system) indise the [message component](../components/MessageComponent.mdx)
185
+ */
186
+ systemMessageTemplate$: BehaviorSubject<TemplateRef<SystemMessageContext> | undefined>;
183
187
  constructor();
184
188
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomTemplatesService, never>;
185
189
  static ɵprov: i0.ɵɵInjectableDeclaration<CustomTemplatesService>;
@@ -2,7 +2,7 @@ import { TemplateRef, OnChanges, SimpleChanges, OnDestroy, OnInit, ChangeDetecto
2
2
  import { UserResponse } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
4
  import { ChatClientService } from '../chat-client.service';
5
- import { AttachmentListContext, MentionTemplateContext, MessageActionsBoxContext, MessageReactionsContext, DefaultStreamChatGenerics, StreamMessage, DeliveredStatusContext, SendingStatusContext, ReadStatusContext, CustomMessageActionItem } from '../types';
5
+ import { AttachmentListContext, MentionTemplateContext, MessageActionsBoxContext, MessageReactionsContext, DefaultStreamChatGenerics, StreamMessage, DeliveredStatusContext, SendingStatusContext, ReadStatusContext, CustomMessageActionItem, SystemMessageContext } from '../types';
6
6
  import { CustomTemplatesService } from '../custom-templates.service';
7
7
  import { ThemeService } from '../theme.service';
8
8
  import { NgxPopperjsTriggers, NgxPopperjsPlacements } from 'ngx-popperjs';
@@ -59,6 +59,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy {
59
59
  attachmentListTemplate: TemplateRef<AttachmentListContext> | undefined;
60
60
  messageActionsBoxTemplate: TemplateRef<MessageActionsBoxContext> | undefined;
61
61
  messageReactionsTemplate: TemplateRef<MessageReactionsContext> | undefined;
62
+ systemMessageTemplate: TemplateRef<SystemMessageContext> | undefined;
62
63
  popperTriggerClick: NgxPopperjsTriggers;
63
64
  popperTriggerHover: NgxPopperjsTriggers;
64
65
  popperPlacementAuto: NgxPopperjsPlacements;
@@ -89,6 +90,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy {
89
90
  };
90
91
  get canDisplayReadStatus(): boolean;
91
92
  getAttachmentListContext(): AttachmentListContext;
93
+ getMessageContext(): SystemMessageContext;
92
94
  getQuotedMessageAttachmentListContext(): AttachmentListContext;
93
95
  getMessageReactionsContext(): MessageReactionsContext;
94
96
  resendMessage(): void;
package/lib/types.d.ts CHANGED
@@ -233,4 +233,7 @@ export declare type CustomAttachmentUploadContext = {
233
233
  export declare type AttachmentContext = {
234
234
  attachment: Attachment<DefaultStreamChatGenerics>;
235
235
  };
236
+ export declare type SystemMessageContext = MessageContext & {
237
+ parsedDate: string | undefined;
238
+ };
236
239
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.26.1",
3
+ "version": "4.27.1",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -1 +1 @@
1
- export const version = '4.26.1';
1
+ export const version = '4.27.1';