@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,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides a way to hook in to a shared set of timers, instead of creating a timer per instance.
|
|
3
|
-
* This is very useful for cases where the update is not extremely time-sensitive, but happens at scale.
|
|
4
|
-
* The principal use case is the TimestampComponent. When several hundred (or several thousand) comments are
|
|
5
|
-
* being displayed, we do not want to trigger thousands of independent relative timestamp updates, because over
|
|
6
|
-
* time the updates will saturate the CPU since they don't perfectly align.
|
|
7
|
-
*/
|
|
8
|
-
export declare class TimerPool {
|
|
9
|
-
private subscriptions;
|
|
10
|
-
private newSubscriptionsNotice;
|
|
11
|
-
private newSubscriptions;
|
|
12
|
-
private removedSubscriptionsNotice;
|
|
13
|
-
private removedSubscriptions;
|
|
14
|
-
addTimer(interval: number, callback: () => void): () => void;
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { TimerPool } from "../../lib/common/timer-pool.service";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TimestampComponent {
|
|
4
|
-
private timerPool;
|
|
5
|
-
constructor(timerPool: TimerPool);
|
|
6
|
-
private _value;
|
|
7
|
-
relative: string;
|
|
8
|
-
tooltip: string;
|
|
9
|
-
private timerUnsubscribe;
|
|
10
|
-
private timerInterval;
|
|
11
|
-
private _destroyed;
|
|
12
|
-
ngOnDestroy(): void;
|
|
13
|
-
get value(): number;
|
|
14
|
-
showAbsolute: boolean;
|
|
15
|
-
update(): void;
|
|
16
|
-
set value(v: number);
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TimestampComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TimestampComponent, "banta-timestamp", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class BantaTrustResourceUrlPipe implements PipeTransform {
|
|
5
|
-
private sanitizer;
|
|
6
|
-
constructor(sanitizer: DomSanitizer);
|
|
7
|
-
transform(value: string): import("@angular/platform-browser").SafeResourceUrl;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BantaTrustResourceUrlPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<BantaTrustResourceUrlPipe, "trustResourceUrl", false>;
|
|
10
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
2
|
-
import { TemplatePortal } from '@angular/cdk/portal';
|
|
3
|
-
import { ElementRef } from '@angular/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class EmojiSelectorButtonComponent {
|
|
7
|
-
private elementRef;
|
|
8
|
-
private overlay;
|
|
9
|
-
constructor(elementRef: ElementRef<HTMLElement>, overlay: Overlay);
|
|
10
|
-
selectorPanelTemplate: TemplatePortal<any>;
|
|
11
|
-
private _selected;
|
|
12
|
-
showEmojiPanel: boolean;
|
|
13
|
-
get selected(): Observable<string>;
|
|
14
|
-
private overlayRef;
|
|
15
|
-
get isOpen(): OverlayRef;
|
|
16
|
-
/**
|
|
17
|
-
* Insert the given emoji.
|
|
18
|
-
* @param str
|
|
19
|
-
*/
|
|
20
|
-
insert(str: any): void;
|
|
21
|
-
close(): void;
|
|
22
|
-
disabled: boolean;
|
|
23
|
-
overlayX: 'start' | 'center' | 'end';
|
|
24
|
-
overlayY: 'top' | 'center' | 'bottom';
|
|
25
|
-
originX: 'start' | 'center' | 'end';
|
|
26
|
-
originY: 'top' | 'center' | 'bottom';
|
|
27
|
-
show(): void;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EmojiSelectorButtonComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EmojiSelectorButtonComponent, "emoji-selector-button", never, { "disabled": { "alias": "disabled"; "required": false; }; "overlayX": { "alias": "overlayX"; "required": false; }; "overlayY": { "alias": "overlayY"; "required": false; }; "originX": { "alias": "originX"; "required": false; }; "originY": { "alias": "originY"; "required": false; }; }, { "selected": "selected"; }, never, never, false, never>;
|
|
30
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EmojiSelectorPanelComponent implements OnInit {
|
|
4
|
-
private sanitizer;
|
|
5
|
-
private sdkOptions;
|
|
6
|
-
categories: any[];
|
|
7
|
-
activeCategory: string;
|
|
8
|
-
searchResults: any[];
|
|
9
|
-
searchVisible: boolean;
|
|
10
|
-
private selected;
|
|
11
|
-
private _searchQuery;
|
|
12
|
-
get searchQuery(): string;
|
|
13
|
-
set searchQuery(value: string);
|
|
14
|
-
humanize(str: string): string;
|
|
15
|
-
select(char: string): void;
|
|
16
|
-
pairs(object: any): any[][];
|
|
17
|
-
hideSearch(): void;
|
|
18
|
-
showSearch(): void;
|
|
19
|
-
private get emojiUrl();
|
|
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, never>;
|
|
23
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
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";
|
|
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>;
|
|
16
|
-
}
|