@atlaskit/editor-plugin-table 8.4.12 → 8.4.14

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 (453) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/nodeviews/ExternalDropTargets.js +6 -3
  3. package/dist/cjs/nodeviews/TableCell.js +5 -0
  4. package/dist/cjs/nodeviews/TableComponent.js +92 -29
  5. package/dist/cjs/nodeviews/TableComponentWithSharedState.js +7 -1
  6. package/dist/cjs/nodeviews/TableContainer.js +16 -6
  7. package/dist/cjs/nodeviews/TableNodeViewBase.js +4 -0
  8. package/dist/cjs/nodeviews/TableResizer.js +44 -15
  9. package/dist/cjs/nodeviews/TableRow.js +45 -1
  10. package/dist/cjs/nodeviews/TableStickyScrollbar.js +21 -2
  11. package/dist/cjs/nodeviews/lazy-node-views.js +16 -4
  12. package/dist/cjs/nodeviews/table.js +53 -18
  13. package/dist/cjs/pm-plugins/commands/clear.js +6 -0
  14. package/dist/cjs/pm-plugins/commands/column-resize.js +26 -17
  15. package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +39 -26
  16. package/dist/cjs/pm-plugins/commands/go-to-next-cell.js +2 -0
  17. package/dist/cjs/pm-plugins/commands/hover.js +17 -13
  18. package/dist/cjs/pm-plugins/commands/insert.js +27 -10
  19. package/dist/cjs/pm-plugins/commands/misc.js +29 -9
  20. package/dist/cjs/pm-plugins/commands/selection.js +4 -0
  21. package/dist/cjs/pm-plugins/commands/sort.js +10 -1
  22. package/dist/cjs/pm-plugins/commands/toggle.js +2 -0
  23. package/dist/cjs/pm-plugins/decorations/plugin.js +9 -4
  24. package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +4 -1
  25. package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +19 -10
  26. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +16 -7
  27. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +21 -8
  28. package/dist/cjs/pm-plugins/handlers.js +2 -2
  29. package/dist/cjs/pm-plugins/keymap.js +103 -24
  30. package/dist/cjs/pm-plugins/main.js +22 -11
  31. package/dist/cjs/pm-plugins/table-resizing/commands.js +7 -6
  32. package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +39 -20
  33. package/dist/cjs/pm-plugins/table-resizing/plugin.js +4 -2
  34. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +19 -1
  35. package/dist/cjs/pm-plugins/table-resizing/utils/column-state.js +6 -1
  36. package/dist/cjs/pm-plugins/table-resizing/utils/content-width.js +17 -0
  37. package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +4 -0
  38. package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +2 -0
  39. package/dist/cjs/pm-plugins/table-resizing/utils/resize-column.js +8 -1
  40. package/dist/cjs/pm-plugins/table-resizing/utils/resize-logic.js +10 -2
  41. package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +6 -3
  42. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  43. package/dist/cjs/pm-plugins/table-selection-keymap.js +12 -0
  44. package/dist/cjs/pm-plugins/table-width.js +9 -4
  45. package/dist/cjs/pm-plugins/transforms/column-width.js +8 -5
  46. package/dist/cjs/pm-plugins/transforms/delete-columns.js +2 -0
  47. package/dist/cjs/pm-plugins/transforms/fix-tables.js +24 -8
  48. package/dist/cjs/pm-plugins/transforms/merge.js +7 -0
  49. package/dist/cjs/pm-plugins/transforms/replace-table.js +6 -3
  50. package/dist/cjs/pm-plugins/transforms/split.js +6 -1
  51. package/dist/cjs/pm-plugins/utils/alignment.js +4 -1
  52. package/dist/cjs/pm-plugins/utils/analytics.js +3 -3
  53. package/dist/cjs/pm-plugins/utils/column-controls.js +4 -0
  54. package/dist/cjs/pm-plugins/utils/create.js +2 -2
  55. package/dist/cjs/pm-plugins/utils/decoration.js +24 -6
  56. package/dist/cjs/pm-plugins/utils/dom.js +4 -0
  57. package/dist/cjs/pm-plugins/utils/drag-menu.js +19 -7
  58. package/dist/cjs/pm-plugins/utils/nodes.js +3 -0
  59. package/dist/cjs/pm-plugins/utils/paste.js +4 -1
  60. package/dist/cjs/pm-plugins/utils/row-controls.js +4 -1
  61. package/dist/cjs/tablePlugin.js +24 -18
  62. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -0
  63. package/dist/cjs/ui/DragHandle/HandleIconComponent.js +5 -3
  64. package/dist/cjs/ui/DragHandle/index.js +14 -7
  65. package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +8 -1
  66. package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +4 -0
  67. package/dist/cjs/ui/FloatingContextualButton/index.js +7 -1
  68. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +32 -15
  69. package/dist/cjs/ui/FloatingContextualMenu/index.js +19 -4
  70. package/dist/cjs/ui/FloatingDeleteButton/index.js +27 -5
  71. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +19 -7
  72. package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +15 -2
  73. package/dist/cjs/ui/FloatingDragMenu/index.js +4 -1
  74. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +4 -0
  75. package/dist/cjs/ui/FloatingInsertButton/getPopupOptions.js +6 -0
  76. package/dist/cjs/ui/FloatingInsertButton/index.js +27 -3
  77. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +30 -8
  78. package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  79. package/dist/cjs/ui/TableFloatingColumnControls/index.js +9 -5
  80. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  81. package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +4 -4
  82. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +8 -2
  83. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +9 -5
  84. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +68 -41
  85. package/dist/cjs/ui/TableFloatingControls/index.js +19 -8
  86. package/dist/cjs/ui/common-styles.js +1 -1
  87. package/dist/cjs/ui/event-handlers.js +59 -32
  88. package/dist/cjs/ui/icons/SortingIconWrapper.js +2 -0
  89. package/dist/cjs/ui/toolbar.js +42 -16
  90. package/dist/es2019/nodeviews/ExternalDropTargets.js +5 -2
  91. package/dist/es2019/nodeviews/TableCell.js +5 -0
  92. package/dist/es2019/nodeviews/TableComponent.js +77 -13
  93. package/dist/es2019/nodeviews/TableComponentWithSharedState.js +8 -1
  94. package/dist/es2019/nodeviews/TableContainer.js +14 -4
  95. package/dist/es2019/nodeviews/TableNodeViewBase.js +4 -0
  96. package/dist/es2019/nodeviews/TableResizer.js +33 -4
  97. package/dist/es2019/nodeviews/TableRow.js +45 -1
  98. package/dist/es2019/nodeviews/TableStickyScrollbar.js +20 -2
  99. package/dist/es2019/nodeviews/lazy-node-views.js +16 -4
  100. package/dist/es2019/nodeviews/table.js +47 -12
  101. package/dist/es2019/pm-plugins/commands/clear.js +6 -0
  102. package/dist/es2019/pm-plugins/commands/column-resize.js +16 -7
  103. package/dist/es2019/pm-plugins/commands/commands-with-analytics.js +28 -9
  104. package/dist/es2019/pm-plugins/commands/delete.js +4 -1
  105. package/dist/es2019/pm-plugins/commands/go-to-next-cell.js +2 -0
  106. package/dist/es2019/pm-plugins/commands/hover.js +5 -1
  107. package/dist/es2019/pm-plugins/commands/insert.js +26 -6
  108. package/dist/es2019/pm-plugins/commands/misc.js +25 -5
  109. package/dist/es2019/pm-plugins/commands/selection.js +4 -0
  110. package/dist/es2019/pm-plugins/commands/sort.js +10 -1
  111. package/dist/es2019/pm-plugins/commands/toggle.js +2 -0
  112. package/dist/es2019/pm-plugins/decorations/plugin.js +7 -2
  113. package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +4 -1
  114. package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +14 -5
  115. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +17 -5
  116. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +21 -5
  117. package/dist/es2019/pm-plugins/handlers.js +1 -1
  118. package/dist/es2019/pm-plugins/keymap.js +104 -24
  119. package/dist/es2019/pm-plugins/main.js +16 -5
  120. package/dist/es2019/pm-plugins/table-resizing/commands.js +3 -2
  121. package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +25 -6
  122. package/dist/es2019/pm-plugins/table-resizing/plugin.js +4 -1
  123. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +23 -2
  124. package/dist/es2019/pm-plugins/table-resizing/utils/column-state.js +6 -1
  125. package/dist/es2019/pm-plugins/table-resizing/utils/content-width.js +17 -0
  126. package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +4 -0
  127. package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +2 -0
  128. package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +12 -2
  129. package/dist/es2019/pm-plugins/table-resizing/utils/resize-logic.js +10 -2
  130. package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +9 -3
  131. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +18 -6
  132. package/dist/es2019/pm-plugins/table-selection-keymap.js +12 -0
  133. package/dist/es2019/pm-plugins/table-width.js +7 -2
  134. package/dist/es2019/pm-plugins/transforms/column-width.js +12 -5
  135. package/dist/es2019/pm-plugins/transforms/delete-columns.js +6 -1
  136. package/dist/es2019/pm-plugins/transforms/fix-tables.js +20 -4
  137. package/dist/es2019/pm-plugins/transforms/merge.js +7 -0
  138. package/dist/es2019/pm-plugins/transforms/replace-table.js +5 -2
  139. package/dist/es2019/pm-plugins/transforms/split.js +6 -1
  140. package/dist/es2019/pm-plugins/utils/alignment.js +4 -1
  141. package/dist/es2019/pm-plugins/utils/analytics.js +2 -2
  142. package/dist/es2019/pm-plugins/utils/column-controls.js +4 -0
  143. package/dist/es2019/pm-plugins/utils/create.js +1 -1
  144. package/dist/es2019/pm-plugins/utils/decoration.js +24 -6
  145. package/dist/es2019/pm-plugins/utils/dom.js +4 -0
  146. package/dist/es2019/pm-plugins/utils/drag-menu.js +19 -4
  147. package/dist/es2019/pm-plugins/utils/nodes.js +3 -0
  148. package/dist/es2019/pm-plugins/utils/paste.js +8 -2
  149. package/dist/es2019/pm-plugins/utils/row-controls.js +4 -1
  150. package/dist/es2019/pm-plugins/utils/snapping.js +4 -1
  151. package/dist/es2019/tablePlugin.js +13 -4
  152. package/dist/es2019/ui/ColumnResizeWidget/index.js +2 -0
  153. package/dist/es2019/ui/DragHandle/HandleIconComponent.js +3 -1
  154. package/dist/es2019/ui/DragHandle/index.js +10 -3
  155. package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +8 -1
  156. package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +4 -0
  157. package/dist/es2019/ui/FloatingContextualButton/index.js +7 -1
  158. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +23 -6
  159. package/dist/es2019/ui/FloatingContextualMenu/index.js +19 -4
  160. package/dist/es2019/ui/FloatingDeleteButton/index.js +23 -1
  161. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +15 -3
  162. package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +15 -2
  163. package/dist/es2019/ui/FloatingDragMenu/index.js +4 -1
  164. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +4 -0
  165. package/dist/es2019/ui/FloatingInsertButton/getPopupOptions.js +6 -0
  166. package/dist/es2019/ui/FloatingInsertButton/index.js +26 -2
  167. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +28 -6
  168. package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  169. package/dist/es2019/ui/TableFloatingColumnControls/index.js +7 -2
  170. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  171. package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +2 -2
  172. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +7 -1
  173. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +7 -2
  174. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +32 -6
  175. package/dist/es2019/ui/TableFloatingControls/index.js +14 -3
  176. package/dist/es2019/ui/common-styles.js +7 -0
  177. package/dist/es2019/ui/event-handlers.js +35 -5
  178. package/dist/es2019/ui/icons/SortingIconWrapper.js +2 -0
  179. package/dist/es2019/ui/toolbar.js +58 -14
  180. package/dist/esm/nodeviews/ExternalDropTargets.js +5 -2
  181. package/dist/esm/nodeviews/TableCell.js +5 -0
  182. package/dist/esm/nodeviews/TableComponent.js +75 -11
  183. package/dist/esm/nodeviews/TableComponentWithSharedState.js +8 -1
  184. package/dist/esm/nodeviews/TableContainer.js +14 -4
  185. package/dist/esm/nodeviews/TableNodeViewBase.js +4 -0
  186. package/dist/esm/nodeviews/TableResizer.js +33 -4
  187. package/dist/esm/nodeviews/TableRow.js +45 -1
  188. package/dist/esm/nodeviews/TableStickyScrollbar.js +21 -2
  189. package/dist/esm/nodeviews/lazy-node-views.js +16 -4
  190. package/dist/esm/nodeviews/table.js +47 -12
  191. package/dist/esm/pm-plugins/commands/clear.js +6 -0
  192. package/dist/esm/pm-plugins/commands/column-resize.js +16 -7
  193. package/dist/esm/pm-plugins/commands/commands-with-analytics.js +20 -7
  194. package/dist/esm/pm-plugins/commands/go-to-next-cell.js +2 -0
  195. package/dist/esm/pm-plugins/commands/hover.js +5 -1
  196. package/dist/esm/pm-plugins/commands/insert.js +22 -5
  197. package/dist/esm/pm-plugins/commands/misc.js +25 -5
  198. package/dist/esm/pm-plugins/commands/selection.js +4 -0
  199. package/dist/esm/pm-plugins/commands/sort.js +10 -1
  200. package/dist/esm/pm-plugins/commands/toggle.js +2 -0
  201. package/dist/esm/pm-plugins/decorations/plugin.js +7 -2
  202. package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +4 -1
  203. package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +14 -5
  204. package/dist/esm/pm-plugins/drag-and-drop/commands.js +13 -4
  205. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +17 -4
  206. package/dist/esm/pm-plugins/handlers.js +1 -1
  207. package/dist/esm/pm-plugins/keymap.js +104 -24
  208. package/dist/esm/pm-plugins/main.js +16 -5
  209. package/dist/esm/pm-plugins/table-resizing/commands.js +3 -2
  210. package/dist/esm/pm-plugins/table-resizing/event-handlers.js +25 -6
  211. package/dist/esm/pm-plugins/table-resizing/plugin.js +4 -1
  212. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +19 -1
  213. package/dist/esm/pm-plugins/table-resizing/utils/column-state.js +6 -1
  214. package/dist/esm/pm-plugins/table-resizing/utils/content-width.js +17 -0
  215. package/dist/esm/pm-plugins/table-resizing/utils/dom.js +4 -0
  216. package/dist/esm/pm-plugins/table-resizing/utils/misc.js +2 -0
  217. package/dist/esm/pm-plugins/table-resizing/utils/resize-column.js +8 -1
  218. package/dist/esm/pm-plugins/table-resizing/utils/resize-logic.js +10 -2
  219. package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +5 -2
  220. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +2 -2
  221. package/dist/esm/pm-plugins/table-selection-keymap.js +12 -0
  222. package/dist/esm/pm-plugins/table-width.js +7 -2
  223. package/dist/esm/pm-plugins/transforms/column-width.js +6 -4
  224. package/dist/esm/pm-plugins/transforms/delete-columns.js +2 -0
  225. package/dist/esm/pm-plugins/transforms/fix-tables.js +20 -4
  226. package/dist/esm/pm-plugins/transforms/merge.js +7 -0
  227. package/dist/esm/pm-plugins/transforms/replace-table.js +5 -2
  228. package/dist/esm/pm-plugins/transforms/split.js +6 -1
  229. package/dist/esm/pm-plugins/utils/alignment.js +4 -1
  230. package/dist/esm/pm-plugins/utils/analytics.js +2 -2
  231. package/dist/esm/pm-plugins/utils/column-controls.js +4 -0
  232. package/dist/esm/pm-plugins/utils/create.js +1 -1
  233. package/dist/esm/pm-plugins/utils/decoration.js +24 -6
  234. package/dist/esm/pm-plugins/utils/dom.js +4 -0
  235. package/dist/esm/pm-plugins/utils/drag-menu.js +15 -3
  236. package/dist/esm/pm-plugins/utils/nodes.js +3 -0
  237. package/dist/esm/pm-plugins/utils/paste.js +4 -1
  238. package/dist/esm/pm-plugins/utils/row-controls.js +4 -1
  239. package/dist/esm/tablePlugin.js +11 -4
  240. package/dist/esm/ui/ColumnResizeWidget/index.js +2 -0
  241. package/dist/esm/ui/DragHandle/HandleIconComponent.js +3 -1
  242. package/dist/esm/ui/DragHandle/index.js +10 -3
  243. package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +8 -1
  244. package/dist/esm/ui/FloatingContextualButton/FixedButton.js +4 -0
  245. package/dist/esm/ui/FloatingContextualButton/index.js +7 -1
  246. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +23 -6
  247. package/dist/esm/ui/FloatingContextualMenu/index.js +19 -4
  248. package/dist/esm/ui/FloatingDeleteButton/index.js +23 -1
  249. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +15 -3
  250. package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +15 -2
  251. package/dist/esm/ui/FloatingDragMenu/index.js +4 -1
  252. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +4 -0
  253. package/dist/esm/ui/FloatingInsertButton/getPopupOptions.js +6 -0
  254. package/dist/esm/ui/FloatingInsertButton/index.js +26 -2
  255. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +28 -6
  256. package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  257. package/dist/esm/ui/TableFloatingColumnControls/index.js +6 -2
  258. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  259. package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +2 -2
  260. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +7 -1
  261. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +6 -2
  262. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +65 -38
  263. package/dist/esm/ui/TableFloatingControls/index.js +14 -3
  264. package/dist/esm/ui/common-styles.js +1 -1
  265. package/dist/esm/ui/event-handlers.js +31 -4
  266. package/dist/esm/ui/icons/SortingIconWrapper.js +2 -0
  267. package/dist/esm/ui/toolbar.js +34 -8
  268. package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  269. package/dist/types/pm-plugins/table-resizing/commands.d.ts +1 -1
  270. package/dist/types/pm-plugins/transforms/column-width.d.ts +1 -1
  271. package/dist/types/pm-plugins/utils/collapse.d.ts +2 -1
  272. package/dist/types/ui/FloatingContextualButton/FixedButton.d.ts +1 -1
  273. package/dist/types/ui/FloatingContextualButton/index.d.ts +1 -1
  274. package/dist/types/ui/FloatingDeleteButton/index.d.ts +1 -1
  275. package/dist/types/ui/FloatingDragMenu/index.d.ts +1 -1
  276. package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  277. package/dist/types/ui/TableFloatingColumnControls/index.d.ts +1 -1
  278. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -4
  279. package/dist/types/ui/TableFloatingControls/index.d.ts +3 -3
  280. package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  281. package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +1 -1
  282. package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +1 -1
  283. package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +2 -1
  284. package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +1 -1
  285. package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +1 -1
  286. package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +1 -1
  287. package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +1 -1
  288. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  289. package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +1 -1
  290. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -4
  291. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +3 -3
  292. package/package.json +4 -4
  293. package/src/nodeviews/ExternalDropTargets.tsx +3 -1
  294. package/src/nodeviews/TableCell.ts +4 -0
  295. package/src/nodeviews/TableComponent.tsx +63 -18
  296. package/src/nodeviews/TableComponentWithSharedState.tsx +4 -0
  297. package/src/nodeviews/TableContainer.tsx +7 -1
  298. package/src/nodeviews/TableNodeViewBase.ts +4 -0
  299. package/src/nodeviews/TableResizer.tsx +27 -4
  300. package/src/nodeviews/TableRow.ts +41 -1
  301. package/src/nodeviews/TableStickyScrollbar.ts +14 -0
  302. package/src/nodeviews/__mocks__/OverflowShadowsObserver.ts +2 -0
  303. package/src/nodeviews/__mocks__/OverridableMock.ts +6 -0
  304. package/src/nodeviews/lazy-node-views.ts +8 -0
  305. package/src/nodeviews/table.tsx +30 -4
  306. package/src/pm-plugins/commands/clear.ts +6 -0
  307. package/src/pm-plugins/commands/column-resize.ts +12 -9
  308. package/src/pm-plugins/commands/commands-with-analytics.ts +21 -4
  309. package/src/pm-plugins/commands/delete.ts +2 -0
  310. package/src/pm-plugins/commands/go-to-next-cell.ts +2 -0
  311. package/src/pm-plugins/commands/hover.ts +7 -5
  312. package/src/pm-plugins/commands/insert.ts +15 -1
  313. package/src/pm-plugins/commands/misc.ts +24 -3
  314. package/src/pm-plugins/commands/selection.ts +4 -0
  315. package/src/pm-plugins/commands/sort.ts +9 -1
  316. package/src/pm-plugins/commands/toggle.ts +2 -0
  317. package/src/pm-plugins/decorations/plugin.ts +5 -1
  318. package/src/pm-plugins/decorations/utils/column-resizing.ts +2 -0
  319. package/src/pm-plugins/drag-and-drop/commands-with-analytics.ts +8 -2
  320. package/src/pm-plugins/drag-and-drop/commands.ts +9 -1
  321. package/src/pm-plugins/drag-and-drop/plugin.ts +17 -2
  322. package/src/pm-plugins/handlers.ts +1 -1
  323. package/src/pm-plugins/keymap.ts +54 -0
  324. package/src/pm-plugins/main.ts +12 -5
  325. package/src/pm-plugins/table-resizing/commands.ts +4 -3
  326. package/src/pm-plugins/table-resizing/event-handlers.ts +24 -10
  327. package/src/pm-plugins/table-resizing/plugin.ts +3 -1
  328. package/src/pm-plugins/table-resizing/utils/colgroup.ts +17 -1
  329. package/src/pm-plugins/table-resizing/utils/column-state.ts +4 -0
  330. package/src/pm-plugins/table-resizing/utils/content-width.ts +14 -0
  331. package/src/pm-plugins/table-resizing/utils/dom.ts +4 -0
  332. package/src/pm-plugins/table-resizing/utils/misc.ts +2 -0
  333. package/src/pm-plugins/table-resizing/utils/resize-column.ts +9 -1
  334. package/src/pm-plugins/table-resizing/utils/resize-logic.ts +6 -0
  335. package/src/pm-plugins/table-resizing/utils/resize-state.ts +5 -1
  336. package/src/pm-plugins/table-resizing/utils/scale-table.ts +10 -2
  337. package/src/pm-plugins/table-selection-keymap.ts +8 -0
  338. package/src/pm-plugins/table-width.ts +5 -1
  339. package/src/pm-plugins/transforms/column-width.ts +9 -7
  340. package/src/pm-plugins/transforms/delete-columns.ts +4 -0
  341. package/src/pm-plugins/transforms/fix-tables.ts +13 -6
  342. package/src/pm-plugins/transforms/merge.ts +6 -0
  343. package/src/pm-plugins/transforms/replace-table.ts +3 -1
  344. package/src/pm-plugins/transforms/split.ts +4 -0
  345. package/src/pm-plugins/utils/alignment.ts +2 -0
  346. package/src/pm-plugins/utils/analytics.ts +2 -2
  347. package/src/pm-plugins/utils/collapse.ts +3 -4
  348. package/src/pm-plugins/utils/column-controls.ts +4 -0
  349. package/src/pm-plugins/utils/create.ts +1 -1
  350. package/src/pm-plugins/utils/decoration.ts +12 -0
  351. package/src/pm-plugins/utils/dom.ts +4 -0
  352. package/src/pm-plugins/utils/drag-menu.ts +12 -1
  353. package/src/pm-plugins/utils/nodes.ts +2 -0
  354. package/src/pm-plugins/utils/paste.ts +4 -0
  355. package/src/pm-plugins/utils/row-controls.ts +2 -0
  356. package/src/pm-plugins/utils/snapping.ts +2 -0
  357. package/src/tablePlugin.tsx +13 -15
  358. package/src/tablePluginType.ts +10 -0
  359. package/src/ui/ColumnResizeWidget/index.tsx +2 -0
  360. package/src/ui/DragHandle/HandleIconComponent.tsx +3 -1
  361. package/src/ui/DragHandle/index.tsx +11 -2
  362. package/src/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.tsx +6 -0
  363. package/src/ui/FloatingContextualButton/FixedButton.tsx +5 -1
  364. package/src/ui/FloatingContextualButton/index.tsx +8 -2
  365. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +17 -7
  366. package/src/ui/FloatingContextualMenu/index.tsx +11 -1
  367. package/src/ui/FloatingDeleteButton/index.tsx +23 -4
  368. package/src/ui/FloatingDragMenu/DragMenu.tsx +13 -6
  369. package/src/ui/FloatingDragMenu/DropdownMenu.tsx +10 -0
  370. package/src/ui/FloatingDragMenu/index.tsx +3 -1
  371. package/src/ui/FloatingInsertButton/InsertButton.tsx +4 -0
  372. package/src/ui/FloatingInsertButton/getPopupOptions.ts +4 -0
  373. package/src/ui/FloatingInsertButton/index.tsx +21 -1
  374. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +19 -2
  375. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/index.tsx +2 -0
  376. package/src/ui/TableFloatingColumnControls/index.tsx +8 -4
  377. package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +2 -0
  378. package/src/ui/TableFloatingControls/FloatingControlsWithSelection.tsx +2 -2
  379. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +7 -1
  380. package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +11 -3
  381. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +20 -1
  382. package/src/ui/TableFloatingControls/index.tsx +13 -4
  383. package/src/ui/common-styles.ts +7 -0
  384. package/src/ui/event-handlers.ts +28 -3
  385. package/src/ui/icons/SortingIconWrapper.tsx +2 -0
  386. package/src/ui/toolbar.tsx +43 -11
  387. package/tsconfig.json +0 -1
  388. package/dist/cjs/pm-plugins/decorations/utils/index.js +0 -31
  389. package/dist/cjs/pm-plugins/drag-and-drop/index.js +0 -19
  390. package/dist/cjs/pm-plugins/drag-and-drop/utils/index.js +0 -12
  391. package/dist/cjs/pm-plugins/sticky-headers/index.js +0 -26
  392. package/dist/cjs/pm-plugins/table-resizing/index.js +0 -26
  393. package/dist/cjs/pm-plugins/table-resizing/utils/index.js +0 -176
  394. package/dist/cjs/pm-plugins/transforms/index.js +0 -59
  395. package/dist/cjs/pm-plugins/utils/index.js +0 -359
  396. package/dist/cjs/ui/TableFloatingControls/CornerControls/index.js +0 -25
  397. package/dist/cjs/ui/TableFloatingControls/RowControls/index.js +0 -19
  398. package/dist/cjs/ui/icons/index.js +0 -68
  399. package/dist/es2019/pm-plugins/decorations/utils/index.js +0 -2
  400. package/dist/es2019/pm-plugins/drag-and-drop/index.js +0 -2
  401. package/dist/es2019/pm-plugins/drag-and-drop/utils/index.js +0 -1
  402. package/dist/es2019/pm-plugins/sticky-headers/index.js +0 -3
  403. package/dist/es2019/pm-plugins/table-resizing/index.js +0 -3
  404. package/dist/es2019/pm-plugins/table-resizing/utils/index.js +0 -9
  405. package/dist/es2019/pm-plugins/transforms/index.js +0 -6
  406. package/dist/es2019/pm-plugins/utils/index.js +0 -12
  407. package/dist/es2019/ui/TableFloatingControls/CornerControls/index.js +0 -2
  408. package/dist/es2019/ui/TableFloatingControls/RowControls/index.js +0 -2
  409. package/dist/es2019/ui/icons/index.js +0 -9
  410. package/dist/esm/pm-plugins/decorations/utils/index.js +0 -2
  411. package/dist/esm/pm-plugins/drag-and-drop/index.js +0 -2
  412. package/dist/esm/pm-plugins/drag-and-drop/utils/index.js +0 -1
  413. package/dist/esm/pm-plugins/sticky-headers/index.js +0 -3
  414. package/dist/esm/pm-plugins/table-resizing/index.js +0 -3
  415. package/dist/esm/pm-plugins/table-resizing/utils/index.js +0 -9
  416. package/dist/esm/pm-plugins/transforms/index.js +0 -6
  417. package/dist/esm/pm-plugins/utils/index.js +0 -12
  418. package/dist/esm/ui/TableFloatingControls/CornerControls/index.js +0 -2
  419. package/dist/esm/ui/TableFloatingControls/RowControls/index.js +0 -2
  420. package/dist/esm/ui/icons/index.js +0 -9
  421. package/dist/types/pm-plugins/decorations/utils/index.d.ts +0 -2
  422. package/dist/types/pm-plugins/drag-and-drop/index.d.ts +0 -2
  423. package/dist/types/pm-plugins/drag-and-drop/utils/index.d.ts +0 -1
  424. package/dist/types/pm-plugins/sticky-headers/index.d.ts +0 -4
  425. package/dist/types/pm-plugins/table-resizing/index.d.ts +0 -3
  426. package/dist/types/pm-plugins/table-resizing/utils/index.d.ts +0 -10
  427. package/dist/types/pm-plugins/transforms/index.d.ts +0 -6
  428. package/dist/types/pm-plugins/utils/index.d.ts +0 -13
  429. package/dist/types/ui/TableFloatingControls/CornerControls/index.d.ts +0 -2
  430. package/dist/types/ui/TableFloatingControls/RowControls/index.d.ts +0 -2
  431. package/dist/types/ui/icons/index.d.ts +0 -9
  432. package/dist/types-ts4.5/pm-plugins/decorations/utils/index.d.ts +0 -2
  433. package/dist/types-ts4.5/pm-plugins/drag-and-drop/index.d.ts +0 -2
  434. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/index.d.ts +0 -1
  435. package/dist/types-ts4.5/pm-plugins/sticky-headers/index.d.ts +0 -4
  436. package/dist/types-ts4.5/pm-plugins/table-resizing/index.d.ts +0 -3
  437. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/index.d.ts +0 -10
  438. package/dist/types-ts4.5/pm-plugins/transforms/index.d.ts +0 -6
  439. package/dist/types-ts4.5/pm-plugins/utils/index.d.ts +0 -13
  440. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/index.d.ts +0 -2
  441. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/index.d.ts +0 -2
  442. package/dist/types-ts4.5/ui/icons/index.d.ts +0 -9
  443. package/src/pm-plugins/decorations/utils/index.ts +0 -5
  444. package/src/pm-plugins/drag-and-drop/index.ts +0 -2
  445. package/src/pm-plugins/drag-and-drop/utils/index.ts +0 -1
  446. package/src/pm-plugins/sticky-headers/index.ts +0 -5
  447. package/src/pm-plugins/table-resizing/index.ts +0 -3
  448. package/src/pm-plugins/table-resizing/utils/index.ts +0 -23
  449. package/src/pm-plugins/transforms/index.ts +0 -6
  450. package/src/pm-plugins/utils/index.ts +0 -69
  451. package/src/ui/TableFloatingControls/CornerControls/index.tsx +0 -2
  452. package/src/ui/TableFloatingControls/RowControls/index.tsx +0 -2
  453. package/src/ui/icons/index.ts +0 -9
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,9 +0,0 @@
1
- export { generateColgroup, insertColgroupFromNode, hasTableBeenResized, getColgroupChildrenLength, getResizerMinWidth } from './colgroup';
2
- export { contentWidth } from './content-width';
3
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
4
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
5
- export { getLayoutSize, pointsAtCell, currentColWidth, getTableMaxWidth, getTableElementWidth, getTableContainerElementWidth } from './misc';
6
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
7
- export { scaleTable, previewScaleTable } from './scale-table';
8
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
9
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,12 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createCellHoverDecoration, updateDecorations, createColumnInsertLine, createColumnLineResize, createRowInsertLine } from './decoration';
3
- export { containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, isTableNestedInMoreThanOneNode } from './nodes';
4
- export { transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, getColumnDeleteButtonParams, getColumnIndexMappedToColumnIndexInFirstRow } from './column-controls';
7
- export { getRowHeights, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow } from './row-controls';
8
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
9
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
10
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
11
- export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition } from './merged-cells';
12
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';
@@ -1,2 +0,0 @@
1
- export { buildColumnControlsDecorations, maybeUpdateColumnControlsSelectedDecoration } from './column-controls';
2
- export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
@@ -1,2 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,9 +0,0 @@
1
- export { generateColgroup, insertColgroupFromNode, hasTableBeenResized, getColgroupChildrenLength, getResizerMinWidth } from './colgroup';
2
- export { contentWidth } from './content-width';
3
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
4
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
5
- export { getLayoutSize, pointsAtCell, currentColWidth, getTableMaxWidth, getTableElementWidth, getTableContainerElementWidth } from './misc';
6
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
7
- export { scaleTable, previewScaleTable } from './scale-table';
8
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
9
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,12 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createCellHoverDecoration, updateDecorations, createColumnInsertLine, createColumnLineResize, createRowInsertLine } from './decoration';
3
- export { containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, isTableNestedInMoreThanOneNode } from './nodes';
4
- export { transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, getColumnDeleteButtonParams, getColumnIndexMappedToColumnIndexInFirstRow } from './column-controls';
7
- export { getRowHeights, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow } from './row-controls';
8
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
9
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
10
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
11
- export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition } from './merged-cells';
12
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';
@@ -1,2 +0,0 @@
1
- export { buildColumnControlsDecorations, maybeUpdateColumnControlsSelectedDecoration, } from './column-controls';
2
- export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
@@ -1,2 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,4 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export type { StickyPluginState, RowStickyState } from './types';
4
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,10 +0,0 @@
1
- export { generateColgroup, insertColgroupFromNode, hasTableBeenResized, getColgroupChildrenLength, getResizerMinWidth, } from './colgroup';
2
- export { contentWidth } from './content-width';
3
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
4
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
5
- export { getLayoutSize, pointsAtCell, currentColWidth, getTableMaxWidth, getTableElementWidth, getTableContainerElementWidth, } from './misc';
6
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
7
- export { scaleTable, previewScaleTable } from './scale-table';
8
- export type { ResizeState, ResizeStateWithAnalytics } from './types';
9
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
10
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,13 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createCellHoverDecoration, updateDecorations, createColumnInsertLine, createColumnLineResize, createRowInsertLine, } from './decoration';
3
- export { containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, isTableNestedInMoreThanOneNode, } from './nodes';
4
- export { transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint, } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, getColumnDeleteButtonParams, getColumnIndexMappedToColumnIndexInFirstRow, } from './column-controls';
7
- export { getRowHeights, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
8
- export type { RowParams } from './row-controls';
9
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
10
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
11
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
12
- export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, } from './merged-cells';
13
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';
@@ -1,2 +0,0 @@
1
- export { buildColumnControlsDecorations, maybeUpdateColumnControlsSelectedDecoration, } from './column-controls';
2
- export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
@@ -1,2 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,4 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export type { StickyPluginState, RowStickyState } from './types';
4
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,10 +0,0 @@
1
- export { generateColgroup, insertColgroupFromNode, hasTableBeenResized, getColgroupChildrenLength, getResizerMinWidth, } from './colgroup';
2
- export { contentWidth } from './content-width';
3
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
4
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
5
- export { getLayoutSize, pointsAtCell, currentColWidth, getTableMaxWidth, getTableElementWidth, getTableContainerElementWidth, } from './misc';
6
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
7
- export { scaleTable, previewScaleTable } from './scale-table';
8
- export type { ResizeState, ResizeStateWithAnalytics } from './types';
9
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
10
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,13 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createCellHoverDecoration, updateDecorations, createColumnInsertLine, createColumnLineResize, createRowInsertLine, } from './decoration';
3
- export { containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, isTableNestedInMoreThanOneNode, } from './nodes';
4
- export { transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint, } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, getColumnDeleteButtonParams, getColumnIndexMappedToColumnIndexInFirstRow, } from './column-controls';
7
- export { getRowHeights, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
8
- export type { RowParams } from './row-controls';
9
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
10
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
11
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
12
- export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, } from './merged-cells';
13
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';
@@ -1,5 +0,0 @@
1
- export {
2
- buildColumnControlsDecorations,
3
- maybeUpdateColumnControlsSelectedDecoration,
4
- } from './column-controls';
5
- export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
@@ -1,2 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,5 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export type { StickyPluginState, RowStickyState } from './types';
4
-
5
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,23 +0,0 @@
1
- export {
2
- generateColgroup,
3
- insertColgroupFromNode,
4
- hasTableBeenResized,
5
- getColgroupChildrenLength,
6
- getResizerMinWidth,
7
- } from './colgroup';
8
- export { contentWidth } from './content-width';
9
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
10
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
11
- export {
12
- getLayoutSize,
13
- pointsAtCell,
14
- currentColWidth,
15
- getTableMaxWidth,
16
- getTableElementWidth,
17
- getTableContainerElementWidth,
18
- } from './misc';
19
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
20
- export { scaleTable, previewScaleTable } from './scale-table';
21
- export type { ResizeState, ResizeStateWithAnalytics } from './types';
22
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
23
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,69 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export {
3
- findControlsHoverDecoration,
4
- createControlsHoverDecoration,
5
- createCellHoverDecoration,
6
- updateDecorations,
7
- createColumnInsertLine,
8
- createColumnLineResize,
9
- createRowInsertLine,
10
- } from './decoration';
11
- export {
12
- containsHeaderColumn,
13
- containsHeaderRow,
14
- checkIfHeaderColumnEnabled,
15
- checkIfHeaderRowEnabled,
16
- checkIfNumberColumnEnabled,
17
- getTableWidth,
18
- tablesHaveDifferentColumnWidths,
19
- tablesHaveDifferentNoOfColumns,
20
- tablesHaveDifferentNoOfRows,
21
- isTableNested,
22
- isTableNestedInMoreThanOneNode,
23
- } from './nodes';
24
- export {
25
- transformSliceToRemoveOpenTable,
26
- transformSliceToCorrectEmptyTableCells,
27
- transformSliceToFixHardBreakProblemOnCopyFromCell,
28
- } from './paste';
29
- export {
30
- isCell,
31
- isCornerButton,
32
- isInsertRowButton,
33
- isColumnControlsDecorations,
34
- isTableControlsButton,
35
- isTableContainerOrWrapper,
36
- isRowControlsButton,
37
- isDragColumnFloatingInsertDot,
38
- isDragRowFloatingInsertDot,
39
- isDragCornerButton,
40
- getColumnOrRowIndex,
41
- getMousePositionHorizontalRelativeByElement,
42
- getMousePositionVerticalRelativeByElement,
43
- isResizeHandleDecoration,
44
- hasResizeHandler,
45
- findNearestCellIndexToPoint,
46
- } from './dom';
47
- export {
48
- convertHTMLCellIndexToColumnIndex,
49
- getColumnsWidths,
50
- getColumnDeleteButtonParams,
51
- getColumnIndexMappedToColumnIndexInFirstRow,
52
- } from './column-controls';
53
- export {
54
- getRowHeights,
55
- getRowDeleteButtonParams,
56
- getRowsParams,
57
- getRowClassNames,
58
- copyPreviousRow,
59
- } from './row-controls';
60
- export type { RowParams } from './row-controls';
61
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
62
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
63
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
64
- export {
65
- hasMergedCellsInBetween,
66
- hasMergedCellsInSelection,
67
- findDuplicatePosition,
68
- } from './merged-cells';
69
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';