stream-chat-angular 4.18.0 → 4.19.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 +31 -10
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/avatar/avatar.component.js +17 -3
- package/esm2015/lib/avatar-placeholder/avatar-placeholder.component.js +9 -2
- package/esm2015/lib/channel-header/channel-header.component.js +1 -1
- package/esm2015/lib/channel-preview/channel-preview.component.js +1 -1
- package/esm2015/lib/message/message.component.js +1 -1
- package/esm2015/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.js +1 -1
- package/esm2015/lib/message-input/message-input.component.js +1 -1
- package/esm2015/lib/message-reactions/message-reactions.component.js +1 -1
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +31 -10
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/avatar/avatar.component.d.ts +5 -1
- package/lib/avatar-placeholder/avatar-placeholder.component.d.ts +5 -1
- package/lib/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -41,6 +41,10 @@ export declare class AvatarComponent implements OnChanges {
|
|
|
41
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
42
|
*/
|
|
43
43
|
showOnlineIndicator: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If channel/user image isn't provided the initials of the name of the channel/user is shown instead, you can choose how the initals should be computed
|
|
46
|
+
*/
|
|
47
|
+
initialsType: 'first-letter-of-first-word' | 'first-letter-of-each-word';
|
|
44
48
|
isLoaded: boolean;
|
|
45
49
|
isError: boolean;
|
|
46
50
|
isOnline: boolean;
|
|
@@ -51,5 +55,5 @@ export declare class AvatarComponent implements OnChanges {
|
|
|
51
55
|
get fallbackChannelImage(): string | undefined;
|
|
52
56
|
private getOtherMemberIfOneToOneChannel;
|
|
53
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, 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>;
|
|
58
|
+
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>;
|
|
55
59
|
}
|
|
@@ -35,8 +35,12 @@ export declare class AvatarPlaceholderComponent {
|
|
|
35
35
|
* The type of the avatar: channel if channel avatar is displayed, user if user avatar is displayed
|
|
36
36
|
*/
|
|
37
37
|
type: AvatarType | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* If channel/user image isn't provided the initials of the name of the channel/user is shown instead, you can choose how the initals should be computed
|
|
40
|
+
*/
|
|
41
|
+
initialsType: 'first-letter-of-first-word' | 'first-letter-of-each-word';
|
|
38
42
|
constructor(customTemplatesService: CustomTemplatesService);
|
|
39
43
|
getAvatarContext(): AvatarContext;
|
|
40
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarPlaceholderComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarPlaceholderComponent, "stream-avatar-placeholder", never, { "name": "name"; "imageUrl": "imageUrl"; "size": "size"; "location": "location"; "channel": "channel"; "user": "user"; "type": "type"; }, {}, never, never>;
|
|
45
|
+
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>;
|
|
42
46
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export declare type AvatarContext = {
|
|
|
130
130
|
location: AvatarLocation | undefined;
|
|
131
131
|
channel?: Channel<DefaultStreamChatGenerics>;
|
|
132
132
|
user?: User<DefaultStreamChatGenerics>;
|
|
133
|
+
initialsType?: 'first-letter-of-first-word' | 'first-letter-of-each-word';
|
|
133
134
|
};
|
|
134
135
|
export declare type AttachmentPreviewListContext = {
|
|
135
136
|
attachmentUploads$: Observable<AttachmentUpload[]> | undefined;
|
package/package.json
CHANGED
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.19.0';
|