@banta/sdk 6.0.3 → 7.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/fesm2022/banta-sdk.mjs +327 -6762
- package/fesm2022/banta-sdk.mjs.map +1 -1
- package/index.d.ts +1472 -3
- package/package.json +11 -13
- package/esm2022/banta-sdk.mjs +0 -5
- package/esm2022/lib/attachment-scraper.mjs +0 -2
- package/esm2022/lib/banta/banta.component.mjs +0 -207
- package/esm2022/lib/banta-logo.component.mjs +0 -11
- package/esm2022/lib/banta-sdk.module.mjs +0 -135
- package/esm2022/lib/chat/banta-chat/banta-chat.component.mjs +0 -209
- package/esm2022/lib/chat/chat-message/chat-message.component.mjs +0 -62
- package/esm2022/lib/chat/chat-view/chat-view.component.mjs +0 -166
- package/esm2022/lib/chat/chat.module.mjs +0 -51
- package/esm2022/lib/chat/index.mjs +0 -6
- package/esm2022/lib/chat/live-chat-message.component.mjs +0 -80
- package/esm2022/lib/chat-backend-base.mjs +0 -31
- package/esm2022/lib/chat-backend.mjs +0 -199
- package/esm2022/lib/chat-source-base.mjs +0 -2
- package/esm2022/lib/chat-source.mjs +0 -282
- package/esm2022/lib/comments/attachment-button/attachment-button.component.mjs +0 -75
- package/esm2022/lib/comments/attachment-scraper.directive.mjs +0 -101
- package/esm2022/lib/comments/banta-comments/banta-comments.component.mjs +0 -817
- package/esm2022/lib/comments/comment/comment.component.mjs +0 -224
- package/esm2022/lib/comments/comment-field/comment-field.component.mjs +0 -411
- package/esm2022/lib/comments/comment-sort/comment-sort.component.mjs +0 -37
- package/esm2022/lib/comments/comment-view/comment-view.component.mjs +0 -780
- package/esm2022/lib/comments/comments.module.mjs +0 -127
- package/esm2022/lib/comments/index.mjs +0 -12
- package/esm2022/lib/comments/inline-replies.directive.mjs +0 -13
- package/esm2022/lib/comments/live-comment.component.mjs +0 -80
- package/esm2022/lib/comments/reply-send-options.directive.mjs +0 -13
- package/esm2022/lib/common/attachment/attachment.component.mjs +0 -128
- package/esm2022/lib/common/attachments/attachments.component.mjs +0 -75
- package/esm2022/lib/common/common.module.mjs +0 -68
- package/esm2022/lib/common/index.mjs +0 -11
- package/esm2022/lib/common/lazy-connection.mjs +0 -15
- package/esm2022/lib/common/lightbox/lightbox.component.mjs +0 -31
- package/esm2022/lib/common/markdown-to-html.pipe.mjs +0 -83
- package/esm2022/lib/common/mention-linker.pipe.mjs +0 -35
- package/esm2022/lib/common/timer-pool.service.mjs +0 -85
- package/esm2022/lib/common/timestamp.component.mjs +0 -124
- package/esm2022/lib/common/trust-resource-url.pipe.mjs +0 -22
- package/esm2022/lib/emoji/emoji-selector-button.component.mjs +0 -115
- package/esm2022/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.mjs +0 -93
- package/esm2022/lib/emoji/emoji.module.mjs +0 -55
- package/esm2022/lib/emoji/emojis.mjs +0 -6508
- package/esm2022/lib/emoji/index.mjs +0 -5
- package/esm2022/lib/giphy-attachments.mjs +0 -16
- package/esm2022/lib/index.mjs +0 -20
- package/esm2022/lib/live-message.component.mjs +0 -96
- package/esm2022/lib/message-menu-item.mjs +0 -2
- package/esm2022/lib/sdk-options.mjs +0 -3
- package/esm2022/lib/static-chat-source.mjs +0 -101
- package/esm2022/lib/tweet-attachments.mjs +0 -13
- package/esm2022/lib/url-attachments.mjs +0 -42
- package/esm2022/lib/youtube-attachments.mjs +0 -29
- package/esm2022/public-api.mjs +0 -5
- package/lib/attachment-scraper.d.ts +0 -15
- package/lib/banta/banta.component.d.ts +0 -59
- package/lib/banta-logo.component.d.ts +0 -5
- package/lib/banta-sdk.module.d.ts +0 -32
- package/lib/chat/banta-chat/banta-chat.component.d.ts +0 -79
- package/lib/chat/chat-message/chat-message.component.d.ts +0 -21
- package/lib/chat/chat-view/chat-view.component.d.ts +0 -52
- package/lib/chat/chat.module.d.ts +0 -15
- package/lib/chat/index.d.ts +0 -5
- package/lib/chat/live-chat-message.component.d.ts +0 -23
- package/lib/chat-backend-base.d.ts +0 -72
- package/lib/chat-backend.d.ts +0 -66
- package/lib/chat-source-base.d.ts +0 -51
- package/lib/chat-source.d.ts +0 -85
- package/lib/comments/attachment-button/attachment-button.component.d.ts +0 -17
- package/lib/comments/attachment-scraper.directive.d.ts +0 -21
- package/lib/comments/banta-comments/banta-comments.component.d.ts +0 -216
- package/lib/comments/comment/comment.component.d.ts +0 -90
- package/lib/comments/comment-field/comment-field.component.d.ts +0 -92
- package/lib/comments/comment-sort/comment-sort.component.d.ts +0 -16
- package/lib/comments/comment-view/comment-view.component.d.ts +0 -205
- package/lib/comments/comments.module.d.ts +0 -34
- package/lib/comments/index.d.ts +0 -11
- package/lib/comments/inline-replies.directive.d.ts +0 -5
- package/lib/comments/live-comment.component.d.ts +0 -23
- package/lib/comments/reply-send-options.directive.d.ts +0 -5
- package/lib/common/attachment/attachment.component.d.ts +0 -34
- package/lib/common/attachments/attachments.component.d.ts +0 -26
- package/lib/common/common.module.d.ts +0 -19
- package/lib/common/index.d.ts +0 -10
- package/lib/common/lazy-connection.d.ts +0 -6
- package/lib/common/lightbox/lightbox.component.d.ts +0 -14
- package/lib/common/markdown-to-html.pipe.d.ts +0 -13
- package/lib/common/mention-linker.pipe.d.ts +0 -13
- package/lib/common/timer-pool.service.d.ts +0 -15
- package/lib/common/timestamp.component.d.ts +0 -19
- package/lib/common/trust-resource-url.pipe.d.ts +0 -10
- package/lib/emoji/emoji-selector-button.component.d.ts +0 -30
- package/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.d.ts +0 -23
- package/lib/emoji/emoji.module.d.ts +0 -16
- package/lib/emoji/emojis.d.ts +0 -6507
- package/lib/emoji/index.d.ts +0 -4
- package/lib/giphy-attachments.d.ts +0 -5
- package/lib/index.d.ts +0 -19
- package/lib/live-message.component.d.ts +0 -22
- package/lib/message-menu-item.d.ts +0 -6
- package/lib/sdk-options.d.ts +0 -8
- package/lib/static-chat-source.d.ts +0 -49
- package/lib/tweet-attachments.d.ts +0 -5
- package/lib/url-attachments.d.ts +0 -14
- package/lib/youtube-attachments.d.ts +0 -5
- package/public-api.d.ts +0 -1
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
2
|
-
import { ChatMessage, ChatPermissions, User } from '@banta/common';
|
|
3
|
-
import { MessageMenuItem } from "../../message-menu-item";
|
|
4
|
-
import { PinOptions } from "../../chat-source";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CommentComponent {
|
|
7
|
-
private elementRef;
|
|
8
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
get message(): ChatMessage;
|
|
11
|
-
set message(value: ChatMessage);
|
|
12
|
-
private _message;
|
|
13
|
-
private isLoaded;
|
|
14
|
-
editedMessage: string;
|
|
15
|
-
pinFormVisible: boolean;
|
|
16
|
-
pinUntilDate: Date;
|
|
17
|
-
pinUntilTime: string;
|
|
18
|
-
pinMode: 'forever' | 'until';
|
|
19
|
-
today: Date;
|
|
20
|
-
customMenuItems: MessageMenuItem[];
|
|
21
|
-
showReplyAction: boolean;
|
|
22
|
-
maxLength: number;
|
|
23
|
-
permissions: ChatPermissions;
|
|
24
|
-
mine: boolean;
|
|
25
|
-
editing: boolean;
|
|
26
|
-
genericAvatarUrl: string;
|
|
27
|
-
readonly: boolean;
|
|
28
|
-
private _reported;
|
|
29
|
-
private _selected;
|
|
30
|
-
private _liked;
|
|
31
|
-
private _unliked;
|
|
32
|
-
private _shared;
|
|
33
|
-
private _userSelected;
|
|
34
|
-
private _avatarSelected;
|
|
35
|
-
private _usernameSelected;
|
|
36
|
-
private _editStarted;
|
|
37
|
-
private _deleted;
|
|
38
|
-
private _editEnded;
|
|
39
|
-
private _edited;
|
|
40
|
-
private _loaded;
|
|
41
|
-
private _pinned;
|
|
42
|
-
private _unpinned;
|
|
43
|
-
readonly liked: import("rxjs").Observable<void>;
|
|
44
|
-
readonly unliked: import("rxjs").Observable<void>;
|
|
45
|
-
readonly selected: import("rxjs").Observable<void>;
|
|
46
|
-
readonly edited: import("rxjs").Observable<string>;
|
|
47
|
-
readonly deleted: import("rxjs").Observable<void>;
|
|
48
|
-
readonly editStarted: import("rxjs").Observable<void>;
|
|
49
|
-
readonly editEnded: import("rxjs").Observable<void>;
|
|
50
|
-
readonly shared: import("rxjs").Observable<ChatMessage>;
|
|
51
|
-
readonly userSelected: import("rxjs").Observable<void>;
|
|
52
|
-
readonly usernameSelected: import("rxjs").Observable<User>;
|
|
53
|
-
readonly avatarSelected: import("rxjs").Observable<User>;
|
|
54
|
-
readonly reported: import("rxjs").Observable<void>;
|
|
55
|
-
readonly loaded: import("rxjs").Observable<void>;
|
|
56
|
-
readonly pinned: import("rxjs").Observable<{
|
|
57
|
-
message: ChatMessage;
|
|
58
|
-
options: PinOptions;
|
|
59
|
-
}>;
|
|
60
|
-
readonly unpinned: import("rxjs").Observable<ChatMessage>;
|
|
61
|
-
get commentId(): string;
|
|
62
|
-
isNew: boolean;
|
|
63
|
-
get isHighlighted(): any;
|
|
64
|
-
visible: boolean;
|
|
65
|
-
get replyCount(): number;
|
|
66
|
-
get element(): HTMLElement;
|
|
67
|
-
get isPinned(): boolean;
|
|
68
|
-
get pinFormValid(): boolean;
|
|
69
|
-
avatarForUser(user: User): string;
|
|
70
|
-
waitForLoad(): Promise<void>;
|
|
71
|
-
private setMessage;
|
|
72
|
-
markAttachmentsLoaded(): void;
|
|
73
|
-
saveEdit(): void;
|
|
74
|
-
endEditing(): void;
|
|
75
|
-
delete(): void;
|
|
76
|
-
report(): void;
|
|
77
|
-
like(): void;
|
|
78
|
-
unlike(): void;
|
|
79
|
-
share(): void;
|
|
80
|
-
unpin(): void;
|
|
81
|
-
select(): void;
|
|
82
|
-
selectUser(): void;
|
|
83
|
-
startEdit(): void;
|
|
84
|
-
selectUsername(user: User): void;
|
|
85
|
-
selectAvatar(user: User): void;
|
|
86
|
-
showPinForm(): void;
|
|
87
|
-
submitPin(): void;
|
|
88
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentComponent, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentComponent, "banta-comment", never, { "message": { "alias": "message"; "required": false; }; "customMenuItems": { "alias": "customMenuItems"; "required": false; }; "showReplyAction": { "alias": "showReplyAction"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; "mine": { "alias": "mine"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "genericAvatarUrl": { "alias": "genericAvatarUrl"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "liked": "liked"; "unliked": "unliked"; "selected": "selected"; "edited": "edited"; "deleted": "deleted"; "editStarted": "editStarted"; "editEnded": "editEnded"; "shared": "shared"; "userSelected": "userSelected"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "reported": "reported"; "loaded": "loaded"; "pinned": "pinned"; "unpinned": "unpinned"; }, never, never, false, never>;
|
|
90
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
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
|
-
allowServerInfoRequest: boolean;
|
|
54
|
-
signInSelected: Subject<void>;
|
|
55
|
-
editAvatarSelected: Subject<void>;
|
|
56
|
-
focusChange: Subject<boolean>;
|
|
57
|
-
textChanged: Subject<void>;
|
|
58
|
-
serverInfoRequested: Subject<void>;
|
|
59
|
-
reconnectRequested: Subject<void>;
|
|
60
|
-
get permissionDeniedError(): Subject<string>;
|
|
61
|
-
autocompleteEl: ElementRef<HTMLElement>;
|
|
62
|
-
autocompleteContainerEl: ElementRef<HTMLElement>;
|
|
63
|
-
textareaEl: ElementRef<HTMLTextAreaElement>;
|
|
64
|
-
get indicatorState(): "error" | "transient" | "sending" | "none";
|
|
65
|
-
get buttonState(): "signing-in" | "sending" | "permission-denied" | "send";
|
|
66
|
-
get sendButtonEnabled(): boolean;
|
|
67
|
-
get userAvatarUrl(): string;
|
|
68
|
-
get isValidMessage(): string | boolean;
|
|
69
|
-
get hasPendingAttachments(): boolean;
|
|
70
|
-
private setSource;
|
|
71
|
-
sendPermissionDenied(message: string): void;
|
|
72
|
-
activateAutoComplete(option: AutoCompleteOption): void;
|
|
73
|
-
onFocus(): void;
|
|
74
|
-
onBlur(): void;
|
|
75
|
-
showSignIn(): void;
|
|
76
|
-
showEditAvatar(): void;
|
|
77
|
-
insertEmoji(text: string): void;
|
|
78
|
-
showAutoComplete(options: AutoCompleteOption[]): void;
|
|
79
|
-
dismissAutoComplete(): void;
|
|
80
|
-
indicateError(message: string): void;
|
|
81
|
-
autocomplete(replacement: string): Promise<void>;
|
|
82
|
-
insert(str: string): Promise<void>;
|
|
83
|
-
onKeyDown(event: KeyboardEvent): Promise<void>;
|
|
84
|
-
startAutoComplete(event: KeyboardEvent, completionFunc: (str: string) => AutoCompleteOption[]): void;
|
|
85
|
-
sendMessage(): Promise<void>;
|
|
86
|
-
addedAttachment(attachment: ChatMessageAttachment): void;
|
|
87
|
-
attachmentError(attachment: ChatMessageAttachment): void;
|
|
88
|
-
removeAttachment(attachment: ChatMessageAttachment): void;
|
|
89
|
-
alertError(): void;
|
|
90
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentFieldComponent, never>;
|
|
91
|
-
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; }; "allowServerInfoRequest": { "alias": "allowServerInfoRequest"; "required": false; }; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "focusChange": "focusChange"; "textChanged": "textChanged"; "serverInfoRequested": "serverInfoRequested"; "reconnectRequested": "reconnectRequested"; "permissionDeniedError": "permissionDeniedError"; }, never, ["*"], false, never>;
|
|
92
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CommentSortComponent {
|
|
3
|
-
commentsOrder: {
|
|
4
|
-
readonly NEWEST: "newest";
|
|
5
|
-
readonly OLDEST: "oldest";
|
|
6
|
-
readonly LIKES: "likes";
|
|
7
|
-
readonly options: readonly ["newest", "oldest", "likes"];
|
|
8
|
-
};
|
|
9
|
-
private _sortChange;
|
|
10
|
-
private _sort;
|
|
11
|
-
get sort(): "newest" | "oldest" | "likes";
|
|
12
|
-
set sort(value: "newest" | "oldest" | "likes");
|
|
13
|
-
get sortChange(): import("rxjs").Observable<"newest" | "oldest" | "likes">;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentSortComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentSortComponent, "banta-comment-sort", never, { "sort": { "alias": "sort"; "required": false; }; }, { "sortChange": "sortChange"; }, never, never, false, never>;
|
|
16
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { ElementRef, QueryList, TemplateRef } from "@angular/core";
|
|
2
|
-
import { User, ChatMessage } 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 { PinOptions } from "../../chat-source";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export interface EditEvent {
|
|
10
|
-
message: ChatMessage;
|
|
11
|
-
newMessage: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class CommentViewComponent {
|
|
14
|
-
private backend;
|
|
15
|
-
private elementRef;
|
|
16
|
-
constructor(backend: ChatBackendBase, elementRef: ElementRef<HTMLElement>);
|
|
17
|
-
private _source;
|
|
18
|
-
get source(): ChatSourceBase;
|
|
19
|
-
set source(value: ChatSourceBase);
|
|
20
|
-
private _sourceSubs;
|
|
21
|
-
menuMessage: ChatMessage;
|
|
22
|
-
pinnedMessages: ChatMessage[];
|
|
23
|
-
messages: ChatMessage[];
|
|
24
|
-
currentUser: User;
|
|
25
|
-
customSortEnabled: boolean;
|
|
26
|
-
markSourceLoaded: () => void;
|
|
27
|
-
sourceLoaded: Promise<void>;
|
|
28
|
-
isViewingMore: boolean;
|
|
29
|
-
isLoadingMore: boolean;
|
|
30
|
-
hasMore: boolean;
|
|
31
|
-
messageClicked: boolean;
|
|
32
|
-
get previousMessages(): ChatMessage[];
|
|
33
|
-
get nextMessages(): ChatMessage[];
|
|
34
|
-
/**
|
|
35
|
-
* While this is called "new" messages, it really represents the messages that would be visible *at the beginning
|
|
36
|
-
* of the sort order*, which can be flipped by the newestLast feature (used for replies mode).
|
|
37
|
-
*
|
|
38
|
-
* So, when newestLast is false (top-level comments), regardless of the current sortOrder, newMessages are conceptually
|
|
39
|
-
* *above* the visible set of messages.
|
|
40
|
-
*
|
|
41
|
-
* When newestLast is true (as in replies mode), regardless of the current sortOrder, newMessages are conceptually
|
|
42
|
-
* *below* the visible set of messages.
|
|
43
|
-
*/
|
|
44
|
-
newMessages: ChatMessage[];
|
|
45
|
-
/**
|
|
46
|
-
* While this is called "older" messages, it really represents the messages that would be visible *at the end of the
|
|
47
|
-
* sort order*, which can be flipped by the newestLast feature (useds for replies mode).
|
|
48
|
-
*
|
|
49
|
-
* So, when newestLast is false, regardless of the current sortOrder, olderMessages are conceptually *below*
|
|
50
|
-
* the visible set of messages.
|
|
51
|
-
*
|
|
52
|
-
* When newestLast is true (as in replies mode), regardless of the current sortOrder, olderMessages are conceptually
|
|
53
|
-
* *above* the visible set of messages.
|
|
54
|
-
*/
|
|
55
|
-
olderMessages: ChatMessage[];
|
|
56
|
-
private _maxMessages;
|
|
57
|
-
set maxMessages(value: number);
|
|
58
|
-
get maxMessages(): number;
|
|
59
|
-
private _maxVisibleMessages;
|
|
60
|
-
set maxVisibleMessages(value: number);
|
|
61
|
-
get maxVisibleMessages(): number;
|
|
62
|
-
collapsePins: boolean;
|
|
63
|
-
newestLast: boolean;
|
|
64
|
-
holdNewMessages: boolean;
|
|
65
|
-
showEmptyState: boolean;
|
|
66
|
-
emptyStateMessage: string;
|
|
67
|
-
allowReplies: boolean;
|
|
68
|
-
enableHoldOnClick: boolean;
|
|
69
|
-
enableHoldOnScroll: boolean;
|
|
70
|
-
customMenuItems: MessageMenuItem[];
|
|
71
|
-
fixedHeight: boolean;
|
|
72
|
-
selectedMessage: ChatMessage;
|
|
73
|
-
genericAvatarUrl: string;
|
|
74
|
-
inlineRepliesTemplate: TemplateRef<any>;
|
|
75
|
-
private _selected;
|
|
76
|
-
private _liked;
|
|
77
|
-
private _unliked;
|
|
78
|
-
private _pinned;
|
|
79
|
-
private _unpinned;
|
|
80
|
-
private _reported;
|
|
81
|
-
private _userSelected;
|
|
82
|
-
private _usernameSelected;
|
|
83
|
-
private _avatarSelected;
|
|
84
|
-
private _shared;
|
|
85
|
-
private _deleted;
|
|
86
|
-
private _messageEdited;
|
|
87
|
-
private _sortOrderChanged;
|
|
88
|
-
private _filterModeChanged;
|
|
89
|
-
readonly userSelected: import("rxjs").Observable<ChatMessage>;
|
|
90
|
-
readonly reported: import("rxjs").Observable<ChatMessage>;
|
|
91
|
-
readonly liked: import("rxjs").Observable<ChatMessage>;
|
|
92
|
-
readonly unliked: import("rxjs").Observable<ChatMessage>;
|
|
93
|
-
readonly pinned: import("rxjs").Observable<{
|
|
94
|
-
message: ChatMessage;
|
|
95
|
-
options: PinOptions;
|
|
96
|
-
}>;
|
|
97
|
-
readonly unpinned: import("rxjs").Observable<ChatMessage>;
|
|
98
|
-
readonly usernameSelected: import("rxjs").Observable<User>;
|
|
99
|
-
readonly avatarSelected: import("rxjs").Observable<User>;
|
|
100
|
-
readonly shared: import("rxjs").Observable<ChatMessage>;
|
|
101
|
-
readonly deleted: import("rxjs").Observable<ChatMessage>;
|
|
102
|
-
readonly selected: import("rxjs").Observable<ChatMessage>;
|
|
103
|
-
readonly messageEdited: import("rxjs").Observable<EditEvent>;
|
|
104
|
-
readonly sortOrderChanged: import("rxjs").Observable<"newest" | "oldest" | "likes">;
|
|
105
|
-
readonly filterModeChanged: import("rxjs").Observable<string>;
|
|
106
|
-
commentsQuery: QueryList<CommentComponent>;
|
|
107
|
-
messageContainer: ElementRef<HTMLElement>;
|
|
108
|
-
get comments(): CommentComponent[];
|
|
109
|
-
/**
|
|
110
|
-
* Returns true if this message can be found within one of the message buffers (older, current, newer)
|
|
111
|
-
* @param message
|
|
112
|
-
*/
|
|
113
|
-
isMessageLoadedInContext(message: ChatMessage): ChatMessage;
|
|
114
|
-
loadMessageInContext(message: ChatMessage): Promise<boolean>;
|
|
115
|
-
get shouldShowNewMessageIndicator(): boolean;
|
|
116
|
-
get shouldHoldNewMessages(): boolean;
|
|
117
|
-
private isElementVisible;
|
|
118
|
-
/**
|
|
119
|
-
* Get the CommentComponent instantiated for the given ChatMessage,
|
|
120
|
-
* if it exists in the current view. Note that messages which are not
|
|
121
|
-
* currently shown to the user will not return a CommentComponent.
|
|
122
|
-
* @param message
|
|
123
|
-
* @returns
|
|
124
|
-
*/
|
|
125
|
-
getCommentComponentForMessage(message: ChatMessage): CommentComponent;
|
|
126
|
-
saveEdit(message: ChatMessage, newMessage: string): void;
|
|
127
|
-
likeMessage(message: ChatMessage): void;
|
|
128
|
-
unlikeMessage(message: ChatMessage): void;
|
|
129
|
-
pinMessage(message: ChatMessage, options: PinOptions): void;
|
|
130
|
-
unpinMessage(message: ChatMessage): void;
|
|
131
|
-
reportMessage(message: ChatMessage): void;
|
|
132
|
-
selectMessage(message: ChatMessage): void;
|
|
133
|
-
selectMessageUser(message: ChatMessage): void;
|
|
134
|
-
selectUsername(user: User): void;
|
|
135
|
-
selectAvatar(user: User): void;
|
|
136
|
-
sharedMessage(message: ChatMessage): void;
|
|
137
|
-
startEditing(message: ChatMessage): void;
|
|
138
|
-
deleteMessage(message: ChatMessage): void;
|
|
139
|
-
private setSource;
|
|
140
|
-
private getInitialMessages;
|
|
141
|
-
debugMessages(): void;
|
|
142
|
-
zeroPad(number: number | string, count?: number): string;
|
|
143
|
-
leftPad(str: string, count?: number): string;
|
|
144
|
-
messageIdentity(index: number, chatMessage: ChatMessage): string;
|
|
145
|
-
get sourceSortOrder(): "newest" | "oldest" | "likes";
|
|
146
|
-
get sourceFilterMode(): string;
|
|
147
|
-
/**
|
|
148
|
-
* Show the newest content.
|
|
149
|
-
* - If an unnatural sort order is active (ie Oldest or Likes), it will be changed to Newest.
|
|
150
|
-
* - The new content will be placed where new content goes based on newestLast (replies mode), so if it is true, the content is
|
|
151
|
-
* placed at the end, otherwise it is placed at the beginning.
|
|
152
|
-
*
|
|
153
|
-
* @param event
|
|
154
|
-
* @returns
|
|
155
|
-
*/
|
|
156
|
-
showNewest(event: MouseEvent): Promise<void>;
|
|
157
|
-
get showDebug(): boolean;
|
|
158
|
-
get shouldShowNext(): boolean;
|
|
159
|
-
get shouldShowPrevious(): boolean;
|
|
160
|
-
get pageSize(): number;
|
|
161
|
-
showPrevious(): Promise<void>;
|
|
162
|
-
get sortNextLabel(): "Older" | "Newer" | "Less Likes" | "More";
|
|
163
|
-
get sortPreviousLabel(): "Older" | "Newer" | "More" | "More Likes";
|
|
164
|
-
get nextLabel(): "Older" | "Newer" | "Less Likes" | "More" | "More Likes";
|
|
165
|
-
get previousLabel(): "Older" | "Newer" | "Less Likes" | "More" | "More Likes";
|
|
166
|
-
/**
|
|
167
|
-
* Show more content
|
|
168
|
-
* - When in replies mode (newestLast), the content is added at the top
|
|
169
|
-
* - When in normal mode, the content is added at the bottom
|
|
170
|
-
* - The current sort order does *not* factor in here, which is why it is showMore() not showEarlier().
|
|
171
|
-
*
|
|
172
|
-
* @returns
|
|
173
|
-
*/
|
|
174
|
-
showNext(): Promise<void>;
|
|
175
|
-
/**
|
|
176
|
-
* Show more content
|
|
177
|
-
* - When in replies mode (newestLast), the content is added at the top
|
|
178
|
-
* - When in normal mode, the content is added at the bottom
|
|
179
|
-
* - The current sort order does *not* factor in here, which is why it is showMore() not showEarlier().
|
|
180
|
-
*
|
|
181
|
-
* @returns
|
|
182
|
-
*/
|
|
183
|
-
showMore(): Promise<void>;
|
|
184
|
-
private heldMessages;
|
|
185
|
-
private addMessage;
|
|
186
|
-
private incrementPagingCursors;
|
|
187
|
-
/**
|
|
188
|
-
* Wait for all currently visible comments to be fully loaded, including all attachments.
|
|
189
|
-
* Doing this will prevent layout shift when scrolling to a specific comment.
|
|
190
|
-
*/
|
|
191
|
-
waitForAllCommentsToLoad(): Promise<void>;
|
|
192
|
-
private sortMessages;
|
|
193
|
-
private messageReceived;
|
|
194
|
-
isScrolledToLatest(): boolean;
|
|
195
|
-
private messageSent;
|
|
196
|
-
private isPinned;
|
|
197
|
-
private messageUpdated;
|
|
198
|
-
scrollToLatest(): void;
|
|
199
|
-
get element(): HTMLElement;
|
|
200
|
-
scrollToComment(commentId: ChatMessage['id']): Promise<void>;
|
|
201
|
-
getElementForComment(commentId: string): Element;
|
|
202
|
-
mentionsMe(message: ChatMessage): boolean;
|
|
203
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentViewComponent, never>;
|
|
204
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CommentViewComponent, "banta-comment-view", never, { "source": { "alias": "source"; "required": false; }; "maxMessages": { "alias": "maxMessages"; "required": false; }; "maxVisibleMessages": { "alias": "maxVisibleMessages"; "required": false; }; "collapsePins": { "alias": "collapsePins"; "required": false; }; "newestLast": { "alias": "newestLast"; "required": false; }; "holdNewMessages": { "alias": "holdNewMessages"; "required": false; }; "showEmptyState": { "alias": "showEmptyState"; "required": false; }; "emptyStateMessage": { "alias": "emptyStateMessage"; "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"; "pinned": "pinned"; "unpinned": "unpinned"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; "deleted": "deleted"; "selected": "selected"; "messageEdited": "messageEdited"; "sortOrderChanged": "sortOrderChanged"; "filterModeChanged": "filterModeChanged"; }, ["inlineRepliesTemplate"], ["[data-before]", ":not([data-before]):not(.inline-replies)"], false, never>;
|
|
205
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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 "./inline-replies.directive";
|
|
11
|
-
import * as i10 from "./attachment-scraper.directive";
|
|
12
|
-
import * as i11 from "@angular/common";
|
|
13
|
-
import * as i12 from "@angular/cdk/text-field";
|
|
14
|
-
import * as i13 from "@angular/forms";
|
|
15
|
-
import * as i14 from "@angular/material/icon";
|
|
16
|
-
import * as i15 from "@angular/material/form-field";
|
|
17
|
-
import * as i16 from "@angular/material/input";
|
|
18
|
-
import * as i17 from "@angular/material/button";
|
|
19
|
-
import * as i18 from "@angular/material/menu";
|
|
20
|
-
import * as i19 from "@angular/material/divider";
|
|
21
|
-
import * as i20 from "@angular/material/progress-spinner";
|
|
22
|
-
import * as i21 from "../common/common.module";
|
|
23
|
-
import * as i22 from "../emoji/emoji.module";
|
|
24
|
-
import * as i23 from "@angular/material/tooltip";
|
|
25
|
-
import * as i24 from "@angular/material/datepicker";
|
|
26
|
-
import * as i25 from "@angular/material/select";
|
|
27
|
-
import * as i26 from "@angular/material/radio";
|
|
28
|
-
import * as i27 from "@angular/cdk/overlay";
|
|
29
|
-
import * as i28 from "@angular/cdk/portal";
|
|
30
|
-
export declare class CommentsModule {
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CommentsModule, never>;
|
|
32
|
-
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.BantaInlineRepliesDirective, typeof i10.AttachmentScraperDirective], [typeof i11.CommonModule, typeof i12.TextFieldModule, typeof i13.FormsModule, typeof i14.MatIconModule, typeof i15.MatFormFieldModule, typeof i16.MatInputModule, typeof i17.MatButtonModule, typeof i18.MatMenuModule, typeof i19.MatDividerModule, typeof i20.MatProgressSpinnerModule, typeof i21.BantaCommonModule, typeof i22.EmojiModule, typeof i23.MatTooltipModule, typeof i24.MatDatepickerModule, typeof i25.MatSelectModule, typeof i26.MatRadioModule, typeof i27.OverlayModule, typeof i28.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.BantaInlineRepliesDirective, typeof i10.AttachmentScraperDirective]>;
|
|
33
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<CommentsModule>;
|
|
34
|
-
}
|
package/lib/comments/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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 './inline-replies.directive';
|
|
10
|
-
export * from './attachment-scraper.directive';
|
|
11
|
-
export * from './comments.module';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class BantaInlineRepliesDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaInlineRepliesDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BantaInlineRepliesDirective, "[bantaInlineReplies]", never, {}, {}, never, never, false, never>;
|
|
5
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
2
|
-
import { ChatMessageAttachment } from "@banta/common";
|
|
3
|
-
import { Subject } from "rxjs";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BantaAttachmentComponent {
|
|
6
|
-
private elementRef;
|
|
7
|
-
constructor(elementRef: ElementRef<HTMLElement>);
|
|
8
|
-
private _attachment;
|
|
9
|
-
get attachment(): ChatMessageAttachment;
|
|
10
|
-
set attachment(value: ChatMessageAttachment);
|
|
11
|
-
loading: boolean;
|
|
12
|
-
editing: boolean;
|
|
13
|
-
loadingMessage: string;
|
|
14
|
-
error: boolean;
|
|
15
|
-
errorMessage: string;
|
|
16
|
-
removed: Subject<void>;
|
|
17
|
-
activated: Subject<void>;
|
|
18
|
-
loaded: Subject<void>;
|
|
19
|
-
private _viewLoaded;
|
|
20
|
-
ngAfterViewInit(): void;
|
|
21
|
-
private loadTwitterWidgets;
|
|
22
|
-
private loadPlatformSpecific;
|
|
23
|
-
private checkLoad;
|
|
24
|
-
activate(): void;
|
|
25
|
-
remove(): void;
|
|
26
|
-
get isError(): any;
|
|
27
|
-
get theErrorMessage(): any;
|
|
28
|
-
get isLoading(): any;
|
|
29
|
-
get isImageAttachment(): boolean;
|
|
30
|
-
get hasFrame(): string | boolean;
|
|
31
|
-
get frameUrl(): string;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaAttachmentComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BantaAttachmentComponent, "banta-attachment", never, { "attachment": { "alias": "attachment"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; }, { "removed": "removed"; "activated": "activated"; "loaded": "loaded"; }, never, never, false, never>;
|
|
34
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChatMessageAttachment } from "@banta/common";
|
|
2
|
-
import { Subject } from "rxjs";
|
|
3
|
-
import { LightboxComponent } from "../lightbox/lightbox.component";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BantaAttachmentsComponent {
|
|
6
|
-
attachments: ChatMessageAttachment[];
|
|
7
|
-
editing: boolean;
|
|
8
|
-
lightbox: LightboxComponent;
|
|
9
|
-
remove: Subject<ChatMessageAttachment>;
|
|
10
|
-
loaded: Subject<void>;
|
|
11
|
-
loadedAttachments: WeakMap<ChatMessageAttachment, boolean>;
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
markAttachmentLoaded(attachment: ChatMessageAttachment): void;
|
|
14
|
-
isAttachmentLoaded(attachment: ChatMessageAttachment): boolean;
|
|
15
|
-
get allAttachmentsLoaded(): boolean;
|
|
16
|
-
removeAttachment(attachment: ChatMessageAttachment): void;
|
|
17
|
-
isImageAttachment(attachment: ChatMessageAttachment): boolean;
|
|
18
|
-
isCardAttachment(attachment: ChatMessageAttachment): boolean;
|
|
19
|
-
showLightbox(image: ChatMessageAttachment): void;
|
|
20
|
-
get validAttachments(): ChatMessageAttachment[];
|
|
21
|
-
get inlineAttachments(): ChatMessageAttachment[];
|
|
22
|
-
get blockAttachments(): ChatMessageAttachment[];
|
|
23
|
-
attachmentId(index: number, attachment: ChatMessageAttachment): string;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaAttachmentsComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BantaAttachmentsComponent, "banta-attachments", never, { "attachments": { "alias": "attachments"; "required": false; }; "editing": { "alias": "editing"; "required": false; }; }, { "remove": "remove"; "loaded": "loaded"; }, never, never, false, never>;
|
|
26
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./timestamp.component";
|
|
4
|
-
import * as i2 from "./lightbox/lightbox.component";
|
|
5
|
-
import * as i3 from "./markdown-to-html.pipe";
|
|
6
|
-
import * as i4 from "./mention-linker.pipe";
|
|
7
|
-
import * as i5 from "./trust-resource-url.pipe";
|
|
8
|
-
import * as i6 from "./attachment/attachment.component";
|
|
9
|
-
import * as i7 from "./attachments/attachments.component";
|
|
10
|
-
import * as i8 from "@angular/common";
|
|
11
|
-
import * as i9 from "@angular/material/icon";
|
|
12
|
-
import * as i10 from "@angular/material/progress-spinner";
|
|
13
|
-
import * as i11 from "@angular/material/button";
|
|
14
|
-
export declare class BantaCommonModule {
|
|
15
|
-
static forRoot(): ModuleWithProviders<BantaCommonModule>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaCommonModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BantaCommonModule, [typeof i1.TimestampComponent, typeof i2.LightboxComponent, typeof i3.BantaMarkdownToHtmlPipe, typeof i4.BantaMentionLinkerPipe, typeof i5.BantaTrustResourceUrlPipe, typeof i6.BantaAttachmentComponent, typeof i7.BantaAttachmentsComponent], [typeof i8.CommonModule, typeof i9.MatIconModule, typeof i10.MatProgressSpinnerModule, typeof i11.MatButtonModule], [typeof i1.TimestampComponent, typeof i2.LightboxComponent, typeof i3.BantaMarkdownToHtmlPipe, typeof i4.BantaMentionLinkerPipe, typeof i5.BantaTrustResourceUrlPipe, typeof i6.BantaAttachmentComponent, typeof i7.BantaAttachmentsComponent]>;
|
|
18
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<BantaCommonModule>;
|
|
19
|
-
}
|
package/lib/common/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './lazy-connection';
|
|
2
|
-
export * from './timestamp.component';
|
|
3
|
-
export * from './lightbox/lightbox.component';
|
|
4
|
-
export * from './markdown-to-html.pipe';
|
|
5
|
-
export * from './trust-resource-url.pipe';
|
|
6
|
-
export * from './mention-linker.pipe';
|
|
7
|
-
export * from './attachment/attachment.component';
|
|
8
|
-
export * from './attachments/attachments.component';
|
|
9
|
-
export * from './timer-pool.service';
|
|
10
|
-
export * from './common.module';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class LightboxComponent {
|
|
4
|
-
containerElement: ElementRef<HTMLDivElement>;
|
|
5
|
-
ngAfterViewInit(): void;
|
|
6
|
-
ngOnDestroy(): void;
|
|
7
|
-
images: string[];
|
|
8
|
-
currentImage: string;
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
close(): void;
|
|
11
|
-
open(currentImage: string, images: string[]): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LightboxComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LightboxComponent, "banta-lightbox", never, {}, {}, never, never, false, never>;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as marked from 'marked';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BantaMarkdownToHtmlPipe implements PipeTransform {
|
|
5
|
-
private sanitizer;
|
|
6
|
-
private sdkOptions;
|
|
7
|
-
constructor();
|
|
8
|
-
private get emojiUrl();
|
|
9
|
-
renderer: marked.Renderer;
|
|
10
|
-
transform(value: string): import("@angular/platform-browser").SafeHtml;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaMarkdownToHtmlPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BantaMarkdownToHtmlPipe, "bantaMarkdownToHtml", false>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { ChatMessageMention } from '@banta/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BantaMentionLinkerPipe implements PipeTransform {
|
|
5
|
-
transform(value: string, links?: ChatMessageMention[]): string;
|
|
6
|
-
formatLink(link: ChatMessageMention): string;
|
|
7
|
-
/**
|
|
8
|
-
* https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
|
|
9
|
-
*/
|
|
10
|
-
escapeRegExp(string: any): any;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaMentionLinkerPipe, never>;
|
|
12
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BantaMentionLinkerPipe, "mentionLinker", false>;
|
|
13
|
-
}
|