@worktile/theia 17.4.6 → 17.4.8

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.
@@ -63,7 +63,7 @@ export declare const TheEditor: {
63
63
  exactMatch?: boolean;
64
64
  suppressThrow: T_1;
65
65
  }): T_1 extends true ? import("slate").BasePoint : import("slate").BasePoint;
66
- toSlateRange<T_2 extends boolean>(editor: AngularEditor, domRange: globalThis.Range | StaticRange | Selection, options?: {
66
+ toSlateRange<T_2 extends boolean>(editor: AngularEditor, domRange: Selection | globalThis.Range | StaticRange, options?: {
67
67
  exactMatch?: boolean;
68
68
  suppressThrow: T_2;
69
69
  }): T_2 extends true ? import("slate").BaseRange : import("slate").BaseRange;
@@ -71,7 +71,7 @@ export declare const TheEditor: {
71
71
  isBlockCardLeftCursor(editor: AngularEditor): boolean;
72
72
  isBlockCardRightCursor(editor: AngularEditor): boolean;
73
73
  getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
74
- direction: "center" | "left" | "right";
74
+ direction: "left" | "center" | "right";
75
75
  }): ChildNode;
76
76
  toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry;
77
77
  moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "17.4.6",
3
+ "version": "17.4.8",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -1,10 +1,7 @@
1
- import { ChangeDetectorRef, ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { Editor } from 'slate';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TheQuickInsert implements OnInit, OnChanges {
5
- private renderer;
6
- private elementRef;
7
- private cdr;
8
5
  className: string;
9
6
  editor: Editor;
10
7
  isVisible: boolean;
@@ -13,7 +10,9 @@ export declare class TheQuickInsert implements OnInit, OnChanges {
13
10
  displayIconName: string;
14
11
  iconElement: ElementRef<any>;
15
12
  handleMousedownNativeElement(event: any): void;
16
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
13
+ private cdr;
14
+ private renderer;
15
+ private elementRef;
17
16
  ngOnInit(): void;
18
17
  ngOnChanges(changes: SimpleChanges): void;
19
18
  updateIconDisplay(): void;
@@ -95,7 +95,7 @@ export declare class TheTable extends TheBaseElement<TableElement, Editor> imple
95
95
  subscribeCellsChange(): void;
96
96
  useRowControls(): void;
97
97
  detectChanges(): void;
98
- resolveImage(): Promise<boolean> | Promise<any[]>;
98
+ resolveImage(): Promise<any[]> | Promise<boolean>;
99
99
  getColControls(): void;
100
100
  getIsInTable(): void;
101
101
  initializeColumns(): void;
@@ -3,6 +3,6 @@ import { EditorAboveOptions } from '../interfaces';
3
3
  /**
4
4
  * Is the range (default: selection) across blocks.
5
5
  */
6
- export declare const isRangeAcrossBlocks: (editor: Editor, { at, ...options }?: Omit<EditorAboveOptions<import("slate").Ancestor>, "at" | "match"> & {
6
+ export declare const isRangeAcrossBlocks: (editor: Editor, { at, ...options }?: Omit<EditorAboveOptions<import("slate").Ancestor>, "match" | "at"> & {
7
7
  at?: Range | null;
8
8
  }) => boolean;
@@ -1,2 +1,2 @@
1
1
  import { Editor, Element } from 'slate';
2
- export declare const insertElements: (editor: Editor, elements: Element | Element[]) => void;
2
+ export declare const insertElements: (editor: Editor, elements: Element | Element[], select?: boolean) => void;