@atlaskit/editor-plugin-table 23.4.2 → 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 +8 -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 +3 -3
  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,24 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
5
- import TableNodeView from './TableNodeViewBase';
6
- export default class TableCell extends TableNodeView<HTMLElement> implements NodeView {
7
- private delayHandle;
8
- /** Cached edge state to avoid redundant DOM writes. */
9
- private prevReachesTop;
10
- private prevReachesBottom;
11
- private prevReachesLeft;
12
- private prevReachesRight;
13
- constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, editorAnalyticsAPI: EditorAnalyticsAPI | undefined);
14
- destroy: () => void;
15
- update(node: PMNode): boolean;
16
- /**
17
- * Detects whether this cell visually reaches the bottom or right edge of the table
18
- * (accounting for rowspan/colspan) and sets data attributes so CSS can apply
19
- * rounded corners and transparent borders to merged cells that span to the table edges.
20
- */
21
- private updateTableEdgeAttrs;
22
- private setDataAttr;
23
- private updateNodeView;
24
- }
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import type { IntlShape, WithIntlProps } from 'react-intl';
3
- import type { TableColumnOrdering } from '@atlaskit/custom-steps';
4
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
6
- import type { EditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
7
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
8
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
9
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
- import type { CellHoverMeta, PluginInjectionAPI } from '../types';
11
- import type { TableOptions } from './types';
12
- interface ComponentProps {
13
- allowColumnResizing?: boolean;
14
- allowControls?: boolean;
15
- allowFixedColumnWidthOption?: boolean;
16
- allowTableAlignment?: boolean;
17
- allowTableResizing?: boolean;
18
- containerWidth: EditorContainerWidth;
19
- contentDOM: (node: HTMLElement | null) => void;
20
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
21
- eventDispatcher: EventDispatcher;
22
- getEditorFeatureFlags: GetEditorFeatureFlags;
23
- getNode: () => PmNode;
24
- getPos: () => number | undefined;
25
- hoveredCell?: CellHoverMeta;
26
- hoveredRows?: number[];
27
- intl: IntlShape;
28
- isDragAndDropEnabled?: boolean;
29
- isHeaderColumnEnabled: boolean;
30
- isHeaderRowEnabled: boolean;
31
- isInDanger?: boolean;
32
- isMediaFullscreen?: boolean;
33
- isResizing?: boolean;
34
- isTableHovered?: boolean;
35
- isTableScalingEnabled?: boolean;
36
- isWholeTableInDanger?: boolean;
37
- limitedMode?: boolean;
38
- options?: TableOptions;
39
- ordering?: TableColumnOrdering;
40
- pluginInjectionApi?: PluginInjectionAPI;
41
- selection?: Selection;
42
- tableActive: boolean;
43
- view: EditorView;
44
- }
45
- declare const _default_1: React.FC<WithIntlProps<ComponentProps>> & {
46
- WrappedComponent: React.ComponentType<ComponentProps>;
47
- };
48
- export default _default_1;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
4
- import type { GetEditorFeatureFlags, getPosHandlerNode } from '@atlaskit/editor-common/types';
5
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { PluginInjectionAPI } from '../types';
8
- import type { TableOptions } from './types';
9
- type ForwardRef = (node: HTMLElement | null) => any;
10
- type TableComponentWithSharedStateProps = {
11
- allowColumnResizing?: boolean;
12
- allowControls?: boolean;
13
- allowFixedColumnWidthOption?: boolean;
14
- allowTableAlignment?: boolean;
15
- allowTableResizing?: boolean;
16
- api?: PluginInjectionAPI;
17
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
18
- eventDispatcher: EventDispatcher;
19
- forwardRef: ForwardRef;
20
- getEditorFeatureFlags: GetEditorFeatureFlags;
21
- getNode: () => PmNode;
22
- getPos: getPosHandlerNode;
23
- options?: TableOptions;
24
- view: EditorView;
25
- };
26
- /**
27
- * Use useSharedPluginState to control re-renders from plugin dependencies
28
- */
29
- export declare const TableComponentWithSharedState: ({ view, options, getNode, dispatchAnalyticsEvent, api, getEditorFeatureFlags, eventDispatcher, allowColumnResizing, allowControls, getPos, forwardRef, allowTableAlignment, allowTableResizing, allowFixedColumnWidthOption, }: TableComponentWithSharedStateProps) => React.JSX.Element;
30
- export {};
@@ -1,48 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import React from 'react';
3
- import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
4
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { PluginInjectionAPI } from '../types';
7
- type ResizableTableContainerProps = {
8
- allowFixedColumnWidthOption?: boolean;
9
- className: string;
10
- containerWidth: number;
11
- editorView: EditorView;
12
- getPos: () => number | undefined;
13
- isChromelessEditor?: boolean;
14
- isCommentEditor?: boolean;
15
- isResizing?: boolean;
16
- isTableAlignmentEnabled?: boolean;
17
- isTableScalingEnabled?: boolean;
18
- isWholeTableInDanger?: boolean;
19
- lineLength: number | undefined;
20
- node: PMNode;
21
- pluginInjectionApi?: PluginInjectionAPI;
22
- shouldUseIncreasedScalingPercent?: boolean;
23
- tableRef: HTMLTableElement;
24
- tableWrapperHeight?: number;
25
- };
26
- export declare const ResizableTableContainer: React.MemoExoticComponent<({ children, className, node, containerWidth, lineLength, editorView, getPos, tableRef, isResizing, pluginInjectionApi, tableWrapperHeight, isWholeTableInDanger, isTableScalingEnabled, allowFixedColumnWidthOption, isTableAlignmentEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, }: PropsWithChildren<ResizableTableContainerProps>) => React.JSX.Element>;
27
- type TableContainerProps = {
28
- allowFixedColumnWidthOption?: boolean;
29
- className: string;
30
- containerWidth: EditorContainerWidth;
31
- editorView: EditorView;
32
- getPos: () => number | undefined;
33
- isChromelessEditor?: boolean;
34
- isCommentEditor?: boolean;
35
- isNested: boolean;
36
- isResizing?: boolean;
37
- isTableAlignmentEnabled?: boolean;
38
- isTableResizingEnabled: boolean | undefined;
39
- isTableScalingEnabled?: boolean;
40
- isWholeTableInDanger?: boolean;
41
- node: PMNode;
42
- pluginInjectionApi?: PluginInjectionAPI;
43
- shouldUseIncreasedScalingPercent?: boolean;
44
- tableRef: HTMLTableElement;
45
- tableWrapperHeight?: number;
46
- };
47
- export declare const TableContainer: ({ children, node, className, containerWidth: { width: editorWidth, lineLength }, editorView, getPos, tableRef, isNested, tableWrapperHeight, isResizing, pluginInjectionApi, isWholeTableInDanger, isTableResizingEnabled, isTableScalingEnabled, allowFixedColumnWidthOption, isTableAlignmentEnabled, shouldUseIncreasedScalingPercent, isCommentEditor, isChromelessEditor, }: PropsWithChildren<TableContainerProps>) => React.JSX.Element;
48
- export {};
@@ -1,18 +0,0 @@
1
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
4
- export default abstract class TableNodeView<T extends HTMLElement> implements NodeView {
5
- protected node: PmNode;
6
- protected readonly view: EditorView;
7
- protected readonly getPos: () => number | undefined;
8
- protected readonly eventDispatcher: EventDispatcher;
9
- /**
10
- * @constructor
11
- */
12
- constructor(node: PmNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher);
13
- /**
14
- * Variables
15
- */
16
- dom: T;
17
- contentDOM: T;
18
- }
@@ -1,36 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import React from 'react';
3
- import type { TableEventPayload } from '@atlaskit/editor-common/analytics';
4
- import type { GuidelineConfig } from '@atlaskit/editor-common/guideline';
5
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
7
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import type { PluginInjectionAPI } from '../types';
9
- interface TableResizerProps {
10
- allowFixedColumnWidthOption?: boolean;
11
- attachAnalyticsEvent: (payload: TableEventPayload) => ((tr: Transaction) => boolean) | undefined;
12
- containerWidth: number;
13
- disabled?: boolean;
14
- displayGapCursor: (toggle: boolean) => boolean;
15
- displayGuideline: (guideline: GuidelineConfig[]) => boolean;
16
- editorView: EditorView;
17
- getPos: () => number | undefined;
18
- isChromelessEditor?: boolean;
19
- isCommentEditor?: boolean;
20
- isFullWidthModeEnabled?: boolean;
21
- isTableAlignmentEnabled?: boolean;
22
- isTableScalingEnabled?: boolean;
23
- isWholeTableInDanger?: boolean;
24
- lineLength: number;
25
- maxWidth: number | string;
26
- node: PMNode;
27
- onResizeStart?: () => void;
28
- onResizeStop?: () => void;
29
- pluginInjectionApi?: PluginInjectionAPI;
30
- shouldUseIncreasedScalingPercent?: boolean;
31
- tableRef: HTMLTableElement;
32
- updateWidth: (width: number) => void;
33
- width: number;
34
- }
35
- export declare const TableResizer: ({ children, width, maxWidth, containerWidth, lineLength, updateWidth, onResizeStop, onResizeStart, editorView, getPos, node, tableRef, displayGuideline, attachAnalyticsEvent, displayGapCursor, isTableScalingEnabled, allowFixedColumnWidthOption, isTableAlignmentEnabled, isWholeTableInDanger, shouldUseIncreasedScalingPercent, pluginInjectionApi, isFullWidthModeEnabled, isCommentEditor, isChromelessEditor, disabled, }: PropsWithChildren<TableResizerProps>) => React.JSX.Element;
36
- export {};
@@ -1,68 +0,0 @@
1
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
4
- import { type PluginInjectionAPI } from '../types';
5
- import TableNodeView from './TableNodeViewBase';
6
- export default class TableRow extends TableNodeView<HTMLTableRowElement> implements NodeView {
7
- private nodeVisibilityObserverCleanupFn?;
8
- cleanup: () => void;
9
- constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, api?: PluginInjectionAPI);
10
- subscribeWhenRowVisible(): void;
11
- /**
12
- * Variables
13
- */
14
- private isHeaderRow;
15
- private isInNestedTable;
16
- private isStickyHeaderEnabled;
17
- private editorScrollableElement?;
18
- private colControlsOffset;
19
- private focused;
20
- private topPosEditorElement;
21
- private isSticky;
22
- private intersectionObserver?;
23
- private resizeObserver?;
24
- private tableContainerObserver?;
25
- private sentinels;
26
- private sentinelData;
27
- private stickyRowHeight?;
28
- private listening;
29
- private padding;
30
- private top;
31
- /**
32
- * Methods: Nodeview Lifecycle
33
- */
34
- update(node: PMNode, ..._args: any[]): boolean;
35
- destroy(): void;
36
- ignoreMutation(mutationRecord: MutationRecord | {
37
- target: Node;
38
- type: 'selection';
39
- }): boolean;
40
- /**
41
- * Methods
42
- */
43
- private headerRowMouseScrollEnd;
44
- private headerRowMouseScroll;
45
- private subscribe;
46
- private unsubscribe;
47
- private initObservers;
48
- private createResizeObserver;
49
- private createIntersectionObserver;
50
- private refreshStickyState;
51
- private shouldSticky;
52
- private isHeaderSticky;
53
- private onTablePluginState;
54
- private updateStickyHeaderWidth;
55
- /**
56
- * Manually refire the intersection observers.
57
- * Useful when the header may have detached from the table.
58
- */
59
- private refireIntersectionObservers;
60
- private makeHeaderRowSticky;
61
- private makeRowHeaderNotSticky;
62
- private getWrapperoffset;
63
- private getWrapperRefTop;
64
- private getScrolledTableTop;
65
- private getCurrentTableTop;
66
- private emitOn;
67
- private emitOff;
68
- }
@@ -1,89 +0,0 @@
1
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
4
- import { type PluginInjectionAPI } from '../types';
5
- import TableNodeView from './TableNodeViewBase';
6
- export default class TableRowNativeStickyWithFallback extends TableNodeView<HTMLTableRowElement> implements NodeView {
7
- private nodeVisibilityObserverCleanupFn?;
8
- cleanup: () => void;
9
- constructor(node: PMNode, view: EditorView, getPos: () => number | undefined, eventDispatcher: EventDispatcher, api?: PluginInjectionAPI);
10
- subscribeWhenRowVisible(): void;
11
- /**
12
- * Variables
13
- */
14
- private isHeaderRow;
15
- private isInNestedTable;
16
- private isStickyHeaderEnabled;
17
- private editorScrollableElement?;
18
- private colControlsOffset;
19
- private focused;
20
- private topPosEditorElement;
21
- private isLegacySticky;
22
- private intersectionObserver?;
23
- private resizeObserver?;
24
- private tableContainerObserver?;
25
- private sentinels;
26
- private sentinelData;
27
- private stickyRowHeight?;
28
- private listening;
29
- private padding;
30
- private top;
31
- private api?;
32
- /** Native sticky header variables */
33
- private overflowObserver?;
34
- private stickyStateObserver?;
35
- private hasScrolledSinceLoad;
36
- private scrollListener?;
37
- private overflowObserverEntries?;
38
- private isNativeSticky?;
39
- private disableNativeSticky;
40
- private onEditorContentAreaHeightChange?;
41
- private editorContentAreaHeight?;
42
- private nodeVisibilityObserver?;
43
- /**
44
- * Methods: Nodeview Lifecycle
45
- */
46
- update(node: PMNode, ..._args: any[]): boolean;
47
- destroy(): void;
48
- ignoreMutation(mutationRecord: MutationRecord | {
49
- target: Node;
50
- type: 'selection';
51
- }): boolean;
52
- /**
53
- * Methods
54
- */
55
- private headerRowMouseScrollEnd;
56
- private headerRowMouseScroll;
57
- private subscribe;
58
- private unsubscribe;
59
- private initOverflowObserver;
60
- /**
61
- * This observer is used to track the 'stuck' state of the header row.
62
- * This roughly mimics `(at)container scroll-state(stuck: top)` in CSS,
63
- * but with full browser support.
64
- */
65
- private initStickyStateObserver;
66
- private initObservers;
67
- private initNodeVisibilityObserver;
68
- private createResizeObserver;
69
- private createIntersectionObserver;
70
- private refreshLegacyStickyState;
71
- private shouldSticky;
72
- private isHeaderSticky;
73
- private onTablePluginState;
74
- private updateStickyHeaderWidth;
75
- /**
76
- * Manually refire the intersection observers.
77
- * Useful when the header may have detached from the table.
78
- */
79
- private refireIntersectionObservers;
80
- private toggleDisableNativeSticky;
81
- private makeHeaderRowLegacySticky;
82
- private makeRowHeaderNotLegacySticky;
83
- private getWrapperoffset;
84
- private getWrapperRefTop;
85
- private getScrolledTableTop;
86
- private getCurrentTableTop;
87
- private emitOn;
88
- private emitOff;
89
- }
@@ -1,23 +0,0 @@
1
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
- export declare class TableStickyScrollbar {
3
- private wrapper;
4
- private view;
5
- private editorScrollableElement?;
6
- private intersectionObserver?;
7
- private stickyScrollbarContainerElement?;
8
- private sentinels;
9
- private topSentinelState?;
10
- private bottomSentinelState?;
11
- constructor(wrapper: HTMLDivElement, view: EditorView);
12
- dispose(): void;
13
- scrollLeft(left: number): void;
14
- private init;
15
- private createIntersectionObserver;
16
- private deleteIntersectionObserver;
17
- private sentinelBottomCallback;
18
- private sentinelTopCallback;
19
- private toggle;
20
- private hide;
21
- private show;
22
- private handleScroll;
23
- }
@@ -1,9 +0,0 @@
1
- import { OverridableMock } from './OverridableMock';
2
- export declare class OverflowShadowsObserver extends OverridableMock {
3
- leftShadowSentinel: HTMLElement | null;
4
- rightShadowSentinel: HTMLElement | null;
5
- constructor(...inputs: any[]);
6
- observeShadowSentinels: any;
7
- updateStickyShadows: any;
8
- dispose: any;
9
- }
@@ -1,9 +0,0 @@
1
- export declare abstract class OverridableMock {
2
- static mockOverrides: {
3
- [key: string]: any;
4
- };
5
- constructor(...inputs: any[]);
6
- getMock(key: string): any;
7
- static setMock(thisKey: string, value: any): void;
8
- static resetMocks(): void;
9
- }
@@ -1,5 +0,0 @@
1
- import type { AlignmentOptions } from '../types';
2
- export declare const getAlignmentStyle: (alignment: AlignmentOptions) => {
3
- display: string;
4
- justifyContent: string;
5
- };
@@ -1,30 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
7
- import type { PluginInjectionAPI } from '../types';
8
- import TableCell from './TableCell';
9
- import TableRow from './TableRow';
10
- import TableRowNativeStickyWithFallback from './TableRowNativeStickyWithFallback';
11
- type TableViewOptions = {
12
- allowFixedColumnWidthOption?: boolean;
13
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
14
- eventDispatcher: EventDispatcher;
15
- getEditorContainerWidth: GetEditorContainerWidth;
16
- getEditorFeatureFlags: GetEditorFeatureFlags;
17
- isChromelessEditor?: boolean;
18
- isCommentEditor?: boolean;
19
- pluginInjectionApi?: PluginInjectionAPI;
20
- portalProviderAPI: PortalProviderAPI;
21
- };
22
- export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => NodeView;
23
- type TableCellViewOptions = {
24
- eventDispatcher: EventDispatcher;
25
- pluginInjectionApi?: PluginInjectionAPI;
26
- };
27
- export declare const tableCellView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
28
- export declare const tableHeaderView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
29
- export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableRowNativeStickyWithFallback | TableRow;
30
- export {};
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
3
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
4
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
5
- import ReactNodeView from '@atlaskit/editor-common/react-node-view';
6
- import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
7
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
8
- import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
9
- import type { PluginInjectionAPI } from '../types';
10
- import type { Props, TableOptions } from './types';
11
- type ForwardRef = (node: HTMLElement | null) => void;
12
- export default class TableView extends ReactNodeView<Props> {
13
- private table;
14
- private renderedDOM?;
15
- private resizeObserver?;
16
- private roundedTableEdgeRefreshHandle;
17
- eventDispatcher?: EventDispatcher;
18
- getPos: getPosHandlerNode;
19
- options: TableOptions | undefined;
20
- getEditorFeatureFlags: GetEditorFeatureFlags;
21
- constructor(props: Props);
22
- getContentDOM(): {
23
- contentDOM?: HTMLElement;
24
- dom: HTMLElement;
25
- };
26
- /**
27
- * Handles moving the table from ProseMirror's DOM structure into a React-rendered table node.
28
- * Temporarily disables mutation observers (except for selection changes) during the move,
29
- * preserves selection state, and restores it afterwards if mutations occurred and cursor
30
- * wasn't at start of node. This prevents duplicate tables and maintains editor state during
31
- * the DOM manipulation.
32
- */
33
- private _handleTableRef;
34
- setDomAttrs(node: PmNode): void;
35
- getNode: () => PmNode;
36
- private scheduleRoundedTableEdgeRefresh;
37
- update(node: PmNode, decorations: ReadonlyArray<Decoration>, innerDecorations?: DecorationSource, validUpdate?: (currentNode: PmNode, newNode: PmNode) => boolean): boolean;
38
- render(props: Props, forwardRef: ForwardRef): React.JSX.Element;
39
- private hasHoveredRows;
40
- viewShouldUpdate(nextNode: PmNode): boolean;
41
- ignoreMutation(mutation: MutationRecord | {
42
- target: Node;
43
- type: 'selection';
44
- }): boolean;
45
- destroy(): void;
46
- }
47
- export declare const createTableView: (node: PmNode, view: EditorView, getPos: getPosHandler, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, dispatchAnalyticsEvent: DispatchAnalyticsEvent, pluginInjectionApi?: PluginInjectionAPI, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => NodeView;
48
- export {};
@@ -1,17 +0,0 @@
1
- import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
2
- import type { DOMOutputSpec, NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- type Config = {
4
- allowColumnResizing: boolean;
5
- getEditorContainerWidth: GetEditorContainerWidth;
6
- isChromelessEditor?: boolean;
7
- isCommentEditor?: boolean;
8
- isNested?: boolean;
9
- isNestingSupported?: boolean;
10
- isTableScalingEnabled?: boolean;
11
- shouldUseIncreasedScalingPercent?: boolean;
12
- tableResizingEnabled: boolean;
13
- };
14
- export declare const tableNodeSpecWithFixedToDOM: (config: Config) => NodeSpec & {
15
- toDOM: (node: PMNode) => DOMOutputSpec;
16
- };
17
- export {};
@@ -1,33 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
- import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { PluginInjectionAPI } from '../types';
8
- export type TableOptions = {
9
- isChromelessEditor?: boolean;
10
- isCommentEditor?: boolean;
11
- isFullWidthModeEnabled?: boolean;
12
- isTableScalingEnabled?: boolean;
13
- shouldUseIncreasedScalingPercent?: boolean;
14
- wasFullWidthModeEnabled?: boolean;
15
- };
16
- export interface Props {
17
- allowColumnResizing?: boolean;
18
- allowControls?: boolean;
19
- allowFixedColumnWidthOption?: boolean;
20
- allowTableAlignment?: boolean;
21
- allowTableResizing?: boolean;
22
- cellMinWidth?: number;
23
- dispatchAnalyticsEvent: DispatchAnalyticsEvent;
24
- eventDispatcher: EventDispatcher;
25
- getEditorContainerWidth: GetEditorContainerWidth;
26
- getEditorFeatureFlags: GetEditorFeatureFlags;
27
- getPos: () => number | undefined;
28
- node: PmNode;
29
- options?: TableOptions;
30
- pluginInjectionApi?: PluginInjectionAPI;
31
- portalProviderAPI: PortalProviderAPI;
32
- view: EditorView;
33
- }
@@ -1 +0,0 @@
1
- export declare const updateShadowListForStickyStyles: (heightStyle: string, shadows: HTMLCollection) => void;
@@ -1,11 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- interface ActiveCellHighlightState {
5
- /** Position of the currently highlighted cell, or -1 if none */
6
- cellPos: number;
7
- decorationSet: DecorationSet;
8
- }
9
- export declare const activeCellHighlightPluginKey: PluginKey<ActiveCellHighlightState>;
10
- export declare const createPlugin: () => SafePlugin<ActiveCellHighlightState>;
11
- export {};
@@ -1,18 +0,0 @@
1
- import type { RowOrColumnMovedState } from './types';
2
- export declare enum AnalyticPluginTypes {
3
- UpdateOverflowTriggerNameAction = 0,
4
- UpdateRowOrColumnMovedAction = 1,
5
- RemoveRowOrColumnMovedAction = 2,
6
- RemoveOverFlowTriggerNameAction = 3,
7
- UpdateRowOrColumnMovedAndOverflowTrigger = 4
8
- }
9
- type UpdateRowOrColumnMovedAction = {
10
- data: RowOrColumnMovedState;
11
- type: AnalyticPluginTypes.UpdateRowOrColumnMovedAction;
12
- };
13
- type RemoveRowOrColumnMovedAction = {
14
- data: undefined;
15
- type: AnalyticPluginTypes.RemoveRowOrColumnMovedAction;
16
- };
17
- export type AnalyticPluginAction = UpdateRowOrColumnMovedAction | RemoveRowOrColumnMovedAction;
18
- export {};
@@ -1,6 +0,0 @@
1
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { ActionType, RowOrColumnMovedState } from './types';
3
- import type { Command } from '@atlaskit/editor-common/types';
4
- export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => Command;
5
- export declare const resetRowOrColumnMovedTransform: () => (tr: Transaction) => Transaction;
6
- export declare const updateRowOrColumnMovedTransform: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => (state: EditorState, tr: Transaction) => Transaction;
@@ -1,8 +0,0 @@
1
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- import type { AnalyticPluginAction } from './actions';
5
- import type { AnalyticPluginState } from './types';
6
- export declare const createPluginState: (dispatch: Dispatch, initialState: AnalyticPluginState | ((state: EditorState) => AnalyticPluginState)) => SafeStateField<AnalyticPluginState>;
7
- export declare const createCommand: <A = AnalyticPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
8
- export declare const getPluginState: (state: EditorState) => AnalyticPluginState;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { AnalyticPluginState } from './types';
3
- export declare const pluginKey: PluginKey<AnalyticPluginState>;
@@ -1,5 +0,0 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- import { type AnalyticPluginState } from './types';
5
- export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin<AnalyticPluginState>;
@@ -1,3 +0,0 @@
1
- import type { AnalyticPluginAction } from './actions';
2
- import type { AnalyticPluginState } from './types';
3
- export declare const reducer: (state: AnalyticPluginState, action: AnalyticPluginAction) => AnalyticPluginState;
@@ -1,11 +0,0 @@
1
- export type ActionType = 'none' | 'addRowOrColumn' | 'copyOrCut' | 'pasted';
2
- export type RowOrColumnMovedState = {
3
- currentActions: Array<ActionType>;
4
- /** used to confirm if same number of cells was copied and pasted */
5
- numberOfCells?: number;
6
- type?: 'row' | 'column';
7
- };
8
- export type AnalyticPluginState = {
9
- rowOrColumnMoved: RowOrColumnMovedState;
10
- };
11
- export declare const defaultState: AnalyticPluginState;
@@ -1,6 +0,0 @@
1
- import type { ActionType, RowOrColumnMovedState } from '../types';
2
- export declare const getMovedPayload: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType, prevState: RowOrColumnMovedState) => RowOrColumnMovedState | {
3
- currentActions: string[];
4
- numberOfCells: number | undefined;
5
- type: "row" | "column" | undefined;
6
- };