@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "14.2.30",
3
+ "version": "14.2.32",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -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, isStrictEmptyParagraphElement } from './is-empty-paragraph';
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, 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 };
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
- export declare const isStrictEmptyParagraphElement: (editor: Editor, element: Element) => boolean;
4
+ /**
5
+ * 判断元素是否是空段落,仅仅包含空格或者\n算空段落
6
+ * @param editor
7
+ * @param element
8
+ * @returns
9
+ */
10
+ export declare const isLogicEmptyParagraphElement: (editor: Editor, element: Element) => boolean;