@worktile/theia 17.0.0 → 17.1.0

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 (134) hide show
  1. package/components/contextmenu/contextmenu.component.d.ts +3 -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/event-dispatcher.mjs +3 -3
  6. package/esm2022/components/column-resize/overlay-handle.component.mjs +3 -3
  7. package/esm2022/components/column-resize/resizing.store.mjs +3 -3
  8. package/esm2022/components/contextmenu/contextmenu.component.mjs +8 -7
  9. package/esm2022/components/conversion-hint/conversion-hint.component.mjs +3 -3
  10. package/esm2022/components/element/element.component.mjs +6 -8
  11. package/esm2022/components/inline-toolbar/inline-toolbar.component.mjs +3 -3
  12. package/esm2022/components/listbox/listbox.mjs +9 -9
  13. package/esm2022/components/plugin-menu/plugin-menu.component.mjs +3 -3
  14. package/esm2022/components/table-select/table-select.component.mjs +3 -3
  15. package/esm2022/components/template/template.component.mjs +3 -3
  16. package/esm2022/components/text/text.component.mjs +5 -5
  17. package/esm2022/components/toolbar/toolbar.component.mjs +4 -7
  18. package/esm2022/components/toolbar-dropdown/toolbar-dropdown.component.mjs +3 -3
  19. package/esm2022/components/toolbar-group/toolbar-group.component.mjs +3 -3
  20. package/esm2022/components/toolbar-item/toolbar-item.component.mjs +3 -3
  21. package/esm2022/core/toolbar-item/base-toolbar-item.mjs +6 -6
  22. package/esm2022/core/with-theia.mjs +2 -1
  23. package/esm2022/editor.component.mjs +11 -26
  24. package/esm2022/interfaces/editor.mjs +1 -1
  25. package/esm2022/interfaces/view-base.mjs +3 -3
  26. package/esm2022/pipes.mjs +9 -9
  27. package/esm2022/plugins/align/align.plugin.mjs +3 -3
  28. package/esm2022/plugins/autoformat/autoformat.plugin.mjs +3 -3
  29. package/esm2022/plugins/autoformat/transforms/auto-format-block.mjs +3 -3
  30. package/esm2022/plugins/blockquote/blockquote.component.mjs +6 -8
  31. package/esm2022/plugins/blockquote/blockquote.plugin.mjs +4 -4
  32. package/esm2022/plugins/code/code.component.mjs +12 -11
  33. package/esm2022/plugins/code/code.editor.mjs +3 -3
  34. package/esm2022/plugins/color/toolbar-item.component.mjs +3 -3
  35. package/esm2022/plugins/common/block-card.plugin.mjs +41 -8
  36. package/esm2022/plugins/common/move-selection.plugin.mjs +6 -4
  37. package/esm2022/plugins/common/remove-empty.plugin.mjs +9 -8
  38. package/esm2022/plugins/common/remove-void.plugin.mjs +7 -4
  39. package/esm2022/plugins/hr/hr.component.mjs +9 -9
  40. package/esm2022/plugins/image/image.component.mjs +13 -11
  41. package/esm2022/plugins/image/image.plugin.mjs +19 -2
  42. package/esm2022/plugins/index.mjs +1 -3
  43. package/esm2022/plugins/inline-code/inline-code.component.mjs +9 -9
  44. package/esm2022/plugins/link/edit/link-edit.component.mjs +3 -3
  45. package/esm2022/plugins/link/hover/link-hover.component.mjs +3 -3
  46. package/esm2022/plugins/link/link.component.mjs +21 -18
  47. package/esm2022/plugins/list/components/bulleted-list.component.mjs +6 -8
  48. package/esm2022/plugins/list/components/list-item.component.mjs +6 -8
  49. package/esm2022/plugins/list/components/numbered-list.component.mjs +6 -8
  50. package/esm2022/plugins/list/list.editor.mjs +5 -3
  51. package/esm2022/plugins/list/list.plugin.mjs +4 -4
  52. package/esm2022/plugins/mention/suggestion.component.mjs +3 -3
  53. package/esm2022/plugins/normalizers/insert-paragraph-nodes.mjs +1 -1
  54. package/esm2022/plugins/normalizers/trailing-node.plugin.mjs +3 -3
  55. package/esm2022/plugins/quick-insert/components/quick-insert.component.mjs +3 -3
  56. package/esm2022/plugins/soft-break/soft-break.plugin.mjs +1 -1
  57. package/esm2022/plugins/table/components/insert-mark/insert-mark.component.mjs +11 -10
  58. package/esm2022/plugins/table/components/row/row.component.mjs +54 -32
  59. package/esm2022/plugins/table/components/table.component.mjs +322 -299
  60. package/esm2022/plugins/table/components/td/td.component.mjs +47 -47
  61. package/esm2022/plugins/table/components/toolbar/table-options.component.mjs +6 -7
  62. package/esm2022/plugins/table/components/toolbar/table-toolbar.component.mjs +3 -3
  63. package/esm2022/plugins/table/table.editor.mjs +17 -13
  64. package/esm2022/plugins/table/table.pipe.mjs +38 -25
  65. package/esm2022/plugins/table/table.plugin.mjs +5 -5
  66. package/esm2022/plugins/table/table.service.mjs +13 -38
  67. package/esm2022/plugins/table/table.store.mjs +31 -30
  68. package/esm2022/plugins/table/table.types.mjs +2 -1
  69. package/esm2022/plugins/table/toolbar-item.component.mjs +3 -3
  70. package/esm2022/plugins/table/utils/calculate-table.mjs +17 -10
  71. package/esm2022/plugins/table/utils/cell-position.mjs +1 -4
  72. package/esm2022/plugins/table/utils/get-grid-columns.mjs +11 -54
  73. package/esm2022/plugins/table/utils/is-header-row.mjs +3 -2
  74. package/esm2022/plugins/table/utils/is-legal-table.mjs +11 -1
  75. package/esm2022/plugins/table/utils/merge-cell.mjs +21 -19
  76. package/esm2022/plugins/table/utils/remove-row-column.mjs +3 -4
  77. package/esm2022/plugins/table/utils/table-position.mjs +11 -1
  78. package/esm2022/plugins/todo-item/todo-item.component.mjs +18 -16
  79. package/esm2022/plugins/vertical-align/toolbar-item.component.mjs +4 -5
  80. package/esm2022/plugins/vertical-align/vertical-align.editor.mjs +2 -2
  81. package/esm2022/queries/anchor-block-entry.mjs +3 -3
  82. package/esm2022/queries/anchor-inline-entry.mjs +3 -3
  83. package/esm2022/queries/find-descendant.mjs +3 -3
  84. package/esm2022/queries/find-node.mjs +3 -3
  85. package/esm2022/queries/get-anchor-block-entry.mjs +3 -3
  86. package/esm2022/queries/get-block-above.mjs +3 -3
  87. package/esm2022/queries/get-insert-elements-path.mjs +5 -3
  88. package/esm2022/queries/index.mjs +4 -2
  89. package/esm2022/queries/is-root-path.mjs +2 -0
  90. package/esm2022/services/context.service.mjs +13 -9
  91. package/esm2022/services/table-contextmenu.service.mjs +11 -4
  92. package/esm2022/services/toolbar.service.mjs +3 -3
  93. package/esm2022/test/basic/basic.component.mjs +3 -3
  94. package/esm2022/test/faker/tethys-icon-faker.mjs +3 -3
  95. package/esm2022/transforms/handle-continual-insert-break.mjs +3 -3
  96. package/esm2022/transforms/move-children.mjs +3 -3
  97. package/esm2022/utils/fragment.mjs +11 -3
  98. package/esm2022/utils/insert-data-by-invalid-type.mjs +14 -6
  99. package/esm2022/utils/match.mjs +3 -3
  100. package/fesm2022/worktile-theia.mjs +1009 -924
  101. package/fesm2022/worktile-theia.mjs.map +1 -1
  102. package/interfaces/editor.d.ts +16 -5
  103. package/package.json +3 -3
  104. package/plugins/code/code.component.d.ts +2 -3
  105. package/plugins/image/image.component.d.ts +3 -4
  106. package/plugins/image/image.component.scss +2 -2
  107. package/plugins/link/link.component.d.ts +4 -3
  108. package/plugins/normalizers/insert-paragraph-nodes.d.ts +1 -2
  109. package/plugins/normalizers/trailing-node.plugin.d.ts +1 -2
  110. package/plugins/soft-break/soft-break.plugin.d.ts +1 -2
  111. package/plugins/table/components/insert-mark/insert-mark.component.d.ts +1 -0
  112. package/plugins/table/components/row/row.component.d.ts +11 -6
  113. package/plugins/table/components/table.component.d.ts +28 -15
  114. package/plugins/table/components/table.component.scss +37 -24
  115. package/plugins/table/components/td/td.component.d.ts +4 -7
  116. package/plugins/table/table.editor.d.ts +2 -2
  117. package/plugins/table/table.pipe.d.ts +8 -3
  118. package/plugins/table/table.service.d.ts +0 -2
  119. package/plugins/table/table.store.d.ts +10 -11
  120. package/plugins/table/table.types.d.ts +1 -0
  121. package/plugins/table/utils/calculate-table.d.ts +1 -0
  122. package/plugins/table/utils/get-grid-columns.d.ts +3 -22
  123. package/plugins/table/utils/is-header-row.d.ts +1 -1
  124. package/plugins/table/utils/is-legal-table.d.ts +2 -0
  125. package/plugins/table/utils/table-position.d.ts +3 -1
  126. package/plugins/todo-item/todo-item.component.d.ts +3 -3
  127. package/plugins/vertical-align/toolbar-item.component.d.ts +0 -1
  128. package/plugins/vertical-align/vertical-align.scss +11 -0
  129. package/queries/index.d.ts +2 -1
  130. package/queries/is-range-across-blocks.d.ts +1 -1
  131. package/queries/is-root-path.d.ts +2 -0
  132. package/utils/insert-data-by-invalid-type.d.ts +2 -1
  133. package/esm2022/plugins/common/transforms.plugin.mjs +0 -18
  134. package/plugins/common/transforms.plugin.d.ts +0 -8
@@ -25,25 +25,24 @@ export declare class TableStore {
25
25
  isCellSelecting: boolean;
26
26
  isRightClicking: boolean;
27
27
  isFocusedInput: boolean;
28
- pointerSelection: boolean;
29
- areaSelection: boolean;
30
28
  maxCol: number;
31
29
  get dangerousCells(): CellPosition[];
32
30
  get selectedCells(): TableCellElement[];
31
+ get isExistSelectedCell(): boolean;
33
32
  constructor();
34
33
  initEditor(editor: Editor): void;
35
34
  getSelectedCellPositions(): CellPosition[];
36
35
  publishDangerousCells(value: CellPosition[]): void;
37
36
  setSelectedColumnsAndRowIndex(): void;
38
- setSelectedCells(cells: CellPosition[], pos: TablePosition): void;
39
- selectRow(editor: Editor, index: number): void;
40
- selectColumn(editor: Editor, index: number): void;
41
- selectTable(editor: Editor): void;
37
+ setSelectedCells(cells: CellPosition[], pos: TablePosition, metaKey?: boolean): void;
38
+ selectRow(editor: Editor, index: number, event?: MouseEvent): void;
39
+ selectColumn(editor: Editor, index: number, event?: MouseEvent): void;
40
+ selectTable(editor: Editor, metaKey?: boolean): void;
42
41
  selectCellStart(cell: HTMLTableCellElement, editor: Editor): void;
43
- selectCells(editor: Editor): void;
42
+ selectCells(editor: Editor, metaKey?: boolean): void;
44
43
  selectFirstCell(): void;
45
- selectCell(cell: HTMLTableCellElement, editor: Editor): void;
46
- selectCellOngoing(cell: HTMLTableCellElement, editor: Editor): void;
44
+ selectCell(cell: HTMLTableCellElement, editor: Editor, metaKey?: boolean): void;
45
+ selectCellOngoing(cell: HTMLTableCellElement, editor: Editor, event: MouseEvent): void;
47
46
  clearSelectedCells(): void;
48
47
  clearLastFocusPath(): void;
49
48
  selectedCellsChange(): Observable<TableCellElement[]>;
@@ -73,12 +72,12 @@ export declare class TableStore {
73
72
  * 设置区域选择的单元格
74
73
  * @param cellElement 单元格元素
75
74
  */
76
- setAreaSelectionCells(cellElement: TableCellElement): void;
75
+ setAreaSelectionCells(cellElement: TableCellElement, event?: MouseEvent): void;
77
76
  /**
78
77
  * 处理区域选择启用时选择整行/整列
79
78
  * @param cells 选择的单元格
80
79
  */
81
- areaSelectRowAndColumn(cells: CellPosition[]): void;
80
+ areaSelectRowAndColumn(cells: CellPosition[], event?: MouseEvent): void;
82
81
  /**
83
82
  * 设置指定 anchorCellPath
84
83
  * @param path 路径
@@ -8,6 +8,7 @@ import { TheBaseElement } from '../../interfaces/view-base';
8
8
  import type { TheTable } from './components/table.component';
9
9
  export declare const THE_TABLE_COMPONENT_TOKEN: InjectionToken<ComponentType<TheTable>>;
10
10
  export declare const HEADER_CELL_CLASS = "the-header-cell";
11
+ export declare const STICKY_CELL_CLASS = "the-sticky-cell";
11
12
  export declare const TOP_CELL_CLASS = "the-top-cell";
12
13
  export declare enum TableOperations {
13
14
  headerRow = "headerRow",
@@ -1,3 +1,4 @@
1
1
  import { TableElement } from '../../../custom-types';
2
2
  import { TheEditor } from '../../../interfaces';
3
3
  export declare const calculateRowControls: (editor: TheEditor, element: TableElement) => any[];
4
+ export declare const calculateHeaderRowHeight: (editor: TheEditor, element: TableElement) => number;
@@ -6,27 +6,8 @@ import { TableElement } from '../../../custom-types';
6
6
  * @param cellsWidth
7
7
  * @returns string
8
8
  */
9
- export declare const getGridColumns: (headerRow: HTMLElement, cellsWidth: number[]) => string;
10
- export declare const getColumnsWidth: (cellRow: HTMLElement, isColgroup?: boolean) => any[];
11
- /**
12
- * 计算表格列宽
13
- * @param isReadonly
14
- * @param element
15
- * @param tableWidth
16
- * @param mode
17
- * @returns number[]
18
- */
19
- export declare const calcColumnGroups: (isReadonly: boolean, element: TableElement, tableWidth: number, mode: string) => import("../table.types").TheTableColumn[];
20
- /**
21
- * 计算表格列宽
22
- * @param element
23
- * @param tableWidth
24
- * @param minWidthPx
25
- * @returns number[]
26
- */
27
- export declare const calcColumnWidth: (element: TableElement, tableWidth: number, minWidthPx: number) => {
28
- width: number;
29
- }[];
9
+ export declare const getGridColumns: (headerRow: HTMLElement, cellsWidth: number[], unit?: string) => string;
10
+ export declare const getColumnsWidth: (cellRow: HTMLElement) => any[];
30
11
  /**
31
12
  * 打印模式下,按照原宽度比例基于当前表格宽度计算列宽
32
13
  * 1. 所有列的最小列宽总和大于表格宽度时,所有列返回最小宽度
@@ -34,6 +15,6 @@ export declare const calcColumnWidth: (element: TableElement, tableWidth: number
34
15
  * @param minWidthPx
35
16
  * @returns number[]
36
17
  */
37
- export declare const calcPrintColumnWidth: (element: TableElement, minWidthPx: number) => {
18
+ export declare const calcPrintColumnWidth: (element: TableElement) => {
38
19
  width: number;
39
20
  }[];
@@ -3,4 +3,4 @@ import { TableElement } from '../../../custom-types';
3
3
  * compatible with old data
4
4
  * @returns
5
5
  */
6
- export declare function isHeaderRow(element: TableElement): boolean;
6
+ export declare function hasHeaderRow(element: TableElement): boolean;
@@ -2,3 +2,5 @@ import { TableCellElement, TableRowElement } from '../../../custom-types';
2
2
  import { Path } from 'slate';
3
3
  import { TheEditor } from '../../../interfaces';
4
4
  export declare const isLegalTable: (editor: TheEditor, element: TableRowElement | TableCellElement, path?: Path) => false | import("../../../custom-types").TableElement | TableRowElement;
5
+ export declare const isInTable: (editor: TheEditor, element: TableRowElement) => boolean;
6
+ export declare const isInTableRow: (editor: TheEditor, element: TableCellElement) => boolean;
@@ -1,4 +1,4 @@
1
- import { Element, Node, NodeEntry, Path } from 'slate';
1
+ import { Editor, Element, Node, NodeEntry, Path } from 'slate';
2
2
  import { TableCellElement, TableElement, TableRowElement } from '../../../custom-types';
3
3
  import { CellPosition, TableOptions } from '../table.types';
4
4
  export declare class TablePosition {
@@ -95,3 +95,5 @@ export declare class TablePosition {
95
95
  */
96
96
  findCellByPath(cell: CellPosition): TableCellElement;
97
97
  }
98
+ export declare const getTableByCell: (editor: Editor, cell: TableCellElement) => import("slate").Ancestor;
99
+ export declare const getTableByRow: (editor: Editor, row: TableRowElement) => import("slate").Ancestor;
@@ -2,18 +2,18 @@ import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
2
2
  import { Editor } from 'slate';
3
3
  import { TodoItemElement } from '../../custom-types';
4
4
  import { TheBaseElement } from '../../interfaces';
5
- import { TheContextService } from '../../services/context.service';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class TheTodoItem extends TheBaseElement<TodoItemElement, Editor> implements OnInit {
8
7
  elementRef: ElementRef;
9
8
  cdr: ChangeDetectorRef;
10
- private ctxService;
11
9
  checked: boolean;
12
10
  checkItemClass: boolean;
13
11
  get checkItemSelectable(): boolean;
14
12
  get level(): number;
15
13
  get editableWithReadonly(): boolean;
16
- constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, ctxService: TheContextService);
14
+ childrenOutlet: ElementRef;
15
+ getOutletParent: () => any;
16
+ constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
17
17
  ngOnInit(): void;
18
18
  onCheck(checked: boolean): boolean;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TheTodoItem, never>;
@@ -8,7 +8,6 @@ export declare class TheVerticalToolbarItem extends TheBaseToolbarDropdown imple
8
8
  elementRef: ElementRef;
9
9
  private thyPopover;
10
10
  private viewContainerRef;
11
- isHide: boolean;
12
11
  dropdownPopoverRef: ThyPopoverRef<any>;
13
12
  template: TemplateRef<any>;
14
13
  get isOpened(): boolean;
@@ -1,3 +1,5 @@
1
+ @use 'ngx-tethys/styles/variables.scss';
2
+
1
3
  .the-toolbar-dropdown-container {
2
4
  &.verticalAlign {
3
5
  &.hide {
@@ -5,3 +7,12 @@
5
7
  }
6
8
  }
7
9
  }
10
+
11
+
12
+ .the-toolbar-dropdown-popover.vertical-align {
13
+ .thy-dropdown-menu .dropdown-menu-item {
14
+ .thy-icon {
15
+ color: variables.$gray-700;
16
+ }
17
+ }
18
+ }
@@ -71,11 +71,12 @@ declare const queries: {
71
71
  isNodeTypeIn: (editor: import("@worktile/theia").TheEditor, types: string | string[], options?: Omit<import("@worktile/theia").EditorNodesOptions, "match">) => boolean;
72
72
  isParagraph: (editor: import("@worktile/theia").TheEditor) => boolean;
73
73
  isPointAtRoot: (point: import("slate").BasePoint) => boolean;
74
- isRangeAcrossBlocks: (editor: import("@worktile/theia").TheEditor, { at, ...options }?: Omit<import("@worktile/theia").EditorAboveOptions<import("slate").Ancestor>, "match" | "at"> & {
74
+ isRangeAcrossBlocks: (editor: import("@worktile/theia").TheEditor, { at, ...options }?: Omit<import("@worktile/theia").EditorAboveOptions<import("slate").Ancestor>, "at" | "match"> & {
75
75
  at?: import("slate").BaseRange;
76
76
  }) => boolean;
77
77
  isRangeAtRoot: (range: import("slate").BaseRange) => boolean;
78
78
  isStart: (editor: import("@worktile/theia").TheEditor, point: import("slate").BasePoint, at: import("slate").Location) => boolean;
79
79
  someNode: <T_3 extends import("slate").Node = import("slate").Node>(editor: import("@worktile/theia").TheEditor, options: import("./find-node").FindNodeOptions<T_3>) => boolean;
80
+ isRootPath: (path: import("slate").Path) => boolean;
80
81
  };
81
82
  export { queries as TheQueries };
@@ -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>, "match" | "at"> & {
6
+ export declare const isRangeAcrossBlocks: (editor: Editor, { at, ...options }?: Omit<EditorAboveOptions<import("slate").Ancestor>, "at" | "match"> & {
7
7
  at?: Range | null;
8
8
  }) => boolean;
@@ -0,0 +1,2 @@
1
+ import { Path } from 'slate';
2
+ export declare const isRootPath: (path: Path) => boolean;
@@ -1 +1,2 @@
1
- export declare function insertDataByInvalidType(editor: any, fragment: any): boolean;
1
+ import { Editor, Element } from 'slate';
2
+ export declare function insertDataByInvalidType(editor: Editor, fragment: Element[]): boolean;
@@ -1,18 +0,0 @@
1
- import { Transforms } from 'slate';
2
- import { createPluginFactory } from '../../core';
3
- import { PluginKeys } from '../../interfaces';
4
- export const withTransforms = (editor) => {
5
- const e = editor;
6
- e.insertNodes = (nodes, options) => {
7
- try {
8
- Transforms.insertNodes(editor, nodes, options);
9
- }
10
- catch (err) { }
11
- };
12
- return e;
13
- };
14
- export const createTransformsPlugin = createPluginFactory({
15
- key: PluginKeys.transforms,
16
- withOverrides: withTransforms
17
- });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3Jtcy5wbHVnaW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9zcmMvcGx1Z2lucy9jb21tb24vdHJhbnNmb3Jtcy5wbHVnaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFVLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQztBQUMzQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFDakQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBUTlDLE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxDQUFtQixNQUFTLEVBQUUsRUFBRTtJQUMxRCxNQUFNLENBQUMsR0FBRyxNQUE2QixDQUFDO0lBRXhDLENBQUMsQ0FBQyxXQUFXLEdBQUcsQ0FBQyxLQUFLLEVBQUUsT0FBTyxFQUFFLEVBQUU7UUFDL0IsSUFBSSxDQUFDO1lBQ0QsVUFBVSxDQUFDLFdBQVcsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLE9BQU8sQ0FBQyxDQUFDO1FBQ25ELENBQUM7UUFBQyxPQUFPLEdBQUcsRUFBRSxDQUFDLENBQUEsQ0FBQztJQUNwQixDQUFDLENBQUM7SUFFRixPQUFPLENBQUMsQ0FBQztBQUNiLENBQUMsQ0FBQztBQUVGLE1BQU0sQ0FBQyxNQUFNLHNCQUFzQixHQUFHLG1CQUFtQixDQUFDO0lBQ3RELEdBQUcsRUFBRSxVQUFVLENBQUMsVUFBVTtJQUMxQixhQUFhLEVBQUUsY0FBYztDQUNoQyxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFZGl0b3IsIFRyYW5zZm9ybXMgfSBmcm9tICdzbGF0ZSc7XG5pbXBvcnQgeyBjcmVhdGVQbHVnaW5GYWN0b3J5IH0gZnJvbSAnLi4vLi4vY29yZSc7XG5pbXBvcnQgeyBQbHVnaW5LZXlzIH0gZnJvbSAnLi4vLi4vaW50ZXJmYWNlcyc7XG5cbnR5cGUgUGFyYW1zID0gUGFyYW1ldGVyczx0eXBlb2YgVHJhbnNmb3Jtcy5pbnNlcnROb2Rlcz47XG5cbmV4cG9ydCBpbnRlcmZhY2UgVHJhbnNmb3JtRWRpdG9yIHtcbiAgICBpbnNlcnROb2RlczogKG5vZGVzOiBQYXJhbXNbMV0sIG9wdGlvbnM/OiBQYXJhbXNbMl0pID0+IHZvaWQ7XG59XG5cbmV4cG9ydCBjb25zdCB3aXRoVHJhbnNmb3JtcyA9IDxUIGV4dGVuZHMgRWRpdG9yPihlZGl0b3I6IFQpID0+IHtcbiAgICBjb25zdCBlID0gZWRpdG9yIGFzIFQgJiBUcmFuc2Zvcm1FZGl0b3I7XG5cbiAgICBlLmluc2VydE5vZGVzID0gKG5vZGVzLCBvcHRpb25zKSA9PiB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICBUcmFuc2Zvcm1zLmluc2VydE5vZGVzKGVkaXRvciwgbm9kZXMsIG9wdGlvbnMpO1xuICAgICAgICB9IGNhdGNoIChlcnIpIHt9XG4gICAgfTtcblxuICAgIHJldHVybiBlO1xufTtcblxuZXhwb3J0IGNvbnN0IGNyZWF0ZVRyYW5zZm9ybXNQbHVnaW4gPSBjcmVhdGVQbHVnaW5GYWN0b3J5KHtcbiAgICBrZXk6IFBsdWdpbktleXMudHJhbnNmb3JtcyxcbiAgICB3aXRoT3ZlcnJpZGVzOiB3aXRoVHJhbnNmb3Jtc1xufSk7XG4iXX0=
@@ -1,8 +0,0 @@
1
- import { Transforms } from 'slate';
2
- type Params = Parameters<typeof Transforms.insertNodes>;
3
- export interface TransformEditor {
4
- insertNodes: (nodes: Params[1], options?: Params[2]) => void;
5
- }
6
- export declare const withTransforms: <T extends import("../../interfaces").TheEditor>(editor: T) => T & TransformEditor;
7
- export declare const createTransformsPlugin: <T = {}>(override?: Partial<import("../../interfaces").ThePlugin<T, {}>>, overrideByKey?: import("../../interfaces").OverrideByKey) => import("../../interfaces").ThePlugin<T, {}>;
8
- export {};