stream-chat-angular 4.56.0-perf-message-list.1 → 4.56.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,4 +1,4 @@
1
- import { NgZone, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, NgZone, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { Channel, User } from 'stream-chat';
3
3
  import { ChatClientService } from '../chat-client.service';
4
4
  import { AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
@@ -6,9 +6,10 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * The `Avatar` component displays the provided image, with fallback to the first letter of the optional name input.
8
8
  */
9
- export declare class AvatarComponent implements OnChanges {
9
+ export declare class AvatarComponent implements OnChanges, OnInit, OnChanges, AfterViewInit {
10
10
  private chatClientService;
11
11
  private ngZone;
12
+ private cdRef;
12
13
  /**
13
14
  * An optional name of the image, used for fallback image or image title (if `imageUrl` is provided)
14
15
  */
@@ -48,10 +49,18 @@ export declare class AvatarComponent implements OnChanges {
48
49
  isError: boolean;
49
50
  isOnline: boolean;
50
51
  private isOnlineSubscription?;
51
- constructor(chatClientService: ChatClientService, ngZone: NgZone);
52
+ initials: string;
53
+ fallbackChannelImage: string | undefined;
54
+ private userId?;
55
+ private isViewInited;
56
+ private subscriptions;
57
+ constructor(chatClientService: ChatClientService, ngZone: NgZone, cdRef: ChangeDetectorRef);
58
+ ngOnInit(): void;
52
59
  ngOnChanges(changes: SimpleChanges): void;
53
- get initials(): string;
54
- get fallbackChannelImage(): string | undefined;
60
+ private setFallbackChannelImage;
61
+ private setInitials;
62
+ private updateIsOnlineSubscription;
63
+ ngAfterViewInit(): void;
55
64
  private getOtherMemberIfOneToOneChannel;
56
65
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
57
66
  static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "showOnlineIndicator": "showOnlineIndicator"; "initialsType": "initialsType"; }, {}, never, never>;
@@ -1,4 +1,4 @@
1
- import { AfterViewChecked, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ReactionResponse, UserResponse } from 'stream-chat';
3
3
  import { ChannelService } from '../channel.service';
4
4
  import { MessageReactionType, DefaultStreamChatGenerics } from '../types';
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
10
10
  /**
11
11
  * The `MessageReactions` component displays the reactions of a message, the current user can add and remove reactions. You can read more about [message reactions](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript) in the platform documentation.
12
12
  */
13
- export declare class MessageReactionsComponent implements AfterViewChecked, OnChanges {
13
+ export declare class MessageReactionsComponent implements AfterViewChecked, OnChanges, OnInit, AfterViewInit, OnDestroy {
14
14
  private cdRef;
15
15
  private channelService;
16
16
  private messageReactionsService;
@@ -56,12 +56,17 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
56
56
  isLoading: boolean;
57
57
  reactions: ReactionResponse[];
58
58
  shouldHandleReactionClick: boolean;
59
+ existingReactions: string[];
60
+ reactionsCount: number;
61
+ reactionOptions: string[];
62
+ private subscriptions;
63
+ private isViewInited;
59
64
  constructor(cdRef: ChangeDetectorRef, channelService: ChannelService, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService, themeService: ThemeService);
65
+ ngOnInit(): void;
60
66
  ngOnChanges(changes: SimpleChanges): void;
67
+ ngAfterViewInit(): void;
61
68
  ngAfterViewChecked(): void;
62
- get existingReactions(): MessageReactionType[];
63
- get reactionsCount(): number;
64
- get reactionOptions(): MessageReactionType[];
69
+ ngOnDestroy(): void;
65
70
  getLatestUserByReaction(reactionType: MessageReactionType): UserResponse<DefaultStreamChatGenerics> | null | undefined;
66
71
  getEmojiByReaction(reactionType: MessageReactionType): string;
67
72
  reactionSelected(reactionType: string): void;
@@ -79,6 +84,7 @@ export declare class MessageReactionsComponent implements AfterViewChecked, OnCh
79
84
  private stopWatchForOutsideClicks;
80
85
  private setTooltipPosition;
81
86
  private fetchAllReactions;
87
+ private setExistingReactions;
82
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsComponent, never>;
83
89
  static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionCounts": "messageReactionCounts"; "isSelectorOpen": "isSelectorOpen"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, { "isSelectorOpenChange": "isSelectorOpenChange"; }, never, never>;
84
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.56.0-perf-message-list.1",
3
+ "version": "4.56.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/",
@@ -1 +1 @@
1
- export const version = '4.56.0-perf-message-list.1';
1
+ export const version = '4.56.0';