@atlaskit/editor-plugin-table 2.6.4 → 2.6.6

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 (347) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/table/commands/clear.js +3 -3
  3. package/dist/cjs/plugins/table/commands/go-to-next-cell.js +5 -5
  4. package/dist/cjs/plugins/table/commands/insert.js +19 -19
  5. package/dist/cjs/plugins/table/commands/misc.js +4 -4
  6. package/dist/cjs/plugins/table/commands/selection.js +5 -5
  7. package/dist/cjs/plugins/table/commands/sort.js +2 -2
  8. package/dist/cjs/plugins/table/event-handlers.js +4 -4
  9. package/dist/cjs/plugins/table/handlers.js +5 -5
  10. package/dist/cjs/plugins/table/nodeviews/TableContainer.js +2 -2
  11. package/dist/cjs/plugins/table/nodeviews/table.js +2 -2
  12. package/dist/cjs/plugins/table/nodeviews/tableCell.js +2 -2
  13. package/dist/cjs/plugins/table/pm-plugins/decorations/plugin.js +5 -5
  14. package/dist/cjs/plugins/table/pm-plugins/keymap.js +10 -10
  15. package/dist/cjs/plugins/table/pm-plugins/main.js +12 -12
  16. package/dist/cjs/plugins/table/pm-plugins/plugin-key.js +2 -2
  17. package/dist/cjs/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +7 -7
  18. package/dist/cjs/plugins/table/pm-plugins/sticky-headers/plugin-key.js +2 -2
  19. package/dist/cjs/plugins/table/pm-plugins/table-local-id.js +2 -2
  20. package/dist/cjs/plugins/table/pm-plugins/table-resizing/plugin-key.js +2 -2
  21. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
  22. package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/column-state.js +2 -2
  23. package/dist/cjs/plugins/table/pm-plugins/table-selection-keymap.js +2 -2
  24. package/dist/cjs/plugins/table/pm-plugins/table-width.js +4 -4
  25. package/dist/cjs/plugins/table/toolbar.js +12 -12
  26. package/dist/cjs/plugins/table/transforms/delete-columns.js +4 -4
  27. package/dist/cjs/plugins/table/transforms/delete-rows.js +2 -2
  28. package/dist/cjs/plugins/table/transforms/merge.js +5 -5
  29. package/dist/cjs/plugins/table/transforms/replace-table.js +4 -4
  30. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  31. package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +4 -4
  32. package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +6 -6
  33. package/dist/cjs/plugins/table/ui/LayoutButton/index.js +2 -2
  34. package/dist/cjs/plugins/table/ui/TableFloatingControls/NumberColumn/index.js +3 -3
  35. package/dist/cjs/plugins/table/utils/collapse.js +4 -4
  36. package/dist/cjs/plugins/table/utils/column-controls.js +8 -8
  37. package/dist/cjs/plugins/table/utils/decoration.js +8 -8
  38. package/dist/cjs/plugins/table/utils/nodes.js +6 -6
  39. package/dist/cjs/plugins/table/utils/paste.js +7 -7
  40. package/dist/cjs/plugins/table/utils/row-controls.js +7 -7
  41. package/dist/cjs/version.json +1 -1
  42. package/dist/es2019/plugins/table/commands/clear.js +2 -1
  43. package/dist/es2019/plugins/table/commands/go-to-next-cell.js +2 -1
  44. package/dist/es2019/plugins/table/commands/insert.js +2 -2
  45. package/dist/es2019/plugins/table/commands/misc.js +1 -1
  46. package/dist/es2019/plugins/table/commands/selection.js +1 -1
  47. package/dist/es2019/plugins/table/commands/sort.js +1 -1
  48. package/dist/es2019/plugins/table/event-handlers.js +1 -1
  49. package/dist/es2019/plugins/table/handlers.js +3 -3
  50. package/dist/es2019/plugins/table/nodeviews/TableContainer.js +2 -2
  51. package/dist/es2019/plugins/table/nodeviews/table.js +1 -1
  52. package/dist/es2019/plugins/table/nodeviews/tableCell.js +1 -1
  53. package/dist/es2019/plugins/table/pm-plugins/decorations/plugin.js +3 -3
  54. package/dist/es2019/plugins/table/pm-plugins/keymap.js +2 -2
  55. package/dist/es2019/plugins/table/pm-plugins/main.js +1 -1
  56. package/dist/es2019/plugins/table/pm-plugins/plugin-key.js +1 -1
  57. package/dist/es2019/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +2 -2
  58. package/dist/es2019/plugins/table/pm-plugins/sticky-headers/plugin-key.js +1 -1
  59. package/dist/es2019/plugins/table/pm-plugins/table-local-id.js +1 -2
  60. package/dist/es2019/plugins/table/pm-plugins/table-resizing/plugin-factory.js +0 -1
  61. package/dist/es2019/plugins/table/pm-plugins/table-resizing/plugin-key.js +1 -1
  62. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +1 -1
  63. package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
  64. package/dist/es2019/plugins/table/pm-plugins/table-selection-keymap.js +1 -1
  65. package/dist/es2019/plugins/table/pm-plugins/table-width.js +3 -2
  66. package/dist/es2019/plugins/table/toolbar.js +1 -1
  67. package/dist/es2019/plugins/table/transforms/delete-columns.js +1 -1
  68. package/dist/es2019/plugins/table/transforms/delete-rows.js +1 -1
  69. package/dist/es2019/plugins/table/transforms/merge.js +2 -2
  70. package/dist/es2019/plugins/table/transforms/replace-table.js +2 -2
  71. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +1 -1
  72. package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +1 -1
  73. package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  74. package/dist/es2019/plugins/table/ui/LayoutButton/index.js +1 -1
  75. package/dist/es2019/plugins/table/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  76. package/dist/es2019/plugins/table/utils/collapse.js +2 -2
  77. package/dist/es2019/plugins/table/utils/column-controls.js +1 -1
  78. package/dist/es2019/plugins/table/utils/decoration.js +3 -2
  79. package/dist/es2019/plugins/table/utils/nodes.js +1 -1
  80. package/dist/es2019/plugins/table/utils/paste.js +2 -2
  81. package/dist/es2019/plugins/table/utils/row-controls.js +1 -1
  82. package/dist/es2019/version.json +1 -1
  83. package/dist/esm/plugins/table/commands/clear.js +2 -1
  84. package/dist/esm/plugins/table/commands/go-to-next-cell.js +2 -1
  85. package/dist/esm/plugins/table/commands/insert.js +2 -2
  86. package/dist/esm/plugins/table/commands/misc.js +1 -1
  87. package/dist/esm/plugins/table/commands/selection.js +1 -1
  88. package/dist/esm/plugins/table/commands/sort.js +1 -1
  89. package/dist/esm/plugins/table/event-handlers.js +1 -1
  90. package/dist/esm/plugins/table/handlers.js +3 -3
  91. package/dist/esm/plugins/table/nodeviews/TableContainer.js +2 -2
  92. package/dist/esm/plugins/table/nodeviews/table.js +1 -1
  93. package/dist/esm/plugins/table/nodeviews/tableCell.js +1 -1
  94. package/dist/esm/plugins/table/pm-plugins/decorations/plugin.js +3 -3
  95. package/dist/esm/plugins/table/pm-plugins/keymap.js +2 -2
  96. package/dist/esm/plugins/table/pm-plugins/main.js +1 -1
  97. package/dist/esm/plugins/table/pm-plugins/plugin-key.js +1 -1
  98. package/dist/esm/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.js +2 -2
  99. package/dist/esm/plugins/table/pm-plugins/sticky-headers/plugin-key.js +1 -1
  100. package/dist/esm/plugins/table/pm-plugins/table-local-id.js +1 -2
  101. package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin-factory.js +0 -1
  102. package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin-key.js +1 -1
  103. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +1 -1
  104. package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
  105. package/dist/esm/plugins/table/pm-plugins/table-selection-keymap.js +1 -1
  106. package/dist/esm/plugins/table/pm-plugins/table-width.js +3 -2
  107. package/dist/esm/plugins/table/toolbar.js +1 -1
  108. package/dist/esm/plugins/table/transforms/delete-columns.js +1 -1
  109. package/dist/esm/plugins/table/transforms/delete-rows.js +1 -1
  110. package/dist/esm/plugins/table/transforms/merge.js +2 -2
  111. package/dist/esm/plugins/table/transforms/replace-table.js +2 -2
  112. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +1 -1
  113. package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +1 -1
  114. package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +1 -1
  115. package/dist/esm/plugins/table/ui/LayoutButton/index.js +1 -1
  116. package/dist/esm/plugins/table/ui/TableFloatingControls/NumberColumn/index.js +1 -1
  117. package/dist/esm/plugins/table/utils/collapse.js +2 -2
  118. package/dist/esm/plugins/table/utils/column-controls.js +1 -1
  119. package/dist/esm/plugins/table/utils/decoration.js +3 -2
  120. package/dist/esm/plugins/table/utils/nodes.js +1 -1
  121. package/dist/esm/plugins/table/utils/paste.js +2 -2
  122. package/dist/esm/plugins/table/utils/row-controls.js +1 -1
  123. package/dist/esm/version.json +1 -1
  124. package/dist/types/plugins/table/commands/insert.d.ts +2 -2
  125. package/dist/types/plugins/table/commands/misc.d.ts +4 -4
  126. package/dist/types/plugins/table/commands/referentiality.d.ts +1 -1
  127. package/dist/types/plugins/table/event-handlers.d.ts +2 -2
  128. package/dist/types/plugins/table/handlers.d.ts +1 -1
  129. package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +2 -2
  130. package/dist/types/plugins/table/nodeviews/TableContainer.d.ts +2 -2
  131. package/dist/types/plugins/table/nodeviews/TableResizer.d.ts +3 -3
  132. package/dist/types/plugins/table/nodeviews/table.d.ts +2 -2
  133. package/dist/types/plugins/table/nodeviews/tableCell.d.ts +2 -2
  134. package/dist/types/plugins/table/nodeviews/types.d.ts +2 -2
  135. package/dist/types/plugins/table/pm-plugins/decorations/plugin.d.ts +2 -2
  136. package/dist/types/plugins/table/pm-plugins/decorations/utils/types.d.ts +2 -2
  137. package/dist/types/plugins/table/pm-plugins/plugin-key.d.ts +1 -1
  138. package/dist/types/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +2 -2
  139. package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -2
  140. package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +1 -1
  141. package/dist/types/plugins/table/pm-plugins/table-resizing/commands.d.ts +3 -3
  142. package/dist/types/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +1 -1
  143. package/dist/types/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +1 -1
  144. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -1
  145. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +1 -1
  146. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +2 -2
  147. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -3
  148. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -2
  149. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +3 -3
  150. package/dist/types/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +1 -1
  151. package/dist/types/plugins/table/pm-plugins/table-width.d.ts +1 -1
  152. package/dist/types/plugins/table/toolbar.d.ts +2 -2
  153. package/dist/types/plugins/table/transforms/column-width.d.ts +4 -4
  154. package/dist/types/plugins/table/transforms/delete-columns.d.ts +1 -1
  155. package/dist/types/plugins/table/transforms/delete-rows.d.ts +1 -1
  156. package/dist/types/plugins/table/transforms/fix-tables.d.ts +3 -3
  157. package/dist/types/plugins/table/transforms/merge.d.ts +2 -2
  158. package/dist/types/plugins/table/transforms/replace-table.d.ts +2 -2
  159. package/dist/types/plugins/table/transforms/split.d.ts +1 -1
  160. package/dist/types/plugins/table/types.d.ts +3 -3
  161. package/dist/types/plugins/table/ui/FloatingContextualButton/index.d.ts +2 -2
  162. package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +1 -1
  163. package/dist/types/plugins/table/ui/FloatingContextualMenu/index.d.ts +1 -1
  164. package/dist/types/plugins/table/ui/FloatingDeleteButton/index.d.ts +2 -2
  165. package/dist/types/plugins/table/ui/FloatingInsertButton/index.d.ts +2 -2
  166. package/dist/types/plugins/table/ui/LayoutButton/index.d.ts +1 -1
  167. package/dist/types/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +1 -1
  168. package/dist/types/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +1 -1
  169. package/dist/types/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +1 -1
  170. package/dist/types/plugins/table/ui/TableFloatingControls/index.d.ts +2 -2
  171. package/dist/types/plugins/table/utils/analytics.d.ts +1 -1
  172. package/dist/types/plugins/table/utils/collapse.d.ts +2 -2
  173. package/dist/types/plugins/table/utils/column-controls.d.ts +2 -2
  174. package/dist/types/plugins/table/utils/decoration.d.ts +3 -3
  175. package/dist/types/plugins/table/utils/get-allow-add-column-custom-step.d.ts +1 -1
  176. package/dist/types/plugins/table/utils/nodes.d.ts +2 -2
  177. package/dist/types/plugins/table/utils/paste.d.ts +2 -2
  178. package/dist/types/plugins/table/utils/row-controls.d.ts +2 -2
  179. package/dist/types/plugins/table/utils/selection.d.ts +1 -1
  180. package/dist/types/plugins/table/utils/table.d.ts +1 -1
  181. package/dist/types/plugins/table/utils/update-plugin-state-decorations.d.ts +2 -2
  182. package/dist/types-ts4.5/plugins/table/commands/insert.d.ts +2 -2
  183. package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +4 -4
  184. package/dist/types-ts4.5/plugins/table/commands/referentiality.d.ts +1 -1
  185. package/dist/types-ts4.5/plugins/table/event-handlers.d.ts +2 -2
  186. package/dist/types-ts4.5/plugins/table/handlers.d.ts +1 -1
  187. package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +2 -2
  188. package/dist/types-ts4.5/plugins/table/nodeviews/TableContainer.d.ts +2 -2
  189. package/dist/types-ts4.5/plugins/table/nodeviews/TableResizer.d.ts +3 -3
  190. package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +2 -2
  191. package/dist/types-ts4.5/plugins/table/nodeviews/tableCell.d.ts +2 -2
  192. package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +2 -2
  193. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/plugin.d.ts +2 -2
  194. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/types.d.ts +2 -2
  195. package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-key.d.ts +1 -1
  196. package/dist/types-ts4.5/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +2 -2
  197. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -2
  198. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +1 -1
  199. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/commands.d.ts +3 -3
  200. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +1 -1
  201. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +1 -1
  202. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -1
  203. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +1 -1
  204. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +2 -2
  205. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -3
  206. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -2
  207. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +3 -3
  208. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +1 -1
  209. package/dist/types-ts4.5/plugins/table/pm-plugins/table-width.d.ts +1 -1
  210. package/dist/types-ts4.5/plugins/table/toolbar.d.ts +2 -2
  211. package/dist/types-ts4.5/plugins/table/transforms/column-width.d.ts +4 -4
  212. package/dist/types-ts4.5/plugins/table/transforms/delete-columns.d.ts +1 -1
  213. package/dist/types-ts4.5/plugins/table/transforms/delete-rows.d.ts +1 -1
  214. package/dist/types-ts4.5/plugins/table/transforms/fix-tables.d.ts +3 -3
  215. package/dist/types-ts4.5/plugins/table/transforms/merge.d.ts +2 -2
  216. package/dist/types-ts4.5/plugins/table/transforms/replace-table.d.ts +2 -2
  217. package/dist/types-ts4.5/plugins/table/transforms/split.d.ts +1 -1
  218. package/dist/types-ts4.5/plugins/table/types.d.ts +3 -3
  219. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/index.d.ts +2 -2
  220. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +1 -1
  221. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/index.d.ts +1 -1
  222. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/index.d.ts +2 -2
  223. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/index.d.ts +2 -2
  224. package/dist/types-ts4.5/plugins/table/ui/LayoutButton/index.d.ts +1 -1
  225. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +1 -1
  226. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +1 -1
  227. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +1 -1
  228. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/index.d.ts +2 -2
  229. package/dist/types-ts4.5/plugins/table/utils/analytics.d.ts +1 -1
  230. package/dist/types-ts4.5/plugins/table/utils/collapse.d.ts +2 -2
  231. package/dist/types-ts4.5/plugins/table/utils/column-controls.d.ts +2 -2
  232. package/dist/types-ts4.5/plugins/table/utils/decoration.d.ts +3 -3
  233. package/dist/types-ts4.5/plugins/table/utils/get-allow-add-column-custom-step.d.ts +1 -1
  234. package/dist/types-ts4.5/plugins/table/utils/nodes.d.ts +2 -2
  235. package/dist/types-ts4.5/plugins/table/utils/paste.d.ts +2 -2
  236. package/dist/types-ts4.5/plugins/table/utils/row-controls.d.ts +2 -2
  237. package/dist/types-ts4.5/plugins/table/utils/selection.d.ts +1 -1
  238. package/dist/types-ts4.5/plugins/table/utils/table.d.ts +1 -1
  239. package/dist/types-ts4.5/plugins/table/utils/update-plugin-state-decorations.d.ts +2 -2
  240. package/package.json +4 -11
  241. package/src/__tests__/integration/resize.ts +1 -2
  242. package/src/__tests__/unit/commands/go-to-next-cell.ts +1 -2
  243. package/src/__tests__/unit/commands/insert.ts +1 -2
  244. package/src/__tests__/unit/commands/misc.ts +1 -2
  245. package/src/__tests__/unit/commands.ts +4 -5
  246. package/src/__tests__/unit/copy-paste.ts +15 -8
  247. package/src/__tests__/unit/event-handlers/index.ts +1 -2
  248. package/src/__tests__/unit/event-handlers.ts +1 -2
  249. package/src/__tests__/unit/get-toolbar-config.ts +1 -2
  250. package/src/__tests__/unit/handlers.ts +1 -2
  251. package/src/__tests__/unit/hover-selection.ts +2 -3
  252. package/src/__tests__/unit/index.ts +1 -2
  253. package/src/__tests__/unit/layout.ts +1 -2
  254. package/src/__tests__/unit/nodeviews/TableComponent.tsx +1 -1
  255. package/src/__tests__/unit/nodeviews/table.ts +2 -3
  256. package/src/__tests__/unit/pm-plugins/decorations/column-controls.ts +1 -2
  257. package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +3 -4
  258. package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +2 -3
  259. package/src/__tests__/unit/pm-plugins/main.ts +8 -7
  260. package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +2 -2
  261. package/src/__tests__/unit/pm-plugins/table-local-id.ts +5 -2
  262. package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +2 -3
  263. package/src/__tests__/unit/sort-column.ts +1 -2
  264. package/src/__tests__/unit/transforms/delete-columns.ts +1 -2
  265. package/src/__tests__/unit/transforms/delete-rows.ts +1 -2
  266. package/src/__tests__/unit/transforms/merging.ts +1 -2
  267. package/src/__tests__/unit/ui/ContextualMenu.tsx +1 -1
  268. package/src/__tests__/unit/ui/FloatingContextualButton.tsx +7 -5
  269. package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +1 -1
  270. package/src/__tests__/unit/ui/FloatingDeleteButton.tsx +1 -1
  271. package/src/__tests__/unit/ui/FloatingInsertButton.tsx +7 -5
  272. package/src/__tests__/unit/ui/TableFloatingControls.tsx +1 -1
  273. package/src/__tests__/unit/undo-redo.ts +2 -2
  274. package/src/__tests__/unit/utils.ts +1 -2
  275. package/src/plugins/table/commands/clear.ts +1 -2
  276. package/src/plugins/table/commands/go-to-next-cell.ts +1 -1
  277. package/src/plugins/table/commands/insert.ts +3 -4
  278. package/src/plugins/table/commands/misc.ts +8 -5
  279. package/src/plugins/table/commands/referentiality.ts +1 -2
  280. package/src/plugins/table/commands/selection.ts +5 -3
  281. package/src/plugins/table/commands/sort.ts +6 -3
  282. package/src/plugins/table/commands/toggle.ts +1 -1
  283. package/src/plugins/table/commands-with-analytics.ts +1 -2
  284. package/src/plugins/table/event-handlers.ts +8 -9
  285. package/src/plugins/table/handlers.ts +10 -5
  286. package/src/plugins/table/index.tsx +2 -3
  287. package/src/plugins/table/nodeviews/TableComponent.tsx +2 -2
  288. package/src/plugins/table/nodeviews/TableContainer.tsx +3 -3
  289. package/src/plugins/table/nodeviews/TableResizer.tsx +3 -3
  290. package/src/plugins/table/nodeviews/table.tsx +7 -8
  291. package/src/plugins/table/nodeviews/tableCell.tsx +2 -2
  292. package/src/plugins/table/nodeviews/types.ts +2 -3
  293. package/src/plugins/table/pm-plugins/decorations/plugin.ts +3 -4
  294. package/src/plugins/table/pm-plugins/decorations/utils/column-controls.ts +5 -3
  295. package/src/plugins/table/pm-plugins/decorations/utils/column-resizing.ts +1 -1
  296. package/src/plugins/table/pm-plugins/decorations/utils/compose-decorations.ts +1 -1
  297. package/src/plugins/table/pm-plugins/decorations/utils/types.ts +5 -2
  298. package/src/plugins/table/pm-plugins/keymap.ts +2 -3
  299. package/src/plugins/table/pm-plugins/main.ts +11 -8
  300. package/src/plugins/table/pm-plugins/plugin-key.ts +1 -1
  301. package/src/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.ts +6 -3
  302. package/src/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.ts +2 -2
  303. package/src/plugins/table/pm-plugins/sticky-headers/plugin-key.ts +1 -1
  304. package/src/plugins/table/pm-plugins/table-local-id.ts +2 -2
  305. package/src/plugins/table/pm-plugins/table-resizing/commands.ts +3 -4
  306. package/src/plugins/table/pm-plugins/table-resizing/event-handlers.ts +1 -2
  307. package/src/plugins/table/pm-plugins/table-resizing/plugin-factory.ts +1 -2
  308. package/src/plugins/table/pm-plugins/table-resizing/plugin-key.ts +1 -1
  309. package/src/plugins/table/pm-plugins/table-resizing/utils/colgroup.ts +4 -2
  310. package/src/plugins/table/pm-plugins/table-resizing/utils/column-state.ts +2 -3
  311. package/src/plugins/table/pm-plugins/table-resizing/utils/dom.ts +2 -3
  312. package/src/plugins/table/pm-plugins/table-resizing/utils/misc.ts +7 -4
  313. package/src/plugins/table/pm-plugins/table-resizing/utils/resize-state.ts +2 -3
  314. package/src/plugins/table/pm-plugins/table-resizing/utils/scale-table.ts +3 -4
  315. package/src/plugins/table/pm-plugins/table-resizing/utils/types.ts +1 -1
  316. package/src/plugins/table/pm-plugins/table-selection-keymap.ts +1 -2
  317. package/src/plugins/table/pm-plugins/table-width.ts +2 -2
  318. package/src/plugins/table/toolbar.tsx +4 -4
  319. package/src/plugins/table/transforms/column-width.ts +4 -5
  320. package/src/plugins/table/transforms/delete-columns.ts +2 -3
  321. package/src/plugins/table/transforms/delete-rows.ts +2 -3
  322. package/src/plugins/table/transforms/fix-tables.ts +3 -4
  323. package/src/plugins/table/transforms/merge.ts +2 -3
  324. package/src/plugins/table/transforms/replace-table.ts +6 -3
  325. package/src/plugins/table/transforms/split.ts +2 -3
  326. package/src/plugins/table/types.ts +3 -3
  327. package/src/plugins/table/ui/FloatingContextualButton/index.tsx +3 -3
  328. package/src/plugins/table/ui/FloatingContextualMenu/ContextualMenu.tsx +1 -1
  329. package/src/plugins/table/ui/FloatingContextualMenu/index.tsx +2 -2
  330. package/src/plugins/table/ui/FloatingDeleteButton/index.tsx +2 -2
  331. package/src/plugins/table/ui/FloatingInsertButton/index.tsx +3 -3
  332. package/src/plugins/table/ui/LayoutButton/index.tsx +2 -2
  333. package/src/plugins/table/ui/TableFloatingControls/CornerControls/index.tsx +1 -1
  334. package/src/plugins/table/ui/TableFloatingControls/NumberColumn/index.tsx +2 -3
  335. package/src/plugins/table/ui/TableFloatingControls/RowControls/index.tsx +2 -1
  336. package/src/plugins/table/ui/TableFloatingControls/index.tsx +2 -3
  337. package/src/plugins/table/utils/analytics.ts +1 -2
  338. package/src/plugins/table/utils/collapse.ts +6 -4
  339. package/src/plugins/table/utils/column-controls.ts +3 -4
  340. package/src/plugins/table/utils/decoration.ts +9 -6
  341. package/src/plugins/table/utils/get-allow-add-column-custom-step.ts +1 -1
  342. package/src/plugins/table/utils/nodes.ts +3 -4
  343. package/src/plugins/table/utils/paste.ts +8 -4
  344. package/src/plugins/table/utils/row-controls.ts +3 -4
  345. package/src/plugins/table/utils/selection.ts +1 -2
  346. package/src/plugins/table/utils/table.ts +1 -2
  347. package/src/plugins/table/utils/update-plugin-state-decorations.ts +2 -2
@@ -1,11 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React from 'react';
4
- import { findDomRefAtPos } from 'prosemirror-utils';
5
4
  import { injectIntl } from 'react-intl-next';
6
5
  import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
6
  import { Popup } from '@atlaskit/editor-common/ui';
8
7
  import { closestElement } from '@atlaskit/editor-common/utils';
8
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
9
9
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
10
10
  import { TableMap } from '@atlaskit/editor-tables/table-map';
11
11
  import { findTable } from '@atlaskit/editor-tables/utils';
@@ -1,11 +1,11 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React, { createRef } from 'react';
3
3
  import classnames from 'classnames';
4
- import { findDomRefAtPos } from 'prosemirror-utils';
5
4
  import { injectIntl } from 'react-intl-next';
6
5
  import commonMessages from '@atlaskit/editor-common/messages';
7
6
  import { Popup } from '@atlaskit/editor-common/ui';
8
7
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
8
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
9
9
  import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
10
10
  import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
11
11
  import { toggleTableLayoutWithAnalytics } from '../../commands-with-analytics';
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React, { Component } from 'react';
3
- import { Selection } from 'prosemirror-state';
3
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { isRowSelected } from '@atlaskit/editor-tables/utils';
5
5
  import { clearHoverSelection } from '../../../commands';
6
6
  import { TableCssClassName as ClassName } from '../../../types';
@@ -1,7 +1,7 @@
1
- import { NodeRange } from 'prosemirror-model';
1
+ import { NodeRange } from '@atlaskit/editor-prosemirror/model';
2
2
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
3
3
 
4
- import { findWrapping } from 'prosemirror-transform';
4
+ import { findWrapping } from '@atlaskit/editor-prosemirror/transform';
5
5
  import { findTable } from '@atlaskit/editor-tables/utils';
6
6
  const bail = () => ({
7
7
  tableIsCollapsible: false
@@ -1,5 +1,5 @@
1
- import { findDomRefAtPos } from 'prosemirror-utils';
2
1
  import { maphElem } from '@atlaskit/editor-common/utils';
2
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
3
3
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
4
  import { TableMap } from '@atlaskit/editor-tables/table-map';
5
5
  import { findTable, getCellsInColumn, getSelectionRect, isColumnSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
@@ -1,7 +1,8 @@
1
+ import { nonNullable } from '@atlaskit/editor-common/utils';
2
+
1
3
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
2
4
 
3
- import { Decoration } from 'prosemirror-view';
4
- import { nonNullable } from '@atlaskit/editor-common/utils';
5
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
5
6
  import { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
6
7
  import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
7
8
  import { TableCssClassName as ClassName, TableDecorations } from '../types';
@@ -1,4 +1,4 @@
1
- import { hasParentNodeOfType } from 'prosemirror-utils';
1
+ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
2
2
  import { TableMap } from '@atlaskit/editor-tables/table-map';
3
3
  import { findTable } from '@atlaskit/editor-tables/utils';
4
4
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -1,6 +1,6 @@
1
- import { Fragment, Slice } from 'prosemirror-model';
2
- import { flatten } from 'prosemirror-utils';
3
1
  import { flatmap, mapSlice } from '@atlaskit/editor-common/utils';
2
+ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
3
+ import { flatten } from '@atlaskit/editor-prosemirror/utils';
4
4
  import { getPluginState } from '../pm-plugins/plugin-factory';
5
5
 
6
6
  // lifts up the content of each cell, returning an array of nodes
@@ -1,5 +1,5 @@
1
- import { safeInsert } from 'prosemirror-utils';
2
1
  import { parsePx } from '@atlaskit/editor-common/utils';
2
+ import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
3
3
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
4
  import { TableMap } from '@atlaskit/editor-tables/table-map';
5
5
  import { findTable, getSelectionRect, isRowSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,6 @@
1
1
  // #region Imports
2
- import { Selection } from 'prosemirror-state';
2
+
3
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
3
4
  import { emptyCell, findCellClosestToPos, isSelectionType } from '@atlaskit/editor-tables/utils';
4
5
 
5
6
  // #endregion
@@ -1,6 +1,7 @@
1
1
  // #region Constants
2
- import { findParentNodeOfType } from 'prosemirror-utils';
2
+
3
3
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
+ import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
5
  import { TableMap } from '@atlaskit/editor-tables/table-map';
5
6
  import { goToNextCell as baseGotoNextCell, findTable } from '@atlaskit/editor-tables/utils';
6
7
  import { insertRowWithAnalytics } from '../commands-with-analytics';
@@ -1,7 +1,7 @@
1
1
  // #region Imports
2
- import { Selection } from 'prosemirror-state';
3
- import { safeInsert } from 'prosemirror-utils';
4
2
  import { AddColumnStep } from '@atlaskit/adf-schema/steps';
3
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
4
+ import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { TableMap } from '@atlaskit/editor-tables/table-map';
6
6
  import { addColumnAt as addColumnAtPMUtils, addRowAt, createTable as createTableNode, findTable, selectedRect } from '@atlaskit/editor-tables/utils';
7
7
  import { rescaleColumns } from '../transforms/column-width';
@@ -3,8 +3,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  // #region Imports
5
5
 
6
- import { TextSelection } from 'prosemirror-state';
7
6
  import { closestElement, isParagraph, isTextSelection, mapSlice } from '@atlaskit/editor-common/utils';
7
+ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
9
9
  import { TableMap } from '@atlaskit/editor-tables/table-map';
10
10
  import { findCellClosestToPos, findTable, getCellsInColumn, getCellsInRow, getSelectionRect, isSelectionType, isTableSelected, removeTable, selectColumn as selectColumnTransform, selectionCell, selectRow as selectRowTransform, setCellAttrs } from '@atlaskit/editor-tables/utils';
@@ -1,5 +1,5 @@
1
- import { Selection, TextSelection } from 'prosemirror-state';
2
1
  import { GapCursorSelection, isSelectionAtEndOfNode, isSelectionAtStartOfNode, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
2
+ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
4
  import { TableMap } from '@atlaskit/editor-tables/table-map';
5
5
  import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
@@ -1,6 +1,6 @@
1
- import { Selection } from 'prosemirror-state';
2
1
  import { TableSortOrder as SortOrder, TableSortStep } from '@atlaskit/adf-schema/steps';
3
2
  import { createCompareNodes } from '@atlaskit/editor-common/utils';
3
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { TableMap } from '@atlaskit/editor-tables/table-map';
5
5
  import { convertArrayOfRowsToTableNode, convertTableNodeToArrayOfRows, findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
6
6
  import { createCommand, getPluginState } from '../pm-plugins/plugin-factory';
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import { Selection, TextSelection } from 'prosemirror-state';
3
2
  import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
4
3
  import { browser, closestElement, isElementInTableCell, isLastItemMediaGroup, setNodeSelection } from '@atlaskit/editor-common/utils';
4
+ import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
6
6
  import { TableMap } from '@atlaskit/editor-tables/table-map';
7
7
  import { cellAround, findCellRectClosestToPos, findTable, getSelectionRect, removeTable } from '@atlaskit/editor-tables/utils';
@@ -2,12 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  // #region Imports
5
+ import { TableSortStep } from '@atlaskit/adf-schema/steps';
6
+ import { isTextInput } from '@atlaskit/editor-common/utils';
5
7
 
6
8
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
7
9
 
8
- import { findParentNodeOfType } from 'prosemirror-utils';
9
- import { TableSortStep } from '@atlaskit/adf-schema/steps';
10
- import { isTextInput } from '@atlaskit/editor-common/utils';
10
+ import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
11
11
  import { findTable } from '@atlaskit/editor-tables/utils';
12
12
  import { defaultTableSelection } from './pm-plugins/default-table-selection';
13
13
  import { pluginKey as tableResizingPluginKey } from './pm-plugins/table-resizing';
@@ -61,8 +61,8 @@ export var ResizableTableContainer = function ResizableTableContainer(_ref2) {
61
61
  })) !== null && _pluginInjectionApi$d !== void 0 ? _pluginInjectionApi$d : false;
62
62
  }, [pluginInjectionApi, editorView]);
63
63
  var attachAnalyticsEvent = useCallback(function (payload) {
64
- var _pluginInjectionApi$d5;
65
- return pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d5 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d5 === void 0 ? void 0 : _pluginInjectionApi$d5.analytics.actions.attachAnalyticsEvent(payload);
64
+ var _pluginInjectionApi$d5, _pluginInjectionApi$d6;
65
+ return pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d5 = pluginInjectionApi.dependencies) === null || _pluginInjectionApi$d5 === void 0 ? void 0 : (_pluginInjectionApi$d6 = _pluginInjectionApi$d5.analytics) === null || _pluginInjectionApi$d6 === void 0 ? void 0 : _pluginInjectionApi$d6.actions.attachAnalyticsEvent(payload);
66
66
  }, [pluginInjectionApi]);
67
67
  var tableWidth = getTableContainerWidth(node);
68
68
  // 76 is currently an accepted padding value considering the spacing for resizer handle
@@ -11,10 +11,10 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
12
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
13
  import React from 'react';
14
- import { DOMSerializer } from 'prosemirror-model';
15
14
  import { getTableContainerWidth } from '@atlaskit/editor-common/node-width';
16
15
  import ReactNodeView from '@atlaskit/editor-common/react-node-view';
17
16
  import { WithPluginState } from '@atlaskit/editor-common/with-plugin-state';
17
+ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
18
18
  import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
19
19
  import { TableMap } from '@atlaskit/editor-tables/table-map';
20
20
  import { pluginConfig as getPluginConfig } from '../create-plugin-config';
@@ -1,9 +1,9 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import { DOMSerializer } from 'prosemirror-model';
5
4
  import uuid from 'uuid';
6
5
  import { getCellAttrs, getCellDomAttrs } from '@atlaskit/adf-schema';
6
+ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
7
7
  var DEFAULT_COL_SPAN = 1;
8
8
  var DEFAULT_ROW_SPAN = 1;
9
9
  var TableCellNodeView = /*#__PURE__*/function () {
@@ -1,8 +1,8 @@
1
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
1
2
  import { PluginKey
2
3
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
3
- } from 'prosemirror-state';
4
- import { DecorationSet } from 'prosemirror-view';
5
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
+ } from '@atlaskit/editor-prosemirror/state';
5
+ import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
7
  import { pluginKey as tablePluginKey } from '../plugin-key';
8
8
  import { pluginKey as tableWidthPluginKey } from '../table-width';
@@ -1,7 +1,7 @@
1
- import { chainCommands } from 'prosemirror-commands';
2
- import { keymap } from 'prosemirror-keymap';
3
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
2
  import * as keymaps from '@atlaskit/editor-common/keymaps';
3
+ import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
4
+ import { keymap } from '@atlaskit/editor-prosemirror/keymap';
5
5
  import { createTable, goToNextCell, moveCursorBackward, triggerUnlessTableHeader } from '../commands';
6
6
  import { addRowAroundSelection, deleteTableIfSelectedWithAnalytics, emptyMultipleCellsWithAnalytics } from '../commands-with-analytics';
7
7
  import { addColumnAfter, addColumnBefore } from '../commands/insert';
@@ -1,12 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- import { findParentDomRefOfType, findParentNodeOfType } from 'prosemirror-utils';
5
4
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
5
  import { insideTable } from '@atlaskit/editor-common/core-utils';
7
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
7
  import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenLayoutNodes } from '@atlaskit/editor-common/transforms';
9
8
  import { browser, closestElement } from '@atlaskit/editor-common/utils';
9
+ import { findParentDomRefOfType, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
11
  import { addBoldInEmptyHeaderCells, clearHoverSelection, setTableRef } from '../commands';
12
12
  import { transformSliceRemoveCellBackgroundColor, transformSliceToAddTableHeaders, transformSliceToRemoveColumnsWidths } from '../commands/misc';
@@ -1,2 +1,2 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  export var pluginKey = new PluginKey('tablePlugin');
@@ -3,9 +3,9 @@
3
3
  * https://github.com/ProseMirror/prosemirror/issues/934
4
4
  * We will remove this plugin when Webkit fix the problem itself.
5
5
  */
6
- import { PluginKey } from 'prosemirror-state';
7
- import { Decoration, DecorationSet } from 'prosemirror-view';
8
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
8
+ import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
9
9
  export var tableSafariDeleteCompositionTextIssueWorkaroundKey = new PluginKey('tableSafariDeleteCompositionTextIssueWorkaround');
10
10
  export var createPlugin = function createPlugin() {
11
11
  return new SafePlugin({
@@ -1,2 +1,2 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  export var pluginKey = new PluginKey('stickyHeadersPlugin');
@@ -16,12 +16,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
16
16
  * TODO: https://product-fabric.atlassian.net/browse/ED-12714
17
17
  *
18
18
  */
19
-
20
- import { PluginKey } from 'prosemirror-state';
21
19
  import rafSchedule from 'raf-schd';
22
20
  import { uuid } from '@atlaskit/adf-schema';
23
21
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
24
22
  import { stepHasSlice } from '@atlaskit/editor-common/utils';
23
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
25
24
  var pluginKey = new PluginKey('tableLocalIdPlugin');
26
25
  var getPluginState = function getPluginState(state) {
27
26
  return state && pluginKey.getState(state);
@@ -2,7 +2,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
5
-
6
5
  import { pluginFactory } from '@atlaskit/editor-common/utils';
7
6
  import { pluginKey } from './plugin-key';
8
7
  import reducer from './reducer';
@@ -1,2 +1,2 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  export var pluginKey = new PluginKey('tableFlexiColumnResizing');
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { DOMSerializer } from 'prosemirror-model';
3
2
  import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
4
3
  import { getFragmentBackingArray } from '@atlaskit/editor-common/utils';
4
+ import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
5
5
  import { TableMap } from '@atlaskit/editor-tables/table-map';
6
6
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
7
  export var generateColgroup = function generateColgroup(table) {
@@ -1,5 +1,5 @@
1
- import { findDomRefAtPos } from 'prosemirror-utils';
2
1
  import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
2
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
3
3
  import { TableMap } from '@atlaskit/editor-tables/table-map';
4
4
  import { contentWidth } from './content-width';
5
5
  import { unitToNumber } from './unit-to-number';
@@ -1,5 +1,5 @@
1
- import { keymap } from 'prosemirror-keymap';
2
1
  import { bindKeymapWithCommand, moveLeft, moveRight } from '@atlaskit/editor-common/keymaps';
2
+ import { keymap } from '@atlaskit/editor-prosemirror/keymap';
3
3
  import { arrowLeftFromTable, arrowRightFromTable } from '../commands/selection';
4
4
  export function tableSelectionKeymapPlugin(editorSelectionAPI) {
5
5
  var list = {};
@@ -8,10 +8,11 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
8
8
  * Has login to scan the document, add width value to table's width attribute when necessary
9
9
  * Also holds resizing state to hide / show table controls
10
10
  */
11
- import { PluginKey } from 'prosemirror-state';
12
- import { ReplaceStep } from 'prosemirror-transform';
11
+
13
12
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
14
13
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
14
+ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
15
+ import { ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
15
16
  import { akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
16
17
  export var pluginKey = new PluginKey('tableWidthPlugin');
17
18
  var createPlugin = function createPlugin(dispatch, fullWidthEnabled) {
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { findParentDomRefOfType } from 'prosemirror-utils';
4
3
  import { defineMessages } from 'react-intl-next';
5
4
  import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
6
5
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -8,6 +7,7 @@ import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/edito
8
7
  import commonMessages from '@atlaskit/editor-common/messages';
9
8
  import { cellBackgroundColorPalette, DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
10
9
  import { closestElement, getChildrenInfo as _getChildrenInfo, getNodeName, isReferencedSource } from '@atlaskit/editor-common/utils';
10
+ import { findParentDomRefOfType } from '@atlaskit/editor-prosemirror/utils';
11
11
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
12
12
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
13
13
  import { findCellRectClosestToPos, findTable, getSelectionRect, isSelectionType, splitCell } from '@atlaskit/editor-tables/utils';
@@ -2,8 +2,8 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- import { Selection } from 'prosemirror-state';
6
5
  import { AddColumnStep } from '@atlaskit/adf-schema/steps';
6
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
7
7
  import { TableMap } from '@atlaskit/editor-tables/table-map';
8
8
  import { findTable } from '@atlaskit/editor-tables/utils';
9
9
  import { splitCellsInColumns } from './split';
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- import { Selection } from 'prosemirror-state';
5
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { TableMap } from '@atlaskit/editor-tables/table-map';
7
7
  import { findTable } from '@atlaskit/editor-tables/utils';
8
8
  import { mergeEmptyColumns } from './merge';
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- import { Fragment } from 'prosemirror-model';
5
- import { Selection } from 'prosemirror-state';
4
+ import { Fragment } from '@atlaskit/editor-prosemirror/model';
5
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
7
  import { TableMap } from '@atlaskit/editor-tables/table-map';
8
8
  import { findTable, getSelectionRect } from '@atlaskit/editor-tables/utils';
@@ -1,6 +1,6 @@
1
- import { Fragment, Slice } from 'prosemirror-model';
2
- import { TextSelection } from 'prosemirror-state';
3
1
  import { ACTION_SUBJECT, EVENT_TYPE, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
2
+ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
3
+ import { TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { findTable, isTableSelected } from '@atlaskit/editor-tables/utils';
5
5
  import { getSelectedTableInfo } from '../utils';
6
6
  export var replaceSelectedTable = function replaceSelectedTable(state, content, inputMethod, editorAnalyticsAPI) {
@@ -1,12 +1,12 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { findDomRefAtPos } from 'prosemirror-utils';
5
4
  import { injectIntl } from 'react-intl-next';
6
5
  import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
7
6
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
8
7
  import { Popup } from '@atlaskit/editor-common/ui';
9
8
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
9
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { akEditorSmallZIndex } from '@atlaskit/editor-shared-styles';
11
11
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
12
12
  import { toggleContextualMenu } from '../../commands';
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import { findDomRefAtPos } from 'prosemirror-utils';
4
3
  import { Popup } from '@atlaskit/editor-common/ui';
4
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { akEditorFloatingDialogZIndex, akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
6
6
  import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
7
7
  import { getPluginState } from '../../pm-plugins/plugin-factory';
@@ -9,11 +9,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
10
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
11
  import React from 'react';
12
- import { findDomRefAtPos } from 'prosemirror-utils';
13
12
  import { injectIntl } from 'react-intl-next';
14
13
  import { ACTION, ACTION_SUBJECT, CONTENT_COMPONENT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
15
14
  import { Popup } from '@atlaskit/editor-common/ui';
16
15
  import { closestElement } from '@atlaskit/editor-common/utils';
16
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
17
17
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
18
18
  import { TableMap } from '@atlaskit/editor-tables/table-map';
19
19
  import { findTable } from '@atlaskit/editor-tables/utils';
@@ -11,11 +11,11 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11
11
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
12
  import React, { createRef } from 'react';
13
13
  import classnames from 'classnames';
14
- import { findDomRefAtPos } from 'prosemirror-utils';
15
14
  import { injectIntl } from 'react-intl-next';
16
15
  import commonMessages from '@atlaskit/editor-common/messages';
17
16
  import { Popup } from '@atlaskit/editor-common/ui';
18
17
  import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
18
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
19
19
  import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
20
20
  import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
21
21
  import { toggleTableLayoutWithAnalytics } from '../../commands-with-analytics';
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React, { Component } from 'react';
11
- import { Selection } from 'prosemirror-state';
11
+ import { Selection } from '@atlaskit/editor-prosemirror/state';
12
12
  import { isRowSelected } from '@atlaskit/editor-tables/utils';
13
13
  import { clearHoverSelection } from '../../../commands';
14
14
  import { TableCssClassName as ClassName } from '../../../types';
@@ -1,7 +1,7 @@
1
- import { NodeRange } from 'prosemirror-model';
1
+ import { NodeRange } from '@atlaskit/editor-prosemirror/model';
2
2
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
3
3
 
4
- import { findWrapping } from 'prosemirror-transform';
4
+ import { findWrapping } from '@atlaskit/editor-prosemirror/transform';
5
5
  import { findTable } from '@atlaskit/editor-tables/utils';
6
6
  var bail = function bail() {
7
7
  return {
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { findDomRefAtPos } from 'prosemirror-utils';
3
2
  import { maphElem } from '@atlaskit/editor-common/utils';
3
+ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
5
5
  import { TableMap } from '@atlaskit/editor-tables/table-map';
6
6
  import { findTable, getCellsInColumn, getSelectionRect, isColumnSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
@@ -1,8 +1,9 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import { nonNullable } from '@atlaskit/editor-common/utils';
3
+
2
4
  // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
3
5
 
4
- import { Decoration } from 'prosemirror-view';
5
- import { nonNullable } from '@atlaskit/editor-common/utils';
6
+ import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
7
  import { Rect, TableMap } from '@atlaskit/editor-tables/table-map';
7
8
  import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
8
9
  import { TableCssClassName as ClassName, TableDecorations } from '../types';
@@ -1,5 +1,5 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { hasParentNodeOfType } from 'prosemirror-utils';
2
+ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
3
  import { TableMap } from '@atlaskit/editor-tables/table-map';
4
4
  import { findTable } from '@atlaskit/editor-tables/utils';
5
5
  import { pluginKey } from '../pm-plugins/plugin-key';
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { Fragment, Slice } from 'prosemirror-model';
3
- import { flatten } from 'prosemirror-utils';
4
2
  import { flatmap, mapSlice } from '@atlaskit/editor-common/utils';
3
+ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
4
+ import { flatten } from '@atlaskit/editor-prosemirror/utils';
5
5
  import { getPluginState } from '../pm-plugins/plugin-factory';
6
6
 
7
7
  // lifts up the content of each cell, returning an array of nodes
@@ -1,8 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- import { safeInsert } from 'prosemirror-utils';
5
4
  import { parsePx } from '@atlaskit/editor-common/utils';
5
+ import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
6
6
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
7
7
  import { TableMap } from '@atlaskit/editor-tables/table-map';
8
8
  import { findTable, getSelectionRect, isRowSelected, isTableSelected } from '@atlaskit/editor-tables/utils';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,7 +1,7 @@
1
- import { Transaction } from 'prosemirror-state';
2
- import { EditorView } from 'prosemirror-view';
3
1
  import { Command } from '@atlaskit/editor-common/types';
4
2
  import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
3
+ import { Transaction } from '@atlaskit/editor-prosemirror/state';
4
+ import { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  export declare function addColumnAt(getEditorContainerWidth: GetEditorContainerWidth): (column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined) => (tr: Transaction) => Transaction;
6
6
  export declare const addColumnBefore: (getEditorContainerWidth: GetEditorContainerWidth) => Command;
7
7
  export declare const addColumnAfter: (getEditorContainerWidth: GetEditorContainerWidth) => Command;