@worktile/theia 14.2.30 → 14.2.32
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/esm2020/interfaces/view-base.mjs +2 -2
- package/esm2020/plugins/table/components/toolbar/table-toolbar.component.mjs +2 -2
- package/esm2020/plugins/table/table.plugin.mjs +11 -8
- package/esm2020/queries/index.mjs +3 -3
- package/esm2020/queries/is-empty-paragraph.mjs +9 -3
- package/esm2020/services/table-contextmenu.service.mjs +2 -2
- package/fesm2015/worktile-theia.mjs +22 -13
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +22 -13
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/queries/index.d.ts +2 -2
- package/queries/is-empty-paragraph.d.ts +7 -1
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, isEmptyParagraphElement,
|
|
5
|
+
import { isEmptyParagraph, isEmptyParagraphElement, isLogicEmptyParagraphElement } 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, isEmptyParagraphElement,
|
|
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, isLogicEmptyParagraphElement, 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,4 +1,10 @@
|
|
|
1
1
|
import { Editor, Path, Point, Element } from 'slate';
|
|
2
2
|
export declare const isEmptyParagraph: (editor: Editor, at?: Path | Point) => boolean;
|
|
3
3
|
export declare const isEmptyParagraphElement: (editor: Editor, element: Element) => boolean;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* 判断元素是否是空段落,仅仅包含空格或者\n算空段落
|
|
6
|
+
* @param editor
|
|
7
|
+
* @param element
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare const isLogicEmptyParagraphElement: (editor: Editor, element: Element) => boolean;
|