@atlaskit/editor-plugin-table 23.4.2 → 24.0.0

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 (294) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/cjs/nodeviews/TableCell.js +4 -27
  3. package/dist/cjs/nodeviews/TableComponent.js +1 -1
  4. package/dist/cjs/nodeviews/rounded-table-edges.js +168 -0
  5. package/dist/cjs/nodeviews/table.js +16 -67
  6. package/dist/cjs/pm-plugins/table-resizing/utils/dom.js +16 -1
  7. package/dist/cjs/ui/TableFloatingControls/index.js +1 -17
  8. package/dist/cjs/ui/common-styles.js +1 -1
  9. package/dist/es2019/nodeviews/TableCell.js +4 -27
  10. package/dist/es2019/nodeviews/TableComponent.js +2 -2
  11. package/dist/es2019/nodeviews/rounded-table-edges.js +150 -0
  12. package/dist/es2019/nodeviews/table.js +14 -61
  13. package/dist/es2019/pm-plugins/table-resizing/utils/dom.js +15 -0
  14. package/dist/es2019/ui/TableFloatingControls/index.js +1 -17
  15. package/dist/es2019/ui/common-styles.js +14 -0
  16. package/dist/esm/nodeviews/TableCell.js +4 -27
  17. package/dist/esm/nodeviews/TableComponent.js +2 -2
  18. package/dist/esm/nodeviews/rounded-table-edges.js +161 -0
  19. package/dist/esm/nodeviews/table.js +16 -67
  20. package/dist/esm/pm-plugins/table-resizing/utils/dom.js +15 -0
  21. package/dist/esm/ui/TableFloatingControls/index.js +1 -17
  22. package/dist/esm/ui/common-styles.js +1 -1
  23. package/dist/types/nodeviews/TableCell.d.ts +0 -5
  24. package/dist/types/nodeviews/rounded-table-edges.d.ts +26 -0
  25. package/dist/types/nodeviews/table.d.ts +1 -2
  26. package/dist/types/pm-plugins/table-resizing/utils/dom.d.ts +4 -0
  27. package/dist/types/ui/FloatingContextualButton/index.d.ts +0 -1
  28. package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
  29. package/package.json +38 -46
  30. package/table-plugin/package.json +1 -8
  31. package/table-plugin-type/package.json +1 -8
  32. package/types/package.json +1 -8
  33. package/ui/common-styles/package.json +1 -8
  34. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -125
  35. package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -52
  36. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -124
  37. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -110
  38. package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -47
  39. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -101
  40. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -116
  41. package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -45
  42. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -115
  43. package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
  44. package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
  45. package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
  46. package/dist/types-ts4.5/entry-points/table-plugin-type.d.ts +0 -1
  47. package/dist/types-ts4.5/entry-points/table-plugin.d.ts +0 -6
  48. package/dist/types-ts4.5/entry-points/types.d.ts +0 -2
  49. package/dist/types-ts4.5/entry-points/ui-common-styles.d.ts +0 -1
  50. package/dist/types-ts4.5/index.d.ts +0 -7
  51. package/dist/types-ts4.5/nodeviews/ExternalDropTargets.d.ts +0 -9
  52. package/dist/types-ts4.5/nodeviews/OverflowShadowsObserver.d.ts +0 -26
  53. package/dist/types-ts4.5/nodeviews/TableCell.d.ts +0 -24
  54. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +0 -48
  55. package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +0 -30
  56. package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +0 -48
  57. package/dist/types-ts4.5/nodeviews/TableNodeViewBase.d.ts +0 -18
  58. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +0 -36
  59. package/dist/types-ts4.5/nodeviews/TableRow.d.ts +0 -68
  60. package/dist/types-ts4.5/nodeviews/TableRowNativeStickyWithFallback.d.ts +0 -89
  61. package/dist/types-ts4.5/nodeviews/TableStickyScrollbar.d.ts +0 -23
  62. package/dist/types-ts4.5/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
  63. package/dist/types-ts4.5/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
  64. package/dist/types-ts4.5/nodeviews/table-container-styles.d.ts +0 -5
  65. package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +0 -30
  66. package/dist/types-ts4.5/nodeviews/table.d.ts +0 -48
  67. package/dist/types-ts4.5/nodeviews/toDOM.d.ts +0 -17
  68. package/dist/types-ts4.5/nodeviews/types.d.ts +0 -33
  69. package/dist/types-ts4.5/nodeviews/update-overflow-shadows.d.ts +0 -1
  70. package/dist/types-ts4.5/pm-plugins/active-cell-highlight/plugin.d.ts +0 -11
  71. package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +0 -18
  72. package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +0 -6
  73. package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +0 -8
  74. package/dist/types-ts4.5/pm-plugins/analytics/plugin-key.d.ts +0 -3
  75. package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +0 -5
  76. package/dist/types-ts4.5/pm-plugins/analytics/reducer.d.ts +0 -3
  77. package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +0 -11
  78. package/dist/types-ts4.5/pm-plugins/analytics/utils/moved-event.d.ts +0 -6
  79. package/dist/types-ts4.5/pm-plugins/commands/active-table-menu.d.ts +0 -6
  80. package/dist/types-ts4.5/pm-plugins/commands/clear.d.ts +0 -2
  81. package/dist/types-ts4.5/pm-plugins/commands/collapse.d.ts +0 -2
  82. package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +0 -34
  83. package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +0 -33
  84. package/dist/types-ts4.5/pm-plugins/commands/delete.d.ts +0 -4
  85. package/dist/types-ts4.5/pm-plugins/commands/display-mode.d.ts +0 -2
  86. package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +0 -11
  87. package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +0 -11
  88. package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +0 -10
  89. package/dist/types-ts4.5/pm-plugins/commands/insert.d.ts +0 -54
  90. package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +0 -47
  91. package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +0 -3
  92. package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +0 -10
  93. package/dist/types-ts4.5/pm-plugins/commands/sort.d.ts +0 -3
  94. package/dist/types-ts4.5/pm-plugins/commands/split-cell.d.ts +0 -8
  95. package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +0 -12
  96. package/dist/types-ts4.5/pm-plugins/create-plugin-config.d.ts +0 -2
  97. package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +0 -8
  98. package/dist/types-ts4.5/pm-plugins/decorations/utils/column-controls.d.ts +0 -4
  99. package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +0 -5
  100. package/dist/types-ts4.5/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
  101. package/dist/types-ts4.5/pm-plugins/decorations/utils/types.d.ts +0 -7
  102. package/dist/types-ts4.5/pm-plugins/default-table-selection.d.ts +0 -16
  103. package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +0 -28
  104. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +0 -13
  105. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +0 -10
  106. package/dist/types-ts4.5/pm-plugins/drag-and-drop/consts.d.ts +0 -6
  107. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +0 -8
  108. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-key.d.ts +0 -3
  109. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +0 -7
  110. package/dist/types-ts4.5/pm-plugins/drag-and-drop/reducer.d.ts +0 -4
  111. package/dist/types-ts4.5/pm-plugins/drag-and-drop/types.d.ts +0 -14
  112. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +0 -8
  113. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +0 -3
  114. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/monitor.d.ts +0 -3
  115. package/dist/types-ts4.5/pm-plugins/editor-content-area-height.d.ts +0 -12
  116. package/dist/types-ts4.5/pm-plugins/handlers.d.ts +0 -3
  117. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -8
  118. package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -8
  119. package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
  120. package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
  121. package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -3
  122. package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -13
  123. package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +0 -4
  124. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
  125. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +0 -7
  126. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +0 -4
  127. package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +0 -17
  128. package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +0 -2
  129. package/dist/types-ts4.5/pm-plugins/table-analytics.d.ts +0 -11
  130. package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +0 -5
  131. package/dist/types-ts4.5/pm-plugins/table-local-id.d.ts +0 -10
  132. package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +0 -20
  133. package/dist/types-ts4.5/pm-plugins/table-resizing/event-handlers.d.ts +0 -6
  134. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +0 -7
  135. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
  136. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin.d.ts +0 -7
  137. package/dist/types-ts4.5/pm-plugins/table-resizing/reducer.d.ts +0 -3
  138. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -26
  139. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
  140. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +0 -9
  141. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
  142. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/dom.d.ts +0 -11
  143. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +0 -69
  144. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -3
  145. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -8
  146. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -28
  147. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -20
  148. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/types.d.ts +0 -23
  149. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
  150. package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +0 -4
  151. package/dist/types-ts4.5/pm-plugins/table-size-selector.d.ts +0 -10
  152. package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +0 -9
  153. package/dist/types-ts4.5/pm-plugins/table-width.d.ts +0 -17
  154. package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +0 -25
  155. package/dist/types-ts4.5/pm-plugins/transforms/content-mode.d.ts +0 -9
  156. package/dist/types-ts4.5/pm-plugins/transforms/delete-columns.d.ts +0 -5
  157. package/dist/types-ts4.5/pm-plugins/transforms/delete-rows.d.ts +0 -3
  158. package/dist/types-ts4.5/pm-plugins/transforms/fix-tables.d.ts +0 -9
  159. package/dist/types-ts4.5/pm-plugins/transforms/merge.d.ts +0 -7
  160. package/dist/types-ts4.5/pm-plugins/transforms/replace-table.d.ts +0 -4
  161. package/dist/types-ts4.5/pm-plugins/transforms/split.d.ts +0 -9
  162. package/dist/types-ts4.5/pm-plugins/transforms/table-transform-utils.d.ts +0 -11
  163. package/dist/types-ts4.5/pm-plugins/utils/alignment.d.ts +0 -14
  164. package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +0 -49
  165. package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +0 -31
  166. package/dist/types-ts4.5/pm-plugins/utils/column-controls.d.ts +0 -11
  167. package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +0 -15
  168. package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +0 -19
  169. package/dist/types-ts4.5/pm-plugins/utils/dom.d.ts +0 -42
  170. package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +0 -19
  171. package/dist/types-ts4.5/pm-plugins/utils/get-allow-add-column-custom-step.d.ts +0 -2
  172. package/dist/types-ts4.5/pm-plugins/utils/guidelines.d.ts +0 -5
  173. package/dist/types-ts4.5/pm-plugins/utils/merged-cells.d.ts +0 -25
  174. package/dist/types-ts4.5/pm-plugins/utils/nodes.d.ts +0 -30
  175. package/dist/types-ts4.5/pm-plugins/utils/paste.d.ts +0 -16
  176. package/dist/types-ts4.5/pm-plugins/utils/row-controls.d.ts +0 -15
  177. package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +0 -3
  178. package/dist/types-ts4.5/pm-plugins/utils/snapping.d.ts +0 -17
  179. package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +0 -3
  180. package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +0 -5
  181. package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.d.ts +0 -8
  182. package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.d.ts +0 -6
  183. package/dist/types-ts4.5/pm-plugins/utils/tableMode/is-content-mode-supported.d.ts +0 -7
  184. package/dist/types-ts4.5/pm-plugins/utils/tableMode/measure-table-with-auto-layout.d.ts +0 -2
  185. package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/constants.d.ts +0 -4
  186. package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.d.ts +0 -8
  187. package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/run-smart-adjust.d.ts +0 -7
  188. package/dist/types-ts4.5/pm-plugins/utils/update-plugin-state-decorations.d.ts +0 -4
  189. package/dist/types-ts4.5/pm-plugins/view-mode-sort/consts.d.ts +0 -3
  190. package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +0 -21
  191. package/dist/types-ts4.5/pm-plugins/view-mode-sort/plugin-key.d.ts +0 -3
  192. package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +0 -22
  193. package/dist/types-ts4.5/pm-plugins/view-mode-sort/utils.d.ts +0 -11
  194. package/dist/types-ts4.5/tablePlugin.d.ts +0 -7
  195. package/dist/types-ts4.5/tablePluginType.d.ts +0 -81
  196. package/dist/types-ts4.5/types/index.d.ts +0 -544
  197. package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +0 -12
  198. package/dist/types-ts4.5/ui/ContentComponent.d.ts +0 -18
  199. package/dist/types-ts4.5/ui/DragHandle/HandleIconComponent.d.ts +0 -8
  200. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +0 -29
  201. package/dist/types-ts4.5/ui/DragPreview/index.d.ts +0 -7
  202. package/dist/types-ts4.5/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +0 -13
  203. package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +0 -22
  204. package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +0 -22
  205. package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +0 -3
  206. package/dist/types-ts4.5/ui/FloatingContextualMenu/CellMenuPopup.d.ts +0 -14
  207. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -63
  208. package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +0 -24
  209. package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +0 -3
  210. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -14
  211. package/dist/types-ts4.5/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
  212. package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +0 -55
  213. package/dist/types-ts4.5/ui/FloatingDeleteButton/types.d.ts +0 -2
  214. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +0 -41
  215. package/dist/types-ts4.5/ui/FloatingDragMenu/DropdownMenu.d.ts +0 -36
  216. package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +0 -36
  217. package/dist/types-ts4.5/ui/FloatingDragMenu/styles.d.ts +0 -4
  218. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +0 -18
  219. package/dist/types-ts4.5/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -4
  220. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +0 -40
  221. package/dist/types-ts4.5/ui/FloatingTableMenu/index.d.ts +0 -23
  222. package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +0 -16
  223. package/dist/types-ts4.5/ui/SizeSelector/index.d.ts +0 -9
  224. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +0 -24
  225. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +0 -10
  226. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +0 -11
  227. package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +0 -33
  228. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
  229. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +0 -15
  230. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/types.d.ts +0 -11
  231. package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
  232. package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -22
  233. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
  234. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +0 -25
  235. package/dist/types-ts4.5/ui/TableFloatingControls/RowDropTarget/index.d.ts +0 -8
  236. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +0 -37
  237. package/dist/types-ts4.5/ui/TableFullWidthLabel/index.d.ts +0 -2
  238. package/dist/types-ts4.5/ui/TableMenu/cell/getCellMenuComponents.d.ts +0 -3
  239. package/dist/types-ts4.5/ui/TableMenu/cell/items/MergeCellsItem.d.ts +0 -3
  240. package/dist/types-ts4.5/ui/TableMenu/cell/items/SplitCellItem.d.ts +0 -3
  241. package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +0 -12
  242. package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignNestedMenu.d.ts +0 -4
  243. package/dist/types-ts4.5/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +0 -3
  244. package/dist/types-ts4.5/ui/TableMenu/cell/keys.d.ts +0 -16
  245. package/dist/types-ts4.5/ui/TableMenu/column/getColumnMenuComponents.d.ts +0 -3
  246. package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnLeftItem.d.ts +0 -3
  247. package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnRightItem.d.ts +0 -3
  248. package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnBackgroundSection.d.ts +0 -11
  249. package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnToggleSection.d.ts +0 -10
  250. package/dist/types-ts4.5/ui/TableMenu/column/items/DeleteColumnItem.d.ts +0 -3
  251. package/dist/types-ts4.5/ui/TableMenu/column/items/DistributeColumnsItem.d.ts +0 -3
  252. package/dist/types-ts4.5/ui/TableMenu/column/items/HeaderColumnToggleItem.d.ts +0 -16
  253. package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnLeftItem.d.ts +0 -3
  254. package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnRightItem.d.ts +0 -3
  255. package/dist/types-ts4.5/ui/TableMenu/column/items/SortDecreasingItem.d.ts +0 -3
  256. package/dist/types-ts4.5/ui/TableMenu/column/items/SortIncreasingItem.d.ts +0 -3
  257. package/dist/types-ts4.5/ui/TableMenu/column/keys.d.ts +0 -22
  258. package/dist/types-ts4.5/ui/TableMenu/row/getRowMenuComponents.d.ts +0 -3
  259. package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowAboveItem.d.ts +0 -3
  260. package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowBelowItem.d.ts +0 -3
  261. package/dist/types-ts4.5/ui/TableMenu/row/items/DeleteRowItem.d.ts +0 -3
  262. package/dist/types-ts4.5/ui/TableMenu/row/items/HeaderRowToggleItem.d.ts +0 -3
  263. package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowDownItem.d.ts +0 -3
  264. package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowUpItem.d.ts +0 -3
  265. package/dist/types-ts4.5/ui/TableMenu/row/items/NumberedRowsToggleItem.d.ts +0 -3
  266. package/dist/types-ts4.5/ui/TableMenu/row/keys.d.ts +0 -18
  267. package/dist/types-ts4.5/ui/TableMenu/shared/TableMenu.d.ts +0 -11
  268. package/dist/types-ts4.5/ui/TableMenu/shared/TableMenuContext.d.ts +0 -16
  269. package/dist/types-ts4.5/ui/TableMenu/shared/consts.d.ts +0 -4
  270. package/dist/types-ts4.5/ui/TableMenu/shared/getSharedItems.d.ts +0 -3
  271. package/dist/types-ts4.5/ui/TableMenu/shared/getTableMenuComponents.d.ts +0 -3
  272. package/dist/types-ts4.5/ui/TableMenu/shared/items/BackgroundColorItem.d.ts +0 -7
  273. package/dist/types-ts4.5/ui/TableMenu/shared/items/ClearCellsItem.d.ts +0 -3
  274. package/dist/types-ts4.5/ui/TableMenu/shared/keys.d.ts +0 -3
  275. package/dist/types-ts4.5/ui/TableMenu/shared/types.d.ts +0 -4
  276. package/dist/types-ts4.5/ui/common-styles.d.ts +0 -14
  277. package/dist/types-ts4.5/ui/consts.d.ts +0 -69
  278. package/dist/types-ts4.5/ui/event-handlers.d.ts +0 -20
  279. package/dist/types-ts4.5/ui/global-styles.d.ts +0 -11
  280. package/dist/types-ts4.5/ui/hooks/useInternalTablePluginStateSelector.d.ts +0 -22
  281. package/dist/types-ts4.5/ui/icons/AddColLeftIcon.d.ts +0 -2
  282. package/dist/types-ts4.5/ui/icons/AddColRightIcon.d.ts +0 -2
  283. package/dist/types-ts4.5/ui/icons/AddRowAboveIcon.d.ts +0 -2
  284. package/dist/types-ts4.5/ui/icons/AddRowBelowIcon.d.ts +0 -2
  285. package/dist/types-ts4.5/ui/icons/DragHandleDisabledIcon.d.ts +0 -6
  286. package/dist/types-ts4.5/ui/icons/DragHandleIcon.d.ts +0 -2
  287. package/dist/types-ts4.5/ui/icons/DragInMotionIcon.d.ts +0 -6
  288. package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +0 -2
  289. package/dist/types-ts4.5/ui/icons/MinimisedHandle.d.ts +0 -2
  290. package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +0 -10
  291. package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +0 -2
  292. package/dist/types-ts4.5/ui/rounded-table-styles.d.ts +0 -2
  293. package/dist/types-ts4.5/ui/toolbar.d.ts +0 -11
  294. package/dist/types-ts4.5/ui/ui-styles.d.ts +0 -21
@@ -1,68 +0,0 @@
1
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
4
- import { type PluginInjectionAPI } from '../types';
5
- import TableNodeView from './TableNodeViewBase';
6
- export default class TableRow extends TableNodeView<HTMLTableRowElement> implements NodeView {
7
- private nodeVisibilityObserverCleanupFn?;
8
- cleanup: () => void;
9
- constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, api?: PluginInjectionAPI);
10
- subscribeWhenRowVisible(): void;
11
- /**
12
- * Variables
13
- */
14
- private isHeaderRow;
15
- private isInNestedTable;
16
- private isStickyHeaderEnabled;
17
- private editorScrollableElement?;
18
- private colControlsOffset;
19
- private focused;
20
- private topPosEditorElement;
21
- private isSticky;
22
- private intersectionObserver?;
23
- private resizeObserver?;
24
- private tableContainerObserver?;
25
- private sentinels;
26
- private sentinelData;
27
- private stickyRowHeight?;
28
- private listening;
29
- private padding;
30
- private top;
31
- /**
32
- * Methods: Nodeview Lifecycle
33
- */
34
- update(node: PMNode, ..._args: any[]): boolean;
35
- destroy(): void;
36
- ignoreMutation(mutationRecord: MutationRecord | {
37
- target: Node;
38
- type: 'selection';
39
- }): boolean;
40
- /**
41
- * Methods
42
- */
43
- private headerRowMouseScrollEnd;
44
- private headerRowMouseScroll;
45
- private subscribe;
46
- private unsubscribe;
47
- private initObservers;
48
- private createResizeObserver;
49
- private createIntersectionObserver;
50
- private refreshStickyState;
51
- private shouldSticky;
52
- private isHeaderSticky;
53
- private onTablePluginState;
54
- private updateStickyHeaderWidth;
55
- /**
56
- * Manually refire the intersection observers.
57
- * Useful when the header may have detached from the table.
58
- */
59
- private refireIntersectionObservers;
60
- private makeHeaderRowSticky;
61
- private makeRowHeaderNotSticky;
62
- private getWrapperoffset;
63
- private getWrapperRefTop;
64
- private getScrolledTableTop;
65
- private getCurrentTableTop;
66
- private emitOn;
67
- private emitOff;
68
- }
@@ -1,89 +0,0 @@
1
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
4
- import { type PluginInjectionAPI } from '../types';
5
- import TableNodeView from './TableNodeViewBase';
6
- export default class TableRowNativeStickyWithFallback extends TableNodeView<HTMLTableRowElement> implements NodeView {
7
- private nodeVisibilityObserverCleanupFn?;
8
- cleanup: () => void;
9
- constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, api?: PluginInjectionAPI);
10
- subscribeWhenRowVisible(): void;
11
- /**
12
- * Variables
13
- */
14
- private isHeaderRow;
15
- private isInNestedTable;
16
- private isStickyHeaderEnabled;
17
- private editorScrollableElement?;
18
- private colControlsOffset;
19
- private focused;
20
- private topPosEditorElement;
21
- private isLegacySticky;
22
- private intersectionObserver?;
23
- private resizeObserver?;
24
- private tableContainerObserver?;
25
- private sentinels;
26
- private sentinelData;
27
- private stickyRowHeight?;
28
- private listening;
29
- private padding;
30
- private top;
31
- private api?;
32
- /** Native sticky header variables */
33
- private overflowObserver?;
34
- private stickyStateObserver?;
35
- private hasScrolledSinceLoad;
36
- private scrollListener?;
37
- private overflowObserverEntries?;
38
- private isNativeSticky?;
39
- private disableNativeSticky;
40
- private onEditorContentAreaHeightChange?;
41
- private editorContentAreaHeight?;
42
- private nodeVisibilityObserver?;
43
- /**
44
- * Methods: Nodeview Lifecycle
45
- */
46
- update(node: PMNode, ..._args: any[]): boolean;
47
- destroy(): void;
48
- ignoreMutation(mutationRecord: MutationRecord | {
49
- target: Node;
50
- type: 'selection';
51
- }): boolean;
52
- /**
53
- * Methods
54
- */
55
- private headerRowMouseScrollEnd;
56
- private headerRowMouseScroll;
57
- private subscribe;
58
- private unsubscribe;
59
- private initOverflowObserver;
60
- /**
61
- * This observer is used to track the 'stuck' state of the header row.
62
- * This roughly mimics `(at)container scroll-state(stuck: top)` in CSS,
63
- * but with full browser support.
64
- */
65
- private initStickyStateObserver;
66
- private initObservers;
67
- private initNodeVisibilityObserver;
68
- private createResizeObserver;
69
- private createIntersectionObserver;
70
- private refreshLegacyStickyState;
71
- private shouldSticky;
72
- private isHeaderSticky;
73
- private onTablePluginState;
74
- private updateStickyHeaderWidth;
75
- /**
76
- * Manually refire the intersection observers.
77
- * Useful when the header may have detached from the table.
78
- */
79
- private refireIntersectionObservers;
80
- private toggleDisableNativeSticky;
81
- private makeHeaderRowLegacySticky;
82
- private makeRowHeaderNotLegacySticky;
83
- private getWrapperoffset;
84
- private getWrapperRefTop;
85
- private getScrolledTableTop;
86
- private getCurrentTableTop;
87
- private emitOn;
88
- private emitOff;
89
- }
@@ -1,23 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare class TableStickyScrollbar {
3
- private wrapper;
4
- private view;
5
- private editorScrollableElement?;
6
- private intersectionObserver?;
7
- private stickyScrollbarContainerElement?;
8
- private sentinels;
9
- private topSentinelState?;
10
- private bottomSentinelState?;
11
- constructor(wrapper: HTMLDivElement, view: EditorView);
12
- dispose(): void;
13
- scrollLeft(left: number): void;
14
- private init;
15
- private createIntersectionObserver;
16
- private deleteIntersectionObserver;
17
- private sentinelBottomCallback;
18
- private sentinelTopCallback;
19
- private toggle;
20
- private hide;
21
- private show;
22
- private handleScroll;
23
- }
@@ -1,9 +0,0 @@
1
- import { OverridableMock } from './OverridableMock';
2
- export declare class OverflowShadowsObserver extends OverridableMock {
3
- leftShadowSentinel: HTMLElement | null;
4
- rightShadowSentinel: HTMLElement | null;
5
- constructor(...inputs: any[]);
6
- observeShadowSentinels: any;
7
- updateStickyShadows: any;
8
- dispose: any;
9
- }
@@ -1,9 +0,0 @@
1
- export declare abstract class OverridableMock {
2
- static mockOverrides: {
3
- [key: string]: any;
4
- };
5
- constructor(...inputs: any[]);
6
- getMock(key: string): any;
7
- static setMock(thisKey: string, value: any): void;
8
- static resetMocks(): void;
9
- }
@@ -1,5 +0,0 @@
1
- import type { AlignmentOptions } from '../types';
2
- export declare const getAlignmentStyle: (alignment: AlignmentOptions) => {
3
- display: string;
4
- justifyContent: string;
5
- };
@@ -1,30 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
7
- import type { PluginInjectionAPI } from '../types';
8
- import TableCell from './TableCell';
9
- import TableRow from './TableRow';
10
- import TableRowNativeStickyWithFallback from './TableRowNativeStickyWithFallback';
11
- type TableViewOptions = {
12
- allowFixedColumnWidthOption?: boolean;
13
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
14
- eventDispatcher: EventDispatcher;
15
- getEditorContainerWidth: GetEditorContainerWidth;
16
- getEditorFeatureFlags: GetEditorFeatureFlags;
17
- isChromelessEditor?: boolean;
18
- isCommentEditor?: boolean;
19
- pluginInjectionApi?: PluginInjectionAPI;
20
- portalProviderAPI: PortalProviderAPI;
21
- };
22
- export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => NodeView;
23
- type TableCellViewOptions = {
24
- eventDispatcher: EventDispatcher;
25
- pluginInjectionApi?: PluginInjectionAPI;
26
- };
27
- export declare const tableCellView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
28
- export declare const tableHeaderView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
29
- export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableRowNativeStickyWithFallback | TableRow;
30
- export {};
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
4
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
5
- import ReactNodeView from '@atlaskit/editor-common/react-node-view';
6
- import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
7
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
8
- import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
9
- import type { PluginInjectionAPI } from '../types';
10
- import type { Props, TableOptions } from './types';
11
- type ForwardRef = (node: HTMLElement | null) => void;
12
- export default class TableView extends ReactNodeView<Props> {
13
- private table;
14
- private renderedDOM?;
15
- private resizeObserver?;
16
- private roundedTableEdgeRefreshHandle;
17
- eventDispatcher?: EventDispatcher;
18
- getPos: getPosHandlerNode;
19
- options: TableOptions | undefined;
20
- getEditorFeatureFlags: GetEditorFeatureFlags;
21
- constructor(props: Props);
22
- getContentDOM(): {
23
- contentDOM?: HTMLElement;
24
- dom: HTMLElement;
25
- };
26
- /**
27
- * Handles moving the table from ProseMirror's DOM structure into a React-rendered table node.
28
- * Temporarily disables mutation observers (except for selection changes) during the move,
29
- * preserves selection state, and restores it afterwards if mutations occurred and cursor
30
- * wasn't at start of node. This prevents duplicate tables and maintains editor state during
31
- * the DOM manipulation.
32
- */
33
- private _handleTableRef;
34
- setDomAttrs(node: PmNode): void;
35
- getNode: () => PmNode;
36
- private scheduleRoundedTableEdgeRefresh;
37
- update(node: PmNode, decorations: ReadonlyArray<Decoration>, innerDecorations?: DecorationSource, validUpdate?: (currentNode: PmNode, newNode: PmNode) => boolean): boolean;
38
- render(props: Props, forwardRef: ForwardRef): React.JSX.Element;
39
- private hasHoveredRows;
40
- viewShouldUpdate(nextNode: PmNode): boolean;
41
- ignoreMutation(mutation: MutationRecord | {
42
- target: Node;
43
- type: 'selection';
44
- }): boolean;
45
- destroy(): void;
46
- }
47
- export declare const createTableView: (node: PmNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, dispatchAnalyticsEvent: DispatchAnalyticsEvent, pluginInjectionApi?: PluginInjectionAPI, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => NodeView;
48
- export {};
@@ -1,17 +0,0 @@
1
- import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
2
- import type { DOMOutputSpec, NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- type Config = {
4
- allowColumnResizing: boolean;
5
- getEditorContainerWidth: GetEditorContainerWidth;
6
- isChromelessEditor?: boolean;
7
- isCommentEditor?: boolean;
8
- isNested?: boolean;
9
- isNestingSupported?: boolean;
10
- isTableScalingEnabled?: boolean;
11
- shouldUseIncreasedScalingPercent?: boolean;
12
- tableResizingEnabled: boolean;
13
- };
14
- export declare const tableNodeSpecWithFixedToDOM: (config: Config) => NodeSpec & {
15
- toDOM: (node: PMNode) => DOMOutputSpec;
16
- };
17
- export {};
@@ -1,33 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { PluginInjectionAPI } from '../types';
8
- export type TableOptions = {
9
- isChromelessEditor?: boolean;
10
- isCommentEditor?: boolean;
11
- isFullWidthModeEnabled?: boolean;
12
- isTableScalingEnabled?: boolean;
13
- shouldUseIncreasedScalingPercent?: boolean;
14
- wasFullWidthModeEnabled?: boolean;
15
- };
16
- export interface Props {
17
- allowColumnResizing?: boolean;
18
- allowControls?: boolean;
19
- allowFixedColumnWidthOption?: boolean;
20
- allowTableAlignment?: boolean;
21
- allowTableResizing?: boolean;
22
- cellMinWidth?: number;
23
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
24
- eventDispatcher: EventDispatcher;
25
- getEditorContainerWidth: GetEditorContainerWidth;
26
- getEditorFeatureFlags: GetEditorFeatureFlags;
27
- getPos: () => number | undefined;
28
- node: PmNode;
29
- options?: TableOptions;
30
- pluginInjectionApi?: PluginInjectionAPI;
31
- portalProviderAPI: PortalProviderAPI;
32
- view: EditorView;
33
- }
@@ -1 +0,0 @@
1
- export declare const updateShadowListForStickyStyles: (heightStyle: string, shadows: HTMLCollection) => void;
@@ -1,11 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- interface ActiveCellHighlightState {
5
- /** Position of the currently highlighted cell, or -1 if none */
6
- cellPos: number;
7
- decorationSet: DecorationSet;
8
- }
9
- export declare const activeCellHighlightPluginKey: PluginKey<ActiveCellHighlightState>;
10
- export declare const createPlugin: () => SafePlugin<ActiveCellHighlightState>;
11
- export {};
@@ -1,18 +0,0 @@
1
- import type { RowOrColumnMovedState } from './types';
2
- export declare enum AnalyticPluginTypes {
3
- UpdateOverflowTriggerNameAction = 0,
4
- UpdateRowOrColumnMovedAction = 1,
5
- RemoveRowOrColumnMovedAction = 2,
6
- RemoveOverFlowTriggerNameAction = 3,
7
- UpdateRowOrColumnMovedAndOverflowTrigger = 4
8
- }
9
- type UpdateRowOrColumnMovedAction = {
10
- data: RowOrColumnMovedState;
11
- type: AnalyticPluginTypes.UpdateRowOrColumnMovedAction;
12
- };
13
- type RemoveRowOrColumnMovedAction = {
14
- data: undefined;
15
- type: AnalyticPluginTypes.RemoveRowOrColumnMovedAction;
16
- };
17
- export type AnalyticPluginAction = UpdateRowOrColumnMovedAction | RemoveRowOrColumnMovedAction;
18
- export {};
@@ -1,6 +0,0 @@
1
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { ActionType, RowOrColumnMovedState } from './types';
3
- import type { Command } from '@atlaskit/editor-common/types';
4
- export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => Command;
5
- export declare const resetRowOrColumnMovedTransform: () => (tr: Transaction) => Transaction;
6
- export declare const updateRowOrColumnMovedTransform: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => (state: EditorState, tr: Transaction) => Transaction;
@@ -1,8 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { AnalyticPluginAction } from './actions';
5
- import type { AnalyticPluginState } from './types';
6
- export declare const createPluginState: (dispatch: Dispatch, initialState: AnalyticPluginState | ((state: EditorState) => AnalyticPluginState)) => SafeStateField<AnalyticPluginState>;
7
- export declare const createCommand: <A = AnalyticPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
8
- export declare const getPluginState: (state: EditorState) => AnalyticPluginState;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { AnalyticPluginState } from './types';
3
- export declare const pluginKey: PluginKey<AnalyticPluginState>;
@@ -1,5 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- import { type AnalyticPluginState } from './types';
5
- export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin<AnalyticPluginState>;
@@ -1,3 +0,0 @@
1
- import type { AnalyticPluginAction } from './actions';
2
- import type { AnalyticPluginState } from './types';
3
- export declare const reducer: (state: AnalyticPluginState, action: AnalyticPluginAction) => AnalyticPluginState;
@@ -1,11 +0,0 @@
1
- export type ActionType = 'none' | 'addRowOrColumn' | 'copyOrCut' | 'pasted';
2
- export type RowOrColumnMovedState = {
3
- currentActions: Array<ActionType>;
4
- /** used to confirm if same number of cells was copied and pasted */
5
- numberOfCells?: number;
6
- type?: 'row' | 'column';
7
- };
8
- export type AnalyticPluginState = {
9
- rowOrColumnMoved: RowOrColumnMovedState;
10
- };
11
- export declare const defaultState: AnalyticPluginState;
@@ -1,6 +0,0 @@
1
- import type { ActionType, RowOrColumnMovedState } from '../types';
2
- export declare const getMovedPayload: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType, prevState: RowOrColumnMovedState) => RowOrColumnMovedState | {
3
- currentActions: string[];
4
- numberOfCells: number | undefined;
5
- type: "row" | "column" | undefined;
6
- };
@@ -1,6 +0,0 @@
1
- import type { EditorCommand } from '@atlaskit/editor-common/types';
2
- import type { ActiveTableMenu, PluginInjectionAPI } from '../../types';
3
- export declare const closeActiveTableMenu: (api?: PluginInjectionAPI | null) => EditorCommand;
4
- export declare const toggleActiveTableMenu: (activeTableMenu: Exclude<ActiveTableMenu, {
5
- type: "none";
6
- }>, currentActiveTableMenu: ActiveTableMenu | undefined, api?: PluginInjectionAPI | null) => EditorCommand;
@@ -1,2 +0,0 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
2
- export declare const clearMultipleCells: (targetCellPosition?: number) => Command;
@@ -1,2 +0,0 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
2
- export declare const wrapTableInExpand: Command;
@@ -1,34 +0,0 @@
1
- import type { IntlShape } from 'react-intl/src/types';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
- import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
4
- import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
5
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
6
- import type { Direction } from '@atlaskit/editor-tables/types';
7
- import type { PluginInjectionAPI } from '../../types';
8
- export declare const initiateKeyboardColumnResizing: ({ ariaNotify, getIntl, nodeViewPortalProviderAPI, }: {
9
- ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
10
- getIntl?: () => IntlShape;
11
- nodeViewPortalProviderAPI: PortalProviderAPI;
12
- }) => Command;
13
- export declare const activateNextResizeArea: ({ direction, ariaNotify, getIntl, nodeViewPortalProviderAPI, }: {
14
- ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
15
- direction: Direction;
16
- getIntl?: () => IntlShape;
17
- nodeViewPortalProviderAPI: PortalProviderAPI;
18
- }) => Command;
19
- export declare const changeColumnWidthByStep: ({ stepSize, getEditorContainerWidth, isTableScalingEnabled, isTableFixedColumnWidthsOptionEnabled, isCommentEditor, ariaNotify, api, getIntl, }: {
20
- api: PluginInjectionAPI | undefined | null;
21
- ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
22
- getEditorContainerWidth: GetEditorContainerWidth;
23
- getIntl?: () => IntlShape;
24
- isCommentEditor: boolean;
25
- isTableFixedColumnWidthsOptionEnabled: boolean;
26
- isTableScalingEnabled: boolean;
27
- originalTr?: Transaction;
28
- stepSize: number;
29
- }) => Command;
30
- export declare const stopKeyboardColumnResizing: ({ ariaNotify, getIntl, originalTr, }: {
31
- ariaNotify?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
32
- getIntl?: () => IntlShape;
33
- originalTr?: Transaction;
34
- }) => Command;
@@ -1,33 +0,0 @@
1
- import type { IntlShape } from 'react-intl/src/types';
2
- import type { TableLayout } from '@atlaskit/adf-schema';
3
- import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
4
- import type { CHANGE_ALIGNMENT_REASON, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
- import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
7
- import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
8
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
9
- import type { Rect } from '@atlaskit/editor-tables/table-map';
10
- import type { AlignmentOptions, InsertRowMethods, InsertRowOptions, PluginInjectionAPI, RowInsertPosition } from '../../types';
11
- import type { ResizeStateWithAnalytics } from '../table-resizing/utils/types';
12
- export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, targetCellPosition?: number) => Command;
13
- export declare const mergeCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | null | undefined) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
14
- export declare const splitCellWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
15
- export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, cellColor: string, editorView?: EditorView | null) => Command;
16
- export declare const addRowAroundSelection: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (side: RowInsertPosition) => Command;
17
- export declare const insertRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: InsertRowMethods, options: InsertRowOptions) => Command;
18
- export declare const changeColumnWidthByStepWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null) => (stepSize: number, getEditorContainerWidth: GetEditorContainerWidth, isTableScalingEnabled: boolean, isTableFixedColumnWidthsOptionEnabled: boolean, isCommentEditor: boolean, inputMethod: INPUT_METHOD.SHORTCUT, ariaNotify?: (message: string) => void, getIntl?: () => IntlShape) => Command;
19
- export declare const insertColumnWithAnalytics: (api: PluginInjectionAPI | undefined | null, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, position: number) => Command;
20
- export declare const deleteRowsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect, isHeaderRowRequired: boolean) => Command;
21
- export declare const deleteColumnsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.SHORTCUT | INPUT_METHOD.TABLE_CONTEXT_MENU, rect: Rect) => Command;
22
- export declare const deleteSelectedRowsOrColumnsWithAnalyticsViaShortcut: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Command;
23
- export declare const deleteTableWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
24
- export declare const deleteTableIfSelectedWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.FLOATING_TB | INPUT_METHOD.KEYBOARD) => Command;
25
- export declare const toggleHeaderRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
26
- export declare const toggleHeaderColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
27
- export declare const toggleNumberColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
28
- export declare const sortColumnWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, columnIndex: number, sortOrder: SortOrder) => Command;
29
- export declare const distributeColumnsWidthsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, api: PluginInjectionAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU, { resizeState, table, attributes }: ResizeStateWithAnalytics) => Command;
30
- export declare const wrapTableInExpandWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => Command;
31
- export declare const toggleFixedColumnWidthsOptionAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, inputMethod: INPUT_METHOD.FLOATING_TB) => Command;
32
- export declare const setTableAlignmentWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isCommentEditor: boolean) => (newAlignment: AlignmentOptions, previousAlignment: TableLayout, inputMethod: INPUT_METHOD.FLOATING_TB, reason: CHANGE_ALIGNMENT_REASON) => Command;
33
- export declare const setTableAlignmentWithTableContentWithPosWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (newAlignment: AlignmentOptions, previousAlignment: AlignmentOptions | null, tableNodeWithPos: NodeWithPos, inputMethod: INPUT_METHOD.AUTO, reason: CHANGE_ALIGNMENT_REASON) => Command;
@@ -1,4 +0,0 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
2
- import type { Rect } from '@atlaskit/editor-tables/table-map';
3
- import type { PluginInjectionAPI } from '../../types';
4
- export declare const deleteColumnsCommand: (rect: Rect, api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
@@ -1,2 +0,0 @@
1
- import type { EditorCommand } from '@atlaskit/editor-common/types';
2
- export declare const setTableDisplayMode: EditorCommand;
@@ -1,11 +0,0 @@
1
- import type { IntlShape } from 'react-intl/src/types';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { Command } from '@atlaskit/editor-common/types';
4
- import type { Direction } from '@atlaskit/editor-tables/types';
5
- export declare const goToNextCell: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, ariaNotify?: (message: string) => void, getIntl?: () => IntlShape) => (direction: Direction) => Command;
6
- /**
7
- * Moves the cursor vertically from a NodeSelection within a table cell.
8
- * - If content exists above/below within the cell, lets ProseMirror handle it.
9
- * - Otherwise, moves to the next cell (down to start, up to last line).
10
- */
11
- export declare const goToNextCellVertical: (direction: Direction) => Command;
@@ -1,11 +0,0 @@
1
- import type { CellColumnPositioning } from '../../types';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- export declare const hoverMergedCells: () => Command;
4
- export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => Command;
5
- export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => Command;
6
- export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => Command;
7
- export declare const clearHoverSelection: () => Command;
8
- export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => Command;
9
- export declare const hideResizeHandleLine: () => Command;
10
- export declare const setTableHovered: (hovered: boolean) => Command;
11
- export declare const hoverCell: (rowIndex?: number, colIndex?: number) => Command;
@@ -1,10 +0,0 @@
1
- export { hoverColumns, hoverRows, hoverTable, hoverCell, hoverMergedCells, clearHoverSelection, showResizeHandleLine, hideResizeHandleLine, setTableHovered, } from './hover';
2
- export { insertColumn, insertRow, createTable } from './insert';
3
- export { getNextLayout, toggleContextualMenu, toggleHeaderColumn, toggleHeaderRow, toggleNumberColumn, toggleTableLayout, } from './toggle';
4
- export { closeActiveTableMenu, toggleActiveTableMenu } from './active-table-menu';
5
- export { clearMultipleCells } from './clear';
6
- export { autoSizeTable, convertFirstRowToHeader, deleteTable, hideInsertColumnOrRowButton, moveCursorBackward, selectColumn, selectColumns, selectRow, selectRows, setCellAttr, setEditorFocus, setMultipleCellAttrs, setMultipleCellAttrsEditorCommand, setTableRef, showInsertColumnButton, showInsertRowButton, transformSliceToAddTableHeaders, triggerUnlessTableHeader, addBoldInEmptyHeaderCells, addResizeHandleDecorations, updateWidthToWidest, setFocusToCellMenu, } from './misc';
7
- export { sortByColumn } from './sort';
8
- export { goToNextCell } from './go-to-next-cell';
9
- export { removeDescendantNodes } from './referentiality';
10
- export { setTableDisplayMode } from './display-mode';
@@ -1,54 +0,0 @@
1
- import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
- import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
4
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { PluginInjectionAPI } from '../../types';
7
- type InsertTableWithNestingSupportCommand = (options: {
8
- createTableProps?: {
9
- colsCount?: number;
10
- rowsCount?: number;
11
- };
12
- isChromelessEditor?: boolean;
13
- isCommentEditor?: boolean;
14
- isFullWidthModeEnabled?: boolean;
15
- isMaxWidthModeEnabled?: boolean;
16
- isTableAlignmentEnabled?: boolean;
17
- isTableResizingEnabled?: boolean;
18
- isTableScalingEnabled?: boolean;
19
- }, api: PluginInjectionAPI | undefined | null, analyticsPayload?: AnalyticsEventPayload) => EditorCommand;
20
- export declare function addColumnAt(api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean): (column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined) => (tr: Transaction) => Transaction;
21
- export declare const addColumnBefore: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
22
- export declare const addColumnAfter: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Command;
23
- export declare const insertColumn: (api: PluginInjectionAPI | undefined | null, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (column: number) => Command;
24
- export declare const insertRow: (row: number, moveCursorToTheNewRow: boolean) => Command;
25
- /**
26
- * @private
27
- * @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
28
- * (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
29
- */
30
- export declare const createTable: (isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthModeEnabled?: boolean, isMaxWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined | null, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean) => Command;
31
- /**
32
- * @private
33
- * @deprecated This function is deprecated - please use insertTableWithNestingSupport instead.
34
- * (To be removed with feature gate: `platform_editor_use_nested_table_pm_nodes`)
35
- */
36
- export declare const insertTableWithSize: (isFullWidthModeEnabled?: boolean, isMaxWidthModeEnabled?: boolean, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, isCommentEditor?: boolean, isChromelessEditor?: boolean) => (rowsCount: number, colsCount: number, inputMethod?: INPUT_METHOD.PICKER) => EditorCommand;
37
- /**
38
- * Unified command to insert a new table into the editor.
39
- *
40
- * @param {object} options - Configuration options for table insertion.
41
- * @param {boolean} [options.isTableScalingEnabled=false] - Flag to enable table scaling.
42
- * @param {boolean} [options.isTableAlignmentEnabled=false] - Flag to enable table alignment.
43
- * @param {boolean} [options.isFullWidthModeEnabled=false] - Flag to enable full-width mode for the table.
44
- * @param {boolean} [options.isCommentEditor=false] - Flag to indicate if the editor is in comment mode.
45
- * @param {boolean} [options.isChromelessEditor=false] - Flag to indicate if the editor is chromeless.
46
- * @param {boolean} [options.isTableResizingEnabled=false] - Flag to enable table resizing.
47
- * @param {object} [options.createTableProps={}] - Additional properties for table creation, including table size.
48
- * @param {object} api - PluginInjectinoApi object for content insertion commands.
49
- * @param {object} analyticsPayload - Payload for analytics tracking.
50
- *
51
- * @returns {Function} A function that takes a transaction and inserts a table.
52
- */
53
- export declare const insertTableWithNestingSupport: InsertTableWithNestingSupportCommand;
54
- export {};