@atlaskit/editor-plugin-table 7.25.10 → 7.25.12

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 (361) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/commands/clear.js +2 -14
  3. package/dist/cjs/commands/column-resize.js +11 -5
  4. package/dist/cjs/commands/delete.js +2 -1
  5. package/dist/cjs/commands/insert.js +8 -5
  6. package/dist/cjs/commands/selection.js +3 -3
  7. package/dist/cjs/commands-with-analytics.js +23 -52
  8. package/dist/cjs/nodeviews/TableComponent.js +29 -14
  9. package/dist/cjs/nodeviews/TableContainer.js +2 -2
  10. package/dist/cjs/nodeviews/TableResizer.js +1 -1
  11. package/dist/cjs/plugin.js +4 -2
  12. package/dist/cjs/pm-plugins/analytics/plugin.js +2 -1
  13. package/dist/cjs/pm-plugins/decorations/utils/index.js +1 -8
  14. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +3 -3
  15. package/dist/cjs/pm-plugins/drag-and-drop/index.js +1 -14
  16. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +4 -1
  17. package/dist/cjs/pm-plugins/drag-and-drop/utils/index.js +0 -7
  18. package/dist/cjs/pm-plugins/safari-delete-composition-text-issue-workaround.js +2 -2
  19. package/dist/cjs/pm-plugins/sticky-headers/index.js +1 -14
  20. package/dist/cjs/pm-plugins/table-analytics.js +2 -2
  21. package/dist/cjs/pm-plugins/table-resizing/commands.js +2 -2
  22. package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +33 -15
  23. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +15 -6
  24. package/dist/cjs/pm-plugins/table-resizing/utils/consts.js +1 -2
  25. package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +3 -3
  26. package/dist/cjs/pm-plugins/table-resizing/utils/index.js +0 -103
  27. package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +23 -15
  28. package/dist/cjs/pm-plugins/table-resizing/utils/resize-column.js +6 -7
  29. package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +23 -18
  30. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +13 -8
  31. package/dist/cjs/pm-plugins/table-selection-keymap.js +1 -3
  32. package/dist/cjs/pm-plugins/view-mode-sort/utils.js +2 -2
  33. package/dist/cjs/toolbar.js +9 -9
  34. package/dist/cjs/transforms/column-width.js +3 -1
  35. package/dist/cjs/transforms/delete-columns.js +2 -1
  36. package/dist/cjs/transforms/index.js +0 -6
  37. package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +2 -2
  38. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
  39. package/dist/cjs/ui/FloatingDeleteButton/index.js +0 -1
  40. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +5 -4
  41. package/dist/cjs/ui/FloatingDragMenu/index.js +4 -2
  42. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +2 -2
  43. package/dist/cjs/ui/FloatingInsertButton/index.js +3 -2
  44. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -3
  45. package/dist/cjs/ui/TableFloatingColumnControls/index.js +2 -2
  46. package/dist/cjs/ui/icons/index.js +0 -7
  47. package/dist/cjs/utils/column-controls.js +1 -22
  48. package/dist/cjs/utils/dom.js +1 -4
  49. package/dist/cjs/utils/drag-menu.js +3 -2
  50. package/dist/cjs/utils/index.js +0 -108
  51. package/dist/cjs/utils/merged-cells.js +1 -60
  52. package/dist/cjs/utils/nodes.js +2 -2
  53. package/dist/cjs/utils/row-controls.js +1 -8
  54. package/dist/cjs/utils/selection.js +1 -60
  55. package/dist/cjs/utils/table.js +1 -11
  56. package/dist/es2019/commands/clear.js +1 -14
  57. package/dist/es2019/commands/column-resize.js +11 -5
  58. package/dist/es2019/commands/delete.js +2 -2
  59. package/dist/es2019/commands/insert.js +8 -8
  60. package/dist/es2019/commands/selection.js +2 -2
  61. package/dist/es2019/commands-with-analytics.js +6 -36
  62. package/dist/es2019/nodeviews/TableComponent.js +30 -15
  63. package/dist/es2019/nodeviews/TableContainer.js +1 -1
  64. package/dist/es2019/nodeviews/TableResizer.js +1 -1
  65. package/dist/es2019/plugin.js +4 -2
  66. package/dist/es2019/pm-plugins/analytics/plugin.js +2 -1
  67. package/dist/es2019/pm-plugins/decorations/utils/index.js +1 -2
  68. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +2 -2
  69. package/dist/es2019/pm-plugins/drag-and-drop/index.js +1 -2
  70. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +4 -1
  71. package/dist/es2019/pm-plugins/drag-and-drop/utils/index.js +0 -1
  72. package/dist/es2019/pm-plugins/safari-delete-composition-text-issue-workaround.js +1 -1
  73. package/dist/es2019/pm-plugins/sticky-headers/index.js +1 -2
  74. package/dist/es2019/pm-plugins/table-analytics.js +1 -1
  75. package/dist/es2019/pm-plugins/table-resizing/commands.js +1 -1
  76. package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +32 -14
  77. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +15 -7
  78. package/dist/es2019/pm-plugins/table-resizing/utils/consts.js +0 -1
  79. package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +2 -2
  80. package/dist/es2019/pm-plugins/table-resizing/utils/index.js +5 -6
  81. package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +22 -14
  82. package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +6 -7
  83. package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +21 -15
  84. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +10 -7
  85. package/dist/es2019/pm-plugins/table-selection-keymap.js +1 -2
  86. package/dist/es2019/pm-plugins/view-mode-sort/utils.js +1 -1
  87. package/dist/es2019/toolbar.js +8 -8
  88. package/dist/es2019/transforms/column-width.js +3 -2
  89. package/dist/es2019/transforms/delete-columns.js +2 -2
  90. package/dist/es2019/transforms/index.js +1 -1
  91. package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +1 -1
  92. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
  93. package/dist/es2019/ui/FloatingDeleteButton/index.js +1 -1
  94. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -3
  95. package/dist/es2019/ui/FloatingDragMenu/index.js +4 -2
  96. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +1 -1
  97. package/dist/es2019/ui/FloatingInsertButton/index.js +3 -2
  98. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -2
  99. package/dist/es2019/ui/TableFloatingColumnControls/index.js +1 -1
  100. package/dist/es2019/ui/icons/index.js +0 -1
  101. package/dist/es2019/utils/column-controls.js +1 -19
  102. package/dist/es2019/utils/dom.js +0 -1
  103. package/dist/es2019/utils/drag-menu.js +3 -3
  104. package/dist/es2019/utils/index.js +8 -8
  105. package/dist/es2019/utils/merged-cells.js +0 -47
  106. package/dist/es2019/utils/nodes.js +1 -1
  107. package/dist/es2019/utils/row-controls.js +1 -8
  108. package/dist/es2019/utils/selection.js +0 -60
  109. package/dist/es2019/utils/table.js +0 -6
  110. package/dist/esm/commands/clear.js +1 -14
  111. package/dist/esm/commands/column-resize.js +11 -5
  112. package/dist/esm/commands/delete.js +2 -1
  113. package/dist/esm/commands/insert.js +8 -5
  114. package/dist/esm/commands/selection.js +2 -2
  115. package/dist/esm/commands-with-analytics.js +24 -52
  116. package/dist/esm/nodeviews/TableComponent.js +30 -15
  117. package/dist/esm/nodeviews/TableContainer.js +1 -1
  118. package/dist/esm/nodeviews/TableResizer.js +1 -1
  119. package/dist/esm/plugin.js +4 -2
  120. package/dist/esm/pm-plugins/analytics/plugin.js +2 -1
  121. package/dist/esm/pm-plugins/decorations/utils/index.js +1 -2
  122. package/dist/esm/pm-plugins/drag-and-drop/commands.js +2 -2
  123. package/dist/esm/pm-plugins/drag-and-drop/index.js +1 -2
  124. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +4 -1
  125. package/dist/esm/pm-plugins/drag-and-drop/utils/index.js +0 -1
  126. package/dist/esm/pm-plugins/safari-delete-composition-text-issue-workaround.js +1 -1
  127. package/dist/esm/pm-plugins/sticky-headers/index.js +1 -2
  128. package/dist/esm/pm-plugins/table-analytics.js +1 -1
  129. package/dist/esm/pm-plugins/table-resizing/commands.js +1 -1
  130. package/dist/esm/pm-plugins/table-resizing/event-handlers.js +33 -15
  131. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +15 -6
  132. package/dist/esm/pm-plugins/table-resizing/utils/consts.js +0 -1
  133. package/dist/esm/pm-plugins/table-resizing/utils/dom.js +2 -2
  134. package/dist/esm/pm-plugins/table-resizing/utils/index.js +5 -6
  135. package/dist/esm/pm-plugins/table-resizing/utils/misc.js +24 -14
  136. package/dist/esm/pm-plugins/table-resizing/utils/resize-column.js +6 -7
  137. package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +22 -17
  138. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +12 -6
  139. package/dist/esm/pm-plugins/table-selection-keymap.js +1 -2
  140. package/dist/esm/pm-plugins/view-mode-sort/utils.js +1 -1
  141. package/dist/esm/toolbar.js +8 -8
  142. package/dist/esm/transforms/column-width.js +3 -1
  143. package/dist/esm/transforms/delete-columns.js +2 -1
  144. package/dist/esm/transforms/index.js +1 -1
  145. package/dist/esm/ui/FloatingContextualButton/FixedButton.js +1 -1
  146. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +3 -3
  147. package/dist/esm/ui/FloatingDeleteButton/index.js +1 -1
  148. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -3
  149. package/dist/esm/ui/FloatingDragMenu/index.js +4 -2
  150. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +1 -1
  151. package/dist/esm/ui/FloatingInsertButton/index.js +3 -2
  152. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -2
  153. package/dist/esm/ui/TableFloatingColumnControls/index.js +1 -1
  154. package/dist/esm/ui/icons/index.js +0 -1
  155. package/dist/esm/utils/column-controls.js +1 -22
  156. package/dist/esm/utils/dom.js +0 -3
  157. package/dist/esm/utils/drag-menu.js +3 -2
  158. package/dist/esm/utils/index.js +8 -8
  159. package/dist/esm/utils/merged-cells.js +0 -59
  160. package/dist/esm/utils/nodes.js +1 -1
  161. package/dist/esm/utils/row-controls.js +1 -8
  162. package/dist/esm/utils/selection.js +0 -59
  163. package/dist/esm/utils/table.js +0 -9
  164. package/dist/types/commands/clear.d.ts +0 -1
  165. package/dist/types/commands/delete.d.ts +1 -1
  166. package/dist/types/commands/insert.d.ts +4 -4
  167. package/dist/types/commands/selection.d.ts +0 -4
  168. package/dist/types/commands-with-analytics.d.ts +2 -3
  169. package/dist/types/nodeviews/TableComponent.d.ts +1 -1
  170. package/dist/types/nodeviews/TableContainer.d.ts +0 -11
  171. package/dist/types/nodeviews/TableResizer.d.ts +1 -3
  172. package/dist/types/pm-plugins/analytics/actions.d.ts +3 -2
  173. package/dist/types/pm-plugins/decorations/utils/index.d.ts +0 -1
  174. package/dist/types/pm-plugins/decorations/utils/types.d.ts +2 -1
  175. package/dist/types/pm-plugins/drag-and-drop/actions.d.ts +5 -4
  176. package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +1 -6
  177. package/dist/types/pm-plugins/drag-and-drop/index.d.ts +0 -2
  178. package/dist/types/pm-plugins/drag-and-drop/utils/index.d.ts +0 -1
  179. package/dist/types/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -2
  180. package/dist/types/pm-plugins/sticky-headers/index.d.ts +0 -1
  181. package/dist/types/pm-plugins/sticky-headers/types.d.ts +3 -2
  182. package/dist/types/pm-plugins/table-analytics.d.ts +0 -12
  183. package/dist/types/pm-plugins/table-resizing/commands.d.ts +0 -5
  184. package/dist/types/pm-plugins/table-resizing/utils/colgroup.d.ts +3 -2
  185. package/dist/types/pm-plugins/table-resizing/utils/consts.d.ts +0 -1
  186. package/dist/types/pm-plugins/table-resizing/utils/dom.d.ts +0 -2
  187. package/dist/types/pm-plugins/table-resizing/utils/index.d.ts +5 -8
  188. package/dist/types/pm-plugins/table-resizing/utils/misc.d.ts +1 -2
  189. package/dist/types/pm-plugins/table-resizing/utils/resize-column.d.ts +3 -2
  190. package/dist/types/pm-plugins/table-resizing/utils/resize-state.d.ts +3 -5
  191. package/dist/types/pm-plugins/table-resizing/utils/scale-table.d.ts +3 -4
  192. package/dist/types/pm-plugins/table-selection-keymap.d.ts +0 -1
  193. package/dist/types/pm-plugins/view-mode-sort/types.d.ts +2 -1
  194. package/dist/types/pm-plugins/view-mode-sort/utils.d.ts +0 -6
  195. package/dist/types/toolbar.d.ts +1 -14
  196. package/dist/types/transforms/column-width.d.ts +1 -1
  197. package/dist/types/transforms/delete-columns.d.ts +1 -1
  198. package/dist/types/transforms/index.d.ts +1 -1
  199. package/dist/types/ui/FloatingContextualButton/FixedButton.d.ts +1 -2
  200. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
  201. package/dist/types/ui/FloatingContextualMenu/index.d.ts +1 -1
  202. package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +1 -1
  203. package/dist/types/ui/FloatingDeleteButton/index.d.ts +2 -3
  204. package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +1 -2
  205. package/dist/types/ui/FloatingDragMenu/index.d.ts +3 -2
  206. package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +1 -2
  207. package/dist/types/ui/FloatingInsertButton/index.d.ts +1 -0
  208. package/dist/types/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +2 -1
  209. package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  210. package/dist/types/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +2 -1
  211. package/dist/types/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +2 -1
  212. package/dist/types/ui/TableFloatingColumnControls/index.d.ts +2 -2
  213. package/dist/types/ui/TableFloatingControls/NumberColumn/index.d.ts +2 -1
  214. package/dist/types/ui/TableFloatingControls/RowDropTarget/index.d.ts +1 -1
  215. package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
  216. package/dist/types/ui/icons/index.d.ts +0 -1
  217. package/dist/types/utils/column-controls.d.ts +0 -2
  218. package/dist/types/utils/dom.d.ts +0 -1
  219. package/dist/types/utils/drag-menu.d.ts +1 -1
  220. package/dist/types/utils/index.d.ts +8 -8
  221. package/dist/types/utils/merged-cells.d.ts +0 -2
  222. package/dist/types/utils/nodes.d.ts +0 -1
  223. package/dist/types/utils/row-controls.d.ts +0 -1
  224. package/dist/types/utils/selection.d.ts +0 -3
  225. package/dist/types/utils/table.d.ts +0 -2
  226. package/dist/types-ts4.5/commands/clear.d.ts +0 -1
  227. package/dist/types-ts4.5/commands/delete.d.ts +1 -1
  228. package/dist/types-ts4.5/commands/insert.d.ts +4 -4
  229. package/dist/types-ts4.5/commands/selection.d.ts +0 -4
  230. package/dist/types-ts4.5/commands-with-analytics.d.ts +2 -3
  231. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +1 -1
  232. package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +0 -11
  233. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +1 -3
  234. package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +3 -2
  235. package/dist/types-ts4.5/pm-plugins/decorations/utils/index.d.ts +0 -1
  236. package/dist/types-ts4.5/pm-plugins/decorations/utils/types.d.ts +2 -1
  237. package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +5 -4
  238. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +1 -6
  239. package/dist/types-ts4.5/pm-plugins/drag-and-drop/index.d.ts +0 -2
  240. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/index.d.ts +0 -1
  241. package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -2
  242. package/dist/types-ts4.5/pm-plugins/sticky-headers/index.d.ts +0 -1
  243. package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +3 -2
  244. package/dist/types-ts4.5/pm-plugins/table-analytics.d.ts +0 -12
  245. package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +0 -5
  246. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +3 -2
  247. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +0 -1
  248. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/dom.d.ts +0 -2
  249. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/index.d.ts +5 -8
  250. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +1 -2
  251. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-column.d.ts +3 -2
  252. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +3 -5
  253. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +3 -4
  254. package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +0 -1
  255. package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +2 -1
  256. package/dist/types-ts4.5/pm-plugins/view-mode-sort/utils.d.ts +0 -6
  257. package/dist/types-ts4.5/toolbar.d.ts +1 -14
  258. package/dist/types-ts4.5/transforms/column-width.d.ts +1 -1
  259. package/dist/types-ts4.5/transforms/delete-columns.d.ts +1 -1
  260. package/dist/types-ts4.5/transforms/index.d.ts +1 -1
  261. package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +1 -2
  262. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
  263. package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +1 -1
  264. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +1 -1
  265. package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +2 -3
  266. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +1 -2
  267. package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +3 -2
  268. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +1 -2
  269. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +1 -0
  270. package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +2 -1
  271. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  272. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +2 -1
  273. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +2 -1
  274. package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +2 -2
  275. package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +2 -1
  276. package/dist/types-ts4.5/ui/TableFloatingControls/RowDropTarget/index.d.ts +1 -1
  277. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +1 -1
  278. package/dist/types-ts4.5/ui/icons/index.d.ts +0 -1
  279. package/dist/types-ts4.5/utils/column-controls.d.ts +0 -2
  280. package/dist/types-ts4.5/utils/dom.d.ts +0 -1
  281. package/dist/types-ts4.5/utils/drag-menu.d.ts +1 -1
  282. package/dist/types-ts4.5/utils/index.d.ts +8 -8
  283. package/dist/types-ts4.5/utils/merged-cells.d.ts +0 -2
  284. package/dist/types-ts4.5/utils/nodes.d.ts +0 -1
  285. package/dist/types-ts4.5/utils/row-controls.d.ts +0 -1
  286. package/dist/types-ts4.5/utils/selection.d.ts +0 -3
  287. package/dist/types-ts4.5/utils/table.d.ts +0 -2
  288. package/package.json +3 -3
  289. package/src/commands/clear.ts +0 -14
  290. package/src/commands/column-resize.ts +19 -6
  291. package/src/commands/delete.ts +2 -0
  292. package/src/commands/insert.ts +8 -0
  293. package/src/commands/selection.ts +1 -1
  294. package/src/commands-with-analytics.ts +5 -40
  295. package/src/nodeviews/TableComponent.tsx +43 -9
  296. package/src/nodeviews/TableContainer.tsx +1 -1
  297. package/src/nodeviews/TableResizer.tsx +2 -4
  298. package/src/plugin.tsx +2 -0
  299. package/src/pm-plugins/analytics/actions.ts +2 -2
  300. package/src/pm-plugins/analytics/plugin.ts +2 -1
  301. package/src/pm-plugins/decorations/utils/index.ts +0 -1
  302. package/src/pm-plugins/decorations/utils/types.ts +1 -1
  303. package/src/pm-plugins/drag-and-drop/actions.ts +4 -4
  304. package/src/pm-plugins/drag-and-drop/commands.ts +2 -2
  305. package/src/pm-plugins/drag-and-drop/index.ts +0 -3
  306. package/src/pm-plugins/drag-and-drop/plugin.ts +4 -0
  307. package/src/pm-plugins/drag-and-drop/utils/index.ts +0 -2
  308. package/src/pm-plugins/safari-delete-composition-text-issue-workaround.ts +1 -1
  309. package/src/pm-plugins/sticky-headers/index.ts +0 -1
  310. package/src/pm-plugins/sticky-headers/types.ts +2 -2
  311. package/src/pm-plugins/table-analytics.ts +1 -1
  312. package/src/pm-plugins/table-resizing/commands.ts +1 -1
  313. package/src/pm-plugins/table-resizing/event-handlers.ts +39 -15
  314. package/src/pm-plugins/table-resizing/utils/colgroup.ts +18 -7
  315. package/src/pm-plugins/table-resizing/utils/consts.ts +0 -1
  316. package/src/pm-plugins/table-resizing/utils/dom.ts +2 -5
  317. package/src/pm-plugins/table-resizing/utils/index.ts +4 -30
  318. package/src/pm-plugins/table-resizing/utils/misc.ts +25 -17
  319. package/src/pm-plugins/table-resizing/utils/resize-column.ts +14 -13
  320. package/src/pm-plugins/table-resizing/utils/resize-state.ts +28 -21
  321. package/src/pm-plugins/table-resizing/utils/scale-table.ts +18 -6
  322. package/src/pm-plugins/table-selection-keymap.ts +0 -2
  323. package/src/pm-plugins/view-mode-sort/types.ts +1 -1
  324. package/src/pm-plugins/view-mode-sort/utils.ts +1 -5
  325. package/src/toolbar.tsx +8 -5
  326. package/src/transforms/column-width.ts +2 -0
  327. package/src/transforms/delete-columns.ts +2 -0
  328. package/src/transforms/index.ts +1 -1
  329. package/src/ui/FloatingContextualButton/FixedButton.tsx +2 -2
  330. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +5 -2
  331. package/src/ui/FloatingContextualMenu/index.tsx +1 -1
  332. package/src/ui/FloatingDeleteButton/DeleteButton.tsx +1 -1
  333. package/src/ui/FloatingDeleteButton/index.tsx +2 -2
  334. package/src/ui/FloatingDragMenu/DragMenu.tsx +4 -1
  335. package/src/ui/FloatingDragMenu/index.tsx +4 -1
  336. package/src/ui/FloatingInsertButton/InsertButton.tsx +2 -2
  337. package/src/ui/FloatingInsertButton/index.tsx +3 -0
  338. package/src/ui/FloatingToolbarLabel/FloatingToolbarLabel.tsx +1 -1
  339. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +1 -3
  340. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.tsx +1 -1
  341. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/index.tsx +1 -1
  342. package/src/ui/TableFloatingColumnControls/index.tsx +2 -2
  343. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +1 -1
  344. package/src/ui/TableFloatingControls/RowDropTarget/index.tsx +1 -1
  345. package/src/ui/TableFloatingControls/index.tsx +1 -1
  346. package/src/ui/icons/index.ts +0 -1
  347. package/src/utils/column-controls.ts +2 -38
  348. package/src/utils/dom.ts +0 -4
  349. package/src/utils/drag-menu.ts +3 -0
  350. package/src/utils/index.ts +1 -22
  351. package/src/utils/merged-cells.ts +0 -62
  352. package/src/utils/nodes.ts +1 -1
  353. package/src/utils/row-controls.ts +1 -19
  354. package/src/utils/selection.ts +0 -84
  355. package/src/utils/table.ts +0 -8
  356. package/dist/cjs/utils/transforms.js +0 -11
  357. package/dist/es2019/utils/transforms.js +0 -5
  358. package/dist/esm/utils/transforms.js +0 -5
  359. package/dist/types/utils/transforms.d.ts +0 -2
  360. package/dist/types-ts4.5/utils/transforms.d.ts +0 -2
  361. package/src/utils/transforms.ts +0 -10
@@ -1,15 +1,9 @@
1
- import { SortOrder } from '@atlaskit/editor-common/types';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
2
  import type { TableSortMeta } from './types';
5
3
  export declare const unsort: (oldOrder: {
6
4
  index: number;
7
5
  value: number;
8
6
  }[], tableElement: HTMLElement) => void;
9
- export declare const getSortOrderFromTable: (tableNode: PMNode, sortIndex: number, direction: SortOrder) => {
10
- value: number;
11
- index: number;
12
- }[];
13
7
  export declare const toggleSort: (view: EditorView, event: Event, pluginState: TableSortMeta) => void;
14
8
  export declare const getTableElements: (tableId: string) => {
15
9
  tbody: HTMLTableSectionElement | null | undefined;
@@ -1,24 +1,11 @@
1
- /// <reference types="react" />
2
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
2
  import type { Command, FloatingToolbarDropdown, FloatingToolbarHandler, FloatingToolbarItem, GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
6
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
5
  import { Rect } from '@atlaskit/editor-tables/table-map';
8
6
  import type { TablePluginOptions } from './plugin';
9
- import type { AlignmentOptions, PluginConfig, PluginInjectionAPI, ToolbarMenuConfig, ToolbarMenuContext, ToolbarMenuState } from './types';
7
+ import type { PluginConfig, PluginInjectionAPI, ToolbarMenuConfig, ToolbarMenuContext, ToolbarMenuState } from './types';
10
8
  export declare const getToolbarMenuConfig: (config: ToolbarMenuConfig, state: ToolbarMenuState, { formatMessage }: ToolbarMenuContext, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingWithFixedColumnWidthsOptionShown?: boolean, areTableColumnWidthsFixed?: boolean) => FloatingToolbarItem<Command>;
11
9
  export declare const getToolbarCellOptionsConfig: (editorState: EditorState, editorView: EditorView | undefined | null, initialSelectionRect: Rect, { formatMessage }: ToolbarMenuContext, getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => FloatingToolbarDropdown<Command>;
12
10
  export declare const getClosestSelectionRect: (state: EditorState) => Rect | undefined;
13
- export declare const getClosestSelectionOrTableRect: (state: EditorState) => Rect | undefined;
14
11
  export declare const getToolbarConfig: (getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, getEditorFeatureFlags: GetEditorFeatureFlags, getEditorView: () => EditorView | null, options?: TablePluginOptions, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => (config: PluginConfig) => FloatingToolbarHandler;
15
- export declare const getDistributeConfig: (getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean) => Command;
16
- type AlignmentIcon = {
17
- id?: string;
18
- value: AlignmentOptions;
19
- icon: React.ComponentClass<any>;
20
- };
21
- export declare const getAlignmentOptionsConfig: (editorState: EditorState, { formatMessage }: ToolbarMenuContext, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, getEditorContainerWidth: GetEditorContainerWidth, getDomRef: (editorView: EditorView) => HTMLElement | undefined, editorView: EditorView | null, shouldUseIncreasedScalingPercent: boolean, isFullWidthEditor?: boolean, isCommentEditor?: boolean) => Array<FloatingToolbarDropdown<Command>>;
22
- export declare const getSelectedAlignmentIcon: (alignmentIcons: AlignmentIcon[], selectedNode: PMNode) => AlignmentIcon | undefined;
23
- export declare const isLayoutOptionDisabled: (selectedNode: PMNode, getEditorContainerWidth: GetEditorContainerWidth, getDomRef: (editorView: EditorView) => HTMLElement | undefined, editorView: EditorView | null, shouldUseIncreasedScalingPercent: boolean, isFullWidthEditor: boolean | undefined) => boolean;
24
- export {};
@@ -22,4 +22,4 @@ export declare const updateColumnWidths: (resizeState: ResizeState, table: PMNod
22
22
  * @param view
23
23
  * @returns Updated transaction with rescaled columns for a given table
24
24
  */
25
- export declare const rescaleColumns: (isTableScalingEnabled: boolean | undefined, isTableFixedColumnWidthsOptionEnabled: boolean | undefined, shouldUseIncreasedScalingPercent: boolean | undefined, api: PluginInjectionAPI | undefined | null) => (table: ContentNodeWithPos, view: EditorView | undefined) => (tr: Transaction) => Transaction;
25
+ export declare const rescaleColumns: (isTableScalingEnabled: boolean | undefined, isTableFixedColumnWidthsOptionEnabled: boolean | undefined, shouldUseIncreasedScalingPercent: boolean | undefined, api: PluginInjectionAPI | undefined | null, isCommentEditor?: boolean) => (table: ContentNodeWithPos, view: EditorView | undefined) => (tr: Transaction) => Transaction;
@@ -2,4 +2,4 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { Rect } from '@atlaskit/editor-tables/table-map';
4
4
  import type { PluginInjectionAPI } from '../types';
5
- export declare const deleteColumns: (rect: Rect, allowCustomStep: boolean, api: PluginInjectionAPI | undefined | null, view?: EditorView, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => (tr: Transaction) => Transaction;
5
+ export declare const deleteColumns: (rect: Rect, allowCustomStep: boolean, api: PluginInjectionAPI | undefined | null, view?: EditorView, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (tr: Transaction) => Transaction;
@@ -1,5 +1,5 @@
1
1
  export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells, mergeEmptyColumns } from './merge';
2
+ export { mergeCells, canMergeCells } from './merge';
3
3
  export { deleteColumns } from './delete-columns';
4
4
  export { deleteRows } from './delete-rows';
5
5
  export { updateColumnWidths } from './column-width';
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { RowStickyState } from '../../pm-plugins/sticky-headers';
3
- export declare const BUTTON_WIDTH = 20;
4
- export interface Props {
3
+ interface Props {
5
4
  children: React.ReactNode;
6
5
  mountTo: HTMLElement;
7
6
  offset: number;
@@ -10,7 +10,7 @@ import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/e
10
10
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
11
11
  import type { Rect } from '@atlaskit/editor-tables/table-map';
12
12
  import type { PluginInjectionAPI } from '../../types';
13
- export interface Props {
13
+ interface Props {
14
14
  editorView: EditorView;
15
15
  isOpen: boolean;
16
16
  selectionRect: Rect;
@@ -28,7 +28,7 @@ export interface Props {
28
28
  isCellMenuOpenByKeyboard?: boolean;
29
29
  isCommentEditor?: boolean;
30
30
  }
31
- export interface State {
31
+ interface State {
32
32
  isSubmenuOpen: boolean;
33
33
  isOpenAllowed: boolean;
34
34
  }
@@ -7,7 +7,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
7
7
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
8
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
9
  import type { PluginConfig, PluginInjectionAPI } from '../../types';
10
- export interface Props {
10
+ interface Props {
11
11
  editorView: EditorView;
12
12
  isOpen: boolean;
13
13
  getEditorContainerWidth: GetEditorContainerWidth;
@@ -1,7 +1,7 @@
1
1
  import type { SyntheticEvent } from 'react';
2
2
  import React from 'react';
3
3
  import type { MessageDescriptor, WrappedComponentProps } from 'react-intl-next';
4
- export interface ButtonProps {
4
+ interface ButtonProps {
5
5
  removeLabel: MessageDescriptor;
6
6
  style?: object;
7
7
  onClick?: (event: SyntheticEvent) => void;
@@ -3,7 +3,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { RowStickyState } from '../../pm-plugins/sticky-headers';
6
- import type { PluginInjectionAPI, TableDirection } from '../../types';
6
+ import type { PluginInjectionAPI } from '../../types';
7
7
  import type { CellSelectionType } from './types';
8
8
  export interface Props {
9
9
  editorView: EditorView;
@@ -17,7 +17,7 @@ export interface Props {
17
17
  isNumberColumnEnabled?: boolean;
18
18
  editorAnalyticsAPI?: EditorAnalyticsAPI;
19
19
  }
20
- export interface State {
20
+ interface State {
21
21
  selectionType?: CellSelectionType;
22
22
  left: number;
23
23
  top: number;
@@ -25,7 +25,6 @@ export interface State {
25
25
  position?: string;
26
26
  scrollLeft: number;
27
27
  }
28
- export declare function getSelectionType(selection: Selection): TableDirection | undefined;
29
28
  declare class FloatingDeleteButton extends Component<Props, State> {
30
29
  static displayName: string;
31
30
  wrapper: HTMLElement | null;
@@ -4,7 +4,6 @@
4
4
  */
5
5
  /** @jsxFrag */
6
6
  import React from 'react';
7
- import { jsx } from '@emotion/react';
8
7
  import type { WrappedComponentProps } from 'react-intl-next';
9
8
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
10
9
  import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
@@ -35,8 +34,8 @@ type DragMenuProps = {
35
34
  isTableFixedColumnWidthsOptionEnabled?: boolean;
36
35
  tableSortColumnReorder?: boolean;
37
36
  ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
37
+ isCommentEditor?: boolean;
38
38
  };
39
- export declare const DragMenu: React.MemoExoticComponent<({ direction, index, target, isOpen, editorView, tableNode, targetCellPosition, getEditorContainerWidth, api, editorAnalyticsAPI, pluginConfig, intl: { formatMessage }, fitHeight, fitWidth, mountPoint, scrollableElement, boundariesElement, isTableScalingEnabled, tableDuplicateCellColouring, shouldUseIncreasedScalingPercent, isTableFixedColumnWidthsOptionEnabled, tableSortColumnReorder, ariaNotifyPlugin, }: DragMenuProps & WrappedComponentProps) => jsx.JSX.Element | null>;
40
39
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
41
40
  WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
42
41
  };
@@ -6,7 +6,7 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { RowStickyState } from '../../pm-plugins/sticky-headers';
8
8
  import type { PluginConfig, PluginInjectionAPI, TableDirection } from '../../types';
9
- export interface Props {
9
+ interface Props {
10
10
  editorView: EditorView;
11
11
  isOpen: boolean;
12
12
  tableRef?: HTMLTableElement;
@@ -25,9 +25,10 @@ export interface Props {
25
25
  isTableScalingEnabled?: boolean;
26
26
  getEditorFeatureFlags?: GetEditorFeatureFlags;
27
27
  ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
28
+ isCommentEditor?: boolean;
28
29
  }
29
30
  declare const FloatingDragMenu: {
30
- ({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, tableNode, direction, index, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, stickyHeaders, pluginConfig, isTableScalingEnabled, getEditorFeatureFlags, ariaNotifyPlugin, api, }: Props): JSX.Element | null;
31
+ ({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, tableNode, direction, index, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, stickyHeaders, pluginConfig, isTableScalingEnabled, getEditorFeatureFlags, ariaNotifyPlugin, api, isCommentEditor, }: Props): JSX.Element | null;
31
32
  displayName: string;
32
33
  };
33
34
  export default FloatingDragMenu;
@@ -2,14 +2,13 @@ import type { SyntheticEvent } from 'react';
2
2
  import React from 'react';
3
3
  import type { WrappedComponentProps } from 'react-intl-next';
4
4
  import type { TableDirection } from '../../types';
5
- export interface ButtonProps {
5
+ interface ButtonProps {
6
6
  type: TableDirection;
7
7
  tableRef: HTMLElement;
8
8
  onMouseDown: (event: SyntheticEvent<HTMLButtonElement>) => void;
9
9
  hasStickyHeaders: boolean;
10
10
  isChromelessEditor?: boolean;
11
11
  }
12
- export declare const InsertButtonForDragAndDrop: ({ onMouseDown, tableRef, type, intl: { formatMessage }, hasStickyHeaders, isChromelessEditor, }: ButtonProps & WrappedComponentProps) => JSX.Element;
13
12
  export declare const DragAndDropInsertButton: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
14
13
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
15
14
  };
@@ -25,6 +25,7 @@ export interface Props {
25
25
  editorAnalyticsAPI?: EditorAnalyticsAPI;
26
26
  getEditorFeatureFlags?: GetEditorFeatureFlags;
27
27
  isChromelessEditor?: boolean;
28
+ isCommentEditor?: boolean;
28
29
  }
29
30
  export declare class FloatingInsertButton extends React.Component<Props & WrappedComponentProps, any> {
30
31
  static displayName: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface Props {
2
+ interface Props {
3
3
  target: HTMLElement;
4
4
  content: React.ReactNode;
5
5
  alignX?: 'left' | 'center' | 'right';
@@ -10,3 +10,4 @@ export interface Props {
10
10
  offset?: [number, number];
11
11
  }
12
12
  export declare const FloatingToolbarLabel: React.MemoExoticComponent<(props: Props) => JSX.Element>;
13
+ export {};
@@ -3,7 +3,7 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { TablePlugin } from '../../../plugin';
5
5
  import type { CellHoverMeta } from '../../../types';
6
- export interface ColumnControlsProps {
6
+ interface ColumnControlsProps {
7
7
  editorView: EditorView;
8
8
  tableActive?: boolean;
9
9
  isInDanger?: boolean;
@@ -102,4 +102,4 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
102
102
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
103
103
  }> | undefined;
104
104
  }) => JSX.Element;
105
- export default ColumnControls;
105
+ export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export interface Props {
2
+ interface Props {
3
3
  index: number;
4
4
  localId?: string;
5
5
  width?: number;
@@ -7,3 +7,4 @@ export interface Props {
7
7
  marginTop?: number;
8
8
  }
9
9
  export declare const ColumnDropTarget: ({ index, localId, width, height, marginTop }: Props) => JSX.Element;
10
+ export {};
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export interface Props {
2
+ interface Props {
3
3
  tableRef: HTMLTableElement;
4
4
  tableHeight?: number;
5
5
  localId?: string;
@@ -8,3 +8,4 @@ export interface Props {
8
8
  getScrollOffset?: () => number;
9
9
  }
10
10
  export declare const ColumnDropTargets: ({ tableRef, tableHeight, localId, colWidths, isHeaderSticky, getScrollOffset, }: Props) => JSX.Element | null;
11
+ export {};
@@ -6,7 +6,7 @@ import type { Selection } from '@atlaskit/editor-prosemirror/state';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { RowStickyState } from '../../pm-plugins/sticky-headers';
8
8
  import type { CellHoverMeta, PluginInjectionAPI } from '../../types';
9
- export interface Props {
9
+ interface Props {
10
10
  editorView: EditorView;
11
11
  getEditorFeatureFlags: GetEditorFeatureFlags;
12
12
  selection?: Selection;
@@ -29,5 +29,5 @@ export interface Props {
29
29
  api?: PluginInjectionAPI;
30
30
  isChromelessEditor?: boolean;
31
31
  }
32
- export declare const TableFloatingColumnControls: ({ editorView, tableRef, getNode, tableActive, hasHeaderRow, hoveredCell, isResizing, stickyHeader, selection, isInDanger, isTableHovered, tableContainerWidth, isNumberColumnEnabled, getScrollOffset, tableWrapperHeight, api, isChromelessEditor, }: Props) => JSX.Element | null;
32
+ declare const TableFloatingColumnControls: ({ editorView, tableRef, getNode, tableActive, hasHeaderRow, hoveredCell, isResizing, stickyHeader, selection, isInDanger, isTableHovered, tableContainerWidth, isNumberColumnEnabled, getScrollOffset, tableWrapperHeight, api, isChromelessEditor, }: Props) => JSX.Element | null;
33
33
  export default TableFloatingColumnControls;
@@ -1,6 +1,6 @@
1
1
  import { Component } from 'react';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- export interface Props {
3
+ interface Props {
4
4
  editorView: EditorView;
5
5
  tableRef: HTMLTableElement;
6
6
  tableActive?: boolean;
@@ -22,3 +22,4 @@ export default class NumberColumn extends Component<Props, any> {
22
22
  private getCellStyles;
23
23
  private getClassNames;
24
24
  }
25
+ export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export type RowDropTargetProps = {
2
+ type RowDropTargetProps = {
3
3
  index: number;
4
4
  localId?: string;
5
5
  style?: React.CSSProperties;
@@ -7,7 +7,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { TablePlugin } from '../../plugin';
8
8
  import type { RowStickyState } from '../../pm-plugins/sticky-headers';
9
9
  import type { CellHoverMeta } from '../../types';
10
- export interface TableFloatingControlsProps {
10
+ interface TableFloatingControlsProps {
11
11
  editorView: EditorView;
12
12
  selection?: Selection;
13
13
  tableRef?: HTMLTableElement;
@@ -1,5 +1,4 @@
1
1
  export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragInMotionIcon } from './DragInMotionIcon';
3
2
  export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
4
3
  export { MinimisedHandleIcon } from './MinimisedHandle';
5
4
  export { MergeCellsIcon } from './MergeCellsIcon';
@@ -2,12 +2,10 @@ import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import { TableMap } from '@atlaskit/editor-tables/table-map';
4
4
  export declare const getColumnsWidths: (view: EditorView) => Array<number | undefined>;
5
- export declare const isColumnDeleteButtonVisible: (selection: Selection) => boolean;
6
5
  export declare const getColumnDeleteButtonParams: (columnsWidths: Array<number | undefined>, selection: Selection) => {
7
6
  left: number;
8
7
  indexes: number[];
9
8
  } | null;
10
- export declare const getColumnClassNames: (index: number, selection: Selection, hoveredColumns?: number[], isInDanger?: boolean, isResizing?: boolean) => string;
11
9
  export declare const colWidthsForRow: (tr: HTMLTableRowElement) => string;
12
10
  export declare const convertHTMLCellIndexToColumnIndex: (htmlColIndex: number, htmlRowIndex: number, tableMap: TableMap) => number;
13
11
  export declare const getColumnIndexMappedToColumnIndexInFirstRow: (convertedColIndex: number, htmlRowIndex: number, tableMap: TableMap) => number;
@@ -8,7 +8,6 @@ export declare const isResizeHandleDecoration: (node: HTMLElement | null) => boo
8
8
  export declare const isTableControlsButton: (node: HTMLElement | null) => boolean;
9
9
  export declare const isTableContainerOrWrapper: (node: HTMLElement | null) => boolean;
10
10
  /** drag-and-drop classes */
11
- export declare const isDragRowControlsButton: (node: HTMLElement | null) => true | HTMLElement | null;
12
11
  export declare const isDragRowFloatingInsertDot: (node: HTMLElement | null) => boolean;
13
12
  export declare const isDragColumnFloatingInsertDot: (node: HTMLElement | null) => boolean;
14
13
  export declare const isDragCornerButton: (node: HTMLElement | null) => boolean;
@@ -14,4 +14,4 @@ export interface DragMenuConfig extends Omit<DropdownOptionT<Command>, 'icon'> {
14
14
  icon?: React.ComponentType<React.PropsWithChildren<IconProps>>;
15
15
  keymap?: string;
16
16
  }
17
- export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, hasMergedCellsInTable: boolean, editorView: EditorView, api: PluginInjectionAPI | undefined | null, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, tableDuplicateCellColouring?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, tableSortColumnReorder?: boolean, ariaNotifyPlugin?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined) => DragMenuConfig[];
17
+ export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, hasMergedCellsInTable: boolean, editorView: EditorView, api: PluginInjectionAPI | undefined | null, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, tableDuplicateCellColouring?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, tableSortColumnReorder?: boolean, ariaNotifyPlugin?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined, isCommentEditor?: boolean) => DragMenuConfig[];
@@ -1,13 +1,13 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes, normalizeSelection, isSelectionUpdated, } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createColumnControlsDecoration, createColumnSelectedDecoration, createCellHoverDecoration, updateDecorations, createResizeHandleDecoration, createColumnInsertLine, createColumnLineResize, createRowInsertLine, } from './decoration';
3
- export { isIsolating, containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, anyChildCellMergedAcrossRow, supportedHeaderRow, } from './nodes';
4
- export { unwrapContentFromTable, removeTableFromFirstChild, removeTableFromLastChild, transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint, } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, isColumnDeleteButtonVisible, getColumnDeleteButtonParams, getColumnClassNames, getColumnIndexMappedToColumnIndexInFirstRow, } from './column-controls';
7
- export { getRowHeights, isRowDeleteButtonVisible, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
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, } 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
8
  export type { RowParams } from './row-controls';
9
9
  export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
10
10
  export { getMergedCellsPositions, getAssistiveMessage } from './table';
11
11
  export { updatePluginStateDecorations } from './update-plugin-state-decorations';
12
- export { hasMergedCellsInColumn, hasMergedCellsInRow, hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, checkEdgeHasMergedCells, } from './merged-cells';
12
+ export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, } from './merged-cells';
13
13
  export { createTableWithWidth } from './create';
@@ -1,8 +1,6 @@
1
1
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import { TableMap } from '@atlaskit/editor-tables';
3
3
  type MergeType = 'row' | 'column';
4
- export declare const hasMergedCellsInColumn: (columnIndexes: number | number[]) => (selection: Selection) => boolean;
5
- export declare const hasMergedCellsInRow: (rowIndexes: number | number[]) => (selection: Selection) => boolean;
6
4
  export declare const hasMergedCellsInBetween: (indexes: number[], type: MergeType) => (selection: Selection) => boolean;
7
5
  export declare const hasMergedCellsWithColumnNextToColumnIndex: (colIndex: number, selection: Selection) => boolean;
8
6
  export declare const hasMergedCellsWithRowNextToRowIndex: (rowIndex: number, selection: Selection) => boolean;
@@ -11,7 +11,6 @@ export declare const tablesHaveDifferentColumnWidths: (currentTable: PmNode, pre
11
11
  export declare const tablesHaveDifferentNoOfColumns: (currentTable: PmNode, previousTable: PmNode) => boolean;
12
12
  export declare const tablesHaveDifferentNoOfRows: (currentTable: PmNode, previousTable: PmNode) => boolean;
13
13
  export declare const isTableNested: (state: EditorState, tablePos?: number) => boolean;
14
- export declare const anyChildCellMergedAcrossRow: (node: PmNode) => boolean;
15
14
  /**
16
15
  * Check if a given node is a header row with this definition:
17
16
  * - all children are tableHeader cells
@@ -6,7 +6,6 @@ export interface RowParams {
6
6
  height: number;
7
7
  }
8
8
  export declare const getRowHeights: (tableRef: HTMLTableElement) => number[];
9
- export declare const isRowDeleteButtonVisible: (selection: Selection) => boolean;
10
9
  export declare const getRowDeleteButtonParams: (rowsHeights: Array<number | undefined>, selection: Selection, offsetTop?: number) => {
11
10
  top: number;
12
11
  indexes: number[];
@@ -1,6 +1,3 @@
1
- import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
2
1
  import type { Rect } from '@atlaskit/editor-tables/table-map';
3
- export declare const isSelectionUpdated: (oldSelection: Selection, newSelection?: Selection) => boolean;
4
- export declare const normalizeSelection: (tr: Transaction) => Transaction;
5
2
  export declare const getSelectedColumnIndexes: (selectionRect: Rect) => number[];
6
3
  export declare const getSelectedRowIndexes: (selectionRect: Rect) => number[];
@@ -1,7 +1,5 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
2
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { Rect } from '@atlaskit/editor-tables/table-map';
5
4
  export declare const getMergedCellsPositions: (tr: Transaction) => number[];
6
- export declare const colsToRect: (cols: Array<number>, noOfRows: number) => Rect;
7
5
  export declare const getAssistiveMessage: (prevTableNode: PmNode, currentTableNode: PmNode, intl: IntlShape) => string;
@@ -1,3 +1,2 @@
1
1
  import type { Command } from '@atlaskit/editor-common/types';
2
2
  export declare const clearMultipleCells: (targetCellPosition?: number) => Command;
3
- export declare const clearSelection: Command;
@@ -1,4 +1,4 @@
1
1
  import type { Command } from '@atlaskit/editor-common/types';
2
2
  import type { Rect } from '@atlaskit/editor-tables/table-map';
3
3
  import type { PluginInjectionAPI } from '../types';
4
- export declare const deleteColumnsCommand: (rect: Rect, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Command;
4
+ export declare const deleteColumnsCommand: (rect: Rect, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
@@ -4,10 +4,10 @@ import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
4
4
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { PluginInjectionAPI } from '../types';
7
- export declare function addColumnAt(api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean): (column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined) => (tr: Transaction) => Transaction;
8
- export declare const addColumnBefore: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Command;
9
- export declare const addColumnAfter: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Command;
10
- export declare const insertColumn: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => (column: number) => Command;
7
+ export declare function addColumnAt(api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean): (column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined) => (tr: Transaction) => Transaction;
8
+ export declare const addColumnBefore: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
9
+ export declare const addColumnAfter: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
10
+ export declare const insertColumn: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isCellBackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (column: number) => Command;
11
11
  export declare const insertRow: (row: number, moveCursorToTheNewRow: boolean, isCellBackgroundDuplicated?: boolean) => Command;
12
12
  export declare const createTable: (isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined | null, isCommentEditor?: boolean, isTableResizingEnabled?: boolean) => Command;
13
13
  export declare const insertTableWithSize: (isFullWidthModeEnabled?: boolean, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, isCommentEditor?: boolean) => (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
@@ -2,10 +2,6 @@ import { type IntlShape } from 'react-intl-next/src/types';
2
2
  import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
4
4
  import type tablePlugin from '../plugin';
5
- export declare enum TableSelectionDirection {
6
- TopToBottom = "TopToBottom",
7
- BottomToTop = "BottomToTop"
8
- }
9
5
  export declare const arrowLeftFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>['selection'] | undefined) => () => Command;
10
6
  export declare const arrowRightFromTable: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>['selection'] | undefined) => () => Command;
11
7
  export declare const selectColumns: (editorSelectionAPI: ExtractInjectionAPI<typeof tablePlugin>['selection'] | undefined, ariaNotify?: ((message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void) | undefined, getIntl?: () => IntlShape) => (triggeredByKeyboard?: boolean) => Command;
@@ -17,16 +17,15 @@ export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalytics
17
17
  export declare const addRowAroundSelection: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (side: RowInsertPosition) => Command;
18
18
  export declare const insertRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isCellbackgroundDuplicated?: boolean) => (inputMethod: InsertRowMethods, options: InsertRowOptions) => Command;
19
19
  export declare const changeColumnWidthByStepWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null) => (stepSize: number, getEditorContainerWidth: GetEditorContainerWidth, isTableScalingEnabled: boolean, isTableFixedColumnWidthsOptionEnabled: boolean, isCommentEditor: boolean, inputMethod: INPUT_METHOD.SHORTCUT, ariaNotify?: ((message: string) => void) | undefined, getIntl?: () => IntlShape) => Command;
20
- export declare const insertColumnWithAnalytics: (api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isCellbackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, position: number) => Command;
20
+ export declare const insertColumnWithAnalytics: (api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isCellbackgroundDuplicated?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, position: number) => Command;
21
21
  export declare const deleteRowsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect, isHeaderRowRequired: boolean) => Command;
22
- export declare const deleteColumnsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect) => Command;
22
+ export declare const deleteColumnsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect) => Command;
23
23
  export declare const deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Command;
24
24
  export declare const deleteTableWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
25
25
  export declare const deleteTableIfSelectedWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.KEYBOARD) => Command;
26
26
  export declare const toggleHeaderRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
27
27
  export declare const toggleHeaderColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
28
28
  export declare const toggleNumberColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
29
- export declare const toggleTableLayoutWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
30
29
  export declare const sortColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, columnIndex: number, sortOrder: SortOrder) => Command;
31
30
  export declare const distributeColumnsWidthsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, { resizeState, table, attributes }: ResizeStateWithAnalytics) => Command;
32
31
  export declare const wrapTableInExpandWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
@@ -8,7 +8,7 @@ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
8
8
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
9
  import type { CellHoverMeta, PluginInjectionAPI } from '../types';
10
10
  import type { TableOptions } from './types';
11
- export interface ComponentProps {
11
+ interface ComponentProps {
12
12
  view: EditorView;
13
13
  getNode: () => PmNode;
14
14
  allowColumnResizing?: boolean;
@@ -4,17 +4,6 @@ import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
4
4
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { PluginInjectionAPI } from '../types';
7
- type InnerContainerProps = {
8
- className: string;
9
- style?: {
10
- width: number | 'inherit';
11
- marginLeft?: number;
12
- };
13
- node: PMNode;
14
- };
15
- export declare const InnerContainer: React.ForwardRefExoticComponent<InnerContainerProps & {
16
- children?: React.ReactNode;
17
- } & React.RefAttributes<HTMLDivElement>>;
18
7
  type ResizableTableContainerProps = {
19
8
  containerWidth: number;
20
9
  lineLength: number;
@@ -26,10 +26,8 @@ interface TableResizerProps {
26
26
  isFullWidthModeEnabled?: boolean;
27
27
  shouldUseIncreasedScalingPercent?: boolean;
28
28
  isCommentEditor?: boolean;
29
- }
30
- export interface TableResizerImprovementProps extends TableResizerProps {
31
29
  onResizeStop?: () => void;
32
30
  onResizeStart?: () => void;
33
31
  }
34
- export declare const TableResizer: ({ children, width, maxWidth, containerWidth, lineLength, updateWidth, onResizeStop, onResizeStart, editorView, getPos, node, tableRef, displayGuideline, attachAnalyticsEvent, displayGapCursor, isTableScalingEnabled, isTableWithFixedColumnWidthsOptionEnabled, isTableAlignmentEnabled, isWholeTableInDanger, shouldUseIncreasedScalingPercent, pluginInjectionApi, isFullWidthModeEnabled, isCommentEditor, }: PropsWithChildren<TableResizerImprovementProps>) => JSX.Element;
32
+ export declare const TableResizer: ({ children, width, maxWidth, containerWidth, lineLength, updateWidth, onResizeStop, onResizeStart, editorView, getPos, node, tableRef, displayGuideline, attachAnalyticsEvent, displayGapCursor, isTableScalingEnabled, isTableWithFixedColumnWidthsOptionEnabled, isTableAlignmentEnabled, isWholeTableInDanger, shouldUseIncreasedScalingPercent, pluginInjectionApi, isFullWidthModeEnabled, isCommentEditor, }: PropsWithChildren<TableResizerProps>) => JSX.Element;
35
33
  export {};
@@ -6,12 +6,13 @@ export declare enum AnalyticPluginTypes {
6
6
  RemoveOverFlowTriggerNameAction = 3,
7
7
  UpdateRowOrColumnMovedAndOverflowTrigger = 4
8
8
  }
9
- export type UpdateRowOrColumnMovedAction = {
9
+ type UpdateRowOrColumnMovedAction = {
10
10
  type: AnalyticPluginTypes.UpdateRowOrColumnMovedAction;
11
11
  data: RowOrColumnMovedState;
12
12
  };
13
- export type RemoveRowOrColumnMovedAction = {
13
+ type RemoveRowOrColumnMovedAction = {
14
14
  type: AnalyticPluginTypes.RemoveRowOrColumnMovedAction;
15
15
  data: undefined;
16
16
  };
17
17
  export type AnalyticPluginAction = UpdateRowOrColumnMovedAction | RemoveRowOrColumnMovedAction;
18
+ export {};
@@ -1,3 +1,2 @@
1
1
  export { buildColumnControlsDecorations, maybeUpdateColumnControlsSelectedDecoration, } from './column-controls';
2
2
  export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
3
- export { composeDecorations } from './compose-decorations';
@@ -1,7 +1,7 @@
1
1
  import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
3
3
  export type DecorationTransformer = (params: DecorationTransformerParams) => DecorationSet;
4
- export type DecorationTransformerParams = {
4
+ type DecorationTransformerParams = {
5
5
  decorationSet: DecorationSet;
6
6
  tr: Transaction | ReadonlyTransaction;
7
7
  };
@@ -10,3 +10,4 @@ export type BuildDecorationTransformerParams = DecorationTransformerParams & {
10
10
  isDragAndDropEnabled: boolean;
11
11
  };
12
12
  };
13
+ export {};