@atlaskit/editor-plugin-table 8.4.13 → 8.4.14

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 (68) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/package.json +2 -2
  3. package/dist/cjs/pm-plugins/decorations/utils/index.js +0 -31
  4. package/dist/cjs/pm-plugins/drag-and-drop/index.js +0 -19
  5. package/dist/cjs/pm-plugins/drag-and-drop/utils/index.js +0 -12
  6. package/dist/cjs/pm-plugins/sticky-headers/index.js +0 -26
  7. package/dist/cjs/pm-plugins/table-resizing/index.js +0 -26
  8. package/dist/cjs/pm-plugins/table-resizing/utils/index.js +0 -176
  9. package/dist/cjs/pm-plugins/transforms/index.js +0 -59
  10. package/dist/cjs/pm-plugins/utils/index.js +0 -359
  11. package/dist/cjs/ui/TableFloatingControls/CornerControls/index.js +0 -25
  12. package/dist/cjs/ui/TableFloatingControls/RowControls/index.js +0 -19
  13. package/dist/cjs/ui/icons/index.js +0 -68
  14. package/dist/es2019/pm-plugins/decorations/utils/index.js +0 -2
  15. package/dist/es2019/pm-plugins/drag-and-drop/index.js +0 -2
  16. package/dist/es2019/pm-plugins/drag-and-drop/utils/index.js +0 -1
  17. package/dist/es2019/pm-plugins/sticky-headers/index.js +0 -3
  18. package/dist/es2019/pm-plugins/table-resizing/index.js +0 -3
  19. package/dist/es2019/pm-plugins/table-resizing/utils/index.js +0 -9
  20. package/dist/es2019/pm-plugins/transforms/index.js +0 -6
  21. package/dist/es2019/pm-plugins/utils/index.js +0 -12
  22. package/dist/es2019/ui/TableFloatingControls/CornerControls/index.js +0 -2
  23. package/dist/es2019/ui/TableFloatingControls/RowControls/index.js +0 -2
  24. package/dist/es2019/ui/icons/index.js +0 -9
  25. package/dist/esm/pm-plugins/decorations/utils/index.js +0 -2
  26. package/dist/esm/pm-plugins/drag-and-drop/index.js +0 -2
  27. package/dist/esm/pm-plugins/drag-and-drop/utils/index.js +0 -1
  28. package/dist/esm/pm-plugins/sticky-headers/index.js +0 -3
  29. package/dist/esm/pm-plugins/table-resizing/index.js +0 -3
  30. package/dist/esm/pm-plugins/table-resizing/utils/index.js +0 -9
  31. package/dist/esm/pm-plugins/transforms/index.js +0 -6
  32. package/dist/esm/pm-plugins/utils/index.js +0 -12
  33. package/dist/esm/ui/TableFloatingControls/CornerControls/index.js +0 -2
  34. package/dist/esm/ui/TableFloatingControls/RowControls/index.js +0 -2
  35. package/dist/esm/ui/icons/index.js +0 -9
  36. package/dist/types/pm-plugins/decorations/utils/index.d.ts +0 -2
  37. package/dist/types/pm-plugins/drag-and-drop/index.d.ts +0 -2
  38. package/dist/types/pm-plugins/drag-and-drop/utils/index.d.ts +0 -1
  39. package/dist/types/pm-plugins/sticky-headers/index.d.ts +0 -4
  40. package/dist/types/pm-plugins/table-resizing/index.d.ts +0 -3
  41. package/dist/types/pm-plugins/table-resizing/utils/index.d.ts +0 -10
  42. package/dist/types/pm-plugins/transforms/index.d.ts +0 -6
  43. package/dist/types/pm-plugins/utils/index.d.ts +0 -13
  44. package/dist/types/ui/TableFloatingControls/CornerControls/index.d.ts +0 -2
  45. package/dist/types/ui/TableFloatingControls/RowControls/index.d.ts +0 -2
  46. package/dist/types/ui/icons/index.d.ts +0 -9
  47. package/dist/types-ts4.5/pm-plugins/decorations/utils/index.d.ts +0 -2
  48. package/dist/types-ts4.5/pm-plugins/drag-and-drop/index.d.ts +0 -2
  49. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/index.d.ts +0 -1
  50. package/dist/types-ts4.5/pm-plugins/sticky-headers/index.d.ts +0 -4
  51. package/dist/types-ts4.5/pm-plugins/table-resizing/index.d.ts +0 -3
  52. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/index.d.ts +0 -10
  53. package/dist/types-ts4.5/pm-plugins/transforms/index.d.ts +0 -6
  54. package/dist/types-ts4.5/pm-plugins/utils/index.d.ts +0 -13
  55. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/index.d.ts +0 -2
  56. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/index.d.ts +0 -2
  57. package/dist/types-ts4.5/ui/icons/index.d.ts +0 -9
  58. package/src/pm-plugins/decorations/utils/index.ts +0 -5
  59. package/src/pm-plugins/drag-and-drop/index.ts +0 -2
  60. package/src/pm-plugins/drag-and-drop/utils/index.ts +0 -1
  61. package/src/pm-plugins/sticky-headers/index.ts +0 -5
  62. package/src/pm-plugins/table-resizing/index.ts +0 -3
  63. package/src/pm-plugins/table-resizing/utils/index.ts +0 -23
  64. package/src/pm-plugins/transforms/index.ts +0 -6
  65. package/src/pm-plugins/utils/index.ts +0 -69
  66. package/src/ui/TableFloatingControls/CornerControls/index.tsx +0 -2
  67. package/src/ui/TableFloatingControls/RowControls/index.tsx +0 -2
  68. package/src/ui/icons/index.ts +0 -9
@@ -1,13 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createCellHoverDecoration, updateDecorations, createColumnInsertLine, createColumnLineResize, createRowInsertLine, } from './decoration';
3
- export { containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, isTableNestedInMoreThanOneNode, } from './nodes';
4
- export { transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint, } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, getColumnDeleteButtonParams, getColumnIndexMappedToColumnIndexInFirstRow, } from './column-controls';
7
- export { getRowHeights, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
8
- export type { RowParams } from './row-controls';
9
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
10
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
11
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
12
- export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, } from './merged-cells';
13
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';
@@ -1,2 +0,0 @@
1
- export { buildColumnControlsDecorations, maybeUpdateColumnControlsSelectedDecoration, } from './column-controls';
2
- export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
@@ -1,2 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,4 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export type { StickyPluginState, RowStickyState } from './types';
4
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,10 +0,0 @@
1
- export { generateColgroup, insertColgroupFromNode, hasTableBeenResized, getColgroupChildrenLength, getResizerMinWidth, } from './colgroup';
2
- export { contentWidth } from './content-width';
3
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
4
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
5
- export { getLayoutSize, pointsAtCell, currentColWidth, getTableMaxWidth, getTableElementWidth, getTableContainerElementWidth, } from './misc';
6
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
7
- export { scaleTable, previewScaleTable } from './scale-table';
8
- export type { ResizeState, ResizeStateWithAnalytics } from './types';
9
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
10
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,13 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export { findControlsHoverDecoration, createControlsHoverDecoration, createCellHoverDecoration, updateDecorations, createColumnInsertLine, createColumnLineResize, createRowInsertLine, } from './decoration';
3
- export { containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, tablesHaveDifferentNoOfRows, isTableNested, isTableNestedInMoreThanOneNode, } from './nodes';
4
- export { transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
5
- export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, isDragColumnFloatingInsertDot, isDragRowFloatingInsertDot, isDragCornerButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, isResizeHandleDecoration, hasResizeHandler, findNearestCellIndexToPoint, } from './dom';
6
- export { convertHTMLCellIndexToColumnIndex, getColumnsWidths, getColumnDeleteButtonParams, getColumnIndexMappedToColumnIndexInFirstRow, } from './column-controls';
7
- export { getRowHeights, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
8
- export type { RowParams } from './row-controls';
9
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
10
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
11
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
12
- export { hasMergedCellsInBetween, hasMergedCellsInSelection, findDuplicatePosition, } from './merged-cells';
13
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';
@@ -1,5 +0,0 @@
1
- export {
2
- buildColumnControlsDecorations,
3
- maybeUpdateColumnControlsSelectedDecoration,
4
- } from './column-controls';
5
- export { buildColumnResizingDecorations, clearColumnResizingDecorations } from './column-resizing';
@@ -1,2 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
@@ -1 +0,0 @@
1
- export { autoScrollerFactory } from './autoscrollers';
@@ -1,5 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export type { StickyPluginState, RowStickyState } from './types';
4
-
5
- export { findStickyHeaderForTable } from './util';
@@ -1,3 +0,0 @@
1
- export { createPlugin } from './plugin';
2
- export { pluginKey } from './plugin-key';
3
- export { getPluginState } from './plugin-factory';
@@ -1,23 +0,0 @@
1
- export {
2
- generateColgroup,
3
- insertColgroupFromNode,
4
- hasTableBeenResized,
5
- getColgroupChildrenLength,
6
- getResizerMinWidth,
7
- } from './colgroup';
8
- export { contentWidth } from './content-width';
9
- export { getCellsRefsInColumn, calculateColumnWidth } from './column-state';
10
- export { getResizeState, updateColgroup, evenAllColumnsWidths } from './resize-state';
11
- export {
12
- getLayoutSize,
13
- pointsAtCell,
14
- currentColWidth,
15
- getTableMaxWidth,
16
- getTableElementWidth,
17
- getTableContainerElementWidth,
18
- } from './misc';
19
- export { updateControls, isClickNear, getResizeCellPos } from './dom';
20
- export { scaleTable, previewScaleTable } from './scale-table';
21
- export type { ResizeState, ResizeStateWithAnalytics } from './types';
22
- export { resizeColumn, resizeColumnAndTable } from './resize-column';
23
- export { COLUMN_MIN_WIDTH, TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from './consts';
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells } from './merge';
3
- export { deleteColumns } from './delete-columns';
4
- export { deleteRows } from './delete-rows';
5
- export { updateColumnWidths } from './column-width';
6
- export { replaceSelectedTable } from './replace-table';
@@ -1,69 +0,0 @@
1
- export { getSelectedColumnIndexes, getSelectedRowIndexes } from './selection';
2
- export {
3
- findControlsHoverDecoration,
4
- createControlsHoverDecoration,
5
- createCellHoverDecoration,
6
- updateDecorations,
7
- createColumnInsertLine,
8
- createColumnLineResize,
9
- createRowInsertLine,
10
- } from './decoration';
11
- export {
12
- containsHeaderColumn,
13
- containsHeaderRow,
14
- checkIfHeaderColumnEnabled,
15
- checkIfHeaderRowEnabled,
16
- checkIfNumberColumnEnabled,
17
- getTableWidth,
18
- tablesHaveDifferentColumnWidths,
19
- tablesHaveDifferentNoOfColumns,
20
- tablesHaveDifferentNoOfRows,
21
- isTableNested,
22
- isTableNestedInMoreThanOneNode,
23
- } from './nodes';
24
- export {
25
- transformSliceToRemoveOpenTable,
26
- transformSliceToCorrectEmptyTableCells,
27
- transformSliceToFixHardBreakProblemOnCopyFromCell,
28
- } from './paste';
29
- export {
30
- isCell,
31
- isCornerButton,
32
- isInsertRowButton,
33
- isColumnControlsDecorations,
34
- isTableControlsButton,
35
- isTableContainerOrWrapper,
36
- isRowControlsButton,
37
- isDragColumnFloatingInsertDot,
38
- isDragRowFloatingInsertDot,
39
- isDragCornerButton,
40
- getColumnOrRowIndex,
41
- getMousePositionHorizontalRelativeByElement,
42
- getMousePositionVerticalRelativeByElement,
43
- isResizeHandleDecoration,
44
- hasResizeHandler,
45
- findNearestCellIndexToPoint,
46
- } from './dom';
47
- export {
48
- convertHTMLCellIndexToColumnIndex,
49
- getColumnsWidths,
50
- getColumnDeleteButtonParams,
51
- getColumnIndexMappedToColumnIndexInFirstRow,
52
- } from './column-controls';
53
- export {
54
- getRowHeights,
55
- getRowDeleteButtonParams,
56
- getRowsParams,
57
- getRowClassNames,
58
- copyPreviousRow,
59
- } from './row-controls';
60
- export type { RowParams } from './row-controls';
61
- export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
62
- export { getMergedCellsPositions, getAssistiveMessage } from './table';
63
- export { updatePluginStateDecorations } from './update-plugin-state-decorations';
64
- export {
65
- hasMergedCellsInBetween,
66
- hasMergedCellsInSelection,
67
- findDuplicatePosition,
68
- } from './merged-cells';
69
- export { createTableWithWidth } from './create';
@@ -1,2 +0,0 @@
1
- export { CornerControls } from './ClassicCornerControls';
2
- export { DragCornerControls, DragCornerControlsWithSelection } from './DragCornerControls';
@@ -1,2 +0,0 @@
1
- export { RowControls } from './ClassicControls';
2
- export { DragControls } from './DragControls';
@@ -1,9 +0,0 @@
1
- export { DragHandleIcon } from './DragHandleIcon';
2
- export { DragHandleDisabledIcon } from './DragHandleDisabledIcon';
3
- export { MinimisedHandleIcon } from './MinimisedHandle';
4
- export { MergeCellsIcon } from './MergeCellsIcon';
5
- export { SplitCellIcon } from './SplitCellIcon';
6
- export { AddRowAboveIcon } from './AddRowAboveIcon';
7
- export { AddRowBelowIcon } from './AddRowBelowIcon';
8
- export { AddColLeftIcon } from './AddColLeftIcon';
9
- export { AddColRightIcon } from './AddColRightIcon';