@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.
Files changed (71) hide show
  1. package/editor.module.d.ts +2 -2
  2. package/esm2022/components/action/prevent-default.mjs +3 -3
  3. package/esm2022/components/column-resize/column-resize-notifier.mjs +3 -3
  4. package/esm2022/components/column-resize/column-resize.directive.mjs +3 -3
  5. package/esm2022/components/column-resize/column-resize.module.mjs +8 -8
  6. package/esm2022/components/column-resize/event-dispatcher.mjs +3 -3
  7. package/esm2022/components/column-resize/overlay-handle.component.mjs +3 -3
  8. package/esm2022/components/column-resize/resizing.store.mjs +3 -3
  9. package/esm2022/components/contextmenu/contextmenu.component.mjs +3 -3
  10. package/esm2022/components/conversion-hint/conversion-hint.component.mjs +3 -3
  11. package/esm2022/components/element/element.component.mjs +3 -3
  12. package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
  13. package/esm2022/components/listbox/listbox.mjs +9 -9
  14. package/esm2022/components/plugin-menu/plugin-menu.component.mjs +3 -3
  15. package/esm2022/components/table-select/table-select.component.mjs +3 -3
  16. package/esm2022/components/template/template.component.mjs +3 -3
  17. package/esm2022/components/text/text.component.mjs +3 -3
  18. package/esm2022/components/toolbar/toolbar.component.mjs +3 -3
  19. package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +3 -3
  20. package/esm2022/components/toolbar-group/toolbar-group.component.mjs +3 -3
  21. package/esm2022/components/toolbar-item/toolbar-item.component.mjs +3 -3
  22. package/esm2022/core/toolbar-item/base-toolbar-item.mjs +6 -6
  23. package/esm2022/editor.component.mjs +3 -3
  24. package/esm2022/editor.module.mjs +4 -4
  25. package/esm2022/interfaces/view-base.mjs +3 -3
  26. package/esm2022/pipes.mjs +9 -9
  27. package/esm2022/plugins/blockquote/blockquote.component.mjs +3 -3
  28. package/esm2022/plugins/code/code.component.mjs +3 -3
  29. package/esm2022/plugins/color/toolbar-item.component.mjs +3 -3
  30. package/esm2022/plugins/hr/hr.component.mjs +3 -3
  31. package/esm2022/plugins/image/image.component.mjs +3 -3
  32. package/esm2022/plugins/inline-code/inline-code.component.mjs +3 -3
  33. package/esm2022/plugins/link/edit/link-edit.component.mjs +3 -3
  34. package/esm2022/plugins/link/hover/link-hover.component.mjs +3 -3
  35. package/esm2022/plugins/link/link.component.mjs +6 -6
  36. package/esm2022/plugins/list/components/bulleted-list.component.mjs +3 -3
  37. package/esm2022/plugins/list/components/list-item.component.mjs +3 -3
  38. package/esm2022/plugins/list/components/numbered-list.component.mjs +3 -3
  39. package/esm2022/plugins/mention/suggestion.component.mjs +3 -3
  40. package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +3 -3
  41. package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +3 -3
  42. package/esm2022/plugins/table/components/row/row.component.mjs +3 -3
  43. package/esm2022/plugins/table/components/table.component.mjs +17 -20
  44. package/esm2022/plugins/table/components/td/td.component.mjs +3 -3
  45. package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +3 -3
  46. package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +3 -3
  47. package/esm2022/plugins/table/table.pipe.mjs +6 -6
  48. package/esm2022/plugins/table/table.plugin.mjs +23 -23
  49. package/esm2022/plugins/table/table.service.mjs +3 -3
  50. package/esm2022/plugins/table/table.store.mjs +8 -25
  51. package/esm2022/plugins/table/toolbar-item.component.mjs +3 -3
  52. package/esm2022/plugins/table/transforms/move-selection-from-cell.mjs +91 -0
  53. package/esm2022/plugins/table/utils/calc-anchor-position.mjs +13 -12
  54. package/esm2022/plugins/table/utils/create-table-position.mjs +2 -2
  55. package/esm2022/plugins/table/utils/get-next-cell.mjs +44 -0
  56. package/esm2022/plugins/table/utils/index.mjs +9 -10
  57. package/esm2022/plugins/todo-item/todo-item.component.mjs +3 -3
  58. package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +3 -3
  59. package/esm2022/services/context.service.mjs +3 -3
  60. package/esm2022/services/table-contextmenu.service.mjs +3 -3
  61. package/esm2022/services/toolbar.service.mjs +3 -3
  62. package/fesm2022/worktile-theia.mjs +901 -797
  63. package/fesm2022/worktile-theia.mjs.map +1 -1
  64. package/interfaces/editor.d.ts +1 -1
  65. package/package.json +1 -1
  66. package/plugins/table/table.plugin.d.ts +1 -1
  67. package/plugins/table/transforms/move-selection-from-cell.d.ts +7 -0
  68. package/plugins/table/utils/calc-anchor-position.d.ts +3 -3
  69. package/plugins/table/utils/get-next-cell.d.ts +4 -0
  70. package/plugins/table/utils/index.d.ts +8 -9
  71. package/queries/is-range-across-blocks.d.ts +1 -1
@@ -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 | Selection): import("slate").BaseRange;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@worktile/theia",
3
- "version": "16.2.2",
3
+ "version": "16.2.3",
4
4
  "description": "theia editor",
5
5
  "author": "YanDong <nanianqiumo@foxmail.com>",
6
6
  "homepage": "https://github.com/atinc/theia#readme",
@@ -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>;
@@ -0,0 +1,7 @@
1
+ import { TheEditor } from '../../../interfaces';
2
+ /**
3
+ * 处理单元格内 shift + up/down/left/right 行为
4
+ * @param editor 编辑器对象
5
+ * @param e 键盘事件对象
6
+ */
7
+ export declare const moveSelectionFromCell: (editor: TheEditor, e: KeyboardEvent) => void;
@@ -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
- anchorBlockPath: import("slate").Path;
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>, "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;