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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +39 -5
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +39 -6
- package/fesm2015/stream-chat-angular.js +38 -5
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +10 -3
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -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
|
-
|
|
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
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.38.0';
|