@banta/sdk 6.0.2 → 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
package/lib/emoji/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, ChatMessageAttachment } from "@banta/common";
|
|
2
|
-
import { AttachmentFragment, AttachmentResolver } from "./attachment-scraper";
|
|
3
|
-
export declare class GiphyAttachmentResolver implements AttachmentResolver {
|
|
4
|
-
resolveFragment(message: ChatMessage, fragment: AttachmentFragment): Promise<ChatMessageAttachment>;
|
|
5
|
-
}
|
package/lib/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './common';
|
|
2
|
-
export * from './emoji';
|
|
3
|
-
export * from './banta/banta.component';
|
|
4
|
-
export * from './banta-logo.component';
|
|
5
|
-
export * from './chat';
|
|
6
|
-
export * from './live-message.component';
|
|
7
|
-
export * from './comments';
|
|
8
|
-
export * from './chat-backend-base';
|
|
9
|
-
export * from './chat-source-base';
|
|
10
|
-
export * from './chat-backend';
|
|
11
|
-
export * from './chat-source';
|
|
12
|
-
export * from './sdk-options';
|
|
13
|
-
export * from './attachment-scraper';
|
|
14
|
-
export * from './url-attachments';
|
|
15
|
-
export * from './youtube-attachments';
|
|
16
|
-
export * from './giphy-attachments';
|
|
17
|
-
export * from './tweet-attachments';
|
|
18
|
-
export * from './message-menu-item';
|
|
19
|
-
export * from './banta-sdk.module';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ChatMessage } from '@banta/common';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LiveMessageComponent {
|
|
5
|
-
constructor();
|
|
6
|
-
private _message;
|
|
7
|
-
private _upvoted;
|
|
8
|
-
private _reported;
|
|
9
|
-
private _selected;
|
|
10
|
-
viewType: string;
|
|
11
|
-
get upvoted(): Observable<void>;
|
|
12
|
-
get reported(): Observable<void>;
|
|
13
|
-
get selected(): Observable<void>;
|
|
14
|
-
get message(): ChatMessage;
|
|
15
|
-
set message(value: ChatMessage);
|
|
16
|
-
private getViewType;
|
|
17
|
-
upvote(): void;
|
|
18
|
-
report(): void;
|
|
19
|
-
select(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LiveMessageComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LiveMessageComponent, "banta-live-message", never, { "message": { "alias": "message"; "required": false; }; }, { "upvoted": "upvoted"; "reported": "reported"; "selected": "selected"; }, never, never, false, never>;
|
|
22
|
-
}
|
package/lib/sdk-options.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Type } from "@angular/core";
|
|
2
|
-
import { ChatBackendBase } from "./chat-backend-base";
|
|
3
|
-
export interface SdkOptions {
|
|
4
|
-
serviceUrl?: string;
|
|
5
|
-
emojiUrl?: string;
|
|
6
|
-
backendClass?: Type<ChatBackendBase>;
|
|
7
|
-
}
|
|
8
|
-
export declare const BANTA_SDK_OPTIONS: InjectionToken<SdkOptions>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, ChatPermissions, CommentsOrder, FilterMode, ServerInfo } from "@banta/common";
|
|
2
|
-
import { ChatSourceBase } from "./chat-source-base";
|
|
3
|
-
import { Subject } from "rxjs";
|
|
4
|
-
import { ChatBackend } from "./chat-backend";
|
|
5
|
-
import { ChatSourceOptions } from "./chat-backend-base";
|
|
6
|
-
/**
|
|
7
|
-
* A special ChatSource which uses the REST API to load a limited number of chat messages, and does not support
|
|
8
|
-
* sending/editing/deleting messages, liking/unliking, or loading more messages.
|
|
9
|
-
*
|
|
10
|
-
* This is used within Banta's SSR support.
|
|
11
|
-
*/
|
|
12
|
-
export declare class StaticChatSource implements ChatSourceBase {
|
|
13
|
-
private backend;
|
|
14
|
-
readonly identifier: string;
|
|
15
|
-
readonly parentIdentifier?: string;
|
|
16
|
-
constructor(backend: ChatBackend, identifier: string, parentIdentifier?: string, options?: ChatSourceOptions);
|
|
17
|
-
initialMessageCount: number;
|
|
18
|
-
sortOrder: CommentsOrder;
|
|
19
|
-
filterMode: FilterMode;
|
|
20
|
-
permissions: ChatPermissions;
|
|
21
|
-
ready: Promise<void>;
|
|
22
|
-
readonly: boolean;
|
|
23
|
-
canLoadMore: boolean;
|
|
24
|
-
messageReceived: Subject<ChatMessage>;
|
|
25
|
-
messageObserved: Subject<ChatMessage>;
|
|
26
|
-
messageUpdated: Subject<ChatMessage>;
|
|
27
|
-
messageSent: Subject<ChatMessage>;
|
|
28
|
-
messages: ChatMessage[];
|
|
29
|
-
getServerInfo(): Promise<ServerInfo>;
|
|
30
|
-
send(message: ChatMessage): Promise<ChatMessage>;
|
|
31
|
-
close(): void;
|
|
32
|
-
getCount(): Promise<number>;
|
|
33
|
-
loadSince(id: string): Promise<any>;
|
|
34
|
-
getExistingMessages(): Promise<ChatMessage[]>;
|
|
35
|
-
getPinnedMessages(): Promise<ChatMessage[]>;
|
|
36
|
-
loadAfter(message: ChatMessage, count: number): Promise<ChatMessage[]>;
|
|
37
|
-
get(id: string): Promise<ChatMessage>;
|
|
38
|
-
likeMessage(messageId: string): Promise<void>;
|
|
39
|
-
unlikeMessage(messageId: string): Promise<void>;
|
|
40
|
-
pinMessage(messageId: string, options?: {
|
|
41
|
-
until?: number;
|
|
42
|
-
}): Promise<void>;
|
|
43
|
-
unpinMessage(messageId: string): Promise<void>;
|
|
44
|
-
editMessage(messageId: string, text: string): Promise<void>;
|
|
45
|
-
deleteMessage(messageId: string): Promise<void>;
|
|
46
|
-
connectionStateChanged: Subject<"connected" | "connecting" | "lost" | "restored">;
|
|
47
|
-
state: 'connecting' | 'connected' | 'lost' | 'restored';
|
|
48
|
-
get errorState(): any;
|
|
49
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, ChatMessageAttachment } from "@banta/common";
|
|
2
|
-
import { AttachmentFragment, AttachmentResolver } from "./attachment-scraper";
|
|
3
|
-
export declare class TweetAttachmentResolver implements AttachmentResolver {
|
|
4
|
-
resolveFragment(message: ChatMessage, fragment: AttachmentFragment): Promise<ChatMessageAttachment>;
|
|
5
|
-
}
|
package/lib/url-attachments.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, ChatMessageAttachment } from "@banta/common";
|
|
2
|
-
import { AttachmentFragment, AttachmentResolver, AttachmentScraper } from "./attachment-scraper";
|
|
3
|
-
import { ChatBackendBase } from "./chat-backend-base";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UrlAttachmentScraper implements AttachmentScraper {
|
|
6
|
-
findFragments(message: ChatMessage): AttachmentFragment[];
|
|
7
|
-
}
|
|
8
|
-
export declare class UrlAttachmentResolver implements AttachmentResolver {
|
|
9
|
-
private backend;
|
|
10
|
-
constructor(backend: ChatBackendBase);
|
|
11
|
-
resolveFragment(message: ChatMessage, fragment: AttachmentFragment): Promise<ChatMessageAttachment>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UrlAttachmentResolver, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UrlAttachmentResolver>;
|
|
14
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ChatMessage, ChatMessageAttachment } from "@banta/common";
|
|
2
|
-
import { AttachmentFragment, AttachmentResolver } from "./attachment-scraper";
|
|
3
|
-
export declare class YouTubeAttachmentResolver implements AttachmentResolver {
|
|
4
|
-
resolveFragment(message: ChatMessage, fragment: AttachmentFragment): Promise<ChatMessageAttachment>;
|
|
5
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib';
|