@worktile/theia 14.2.28 → 14.2.30
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/components/plugin-menu/plugin-menu.component.scss +1 -1
- package/esm2020/interfaces/view-base.mjs +18 -1
- package/esm2020/queries/index.mjs +3 -3
- package/esm2020/queries/is-empty-paragraph.mjs +12 -2
- package/fesm2015/worktile-theia.mjs +37 -10
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +37 -10
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/interfaces/view-base.d.ts +3 -2
- package/package.json +1 -1
- package/queries/index.d.ts +2 -2
- package/queries/is-empty-paragraph.d.ts +3 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseElementComponent } from 'slate-angular';
|
|
3
3
|
import { Editor, Element } from 'slate';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TheBaseElementComponent<T extends Element = Element, K extends
|
|
5
|
+
export declare class TheBaseElementComponent<T extends Element = Element, K extends Editor = Editor> extends BaseElementComponent<T, K> implements OnInit {
|
|
6
|
+
onContextChange(): void;
|
|
6
7
|
ngOnInit(): void;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<TheBaseElementComponent<any, any>, never>;
|
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<TheBaseElementComponent<any, any>, "TheBaseElementComponent", never, {}, {}, never, never, false>;
|
package/package.json
CHANGED
package/queries/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { getLastNode } from './get-last-node';
|
|
|
2
2
|
import { isAncestor } from './is-ancestor';
|
|
3
3
|
import { isCollapsed } from './is-collapsed';
|
|
4
4
|
import { getAnchorBlockEntry } from './get-anchor-block-entry';
|
|
5
|
-
import { isEmptyParagraph } from './is-empty-paragraph';
|
|
5
|
+
import { isEmptyParagraph, isEmptyParagraphElement, isStrictEmptyParagraphElement } from './is-empty-paragraph';
|
|
6
6
|
import { isParagraph } from './is-paragraph';
|
|
7
7
|
import { isBlockActive } from './is-block-active';
|
|
8
8
|
import { isIncludeTypes } from './is-include-types';
|
|
@@ -57,4 +57,4 @@ import { getPluginByToolbarItem } from './get-plugin-by-toolbar';
|
|
|
57
57
|
import { isEmptyContent } from './is-empty-content';
|
|
58
58
|
import { isGlobalCollapsed } from './is-global-collapsed';
|
|
59
59
|
import { isEmptyContentByFilter } from './is-empty-content-filter';
|
|
60
|
-
export { getLastNode, getAnchorBlockEntry, getAboveByType, getNodes, getNodesByType, getBlockAbove, getPreviousPath, getNode, getParent, getLastChild, getLastChildPath, getNextSiblingNodes, getAbove, getPointBefore, getSelectionNodesByType, getText, getPointFromLocation, getRangeFromBlockStart, getRangeBefore, getBlockCardCenterCursor, getBlockCardAbove, getPlainText, getSelectionMarks, getContainerBlocks, getDirectlyParent, isAncestor, isCollapsed, isEmptyParagraph, isParagraph, isBlockActive, isIncludeTypes, isAncestorEmpty, isBlockAboveEmpty, isNodeTypeIn, isFirstChild, isPointAtRoot, isRangeAtRoot, isBlockTextEmptyAfterSelection, isStart, isRangeAcrossBlocks, isDescendant, isNodeType, isAcrossBlocks, isBlockCardCursor, isEmptyParagraphByPath, isEmptyContent, isEmptyContentByFilter, isContainer, getInsertElementsPath, isContainNestedType, anchorBlock, anchorBlockEntry, anchorInlineEntry, findPath, findNode, findDescendant, someNode, getToolbarItemDisabled, getPluginByToolbarItem, isGlobalCollapsed };
|
|
60
|
+
export { getLastNode, getAnchorBlockEntry, getAboveByType, getNodes, getNodesByType, getBlockAbove, getPreviousPath, getNode, getParent, getLastChild, getLastChildPath, getNextSiblingNodes, getAbove, getPointBefore, getSelectionNodesByType, getText, getPointFromLocation, getRangeFromBlockStart, getRangeBefore, getBlockCardCenterCursor, getBlockCardAbove, getPlainText, getSelectionMarks, getContainerBlocks, getDirectlyParent, isAncestor, isCollapsed, isEmptyParagraph, isEmptyParagraphElement, isStrictEmptyParagraphElement, isParagraph, isBlockActive, isIncludeTypes, isAncestorEmpty, isBlockAboveEmpty, isNodeTypeIn, isFirstChild, isPointAtRoot, isRangeAtRoot, isBlockTextEmptyAfterSelection, isStart, isRangeAcrossBlocks, isDescendant, isNodeType, isAcrossBlocks, isBlockCardCursor, isEmptyParagraphByPath, isEmptyContent, isEmptyContentByFilter, isContainer, getInsertElementsPath, isContainNestedType, anchorBlock, anchorBlockEntry, anchorInlineEntry, findPath, findNode, findDescendant, someNode, getToolbarItemDisabled, getPluginByToolbarItem, isGlobalCollapsed };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { Editor, Path, Point } from 'slate';
|
|
1
|
+
import { Editor, Path, Point, Element } from 'slate';
|
|
2
2
|
export declare const isEmptyParagraph: (editor: Editor, at?: Path | Point) => boolean;
|
|
3
|
+
export declare const isEmptyParagraphElement: (editor: Editor, element: Element) => boolean;
|
|
4
|
+
export declare const isStrictEmptyParagraphElement: (editor: Editor, element: Element) => boolean;
|