stream-chat-angular 4.13.0 → 4.14.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 +66 -6
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/avatar/avatar.component.js +56 -6
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +1 -1
- package/fesm2015/stream-chat-angular.js +55 -7
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/avatar/avatar.component.d.ts +12 -3
- package/package.json +1 -1
- package/src/assets/styles/css/index.css +1 -1
- package/src/assets/styles/scss/Card.scss +1 -1
- package/src/assets/styles/scss/ChannelHeader.scss +1 -1
- package/src/assets/styles/scss/MessageInput.scss +1 -1
- package/src/assets/styles/scss/TypingIndicator.scss +1 -1
- package/src/assets/styles/scss/_variables.scss +1 -1
- package/src/assets/styles/v2/css/index.css +1 -1
- package/src/assets/styles/v2/css/index.css.map +1 -1
- package/src/assets/styles/v2/css/index.layout.css +1 -1
- package/src/assets/styles/v2/css/index.layout.css.map +1 -1
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +11 -13
- package/src/assets/styles/v2/scss/Avatar/Avatar-layout.scss +10 -0
- package/src/assets/styles/v2/scss/Avatar/Avatar-theme.scss +11 -0
- package/src/assets/styles/v2/scss/MessageList/MessageList-layout.scss +8 -0
- package/src/assets/styles/v2/scss/_global-theme-variables.scss +4 -0
- package/src/assets/version.ts +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NgZone, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { Channel, User } from 'stream-chat';
|
|
2
3
|
import { ChatClientService } from '../chat-client.service';
|
|
3
4
|
import { AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
|
|
@@ -5,8 +6,9 @@ import * as i0 from "@angular/core";
|
|
|
5
6
|
/**
|
|
6
7
|
* The `Avatar` component displays the provided image, with fallback to the first letter of the optional name input.
|
|
7
8
|
*/
|
|
8
|
-
export declare class AvatarComponent {
|
|
9
|
+
export declare class AvatarComponent implements OnChanges {
|
|
9
10
|
private chatClientService;
|
|
11
|
+
private ngZone;
|
|
10
12
|
/**
|
|
11
13
|
* An optional name of the image, used for fallback image or image title (if `imageUrl` is provided)
|
|
12
14
|
*/
|
|
@@ -35,12 +37,19 @@ export declare class AvatarComponent {
|
|
|
35
37
|
* The type of the avatar: channel if channel avatar is displayed, user if user avatar is displayed
|
|
36
38
|
*/
|
|
37
39
|
type: AvatarType | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* If a channel avatar is displayed, and if the channel has exactly two members a green dot is displayed if the other member is online. Set this flag to `false` to turn off this behavior.
|
|
42
|
+
*/
|
|
43
|
+
showOnlineIndicator: boolean;
|
|
38
44
|
isLoaded: boolean;
|
|
39
45
|
isError: boolean;
|
|
40
|
-
|
|
46
|
+
isOnline: boolean;
|
|
47
|
+
private isOnlineSubscription?;
|
|
48
|
+
constructor(chatClientService: ChatClientService, ngZone: NgZone);
|
|
49
|
+
ngOnChanges(changes: SimpleChanges): Promise<void>;
|
|
41
50
|
get initials(): string;
|
|
42
51
|
get fallbackChannelImage(): string | undefined;
|
|
43
52
|
private getOtherMemberIfOneToOneChannel;
|
|
44
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; }, {}, never, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "stream-avatar", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; "showOnlineIndicator": "showOnlineIndicator"; }, {}, never, never>;
|
|
46
55
|
}
|
package/package.json
CHANGED