@worktile/theia 3.0.8 → 3.0.11

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": "3.0.8",
3
+ "version": "3.0.11",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -9,6 +9,7 @@ import { Overlay } from '@angular/cdk/overlay';
9
9
  import { TheContextService } from '../../services/context.service';
10
10
  import { TheBaseElementComponent } from '../../interfaces';
11
11
  import { ImageElement } from '../../custom-types';
12
+ import { ThyImageService } from 'ngx-tethys/image';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class TheImageComponent extends TheBaseElementComponent<ImageElement, Editor> implements OnInit, OnDestroy, AfterViewInit, BeforeContextChange<SlateElementContext> {
14
15
  elementRef: ElementRef;
@@ -18,6 +19,7 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
18
19
  private theContextService;
19
20
  private thyPopover;
20
21
  private overlay;
22
+ private thyImageService;
21
23
  private viewContainerRef;
22
24
  imageEntry: ImageEntry;
23
25
  uploading: boolean;
@@ -37,12 +39,13 @@ export declare class TheImageComponent extends TheBaseElementComponent<ImageElem
37
39
  imageContent: ElementRef;
38
40
  img: ElementRef;
39
41
  layoutToolbar: TemplateRef<any>;
40
- constructor(elementRef: ElementRef, sanitizer: DomSanitizer, imageUploaderService: TheImageUploaderService, cdr: ChangeDetectorRef, theContextService: TheContextService, thyPopover: ThyPopover, overlay: Overlay, viewContainerRef: ViewContainerRef);
42
+ constructor(elementRef: ElementRef, sanitizer: DomSanitizer, imageUploaderService: TheImageUploaderService, cdr: ChangeDetectorRef, theContextService: TheContextService, thyPopover: ThyPopover, overlay: Overlay, thyImageService: ThyImageService, viewContainerRef: ViewContainerRef);
41
43
  beforeContextChange: (value: SlateElementContext<ImageElement>) => void;
42
44
  ngOnInit(): void;
43
45
  onContextChange(): void;
44
46
  ngOnDestroy(): void;
45
47
  ngAfterViewInit(): void;
48
+ setImageNodes(imageInfo: ImageEntry): void;
46
49
  uploadImage(file: File): Promise<void>;
47
50
  private resolveImageSize;
48
51
  startDrag(event: MouseEvent, axis: string): void;
@@ -54,4 +54,5 @@ import { getInsertElementsPath } from './get-insert-elements-path';
54
54
  import { isContainNestedType } from './is-contain-nested-type';
55
55
  import { getToolbarItemDisabled } from './get-toolbar-disabled';
56
56
  import { getPluginByToolbarItem } from './get-plugin-by-toolbar';
57
- 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, isContainer, getInsertElementsPath, isContainNestedType, anchorBlock, anchorBlockEntry, anchorInlineEntry, findPath, findNode, findDescendant, someNode, getToolbarItemDisabled, getPluginByToolbarItem };
57
+ import { isEmptyContent } from './is-empty-content';
58
+ 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, isContainer, getInsertElementsPath, isContainNestedType, anchorBlock, anchorBlockEntry, anchorInlineEntry, findPath, findNode, findDescendant, someNode, getToolbarItemDisabled, getPluginByToolbarItem };
@@ -0,0 +1,2 @@
1
+ import { Descendant } from 'slate';
2
+ export declare const isEmptyContent: (children: Descendant[]) => boolean;
@@ -0,0 +1,3 @@
1
+ import { CustomElementKinds } from '../custom-types';
2
+ import { Element } from 'slate';
3
+ export declare const getAllNodesByType: (nodes: Element[], type: CustomElementKinds) => any;