@atlaskit/editor-tables 2.10.22 → 2.10.23

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 (165) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/cell-bookmark/package.json +1 -8
  3. package/cell-selection/package.json +1 -8
  4. package/package.json +2 -2
  5. package/pm-plugins/package.json +1 -8
  6. package/pm-plugins/plugin-key/package.json +1 -8
  7. package/pm-plugins/table-editing/package.json +1 -8
  8. package/table-map/package.json +1 -8
  9. package/types/package.json +1 -8
  10. package/utils/add-column/package.json +1 -8
  11. package/utils/add-column-at/package.json +1 -8
  12. package/utils/add-row/package.json +1 -8
  13. package/utils/add-row-at/package.json +1 -8
  14. package/utils/analytics-helpers/package.json +1 -8
  15. package/utils/cells/package.json +1 -8
  16. package/utils/clone-column/package.json +1 -8
  17. package/utils/clone-row/package.json +1 -8
  18. package/utils/clone-tr/package.json +1 -8
  19. package/utils/colspan/package.json +1 -8
  20. package/utils/create-table/package.json +1 -8
  21. package/utils/draw-cell-selection/package.json +1 -8
  22. package/utils/empty-cells/package.json +1 -8
  23. package/utils/find/package.json +1 -8
  24. package/utils/fix-tables/package.json +1 -8
  25. package/utils/for-each-cell/package.json +1 -8
  26. package/utils/get-cell-selection-ranges/package.json +1 -8
  27. package/utils/get-cells-in-column/package.json +1 -8
  28. package/utils/get-cells-in-row/package.json +1 -8
  29. package/utils/get-cells-in-table/package.json +1 -8
  30. package/utils/get-selection-range-in-column/package.json +1 -8
  31. package/utils/get-selection-range-in-row/package.json +1 -8
  32. package/utils/get-selection-rect/package.json +1 -8
  33. package/utils/go-to-next-cell/package.json +1 -8
  34. package/utils/handle-paste/package.json +1 -8
  35. package/utils/is-selected/package.json +1 -8
  36. package/utils/is-selection-type/package.json +1 -8
  37. package/utils/move-column/package.json +1 -8
  38. package/utils/move-row/package.json +1 -8
  39. package/utils/normalize-selection/package.json +1 -8
  40. package/utils/package.json +1 -8
  41. package/utils/remove-column/package.json +1 -8
  42. package/utils/remove-row/package.json +1 -8
  43. package/utils/remove-table/package.json +1 -8
  44. package/utils/reorder-utils/package.json +1 -8
  45. package/utils/replace-table/package.json +1 -8
  46. package/utils/select-nodes/package.json +1 -8
  47. package/utils/selection-cell/package.json +1 -8
  48. package/utils/selection-rect/package.json +1 -8
  49. package/utils/set-cell-attrs/package.json +1 -8
  50. package/utils/split-cell/package.json +1 -8
  51. package/utils/split-cell-with-type/package.json +1 -8
  52. package/utils/table-node-types/package.json +1 -8
  53. package/utils/tables/package.json +1 -8
  54. package/utils/toggle-header/package.json +1 -8
  55. package/utils/uuid/package.json +1 -8
  56. package/dist/types-ts4.5/cell-bookmark.d.ts +0 -11
  57. package/dist/types-ts4.5/cell-selection.d.ts +0 -27
  58. package/dist/types-ts4.5/entry-points/cell-bookmark.d.ts +0 -1
  59. package/dist/types-ts4.5/entry-points/cell-selection.d.ts +0 -1
  60. package/dist/types-ts4.5/entry-points/pm-plugins-plugin-key.d.ts +0 -1
  61. package/dist/types-ts4.5/entry-points/pm-plugins-table-editing.d.ts +0 -1
  62. package/dist/types-ts4.5/entry-points/table-map.d.ts +0 -2
  63. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  64. package/dist/types-ts4.5/entry-points/utils-add-column-at.d.ts +0 -1
  65. package/dist/types-ts4.5/entry-points/utils-add-column.d.ts +0 -1
  66. package/dist/types-ts4.5/entry-points/utils-add-row-at.d.ts +0 -1
  67. package/dist/types-ts4.5/entry-points/utils-add-row.d.ts +0 -1
  68. package/dist/types-ts4.5/entry-points/utils-analytics-helpers.d.ts +0 -1
  69. package/dist/types-ts4.5/entry-points/utils-cells.d.ts +0 -1
  70. package/dist/types-ts4.5/entry-points/utils-clone-column.d.ts +0 -1
  71. package/dist/types-ts4.5/entry-points/utils-clone-row.d.ts +0 -1
  72. package/dist/types-ts4.5/entry-points/utils-clone-tr.d.ts +0 -1
  73. package/dist/types-ts4.5/entry-points/utils-colspan.d.ts +0 -1
  74. package/dist/types-ts4.5/entry-points/utils-create-table.d.ts +0 -1
  75. package/dist/types-ts4.5/entry-points/utils-draw-cell-selection.d.ts +0 -1
  76. package/dist/types-ts4.5/entry-points/utils-empty-cells.d.ts +0 -1
  77. package/dist/types-ts4.5/entry-points/utils-find.d.ts +0 -1
  78. package/dist/types-ts4.5/entry-points/utils-fix-tables.d.ts +0 -1
  79. package/dist/types-ts4.5/entry-points/utils-for-each-cell.d.ts +0 -1
  80. package/dist/types-ts4.5/entry-points/utils-get-cell-selection-ranges.d.ts +0 -1
  81. package/dist/types-ts4.5/entry-points/utils-get-cells-in-column.d.ts +0 -1
  82. package/dist/types-ts4.5/entry-points/utils-get-cells-in-row.d.ts +0 -1
  83. package/dist/types-ts4.5/entry-points/utils-get-cells-in-table.d.ts +0 -1
  84. package/dist/types-ts4.5/entry-points/utils-get-selection-range-in-column.d.ts +0 -1
  85. package/dist/types-ts4.5/entry-points/utils-get-selection-range-in-row.d.ts +0 -1
  86. package/dist/types-ts4.5/entry-points/utils-get-selection-rect.d.ts +0 -1
  87. package/dist/types-ts4.5/entry-points/utils-go-to-next-cell.d.ts +0 -1
  88. package/dist/types-ts4.5/entry-points/utils-handle-paste.d.ts +0 -1
  89. package/dist/types-ts4.5/entry-points/utils-is-selected.d.ts +0 -1
  90. package/dist/types-ts4.5/entry-points/utils-is-selection-type.d.ts +0 -1
  91. package/dist/types-ts4.5/entry-points/utils-move-column.d.ts +0 -1
  92. package/dist/types-ts4.5/entry-points/utils-move-row.d.ts +0 -1
  93. package/dist/types-ts4.5/entry-points/utils-normalize-selection.d.ts +0 -1
  94. package/dist/types-ts4.5/entry-points/utils-remove-column.d.ts +0 -1
  95. package/dist/types-ts4.5/entry-points/utils-remove-row.d.ts +0 -1
  96. package/dist/types-ts4.5/entry-points/utils-remove-table.d.ts +0 -1
  97. package/dist/types-ts4.5/entry-points/utils-reorder-utils.d.ts +0 -1
  98. package/dist/types-ts4.5/entry-points/utils-replace-table.d.ts +0 -1
  99. package/dist/types-ts4.5/entry-points/utils-select-nodes.d.ts +0 -1
  100. package/dist/types-ts4.5/entry-points/utils-selection-cell.d.ts +0 -1
  101. package/dist/types-ts4.5/entry-points/utils-selection-rect.d.ts +0 -2
  102. package/dist/types-ts4.5/entry-points/utils-set-cell-attrs.d.ts +0 -1
  103. package/dist/types-ts4.5/entry-points/utils-split-cell-with-type.d.ts +0 -1
  104. package/dist/types-ts4.5/entry-points/utils-split-cell.d.ts +0 -1
  105. package/dist/types-ts4.5/entry-points/utils-table-node-types.d.ts +0 -1
  106. package/dist/types-ts4.5/entry-points/utils-tables.d.ts +0 -1
  107. package/dist/types-ts4.5/entry-points/utils-toggle-header.d.ts +0 -1
  108. package/dist/types-ts4.5/entry-points/utils-uuid.d.ts +0 -1
  109. package/dist/types-ts4.5/index.d.ts +0 -27
  110. package/dist/types-ts4.5/pm-plugins/input.d.ts +0 -4
  111. package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
  112. package/dist/types-ts4.5/pm-plugins/table-editing.d.ts +0 -8
  113. package/dist/types-ts4.5/pm-plugins.d.ts +0 -2
  114. package/dist/types-ts4.5/table-map.d.ts +0 -71
  115. package/dist/types-ts4.5/types.d.ts +0 -49
  116. package/dist/types-ts4.5/utils/add-column-at.d.ts +0 -2
  117. package/dist/types-ts4.5/utils/add-column.d.ts +0 -5
  118. package/dist/types-ts4.5/utils/add-row-at.d.ts +0 -3
  119. package/dist/types-ts4.5/utils/add-row.d.ts +0 -3
  120. package/dist/types-ts4.5/utils/analyse-table.d.ts +0 -7
  121. package/dist/types-ts4.5/utils/analytics-helpers.d.ts +0 -16
  122. package/dist/types-ts4.5/utils/cells.d.ts +0 -7
  123. package/dist/types-ts4.5/utils/clone-column.d.ts +0 -3
  124. package/dist/types-ts4.5/utils/clone-row.d.ts +0 -3
  125. package/dist/types-ts4.5/utils/clone-tr.d.ts +0 -2
  126. package/dist/types-ts4.5/utils/colspan.d.ts +0 -4
  127. package/dist/types-ts4.5/utils/copy-paste.d.ts +0 -9
  128. package/dist/types-ts4.5/utils/create-table.d.ts +0 -12
  129. package/dist/types-ts4.5/utils/draw-cell-selection.d.ts +0 -3
  130. package/dist/types-ts4.5/utils/empty-cells.d.ts +0 -4
  131. package/dist/types-ts4.5/utils/find.d.ts +0 -8
  132. package/dist/types-ts4.5/utils/fix-tables.d.ts +0 -9
  133. package/dist/types-ts4.5/utils/for-each-cell.d.ts +0 -4
  134. package/dist/types-ts4.5/utils/get-cell-selection-ranges.d.ts +0 -3
  135. package/dist/types-ts4.5/utils/get-cells-in-column.d.ts +0 -3
  136. package/dist/types-ts4.5/utils/get-cells-in-row.d.ts +0 -3
  137. package/dist/types-ts4.5/utils/get-cells-in-table.d.ts +0 -3
  138. package/dist/types-ts4.5/utils/get-selection-range-in-column.d.ts +0 -3
  139. package/dist/types-ts4.5/utils/get-selection-range-in-row.d.ts +0 -3
  140. package/dist/types-ts4.5/utils/get-selection-rect.d.ts +0 -3
  141. package/dist/types-ts4.5/utils/go-to-next-cell.d.ts +0 -2
  142. package/dist/types-ts4.5/utils/handle-paste.d.ts +0 -7
  143. package/dist/types-ts4.5/utils/is-selected.d.ts +0 -6
  144. package/dist/types-ts4.5/utils/is-selection-type.d.ts +0 -11
  145. package/dist/types-ts4.5/utils/move-column.d.ts +0 -3
  146. package/dist/types-ts4.5/utils/move-row.d.ts +0 -3
  147. package/dist/types-ts4.5/utils/normalize-direction.d.ts +0 -2
  148. package/dist/types-ts4.5/utils/normalize-selection.d.ts +0 -2
  149. package/dist/types-ts4.5/utils/remove-column.d.ts +0 -5
  150. package/dist/types-ts4.5/utils/remove-row.d.ts +0 -5
  151. package/dist/types-ts4.5/utils/remove-table.d.ts +0 -2
  152. package/dist/types-ts4.5/utils/reorder-utils.d.ts +0 -10
  153. package/dist/types-ts4.5/utils/replace-table.d.ts +0 -3
  154. package/dist/types-ts4.5/utils/select-nodes.d.ts +0 -10
  155. package/dist/types-ts4.5/utils/selection-cell.d.ts +0 -3
  156. package/dist/types-ts4.5/utils/selection-rect.d.ts +0 -4
  157. package/dist/types-ts4.5/utils/set-cell-attrs.d.ts +0 -4
  158. package/dist/types-ts4.5/utils/split-cell-with-type.d.ts +0 -12
  159. package/dist/types-ts4.5/utils/split-cell.d.ts +0 -2
  160. package/dist/types-ts4.5/utils/table-node-types.d.ts +0 -5
  161. package/dist/types-ts4.5/utils/tables.d.ts +0 -4
  162. package/dist/types-ts4.5/utils/test-utils.d.ts +0 -5
  163. package/dist/types-ts4.5/utils/toggle-header.d.ts +0 -6
  164. package/dist/types-ts4.5/utils/uuid.d.ts +0 -9
  165. package/dist/types-ts4.5/utils.d.ts +0 -45
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-remove-table.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-remove-table.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-remove-table.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-remove-table.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-remove-table.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-reorder-utils.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-reorder-utils.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-reorder-utils.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-reorder-utils.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-reorder-utils.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-replace-table.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-replace-table.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-replace-table.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-replace-table.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-replace-table.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-select-nodes.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-select-nodes.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-select-nodes.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-select-nodes.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-select-nodes.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-selection-cell.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-selection-cell.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-selection-cell.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-selection-cell.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-selection-cell.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-selection-rect.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-selection-rect.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-selection-rect.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-selection-rect.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-selection-rect.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-set-cell-attrs.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-set-cell-attrs.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-set-cell-attrs.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-set-cell-attrs.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-set-cell-attrs.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-split-cell.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-split-cell.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-split-cell.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-split-cell.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-split-cell.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-split-cell-with-type.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-split-cell-with-type.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-split-cell-with-type.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-split-cell-with-type.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-split-cell-with-type.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-table-node-types.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-table-node-types.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-table-node-types.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-table-node-types.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-table-node-types.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-tables.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-tables.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-tables.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-tables.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-tables.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-toggle-header.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-toggle-header.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-toggle-header.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-toggle-header.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-toggle-header.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../../dist/esm/entry-points/utils-uuid.js",
5
5
  "module:es2019": "../../dist/es2019/entry-points/utils-uuid.js",
6
6
  "sideEffects": false,
7
- "types": "../../dist/types/entry-points/utils-uuid.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../../dist/types-ts4.5/entry-points/utils-uuid.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../../dist/types/entry-points/utils-uuid.d.ts"
15
8
  }
@@ -1,11 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import type { SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
4
- import type { Mappable } from '@atlaskit/editor-prosemirror/transform';
5
- export declare class CellBookmark implements SelectionBookmark {
6
- readonly anchor: number;
7
- readonly head: number;
8
- constructor(anchor: number, head: number);
9
- map(mapping: Mappable): SelectionBookmark;
10
- resolve(doc: PMNode): Selection;
11
- }
@@ -1,27 +0,0 @@
1
- import { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
- import { Selection } from '@atlaskit/editor-prosemirror/state';
4
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
5
- import type { Mapping } from '@atlaskit/editor-prosemirror/transform';
6
- import { CellBookmark } from './cell-bookmark';
7
- import type { SerializedCellSelection } from './types';
8
- export declare class CellSelection extends Selection {
9
- readonly $anchorCell: ResolvedPos;
10
- readonly $headCell: ResolvedPos;
11
- readonly visible: boolean;
12
- constructor($anchorCell: ResolvedPos, $headCell?: ResolvedPos);
13
- map(doc: PMNode, mapping: Mapping): Selection;
14
- content(): Slice;
15
- replace(tr: Transaction, content?: Slice): void;
16
- replaceWith(tr: Transaction, node: PMNode): void;
17
- forEachCell(f: (node: PMNode, pos: number) => void): void;
18
- isColSelection(): boolean;
19
- static colSelection($anchorCell: ResolvedPos, $headCell?: ResolvedPos): CellSelection;
20
- isRowSelection(): boolean;
21
- eq(other: CellSelection): boolean;
22
- static rowSelection($anchorCell: ResolvedPos, $headCell?: ResolvedPos, reverse?: boolean): CellSelection;
23
- toJSON(): SerializedCellSelection;
24
- static fromJSON(doc: PMNode, json: SerializedCellSelection): CellSelection;
25
- static create(doc: PMNode, anchorCell: number, headCell?: number): CellSelection;
26
- getBookmark(): CellBookmark;
27
- }
@@ -1 +0,0 @@
1
- export { CellBookmark } from '../cell-bookmark';
@@ -1 +0,0 @@
1
- export { CellSelection } from '../cell-selection';
@@ -1 +0,0 @@
1
- export { tableEditingKey } from '../pm-plugins/plugin-key';
@@ -1 +0,0 @@
1
- export { tableEditing } from '../pm-plugins/table-editing';
@@ -1,2 +0,0 @@
1
- export { Rect, TableMap, TableProblemTypes, tableNewColumnMinWidth } from '../table-map';
2
- export type { TableContext, TableProblem, TableProblemColWidthMismatch, TableProblemCollision, TableProblemLongRowspan, TableProblemMissing, TableRect, } from '../table-map';
@@ -1 +0,0 @@
1
- export type { Axis, CellAttributes, CellAttributesWithColSpan, CellSelectionRect, CloneOptions, Command, CommandWithView, Direction, Dispatch, MoveOptions, SelectionBounds, SelectionRange, SerializedCellSelection, Writeable, } from '../types';
@@ -1 +0,0 @@
1
- export { addColumnAt } from '../utils/add-column-at';
@@ -1 +0,0 @@
1
- export { addColumn, columnIsHeader } from '../utils/add-column';
@@ -1 +0,0 @@
1
- export { addRowAt } from '../utils/add-row-at';
@@ -1 +0,0 @@
1
- export { addRow } from '../utils/add-row';
@@ -1 +0,0 @@
1
- export { getSelectedTableInfo, getSelectedCellInfo } from '../utils/analytics-helpers';
@@ -1 +0,0 @@
1
- export { pointsAtCell, cellNear, cellAround, nextCell } from '../utils/cells';
@@ -1 +0,0 @@
1
- export { cloneColumn } from '../utils/clone-column';
@@ -1 +0,0 @@
1
- export { cloneRow } from '../utils/clone-row';
@@ -1 +0,0 @@
1
- export { cloneTr } from '../utils/clone-tr';
@@ -1 +0,0 @@
1
- export { removeColSpan, addColSpan } from '../utils/colspan';
@@ -1 +0,0 @@
1
- export { createTable } from '../utils/create-table';
@@ -1 +0,0 @@
1
- export { drawCellSelection } from '../utils/draw-cell-selection';
@@ -1 +0,0 @@
1
- export { emptyCell } from '../utils/empty-cells';
@@ -1 +0,0 @@
1
- export { findTable, findTableClosestToPos, findCellClosestToPos, findCellRectClosestToPos, } from '../utils/find';
@@ -1 +0,0 @@
1
- export { fixTables } from '../utils/fix-tables';
@@ -1 +0,0 @@
1
- export { forEachCellInColumn, forEachCellInRow } from '../utils/for-each-cell';
@@ -1 +0,0 @@
1
- export { getCellSelectionRanges } from '../utils/get-cell-selection-ranges';
@@ -1 +0,0 @@
1
- export { getCellsInColumn } from '../utils/get-cells-in-column';
@@ -1 +0,0 @@
1
- export { getCellsInRow } from '../utils/get-cells-in-row';
@@ -1 +0,0 @@
1
- export { getCellsInTable } from '../utils/get-cells-in-table';
@@ -1 +0,0 @@
1
- export { getSelectionRangeInColumn } from '../utils/get-selection-range-in-column';
@@ -1 +0,0 @@
1
- export { getSelectionRangeInRow } from '../utils/get-selection-range-in-row';
@@ -1 +0,0 @@
1
- export { getSelectionRect } from '../utils/get-selection-rect';
@@ -1 +0,0 @@
1
- export { goToNextCell } from '../utils/go-to-next-cell';
@@ -1 +0,0 @@
1
- export { handlePaste } from '../utils/handle-paste';
@@ -1 +0,0 @@
1
- export { isRectSelected, isColumnSelected, isRowSelected, isTableSelected, } from '../utils/is-selected';
@@ -1 +0,0 @@
1
- export { isSelectionType } from '../utils/is-selection-type';
@@ -1 +0,0 @@
1
- export { moveColumn } from '../utils/move-column';
@@ -1 +0,0 @@
1
- export { moveRow } from '../utils/move-row';
@@ -1 +0,0 @@
1
- export { normalizeSelection } from '../utils/normalize-selection';
@@ -1 +0,0 @@
1
- export { removeColumnAt, removeSelectedColumns, removeColumnClosestToPos, } from '../utils/remove-column';
@@ -1 +0,0 @@
1
- export { removeRowAt, removeSelectedRows, removeRowClosestToPos } from '../utils/remove-row';
@@ -1 +0,0 @@
1
- export { removeTable } from '../utils/remove-table';
@@ -1 +0,0 @@
1
- export { convertArrayOfRowsToTableNode, convertTableNodeToArrayOfRows, } from '../utils/reorder-utils';
@@ -1 +0,0 @@
1
- export { replaceSelectedTable } from '../utils/replace-table';
@@ -1 +0,0 @@
1
- export { getTableSelectionClosesToPos, selectColumn, selectColumns, selectRow, selectRows, selectTable, selectTableClosestToPos, } from '../utils/select-nodes';
@@ -1 +0,0 @@
1
- export { selectionCell } from '../utils/selection-cell';
@@ -1,2 +0,0 @@
1
- export { selectedRect } from '../utils/selection-rect';
2
- export type { SelectionRect } from '../utils/selection-rect';
@@ -1 +0,0 @@
1
- export { setCellAttrs } from '../utils/set-cell-attrs';
@@ -1 +0,0 @@
1
- export { cellWrapping, splitCellWithType } from '../utils/split-cell-with-type';
@@ -1 +0,0 @@
1
- export { splitCell } from '../utils/split-cell';
@@ -1 +0,0 @@
1
- export { tableNodeTypes } from '../utils/table-node-types';
@@ -1 +0,0 @@
1
- export { isInTable, inSameTable } from '../utils/tables';
@@ -1 +0,0 @@
1
- export { toggleHeader } from '../utils/toggle-header';
@@ -1 +0,0 @@
1
- export { uuid } from '../utils/uuid';
@@ -1,27 +0,0 @@
1
- /**
2
- This package is based on prosemirror-tables, https://github.com/ProseMirror/prosemirror-tables
3
-
4
- Copyright (C) 2015-2016 by Marijn Haverbeke <marijnh@gmail.com> and others
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in
14
- all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- THE SOFTWARE.
23
- */
24
- export { TableMap, Rect } from './table-map';
25
- export { CellSelection } from './cell-selection';
26
- export { findTable } from './utils/find';
27
- export { uuid } from './utils/uuid';
@@ -1,4 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare const handleKeyDown: (view: EditorView, event: KeyboardEvent) => boolean;
3
- export declare function handleTripleClick(view: EditorView, pos: number): boolean;
4
- export declare function handleMouseDown(view: EditorView, event: Event): boolean;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const tableEditingKey: PluginKey;
3
- export declare const fixTablesKey: PluginKey;
@@ -1,8 +0,0 @@
1
- import { Plugin } from '@atlaskit/editor-prosemirror/state';
2
- import type { ReportFixedTable } from '../utils/fix-tables';
3
- type PluginState = number | null;
4
- export declare function tableEditing({ allowTableNodeSelection, reportFixedTable, }?: {
5
- allowTableNodeSelection?: boolean;
6
- reportFixedTable?: ReportFixedTable;
7
- }): Plugin<PluginState>;
8
- export {};
@@ -1,2 +0,0 @@
1
- export { tableEditing } from './pm-plugins/table-editing';
2
- export { tableEditingKey } from './pm-plugins/plugin-key';
@@ -1,71 +0,0 @@
1
- import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import type { Axis } from './types';
3
- export declare class Rect {
4
- left: number;
5
- top: number;
6
- right: number;
7
- bottom: number;
8
- constructor(left: number, top: number, right: number, bottom: number);
9
- }
10
- export interface TableRect extends Rect {
11
- map: TableMap;
12
- table: PMNode;
13
- tableStart: number;
14
- }
15
- export type TableContext = {
16
- map: TableMap;
17
- table: PMNode;
18
- tableStart: number;
19
- };
20
- export declare enum TableProblemTypes {
21
- COLLISION = "collision",
22
- OVERLONG_ROWSPAN = "overlong_rowspan",
23
- MISSING = "missing",
24
- COLWIDTH_MISMATCH = "colwidth mismatch"
25
- }
26
- export type TableProblemCollision = {
27
- n: number;
28
- pos: number;
29
- row: number;
30
- type: TableProblemTypes.COLLISION;
31
- };
32
- export type TableProblemLongRowspan = {
33
- n: number;
34
- pos: number;
35
- type: TableProblemTypes.OVERLONG_ROWSPAN;
36
- };
37
- export type TableProblemMissing = {
38
- n: number;
39
- row: number;
40
- type: TableProblemTypes.MISSING;
41
- };
42
- export type TableProblemColWidthMismatch = {
43
- colwidth: number;
44
- pos: number;
45
- type: TableProblemTypes;
46
- };
47
- export type TableProblem = TableProblemCollision | TableProblemLongRowspan | TableProblemMissing | TableProblemColWidthMismatch;
48
- export declare const tableNewColumnMinWidth = 140;
49
- export declare class TableMap {
50
- width: number;
51
- height: number;
52
- map: number[];
53
- problems?: TableProblem[] | null;
54
- mapByColumn: number[][];
55
- mapByRow: number[][];
56
- constructor(width: number, height: number, map: number[], problems?: TableProblem[] | null, mapByColumn?: number[][], mapByRow?: number[][]);
57
- findCell(pos: number): Rect;
58
- colCount(pos: number): number;
59
- rowCount(pos: number): number;
60
- isPosMerged(pos: number): boolean;
61
- isCellMerged(row: number, col: number): boolean;
62
- isCellMergedTopLeft(row: number, col: number): boolean;
63
- isCellMergedBottomRight(row: number, col: number): boolean;
64
- nextCell(pos: number, axis: Axis, dir: number): number | null;
65
- rectBetween(a: number, b: number): Rect;
66
- cellsInRect(rect: Rect): number[];
67
- positionAt(row: number, col: number, table: PMNode): number;
68
- getMaxColInRow(pos: ResolvedPos): number | undefined;
69
- hasMergedCells(): boolean;
70
- static get(table: PMNode): TableMap;
71
- }
@@ -1,49 +0,0 @@
1
- import type { Fragment, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- export interface CellAttributes {
5
- background?: string;
6
- colspan?: number;
7
- colwidth?: number[];
8
- rowspan?: number;
9
- }
10
- export interface SelectionBounds {
11
- $from: ResolvedPos;
12
- $to: ResolvedPos;
13
- }
14
- export interface SerializedCellSelection {
15
- anchor: number;
16
- head: number;
17
- type: 'cell';
18
- }
19
- export interface CellSelectionRect {
20
- height: number;
21
- rows: Fragment[];
22
- width: number;
23
- }
24
- export type Axis = 'horiz' | 'vert';
25
- export type Direction = -1 | 1;
26
- export type Dispatch = (tr: Transaction) => void;
27
- export type Command = (state: EditorState, dispatch?: Dispatch) => boolean;
28
- export type CommandWithView = (state: EditorState, dispatch?: Dispatch, view?: EditorView) => boolean;
29
- export type SelectionRange = {
30
- $anchor: ResolvedPos;
31
- $head: ResolvedPos;
32
- indexes: number[];
33
- };
34
- export type CellAttributesWithColSpan = CellAttributes & {
35
- colspan: number;
36
- };
37
- export type Writeable<T> = {
38
- -readonly [P in keyof T]: T[P];
39
- };
40
- export interface MoveOptions {
41
- direction?: number;
42
- selectAfterMove?: boolean;
43
- tryToFit?: boolean;
44
- }
45
- export interface CloneOptions {
46
- direction?: number;
47
- selectAfterClone?: boolean;
48
- tryToFit?: boolean;
49
- }
@@ -1,2 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- export declare const addColumnAt: (columnIndex: number) => (tr: Transaction) => Transaction;
@@ -1,5 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { TableContext, TableMap } from '../table-map';
4
- export declare function columnIsHeader(map: TableMap, table: PMNode, col: number): boolean;
5
- export declare function addColumn(tr: Transaction, { map, tableStart, table }: TableContext, col: number): Transaction;
@@ -1,3 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- export declare const cloneRowAt: (rowIndex: number) => (tr: Transaction) => Transaction;
3
- export declare const addRowAt: (rowIndex: number, clonePreviousRow?: boolean) => (tr: Transaction) => Transaction;
@@ -1,3 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { TableContext } from '../table-map';
3
- export declare function addRow(tr: Transaction, { map, tableStart, table }: TableContext, row: number): Transaction;
@@ -1,7 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { TableMap } from '../table-map';
3
- import type { TableNodeCache } from './table-node-types';
4
- export declare function determineTableHeaderStateFromTableNode(table: PMNode, tableMap: TableMap, types: TableNodeCache): {
5
- columnHeaderEnabled: boolean;
6
- rowHeaderEnabled: boolean;
7
- };