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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.18.0",
3
+ "version": "4.19.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.18.0';
1
+ export const version = '4.19.0';