@worktile/theia 16.2.2 → 16.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.
- package/editor.module.d.ts +2 -2
- package/esm2022/components/action/prevent-default.mjs +3 -3
- package/esm2022/components/column-resize/column-resize-notifier.mjs +3 -3
- package/esm2022/components/column-resize/column-resize.directive.mjs +3 -3
- package/esm2022/components/column-resize/column-resize.module.mjs +8 -8
- package/esm2022/components/column-resize/event-dispatcher.mjs +3 -3
- package/esm2022/components/column-resize/overlay-handle.component.mjs +3 -3
- package/esm2022/components/column-resize/resizing.store.mjs +3 -3
- package/esm2022/components/contextmenu/contextmenu.component.mjs +3 -3
- package/esm2022/components/conversion-hint/conversion-hint.component.mjs +3 -3
- package/esm2022/components/element/element.component.mjs +3 -3
- package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
- package/esm2022/components/listbox/listbox.mjs +9 -9
- package/esm2022/components/plugin-menu/plugin-menu.component.mjs +3 -3
- package/esm2022/components/table-select/table-select.component.mjs +3 -3
- package/esm2022/components/template/template.component.mjs +3 -3
- package/esm2022/components/text/text.component.mjs +3 -3
- package/esm2022/components/toolbar/toolbar.component.mjs +3 -3
- package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +3 -3
- package/esm2022/components/toolbar-group/toolbar-group.component.mjs +3 -3
- package/esm2022/components/toolbar-item/toolbar-item.component.mjs +3 -3
- package/esm2022/core/toolbar-item/base-toolbar-item.mjs +6 -6
- package/esm2022/editor.component.mjs +3 -3
- package/esm2022/editor.module.mjs +4 -4
- package/esm2022/interfaces/view-base.mjs +3 -3
- package/esm2022/pipes.mjs +9 -9
- package/esm2022/plugins/blockquote/blockquote.component.mjs +3 -3
- package/esm2022/plugins/code/code.component.mjs +3 -3
- package/esm2022/plugins/color/toolbar-item.component.mjs +3 -3
- package/esm2022/plugins/hr/hr.component.mjs +3 -3
- package/esm2022/plugins/image/image.component.mjs +3 -3
- package/esm2022/plugins/inline-code/inline-code.component.mjs +3 -3
- package/esm2022/plugins/link/edit/link-edit.component.mjs +3 -3
- package/esm2022/plugins/link/hover/link-hover.component.mjs +3 -3
- package/esm2022/plugins/link/link.component.mjs +6 -6
- package/esm2022/plugins/list/components/bulleted-list.component.mjs +3 -3
- package/esm2022/plugins/list/components/list-item.component.mjs +3 -3
- package/esm2022/plugins/list/components/numbered-list.component.mjs +3 -3
- package/esm2022/plugins/mention/suggestion.component.mjs +3 -3
- package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +3 -3
- package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +3 -3
- package/esm2022/plugins/table/components/row/row.component.mjs +3 -3
- package/esm2022/plugins/table/components/table.component.mjs +17 -20
- package/esm2022/plugins/table/components/td/td.component.mjs +3 -3
- package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +3 -3
- package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +3 -3
- package/esm2022/plugins/table/table.pipe.mjs +6 -6
- package/esm2022/plugins/table/table.plugin.mjs +23 -23
- package/esm2022/plugins/table/table.service.mjs +3 -3
- package/esm2022/plugins/table/table.store.mjs +8 -25
- package/esm2022/plugins/table/toolbar-item.component.mjs +3 -3
- package/esm2022/plugins/table/transforms/move-selection-from-cell.mjs +91 -0
- package/esm2022/plugins/table/utils/calc-anchor-position.mjs +13 -12
- package/esm2022/plugins/table/utils/create-table-position.mjs +2 -2
- package/esm2022/plugins/table/utils/get-next-cell.mjs +44 -0
- package/esm2022/plugins/table/utils/index.mjs +9 -10
- package/esm2022/plugins/todo-item/todo-item.component.mjs +3 -3
- package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +3 -3
- package/esm2022/services/context.service.mjs +3 -3
- package/esm2022/services/table-contextmenu.service.mjs +3 -3
- package/esm2022/services/toolbar.service.mjs +3 -3
- package/fesm2022/worktile-theia.mjs +901 -797
- package/fesm2022/worktile-theia.mjs.map +1 -1
- package/interfaces/editor.d.ts +1 -1
- package/package.json +1 -1
- package/plugins/table/table.plugin.d.ts +1 -1
- package/plugins/table/transforms/move-selection-from-cell.d.ts +7 -0
- package/plugins/table/utils/calc-anchor-position.d.ts +3 -3
- package/plugins/table/utils/get-next-cell.d.ts +4 -0
- package/plugins/table/utils/index.d.ts +8 -9
- package/queries/is-range-across-blocks.d.ts +1 -1
package/interfaces/editor.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ 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: globalThis.Range | StaticRange
|
|
56
|
+
toSlateRange(editor: AngularEditor, domRange: Selection | globalThis.Range | StaticRange): import("slate").BaseRange;
|
|
57
57
|
isLeafBlock(editor: AngularEditor, node: Node): boolean;
|
|
58
58
|
isBlockCardLeftCursor(editor: AngularEditor): boolean;
|
|
59
59
|
isBlockCardRightCursor(editor: AngularEditor): boolean;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThePluginTableOption } from './table.types';
|
|
2
1
|
import { TheEditor } from '../../interfaces';
|
|
2
|
+
import { ThePluginTableOption } from './table.types';
|
|
3
3
|
export declare const withTable: <T extends TheEditor>(editor: T) => T;
|
|
4
4
|
export declare const createTablePlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, ThePluginTableOption>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, ThePluginTableOption>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Editor } from 'slate';
|
|
2
|
-
export declare function calculateAnchorPositionInCell(editor: Editor): {
|
|
1
|
+
import { Editor, Path, Point } from 'slate';
|
|
2
|
+
export declare function calculateAnchorPositionInCell(editor: Editor, at?: Path | Point): {
|
|
3
3
|
isFirstLine: boolean;
|
|
4
4
|
isLastLine: boolean;
|
|
5
|
-
|
|
5
|
+
blockPath: Path;
|
|
6
6
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TableCellElement } from '../../../custom-types';
|
|
2
|
+
import { TheEditor } from '../../../interfaces';
|
|
3
|
+
import { TableSelectCellDirection } from '../table.types';
|
|
4
|
+
export declare const getNextCell: (e: TheEditor, direction: TableSelectCellDirection, cellPath: number[]) => TableCellElement;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
+
export * from './calc-span';
|
|
2
|
+
export * from './calculate-table';
|
|
3
|
+
export * from './cell-position';
|
|
1
4
|
export * from './create-cell';
|
|
2
5
|
export * from './create-row';
|
|
3
6
|
export * from './create-table';
|
|
7
|
+
export * from './create-table-position';
|
|
8
|
+
export * from './get-grid-columns';
|
|
9
|
+
export * from './get-next-cell';
|
|
10
|
+
export * from './get-select-cell-node';
|
|
11
|
+
export * from './is-header-row';
|
|
4
12
|
export * from './is-range-in-table';
|
|
5
13
|
export * from './is-selection-in-table';
|
|
6
|
-
export * from './table-position';
|
|
7
|
-
export * from './calc-span';
|
|
8
14
|
export * from './is-virtual-key';
|
|
9
|
-
export * from './get-grid-columns';
|
|
10
|
-
export * from './create-table-position';
|
|
11
|
-
export * from './cell-position';
|
|
12
|
-
export * from './calculate-table';
|
|
13
|
-
export * from './is-header-row';
|
|
14
15
|
export * from './table-position';
|
|
15
|
-
export * from './cell-position';
|
|
16
|
-
export * from './get-select-cell-node';
|
|
@@ -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>, "
|
|
6
|
+
export declare const isRangeAcrossBlocks: (editor: Editor, { at, ...options }?: Omit<EditorAboveOptions<import("slate").Ancestor>, "match" | "at"> & {
|
|
7
7
|
at?: Range | null;
|
|
8
8
|
}) => boolean;
|