@worktile/theia 17.2.1 → 17.2.3

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.
@@ -45,7 +45,7 @@ export declare const TheEditor: {
45
45
  insertTextData(editor: AngularEditor, data: DataTransfer): boolean;
46
46
  onKeydown(editor: AngularEditor, data: KeyboardEvent): void;
47
47
  onClick(editor: AngularEditor, data: MouseEvent): void;
48
- setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "drag" | "copy" | "cut"): void;
48
+ setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "copy" | "drag" | "cut"): void;
49
49
  deleteCutData(editor: AngularEditor): void;
50
50
  toDOMNode(editor: AngularEditor, node: Node): HTMLElement;
51
51
  toDOMPoint(editor: AngularEditor, point: import("slate").BasePoint): import("slate-angular").DOMPoint;
@@ -61,7 +61,7 @@ export declare const TheEditor: {
61
61
  exactMatch?: boolean;
62
62
  suppressThrow: T_1;
63
63
  }): T_1 extends true ? import("slate").BasePoint : import("slate").BasePoint;
64
- toSlateRange<T_2 extends boolean>(editor: AngularEditor, domRange: Selection | globalThis.Range | StaticRange, options?: {
64
+ toSlateRange<T_2 extends boolean>(editor: AngularEditor, domRange: globalThis.Range | Selection | StaticRange, options?: {
65
65
  exactMatch?: boolean;
66
66
  suppressThrow: T_2;
67
67
  }): T_2 extends true ? import("slate").BaseRange : import("slate").BaseRange;
@@ -69,7 +69,7 @@ export declare const TheEditor: {
69
69
  isBlockCardLeftCursor(editor: AngularEditor): boolean;
70
70
  isBlockCardRightCursor(editor: AngularEditor): boolean;
71
71
  getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
72
- direction: "left" | "right" | "center";
72
+ direction: "left" | "center" | "right";
73
73
  }): ChildNode;
74
74
  toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry;
75
75
  moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "17.2.1",
3
+ "version": "17.2.3",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "@angular/core": "^17.2.4",
40
40
  "date-fns": ">= 2.6.0",
41
- "slate-angular": ">= 17.1.0",
41
+ "slate-angular": ">= 17.1.3",
42
42
  "slate": ">= 0.101.5",
43
43
  "ngx-tethys": "^17.0.0",
44
44
  "ng-codemirror": "^17.0.0",
@@ -1,11 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { ThyColorPickerPanel } from 'ngx-tethys/color-picker';
3
+ import { ThyPopoverRef } from 'ngx-tethys/popover';
2
4
  import { TheBaseToolbarItem } from '../../core';
3
5
  import * as i0 from "@angular/core";
4
6
  export declare class TheColorToolbarItem extends TheBaseToolbarItem implements OnInit {
5
7
  selectedColor: string;
8
+ pickerActive: boolean;
9
+ private panelOpenSelection;
6
10
  get lastTextColor(): string;
7
11
  get lastBackgroundColor(): string;
8
- pickerActive: boolean;
9
12
  constructor();
10
13
  ngOnInit(): void;
11
14
  selectionChange(): void;
@@ -14,6 +17,7 @@ export declare class TheColorToolbarItem extends TheBaseToolbarItem implements O
14
17
  private getDefaultColor;
15
18
  selectColor(event: Event): void;
16
19
  changeColor(color: string): void;
20
+ colorPanelOpen(event: ThyPopoverRef<ThyColorPickerPanel>): void;
17
21
  colorPanelClose(): void;
18
22
  static ɵfac: i0.ɵɵFactoryDeclaration<TheColorToolbarItem, never>;
19
23
  static ɵcmp: i0.ɵɵComponentDeclaration<TheColorToolbarItem, "the-color-toolbar-item", never, {}, {}, never, never, true, never>;
@@ -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;
@@ -1,10 +1,10 @@
1
- import { ElementRef, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
1
+ import { ElementRef, TemplateRef, ViewContainerRef } from '@angular/core';
2
2
  import { ThyPopover, ThyPopoverRef } from 'ngx-tethys/popover';
3
3
  import { Editor } from 'slate';
4
4
  import { TheBaseToolbarDropdown } from '../../core/toolbar-item/base-toolbar-item';
5
5
  import { ToolbarItem } from '../../interfaces';
6
6
  import * as i0 from "@angular/core";
7
- export declare class TheVerticalToolbarItem extends TheBaseToolbarDropdown implements OnInit {
7
+ export declare class TheVerticalToolbarItem extends TheBaseToolbarDropdown {
8
8
  elementRef: ElementRef;
9
9
  private thyPopover;
10
10
  private viewContainerRef;
@@ -13,7 +13,6 @@ export declare class TheVerticalToolbarItem extends TheBaseToolbarDropdown imple
13
13
  get isOpened(): boolean;
14
14
  handleDocumentMouseDown(event: MouseEvent): void;
15
15
  constructor(elementRef: ElementRef, thyPopover: ThyPopover, viewContainerRef: ViewContainerRef);
16
- ngOnInit(): void;
17
16
  menusActive(editor: Editor): ToolbarItem;
18
17
  execute(event: MouseEvent): void;
19
18
  itemMousedown(event: MouseEvent, item: ToolbarItem): void;