stream-chat-angular 2.1.0 → 2.2.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.
@@ -6,6 +6,7 @@ export declare class ChannelHeaderComponent {
6
6
  private channelService;
7
7
  private channelListToggleService;
8
8
  activeChannel: Channel | undefined;
9
+ canReceiveConnectEvents: boolean | undefined;
9
10
  constructor(channelService: ChannelService, channelListToggleService: ChannelListToggleService);
10
11
  toggleMenu(event: Event): void;
11
12
  get memberCountParam(): {
@@ -9,6 +9,7 @@ export declare class ChannelPreviewComponent implements OnInit, OnDestroy {
9
9
  isUnread: boolean;
10
10
  latestMessage: string;
11
11
  private subscriptions;
12
+ private canSendReadEvents;
12
13
  constructor(channelService: ChannelService);
13
14
  ngOnInit(): void;
14
15
  ngOnDestroy(): void;
@@ -69,6 +69,7 @@ export declare class ChannelService {
69
69
  private handleChannelUpdate;
70
70
  private handleChannelTruncate;
71
71
  private get channels();
72
+ private get canSendReadEvents();
72
73
  static ɵfac: i0.ɵɵFactoryDeclaration<ChannelService, never>;
73
74
  static ɵprov: i0.ɵɵInjectableDeclaration<ChannelService>;
74
75
  }
@@ -12,6 +12,7 @@ export declare class MessageComponent {
12
12
  areReactionsEnabled: boolean | undefined;
13
13
  canReactToMessage: boolean | undefined;
14
14
  isLastSentMessage: boolean | undefined;
15
+ canReceiveReadEvents: boolean | undefined;
15
16
  isEditing: boolean | undefined;
16
17
  isActionBoxOpen: boolean;
17
18
  isReactionSelectorOpen: boolean;
@@ -33,5 +34,5 @@ export declare class MessageComponent {
33
34
  resendMessage(): void;
34
35
  textClicked(): void;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "message": "message"; "enabledMessageActions": "enabledMessageActions"; "areReactionsEnabled": "areReactionsEnabled"; "canReactToMessage": "canReactToMessage"; "isLastSentMessage": "isLastSentMessage"; }, {}, never, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "stream-message", never, { "message": "message"; "enabledMessageActions": "enabledMessageActions"; "areReactionsEnabled": "areReactionsEnabled"; "canReactToMessage": "canReactToMessage"; "isLastSentMessage": "isLastSentMessage"; "canReceiveReadEvents": "canReceiveReadEvents"; }, {}, never, never>;
37
38
  }
@@ -1,4 +1,5 @@
1
- import { ComponentFactoryResolver, ComponentRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, Type } from '@angular/core';
1
+ import { OnInit } from '@angular/core';
2
+ import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, TemplateRef, Type } from '@angular/core';
2
3
  import { Observable } from 'rxjs';
3
4
  import { UserResponse } from 'stream-chat';
4
5
  import { AttachmentService } from '../attachment.service';
@@ -8,13 +9,14 @@ import { AttachmentUpload, MentionAutcompleteListItemContext, StreamMessage } fr
8
9
  import { MessageInputConfigService } from './message-input-config.service';
9
10
  import { TextareaInterface } from './textarea.interface';
10
11
  import * as i0 from "@angular/core";
11
- export declare class MessageInputComponent implements OnInit, OnChanges, OnDestroy {
12
+ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
12
13
  private channelService;
13
14
  private notificationService;
14
15
  private attachmentService;
15
16
  private configService;
16
17
  private textareaType;
17
18
  private componentFactoryResolver;
19
+ private cdRef;
18
20
  isFileUploadEnabled: boolean | undefined;
19
21
  areMentionsEnabled: boolean | undefined;
20
22
  mentionScope: 'channel' | 'application' | undefined;
@@ -24,6 +26,8 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
24
26
  message: StreamMessage | undefined;
25
27
  readonly messageUpdate: EventEmitter<void>;
26
28
  isFileUploadAuthorized: boolean | undefined;
29
+ canSendLinks: boolean | undefined;
30
+ canSendMessages: boolean | undefined;
27
31
  attachmentUploads$: Observable<AttachmentUpload[]>;
28
32
  textareaValue: string;
29
33
  textareaRef: ComponentRef<TextareaInterface> | undefined;
@@ -32,15 +36,18 @@ export declare class MessageInputComponent implements OnInit, OnChanges, OnDestr
32
36
  private textareaAnchor;
33
37
  private subscriptions;
34
38
  private hideNotification;
35
- constructor(channelService: ChannelService, notificationService: NotificationService, attachmentService: AttachmentService, configService: MessageInputConfigService, textareaType: Type<TextareaInterface>, componentFactoryResolver: ComponentFactoryResolver);
39
+ constructor(channelService: ChannelService, notificationService: NotificationService, attachmentService: AttachmentService, configService: MessageInputConfigService, textareaType: Type<TextareaInterface>, componentFactoryResolver: ComponentFactoryResolver, cdRef: ChangeDetectorRef);
36
40
  ngOnInit(): void;
41
+ ngAfterViewInit(): void;
37
42
  ngOnChanges(changes: SimpleChanges): void;
38
43
  ngOnDestroy(): void;
39
44
  messageSent(): Promise<void>;
45
+ get containsLinks(): boolean;
40
46
  get accept(): string;
41
47
  filesSelected(fileList: FileList | null): Promise<void>;
42
48
  private clearFileInput;
43
49
  private get isUpdate();
50
+ private initTextarea;
44
51
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageInputComponent, never>;
45
52
  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>;
46
53
  }
@@ -16,6 +16,7 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
16
16
  enabledMessageActionsInput: MessageActions[];
17
17
  messages$: Observable<StreamMessage[]>;
18
18
  canReactToMessage: boolean | undefined;
19
+ canReceiveReadEvents: boolean | undefined;
19
20
  enabledMessageActions: MessageActions[];
20
21
  private class;
21
22
  unreadMessageCount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "2.1.0",
3
+ "version": "2.2.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/",
@@ -86,5 +86,9 @@ export const en = {
86
86
  failed: 'failed',
87
87
  retry: 'retry',
88
88
  test: 'success',
89
+ 'Sending links is not allowed in this conversation':
90
+ 'Sending links is not allowed in this conversation',
91
+ "You can't send messages in this channel":
92
+ "You can't send messages in this channel",
89
93
  },
90
94
  };
@@ -1 +1 @@
1
- export const version = '2.1.0';
1
+ export const version = '2.2.0';