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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +23 -4
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/chat-client.service.js +4 -3
- package/esm2015/lib/message-list/message-list.component.js +19 -2
- package/fesm2015/stream-chat-angular.js +22 -4
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/chat-client.service.d.ts +3 -2
- package/lib/message-list/message-list.component.d.ts +7 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
|
@@ -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
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.22.0';
|