@worktile/theia 16.3.6 → 16.3.7

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.
Files changed (68) hide show
  1. package/core/create-toolbar.d.ts +2 -2
  2. package/editor.component.d.ts +33 -31
  3. package/editor.module.d.ts +2 -2
  4. package/esm2022/components/action/prevent-default.mjs +4 -4
  5. package/esm2022/components/column-resize/column-resize-notifier.mjs +4 -4
  6. package/esm2022/components/column-resize/column-resize.directive.mjs +4 -4
  7. package/esm2022/components/column-resize/column-resize.module.mjs +9 -9
  8. package/esm2022/components/column-resize/event-dispatcher.mjs +4 -4
  9. package/esm2022/components/column-resize/overlay-handle.component.mjs +4 -4
  10. package/esm2022/components/column-resize/resizing.store.mjs +4 -4
  11. package/esm2022/components/contextmenu/contextmenu.component.mjs +4 -4
  12. package/esm2022/components/conversion-hint/conversion-hint.component.mjs +4 -4
  13. package/esm2022/components/element/element.component.mjs +4 -4
  14. package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
  15. package/esm2022/components/listbox/listbox.mjs +10 -10
  16. package/esm2022/components/plugin-menu/plugin-menu.component.mjs +4 -4
  17. package/esm2022/components/table-select/table-select.component.mjs +4 -4
  18. package/esm2022/components/template/template.component.mjs +4 -4
  19. package/esm2022/components/text/text.component.mjs +4 -4
  20. package/esm2022/components/toolbar/toolbar.component.mjs +4 -4
  21. package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +4 -4
  22. package/esm2022/components/toolbar-group/toolbar-group.component.mjs +4 -4
  23. package/esm2022/components/toolbar-item/toolbar-item.component.mjs +4 -4
  24. package/esm2022/core/create-toolbar.mjs +18 -18
  25. package/esm2022/core/toolbar-item/base-toolbar-item.mjs +7 -7
  26. package/esm2022/editor.component.mjs +107 -73
  27. package/esm2022/editor.module.mjs +5 -5
  28. package/esm2022/interfaces/editor.mjs +1 -1
  29. package/esm2022/interfaces/index.mjs +5 -4
  30. package/esm2022/interfaces/preset.mjs +3 -0
  31. package/esm2022/interfaces/view-base.mjs +4 -4
  32. package/esm2022/pipes.mjs +10 -10
  33. package/esm2022/plugins/blockquote/blockquote.component.mjs +4 -4
  34. package/esm2022/plugins/code/code.component.mjs +4 -4
  35. package/esm2022/plugins/color/toolbar-item.component.mjs +4 -4
  36. package/esm2022/plugins/hr/hr.component.mjs +4 -4
  37. package/esm2022/plugins/image/image.component.mjs +4 -4
  38. package/esm2022/plugins/inline-code/inline-code.component.mjs +4 -4
  39. package/esm2022/plugins/link/edit/link-edit.component.mjs +4 -4
  40. package/esm2022/plugins/link/hover/link-hover.component.mjs +4 -4
  41. package/esm2022/plugins/link/link.component.mjs +7 -7
  42. package/esm2022/plugins/list/components/bulleted-list.component.mjs +4 -4
  43. package/esm2022/plugins/list/components/list-item.component.mjs +4 -4
  44. package/esm2022/plugins/list/components/numbered-list.component.mjs +4 -4
  45. package/esm2022/plugins/mention/suggestion.component.mjs +4 -4
  46. package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
  47. package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +8 -4
  48. package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
  49. package/esm2022/plugins/table/components/row/row.component.mjs +4 -4
  50. package/esm2022/plugins/table/components/table.component.mjs +6 -6
  51. package/esm2022/plugins/table/components/td/td.component.mjs +4 -4
  52. package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +4 -4
  53. package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +4 -4
  54. package/esm2022/plugins/table/table.pipe.mjs +7 -7
  55. package/esm2022/plugins/table/table.service.mjs +4 -4
  56. package/esm2022/plugins/table/table.store.mjs +4 -4
  57. package/esm2022/plugins/table/toolbar-item.component.mjs +4 -4
  58. package/esm2022/plugins/todo-item/todo-item.component.mjs +4 -4
  59. package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +4 -4
  60. package/esm2022/services/context.service.mjs +4 -4
  61. package/esm2022/services/table-contextmenu.service.mjs +4 -4
  62. package/esm2022/services/toolbar.service.mjs +4 -4
  63. package/fesm2022/worktile-theia.mjs +480 -440
  64. package/fesm2022/worktile-theia.mjs.map +1 -1
  65. package/interfaces/editor.d.ts +11 -12
  66. package/interfaces/index.d.ts +4 -3
  67. package/interfaces/preset.d.ts +8 -0
  68. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { Ancestor, Range, Path, Point, Node, Span, NodeEntry, Editor, Element, Text } from 'slate';
2
+ import { Ancestor, Editor, Element, Node, NodeEntry, Path, Point, Range, Span, Text } from 'slate';
3
3
  import { AngularEditor, SlatePlaceholder, ViewType } from 'slate-angular';
4
4
  import { HistoryEditor } from 'slate-history';
5
- import { ElementOptionsInfo } from './valid-children-types';
6
- import { Predicate } from '../utils/match';
7
- import { ToolbarOption } from './toolbar';
8
- import { CustomElementKinds } from '../custom-types';
9
5
  import { FontSizes } from '../constants';
6
+ import { CustomElementKinds } from '../custom-types';
7
+ import { Predicate } from '../utils/match';
10
8
  import { ThePlugin } from './plugins';
11
- import { OverrideByKey, NestedStructureByKey } from './utility';
12
9
  import { ThePluginMenuItemConfig } from './plugins/plugin-menu';
10
+ import { ToolbarOption } from './toolbar';
11
+ import { NestedStructureByKey, OverrideByKey } from './utility';
12
+ import { ElementOptionsInfo } from './valid-children-types';
13
13
  export interface TheEditor extends AngularEditor, HistoryEditor {
14
14
  [key: string]: any;
15
15
  options: TheOptions;
@@ -44,7 +44,7 @@ export declare const TheEditor: {
44
44
  insertTextData(editor: AngularEditor, data: DataTransfer): boolean;
45
45
  onKeydown(editor: AngularEditor, data: KeyboardEvent): void;
46
46
  onClick(editor: AngularEditor, data: MouseEvent): void;
47
- setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "drag" | "copy" | "cut"): void;
47
+ setFragmentData(editor: AngularEditor, data: DataTransfer, originEvent?: "copy" | "drag" | "cut"): void;
48
48
  deleteCutData(editor: AngularEditor): void;
49
49
  toDOMNode(editor: AngularEditor, node: Node): HTMLElement;
50
50
  toDOMPoint(editor: AngularEditor, point: import("slate").BasePoint): import("slate-angular").DOMPoint;
@@ -53,19 +53,19 @@ export declare const TheEditor: {
53
53
  findEventRange(editor: AngularEditor, event: any): import("slate").BaseRange;
54
54
  isLeafInEditor(editor: AngularEditor, leafNode: globalThis.Element): boolean;
55
55
  toSlatePoint(editor: AngularEditor, domPoint: import("slate-angular").DOMPoint): import("slate").BasePoint;
56
- toSlateRange(editor: AngularEditor, domRange: Selection | globalThis.Range | StaticRange): import("slate").BaseRange;
56
+ toSlateRange(editor: AngularEditor, domRange: globalThis.Range | StaticRange | Selection): import("slate").BaseRange;
57
57
  isLeafBlock(editor: AngularEditor, node: Node): boolean;
58
58
  isBlockCardLeftCursor(editor: AngularEditor): boolean;
59
59
  isBlockCardRightCursor(editor: AngularEditor): boolean;
60
60
  getCardCursorNode(editor: AngularEditor, blockCardNode: Node, options: {
61
- direction: "center" | "right" | "left";
61
+ direction: "left" | "right" | "center";
62
62
  }): ChildNode;
63
63
  toSlateCardEntry(editor: AngularEditor, node: globalThis.Node): NodeEntry<Node>;
64
64
  moveBlockCard(editor: AngularEditor, blockCardNode: Node, options: {
65
- direction: "right" | "left";
65
+ direction: "left" | "right";
66
66
  }): void;
67
67
  moveBlockCardCursor(editor: AngularEditor, path: Path, options: {
68
- direction: "right" | "left";
68
+ direction: "left" | "right";
69
69
  }): void;
70
70
  hasRange(editor: AngularEditor, range: import("slate").BaseRange): boolean;
71
71
  };
@@ -102,7 +102,6 @@ export interface TheOptions {
102
102
  richMedia?: boolean;
103
103
  toolbar?: ToolbarOption;
104
104
  menu?: ThePluginMenuItemConfig[];
105
- disablePlugins?: string[];
106
105
  extraElementOptions?: ElementOptionsInfo[];
107
106
  neededScrollIntoView?: (e: Editor) => boolean;
108
107
  placeholderDecorate?: (e: Editor) => SlatePlaceholder[];
@@ -1,8 +1,9 @@
1
1
  export * from './editor';
2
2
  export * from './element';
3
- export * from './toolbar';
4
3
  export * from './image';
5
- export * from './valid-children-types';
6
- export * from './view-base';
7
4
  export * from './plugins';
5
+ export * from './preset';
6
+ export * from './toolbar';
8
7
  export * from './utility';
8
+ export * from './valid-children-types';
9
+ export * from './view-base';
@@ -0,0 +1,8 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { TheOptions } from './editor';
3
+ import { ThePlugin } from './plugins';
4
+ export interface ThePresetConfig {
5
+ options?: Pick<TheOptions, 'mode' | 'inlineToolbarVisible' | 'toolbar' | 'menu'>;
6
+ plugins?: ThePlugin[];
7
+ }
8
+ export declare const THE_PRESET_CONFIG_TOKEN: InjectionToken<ThePresetConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "16.3.6",
3
+ "version": "16.3.7",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",