stream-chat-angular 4.29.1 → 4.30.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,3 +1,4 @@
1
+ import { OnChanges } from '@angular/core';
1
2
  import { Channel, User } from 'stream-chat';
2
3
  import { CustomTemplatesService } from '../custom-templates.service';
3
4
  import { AvatarContext, AvatarLocation, AvatarType, DefaultStreamChatGenerics } from '../types';
@@ -5,7 +6,7 @@ import * as i0 from "@angular/core";
5
6
  /**
6
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.
7
8
  */
8
- export declare class AvatarPlaceholderComponent {
9
+ export declare class AvatarPlaceholderComponent implements OnChanges {
9
10
  customTemplatesService: CustomTemplatesService;
10
11
  /**
11
12
  * An optional name of the image, used for fallback image or image title (if `imageUrl` is provided)
@@ -39,8 +40,9 @@ export declare class AvatarPlaceholderComponent {
39
40
  * 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
  */
41
42
  initialsType: 'first-letter-of-first-word' | 'first-letter-of-each-word';
43
+ context: AvatarContext;
42
44
  constructor(customTemplatesService: CustomTemplatesService);
43
- getAvatarContext(): AvatarContext;
45
+ ngOnChanges(): void;
44
46
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarPlaceholderComponent, never>;
45
47
  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>;
46
48
  }
@@ -31,7 +31,6 @@ export declare class ChannelListComponent implements AfterViewInit, OnDestroy {
31
31
  loadMoreChannels(): Promise<void>;
32
32
  trackByChannelId(index: number, item: Channel<DefaultStreamChatGenerics>): string;
33
33
  channelSelected(): void;
34
- getChannelPreviewContext(channel: Channel<DefaultStreamChatGenerics>): ChannelPreviewContext<DefaultStreamChatGenerics>;
35
34
  static ɵfac: i0.ɵɵFactoryDeclaration<ChannelListComponent, never>;
36
35
  static ɵcmp: i0.ɵɵComponentDeclaration<ChannelListComponent, "stream-channel-list", never, {}, {}, never, ["[channel-list-top]", "[channel-list-bottom]"]>;
37
36
  }
@@ -1,3 +1,4 @@
1
+ import { OnChanges } from '@angular/core';
1
2
  import { CustomTemplatesService } from '../custom-templates.service';
2
3
  import { Icon } from '../icon/icon.component';
3
4
  import { IconContext } from '../types';
@@ -5,7 +6,7 @@ import * as i0 from "@angular/core";
5
6
  /**
6
7
  * The `IconPlaceholder` component displays the [default icons](./IconComponent.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.
7
8
  */
8
- export declare class IconPlaceholderComponent {
9
+ export declare class IconPlaceholderComponent implements OnChanges {
9
10
  customTemplatesService: CustomTemplatesService;
10
11
  /**
11
12
  * The icon to display, the list of [supported icons](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/icon/icon.component.ts) can be found on GitHub.
@@ -15,8 +16,9 @@ export declare class IconPlaceholderComponent {
15
16
  * The size of the icon (in pixels)
16
17
  */
17
18
  size: number | undefined;
19
+ iconContext: IconContext;
18
20
  constructor(customTemplatesService: CustomTemplatesService);
19
- getIconContext(): IconContext;
21
+ ngOnChanges(): void;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<IconPlaceholderComponent, never>;
21
23
  static ɵcmp: i0.ɵɵComponentDeclaration<IconPlaceholderComponent, "stream-icon-placeholder", never, { "icon": "icon"; "size": "size"; }, {}, never, never>;
22
24
  }
@@ -75,7 +75,6 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
75
75
  scrollToTop(): void;
76
76
  scrolled(): void;
77
77
  getTypingIndicatorContext(): TypingIndicatorContext;
78
- getMessageContext(message: StreamMessage): MessageContext;
79
78
  getTypingIndicatorText(users: UserResponse[]): string;
80
79
  get replyCountParam(): {
81
80
  replyCount: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.29.1",
3
+ "version": "4.30.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.29.1';
1
+ export const version = '4.30.0';