@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,544 +0,0 @@
1
- import type { IntlShape } from 'react-intl';
2
- import type { TableLayout } from '@atlaskit/adf-schema';
3
- import type { TableColumnOrdering } from '@atlaskit/custom-steps';
4
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
7
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
8
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
9
- import type { Rect } from '@atlaskit/editor-tables/table-map';
10
- import type { Edge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
11
- import type { RowStickyState } from '../pm-plugins/sticky-headers/types';
12
- import type { TablePlugin } from '../tablePluginType';
13
- export declare const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
14
- export type RowInsertPosition = 'TOP' | 'BOTTOM';
15
- /**
16
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6877 Internal documentation for deprecation (no external access)}
17
- **/
18
- export type PermittedLayoutsDescriptor = TableLayout[] | 'all';
19
- export type Cell = {
20
- node: PmNode;
21
- pos: number;
22
- start: number;
23
- };
24
- export type CellTransform = (cell: Cell) => (tr: Transaction) => Transaction;
25
- export interface InsertRowOptions {
26
- index: number;
27
- moveCursorToInsertedRow: boolean;
28
- }
29
- export type PluginInjectionAPI = ExtractInjectionAPI<TablePlugin>;
30
- export type PluginInjectionAPIWithA11y = ExtractInjectionAPI<TablePlugin> & {
31
- accessibilityUtils?: {
32
- actions: {
33
- ariaNotify: (message: string) => void | undefined;
34
- };
35
- };
36
- };
37
- export type TableSharedStateInternal = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'isMaxWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'wasMaxWidthModeEnabled' | 'isHeaderRowEnabled' | 'isHeaderColumnEnabled' | 'isNumberColumnEnabled' | 'isCommentEditor' | 'isTableScalingEnabled' | 'ordering' | 'isInDanger' | 'hoveredRows' | 'hoveredColumns' | 'hoveredCell' | 'isTableHovered' | 'tableNode' | 'widthToWidest' | 'tableRef' | 'tablePos' | 'targetCellPosition' | 'isContextualMenuOpen' | 'pluginConfig' | 'insertColumnButtonIndex' | 'insertRowButtonIndex' | 'tableWrapperTarget' | 'isCellMenuOpenByKeyboard' | 'activeTableMenu'> & {
38
- dragMenuDirection?: TableDirection;
39
- dragMenuIndex?: number;
40
- editorContentAreaHeight?: number;
41
- isDragMenuOpen?: boolean;
42
- isResizing: boolean;
43
- isSizeSelectorOpen?: boolean;
44
- isTableFixedColumnWidthsOptionEnabled?: boolean;
45
- isTableResizing?: boolean;
46
- isWholeTableInDanger?: boolean;
47
- resizingTableLocalId?: string;
48
- resizingTableRef?: HTMLTableElement;
49
- sizeSelectorTargetRef?: HTMLElement;
50
- stickyHeader?: RowStickyState;
51
- };
52
- export type TableSharedState = Pick<TablePluginState, 'isFullWidthModeEnabled' | 'wasFullWidthModeEnabled' | 'isMaxWidthModeEnabled' | 'wasMaxWidthModeEnabled'> & Pick<TableSharedStateInternal, 'editorContentAreaHeight'>;
53
- export type AlignmentOptions = 'center' | 'align-start';
54
- export type InsertRowMethods = INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.TABLE_CONTEXT_MENU;
55
- export interface PluginConfig {
56
- advanced?: boolean;
57
- allowAddColumnWithCustomStep?: boolean;
58
- allowBackgroundColor?: boolean;
59
- allowCollapse?: boolean;
60
- allowColumnResizing?: boolean;
61
- allowColumnSorting?: boolean;
62
- allowControls?: boolean;
63
- allowDistributeColumns?: boolean;
64
- allowFixedColumnWidthOption?: boolean;
65
- allowHeaderColumn?: boolean;
66
- allowHeaderRow?: boolean;
67
- allowMergeCells?: boolean;
68
- allowNestedTables?: boolean;
69
- allowNumberColumn?: boolean;
70
- allowTableAlignment?: boolean;
71
- allowTableResizing?: boolean;
72
- isHeaderRowRequired?: boolean;
73
- /**
74
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-6877 Internal documentation for deprecation (no external access)}
75
- **/
76
- permittedLayouts?: PermittedLayoutsDescriptor;
77
- stickyHeaders?: boolean;
78
- }
79
- export type { ColumnResizingPluginState } from '@atlaskit/editor-common/types';
80
- export type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
81
- export interface CellHoverMeta {
82
- colIndex?: number;
83
- rowIndex?: number;
84
- }
85
- export interface WidthToWidest {
86
- [tableLocalId: string]: boolean;
87
- }
88
- export type ActiveTableMenu = {
89
- type: 'none';
90
- } | {
91
- openedBy: 'mouse' | 'keyboard';
92
- type: 'cell';
93
- } | {
94
- index: number;
95
- openedBy: 'mouse' | 'keyboard';
96
- type: 'row';
97
- } | {
98
- index: number;
99
- openedBy: 'mouse' | 'keyboard';
100
- type: 'column';
101
- };
102
- export interface TablePluginState {
103
- activeTableMenu?: ActiveTableMenu;
104
- canCollapseTable?: boolean;
105
- editorHasFocus?: boolean;
106
- editorViewportHeight?: number;
107
- getIntl: () => IntlShape;
108
- hoveredCell: CellHoverMeta;
109
- hoveredColumns: number[];
110
- hoveredRows: number[];
111
- insertColumnButtonIndex?: number;
112
- insertRowButtonIndex?: number;
113
- isCellMenuOpenByKeyboard?: boolean;
114
- isChromelessEditor?: boolean;
115
- isCommentEditor?: boolean;
116
- isContextualMenuOpen?: boolean;
117
- isFullWidthModeEnabled?: boolean;
118
- isHeaderColumnEnabled: boolean;
119
- isHeaderRowEnabled: boolean;
120
- isInDanger?: boolean;
121
- isKeyboardResize?: boolean;
122
- isMaxWidthModeEnabled?: boolean;
123
- isNumberColumnEnabled?: boolean;
124
- isResizeHandleWidgetAdded?: boolean;
125
- isTableCollapsed?: boolean;
126
- isTableHovered?: boolean;
127
- isTableScalingEnabled?: boolean;
128
- isWholeTableInDanger?: boolean;
129
- ordering?: TableColumnOrdering;
130
- pluginConfig: PluginConfig;
131
- resizeHandleColumnIndex?: number;
132
- resizeHandleIncludeTooltip?: boolean;
133
- resizeHandleRowIndex?: number;
134
- tableNode?: PmNode;
135
- tablePos?: number;
136
- tableRef?: HTMLTableElement;
137
- tableWrapperTarget?: HTMLElement;
138
- targetCellPosition?: number;
139
- wasFullWidthModeEnabled?: boolean;
140
- wasMaxWidthModeEnabled?: boolean;
141
- widthToWidest?: WidthToWidest;
142
- }
143
- export type TablePluginAction = {
144
- data: {
145
- editorHasFocus: boolean;
146
- };
147
- type: 'SET_EDITOR_FOCUS';
148
- } | {
149
- type: 'TOGGLE_HEADER_ROW';
150
- } | {
151
- type: 'TOGGLE_HEADER_COLUMN';
152
- } | {
153
- data: {
154
- ordering: TableColumnOrdering;
155
- };
156
- type: 'SORT_TABLE';
157
- } | {
158
- data: {
159
- isHeaderColumnEnabled: boolean;
160
- isHeaderRowEnabled: boolean;
161
- tableNode?: PmNode;
162
- tableRef?: HTMLTableElement;
163
- tableWrapperTarget?: HTMLElement;
164
- };
165
- type: 'SET_TABLE_REF';
166
- } | {
167
- data: {
168
- decorationSet: DecorationSet;
169
- hoveredRows: number[];
170
- isInDanger?: boolean;
171
- };
172
- type: 'HOVER_ROWS';
173
- } | {
174
- data: {
175
- decorationSet: DecorationSet;
176
- };
177
- type: 'HOVER_MERGED_CELLS';
178
- } | {
179
- data: {
180
- decorationSet: DecorationSet;
181
- hoveredColumns: number[];
182
- isInDanger?: boolean;
183
- };
184
- type: 'HOVER_COLUMNS';
185
- } | {
186
- data: {
187
- decorationSet: DecorationSet;
188
- hoveredColumns: number[];
189
- hoveredRows: number[];
190
- isInDanger?: boolean;
191
- };
192
- type: 'HOVER_TABLE';
193
- } | {
194
- data: {
195
- decorationSet: DecorationSet;
196
- isKeyboardResize?: boolean;
197
- resizeHandleColumnIndex: number;
198
- resizeHandleIncludeTooltip: boolean;
199
- resizeHandleRowIndex: number;
200
- };
201
- type: 'START_KEYBOARD_COLUMN_RESIZE';
202
- } | {
203
- data: {
204
- decorationSet: DecorationSet;
205
- isKeyboardResize?: boolean;
206
- resizeHandleColumnIndex: number;
207
- resizeHandleIncludeTooltip: boolean;
208
- resizeHandleRowIndex: number;
209
- };
210
- type: 'ADD_RESIZE_HANDLE_DECORATIONS';
211
- } | {
212
- data: {
213
- decorationSet: DecorationSet;
214
- resizeHandleColumnIndex: number | undefined;
215
- resizeHandleIncludeTooltip: boolean | undefined;
216
- resizeHandleRowIndex: number | undefined;
217
- };
218
- type: 'UPDATE_RESIZE_HANDLE_DECORATIONS';
219
- } | {
220
- data: {
221
- widthToWidest: WidthToWidest | undefined;
222
- };
223
- type: 'UPDATE_TABLE_WIDTH_TO_WIDEST';
224
- } | {
225
- data: {
226
- decorationSet: DecorationSet;
227
- };
228
- type: 'REMOVE_RESIZE_HANDLE_DECORATIONS';
229
- } | {
230
- data: {
231
- decorationSet: DecorationSet;
232
- };
233
- type: 'STOP_KEYBOARD_COLUMN_RESIZE';
234
- } | {
235
- data: {
236
- decorationSet: DecorationSet;
237
- };
238
- type: 'CLEAR_HOVER_SELECTION';
239
- } | {
240
- data: {
241
- decorationSet: DecorationSet;
242
- };
243
- type: 'SHOW_RESIZE_HANDLE_LINE';
244
- } | {
245
- data: {
246
- decorationSet: DecorationSet;
247
- };
248
- type: 'HIDE_RESIZE_HANDLE_LINE';
249
- } | {
250
- data: {
251
- hoveredCell: CellHoverMeta;
252
- };
253
- type: 'HOVER_CELL';
254
- } | {
255
- data: {
256
- isTableHovered: boolean;
257
- };
258
- type: 'TABLE_HOVERED';
259
- } | {
260
- data: {
261
- targetCellPosition?: number;
262
- };
263
- type: 'SET_TARGET_CELL_POSITION';
264
- } | {
265
- data: {
266
- decorationSet: DecorationSet;
267
- targetCellPosition: number;
268
- };
269
- type: 'SELECT_COLUMN';
270
- } | {
271
- data: {
272
- insertRowButtonIndex: number;
273
- };
274
- type: 'SHOW_INSERT_ROW_BUTTON';
275
- } | {
276
- data: {
277
- insertColumnButtonIndex: number;
278
- };
279
- type: 'SHOW_INSERT_COLUMN_BUTTON';
280
- } | {
281
- type: 'HIDE_INSERT_COLUMN_OR_ROW_BUTTON';
282
- } | {
283
- type: 'TOGGLE_CONTEXTUAL_MENU';
284
- } | {
285
- data: {
286
- activeTableMenu: ActiveTableMenu;
287
- };
288
- type: 'SET_ACTIVE_TABLE_MENU';
289
- } | {
290
- data: {
291
- isCellMenuOpenByKeyboard: boolean;
292
- };
293
- type: 'SET_CELL_MENU_OPEN';
294
- } | {
295
- data: {
296
- editorViewportHeight: number;
297
- };
298
- type: 'UPDATE_EDITOR_VIEWPORT_HEIGHT';
299
- };
300
- export type ColumnResizingPluginAction = {
301
- data: {
302
- resizeHandlePos: number | null;
303
- };
304
- type: 'SET_RESIZE_HANDLE_POSITION';
305
- } | {
306
- type: 'STOP_RESIZING';
307
- } | {
308
- data: {
309
- dragging: {
310
- startWidth: number;
311
- startX: number;
312
- } | null;
313
- };
314
- type: 'SET_DRAGGING';
315
- } | {
316
- data: {
317
- lastClick: {
318
- time: number;
319
- x: number;
320
- y: number;
321
- } | null;
322
- };
323
- type: 'SET_LAST_CLICK';
324
- };
325
- export declare enum TableDecorations {
326
- /** Classic controls */
327
- ALL_CONTROLS_HOVER = "CONTROLS_HOVER",
328
- ROW_CONTROLS_HOVER = "ROW_CONTROLS_HOVER",
329
- COLUMN_CONTROLS_HOVER = "COLUMN_CONTROLS_HOVER",
330
- TABLE_CONTROLS_HOVER = "TABLE_CONTROLS_HOVER",
331
- CELL_CONTROLS_HOVER = "CELL_CONTROLS_HOVER",
332
- COLUMN_CONTROLS_DECORATIONS = "COLUMN_CONTROLS_DECORATIONS",
333
- COLUMN_DROP_TARGET_DECORATIONS = "COLUMN_DROP_TARGET_DECORATIONS",
334
- COLUMN_SELECTED = "COLUMN_SELECTED",
335
- COLUMN_RESIZING_HANDLE = "COLUMN_RESIZING_HANDLE",
336
- COLUMN_RESIZING_HANDLE_WIDGET = "COLUMN_RESIZING_HANDLE_WIDGET",
337
- COLUMN_RESIZING_HANDLE_LINE = "COLUMN_RESIZING_HANDLE_LINE",
338
- COLUMN_INSERT_LINE = "COLUMN_INSERT_LINE",
339
- ROW_INSERT_LINE = "ROW_INSERT_LINE"
340
- }
341
- export declare const TableCssClassName: {
342
- ACTIVE_CURSOR_CELL: string;
343
- /** Classic controls */
344
- COLUMN_CONTROLS: string;
345
- COLUMN_CONTROLS_DECORATIONS: string;
346
- COLUMN_SELECTED: string;
347
- CONTEXTUAL_MENU_BUTTON: string;
348
- CONTEXTUAL_MENU_BUTTON_FIXED: string;
349
- CONTEXTUAL_MENU_BUTTON_WRAP: string;
350
- CONTEXTUAL_MENU_ICON_SMALL: string;
351
- CONTEXTUAL_SUBMENU: string;
352
- CONTROLS_BUTTON: string;
353
- CONTROLS_BUTTON_ICON: string;
354
- CONTROLS_BUTTON_OVERLAY: string;
355
- CONTROLS_CORNER_BUTTON: string;
356
- CONTROLS_DELETE_BUTTON: string;
357
- CONTROLS_DELETE_BUTTON_WRAP: string;
358
- CONTROLS_FLOATING_BUTTON_COLUMN: string;
359
- CONTROLS_FLOATING_BUTTON_ROW: string;
360
- CONTROLS_INSERT_BUTTON: string;
361
- CONTROLS_INSERT_BUTTON_INNER: string;
362
- CONTROLS_INSERT_BUTTON_WRAP: string;
363
- CONTROLS_INSERT_COLUMN: string;
364
- CONTROLS_INSERT_LINE: string;
365
- CONTROLS_INSERT_MARKER: string;
366
- CONTROLS_INSERT_ROW: string;
367
- CORNER_CONTROLS: string;
368
- CORNER_CONTROLS_INSERT_COLUMN_MARKER: string;
369
- CORNER_CONTROLS_INSERT_ROW_MARKER: string;
370
- DRAG_COLUMN_CONTROLS: string;
371
- DRAG_COLUMN_CONTROLS_INNER: string;
372
- DRAG_COLUMN_CONTROLS_WRAPPER: string;
373
- DRAG_COLUMN_DROP_TARGET_CONTROLS: string;
374
- DRAG_COLUMN_FLOATING_INSERT_DOT: string;
375
- DRAG_COLUMN_FLOATING_INSERT_DOT_WRAPPER: string;
376
- DRAG_CONTROLS_INSERT_BUTTON: string;
377
- DRAG_CONTROLS_INSERT_BUTTON_INNER: string;
378
- DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN: string;
379
- DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW: string;
380
- DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS: string;
381
- DRAG_CONTROLS_INSERT_BUTTON_WRAP: string;
382
- DRAG_CORNER_BUTTON: string;
383
- DRAG_CORNER_BUTTON_INNER: string;
384
- DRAG_HANDLE_BUTTON_CLICKABLE_ZONE: string;
385
- DRAG_HANDLE_BUTTON_CONTAINER: string;
386
- /** disabled classes */
387
- DRAG_HANDLE_DISABLED: string;
388
- /** minimised handle class */
389
- DRAG_HANDLE_MINIMISED: string;
390
- DRAG_ROW_CONTROLS: string;
391
- /** drag and drop controls */
392
- DRAG_ROW_CONTROLS_WRAPPER: string;
393
- DRAG_ROW_FLOATING_DRAG_HANDLE: string;
394
- DRAG_ROW_FLOATING_INSERT_DOT: string;
395
- DRAG_ROW_FLOATING_INSERT_DOT_WRAPPER: string;
396
- DRAG_SUBMENU: string;
397
- DRAG_SUBMENU_ICON: string;
398
- HOVERED_CELL: string;
399
- HOVERED_CELL_ACTIVE: string;
400
- HOVERED_CELL_IN_DANGER: string;
401
- HOVERED_CELL_WARNING: string;
402
- HOVERED_COLUMN: string;
403
- HOVERED_DELETE_BUTTON: string;
404
- HOVERED_NO_HIGHLIGHT: string;
405
- HOVERED_ROW: string;
406
- HOVERED_TABLE: string;
407
- IS_RESIZING: string;
408
- NATIVE_STICKY: string;
409
- NATIVE_STICKY_ACTIVE: string;
410
- /** nested tables classes */
411
- NESTED_TABLE_WITH_CONTROLS: string;
412
- NO_OVERFLOW: string;
413
- NODEVIEW_WRAPPER: string;
414
- /** Other classes */
415
- NUMBERED_COLUMN: string;
416
- NUMBERED_COLUMN_BUTTON: string;
417
- NUMBERED_COLUMN_BUTTON_DISABLED: string;
418
- RESIZE_CURSOR: string;
419
- RESIZE_HANDLE_DECORATION: string;
420
- RESIZING_PLUGIN: string;
421
- ROW_CONTROLS: string;
422
- ROW_CONTROLS_BUTTON: string;
423
- ROW_CONTROLS_BUTTON_WRAP: string;
424
- ROW_CONTROLS_INNER: string;
425
- ROW_CONTROLS_WRAPPER: string;
426
- SELECTED_CELL: string;
427
- TABLE_CELL: 'pm-table-cell-content-wrap';
428
- TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
429
- TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
430
- TABLE_CHROMELESS: string;
431
- TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
432
- TABLE_CONTAINER: 'pm-table-container';
433
- TABLE_CORNER_MASK: 'pm-table-corner-mask';
434
- TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
435
- TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
436
- TABLE_LEFT_BORDER: 'pm-table-left-border';
437
- TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
438
- TABLE_NODE_WRAPPER: 'pm-table-wrapper';
439
- TABLE_NODE_WRAPPER_NO_OVERFLOW: 'pm-table-wrapper-no-overflow';
440
- TABLE_RESIZER_CONTAINER: 'pm-table-resizer-container';
441
- TABLE_RIGHT_BORDER: 'pm-table-right-border';
442
- TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
443
- TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
444
- TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
445
- TABLE_SELECTED: string;
446
- TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
447
- TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
448
- TABLE_STICKY: string;
449
- TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
450
- TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
451
- TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
452
- TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
453
- TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
454
- TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
455
- TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
456
- TABLE_VIEW_CONTENT_WRAP: 'tableView-content-wrap';
457
- TOP_LEFT_CELL: string;
458
- WITH_COLUMN_INSERT_LINE: string;
459
- WITH_COLUMN_INSERT_LINE_INACTIVE: string;
460
- WITH_CONTROLS: string;
461
- WITH_DRAG_RESIZE_LINE: string;
462
- WITH_DRAG_RESIZE_LINE_LAST_COLUMN: string;
463
- WITH_FIRST_COLUMN_INSERT_LINE: string;
464
- WITH_FIRST_COLUMN_INSERT_LINE_INACTIVE: string;
465
- WITH_LAST_COLUMN_INSERT_LINE: string;
466
- WITH_LAST_COLUMN_INSERT_LINE_INACTIVE: string;
467
- WITH_LAST_ROW_INSERT_LINE: string;
468
- WITH_LAST_ROW_INSERT_LINE_INACTIVE: string;
469
- WITH_RESIZE_LINE: string;
470
- WITH_RESIZE_LINE_LAST_COLUMN: string;
471
- WITH_ROW_INSERT_LINE: string;
472
- WITH_ROW_INSERT_LINE_INACTIVE: string;
473
- };
474
- export interface ToolbarMenuConfig {
475
- allowCollapse?: boolean;
476
- allowHeaderColumn?: boolean;
477
- allowHeaderRow?: boolean;
478
- allowNumberColumn?: boolean;
479
- }
480
- export interface ToolbarMenuState {
481
- canCollapseTable?: boolean;
482
- isHeaderColumnEnabled?: boolean;
483
- isHeaderRowEnabled?: boolean;
484
- isNumberColumnEnabled?: boolean;
485
- isTableCollapsed?: boolean;
486
- }
487
- export interface ToolbarMenuContext {
488
- formatMessage: IntlShape['formatMessage'];
489
- }
490
- export declare enum ShadowEvent {
491
- SHOW_BEFORE_SHADOW = "showBeforeShadow",
492
- SHOW_AFTER_SHADOW = "showAfterShadow"
493
- }
494
- export type ReportInvalidNodeAttrs = (invalidNodeAttrs: InvalidNodeAttr) => void;
495
- export type InvalidNodeAttr = {
496
- attribute: string;
497
- nodeType: string;
498
- reason: string;
499
- spanValue: number;
500
- tableLocalId: string;
501
- };
502
- export type TableDirection = 'row' | 'column';
503
- /**
504
- * Drag and Drop interfaces
505
- */
506
- export type DraggableType = 'table-row' | 'table-column';
507
- export type DraggableBehaviour = 'move' | 'clone';
508
- export interface DraggableSourceData extends Record<string, unknown> {
509
- indexes: number[];
510
- localId: string;
511
- type: DraggableType;
512
- }
513
- export interface DraggableTargetData extends Record<string | symbol, unknown> {
514
- localId: string;
515
- targetIndex: number;
516
- type: DraggableType;
517
- }
518
- export interface DraggableData {
519
- behaviour: DraggableBehaviour;
520
- /**
521
- * This represents a hollistic movement direction; a value of 1 means the source->target index would shift in a positive direction.
522
- * A value of 0 indicates that the target index is inside the the source indexes.
523
- */
524
- direction: 1 | -1 | 0;
525
- sourceIndexes: number[];
526
- sourceLocalId: string;
527
- sourceType: DraggableType;
528
- targetAdjustedIndex: number;
529
- targetClosestEdge: Edge;
530
- /**
531
- * The target direction identifies where relative to the target index is the item being dropped. A value of 'start' would
532
- * mean that the item is being inserted before the index, and 'end would be after.
533
- */
534
- targetDirection: 'start' | 'end';
535
- targetIndex: number;
536
- targetLocalId: string;
537
- targetType: DraggableType;
538
- }
539
- export type HandleTypes = 'hover' | 'selected';
540
- export interface MessageDescriptor {
541
- defaultMessage: string;
542
- description: string;
543
- id: string;
544
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- type Props = {
7
- endIndex: number;
8
- includeTooltip?: boolean;
9
- startIndex: number;
10
- };
11
- export declare const ColumnResizeWidget: ({ startIndex, endIndex, includeTooltip, }: Props) => jsx.JSX.Element;
12
- export {};
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
- import type { ExtractInjectionAPI, GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { TablePlugin, TablePluginOptions } from '../tablePluginType';
6
- export type ContentComponentProps = {
7
- api: ExtractInjectionAPI<TablePlugin> | undefined;
8
- defaultGetEditorContainerWidth: GetEditorContainerWidth;
9
- defaultGetEditorFeatureFlags: GetEditorFeatureFlags;
10
- dispatchAnalyticsEvent: DispatchAnalyticsEvent | undefined;
11
- editorView?: EditorView;
12
- isTableSelectorEnabled: boolean | undefined;
13
- options?: TablePluginOptions;
14
- popupsBoundariesElement?: HTMLElement;
15
- popupsMountPoint?: HTMLElement;
16
- popupsScrollableElement?: HTMLElement;
17
- };
18
- export declare const ContentComponent: ({ api, editorView, dispatchAnalyticsEvent, options, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, isTableSelectorEnabled, defaultGetEditorContainerWidth, defaultGetEditorFeatureFlags, }: ContentComponentProps) => React.JSX.Element;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- type HandleIconProps = {
3
- forceDefaultHandle: boolean;
4
- hasMergedCells: boolean;
5
- isHandleHovered: boolean;
6
- };
7
- export declare const HandleIconComponent: (props: HandleIconProps) => React.JSX.Element;
8
- export {};
@@ -1,29 +0,0 @@
1
- import type { MouseEventHandler, FocusEventHandler } from 'react';
2
- import React from 'react';
3
- import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { TriggerType } from '../../pm-plugins/drag-and-drop/types';
6
- import type { CellHoverMeta, TableDirection } from '../../types';
7
- export type DragHandleAppearance = 'default' | 'selected' | 'disabled' | 'danger' | 'placeholder';
8
- type DragHandleProps = {
9
- appearance?: DragHandleAppearance;
10
- direction?: TableDirection;
11
- editorView: EditorView;
12
- forceDefaultHandle?: boolean;
13
- hoveredCell?: CellHoverMeta;
14
- indexes: number[];
15
- isDragMenuTarget: boolean;
16
- onBlur?: FocusEventHandler;
17
- onClick?: MouseEventHandler;
18
- onFocus?: FocusEventHandler;
19
- onMouseOut?: MouseEventHandler;
20
- onMouseOver?: MouseEventHandler;
21
- previewHeight?: number;
22
- previewWidth?: number;
23
- tableLocalId: string;
24
- toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
25
- };
26
- export declare const DragHandle: React.FC<WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
27
- WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
28
- };
29
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { TableDirection } from '../../types';
3
- export declare const DragPreview: ({ direction, width, height, }: {
4
- direction: TableDirection;
5
- height: number;
6
- width: number;
7
- }) => React.JSX.Element;
@@ -1,13 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- import type { Command, FloatingToolbarItem } from '@atlaskit/editor-common/types';
7
- type Props = {
8
- alignmentButtons: FloatingToolbarItem<Command>[];
9
- areAnyNewToolbarFlagsEnabled: boolean;
10
- dispatchCommand: (command: Command) => void;
11
- };
12
- export declare const FloatingAlignmentButtons: ({ alignmentButtons, dispatchCommand, areAnyNewToolbarFlagsEnabled, }: Props) => jsx.JSX.Element;
13
- export {};
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
3
- interface Props {
4
- children: React.ReactNode;
5
- isContextualMenuOpen: boolean | undefined;
6
- mountTo: HTMLElement;
7
- offset: number;
8
- stickyHeader: RowStickyState;
9
- tableWrapper: HTMLElement;
10
- targetCellPosition: number;
11
- targetCellRef: HTMLElement;
12
- }
13
- interface CalcLeftPosData {
14
- buttonWidth: number;
15
- cellRectLeft: number;
16
- cellRefWidth: number;
17
- offset: number;
18
- }
19
- export declare const calcLeftPos: ({ buttonWidth, cellRectLeft, cellRefWidth, offset, }: CalcLeftPosData) => number;
20
- export declare const calcObserverTargetMargin: (tableWrapper: HTMLElement, fixedButtonRefCurrent: HTMLElement) => number;
21
- export declare const FixedButton: ({ children, isContextualMenuOpen, mountTo, offset, stickyHeader, tableWrapper, targetCellPosition, targetCellRef, }: Props) => React.ReactPortal;
22
- export default FixedButton;
@@ -1,22 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { RowStickyState } from '../../pm-plugins/sticky-headers/types';
5
- import { type PluginInjectionAPI } from '../../types';
6
- export interface Props {
7
- api?: PluginInjectionAPI | null;
8
- boundariesElement?: HTMLElement;
9
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
10
- editorView: EditorView;
11
- isCellMenuOpenByKeyboard?: boolean;
12
- isContextualMenuOpen?: boolean;
13
- isDragAndDropEnabled?: boolean;
14
- isNumberColumnEnabled?: boolean;
15
- mountPoint?: HTMLElement;
16
- scrollableElement?: HTMLElement;
17
- stickyHeader?: RowStickyState;
18
- tableNode?: PMNode;
19
- tableWrapper?: HTMLElement;
20
- targetCellPosition: number;
21
- }
22
- export default function (props: Props): JSX.Element;
@@ -1,3 +0,0 @@
1
- import { type SerializedStyles } from '@emotion/react';
2
- export declare const tableFloatingCellButtonStyles: () => SerializedStyles;
3
- export declare const tableFloatingCellButtonSelectedStyles: () => SerializedStyles;