@banta/sdk 4.0.16 → 4.0.19
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/bundles/banta-sdk.umd.js +64 -17
- package/bundles/banta-sdk.umd.js.map +1 -1
- package/bundles/banta-sdk.umd.min.js +1 -1
- package/bundles/banta-sdk.umd.min.js.map +1 -1
- package/esm2015/lib/comments/attachment-button/attachment-button.component.js +21 -9
- package/esm2015/lib/comments/comment/comment.component.js +3 -3
- package/esm2015/lib/comments/comment-field/comment-field.component.js +25 -7
- package/fesm2015/banta-sdk.js +46 -16
- package/fesm2015/banta-sdk.js.map +1 -1
- package/lib/comments/attachment-button/attachment-button.component.d.ts +3 -2
- package/lib/comments/comment-field/comment-field.component.d.ts +5 -1
- package/package.json +2 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { CDNProvider, ChatMessageAttachment } from '@banta/common';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
3
|
export declare class AttachmentButtonComponent {
|
|
5
4
|
private cdnProvider;
|
|
6
5
|
constructor(cdnProvider: CDNProvider);
|
|
6
|
+
private _addedAttachment;
|
|
7
|
+
private _attachmentError;
|
|
7
8
|
fileInput: ElementRef;
|
|
8
|
-
_addedAttachment: Subject<ChatMessageAttachment>;
|
|
9
9
|
get addedAttachment(): import("rxjs").Observable<ChatMessageAttachment>;
|
|
10
|
+
get attachmentError(): import("rxjs").Observable<ChatMessageAttachment>;
|
|
10
11
|
show(): void;
|
|
11
12
|
fileChange(event: Event): Promise<void>;
|
|
12
13
|
}
|
|
@@ -50,6 +50,9 @@ export declare class CommentFieldComponent {
|
|
|
50
50
|
completionFunc: (str: string) => AutoCompleteOption[];
|
|
51
51
|
completionPrefix: string;
|
|
52
52
|
autoCompleteSelected: number;
|
|
53
|
+
get isValidMessage(): string | boolean;
|
|
54
|
+
get hasPendingAttachments(): boolean;
|
|
55
|
+
get sendButtonEnabled(): boolean;
|
|
53
56
|
autocomplete(replacement: string): Promise<void>;
|
|
54
57
|
insert(str: string): Promise<void>;
|
|
55
58
|
onKeyDown(event: KeyboardEvent): Promise<void>;
|
|
@@ -61,7 +64,8 @@ export declare class CommentFieldComponent {
|
|
|
61
64
|
submit: (message: ChatMessage) => boolean;
|
|
62
65
|
sendMessage(): Promise<void>;
|
|
63
66
|
chatMessageAttachments: ChatMessageAttachment[];
|
|
64
|
-
addedAttachment(
|
|
67
|
+
addedAttachment(attachment: ChatMessageAttachment): void;
|
|
68
|
+
attachmentError(attachment: ChatMessageAttachment): void;
|
|
65
69
|
removeAttachment(index: number): void;
|
|
66
70
|
alertError(): void;
|
|
67
71
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@banta/sdk",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@angular/router": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
18
18
|
"@astronautlabs/datastore": "^3.1.2",
|
|
19
19
|
"@astronautlabs/datastore-firestore": "^3.1.2",
|
|
20
|
-
"@banta/common": "^2.0.
|
|
20
|
+
"@banta/common": "^2.0.13",
|
|
21
21
|
"ngx-markdown": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
22
22
|
"rxjs": "^6.5.5 || ^7.0.0",
|
|
23
23
|
"twemoji": "^12.1.4",
|