@worktile/theia 3.0.7 → 3.0.8
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/worktile-theia.umd.js +33 -16
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/editor.component.d.ts +2 -1
- package/esm2015/editor.component.js +15 -2
- package/esm2015/plugins/image/image.component.js +12 -8
- package/esm2015/plugins/image/image.editor.js +3 -5
- package/esm2015/services/context.service.js +7 -6
- package/fesm2015/worktile-theia.js +33 -17
- package/fesm2015/worktile-theia.js.map +1 -1
- package/package.json +1 -1
- package/plugins/image/image.component.d.ts +4 -1
- package/services/context.service.d.ts +8 -4
package/package.json
CHANGED
|
@@ -22,7 +22,10 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
|
|
|
22
22
|
imageEntry: ImageEntry;
|
|
23
23
|
uploading: boolean;
|
|
24
24
|
percentage: number;
|
|
25
|
-
|
|
25
|
+
fileItem: {
|
|
26
|
+
url: string;
|
|
27
|
+
file: File;
|
|
28
|
+
};
|
|
26
29
|
layoutDefaultWidth: number;
|
|
27
30
|
layoutOptions: LayoutOption[];
|
|
28
31
|
private uploadingSubscription;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
2
|
+
import { Observable, Subject } from 'rxjs';
|
|
3
3
|
import { TheOptions } from '../interfaces/editor';
|
|
4
4
|
import { FontSizes, MarkTypes } from '../constants/node-types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -18,7 +18,7 @@ interface PaintFormatStatus {
|
|
|
18
18
|
export declare class TheContextService {
|
|
19
19
|
private ngZone;
|
|
20
20
|
private options;
|
|
21
|
-
|
|
21
|
+
uploadingFiles: {
|
|
22
22
|
url: string;
|
|
23
23
|
file: File;
|
|
24
24
|
}[];
|
|
@@ -26,6 +26,7 @@ export declare class TheContextService {
|
|
|
26
26
|
onMouseUp$: Observable<MouseEvent>;
|
|
27
27
|
onMouseMove$: Observable<MouseEvent>;
|
|
28
28
|
onMouseDown$: Observable<MouseEvent>;
|
|
29
|
+
uploadingStatus$: Subject<boolean>;
|
|
29
30
|
constructor(ngZone: NgZone);
|
|
30
31
|
initialize(options: TheContextOptions): void;
|
|
31
32
|
getOptions(): TheContextOptions;
|
|
@@ -34,11 +35,14 @@ export declare class TheContextService {
|
|
|
34
35
|
getEditableElement(): Element;
|
|
35
36
|
getFirstElementChild(): HTMLElement;
|
|
36
37
|
layoutDefaultWidth(): number;
|
|
37
|
-
|
|
38
|
+
addUploadingFiles(file: {
|
|
39
|
+
url: string;
|
|
40
|
+
file: File;
|
|
41
|
+
}): void;
|
|
42
|
+
removeUploadImage(file: {
|
|
38
43
|
url: string;
|
|
39
44
|
file: File;
|
|
40
45
|
}): void;
|
|
41
|
-
removeUploadImage(file: File): void;
|
|
42
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheContextService, never>;
|
|
43
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<TheContextService>;
|
|
44
48
|
}
|