stream-chat-angular 4.20.0 → 4.22.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,6 +1,6 @@
1
1
  import { NgZone } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Channel, ChannelResponse, ConnectAPIResponse, OwnUserResponse, UserResponse } from 'stream-chat';
3
+ import { Channel, ChannelResponse, ConnectAPIResponse, OwnUserResponse, StreamChatOptions, UserResponse } from 'stream-chat';
4
4
  import { AppSettings, Event, StreamChat, TokenOrProvider } from 'stream-chat';
5
5
  import { NotificationService } from './notification.service';
6
6
  import { DefaultStreamChatGenerics } from './types';
@@ -54,8 +54,9 @@ export declare class ChatClientService<T extends DefaultStreamChatGenerics = Def
54
54
  * @param apiKey
55
55
  * @param userOrId
56
56
  * @param userTokenOrProvider You can provide a token, or the keyword 'guest' to connect as [guest user](https://getstream.io/chat/docs/javascript/authless_users/?language=javascript#guest-users)
57
+ * @param clientOptions Setting to provide to the Stream client instance
57
58
  */
58
- init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T>, userTokenOrProvider: TokenOrProvider | 'guest'): ConnectAPIResponse<T>;
59
+ init(apiKey: string, userOrId: string | OwnUserResponse<T> | UserResponse<T>, userTokenOrProvider: TokenOrProvider | 'guest', clientOptions?: StreamChatOptions): ConnectAPIResponse<T>;
59
60
  /**
60
61
  * Disconnects the current user, and closes the WebSocket connection. Useful when disconnecting a chat user, use in combination with [`reset`](./ChannelService.mdx/#reset).
61
62
  */
@@ -27,6 +27,10 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
27
27
  */
28
28
  messageOptionsTrigger: 'message-row' | 'message-bubble';
29
29
  typingIndicatorTemplate: TemplateRef<TypingIndicatorContext> | undefined;
30
+ /**
31
+ * You can hide the "jump to latest" button while scrolling. A potential use-case for this input would be to [workaround a known issue on iOS Safar](https://github.com/GetStream/stream-chat-angular/issues/418)
32
+ */
33
+ hideJumpToLatestButtonDuringScroll: boolean;
30
34
  messageTemplate: TemplateRef<MessageContext> | undefined;
31
35
  messages$: Observable<StreamMessage[]>;
32
36
  enabledMessageActions: string[];
@@ -38,6 +42,8 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
38
42
  parentMessage: StreamMessage | undefined;
39
43
  highlightedMessageId: string | undefined;
40
44
  isLoading: boolean;
45
+ isScrollInProgress: boolean;
46
+ scrollEndTimeout: any;
41
47
  private scrollContainer;
42
48
  private parentMessageElement;
43
49
  private latestMessage;
@@ -80,5 +86,5 @@ export declare class MessageListComponent implements AfterViewChecked, OnChanges
80
86
  private scrollToLatestMessage;
81
87
  private newMessageReceived;
82
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageListComponent, never>;
83
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; }, {}, never, never>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageListComponent, "stream-message-list", never, { "mode": "mode"; "direction": "direction"; "messageOptionsTrigger": "messageOptionsTrigger"; "hideJumpToLatestButtonDuringScroll": "hideJumpToLatestButtonDuringScroll"; }, {}, never, never>;
84
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.20.0",
3
+ "version": "4.22.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.20.0';
1
+ export const version = '4.22.0';