@banta/sdk 4.9.1 → 5.0.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/{esm2020 → esm2022}/banta-sdk.mjs +4 -4
- package/{esm2020 → esm2022}/lib/attachment-scraper.mjs +1 -1
- package/esm2022/lib/banta/banta.component.mjs +204 -0
- package/{esm2020 → esm2022}/lib/banta-logo.component.mjs +11 -11
- package/esm2022/lib/banta-sdk.module.mjs +143 -0
- package/esm2022/lib/chat/banta-chat/banta-chat.component.mjs +187 -0
- package/esm2022/lib/chat/chat-message/chat-message.component.mjs +62 -0
- package/esm2022/lib/chat/chat-view/chat-view.component.mjs +170 -0
- package/{esm2020 → esm2022}/lib/chat/chat.module.mjs +51 -51
- package/{esm2020 → esm2022}/lib/chat/index.mjs +5 -5
- package/esm2022/lib/chat/live-chat-message.component.mjs +80 -0
- package/{esm2020 → esm2022}/lib/chat-backend-base.mjs +30 -30
- package/esm2022/lib/chat-backend.mjs +163 -0
- package/{esm2020 → esm2022}/lib/chat-source-base.mjs +1 -1
- package/esm2022/lib/chat-source.mjs +233 -0
- package/esm2022/lib/comments/attachment-button/attachment-button.component.mjs +76 -0
- package/esm2022/lib/comments/attachment-scraper.directive.mjs +107 -0
- package/esm2022/lib/comments/banta-comments/banta-comments.component.mjs +739 -0
- package/esm2022/lib/comments/comment/comment.component.mjs +175 -0
- package/esm2022/lib/comments/comment-field/comment-field.component.mjs +401 -0
- package/esm2022/lib/comments/comment-sort/comment-sort.component.mjs +37 -0
- package/esm2022/lib/comments/comment-view/comment-view.component.mjs +470 -0
- package/esm2022/lib/comments/comments.module.mjs +111 -0
- package/{esm2020 → esm2022}/lib/comments/index.mjs +10 -10
- package/esm2022/lib/comments/live-comment.component.mjs +80 -0
- package/{esm2020 → esm2022}/lib/comments/reply-send-options.directive.mjs +13 -13
- package/esm2022/lib/common/attachment/attachment.component.mjs +112 -0
- package/{esm2020 → esm2022}/lib/common/attachments/attachments.component.mjs +75 -75
- package/{esm2020 → esm2022}/lib/common/common.module.mjs +68 -68
- package/{esm2020 → esm2022}/lib/common/index.mjs +10 -10
- package/{esm2020 → esm2022}/lib/common/lazy-connection.mjs +14 -14
- package/esm2022/lib/common/lightbox/lightbox.component.mjs +31 -0
- package/esm2022/lib/common/markdown-to-html.pipe.mjs +89 -0
- package/esm2022/lib/common/mention-linker.pipe.mjs +35 -0
- package/esm2022/lib/common/timer-pool.service.mjs +83 -0
- package/esm2022/lib/common/timestamp.component.mjs +123 -0
- package/{esm2020 → esm2022}/lib/common/trust-resource-url.pipe.mjs +22 -22
- package/esm2022/lib/emoji/emoji-selector-button.component.mjs +115 -0
- package/esm2022/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.mjs +98 -0
- package/{esm2020 → esm2022}/lib/emoji/emoji.module.mjs +55 -55
- package/{esm2020 → esm2022}/lib/emoji/emojis.mjs +6507 -6507
- package/{esm2020 → esm2022}/lib/emoji/index.mjs +4 -4
- package/esm2022/lib/giphy-attachments.mjs +16 -0
- package/{esm2020 → esm2022}/lib/index.mjs +19 -19
- package/{esm2020 → esm2022}/lib/live-message.component.mjs +61 -61
- package/{esm2020 → esm2022}/lib/message-menu-item.mjs +1 -1
- package/{esm2020 → esm2022}/lib/sdk-options.mjs +1 -1
- package/esm2022/lib/static-chat-source.mjs +71 -0
- package/esm2022/lib/tweet-attachments.mjs +13 -0
- package/esm2022/lib/url-attachments.mjs +42 -0
- package/esm2022/lib/youtube-attachments.mjs +29 -0
- package/{esm2020 → esm2022}/public-api.mjs +4 -4
- package/{fesm2020 → fesm2022}/banta-sdk.mjs +10753 -10754
- package/fesm2022/banta-sdk.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/attachment-scraper.d.ts +15 -15
- package/lib/banta/banta.component.d.ts +58 -58
- package/lib/banta-logo.component.d.ts +5 -5
- package/lib/banta-sdk.module.d.ts +31 -31
- package/lib/chat/banta-chat/banta-chat.component.d.ts +70 -70
- package/lib/chat/chat-message/chat-message.component.d.ts +21 -21
- package/lib/chat/chat-view/chat-view.component.d.ts +52 -52
- package/lib/chat/chat.module.d.ts +15 -15
- package/lib/chat/index.d.ts +5 -5
- package/lib/chat/live-chat-message.component.d.ts +23 -23
- package/lib/chat-backend-base.d.ts +36 -36
- package/lib/chat-backend.d.ts +55 -55
- package/lib/chat-source-base.d.ts +44 -44
- package/lib/chat-source.d.ts +65 -65
- package/lib/comments/attachment-button/attachment-button.component.d.ts +17 -17
- package/lib/comments/attachment-scraper.directive.d.ts +21 -21
- package/lib/comments/banta-comments/banta-comments.component.d.ts +196 -196
- package/lib/comments/comment/comment.component.d.ts +72 -72
- package/lib/comments/comment-field/comment-field.component.d.ts +89 -89
- package/lib/comments/comment-sort/comment-sort.component.d.ts +12 -12
- package/lib/comments/comment-view/comment-view.component.d.ts +121 -121
- package/lib/comments/comments.module.d.ts +30 -30
- package/lib/comments/index.d.ts +10 -10
- package/lib/comments/live-comment.component.d.ts +23 -23
- package/lib/comments/reply-send-options.directive.d.ts +5 -5
- package/lib/common/attachment/attachment.component.d.ts +33 -33
- package/lib/common/attachments/attachments.component.d.ts +26 -26
- package/lib/common/common.module.d.ts +19 -19
- package/lib/common/index.d.ts +10 -10
- package/lib/common/lazy-connection.d.ts +6 -6
- package/lib/common/lightbox/lightbox.component.d.ts +14 -14
- package/lib/common/markdown-to-html.pipe.d.ts +15 -15
- package/lib/common/mention-linker.pipe.d.ts +13 -13
- package/lib/common/timer-pool.service.d.ts +15 -15
- package/lib/common/timestamp.component.d.ts +19 -19
- package/lib/common/trust-resource-url.pipe.d.ts +10 -10
- package/lib/emoji/emoji-selector-button.component.d.ts +30 -30
- package/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.d.ts +26 -26
- package/lib/emoji/emoji.module.d.ts +16 -16
- package/lib/emoji/emojis.d.ts +6507 -6507
- package/lib/emoji/index.d.ts +4 -4
- package/lib/giphy-attachments.d.ts +5 -5
- package/lib/index.d.ts +19 -19
- package/lib/live-message.component.d.ts +22 -22
- package/lib/message-menu-item.d.ts +6 -6
- package/lib/sdk-options.d.ts +5 -5
- package/lib/static-chat-source.d.ts +42 -42
- package/lib/tweet-attachments.d.ts +5 -5
- package/lib/url-attachments.d.ts +14 -14
- package/lib/youtube-attachments.d.ts +5 -5
- package/package.json +14 -20
- package/public-api.d.ts +1 -1
- package/esm2020/lib/banta/banta.component.mjs +0 -204
- package/esm2020/lib/banta-sdk.module.mjs +0 -143
- package/esm2020/lib/chat/banta-chat/banta-chat.component.mjs +0 -187
- package/esm2020/lib/chat/chat-message/chat-message.component.mjs +0 -62
- package/esm2020/lib/chat/chat-view/chat-view.component.mjs +0 -170
- package/esm2020/lib/chat/live-chat-message.component.mjs +0 -80
- package/esm2020/lib/chat-backend.mjs +0 -163
- package/esm2020/lib/chat-source.mjs +0 -233
- package/esm2020/lib/comments/attachment-button/attachment-button.component.mjs +0 -76
- package/esm2020/lib/comments/attachment-scraper.directive.mjs +0 -107
- package/esm2020/lib/comments/banta-comments/banta-comments.component.mjs +0 -740
- package/esm2020/lib/comments/comment/comment.component.mjs +0 -175
- package/esm2020/lib/comments/comment-field/comment-field.component.mjs +0 -401
- package/esm2020/lib/comments/comment-sort/comment-sort.component.mjs +0 -37
- package/esm2020/lib/comments/comment-view/comment-view.component.mjs +0 -470
- package/esm2020/lib/comments/comments.module.mjs +0 -111
- package/esm2020/lib/comments/live-comment.component.mjs +0 -80
- package/esm2020/lib/common/attachment/attachment.component.mjs +0 -112
- package/esm2020/lib/common/lightbox/lightbox.component.mjs +0 -31
- package/esm2020/lib/common/markdown-to-html.pipe.mjs +0 -89
- package/esm2020/lib/common/mention-linker.pipe.mjs +0 -35
- package/esm2020/lib/common/timer-pool.service.mjs +0 -83
- package/esm2020/lib/common/timestamp.component.mjs +0 -123
- package/esm2020/lib/emoji/emoji-selector-button.component.mjs +0 -116
- package/esm2020/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.mjs +0 -98
- package/esm2020/lib/giphy-attachments.mjs +0 -16
- package/esm2020/lib/static-chat-source.mjs +0 -71
- package/esm2020/lib/tweet-attachments.mjs +0 -13
- package/esm2020/lib/url-attachments.mjs +0 -42
- package/esm2020/lib/youtube-attachments.mjs +0 -29
- package/fesm2015/banta-sdk.mjs +0 -11181
- package/fesm2015/banta-sdk.mjs.map +0 -1
- package/fesm2020/banta-sdk.mjs.map +0 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
2
|
-
import { ChatMessage, ChatMessageAttachment, User } from "@banta/common";
|
|
3
|
-
import { Subject } from "rxjs";
|
|
4
|
-
import { ChatSourceBase } from "../../chat-source-base";
|
|
5
|
-
import { SignInState } from "../../chat-source";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export interface AutoCompleteOption {
|
|
8
|
-
label: string;
|
|
9
|
-
action?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface HashTag {
|
|
12
|
-
hashtag: string;
|
|
13
|
-
description: string;
|
|
14
|
-
}
|
|
15
|
-
export declare class CommentFieldComponent {
|
|
16
|
-
ngAfterViewInit(): void;
|
|
17
|
-
private _source;
|
|
18
|
-
get source(): ChatSourceBase;
|
|
19
|
-
set source(value: ChatSourceBase);
|
|
20
|
-
private _permissionDeniedError;
|
|
21
|
-
private errorTimeout;
|
|
22
|
-
private _subs;
|
|
23
|
-
sending: boolean;
|
|
24
|
-
sendError: Error;
|
|
25
|
-
expandError: boolean;
|
|
26
|
-
autocompleteVisible: boolean;
|
|
27
|
-
autocompleteOptions: AutoCompleteOption[];
|
|
28
|
-
completionFunc: (str: string) => AutoCompleteOption[];
|
|
29
|
-
completionPrefix: string;
|
|
30
|
-
autoCompleteSelected: number;
|
|
31
|
-
text: string;
|
|
32
|
-
chatMessageAttachments: ChatMessageAttachment[];
|
|
33
|
-
user: User;
|
|
34
|
-
canComment: boolean;
|
|
35
|
-
signInState: SignInState;
|
|
36
|
-
allowAttachments: boolean;
|
|
37
|
-
transientMessage: string;
|
|
38
|
-
sendLabel: string;
|
|
39
|
-
signingInLabel: string;
|
|
40
|
-
sendingLabel: string;
|
|
41
|
-
label: string;
|
|
42
|
-
permissionDeniedLabel: string;
|
|
43
|
-
signInLabel: string;
|
|
44
|
-
maxLength: number;
|
|
45
|
-
placeholder: string;
|
|
46
|
-
shouldInterceptMessageSend?: (message: ChatMessage, source: ChatSourceBase) => boolean | Promise<boolean>;
|
|
47
|
-
hashtags: HashTag[];
|
|
48
|
-
participants: User[];
|
|
49
|
-
genericAvatarUrl: string;
|
|
50
|
-
url: string;
|
|
51
|
-
submit: (message: ChatMessage) => boolean;
|
|
52
|
-
readonly: boolean;
|
|
53
|
-
signInSelected: Subject<void>;
|
|
54
|
-
editAvatarSelected: Subject<void>;
|
|
55
|
-
focusChange: Subject<boolean>;
|
|
56
|
-
textChanged: Subject<void>;
|
|
57
|
-
get permissionDeniedError(): Subject<string>;
|
|
58
|
-
autocompleteEl: ElementRef<HTMLElement>;
|
|
59
|
-
autocompleteContainerEl: ElementRef<HTMLElement>;
|
|
60
|
-
textareaEl: ElementRef<HTMLTextAreaElement>;
|
|
61
|
-
get indicatorState(): "
|
|
62
|
-
get buttonState(): "signing-in" | "sending" | "permission-denied" | "send";
|
|
63
|
-
get sendButtonEnabled(): boolean;
|
|
64
|
-
get userAvatarUrl(): string;
|
|
65
|
-
get isValidMessage(): string | boolean;
|
|
66
|
-
get hasPendingAttachments(): boolean;
|
|
67
|
-
private setSource;
|
|
68
|
-
sendPermissionDenied(message: string): void;
|
|
69
|
-
activateAutoComplete(option: AutoCompleteOption): void;
|
|
70
|
-
onFocus(): void;
|
|
71
|
-
onBlur(): void;
|
|
72
|
-
showSignIn(): void;
|
|
73
|
-
showEditAvatar(): void;
|
|
74
|
-
insertEmoji(text: string): void;
|
|
75
|
-
showAutoComplete(options: AutoCompleteOption[]): void;
|
|
76
|
-
dismissAutoComplete(): void;
|
|
77
|
-
indicateError(message: string): void;
|
|
78
|
-
autocomplete(replacement: string): Promise<void>;
|
|
79
|
-
insert(str: string): Promise<void>;
|
|
80
|
-
onKeyDown(event: KeyboardEvent): Promise<void>;
|
|
81
|
-
startAutoComplete(event: KeyboardEvent, completionFunc: (str: string) => AutoCompleteOption[]): void;
|
|
82
|
-
sendMessage(): Promise<void>;
|
|
83
|
-
addedAttachment(attachment: ChatMessageAttachment): void;
|
|
84
|
-
attachmentError(attachment: ChatMessageAttachment): void;
|
|
85
|
-
removeAttachment(attachment: ChatMessageAttachment): void;
|
|
86
|
-
alertError(): void;
|
|
87
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentFieldComponent, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentFieldComponent, "banta-comment-field", never, { "source": "source"; "user": "user"; "canComment": "canComment"; "signInState": "signInState"; "allowAttachments": "allowAttachments"; "transientMessage": "transientMessage"; "sendLabel": "sendLabel"; "signingInLabel": "signingInLabel"; "sendingLabel": "sendingLabel"; "label": "label"; "permissionDeniedLabel": "permissionDeniedLabel"; "signInLabel": "signInLabel"; "maxLength": "maxLength"; "placeholder": "placeholder"; "shouldInterceptMessageSend": "shouldInterceptMessageSend"; "hashtags": "hashtags"; "participants": "participants"; "genericAvatarUrl": "genericAvatarUrl"; "url": "url"; "submit": "submit"; "readonly": "readonly"; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "focusChange": "focusChange"; "textChanged": "textChanged"; "permissionDeniedError": "permissionDeniedError"; }, never, ["*"], false>;
|
|
89
|
-
}
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { ChatMessage, ChatMessageAttachment, User } from "@banta/common";
|
|
3
|
+
import { Subject } from "rxjs";
|
|
4
|
+
import { ChatSourceBase } from "../../chat-source-base";
|
|
5
|
+
import { SignInState } from "../../chat-source";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface AutoCompleteOption {
|
|
8
|
+
label: string;
|
|
9
|
+
action?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface HashTag {
|
|
12
|
+
hashtag: string;
|
|
13
|
+
description: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class CommentFieldComponent {
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
private _source;
|
|
18
|
+
get source(): ChatSourceBase;
|
|
19
|
+
set source(value: ChatSourceBase);
|
|
20
|
+
private _permissionDeniedError;
|
|
21
|
+
private errorTimeout;
|
|
22
|
+
private _subs;
|
|
23
|
+
sending: boolean;
|
|
24
|
+
sendError: Error;
|
|
25
|
+
expandError: boolean;
|
|
26
|
+
autocompleteVisible: boolean;
|
|
27
|
+
autocompleteOptions: AutoCompleteOption[];
|
|
28
|
+
completionFunc: (str: string) => AutoCompleteOption[];
|
|
29
|
+
completionPrefix: string;
|
|
30
|
+
autoCompleteSelected: number;
|
|
31
|
+
text: string;
|
|
32
|
+
chatMessageAttachments: ChatMessageAttachment[];
|
|
33
|
+
user: User;
|
|
34
|
+
canComment: boolean;
|
|
35
|
+
signInState: SignInState;
|
|
36
|
+
allowAttachments: boolean;
|
|
37
|
+
transientMessage: string;
|
|
38
|
+
sendLabel: string;
|
|
39
|
+
signingInLabel: string;
|
|
40
|
+
sendingLabel: string;
|
|
41
|
+
label: string;
|
|
42
|
+
permissionDeniedLabel: string;
|
|
43
|
+
signInLabel: string;
|
|
44
|
+
maxLength: number;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
shouldInterceptMessageSend?: (message: ChatMessage, source: ChatSourceBase) => boolean | Promise<boolean>;
|
|
47
|
+
hashtags: HashTag[];
|
|
48
|
+
participants: User[];
|
|
49
|
+
genericAvatarUrl: string;
|
|
50
|
+
url: string;
|
|
51
|
+
submit: (message: ChatMessage) => boolean;
|
|
52
|
+
readonly: boolean;
|
|
53
|
+
signInSelected: Subject<void>;
|
|
54
|
+
editAvatarSelected: Subject<void>;
|
|
55
|
+
focusChange: Subject<boolean>;
|
|
56
|
+
textChanged: Subject<void>;
|
|
57
|
+
get permissionDeniedError(): Subject<string>;
|
|
58
|
+
autocompleteEl: ElementRef<HTMLElement>;
|
|
59
|
+
autocompleteContainerEl: ElementRef<HTMLElement>;
|
|
60
|
+
textareaEl: ElementRef<HTMLTextAreaElement>;
|
|
61
|
+
get indicatorState(): "error" | "transient" | "sending" | "none";
|
|
62
|
+
get buttonState(): "signing-in" | "sending" | "permission-denied" | "send";
|
|
63
|
+
get sendButtonEnabled(): boolean;
|
|
64
|
+
get userAvatarUrl(): string;
|
|
65
|
+
get isValidMessage(): string | boolean;
|
|
66
|
+
get hasPendingAttachments(): boolean;
|
|
67
|
+
private setSource;
|
|
68
|
+
sendPermissionDenied(message: string): void;
|
|
69
|
+
activateAutoComplete(option: AutoCompleteOption): void;
|
|
70
|
+
onFocus(): void;
|
|
71
|
+
onBlur(): void;
|
|
72
|
+
showSignIn(): void;
|
|
73
|
+
showEditAvatar(): void;
|
|
74
|
+
insertEmoji(text: string): void;
|
|
75
|
+
showAutoComplete(options: AutoCompleteOption[]): void;
|
|
76
|
+
dismissAutoComplete(): void;
|
|
77
|
+
indicateError(message: string): void;
|
|
78
|
+
autocomplete(replacement: string): Promise<void>;
|
|
79
|
+
insert(str: string): Promise<void>;
|
|
80
|
+
onKeyDown(event: KeyboardEvent): Promise<void>;
|
|
81
|
+
startAutoComplete(event: KeyboardEvent, completionFunc: (str: string) => AutoCompleteOption[]): void;
|
|
82
|
+
sendMessage(): Promise<void>;
|
|
83
|
+
addedAttachment(attachment: ChatMessageAttachment): void;
|
|
84
|
+
attachmentError(attachment: ChatMessageAttachment): void;
|
|
85
|
+
removeAttachment(attachment: ChatMessageAttachment): void;
|
|
86
|
+
alertError(): void;
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentFieldComponent, never>;
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentFieldComponent, "banta-comment-field", never, { "source": { "alias": "source"; "required": false; }; "user": { "alias": "user"; "required": false; }; "canComment": { "alias": "canComment"; "required": false; }; "signInState": { "alias": "signInState"; "required": false; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; }; "transientMessage": { "alias": "transientMessage"; "required": false; }; "sendLabel": { "alias": "sendLabel"; "required": false; }; "signingInLabel": { "alias": "signingInLabel"; "required": false; }; "sendingLabel": { "alias": "sendingLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "permissionDeniedLabel": { "alias": "permissionDeniedLabel"; "required": false; }; "signInLabel": { "alias": "signInLabel"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "shouldInterceptMessageSend": { "alias": "shouldInterceptMessageSend"; "required": false; }; "hashtags": { "alias": "hashtags"; "required": false; }; "participants": { "alias": "participants"; "required": false; }; "genericAvatarUrl": { "alias": "genericAvatarUrl"; "required": false; }; "url": { "alias": "url"; "required": false; }; "submit": { "alias": "submit"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "focusChange": "focusChange"; "textChanged": "textChanged"; "permissionDeniedError": "permissionDeniedError"; }, never, ["*"], false, never>;
|
|
89
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CommentsOrder } from "@banta/common";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CommentSortComponent {
|
|
4
|
-
commentsOrder: typeof CommentsOrder;
|
|
5
|
-
private _sortChange;
|
|
6
|
-
private _sort;
|
|
7
|
-
get sort(): CommentsOrder;
|
|
8
|
-
set sort(value: CommentsOrder);
|
|
9
|
-
get sortChange(): import("rxjs").Observable<CommentsOrder>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentSortComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentSortComponent, "banta-comment-sort", never, { "sort": "sort"; }, { "sortChange": "sortChange"; }, never, never, false>;
|
|
12
|
-
}
|
|
1
|
+
import { CommentsOrder } from "@banta/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CommentSortComponent {
|
|
4
|
+
commentsOrder: typeof CommentsOrder;
|
|
5
|
+
private _sortChange;
|
|
6
|
+
private _sort;
|
|
7
|
+
get sort(): CommentsOrder;
|
|
8
|
+
set sort(value: CommentsOrder);
|
|
9
|
+
get sortChange(): import("rxjs").Observable<CommentsOrder>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentSortComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentSortComponent, "banta-comment-sort", never, { "sort": { "alias": "sort"; "required": false; }; }, { "sortChange": "sortChange"; }, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import { ElementRef, QueryList } from "@angular/core";
|
|
2
|
-
import { User, ChatMessage, CommentsOrder, FilterMode } from '@banta/common';
|
|
3
|
-
import { ChatBackendBase } from "../../chat-backend-base";
|
|
4
|
-
import { ChatSourceBase } from "../../chat-source-base";
|
|
5
|
-
import { MessageMenuItem } from "../../message-menu-item";
|
|
6
|
-
import { CommentComponent } from "../comment/comment.component";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export interface EditEvent {
|
|
9
|
-
message: ChatMessage;
|
|
10
|
-
newMessage: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class CommentViewComponent {
|
|
13
|
-
private backend;
|
|
14
|
-
private elementRef;
|
|
15
|
-
constructor(backend: ChatBackendBase, elementRef: ElementRef<HTMLElement>);
|
|
16
|
-
private _source;
|
|
17
|
-
get source(): ChatSourceBase;
|
|
18
|
-
set source(value: ChatSourceBase);
|
|
19
|
-
private _sourceSubs;
|
|
20
|
-
menuMessage: ChatMessage;
|
|
21
|
-
messages: ChatMessage[];
|
|
22
|
-
currentUser: User;
|
|
23
|
-
customSortEnabled: boolean;
|
|
24
|
-
markSourceLoaded: () => void;
|
|
25
|
-
sourceLoaded: Promise<void>;
|
|
26
|
-
isViewingMore: boolean;
|
|
27
|
-
isLoadingMore: boolean;
|
|
28
|
-
hasMore: boolean;
|
|
29
|
-
newMessages: ChatMessage[];
|
|
30
|
-
olderMessages: ChatMessage[];
|
|
31
|
-
maxMessages: number;
|
|
32
|
-
maxVisibleMessages: number;
|
|
33
|
-
newestLast: boolean;
|
|
34
|
-
holdNewMessages: boolean;
|
|
35
|
-
showEmptyState: boolean;
|
|
36
|
-
allowReplies: boolean;
|
|
37
|
-
enableHoldOnClick: boolean;
|
|
38
|
-
enableHoldOnScroll: boolean;
|
|
39
|
-
customMenuItems: MessageMenuItem[];
|
|
40
|
-
fixedHeight: boolean;
|
|
41
|
-
selectedMessage: ChatMessage;
|
|
42
|
-
genericAvatarUrl: string;
|
|
43
|
-
private _selected;
|
|
44
|
-
private _liked;
|
|
45
|
-
private _unliked;
|
|
46
|
-
private _reported;
|
|
47
|
-
private _userSelected;
|
|
48
|
-
private _usernameSelected;
|
|
49
|
-
private _avatarSelected;
|
|
50
|
-
private _shared;
|
|
51
|
-
private _deleted;
|
|
52
|
-
private _messageEdited;
|
|
53
|
-
private _sortOrderChanged;
|
|
54
|
-
private _filterModeChanged;
|
|
55
|
-
readonly userSelected: import("rxjs").Observable<ChatMessage>;
|
|
56
|
-
readonly reported: import("rxjs").Observable<ChatMessage>;
|
|
57
|
-
readonly liked: import("rxjs").Observable<ChatMessage>;
|
|
58
|
-
readonly unliked: import("rxjs").Observable<ChatMessage>;
|
|
59
|
-
readonly usernameSelected: import("rxjs").Observable<User>;
|
|
60
|
-
readonly avatarSelected: import("rxjs").Observable<User>;
|
|
61
|
-
readonly shared: import("rxjs").Observable<ChatMessage>;
|
|
62
|
-
readonly deleted: import("rxjs").Observable<ChatMessage>;
|
|
63
|
-
readonly selected: import("rxjs").Observable<ChatMessage>;
|
|
64
|
-
readonly messageEdited: import("rxjs").Observable<EditEvent>;
|
|
65
|
-
readonly sortOrderChanged: import("rxjs").Observable<CommentsOrder>;
|
|
66
|
-
readonly filterModeChanged: import("rxjs").Observable<FilterMode>;
|
|
67
|
-
commentsQuery: QueryList<CommentComponent>;
|
|
68
|
-
messageContainer: ElementRef<HTMLElement>;
|
|
69
|
-
get comments(): CommentComponent[];
|
|
70
|
-
/**
|
|
71
|
-
* Returns true if this message can be found within one of the message buffers (older, current, newer)
|
|
72
|
-
* @param message
|
|
73
|
-
*/
|
|
74
|
-
isMessageLoadedInContext(message: ChatMessage): ChatMessage;
|
|
75
|
-
loadMessageInContext(message: ChatMessage): Promise<boolean>;
|
|
76
|
-
get shouldShowNewMessageIndicator(): boolean;
|
|
77
|
-
get shouldHoldNewMessages(): boolean;
|
|
78
|
-
private isElementVisible;
|
|
79
|
-
/**
|
|
80
|
-
* Get the CommentComponent instantiated for the given ChatMessage,
|
|
81
|
-
* if it exists in the current view. Note that messages which are not
|
|
82
|
-
* currently shown to the user will not return a CommentComponent.
|
|
83
|
-
* @param message
|
|
84
|
-
* @returns
|
|
85
|
-
*/
|
|
86
|
-
getCommentComponentForMessage(message: ChatMessage): CommentComponent;
|
|
87
|
-
saveEdit(message: ChatMessage, newMessage: string): void;
|
|
88
|
-
likeMessage(message: ChatMessage): void;
|
|
89
|
-
unlikeMessage(message: ChatMessage): void;
|
|
90
|
-
reportMessage(message: ChatMessage): void;
|
|
91
|
-
selectMessage(message: ChatMessage): void;
|
|
92
|
-
selectMessageUser(message: ChatMessage): void;
|
|
93
|
-
selectUsername(user: User): void;
|
|
94
|
-
selectAvatar(user: User): void;
|
|
95
|
-
sharedMessage(message: ChatMessage): void;
|
|
96
|
-
startEditing(message: ChatMessage): void;
|
|
97
|
-
deleteMessage(message: ChatMessage): void;
|
|
98
|
-
private setSource;
|
|
99
|
-
private getInitialMessages;
|
|
100
|
-
messageIdentity(index: number, chatMessage: ChatMessage): string;
|
|
101
|
-
showNew(event: MouseEvent): Promise<void>;
|
|
102
|
-
showMore(): Promise<void>;
|
|
103
|
-
private addMessage;
|
|
104
|
-
private incrementPagingCursors;
|
|
105
|
-
/**
|
|
106
|
-
* Wait for all currently visible comments to be fully loaded, including all attachments.
|
|
107
|
-
* Doing this will prevent layout shift when scrolling to a specific comment.
|
|
108
|
-
*/
|
|
109
|
-
waitForAllCommentsToLoad(): Promise<void>;
|
|
110
|
-
private sortMessages;
|
|
111
|
-
private messageReceived;
|
|
112
|
-
isScrolledToLatest(): boolean;
|
|
113
|
-
private messageSent;
|
|
114
|
-
scrollToLatest(): void;
|
|
115
|
-
get element(): HTMLElement;
|
|
116
|
-
scrollToComment(commentId: ChatMessage['id']): Promise<void>;
|
|
117
|
-
getElementForComment(commentId: string): Element;
|
|
118
|
-
mentionsMe(message: ChatMessage): boolean;
|
|
119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentViewComponent, never>;
|
|
120
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentViewComponent, "banta-comment-view", never, { "source": "source"; "maxMessages": "maxMessages"; "maxVisibleMessages": "maxVisibleMessages"; "newestLast": "newestLast"; "holdNewMessages": "holdNewMessages"; "showEmptyState": "showEmptyState"; "allowReplies": "allowReplies"; "enableHoldOnClick": "enableHoldOnClick"; "enableHoldOnScroll": "enableHoldOnScroll"; "customMenuItems": "customMenuItems"; "fixedHeight": "fixedHeight"; "selectedMessage": "selectedMessage"; "genericAvatarUrl": "genericAvatarUrl"; }, { "userSelected": "userSelected"; "reported": "reported"; "liked": "liked"; "unliked": "unliked"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; "deleted": "deleted"; "selected": "selected"; "messageEdited": "messageEdited"; "sortOrderChanged": "sortOrderChanged"; "filterModeChanged": "filterModeChanged"; }, never, ["[data-before]", ".inline-replies", ":not([data-before]):not(.inline-replies)"], false>;
|
|
121
|
-
}
|
|
1
|
+
import { ElementRef, QueryList } from "@angular/core";
|
|
2
|
+
import { User, ChatMessage, CommentsOrder, FilterMode } from '@banta/common';
|
|
3
|
+
import { ChatBackendBase } from "../../chat-backend-base";
|
|
4
|
+
import { ChatSourceBase } from "../../chat-source-base";
|
|
5
|
+
import { MessageMenuItem } from "../../message-menu-item";
|
|
6
|
+
import { CommentComponent } from "../comment/comment.component";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface EditEvent {
|
|
9
|
+
message: ChatMessage;
|
|
10
|
+
newMessage: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class CommentViewComponent {
|
|
13
|
+
private backend;
|
|
14
|
+
private elementRef;
|
|
15
|
+
constructor(backend: ChatBackendBase, elementRef: ElementRef<HTMLElement>);
|
|
16
|
+
private _source;
|
|
17
|
+
get source(): ChatSourceBase;
|
|
18
|
+
set source(value: ChatSourceBase);
|
|
19
|
+
private _sourceSubs;
|
|
20
|
+
menuMessage: ChatMessage;
|
|
21
|
+
messages: ChatMessage[];
|
|
22
|
+
currentUser: User;
|
|
23
|
+
customSortEnabled: boolean;
|
|
24
|
+
markSourceLoaded: () => void;
|
|
25
|
+
sourceLoaded: Promise<void>;
|
|
26
|
+
isViewingMore: boolean;
|
|
27
|
+
isLoadingMore: boolean;
|
|
28
|
+
hasMore: boolean;
|
|
29
|
+
newMessages: ChatMessage[];
|
|
30
|
+
olderMessages: ChatMessage[];
|
|
31
|
+
maxMessages: number;
|
|
32
|
+
maxVisibleMessages: number;
|
|
33
|
+
newestLast: boolean;
|
|
34
|
+
holdNewMessages: boolean;
|
|
35
|
+
showEmptyState: boolean;
|
|
36
|
+
allowReplies: boolean;
|
|
37
|
+
enableHoldOnClick: boolean;
|
|
38
|
+
enableHoldOnScroll: boolean;
|
|
39
|
+
customMenuItems: MessageMenuItem[];
|
|
40
|
+
fixedHeight: boolean;
|
|
41
|
+
selectedMessage: ChatMessage;
|
|
42
|
+
genericAvatarUrl: string;
|
|
43
|
+
private _selected;
|
|
44
|
+
private _liked;
|
|
45
|
+
private _unliked;
|
|
46
|
+
private _reported;
|
|
47
|
+
private _userSelected;
|
|
48
|
+
private _usernameSelected;
|
|
49
|
+
private _avatarSelected;
|
|
50
|
+
private _shared;
|
|
51
|
+
private _deleted;
|
|
52
|
+
private _messageEdited;
|
|
53
|
+
private _sortOrderChanged;
|
|
54
|
+
private _filterModeChanged;
|
|
55
|
+
readonly userSelected: import("rxjs").Observable<ChatMessage>;
|
|
56
|
+
readonly reported: import("rxjs").Observable<ChatMessage>;
|
|
57
|
+
readonly liked: import("rxjs").Observable<ChatMessage>;
|
|
58
|
+
readonly unliked: import("rxjs").Observable<ChatMessage>;
|
|
59
|
+
readonly usernameSelected: import("rxjs").Observable<User>;
|
|
60
|
+
readonly avatarSelected: import("rxjs").Observable<User>;
|
|
61
|
+
readonly shared: import("rxjs").Observable<ChatMessage>;
|
|
62
|
+
readonly deleted: import("rxjs").Observable<ChatMessage>;
|
|
63
|
+
readonly selected: import("rxjs").Observable<ChatMessage>;
|
|
64
|
+
readonly messageEdited: import("rxjs").Observable<EditEvent>;
|
|
65
|
+
readonly sortOrderChanged: import("rxjs").Observable<CommentsOrder>;
|
|
66
|
+
readonly filterModeChanged: import("rxjs").Observable<FilterMode>;
|
|
67
|
+
commentsQuery: QueryList<CommentComponent>;
|
|
68
|
+
messageContainer: ElementRef<HTMLElement>;
|
|
69
|
+
get comments(): CommentComponent[];
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if this message can be found within one of the message buffers (older, current, newer)
|
|
72
|
+
* @param message
|
|
73
|
+
*/
|
|
74
|
+
isMessageLoadedInContext(message: ChatMessage): ChatMessage;
|
|
75
|
+
loadMessageInContext(message: ChatMessage): Promise<boolean>;
|
|
76
|
+
get shouldShowNewMessageIndicator(): boolean;
|
|
77
|
+
get shouldHoldNewMessages(): boolean;
|
|
78
|
+
private isElementVisible;
|
|
79
|
+
/**
|
|
80
|
+
* Get the CommentComponent instantiated for the given ChatMessage,
|
|
81
|
+
* if it exists in the current view. Note that messages which are not
|
|
82
|
+
* currently shown to the user will not return a CommentComponent.
|
|
83
|
+
* @param message
|
|
84
|
+
* @returns
|
|
85
|
+
*/
|
|
86
|
+
getCommentComponentForMessage(message: ChatMessage): CommentComponent;
|
|
87
|
+
saveEdit(message: ChatMessage, newMessage: string): void;
|
|
88
|
+
likeMessage(message: ChatMessage): void;
|
|
89
|
+
unlikeMessage(message: ChatMessage): void;
|
|
90
|
+
reportMessage(message: ChatMessage): void;
|
|
91
|
+
selectMessage(message: ChatMessage): void;
|
|
92
|
+
selectMessageUser(message: ChatMessage): void;
|
|
93
|
+
selectUsername(user: User): void;
|
|
94
|
+
selectAvatar(user: User): void;
|
|
95
|
+
sharedMessage(message: ChatMessage): void;
|
|
96
|
+
startEditing(message: ChatMessage): void;
|
|
97
|
+
deleteMessage(message: ChatMessage): void;
|
|
98
|
+
private setSource;
|
|
99
|
+
private getInitialMessages;
|
|
100
|
+
messageIdentity(index: number, chatMessage: ChatMessage): string;
|
|
101
|
+
showNew(event: MouseEvent): Promise<void>;
|
|
102
|
+
showMore(): Promise<void>;
|
|
103
|
+
private addMessage;
|
|
104
|
+
private incrementPagingCursors;
|
|
105
|
+
/**
|
|
106
|
+
* Wait for all currently visible comments to be fully loaded, including all attachments.
|
|
107
|
+
* Doing this will prevent layout shift when scrolling to a specific comment.
|
|
108
|
+
*/
|
|
109
|
+
waitForAllCommentsToLoad(): Promise<void>;
|
|
110
|
+
private sortMessages;
|
|
111
|
+
private messageReceived;
|
|
112
|
+
isScrolledToLatest(): boolean;
|
|
113
|
+
private messageSent;
|
|
114
|
+
scrollToLatest(): void;
|
|
115
|
+
get element(): HTMLElement;
|
|
116
|
+
scrollToComment(commentId: ChatMessage['id']): Promise<void>;
|
|
117
|
+
getElementForComment(commentId: string): Element;
|
|
118
|
+
mentionsMe(message: ChatMessage): boolean;
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentViewComponent, never>;
|
|
120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentViewComponent, "banta-comment-view", never, { "source": { "alias": "source"; "required": false; }; "maxMessages": { "alias": "maxMessages"; "required": false; }; "maxVisibleMessages": { "alias": "maxVisibleMessages"; "required": false; }; "newestLast": { "alias": "newestLast"; "required": false; }; "holdNewMessages": { "alias": "holdNewMessages"; "required": false; }; "showEmptyState": { "alias": "showEmptyState"; "required": false; }; "allowReplies": { "alias": "allowReplies"; "required": false; }; "enableHoldOnClick": { "alias": "enableHoldOnClick"; "required": false; }; "enableHoldOnScroll": { "alias": "enableHoldOnScroll"; "required": false; }; "customMenuItems": { "alias": "customMenuItems"; "required": false; }; "fixedHeight": { "alias": "fixedHeight"; "required": false; }; "selectedMessage": { "alias": "selectedMessage"; "required": false; }; "genericAvatarUrl": { "alias": "genericAvatarUrl"; "required": false; }; }, { "userSelected": "userSelected"; "reported": "reported"; "liked": "liked"; "unliked": "unliked"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; "deleted": "deleted"; "selected": "selected"; "messageEdited": "messageEdited"; "sortOrderChanged": "sortOrderChanged"; "filterModeChanged": "filterModeChanged"; }, never, ["[data-before]", ".inline-replies", ":not([data-before]):not(.inline-replies)"], false, never>;
|
|
121
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./comment/comment.component";
|
|
3
|
-
import * as i2 from "./comment-view/comment-view.component";
|
|
4
|
-
import * as i3 from "./banta-comments/banta-comments.component";
|
|
5
|
-
import * as i4 from "./live-comment.component";
|
|
6
|
-
import * as i5 from "./comment-field/comment-field.component";
|
|
7
|
-
import * as i6 from "./comment-sort/comment-sort.component";
|
|
8
|
-
import * as i7 from "./attachment-button/attachment-button.component";
|
|
9
|
-
import * as i8 from "./reply-send-options.directive";
|
|
10
|
-
import * as i9 from "./attachment-scraper.directive";
|
|
11
|
-
import * as i10 from "@angular/common";
|
|
12
|
-
import * as i11 from "@angular/cdk/text-field";
|
|
13
|
-
import * as i12 from "@angular/forms";
|
|
14
|
-
import * as i13 from "@angular/material/icon";
|
|
15
|
-
import * as i14 from "@angular/material/form-field";
|
|
16
|
-
import * as i15 from "@angular/material/input";
|
|
17
|
-
import * as i16 from "@angular/material/button";
|
|
18
|
-
import * as i17 from "@angular/material/menu";
|
|
19
|
-
import * as i18 from "@angular/material/progress-spinner";
|
|
20
|
-
import * as i19 from "../common/common.module";
|
|
21
|
-
import * as i20 from "../emoji/emoji.module";
|
|
22
|
-
import * as i21 from "@angular/material/tooltip";
|
|
23
|
-
import * as i22 from "@angular/material/select";
|
|
24
|
-
import * as i23 from "@angular/cdk/overlay";
|
|
25
|
-
import * as i24 from "@angular/cdk/portal";
|
|
26
|
-
export declare class CommentsModule {
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CommentsModule, [typeof i1.CommentComponent, typeof i2.CommentViewComponent, typeof i3.BantaCommentsComponent, typeof i4.LiveCommentComponent, typeof i5.CommentFieldComponent, typeof i6.CommentSortComponent, typeof i7.AttachmentButtonComponent, typeof i8.BantaReplySendOptionsDirective, typeof i9.AttachmentScraperDirective], [typeof i10.CommonModule, typeof i11.TextFieldModule, typeof i12.FormsModule, typeof i13.MatIconModule, typeof i14.MatFormFieldModule, typeof i15.MatInputModule, typeof i16.MatButtonModule, typeof i17.MatMenuModule, typeof i18.MatProgressSpinnerModule, typeof i19.BantaCommonModule, typeof i20.EmojiModule, typeof i21.MatTooltipModule, typeof i22.MatSelectModule, typeof i23.OverlayModule, typeof i24.PortalModule], [typeof i1.CommentComponent, typeof i2.CommentViewComponent, typeof i3.BantaCommentsComponent, typeof i4.LiveCommentComponent, typeof i5.CommentFieldComponent, typeof i6.CommentSortComponent, typeof i7.AttachmentButtonComponent, typeof i8.BantaReplySendOptionsDirective, typeof i9.AttachmentScraperDirective]>;
|
|
29
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CommentsModule>;
|
|
30
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./comment/comment.component";
|
|
3
|
+
import * as i2 from "./comment-view/comment-view.component";
|
|
4
|
+
import * as i3 from "./banta-comments/banta-comments.component";
|
|
5
|
+
import * as i4 from "./live-comment.component";
|
|
6
|
+
import * as i5 from "./comment-field/comment-field.component";
|
|
7
|
+
import * as i6 from "./comment-sort/comment-sort.component";
|
|
8
|
+
import * as i7 from "./attachment-button/attachment-button.component";
|
|
9
|
+
import * as i8 from "./reply-send-options.directive";
|
|
10
|
+
import * as i9 from "./attachment-scraper.directive";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@angular/cdk/text-field";
|
|
13
|
+
import * as i12 from "@angular/forms";
|
|
14
|
+
import * as i13 from "@angular/material/icon";
|
|
15
|
+
import * as i14 from "@angular/material/form-field";
|
|
16
|
+
import * as i15 from "@angular/material/input";
|
|
17
|
+
import * as i16 from "@angular/material/button";
|
|
18
|
+
import * as i17 from "@angular/material/menu";
|
|
19
|
+
import * as i18 from "@angular/material/progress-spinner";
|
|
20
|
+
import * as i19 from "../common/common.module";
|
|
21
|
+
import * as i20 from "../emoji/emoji.module";
|
|
22
|
+
import * as i21 from "@angular/material/tooltip";
|
|
23
|
+
import * as i22 from "@angular/material/select";
|
|
24
|
+
import * as i23 from "@angular/cdk/overlay";
|
|
25
|
+
import * as i24 from "@angular/cdk/portal";
|
|
26
|
+
export declare class CommentsModule {
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsModule, never>;
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CommentsModule, [typeof i1.CommentComponent, typeof i2.CommentViewComponent, typeof i3.BantaCommentsComponent, typeof i4.LiveCommentComponent, typeof i5.CommentFieldComponent, typeof i6.CommentSortComponent, typeof i7.AttachmentButtonComponent, typeof i8.BantaReplySendOptionsDirective, typeof i9.AttachmentScraperDirective], [typeof i10.CommonModule, typeof i11.TextFieldModule, typeof i12.FormsModule, typeof i13.MatIconModule, typeof i14.MatFormFieldModule, typeof i15.MatInputModule, typeof i16.MatButtonModule, typeof i17.MatMenuModule, typeof i18.MatProgressSpinnerModule, typeof i19.BantaCommonModule, typeof i20.EmojiModule, typeof i21.MatTooltipModule, typeof i22.MatSelectModule, typeof i23.OverlayModule, typeof i24.PortalModule], [typeof i1.CommentComponent, typeof i2.CommentViewComponent, typeof i3.BantaCommentsComponent, typeof i4.LiveCommentComponent, typeof i5.CommentFieldComponent, typeof i6.CommentSortComponent, typeof i7.AttachmentButtonComponent, typeof i8.BantaReplySendOptionsDirective, typeof i9.AttachmentScraperDirective]>;
|
|
29
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CommentsModule>;
|
|
30
|
+
}
|
package/lib/comments/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './comment/comment.component';
|
|
2
|
-
export * from './comment-view/comment-view.component';
|
|
3
|
-
export * from './banta-comments/banta-comments.component';
|
|
4
|
-
export * from './live-comment.component';
|
|
5
|
-
export * from './comment-field/comment-field.component';
|
|
6
|
-
export * from './comment-sort/comment-sort.component';
|
|
7
|
-
export * from './attachment-button/attachment-button.component';
|
|
8
|
-
export * from './reply-send-options.directive';
|
|
9
|
-
export * from './attachment-scraper.directive';
|
|
10
|
-
export * from './comments.module';
|
|
1
|
+
export * from './comment/comment.component';
|
|
2
|
+
export * from './comment-view/comment-view.component';
|
|
3
|
+
export * from './banta-comments/banta-comments.component';
|
|
4
|
+
export * from './live-comment.component';
|
|
5
|
+
export * from './comment-field/comment-field.component';
|
|
6
|
+
export * from './comment-sort/comment-sort.component';
|
|
7
|
+
export * from './attachment-button/attachment-button.component';
|
|
8
|
+
export * from './reply-send-options.directive';
|
|
9
|
+
export * from './attachment-scraper.directive';
|
|
10
|
+
export * from './comments.module';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ChatMessage } from '@banta/common';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ChatBackendBase } from '../chat-backend-base';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LiveCommentComponent {
|
|
6
|
-
private backend;
|
|
7
|
-
constructor(backend: ChatBackendBase);
|
|
8
|
-
private _message;
|
|
9
|
-
private _upvoted;
|
|
10
|
-
private _reported;
|
|
11
|
-
private _selected;
|
|
12
|
-
get upvoted(): Observable<void>;
|
|
13
|
-
get reported(): Observable<void>;
|
|
14
|
-
get selected(): Observable<void>;
|
|
15
|
-
get message(): ChatMessage;
|
|
16
|
-
private unsubscribe;
|
|
17
|
-
set message(value: ChatMessage);
|
|
18
|
-
report(): void;
|
|
19
|
-
upvote(): void;
|
|
20
|
-
select(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LiveCommentComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LiveCommentComponent, "banta-live-comment", never, { "message": "message"; }, { "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; }, never, never, false>;
|
|
23
|
-
}
|
|
1
|
+
import { ChatMessage } from '@banta/common';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ChatBackendBase } from '../chat-backend-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LiveCommentComponent {
|
|
6
|
+
private backend;
|
|
7
|
+
constructor(backend: ChatBackendBase);
|
|
8
|
+
private _message;
|
|
9
|
+
private _upvoted;
|
|
10
|
+
private _reported;
|
|
11
|
+
private _selected;
|
|
12
|
+
get upvoted(): Observable<void>;
|
|
13
|
+
get reported(): Observable<void>;
|
|
14
|
+
get selected(): Observable<void>;
|
|
15
|
+
get message(): ChatMessage;
|
|
16
|
+
private unsubscribe;
|
|
17
|
+
set message(value: ChatMessage);
|
|
18
|
+
report(): void;
|
|
19
|
+
upvote(): void;
|
|
20
|
+
select(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LiveCommentComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LiveCommentComponent, "banta-live-comment", never, { "message": { "alias": "message"; "required": false; }; }, { "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; }, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BantaReplySendOptionsDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaReplySendOptionsDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BantaReplySendOptionsDirective, "[bantaReplySendOptions]", never, {}, {}, never, never, false>;
|
|
5
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class BantaReplySendOptionsDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaReplySendOptionsDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BantaReplySendOptionsDirective, "[bantaReplySendOptions]", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|