@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.
@@ -1,8 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { AngularEditor, BaseElementComponent } from 'slate-angular';
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 AngularEditor = Editor> extends BaseElementComponent<T, K> implements OnInit {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "14.2.28",
3
+ "version": "14.2.30",
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 } 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;