stream-chat-angular 5.1.11 → 5.2.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.
Files changed (41) hide show
  1. package/assets/version.d.ts +1 -1
  2. package/esm2020/assets/version.mjs +2 -2
  3. package/esm2020/lib/attachment-list/attachment-list.component.mjs +3 -3
  4. package/esm2020/lib/channel-header/channel-header.component.mjs +3 -3
  5. package/esm2020/lib/channel-list/channel-list.component.mjs +3 -3
  6. package/esm2020/lib/channel-preview/channel-preview.component.mjs +3 -3
  7. package/esm2020/lib/channel.service.mjs +3 -1
  8. package/esm2020/lib/chat-client.service.mjs +1 -1
  9. package/esm2020/lib/message/message.component.mjs +6 -5
  10. package/esm2020/lib/message-actions-box/message-actions-box.component.mjs +3 -3
  11. package/esm2020/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.mjs +3 -3
  12. package/esm2020/lib/message-input/message-input.component.mjs +3 -3
  13. package/esm2020/lib/message-input/textarea/textarea.component.mjs +3 -3
  14. package/esm2020/lib/message-list/message-list.component.mjs +3 -3
  15. package/esm2020/lib/message-reactions/message-reactions.component.mjs +72 -80
  16. package/esm2020/lib/message-reactions-selector/message-reactions-selector.component.mjs +3 -3
  17. package/esm2020/lib/message-reactions.service.mjs +30 -4
  18. package/esm2020/lib/notification-list/notification-list.component.mjs +3 -3
  19. package/esm2020/lib/paginated-list/paginated-list.component.mjs +94 -0
  20. package/esm2020/lib/stream-chat.module.mjs +13 -3
  21. package/esm2020/lib/types.mjs +1 -1
  22. package/esm2020/lib/user-list/user-list.component.mjs +47 -0
  23. package/esm2020/lib/voice-recording/voice-recording.component.mjs +3 -3
  24. package/esm2020/public-api.mjs +3 -1
  25. package/fesm2015/stream-chat-angular.mjs +284 -116
  26. package/fesm2015/stream-chat-angular.mjs.map +1 -1
  27. package/fesm2020/stream-chat-angular.mjs +269 -107
  28. package/fesm2020/stream-chat-angular.mjs.map +1 -1
  29. package/lib/channel.service.d.ts +7 -2
  30. package/lib/message-reactions/message-reactions.component.d.ts +19 -11
  31. package/lib/message-reactions.service.d.ts +14 -2
  32. package/lib/paginated-list/paginated-list.component.d.ts +42 -0
  33. package/lib/stream-chat.module.d.ts +7 -5
  34. package/lib/types.d.ts +11 -2
  35. package/lib/user-list/user-list.component.d.ts +30 -0
  36. package/package.json +2 -2
  37. package/public-api.d.ts +2 -0
  38. package/src/assets/styles/css/index.css +1 -1
  39. package/src/assets/styles/css/index.layout.css +1 -1
  40. package/src/assets/styles/scss/_base.scss +31 -0
  41. package/src/assets/version.ts +1 -1
@@ -344,7 +344,6 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
344
344
  user?: UserResponse<T> | null | undefined;
345
345
  user_id?: string | undefined;
346
346
  } & {
347
- poll: import("stream-chat").PollResponse<T>;
348
347
  type: import("stream-chat").MessageLabel;
349
348
  args?: string | undefined;
350
349
  before_message_send_failed?: boolean | undefined;
@@ -368,9 +367,13 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
368
367
  pin_expires?: string | null | undefined;
369
368
  pinned_at?: string | null | undefined;
370
369
  pinned_by?: UserResponse<T> | null | undefined;
370
+ poll?: import("stream-chat").PollResponse<T> | undefined;
371
371
  reaction_counts?: {
372
372
  [key: string]: number;
373
373
  } | null | undefined;
374
+ reaction_groups?: {
375
+ [key: string]: import("stream-chat").ReactionGroupResponse;
376
+ } | null | undefined;
374
377
  reaction_scores?: {
375
378
  [key: string]: number;
376
379
  } | null | undefined;
@@ -391,8 +394,9 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
391
394
  pollType: import("stream-chat").UR;
392
395
  reactionType: import("stream-chat").UR;
393
396
  userType: import("stream-chat").UR;
394
- }>, "status" | "created_at" | "pinned_at" | "updated_at"> & import("stream-chat").UR & {
397
+ }>, "status" | "created_at" | "pinned_at" | "updated_at" | "deleted_at"> & import("stream-chat").UR & {
395
398
  created_at: Date;
399
+ deleted_at: Date | null;
396
400
  pinned_at: Date | null;
397
401
  status: string;
398
402
  updated_at: Date;
@@ -499,6 +503,7 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
499
503
  get activeChannelThreadReplies(): (StreamMessage<T> | MessageResponse<T> | FormatMessageResponse<T>)[];
500
504
  /**
501
505
  * Get the last 1200 reactions of a message in the current active channel. If you need to fetch more reactions please use the [following endpoint](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript#paginating-reactions).
506
+ * @deprecated use [`messageReactionsService.queryReactions()`](https://getstream.io/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions) instead
502
507
  * @param messageId
503
508
  * @returns all reactions of a message
504
509
  */
@@ -1,6 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { ReactionResponse, UserResponse } from 'stream-chat';
3
- import { ChannelService } from '../channel.service';
2
+ import { ReactionGroupResponse, ReactionResponse, UserResponse } from 'stream-chat';
4
3
  import { MessageReactionType, DefaultStreamChatGenerics } from '../types';
5
4
  import { MessageReactionsService } from '../message-reactions.service';
6
5
  import { CustomTemplatesService } from '../custom-templates.service';
@@ -10,7 +9,6 @@ import * as i0 from "@angular/core";
10
9
  */
11
10
  export declare class MessageReactionsComponent implements OnChanges, OnInit, AfterViewInit, OnDestroy {
12
11
  private cdRef;
13
- private channelService;
14
12
  private messageReactionsService;
15
13
  customTemplatesService: CustomTemplatesService;
16
14
  /**
@@ -20,11 +18,19 @@ export declare class MessageReactionsComponent implements OnChanges, OnInit, Aft
20
18
  /**
21
19
  * The number of reactions grouped by [reaction types](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/message-reactions/message-reactions.component.ts)
22
20
  */
21
+ messageReactionGroups: {
22
+ [key: string]: ReactionGroupResponse;
23
+ } | undefined;
24
+ /**
25
+ * The number of reactions grouped by [reaction types](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/message-reactions/message-reactions.component.ts)
26
+ * @deprecated use `messageReactionGroups`
27
+ */
23
28
  messageReactionCounts: {
24
29
  [key in MessageReactionType]?: number;
25
30
  };
26
31
  /**
27
32
  * List of reactions of a [message](../types/stream-message.mdx), used to display the users of a reaction type.
33
+ * @deprecated you can fetch the reactions using [`messageReactionsService.queryReactions()`](https://getstream.io/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions)
28
34
  */
29
35
  latestReactions: ReactionResponse<DefaultStreamChatGenerics>[];
30
36
  /**
@@ -37,25 +43,27 @@ export declare class MessageReactionsComponent implements OnChanges, OnInit, Aft
37
43
  reactions: ReactionResponse[];
38
44
  shouldHandleReactionClick: boolean;
39
45
  existingReactions: string[];
40
- reactionsCount: number;
41
46
  reactionOptions: string[];
47
+ usersByReactions: {
48
+ [key: string]: {
49
+ users: UserResponse[];
50
+ next?: string;
51
+ };
52
+ };
42
53
  private subscriptions;
43
54
  private isViewInited;
44
- constructor(cdRef: ChangeDetectorRef, channelService: ChannelService, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService);
55
+ constructor(cdRef: ChangeDetectorRef, messageReactionsService: MessageReactionsService, customTemplatesService: CustomTemplatesService);
45
56
  ngOnInit(): void;
46
57
  ngOnChanges(changes: SimpleChanges): void;
47
58
  ngAfterViewInit(): void;
48
59
  ngOnDestroy(): void;
49
60
  getEmojiByReaction(reactionType: MessageReactionType): string;
50
- reactionSelected(reactionType: string): void;
51
- getUsersByReaction(reactionType: MessageReactionType): string;
52
- getAllUsersByReaction(reactionType?: MessageReactionType): UserResponse<DefaultStreamChatGenerics>[];
61
+ reactionSelected(reactionType: string): Promise<void>;
62
+ loadNextPageOfReactions(): Promise<void>;
53
63
  trackByMessageReaction(_: number, item: MessageReactionType): string;
54
- trackByUserId(_: number, item: UserResponse): string;
55
64
  isOwnReaction(reactionType: MessageReactionType): boolean;
56
65
  isOpenChange: (isOpen: boolean) => void;
57
- private fetchAllReactions;
58
66
  private setExistingReactions;
59
67
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionCounts": "messageReactionCounts"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, {}, never, never, false, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageReactionsComponent, "stream-message-reactions", never, { "messageId": "messageId"; "messageReactionGroups": "messageReactionGroups"; "messageReactionCounts": "messageReactionCounts"; "latestReactions": "latestReactions"; "ownReactions": "ownReactions"; }, {}, never, never, false, never>;
61
69
  }
@@ -1,11 +1,15 @@
1
1
  import { MessageReactionClickDetails, MessageReactionType } from './types';
2
2
  import { BehaviorSubject } from 'rxjs';
3
+ import { ChatClientService } from './chat-client.service';
4
+ import { NotificationService } from './notification.service';
3
5
  import * as i0 from "@angular/core";
4
6
  /**
5
7
  * The `MessageReactionsService` provides customization options to message [reactions](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript).
6
8
  *
7
9
  */
8
10
  export declare class MessageReactionsService {
11
+ private chatClientService;
12
+ private notificationService;
9
13
  /**
10
14
  * The enabled [reactions](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript) and the associated emoji
11
15
  *
@@ -17,10 +21,10 @@ export declare class MessageReactionsService {
17
21
  /**
18
22
  * By default the [`MessageReactionsComponent`](../../components/MessageReactionsComponent) will display the reacting users when a reaction is clicked. You can override this with your own UI by providing a custom event handler.
19
23
  *
20
- * The event handler can retrieve all reactions of a message inside the active channel using the [`channelService.getMessageReactions` method](../../services/ChannelService/#getmessagereactions)
24
+ * The event handler can retrieve all reactions of a message using the [`messageReactionsService.queryReactions()`](https://getstream.io/chat/docs/sdk/angular/services/MessageReactionsService/#queryreactions)
21
25
  */
22
26
  customReactionClickHandler?: (details: MessageReactionClickDetails) => void;
23
- constructor();
27
+ constructor(chatClientService: ChatClientService, notificationService: NotificationService);
24
28
  /**
25
29
  * Sets the enabled reactions
26
30
  */
@@ -33,6 +37,14 @@ export declare class MessageReactionsService {
33
37
  get reactions(): {
34
38
  [key in MessageReactionType]: string;
35
39
  };
40
+ /**
41
+ * Query reactions of a specific message, more info in the [API documentation](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript#query-reactions)
42
+ * @param messageId
43
+ * @param type
44
+ * @param next
45
+ * @returns the reactions and the cursor for the next/prev pages
46
+ */
47
+ queryReactions(messageId: string, type: string, next?: string): Promise<import("stream-chat").QueryReactionsAPIResponse<import("./types").DefaultStreamChatGenerics>>;
36
48
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageReactionsService, never>;
37
49
  static ɵprov: i0.ɵɵInjectableDeclaration<MessageReactionsService>;
38
50
  }
@@ -0,0 +1,42 @@
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, NgZone, TemplateRef, TrackByFunction } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * The `PaginatedListComponent` is a utility element that can display a list of any items. It uses infinite scrolls to load more elements. Providing the data to display, is the responsibility of the parent component.
5
+ */
6
+ export declare class PaginatedListComponent<T> implements AfterViewInit {
7
+ private ngZone;
8
+ private cdRef;
9
+ /**
10
+ * The items to display
11
+ */
12
+ items: T[];
13
+ /**
14
+ * If `true`, the loading indicator will be displayed
15
+ */
16
+ isLoading: boolean;
17
+ /**
18
+ * If `false` the component won't ask for more data vua the `loadMore` output
19
+ */
20
+ hasMore: boolean;
21
+ /**
22
+ * The `trackBy` to use with the `NgFor` directive
23
+ * @param i
24
+ * @returns the track by id
25
+ */
26
+ trackBy: TrackByFunction<T>;
27
+ itemTempalteRef: TemplateRef<T> | undefined;
28
+ /**
29
+ * The component will signal via this output when more items should be fetched
30
+ *
31
+ * The new items should be appended to the `items` array
32
+ */
33
+ readonly loadMore: EventEmitter<void>;
34
+ isScrollable: boolean;
35
+ isAtBottom: boolean;
36
+ private scrollContainer;
37
+ constructor(ngZone: NgZone, cdRef: ChangeDetectorRef);
38
+ ngAfterViewInit(): void;
39
+ private scrolled;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedListComponent<any>, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedListComponent<any>, "stream-paginated-list", never, { "items": "items"; "isLoading": "isLoading"; "hasMore": "hasMore"; "trackBy": "trackBy"; }, { "loadMore": "loadMore"; }, ["itemTempalteRef"], never, false, never>;
42
+ }
@@ -23,12 +23,14 @@ import * as i21 from "./message-bounce-prompt/message-bounce-prompt.component";
23
23
  import * as i22 from "./voice-recording/voice-recording.component";
24
24
  import * as i23 from "./voice-recording/voice-recording-wavebar/voice-recording-wavebar.component";
25
25
  import * as i24 from "./message-reactions-selector/message-reactions-selector.component";
26
- import * as i25 from "@angular/common";
27
- import * as i26 from "ngx-float-ui";
28
- import * as i27 from "./stream-avatar.module";
29
- import * as i28 from "@ngx-translate/core";
26
+ import * as i25 from "./user-list/user-list.component";
27
+ import * as i26 from "./paginated-list/paginated-list.component";
28
+ import * as i27 from "@angular/common";
29
+ import * as i28 from "ngx-float-ui";
30
+ import * as i29 from "./stream-avatar.module";
31
+ import * as i30 from "@ngx-translate/core";
30
32
  export declare class StreamChatModule {
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<StreamChatModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.MessageBouncePromptComponent, typeof i22.VoiceRecordingComponent, typeof i23.VoiceRecordingWavebarComponent, typeof i24.MessageReactionsSelectorComponent], [typeof i25.CommonModule, typeof i26.NgxFloatUiModule, typeof i27.StreamAvatarModule, typeof i28.TranslateModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i27.StreamAvatarModule, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.MessageBouncePromptComponent, typeof i22.VoiceRecordingComponent, typeof i23.VoiceRecordingWavebarComponent, typeof i24.MessageReactionsSelectorComponent]>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<StreamChatModule, [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i17.TextareaDirective, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.MessageBouncePromptComponent, typeof i22.VoiceRecordingComponent, typeof i23.VoiceRecordingWavebarComponent, typeof i24.MessageReactionsSelectorComponent, typeof i25.UserListComponent, typeof i26.PaginatedListComponent], [typeof i27.CommonModule, typeof i28.NgxFloatUiModule, typeof i29.StreamAvatarModule, typeof i30.TranslateModule], [typeof i1.ChannelComponent, typeof i2.ChannelHeaderComponent, typeof i3.ChannelListComponent, typeof i4.ChannelPreviewComponent, typeof i5.MessageComponent, typeof i6.MessageInputComponent, typeof i7.MessageListComponent, typeof i8.LoadingIndicatorComponent, typeof i9.IconComponent, typeof i10.MessageActionsBoxComponent, typeof i11.AttachmentListComponent, typeof i12.MessageReactionsComponent, typeof i13.NotificationComponent, typeof i14.NotificationListComponent, typeof i15.AttachmentPreviewListComponent, typeof i16.ModalComponent, typeof i29.StreamAvatarModule, typeof i18.ThreadComponent, typeof i19.IconPlaceholderComponent, typeof i20.LoadingIndicatorPlaceholderComponent, typeof i21.MessageBouncePromptComponent, typeof i22.VoiceRecordingComponent, typeof i23.VoiceRecordingWavebarComponent, typeof i24.MessageReactionsSelectorComponent, typeof i25.UserListComponent, typeof i26.PaginatedListComponent]>;
33
35
  static ɵinj: i0.ɵɵInjectorDeclaration<StreamChatModule>;
34
36
  }
package/lib/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { Observable, Subject } from 'rxjs';
3
- import type { Attachment, Channel, ChannelFilters, ChannelMemberResponse, CommandResponse, Event, ExtendableGenerics, FormatMessageResponse, LiteralStringForUnion, MessageResponseBase, Mute, ReactionResponse, User, UserResponse } from 'stream-chat';
3
+ import type { Attachment, Channel, ChannelFilters, ChannelMemberResponse, CommandResponse, Event, ExtendableGenerics, FormatMessageResponse, LiteralStringForUnion, MessageResponseBase, Mute, ReactionGroupResponse, ReactionResponse, User, UserResponse } from 'stream-chat';
4
4
  import { AttachmentService } from './attachment.service';
5
5
  import { Icon } from './icon/icon.component';
6
6
  export declare type UnknownType = Record<string, unknown>;
@@ -138,7 +138,11 @@ export declare type AttachmentListContext = {
138
138
  imageModalStateChangeHandler?: (state: 'opened' | 'closed') => void;
139
139
  };
140
140
  export declare type AvatarType = 'channel' | 'user';
141
- export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator' | 'reaction';
141
+ export declare type AvatarLocation = 'channel-preview' | 'channel-header' | 'message-sender' | 'message-reader' | 'quoted-message-sender' | 'autocomplete-item' | 'typing-indicator'
142
+ /**
143
+ * @deprecated this will be renamed to user-list in the next major release
144
+ */
145
+ | 'reaction';
142
146
  export declare type AvatarContext = {
143
147
  name: string | undefined;
144
148
  imageUrl: string | undefined;
@@ -196,11 +200,16 @@ export declare type MessageReactionsSelectorContext = {
196
200
  };
197
201
  export declare type MessageReactionsContext = {
198
202
  messageId: string | undefined;
203
+ /** @deprecated use `messageReactionGroups` */
199
204
  messageReactionCounts: {
200
205
  [key in MessageReactionType]?: number;
201
206
  };
207
+ /** @deprecated you can fetch the reactions using [`chatService.chatClient.queryReactions()`](https://getstream.io/chat/docs/javascript/send_reaction/?language=javascript&q=queryReactions#query-reactions) */
202
208
  latestReactions: ReactionResponse<DefaultStreamChatGenerics>[];
203
209
  ownReactions: ReactionResponse<DefaultStreamChatGenerics>[];
210
+ messageReactionGroups: {
211
+ [key in MessageReactionType]: ReactionGroupResponse;
212
+ };
204
213
  };
205
214
  export declare type ModalContext = {
206
215
  isOpen: boolean;
@@ -0,0 +1,30 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { UserResponse } from 'stream-chat';
3
+ import { DefaultStreamChatGenerics } from '../types';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * The `UserListComponent` can display a list of Stream users with pagination
7
+ */
8
+ export declare class UserListComponent {
9
+ /**
10
+ * The users to display
11
+ */
12
+ users: UserResponse<DefaultStreamChatGenerics>[];
13
+ /**
14
+ * If `true`, the loading indicator will be displayed
15
+ */
16
+ isLoading: boolean;
17
+ /**
18
+ * If `false` the component won't ask for more data vua the `loadMore` output
19
+ */
20
+ hasMore: boolean;
21
+ /**
22
+ * The component will signal via this output when more items should be fetched
23
+ *
24
+ * The new items should be appended to the `items` array
25
+ */
26
+ readonly loadMore: EventEmitter<void>;
27
+ trackByUserId(_: number, item: UserResponse): string;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserListComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserListComponent, "stream-user-list", never, { "users": "users"; "isLoading": "isLoading"; "hasMore": "hasMore"; }, { "loadMore": "loadMore"; }, never, never, false, never>;
30
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "5.1.11",
3
+ "version": "5.2.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/",
@@ -32,7 +32,7 @@
32
32
  "@angular/core": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
33
33
  "@ngx-translate/core": "^14.0.0 || ^15.0.0",
34
34
  "rxjs": "^7.4.0",
35
- "stream-chat": "^8.26.0"
35
+ "stream-chat": "^8.29.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "@floating-ui/dom": "^1.6.3",
package/public-api.d.ts CHANGED
@@ -61,3 +61,5 @@ export * from './lib/message-reactions-selector/message-reactions-selector.compo
61
61
  export * from './lib/channel-query';
62
62
  export * from './lib/virtualized-list.service';
63
63
  export * from './lib/virtualized-message-list.service';
64
+ export * from './lib/user-list/user-list.component';
65
+ export * from './lib/paginated-list/paginated-list.component';