@worktile/theia 19.0.6 → 19.1.1
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/constants/node-types.d.ts +6 -0
- package/custom-types.d.ts +10 -6
- package/fesm2022/worktile-theia.mjs +106 -4
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +1 -0
- package/package.json +1 -1
- package/plugins/heading/heading.component.d.ts +10 -0
- package/plugins/heading/utils.d.ts +6 -0
- package/styles/editor.scss +4 -0
package/interfaces/editor.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface TheEditor extends AngularEditor, HistoryEditor {
|
|
|
23
23
|
renderElement: (element: Element) => ViewType;
|
|
24
24
|
renderLeaf: (text: Text) => ViewType;
|
|
25
25
|
isContainer: (element: Element) => boolean;
|
|
26
|
+
isVisible: (element: Element) => boolean;
|
|
26
27
|
}
|
|
27
28
|
export declare const TheEditor: {
|
|
28
29
|
getWindow(editor: AngularEditor): Window;
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BeforeContextChange, SlateElementContext } from 'slate-angular';
|
|
2
|
+
import { Editor, Element } from 'slate';
|
|
3
|
+
import { HeadingElement } from '../../custom-types';
|
|
4
|
+
import { TheBaseElement } from '../../interfaces/view-base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TheHeadingElement<T extends Element = HeadingElement, K extends Editor = Editor> extends TheBaseElement implements BeforeContextChange<SlateElementContext> {
|
|
7
|
+
beforeContextChange: (value: SlateElementContext<T>) => void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TheHeadingElement<any, any>, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TheHeadingElement<any, any>, "[theHeadingElement]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HeadingElement, HeadingFourElement, HeadingOneElement, HeadingThreeElement, HeadingTwoElement } from '../../custom-types';
|
|
2
|
+
import { TheEditor } from '../../interfaces/editor';
|
|
3
|
+
import { Element } from 'slate';
|
|
4
|
+
export declare function isHeadingElement(element: Element): element is HeadingElement;
|
|
5
|
+
export declare function isStandardHeadingElement(element: Element): element is HeadingOneElement | HeadingTwoElement | HeadingThreeElement | HeadingFourElement;
|
|
6
|
+
export declare function getFollowElements(editor: TheEditor, element: HeadingElement): Element[];
|