@banta/sdk 4.6.26 → 4.7.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/{esm2015/banta-sdk.js → esm2020/banta-sdk.mjs} +0 -0
- package/{esm2015/lib/attachment-scraper.js → esm2020/lib/attachment-scraper.mjs} +0 -0
- package/esm2020/lib/banta/banta.component.mjs +204 -0
- package/esm2020/lib/banta-logo.component.mjs +11 -0
- package/esm2020/lib/banta-sdk.module.mjs +144 -0
- package/esm2020/lib/chat/banta-chat/banta-chat.component.mjs +185 -0
- package/esm2020/lib/chat/chat-message/chat-message.component.mjs +62 -0
- package/esm2020/lib/chat/chat-view/chat-view.component.mjs +170 -0
- package/esm2020/lib/chat/chat.module.mjs +51 -0
- package/{esm2015/lib/chat/index.js → esm2020/lib/chat/index.mjs} +0 -0
- package/esm2020/lib/chat/live-chat-message.component.mjs +80 -0
- package/{esm2015/lib/chat-backend-base.js → esm2020/lib/chat-backend-base.mjs} +0 -0
- package/esm2020/lib/chat-backend.mjs +83 -0
- package/{esm2015/lib/chat-source-base.js → esm2020/lib/chat-source-base.mjs} +0 -0
- package/esm2020/lib/chat-source.mjs +169 -0
- package/esm2020/lib/comments/attachment-button/attachment-button.component.mjs +69 -0
- package/esm2020/lib/comments/attachment-scraper.directive.mjs +107 -0
- package/esm2020/lib/comments/banta-comments/banta-comments.component.mjs +666 -0
- package/esm2020/lib/comments/comment/comment.component.mjs +217 -0
- package/esm2020/lib/comments/comment-field/comment-field.component.mjs +377 -0
- package/esm2020/lib/comments/comment-sort/comment-sort.component.mjs +37 -0
- package/esm2020/lib/comments/comment-view/comment-view.component.mjs +379 -0
- package/esm2020/lib/comments/comments.module.mjs +111 -0
- package/{esm2015/lib/comments/index.js → esm2020/lib/comments/index.mjs} +0 -0
- package/esm2020/lib/comments/live-comment.component.mjs +80 -0
- package/esm2020/lib/comments/reply-send-options.directive.mjs +13 -0
- package/esm2020/lib/common/attachment/attachment.component.mjs +113 -0
- package/esm2020/lib/common/attachments/attachments.component.mjs +72 -0
- package/esm2020/lib/common/common.module.mjs +59 -0
- package/{esm2015/lib/common/index.js → esm2020/lib/common/index.mjs} +0 -0
- package/{esm2015/lib/common/lazy-connection.js → esm2020/lib/common/lazy-connection.mjs} +0 -0
- package/esm2020/lib/common/lightbox/lightbox.component.mjs +31 -0
- package/esm2020/lib/common/markdown-to-html.pipe.mjs +76 -0
- package/esm2020/lib/common/mention-linker.pipe.mjs +35 -0
- package/esm2020/lib/common/timestamp.component.mjs +113 -0
- package/esm2020/lib/common/trust-resource-url.pipe.mjs +22 -0
- package/esm2020/lib/emoji/emoji-selector-button.component.mjs +113 -0
- package/esm2020/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.mjs +88 -0
- package/esm2020/lib/emoji/emoji.module.mjs +55 -0
- package/{esm2015/lib/emoji/emojis.js → esm2020/lib/emoji/emojis.mjs} +0 -0
- package/{esm2015/lib/emoji/index.js → esm2020/lib/emoji/index.mjs} +0 -0
- package/esm2020/lib/giphy-attachments.mjs +16 -0
- package/{esm2015/lib/index.js → esm2020/lib/index.mjs} +0 -0
- package/esm2020/lib/live-message.component.mjs +96 -0
- package/{esm2015/lib/message-menu-item.js → esm2020/lib/message-menu-item.mjs} +0 -0
- package/{esm2015/lib/sdk-options.js → esm2020/lib/sdk-options.mjs} +0 -0
- package/esm2020/lib/tweet-attachments.mjs +13 -0
- package/esm2020/lib/url-attachments.mjs +42 -0
- package/esm2020/lib/youtube-attachments.mjs +22 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/fesm2015/{banta-sdk.js → banta-sdk.mjs} +2323 -2008
- package/fesm2015/banta-sdk.mjs.map +1 -0
- package/fesm2020/banta-sdk.mjs +10490 -0
- package/fesm2020/banta-sdk.mjs.map +1 -0
- package/{banta-sdk.d.ts → index.d.ts} +1 -0
- package/lib/banta/banta.component.d.ts +3 -0
- package/lib/banta-logo.component.d.ts +3 -0
- package/lib/banta-sdk.module.d.ts +24 -0
- package/lib/chat/banta-chat/banta-chat.component.d.ts +3 -0
- package/lib/chat/chat-message/chat-message.component.d.ts +3 -0
- package/lib/chat/chat-view/chat-view.component.d.ts +3 -0
- package/lib/chat/chat.module.d.ts +13 -0
- package/lib/chat/live-chat-message.component.d.ts +3 -0
- package/lib/chat-backend.d.ts +3 -0
- package/lib/chat-source.d.ts +3 -3
- package/lib/comments/attachment-button/attachment-button.component.d.ts +3 -0
- package/lib/comments/attachment-scraper.directive.d.ts +3 -0
- package/lib/comments/banta-comments/banta-comments.component.d.ts +3 -0
- package/lib/comments/comment/comment.component.d.ts +3 -0
- package/lib/comments/comment-field/comment-field.component.d.ts +3 -0
- package/lib/comments/comment-sort/comment-sort.component.d.ts +3 -0
- package/lib/comments/comment-view/comment-view.component.d.ts +3 -0
- package/lib/comments/comments.module.d.ts +28 -0
- package/lib/comments/live-comment.component.d.ts +3 -0
- package/lib/comments/reply-send-options.directive.d.ts +3 -0
- package/lib/common/attachment/attachment.component.d.ts +3 -0
- package/lib/common/attachments/attachments.component.d.ts +3 -0
- package/lib/common/common.module.d.ts +15 -0
- package/lib/common/lightbox/lightbox.component.d.ts +3 -0
- package/lib/common/markdown-to-html.pipe.d.ts +3 -0
- package/lib/common/mention-linker.pipe.d.ts +3 -0
- package/lib/common/timestamp.component.d.ts +3 -0
- package/lib/common/trust-resource-url.pipe.d.ts +3 -0
- package/lib/emoji/emoji-selector-button.component.d.ts +3 -0
- package/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.d.ts +3 -0
- package/lib/emoji/emoji.module.d.ts +14 -0
- package/lib/live-message.component.d.ts +3 -0
- package/lib/url-attachments.d.ts +3 -0
- package/package.json +22 -10
- package/banta-sdk.metadata.json +0 -1
- package/bundles/banta-sdk.umd.js +0 -11895
- package/bundles/banta-sdk.umd.js.map +0 -1
- package/bundles/banta-sdk.umd.min.js +0 -2
- package/bundles/banta-sdk.umd.min.js.map +0 -1
- package/esm2015/lib/banta/banta.component.js +0 -201
- package/esm2015/lib/banta-logo.component.js +0 -20
- package/esm2015/lib/banta-sdk.module.js +0 -98
- package/esm2015/lib/chat/banta-chat/banta-chat.component.js +0 -175
- package/esm2015/lib/chat/chat-message/chat-message.component.js +0 -56
- package/esm2015/lib/chat/chat-view/chat-view.component.js +0 -167
- package/esm2015/lib/chat/chat.module.js +0 -32
- package/esm2015/lib/chat/live-chat-message.component.js +0 -71
- package/esm2015/lib/chat-backend.js +0 -92
- package/esm2015/lib/chat-source.js +0 -205
- package/esm2015/lib/comments/attachment-button/attachment-button.component.js +0 -70
- package/esm2015/lib/comments/attachment-scraper.directive.js +0 -109
- package/esm2015/lib/comments/banta-comments/banta-comments.component.js +0 -678
- package/esm2015/lib/comments/comment/comment.component.js +0 -186
- package/esm2015/lib/comments/comment-field/comment-field.component.js +0 -350
- package/esm2015/lib/comments/comment-sort/comment-sort.component.js +0 -34
- package/esm2015/lib/comments/comment-view/comment-view.component.js +0 -364
- package/esm2015/lib/comments/comments.module.js +0 -62
- package/esm2015/lib/comments/live-comment.component.js +0 -71
- package/esm2015/lib/comments/reply-send-options.directive.js +0 -9
- package/esm2015/lib/common/attachment/attachment.component.js +0 -105
- package/esm2015/lib/common/attachments/attachments.component.js +0 -66
- package/esm2015/lib/common/common.module.js +0 -36
- package/esm2015/lib/common/lightbox/lightbox.component.js +0 -30
- package/esm2015/lib/common/markdown-to-html.pipe.js +0 -74
- package/esm2015/lib/common/mention-linker.pipe.js +0 -31
- package/esm2015/lib/common/timestamp.component.js +0 -106
- package/esm2015/lib/common/trust-resource-url.pipe.js +0 -21
- package/esm2015/lib/emoji/emoji-selector-button.component.js +0 -108
- package/esm2015/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.js +0 -86
- package/esm2015/lib/emoji/emoji.module.js +0 -34
- package/esm2015/lib/giphy-attachments.js +0 -20
- package/esm2015/lib/live-message.component.js +0 -74
- package/esm2015/lib/tweet-attachments.js +0 -16
- package/esm2015/lib/url-attachments.js +0 -46
- package/esm2015/lib/youtube-attachments.js +0 -25
- package/fesm2015/banta-sdk.js.map +0 -1
|
@@ -4,6 +4,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
4
4
|
import { BantaChatComponent } from '../chat';
|
|
5
5
|
import { ChatBackendBase } from "../chat-backend-base";
|
|
6
6
|
import { ChatSourceBase } from "../chat-source-base";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Unified chat and comments component
|
|
9
10
|
*/
|
|
@@ -52,4 +53,6 @@ export declare class BantaComponent {
|
|
|
52
53
|
currentUser: User;
|
|
53
54
|
newPointSubMessage: NewMessageForm;
|
|
54
55
|
genericAvatarUrl: string;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BantaComponent, "banta", never, { "topicID": "topicID"; "chatLabel": "chatLabel"; "commentsLabel": "commentsLabel"; }, { "signInSelected": "signInSelected"; }, never, never, false>;
|
|
55
58
|
}
|
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { SdkOptions } from './sdk-options';
|
|
3
3
|
import { ChatBackendBase } from './chat-backend-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "./banta/banta.component";
|
|
6
|
+
import * as i2 from "./banta-logo.component";
|
|
7
|
+
import * as i3 from "./live-message.component";
|
|
8
|
+
import * as i4 from "@angular/common";
|
|
9
|
+
import * as i5 from "@angular/forms";
|
|
10
|
+
import * as i6 from "./common/common.module";
|
|
11
|
+
import * as i7 from "./comments/comments.module";
|
|
12
|
+
import * as i8 from "./chat/chat.module";
|
|
13
|
+
import * as i9 from "./emoji/emoji.module";
|
|
14
|
+
import * as i10 from "@angular/material/icon";
|
|
15
|
+
import * as i11 from "@angular/material/button";
|
|
16
|
+
import * as i12 from "@angular/material/tooltip";
|
|
17
|
+
import * as i13 from "@angular/material/menu";
|
|
18
|
+
import * as i14 from "@angular/material/dialog";
|
|
19
|
+
import * as i15 from "@angular/material/form-field";
|
|
20
|
+
import * as i16 from "@angular/material/input";
|
|
21
|
+
import * as i17 from "@angular/material/progress-spinner";
|
|
22
|
+
import * as i18 from "@angular/material/snack-bar";
|
|
23
|
+
import * as i19 from "@angular/cdk/overlay";
|
|
24
|
+
import * as i20 from "@angular/cdk/portal";
|
|
4
25
|
export declare class BantaSdkModule {
|
|
5
26
|
constructor(chatBackend: ChatBackendBase);
|
|
6
27
|
static configure(options?: SdkOptions): ModuleWithProviders<BantaSdkModule>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaSdkModule, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BantaSdkModule, [typeof i1.BantaComponent, typeof i2.BantaLogoComponent, typeof i3.LiveMessageComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.BantaCommonModule, typeof i7.CommentsModule, typeof i8.ChatModule, typeof i9.EmojiModule, typeof i10.MatIconModule, typeof i11.MatButtonModule, typeof i12.MatTooltipModule, typeof i13.MatMenuModule, typeof i14.MatDialogModule, typeof i15.MatFormFieldModule, typeof i16.MatInputModule, typeof i17.MatProgressSpinnerModule, typeof i18.MatSnackBarModule, typeof i19.OverlayModule, typeof i20.PortalModule], [typeof i1.BantaComponent, typeof i2.BantaLogoComponent, typeof i3.LiveMessageComponent, typeof i6.BantaCommonModule, typeof i8.ChatModule, typeof i7.CommentsModule, typeof i9.EmojiModule]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BantaSdkModule>;
|
|
7
31
|
}
|
|
@@ -4,6 +4,7 @@ import { User, ChatMessage, NewMessageForm } from '@banta/common';
|
|
|
4
4
|
import { ChatViewComponent } from '../chat-view/chat-view.component';
|
|
5
5
|
import { ChatBackendBase } from "../../chat-backend-base";
|
|
6
6
|
import { ChatSourceBase } from "../../chat-source-base";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* Chat component
|
|
9
10
|
*/
|
|
@@ -63,4 +64,6 @@ export declare class BantaChatComponent {
|
|
|
63
64
|
get canChat(): boolean;
|
|
64
65
|
newMessage: NewMessageForm;
|
|
65
66
|
sendMessage(): Promise<void>;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaChatComponent, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BantaChatComponent, "banta-chat", never, { "shouldInterceptMessageSend": "shouldInterceptMessageSend"; "source": "source"; "topicID": "topicID"; "signInLabel": "signInLabel"; "sendLabel": "sendLabel"; "permissionDeniedLabel": "permissionDeniedLabel"; "messageFieldPlaceholder": "messageFieldPlaceholder"; "emptyLabel": "emptyLabel"; }, { "selected": "selected"; "reported": "reported"; "upvoted": "upvoted"; "userSelected": "userSelected"; "permissionDeniedError": "permissionDeniedError"; "signInSelected": "signInSelected"; "received": "received"; }, never, never, false>;
|
|
66
69
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { User, ChatMessage } from '@banta/common';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ChatMessageComponent {
|
|
4
5
|
private _selected;
|
|
5
6
|
private _reported;
|
|
@@ -15,4 +16,6 @@ export declare class ChatMessageComponent {
|
|
|
15
16
|
report(): void;
|
|
16
17
|
select(): void;
|
|
17
18
|
selectUser(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatMessageComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatMessageComponent, "banta-chat-message", never, { "message": "message"; }, { "userSelected": "userSelected"; "selected": "selected"; "reported": "reported"; "upvoted": "upvoted"; }, never, never, false>;
|
|
18
21
|
}
|
|
@@ -2,6 +2,7 @@ import { ElementRef } from "@angular/core";
|
|
|
2
2
|
import { User, ChatMessage } from '@banta/common';
|
|
3
3
|
import { ChatBackendBase } from "../../chat-backend-base";
|
|
4
4
|
import { ChatSourceBase } from "../../chat-source-base";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ChatViewComponent {
|
|
6
7
|
private backend;
|
|
7
8
|
private elementRef;
|
|
@@ -46,4 +47,6 @@ export declare class ChatViewComponent {
|
|
|
46
47
|
selectMessage(message: ChatMessage): void;
|
|
47
48
|
selectMessageUser(message: ChatMessage): void;
|
|
48
49
|
avatarForUser(user: User): string;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatViewComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChatViewComponent, "banta-chat-view", never, { "source": "source"; "maxMessages": "maxMessages"; "emptyLabel": "emptyLabel"; }, { "selected": "selected"; "userSelected": "userSelected"; "reported": "reported"; "upvoted": "upvoted"; "received": "received"; }, never, ["[data-before]", ":not([data-before])"], false>;
|
|
49
52
|
}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./chat-message/chat-message.component";
|
|
3
|
+
import * as i2 from "./live-chat-message.component";
|
|
4
|
+
import * as i3 from "./chat-view/chat-view.component";
|
|
5
|
+
import * as i4 from "./banta-chat/banta-chat.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@angular/material/icon";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "../emoji/emoji.module";
|
|
1
11
|
export declare class ChatModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatModule, [typeof i1.ChatMessageComponent, typeof i2.LiveChatMessageComponent, typeof i3.ChatViewComponent, typeof i4.BantaChatComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.MatIconModule, typeof i8.MatButtonModule, typeof i9.EmojiModule], [typeof i1.ChatMessageComponent, typeof i2.LiveChatMessageComponent, typeof i3.ChatViewComponent, typeof i4.BantaChatComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ChatModule>;
|
|
2
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChatMessage } from '@banta/common';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ChatBackendBase } from '../chat-backend-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LiveChatMessageComponent {
|
|
5
6
|
private backend;
|
|
6
7
|
constructor(backend: ChatBackendBase);
|
|
@@ -17,4 +18,6 @@ export declare class LiveChatMessageComponent {
|
|
|
17
18
|
report(): void;
|
|
18
19
|
upvote(): void;
|
|
19
20
|
select(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LiveChatMessageComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LiveChatMessageComponent, "banta-live-chat-message", never, { "message": "message"; }, { "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; }, never, never, false>;
|
|
20
23
|
}
|
package/lib/chat-backend.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ChatBackendBase, ChatSourceOptions } from "./chat-backend-base";
|
|
|
4
4
|
import { ChatSource } from "./chat-source";
|
|
5
5
|
import { ChatSourceBase } from "./chat-source-base";
|
|
6
6
|
import { SdkOptions } from "./sdk-options";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ChatBackend extends ChatBackendBase {
|
|
8
9
|
private options;
|
|
9
10
|
constructor(options: SdkOptions);
|
|
@@ -19,4 +20,6 @@ export declare class ChatBackend extends ChatBackendBase {
|
|
|
19
20
|
notificationsChanged: Observable<Notification[]>;
|
|
20
21
|
newNotification: Observable<Notification>;
|
|
21
22
|
getCardForUrl(url: string): Promise<UrlCard>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatBackend, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatBackend>;
|
|
22
25
|
}
|
package/lib/chat-source.d.ts
CHANGED
|
@@ -14,10 +14,10 @@ export declare class ChatSource extends SocketRPC implements ChatSourceBase {
|
|
|
14
14
|
ready: Promise<void>;
|
|
15
15
|
permissions: ChatPermissions;
|
|
16
16
|
private _state;
|
|
17
|
-
get state(): "
|
|
18
|
-
set state(value: "
|
|
17
|
+
get state(): "connected" | "connecting" | "lost" | "restored";
|
|
18
|
+
set state(value: "connected" | "connecting" | "lost" | "restored");
|
|
19
19
|
private _connectionStateChanged;
|
|
20
|
-
get connectionStateChanged(): Observable<"
|
|
20
|
+
get connectionStateChanged(): Observable<"connected" | "connecting" | "lost" | "restored">;
|
|
21
21
|
bind(socket: DurableSocket): Promise<this>;
|
|
22
22
|
private mapOrUpdateMessages;
|
|
23
23
|
private mapOrUpdateMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { CDNProvider, ChatMessageAttachment } from '@banta/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AttachmentButtonComponent {
|
|
4
5
|
private cdnProvider;
|
|
5
6
|
constructor(cdnProvider: CDNProvider);
|
|
@@ -10,4 +11,6 @@ export declare class AttachmentButtonComponent {
|
|
|
10
11
|
get attachmentError(): import("rxjs").Observable<ChatMessageAttachment>;
|
|
11
12
|
show(): void;
|
|
12
13
|
fileChange(event: Event): Promise<void>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentButtonComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentButtonComponent, "banta-attachment-button", never, {}, { "addedAttachment": "addedAttachment"; "attachmentError": "attachmentError"; }, never, never, false>;
|
|
13
16
|
}
|
|
@@ -2,6 +2,7 @@ import { ElementRef } from "@angular/core";
|
|
|
2
2
|
import { ChatMessageAttachment } from "@banta/common";
|
|
3
3
|
import { Subject } from "rxjs";
|
|
4
4
|
import { ChatBackendBase } from "../chat-backend-base";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AttachmentScraperDirective {
|
|
6
7
|
private elementRef;
|
|
7
8
|
private chatBackend;
|
|
@@ -15,4 +16,6 @@ export declare class AttachmentScraperDirective {
|
|
|
15
16
|
private scrapeDebounce;
|
|
16
17
|
private fragments;
|
|
17
18
|
private scrape;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentScraperDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AttachmentScraperDirective, "[attachmentScraper]", never, { "attachments": "attachments"; }, { "attachmentsChange": "attachmentsChange"; }, never, never, false>;
|
|
18
21
|
}
|
|
@@ -9,6 +9,7 @@ import { MatSnackBar } from '@angular/material/snack-bar';
|
|
|
9
9
|
import { MessageMenuItem } from '../../message-menu-item';
|
|
10
10
|
import { CommentViewComponent } from '../comment-view/comment-view.component';
|
|
11
11
|
import { CommentComponent } from '../comment/comment.component';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
12
13
|
/**
|
|
13
14
|
* Comments component
|
|
14
15
|
*/
|
|
@@ -164,4 +165,6 @@ export declare class BantaCommentsComponent {
|
|
|
164
165
|
editMessage(source: ChatSourceBase, message: ChatMessage, newText: string): Promise<void>;
|
|
165
166
|
startEditing(message: ChatMessage): Promise<void>;
|
|
166
167
|
saveEdit(message: ChatMessage, text: string): Promise<void>;
|
|
168
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaCommentsComponent, never>;
|
|
169
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BantaCommentsComponent, "banta-comments", never, { "customMenuItems": "customMenuItems"; "maxCommentLength": "maxCommentLength"; "loadingMessages": "loadingMessages"; "useInlineReplies": "useInlineReplies"; "signInLabel": "signInLabel"; "sendLabel": "sendLabel"; "replyLabel": "replyLabel"; "sendingLabel": "sendingLabel"; "permissionDeniedLabel": "permissionDeniedLabel"; "postCommentLabel": "postCommentLabel"; "postReplyLabel": "postReplyLabel"; "allowAttachments": "allowAttachments"; "fixedHeight": "fixedHeight"; "maxMessages": "maxMessages"; "maxVisibleMessages": "maxVisibleMessages"; "genericAvatarUrl": "genericAvatarUrl"; "shouldInterceptMessageSend": "shouldInterceptMessageSend"; "participants": "participants"; "source": "source"; "hashtags": "hashtags"; "topicID": "topicID"; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "permissionDeniedError": "permissionDeniedError"; "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; "userSelected": "userSelected"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; }, ["sendReplyOptionsTemplate"], never, false>;
|
|
167
170
|
}
|
|
@@ -2,6 +2,7 @@ import { ElementRef } from "@angular/core";
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { ChatMessage, ChatPermissions, User } from '@banta/common';
|
|
4
4
|
import { MessageMenuItem } from "../../message-menu-item";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CommentComponent {
|
|
6
7
|
private elementRef;
|
|
7
8
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
@@ -64,4 +65,6 @@ export declare class CommentComponent {
|
|
|
64
65
|
selectAvatar(user: User): void;
|
|
65
66
|
avatarForUser(user: User): string;
|
|
66
67
|
get replyCount(): number;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentComponent, "banta-comment", never, { "maxLength": "maxLength"; "message": "message"; "customMenuItems": "customMenuItems"; "showReplyAction": "showReplyAction"; "permissions": "permissions"; "mine": "mine"; "editing": "editing"; "genericAvatarUrl": "genericAvatarUrl"; }, { "loaded": "loaded"; "userSelected": "userSelected"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "reported": "reported"; "liked": "liked"; "unliked": "unliked"; "selected": "selected"; "edited": "edited"; "deleted": "deleted"; "editStarted": "editStarted"; "editEnded": "editEnded"; "shared": "shared"; }, never, never, false>;
|
|
67
70
|
}
|
|
@@ -3,6 +3,7 @@ import { ChatMessage, ChatMessageAttachment, User } from "@banta/common";
|
|
|
3
3
|
import { Observable, Subject } from "rxjs";
|
|
4
4
|
import { ChatBackendBase } from "../../chat-backend-base";
|
|
5
5
|
import { ChatSourceBase } from "../../chat-source-base";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export interface AutoCompleteOption {
|
|
7
8
|
label: string;
|
|
8
9
|
action?: () => void;
|
|
@@ -78,4 +79,6 @@ export declare class CommentFieldComponent {
|
|
|
78
79
|
attachmentError(attachment: ChatMessageAttachment): void;
|
|
79
80
|
removeAttachment(attachment: ChatMessageAttachment): void;
|
|
80
81
|
alertError(): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentFieldComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentFieldComponent, "banta-comment-field", never, { "source": "source"; "user": "user"; "canComment": "canComment"; "allowAttachments": "allowAttachments"; "transientMessage": "transientMessage"; "sendLabel": "sendLabel"; "sendingLabel": "sendingLabel"; "label": "label"; "permissionDeniedLabel": "permissionDeniedLabel"; "signInLabel": "signInLabel"; "maxLength": "maxLength"; "placeholder": "placeholder"; "shouldInterceptMessageSend": "shouldInterceptMessageSend"; "hashtags": "hashtags"; "participants": "participants"; "genericAvatarUrl": "genericAvatarUrl"; "submit": "submit"; }, { "signInSelected": "signInSelected"; "editAvatarSelected": "editAvatarSelected"; "textChanged": "textChanged"; "permissionDeniedError": "permissionDeniedError"; }, never, ["*"], false>;
|
|
81
84
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CommentsOrder } from "@banta/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class CommentSortComponent {
|
|
3
4
|
commentsOrder: typeof CommentsOrder;
|
|
4
5
|
private _sortChange;
|
|
@@ -6,4 +7,6 @@ export declare class CommentSortComponent {
|
|
|
6
7
|
get sort(): CommentsOrder;
|
|
7
8
|
set sort(value: CommentsOrder);
|
|
8
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>;
|
|
9
12
|
}
|
|
@@ -5,6 +5,7 @@ import { ChatBackendBase } from "../../chat-backend-base";
|
|
|
5
5
|
import { ChatSourceBase } from "../../chat-source-base";
|
|
6
6
|
import { MessageMenuItem } from "../../message-menu-item";
|
|
7
7
|
import { CommentComponent } from "../comment/comment.component";
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export interface EditEvent {
|
|
9
10
|
message: ChatMessage;
|
|
10
11
|
newMessage: string;
|
|
@@ -102,4 +103,6 @@ export declare class CommentViewComponent {
|
|
|
102
103
|
private messageSent;
|
|
103
104
|
scrollToLatest(): void;
|
|
104
105
|
mentionsMe(message: ChatMessage): boolean;
|
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentViewComponent, never>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentViewComponent, "banta-comment-view", never, { "showEmptyState": "showEmptyState"; "allowReplies": "allowReplies"; "customMenuItems": "customMenuItems"; "fixedHeight": "fixedHeight"; "selectedMessage": "selectedMessage"; "source": "source"; "genericAvatarUrl": "genericAvatarUrl"; "maxMessages": "maxMessages"; "maxVisibleMessages": "maxVisibleMessages"; "newestLast": "newestLast"; }, { "selected": "selected"; "messageEdited": "messageEdited"; "userSelected": "userSelected"; "reported": "reported"; "liked": "liked"; "unliked": "unliked"; "usernameSelected": "usernameSelected"; "avatarSelected": "avatarSelected"; "shared": "shared"; "deleted": "deleted"; "sortOrderChanged": "sortOrderChanged"; }, never, ["[data-before]", ".inline-replies", ":not([data-before]):not(.inline-replies)"], false>;
|
|
105
108
|
}
|
|
@@ -1,2 +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";
|
|
1
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>;
|
|
2
30
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChatMessage } from '@banta/common';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ChatBackendBase } from '../chat-backend-base';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LiveCommentComponent {
|
|
5
6
|
private backend;
|
|
6
7
|
constructor(backend: ChatBackendBase);
|
|
@@ -17,4 +18,6 @@ export declare class LiveCommentComponent {
|
|
|
17
18
|
report(): void;
|
|
18
19
|
upvote(): void;
|
|
19
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>;
|
|
20
23
|
}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class BantaReplySendOptionsDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaReplySendOptionsDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BantaReplySendOptionsDirective, "[bantaReplySendOptions]", never, {}, {}, never, never, false>;
|
|
2
5
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef } from "@angular/core";
|
|
2
2
|
import { ChatMessageAttachment } from "@banta/common";
|
|
3
3
|
import { Subject } from "rxjs";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BantaAttachmentComponent {
|
|
5
6
|
private elementRef;
|
|
6
7
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
@@ -27,4 +28,6 @@ export declare class BantaAttachmentComponent {
|
|
|
27
28
|
get isImageAttachment(): boolean;
|
|
28
29
|
get hasFrame(): string | boolean;
|
|
29
30
|
get frameUrl(): string;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaAttachmentComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BantaAttachmentComponent, "banta-attachment", never, { "attachment": "attachment"; "loading": "loading"; "editing": "editing"; "loadingMessage": "loadingMessage"; "error": "error"; "errorMessage": "errorMessage"; }, { "removed": "removed"; "activated": "activated"; "loaded": "loaded"; }, never, never, false>;
|
|
30
33
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChatMessageAttachment } from "@banta/common";
|
|
2
2
|
import { Subject } from "rxjs";
|
|
3
3
|
import { LightboxComponent } from "../lightbox/lightbox.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BantaAttachmentsComponent {
|
|
5
6
|
attachments: ChatMessageAttachment[];
|
|
6
7
|
editing: boolean;
|
|
@@ -19,4 +20,6 @@ export declare class BantaAttachmentsComponent {
|
|
|
19
20
|
get inlineAttachments(): ChatMessageAttachment[];
|
|
20
21
|
get blockAttachments(): ChatMessageAttachment[];
|
|
21
22
|
attachmentId(index: number, attachment: ChatMessageAttachment): string;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaAttachmentsComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BantaAttachmentsComponent, "banta-attachments", never, { "attachments": "attachments"; "editing": "editing"; }, { "remove": "remove"; "loaded": "loaded"; }, never, never, false>;
|
|
22
25
|
}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./timestamp.component";
|
|
3
|
+
import * as i2 from "./lightbox/lightbox.component";
|
|
4
|
+
import * as i3 from "./markdown-to-html.pipe";
|
|
5
|
+
import * as i4 from "./mention-linker.pipe";
|
|
6
|
+
import * as i5 from "./trust-resource-url.pipe";
|
|
7
|
+
import * as i6 from "./attachment/attachment.component";
|
|
8
|
+
import * as i7 from "./attachments/attachments.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/material/icon";
|
|
11
|
+
import * as i10 from "@angular/material/progress-spinner";
|
|
12
|
+
import * as i11 from "@angular/material/button";
|
|
1
13
|
export declare class BantaCommonModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaCommonModule, never>;
|
|
15
|
+
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]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BantaCommonModule>;
|
|
2
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class LightboxComponent {
|
|
3
4
|
containerElement: ElementRef<HTMLDivElement>;
|
|
4
5
|
ngAfterViewInit(): void;
|
|
@@ -8,4 +9,6 @@ export declare class LightboxComponent {
|
|
|
8
9
|
isOpen: boolean;
|
|
9
10
|
close(): void;
|
|
10
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>;
|
|
11
14
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as marked from 'marked';
|
|
3
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BantaMarkdownToHtmlPipe implements PipeTransform {
|
|
5
6
|
private sanitizer;
|
|
6
7
|
constructor(sanitizer: DomSanitizer);
|
|
7
8
|
renderer: marked.Renderer;
|
|
8
9
|
transform(value: string): import("@angular/platform-browser").SafeHtml;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaMarkdownToHtmlPipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BantaMarkdownToHtmlPipe, "markdownToHtml", false>;
|
|
9
12
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { ChatMessageMention } from '@banta/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class BantaMentionLinkerPipe implements PipeTransform {
|
|
4
5
|
transform(value: string, links?: ChatMessageMention[]): string;
|
|
5
6
|
formatLink(link: ChatMessageMention): string;
|
|
@@ -7,4 +8,6 @@ export declare class BantaMentionLinkerPipe implements PipeTransform {
|
|
|
7
8
|
* https://stackoverflow.com/questions/3446170/escape-string-for-use-in-javascript-regex
|
|
8
9
|
*/
|
|
9
10
|
escapeRegExp(string: any): any;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaMentionLinkerPipe, never>;
|
|
12
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BantaMentionLinkerPipe, "mentionLinker", false>;
|
|
10
13
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
export declare class TimestampComponent {
|
|
2
3
|
private _value;
|
|
3
4
|
relative: string;
|
|
@@ -8,4 +9,6 @@ export declare class TimestampComponent {
|
|
|
8
9
|
showAbsolute: boolean;
|
|
9
10
|
update(): void;
|
|
10
11
|
set value(v: number);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimestampComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimestampComponent, "banta-timestamp", never, { "value": "value"; }, {}, never, never, false>;
|
|
11
14
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class BantaTrustResourceUrlPipe implements PipeTransform {
|
|
4
5
|
private sanitizer;
|
|
5
6
|
constructor(sanitizer: DomSanitizer);
|
|
6
7
|
transform(value: string): import("@angular/platform-browser").SafeResourceUrl;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BantaTrustResourceUrlPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<BantaTrustResourceUrlPipe, "trustResourceUrl", false>;
|
|
7
10
|
}
|
|
@@ -2,6 +2,7 @@ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { TemplatePortal } from '@angular/cdk/portal';
|
|
3
3
|
import { ElementRef } from '@angular/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class EmojiSelectorButtonComponent {
|
|
6
7
|
private elementRef;
|
|
7
8
|
private overlay;
|
|
@@ -23,4 +24,6 @@ export declare class EmojiSelectorButtonComponent {
|
|
|
23
24
|
originX: 'start' | 'center' | 'end';
|
|
24
25
|
originY: 'top' | 'center' | 'bottom';
|
|
25
26
|
show(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmojiSelectorButtonComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmojiSelectorButtonComponent, "emoji-selector-button", never, { "overlayX": "overlayX"; "overlayY": "overlayY"; "originX": "originX"; "originY": "originY"; }, { "selected": "selected"; }, never, never, false>;
|
|
26
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class EmojiSelectorPanelComponent implements OnInit {
|
|
4
5
|
private sanitizer;
|
|
5
6
|
constructor(sanitizer: DomSanitizer);
|
|
@@ -17,4 +18,6 @@ export declare class EmojiSelectorPanelComponent implements OnInit {
|
|
|
17
18
|
hideSearch(): void;
|
|
18
19
|
showSearch(): void;
|
|
19
20
|
ngOnInit(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmojiSelectorPanelComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmojiSelectorPanelComponent, "emoji-selector-panel", never, {}, { "selected": "selected"; }, never, never, false>;
|
|
20
23
|
}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./emoji-selector-panel/emoji-selector-panel.component";
|
|
3
|
+
import * as i2 from "./emoji-selector-button.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
import * as i6 from "@angular/material/button";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/input";
|
|
10
|
+
import * as i9 from "@angular/cdk/overlay";
|
|
11
|
+
import * as i10 from "@angular/cdk/portal";
|
|
1
12
|
export declare class EmojiModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmojiModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EmojiModule, [typeof i1.EmojiSelectorPanelComponent, typeof i2.EmojiSelectorButtonComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.OverlayModule, typeof i10.PortalModule], [typeof i1.EmojiSelectorPanelComponent, typeof i2.EmojiSelectorButtonComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EmojiModule>;
|
|
2
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChatMessage } from '@banta/common';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LiveMessageComponent {
|
|
4
5
|
constructor();
|
|
5
6
|
private _message;
|
|
@@ -16,4 +17,6 @@ export declare class LiveMessageComponent {
|
|
|
16
17
|
upvote(): void;
|
|
17
18
|
report(): void;
|
|
18
19
|
select(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LiveMessageComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LiveMessageComponent, "banta-live-message", never, { "message": "message"; }, { "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; }, never, never, false>;
|
|
19
22
|
}
|
package/lib/url-attachments.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChatMessage, ChatMessageAttachment } from "@banta/common";
|
|
2
2
|
import { AttachmentFragment, AttachmentResolver, AttachmentScraper } from "./attachment-scraper";
|
|
3
3
|
import { ChatBackendBase } from "./chat-backend-base";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class UrlAttachmentScraper implements AttachmentScraper {
|
|
5
6
|
findFragments(message: ChatMessage): AttachmentFragment[];
|
|
6
7
|
}
|
|
@@ -8,4 +9,6 @@ export declare class UrlAttachmentResolver implements AttachmentResolver {
|
|
|
8
9
|
private backend;
|
|
9
10
|
constructor(backend: ChatBackendBase);
|
|
10
11
|
resolveFragment(message: ChatMessage, fragment: AttachmentFragment): Promise<ChatMessageAttachment>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UrlAttachmentResolver, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UrlAttachmentResolver>;
|
|
11
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@banta/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,24 +17,36 @@
|
|
|
17
17
|
"@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
18
18
|
"@astronautlabs/datastore": "^3.1.2",
|
|
19
19
|
"@astronautlabs/datastore-firestore": "^3.1.2",
|
|
20
|
-
"@banta/common": "^2.
|
|
20
|
+
"@banta/common": "^2.2.11",
|
|
21
21
|
"@types/marked": "^4.0.3",
|
|
22
22
|
"@types/dompurify": "^2.3.3",
|
|
23
23
|
"dompurify": "^2.3.10",
|
|
24
24
|
"marked": "^4.0.18",
|
|
25
25
|
"rxjs": "^6.5.5 || ^7.0.0",
|
|
26
|
-
"twemoji": "^
|
|
26
|
+
"twemoji": "^14.0.2",
|
|
27
27
|
"yaml": "^1.10.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"tslib": "^2.0.0"
|
|
31
31
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"fesm2015": "fesm2015/banta-sdk.
|
|
37
|
-
"typings": "
|
|
38
|
-
"
|
|
32
|
+
"module": "fesm2015/banta-sdk.mjs",
|
|
33
|
+
"es2020": "fesm2020/banta-sdk.mjs",
|
|
34
|
+
"esm2020": "esm2020/banta-sdk.mjs",
|
|
35
|
+
"fesm2020": "fesm2020/banta-sdk.mjs",
|
|
36
|
+
"fesm2015": "fesm2015/banta-sdk.mjs",
|
|
37
|
+
"typings": "index.d.ts",
|
|
38
|
+
"exports": {
|
|
39
|
+
"./package.json": {
|
|
40
|
+
"default": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
".": {
|
|
43
|
+
"types": "./index.d.ts",
|
|
44
|
+
"esm2020": "./esm2020/banta-sdk.mjs",
|
|
45
|
+
"es2020": "./fesm2020/banta-sdk.mjs",
|
|
46
|
+
"es2015": "./fesm2015/banta-sdk.mjs",
|
|
47
|
+
"node": "./fesm2015/banta-sdk.mjs",
|
|
48
|
+
"default": "./fesm2020/banta-sdk.mjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
39
51
|
"sideEffects": false
|
|
40
52
|
}
|
package/banta-sdk.metadata.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"exports":[{"from":"./common"},{"from":"./emoji"},{"from":"./banta/banta.component"},{"from":"./banta-logo.component"},{"from":"./chat"},{"from":"./live-message.component"},{"from":"./comments"},{"from":"./chat-backend-base"},{"from":"./chat-source-base"},{"from":"./chat-backend"},{"from":"./chat-source"},{"from":"./sdk-options"},{"from":"./attachment-scraper"},{"from":"./url-attachments"},{"from":"./youtube-attachments"},{"from":"./giphy-attachments"},{"from":"./tweet-attachments"},{"from":"./message-menu-item"},{"from":"./banta-sdk.module"}],"metadata":{},"origins":{},"importAs":"@banta/sdk"}
|