stream-chat-angular 2.4.0 → 2.6.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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/assets/i18n/en.d.ts +1 -0
  3. package/assets/version.d.ts +1 -1
  4. package/bundles/stream-chat-angular.umd.js +360 -222
  5. package/bundles/stream-chat-angular.umd.js.map +1 -1
  6. package/esm2015/assets/i18n/en.js +2 -1
  7. package/esm2015/assets/version.js +2 -2
  8. package/esm2015/lib/attachment.service.js +3 -3
  9. package/esm2015/lib/channel-preview/channel-preview.component.js +22 -17
  10. package/esm2015/lib/channel.service.js +92 -83
  11. package/esm2015/lib/chat-client.service.js +32 -33
  12. package/esm2015/lib/is-image-file.js +5 -0
  13. package/esm2015/lib/message/message.component.js +48 -3
  14. package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +8 -2
  15. package/esm2015/lib/message-input/message-input-config.service.js +1 -1
  16. package/esm2015/lib/message-input/message-input.component.js +67 -10
  17. package/esm2015/lib/message-list/message-list.component.js +4 -2
  18. package/esm2015/lib/notification-list/notification-list.component.js +2 -2
  19. package/esm2015/lib/notification.service.js +7 -7
  20. package/esm2015/lib/stream-chat.module.js +5 -8
  21. package/esm2015/public-api.js +3 -2
  22. package/fesm2015/stream-chat-angular.js +291 -187
  23. package/fesm2015/stream-chat-angular.js.map +1 -1
  24. package/lib/channel-preview/channel-preview.component.d.ts +3 -2
  25. package/lib/channel.service.d.ts +2 -3
  26. package/lib/chat-client.service.d.ts +7 -5
  27. package/lib/is-image-file.d.ts +1 -0
  28. package/lib/message/message.component.d.ts +10 -3
  29. package/lib/message-input/message-input-config.service.d.ts +3 -0
  30. package/lib/message-input/message-input.component.d.ts +8 -1
  31. package/lib/message-list/message-list.component.d.ts +2 -1
  32. package/lib/notification.service.d.ts +3 -2
  33. package/lib/stream-chat.module.d.ts +4 -5
  34. package/package.json +1 -1
  35. package/public-api.d.ts +2 -1
  36. package/src/assets/i18n/en.ts +1 -0
  37. package/src/assets/version.ts +1 -1
  38. package/esm2015/lib/message/highlight-mentions.pipe.js +0 -23
  39. package/lib/message/highlight-mentions.pipe.d.ts +0 -8
@@ -1,16 +1,17 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { NgZone, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Channel } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
6
6
  private channelService;
7
+ private ngZone;
7
8
  channel: Channel | undefined;
8
9
  isActive: boolean;
9
10
  isUnread: boolean;
10
11
  latestMessage: string;
11
12
  private subscriptions;
12
13
  private canSendReadEvents;
13
- constructor(channelService: ChannelService);
14
+ constructor(channelService: ChannelService, ngZone: NgZone);
14
15
  ngOnInit(): void;
15
16
  ngOnDestroy(): void;
16
17
  get avatarImage(): unknown;
@@ -1,4 +1,4 @@
1
- import { ApplicationRef, NgZone } from '@angular/core';
1
+ import { NgZone } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Attachment, Channel, ChannelFilters, ChannelOptions, ChannelSort, Event, UserResponse } from 'stream-chat';
4
4
  import { ChatClientService, Notification } from './chat-client.service';
@@ -7,7 +7,6 @@ import { AttachmentUpload, StreamMessage } from './types';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ChannelService {
9
9
  private chatClientService;
10
- private appRef;
11
10
  private ngZone;
12
11
  hasMoreChannels$: Observable<boolean>;
13
12
  channels$: Observable<Channel[] | undefined>;
@@ -32,7 +31,7 @@ export declare class ChannelService {
32
31
  private options;
33
32
  private channelListSetter;
34
33
  private messageListSetter;
35
- constructor(chatClientService: ChatClientService, appRef: ApplicationRef, ngZone: NgZone);
34
+ constructor(chatClientService: ChatClientService, ngZone: NgZone);
36
35
  setAsActiveChannel(channel: Channel): void;
37
36
  loadMoreMessages(): Promise<void>;
38
37
  init(filters: ChannelFilters, sort?: ChannelSort, options?: ChannelOptions): Promise<void>;
@@ -1,23 +1,25 @@
1
- import { ApplicationRef, NgZone } from '@angular/core';
1
+ import { NgZone } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Event, StreamChat } from 'stream-chat';
3
+ import { AppSettings, Event, StreamChat } from 'stream-chat';
4
4
  import { NotificationService } from './notification.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare type Notification = {
7
- eventType: 'notification.added_to_channel' | 'notification.message_new' | 'notification.removed_from_channel';
7
+ eventType: string;
8
8
  event: Event;
9
9
  };
10
10
  export declare class ChatClientService {
11
11
  private ngZone;
12
- private appRef;
13
12
  private notificationService;
14
13
  chatClient: StreamChat;
15
14
  notification$: Observable<Notification>;
15
+ appSettings$: Observable<AppSettings | undefined>;
16
16
  connectionState$: Observable<'offline' | 'online'>;
17
17
  private notificationSubject;
18
18
  private connectionStateSubject;
19
- constructor(ngZone: NgZone, appRef: ApplicationRef, notificationService: NotificationService);
19
+ private appSettingsSubject;
20
+ constructor(ngZone: NgZone, notificationService: NotificationService);
20
21
  init(apiKey: string, userId: string, userToken: string): Promise<void>;
22
+ getAppSettings(): Promise<void>;
21
23
  flagMessage(messageId: string): Promise<void>;
22
24
  autocompleteUsers(searchTerm: string): Promise<import("stream-chat").UserResponse<import("stream-chat").UnknownType>[]>;
23
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ChatClientService, never>;
@@ -0,0 +1 @@
1
+ export declare const isImageFile: (file: File) => boolean;
@@ -1,14 +1,15 @@
1
- import { TemplateRef } from '@angular/core';
1
+ import { TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { UserResponse } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
4
  import { ChatClientService } from '../chat-client.service';
5
5
  import { MessageActions } from '../message-actions-box/message-actions-box.component';
6
6
  import { DefaultUserType, StreamMessage } from '../types';
7
7
  import * as i0 from "@angular/core";
8
- export declare class MessageComponent {
8
+ export declare class MessageComponent implements OnChanges {
9
9
  private chatClientService;
10
10
  private channelService;
11
11
  messageInputTemplate: TemplateRef<any> | undefined;
12
+ mentionTemplate: TemplateRef<any> | undefined;
12
13
  message: StreamMessage | undefined;
13
14
  enabledMessageActions: MessageActions[];
14
15
  areReactionsEnabled: boolean | undefined;
@@ -20,9 +21,15 @@ export declare class MessageComponent {
20
21
  isReactionSelectorOpen: boolean;
21
22
  isPressedOnMobile: boolean;
22
23
  visibleMessageActionsCount: number;
24
+ messageTextParts: {
25
+ content: string;
26
+ type: 'text' | 'mention';
27
+ user?: UserResponse;
28
+ }[];
23
29
  private user;
24
30
  private container;
25
31
  constructor(chatClientService: ChatClientService, channelService: ChannelService);
32
+ ngOnChanges(changes: SimpleChanges): void;
26
33
  get isSentByCurrentUser(): boolean;
27
34
  get readByText(): string;
28
35
  get lastReadUser(): UserResponse<DefaultUserType<import("../types").DefaultUserTypeInternal>> | undefined;
@@ -36,5 +43,5 @@ export declare class MessageComponent {
36
43
  resendMessage(): void;
37
44
  textClicked(): void;
38
45
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "messageInputTemplate": "messageInputTemplate"; "message": "message"; "enabledMessageActions": "enabledMessageActions"; "areReactionsEnabled": "areReactionsEnabled"; "canReactToMessage": "canReactToMessage"; "isLastSentMessage": "isLastSentMessage"; "canReceiveReadEvents": "canReceiveReadEvents"; }, {}, never, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "messageInputTemplate": "messageInputTemplate"; "mentionTemplate": "mentionTemplate"; "message": "message"; "enabledMessageActions": "enabledMessageActions"; "areReactionsEnabled": "areReactionsEnabled"; "canReactToMessage": "canReactToMessage"; "isLastSentMessage": "isLastSentMessage"; "canReceiveReadEvents": "canReceiveReadEvents"; }, {}, never, never>;
40
47
  }
@@ -5,6 +5,9 @@ export declare class MessageInputConfigService {
5
5
  isFileUploadEnabled: boolean | undefined;
6
6
  areMentionsEnabled: boolean | undefined;
7
7
  mentionAutocompleteItemTemplate: TemplateRef<MentionAutcompleteListItemContext> | undefined;
8
+ /**
9
+ * @deprecated https://getstream.io/chat/docs/sdk/angular/services/message-input-config/#overview
10
+ */
8
11
  acceptedFileTypes: string[] | undefined;
9
12
  isMultipleFileUploadEnabled: boolean | undefined;
10
13
  mentionScope: 'channel' | 'application' | undefined;
@@ -1,4 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, TemplateRef, Type } from '@angular/core';
2
+ import { ChatClientService } from '../chat-client.service';
2
3
  import { Observable } from 'rxjs';
3
4
  import { UserResponse } from 'stream-chat';
4
5
  import { AttachmentService } from '../attachment.service';
@@ -16,10 +17,14 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
16
17
  private textareaType;
17
18
  private componentFactoryResolver;
18
19
  private cdRef;
20
+ private chatClient;
19
21
  isFileUploadEnabled: boolean | undefined;
20
22
  areMentionsEnabled: boolean | undefined;
21
23
  mentionScope: 'channel' | 'application' | undefined;
22
24
  mentionAutocompleteItemTemplate: TemplateRef<MentionAutcompleteListItemContext> | undefined;
25
+ /**
26
+ * @deprecated https://getstream.io/chat/docs/sdk/angular/components/message-input/#caution-acceptedfiletypes
27
+ */
23
28
  acceptedFileTypes: string[] | undefined;
24
29
  isMultipleFileUploadEnabled: boolean | undefined;
25
30
  message: StreamMessage | undefined;
@@ -36,7 +41,8 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
36
41
  private subscriptions;
37
42
  private hideNotification;
38
43
  private isViewInited;
39
- constructor(channelService: ChannelService, notificationService: NotificationService, attachmentService: AttachmentService, configService: MessageInputConfigService, textareaType: Type<TextareaInterface>, componentFactoryResolver: ComponentFactoryResolver, cdRef: ChangeDetectorRef);
44
+ private appSettings;
45
+ constructor(channelService: ChannelService, notificationService: NotificationService, attachmentService: AttachmentService, configService: MessageInputConfigService, textareaType: Type<TextareaInterface>, componentFactoryResolver: ComponentFactoryResolver, cdRef: ChangeDetectorRef, chatClient: ChatClientService);
40
46
  ngAfterViewInit(): void;
41
47
  ngOnChanges(changes: SimpleChanges): void;
42
48
  ngOnDestroy(): void;
@@ -47,6 +53,7 @@ export declare class MessageInputComponent implements OnChanges, OnDestroy, Afte
47
53
  private clearFileInput;
48
54
  private get isUpdate();
49
55
  private initTextarea;
56
+ private areAttachemntsValid;
50
57
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
51
58
  static ɵcmp: i0.ɵɵComponentDeclaration<MessageInputComponent, "stream-message-input", never, { "isFileUploadEnabled": "isFileUploadEnabled"; "areMentionsEnabled": "areMentionsEnabled"; "mentionScope": "mentionScope"; "mentionAutocompleteItemTemplate": "mentionAutocompleteItemTemplate"; "acceptedFileTypes": "acceptedFileTypes"; "isMultipleFileUploadEnabled": "isMultipleFileUploadEnabled"; "message": "message"; }, { "messageUpdate": "messageUpdate"; }, never, never>;
52
59
  }
@@ -13,6 +13,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
13
13
  private imageLoadService;
14
14
  messageTemplate: TemplateRef<any> | undefined;
15
15
  messageInputTemplate: TemplateRef<any> | undefined;
16
+ mentionTemplate: TemplateRef<any> | undefined;
16
17
  areReactionsEnabled: boolean;
17
18
  enabledMessageActionsInput: MessageActions[];
18
19
  messages$: Observable<StreamMessage[]>;
@@ -42,5 +43,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
42
43
  private preserveScrollbarPosition;
43
44
  private setEnabledActions;
44
45
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "messageTemplate": "messageTemplate"; "messageInputTemplate": "messageInputTemplate"; "areReactionsEnabled": "areReactionsEnabled"; "enabledMessageActionsInput": "enabledMessageActions"; }, {}, never, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "messageTemplate": "messageTemplate"; "messageInputTemplate": "messageInputTemplate"; "mentionTemplate": "mentionTemplate"; "areReactionsEnabled": "areReactionsEnabled"; "enabledMessageActionsInput": "enabledMessageActions"; }, {}, never, never>;
46
47
  }
@@ -4,13 +4,14 @@ export declare type NotificationType = 'success' | 'error';
4
4
  export declare type NotificationPayload = {
5
5
  type: NotificationType;
6
6
  text: string;
7
+ translateParams?: Object;
7
8
  };
8
9
  export declare class NotificationService {
9
10
  notifications$: Observable<NotificationPayload[]>;
10
11
  private notificationsSubject;
11
12
  constructor();
12
- addTemporaryNotification(text: string, type?: NotificationType, timeout?: number): () => void;
13
- addPermanentNotification(text: string, type?: NotificationType): () => void;
13
+ addTemporaryNotification(text: string, type?: NotificationType, timeout?: number, translateParams?: Object): () => void;
14
+ addPermanentNotification(text: string, type?: NotificationType, translateParams?: Object): () => void;
14
15
  private addNotification;
15
16
  private removeNotification;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
@@ -16,12 +16,11 @@ import * as i14 from "./notification-list/notification-list.component";
16
16
  import * as i15 from "./attachment-preview-list/attachment-preview-list.component";
17
17
  import * as i16 from "./modal/modal.component";
18
18
  import * as i17 from "./message-input/textarea.directive";
19
- import * as i18 from "./message/highlight-mentions.pipe";
20
- import * as i19 from "@angular/common";
21
- import * as i20 from "@ngx-translate/core";
22
- import * as i21 from "./stream-avatar.module";
19
+ import * as i18 from "@angular/common";
20
+ import * as i19 from "@ngx-translate/core";
21
+ import * as i20 from "./stream-avatar.module";
23
22
  export declare class StreamChatModule {
24
23
  static ɵfac: i0.ɵɵFactoryDeclaration<StreamChatModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.HighlightMentionsPipe], [typeof i19.CommonModule, typeof i20.TranslateModule, typeof i21.StreamAvatarModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i18.HighlightMentionsPipe]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective], [typeof i18.CommonModule, typeof i19.TranslateModule, typeof i20.StreamAvatarModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i20.StreamAvatarModule]>;
26
25
  static ɵinj: i0.ɵɵInjectorDeclaration<StreamChatModule>;
27
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "2.4.0",
3
+ "version": "2.6.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/",
package/public-api.d.ts CHANGED
@@ -15,7 +15,6 @@ export * from './lib/channel-list/channel-list-toggle.service';
15
15
  export * from './lib/message/message.component';
16
16
  export * from './lib/message/parse-date';
17
17
  export * from './lib/message/read-by-text';
18
- export * from './lib/message/highlight-mentions.pipe';
19
18
  export * from './lib/message-input/message-input.component';
20
19
  export * from './lib/message-input/textarea/textarea.component';
21
20
  export * from './lib/message-input/autocomplete-textarea/autocomplete-textarea.component';
@@ -33,11 +32,13 @@ export * from './lib/notification-list/notification-list.component';
33
32
  export * from './lib/modal/modal.component';
34
33
  export * from './lib/read-by';
35
34
  export * from './lib/is-image-attachment';
35
+ export * from './lib/is-image-file';
36
36
  export * from './lib/device-width';
37
37
  export * from './lib/message-preview';
38
38
  export * from './lib/notification.service';
39
39
  export * from './lib/transliteration.service';
40
40
  export * from './lib/stream-chat.module';
41
+ export * from './lib/stream-avatar.module';
41
42
  export * from './lib/stream-autocomplete-textarea.module';
42
43
  export * from './lib/stream-textarea.module';
43
44
  export * from './lib/injection-tokens';
@@ -90,5 +90,6 @@ export const en = {
90
90
  'Sending links is not allowed in this conversation',
91
91
  "You can't send messages in this channel":
92
92
  "You can't send messages in this channel",
93
+ 'Unsupported file type: {{type}}': 'Unsupported file type: {{type}}',
93
94
  },
94
95
  };
@@ -1 +1 @@
1
- export const version = '2.4.0';
1
+ export const version = '2.6.1';
@@ -1,23 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class HighlightMentionsPipe {
4
- transform(value, mentionedUsers) {
5
- if (!value || !mentionedUsers) {
6
- return value || '';
7
- }
8
- let result = value;
9
- mentionedUsers.forEach((u) => {
10
- result = result.replace(new RegExp(`@${u.name || u.id}`, 'g'), `<b>@${u.name || u.id}</b>`);
11
- });
12
- return result;
13
- }
14
- }
15
- HighlightMentionsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: HighlightMentionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
16
- HighlightMentionsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: HighlightMentionsPipe, name: "highlightMentions" });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0, type: HighlightMentionsPipe, decorators: [{
18
- type: Pipe,
19
- args: [{
20
- name: 'highlightMentions',
21
- }]
22
- }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGlnaGxpZ2h0LW1lbnRpb25zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9zdHJlYW0tY2hhdC1hbmd1bGFyL3NyYy9saWIvbWVzc2FnZS9oaWdobGlnaHQtbWVudGlvbnMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFNcEQsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQyxTQUFTLENBQUMsS0FBYyxFQUFFLGNBQStCO1FBQ3ZELElBQUksQ0FBQyxLQUFLLElBQUksQ0FBQyxjQUFjLEVBQUU7WUFDN0IsT0FBTyxLQUFLLElBQUksRUFBRSxDQUFDO1NBQ3BCO1FBQ0QsSUFBSSxNQUFNLEdBQUcsS0FBSyxDQUFDO1FBQ25CLGNBQWMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUUsRUFBRTtZQUMzQixNQUFNLEdBQUcsTUFBTSxDQUFDLE9BQU8sQ0FDckIsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxJQUFJLENBQUMsQ0FBQyxFQUFFLEVBQUUsRUFBRSxHQUFHLENBQUMsRUFDckMsT0FBTyxDQUFDLENBQUMsSUFBSSxJQUFJLENBQUMsQ0FBQyxFQUFFLE1BQU0sQ0FDNUIsQ0FBQztRQUNKLENBQUMsQ0FBQyxDQUFDO1FBRUgsT0FBTyxNQUFNLENBQUM7SUFDaEIsQ0FBQzs7a0hBZFUscUJBQXFCO2dIQUFyQixxQkFBcUI7MkZBQXJCLHFCQUFxQjtrQkFIakMsSUFBSTttQkFBQztvQkFDSixJQUFJLEVBQUUsbUJBQW1CO2lCQUMxQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFVzZXJSZXNwb25zZSB9IGZyb20gJ3N0cmVhbS1jaGF0JztcblxuQFBpcGUoe1xuICBuYW1lOiAnaGlnaGxpZ2h0TWVudGlvbnMnLFxufSlcbmV4cG9ydCBjbGFzcyBIaWdobGlnaHRNZW50aW9uc1BpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlPzogc3RyaW5nLCBtZW50aW9uZWRVc2Vycz86IFVzZXJSZXNwb25zZVtdKTogc3RyaW5nIHtcbiAgICBpZiAoIXZhbHVlIHx8ICFtZW50aW9uZWRVc2Vycykge1xuICAgICAgcmV0dXJuIHZhbHVlIHx8ICcnO1xuICAgIH1cbiAgICBsZXQgcmVzdWx0ID0gdmFsdWU7XG4gICAgbWVudGlvbmVkVXNlcnMuZm9yRWFjaCgodSkgPT4ge1xuICAgICAgcmVzdWx0ID0gcmVzdWx0LnJlcGxhY2UoXG4gICAgICAgIG5ldyBSZWdFeHAoYEAke3UubmFtZSB8fCB1LmlkfWAsICdnJyksXG4gICAgICAgIGA8Yj5AJHt1Lm5hbWUgfHwgdS5pZH08L2I+YFxuICAgICAgKTtcbiAgICB9KTtcblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdfQ==
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { UserResponse } from 'stream-chat';
3
- import * as i0 from "@angular/core";
4
- export declare class HighlightMentionsPipe implements PipeTransform {
5
- transform(value?: string, mentionedUsers?: UserResponse[]): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<HighlightMentionsPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<HighlightMentionsPipe, "highlightMentions">;
8
- }