@banta/sdk 5.5.2 → 5.5.3
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/esm2022/lib/banta/banta.component.mjs +1 -1
- package/esm2022/lib/chat/chat-view/chat-view.component.mjs +1 -5
- package/esm2022/lib/chat-backend.mjs +8 -14
- package/esm2022/lib/chat-source.mjs +1 -4
- package/esm2022/lib/comments/attachment-button/attachment-button.component.mjs +1 -2
- package/esm2022/lib/comments/attachment-scraper.directive.mjs +1 -7
- package/esm2022/lib/comments/banta-comments/banta-comments.component.mjs +7 -3
- package/esm2022/lib/common/markdown-to-html.pipe.mjs +10 -15
- package/esm2022/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.mjs +16 -21
- package/esm2022/lib/sdk-options.mjs +3 -2
- package/fesm2022/banta-sdk.mjs +66 -91
- package/fesm2022/banta-sdk.mjs.map +1 -1
- package/lib/banta/banta.component.d.ts +1 -1
- package/lib/chat-backend.d.ts +0 -2
- package/lib/chat-source.d.ts +3 -3
- package/lib/comments/banta-comments/banta-comments.component.d.ts +2 -1
- package/lib/common/markdown-to-html.pipe.d.ts +2 -4
- package/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.d.ts +1 -4
- package/lib/sdk-options.d.ts +2 -1
- package/lib/static-chat-source.d.ts +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ export declare class BantaComponent {
|
|
|
43
43
|
pointOpen: ChatMessage;
|
|
44
44
|
pointSubChat: ChatSourceBase;
|
|
45
45
|
closeAux(): void;
|
|
46
|
-
getViewType(message: ChatMessage): "
|
|
46
|
+
getViewType(message: ChatMessage): "comment" | "chat";
|
|
47
47
|
upvoteMessage(message: ChatMessage): Promise<void>;
|
|
48
48
|
showProfile(user: User): void;
|
|
49
49
|
profileUser: User;
|
package/lib/chat-backend.d.ts
CHANGED
|
@@ -2,12 +2,10 @@ import { ChatMessage, CommentsOrder, FilterMode, Notification, Topic, UrlCard }
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ChatBackendBase, ChatSourceOptions } from "./chat-backend-base";
|
|
4
4
|
import { ChatSourceBase } from "./chat-source-base";
|
|
5
|
-
import { SdkOptions } from "./sdk-options";
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class ChatBackend extends ChatBackendBase {
|
|
8
7
|
private options;
|
|
9
8
|
private platformId;
|
|
10
|
-
constructor(options: SdkOptions, platformId: any);
|
|
11
9
|
get serviceUrl(): string;
|
|
12
10
|
private connectToService;
|
|
13
11
|
private isServer;
|
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(): "connected" | "connecting" | "lost" | "restored";
|
|
23
|
+
set state(value: "connected" | "connecting" | "lost" | "restored");
|
|
24
24
|
private _connectionStateChanged;
|
|
25
25
|
private _connectionStateChanged$;
|
|
26
|
-
get connectionStateChanged(): import("rxjs").Observable<"
|
|
26
|
+
get connectionStateChanged(): import("rxjs").Observable<"connected" | "connecting" | "lost" | "restored">;
|
|
27
27
|
private wasRestored;
|
|
28
28
|
bind(socket: DurableSocket): Promise<this>;
|
|
29
29
|
private mapOrUpdateMessages;
|
|
@@ -152,6 +152,7 @@ export declare class BantaCommentsComponent {
|
|
|
152
152
|
private _filterMode;
|
|
153
153
|
get filterMode(): string;
|
|
154
154
|
set filterMode(value: string);
|
|
155
|
+
initialMessageCount: number;
|
|
155
156
|
private _metadata;
|
|
156
157
|
/**
|
|
157
158
|
* Arbitrary metadata to send to the chat server. This can be used to provide context about the client to the server
|
|
@@ -199,5 +200,5 @@ export declare class BantaCommentsComponent {
|
|
|
199
200
|
startEditing(message: ChatMessage): Promise<void>;
|
|
200
201
|
saveEdit(message: ChatMessage, text: string): Promise<void>;
|
|
201
202
|
static ɵfac: i0.ɵɵFactoryDeclaration<BantaCommentsComponent, never>;
|
|
202
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BantaCommentsComponent, "banta-comments", never, { "customMenuItems": { "alias": "customMenuItems"; "required": false; }; "url": { "alias": "url"; "required": false; }; "maxCommentLength": { "alias": "maxCommentLength"; "required": false; }; "loadingMessages": { "alias": "loadingMessages"; "required": false; }; "useInlineReplies": { "alias": "useInlineReplies"; "required": false; }; "signInLabel": { "alias": "signInLabel"; "required": false; }; "sendLabel": { "alias": "sendLabel"; "required": false; }; "signingInLabel": { "alias": "signingInLabel"; "required": false; }; "replyLabel": { "alias": "replyLabel"; "required": false; }; "sendingLabel": { "alias": "sendingLabel"; "required": false; }; "permissionDeniedLabel": { "alias": "permissionDeniedLabel"; "required": false; }; "postCommentLabel": { "alias": "postCommentLabel"; "required": false; }; "postReplyLabel": { "alias": "postReplyLabel"; "required": false; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; }; "fixedHeight": { "alias": "fixedHeight"; "required": false; }; "maxMessages": { "alias": "maxMessages"; "required": false; }; "maxVisibleMessages": { "alias": "maxVisibleMessages"; "required": false; }; "genericAvatarUrl": { "alias": "genericAvatarUrl"; "required": false; }; "shouldInterceptMessageSend": { "alias": "shouldInterceptMessageSend"; "required": false; }; "participants": { "alias": "participants"; "required": false; }; "source": { "alias": "source"; "required": false; }; "hashtags": { "alias": "hashtags"; "required": false; }; "topicID": { "alias": "topicID"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "permissionDeniedError": "permissionDeniedError"; "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; "userSelected": "userSelected"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; }, ["sendReplyOptionsTemplate"], never, false, never>;
|
|
203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BantaCommentsComponent, "banta-comments", never, { "customMenuItems": { "alias": "customMenuItems"; "required": false; }; "url": { "alias": "url"; "required": false; }; "maxCommentLength": { "alias": "maxCommentLength"; "required": false; }; "loadingMessages": { "alias": "loadingMessages"; "required": false; }; "useInlineReplies": { "alias": "useInlineReplies"; "required": false; }; "signInLabel": { "alias": "signInLabel"; "required": false; }; "sendLabel": { "alias": "sendLabel"; "required": false; }; "signingInLabel": { "alias": "signingInLabel"; "required": false; }; "replyLabel": { "alias": "replyLabel"; "required": false; }; "sendingLabel": { "alias": "sendingLabel"; "required": false; }; "permissionDeniedLabel": { "alias": "permissionDeniedLabel"; "required": false; }; "postCommentLabel": { "alias": "postCommentLabel"; "required": false; }; "postReplyLabel": { "alias": "postReplyLabel"; "required": false; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; }; "fixedHeight": { "alias": "fixedHeight"; "required": false; }; "maxMessages": { "alias": "maxMessages"; "required": false; }; "maxVisibleMessages": { "alias": "maxVisibleMessages"; "required": false; }; "genericAvatarUrl": { "alias": "genericAvatarUrl"; "required": false; }; "shouldInterceptMessageSend": { "alias": "shouldInterceptMessageSend"; "required": false; }; "participants": { "alias": "participants"; "required": false; }; "source": { "alias": "source"; "required": false; }; "hashtags": { "alias": "hashtags"; "required": false; }; "topicID": { "alias": "topicID"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "filterMode": { "alias": "filterMode"; "required": false; }; "initialMessageCount": { "alias": "initialMessageCount"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "permissionDeniedError": "permissionDeniedError"; "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; "userSelected": "userSelected"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; }, ["sendReplyOptionsTemplate"], never, false, never>;
|
|
203
204
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as marked from 'marked';
|
|
3
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
-
import { SdkOptions } from '../sdk-options';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class BantaMarkdownToHtmlPipe implements PipeTransform {
|
|
7
5
|
private sanitizer;
|
|
8
6
|
private sdkOptions;
|
|
9
|
-
constructor(
|
|
7
|
+
constructor();
|
|
10
8
|
private get emojiUrl();
|
|
11
9
|
renderer: marked.Renderer;
|
|
12
10
|
transform(value: string): import("@angular/platform-browser").SafeHtml;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaMarkdownToHtmlPipe,
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaMarkdownToHtmlPipe, never>;
|
|
14
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<BantaMarkdownToHtmlPipe, "bantaMarkdownToHtml", false>;
|
|
15
13
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { SdkOptions } from '../../sdk-options';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
export declare class EmojiSelectorPanelComponent implements OnInit {
|
|
6
4
|
private sanitizer;
|
|
7
5
|
private sdkOptions;
|
|
8
|
-
constructor(sanitizer: DomSanitizer, sdkOptions: SdkOptions);
|
|
9
6
|
categories: any[];
|
|
10
7
|
activeCategory: string;
|
|
11
8
|
searchResults: any[];
|
|
@@ -21,6 +18,6 @@ export declare class EmojiSelectorPanelComponent implements OnInit {
|
|
|
21
18
|
showSearch(): void;
|
|
22
19
|
private get emojiUrl();
|
|
23
20
|
ngOnInit(): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EmojiSelectorPanelComponent,
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmojiSelectorPanelComponent, never>;
|
|
25
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<EmojiSelectorPanelComponent, "emoji-selector-panel", never, {}, { "selected": "selected"; }, never, never, false, never>;
|
|
26
23
|
}
|
package/lib/sdk-options.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class StaticChatSource implements ChatSourceBase {
|
|
|
36
36
|
unlikeMessage(messageId: string): Promise<void>;
|
|
37
37
|
editMessage(messageId: string, text: string): Promise<void>;
|
|
38
38
|
deleteMessage(messageId: string): Promise<void>;
|
|
39
|
-
connectionStateChanged: Subject<"
|
|
39
|
+
connectionStateChanged: Subject<"connected" | "connecting" | "lost" | "restored">;
|
|
40
40
|
state: 'connecting' | 'connected' | 'lost' | 'restored';
|
|
41
41
|
get errorState(): any;
|
|
42
42
|
}
|