@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.
- package/core/create-toolbar.d.ts +2 -2
- package/editor.component.d.ts +33 -31
- package/editor.module.d.ts +2 -2
- package/esm2022/components/action/prevent-default.mjs +4 -4
- package/esm2022/components/column-resize/column-resize-notifier.mjs +4 -4
- package/esm2022/components/column-resize/column-resize.directive.mjs +4 -4
- package/esm2022/components/column-resize/column-resize.module.mjs +9 -9
- package/esm2022/components/column-resize/event-dispatcher.mjs +4 -4
- package/esm2022/components/column-resize/overlay-handle.component.mjs +4 -4
- package/esm2022/components/column-resize/resizing.store.mjs +4 -4
- package/esm2022/components/contextmenu/contextmenu.component.mjs +4 -4
- package/esm2022/components/conversion-hint/conversion-hint.component.mjs +4 -4
- package/esm2022/components/element/element.component.mjs +4 -4
- package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +4 -4
- package/esm2022/components/listbox/listbox.mjs +10 -10
- package/esm2022/components/plugin-menu/plugin-menu.component.mjs +4 -4
- package/esm2022/components/table-select/table-select.component.mjs +4 -4
- package/esm2022/components/template/template.component.mjs +4 -4
- package/esm2022/components/text/text.component.mjs +4 -4
- package/esm2022/components/toolbar/toolbar.component.mjs +4 -4
- package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +4 -4
- package/esm2022/components/toolbar-group/toolbar-group.component.mjs +4 -4
- package/esm2022/components/toolbar-item/toolbar-item.component.mjs +4 -4
- package/esm2022/core/create-toolbar.mjs +18 -18
- package/esm2022/core/toolbar-item/base-toolbar-item.mjs +7 -7
- package/esm2022/editor.component.mjs +107 -73
- package/esm2022/editor.module.mjs +5 -5
- package/esm2022/interfaces/editor.mjs +1 -1
- package/esm2022/interfaces/index.mjs +5 -4
- package/esm2022/interfaces/preset.mjs +3 -0
- package/esm2022/interfaces/view-base.mjs +4 -4
- package/esm2022/pipes.mjs +10 -10
- package/esm2022/plugins/blockquote/blockquote.component.mjs +4 -4
- package/esm2022/plugins/code/code.component.mjs +4 -4
- package/esm2022/plugins/color/toolbar-item.component.mjs +4 -4
- package/esm2022/plugins/hr/hr.component.mjs +4 -4
- package/esm2022/plugins/image/image.component.mjs +4 -4
- package/esm2022/plugins/inline-code/inline-code.component.mjs +4 -4
- package/esm2022/plugins/link/edit/link-edit.component.mjs +4 -4
- package/esm2022/plugins/link/hover/link-hover.component.mjs +4 -4
- package/esm2022/plugins/link/link.component.mjs +7 -7
- package/esm2022/plugins/list/components/bulleted-list.component.mjs +4 -4
- package/esm2022/plugins/list/components/list-item.component.mjs +4 -4
- package/esm2022/plugins/list/components/numbered-list.component.mjs +4 -4
- package/esm2022/plugins/mention/suggestion.component.mjs +4 -4
- package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +4 -4
- package/esm2022/plugins/quick-insert/quick-insert.editor.mjs +8 -4
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +4 -4
- package/esm2022/plugins/table/components/row/row.component.mjs +4 -4
- package/esm2022/plugins/table/components/table.component.mjs +6 -6
- package/esm2022/plugins/table/components/td/td.component.mjs +4 -4
- package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +4 -4
- package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +4 -4
- package/esm2022/plugins/table/table.pipe.mjs +7 -7
- package/esm2022/plugins/table/table.service.mjs +4 -4
- package/esm2022/plugins/table/table.store.mjs +4 -4
- package/esm2022/plugins/table/toolbar-item.component.mjs +4 -4
- package/esm2022/plugins/todo-item/todo-item.component.mjs +4 -4
- package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +4 -4
- package/esm2022/services/context.service.mjs +4 -4
- package/esm2022/services/table-contextmenu.service.mjs +4 -4
- package/esm2022/services/toolbar.service.mjs +4 -4
- package/fesm2022/worktile-theia.mjs +480 -440
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +11 -12
- package/interfaces/index.d.ts +4 -3
- package/interfaces/preset.d.ts +8 -0
- package/package.json +1 -1
package/interfaces/editor.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Ancestor,
|
|
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?: "
|
|
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:
|
|
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: "
|
|
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: "
|
|
65
|
+
direction: "left" | "right";
|
|
66
66
|
}): void;
|
|
67
67
|
moveBlockCardCursor(editor: AngularEditor, path: Path, options: {
|
|
68
|
-
direction: "
|
|
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[];
|
package/interfaces/index.d.ts
CHANGED
|
@@ -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>;
|