@atlaskit/editor-plugin-table 23.4.1 → 23.4.3

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 (272) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/ui/TableFloatingControls/index.js +1 -17
  3. package/dist/es2019/ui/TableFloatingControls/index.js +1 -17
  4. package/dist/esm/ui/TableFloatingControls/index.js +1 -17
  5. package/dist/types/ui/FloatingContextualButton/index.d.ts +0 -1
  6. package/dist/types/ui/TableFloatingControls/index.d.ts +1 -1
  7. package/package.json +4 -4
  8. package/table-plugin/package.json +1 -8
  9. package/table-plugin-type/package.json +1 -8
  10. package/types/package.json +1 -8
  11. package/ui/common-styles/package.json +1 -8
  12. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -125
  13. package/dist/cjs/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -52
  14. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -124
  15. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -110
  16. package/dist/es2019/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -47
  17. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -101
  18. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +0 -116
  19. package/dist/esm/ui/TableFloatingControls/FloatingControlsWithSelection.js +0 -45
  20. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +0 -115
  21. package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
  22. package/dist/types/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
  23. package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
  24. package/dist/types-ts4.5/entry-points/table-plugin-type.d.ts +0 -1
  25. package/dist/types-ts4.5/entry-points/table-plugin.d.ts +0 -6
  26. package/dist/types-ts4.5/entry-points/types.d.ts +0 -2
  27. package/dist/types-ts4.5/entry-points/ui-common-styles.d.ts +0 -1
  28. package/dist/types-ts4.5/index.d.ts +0 -7
  29. package/dist/types-ts4.5/nodeviews/ExternalDropTargets.d.ts +0 -9
  30. package/dist/types-ts4.5/nodeviews/OverflowShadowsObserver.d.ts +0 -26
  31. package/dist/types-ts4.5/nodeviews/TableCell.d.ts +0 -24
  32. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +0 -48
  33. package/dist/types-ts4.5/nodeviews/TableComponentWithSharedState.d.ts +0 -30
  34. package/dist/types-ts4.5/nodeviews/TableContainer.d.ts +0 -48
  35. package/dist/types-ts4.5/nodeviews/TableNodeViewBase.d.ts +0 -18
  36. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +0 -36
  37. package/dist/types-ts4.5/nodeviews/TableRow.d.ts +0 -68
  38. package/dist/types-ts4.5/nodeviews/TableRowNativeStickyWithFallback.d.ts +0 -89
  39. package/dist/types-ts4.5/nodeviews/TableStickyScrollbar.d.ts +0 -23
  40. package/dist/types-ts4.5/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
  41. package/dist/types-ts4.5/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
  42. package/dist/types-ts4.5/nodeviews/table-container-styles.d.ts +0 -5
  43. package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +0 -30
  44. package/dist/types-ts4.5/nodeviews/table.d.ts +0 -48
  45. package/dist/types-ts4.5/nodeviews/toDOM.d.ts +0 -17
  46. package/dist/types-ts4.5/nodeviews/types.d.ts +0 -33
  47. package/dist/types-ts4.5/nodeviews/update-overflow-shadows.d.ts +0 -1
  48. package/dist/types-ts4.5/pm-plugins/active-cell-highlight/plugin.d.ts +0 -11
  49. package/dist/types-ts4.5/pm-plugins/analytics/actions.d.ts +0 -18
  50. package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +0 -6
  51. package/dist/types-ts4.5/pm-plugins/analytics/plugin-factory.d.ts +0 -8
  52. package/dist/types-ts4.5/pm-plugins/analytics/plugin-key.d.ts +0 -3
  53. package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +0 -5
  54. package/dist/types-ts4.5/pm-plugins/analytics/reducer.d.ts +0 -3
  55. package/dist/types-ts4.5/pm-plugins/analytics/types.d.ts +0 -11
  56. package/dist/types-ts4.5/pm-plugins/analytics/utils/moved-event.d.ts +0 -6
  57. package/dist/types-ts4.5/pm-plugins/commands/active-table-menu.d.ts +0 -6
  58. package/dist/types-ts4.5/pm-plugins/commands/clear.d.ts +0 -2
  59. package/dist/types-ts4.5/pm-plugins/commands/collapse.d.ts +0 -2
  60. package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +0 -34
  61. package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +0 -33
  62. package/dist/types-ts4.5/pm-plugins/commands/delete.d.ts +0 -4
  63. package/dist/types-ts4.5/pm-plugins/commands/display-mode.d.ts +0 -2
  64. package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +0 -11
  65. package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +0 -11
  66. package/dist/types-ts4.5/pm-plugins/commands/index.d.ts +0 -10
  67. package/dist/types-ts4.5/pm-plugins/commands/insert.d.ts +0 -54
  68. package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +0 -47
  69. package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +0 -3
  70. package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +0 -10
  71. package/dist/types-ts4.5/pm-plugins/commands/sort.d.ts +0 -3
  72. package/dist/types-ts4.5/pm-plugins/commands/split-cell.d.ts +0 -8
  73. package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +0 -12
  74. package/dist/types-ts4.5/pm-plugins/create-plugin-config.d.ts +0 -2
  75. package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +0 -8
  76. package/dist/types-ts4.5/pm-plugins/decorations/utils/column-controls.d.ts +0 -4
  77. package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +0 -5
  78. package/dist/types-ts4.5/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
  79. package/dist/types-ts4.5/pm-plugins/decorations/utils/types.d.ts +0 -7
  80. package/dist/types-ts4.5/pm-plugins/default-table-selection.d.ts +0 -16
  81. package/dist/types-ts4.5/pm-plugins/drag-and-drop/actions.d.ts +0 -28
  82. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +0 -13
  83. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +0 -10
  84. package/dist/types-ts4.5/pm-plugins/drag-and-drop/consts.d.ts +0 -6
  85. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-factory.d.ts +0 -8
  86. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin-key.d.ts +0 -3
  87. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +0 -7
  88. package/dist/types-ts4.5/pm-plugins/drag-and-drop/reducer.d.ts +0 -4
  89. package/dist/types-ts4.5/pm-plugins/drag-and-drop/types.d.ts +0 -14
  90. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +0 -8
  91. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/getDragBehaviour.d.ts +0 -3
  92. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/monitor.d.ts +0 -3
  93. package/dist/types-ts4.5/pm-plugins/editor-content-area-height.d.ts +0 -12
  94. package/dist/types-ts4.5/pm-plugins/handlers.d.ts +0 -3
  95. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -8
  96. package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -8
  97. package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
  98. package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
  99. package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -3
  100. package/dist/types-ts4.5/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -13
  101. package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +0 -4
  102. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
  103. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin-state.d.ts +0 -7
  104. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +0 -4
  105. package/dist/types-ts4.5/pm-plugins/sticky-headers/types.d.ts +0 -17
  106. package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +0 -2
  107. package/dist/types-ts4.5/pm-plugins/table-analytics.d.ts +0 -11
  108. package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +0 -5
  109. package/dist/types-ts4.5/pm-plugins/table-local-id.d.ts +0 -10
  110. package/dist/types-ts4.5/pm-plugins/table-resizing/commands.d.ts +0 -20
  111. package/dist/types-ts4.5/pm-plugins/table-resizing/event-handlers.d.ts +0 -6
  112. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +0 -7
  113. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
  114. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin.d.ts +0 -7
  115. package/dist/types-ts4.5/pm-plugins/table-resizing/reducer.d.ts +0 -3
  116. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -26
  117. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
  118. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +0 -9
  119. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
  120. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/dom.d.ts +0 -11
  121. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/misc.d.ts +0 -69
  122. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -3
  123. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -8
  124. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -28
  125. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -20
  126. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/types.d.ts +0 -23
  127. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
  128. package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +0 -4
  129. package/dist/types-ts4.5/pm-plugins/table-size-selector.d.ts +0 -10
  130. package/dist/types-ts4.5/pm-plugins/table-width-in-comment-fix.d.ts +0 -9
  131. package/dist/types-ts4.5/pm-plugins/table-width.d.ts +0 -17
  132. package/dist/types-ts4.5/pm-plugins/transforms/column-width.d.ts +0 -25
  133. package/dist/types-ts4.5/pm-plugins/transforms/content-mode.d.ts +0 -9
  134. package/dist/types-ts4.5/pm-plugins/transforms/delete-columns.d.ts +0 -5
  135. package/dist/types-ts4.5/pm-plugins/transforms/delete-rows.d.ts +0 -3
  136. package/dist/types-ts4.5/pm-plugins/transforms/fix-tables.d.ts +0 -9
  137. package/dist/types-ts4.5/pm-plugins/transforms/merge.d.ts +0 -7
  138. package/dist/types-ts4.5/pm-plugins/transforms/replace-table.d.ts +0 -4
  139. package/dist/types-ts4.5/pm-plugins/transforms/split.d.ts +0 -9
  140. package/dist/types-ts4.5/pm-plugins/transforms/table-transform-utils.d.ts +0 -11
  141. package/dist/types-ts4.5/pm-plugins/utils/alignment.d.ts +0 -14
  142. package/dist/types-ts4.5/pm-plugins/utils/analytics.d.ts +0 -49
  143. package/dist/types-ts4.5/pm-plugins/utils/collapse.d.ts +0 -31
  144. package/dist/types-ts4.5/pm-plugins/utils/column-controls.d.ts +0 -11
  145. package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +0 -15
  146. package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +0 -19
  147. package/dist/types-ts4.5/pm-plugins/utils/dom.d.ts +0 -42
  148. package/dist/types-ts4.5/pm-plugins/utils/drag-menu.d.ts +0 -19
  149. package/dist/types-ts4.5/pm-plugins/utils/get-allow-add-column-custom-step.d.ts +0 -2
  150. package/dist/types-ts4.5/pm-plugins/utils/guidelines.d.ts +0 -5
  151. package/dist/types-ts4.5/pm-plugins/utils/merged-cells.d.ts +0 -25
  152. package/dist/types-ts4.5/pm-plugins/utils/nodes.d.ts +0 -30
  153. package/dist/types-ts4.5/pm-plugins/utils/paste.d.ts +0 -16
  154. package/dist/types-ts4.5/pm-plugins/utils/row-controls.d.ts +0 -15
  155. package/dist/types-ts4.5/pm-plugins/utils/selection.d.ts +0 -3
  156. package/dist/types-ts4.5/pm-plugins/utils/snapping.d.ts +0 -17
  157. package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +0 -3
  158. package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +0 -5
  159. package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-all-tables.d.ts +0 -8
  160. package/dist/types-ts4.5/pm-plugins/utils/tableMode/apply-measured-width-to-selected-table.d.ts +0 -6
  161. package/dist/types-ts4.5/pm-plugins/utils/tableMode/is-content-mode-supported.d.ts +0 -7
  162. package/dist/types-ts4.5/pm-plugins/utils/tableMode/measure-table-with-auto-layout.d.ts +0 -2
  163. package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/constants.d.ts +0 -4
  164. package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/distribute-column-widths.d.ts +0 -8
  165. package/dist/types-ts4.5/pm-plugins/utils/tableMode/smart-adjust/run-smart-adjust.d.ts +0 -7
  166. package/dist/types-ts4.5/pm-plugins/utils/update-plugin-state-decorations.d.ts +0 -4
  167. package/dist/types-ts4.5/pm-plugins/view-mode-sort/consts.d.ts +0 -3
  168. package/dist/types-ts4.5/pm-plugins/view-mode-sort/index.d.ts +0 -21
  169. package/dist/types-ts4.5/pm-plugins/view-mode-sort/plugin-key.d.ts +0 -3
  170. package/dist/types-ts4.5/pm-plugins/view-mode-sort/types.d.ts +0 -22
  171. package/dist/types-ts4.5/pm-plugins/view-mode-sort/utils.d.ts +0 -11
  172. package/dist/types-ts4.5/tablePlugin.d.ts +0 -7
  173. package/dist/types-ts4.5/tablePluginType.d.ts +0 -81
  174. package/dist/types-ts4.5/types/index.d.ts +0 -544
  175. package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +0 -12
  176. package/dist/types-ts4.5/ui/ContentComponent.d.ts +0 -18
  177. package/dist/types-ts4.5/ui/DragHandle/HandleIconComponent.d.ts +0 -8
  178. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +0 -29
  179. package/dist/types-ts4.5/ui/DragPreview/index.d.ts +0 -7
  180. package/dist/types-ts4.5/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.d.ts +0 -13
  181. package/dist/types-ts4.5/ui/FloatingContextualButton/FixedButton.d.ts +0 -22
  182. package/dist/types-ts4.5/ui/FloatingContextualButton/index.d.ts +0 -22
  183. package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +0 -3
  184. package/dist/types-ts4.5/ui/FloatingContextualMenu/CellMenuPopup.d.ts +0 -14
  185. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -63
  186. package/dist/types-ts4.5/ui/FloatingContextualMenu/index.d.ts +0 -24
  187. package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +0 -3
  188. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -14
  189. package/dist/types-ts4.5/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
  190. package/dist/types-ts4.5/ui/FloatingDeleteButton/index.d.ts +0 -55
  191. package/dist/types-ts4.5/ui/FloatingDeleteButton/types.d.ts +0 -2
  192. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +0 -41
  193. package/dist/types-ts4.5/ui/FloatingDragMenu/DropdownMenu.d.ts +0 -36
  194. package/dist/types-ts4.5/ui/FloatingDragMenu/index.d.ts +0 -36
  195. package/dist/types-ts4.5/ui/FloatingDragMenu/styles.d.ts +0 -4
  196. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +0 -18
  197. package/dist/types-ts4.5/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -4
  198. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +0 -40
  199. package/dist/types-ts4.5/ui/FloatingTableMenu/index.d.ts +0 -23
  200. package/dist/types-ts4.5/ui/FloatingToolbarLabel/FloatingToolbarLabel.d.ts +0 -16
  201. package/dist/types-ts4.5/ui/SizeSelector/index.d.ts +0 -9
  202. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +0 -24
  203. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.d.ts +0 -10
  204. package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnDropTargets/index.d.ts +0 -11
  205. package/dist/types-ts4.5/ui/TableFloatingColumnControls/index.d.ts +0 -33
  206. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +0 -6
  207. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +0 -15
  208. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/types.d.ts +0 -11
  209. package/dist/types-ts4.5/ui/TableFloatingControls/FloatingControlsWithSelection.d.ts +0 -20
  210. package/dist/types-ts4.5/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -22
  211. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +0 -19
  212. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/DragControls.d.ts +0 -25
  213. package/dist/types-ts4.5/ui/TableFloatingControls/RowDropTarget/index.d.ts +0 -8
  214. package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +0 -37
  215. package/dist/types-ts4.5/ui/TableFullWidthLabel/index.d.ts +0 -2
  216. package/dist/types-ts4.5/ui/TableMenu/cell/getCellMenuComponents.d.ts +0 -3
  217. package/dist/types-ts4.5/ui/TableMenu/cell/items/MergeCellsItem.d.ts +0 -3
  218. package/dist/types-ts4.5/ui/TableMenu/cell/items/SplitCellItem.d.ts +0 -3
  219. package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignDropdownItem.d.ts +0 -12
  220. package/dist/types-ts4.5/ui/TableMenu/cell/items/VerticalAlignNestedMenu.d.ts +0 -4
  221. package/dist/types-ts4.5/ui/TableMenu/cell/items/verticalAlignUtils.d.ts +0 -3
  222. package/dist/types-ts4.5/ui/TableMenu/cell/keys.d.ts +0 -16
  223. package/dist/types-ts4.5/ui/TableMenu/column/getColumnMenuComponents.d.ts +0 -3
  224. package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnLeftItem.d.ts +0 -3
  225. package/dist/types-ts4.5/ui/TableMenu/column/items/AddColumnRightItem.d.ts +0 -3
  226. package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnBackgroundSection.d.ts +0 -11
  227. package/dist/types-ts4.5/ui/TableMenu/column/items/ColumnToggleSection.d.ts +0 -10
  228. package/dist/types-ts4.5/ui/TableMenu/column/items/DeleteColumnItem.d.ts +0 -3
  229. package/dist/types-ts4.5/ui/TableMenu/column/items/DistributeColumnsItem.d.ts +0 -3
  230. package/dist/types-ts4.5/ui/TableMenu/column/items/HeaderColumnToggleItem.d.ts +0 -16
  231. package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnLeftItem.d.ts +0 -3
  232. package/dist/types-ts4.5/ui/TableMenu/column/items/MoveColumnRightItem.d.ts +0 -3
  233. package/dist/types-ts4.5/ui/TableMenu/column/items/SortDecreasingItem.d.ts +0 -3
  234. package/dist/types-ts4.5/ui/TableMenu/column/items/SortIncreasingItem.d.ts +0 -3
  235. package/dist/types-ts4.5/ui/TableMenu/column/keys.d.ts +0 -22
  236. package/dist/types-ts4.5/ui/TableMenu/row/getRowMenuComponents.d.ts +0 -3
  237. package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowAboveItem.d.ts +0 -3
  238. package/dist/types-ts4.5/ui/TableMenu/row/items/AddRowBelowItem.d.ts +0 -3
  239. package/dist/types-ts4.5/ui/TableMenu/row/items/DeleteRowItem.d.ts +0 -3
  240. package/dist/types-ts4.5/ui/TableMenu/row/items/HeaderRowToggleItem.d.ts +0 -3
  241. package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowDownItem.d.ts +0 -3
  242. package/dist/types-ts4.5/ui/TableMenu/row/items/MoveRowUpItem.d.ts +0 -3
  243. package/dist/types-ts4.5/ui/TableMenu/row/items/NumberedRowsToggleItem.d.ts +0 -3
  244. package/dist/types-ts4.5/ui/TableMenu/row/keys.d.ts +0 -18
  245. package/dist/types-ts4.5/ui/TableMenu/shared/TableMenu.d.ts +0 -11
  246. package/dist/types-ts4.5/ui/TableMenu/shared/TableMenuContext.d.ts +0 -16
  247. package/dist/types-ts4.5/ui/TableMenu/shared/consts.d.ts +0 -4
  248. package/dist/types-ts4.5/ui/TableMenu/shared/getSharedItems.d.ts +0 -3
  249. package/dist/types-ts4.5/ui/TableMenu/shared/getTableMenuComponents.d.ts +0 -3
  250. package/dist/types-ts4.5/ui/TableMenu/shared/items/BackgroundColorItem.d.ts +0 -7
  251. package/dist/types-ts4.5/ui/TableMenu/shared/items/ClearCellsItem.d.ts +0 -3
  252. package/dist/types-ts4.5/ui/TableMenu/shared/keys.d.ts +0 -3
  253. package/dist/types-ts4.5/ui/TableMenu/shared/types.d.ts +0 -4
  254. package/dist/types-ts4.5/ui/common-styles.d.ts +0 -14
  255. package/dist/types-ts4.5/ui/consts.d.ts +0 -69
  256. package/dist/types-ts4.5/ui/event-handlers.d.ts +0 -20
  257. package/dist/types-ts4.5/ui/global-styles.d.ts +0 -11
  258. package/dist/types-ts4.5/ui/hooks/useInternalTablePluginStateSelector.d.ts +0 -22
  259. package/dist/types-ts4.5/ui/icons/AddColLeftIcon.d.ts +0 -2
  260. package/dist/types-ts4.5/ui/icons/AddColRightIcon.d.ts +0 -2
  261. package/dist/types-ts4.5/ui/icons/AddRowAboveIcon.d.ts +0 -2
  262. package/dist/types-ts4.5/ui/icons/AddRowBelowIcon.d.ts +0 -2
  263. package/dist/types-ts4.5/ui/icons/DragHandleDisabledIcon.d.ts +0 -6
  264. package/dist/types-ts4.5/ui/icons/DragHandleIcon.d.ts +0 -2
  265. package/dist/types-ts4.5/ui/icons/DragInMotionIcon.d.ts +0 -6
  266. package/dist/types-ts4.5/ui/icons/MergeCellsIcon.d.ts +0 -2
  267. package/dist/types-ts4.5/ui/icons/MinimisedHandle.d.ts +0 -2
  268. package/dist/types-ts4.5/ui/icons/SortingIconWrapper.d.ts +0 -10
  269. package/dist/types-ts4.5/ui/icons/SplitCellIcon.d.ts +0 -2
  270. package/dist/types-ts4.5/ui/rounded-table-styles.d.ts +0 -2
  271. package/dist/types-ts4.5/ui/toolbar.d.ts +0 -11
  272. package/dist/types-ts4.5/ui/ui-styles.d.ts +0 -21
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { type PluginInjectionAPI } from '../../types';
4
- type CellMenuPopupProps = {
5
- api: PluginInjectionAPI | undefined | null;
6
- boundariesElement?: HTMLElement;
7
- editorView: EditorView;
8
- mountPoint?: HTMLElement;
9
- scrollableElement?: HTMLElement;
10
- target: HTMLElement;
11
- zIndex: number;
12
- };
13
- export declare const CellMenuPopup: ({ api, boundariesElement, editorView, mountPoint, scrollableElement, target, zIndex, }: CellMenuPopupProps) => React.JSX.Element;
14
- export {};
@@ -1,63 +0,0 @@
1
- import React, { Component } from 'react';
2
- import { jsx } from '@emotion/react';
3
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
4
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
5
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { Rect } from '@atlaskit/editor-tables/table-map';
8
- import type { PluginInjectionAPI } from '../../types';
9
- interface Props {
10
- allowBackgroundColor?: boolean;
11
- allowColumnSorting?: boolean;
12
- allowMergeCells?: boolean;
13
- api: PluginInjectionAPI | undefined | null;
14
- boundariesElement?: HTMLElement;
15
- editorAnalyticsAPI?: EditorAnalyticsAPI;
16
- editorView: EditorView;
17
- getEditorContainerWidth: GetEditorContainerWidth;
18
- getEditorFeatureFlags?: GetEditorFeatureFlags;
19
- isCellMenuOpenByKeyboard?: boolean;
20
- isCommentEditor?: boolean;
21
- isDragMenuOpen?: boolean;
22
- isOpen: boolean;
23
- mountPoint?: HTMLElement;
24
- offset?: Array<number>;
25
- selectionRect: Rect;
26
- targetCellPosition?: number;
27
- }
28
- interface State {
29
- isOpenAllowed: boolean;
30
- isSubmenuOpen: boolean;
31
- }
32
- export declare class ContextualMenu extends Component<Props & WrappedComponentProps, State> {
33
- state: State;
34
- static defaultProps: {
35
- boundariesElement: HTMLElement | undefined;
36
- };
37
- private dropdownMenuRef;
38
- componentDidMount(): void;
39
- componentDidUpdate(): void;
40
- render(): jsx.JSX.Element;
41
- private handleSubMenuRef;
42
- private createBackgroundColorItem;
43
- private newDistributeColumnsItem;
44
- private createMergeSplitCellItems;
45
- private createInsertColumnItem;
46
- private createInsertRowItem;
47
- private createClearCellsItem;
48
- private createDeleteColumnItem;
49
- private createDeleteRowItem;
50
- private createDistributeColumnsItemInternal;
51
- private createContextMenuItems;
52
- private onMenuItemActivated;
53
- private toggleOpen;
54
- private handleOpenChange;
55
- private handleItemMouseEnter;
56
- private handleItemMouseLeave;
57
- private closeSubmenu;
58
- private setColor;
59
- }
60
- declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
61
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
62
- };
63
- export default _default_1;
@@ -1,24 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { PluginConfig, PluginInjectionAPI } from '../../types';
5
- interface Props {
6
- api: PluginInjectionAPI | undefined | null;
7
- boundariesElement?: HTMLElement;
8
- editorAnalyticsAPI?: EditorAnalyticsAPI;
9
- editorView: EditorView | undefined;
10
- getEditorContainerWidth: GetEditorContainerWidth;
11
- getEditorFeatureFlags?: GetEditorFeatureFlags;
12
- isCellMenuOpenByKeyboard?: boolean;
13
- isCommentEditor?: boolean;
14
- isDragMenuOpen?: boolean;
15
- isOpen: boolean;
16
- mountPoint?: HTMLElement;
17
- pluginConfig?: PluginConfig;
18
- scrollableElement?: HTMLElement;
19
- }
20
- declare const FloatingContextualMenu: {
21
- ({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, getEditorFeatureFlags, isCellMenuOpenByKeyboard, isCommentEditor, api, isDragMenuOpen, }: Props): JSX.Element | null;
22
- displayName: string;
23
- };
24
- export default FloatingContextualMenu;
@@ -1,3 +0,0 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
- export declare const cellColourPreviewStyles: (selectedColor: string) => SerializedStyles;
3
- export declare const tablePopupStyles: () => SerializedStyles;
@@ -1,14 +0,0 @@
1
- import type { SyntheticEvent } from 'react';
2
- import React from 'react';
3
- import type { MessageDescriptor, WithIntlProps, WrappedComponentProps } from 'react-intl';
4
- interface ButtonProps {
5
- onClick?: (event: SyntheticEvent) => void;
6
- onMouseEnter?: (event: SyntheticEvent) => void;
7
- onMouseLeave?: (event: SyntheticEvent) => void;
8
- removeLabel: MessageDescriptor;
9
- style?: object;
10
- }
11
- declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
12
- WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
13
- };
14
- export default _default_1;
@@ -1,10 +0,0 @@
1
- import type { PopupProps } from '@atlaskit/editor-common/ui';
2
- import type { CellSelectionType } from './types';
3
- interface GetPopupOptions {
4
- left: number;
5
- selectionType?: CellSelectionType;
6
- tableWrapper: HTMLElement | null;
7
- top: number;
8
- }
9
- export default function getPopupOptions({ left, top, selectionType, tableWrapper, }: GetPopupOptions): Partial<PopupProps>;
10
- export {};
@@ -1,55 +0,0 @@
1
- import React, { Component } from 'react';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
6
- import type { PluginInjectionAPI } from '../../types';
7
- import type { CellSelectionType } from './types';
8
- export interface Props {
9
- api: PluginInjectionAPI | undefined | null;
10
- boundariesElement?: HTMLElement;
11
- editorAnalyticsAPI?: EditorAnalyticsAPI;
12
- editorView: EditorView;
13
- isNumberColumnEnabled?: boolean;
14
- mountPoint?: HTMLElement;
15
- scrollableElement?: HTMLElement;
16
- selection: Selection;
17
- stickyHeaders?: RowStickyState;
18
- tableRef?: HTMLTableElement;
19
- }
20
- interface State {
21
- indexes: number[];
22
- left: number;
23
- position?: string;
24
- scrollLeft: number;
25
- selectionType?: CellSelectionType;
26
- top: number;
27
- }
28
- declare class FloatingDeleteButton extends Component<Props, State> {
29
- static displayName: string;
30
- wrapper: HTMLElement | null;
31
- constructor(props: Props);
32
- shouldComponentUpdate(_: Props, nextState: State): boolean;
33
- componentDidMount(): void;
34
- componentDidUpdate(): void;
35
- updateWrapper: () => void;
36
- componentWillUnmount(): void;
37
- onWrapperScrolled: (e: Event) => void;
38
- /**
39
- * We derivate the button state from the properties passed.
40
- * We do this in here because we need this information in different places
41
- * and this prevent to do multiple width calculations in the same component.
42
- */
43
- static getDerivedStateFromProps(nextProps: Readonly<Props>, prevState: State): Partial<State> | null;
44
- private handleMouseEnter;
45
- private handleMouseLeave;
46
- /**
47
- *
48
- *
49
- * @private
50
- * @memberof FloatingDeleteButton
51
- */
52
- private handleClick;
53
- render(): React.JSX.Element | null;
54
- }
55
- export default FloatingDeleteButton;
@@ -1,2 +0,0 @@
1
- import type { TableDirection } from '../../types';
2
- export type CellSelectionType = TableDirection | undefined;
@@ -1,41 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- /** @jsxFrag */
6
- import React from 'react';
7
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
- import type { ExtractInjectionAPI, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
10
- import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
11
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
12
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
13
- import type { TablePlugin } from '../../tablePluginType';
14
- import type { PluginConfig, TableDirection } from '../../types';
15
- type DragMenuProps = {
16
- api: ExtractInjectionAPI<TablePlugin> | undefined | null;
17
- ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
18
- boundariesElement?: HTMLElement;
19
- direction?: TableDirection;
20
- editorAnalyticsAPI?: EditorAnalyticsAPI;
21
- editorView: EditorView;
22
- fitHeight?: number;
23
- fitWidth?: number;
24
- getEditorContainerWidth: GetEditorContainerWidth;
25
- index?: number;
26
- isCommentEditor?: boolean;
27
- isOpen?: boolean;
28
- isTableFixedColumnWidthsOptionEnabled?: boolean;
29
- isTableScalingEnabled?: boolean;
30
- mountPoint?: HTMLElement;
31
- pluginConfig?: PluginConfig;
32
- scrollableElement?: HTMLElement;
33
- shouldUseIncreasedScalingPercent?: boolean;
34
- tableNode?: PmNode;
35
- target?: Element;
36
- targetCellPosition?: number;
37
- };
38
- declare const _default_1: React.FC<WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
39
- WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
40
- };
41
- export default _default_1;
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
3
- type DropdownMenuProps = {
4
- boundariesElement?: HTMLElement;
5
- direction?: string;
6
- /**
7
- * use to toggle top level menu keyboard navigation and action keys
8
- * e.g. should be false if submenu is rendered as a child to avoid multiple keydown handlers
9
- */
10
- disableKeyboardHandling: boolean;
11
- fitHeight?: number;
12
- fitWidth?: number;
13
- handleClose: (focusTarget: 'editor' | 'handle') => void;
14
- items: Array<{
15
- items: MenuItem[];
16
- }>;
17
- mountPoint?: HTMLElement;
18
- offset?: Array<number>;
19
- onItemActivated?: (attrs: {
20
- item: MenuItem;
21
- shouldCloseMenu?: boolean;
22
- }) => void;
23
- onMouseEnter: (attrs: {
24
- item: MenuItem;
25
- }) => void;
26
- onMouseLeave: (attrs: {
27
- item: MenuItem;
28
- }) => void;
29
- scrollableElement?: HTMLElement;
30
- section: {
31
- hasSeparator?: boolean;
32
- title?: string;
33
- };
34
- };
35
- export declare const DropdownMenu: ({ items, section, disableKeyboardHandling, onItemActivated, handleClose, onMouseEnter, onMouseLeave, fitWidth, fitHeight, direction, mountPoint, boundariesElement, scrollableElement, }: DropdownMenuProps) => React.JSX.Element;
36
- export {};
@@ -1,36 +0,0 @@
1
- import React from 'react';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
5
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
8
- import type { PluginConfig, PluginInjectionAPI, TableDirection } from '../../types';
9
- interface Props {
10
- api: PluginInjectionAPI | undefined | null;
11
- ariaNotifyPlugin?: (message: string, ariaLiveElementAttributes?: AriaLiveElementAttributes) => void;
12
- boundariesElement?: HTMLElement;
13
- direction?: TableDirection;
14
- editorAnalyticsAPI?: EditorAnalyticsAPI;
15
- editorView: EditorView;
16
- getEditorContainerWidth: GetEditorContainerWidth;
17
- getEditorFeatureFlags?: GetEditorFeatureFlags;
18
- index?: number;
19
- isCommentEditor?: boolean;
20
- isOpen: boolean;
21
- isTableScalingEnabled?: boolean;
22
- mountPoint?: HTMLElement;
23
- pluginConfig?: PluginConfig;
24
- scrollableElement?: HTMLElement;
25
- stickyHeaders?: RowStickyState;
26
- tableNode?: PmNode;
27
- tableRef?: HTMLTableElement;
28
- tableWrapper?: HTMLElement;
29
- targetCellPosition?: number;
30
- }
31
- interface FloatingDragMenuFunction {
32
- (props: Props): React.JSX.Element | null;
33
- displayName: string;
34
- }
35
- declare const FloatingDragMenu: FloatingDragMenuFunction;
36
- export default FloatingDragMenu;
@@ -1,4 +0,0 @@
1
- import type { SerializedStyles } from '@emotion/react';
2
- export declare const cellColourPreviewStyles: (selectedColor: string) => SerializedStyles;
3
- export declare const dragMenuBackgroundColorStyles: () => SerializedStyles;
4
- export declare const toggleStyles: SerializedStyles;
@@ -1,18 +0,0 @@
1
- import type { SyntheticEvent } from 'react';
2
- import React from 'react';
3
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
4
- import type { TableDirection } from '../../types';
5
- interface ButtonProps {
6
- hasStickyHeaders: boolean;
7
- isChromelessEditor?: boolean;
8
- onMouseDown: (event: SyntheticEvent<HTMLButtonElement>) => void;
9
- tableRef: HTMLElement;
10
- type: TableDirection;
11
- }
12
- export declare const DragAndDropInsertButton: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
13
- WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
14
- };
15
- declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
16
- WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
17
- };
18
- export default _default_1;
@@ -1,4 +0,0 @@
1
- import type { PopupProps } from '@atlaskit/editor-common/ui';
2
- import type { TableDirection } from '../../types';
3
- declare function getPopupOptions(direction: TableDirection, index: number, hasNumberedColumns: boolean, tableContainer: HTMLElement | null): Partial<PopupProps>;
4
- export default getPopupOptions;
@@ -1,40 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
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 interface Props {
9
- api: PluginInjectionAPI | undefined | null;
10
- boundariesElement?: HTMLElement;
11
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
12
- editorAnalyticsAPI?: EditorAnalyticsAPI;
13
- editorView: EditorView;
14
- getEditorContainerWidth: GetEditorContainerWidth;
15
- getEditorFeatureFlags?: GetEditorFeatureFlags;
16
- hasStickyHeaders?: boolean;
17
- insertColumnButtonIndex?: number;
18
- insertRowButtonIndex?: number;
19
- isChromelessEditor?: boolean;
20
- isCommentEditor?: boolean;
21
- isHeaderColumnEnabled?: boolean;
22
- isHeaderRowEnabled?: boolean;
23
- isTableScalingEnabled?: boolean;
24
- mountPoint?: HTMLElement;
25
- scrollableElement?: HTMLElement;
26
- tableNode?: PmNode;
27
- tableRef?: HTMLElement;
28
- }
29
- export declare class FloatingInsertButton extends React.Component<Props & WrappedComponentProps, any> {
30
- static displayName: string;
31
- constructor(props: Props & WrappedComponentProps);
32
- render(): React.JSX.Element | null;
33
- private getCellPosition;
34
- private insertRow;
35
- private insertColumn;
36
- }
37
- declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
38
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
39
- };
40
- export default _default_1;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
4
- import type { PluginInjectionAPI } from '../../types';
5
- interface Props {
6
- api: PluginInjectionAPI | undefined | null;
7
- boundariesElement?: HTMLElement;
8
- editorView: EditorView;
9
- mountPoint?: HTMLElement;
10
- scrollableElement?: HTMLElement;
11
- stickyHeaders?: RowStickyState;
12
- tableWrapper?: HTMLElement;
13
- targetCellPosition?: number;
14
- }
15
- interface FloatingTableMenuFunction {
16
- (props: Props): React.JSX.Element | null;
17
- displayName: string;
18
- }
19
- /**
20
- * Row and column menu for table.
21
- */
22
- declare const FloatingTableMenu: FloatingTableMenuFunction;
23
- export default FloatingTableMenu;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- alignX?: 'left' | 'center' | 'right';
4
- alignY?: 'top' | 'bottom' | 'start';
5
- content: React.ReactNode;
6
- forcePlacement?: boolean;
7
- offset?: [
8
- number,
9
- number
10
- ];
11
- stick?: boolean;
12
- target: HTMLElement;
13
- zIndex?: number;
14
- }
15
- export declare const FloatingToolbarLabel: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
16
- export {};
@@ -1,9 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { TableSelectorPopupProps } from '@atlaskit/editor-common/ui';
4
- import type { TablePlugin } from '../../tablePluginType';
5
- interface SizeSelectorProps extends Omit<TableSelectorPopupProps, 'handleClickOutside' | 'onSelection' | 'unUnmount'> {
6
- api?: ExtractInjectionAPI<TablePlugin>;
7
- }
8
- export declare const SizeSelector: ({ api, target, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: SizeSelectorProps) => jsx.JSX.Element;
9
- export {};
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { CellHoverMeta, PluginInjectionAPI } from '../../../types';
4
- interface ColumnControlsProps {
5
- colWidths?: (number | undefined)[];
6
- editorView: EditorView;
7
- getScrollOffset?: () => number;
8
- hasHeaderColumn?: boolean;
9
- hoveredCell?: CellHoverMeta;
10
- isDragging?: boolean;
11
- isInDanger?: boolean;
12
- isNumberColumnEnabled?: boolean;
13
- isTableHovered?: boolean;
14
- localId?: string;
15
- rowHeights?: number[];
16
- stickyTop?: number;
17
- tableActive?: boolean;
18
- tableContainerWidth?: number;
19
- tableRef: HTMLTableElement;
20
- }
21
- export declare const ColumnControls: ({ editorView, tableActive, tableRef, hoveredCell, stickyTop, localId, isInDanger, rowHeights, colWidths, isTableHovered, tableContainerWidth, isNumberColumnEnabled, isDragging, getScrollOffset, api, }: ColumnControlsProps & {
22
- api?: PluginInjectionAPI;
23
- }) => React.JSX.Element;
24
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- height?: number;
4
- index: number;
5
- localId?: string;
6
- marginTop?: number;
7
- width?: number;
8
- }
9
- export declare const ColumnDropTarget: ({ index, localId, width, height, marginTop, }: Props) => React.JSX.Element;
10
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- colWidths?: (number | undefined)[];
4
- getScrollOffset?: () => number;
5
- isHeaderSticky?: boolean;
6
- localId?: string;
7
- tableHeight?: number;
8
- tableRef: HTMLTableElement;
9
- }
10
- export declare const ColumnDropTargets: ({ tableRef, tableHeight, localId, colWidths, isHeaderSticky, getScrollOffset, }: Props) => React.JSX.Element | null;
11
- export {};
@@ -1,33 +0,0 @@
1
- import React from 'react';
2
- import type { TableColumnOrdering } from '@atlaskit/custom-steps';
3
- import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
5
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
8
- import type { CellHoverMeta, PluginInjectionAPI } from '../../types';
9
- interface Props {
10
- api?: PluginInjectionAPI;
11
- editorView: EditorView;
12
- getEditorFeatureFlags: GetEditorFeatureFlags;
13
- getNode: () => PmNode;
14
- getScrollOffset?: () => number;
15
- hasHeaderRow?: boolean;
16
- headerRowHeight?: number;
17
- hoveredCell?: CellHoverMeta;
18
- hoveredRows?: number[];
19
- isChromelessEditor?: boolean;
20
- isInDanger?: boolean;
21
- isNumberColumnEnabled?: boolean;
22
- isResizing?: boolean;
23
- isTableHovered?: boolean;
24
- ordering?: TableColumnOrdering;
25
- selection?: Selection;
26
- stickyHeader?: RowStickyState;
27
- tableActive?: boolean;
28
- tableContainerWidth?: number;
29
- tableRef?: HTMLTableElement;
30
- tableWrapperHeight?: number;
31
- }
32
- declare const TableFloatingColumnControls: ({ editorView, tableRef, getNode, tableActive, hasHeaderRow, hoveredCell, isResizing, stickyHeader, selection, isInDanger, isTableHovered, tableContainerWidth, isNumberColumnEnabled, getScrollOffset, tableWrapperHeight, api, isChromelessEditor, }: Props) => React.JSX.Element | null;
33
- export default TableFloatingColumnControls;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { CornerControlProps } from './types';
4
- export declare const CornerControls: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
5
- WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
6
- };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import type { TablePlugin } from '../../../tablePluginType';
5
- import type { CornerControlProps } from './types';
6
- export declare const DragCornerControlsWithSelection: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps & {
7
- api?: ExtractInjectionAPI<TablePlugin>;
8
- }>> & {
9
- WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps & {
10
- api?: ExtractInjectionAPI<TablePlugin>;
11
- }>;
12
- };
13
- export declare const DragCornerControls: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
14
- WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
15
- };
@@ -1,11 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export type CornerControlProps = {
3
- editorView: EditorView;
4
- hoveredRows?: number[];
5
- isHeaderColumnEnabled?: boolean;
6
- isHeaderRowEnabled?: boolean;
7
- isInDanger?: boolean;
8
- isResizing?: boolean;
9
- stickyTop?: number;
10
- tableRef?: HTMLTableElement;
11
- };
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { TablePlugin } from '../../tablePluginType';
5
- type FloatingControlsWithSelectionProps = {
6
- api?: ExtractInjectionAPI<TablePlugin>;
7
- editorView: EditorView;
8
- hoveredRows?: number[];
9
- hoverRows: (rows: number[]) => void;
10
- isHeaderColumnEnabled?: boolean;
11
- isHeaderRowEnabled?: boolean;
12
- isInDanger?: boolean;
13
- isResizing?: boolean;
14
- selectRow: (row: number, expand: boolean) => void;
15
- stickyTop?: number;
16
- tableActive: boolean;
17
- tableRef: HTMLTableElement;
18
- };
19
- export declare const FloatingControlsWithSelection: ({ editorView, tableRef, isInDanger, isResizing, isHeaderRowEnabled, isHeaderColumnEnabled, hoveredRows, stickyTop, hoverRows, selectRow, tableActive, api, }: FloatingControlsWithSelectionProps) => React.JSX.Element;
20
- export {};
@@ -1,22 +0,0 @@
1
- import React, { Component } from 'react';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- interface Props {
4
- editorView: EditorView;
5
- hasHeaderRow?: boolean;
6
- hoveredRows?: number[];
7
- hoverRows: (rows: number[], danger?: boolean) => void;
8
- isDragAndDropEnabled?: boolean;
9
- isInDanger?: boolean;
10
- isResizing?: boolean;
11
- selectRow: (row: number, expand: boolean) => void;
12
- stickyTop?: number;
13
- tableActive?: boolean;
14
- tableRef: HTMLTableElement;
15
- updateCellHoverLocation: (rowIndex: number) => void;
16
- }
17
- export default class NumberColumn extends Component<Props, any> {
18
- render(): React.JSX.Element;
19
- private getCellStyles;
20
- private getClassNames;
21
- }
22
- export {};
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- export interface Props {
6
- editorView: EditorView;
7
- hoveredRows?: number[];
8
- hoverRows: (rows: number[], danger?: boolean) => void;
9
- insertRowButtonIndex?: number;
10
- isInDanger?: boolean;
11
- isResizing?: boolean;
12
- selection?: Selection;
13
- selectRow: (row: number, expand: boolean) => void;
14
- stickyTop?: number;
15
- tableRef: HTMLTableElement;
16
- }
17
- export declare const RowControls: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
18
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
19
- };
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { CellHoverMeta, PluginInjectionAPI } from '../../../types';
6
- type DragControlsProps = {
7
- api?: PluginInjectionAPI;
8
- editorView: EditorView;
9
- hoveredCell?: CellHoverMeta;
10
- hoverRows: (rows: number[], danger?: boolean) => void;
11
- isInDanger?: boolean;
12
- isResizing?: boolean;
13
- isTableHovered?: boolean;
14
- selection?: Selection;
15
- selectRow: (row: number, expand: boolean) => void;
16
- selectRows: (rowIndexes: number[]) => void;
17
- tableActive?: boolean;
18
- tableNode?: PmNode;
19
- tableRef: HTMLTableElement;
20
- tableWidth: number;
21
- updateCellHoverLocation: (rowIndex: number) => void;
22
- };
23
- export declare const DragControls: ({ tableRef, tableNode, tableWidth, hoveredCell, tableActive, editorView, isInDanger, isResizing, isTableHovered, hoverRows, selectRow, selectRows, updateCellHoverLocation, api, selection, }: DragControlsProps) => React.JSX.Element | null;
24
- export declare const DragControlsWithSelection: ({ editorView, tableRef, tableNode, tableWidth, tableActive, hoveredCell, isInDanger, isTableHovered, isResizing, hoverRows, selectRow, selectRows, updateCellHoverLocation, api, }: Exclude<DragControlsProps, "selection">) => React.JSX.Element;
25
- export {};