@worktile/theia 16.1.0 → 16.1.2
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/editor.module.d.ts +1 -1
- package/esm2022/plugins/image/image.component.mjs +8 -4
- package/fesm2022/worktile-theia.mjs +7 -3
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +2 -2
- package/package.json +1 -1
- package/plugins/image/image.component.scss +16 -9
- package/plugins/table/components/table.component.d.ts +1 -1
- package/queries/is-range-across-blocks.d.ts +1 -1
package/interfaces/editor.d.ts
CHANGED
|
@@ -53,12 +53,12 @@ export declare const TheEditor: {
|
|
|
53
53
|
findEventRange(editor: AngularEditor, event: any): import("slate").BaseRange;
|
|
54
54
|
isLeafInEditor(editor: AngularEditor, leafNode: globalThis.Element): boolean;
|
|
55
55
|
toSlatePoint(editor: AngularEditor, domPoint: import("slate-angular").DOMPoint): import("slate").BasePoint;
|
|
56
|
-
toSlateRange(editor: AngularEditor, domRange:
|
|
56
|
+
toSlateRange(editor: AngularEditor, domRange: globalThis.Range | StaticRange | Selection): import("slate").BaseRange;
|
|
57
57
|
isLeafBlock(editor: AngularEditor, node: Node): boolean;
|
|
58
58
|
isBlockCardLeftCursor(editor: AngularEditor): boolean;
|
|
59
59
|
isBlockCardRightCursor(editor: AngularEditor): boolean;
|
|
60
60
|
getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
|
|
61
|
-
direction: "
|
|
61
|
+
direction: "center" | "left" | "right";
|
|
62
62
|
}): ChildNode;
|
|
63
63
|
toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry<Node>;
|
|
64
64
|
moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
|
package/package.json
CHANGED
|
@@ -27,10 +27,6 @@
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.pointer {
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
30
|
.main-image {
|
|
35
31
|
position: relative;
|
|
36
32
|
width: auto;
|
|
@@ -108,9 +104,10 @@
|
|
|
108
104
|
.right.middle {
|
|
109
105
|
cursor: ew-resize;
|
|
110
106
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
|
|
108
|
+
&.outline {
|
|
109
|
+
border: 1px dashed variables.$primary;
|
|
110
|
+
}
|
|
114
111
|
}
|
|
115
112
|
|
|
116
113
|
.uploading {
|
|
@@ -135,7 +132,9 @@
|
|
|
135
132
|
background: variables.$white;
|
|
136
133
|
border: 0.5px solid rgba(variables.$black, 0.05);
|
|
137
134
|
border-radius: 3px;
|
|
138
|
-
box-shadow:
|
|
135
|
+
box-shadow:
|
|
136
|
+
0 1px 1px 0 rgba(variables.$black, 0.05),
|
|
137
|
+
0 1px 4px 0 rgba(variables.$black, 0.1);
|
|
139
138
|
transition: 0.3s ease;
|
|
140
139
|
}
|
|
141
140
|
.uploading-percentage {
|
|
@@ -185,7 +184,9 @@
|
|
|
185
184
|
background: variables.$white;
|
|
186
185
|
border: 0.5px solid rgba(variables.$black, 0.05);
|
|
187
186
|
border-radius: 3px;
|
|
188
|
-
box-shadow:
|
|
187
|
+
box-shadow:
|
|
188
|
+
0 1px 1px 0 rgba(variables.$black, 0.05),
|
|
189
|
+
0 1px 4px 0 rgba(variables.$black, 0.1);
|
|
189
190
|
cursor: pointer;
|
|
190
191
|
transition: 0.3s ease;
|
|
191
192
|
}
|
|
@@ -212,6 +213,12 @@
|
|
|
212
213
|
cursor: zoom-in;
|
|
213
214
|
}
|
|
214
215
|
}
|
|
216
|
+
|
|
217
|
+
&.slate-focus-element {
|
|
218
|
+
.image-loading {
|
|
219
|
+
border: 1px dashed variables.$primary;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
215
222
|
}
|
|
216
223
|
.the-editor-readonly {
|
|
217
224
|
.the-image-error {
|
|
@@ -80,7 +80,7 @@ export declare class TheTableComponent extends TheBaseElementComponent<TableElem
|
|
|
80
80
|
subscribeCellsChange(): void;
|
|
81
81
|
useRowControls(): void;
|
|
82
82
|
detectChanges(): void;
|
|
83
|
-
resolveImage(): Promise<
|
|
83
|
+
resolveImage(): Promise<any[]> | Promise<boolean>;
|
|
84
84
|
getColControls(): void;
|
|
85
85
|
getIsInTable(): void;
|
|
86
86
|
getDefaultCellWidth(): number[];
|
|
@@ -3,6 +3,6 @@ import { EditorAboveOptions } from '../interfaces';
|
|
|
3
3
|
/**
|
|
4
4
|
* Is the range (default: selection) across blocks.
|
|
5
5
|
*/
|
|
6
|
-
export declare const isRangeAcrossBlocks: (editor: Editor, { at, ...options }?: Omit<EditorAboveOptions<import("slate").Ancestor>, "
|
|
6
|
+
export declare const isRangeAcrossBlocks: (editor: Editor, { at, ...options }?: Omit<EditorAboveOptions<import("slate").Ancestor>, "at" | "match"> & {
|
|
7
7
|
at?: Range | null;
|
|
8
8
|
}) => boolean;
|