@atlaskit/editor-plugin-table 8.4.12 → 8.4.13

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 (387) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/nodeviews/ExternalDropTargets.js +6 -3
  3. package/dist/cjs/nodeviews/TableCell.js +5 -0
  4. package/dist/cjs/nodeviews/TableComponent.js +92 -29
  5. package/dist/cjs/nodeviews/TableComponentWithSharedState.js +7 -1
  6. package/dist/cjs/nodeviews/TableContainer.js +16 -6
  7. package/dist/cjs/nodeviews/TableNodeViewBase.js +4 -0
  8. package/dist/cjs/nodeviews/TableResizer.js +44 -15
  9. package/dist/cjs/nodeviews/TableRow.js +45 -1
  10. package/dist/cjs/nodeviews/TableStickyScrollbar.js +21 -2
  11. package/dist/cjs/nodeviews/lazy-node-views.js +16 -4
  12. package/dist/cjs/nodeviews/table.js +53 -18
  13. package/dist/cjs/pm-plugins/commands/clear.js +6 -0
  14. package/dist/cjs/pm-plugins/commands/column-resize.js +26 -17
  15. package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +39 -26
  16. package/dist/cjs/pm-plugins/commands/go-to-next-cell.js +2 -0
  17. package/dist/cjs/pm-plugins/commands/hover.js +17 -13
  18. package/dist/cjs/pm-plugins/commands/insert.js +27 -10
  19. package/dist/cjs/pm-plugins/commands/misc.js +29 -9
  20. package/dist/cjs/pm-plugins/commands/selection.js +4 -0
  21. package/dist/cjs/pm-plugins/commands/sort.js +10 -1
  22. package/dist/cjs/pm-plugins/commands/toggle.js +2 -0
  23. package/dist/cjs/pm-plugins/decorations/plugin.js +9 -4
  24. package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +4 -1
  25. package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +19 -10
  26. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +16 -7
  27. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +21 -8
  28. package/dist/cjs/pm-plugins/handlers.js +2 -2
  29. package/dist/cjs/pm-plugins/keymap.js +103 -24
  30. package/dist/cjs/pm-plugins/main.js +22 -11
  31. package/dist/cjs/pm-plugins/table-resizing/commands.js +7 -6
  32. package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +39 -20
  33. package/dist/cjs/pm-plugins/table-resizing/plugin.js +4 -2
  34. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +19 -1
  35. package/dist/cjs/pm-plugins/table-resizing/utils/column-state.js +6 -1
  36. package/dist/cjs/pm-plugins/table-resizing/utils/content-width.js +17 -0
  37. package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +4 -0
  38. package/dist/cjs/pm-plugins/table-resizing/utils/misc.js +2 -0
  39. package/dist/cjs/pm-plugins/table-resizing/utils/resize-column.js +8 -1
  40. package/dist/cjs/pm-plugins/table-resizing/utils/resize-logic.js +10 -2
  41. package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +6 -3
  42. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  43. package/dist/cjs/pm-plugins/table-selection-keymap.js +12 -0
  44. package/dist/cjs/pm-plugins/table-width.js +9 -4
  45. package/dist/cjs/pm-plugins/transforms/column-width.js +8 -5
  46. package/dist/cjs/pm-plugins/transforms/delete-columns.js +2 -0
  47. package/dist/cjs/pm-plugins/transforms/fix-tables.js +24 -8
  48. package/dist/cjs/pm-plugins/transforms/merge.js +7 -0
  49. package/dist/cjs/pm-plugins/transforms/replace-table.js +6 -3
  50. package/dist/cjs/pm-plugins/transforms/split.js +6 -1
  51. package/dist/cjs/pm-plugins/utils/alignment.js +4 -1
  52. package/dist/cjs/pm-plugins/utils/analytics.js +3 -3
  53. package/dist/cjs/pm-plugins/utils/column-controls.js +4 -0
  54. package/dist/cjs/pm-plugins/utils/create.js +2 -2
  55. package/dist/cjs/pm-plugins/utils/decoration.js +24 -6
  56. package/dist/cjs/pm-plugins/utils/dom.js +4 -0
  57. package/dist/cjs/pm-plugins/utils/drag-menu.js +19 -7
  58. package/dist/cjs/pm-plugins/utils/nodes.js +3 -0
  59. package/dist/cjs/pm-plugins/utils/paste.js +4 -1
  60. package/dist/cjs/pm-plugins/utils/row-controls.js +4 -1
  61. package/dist/cjs/tablePlugin.js +24 -18
  62. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -0
  63. package/dist/cjs/ui/DragHandle/HandleIconComponent.js +5 -3
  64. package/dist/cjs/ui/DragHandle/index.js +14 -7
  65. package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +8 -1
  66. package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +4 -0
  67. package/dist/cjs/ui/FloatingContextualButton/index.js +7 -1
  68. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +32 -15
  69. package/dist/cjs/ui/FloatingContextualMenu/index.js +19 -4
  70. package/dist/cjs/ui/FloatingDeleteButton/index.js +27 -5
  71. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +19 -7
  72. package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +15 -2
  73. package/dist/cjs/ui/FloatingDragMenu/index.js +4 -1
  74. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +4 -0
  75. package/dist/cjs/ui/FloatingInsertButton/getPopupOptions.js +6 -0
  76. package/dist/cjs/ui/FloatingInsertButton/index.js +27 -3
  77. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +30 -8
  78. package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  79. package/dist/cjs/ui/TableFloatingColumnControls/index.js +9 -5
  80. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  81. package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +4 -4
  82. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +8 -2
  83. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +9 -5
  84. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +68 -41
  85. package/dist/cjs/ui/TableFloatingControls/index.js +19 -8
  86. package/dist/cjs/ui/common-styles.js +1 -1
  87. package/dist/cjs/ui/event-handlers.js +59 -32
  88. package/dist/cjs/ui/icons/SortingIconWrapper.js +2 -0
  89. package/dist/cjs/ui/toolbar.js +42 -16
  90. package/dist/es2019/nodeviews/ExternalDropTargets.js +5 -2
  91. package/dist/es2019/nodeviews/TableCell.js +5 -0
  92. package/dist/es2019/nodeviews/TableComponent.js +77 -13
  93. package/dist/es2019/nodeviews/TableComponentWithSharedState.js +8 -1
  94. package/dist/es2019/nodeviews/TableContainer.js +14 -4
  95. package/dist/es2019/nodeviews/TableNodeViewBase.js +4 -0
  96. package/dist/es2019/nodeviews/TableResizer.js +33 -4
  97. package/dist/es2019/nodeviews/TableRow.js +45 -1
  98. package/dist/es2019/nodeviews/TableStickyScrollbar.js +20 -2
  99. package/dist/es2019/nodeviews/lazy-node-views.js +16 -4
  100. package/dist/es2019/nodeviews/table.js +47 -12
  101. package/dist/es2019/pm-plugins/commands/clear.js +6 -0
  102. package/dist/es2019/pm-plugins/commands/column-resize.js +16 -7
  103. package/dist/es2019/pm-plugins/commands/commands-with-analytics.js +28 -9
  104. package/dist/es2019/pm-plugins/commands/delete.js +4 -1
  105. package/dist/es2019/pm-plugins/commands/go-to-next-cell.js +2 -0
  106. package/dist/es2019/pm-plugins/commands/hover.js +5 -1
  107. package/dist/es2019/pm-plugins/commands/insert.js +26 -6
  108. package/dist/es2019/pm-plugins/commands/misc.js +25 -5
  109. package/dist/es2019/pm-plugins/commands/selection.js +4 -0
  110. package/dist/es2019/pm-plugins/commands/sort.js +10 -1
  111. package/dist/es2019/pm-plugins/commands/toggle.js +2 -0
  112. package/dist/es2019/pm-plugins/decorations/plugin.js +7 -2
  113. package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +4 -1
  114. package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +14 -5
  115. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +17 -5
  116. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +21 -5
  117. package/dist/es2019/pm-plugins/handlers.js +1 -1
  118. package/dist/es2019/pm-plugins/keymap.js +104 -24
  119. package/dist/es2019/pm-plugins/main.js +16 -5
  120. package/dist/es2019/pm-plugins/table-resizing/commands.js +3 -2
  121. package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +25 -6
  122. package/dist/es2019/pm-plugins/table-resizing/plugin.js +4 -1
  123. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +23 -2
  124. package/dist/es2019/pm-plugins/table-resizing/utils/column-state.js +6 -1
  125. package/dist/es2019/pm-plugins/table-resizing/utils/content-width.js +17 -0
  126. package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +4 -0
  127. package/dist/es2019/pm-plugins/table-resizing/utils/misc.js +2 -0
  128. package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +12 -2
  129. package/dist/es2019/pm-plugins/table-resizing/utils/resize-logic.js +10 -2
  130. package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +9 -3
  131. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +18 -6
  132. package/dist/es2019/pm-plugins/table-selection-keymap.js +12 -0
  133. package/dist/es2019/pm-plugins/table-width.js +7 -2
  134. package/dist/es2019/pm-plugins/transforms/column-width.js +12 -5
  135. package/dist/es2019/pm-plugins/transforms/delete-columns.js +6 -1
  136. package/dist/es2019/pm-plugins/transforms/fix-tables.js +20 -4
  137. package/dist/es2019/pm-plugins/transforms/merge.js +7 -0
  138. package/dist/es2019/pm-plugins/transforms/replace-table.js +5 -2
  139. package/dist/es2019/pm-plugins/transforms/split.js +6 -1
  140. package/dist/es2019/pm-plugins/utils/alignment.js +4 -1
  141. package/dist/es2019/pm-plugins/utils/analytics.js +2 -2
  142. package/dist/es2019/pm-plugins/utils/column-controls.js +4 -0
  143. package/dist/es2019/pm-plugins/utils/create.js +1 -1
  144. package/dist/es2019/pm-plugins/utils/decoration.js +24 -6
  145. package/dist/es2019/pm-plugins/utils/dom.js +4 -0
  146. package/dist/es2019/pm-plugins/utils/drag-menu.js +19 -4
  147. package/dist/es2019/pm-plugins/utils/nodes.js +3 -0
  148. package/dist/es2019/pm-plugins/utils/paste.js +8 -2
  149. package/dist/es2019/pm-plugins/utils/row-controls.js +4 -1
  150. package/dist/es2019/pm-plugins/utils/snapping.js +4 -1
  151. package/dist/es2019/tablePlugin.js +13 -4
  152. package/dist/es2019/ui/ColumnResizeWidget/index.js +2 -0
  153. package/dist/es2019/ui/DragHandle/HandleIconComponent.js +3 -1
  154. package/dist/es2019/ui/DragHandle/index.js +10 -3
  155. package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +8 -1
  156. package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +4 -0
  157. package/dist/es2019/ui/FloatingContextualButton/index.js +7 -1
  158. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +23 -6
  159. package/dist/es2019/ui/FloatingContextualMenu/index.js +19 -4
  160. package/dist/es2019/ui/FloatingDeleteButton/index.js +23 -1
  161. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +15 -3
  162. package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +15 -2
  163. package/dist/es2019/ui/FloatingDragMenu/index.js +4 -1
  164. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +4 -0
  165. package/dist/es2019/ui/FloatingInsertButton/getPopupOptions.js +6 -0
  166. package/dist/es2019/ui/FloatingInsertButton/index.js +26 -2
  167. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +28 -6
  168. package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  169. package/dist/es2019/ui/TableFloatingColumnControls/index.js +7 -2
  170. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  171. package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +2 -2
  172. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +7 -1
  173. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +7 -2
  174. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +32 -6
  175. package/dist/es2019/ui/TableFloatingControls/index.js +14 -3
  176. package/dist/es2019/ui/common-styles.js +7 -0
  177. package/dist/es2019/ui/event-handlers.js +35 -5
  178. package/dist/es2019/ui/icons/SortingIconWrapper.js +2 -0
  179. package/dist/es2019/ui/toolbar.js +58 -14
  180. package/dist/esm/nodeviews/ExternalDropTargets.js +5 -2
  181. package/dist/esm/nodeviews/TableCell.js +5 -0
  182. package/dist/esm/nodeviews/TableComponent.js +75 -11
  183. package/dist/esm/nodeviews/TableComponentWithSharedState.js +8 -1
  184. package/dist/esm/nodeviews/TableContainer.js +14 -4
  185. package/dist/esm/nodeviews/TableNodeViewBase.js +4 -0
  186. package/dist/esm/nodeviews/TableResizer.js +33 -4
  187. package/dist/esm/nodeviews/TableRow.js +45 -1
  188. package/dist/esm/nodeviews/TableStickyScrollbar.js +21 -2
  189. package/dist/esm/nodeviews/lazy-node-views.js +16 -4
  190. package/dist/esm/nodeviews/table.js +47 -12
  191. package/dist/esm/pm-plugins/commands/clear.js +6 -0
  192. package/dist/esm/pm-plugins/commands/column-resize.js +16 -7
  193. package/dist/esm/pm-plugins/commands/commands-with-analytics.js +20 -7
  194. package/dist/esm/pm-plugins/commands/go-to-next-cell.js +2 -0
  195. package/dist/esm/pm-plugins/commands/hover.js +5 -1
  196. package/dist/esm/pm-plugins/commands/insert.js +22 -5
  197. package/dist/esm/pm-plugins/commands/misc.js +25 -5
  198. package/dist/esm/pm-plugins/commands/selection.js +4 -0
  199. package/dist/esm/pm-plugins/commands/sort.js +10 -1
  200. package/dist/esm/pm-plugins/commands/toggle.js +2 -0
  201. package/dist/esm/pm-plugins/decorations/plugin.js +7 -2
  202. package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +4 -1
  203. package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +14 -5
  204. package/dist/esm/pm-plugins/drag-and-drop/commands.js +13 -4
  205. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +17 -4
  206. package/dist/esm/pm-plugins/handlers.js +1 -1
  207. package/dist/esm/pm-plugins/keymap.js +104 -24
  208. package/dist/esm/pm-plugins/main.js +16 -5
  209. package/dist/esm/pm-plugins/table-resizing/commands.js +3 -2
  210. package/dist/esm/pm-plugins/table-resizing/event-handlers.js +25 -6
  211. package/dist/esm/pm-plugins/table-resizing/plugin.js +4 -1
  212. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +19 -1
  213. package/dist/esm/pm-plugins/table-resizing/utils/column-state.js +6 -1
  214. package/dist/esm/pm-plugins/table-resizing/utils/content-width.js +17 -0
  215. package/dist/esm/pm-plugins/table-resizing/utils/dom.js +4 -0
  216. package/dist/esm/pm-plugins/table-resizing/utils/misc.js +2 -0
  217. package/dist/esm/pm-plugins/table-resizing/utils/resize-column.js +8 -1
  218. package/dist/esm/pm-plugins/table-resizing/utils/resize-logic.js +10 -2
  219. package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +5 -2
  220. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +2 -2
  221. package/dist/esm/pm-plugins/table-selection-keymap.js +12 -0
  222. package/dist/esm/pm-plugins/table-width.js +7 -2
  223. package/dist/esm/pm-plugins/transforms/column-width.js +6 -4
  224. package/dist/esm/pm-plugins/transforms/delete-columns.js +2 -0
  225. package/dist/esm/pm-plugins/transforms/fix-tables.js +20 -4
  226. package/dist/esm/pm-plugins/transforms/merge.js +7 -0
  227. package/dist/esm/pm-plugins/transforms/replace-table.js +5 -2
  228. package/dist/esm/pm-plugins/transforms/split.js +6 -1
  229. package/dist/esm/pm-plugins/utils/alignment.js +4 -1
  230. package/dist/esm/pm-plugins/utils/analytics.js +2 -2
  231. package/dist/esm/pm-plugins/utils/column-controls.js +4 -0
  232. package/dist/esm/pm-plugins/utils/create.js +1 -1
  233. package/dist/esm/pm-plugins/utils/decoration.js +24 -6
  234. package/dist/esm/pm-plugins/utils/dom.js +4 -0
  235. package/dist/esm/pm-plugins/utils/drag-menu.js +15 -3
  236. package/dist/esm/pm-plugins/utils/nodes.js +3 -0
  237. package/dist/esm/pm-plugins/utils/paste.js +4 -1
  238. package/dist/esm/pm-plugins/utils/row-controls.js +4 -1
  239. package/dist/esm/tablePlugin.js +11 -4
  240. package/dist/esm/ui/ColumnResizeWidget/index.js +2 -0
  241. package/dist/esm/ui/DragHandle/HandleIconComponent.js +3 -1
  242. package/dist/esm/ui/DragHandle/index.js +10 -3
  243. package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +8 -1
  244. package/dist/esm/ui/FloatingContextualButton/FixedButton.js +4 -0
  245. package/dist/esm/ui/FloatingContextualButton/index.js +7 -1
  246. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +23 -6
  247. package/dist/esm/ui/FloatingContextualMenu/index.js +19 -4
  248. package/dist/esm/ui/FloatingDeleteButton/index.js +23 -1
  249. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +15 -3
  250. package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +15 -2
  251. package/dist/esm/ui/FloatingDragMenu/index.js +4 -1
  252. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +4 -0
  253. package/dist/esm/ui/FloatingInsertButton/getPopupOptions.js +6 -0
  254. package/dist/esm/ui/FloatingInsertButton/index.js +26 -2
  255. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +28 -6
  256. package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  257. package/dist/esm/ui/TableFloatingColumnControls/index.js +6 -2
  258. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  259. package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +2 -2
  260. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +7 -1
  261. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +6 -2
  262. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +65 -38
  263. package/dist/esm/ui/TableFloatingControls/index.js +14 -3
  264. package/dist/esm/ui/common-styles.js +1 -1
  265. package/dist/esm/ui/event-handlers.js +31 -4
  266. package/dist/esm/ui/icons/SortingIconWrapper.js +2 -0
  267. package/dist/esm/ui/toolbar.js +34 -8
  268. package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  269. package/dist/types/pm-plugins/table-resizing/commands.d.ts +1 -1
  270. package/dist/types/pm-plugins/transforms/column-width.d.ts +1 -1
  271. package/dist/types/pm-plugins/utils/collapse.d.ts +2 -1
  272. package/dist/types/ui/FloatingContextualButton/FixedButton.d.ts +1 -1
  273. package/dist/types/ui/FloatingContextualButton/index.d.ts +1 -1
  274. package/dist/types/ui/FloatingDeleteButton/index.d.ts +1 -1
  275. package/dist/types/ui/FloatingDragMenu/index.d.ts +1 -1
  276. package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  277. package/dist/types/ui/TableFloatingColumnControls/index.d.ts +1 -1
  278. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -4
  279. package/dist/types/ui/TableFloatingControls/index.d.ts +3 -3
  280. package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  281. package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +1 -1
  282. package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +1 -1
  283. package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +2 -1
  284. package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +1 -1
  285. package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +1 -1
  286. package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +1 -1
  287. package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +1 -1
  288. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  289. package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +1 -1
  290. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +4 -4
  291. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +3 -3
  292. package/package.json +3 -3
  293. package/src/nodeviews/ExternalDropTargets.tsx +3 -1
  294. package/src/nodeviews/TableCell.ts +4 -0
  295. package/src/nodeviews/TableComponent.tsx +63 -18
  296. package/src/nodeviews/TableComponentWithSharedState.tsx +4 -0
  297. package/src/nodeviews/TableContainer.tsx +7 -1
  298. package/src/nodeviews/TableNodeViewBase.ts +4 -0
  299. package/src/nodeviews/TableResizer.tsx +27 -4
  300. package/src/nodeviews/TableRow.ts +41 -1
  301. package/src/nodeviews/TableStickyScrollbar.ts +14 -0
  302. package/src/nodeviews/__mocks__/OverflowShadowsObserver.ts +2 -0
  303. package/src/nodeviews/__mocks__/OverridableMock.ts +6 -0
  304. package/src/nodeviews/lazy-node-views.ts +8 -0
  305. package/src/nodeviews/table.tsx +30 -4
  306. package/src/pm-plugins/commands/clear.ts +6 -0
  307. package/src/pm-plugins/commands/column-resize.ts +12 -9
  308. package/src/pm-plugins/commands/commands-with-analytics.ts +21 -4
  309. package/src/pm-plugins/commands/delete.ts +2 -0
  310. package/src/pm-plugins/commands/go-to-next-cell.ts +2 -0
  311. package/src/pm-plugins/commands/hover.ts +7 -5
  312. package/src/pm-plugins/commands/insert.ts +15 -1
  313. package/src/pm-plugins/commands/misc.ts +24 -3
  314. package/src/pm-plugins/commands/selection.ts +4 -0
  315. package/src/pm-plugins/commands/sort.ts +9 -1
  316. package/src/pm-plugins/commands/toggle.ts +2 -0
  317. package/src/pm-plugins/decorations/plugin.ts +5 -1
  318. package/src/pm-plugins/decorations/utils/column-resizing.ts +2 -0
  319. package/src/pm-plugins/drag-and-drop/commands-with-analytics.ts +8 -2
  320. package/src/pm-plugins/drag-and-drop/commands.ts +9 -1
  321. package/src/pm-plugins/drag-and-drop/plugin.ts +17 -2
  322. package/src/pm-plugins/handlers.ts +1 -1
  323. package/src/pm-plugins/keymap.ts +54 -0
  324. package/src/pm-plugins/main.ts +12 -5
  325. package/src/pm-plugins/table-resizing/commands.ts +4 -3
  326. package/src/pm-plugins/table-resizing/event-handlers.ts +24 -10
  327. package/src/pm-plugins/table-resizing/plugin.ts +3 -1
  328. package/src/pm-plugins/table-resizing/utils/colgroup.ts +17 -1
  329. package/src/pm-plugins/table-resizing/utils/column-state.ts +4 -0
  330. package/src/pm-plugins/table-resizing/utils/content-width.ts +14 -0
  331. package/src/pm-plugins/table-resizing/utils/dom.ts +4 -0
  332. package/src/pm-plugins/table-resizing/utils/misc.ts +2 -0
  333. package/src/pm-plugins/table-resizing/utils/resize-column.ts +9 -1
  334. package/src/pm-plugins/table-resizing/utils/resize-logic.ts +6 -0
  335. package/src/pm-plugins/table-resizing/utils/resize-state.ts +5 -1
  336. package/src/pm-plugins/table-resizing/utils/scale-table.ts +10 -2
  337. package/src/pm-plugins/table-selection-keymap.ts +8 -0
  338. package/src/pm-plugins/table-width.ts +5 -1
  339. package/src/pm-plugins/transforms/column-width.ts +9 -7
  340. package/src/pm-plugins/transforms/delete-columns.ts +4 -0
  341. package/src/pm-plugins/transforms/fix-tables.ts +13 -6
  342. package/src/pm-plugins/transforms/merge.ts +6 -0
  343. package/src/pm-plugins/transforms/replace-table.ts +3 -1
  344. package/src/pm-plugins/transforms/split.ts +4 -0
  345. package/src/pm-plugins/utils/alignment.ts +2 -0
  346. package/src/pm-plugins/utils/analytics.ts +2 -2
  347. package/src/pm-plugins/utils/collapse.ts +3 -4
  348. package/src/pm-plugins/utils/column-controls.ts +4 -0
  349. package/src/pm-plugins/utils/create.ts +1 -1
  350. package/src/pm-plugins/utils/decoration.ts +12 -0
  351. package/src/pm-plugins/utils/dom.ts +4 -0
  352. package/src/pm-plugins/utils/drag-menu.ts +12 -1
  353. package/src/pm-plugins/utils/nodes.ts +2 -0
  354. package/src/pm-plugins/utils/paste.ts +4 -0
  355. package/src/pm-plugins/utils/row-controls.ts +2 -0
  356. package/src/pm-plugins/utils/snapping.ts +2 -0
  357. package/src/tablePlugin.tsx +13 -15
  358. package/src/tablePluginType.ts +10 -0
  359. package/src/ui/ColumnResizeWidget/index.tsx +2 -0
  360. package/src/ui/DragHandle/HandleIconComponent.tsx +3 -1
  361. package/src/ui/DragHandle/index.tsx +11 -2
  362. package/src/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.tsx +6 -0
  363. package/src/ui/FloatingContextualButton/FixedButton.tsx +5 -1
  364. package/src/ui/FloatingContextualButton/index.tsx +8 -2
  365. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +17 -7
  366. package/src/ui/FloatingContextualMenu/index.tsx +11 -1
  367. package/src/ui/FloatingDeleteButton/index.tsx +23 -4
  368. package/src/ui/FloatingDragMenu/DragMenu.tsx +13 -6
  369. package/src/ui/FloatingDragMenu/DropdownMenu.tsx +10 -0
  370. package/src/ui/FloatingDragMenu/index.tsx +3 -1
  371. package/src/ui/FloatingInsertButton/InsertButton.tsx +4 -0
  372. package/src/ui/FloatingInsertButton/getPopupOptions.ts +4 -0
  373. package/src/ui/FloatingInsertButton/index.tsx +21 -1
  374. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +19 -2
  375. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/index.tsx +2 -0
  376. package/src/ui/TableFloatingColumnControls/index.tsx +8 -4
  377. package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +2 -0
  378. package/src/ui/TableFloatingControls/FloatingControlsWithSelection.tsx +2 -2
  379. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +7 -1
  380. package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +11 -3
  381. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +20 -1
  382. package/src/ui/TableFloatingControls/index.tsx +13 -4
  383. package/src/ui/common-styles.ts +7 -0
  384. package/src/ui/event-handlers.ts +28 -3
  385. package/src/ui/icons/SortingIconWrapper.tsx +2 -0
  386. package/src/ui/toolbar.tsx +43 -11
  387. package/tsconfig.json +0 -1
@@ -4,7 +4,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import { getFreeSpace } from './column-state';
6
6
  import { bulkColumnsResize, getTotalWidth } from './resize-state';
7
- export var growColumn = function growColumn(state, colIndex, amount, selectedColumns) {
7
+ export var growColumn = function growColumn(state, colIndex, amount, selectedColumns
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line @typescript-eslint/max-params
10
+ ) {
8
11
  // can't grow if columns don't exist or it's the last column
9
12
  if (!state.cols[colIndex] || !state.cols[colIndex + 1]) {
10
13
  return state;
@@ -20,7 +23,10 @@ export var growColumn = function growColumn(state, colIndex, amount, selectedCol
20
23
  }
21
24
  return newState;
22
25
  };
23
- export var shrinkColumn = function shrinkColumn(state, colIndex, amount, selectedColumns) {
26
+ export var shrinkColumn = function shrinkColumn(state, colIndex, amount, selectedColumns
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line @typescript-eslint/max-params
29
+ ) {
24
30
  // can't shrink if columns don't exist
25
31
  if (!state.cols[colIndex]) {
26
32
  return state;
@@ -93,6 +99,8 @@ var ColType = /*#__PURE__*/function (ColType) {
93
99
  return ColType;
94
100
  }(ColType || {}); // TODO: should handle when destIdx:
95
101
  // - is beyond the range, and then not give it back
102
+ // Ignored via go/ees005
103
+ // eslint-disable-next-line @typescript-eslint/max-params
96
104
  function moveSpaceFrom(state, srcIdx, destIdx, amount) {
97
105
  var useFreeSpace = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
98
106
  var srcCol = state.cols[srcIdx];
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
5
  import { tableCellMinWidth, tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
6
6
  import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
7
- import { getSelectedTableInfo } from '../../utils';
7
+ import { getSelectedTableInfo } from '../../utils/analytics';
8
8
  import { getColWidthFix, hasTableBeenResized, insertColgroupFromNode } from './colgroup';
9
9
  import { getCellsRefsInColumn, getColumnStateFromDOM } from './column-state';
10
10
  import { syncStickyRowToTable } from './dom';
@@ -93,7 +93,10 @@ export var getResizeState = function getResizeState(_ref) {
93
93
  };
94
94
 
95
95
  // updates Colgroup DOM node with new widths
96
- export var updateColgroup = function updateColgroup(state, tableRef, tableNode, isTableScalingEnabled, scalePercent) {
96
+ export var updateColgroup = function updateColgroup(state, tableRef, tableNode, isTableScalingEnabled, scalePercent
97
+ // Ignored via go/ees005
98
+ // eslint-disable-next-line @typescript-eslint/max-params
99
+ ) {
97
100
  var cols = tableRef === null || tableRef === void 0 ? void 0 : tableRef.querySelectorAll('col');
98
101
  var columnsCount = cols === null || cols === void 0 ? void 0 : cols.length;
99
102
  /**
@@ -4,8 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
5
5
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
6
6
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
7
- import { updateColumnWidths } from '../../transforms';
8
- import { getTableWidth } from '../../utils';
7
+ import { updateColumnWidths } from '../../transforms/column-width';
8
+ import { getTableWidth } from '../../utils/nodes';
9
9
  import { getLayoutSize } from '../utils/misc';
10
10
  import { reduceSpace } from '../utils/resize-logic';
11
11
  import { adjustColumnsWidths, getResizeState, getTotalWidth, updateColgroup } from '../utils/resize-state';
@@ -6,11 +6,23 @@ export function tableSelectionKeymapPlugin(pluginInjectionApi, getIntl) {
6
6
  var list = {};
7
7
  var editorSelectionAPI = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.selection;
8
8
  var ariaNotifyPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.accessibilityUtils) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions.ariaNotify;
9
+
10
+ // Ignored via go/ees005
11
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9
12
  bindKeymapWithCommand(moveRight.common, arrowRightFromTable(editorSelectionAPI)(), list);
13
+
14
+ // Ignored via go/ees005
15
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
10
16
  bindKeymapWithCommand(moveLeft.common, arrowLeftFromTable(editorSelectionAPI)(), list);
11
17
  bindKeymapArrayWithCommand(selectColumn, selectColumns(editorSelectionAPI, ariaNotifyPlugin, getIntl)(true), list);
12
18
  bindKeymapArrayWithCommand(selectRow, selectRows(editorSelectionAPI, ariaNotifyPlugin, getIntl)(true), list);
19
+
20
+ // Ignored via go/ees005
21
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
13
22
  bindKeymapWithCommand(shiftArrowUp.common, shiftArrowUpFromTable(editorSelectionAPI)(), list);
23
+
24
+ // Ignored via go/ees005
25
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
14
26
  bindKeymapWithCommand(selectTable.common, modASelectTable(editorSelectionAPI)(), list);
15
27
  return keymap(list);
16
28
  }
@@ -14,10 +14,13 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
14
14
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
15
15
  import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
16
16
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
17
- import { TABLE_MAX_WIDTH } from './table-resizing/utils';
17
+ import { TABLE_MAX_WIDTH } from './table-resizing/utils/consts';
18
18
  import { ALIGN_START } from './utils/alignment';
19
19
  export var pluginKey = new PluginKey('tableWidthPlugin');
20
- var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent, fullWidthEnabled, isTableScalingEnabled, isTableAlignmentEnabled, isCommentEditor) {
20
+ var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent, fullWidthEnabled, isTableScalingEnabled, isTableAlignmentEnabled, isCommentEditor
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line @typescript-eslint/max-params
23
+ ) {
21
24
  return new SafePlugin({
22
25
  key: pluginKey,
23
26
  state: {
@@ -114,6 +117,8 @@ var createPlugin = function createPlugin(dispatch, dispatchAnalyticsEvent, fullW
114
117
  }
115
118
  if (referentialityTr) {
116
119
  referentialityTr.steps.forEach(function (step) {
120
+ // Ignored via go/ees005
121
+ // eslint-disable-next-line @typescript-eslint/max-params
117
122
  step.getMap().forEach(function (_, __, newStart, newEnd) {
118
123
  newState.doc.nodesBetween(newStart, newEnd, function (node, pos) {
119
124
  if (node.type === table) {
@@ -5,11 +5,10 @@ import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
5
5
  import { AttrStep } from '@atlaskit/editor-prosemirror/transform';
6
6
  import { TableMap } from '@atlaskit/editor-tables/table-map';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { getTableContainerElementWidth, getTableElementWidth, hasTableBeenResized } from '../table-resizing/utils';
9
- import { isMinCellWidthTable } from '../table-resizing/utils/colgroup';
8
+ import { isMinCellWidthTable, hasTableBeenResized } from '../table-resizing/utils/colgroup';
9
+ import { getTableContainerElementWidth, getTableElementWidth } from '../table-resizing/utils/misc';
10
10
  import { getResizeState } from '../table-resizing/utils/resize-state';
11
11
  import { scaleTableTo } from '../table-resizing/utils/scale-table';
12
-
13
12
  /**
14
13
  * Given a new ResizeState object, create a transaction that replaces and updates the table node based on new state.
15
14
  * @param resizeState
@@ -17,7 +16,10 @@ import { scaleTableTo } from '../table-resizing/utils/scale-table';
17
16
  * @param start
18
17
  * @returns
19
18
  */
20
- export var updateColumnWidths = function updateColumnWidths(resizeState, table, start, api) {
19
+ export var updateColumnWidths = function updateColumnWidths(resizeState, table, start, api
20
+ // Ignored via go/ees005
21
+ // eslint-disable-next-line @typescript-eslint/max-params
22
+ ) {
21
23
  return function (tr) {
22
24
  var map = TableMap.get(table);
23
25
  var updatedCellsAttrs = {};
@@ -29,6 +29,8 @@ var deleteColumnsCustomStep = function deleteColumnsCustomStep(rect) {
29
29
  for (var i = rect.left; i < rect.right; i++) {
30
30
  var step = AddColumnStep.create(originalDoc, table.pos, i, true);
31
31
  deletedColumns.push(i);
32
+ // Ignored via go/ees005
33
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
32
34
  tr.step(step.map(tr.mapping.slice(mapStart)));
33
35
  }
34
36
  var tablePosResult = tr.mapping.mapResult(table.pos);
@@ -3,7 +3,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
5
5
  import { akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
6
- import { calculateColumnWidth, contentWidth, getCellsRefsInColumn, getLayoutSize } from '../table-resizing/utils';
6
+ import { calculateColumnWidth, getCellsRefsInColumn } from '../table-resizing/utils/column-state';
7
+ import { contentWidth } from '../table-resizing/utils/content-width';
8
+ import { getLayoutSize } from '../table-resizing/utils/misc';
7
9
  var validateTableCellNodeAttrs = function validateTableCellNodeAttrs(_ref, reportInvalidTableCellSpanAttrs) {
8
10
  var colspan = _ref.colspan,
9
11
  rowspan = _ref.rowspan,
@@ -36,7 +38,10 @@ var validateTableCellNodeAttrs = function validateTableCellNodeAttrs(_ref, repor
36
38
  //
37
39
  // This row only spans two columns, yet it contains widths for 3.
38
40
  // We remove the third width here, assumed duplicate content.
39
- export var removeExtraneousColumnWidths = function removeExtraneousColumnWidths(node, basePos, tr, reportInvalidTableCellSpanAttrs) {
41
+ export var removeExtraneousColumnWidths = function removeExtraneousColumnWidths(node, basePos, tr, reportInvalidTableCellSpanAttrs
42
+ // Ignored via go/ees005
43
+ // eslint-disable-next-line @typescript-eslint/max-params
44
+ ) {
40
45
  var hasProblems = false;
41
46
  tr = replaceCells(tr, node, basePos, function (cell) {
42
47
  var _cell$attrs = cell.attrs,
@@ -87,7 +92,10 @@ export var fixTables = function fixTables(tr, reportInvalidTableCellSpanAttrs) {
87
92
  //
88
93
  // We use this when migrating TinyMCE tables for Confluence, for example:
89
94
  // https://pug.jira-dev.com/wiki/spaces/AEC/pages/3362882215/How+do+we+map+TinyMCE+tables+to+Fabric+tables
90
- export var fixAutoSizedTable = function fixAutoSizedTable(view, tableNode, tableRef, tablePos, opts) {
95
+ export var fixAutoSizedTable = function fixAutoSizedTable(view, tableNode, tableRef, tablePos, opts
96
+ // Ignored via go/ees005
97
+ // eslint-disable-next-line @typescript-eslint/max-params
98
+ ) {
91
99
  var tr = view.state.tr;
92
100
  var domAtPos = view.domAtPos.bind(view);
93
101
  var tableStart = tablePos + 1;
@@ -130,6 +138,9 @@ var getLayoutBasedOnWidth = function getLayoutBasedOnWidth(totalWidth) {
130
138
  return 'default';
131
139
  }
132
140
  };
141
+
142
+ // Ignored via go/ees005
143
+ // eslint-disable-next-line @typescript-eslint/max-params
133
144
  function parseDOMColumnWidths(domAtPos, tableNode, tableStart, tableRef) {
134
145
  var row = tableRef.querySelector('tr');
135
146
  if (!row) {
@@ -143,6 +154,8 @@ function parseDOMColumnWidths(domAtPos, tableNode, tableStart, tableRef) {
143
154
  var colIdx = col + span;
144
155
  var cells = getCellsRefsInColumn(colIdx, tableNode, tableStart, domAtPos);
145
156
  var colWidth = calculateColumnWidth(cells, function (_, col) {
157
+ // Ignored via go/ees005
158
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
146
159
  return contentWidth(col, tableRef).width;
147
160
  });
148
161
  cols[colIdx] = Math.max(colWidth, tableCellMinWidth);
@@ -152,7 +165,10 @@ function parseDOMColumnWidths(domAtPos, tableNode, tableStart, tableRef) {
152
165
  }
153
166
 
154
167
  // TODO: move to prosemirror-utils
155
- var replaceCells = function replaceCells(tr, table, tablePos, modifyCell) {
168
+ var replaceCells = function replaceCells(tr, table, tablePos, modifyCell
169
+ // Ignored via go/ees005
170
+ // eslint-disable-next-line @typescript-eslint/max-params
171
+ ) {
156
172
  var rows = [];
157
173
  var modifiedCells = 0;
158
174
  for (var rowIndex = 0; rowIndex < table.childCount; rowIndex++) {
@@ -13,7 +13,12 @@ export function mergeCells(tr) {
13
13
  if (!(selection instanceof CellSelection) || !canMergeCells(tr)) {
14
14
  return tr;
15
15
  }
16
+
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16
19
  var rect = getSelectionRect(selection);
20
+ // Ignored via go/ees005
21
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
17
22
  var table = findTable(selection);
18
23
  var map = TableMap.get(table.node);
19
24
  var seen = [];
@@ -58,6 +63,8 @@ export function mergeCells(tr) {
58
63
  rowspan: rowspan
59
64
  }), cell.attrs.colspan, rect.right - rect.left - cell.attrs.colspan);
60
65
  var newCell = content === Fragment.empty ? cell.type.createAndFill(attrs, content, cell.marks) : cell.type.createChecked(attrs, content, cell.marks);
66
+ // Ignored via go/ees005
67
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
61
68
  rowCells.push(newCell);
62
69
  } else if (selectedCells.indexOf(cellPos) === -1) {
63
70
  // if its one of the selected cells, but not the merged cell, we get rid of it
@@ -2,8 +2,11 @@ import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-commo
2
2
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
3
3
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
5
- import { getSelectedTableInfo } from '../utils';
6
- export var replaceSelectedTable = function replaceSelectedTable(state, content, inputMethod, editorAnalyticsAPI) {
5
+ import { getSelectedTableInfo } from '../utils/analytics';
6
+ export var replaceSelectedTable = function replaceSelectedTable(state, content, inputMethod, editorAnalyticsAPI
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line @typescript-eslint/max-params
9
+ ) {
7
10
  if (isTableSelected(state.selection)) {
8
11
  var table = findTable(state.selection);
9
12
  if (table) {
@@ -10,6 +10,8 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
10
10
  * @param columnStart - Start of the rect included (rect.left)
11
11
  * @param columnEnd - End of the rect not included (rect.right)
12
12
  */
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line @typescript-eslint/max-params
13
15
  export function splitCellsInColumns(tr, tablePos, columnStart, columnEnd) {
14
16
  var mapStart = tr.mapping.maps.length;
15
17
  var table = tr.doc.nodeAt(tablePos);
@@ -51,7 +53,10 @@ export function splitCellsInColumns(tr, tablePos, columnStart, columnEnd) {
51
53
  for (var i = 0; i < colspan; i++) {
52
54
  var _mapping = tr.mapping.slice(mapStart);
53
55
  var _cellPos = map.positionAt(cellRowIndex, column + i, table);
54
- tr.insert(_mapping.map(_cellPos + tableStart), cellNode.type.createAndFill(_objectSpread(_objectSpread({}, baseAttrs), {}, {
56
+ tr.insert(_mapping.map(_cellPos + tableStart),
57
+ // Ignored via go/ees005
58
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
59
+ cellNode.type.createAndFill(_objectSpread(_objectSpread({}, baseAttrs), {}, {
55
60
  colwidth: colwidth ? [colwidth[i]] : undefined
56
61
  })));
57
62
  }
@@ -13,6 +13,9 @@ export var normaliseAlignment = function normaliseAlignment(layout) {
13
13
  /**
14
14
  * We don't want to switch alignment in Full-width editor
15
15
  */
16
- export var shouldChangeAlignmentToCenterResized = function shouldChangeAlignmentToCenterResized(isTableAlignmentEnabled, tableNode, lineLength, updatedTableWidth) {
16
+ export var shouldChangeAlignmentToCenterResized = function shouldChangeAlignmentToCenterResized(isTableAlignmentEnabled, tableNode, lineLength, updatedTableWidth
17
+ // Ignored via go/ees005
18
+ // eslint-disable-next-line @typescript-eslint/max-params
19
+ ) {
17
20
  return Boolean(isTableAlignmentEnabled && tableNode && tableNode.attrs.layout === ALIGN_START && lineLength && updatedTableWidth > lineLength && lineLength < FULL_WIDTH_EDITOR_CONTENT_WIDTH);
18
21
  };
@@ -2,8 +2,8 @@ import { useEffect, useRef } from 'react';
2
2
  import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
3
3
  import { TableMap } from '@atlaskit/editor-tables/table-map';
4
4
  import { findTable, getSelectionRect } from '@atlaskit/editor-tables/utils';
5
- import { hasTableBeenResized } from '../table-resizing/utils';
6
- import { getTableWidth } from './index';
5
+ import { hasTableBeenResized } from '../table-resizing/utils/colgroup';
6
+ import { getTableWidth } from './nodes';
7
7
  export function getSelectedTableInfo(selection) {
8
8
  var map;
9
9
  var totalRowCount = 0;
@@ -18,8 +18,12 @@ export var getColumnsWidths = function getColumnsWidths(view) {
18
18
  });
19
19
  for (var i = 0; i < map.width; i++) {
20
20
  if (!map.isCellMergedTopLeft(0, i)) {
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
21
23
  var node = table.node.nodeAt(map.map[i]);
22
24
  var pos = map.map[i] + table.start;
25
+ // Ignored via go/ees005
26
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
23
27
  var cellRef = findDomRefAtPos(pos, domAtPos);
24
28
  var rect = cellRef.getBoundingClientRect();
25
29
  widths[i] = (rect ? rect.width : cellRef.offsetWidth) + 1;
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { createTable } from '@atlaskit/editor-tables/utils';
5
- import { TABLE_MAX_WIDTH } from '../table-resizing/utils';
5
+ import { TABLE_MAX_WIDTH } from '../table-resizing/utils/consts';
6
6
  var NESTED_TABLE_DEFAULT_ROWS = 2;
7
7
  var NESTED_TABLE_DEFAULT_COLS = 2;
8
8
  export var createTableWithWidth = function createTableWithWidth(_ref) {
@@ -33,7 +33,10 @@ export var createCellHoverDecoration = function createCellHoverDecoration(cells)
33
33
  });
34
34
  });
35
35
  };
36
- export var createControlsHoverDecoration = function createControlsHoverDecoration(cells, type, tr, isDragAndDropEnable, hoveredIndexes, danger, selected) {
36
+ export var createControlsHoverDecoration = function createControlsHoverDecoration(cells, type, tr, isDragAndDropEnable, hoveredIndexes, danger, selected
37
+ // Ignored via go/ees005
38
+ // eslint-disable-next-line @typescript-eslint/max-params
39
+ ) {
37
40
  var table = findTable(tr.selection);
38
41
  if (!table) {
39
42
  return [];
@@ -105,7 +108,10 @@ export var createControlsHoverDecoration = function createControlsHoverDecoratio
105
108
  key = TableDecorations.TABLE_CONTROLS_HOVER;
106
109
  break;
107
110
  }
108
- return Decoration.node(pos, pos + cell.nodeSize, {
111
+ return Decoration.node(pos,
112
+ // Ignored via go/ees005
113
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
114
+ pos + cell.nodeSize, {
109
115
  class: classes.join(' ')
110
116
  }, {
111
117
  key: key
@@ -124,7 +130,10 @@ export var createColumnSelectedDecoration = function createColumnSelectedDecorat
124
130
  var cellPositions = map.cellsInRect(rect);
125
131
  return cellPositions.map(function (pos, index) {
126
132
  var cell = doc.nodeAt(pos + table.start);
127
- return Decoration.node(pos + table.start, pos + table.start + cell.nodeSize, {
133
+ return Decoration.node(pos + table.start,
134
+ // Ignored via go/ees005
135
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
136
+ pos + table.start + cell.nodeSize, {
128
137
  class: ClassName.COLUMN_SELECTED
129
138
  }, {
130
139
  key: "".concat(TableDecorations.COLUMN_SELECTED, "_").concat(index)
@@ -156,7 +165,10 @@ export var createColumnControlsDecoration = function createColumnControlsDecorat
156
165
  });
157
166
  });
158
167
  };
159
- export var updateDecorations = function updateDecorations(node, decorationSet, decorations, key) {
168
+ export var updateDecorations = function updateDecorations(node, decorationSet, decorations, key
169
+ // Ignored via go/ees005
170
+ // eslint-disable-next-line @typescript-eslint/max-params
171
+ ) {
160
172
  var filteredDecorations = filterDecorationByKey(key, decorationSet);
161
173
  var decorationSetFiltered = decorationSet.remove(filteredDecorations);
162
174
  return decorationSetFiltered.add(node, decorations);
@@ -247,7 +259,10 @@ var makeArray = function makeArray(n) {
247
259
  export var createResizeHandleDecoration = function createResizeHandleDecoration(tr, rowIndexTarget, columnEndIndexTarget) {
248
260
  var includeTooltip = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
249
261
  var getIntl = arguments.length > 4 ? arguments[4] : undefined;
250
- var nodeViewPortalProviderAPI = arguments.length > 5 ? arguments[5] : undefined;
262
+ var nodeViewPortalProviderAPI
263
+ // Ignored via go/ees005
264
+ // eslint-disable-next-line @typescript-eslint/max-params
265
+ = arguments.length > 5 ? arguments[5] : undefined;
251
266
  var emptyResult = [[], []];
252
267
  var table = findTable(tr.selection);
253
268
  if (!table || !table.node) {
@@ -257,7 +272,10 @@ export var createResizeHandleDecoration = function createResizeHandleDecoration(
257
272
  if (!map.width) {
258
273
  return emptyResult;
259
274
  }
260
- var createResizerHandleDecoration = function createResizerHandleDecoration(cellColumnPositioning, columnIndex, rowIndex, cellPos, cellNode) {
275
+ var createResizerHandleDecoration = function createResizerHandleDecoration(cellColumnPositioning, columnIndex, rowIndex, cellPos, cellNode
276
+ // Ignored via go/ees005
277
+ // eslint-disable-next-line @typescript-eslint/max-params
278
+ ) {
261
279
  var decorationRenderKey = uuid();
262
280
  var position = cellPos + cellNode.nodeSize - 1;
263
281
  return Decoration.widget(position, function () {
@@ -189,7 +189,11 @@ export var findNearestCellIndexToPoint = function findNearestCellIndexToPoint(x,
189
189
  return undefined;
190
190
  }
191
191
  return {
192
+ // Ignored via go/ees005
193
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
192
194
  row: row.rowIndex,
195
+ // Ignored via go/ees005
196
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
193
197
  col: cell.cellIndex
194
198
  };
195
199
  };
@@ -25,7 +25,10 @@ import EditorLayoutThreeEqualIcon from '@atlaskit/icon/glyph/editor/layout-three
25
25
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
26
26
  import HipchatChevronDoubleDownIcon from '@atlaskit/icon/glyph/hipchat/chevron-double-down';
27
27
  import HipchatChevronDoubleUpIcon from '@atlaskit/icon/glyph/hipchat/chevron-double-up';
28
- import { AddColLeftIcon, AddColRightIcon, AddRowAboveIcon, AddRowBelowIcon } from '../../ui/icons';
28
+ import { AddColLeftIcon } from '../../ui/icons/AddColLeftIcon';
29
+ import { AddColRightIcon } from '../../ui/icons/AddColRightIcon';
30
+ import { AddRowAboveIcon } from '../../ui/icons/AddRowAboveIcon';
31
+ import { AddRowBelowIcon } from '../../ui/icons/AddRowBelowIcon';
29
32
  import { getClosestSelectionRect } from '../../ui/toolbar';
30
33
  import { deleteColumnsWithAnalytics, deleteRowsWithAnalytics, distributeColumnsWidthsWithAnalytics, emptyMultipleCellsWithAnalytics, insertColumnWithAnalytics, insertRowWithAnalytics, sortColumnWithAnalytics } from '../commands/commands-with-analytics';
31
34
  import { moveSourceWithAnalytics } from '../drag-and-drop/commands-with-analytics';
@@ -36,7 +39,10 @@ import { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
36
39
  export var getTargetIndex = function getTargetIndex(selectedIndexes, direction) {
37
40
  return Math[direction < 0 ? 'min' : 'max'].apply(Math, _toConsumableArray(selectedIndexes)) + direction;
38
41
  };
39
- export var canMove = function canMove(sourceType, direction, totalItemsOfSourceTypeCount, selection, selectionRect) {
42
+ export var canMove = function canMove(sourceType, direction, totalItemsOfSourceTypeCount, selection, selectionRect
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line @typescript-eslint/max-params
45
+ ) {
40
46
  if (!selectionRect) {
41
47
  return false;
42
48
  }
@@ -262,7 +268,13 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
262
268
  onClick: function onClick(state, dispatch) {
263
269
  if (canMove) {
264
270
  requestAnimationFrame(function () {
265
- moveSourceWithAnalytics(editorAnalyticsAPI, ariaNotifyPlugin, getIntl)(INPUT_METHOD.TABLE_CONTEXT_MENU, "table-".concat(direction), getOriginIndexes(selectionRect), getTargetIndex(selectionRect))(editorView.state, editorView.dispatch);
271
+ moveSourceWithAnalytics(editorAnalyticsAPI, ariaNotifyPlugin, getIntl)(INPUT_METHOD.TABLE_CONTEXT_MENU, "table-".concat(direction),
272
+ // Ignored via go/ees005
273
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
274
+ getOriginIndexes(selectionRect),
275
+ // Ignored via go/ees005
276
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
277
+ getTargetIndex(selectionRect))(editorView.state, editorView.dispatch);
266
278
  });
267
279
  return true;
268
280
  }
@@ -73,6 +73,9 @@ export var tablesHaveDifferentNoOfRows = function tablesHaveDifferentNoOfRows(cu
73
73
  var currentMap = TableMap.get(currentTable);
74
74
  return prevMap.height !== currentMap.height;
75
75
  };
76
+
77
+ // Ignored via go/ees005
78
+ // eslint-disable-next-line @typescript-eslint/max-params
76
79
  function filterNearSelection(selection, findNode, predicate, defaultValue) {
77
80
  var found = findNode(selection);
78
81
  if (!found) {
@@ -171,7 +171,10 @@ export var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpen
171
171
  // starts and ends inside of a cell
172
172
  slice.openStart >= 4 && slice.openEnd >= 4 &&
173
173
  // slice is a table node
174
- slice.content.childCount === 1 && slice.content.firstChild.type === schema.nodes.table) {
174
+ slice.content.childCount === 1 &&
175
+ // Ignored via go/ees005
176
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
177
+ slice.content.firstChild.type === schema.nodes.table) {
175
178
  var _slice$content$firstC2;
176
179
  // prosemirror-view has a bug that it duplicates table entry when selecting multiple paragraphs in a table cell.
177
180
  // https://github.com/ProseMirror/prosemirror/issues/1270
@@ -81,7 +81,10 @@ export var getRowsParams = function getRowsParams(rowsHeights) {
81
81
  export var getRowClassNames = function getRowClassNames(index, selection) {
82
82
  var hoveredRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
83
83
  var isInDanger = arguments.length > 3 ? arguments[3] : undefined;
84
- var isResizing = arguments.length > 4 ? arguments[4] : undefined;
84
+ var isResizing
85
+ // Ignored via go/ees005
86
+ // eslint-disable-next-line @typescript-eslint/max-params
87
+ = arguments.length > 4 ? arguments[4] : undefined;
85
88
  var classNames = [];
86
89
  if (isRowSelected(index)(selection) || hoveredRows.indexOf(index) > -1 && !isResizing) {
87
90
  classNames.push(ClassName.HOVERED_CELL_ACTIVE);
@@ -24,25 +24,32 @@ import { pluginKey as tableAnalyticsPluginKey } from './pm-plugins/analytics/plu
24
24
  import { insertTableWithNestingSupport, insertTableWithSize } from './pm-plugins/commands/insert';
25
25
  import { pluginConfig } from './pm-plugins/create-plugin-config';
26
26
  import { createPlugin as createDecorationsPlugin } from './pm-plugins/decorations/plugin';
27
- import { createPlugin as createDragAndDropPlugin, pluginKey as dragAndDropPluginKey } from './pm-plugins/drag-and-drop';
27
+ import { createPlugin as createDragAndDropPlugin } from './pm-plugins/drag-and-drop/plugin';
28
+ import { pluginKey as dragAndDropPluginKey } from './pm-plugins/drag-and-drop/plugin-key';
28
29
  import { keymapPlugin } from './pm-plugins/keymap';
29
30
  import { createPlugin } from './pm-plugins/main';
30
31
  import { getPluginState } from './pm-plugins/plugin-factory';
31
32
  import { pluginKey } from './pm-plugins/plugin-key';
32
33
  import { createPlugin as createTableSafariDeleteCompositionTextIssueWorkaroundPlugin } from './pm-plugins/safari-delete-composition-text-issue-workaround';
33
- import { createPlugin as createStickyHeadersPlugin, findStickyHeaderForTable, pluginKey as stickyHeadersPluginKey } from './pm-plugins/sticky-headers';
34
+ import { createPlugin as createStickyHeadersPlugin } from './pm-plugins/sticky-headers/plugin';
35
+ import { pluginKey as stickyHeadersPluginKey } from './pm-plugins/sticky-headers/plugin-key';
36
+ import { findStickyHeaderForTable } from './pm-plugins/sticky-headers/util';
34
37
  import { createPlugin as createTableOverflowAnalyticsPlugin } from './pm-plugins/table-analytics';
35
38
  import { createPlugin as createTableLocalIdPlugin } from './pm-plugins/table-local-id';
36
- import { createPlugin as createFlexiResizingPlugin, getPluginState as getFlexiResizingPlugin, pluginKey as tableResizingPluginKey } from './pm-plugins/table-resizing';
39
+ import { createPlugin as createFlexiResizingPlugin } from './pm-plugins/table-resizing/plugin';
40
+ import { getPluginState as getFlexiResizingPlugin } from './pm-plugins/table-resizing/plugin-factory';
41
+ import { pluginKey as tableResizingPluginKey } from './pm-plugins/table-resizing/plugin-key';
37
42
  import { tableSelectionKeymapPlugin } from './pm-plugins/table-selection-keymap';
38
43
  import { createPlugin as createTableWidthPlugin, pluginKey as tableWidthPluginKey } from './pm-plugins/table-width';
39
44
  import { createPlugin as createTableWidthInCommentFixPlugin } from './pm-plugins/table-width-in-comment-fix';
40
- import { createTableWithWidth } from './pm-plugins/utils';
45
+ import { createTableWithWidth } from './pm-plugins/utils/create';
41
46
  import { createPlugin as createViewModeSortPlugin } from './pm-plugins/view-mode-sort';
42
47
  import FloatingContextualButton from './ui/FloatingContextualButton';
43
48
  import FloatingContextualMenu from './ui/FloatingContextualMenu';
44
49
  import FloatingDeleteButton from './ui/FloatingDeleteButton';
45
50
  import FloatingDragMenu from './ui/FloatingDragMenu';
51
+ // Ignored via go/ees005
52
+ // eslint-disable-next-line import/no-named-as-default
46
53
  import FloatingInsertButton from './ui/FloatingInsertButton';
47
54
  import { FloatingToolbarLabel } from './ui/FloatingToolbarLabel/FloatingToolbarLabel';
48
55
  import { GlobalStylesWrapper } from './ui/global-styles';
@@ -39,6 +39,8 @@ export var ColumnResizeWidget = function ColumnResizeWidget(_ref) {
39
39
  className: TableCssClassName.RESIZE_HANDLE_DECORATION,
40
40
  "data-start-index": startIndex,
41
41
  "data-end-index": endIndex
42
+ // Ignored via go/ees005
43
+ // eslint-disable-next-line react/jsx-props-no-spreading
42
44
  }, tooltipProps));
43
45
  });
44
46
  };
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- import { DragHandleDisabledIcon, DragHandleIcon, MinimisedHandleIcon } from '../icons';
2
+ import { DragHandleDisabledIcon } from '../icons/DragHandleDisabledIcon';
3
+ import { DragHandleIcon } from '../icons/DragHandleIcon';
4
+ import { MinimisedHandleIcon } from '../icons/MinimisedHandle';
3
5
  export var HandleIconComponent = function HandleIconComponent(props) {
4
6
  var forceDefaultHandle = props.forceDefaultHandle,
5
7
  isHandleHovered = props.isHandleHovered,
@@ -12,7 +12,7 @@ import { draggable } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
12
12
  import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
13
13
  import { getPluginState as getDnDPluginState } from '../../pm-plugins/drag-and-drop/plugin-factory';
14
14
  import { getPluginState } from '../../pm-plugins/plugin-factory';
15
- import { findDuplicatePosition, hasMergedCellsInSelection } from '../../pm-plugins/utils';
15
+ import { findDuplicatePosition, hasMergedCellsInSelection } from '../../pm-plugins/utils/merged-cells';
16
16
  import { TableCssClassName as ClassName } from '../../types';
17
17
  import { dragTableInsertColumnButtonSize } from '../consts';
18
18
  import { DragPreview } from '../DragPreview';
@@ -214,14 +214,21 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
214
214
  }
215
215
  }, appearance !== 'placeholder' ?
216
216
  // cannot block pointer events in Firefox as it breaks Dragging functionality
217
- browser.gecko ? /*#__PURE__*/React.createElement(HandleIconComponent, handleIconProps) :
217
+ browser.gecko ?
218
+ /*#__PURE__*/
219
+ // Ignored via go/ees005
220
+ // eslint-disable-next-line react/jsx-props-no-spreading
221
+ React.createElement(HandleIconComponent, handleIconProps) :
218
222
  /*#__PURE__*/
219
223
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
220
224
  React.createElement("span", {
221
225
  style: {
222
226
  pointerEvents: 'none'
223
227
  }
224
- }, /*#__PURE__*/React.createElement(HandleIconComponent, handleIconProps)) : null), previewContainer && previewWidth !== undefined && previewHeight !== undefined && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(DragPreview, {
228
+ }, /*#__PURE__*/React.createElement(HandleIconComponent
229
+ // Ignored via go/ees005
230
+ // eslint-disable-next-line react/jsx-props-no-spreading
231
+ , handleIconProps)) : null), previewContainer && previewWidth !== undefined && previewHeight !== undefined && /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(DragPreview, {
225
232
  direction: direction,
226
233
  width: previewWidth,
227
234
  height: previewHeight
@@ -18,12 +18,19 @@ export var FloatingAlignmentButtons = function FloatingAlignmentButtons(_ref) {
18
18
  }, jsx(ButtonGroup, null, alignmentButtons.map(function (item, idx) {
19
19
  switch (item.type) {
20
20
  case 'separator':
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line react/no-array-index-key
21
23
  return jsx(FloatingToolbarSeparator, {
22
24
  key: idx
23
25
  });
24
26
  case 'button':
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
25
29
  var ButtonIcon = item.icon;
26
- return jsx(Button, {
30
+ return jsx(Button
31
+ // Ignored via go/ees005
32
+ // eslint-disable-next-line react/no-array-index-key
33
+ , {
27
34
  key: idx,
28
35
  icon: item.icon ? jsx(ButtonIcon, {
29
36
  label: item.title
@@ -71,8 +71,12 @@ export var FixedButton = function FixedButton(_ref2) {
71
71
  }
72
72
  });
73
73
  observer.observe(observerTargetRefCurrent);
74
+ // Ignored via go/ees005
75
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
74
76
  tableWrapper.addEventListener('scroll', handleScroll);
75
77
  return function () {
78
+ // Ignored via go/ees005
79
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
76
80
  tableWrapper.removeEventListener('scroll', handleScroll);
77
81
  fixedButtonRefCurrent.style.transform = '';
78
82
  observer.unobserve(observerTargetRefCurrent);