@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,17 +0,0 @@
1
- export type RowStickyState = {
2
- padding: number;
3
- pos: number;
4
- sticky: boolean;
5
- top: number;
6
- };
7
- export type StickyPluginState = RowStickyState[];
8
- type UpdateSticky = {
9
- name: 'UPDATE';
10
- state: RowStickyState;
11
- };
12
- type RemoveSticky = {
13
- name: 'REMOVE';
14
- pos: number;
15
- };
16
- export type StickyPluginAction = UpdateSticky | RemoveSticky;
17
- export {};
@@ -1,2 +0,0 @@
1
- import type { RowStickyState, StickyPluginState } from './types';
2
- export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) => RowStickyState | undefined;
@@ -1,11 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- export declare const META_KEYS: {
5
- OVERFLOW_TRIGGER: string;
6
- OVERFLOW_STATE_CHANGED: string;
7
- };
8
- declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, tableResizingEnabled: boolean) => SafePlugin<{
9
- lastTrigger: undefined;
10
- }>;
11
- export { createPlugin };
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- export declare const pluginKey: PluginKey;
5
- export declare const createPlugin: () => SafePlugin<DecorationSet>;
@@ -1,10 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- interface TableLocalIdPluginState {
4
- parsedForLocalIds: boolean;
5
- }
6
- /**
7
- * Ensures uniqueness of `localId`s on tables being created or edited
8
- */
9
- declare const createPlugin: (dispatch: Dispatch) => SafePlugin<TableLocalIdPluginState>;
10
- export { createPlugin };
@@ -1,20 +0,0 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
5
- import type { PluginInjectionAPI } from '../../types';
6
- import type { ResizeState } from './utils/types';
7
- export declare const evenColumns: ({ resizeState, table, start, event, api, }: {
8
- api: PluginInjectionAPI | undefined | null;
9
- event: MouseEvent;
10
- resizeState: ResizeState;
11
- start: number;
12
- table: PMNode;
13
- }) => Command;
14
- export declare const distributeColumnsWidths: (newResizeState: ResizeState, table: ContentNodeWithPos, api: PluginInjectionAPI | undefined | null) => Command;
15
- export declare const setResizeHandlePos: (resizeHandlePos: number | null) => Command;
16
- export declare const stopResizing: (tr?: Transaction) => Command;
17
- export declare const setDragging: (dragging: {
18
- startWidth: number;
19
- startX: number;
20
- } | null, tr?: Transaction) => Command;
@@ -1,6 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { PluginInjectionAPI } from '../../types';
6
- export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, isTableScalingEnabled: boolean, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI?: EditorAnalyticsAPI, isCommentEditor?: boolean) => boolean;
@@ -1,7 +0,0 @@
1
- import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
3
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
4
- import type { Command } from '@atlaskit/editor-common/types';
5
- export declare const createCommand: <A = ColumnResizingPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
6
- export declare const createPluginState: (dispatch: Dispatch, initialState: ColumnResizingPluginState | ((state: EditorState) => ColumnResizingPluginState)) => SafeStateField<ColumnResizingPluginState>;
7
- export declare const getPluginState: (state: EditorState) => ColumnResizingPluginState;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { ColumnResizingPluginState } from '../../types';
3
- export declare const pluginKey: PluginKey<ColumnResizingPluginState>;
@@ -1,7 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
6
- import type { ColumnResizingPluginState, PluginInjectionAPI } from '../../types';
7
- export declare function createPlugin(dispatch: Dispatch<ColumnResizingPluginState>, { lastColumnResizable }: ColumnResizingPluginState, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isCommentEditor?: boolean): SafePlugin<ColumnResizingPluginState>;
@@ -1,3 +0,0 @@
1
- import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
2
- declare const _default: (pluginState: ColumnResizingPluginState, action: ColumnResizingPluginAction) => ColumnResizingPluginState;
3
- export default _default;
@@ -1,26 +0,0 @@
1
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
- type Col = Array<string | {
3
- [name: string]: string;
4
- }>;
5
- /**
6
- * This ensures the combined width of the columns (and tbody) of table is always smaller or equal
7
- * than the table and table wrapper elements. This is necessary as there is no longer
8
- * padding on the .pm-table-wrapper, so all elements need to be the same width to avoid
9
- * overflow.
10
- */
11
- export declare const getColWidthFix: (colwidth: number, tableColumnCount: number) => number;
12
- export declare const generateColgroupFromNode: (table: PmNode, isCommentEditor?: boolean, isChromelessEditor?: boolean, isNested?: boolean, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Col[];
13
- export declare const generateColgroup: (table: PmNode, tableRef?: HTMLElement, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => Col[];
14
- export declare const insertColgroupFromNode: (tableRef: HTMLTableElement | null, table: PmNode, isTableScalingEnabled?: boolean, shouldRemove?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => HTMLCollection;
15
- export declare const hasTableBeenResized: (table: PmNode) => boolean;
16
- export declare const hasTableColumnBeenResized: (table: PmNode) => boolean;
17
- /**
18
- * Check if a table has all the column width set to tableCellMinWidth(48px) or null
19
- *
20
- * @param table
21
- * @returns true if all column width is equal to tableCellMinWidth or null, false otherwise
22
- */
23
- export declare const isMinCellWidthTable: (table: PmNode) => boolean;
24
- export declare const getColgroupChildrenLength: (table: PmNode) => number;
25
- export declare const getResizerMinWidth: (node: PmNode) => number;
26
- export {};
@@ -1,14 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- export interface ColumnState {
3
- index: number;
4
- minWidth: number;
5
- width: number;
6
- }
7
- export declare const getColumnStateFromDOM: (cells: HTMLElement[], index: number, minWidth: number) => ColumnState;
8
- export declare const getFreeSpace: (state: ColumnState) => number;
9
- export declare const getCellsRefsInColumn: (columnIndex: number, table: PMNode, tableStart: number, domAtPos: (pos: number) => {
10
- node: Node;
11
- offset: number;
12
- }) => HTMLElement[];
13
- export declare const calculateColumnWidth: (cells: HTMLElement[], calculateColumnWidthCb: (css: CSSStyleDeclaration, cellRef: HTMLElement, colSpan: number) => number) => number;
14
- export declare const addContainerLeftRightPadding: (amount: number, css: CSSStyleDeclaration) => number;
@@ -1,9 +0,0 @@
1
- export declare const COLUMN_MIN_WIDTH = 48;
2
- export declare const TABLE_FULL_WIDTH = 1800;
3
- export declare const TABLE_MAX_WIDTH = 4000;
4
- export declare const FULL_WIDTH_EDITOR_CONTENT_WIDTH = 1800;
5
- export declare const MAX_SCALING_PERCENT = 0.3;
6
- export declare const MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION = 0.4;
7
- export declare const TABLE_EDITOR_MARGIN = 76;
8
- export declare const TABLE_OFFSET_IN_COMMENT_EDITOR: number;
9
- export declare const RESIZE_HANDLE_SPACING = 12;
@@ -1,4 +0,0 @@
1
- export declare function contentWidth(elem: HTMLElement, container: HTMLElement, colWidths?: number[], canvas?: HTMLCanvasElement): {
2
- minWidth: number;
3
- width: number;
4
- };
@@ -1,11 +0,0 @@
1
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- export declare const updateControls: () => (state: EditorState) => void;
4
- export declare const isClickNear: (event: MouseEvent, click: {
5
- x: number;
6
- y: number;
7
- }) => boolean;
8
- export declare const getResizeCellPos: (view: EditorView, event: MouseEvent) => number | null;
9
- export declare const updateStickyMargins: (table: HTMLElement) => void;
10
- export declare const syncStickyRowToTable: (tableRef?: HTMLElement | null) => void;
11
- export declare const clearStickyCornerMaskPositions: (tableRef?: HTMLElement | null) => void;
@@ -1,69 +0,0 @@
1
- import type { CellAttributes } from '@atlaskit/adf-schema';
2
- import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
3
- import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
4
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { TableOptions } from '../../../nodeviews/types';
7
- export declare function getLayoutSize(tableLayout: 'default' | 'wide' | 'full-width', containerWidth: number | undefined, options: TableOptions): number;
8
- export declare function pointsAtCell($pos: ResolvedPos): false | PMNode | null;
9
- export declare function currentColWidth(view: EditorView, cellPos: number, { colspan, colwidth }: CellAttributes): number;
10
- interface getTableMaxWidthProps {
11
- getEditorContainerWidth: GetEditorContainerWidth;
12
- layout: 'default' | 'wide' | 'full-width';
13
- state: EditorState;
14
- table: PMNode;
15
- tableStart: number;
16
- }
17
- export declare const getTableMaxWidth: ({ table, tableStart, state, layout, getEditorContainerWidth, }: getTableMaxWidthProps) => number;
18
- /**
19
- *
20
- * @param table
21
- * @returns calculated width of <table /> element derived from sum of colwidths on tableCell or tableHeader nodes or falls back to container width
22
- */
23
- export declare const getTableElementWidth: (table: PMNode) => number;
24
- export declare const getTableContainerElementWidth: (table: PMNode) => number;
25
- /**
26
- * This function is used to set the max width for table resizer container.
27
- * @param isCommentEditor Whether the editor is in comment mode.
28
- * @param isChromelessEditor Whether the editor is chromeless.
29
- * @param isTableScalingEnabled Whether table scaling is enabled.
30
- * @returns The CSS max-width value
31
- */
32
- export declare const getTableResizerContainerMaxWidthInCSS: (isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableScalingEnabled?: boolean) => string;
33
- /**
34
- * This function is used in NodeView for TableResizer to set the max width for table resizer container
35
- * @param node The ProseMirror node representing the table.
36
- * @param isCommentEditor Whether the editor is in comment mode.
37
- * @param isChromelessEditor Whether the editor is chromeless.
38
- * @returns The CSS max-width value for the table resizer container.
39
- */
40
- export declare const getTableResizerItemWidth: (node: PMNode, isCommentEditor?: boolean, isChromelessEditor?: boolean) => number | undefined;
41
- /**
42
- * This function is used to set the CSS width value for the table resizer-item.
43
- * Because comment and chromeless editors don't have container-type: inline-size set,
44
- * we need to calculate the width based on the table node width.
45
- * If the table node width is not set, it will return 'auto'.
46
- * This is used in table toDOM
47
- * @param node The ProseMirror node representing the table.
48
- * @param isCommentEditor Whether the editor is in comment mode.
49
- * @param isChromelessEditor Whether the editor is chromeless.
50
- * @returns The CSS width value for the table container.
51
- */
52
- export declare const getTableResizerItemWidthInCSS: (node: PMNode, isCommentEditor?: boolean, isChromelessEditor?: boolean) => string;
53
- /**
54
- * This function is used to set the table width --ak-editor-table-width CSS property for full page editor.
55
- * Which is applied to the table resizer container.
56
- * For Full page appearance, we don't need to use containerWidth from JS, as we can use cqw value.
57
- * So we set dynamic containerWidth from JS to CSS property.
58
- * @param node The ProseMirror node representing the table.
59
- * @param isCommentEditor Whether the editor is in comment mode.
60
- * @param isChromelessEditor Whether the editor is chromeless.
61
- * @param isTableScalingEnabled Whether table scaling is enabled.
62
- * @param tableWidthFromJS The width of the container element. In toDOM it'd be undefined, but will have a value from nodeView.
63
- * @returns The CSS width value for the table.
64
- */
65
- export declare const getTableResizerContainerForFullPageWidthInCSS: (node: PMNode, isTableScalingEnabled?: boolean) => string;
66
- export declare const getTableScalingPercent: (table: PMNode, tableRef: HTMLElement | null, shouldUseIncreasedScalingPercent?: boolean) => number;
67
- export declare const getScalingPercentForTableWithoutWidth: (table: PMNode, tableRef: HTMLElement | null) => number;
68
- export declare const getStaticTableScalingPercent: (table: PMNode, tableRenderWidth: number, shouldUseIncreasedScalingPercent?: boolean) => number;
69
- export {};
@@ -1,3 +0,0 @@
1
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { ResizeState } from './types';
3
- export declare const resizeColumn: (resizeState: ResizeState, colIndex: number, amount: number, tableRef: HTMLElement | null, tableNode: PmNode, selectedColumns?: number[], isTableScalingEnabled?: boolean, scalePercent?: number) => ResizeState;
@@ -1,8 +0,0 @@
1
- import type { ResizeState } from './types';
2
- export declare const growColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]) => ResizeState;
3
- export declare const shrinkColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]) => ResizeState;
4
- export declare function reduceSpace(state: ResizeState, amount: number, ignoreCols?: number[]): ResizeState;
5
- /**
6
- * Update the given column based on resizeAmount, maintaining all other columns
7
- */
8
- export declare function updateAffectedColumn(resizeState: ResizeState, colIndex: number, resizeAmount: number): ResizeState;
@@ -1,28 +0,0 @@
1
- import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
- import type { Rect } from '@atlaskit/editor-tables/table-map';
5
- import type { ResizeState, ResizeStateWithAnalytics } from './types';
6
- export declare const getResizeState: ({ minWidth, maxSize, table, tableRef, start, domAtPos, isTableScalingEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, }: {
7
- domAtPos: (pos: number) => {
8
- node: Node;
9
- offset: number;
10
- };
11
- isCommentEditor: boolean;
12
- isTableScalingEnabled: boolean;
13
- maxSize: number;
14
- minWidth: number;
15
- shouldUseIncreasedScalingPercent: boolean;
16
- start: number;
17
- table: PMNode;
18
- tableRef: HTMLTableElement | null;
19
- }) => ResizeState;
20
- export declare const updateColgroup: (state: ResizeState, tableRef: HTMLElement | null, tableNode?: PMNode, isTableScalingEnabled?: boolean, scalePercent?: number) => void;
21
- export declare const getTotalWidth: ({ cols }: ResizeState) => number;
22
- export declare const adjustColumnsWidths: (resizeState: ResizeState, maxSize: number) => ResizeState;
23
- export declare const evenAllColumnsWidths: (resizeState: ResizeState) => ResizeState;
24
- export declare const bulkColumnsResize: (resizeState: ResizeState, columnsIndexes: number[], sourceColumnIndex: number) => ResizeState;
25
- export declare const getNewResizeStateFromSelectedColumns: (rect: Rect, state: EditorState, domAtPos: (pos: number) => {
26
- node: Node;
27
- offset: number;
28
- }, getEditorContainerWidth: GetEditorContainerWidth, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean) => ResizeStateWithAnalytics | undefined;
@@ -1,20 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { DomAtPos } from '@atlaskit/editor-prosemirror/utils';
4
- import type { PluginInjectionAPI } from '../../../types';
5
- import type { ResizeState } from '../utils/types';
6
- interface ScaleOptions {
7
- containerWidth?: number;
8
- isFullWidthModeEnabled?: boolean;
9
- isTableResizingEnabled?: boolean;
10
- layoutChanged?: boolean;
11
- node: PMNode;
12
- parentWidth?: number;
13
- previousContainerWidth?: number;
14
- prevNode: PMNode;
15
- start: number;
16
- }
17
- export declare function scaleTableTo(state: ResizeState, maxSize: number): ResizeState;
18
- export declare const previewScaleTable: (tableRef: HTMLTableElement | null | undefined, options: ScaleOptions, domAtPos: DomAtPos, isTableScalingEnabled?: boolean, allowFixedColumnWidthOption?: boolean, isCommentOrChromelessEditor?: boolean) => void;
19
- export declare const scaleTable: (tableRef: HTMLTableElement | null | undefined, options: ScaleOptions, domAtPos: DomAtPos, api: PluginInjectionAPI | undefined | null, isTableScalingEnabledOnCurrentTable?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => (tr: Transaction) => Transaction;
20
- export {};
@@ -1,23 +0,0 @@
1
- import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
2
- import type { ColumnState } from './column-state';
3
- export interface ResizeState {
4
- cols: ColumnState[];
5
- isScaled?: boolean;
6
- maxSize: number;
7
- overflow: boolean;
8
- tableWidth: number;
9
- widths: number[];
10
- }
11
- export interface ResizeStateWithAnalytics {
12
- attributes: {
13
- count: number;
14
- position: number;
15
- totalColumnCount: number;
16
- totalRowCount: number;
17
- widthsAfter: number[];
18
- widthsBefore: number[];
19
- };
20
- changed: boolean;
21
- resizeState: ResizeState;
22
- table: ContentNodeWithPos;
23
- }
@@ -1 +0,0 @@
1
- export declare const unitToNumber: (unit: string | null) => number;
@@ -1,4 +0,0 @@
1
- import type { IntlShape } from 'react-intl/src/types';
2
- import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import type { PluginInjectionAPI } from '../types';
4
- export declare function tableSelectionKeymapPlugin(pluginInjectionApi?: PluginInjectionAPI, getIntl?: () => IntlShape): SafePlugin;
@@ -1,10 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- type SizeSelectorPluginState = {
5
- isSelectorOpen: boolean;
6
- targetRef?: HTMLElement;
7
- };
8
- export declare const pluginKey: PluginKey<SizeSelectorPluginState>;
9
- export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<SizeSelectorPluginState>;
10
- export {};
@@ -1,9 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- type TableWidthInCommentFixPluginState = {
5
- documentHasLoadedOnce: boolean;
6
- };
7
- export declare const pluginKey: PluginKey<TableWidthInCommentFixPluginState>;
8
- declare const createPlugin: (dispatch: Dispatch, isTableAlignmentEnabled: boolean) => SafePlugin<TableWidthInCommentFixPluginState>;
9
- export { createPlugin };
@@ -1,17 +0,0 @@
1
- /**
2
- * A plugin for handle table custom widths
3
- * Has login to scan the document, add width value to table's width attribute when necessary
4
- * Also holds resizing state to hide / show table controls
5
- */
6
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
7
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
8
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
9
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
10
- type TableWidthPluginState = {
11
- resizing: boolean;
12
- tableLocalId: string;
13
- tableRef: HTMLTableElement | null;
14
- };
15
- export declare const pluginKey: PluginKey<TableWidthPluginState>;
16
- declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent, fullWidthEnabled: boolean, maxWidthEnabled: boolean, isTableScalingEnabled: boolean, isTableAlignmentEnabled: boolean, isCommentEditor: boolean) => SafePlugin<TableWidthPluginState>;
17
- export { createPlugin };
@@ -1,25 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { PluginInjectionAPI } from '../../types';
6
- import type { ResizeState } from '../table-resizing/utils/types';
7
- /**
8
- * Given a new ResizeState object, create a transaction that replaces and updates the table node based on new state.
9
- * @param resizeState
10
- * @param table
11
- * @param start
12
- * @returns
13
- */
14
- export declare const updateColumnWidths: (resizeState: ResizeState, table: PMNode, start: number, api: PluginInjectionAPI | undefined | null) => (tr: Transaction) => Transaction;
15
- /**
16
- * This function is called when user inserts/deletes a column in a table to;
17
- * - rescale all columns (if the table did not overflow before the insertion)
18
- * - and update column widths.
19
- *
20
- * This is done manually to avoid a multi-dispatch in TableComponent. See [ED-8288].
21
- * @param table
22
- * @param view
23
- * @returns Updated transaction with rescaled columns for a given table
24
- */
25
- export declare const rescaleColumns: (isTableScalingEnabled: boolean | undefined, isTableFixedColumnWidthsOptionEnabled: boolean | undefined, shouldUseIncreasedScalingPercent: boolean | undefined, api: PluginInjectionAPI | undefined | null, isCommentEditor?: boolean) => (table: ContentNodeWithPos, view: EditorView | undefined) => (tr: Transaction) => Transaction;
@@ -1,9 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export type TableMeasurement = {
4
- colWidths: Array<number>;
5
- tableWidth: number;
6
- };
7
- export declare const clampToEditorMaxWidth: (contentWidth: number) => number;
8
- export declare const getTableMeasurement: (tableRef: HTMLTableElement) => TableMeasurement;
9
- export declare const applyTableMeasurement: (tr: Transaction, tableNode: PMNode, { colWidths, tableWidth }: TableMeasurement, tablePos: number) => Transaction;
@@ -1,5 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { Rect } from '@atlaskit/editor-tables/table-map';
4
- import type { PluginInjectionAPI } from '../../types';
5
- export declare const deleteColumns: (rect: Rect, allowCustomStep: boolean, api: PluginInjectionAPI | undefined | null, view?: EditorView, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (tr: Transaction) => Transaction;
@@ -1,3 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { Rect } from '@atlaskit/editor-tables/table-map';
3
- export declare const deleteRows: (rect: Rect, isHeaderRowRequired?: boolean) => (tr: Transaction) => Transaction;
@@ -1,9 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { ReportInvalidNodeAttrs } from '../../types';
5
- export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => boolean;
6
- export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => Transaction | undefined;
7
- export declare const fixAutoSizedTable: (view: EditorView, tableNode: PMNode, tableRef: HTMLTableElement, tablePos: number, opts: {
8
- containerWidth: number;
9
- }) => Transaction;
@@ -1,7 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import { Selection } from '@atlaskit/editor-prosemirror/state';
4
- export declare function mergeCells(tr: Transaction): Transaction;
5
- export declare function canMergeCellSelection(selection: Selection): boolean;
6
- export declare function canMergeCells(tr: Transaction): boolean;
7
- export declare function mergeEmptyColumns(table: PMNode): PMNode | null;
@@ -1,4 +0,0 @@
1
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import { Slice } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
@@ -1,9 +0,0 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- /**
3
- * Helper to split all the cells in a range of columns
4
- * @param tr
5
- * @param tablePos
6
- * @param columnStart - Start of the rect included (rect.left)
7
- * @param columnEnd - End of the rect not included (rect.right)
8
- */
9
- export declare function splitCellsInColumns(tr: Transaction, tablePos: number, columnStart: number, columnEnd: number): Transaction;
@@ -1,11 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export declare const replaceCells: (tr: Transaction, table: PMNode, tablePos: number, modifyCell: (cell: PMNode, rowIndex: number, colIndex: number) => PMNode) => Transaction;
4
- /**
5
- * Position-preserving alternative to `replaceCells`.
6
- *
7
- * Uses `setNodeMarkup` per cell instead of rebuilding the whole table with
8
- * `replaceWith`, so document positions inside cells are never invalidated.
9
- * This preserves any existing selection through `tr.mapping`.
10
- */
11
- export declare const updateCellsMarkup: (tr: Transaction, table: PMNode, tablePos: number, modifyCell: (cell: PMNode, rowIndex: number, colIndex: number) => PMNode) => Transaction;
@@ -1,14 +0,0 @@
1
- import type { TableLayout } from '@atlaskit/adf-schema';
2
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { AlignmentOptions } from '../../types';
4
- export declare const ALIGN_START = "align-start";
5
- export declare const ALIGN_CENTER = "center";
6
- /**
7
- * Normalise table layout attribute an alignment value ('center' or 'align-start'), returns
8
- * center if layout equals a breakout value (e.g. 'default', 'wide', 'full-width')
9
- */
10
- export declare const normaliseAlignment: (layout: TableLayout) => AlignmentOptions;
11
- /**
12
- * We don't want to switch alignment in Full-width editor
13
- */
14
- export declare const shouldChangeAlignmentToCenterResized: (isTableAlignmentEnabled: boolean | undefined, tableNode: PmNode, lineLength: number | undefined, updatedTableWidth: number) => boolean;
@@ -1,49 +0,0 @@
1
- import type { AnalyticsEventPayload, AnalyticsEventPayloadCallback, EditorAnalyticsAPI, TableEventPayload } from '@atlaskit/editor-common/analytics';
2
- import type { HigherOrderCommand } from '@atlaskit/editor-common/types';
3
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import { TableMap } from '@atlaskit/editor-tables/table-map';
7
- import { findTable } from '@atlaskit/editor-tables/utils';
8
- export declare function getSelectedTableInfo(selection: Selection): {
9
- map: TableMap | undefined;
10
- table: ReturnType<typeof findTable> | undefined;
11
- totalColumnCount: number;
12
- totalRowCount: number;
13
- };
14
- export declare function getSelectedCellInfo(selection: Selection): {
15
- totalRowCount: number;
16
- totalColumnCount: number;
17
- horizontalCells: number;
18
- verticalCells: number;
19
- totalCells: number;
20
- };
21
- export declare const withEditorAnalyticsAPI: (payload: AnalyticsEventPayload | AnalyticsEventPayloadCallback) => (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => HigherOrderCommand;
22
- interface UseMeasureFramerateConfig {
23
- maxSamples?: number;
24
- minFrames?: number;
25
- minTimeMs?: number;
26
- sampleRateMs?: number;
27
- timeoutMs?: number;
28
- }
29
- export declare const generateResizedPayload: (props: {
30
- originalNode: PMNode;
31
- resizedNode: PMNode;
32
- }) => TableEventPayload;
33
- export declare const reduceResizeFrameRateSamples: (frameRateSamples: number[]) => number[];
34
- export declare const generateResizeFrameRatePayloads: (props: {
35
- docSize: number;
36
- frameRateSamples: number[];
37
- originalNode: PMNode;
38
- }) => TableEventPayload[];
39
- /**
40
- * Measures the framerate of a component over a given time period.
41
- */
42
- export declare const useMeasureFramerate: (config?: UseMeasureFramerateConfig) => {
43
- startMeasure: () => void;
44
- endMeasure: () => number[];
45
- countFrames: () => void;
46
- };
47
- export declare const getWidthInfoPayload: (editorView: EditorView, editorWidth: number) => TableEventPayload | undefined;
48
- export declare const getHeightInfoPayload: (editorView: EditorView) => TableEventPayload | undefined;
49
- export {};
@@ -1,31 +0,0 @@
1
- import type { NodeType } from '@atlaskit/editor-prosemirror/model';
2
- import { NodeRange } from '@atlaskit/editor-prosemirror/model';
3
- import type { ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- interface IsTableCollapsibleResult {
5
- findWrappingRes?: // Ignored via go/ees005
6
- Array<{
7
- attrs?: {
8
- [key: string]: any;
9
- } | null;
10
- type: NodeType;
11
- }> | null | undefined;
12
- range?: NodeRange;
13
- tableIsCollapsible: boolean;
14
- }
15
- /**
16
- * Checks whether we can wrap the selected table into an expand via
17
- * prosemirror-transform's `findWrapping` helper
18
- */
19
- export declare const isTableCollapsible: (tr: Transaction | ReadonlyTransaction) => IsTableCollapsibleResult;
20
- /**
21
- * Collapses the selected table into an expand given a transaction via
22
- * `Transform.wrap`.
23
- *
24
- * Will return undefined if it cannot determine the relevant table from a
25
- * selection, or if the table itself isn't collapsible.
26
- *
27
- * @param tr
28
- * @returns Transaction | undefined
29
- */
30
- export declare const collapseSelectedTable: (tr: Transaction) => Transaction | undefined;
31
- export {};
@@ -1,11 +0,0 @@
1
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
2
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import { TableMap } from '@atlaskit/editor-tables/table-map';
4
- export declare const getColumnsWidths: (view: EditorView) => Array<number | undefined>;
5
- export declare const getColumnDeleteButtonParams: (columnsWidths: Array<number | undefined>, selection: Selection) => {
6
- indexes: number[];
7
- left: number;
8
- } | null;
9
- export declare const colWidthsForRow: (tr: HTMLTableRowElement) => string;
10
- export declare const convertHTMLCellIndexToColumnIndex: (htmlColIndex: number, htmlRowIndex: number, tableMap: TableMap) => number;
11
- export declare const getColumnIndexMappedToColumnIndexInFirstRow: (convertedColIndex: number, htmlRowIndex: number, tableMap: TableMap) => number;