@atlaskit/editor-plugin-table 8.4.2 → 8.4.4

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 (644) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/commands/package.json +5 -5
  3. package/dist/cjs/index.js +2 -2
  4. package/dist/cjs/nodeviews/ExternalDropTargets.js +1 -1
  5. package/dist/cjs/nodeviews/TableComponent.js +3 -3
  6. package/dist/cjs/nodeviews/TableContainer.js +2 -2
  7. package/dist/cjs/nodeviews/TableResizer.js +6 -6
  8. package/dist/cjs/nodeviews/TableRow.js +2 -2
  9. package/dist/cjs/nodeviews/table-container-styles.js +1 -1
  10. package/dist/cjs/nodeviews/table.js +2 -2
  11. package/dist/cjs/{toDOM.js → nodeviews/toDOM.js} +3 -3
  12. package/dist/cjs/pm-plugins/analytics/plugin.js +1 -1
  13. package/dist/cjs/{commands → pm-plugins/commands}/column-resize.js +8 -8
  14. package/dist/cjs/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js} +15 -15
  15. package/dist/cjs/{commands → pm-plugins/commands}/go-to-next-cell.js +2 -2
  16. package/dist/cjs/{commands → pm-plugins/commands}/hover.js +2 -2
  17. package/dist/cjs/{commands → pm-plugins/commands}/insert.js +2 -2
  18. package/dist/cjs/{commands → pm-plugins/commands}/misc.js +4 -4
  19. package/dist/cjs/{commands → pm-plugins/commands}/referentiality.js +1 -1
  20. package/dist/cjs/{commands → pm-plugins/commands}/selection.js +3 -3
  21. package/dist/cjs/{commands → pm-plugins/commands}/sort.js +1 -1
  22. package/dist/cjs/{commands → pm-plugins/commands}/split-cell.js +1 -1
  23. package/dist/cjs/{commands → pm-plugins/commands}/toggle.js +2 -2
  24. package/dist/cjs/pm-plugins/decorations/utils/column-controls.js +1 -1
  25. package/dist/cjs/pm-plugins/decorations/utils/column-resizing.js +1 -1
  26. package/dist/cjs/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -3
  27. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +1 -1
  28. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +6 -6
  29. package/dist/cjs/{handlers.js → pm-plugins/handlers.js} +2 -2
  30. package/dist/cjs/pm-plugins/keymap.js +18 -18
  31. package/dist/cjs/pm-plugins/main.js +7 -7
  32. package/dist/cjs/pm-plugins/plugin-factory.js +2 -2
  33. package/dist/cjs/{reducer.js → pm-plugins/reducer.js} +1 -1
  34. package/dist/cjs/pm-plugins/table-resizing/commands.js +1 -1
  35. package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +5 -5
  36. package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +2 -2
  37. package/dist/cjs/pm-plugins/table-resizing/utils/resize-column.js +1 -1
  38. package/dist/cjs/pm-plugins/table-resizing/utils/resize-state.js +1 -1
  39. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +2 -2
  40. package/dist/cjs/pm-plugins/table-selection-keymap.js +1 -1
  41. package/dist/cjs/pm-plugins/table-width-in-comment-fix.js +1 -1
  42. package/dist/cjs/pm-plugins/table-width.js +1 -1
  43. package/dist/cjs/{transforms → pm-plugins/transforms}/column-width.js +5 -5
  44. package/dist/cjs/{transforms → pm-plugins/transforms}/delete-columns.js +1 -1
  45. package/dist/cjs/{transforms → pm-plugins/transforms}/fix-tables.js +1 -1
  46. package/dist/cjs/{utils → pm-plugins/utils}/alignment.js +1 -1
  47. package/dist/cjs/{utils → pm-plugins/utils}/analytics.js +3 -3
  48. package/dist/cjs/{utils → pm-plugins/utils}/column-controls.js +1 -1
  49. package/dist/cjs/{utils → pm-plugins/utils}/create.js +1 -1
  50. package/dist/cjs/{utils → pm-plugins/utils}/decoration.js +2 -2
  51. package/dist/cjs/{utils → pm-plugins/utils}/dom.js +1 -1
  52. package/dist/cjs/{utils → pm-plugins/utils}/drag-menu.js +6 -6
  53. package/dist/cjs/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.js +1 -1
  54. package/dist/cjs/{utils → pm-plugins/utils}/paste.js +1 -1
  55. package/dist/cjs/{utils → pm-plugins/utils}/row-controls.js +2 -2
  56. package/dist/cjs/{utils → pm-plugins/utils}/update-plugin-state-decorations.js +1 -1
  57. package/dist/cjs/{plugin.js → tablePlugin.js} +5 -7
  58. package/dist/cjs/tablePluginType.js +5 -0
  59. package/dist/cjs/ui/DragHandle/index.js +1 -1
  60. package/dist/cjs/ui/FloatingContextualButton/index.js +1 -1
  61. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
  62. package/dist/cjs/ui/FloatingDeleteButton/index.js +3 -3
  63. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -4
  64. package/dist/cjs/ui/FloatingInsertButton/index.js +2 -2
  65. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -2
  66. package/dist/cjs/ui/TableFloatingColumnControls/index.js +1 -1
  67. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  68. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  69. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +2 -2
  70. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
  71. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
  72. package/dist/cjs/ui/TableFloatingControls/index.js +2 -2
  73. package/dist/cjs/{event-handlers.js → ui/event-handlers.js} +8 -8
  74. package/dist/cjs/{toolbar.js → ui/toolbar.js} +12 -12
  75. package/dist/es2019/index.js +1 -1
  76. package/dist/es2019/nodeviews/ExternalDropTargets.js +1 -1
  77. package/dist/es2019/nodeviews/TableComponent.js +3 -3
  78. package/dist/es2019/nodeviews/TableContainer.js +2 -2
  79. package/dist/es2019/nodeviews/TableResizer.js +6 -6
  80. package/dist/es2019/nodeviews/TableRow.js +2 -2
  81. package/dist/es2019/nodeviews/table-container-styles.js +1 -1
  82. package/dist/es2019/nodeviews/table.js +2 -2
  83. package/dist/es2019/{toDOM.js → nodeviews/toDOM.js} +3 -3
  84. package/dist/es2019/pm-plugins/analytics/plugin.js +1 -1
  85. package/dist/es2019/{commands → pm-plugins/commands}/column-resize.js +8 -8
  86. package/dist/es2019/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js} +15 -15
  87. package/dist/es2019/{commands → pm-plugins/commands}/go-to-next-cell.js +2 -2
  88. package/dist/es2019/{commands → pm-plugins/commands}/hover.js +2 -2
  89. package/dist/es2019/{commands → pm-plugins/commands}/insert.js +2 -2
  90. package/dist/es2019/{commands → pm-plugins/commands}/misc.js +4 -4
  91. package/dist/es2019/{commands → pm-plugins/commands}/referentiality.js +1 -1
  92. package/dist/es2019/{commands → pm-plugins/commands}/selection.js +3 -3
  93. package/dist/es2019/{commands → pm-plugins/commands}/sort.js +1 -1
  94. package/dist/es2019/{commands → pm-plugins/commands}/split-cell.js +2 -1
  95. package/dist/es2019/{commands → pm-plugins/commands}/toggle.js +2 -2
  96. package/dist/es2019/pm-plugins/decorations/utils/column-controls.js +1 -1
  97. package/dist/es2019/pm-plugins/decorations/utils/column-resizing.js +1 -1
  98. package/dist/es2019/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -3
  99. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +1 -1
  100. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +1 -1
  101. package/dist/es2019/{handlers.js → pm-plugins/handlers.js} +2 -2
  102. package/dist/es2019/pm-plugins/keymap.js +4 -4
  103. package/dist/es2019/pm-plugins/main.js +7 -7
  104. package/dist/es2019/pm-plugins/plugin-factory.js +2 -2
  105. package/dist/es2019/{reducer.js → pm-plugins/reducer.js} +1 -1
  106. package/dist/es2019/pm-plugins/table-resizing/commands.js +1 -1
  107. package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +5 -5
  108. package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +2 -2
  109. package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +1 -1
  110. package/dist/es2019/pm-plugins/table-resizing/utils/resize-state.js +1 -1
  111. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +2 -2
  112. package/dist/es2019/pm-plugins/table-selection-keymap.js +1 -1
  113. package/dist/es2019/pm-plugins/table-width-in-comment-fix.js +1 -1
  114. package/dist/es2019/pm-plugins/table-width.js +1 -1
  115. package/dist/es2019/{transforms → pm-plugins/transforms}/column-width.js +6 -5
  116. package/dist/es2019/{transforms → pm-plugins/transforms}/delete-columns.js +1 -1
  117. package/dist/es2019/{transforms → pm-plugins/transforms}/fix-tables.js +1 -1
  118. package/dist/es2019/{utils → pm-plugins/utils}/alignment.js +1 -1
  119. package/dist/es2019/{utils → pm-plugins/utils}/analytics.js +2 -2
  120. package/dist/es2019/{utils → pm-plugins/utils}/column-controls.js +1 -1
  121. package/dist/es2019/{utils → pm-plugins/utils}/create.js +1 -1
  122. package/dist/es2019/{utils → pm-plugins/utils}/decoration.js +2 -2
  123. package/dist/es2019/{utils → pm-plugins/utils}/dom.js +1 -1
  124. package/dist/es2019/{utils → pm-plugins/utils}/drag-menu.js +6 -6
  125. package/dist/es2019/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.js +1 -1
  126. package/dist/es2019/{utils → pm-plugins/utils}/paste.js +1 -1
  127. package/dist/es2019/{utils → pm-plugins/utils}/row-controls.js +2 -2
  128. package/dist/es2019/{utils → pm-plugins/utils}/update-plugin-state-decorations.js +1 -1
  129. package/dist/es2019/{plugin.js → tablePlugin.js} +5 -7
  130. package/dist/es2019/tablePluginType.js +1 -0
  131. package/dist/es2019/ui/DragHandle/index.js +1 -1
  132. package/dist/es2019/ui/FloatingContextualButton/index.js +1 -1
  133. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
  134. package/dist/es2019/ui/FloatingDeleteButton/index.js +3 -3
  135. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -4
  136. package/dist/es2019/ui/FloatingInsertButton/index.js +2 -2
  137. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -2
  138. package/dist/es2019/ui/TableFloatingColumnControls/index.js +1 -1
  139. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  140. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  141. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +2 -2
  142. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
  143. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
  144. package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
  145. package/dist/es2019/{event-handlers.js → ui/event-handlers.js} +8 -8
  146. package/dist/es2019/{toolbar.js → ui/toolbar.js} +12 -12
  147. package/dist/esm/index.js +1 -1
  148. package/dist/esm/nodeviews/ExternalDropTargets.js +1 -1
  149. package/dist/esm/nodeviews/TableComponent.js +3 -3
  150. package/dist/esm/nodeviews/TableContainer.js +2 -2
  151. package/dist/esm/nodeviews/TableResizer.js +6 -6
  152. package/dist/esm/nodeviews/TableRow.js +2 -2
  153. package/dist/esm/nodeviews/table-container-styles.js +1 -1
  154. package/dist/esm/nodeviews/table.js +2 -2
  155. package/dist/esm/{toDOM.js → nodeviews/toDOM.js} +3 -3
  156. package/dist/esm/pm-plugins/analytics/plugin.js +1 -1
  157. package/dist/esm/{commands → pm-plugins/commands}/column-resize.js +8 -8
  158. package/dist/esm/{commands-with-analytics.js → pm-plugins/commands/commands-with-analytics.js} +15 -15
  159. package/dist/esm/{commands → pm-plugins/commands}/go-to-next-cell.js +2 -2
  160. package/dist/esm/{commands → pm-plugins/commands}/hover.js +2 -2
  161. package/dist/esm/{commands → pm-plugins/commands}/insert.js +2 -2
  162. package/dist/esm/{commands → pm-plugins/commands}/misc.js +4 -4
  163. package/dist/esm/{commands → pm-plugins/commands}/referentiality.js +1 -1
  164. package/dist/esm/{commands → pm-plugins/commands}/selection.js +3 -3
  165. package/dist/esm/{commands → pm-plugins/commands}/sort.js +1 -1
  166. package/dist/esm/{commands → pm-plugins/commands}/split-cell.js +2 -1
  167. package/dist/esm/{commands → pm-plugins/commands}/toggle.js +2 -2
  168. package/dist/esm/pm-plugins/decorations/utils/column-controls.js +1 -1
  169. package/dist/esm/pm-plugins/decorations/utils/column-resizing.js +1 -1
  170. package/dist/esm/pm-plugins/drag-and-drop/commands-with-analytics.js +3 -3
  171. package/dist/esm/pm-plugins/drag-and-drop/commands.js +1 -1
  172. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +1 -1
  173. package/dist/esm/{handlers.js → pm-plugins/handlers.js} +2 -2
  174. package/dist/esm/pm-plugins/keymap.js +4 -4
  175. package/dist/esm/pm-plugins/main.js +7 -7
  176. package/dist/esm/pm-plugins/plugin-factory.js +2 -2
  177. package/dist/esm/{reducer.js → pm-plugins/reducer.js} +1 -1
  178. package/dist/esm/pm-plugins/table-resizing/commands.js +1 -1
  179. package/dist/esm/pm-plugins/table-resizing/event-handlers.js +5 -5
  180. package/dist/esm/pm-plugins/table-resizing/utils/dom.js +2 -2
  181. package/dist/esm/pm-plugins/table-resizing/utils/resize-column.js +1 -1
  182. package/dist/esm/pm-plugins/table-resizing/utils/resize-state.js +1 -1
  183. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +2 -2
  184. package/dist/esm/pm-plugins/table-selection-keymap.js +1 -1
  185. package/dist/esm/pm-plugins/table-width-in-comment-fix.js +1 -1
  186. package/dist/esm/pm-plugins/table-width.js +1 -1
  187. package/dist/esm/{transforms → pm-plugins/transforms}/column-width.js +6 -5
  188. package/dist/esm/{transforms → pm-plugins/transforms}/delete-columns.js +1 -1
  189. package/dist/esm/{transforms → pm-plugins/transforms}/fix-tables.js +1 -1
  190. package/dist/esm/{utils → pm-plugins/utils}/alignment.js +1 -1
  191. package/dist/esm/{utils → pm-plugins/utils}/analytics.js +2 -2
  192. package/dist/esm/{utils → pm-plugins/utils}/column-controls.js +1 -1
  193. package/dist/esm/{utils → pm-plugins/utils}/create.js +1 -1
  194. package/dist/esm/{utils → pm-plugins/utils}/decoration.js +2 -2
  195. package/dist/esm/{utils → pm-plugins/utils}/dom.js +1 -1
  196. package/dist/esm/{utils → pm-plugins/utils}/drag-menu.js +6 -6
  197. package/dist/esm/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.js +1 -1
  198. package/dist/esm/{utils → pm-plugins/utils}/paste.js +1 -1
  199. package/dist/esm/{utils → pm-plugins/utils}/row-controls.js +2 -2
  200. package/dist/esm/{utils → pm-plugins/utils}/update-plugin-state-decorations.js +1 -1
  201. package/dist/esm/{plugin.js → tablePlugin.js} +5 -7
  202. package/dist/esm/tablePluginType.js +1 -0
  203. package/dist/esm/ui/DragHandle/index.js +1 -1
  204. package/dist/esm/ui/FloatingContextualButton/index.js +1 -1
  205. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
  206. package/dist/esm/ui/FloatingDeleteButton/index.js +3 -3
  207. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -4
  208. package/dist/esm/ui/FloatingInsertButton/index.js +2 -2
  209. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +2 -2
  210. package/dist/esm/ui/TableFloatingColumnControls/index.js +1 -1
  211. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  212. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  213. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +2 -2
  214. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
  215. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +2 -2
  216. package/dist/esm/ui/TableFloatingControls/index.js +2 -2
  217. package/dist/esm/{event-handlers.js → ui/event-handlers.js} +8 -8
  218. package/dist/esm/{toolbar.js → ui/toolbar.js} +12 -12
  219. package/dist/types/index.d.ts +2 -2
  220. package/dist/{types-ts4.5 → types/pm-plugins}/commands/column-resize.d.ts +1 -1
  221. package/dist/types/{commands-with-analytics.d.ts → pm-plugins/commands/commands-with-analytics.d.ts} +2 -2
  222. package/dist/types/{commands → pm-plugins/commands}/delete.d.ts +1 -1
  223. package/dist/{types-ts4.5 → types/pm-plugins}/commands/hover.d.ts +1 -1
  224. package/dist/{types-ts4.5 → types/pm-plugins}/commands/insert.d.ts +1 -1
  225. package/dist/{types-ts4.5 → types/pm-plugins}/commands/misc.d.ts +1 -1
  226. package/dist/{types-ts4.5 → types/pm-plugins}/commands/selection.d.ts +1 -1
  227. package/dist/types/{commands → pm-plugins/commands}/toggle.d.ts +1 -1
  228. package/dist/types/{create-plugin-config.d.ts → pm-plugins/create-plugin-config.d.ts} +1 -1
  229. package/dist/types/{handlers.d.ts → pm-plugins/handlers.d.ts} +1 -1
  230. package/dist/types/{reducer.d.ts → pm-plugins/reducer.d.ts} +1 -1
  231. package/dist/{types-ts4.5 → types/pm-plugins}/transforms/column-width.d.ts +2 -2
  232. package/dist/{types-ts4.5 → types/pm-plugins}/transforms/delete-columns.d.ts +1 -1
  233. package/dist/types/{transforms → pm-plugins/transforms}/fix-tables.d.ts +1 -1
  234. package/dist/{types-ts4.5 → types/pm-plugins}/utils/alignment.d.ts +1 -1
  235. package/dist/types/{utils → pm-plugins/utils}/decoration.d.ts +2 -2
  236. package/dist/types/{utils → pm-plugins/utils}/drag-menu.d.ts +1 -1
  237. package/dist/{types-ts4.5 → types/pm-plugins}/utils/update-plugin-state-decorations.d.ts +1 -1
  238. package/dist/types/pm-plugins/view-mode-sort/index.d.ts +1 -1
  239. package/dist/types/tablePlugin.d.ts +7 -0
  240. package/dist/types/{plugin.d.ts → tablePluginType.d.ts} +2 -8
  241. package/dist/types/{types.d.ts → types/index.d.ts} +1 -1
  242. package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  243. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +2 -2
  244. package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +1 -1
  245. package/dist/types/ui/TableFloatingControls/index.d.ts +2 -2
  246. package/dist/{types-ts4.5 → types/ui}/event-handlers.d.ts +1 -1
  247. package/dist/types/ui/icons/SortingIconWrapper.d.ts +1 -1
  248. package/dist/types/{toolbar.d.ts → ui/toolbar.d.ts} +2 -2
  249. package/dist/types-ts4.5/index.d.ts +2 -2
  250. package/dist/{types → types-ts4.5/pm-plugins}/commands/column-resize.d.ts +1 -1
  251. package/dist/types-ts4.5/{commands-with-analytics.d.ts → pm-plugins/commands/commands-with-analytics.d.ts} +2 -2
  252. package/dist/types-ts4.5/{commands → pm-plugins/commands}/delete.d.ts +1 -1
  253. package/dist/{types → types-ts4.5/pm-plugins}/commands/hover.d.ts +1 -1
  254. package/dist/{types → types-ts4.5/pm-plugins}/commands/insert.d.ts +1 -1
  255. package/dist/{types → types-ts4.5/pm-plugins}/commands/misc.d.ts +1 -1
  256. package/dist/{types → types-ts4.5/pm-plugins}/commands/selection.d.ts +1 -1
  257. package/dist/types-ts4.5/{commands → pm-plugins/commands}/toggle.d.ts +1 -1
  258. package/dist/types-ts4.5/{create-plugin-config.d.ts → pm-plugins/create-plugin-config.d.ts} +1 -1
  259. package/dist/types-ts4.5/{handlers.d.ts → pm-plugins/handlers.d.ts} +1 -1
  260. package/dist/types-ts4.5/{reducer.d.ts → pm-plugins/reducer.d.ts} +1 -1
  261. package/dist/{types → types-ts4.5/pm-plugins}/transforms/column-width.d.ts +2 -2
  262. package/dist/{types → types-ts4.5/pm-plugins}/transforms/delete-columns.d.ts +1 -1
  263. package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/fix-tables.d.ts +1 -1
  264. package/dist/{types → types-ts4.5/pm-plugins}/utils/alignment.d.ts +1 -1
  265. package/dist/types-ts4.5/{utils → pm-plugins/utils}/decoration.d.ts +2 -2
  266. package/dist/types-ts4.5/{utils → pm-plugins/utils}/drag-menu.d.ts +1 -1
  267. package/dist/{types → types-ts4.5/pm-plugins}/utils/update-plugin-state-decorations.d.ts +1 -1
  268. package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +1 -1
  269. package/dist/types-ts4.5/tablePlugin.d.ts +7 -0
  270. package/dist/types-ts4.5/{plugin.d.ts → tablePluginType.d.ts} +2 -8
  271. package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +1 -1
  272. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +2 -2
  273. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +2 -2
  274. package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +1 -1
  275. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +2 -2
  276. package/dist/{types → types-ts4.5/ui}/event-handlers.d.ts +1 -1
  277. package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +1 -1
  278. package/dist/types-ts4.5/{toolbar.d.ts → ui/toolbar.d.ts} +2 -2
  279. package/package.json +16 -9
  280. package/src/index.ts +2 -2
  281. package/src/nodeviews/ExternalDropTargets.tsx +1 -1
  282. package/src/nodeviews/TableComponent.tsx +12 -12
  283. package/src/nodeviews/TableContainer.tsx +2 -2
  284. package/src/nodeviews/TableResizer.tsx +13 -13
  285. package/src/nodeviews/TableRow.ts +3 -3
  286. package/src/nodeviews/table-container-styles.ts +1 -1
  287. package/src/nodeviews/table.tsx +2 -2
  288. package/src/{toDOM.ts → nodeviews/toDOM.ts} +4 -3
  289. package/src/pm-plugins/analytics/plugin.ts +1 -1
  290. package/src/{commands → pm-plugins/commands}/column-resize.ts +9 -9
  291. package/src/{commands-with-analytics.ts → pm-plugins/commands/commands-with-analytics.ts} +24 -23
  292. package/src/{commands → pm-plugins/commands}/delete.ts +1 -1
  293. package/src/{commands → pm-plugins/commands}/go-to-next-cell.ts +2 -2
  294. package/src/{commands → pm-plugins/commands}/hover.ts +3 -3
  295. package/src/{commands → pm-plugins/commands}/insert.ts +3 -3
  296. package/src/{commands → pm-plugins/commands}/misc.ts +5 -5
  297. package/src/{commands → pm-plugins/commands}/referentiality.ts +1 -1
  298. package/src/{commands → pm-plugins/commands}/selection.ts +5 -4
  299. package/src/{commands → pm-plugins/commands}/sort.ts +2 -2
  300. package/src/{commands → pm-plugins/commands}/split-cell.ts +2 -2
  301. package/src/{commands → pm-plugins/commands}/toggle.ts +2 -2
  302. package/src/{create-plugin-config.ts → pm-plugins/create-plugin-config.ts} +1 -1
  303. package/src/pm-plugins/decorations/utils/column-controls.ts +1 -1
  304. package/src/pm-plugins/decorations/utils/column-resizing.ts +1 -1
  305. package/src/pm-plugins/drag-and-drop/commands-with-analytics.ts +3 -3
  306. package/src/pm-plugins/drag-and-drop/commands.ts +1 -1
  307. package/src/pm-plugins/drag-and-drop/plugin.ts +1 -1
  308. package/src/{handlers.ts → pm-plugins/handlers.ts} +4 -3
  309. package/src/pm-plugins/keymap.ts +11 -10
  310. package/src/pm-plugins/main.ts +28 -28
  311. package/src/pm-plugins/plugin-factory.ts +2 -3
  312. package/src/{reducer.ts → pm-plugins/reducer.ts} +3 -2
  313. package/src/pm-plugins/table-resizing/commands.ts +1 -1
  314. package/src/pm-plugins/table-resizing/event-handlers.ts +7 -7
  315. package/src/pm-plugins/table-resizing/utils/dom.ts +2 -2
  316. package/src/pm-plugins/table-resizing/utils/resize-column.ts +1 -1
  317. package/src/pm-plugins/table-resizing/utils/resize-state.ts +1 -1
  318. package/src/pm-plugins/table-resizing/utils/scale-table.ts +2 -2
  319. package/src/pm-plugins/table-selection-keymap.ts +3 -2
  320. package/src/pm-plugins/table-width-in-comment-fix.ts +1 -1
  321. package/src/pm-plugins/table-width.ts +1 -2
  322. package/src/{transforms → pm-plugins/transforms}/column-width.ts +15 -7
  323. package/src/{transforms → pm-plugins/transforms}/delete-columns.ts +2 -2
  324. package/src/{transforms → pm-plugins/transforms}/fix-tables.ts +2 -2
  325. package/src/{utils → pm-plugins/utils}/alignment.ts +2 -2
  326. package/src/{utils → pm-plugins/utils}/analytics.ts +3 -2
  327. package/src/{utils → pm-plugins/utils}/column-controls.ts +1 -1
  328. package/src/{utils → pm-plugins/utils}/create.ts +1 -1
  329. package/src/{utils → pm-plugins/utils}/decoration.ts +3 -3
  330. package/src/{utils → pm-plugins/utils}/dom.ts +1 -1
  331. package/src/{utils → pm-plugins/utils}/drag-menu.ts +7 -7
  332. package/src/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.ts +1 -1
  333. package/src/{utils → pm-plugins/utils}/paste.ts +1 -1
  334. package/src/{utils → pm-plugins/utils}/row-controls.ts +2 -2
  335. package/src/{utils → pm-plugins/utils}/update-plugin-state-decorations.ts +2 -2
  336. package/src/pm-plugins/view-mode-sort/index.ts +1 -1
  337. package/src/{plugin.tsx → tablePlugin.tsx} +8 -85
  338. package/src/tablePluginType.ts +79 -0
  339. package/src/{types.ts → types/index.ts} +1 -1
  340. package/src/ui/DragHandle/index.tsx +1 -1
  341. package/src/ui/FloatingContextualButton/index.tsx +1 -1
  342. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +6 -6
  343. package/src/ui/FloatingDeleteButton/index.tsx +8 -5
  344. package/src/ui/FloatingDragMenu/DragMenu.tsx +7 -7
  345. package/src/ui/FloatingInsertButton/index.tsx +5 -2
  346. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +3 -3
  347. package/src/ui/TableFloatingColumnControls/index.tsx +1 -1
  348. package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +1 -1
  349. package/src/ui/TableFloatingControls/CornerControls/DragCornerControls.tsx +2 -2
  350. package/src/ui/TableFloatingControls/FloatingControlsWithSelection.tsx +1 -1
  351. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +2 -2
  352. package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +3 -3
  353. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +2 -2
  354. package/src/ui/TableFloatingControls/index.tsx +3 -3
  355. package/src/{event-handlers.ts → ui/event-handlers.ts} +9 -9
  356. package/src/ui/icons/SortingIconWrapper.tsx +1 -1
  357. package/src/{toolbar.tsx → ui/toolbar.tsx} +20 -19
  358. package/tsconfig.dev.json +1 -1
  359. package/types/package.json +5 -5
  360. package/dist/cjs/i18n/cs.js +0 -44
  361. package/dist/cjs/i18n/da.js +0 -42
  362. package/dist/cjs/i18n/de.js +0 -42
  363. package/dist/cjs/i18n/en.js +0 -44
  364. package/dist/cjs/i18n/en_GB.js +0 -44
  365. package/dist/cjs/i18n/en_ZZ.js +0 -44
  366. package/dist/cjs/i18n/es.js +0 -42
  367. package/dist/cjs/i18n/fi.js +0 -42
  368. package/dist/cjs/i18n/fr.js +0 -44
  369. package/dist/cjs/i18n/hu.js +0 -44
  370. package/dist/cjs/i18n/it.js +0 -44
  371. package/dist/cjs/i18n/ja.js +0 -44
  372. package/dist/cjs/i18n/ko.js +0 -42
  373. package/dist/cjs/i18n/nb.js +0 -42
  374. package/dist/cjs/i18n/nl.js +0 -44
  375. package/dist/cjs/i18n/pl.js +0 -44
  376. package/dist/cjs/i18n/pt_BR.js +0 -44
  377. package/dist/cjs/i18n/ru.js +0 -44
  378. package/dist/cjs/i18n/sv.js +0 -42
  379. package/dist/cjs/i18n/th.js +0 -42
  380. package/dist/cjs/i18n/tr.js +0 -44
  381. package/dist/cjs/i18n/uk.js +0 -44
  382. package/dist/cjs/i18n/vi.js +0 -42
  383. package/dist/cjs/i18n/zh.js +0 -44
  384. package/dist/cjs/i18n/zh_TW.js +0 -44
  385. package/dist/es2019/i18n/cs.js +0 -38
  386. package/dist/es2019/i18n/da.js +0 -36
  387. package/dist/es2019/i18n/de.js +0 -36
  388. package/dist/es2019/i18n/en.js +0 -38
  389. package/dist/es2019/i18n/en_GB.js +0 -38
  390. package/dist/es2019/i18n/en_ZZ.js +0 -38
  391. package/dist/es2019/i18n/es.js +0 -36
  392. package/dist/es2019/i18n/fi.js +0 -36
  393. package/dist/es2019/i18n/fr.js +0 -38
  394. package/dist/es2019/i18n/hu.js +0 -38
  395. package/dist/es2019/i18n/it.js +0 -38
  396. package/dist/es2019/i18n/ja.js +0 -38
  397. package/dist/es2019/i18n/ko.js +0 -36
  398. package/dist/es2019/i18n/nb.js +0 -36
  399. package/dist/es2019/i18n/nl.js +0 -38
  400. package/dist/es2019/i18n/pl.js +0 -38
  401. package/dist/es2019/i18n/pt_BR.js +0 -38
  402. package/dist/es2019/i18n/ru.js +0 -38
  403. package/dist/es2019/i18n/sv.js +0 -36
  404. package/dist/es2019/i18n/th.js +0 -36
  405. package/dist/es2019/i18n/tr.js +0 -38
  406. package/dist/es2019/i18n/uk.js +0 -38
  407. package/dist/es2019/i18n/vi.js +0 -36
  408. package/dist/es2019/i18n/zh.js +0 -38
  409. package/dist/es2019/i18n/zh_TW.js +0 -38
  410. package/dist/esm/i18n/cs.js +0 -38
  411. package/dist/esm/i18n/da.js +0 -36
  412. package/dist/esm/i18n/de.js +0 -36
  413. package/dist/esm/i18n/en.js +0 -38
  414. package/dist/esm/i18n/en_GB.js +0 -38
  415. package/dist/esm/i18n/en_ZZ.js +0 -38
  416. package/dist/esm/i18n/es.js +0 -36
  417. package/dist/esm/i18n/fi.js +0 -36
  418. package/dist/esm/i18n/fr.js +0 -38
  419. package/dist/esm/i18n/hu.js +0 -38
  420. package/dist/esm/i18n/it.js +0 -38
  421. package/dist/esm/i18n/ja.js +0 -38
  422. package/dist/esm/i18n/ko.js +0 -36
  423. package/dist/esm/i18n/nb.js +0 -36
  424. package/dist/esm/i18n/nl.js +0 -38
  425. package/dist/esm/i18n/pl.js +0 -38
  426. package/dist/esm/i18n/pt_BR.js +0 -38
  427. package/dist/esm/i18n/ru.js +0 -38
  428. package/dist/esm/i18n/sv.js +0 -36
  429. package/dist/esm/i18n/th.js +0 -36
  430. package/dist/esm/i18n/tr.js +0 -38
  431. package/dist/esm/i18n/uk.js +0 -38
  432. package/dist/esm/i18n/vi.js +0 -36
  433. package/dist/esm/i18n/zh.js +0 -38
  434. package/dist/esm/i18n/zh_TW.js +0 -38
  435. package/dist/types/i18n/cs.d.ts +0 -37
  436. package/dist/types/i18n/da.d.ts +0 -35
  437. package/dist/types/i18n/de.d.ts +0 -35
  438. package/dist/types/i18n/en.d.ts +0 -37
  439. package/dist/types/i18n/en_GB.d.ts +0 -37
  440. package/dist/types/i18n/en_ZZ.d.ts +0 -37
  441. package/dist/types/i18n/es.d.ts +0 -35
  442. package/dist/types/i18n/fi.d.ts +0 -35
  443. package/dist/types/i18n/fr.d.ts +0 -37
  444. package/dist/types/i18n/hu.d.ts +0 -37
  445. package/dist/types/i18n/it.d.ts +0 -37
  446. package/dist/types/i18n/ja.d.ts +0 -37
  447. package/dist/types/i18n/ko.d.ts +0 -35
  448. package/dist/types/i18n/nb.d.ts +0 -35
  449. package/dist/types/i18n/nl.d.ts +0 -37
  450. package/dist/types/i18n/pl.d.ts +0 -37
  451. package/dist/types/i18n/pt_BR.d.ts +0 -37
  452. package/dist/types/i18n/ru.d.ts +0 -37
  453. package/dist/types/i18n/sv.d.ts +0 -35
  454. package/dist/types/i18n/th.d.ts +0 -35
  455. package/dist/types/i18n/tr.d.ts +0 -37
  456. package/dist/types/i18n/uk.d.ts +0 -37
  457. package/dist/types/i18n/vi.d.ts +0 -35
  458. package/dist/types/i18n/zh.d.ts +0 -37
  459. package/dist/types/i18n/zh_TW.d.ts +0 -37
  460. package/dist/types-ts4.5/i18n/cs.d.ts +0 -37
  461. package/dist/types-ts4.5/i18n/da.d.ts +0 -35
  462. package/dist/types-ts4.5/i18n/de.d.ts +0 -35
  463. package/dist/types-ts4.5/i18n/en.d.ts +0 -37
  464. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -37
  465. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -37
  466. package/dist/types-ts4.5/i18n/es.d.ts +0 -35
  467. package/dist/types-ts4.5/i18n/fi.d.ts +0 -35
  468. package/dist/types-ts4.5/i18n/fr.d.ts +0 -37
  469. package/dist/types-ts4.5/i18n/hu.d.ts +0 -37
  470. package/dist/types-ts4.5/i18n/it.d.ts +0 -37
  471. package/dist/types-ts4.5/i18n/ja.d.ts +0 -37
  472. package/dist/types-ts4.5/i18n/ko.d.ts +0 -35
  473. package/dist/types-ts4.5/i18n/nb.d.ts +0 -35
  474. package/dist/types-ts4.5/i18n/nl.d.ts +0 -37
  475. package/dist/types-ts4.5/i18n/pl.d.ts +0 -37
  476. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -37
  477. package/dist/types-ts4.5/i18n/ru.d.ts +0 -37
  478. package/dist/types-ts4.5/i18n/sv.d.ts +0 -35
  479. package/dist/types-ts4.5/i18n/th.d.ts +0 -35
  480. package/dist/types-ts4.5/i18n/tr.d.ts +0 -37
  481. package/dist/types-ts4.5/i18n/uk.d.ts +0 -37
  482. package/dist/types-ts4.5/i18n/vi.d.ts +0 -35
  483. package/dist/types-ts4.5/i18n/zh.d.ts +0 -37
  484. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -37
  485. package/src/i18n/cs.ts +0 -42
  486. package/src/i18n/da.ts +0 -37
  487. package/src/i18n/de.ts +0 -37
  488. package/src/i18n/en.ts +0 -38
  489. package/src/i18n/en_GB.ts +0 -38
  490. package/src/i18n/en_ZZ.ts +0 -43
  491. package/src/i18n/es.ts +0 -37
  492. package/src/i18n/fi.ts +0 -37
  493. package/src/i18n/fr.ts +0 -39
  494. package/src/i18n/hu.ts +0 -39
  495. package/src/i18n/it.ts +0 -39
  496. package/src/i18n/ja.ts +0 -39
  497. package/src/i18n/ko.ts +0 -36
  498. package/src/i18n/nb.ts +0 -37
  499. package/src/i18n/nl.ts +0 -39
  500. package/src/i18n/pl.ts +0 -42
  501. package/src/i18n/pt_BR.ts +0 -39
  502. package/src/i18n/ru.ts +0 -42
  503. package/src/i18n/sv.ts +0 -37
  504. package/src/i18n/th.ts +0 -36
  505. package/src/i18n/tr.ts +0 -39
  506. package/src/i18n/uk.ts +0 -42
  507. package/src/i18n/vi.ts +0 -36
  508. package/src/i18n/zh.ts +0 -38
  509. package/src/i18n/zh_TW.ts +0 -38
  510. /package/dist/cjs/{commands → pm-plugins/commands}/clear.js +0 -0
  511. /package/dist/cjs/{commands → pm-plugins/commands}/collapse.js +0 -0
  512. /package/dist/cjs/{commands → pm-plugins/commands}/delete.js +0 -0
  513. /package/dist/cjs/{commands → pm-plugins/commands}/display-mode.js +0 -0
  514. /package/dist/cjs/{commands → pm-plugins/commands}/index.js +0 -0
  515. /package/dist/cjs/{create-plugin-config.js → pm-plugins/create-plugin-config.js} +0 -0
  516. /package/dist/cjs/{transforms → pm-plugins/transforms}/delete-rows.js +0 -0
  517. /package/dist/cjs/{transforms → pm-plugins/transforms}/index.js +0 -0
  518. /package/dist/cjs/{transforms → pm-plugins/transforms}/merge.js +0 -0
  519. /package/dist/cjs/{transforms → pm-plugins/transforms}/replace-table.js +0 -0
  520. /package/dist/cjs/{transforms → pm-plugins/transforms}/split.js +0 -0
  521. /package/dist/cjs/{utils → pm-plugins/utils}/collapse.js +0 -0
  522. /package/dist/cjs/{utils → pm-plugins/utils}/guidelines.js +0 -0
  523. /package/dist/cjs/{utils → pm-plugins/utils}/index.js +0 -0
  524. /package/dist/cjs/{utils → pm-plugins/utils}/merged-cells.js +0 -0
  525. /package/dist/cjs/{utils → pm-plugins/utils}/nodes.js +0 -0
  526. /package/dist/cjs/{utils → pm-plugins/utils}/selection.js +0 -0
  527. /package/dist/cjs/{utils → pm-plugins/utils}/snapping.js +0 -0
  528. /package/dist/cjs/{utils → pm-plugins/utils}/table.js +0 -0
  529. /package/dist/cjs/{types.js → types/index.js} +0 -0
  530. /package/dist/es2019/{commands → pm-plugins/commands}/clear.js +0 -0
  531. /package/dist/es2019/{commands → pm-plugins/commands}/collapse.js +0 -0
  532. /package/dist/es2019/{commands → pm-plugins/commands}/delete.js +0 -0
  533. /package/dist/es2019/{commands → pm-plugins/commands}/display-mode.js +0 -0
  534. /package/dist/es2019/{commands → pm-plugins/commands}/index.js +0 -0
  535. /package/dist/es2019/{create-plugin-config.js → pm-plugins/create-plugin-config.js} +0 -0
  536. /package/dist/es2019/{transforms → pm-plugins/transforms}/delete-rows.js +0 -0
  537. /package/dist/es2019/{transforms → pm-plugins/transforms}/index.js +0 -0
  538. /package/dist/es2019/{transforms → pm-plugins/transforms}/merge.js +0 -0
  539. /package/dist/es2019/{transforms → pm-plugins/transforms}/replace-table.js +0 -0
  540. /package/dist/es2019/{transforms → pm-plugins/transforms}/split.js +0 -0
  541. /package/dist/es2019/{utils → pm-plugins/utils}/collapse.js +0 -0
  542. /package/dist/es2019/{utils → pm-plugins/utils}/guidelines.js +0 -0
  543. /package/dist/es2019/{utils → pm-plugins/utils}/index.js +0 -0
  544. /package/dist/es2019/{utils → pm-plugins/utils}/merged-cells.js +0 -0
  545. /package/dist/es2019/{utils → pm-plugins/utils}/nodes.js +0 -0
  546. /package/dist/es2019/{utils → pm-plugins/utils}/selection.js +0 -0
  547. /package/dist/es2019/{utils → pm-plugins/utils}/snapping.js +0 -0
  548. /package/dist/es2019/{utils → pm-plugins/utils}/table.js +0 -0
  549. /package/dist/es2019/{types.js → types/index.js} +0 -0
  550. /package/dist/esm/{commands → pm-plugins/commands}/clear.js +0 -0
  551. /package/dist/esm/{commands → pm-plugins/commands}/collapse.js +0 -0
  552. /package/dist/esm/{commands → pm-plugins/commands}/delete.js +0 -0
  553. /package/dist/esm/{commands → pm-plugins/commands}/display-mode.js +0 -0
  554. /package/dist/esm/{commands → pm-plugins/commands}/index.js +0 -0
  555. /package/dist/esm/{create-plugin-config.js → pm-plugins/create-plugin-config.js} +0 -0
  556. /package/dist/esm/{transforms → pm-plugins/transforms}/delete-rows.js +0 -0
  557. /package/dist/esm/{transforms → pm-plugins/transforms}/index.js +0 -0
  558. /package/dist/esm/{transforms → pm-plugins/transforms}/merge.js +0 -0
  559. /package/dist/esm/{transforms → pm-plugins/transforms}/replace-table.js +0 -0
  560. /package/dist/esm/{transforms → pm-plugins/transforms}/split.js +0 -0
  561. /package/dist/esm/{utils → pm-plugins/utils}/collapse.js +0 -0
  562. /package/dist/esm/{utils → pm-plugins/utils}/guidelines.js +0 -0
  563. /package/dist/esm/{utils → pm-plugins/utils}/index.js +0 -0
  564. /package/dist/esm/{utils → pm-plugins/utils}/merged-cells.js +0 -0
  565. /package/dist/esm/{utils → pm-plugins/utils}/nodes.js +0 -0
  566. /package/dist/esm/{utils → pm-plugins/utils}/selection.js +0 -0
  567. /package/dist/esm/{utils → pm-plugins/utils}/snapping.js +0 -0
  568. /package/dist/esm/{utils → pm-plugins/utils}/table.js +0 -0
  569. /package/dist/esm/{types.js → types/index.js} +0 -0
  570. /package/dist/types/{toDOM.d.ts → nodeviews/toDOM.d.ts} +0 -0
  571. /package/dist/types/{commands → pm-plugins/commands}/clear.d.ts +0 -0
  572. /package/dist/types/{commands → pm-plugins/commands}/collapse.d.ts +0 -0
  573. /package/dist/types/{commands → pm-plugins/commands}/display-mode.d.ts +0 -0
  574. /package/dist/types/{commands → pm-plugins/commands}/go-to-next-cell.d.ts +0 -0
  575. /package/dist/types/{commands → pm-plugins/commands}/index.d.ts +0 -0
  576. /package/dist/types/{commands → pm-plugins/commands}/referentiality.d.ts +0 -0
  577. /package/dist/types/{commands → pm-plugins/commands}/sort.d.ts +0 -0
  578. /package/dist/types/{commands → pm-plugins/commands}/split-cell.d.ts +0 -0
  579. /package/dist/types/{transforms → pm-plugins/transforms}/delete-rows.d.ts +0 -0
  580. /package/dist/types/{transforms → pm-plugins/transforms}/index.d.ts +0 -0
  581. /package/dist/types/{transforms → pm-plugins/transforms}/merge.d.ts +0 -0
  582. /package/dist/types/{transforms → pm-plugins/transforms}/replace-table.d.ts +0 -0
  583. /package/dist/types/{transforms → pm-plugins/transforms}/split.d.ts +0 -0
  584. /package/dist/types/{utils → pm-plugins/utils}/analytics.d.ts +0 -0
  585. /package/dist/types/{utils → pm-plugins/utils}/collapse.d.ts +0 -0
  586. /package/dist/types/{utils → pm-plugins/utils}/column-controls.d.ts +0 -0
  587. /package/dist/types/{utils → pm-plugins/utils}/create.d.ts +0 -0
  588. /package/dist/types/{utils → pm-plugins/utils}/dom.d.ts +0 -0
  589. /package/dist/types/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.d.ts +0 -0
  590. /package/dist/types/{utils → pm-plugins/utils}/guidelines.d.ts +0 -0
  591. /package/dist/types/{utils → pm-plugins/utils}/index.d.ts +0 -0
  592. /package/dist/types/{utils → pm-plugins/utils}/merged-cells.d.ts +0 -0
  593. /package/dist/types/{utils → pm-plugins/utils}/nodes.d.ts +0 -0
  594. /package/dist/types/{utils → pm-plugins/utils}/paste.d.ts +0 -0
  595. /package/dist/types/{utils → pm-plugins/utils}/row-controls.d.ts +0 -0
  596. /package/dist/types/{utils → pm-plugins/utils}/selection.d.ts +0 -0
  597. /package/dist/types/{utils → pm-plugins/utils}/snapping.d.ts +0 -0
  598. /package/dist/types/{utils → pm-plugins/utils}/table.d.ts +0 -0
  599. /package/dist/types-ts4.5/{toDOM.d.ts → nodeviews/toDOM.d.ts} +0 -0
  600. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/clear.d.ts +0 -0
  601. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/collapse.d.ts +0 -0
  602. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/display-mode.d.ts +0 -0
  603. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/go-to-next-cell.d.ts +0 -0
  604. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/index.d.ts +0 -0
  605. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/referentiality.d.ts +0 -0
  606. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/sort.d.ts +0 -0
  607. /package/dist/types-ts4.5/{commands → pm-plugins/commands}/split-cell.d.ts +0 -0
  608. /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/delete-rows.d.ts +0 -0
  609. /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/index.d.ts +0 -0
  610. /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/merge.d.ts +0 -0
  611. /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/replace-table.d.ts +0 -0
  612. /package/dist/types-ts4.5/{transforms → pm-plugins/transforms}/split.d.ts +0 -0
  613. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/analytics.d.ts +0 -0
  614. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/collapse.d.ts +0 -0
  615. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/column-controls.d.ts +0 -0
  616. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/create.d.ts +0 -0
  617. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/dom.d.ts +0 -0
  618. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/get-allow-add-column-custom-step.d.ts +0 -0
  619. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/guidelines.d.ts +0 -0
  620. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/index.d.ts +0 -0
  621. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/merged-cells.d.ts +0 -0
  622. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/nodes.d.ts +0 -0
  623. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/paste.d.ts +0 -0
  624. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/row-controls.d.ts +0 -0
  625. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/selection.d.ts +0 -0
  626. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/snapping.d.ts +0 -0
  627. /package/dist/types-ts4.5/{utils → pm-plugins/utils}/table.d.ts +0 -0
  628. /package/src/{commands → pm-plugins/commands}/clear.ts +0 -0
  629. /package/src/{commands → pm-plugins/commands}/collapse.ts +0 -0
  630. /package/src/{commands → pm-plugins/commands}/display-mode.ts +0 -0
  631. /package/src/{commands → pm-plugins/commands}/index.ts +0 -0
  632. /package/src/{transforms → pm-plugins/transforms}/delete-rows.ts +0 -0
  633. /package/src/{transforms → pm-plugins/transforms}/index.ts +0 -0
  634. /package/src/{transforms → pm-plugins/transforms}/merge.ts +0 -0
  635. /package/src/{transforms → pm-plugins/transforms}/replace-table.ts +0 -0
  636. /package/src/{transforms → pm-plugins/transforms}/split.ts +0 -0
  637. /package/src/{utils → pm-plugins/utils}/collapse.ts +0 -0
  638. /package/src/{utils → pm-plugins/utils}/guidelines.ts +0 -0
  639. /package/src/{utils → pm-plugins/utils}/index.ts +0 -0
  640. /package/src/{utils → pm-plugins/utils}/merged-cells.ts +0 -0
  641. /package/src/{utils → pm-plugins/utils}/nodes.ts +0 -0
  642. /package/src/{utils → pm-plugins/utils}/selection.ts +0 -0
  643. /package/src/{utils → pm-plugins/utils}/snapping.ts +0 -0
  644. /package/src/{utils → pm-plugins/utils}/table.ts +0 -0
@@ -29,13 +29,7 @@ import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
29
29
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
30
30
  import { token } from '@atlaskit/tokens';
31
31
 
32
- import { autoSizeTable, clearHoverSelection } from '../commands';
33
- import {
34
- handleMouseOut,
35
- handleMouseOver,
36
- isTableInFocus,
37
- withCellTracking,
38
- } from '../event-handlers';
32
+ import { autoSizeTable, clearHoverSelection } from '../pm-plugins/commands';
39
33
  import { autoScrollerFactory } from '../pm-plugins/drag-and-drop/utils';
40
34
  import { getPluginState } from '../pm-plugins/plugin-factory';
41
35
  import type { RowStickyState, StickyPluginState } from '../pm-plugins/sticky-headers';
@@ -62,10 +56,6 @@ import {
62
56
  getScalingPercentForTableWithoutWidth,
63
57
  getTableScalingPercent,
64
58
  } from '../pm-plugins/table-resizing/utils/misc';
65
- import type { CellHoverMeta, PluginInjectionAPI } from '../types';
66
- import { TableCssClassName as ClassName, ShadowEvent } from '../types';
67
- import TableFloatingColumnControls from '../ui/TableFloatingColumnControls';
68
- import TableFloatingControls from '../ui/TableFloatingControls';
69
59
  import {
70
60
  containsHeaderRow,
71
61
  getAssistiveMessage,
@@ -74,7 +64,17 @@ import {
74
64
  tablesHaveDifferentColumnWidths,
75
65
  tablesHaveDifferentNoOfColumns,
76
66
  tablesHaveDifferentNoOfRows,
77
- } from '../utils';
67
+ } from '../pm-plugins/utils';
68
+ import type { CellHoverMeta, PluginInjectionAPI } from '../types';
69
+ import { TableCssClassName as ClassName, ShadowEvent } from '../types';
70
+ import {
71
+ handleMouseOut,
72
+ handleMouseOver,
73
+ isTableInFocus,
74
+ withCellTracking,
75
+ } from '../ui/event-handlers';
76
+ import TableFloatingColumnControls from '../ui/TableFloatingColumnControls';
77
+ import TableFloatingControls from '../ui/TableFloatingControls';
78
78
 
79
79
  import { ExternalDropTargets } from './ExternalDropTargets';
80
80
  import { OverflowShadowsObserver } from './OverflowShadowsObserver';
@@ -20,15 +20,15 @@ import {
20
20
  akEditorMobileBreakoutPoint,
21
21
  } from '@atlaskit/editor-shared-styles';
22
22
 
23
- import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../commands-with-analytics';
23
+ import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
24
24
  import { getPluginState } from '../pm-plugins/plugin-factory';
25
25
  import {
26
26
  TABLE_MAX_WIDTH,
27
27
  TABLE_OFFSET_IN_COMMENT_EDITOR,
28
28
  } from '../pm-plugins/table-resizing/utils';
29
+ import { ALIGN_CENTER, ALIGN_START } from '../pm-plugins/utils/alignment';
29
30
  import type { PluginInjectionAPI, TableSharedState } from '../types';
30
31
  import { TableCssClassName as ClassName } from '../types';
31
- import { ALIGN_CENTER, ALIGN_START } from '../utils/alignment';
32
32
 
33
33
  import { getAlignmentStyle } from './table-container-styles';
34
34
  import { TableResizer } from './TableResizer';
@@ -28,8 +28,8 @@ import { findTable } from '@atlaskit/editor-tables/utils';
28
28
  import { fg } from '@atlaskit/platform-feature-flags';
29
29
  import { token } from '@atlaskit/tokens';
30
30
 
31
- import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../commands-with-analytics';
32
- import { updateWidthToWidest } from '../commands/misc';
31
+ import { setTableAlignmentWithTableContentWithPosWithAnalytics } from '../pm-plugins/commands/commands-with-analytics';
32
+ import { updateWidthToWidest } from '../pm-plugins/commands/misc';
33
33
  import { META_KEYS } from '../pm-plugins/table-analytics';
34
34
  import {
35
35
  COLUMN_MIN_WIDTH,
@@ -40,35 +40,35 @@ import {
40
40
  TABLE_OFFSET_IN_COMMENT_EDITOR,
41
41
  } from '../pm-plugins/table-resizing/utils';
42
42
  import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
43
- import type { PluginInjectionAPI, TableSharedStateInternal } from '../types';
44
- import {
45
- TABLE_GUIDELINE_VISIBLE_ADJUSTMENT,
46
- TABLE_HIGHLIGHT_GAP,
47
- TABLE_HIGHLIGHT_TOLERANCE,
48
- TABLE_SNAP_GAP,
49
- } from '../ui/consts';
50
43
  import {
51
44
  ALIGN_CENTER,
52
45
  ALIGN_START,
53
46
  normaliseAlignment,
54
47
  shouldChangeAlignmentToCenterResized,
55
- } from '../utils/alignment';
48
+ } from '../pm-plugins/utils/alignment';
56
49
  import {
57
50
  generateResizedPayload,
58
51
  generateResizeFrameRatePayloads,
59
52
  useMeasureFramerate,
60
- } from '../utils/analytics';
53
+ } from '../pm-plugins/utils/analytics';
61
54
  import {
62
55
  defaultGuidelines,
63
56
  defaultGuidelinesForPreserveTable,
64
57
  PRESERVE_TABLE_GUIDELINES_LENGTH_OFFSET,
65
- } from '../utils/guidelines';
58
+ } from '../pm-plugins/utils/guidelines';
66
59
  import {
67
60
  defaultSnappingWidths,
68
61
  defaultTablePreserveSnappingWidths,
69
62
  findClosestSnap,
70
63
  PRESERVE_TABLE_SNAPPING_LENGTH_OFFSET,
71
- } from '../utils/snapping';
64
+ } from '../pm-plugins/utils/snapping';
65
+ import type { PluginInjectionAPI, TableSharedStateInternal } from '../types';
66
+ import {
67
+ TABLE_GUIDELINE_VISIBLE_ADJUSTMENT,
68
+ TABLE_HIGHLIGHT_GAP,
69
+ TABLE_HIGHLIGHT_TOLERANCE,
70
+ TABLE_SNAP_GAP,
71
+ } from '../ui/consts';
72
72
 
73
73
  interface TableResizerProps {
74
74
  width: number;
@@ -14,6 +14,9 @@ import {
14
14
  syncStickyRowToTable,
15
15
  updateStickyMargins as updateTableMargin,
16
16
  } from '../pm-plugins/table-resizing/utils/dom';
17
+ import type { TableDOMElements } from '../pm-plugins/utils/dom';
18
+ import { getTop, getTree } from '../pm-plugins/utils/dom';
19
+ import { supportedHeaderRow } from '../pm-plugins/utils/nodes';
17
20
  import type { TablePluginState } from '../types';
18
21
  import { TableCssClassName as ClassName, TableCssClassName } from '../types';
19
22
  import {
@@ -22,9 +25,6 @@ import {
22
25
  tableControlsSpacing,
23
26
  tableScrollbarOffset,
24
27
  } from '../ui/consts';
25
- import type { TableDOMElements } from '../utils/dom';
26
- import { getTop, getTree } from '../utils/dom';
27
- import { supportedHeaderRow } from '../utils/nodes';
28
28
 
29
29
  import TableNodeView from './TableNodeViewBase';
30
30
 
@@ -1,5 +1,5 @@
1
+ import { ALIGN_START } from '../pm-plugins/utils/alignment';
1
2
  import type { AlignmentOptions } from '../types';
2
- import { ALIGN_START } from '../utils/alignment';
3
3
 
4
4
  const centerAlignStyle = { display: 'flex', justifyContent: 'center' };
5
5
 
@@ -21,15 +21,15 @@ import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
21
21
  import { TableMap } from '@atlaskit/editor-tables/table-map';
22
22
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
23
23
 
24
- import { pluginConfig as getPluginConfig } from '../create-plugin-config';
24
+ import { pluginConfig as getPluginConfig } from '../pm-plugins/create-plugin-config';
25
25
  import { pluginKey as tableDragAndDropPluginKey } from '../pm-plugins/drag-and-drop';
26
26
  import { getPluginState } from '../pm-plugins/plugin-factory';
27
27
  import { pluginKey } from '../pm-plugins/plugin-key';
28
28
  import { pluginKey as tableResizingPluginKey } from '../pm-plugins/table-resizing';
29
29
  import { generateColgroup } from '../pm-plugins/table-resizing/utils';
30
30
  import { pluginKey as tableWidthPluginKey } from '../pm-plugins/table-width';
31
+ import { isTableNested } from '../pm-plugins/utils';
31
32
  import type { PluginInjectionAPI } from '../types';
32
- import { isTableNested } from '../utils';
33
33
 
34
34
  import TableComponent from './TableComponent';
35
35
  import { TableComponentWithSharedState } from './TableComponentWithSharedState';
@@ -8,9 +8,10 @@ import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
10
 
11
- import { getAlignmentStyle } from './nodeviews/table-container-styles';
12
- import { generateColgroup, getResizerMinWidth } from './pm-plugins/table-resizing/utils/colgroup';
13
- import { TABLE_MAX_WIDTH } from './pm-plugins/table-resizing/utils/consts';
11
+ import { generateColgroup, getResizerMinWidth } from '../pm-plugins/table-resizing/utils/colgroup';
12
+ import { TABLE_MAX_WIDTH } from '../pm-plugins/table-resizing/utils/consts';
13
+
14
+ import { getAlignmentStyle } from './table-container-styles';
14
15
 
15
16
  type Config = {
16
17
  allowColumnResizing: boolean;
@@ -8,7 +8,7 @@ import {
8
8
  getTableElementMoveTypeBySlice,
9
9
  getTableSelectionType,
10
10
  isInsideFirstCellOfRowOrColumn,
11
- } from '../../commands/misc';
11
+ } from '../commands/misc';
12
12
 
13
13
  import { resetRowOrColumnMovedTransform, updateRowOrColumnMoved } from './commands';
14
14
  import { createPluginState } from './plugin-factory';
@@ -17,31 +17,31 @@ import {
17
17
  nextCell,
18
18
  } from '@atlaskit/editor-tables/utils';
19
19
 
20
- import { getDecorations } from '../pm-plugins/decorations/plugin';
20
+ import { TableDecorations } from '../../types';
21
+ import type { PluginInjectionAPI, TablePluginAction } from '../../types';
22
+ import { getDecorations } from '../decorations/plugin';
21
23
  import {
22
24
  buildColumnResizingDecorations,
23
25
  clearColumnResizingDecorations,
24
- } from '../pm-plugins/decorations/utils';
25
- import { createCommand, getPluginState } from '../pm-plugins/plugin-factory';
26
+ } from '../decorations/utils';
27
+ import { createCommand, getPluginState } from '../plugin-factory';
26
28
  import {
27
29
  getPluginState as getTableResizingPluginState,
28
30
  createCommand as tableResizingPluginCreateCommand,
29
- } from '../pm-plugins/table-resizing/plugin-factory';
30
- import { pluginKey as tableResizingPK } from '../pm-plugins/table-resizing/plugin-key';
31
+ } from '../table-resizing/plugin-factory';
32
+ import { pluginKey as tableResizingPK } from '../table-resizing/plugin-key';
31
33
  import {
32
34
  currentColWidth,
33
35
  getResizeState,
34
36
  getTableMaxWidth,
35
37
  resizeColumn,
36
38
  updateControls,
37
- } from '../pm-plugins/table-resizing/utils';
39
+ } from '../table-resizing/utils';
38
40
  import {
39
41
  getScalingPercentForTableWithoutWidth,
40
42
  getTableScalingPercent,
41
- } from '../pm-plugins/table-resizing/utils/misc';
43
+ } from '../table-resizing/utils/misc';
42
44
  import { updateColumnWidths } from '../transforms';
43
- import { TableDecorations } from '../types';
44
- import type { PluginInjectionAPI, TablePluginAction } from '../types';
45
45
  import { createColumnLineResize, getSelectedColumnIndexes, updateDecorations } from '../utils';
46
46
 
47
47
  const getTablePluginCommand = (
@@ -28,12 +28,26 @@ import {
28
28
  getSelectionRect,
29
29
  } from '@atlaskit/editor-tables/utils';
30
30
 
31
- import { clearMultipleCells } from './commands/clear';
32
- import { wrapTableInExpand } from './commands/collapse';
33
- import { changeColumnWidthByStep } from './commands/column-resize';
34
- import { deleteColumnsCommand } from './commands/delete';
35
- import { setTableDisplayMode } from './commands/display-mode';
36
- import { insertColumn, insertRow } from './commands/insert';
31
+ import type {
32
+ AlignmentOptions,
33
+ InsertRowMethods,
34
+ InsertRowOptions,
35
+ PluginInjectionAPI,
36
+ RowInsertPosition,
37
+ } from '../../types';
38
+ import { getPluginState } from '../plugin-factory';
39
+ import { distributeColumnsWidths } from '../table-resizing/commands';
40
+ import type { ResizeStateWithAnalytics } from '../table-resizing/utils';
41
+ import { deleteRows, mergeCells } from '../transforms';
42
+ import { checkIfNumberColumnEnabled, getSelectedCellInfo, getSelectedTableInfo } from '../utils';
43
+ import { withEditorAnalyticsAPI } from '../utils/analytics';
44
+
45
+ import { clearMultipleCells } from './clear';
46
+ import { wrapTableInExpand } from './collapse';
47
+ import { changeColumnWidthByStep } from './column-resize';
48
+ import { deleteColumnsCommand } from './delete';
49
+ import { setTableDisplayMode } from './display-mode';
50
+ import { insertColumn, insertRow } from './insert';
37
51
  import {
38
52
  deleteTable,
39
53
  deleteTableIfSelected,
@@ -41,23 +55,10 @@ import {
41
55
  setMultipleCellAttrs,
42
56
  setTableAlignment,
43
57
  setTableAlignmentWithTableContentWithPos,
44
- } from './commands/misc';
45
- import { sortByColumn } from './commands/sort';
46
- import { splitCell } from './commands/split-cell';
47
- import { toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn } from './commands/toggle';
48
- import { getPluginState } from './pm-plugins/plugin-factory';
49
- import { distributeColumnsWidths } from './pm-plugins/table-resizing/commands';
50
- import type { ResizeStateWithAnalytics } from './pm-plugins/table-resizing/utils';
51
- import { deleteRows, mergeCells } from './transforms';
52
- import type {
53
- AlignmentOptions,
54
- InsertRowMethods,
55
- InsertRowOptions,
56
- PluginInjectionAPI,
57
- RowInsertPosition,
58
- } from './types';
59
- import { checkIfNumberColumnEnabled, getSelectedCellInfo, getSelectedTableInfo } from './utils';
60
- import { withEditorAnalyticsAPI } from './utils/analytics';
58
+ } from './misc';
59
+ import { sortByColumn } from './sort';
60
+ import { splitCell } from './split-cell';
61
+ import { toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn } from './toggle';
61
62
 
62
63
  // #region Analytics wrappers
63
64
  export const emptyMultipleCellsWithAnalytics =
@@ -1,8 +1,8 @@
1
1
  import type { Command } from '@atlaskit/editor-common/types';
2
2
  import type { Rect } from '@atlaskit/editor-tables/table-map';
3
3
 
4
+ import type { PluginInjectionAPI } from '../../types';
4
5
  import { deleteColumns } from '../transforms/delete-columns';
5
- import type { PluginInjectionAPI } from '../types';
6
6
  import { getAllowAddColumnCustomStep } from '../utils/get-allow-add-column-custom-step';
7
7
 
8
8
  export const deleteColumnsCommand =
@@ -9,10 +9,10 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
9
9
  import type { Direction } from '@atlaskit/editor-tables/types';
10
10
  import { goToNextCell as baseGotoNextCell, findTable } from '@atlaskit/editor-tables/utils';
11
11
 
12
- import { insertRowWithAnalytics } from '../commands-with-analytics';
13
- import { getPluginState } from '../pm-plugins/plugin-factory';
12
+ import { getPluginState } from '../plugin-factory';
14
13
 
15
14
  import { stopKeyboardColumnResizing } from './column-resize';
15
+ import { insertRowWithAnalytics } from './commands-with-analytics';
16
16
 
17
17
  const TAB_FORWARD_DIRECTION = 1;
18
18
  const TAB_BACKWARD_DIRECTION = -1;
@@ -2,9 +2,9 @@
2
2
  import { TableMap } from '@atlaskit/editor-tables/table-map';
3
3
  import { findTable, getCellsInColumn, getCellsInRow } from '@atlaskit/editor-tables/utils';
4
4
 
5
- import { createCommand, getPluginState } from '../pm-plugins/plugin-factory';
6
- import type { Cell, CellColumnPositioning } from '../types';
7
- import { TableDecorations } from '../types';
5
+ import type { Cell, CellColumnPositioning } from '../../types';
6
+ import { TableDecorations } from '../../types';
7
+ import { createCommand, getPluginState } from '../plugin-factory';
8
8
  import {
9
9
  createCellHoverDecoration,
10
10
  createColumnLineResize,
@@ -28,10 +28,10 @@ import {
28
28
  import { fg } from '@atlaskit/platform-feature-flags';
29
29
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
30
30
 
31
- import { updateRowOrColumnMovedTransform } from '../pm-plugins/analytics/commands';
32
- import { META_KEYS } from '../pm-plugins/table-analytics';
31
+ import type { PluginInjectionAPI } from '../../types';
32
+ import { updateRowOrColumnMovedTransform } from '../analytics/commands';
33
+ import { META_KEYS } from '../table-analytics';
33
34
  import { rescaleColumns } from '../transforms/column-width';
34
- import type { PluginInjectionAPI } from '../types';
35
35
  import { checkIfHeaderRowEnabled, copyPreviousRow, createTableWithWidth } from '../utils';
36
36
  import { getAllowAddColumnCustomStep } from '../utils/get-allow-add-column-custom-step';
37
37
 
@@ -34,15 +34,15 @@ import {
34
34
  setCellAttrs,
35
35
  } from '@atlaskit/editor-tables/utils';
36
36
 
37
- import { getDecorations } from '../pm-plugins/decorations/plugin';
37
+ import type { WidthToWidest } from '../../types';
38
+ import { TableCssClassName as ClassName, TableDecorations } from '../../types';
39
+ import { getDecorations } from '../decorations/plugin';
38
40
  import {
39
41
  buildColumnResizingDecorations,
40
42
  clearColumnResizingDecorations,
41
- } from '../pm-plugins/decorations/utils';
42
- import { createCommand, getPluginState } from '../pm-plugins/plugin-factory';
43
+ } from '../decorations/utils';
44
+ import { createCommand, getPluginState } from '../plugin-factory';
43
45
  import { fixAutoSizedTable } from '../transforms';
44
- import type { WidthToWidest } from '../types';
45
- import { TableCssClassName as ClassName, TableDecorations } from '../types';
46
46
  import {
47
47
  createColumnControlsDecoration,
48
48
  createColumnSelectedDecoration,
@@ -1,7 +1,7 @@
1
1
  import { removeConnectedNodes } from '@atlaskit/editor-common/utils';
2
2
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
 
4
- import { createCommand } from '../pm-plugins/plugin-factory';
4
+ import { createCommand } from '../plugin-factory';
5
5
 
6
6
  export const removeDescendantNodes = (sourceNode: PMNode) =>
7
7
  createCommand(
@@ -23,10 +23,11 @@ import {
23
23
  selectedRect,
24
24
  } from '@atlaskit/editor-tables/utils';
25
25
 
26
- import { selectColumn, selectRow } from '../commands/misc';
27
- import type tablePlugin from '../plugin';
28
- import { getPluginState } from '../pm-plugins/plugin-factory';
29
- import { getClosestSelectionRect } from '../toolbar';
26
+ import type tablePlugin from '../../tablePlugin';
27
+ import { getClosestSelectionRect } from '../../ui/toolbar';
28
+ import { getPluginState } from '../plugin-factory';
29
+
30
+ import { selectColumn, selectRow } from './misc';
30
31
 
31
32
  enum TableSelectionDirection {
32
33
  TopToBottom = 'TopToBottom',
@@ -15,8 +15,8 @@ import {
15
15
  isSelectionType,
16
16
  } from '@atlaskit/editor-tables/utils';
17
17
 
18
- import { createCommand, getPluginState } from '../pm-plugins/plugin-factory';
19
- import type { TablePluginState } from '../types';
18
+ import type { TablePluginState } from '../../types';
19
+ import { createCommand, getPluginState } from '../plugin-factory';
20
20
 
21
21
  const createGetInlineCardTextFromStore = (attrs: CardAttributes): string | null => {
22
22
  const { data } = attrs as DataType;
@@ -1,8 +1,8 @@
1
1
  import type { Command } from '@atlaskit/editor-common/types';
2
2
  import { splitCellWithType } from '@atlaskit/editor-tables/utils';
3
3
 
4
- import { getPluginState } from '../pm-plugins/plugin-factory';
5
- import type { TablePluginState } from '../types';
4
+ import type { TablePluginState } from '../../types';
5
+ import { getPluginState } from '../plugin-factory';
6
6
 
7
7
  /**
8
8
  * We need to split cell keeping the right type of cell given current table configuration.
@@ -6,8 +6,8 @@ import type { Command } from '@atlaskit/editor-common/types';
6
6
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
7
7
  import { findTable, toggleHeader } from '@atlaskit/editor-tables/utils';
8
8
 
9
- import { createCommand } from '../pm-plugins/plugin-factory';
10
- import { META_KEYS } from '../pm-plugins/table-analytics';
9
+ import { createCommand } from '../plugin-factory';
10
+ import { META_KEYS } from '../table-analytics';
11
11
  //#endregion
12
12
 
13
13
  // #region Utils
@@ -1,4 +1,4 @@
1
- import type { PermittedLayoutsDescriptor, PluginConfig } from './types';
1
+ import type { PermittedLayoutsDescriptor, PluginConfig } from '../types';
2
2
 
3
3
  export const pluginConfig = (config: PluginConfig = {}) => {
4
4
  return config.advanced
@@ -11,7 +11,7 @@ import {
11
11
  findColumnControlSelectedDecoration,
12
12
  findControlsHoverDecoration,
13
13
  updateDecorations,
14
- } from '../../../utils/decoration';
14
+ } from '../../utils/decoration';
15
15
 
16
16
  import { composeDecorations } from './compose-decorations';
17
17
  import type { BuildDecorationTransformerParams, DecorationTransformer } from './types';
@@ -4,7 +4,7 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
5
 
6
6
  import { TableDecorations } from '../../../types';
7
- import { createResizeHandleDecoration, updateDecorations } from '../../../utils/decoration';
7
+ import { createResizeHandleDecoration, updateDecorations } from '../../utils/decoration';
8
8
 
9
9
  import { composeDecorations } from './compose-decorations';
10
10
  import type { DecorationTransformer } from './types';
@@ -16,9 +16,9 @@ import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
16
16
  import { findCellRectClosestToPos, getSelectionRect } from '@atlaskit/editor-tables/utils';
17
17
 
18
18
  import type { DraggableData, DraggableType } from '../../types';
19
- import { getSelectedColumnIndexes, getSelectedRowIndexes, getSelectedTableInfo } from '../../utils';
20
- import { withEditorAnalyticsAPI } from '../../utils/analytics';
21
- import { canMove, getTargetIndex } from '../../utils/drag-menu';
19
+ import { getSelectedColumnIndexes, getSelectedRowIndexes, getSelectedTableInfo } from '../utils';
20
+ import { withEditorAnalyticsAPI } from '../utils/analytics';
21
+ import { canMove, getTargetIndex } from '../utils/drag-menu';
22
22
 
23
23
  import { clearDropTarget, cloneSource, moveSource } from './commands';
24
24
 
@@ -5,7 +5,7 @@ import { cloneColumn, cloneRow, moveColumn, moveRow } from '@atlaskit/editor-tab
5
5
 
6
6
  import type { DraggableType, TableDirection } from '../../types';
7
7
  import { TableDecorations } from '../../types';
8
- import { createColumnInsertLine, createRowInsertLine, updateDecorations } from '../../utils';
8
+ import { createColumnInsertLine, createRowInsertLine, updateDecorations } from '../utils';
9
9
 
10
10
  import { DragAndDropActionType } from './actions';
11
11
  import { DropTargetType } from './consts';
@@ -11,10 +11,10 @@ import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
11
11
  import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
12
12
 
13
13
  import type { DraggableSourceData } from '../../types';
14
- import { findNearestCellIndexToPoint, hasMergedCellsInBetween } from '../../utils';
15
14
  import { getPluginState as getTablePluginState } from '../plugin-factory';
16
15
  import { pluginKey as tablePluginKey } from '../plugin-key';
17
16
  import { insertColgroupFromNode } from '../table-resizing/utils';
17
+ import { findNearestCellIndexToPoint, hasMergedCellsInBetween } from '../utils';
18
18
 
19
19
  import { DragAndDropActionType } from './actions';
20
20
  import { clearDropTarget, setDropTarget, toggleDragMenu } from './commands';
@@ -9,9 +9,10 @@ import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
9
9
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
11
 
12
- import { defaultTableSelection } from './pm-plugins/default-table-selection';
13
- import { pluginKey as tableResizingPluginKey } from './pm-plugins/table-resizing';
14
- import type { TablePluginState } from './types';
12
+ import type { TablePluginState } from '../types';
13
+
14
+ import { defaultTableSelection } from './default-table-selection';
15
+ import { pluginKey as tableResizingPluginKey } from './table-resizing';
15
16
  import { isTableCollapsible } from './utils/collapse';
16
17
  import {
17
18
  checkIfHeaderColumnEnabled,
@@ -44,27 +44,28 @@ import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
44
44
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
45
45
  import { fg } from '@atlaskit/platform-feature-flags';
46
46
 
47
- import { goToNextCell, moveCursorBackward, setFocusToCellMenu } from '../commands';
47
+ import { moveSourceWithAnalyticsViaShortcut } from '../pm-plugins/drag-and-drop/commands-with-analytics';
48
+ import type { PluginInjectionAPI, PluginInjectionAPIWithA11y } from '../types';
49
+
50
+ import { goToNextCell, moveCursorBackward, setFocusToCellMenu } from './commands';
51
+ import {
52
+ activateNextResizeArea,
53
+ initiateKeyboardColumnResizing,
54
+ stopKeyboardColumnResizing,
55
+ } from './commands/column-resize';
48
56
  import {
49
57
  addRowAroundSelection,
50
58
  changeColumnWidthByStepWithAnalytics,
51
59
  deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut,
52
60
  deleteTableIfSelectedWithAnalytics,
53
61
  emptyMultipleCellsWithAnalytics,
54
- } from '../commands-with-analytics';
55
- import {
56
- activateNextResizeArea,
57
- initiateKeyboardColumnResizing,
58
- stopKeyboardColumnResizing,
59
- } from '../commands/column-resize';
62
+ } from './commands/commands-with-analytics';
60
63
  import {
61
64
  addColumnAfter as addColumnAfterCommand,
62
65
  addColumnBefore as addColumnBeforeCommand,
63
66
  createTable,
64
67
  insertTableWithNestingSupport,
65
- } from '../commands/insert';
66
- import { moveSourceWithAnalyticsViaShortcut } from '../pm-plugins/drag-and-drop/commands-with-analytics';
67
- import type { PluginInjectionAPI, PluginInjectionAPIWithA11y } from '../types';
68
+ } from './commands/insert';
68
69
 
69
70
  export function keymapPlugin(
70
71
  getEditorContainerWidth: GetEditorContainerWidth,
@@ -26,14 +26,20 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
26
26
  import { TableMap } from '@atlaskit/editor-tables';
27
27
  import { findTable } from '@atlaskit/editor-tables/utils';
28
28
 
29
- import { addBoldInEmptyHeaderCells, clearHoverSelection, setTableRef } from '../commands';
30
- import { stopKeyboardColumnResizing } from '../commands/column-resize';
31
29
  import {
32
- removeResizeHandleDecorations,
33
- transformSliceRemoveCellBackgroundColor,
34
- transformSliceToAddTableHeaders,
35
- transformSliceToRemoveColumnsWidths,
36
- } from '../commands/misc';
30
+ lazyTableCellView,
31
+ lazyTableHeaderView,
32
+ lazyTableRowView,
33
+ lazyTableView,
34
+ } from '../nodeviews/lazy-node-views';
35
+ import { pluginKey as decorationsPluginKey } from '../pm-plugins/decorations/plugin';
36
+ import type {
37
+ InvalidNodeAttr,
38
+ PluginConfig,
39
+ PluginInjectionAPI,
40
+ PluginInjectionAPIWithA11y,
41
+ } from '../types';
42
+ import { TableCssClassName as ClassName } from '../types';
37
43
  import {
38
44
  handleBlur,
39
45
  handleClick,
@@ -47,33 +53,27 @@ import {
47
53
  handleTripleClick,
48
54
  whenTableInFocus,
49
55
  withCellTracking,
50
- } from '../event-handlers';
56
+ } from '../ui/event-handlers';
57
+
58
+ import { addBoldInEmptyHeaderCells, clearHoverSelection, setTableRef } from './commands';
59
+ import { stopKeyboardColumnResizing } from './commands/column-resize';
51
60
  import {
52
- lazyTableCellView,
53
- lazyTableHeaderView,
54
- lazyTableRowView,
55
- lazyTableView,
56
- } from '../nodeviews/lazy-node-views';
57
- import { pluginKey as decorationsPluginKey } from '../pm-plugins/decorations/plugin';
58
- import { fixTables, replaceSelectedTable } from '../transforms';
59
- import type {
60
- InvalidNodeAttr,
61
- PluginConfig,
62
- PluginInjectionAPI,
63
- PluginInjectionAPIWithA11y,
64
- } from '../types';
65
- import { TableCssClassName as ClassName } from '../types';
61
+ removeResizeHandleDecorations,
62
+ transformSliceRemoveCellBackgroundColor,
63
+ transformSliceToAddTableHeaders,
64
+ transformSliceToRemoveColumnsWidths,
65
+ } from './commands/misc';
66
+ import { defaultHoveredCell, defaultTableSelection } from './default-table-selection';
67
+ import { createPluginState, getPluginState } from './plugin-factory';
68
+ import { pluginKey } from './plugin-key';
69
+ import { fixTables, replaceSelectedTable } from './transforms';
66
70
  import {
67
71
  findControlsHoverDecoration,
68
72
  transformSliceToCorrectEmptyTableCells,
69
73
  transformSliceToFixHardBreakProblemOnCopyFromCell,
70
74
  transformSliceToRemoveOpenTable,
71
- } from '../utils';
72
- import { isHeaderRowRequired, transformSliceTableLayoutDefaultToCenter } from '../utils/paste';
73
-
74
- import { defaultHoveredCell, defaultTableSelection } from './default-table-selection';
75
- import { createPluginState, getPluginState } from './plugin-factory';
76
- import { pluginKey } from './plugin-key';
75
+ } from './utils';
76
+ import { isHeaderRowRequired, transformSliceTableLayoutDefaultToCenter } from './utils/paste';
77
77
 
78
78
  export const createPlugin = (
79
79
  dispatchAnalyticsEvent: DispatchAnalyticsEvent,