stream-chat-angular 4.37.0 → 4.38.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 { OnChanges } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy } from '@angular/core';
2
2
  import { Channel, User } from 'stream-chat';
3
3
  import { CustomTemplatesService } from '../custom-templates.service';
4
4
  import { AvatarContext, AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
@@ -6,8 +6,10 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * The `AvatarPlaceholder` component displays the [default avatar](./AvatarComponent.mdx) unless a [custom template](../services/CustomTemplatesService.mdx) is provided. This component is used by the SDK internally, you likely won't need to use it.
8
8
  */
9
- export declare class AvatarPlaceholderComponent implements OnChanges {
9
+ export declare class AvatarPlaceholderComponent implements OnChanges, AfterViewInit, OnDestroy {
10
10
  customTemplatesService: CustomTemplatesService;
11
+ private hostElement;
12
+ private cdRef;
11
13
  /**
12
14
  * An optional name of the image, used for fallback image or image title (if `imageUrl` is provided)
13
15
  */
@@ -41,8 +43,13 @@ export declare class AvatarPlaceholderComponent implements OnChanges {
41
43
  */
42
44
  initialsType: 'first-letter-of-first-word' | 'first-letter-of-each-word';
43
45
  context: AvatarContext;
44
- constructor(customTemplatesService: CustomTemplatesService);
46
+ isVisible: boolean;
47
+ private mutationObserver?;
48
+ constructor(customTemplatesService: CustomTemplatesService, hostElement: ElementRef<HTMLElement>, cdRef: ChangeDetectorRef);
49
+ ngAfterViewInit(): void;
45
50
  ngOnChanges(): void;
51
+ ngOnDestroy(): void;
52
+ private checkIfVisible;
46
53
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarPlaceholderComponent, never>;
47
54
  static ɵcmp: i0.ɵɵComponentDeclaration<AvatarPlaceholderComponent, "stream-avatar-placeholder", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "initialsType": "initialsType"; }, {}, never, never>;
48
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.37.0",
3
+ "version": "4.38.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.37.0';
1
+ export const version = '4.38.0';