@banta/sdk 5.8.3 → 5.8.5
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/README.md +2 -2
- package/esm2022/lib/comments/banta-comments/banta-comments.component.mjs +4 -2
- package/esm2022/lib/comments/comment-view/comment-view.component.mjs +29 -16
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/banta-sdk.mjs +31 -16
- package/fesm2022/banta-sdk.mjs.map +1 -1
- package/lib/chat-source.d.ts +3 -3
- package/lib/comments/banta-comments/banta-comments.component.d.ts +1 -1
- package/lib/comments/comment-view/comment-view.component.d.ts +7 -3
- package/lib/static-chat-source.d.ts +1 -1
- package/package.json +1 -1
package/lib/chat-source.d.ts
CHANGED
|
@@ -19,11 +19,11 @@ export declare class ChatSource extends SocketRPC implements ChatSourceBase {
|
|
|
19
19
|
private _state;
|
|
20
20
|
get sortOrder(): "newest" | "oldest" | "likes";
|
|
21
21
|
get filterMode(): string;
|
|
22
|
-
get state(): "
|
|
23
|
-
set state(value: "
|
|
22
|
+
get state(): "lost" | "connected" | "connecting" | "restored";
|
|
23
|
+
set state(value: "lost" | "connected" | "connecting" | "restored");
|
|
24
24
|
private _connectionStateChanged;
|
|
25
25
|
private _connectionStateChanged$;
|
|
26
|
-
get connectionStateChanged(): import("rxjs").Observable<"
|
|
26
|
+
get connectionStateChanged(): import("rxjs").Observable<"lost" | "connected" | "connecting" | "restored">;
|
|
27
27
|
private wasRestored;
|
|
28
28
|
bind(socket: DurableSocket): Promise<this>;
|
|
29
29
|
private mapOrUpdateMessages;
|
|
@@ -88,7 +88,7 @@ export declare class BantaCommentsComponent {
|
|
|
88
88
|
waitForThreadView(): Promise<CommentViewComponent>;
|
|
89
89
|
markLoaded: () => void;
|
|
90
90
|
loaded: Promise<void>;
|
|
91
|
-
get sourceState(): "
|
|
91
|
+
get sourceState(): "lost" | "connected" | "connecting" | "restored" | "no-source";
|
|
92
92
|
private updateLoading;
|
|
93
93
|
private _signInSelected;
|
|
94
94
|
private _permissionDeniedError;
|
|
@@ -33,7 +33,7 @@ export declare class CommentViewComponent {
|
|
|
33
33
|
* While this is called "new" messages, it really represents the messages that would be visible *at the beginning
|
|
34
34
|
* of the sort order*, which can be flipped by the newestLast feature (used for replies mode).
|
|
35
35
|
*
|
|
36
|
-
* So, when newestLast is false, regardless of the current sortOrder, newMessages are conceptually
|
|
36
|
+
* So, when newestLast is false (top-level comments), regardless of the current sortOrder, newMessages are conceptually
|
|
37
37
|
* *above* the visible set of messages.
|
|
38
38
|
*
|
|
39
39
|
* When newestLast is true (as in replies mode), regardless of the current sortOrder, newMessages are conceptually
|
|
@@ -51,8 +51,12 @@ export declare class CommentViewComponent {
|
|
|
51
51
|
* *above* the visible set of messages.
|
|
52
52
|
*/
|
|
53
53
|
olderMessages: ChatMessage[];
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
private _maxMessages;
|
|
55
|
+
set maxMessages(value: number);
|
|
56
|
+
get maxMessages(): number;
|
|
57
|
+
private _maxVisibleMessages;
|
|
58
|
+
set maxVisibleMessages(value: number);
|
|
59
|
+
get maxVisibleMessages(): number;
|
|
56
60
|
newestLast: boolean;
|
|
57
61
|
holdNewMessages: boolean;
|
|
58
62
|
showEmptyState: boolean;
|
|
@@ -37,7 +37,7 @@ export declare class StaticChatSource implements ChatSourceBase {
|
|
|
37
37
|
unlikeMessage(messageId: string): Promise<void>;
|
|
38
38
|
editMessage(messageId: string, text: string): Promise<void>;
|
|
39
39
|
deleteMessage(messageId: string): Promise<void>;
|
|
40
|
-
connectionStateChanged: Subject<"
|
|
40
|
+
connectionStateChanged: Subject<"lost" | "connected" | "connecting" | "restored">;
|
|
41
41
|
state: 'connecting' | 'connected' | 'lost' | 'restored';
|
|
42
42
|
get errorState(): any;
|
|
43
43
|
}
|