@worktile/theia 18.0.7 → 18.0.9

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.
@@ -11,6 +11,8 @@ export interface ImageEntry {
11
11
  name?: string;
12
12
  width?: number;
13
13
  height?: number;
14
+ originWidth?: number;
15
+ originHeight?: number;
14
16
  thumbUrl?: SafeUrl | string;
15
17
  originUrl?: SafeUrl | string;
16
18
  align?: Alignment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "18.0.7",
3
+ "version": "18.0.9",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -36,7 +36,7 @@ import { isAncestor } from './is-ancestor';
36
36
  import { isAncestorEmpty } from './is-ancestor-empty';
37
37
  import { isBlockAboveEmpty } from './is-block-above-empty';
38
38
  import { isBlockActive } from './is-block-active';
39
- import { isBlockCardCursor } from './is-block-card-cursor';
39
+ import { isBlockCardCursor, isBlockCardLeftCursor, isBlockCardRightCursor } from './is-block-card-cursor';
40
40
  import { isBlockTextEmptyAfterSelection } from './is-block-text-empty-after-selection';
41
41
  import { isCollapsed } from './is-collapsed';
42
42
  import { isContainNestedType } from './is-contain-nested-type';
@@ -58,4 +58,4 @@ import { isRangeAtRoot } from './is-range-at-root';
58
58
  import { isRootPath } from './is-root-path';
59
59
  import { isStart } from './is-start';
60
60
  import { someNode } from './some-node';
61
- export { anchorBlock, anchorBlockEntry, anchorInlineEntry, findDescendant, findNode, findPath, getAbove, getAboveByType, getAnchorBlockEntry, getBlockAbove, getBlockCardAbove, getBlockCardCenterCursor, getContainerBlocks, getDirectlyParent, getInsertElementsPath, getLastChild, getLastChildPath, getLastNode, getNextSiblingNodes, getNode, getNodes, getNodesByType, getParent, getPlainText, getPluginByToolbarItem, getPointBefore, getPointFromLocation, getPreviousPath, getRangeBefore, getRangeFromBlockStart, getSelectionMarks, getSelectionNodesByType, getText, getToolbarItemDisabled, isAcrossBlocks, isAncestor, isAncestorEmpty, isBlockAboveEmpty, isBlockActive, isBlockCardCursor, isBlockTextEmptyAfterSelection, isCollapsed, isContainNestedType, isContainer, isDescendant, isEmptyContent, isEmptyContentByFilter, isEmptyParagraph, isEmptyParagraphByPath, isEmptyParagraphElement, isFirstChild, isGlobalCollapsed, isIncludeTypes, isLogicEmptyParagraphElement, isNodeType, isNodeTypeIn, isParagraph, isPointAtRoot, isRangeAcrossBlocks, isRangeAtRoot, isRootPath, isStart, someNode };
61
+ export { anchorBlock, anchorBlockEntry, anchorInlineEntry, findDescendant, findNode, findPath, getAbove, getAboveByType, getAnchorBlockEntry, getBlockAbove, getBlockCardAbove, getBlockCardCenterCursor, getContainerBlocks, getDirectlyParent, getInsertElementsPath, getLastChild, getLastChildPath, getLastNode, getNextSiblingNodes, getNode, getNodes, getNodesByType, getParent, getPlainText, getPluginByToolbarItem, getPointBefore, getPointFromLocation, getPreviousPath, getRangeBefore, getRangeFromBlockStart, getSelectionMarks, getSelectionNodesByType, getText, getToolbarItemDisabled, isAcrossBlocks, isAncestor, isAncestorEmpty, isBlockAboveEmpty, isBlockActive, isBlockCardCursor, isBlockCardLeftCursor, isBlockCardRightCursor, isBlockTextEmptyAfterSelection, isCollapsed, isContainer, isContainNestedType, isDescendant, isEmptyContent, isEmptyContentByFilter, isEmptyParagraph, isEmptyParagraphByPath, isEmptyParagraphElement, isFirstChild, isGlobalCollapsed, isIncludeTypes, isLogicEmptyParagraphElement, isNodeType, isNodeTypeIn, isParagraph, isPointAtRoot, isRangeAcrossBlocks, isRangeAtRoot, isRootPath, isStart, someNode };
@@ -1,2 +1,4 @@
1
- import { Editor, Location } from 'slate';
1
+ import { Editor, Location, Range } from 'slate';
2
2
  export declare const isBlockCardCursor: (editor: Editor, at?: Location) => boolean;
3
+ export declare const isBlockCardLeftCursor: (selection: Range) => boolean;
4
+ export declare const isBlockCardRightCursor: (selection: Range) => boolean;