@atlaskit/editor-plugin-table 38.0.5 → 38.0.7

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 (512) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/nodeviews/ExternalDropTargets.js +2 -2
  3. package/dist/cjs/nodeviews/TableCell.js +5 -4
  4. package/dist/cjs/nodeviews/TableComponent.js +6 -6
  5. package/dist/cjs/nodeviews/TableComponentWithSharedState.js +2 -2
  6. package/dist/cjs/nodeviews/TableContainer.js +12 -11
  7. package/dist/cjs/nodeviews/TableResizer.js +27 -26
  8. package/dist/cjs/nodeviews/TableRow.js +51 -18
  9. package/dist/cjs/nodeviews/TableRowNativeStickyWithFallback.js +67 -31
  10. package/dist/cjs/nodeviews/TableSSRReactContextsProvider.js +2 -2
  11. package/dist/cjs/nodeviews/TableStickyScrollbar.js +2 -2
  12. package/dist/cjs/nodeviews/table.js +4 -4
  13. package/dist/cjs/nodeviews/toDOM.js +6 -6
  14. package/dist/cjs/pm-plugins/analytics/plugin-factory.js +2 -2
  15. package/dist/cjs/pm-plugins/analytics/plugin.js +5 -4
  16. package/dist/cjs/pm-plugins/commands/clear.js +5 -3
  17. package/dist/cjs/pm-plugins/commands/column-resize.js +18 -16
  18. package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +118 -116
  19. package/dist/cjs/pm-plugins/commands/go-to-next-cell.js +5 -4
  20. package/dist/cjs/pm-plugins/commands/hover.js +5 -3
  21. package/dist/cjs/pm-plugins/commands/insert.js +21 -17
  22. package/dist/cjs/pm-plugins/commands/misc.js +45 -34
  23. package/dist/cjs/pm-plugins/commands/referentiality.js +2 -2
  24. package/dist/cjs/pm-plugins/commands/selection.js +25 -22
  25. package/dist/cjs/pm-plugins/commands/sort.js +14 -11
  26. package/dist/cjs/pm-plugins/commands/split-cell.js +2 -1
  27. package/dist/cjs/pm-plugins/commands/toggle.js +6 -5
  28. package/dist/cjs/pm-plugins/decorations/plugin.js +2 -2
  29. package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +33 -31
  30. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +6 -3
  31. package/dist/cjs/pm-plugins/drag-and-drop/plugin-factory.js +2 -2
  32. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +16 -14
  33. package/dist/cjs/pm-plugins/handlers.js +10 -10
  34. package/dist/cjs/pm-plugins/keymap.js +11 -11
  35. package/dist/cjs/pm-plugins/main.js +24 -22
  36. package/dist/cjs/pm-plugins/plugin-factory.js +2 -2
  37. package/dist/cjs/pm-plugins/sticky-headers/plugin-state.js +2 -2
  38. package/dist/cjs/pm-plugins/table-analytics.js +6 -5
  39. package/dist/cjs/pm-plugins/table-anchor-names/plugin.js +2 -2
  40. package/dist/cjs/pm-plugins/table-resizing/commands.js +2 -2
  41. package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +20 -19
  42. package/dist/cjs/pm-plugins/table-resizing/plugin-factory.js +2 -2
  43. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +17 -16
  44. package/dist/cjs/pm-plugins/table-resizing/utils/column-state.js +3 -3
  45. package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +5 -4
  46. package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +9 -9
  47. package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +8 -8
  48. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +8 -8
  49. package/dist/cjs/pm-plugins/table-width-in-comment-fix.js +2 -2
  50. package/dist/cjs/pm-plugins/table-width.js +8 -8
  51. package/dist/cjs/pm-plugins/transforms/column-width.js +7 -7
  52. package/dist/cjs/pm-plugins/transforms/content-mode.js +4 -4
  53. package/dist/cjs/pm-plugins/transforms/delete-columns.js +4 -4
  54. package/dist/cjs/pm-plugins/transforms/fix-tables.js +5 -5
  55. package/dist/cjs/pm-plugins/transforms/merge.js +3 -2
  56. package/dist/cjs/pm-plugins/transforms/replace-table.js +7 -6
  57. package/dist/cjs/pm-plugins/utils/analytics.js +19 -17
  58. package/dist/cjs/pm-plugins/utils/column-controls.js +11 -10
  59. package/dist/cjs/pm-plugins/utils/create.js +2 -2
  60. package/dist/cjs/pm-plugins/utils/decoration.js +6 -4
  61. package/dist/cjs/pm-plugins/utils/dom.js +4 -3
  62. package/dist/cjs/pm-plugins/utils/drag-menu.js +12 -12
  63. package/dist/cjs/pm-plugins/utils/guidelines.js +3 -3
  64. package/dist/cjs/pm-plugins/utils/merged-cells.js +5 -4
  65. package/dist/cjs/pm-plugins/utils/nodes.js +8 -8
  66. package/dist/cjs/pm-plugins/utils/paste.js +10 -10
  67. package/dist/cjs/pm-plugins/utils/row-controls.js +2 -1
  68. package/dist/cjs/pm-plugins/utils/selection.js +4 -3
  69. package/dist/cjs/pm-plugins/utils/snapping.js +12 -12
  70. package/dist/cjs/pm-plugins/utils/table.js +5 -5
  71. package/dist/cjs/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.js +10 -9
  72. package/dist/cjs/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.js +5 -4
  73. package/dist/cjs/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.js +8 -8
  74. package/dist/cjs/pm-plugins/view-mode-sort/utils.js +2 -1
  75. package/dist/cjs/tablePlugin.js +27 -26
  76. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -2
  77. package/dist/cjs/ui/ContentComponent.js +9 -9
  78. package/dist/cjs/ui/DragHandle/index.js +5 -4
  79. package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +4 -3
  80. package/dist/cjs/ui/FloatingContextualButton/index.js +12 -12
  81. package/dist/cjs/ui/FloatingContextualMenu/CellMenuPopup.js +5 -4
  82. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +69 -63
  83. package/dist/cjs/ui/FloatingContextualMenu/index.js +11 -9
  84. package/dist/cjs/ui/FloatingDeleteButton/index.js +17 -16
  85. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +61 -54
  86. package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +14 -10
  87. package/dist/cjs/ui/FloatingDragMenu/index.js +4 -4
  88. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +9 -9
  89. package/dist/cjs/ui/FloatingInsertButton/getPopupOptions.js +2 -2
  90. package/dist/cjs/ui/FloatingInsertButton/index.js +17 -17
  91. package/dist/cjs/ui/FloatingTableMenu/index.js +8 -6
  92. package/dist/cjs/ui/FloatingToolbarLabel/FloatingToolbarLabel.js +2 -2
  93. package/dist/cjs/ui/SizeSelector/index.js +2 -2
  94. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +18 -17
  95. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +2 -2
  96. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +13 -12
  97. package/dist/cjs/ui/TableFullWidthLabel/index.js +2 -2
  98. package/dist/cjs/ui/TableMenu/cell/getCellMenuComponents.js +15 -15
  99. package/dist/cjs/ui/TableMenu/cell/items/MergeCellsItem.js +8 -7
  100. package/dist/cjs/ui/TableMenu/cell/items/SplitCellItem.js +8 -7
  101. package/dist/cjs/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +4 -4
  102. package/dist/cjs/ui/TableMenu/cell/items/VerticalAlignNestedMenu.js +6 -5
  103. package/dist/cjs/ui/TableMenu/column/getColumnMenuComponents.js +7 -7
  104. package/dist/cjs/ui/TableMenu/column/items/AddColumnLeftItem.js +14 -12
  105. package/dist/cjs/ui/TableMenu/column/items/AddColumnRightItem.js +12 -10
  106. package/dist/cjs/ui/TableMenu/column/items/ColumnBackgroundSection.js +4 -4
  107. package/dist/cjs/ui/TableMenu/column/items/ColumnToggleSection.js +4 -4
  108. package/dist/cjs/ui/TableMenu/column/items/DeleteColumnItem.js +12 -10
  109. package/dist/cjs/ui/TableMenu/column/items/DistributeColumnsItem.js +10 -9
  110. package/dist/cjs/ui/TableMenu/column/items/HeaderColumnToggleItem.js +6 -6
  111. package/dist/cjs/ui/TableMenu/column/items/MoveColumnLeftItem.js +9 -9
  112. package/dist/cjs/ui/TableMenu/column/items/MoveColumnRightItem.js +9 -9
  113. package/dist/cjs/ui/TableMenu/column/items/SortDecreasingItem.js +17 -15
  114. package/dist/cjs/ui/TableMenu/column/items/SortIncreasingItem.js +17 -15
  115. package/dist/cjs/ui/TableMenu/row/getRowMenuComponents.js +9 -9
  116. package/dist/cjs/ui/TableMenu/row/items/AddRowAboveItem.js +12 -10
  117. package/dist/cjs/ui/TableMenu/row/items/AddRowBelowItem.js +10 -8
  118. package/dist/cjs/ui/TableMenu/row/items/DeleteRowItem.js +12 -10
  119. package/dist/cjs/ui/TableMenu/row/items/HeaderRowToggleItem.js +6 -6
  120. package/dist/cjs/ui/TableMenu/row/items/MoveRowDownItem.js +9 -9
  121. package/dist/cjs/ui/TableMenu/row/items/MoveRowUpItem.js +9 -9
  122. package/dist/cjs/ui/TableMenu/row/items/NumberedRowsToggleItem.js +6 -6
  123. package/dist/cjs/ui/TableMenu/shared/TableMenu.js +6 -6
  124. package/dist/cjs/ui/TableMenu/shared/items/BackgroundColorItem.js +20 -14
  125. package/dist/cjs/ui/TableMenu/shared/items/ClearCellsItem.js +10 -8
  126. package/dist/cjs/ui/TableMenu/shared/selection.js +4 -2
  127. package/dist/cjs/ui/common-styles.js +34 -30
  128. package/dist/cjs/ui/consts.js +8 -8
  129. package/dist/cjs/ui/event-handlers.js +47 -43
  130. package/dist/cjs/ui/global-styles.js +2 -2
  131. package/dist/cjs/ui/hooks/useInternalTablePluginStateSelector.js +1 -1
  132. package/dist/cjs/ui/icons/SortingIconWrapper.js +4 -4
  133. package/dist/cjs/ui/quick-insert/TableQuickInsertMenuItem.js +5 -5
  134. package/dist/cjs/ui/quick-insert/getTableQuickInsertComponents.js +3 -3
  135. package/dist/cjs/ui/quick-insert/insertTableFromQuickInsert.js +5 -5
  136. package/dist/cjs/ui/rounded-table-styles.js +8 -8
  137. package/dist/cjs/ui/toolbar.js +80 -72
  138. package/dist/cjs/ui/ui-styles.js +14 -14
  139. package/dist/es2019/nodeviews/ExternalDropTargets.js +1 -1
  140. package/dist/es2019/nodeviews/TableCell.js +2 -1
  141. package/dist/es2019/nodeviews/TableComponent.js +2 -2
  142. package/dist/es2019/nodeviews/TableComponentWithSharedState.js +1 -1
  143. package/dist/es2019/nodeviews/TableContainer.js +4 -3
  144. package/dist/es2019/nodeviews/TableResizer.js +10 -9
  145. package/dist/es2019/nodeviews/TableRow.js +46 -19
  146. package/dist/es2019/nodeviews/TableRowNativeStickyWithFallback.js +56 -26
  147. package/dist/es2019/nodeviews/TableSSRReactContextsProvider.js +1 -1
  148. package/dist/es2019/nodeviews/TableStickyScrollbar.js +1 -1
  149. package/dist/es2019/nodeviews/table.js +2 -2
  150. package/dist/es2019/nodeviews/toDOM.js +2 -2
  151. package/dist/es2019/pm-plugins/analytics/plugin-factory.js +1 -1
  152. package/dist/es2019/pm-plugins/analytics/plugin.js +2 -1
  153. package/dist/es2019/pm-plugins/commands/clear.js +3 -1
  154. package/dist/es2019/pm-plugins/commands/column-resize.js +6 -4
  155. package/dist/es2019/pm-plugins/commands/commands-with-analytics.js +5 -3
  156. package/dist/es2019/pm-plugins/commands/go-to-next-cell.js +3 -2
  157. package/dist/es2019/pm-plugins/commands/hover.js +3 -1
  158. package/dist/es2019/pm-plugins/commands/insert.js +7 -3
  159. package/dist/es2019/pm-plugins/commands/misc.js +13 -2
  160. package/dist/es2019/pm-plugins/commands/referentiality.js +1 -1
  161. package/dist/es2019/pm-plugins/commands/selection.js +6 -3
  162. package/dist/es2019/pm-plugins/commands/sort.js +6 -3
  163. package/dist/es2019/pm-plugins/commands/split-cell.js +2 -1
  164. package/dist/es2019/pm-plugins/commands/toggle.js +3 -2
  165. package/dist/es2019/pm-plugins/decorations/plugin.js +1 -1
  166. package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +5 -3
  167. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -1
  168. package/dist/es2019/pm-plugins/drag-and-drop/plugin-factory.js +1 -1
  169. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +5 -3
  170. package/dist/es2019/pm-plugins/handlers.js +2 -2
  171. package/dist/es2019/pm-plugins/keymap.js +2 -2
  172. package/dist/es2019/pm-plugins/main.js +7 -5
  173. package/dist/es2019/pm-plugins/plugin-factory.js +1 -1
  174. package/dist/es2019/pm-plugins/sticky-headers/plugin-state.js +1 -1
  175. package/dist/es2019/pm-plugins/table-analytics.js +2 -1
  176. package/dist/es2019/pm-plugins/table-anchor-names/plugin.js +1 -1
  177. package/dist/es2019/pm-plugins/table-resizing/commands.js +1 -1
  178. package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +5 -4
  179. package/dist/es2019/pm-plugins/table-resizing/plugin-factory.js +1 -1
  180. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +4 -3
  181. package/dist/es2019/pm-plugins/table-resizing/utils/column-state.js +1 -1
  182. package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +3 -2
  183. package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +2 -2
  184. package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +2 -2
  185. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +3 -3
  186. package/dist/es2019/pm-plugins/table-width-in-comment-fix.js +1 -1
  187. package/dist/es2019/pm-plugins/table-width.js +2 -2
  188. package/dist/es2019/pm-plugins/transforms/column-width.js +1 -1
  189. package/dist/es2019/pm-plugins/transforms/content-mode.js +2 -2
  190. package/dist/es2019/pm-plugins/transforms/delete-columns.js +2 -2
  191. package/dist/es2019/pm-plugins/transforms/fix-tables.js +2 -2
  192. package/dist/es2019/pm-plugins/transforms/merge.js +2 -1
  193. package/dist/es2019/pm-plugins/transforms/replace-table.js +2 -1
  194. package/dist/es2019/pm-plugins/utils/analytics.js +4 -2
  195. package/dist/es2019/pm-plugins/utils/column-controls.js +3 -2
  196. package/dist/es2019/pm-plugins/utils/create.js +1 -1
  197. package/dist/es2019/pm-plugins/utils/decoration.js +3 -1
  198. package/dist/es2019/pm-plugins/utils/dom.js +2 -1
  199. package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -2
  200. package/dist/es2019/pm-plugins/utils/guidelines.js +1 -1
  201. package/dist/es2019/pm-plugins/utils/merged-cells.js +2 -1
  202. package/dist/es2019/pm-plugins/utils/nodes.js +1 -1
  203. package/dist/es2019/pm-plugins/utils/paste.js +2 -2
  204. package/dist/es2019/pm-plugins/utils/row-controls.js +2 -1
  205. package/dist/es2019/pm-plugins/utils/selection.js +2 -1
  206. package/dist/es2019/pm-plugins/utils/snapping.js +2 -2
  207. package/dist/es2019/pm-plugins/utils/table.js +1 -1
  208. package/dist/es2019/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.js +3 -2
  209. package/dist/es2019/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.js +2 -1
  210. package/dist/es2019/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.js +2 -2
  211. package/dist/es2019/pm-plugins/view-mode-sort/utils.js +2 -1
  212. package/dist/es2019/tablePlugin.js +6 -5
  213. package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
  214. package/dist/es2019/ui/ContentComponent.js +4 -4
  215. package/dist/es2019/ui/DragHandle/index.js +3 -2
  216. package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +2 -1
  217. package/dist/es2019/ui/FloatingContextualButton/index.js +6 -6
  218. package/dist/es2019/ui/FloatingContextualMenu/CellMenuPopup.js +4 -3
  219. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +17 -11
  220. package/dist/es2019/ui/FloatingContextualMenu/index.js +6 -4
  221. package/dist/es2019/ui/FloatingDeleteButton/index.js +7 -6
  222. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +17 -10
  223. package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +8 -4
  224. package/dist/es2019/ui/FloatingDragMenu/index.js +2 -2
  225. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +4 -4
  226. package/dist/es2019/ui/FloatingInsertButton/getPopupOptions.js +1 -1
  227. package/dist/es2019/ui/FloatingInsertButton/index.js +3 -3
  228. package/dist/es2019/ui/FloatingTableMenu/index.js +5 -4
  229. package/dist/es2019/ui/FloatingToolbarLabel/FloatingToolbarLabel.js +1 -1
  230. package/dist/es2019/ui/SizeSelector/index.js +1 -1
  231. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +7 -6
  232. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  233. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +5 -4
  234. package/dist/es2019/ui/TableFullWidthLabel/index.js +1 -1
  235. package/dist/es2019/ui/TableMenu/cell/getCellMenuComponents.js +2 -2
  236. package/dist/es2019/ui/TableMenu/cell/items/MergeCellsItem.js +4 -3
  237. package/dist/es2019/ui/TableMenu/cell/items/SplitCellItem.js +4 -3
  238. package/dist/es2019/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -2
  239. package/dist/es2019/ui/TableMenu/cell/items/VerticalAlignNestedMenu.js +3 -2
  240. package/dist/es2019/ui/TableMenu/column/getColumnMenuComponents.js +1 -1
  241. package/dist/es2019/ui/TableMenu/column/items/AddColumnLeftItem.js +7 -5
  242. package/dist/es2019/ui/TableMenu/column/items/AddColumnRightItem.js +6 -4
  243. package/dist/es2019/ui/TableMenu/column/items/ColumnBackgroundSection.js +2 -2
  244. package/dist/es2019/ui/TableMenu/column/items/ColumnToggleSection.js +2 -2
  245. package/dist/es2019/ui/TableMenu/column/items/DeleteColumnItem.js +6 -4
  246. package/dist/es2019/ui/TableMenu/column/items/DistributeColumnsItem.js +5 -4
  247. package/dist/es2019/ui/TableMenu/column/items/HeaderColumnToggleItem.js +3 -3
  248. package/dist/es2019/ui/TableMenu/column/items/MoveColumnLeftItem.js +4 -4
  249. package/dist/es2019/ui/TableMenu/column/items/MoveColumnRightItem.js +4 -4
  250. package/dist/es2019/ui/TableMenu/column/items/SortDecreasingItem.js +7 -5
  251. package/dist/es2019/ui/TableMenu/column/items/SortIncreasingItem.js +7 -5
  252. package/dist/es2019/ui/TableMenu/row/getRowMenuComponents.js +1 -1
  253. package/dist/es2019/ui/TableMenu/row/items/AddRowAboveItem.js +6 -4
  254. package/dist/es2019/ui/TableMenu/row/items/AddRowBelowItem.js +5 -3
  255. package/dist/es2019/ui/TableMenu/row/items/DeleteRowItem.js +6 -4
  256. package/dist/es2019/ui/TableMenu/row/items/HeaderRowToggleItem.js +3 -3
  257. package/dist/es2019/ui/TableMenu/row/items/MoveRowDownItem.js +4 -4
  258. package/dist/es2019/ui/TableMenu/row/items/MoveRowUpItem.js +4 -4
  259. package/dist/es2019/ui/TableMenu/row/items/NumberedRowsToggleItem.js +3 -3
  260. package/dist/es2019/ui/TableMenu/shared/TableMenu.js +3 -3
  261. package/dist/es2019/ui/TableMenu/shared/items/BackgroundColorItem.js +10 -5
  262. package/dist/es2019/ui/TableMenu/shared/items/ClearCellsItem.js +5 -3
  263. package/dist/es2019/ui/TableMenu/shared/selection.js +3 -1
  264. package/dist/es2019/ui/common-styles.js +8 -4
  265. package/dist/es2019/ui/consts.js +2 -2
  266. package/dist/es2019/ui/event-handlers.js +7 -3
  267. package/dist/es2019/ui/global-styles.js +1 -1
  268. package/dist/es2019/ui/hooks/useInternalTablePluginStateSelector.js +1 -1
  269. package/dist/es2019/ui/icons/SortingIconWrapper.js +2 -2
  270. package/dist/es2019/ui/quick-insert/TableQuickInsertMenuItem.js +1 -1
  271. package/dist/es2019/ui/quick-insert/getTableQuickInsertComponents.js +1 -1
  272. package/dist/es2019/ui/quick-insert/insertTableFromQuickInsert.js +1 -1
  273. package/dist/es2019/ui/rounded-table-styles.js +2 -2
  274. package/dist/es2019/ui/toolbar.js +20 -10
  275. package/dist/es2019/ui/ui-styles.js +2 -2
  276. package/dist/esm/nodeviews/ExternalDropTargets.js +1 -1
  277. package/dist/esm/nodeviews/TableCell.js +2 -1
  278. package/dist/esm/nodeviews/TableComponent.js +2 -2
  279. package/dist/esm/nodeviews/TableComponentWithSharedState.js +1 -1
  280. package/dist/esm/nodeviews/TableContainer.js +4 -3
  281. package/dist/esm/nodeviews/TableResizer.js +10 -9
  282. package/dist/esm/nodeviews/TableRow.js +48 -15
  283. package/dist/esm/nodeviews/TableRowNativeStickyWithFallback.js +58 -22
  284. package/dist/esm/nodeviews/TableSSRReactContextsProvider.js +1 -1
  285. package/dist/esm/nodeviews/TableStickyScrollbar.js +1 -1
  286. package/dist/esm/nodeviews/table.js +2 -2
  287. package/dist/esm/nodeviews/toDOM.js +2 -2
  288. package/dist/esm/pm-plugins/analytics/plugin-factory.js +1 -1
  289. package/dist/esm/pm-plugins/analytics/plugin.js +2 -1
  290. package/dist/esm/pm-plugins/commands/clear.js +3 -1
  291. package/dist/esm/pm-plugins/commands/column-resize.js +6 -4
  292. package/dist/esm/pm-plugins/commands/commands-with-analytics.js +5 -3
  293. package/dist/esm/pm-plugins/commands/go-to-next-cell.js +3 -2
  294. package/dist/esm/pm-plugins/commands/hover.js +3 -1
  295. package/dist/esm/pm-plugins/commands/insert.js +7 -3
  296. package/dist/esm/pm-plugins/commands/misc.js +13 -2
  297. package/dist/esm/pm-plugins/commands/referentiality.js +1 -1
  298. package/dist/esm/pm-plugins/commands/selection.js +6 -3
  299. package/dist/esm/pm-plugins/commands/sort.js +6 -3
  300. package/dist/esm/pm-plugins/commands/split-cell.js +2 -1
  301. package/dist/esm/pm-plugins/commands/toggle.js +3 -2
  302. package/dist/esm/pm-plugins/decorations/plugin.js +1 -1
  303. package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +5 -3
  304. package/dist/esm/pm-plugins/drag-and-drop/commands.js +4 -1
  305. package/dist/esm/pm-plugins/drag-and-drop/plugin-factory.js +1 -1
  306. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +5 -3
  307. package/dist/esm/pm-plugins/handlers.js +2 -2
  308. package/dist/esm/pm-plugins/keymap.js +2 -2
  309. package/dist/esm/pm-plugins/main.js +7 -5
  310. package/dist/esm/pm-plugins/plugin-factory.js +1 -1
  311. package/dist/esm/pm-plugins/sticky-headers/plugin-state.js +1 -1
  312. package/dist/esm/pm-plugins/table-analytics.js +2 -1
  313. package/dist/esm/pm-plugins/table-anchor-names/plugin.js +1 -1
  314. package/dist/esm/pm-plugins/table-resizing/commands.js +1 -1
  315. package/dist/esm/pm-plugins/table-resizing/event-handlers.js +5 -4
  316. package/dist/esm/pm-plugins/table-resizing/plugin-factory.js +1 -1
  317. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +4 -3
  318. package/dist/esm/pm-plugins/table-resizing/utils/column-state.js +1 -1
  319. package/dist/esm/pm-plugins/table-resizing/utils/dom.js +3 -2
  320. package/dist/esm/pm-plugins/table-resizing/utils/misc.js +2 -2
  321. package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +2 -2
  322. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +3 -3
  323. package/dist/esm/pm-plugins/table-width-in-comment-fix.js +1 -1
  324. package/dist/esm/pm-plugins/table-width.js +2 -2
  325. package/dist/esm/pm-plugins/transforms/column-width.js +1 -1
  326. package/dist/esm/pm-plugins/transforms/content-mode.js +2 -2
  327. package/dist/esm/pm-plugins/transforms/delete-columns.js +2 -2
  328. package/dist/esm/pm-plugins/transforms/fix-tables.js +2 -2
  329. package/dist/esm/pm-plugins/transforms/merge.js +2 -1
  330. package/dist/esm/pm-plugins/transforms/replace-table.js +2 -1
  331. package/dist/esm/pm-plugins/utils/analytics.js +4 -2
  332. package/dist/esm/pm-plugins/utils/column-controls.js +3 -2
  333. package/dist/esm/pm-plugins/utils/create.js +1 -1
  334. package/dist/esm/pm-plugins/utils/decoration.js +3 -1
  335. package/dist/esm/pm-plugins/utils/dom.js +2 -1
  336. package/dist/esm/pm-plugins/utils/drag-menu.js +2 -2
  337. package/dist/esm/pm-plugins/utils/guidelines.js +1 -1
  338. package/dist/esm/pm-plugins/utils/merged-cells.js +2 -1
  339. package/dist/esm/pm-plugins/utils/nodes.js +1 -1
  340. package/dist/esm/pm-plugins/utils/paste.js +2 -2
  341. package/dist/esm/pm-plugins/utils/row-controls.js +2 -1
  342. package/dist/esm/pm-plugins/utils/selection.js +2 -1
  343. package/dist/esm/pm-plugins/utils/snapping.js +2 -2
  344. package/dist/esm/pm-plugins/utils/table.js +1 -1
  345. package/dist/esm/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.js +3 -2
  346. package/dist/esm/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.js +2 -1
  347. package/dist/esm/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.js +2 -2
  348. package/dist/esm/pm-plugins/view-mode-sort/utils.js +2 -1
  349. package/dist/esm/tablePlugin.js +6 -5
  350. package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
  351. package/dist/esm/ui/ContentComponent.js +4 -4
  352. package/dist/esm/ui/DragHandle/index.js +3 -2
  353. package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +2 -1
  354. package/dist/esm/ui/FloatingContextualButton/index.js +6 -6
  355. package/dist/esm/ui/FloatingContextualMenu/CellMenuPopup.js +4 -3
  356. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +17 -11
  357. package/dist/esm/ui/FloatingContextualMenu/index.js +6 -4
  358. package/dist/esm/ui/FloatingDeleteButton/index.js +7 -6
  359. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +17 -10
  360. package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +8 -4
  361. package/dist/esm/ui/FloatingDragMenu/index.js +2 -2
  362. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +4 -4
  363. package/dist/esm/ui/FloatingInsertButton/getPopupOptions.js +1 -1
  364. package/dist/esm/ui/FloatingInsertButton/index.js +3 -3
  365. package/dist/esm/ui/FloatingTableMenu/index.js +5 -4
  366. package/dist/esm/ui/FloatingToolbarLabel/FloatingToolbarLabel.js +1 -1
  367. package/dist/esm/ui/SizeSelector/index.js +1 -1
  368. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +7 -6
  369. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  370. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +5 -4
  371. package/dist/esm/ui/TableFullWidthLabel/index.js +1 -1
  372. package/dist/esm/ui/TableMenu/cell/getCellMenuComponents.js +2 -2
  373. package/dist/esm/ui/TableMenu/cell/items/MergeCellsItem.js +4 -3
  374. package/dist/esm/ui/TableMenu/cell/items/SplitCellItem.js +4 -3
  375. package/dist/esm/ui/TableMenu/cell/items/VerticalAlignDropdownItem.js +2 -2
  376. package/dist/esm/ui/TableMenu/cell/items/VerticalAlignNestedMenu.js +3 -2
  377. package/dist/esm/ui/TableMenu/column/getColumnMenuComponents.js +1 -1
  378. package/dist/esm/ui/TableMenu/column/items/AddColumnLeftItem.js +7 -5
  379. package/dist/esm/ui/TableMenu/column/items/AddColumnRightItem.js +6 -4
  380. package/dist/esm/ui/TableMenu/column/items/ColumnBackgroundSection.js +2 -2
  381. package/dist/esm/ui/TableMenu/column/items/ColumnToggleSection.js +2 -2
  382. package/dist/esm/ui/TableMenu/column/items/DeleteColumnItem.js +6 -4
  383. package/dist/esm/ui/TableMenu/column/items/DistributeColumnsItem.js +5 -4
  384. package/dist/esm/ui/TableMenu/column/items/HeaderColumnToggleItem.js +3 -3
  385. package/dist/esm/ui/TableMenu/column/items/MoveColumnLeftItem.js +4 -4
  386. package/dist/esm/ui/TableMenu/column/items/MoveColumnRightItem.js +4 -4
  387. package/dist/esm/ui/TableMenu/column/items/SortDecreasingItem.js +7 -5
  388. package/dist/esm/ui/TableMenu/column/items/SortIncreasingItem.js +7 -5
  389. package/dist/esm/ui/TableMenu/row/getRowMenuComponents.js +1 -1
  390. package/dist/esm/ui/TableMenu/row/items/AddRowAboveItem.js +6 -4
  391. package/dist/esm/ui/TableMenu/row/items/AddRowBelowItem.js +5 -3
  392. package/dist/esm/ui/TableMenu/row/items/DeleteRowItem.js +6 -4
  393. package/dist/esm/ui/TableMenu/row/items/HeaderRowToggleItem.js +3 -3
  394. package/dist/esm/ui/TableMenu/row/items/MoveRowDownItem.js +4 -4
  395. package/dist/esm/ui/TableMenu/row/items/MoveRowUpItem.js +4 -4
  396. package/dist/esm/ui/TableMenu/row/items/NumberedRowsToggleItem.js +3 -3
  397. package/dist/esm/ui/TableMenu/shared/TableMenu.js +3 -3
  398. package/dist/esm/ui/TableMenu/shared/items/BackgroundColorItem.js +10 -5
  399. package/dist/esm/ui/TableMenu/shared/items/ClearCellsItem.js +5 -3
  400. package/dist/esm/ui/TableMenu/shared/selection.js +3 -1
  401. package/dist/esm/ui/common-styles.js +8 -4
  402. package/dist/esm/ui/consts.js +2 -2
  403. package/dist/esm/ui/event-handlers.js +7 -3
  404. package/dist/esm/ui/global-styles.js +1 -1
  405. package/dist/esm/ui/hooks/useInternalTablePluginStateSelector.js +1 -1
  406. package/dist/esm/ui/icons/SortingIconWrapper.js +2 -2
  407. package/dist/esm/ui/quick-insert/TableQuickInsertMenuItem.js +1 -1
  408. package/dist/esm/ui/quick-insert/getTableQuickInsertComponents.js +1 -1
  409. package/dist/esm/ui/quick-insert/insertTableFromQuickInsert.js +1 -1
  410. package/dist/esm/ui/rounded-table-styles.js +2 -2
  411. package/dist/esm/ui/toolbar.js +20 -10
  412. package/dist/esm/ui/ui-styles.js +2 -2
  413. package/dist/types/nodeviews/TableCell.d.ts +1 -1
  414. package/dist/types/nodeviews/TableComponent.d.ts +4 -3
  415. package/dist/types/nodeviews/TableComponentWithSharedState.d.ts +3 -2
  416. package/dist/types/nodeviews/TableContainer.d.ts +1 -1
  417. package/dist/types/nodeviews/TableResizer.d.ts +2 -2
  418. package/dist/types/nodeviews/TableRow.d.ts +3 -0
  419. package/dist/types/nodeviews/TableRowNativeStickyWithFallback.d.ts +3 -0
  420. package/dist/types/nodeviews/table-node-views.d.ts +4 -3
  421. package/dist/types/nodeviews/table.d.ts +5 -3
  422. package/dist/types/nodeviews/toDOM.d.ts +1 -1
  423. package/dist/types/nodeviews/types.d.ts +4 -3
  424. package/dist/types/pm-plugins/analytics/commands.d.ts +1 -1
  425. package/dist/types/pm-plugins/analytics/plugin-factory.d.ts +1 -1
  426. package/dist/types/pm-plugins/analytics/plugin.d.ts +1 -1
  427. package/dist/types/pm-plugins/commands/active-table-menu.d.ts +1 -1
  428. package/dist/types/pm-plugins/commands/clear.d.ts +1 -1
  429. package/dist/types/pm-plugins/commands/collapse.d.ts +1 -1
  430. package/dist/types/pm-plugins/commands/column-resize.d.ts +4 -3
  431. package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +8 -5
  432. package/dist/types/pm-plugins/commands/delete.d.ts +2 -2
  433. package/dist/types/pm-plugins/commands/display-mode.d.ts +1 -1
  434. package/dist/types/pm-plugins/commands/go-to-next-cell.d.ts +2 -2
  435. package/dist/types/pm-plugins/commands/hover.d.ts +1 -1
  436. package/dist/types/pm-plugins/commands/insert.d.ts +5 -3
  437. package/dist/types/pm-plugins/commands/misc.d.ts +3 -2
  438. package/dist/types/pm-plugins/commands/referentiality.d.ts +1 -1
  439. package/dist/types/pm-plugins/commands/selection.d.ts +3 -2
  440. package/dist/types/pm-plugins/commands/sort.d.ts +2 -2
  441. package/dist/types/pm-plugins/commands/split-cell.d.ts +1 -1
  442. package/dist/types/pm-plugins/commands/toggle.d.ts +1 -1
  443. package/dist/types/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
  444. package/dist/types/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +5 -4
  445. package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +1 -1
  446. package/dist/types/pm-plugins/drag-and-drop/plugin-factory.d.ts +1 -1
  447. package/dist/types/pm-plugins/drag-and-drop/plugin.d.ts +2 -2
  448. package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +1 -1
  449. package/dist/types/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +1 -1
  450. package/dist/types/pm-plugins/keymap.d.ts +3 -3
  451. package/dist/types/pm-plugins/main.d.ts +5 -3
  452. package/dist/types/pm-plugins/plugin-factory.d.ts +1 -1
  453. package/dist/types/pm-plugins/sticky-headers/commands.d.ts +1 -1
  454. package/dist/types/pm-plugins/sticky-headers/plugin-state.d.ts +1 -1
  455. package/dist/types/pm-plugins/table-analytics.d.ts +1 -1
  456. package/dist/types/pm-plugins/table-resizing/commands.d.ts +1 -1
  457. package/dist/types/pm-plugins/table-resizing/event-handlers.d.ts +4 -3
  458. package/dist/types/pm-plugins/table-resizing/plugin-factory.d.ts +1 -1
  459. package/dist/types/pm-plugins/table-resizing/plugin.d.ts +4 -3
  460. package/dist/types/pm-plugins/table-resizing/utils/misc.d.ts +1 -1
  461. package/dist/types/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -2
  462. package/dist/types/pm-plugins/table-width.d.ts +1 -1
  463. package/dist/types/pm-plugins/transforms/delete-columns.d.ts +1 -1
  464. package/dist/types/pm-plugins/transforms/delete-rows.d.ts +1 -1
  465. package/dist/types/pm-plugins/transforms/replace-table.d.ts +2 -1
  466. package/dist/types/pm-plugins/utils/analytics.d.ts +4 -2
  467. package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
  468. package/dist/types/pm-plugins/utils/drag-menu.d.ts +7 -4
  469. package/dist/types/pm-plugins/utils/guidelines.d.ts +1 -1
  470. package/dist/types/pm-plugins/utils/merged-cells.d.ts +1 -1
  471. package/dist/types/pm-plugins/utils/selection.d.ts +1 -1
  472. package/dist/types/pm-plugins/utils/snapping.d.ts +1 -1
  473. package/dist/types/pm-plugins/view-mode-sort/index.d.ts +2 -2
  474. package/dist/types/tablePluginType.d.ts +22 -17
  475. package/dist/types/types/index.d.ts +4 -4
  476. package/dist/types/ui/ContentComponent.d.ts +4 -2
  477. package/dist/types/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +2 -1
  478. package/dist/types/ui/FloatingContextualButton/index.d.ts +1 -1
  479. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +4 -3
  480. package/dist/types/ui/FloatingContextualMenu/index.d.ts +3 -2
  481. package/dist/types/ui/FloatingDeleteButton/getPopUpOptions.d.ts +1 -1
  482. package/dist/types/ui/FloatingDeleteButton/index.d.ts +1 -1
  483. package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +4 -3
  484. package/dist/types/ui/FloatingDragMenu/DropdownMenu.d.ts +1 -1
  485. package/dist/types/ui/FloatingDragMenu/index.d.ts +4 -3
  486. package/dist/types/ui/FloatingInsertButton/getPopupOptions.d.ts +1 -1
  487. package/dist/types/ui/FloatingInsertButton/index.d.ts +4 -2
  488. package/dist/types/ui/SizeSelector/index.d.ts +2 -2
  489. package/dist/types/ui/TableFloatingColumnControls/index.d.ts +2 -2
  490. package/dist/types/ui/TableFloatingControls/index.d.ts +2 -2
  491. package/dist/types/ui/TableMenu/cell/getCellMenuComponents.d.ts +1 -1
  492. package/dist/types/ui/TableMenu/cell/keys.d.ts +1 -1
  493. package/dist/types/ui/TableMenu/column/getColumnMenuComponents.d.ts +1 -1
  494. package/dist/types/ui/TableMenu/column/keys.d.ts +1 -1
  495. package/dist/types/ui/TableMenu/row/getRowMenuComponents.d.ts +1 -1
  496. package/dist/types/ui/TableMenu/row/keys.d.ts +1 -1
  497. package/dist/types/ui/TableMenu/shared/TableMenu.d.ts +1 -1
  498. package/dist/types/ui/TableMenu/shared/TableMenuContext.d.ts +1 -1
  499. package/dist/types/ui/TableMenu/shared/getSharedItems.d.ts +1 -1
  500. package/dist/types/ui/TableMenu/shared/getTableMenuComponents.d.ts +1 -1
  501. package/dist/types/ui/TableMenu/shared/keys.d.ts +1 -1
  502. package/dist/types/ui/TableMenu/shared/selection.d.ts +1 -1
  503. package/dist/types/ui/common-styles.d.ts +1 -1
  504. package/dist/types/ui/event-handlers.d.ts +2 -2
  505. package/dist/types/ui/global-styles.d.ts +1 -1
  506. package/dist/types/ui/hooks/useInternalTablePluginStateSelector.d.ts +1 -1
  507. package/dist/types/ui/icons/SortingIconWrapper.d.ts +2 -2
  508. package/dist/types/ui/quick-insert/TableQuickInsertMenuItem.d.ts +1 -1
  509. package/dist/types/ui/quick-insert/getTableQuickInsertComponents.d.ts +1 -1
  510. package/dist/types/ui/quick-insert/insertTableFromQuickInsert.d.ts +3 -2
  511. package/dist/types/ui/toolbar.d.ts +5 -3
  512. package/package.json +4 -4
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.FloatingToolbarLabel = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _ui = require("@atlaskit/editor-common/ui");
9
+ var _Popup = _interopRequireDefault(require("@atlaskit/editor-common/Popup"));
10
10
  var FloatingToolbarLabel = exports.FloatingToolbarLabel = /*#__PURE__*/_react.default.memo(function (props) {
11
11
  var target = props.target,
12
12
  content = props.content,
@@ -16,7 +16,7 @@ var FloatingToolbarLabel = exports.FloatingToolbarLabel = /*#__PURE__*/_react.de
16
16
  forcePlacement = props.forcePlacement,
17
17
  stick = props.stick,
18
18
  offset = props.offset;
19
- return /*#__PURE__*/_react.default.createElement(_ui.Popup, {
19
+ return /*#__PURE__*/_react.default.createElement(_Popup.default, {
20
20
  target: target,
21
21
  alignX: alignX,
22
22
  alignY: alignY,
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.SizeSelector = void 0;
7
7
  var _react = require("react");
8
8
  var _react2 = require("@emotion/react");
9
- var _ui = require("@atlaskit/editor-common/ui");
9
+ var _TableSelector = require("@atlaskit/editor-common/TableSelector");
10
10
  var _tableSizeSelector = require("../../pm-plugins/table-size-selector");
11
11
  /**
12
12
  * @jsxRuntime classic
@@ -47,7 +47,7 @@ var SizeSelector = exports.SizeSelector = function SizeSelector(_ref) {
47
47
  var onUnmount = function onUnmount() {
48
48
  api === null || api === void 0 || api.core.actions.focus();
49
49
  };
50
- return (0, _react2.jsx)(_ui.TableSelectorPopup
50
+ return (0, _react2.jsx)(_TableSelector.TableSelectorPopup
51
51
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
52
52
  , {
53
53
  defaultSize: {
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ColumnControls = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
- var _analytics = require("@atlaskit/editor-common/analytics");
10
- var _hooks = require("@atlaskit/editor-common/hooks");
11
- var _styles = require("@atlaskit/editor-common/styles");
12
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
13
- var _editorTables = require("@atlaskit/editor-tables");
14
- var _utils = require("@atlaskit/editor-tables/utils");
9
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
10
+ var _tableEvents = require("@atlaskit/editor-common/analytics/types/table-events");
11
+ var _table = require("@atlaskit/editor-common/styles/table");
12
+ var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
13
+ var _constants = require("@atlaskit/editor-shared-styles/constants");
14
+ var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
15
+ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rect");
15
16
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
17
  var _commands = require("../../../pm-plugins/commands");
17
18
  var _commandsWithAnalytics = require("../../../pm-plugins/drag-and-drop/commands-with-analytics");
@@ -24,7 +25,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
24
25
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
25
26
 
26
27
  var getSelectedColumns = function getSelectedColumns(selection) {
27
- if (!(selection instanceof _editorTables.CellSelection)) {
28
+ if (!(selection instanceof _cellSelection.CellSelection)) {
28
29
  return [];
29
30
  }
30
31
  if ((0, _expValEquals.expValEquals)('platform_editor_table_menu_updates', 'isEnabled', true)) {
@@ -32,13 +33,13 @@ var getSelectedColumns = function getSelectedColumns(selection) {
32
33
  if (!isColumnSelection) {
33
34
  return [];
34
35
  }
35
- var rect = (0, _utils.getSelectionRect)(selection);
36
+ var rect = (0, _getSelectionRect.getSelectionRect)(selection);
36
37
  return rect ? (0, _selection.getSelectedColumnIndexes)(rect) : [];
37
38
  }
38
39
 
39
40
  // Old behaviour: only standard column selections are recognised.
40
41
  if (selection.isColSelection()) {
41
- var _rect = (0, _utils.getSelectionRect)(selection);
42
+ var _rect = (0, _getSelectionRect.getSelectionRect)(selection);
42
43
  if (!_rect) {
43
44
  return [];
44
45
  }
@@ -64,7 +65,7 @@ var ColumnControls = exports.ColumnControls = function ColumnControls(_ref) {
64
65
  getScrollOffset = _ref.getScrollOffset,
65
66
  api = _ref.api;
66
67
  var columnControlsRef = (0, _react.useRef)(null);
67
- var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection', 'table'], function (states) {
68
+ var _useSharedPluginState = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(api, ['selection', 'table'], function (states) {
68
69
  var _states$tableState, _states$selectionStat;
69
70
  return {
70
71
  activeTableMenu: (_states$tableState = states.tableState) === null || _states$tableState === void 0 ? void 0 : _states$tableState.activeTableMenu,
@@ -161,12 +162,12 @@ var ColumnControls = exports.ColumnControls = function ColumnControls(_ref) {
161
162
  if (!isSameActiveMenu) {
162
163
  var _api$analytics;
163
164
  (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.attachAnalyticsEvent({
164
- action: _analytics.TABLE_ACTION.DRAG_MENU_OPENED,
165
- actionSubject: _analytics.ACTION_SUBJECT.TABLE,
165
+ action: _tableEvents.TABLE_ACTION.DRAG_MENU_OPENED,
166
+ actionSubject: _enums.ACTION_SUBJECT.TABLE,
166
167
  actionSubjectId: null,
167
- eventType: _analytics.EVENT_TYPE.TRACK,
168
+ eventType: _enums.EVENT_TYPE.TRACK,
168
169
  attributes: {
169
- inputMethod: trigger === 'keyboard' ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE,
170
+ inputMethod: trigger === 'keyboard' ? _enums.INPUT_METHOD.KEYBOARD : _enums.INPUT_METHOD.MOUSE,
170
171
  direction: 'column'
171
172
  }
172
173
  })(tr);
@@ -202,8 +203,8 @@ var ColumnControls = exports.ColumnControls = function ColumnControls(_ref) {
202
203
  return sum + cur;
203
204
  }, 0)) !== null && _rowHeights$reduce !== void 0 ? _rowHeights$reduce : 0;
204
205
  var previewWidth = (_colWidths$reduce = colWidths === null || colWidths === void 0 ? void 0 : colWidths.reduce(function (sum, v, i) {
205
- return sum + (v !== null && v !== void 0 ? v : _styles.tableCellMinWidth) * (indexes.includes(i) ? 1 : 0);
206
- }, 0)) !== null && _colWidths$reduce !== void 0 ? _colWidths$reduce : _styles.tableCellMinWidth;
206
+ return sum + (v !== null && v !== void 0 ? v : _table.tableCellMinWidth) * (indexes.includes(i) ? 1 : 0);
207
+ }, 0)) !== null && _colWidths$reduce !== void 0 ? _colWidths$reduce : _table.tableCellMinWidth;
207
208
  return /*#__PURE__*/_react.default.createElement("div", {
208
209
  contentEditable: false,
209
210
  key: type,
@@ -272,7 +273,7 @@ var ColumnControls = exports.ColumnControls = function ColumnControls(_ref) {
272
273
  }
273
274
  return handles;
274
275
  };
275
- var containerWidth = isNumberColumnEnabled && tableContainerWidth ? tableContainerWidth - _editorSharedStyles.akEditorTableNumberColumnWidth : tableContainerWidth;
276
+ var containerWidth = isNumberColumnEnabled && tableContainerWidth ? tableContainerWidth - _constants.akEditorTableNumberColumnWidth : tableContainerWidth;
276
277
  return /*#__PURE__*/_react.default.createElement("div", {
277
278
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
278
279
  className: _types.TableCssClassName.DRAG_COLUMN_CONTROLS,
@@ -14,7 +14,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _react = _interopRequireWildcard(require("react"));
16
16
  var _classnames2 = _interopRequireDefault(require("classnames"));
17
- var _coreUtils = require("@atlaskit/editor-common/core-utils");
17
+ var _isSsr = require("@atlaskit/editor-common/is-ssr");
18
18
  var _utils = require("@atlaskit/editor-tables/utils");
19
19
  var _fg = require("@atlaskit/platform-feature-flags/fg");
20
20
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
@@ -83,7 +83,7 @@ var NumberColumn = exports.default = /*#__PURE__*/function (_Component) {
83
83
  // with platform_editor_table_q4_loveability enabled, table controls have margin-top of 1px applied. Offset this here.
84
84
  return rowHeights[0] + 1;
85
85
  };
86
- if ((0, _coreUtils.isSSR)()) {
86
+ if ((0, _isSsr.isSSR)()) {
87
87
  return /*#__PURE__*/_react.default.createElement("div", {
88
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
89
89
  className: _types.TableCssClassName.NUMBERED_COLUMN,
@@ -8,10 +8,11 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.DragControlsWithSelection = exports.DragControls = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
- var _analytics = require("@atlaskit/editor-common/analytics");
12
- var _hooks = require("@atlaskit/editor-common/hooks");
13
- var _editorTables = require("@atlaskit/editor-tables");
14
- var _utils = require("@atlaskit/editor-tables/utils");
11
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
12
+ var _tableEvents = require("@atlaskit/editor-common/analytics/types/table-events");
13
+ var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
14
+ var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
15
+ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rect");
15
16
  var _elementAdapter = require("@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter");
16
17
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
18
  var _commands = require("../../../pm-plugins/commands");
@@ -27,7 +28,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
27
28
  /* eslint-disable @atlaskit/design-system/prefer-primitives */
28
29
 
29
30
  var getSelectedRows = function getSelectedRows(selection) {
30
- if (!(selection instanceof _editorTables.CellSelection)) {
31
+ if (!(selection instanceof _cellSelection.CellSelection)) {
31
32
  return [];
32
33
  }
33
34
  if ((0, _expValEquals.expValEquals)('platform_editor_table_menu_updates', 'isEnabled', true)) {
@@ -36,13 +37,13 @@ var getSelectedRows = function getSelectedRows(selection) {
36
37
  if (!selection.isRowSelection() && !(0, _selection.isRowSelectionWithMergedFirstColumn)(selection)) {
37
38
  return [];
38
39
  }
39
- var rect = (0, _utils.getSelectionRect)(selection);
40
+ var rect = (0, _getSelectionRect.getSelectionRect)(selection);
40
41
  return rect ? (0, _selection.getSelectedRowIndexes)(rect) : [];
41
42
  }
42
43
 
43
44
  // Old behaviour: only standard row selections are recognised.
44
45
  if (selection.isRowSelection()) {
45
- var _rect = (0, _utils.getSelectionRect)(selection);
46
+ var _rect = (0, _getSelectionRect.getSelectionRect)(selection);
46
47
  if (!_rect) {
47
48
  return [];
48
49
  }
@@ -121,12 +122,12 @@ var DragControls = exports.DragControls = function DragControls(_ref) {
121
122
  if (!isSameActiveMenu) {
122
123
  var _api$analytics;
123
124
  (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 || _api$analytics.attachAnalyticsEvent({
124
- action: _analytics.TABLE_ACTION.DRAG_MENU_OPENED,
125
- actionSubject: _analytics.ACTION_SUBJECT.TABLE,
125
+ action: _tableEvents.TABLE_ACTION.DRAG_MENU_OPENED,
126
+ actionSubject: _enums.ACTION_SUBJECT.TABLE,
126
127
  actionSubjectId: null,
127
- eventType: _analytics.EVENT_TYPE.TRACK,
128
+ eventType: _enums.EVENT_TYPE.TRACK,
128
129
  attributes: {
129
- inputMethod: trigger === 'keyboard' ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE,
130
+ inputMethod: trigger === 'keyboard' ? _enums.INPUT_METHOD.KEYBOARD : _enums.INPUT_METHOD.MOUSE,
130
131
  direction: 'row'
131
132
  }
132
133
  })(tr);
@@ -350,7 +351,7 @@ var DragControlsWithSelection = exports.DragControlsWithSelection = function Dra
350
351
  selectRows = _ref6.selectRows,
351
352
  updateCellHoverLocation = _ref6.updateCellHoverLocation,
352
353
  api = _ref6.api;
353
- var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection'], function (states) {
354
+ var _useSharedPluginState = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(api, ['selection'], function (states) {
354
355
  var _states$selectionStat;
355
356
  return {
356
357
  selection: (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FullWidthDisplay = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
- var _messages = require("@atlaskit/editor-common/messages");
10
+ var _table = require("@atlaskit/editor-common/messages/table");
11
11
  var _primitives = require("@atlaskit/primitives");
12
12
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
13
13
 
@@ -37,5 +37,5 @@ var FullWidthDisplay = exports.FullWidthDisplay = function FullWidthDisplay() {
37
37
  xcss: tableFullWidthLabelWrapperStyles
38
38
  }, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
39
39
  xcss: tableFullWidthLabelStyles
40
- }, formatMessage(_messages.tableMessages.fullWidthLabel)));
40
+ }, formatMessage(_table.messages.fullWidthLabel)));
41
41
  };
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getCellMenuComponents = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _messages = require("@atlaskit/editor-common/messages");
10
- var _editorToolbar = require("@atlaskit/editor-toolbar");
9
+ var _table = require("@atlaskit/editor-common/messages/table");
10
+ var _toolbarDropdownItemSection = require("@atlaskit/editor-toolbar/toolbar-dropdown-item-section");
11
11
  var _alignPositionBottom = _interopRequireDefault(require("@atlaskit/icon-lab/core/align-position-bottom"));
12
12
  var _alignPositionCenterVertical = _interopRequireDefault(require("@atlaskit/icon-lab/core/align-position-center-vertical"));
13
13
  var _alignPositionTop = _interopRequireDefault(require("@atlaskit/icon-lab/core/align-position-top"));
@@ -39,7 +39,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
39
39
  rank: _keys.CELL_MENU_RANK[_keys.CELL_ACTION_SECTION.key]
40
40
  }],
41
41
  component: function component(props) {
42
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, null, props.children);
42
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, null, props.children);
43
43
  }
44
44
  }, {
45
45
  type: _keys.VERTICAL_ALIGN_MENU.type,
@@ -61,7 +61,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
61
61
  rank: _keys.VERTICAL_ALIGN_MENU_RANK[_keys.VERTICAL_ALIGN_MENU_SECTION.key]
62
62
  }],
63
63
  component: function component(props) {
64
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, null, props.children);
64
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, null, props.children);
65
65
  }
66
66
  }, {
67
67
  type: _keys.VERTICAL_ALIGN_TOP_ITEM.type,
@@ -75,7 +75,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
75
75
  return /*#__PURE__*/_react.default.createElement(_VerticalAlignDropdownItem.VerticalAlignDropdownItem, {
76
76
  api: api,
77
77
  icon: _alignPositionTop.default,
78
- label: _messages.tableMessages.cellAlignmentTop,
78
+ label: _table.messages.cellAlignmentTop,
79
79
  value: "top"
80
80
  });
81
81
  }
@@ -91,7 +91,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
91
91
  return /*#__PURE__*/_react.default.createElement(_VerticalAlignDropdownItem.VerticalAlignDropdownItem, {
92
92
  api: api,
93
93
  icon: _alignPositionCenterVertical.default,
94
- label: _messages.tableMessages.cellAlignmentMiddle,
94
+ label: _table.messages.cellAlignmentMiddle,
95
95
  value: "middle"
96
96
  });
97
97
  }
@@ -107,7 +107,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
107
107
  return /*#__PURE__*/_react.default.createElement(_VerticalAlignDropdownItem.VerticalAlignDropdownItem, {
108
108
  api: api,
109
109
  icon: _alignPositionBottom.default,
110
- label: _messages.tableMessages.cellAlignmentBottom,
110
+ label: _table.messages.cellAlignmentBottom,
111
111
  value: "bottom"
112
112
  });
113
113
  }
@@ -123,7 +123,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
123
123
  rank: _keys.CELL_MENU_RANK[_keys.CELL_ADD_SECTION.key]
124
124
  }],
125
125
  component: function component(props) {
126
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
126
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
127
127
  hasSeparator: true
128
128
  }, props.children);
129
129
  }
@@ -164,7 +164,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
164
164
  rank: _keys.CELL_MENU_RANK[_keys.CELL_DANGER_SECTION.key]
165
165
  }],
166
166
  component: function component(props) {
167
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
167
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
168
168
  hasSeparator: true
169
169
  }, props.children);
170
170
  }
@@ -186,7 +186,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
186
186
  rank: _keys.CELL_MENU_RANK[_keys.CELL_ACTION_SECTION.key]
187
187
  }],
188
188
  component: function component(props) {
189
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, null, props.children);
189
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, null, props.children);
190
190
  }
191
191
  }, {
192
192
  type: _keys.VERTICAL_ALIGN_MENU.type,
@@ -208,7 +208,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
208
208
  rank: _keys.VERTICAL_ALIGN_MENU_RANK[_keys.VERTICAL_ALIGN_MENU_SECTION.key]
209
209
  }],
210
210
  component: function component(props) {
211
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, null, props.children);
211
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, null, props.children);
212
212
  }
213
213
  }, {
214
214
  type: _keys.VERTICAL_ALIGN_TOP_ITEM.type,
@@ -222,7 +222,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
222
222
  return /*#__PURE__*/_react.default.createElement(_VerticalAlignDropdownItem.VerticalAlignDropdownItem, {
223
223
  api: api,
224
224
  icon: _alignPositionTop.default,
225
- label: _messages.tableMessages.cellAlignmentTop,
225
+ label: _table.messages.cellAlignmentTop,
226
226
  value: "top"
227
227
  });
228
228
  }
@@ -238,7 +238,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
238
238
  return /*#__PURE__*/_react.default.createElement(_VerticalAlignDropdownItem.VerticalAlignDropdownItem, {
239
239
  api: api,
240
240
  icon: _alignPositionCenterVertical.default,
241
- label: _messages.tableMessages.cellAlignmentMiddle,
241
+ label: _table.messages.cellAlignmentMiddle,
242
242
  value: "middle"
243
243
  });
244
244
  }
@@ -254,7 +254,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
254
254
  return /*#__PURE__*/_react.default.createElement(_VerticalAlignDropdownItem.VerticalAlignDropdownItem, {
255
255
  api: api,
256
256
  icon: _alignPositionBottom.default,
257
- label: _messages.tableMessages.cellAlignmentBottom,
257
+ label: _table.messages.cellAlignmentBottom,
258
258
  value: "bottom"
259
259
  });
260
260
  }
@@ -295,7 +295,7 @@ var getCellMenuComponents = exports.getCellMenuComponents = function getCellMenu
295
295
  rank: _keys.CELL_MENU_RANK[_keys.CELL_DANGER_SECTION.key]
296
296
  }],
297
297
  component: function component(props) {
298
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
298
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
299
299
  hasSeparator: true
300
300
  }, props.children);
301
301
  }
@@ -7,9 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.MergeCellsItem = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
- var _analytics = require("@atlaskit/editor-common/analytics");
11
- var _messages = require("@atlaskit/editor-common/messages");
12
- var _editorToolbar = require("@atlaskit/editor-toolbar");
10
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
11
+ var _table = require("@atlaskit/editor-common/messages/table");
12
+ var _cellMergeIcon = require("@atlaskit/editor-toolbar/cell-merge-icon");
13
+ var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
13
14
  var _commands = require("../../../../pm-plugins/commands");
14
15
  var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
15
16
  var _TableMenuContext = require("../../shared/TableMenuContext");
@@ -32,18 +33,18 @@ var MergeCellsItem = exports.MergeCellsItem = function MergeCellsItem(_ref) {
32
33
  if (!editorView) {
33
34
  return;
34
35
  }
35
- (0, _commandsWithAnalytics.mergeCellsWithAnalytics)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(_analytics.INPUT_METHOD.CONTEXT_MENU)(editorView.state, editorView.dispatch);
36
+ (0, _commandsWithAnalytics.mergeCellsWithAnalytics)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(_enums.INPUT_METHOD.CONTEXT_MENU)(editorView.state, editorView.dispatch);
36
37
  api === null || api === void 0 || api.core.actions.execute((0, _commands.closeActiveTableMenu)(api));
37
38
  api === null || api === void 0 || api.core.actions.focus();
38
39
  };
39
40
  if (!shouldShowMergeCells(tableMenuContext)) {
40
41
  return null;
41
42
  }
42
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
43
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
43
44
  onClick: handleClick,
44
- elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.TableCellMergeIcon, {
45
+ elemBefore: /*#__PURE__*/_react.default.createElement(_cellMergeIcon.TableCellMergeIcon, {
45
46
  label: "",
46
47
  size: "small"
47
48
  })
48
- }, formatMessage(_messages.tableMessages.mergeCells));
49
+ }, formatMessage(_table.messages.mergeCells));
49
50
  };
@@ -7,9 +7,10 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.SplitCellItem = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
- var _analytics = require("@atlaskit/editor-common/analytics");
11
- var _messages = require("@atlaskit/editor-common/messages");
12
- var _editorToolbar = require("@atlaskit/editor-toolbar");
10
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
11
+ var _table = require("@atlaskit/editor-common/messages/table");
12
+ var _cellSplitIcon = require("@atlaskit/editor-toolbar/cell-split-icon");
13
+ var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
13
14
  var _commands = require("../../../../pm-plugins/commands");
14
15
  var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
15
16
  var _TableMenuContext = require("../../shared/TableMenuContext");
@@ -32,18 +33,18 @@ var SplitCellItem = exports.SplitCellItem = function SplitCellItem(_ref) {
32
33
  if (!editorView) {
33
34
  return;
34
35
  }
35
- (0, _commandsWithAnalytics.splitCellWithAnalytics)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(_analytics.INPUT_METHOD.CONTEXT_MENU)(editorView.state, editorView.dispatch);
36
+ (0, _commandsWithAnalytics.splitCellWithAnalytics)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(_enums.INPUT_METHOD.CONTEXT_MENU)(editorView.state, editorView.dispatch);
36
37
  api === null || api === void 0 || api.core.actions.execute((0, _commands.closeActiveTableMenu)(api));
37
38
  api === null || api === void 0 || api.core.actions.focus();
38
39
  };
39
40
  if (!shouldShowSplitCell(tableMenuContext)) {
40
41
  return null;
41
42
  }
42
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
43
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
43
44
  onClick: handleClick,
44
- elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.TableCellSplitIcon, {
45
+ elemBefore: /*#__PURE__*/_react.default.createElement(_cellSplitIcon.TableCellSplitIcon, {
45
46
  label: "",
46
47
  size: "small"
47
48
  })
48
- }, formatMessage(_messages.tableMessages.splitCell));
49
+ }, formatMessage(_table.messages.splitCell));
49
50
  };
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.VerticalAlignDropdownItem = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
- var _analytics = require("@atlaskit/editor-common/analytics");
11
- var _editorToolbar = require("@atlaskit/editor-toolbar");
10
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
11
+ var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
12
12
  var _commands = require("../../../../pm-plugins/commands");
13
13
  var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
14
14
  var _pluginFactory = require("../../../../pm-plugins/plugin-factory");
@@ -37,7 +37,7 @@ var VerticalAlignDropdownItem = exports.VerticalAlignDropdownItem = function Ver
37
37
  api.core.actions.execute(function (_ref3) {
38
38
  var _api$analytics;
39
39
  var tr = _ref3.tr;
40
- (0, _commandsWithAnalytics.setCellVerticalAlignmentWithAnalytics)((_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(_analytics.INPUT_METHOD.TABLE_CONTEXT_MENU, value, targetCellPosition)({
40
+ (0, _commandsWithAnalytics.setCellVerticalAlignmentWithAnalytics)((_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(_enums.INPUT_METHOD.TABLE_CONTEXT_MENU, value, targetCellPosition)({
41
41
  tr: tr
42
42
  });
43
43
  (0, _commands.closeActiveTableMenu)(api)({
@@ -50,7 +50,7 @@ var VerticalAlignDropdownItem = exports.VerticalAlignDropdownItem = function Ver
50
50
  if (!editorView) {
51
51
  return null;
52
52
  }
53
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
53
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
54
54
  elemBefore: /*#__PURE__*/_react.default.createElement(Icon, {
55
55
  color: "currentColor",
56
56
  label: "",
@@ -8,8 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.VerticalAlignNestedMenu = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _reactIntl = require("react-intl");
11
- var _messages = require("@atlaskit/editor-common/messages");
12
- var _editorToolbar = require("@atlaskit/editor-toolbar");
11
+ var _table = require("@atlaskit/editor-common/messages/table");
12
+ var _nestedDropdownRightIcon = require("@atlaskit/editor-toolbar/nested-dropdown-right-icon");
13
+ var _toolbarNestedDropdownMenu = require("@atlaskit/editor-toolbar/toolbar-nested-dropdown-menu");
13
14
  var _alignPositionBottom = _interopRequireDefault(require("@atlaskit/icon-lab/core/align-position-bottom"));
14
15
  var _alignPositionCenterVertical = _interopRequireDefault(require("@atlaskit/icon-lab/core/align-position-center-vertical"));
15
16
  var _alignPositionTop = _interopRequireDefault(require("@atlaskit/icon-lab/core/align-position-top"));
@@ -41,16 +42,16 @@ var VerticalAlignNestedMenu = exports.VerticalAlignNestedMenu = function Vertica
41
42
  if (!editorView) {
42
43
  return null;
43
44
  }
44
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarNestedDropdownMenu, {
45
+ return /*#__PURE__*/_react.default.createElement(_toolbarNestedDropdownMenu.ToolbarNestedDropdownMenu, {
45
46
  elemBefore: /*#__PURE__*/_react.default.createElement(TriggerIcon, {
46
47
  color: "currentColor",
47
48
  label: "",
48
49
  size: "small"
49
50
  }),
50
- elemAfter: /*#__PURE__*/_react.default.createElement(_editorToolbar.NestedDropdownRightIcon, {
51
+ elemAfter: /*#__PURE__*/_react.default.createElement(_nestedDropdownRightIcon.NestedDropdownRightIcon, {
51
52
  label: "",
52
53
  size: "small"
53
54
  }),
54
- text: formatMessage(_messages.tableMessages.cellAlignment)
55
+ text: formatMessage(_table.messages.cellAlignment)
55
56
  }, children);
56
57
  };
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getColumnMenuComponents = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _editorToolbar = require("@atlaskit/editor-toolbar");
9
+ var _toolbarDropdownItemSection = require("@atlaskit/editor-toolbar/toolbar-dropdown-item-section");
10
10
  var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  var _AddColumnLeftItem = require("./items/AddColumnLeftItem");
12
12
  var _AddColumnRightItem = require("./items/AddColumnRightItem");
@@ -85,7 +85,7 @@ var getColumnMenuComponents = exports.getColumnMenuComponents = function getColu
85
85
  rank: _keys.COLUMN_SECTION_RANK[_keys.COLUMN_SORT_SECTION.key]
86
86
  }],
87
87
  component: function component(props) {
88
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
88
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
89
89
  hasSeparator: true
90
90
  }, props.children);
91
91
  }
@@ -126,7 +126,7 @@ var getColumnMenuComponents = exports.getColumnMenuComponents = function getColu
126
126
  rank: _keys.COLUMN_SECTION_RANK[_keys.COLUMN_ADD_SECTION.key]
127
127
  }],
128
128
  component: function component(props) {
129
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
129
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
130
130
  hasSeparator: true
131
131
  }, props.children);
132
132
  }
@@ -180,7 +180,7 @@ var getColumnMenuComponents = exports.getColumnMenuComponents = function getColu
180
180
  rank: _keys.COLUMN_SECTION_RANK[_keys.COLUMN_DANGER_SECTION.key]
181
181
  }],
182
182
  component: function component(props) {
183
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
183
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
184
184
  hasSeparator: true
185
185
  }, props.children);
186
186
  }
@@ -245,7 +245,7 @@ var getColumnMenuComponents = exports.getColumnMenuComponents = function getColu
245
245
  rank: _keys.COLUMN_SECTION_RANK[_keys.COLUMN_SORT_SECTION.key]
246
246
  }],
247
247
  component: function component(props) {
248
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
248
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
249
249
  hasSeparator: true
250
250
  }, props.children);
251
251
  }
@@ -286,7 +286,7 @@ var getColumnMenuComponents = exports.getColumnMenuComponents = function getColu
286
286
  rank: _keys.COLUMN_SECTION_RANK[_keys.COLUMN_ADD_SECTION.key]
287
287
  }],
288
288
  component: function component(props) {
289
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
289
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
290
290
  hasSeparator: true
291
291
  }, props.children);
292
292
  }
@@ -366,7 +366,7 @@ var getColumnMenuComponents = exports.getColumnMenuComponents = function getColu
366
366
  rank: _keys.COLUMN_SECTION_RANK[_keys.COLUMN_DANGER_SECTION.key]
367
367
  }],
368
368
  component: function component(props) {
369
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
369
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItemSection.ToolbarDropdownItemSection, {
370
370
  hasSeparator: true
371
371
  }, props.children);
372
372
  }
@@ -7,12 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.AddColumnLeftItem = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntl = require("react-intl");
10
- var _analytics = require("@atlaskit/editor-common/analytics");
11
- var _hooks = require("@atlaskit/editor-common/hooks");
10
+ var _enums = require("@atlaskit/editor-common/analytics/types/enums");
12
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
13
- var _messages = require("@atlaskit/editor-common/messages");
14
- var _utils = require("@atlaskit/editor-tables/utils");
15
- var _editorToolbar = require("@atlaskit/editor-toolbar");
12
+ var _table = require("@atlaskit/editor-common/messages/table");
13
+ var _useSharedPluginStateWithSelector = require("@atlaskit/editor-common/useSharedPluginStateWithSelector");
14
+ var _getSelectionRect = require("@atlaskit/editor-tables/utils/get-selection-rect");
15
+ var _columnAddLeftIcon = require("@atlaskit/editor-toolbar/column-add-left-icon");
16
+ var _toolbarDropdownItem = require("@atlaskit/editor-toolbar/toolbar-dropdown-item");
17
+ var _toolbarKeyboardShortcutHint = require("@atlaskit/editor-toolbar/toolbar-keyboard-shortcut-hint");
16
18
  var _commands = require("../../../../pm-plugins/commands");
17
19
  var _commandsWithAnalytics = require("../../../../pm-plugins/commands/commands-with-analytics");
18
20
  var _TableMenuContext = require("../../shared/TableMenuContext");
@@ -23,7 +25,7 @@ var AddColumnLeftItem = exports.AddColumnLeftItem = function AddColumnLeftItem(_
23
25
  editorView = _ref2.editorView;
24
26
  var _useIntl = (0, _reactIntl.useIntl)(),
25
27
  formatMessage = _useIntl.formatMessage;
26
- var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api !== null && api !== void 0 ? api : undefined, ['table'], function (states) {
28
+ var _useSharedPluginState = (0, _useSharedPluginStateWithSelector.useSharedPluginStateWithSelector)(api !== null && api !== void 0 ? api : undefined, ['table'], function (states) {
27
29
  var tableState = states.tableState;
28
30
  return {
29
31
  isCommentEditor: tableState === null || tableState === void 0 ? void 0 : tableState.isCommentEditor,
@@ -39,25 +41,25 @@ var AddColumnLeftItem = exports.AddColumnLeftItem = function AddColumnLeftItem(_
39
41
  if (!editorView) {
40
42
  return;
41
43
  }
42
- var selectionRect = (0, _utils.getSelectionRect)(editorView.state.selection);
44
+ var selectionRect = (0, _getSelectionRect.getSelectionRect)(editorView.state.selection);
43
45
  var index = selectionRect === null || selectionRect === void 0 ? void 0 : selectionRect.left;
44
46
  if (index === undefined) {
45
47
  return;
46
48
  }
47
49
  var shouldUseIncreasedScalingPercent = isTableScalingEnabled && (isTableFixedColumnWidthsOptionEnabled || isCommentEditor);
48
- (0, _commandsWithAnalytics.insertColumnWithAnalytics)(api, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor)(_analytics.INPUT_METHOD.TABLE_CONTEXT_MENU, index)(editorView.state, editorView.dispatch, editorView);
50
+ (0, _commandsWithAnalytics.insertColumnWithAnalytics)(api, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, shouldUseIncreasedScalingPercent, isCommentEditor)(_enums.INPUT_METHOD.TABLE_CONTEXT_MENU, index)(editorView.state, editorView.dispatch, editorView);
49
51
  api === null || api === void 0 || api.core.actions.execute((0, _commands.closeActiveTableMenu)(api));
50
52
  api === null || api === void 0 || api.core.actions.focus();
51
53
  };
52
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
54
+ return /*#__PURE__*/_react.default.createElement(_toolbarDropdownItem.ToolbarDropdownItem, {
53
55
  onClick: handleClick,
54
- elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.TableColumnAddLeftIcon, {
56
+ elemBefore: /*#__PURE__*/_react.default.createElement(_columnAddLeftIcon.TableColumnAddLeftIcon, {
55
57
  color: "currentColor",
56
58
  label: "",
57
59
  size: "small"
58
60
  }),
59
- elemAfter: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarKeyboardShortcutHint, {
61
+ elemAfter: /*#__PURE__*/_react.default.createElement(_toolbarKeyboardShortcutHint.ToolbarKeyboardShortcutHint, {
60
62
  shortcut: (_tooltip = (0, _keymaps.tooltip)(_keymaps.addColumnBefore)) !== null && _tooltip !== void 0 ? _tooltip : ''
61
63
  })
62
- }, formatMessage(_messages.tableMessages.addColumnLeft));
64
+ }, formatMessage(_table.messages.addColumnLeft));
63
65
  };