stream-chat-angular 4.49.3 → 4.50.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.
@@ -3,6 +3,7 @@ import { Channel } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
4
  import { DefaultStreamChatGenerics } from '../types';
5
5
  import { ChatClientService } from '../chat-client.service';
6
+ import { MessageService } from '../message.service';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * The `ChannelPreview` component displays a channel preview in the channel list, it consists of the image, name and latest message of the channel.
@@ -19,9 +20,10 @@ export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
19
20
  isUnread: boolean;
20
21
  unreadCount: number | undefined;
21
22
  latestMessage: string;
23
+ displayAs: 'text' | 'html';
22
24
  private subscriptions;
23
25
  private canSendReadEvents;
24
- constructor(channelService: ChannelService, ngZone: NgZone, chatClientService: ChatClientService);
26
+ constructor(channelService: ChannelService, ngZone: NgZone, chatClientService: ChatClientService, messageService: MessageService);
25
27
  ngOnInit(): void;
26
28
  ngOnDestroy(): void;
27
29
  get avatarImage(): string | undefined;
@@ -7,6 +7,7 @@ import { CustomTemplatesService } from '../custom-templates.service';
7
7
  import { ThemeService } from '../theme.service';
8
8
  import { NgxPopperjsTriggers, NgxPopperjsPlacements } from 'ngx-popperjs';
9
9
  import { DateParserService } from '../date-parser.service';
10
+ import { MessageService } from '../message.service';
10
11
  import * as i0 from "@angular/core";
11
12
  declare type MessagePart = {
12
13
  content: string;
@@ -23,6 +24,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
23
24
  private cdRef;
24
25
  private dateParser;
25
26
  private ngZone;
27
+ private messageService;
26
28
  /**
27
29
  * The message to be displayed
28
30
  */
@@ -65,6 +67,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
65
67
  shouldDisplayThreadLink: boolean;
66
68
  isSentByCurrentUser: boolean;
67
69
  readByText: string;
70
+ displayAs: 'text' | 'html';
68
71
  lastReadUser: UserResponse<DefaultStreamChatGenerics> | undefined;
69
72
  isOnlyReadByMe: boolean;
70
73
  isReadByMultipleUsers: boolean;
@@ -84,7 +87,7 @@ export declare class MessageComponent implements OnInit, OnChanges, OnDestroy, A
84
87
  private container;
85
88
  private readonly urlRegexp;
86
89
  private emojiRegexp;
87
- constructor(chatClientService: ChatClientService, channelService: ChannelService, customTemplatesService: CustomTemplatesService, cdRef: ChangeDetectorRef, themeService: ThemeService, dateParser: DateParserService, ngZone: NgZone);
90
+ constructor(chatClientService: ChatClientService, channelService: ChannelService, customTemplatesService: CustomTemplatesService, cdRef: ChangeDetectorRef, themeService: ThemeService, dateParser: DateParserService, ngZone: NgZone, messageService: MessageService);
88
91
  ngOnInit(): void;
89
92
  ngOnChanges(changes: SimpleChanges): void;
90
93
  ngAfterViewInit(): void;
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * The message service contains configuration options related to displaying the message content
4
+ */
5
+ export declare class MessageService {
6
+ /**
7
+ * Decides if the message content should be formatted as text or HTML
8
+ */
9
+ displayAs: 'text' | 'html';
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.49.3",
3
+ "version": "4.50.0",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
package/public-api.d.ts CHANGED
@@ -53,3 +53,4 @@ export * from './lib/custom-templates.service';
53
53
  export * from './lib/message-reactions.service';
54
54
  export * from './lib/date-parser.service';
55
55
  export * from './lib/types';
56
+ export * from './lib/message.service';
@@ -1 +1 @@
1
- export const version = '4.49.3';
1
+ export const version = '4.50.0';