@worktile/theia 17.4.5 → 17.4.7
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/esm2022/components/plugin-menu/plugin-menu.component.mjs +2 -2
- package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +16 -16
- package/esm2022/transforms/insert-elements.mjs +5 -11
- package/fesm2022/worktile-theia.mjs +20 -26
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +1 -1
- package/package.json +1 -1
- package/plugins/quick-insert/components/quick-insert.component.d.ts +4 -5
- package/queries/is-range-across-blocks.d.ts +1 -1
- package/transforms/insert-elements.d.ts +1 -1
package/interfaces/editor.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare const TheEditor: {
|
|
|
71
71
|
isBlockCardLeftCursor(editor: AngularEditor): boolean;
|
|
72
72
|
isBlockCardRightCursor(editor: AngularEditor): boolean;
|
|
73
73
|
getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
|
|
74
|
-
direction: "
|
|
74
|
+
direction: "center" | "left" | "right";
|
|
75
75
|
}): ChildNode;
|
|
76
76
|
toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry;
|
|
77
77
|
moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
|
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Editor } from 'slate';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TheQuickInsert implements OnInit, OnChanges {
|
|
5
|
-
private renderer;
|
|
6
|
-
private elementRef;
|
|
7
|
-
private cdr;
|
|
8
5
|
className: string;
|
|
9
6
|
editor: Editor;
|
|
10
7
|
isVisible: boolean;
|
|
@@ -13,7 +10,9 @@ export declare class TheQuickInsert implements OnInit, OnChanges {
|
|
|
13
10
|
displayIconName: string;
|
|
14
11
|
iconElement: ElementRef<any>;
|
|
15
12
|
handleMousedownNativeElement(event: any): void;
|
|
16
|
-
|
|
13
|
+
private cdr;
|
|
14
|
+
private renderer;
|
|
15
|
+
private elementRef;
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19
18
|
updateIconDisplay(): void;
|
|
@@ -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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Editor, Element } from 'slate';
|
|
2
|
-
export declare const insertElements: (editor: Editor, elements: Element | Element[]) => void;
|
|
2
|
+
export declare const insertElements: (editor: Editor, elements: Element | Element[], select?: boolean) => void;
|