@atlaskit/editor-plugin-table 0.0.2 → 0.0.4

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 (186) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/table/index.js +5 -1
  3. package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  4. package/dist/cjs/version.json +1 -1
  5. package/dist/es2019/plugins/table/index.js +3 -4
  6. package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/plugins/table/index.js +5 -4
  9. package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
  10. package/dist/esm/version.json +1 -1
  11. package/dist/types-ts4.0/index.d.ts +1 -0
  12. package/dist/types-ts4.0/plugins/plugin-key.d.ts +4 -0
  13. package/dist/types-ts4.0/plugins/table/commands/clear.d.ts +3 -0
  14. package/dist/types-ts4.0/plugins/table/commands/collapse.d.ts +2 -0
  15. package/dist/types-ts4.0/plugins/table/commands/go-to-next-cell.d.ts +4 -0
  16. package/dist/types-ts4.0/plugins/table/commands/hover.d.ts +8 -0
  17. package/dist/types-ts4.0/plugins/table/commands/index.d.ts +7 -0
  18. package/dist/types-ts4.0/plugins/table/commands/insert.d.ts +10 -0
  19. package/dist/types-ts4.0/plugins/table/commands/misc.d.ts +27 -0
  20. package/dist/types-ts4.0/plugins/table/commands/selection.d.ts +8 -0
  21. package/dist/types-ts4.0/plugins/table/commands/sort.d.ts +3 -0
  22. package/dist/types-ts4.0/plugins/table/commands/split-cell.d.ts +6 -0
  23. package/dist/types-ts4.0/plugins/table/commands/toggle.d.ts +12 -0
  24. package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +26 -0
  25. package/dist/types-ts4.0/plugins/table/create-plugin-config.d.ts +2 -0
  26. package/dist/types-ts4.0/plugins/table/event-handlers.d.ts +16 -0
  27. package/dist/types-ts4.0/plugins/table/handlers.d.ts +3 -0
  28. package/dist/types-ts4.0/plugins/table/index.d.ts +17 -0
  29. package/dist/types-ts4.0/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +26 -0
  30. package/dist/types-ts4.0/plugins/table/nodeviews/TableComponent.d.ts +72 -0
  31. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
  32. package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
  33. package/dist/types-ts4.0/plugins/table/nodeviews/table.d.ts +31 -0
  34. package/dist/types-ts4.0/plugins/table/nodeviews/tableCell.d.ts +19 -0
  35. package/dist/types-ts4.0/plugins/table/nodeviews/types.d.ts +23 -0
  36. package/dist/types-ts4.0/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
  37. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
  38. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
  39. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
  40. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
  41. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
  42. package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
  43. package/dist/types-ts4.0/plugins/table/pm-plugins/default-table-selection.d.ts +5 -0
  44. package/dist/types-ts4.0/plugins/table/pm-plugins/keymap.d.ts +5 -0
  45. package/dist/types-ts4.0/plugins/table/pm-plugins/main.d.ts +8 -0
  46. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
  47. package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
  48. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +4 -0
  49. package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
  50. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
  51. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
  52. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
  53. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +65 -0
  54. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
  55. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
  56. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
  57. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
  58. package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
  59. package/dist/types-ts4.0/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
  60. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
  61. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
  62. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/index.d.ts +3 -0
  63. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
  64. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
  65. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
  66. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
  67. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +8 -0
  68. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
  69. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
  70. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
  71. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
  72. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
  73. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
  74. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
  75. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
  76. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
  77. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
  78. package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
  79. package/dist/types-ts4.0/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
  80. package/dist/types-ts4.0/plugins/table/reducer.d.ts +3 -0
  81. package/dist/types-ts4.0/plugins/table/todo-stubs.d.ts +1 -0
  82. package/dist/types-ts4.0/plugins/table/toolbar.d.ts +36 -0
  83. package/dist/types-ts4.0/plugins/table/transforms/column-width.d.ts +18 -0
  84. package/dist/types-ts4.0/plugins/table/transforms/delete-columns.d.ts +3 -0
  85. package/dist/types-ts4.0/plugins/table/transforms/delete-rows.d.ts +3 -0
  86. package/dist/types-ts4.0/plugins/table/transforms/fix-tables.d.ts +10 -0
  87. package/dist/types-ts4.0/plugins/table/transforms/index.d.ts +7 -0
  88. package/dist/types-ts4.0/plugins/table/transforms/merge.d.ts +5 -0
  89. package/dist/types-ts4.0/plugins/table/transforms/metadata.d.ts +21 -0
  90. package/dist/types-ts4.0/plugins/table/transforms/replace-table.d.ts +5 -0
  91. package/dist/types-ts4.0/plugins/table/transforms/split.d.ts +9 -0
  92. package/dist/types-ts4.0/plugins/table/types.d.ts +328 -0
  93. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
  94. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -0
  95. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +87 -0
  96. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/index.d.ts +22 -0
  97. package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
  98. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
  99. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
  100. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
  101. package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
  102. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
  103. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
  104. package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
  105. package/dist/types-ts4.0/plugins/table/ui/LayoutButton/index.d.ts +21 -0
  106. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +19 -0
  107. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
  108. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
  109. package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
  110. package/dist/types-ts4.0/plugins/table/ui/common-styles.d.ts +4 -0
  111. package/dist/types-ts4.0/plugins/table/ui/consts.d.ts +39 -0
  112. package/dist/types-ts4.0/plugins/table/ui/messages.d.ts +38 -0
  113. package/dist/types-ts4.0/plugins/table/ui/ui-styles.d.ts +15 -0
  114. package/dist/types-ts4.0/plugins/table/utils/analytics.d.ts +18 -0
  115. package/dist/types-ts4.0/plugins/table/utils/collapse.d.ts +29 -0
  116. package/dist/types-ts4.0/plugins/table/utils/column-controls.d.ts +10 -0
  117. package/dist/types-ts4.0/plugins/table/utils/decoration.d.ts +16 -0
  118. package/dist/types-ts4.0/plugins/table/utils/dom.d.ts +20 -0
  119. package/dist/types-ts4.0/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
  120. package/dist/types-ts4.0/plugins/table/utils/index.d.ts +11 -0
  121. package/dist/types-ts4.0/plugins/table/utils/nodes.d.ts +12 -0
  122. package/dist/types-ts4.0/plugins/table/utils/paste.d.ts +14 -0
  123. package/dist/types-ts4.0/plugins/table/utils/referentiality.d.ts +2 -0
  124. package/dist/types-ts4.0/plugins/table/utils/row-controls.d.ts +16 -0
  125. package/dist/types-ts4.0/plugins/table/utils/selection.d.ts +6 -0
  126. package/dist/types-ts4.0/plugins/table/utils/table.d.ts +4 -0
  127. package/dist/types-ts4.0/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
  128. package/dist/types-ts4.0/plugins/table-plugin.d.ts +2 -0
  129. package/dist/types-ts4.0/types.d.ts +3 -0
  130. package/examples/99-testing.tsx +227 -0
  131. package/package.json +18 -5
  132. package/src/plugins/table/__tests__/integration/__fixtures__/auto-size-documents.ts +439 -0
  133. package/src/plugins/table/__tests__/integration/__fixtures__/basic-table.ts +120 -0
  134. package/src/plugins/table/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +396 -0
  135. package/src/plugins/table/__tests__/integration/__fixtures__/even-columns.ts +493 -0
  136. package/src/plugins/table/__tests__/integration/__fixtures__/layout-documents.ts +607 -0
  137. package/src/plugins/table/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +343 -0
  138. package/src/plugins/table/__tests__/integration/__fixtures__/nested-in-extension.ts +163 -0
  139. package/src/plugins/table/__tests__/integration/__fixtures__/paragraph-and-table-adf.json +130 -0
  140. package/src/plugins/table/__tests__/integration/__fixtures__/resize-documents.ts +1610 -0
  141. package/src/plugins/table/__tests__/integration/__fixtures__/scale.ts +825 -0
  142. package/src/plugins/table/__tests__/integration/__fixtures__/table-inside-layout.ts +145 -0
  143. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +175 -0
  144. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +168 -0
  145. package/src/plugins/table/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +216 -0
  146. package/src/plugins/table/__tests__/integration/__snapshots__/auto-size.ts.snap +609 -0
  147. package/src/plugins/table/__tests__/integration/__snapshots__/change-date-inside-table.ts.snap +173 -0
  148. package/src/plugins/table/__tests__/integration/__snapshots__/copy-button.ts.snap +421 -0
  149. package/src/plugins/table/__tests__/integration/__snapshots__/delete-columns.ts.snap +818 -0
  150. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +119 -0
  151. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +119 -0
  152. package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +227 -0
  153. package/src/plugins/table/__tests__/integration/__snapshots__/delete-rows.ts.snap +959 -0
  154. package/src/plugins/table/__tests__/integration/__snapshots__/delete-table-when-selected.ts.snap +101 -0
  155. package/src/plugins/table/__tests__/integration/__snapshots__/deleting-empty-paragraph-under-table.ts.snap +502 -0
  156. package/src/plugins/table/__tests__/integration/__snapshots__/even-columns.ts.snap +645 -0
  157. package/src/plugins/table/__tests__/integration/__snapshots__/insert-cell-header-with-strong-mark.ts.snap +172 -0
  158. package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +238 -0
  159. package/src/plugins/table/__tests__/integration/__snapshots__/layout.ts.snap +1645 -0
  160. package/src/plugins/table/__tests__/integration/__snapshots__/resize.ts.snap +2674 -0
  161. package/src/plugins/table/__tests__/integration/__snapshots__/scale.ts.snap +1083 -0
  162. package/src/plugins/table/__tests__/integration/arrow-down-into-table.ts +38 -0
  163. package/src/plugins/table/__tests__/integration/auto-size.ts +87 -0
  164. package/src/plugins/table/__tests__/integration/block-node-selection.ts +162 -163
  165. package/src/plugins/table/__tests__/integration/cell-selection.ts +101 -0
  166. package/src/plugins/table/__tests__/integration/change-date-inside-table.ts +47 -0
  167. package/src/plugins/table/__tests__/integration/copy-button.ts +179 -0
  168. package/src/plugins/table/__tests__/integration/delete-columns.ts +95 -0
  169. package/src/plugins/table/__tests__/integration/delete-last-column-in-full-width.ts +70 -0
  170. package/src/plugins/table/__tests__/integration/delete-last-column-with-empty-action.ts +58 -0
  171. package/src/plugins/table/__tests__/integration/delete-last-row-with-empty-action.ts +97 -0
  172. package/src/plugins/table/__tests__/integration/delete-rows.ts +122 -0
  173. package/src/plugins/table/__tests__/integration/delete-table-when-selected.ts +110 -0
  174. package/src/plugins/table/__tests__/integration/deleting-empty-paragraph-under-table.ts +86 -0
  175. package/src/plugins/table/__tests__/integration/even-columns.ts +72 -0
  176. package/src/plugins/table/__tests__/integration/insert-cell-header-with-strong-mark.ts +40 -0
  177. package/src/plugins/table/__tests__/integration/insert-long-smart-link.ts +52 -0
  178. package/src/plugins/table/__tests__/integration/insert-row-inside-layout.ts +47 -0
  179. package/src/plugins/table/__tests__/integration/layout.ts +224 -0
  180. package/src/plugins/table/__tests__/integration/resize-handler.ts +101 -0
  181. package/src/plugins/table/__tests__/integration/resize.ts +342 -0
  182. package/src/plugins/table/__tests__/integration/scale.ts +67 -0
  183. package/src/plugins/table/__tests__/integration/table-controls-selection.ts +70 -0
  184. package/src/plugins/table/index.tsx +3 -3
  185. package/src/plugins/table/ui/FloatingContextualButton/index.tsx +2 -2
  186. package/types/package.json +8 -1
@@ -0,0 +1,328 @@
1
+ import { Node as PmNode } from 'prosemirror-model';
2
+ import { Transaction } from 'prosemirror-state';
3
+ import { Rect } from '@atlaskit/editor-tables/table-map';
4
+ import { DecorationSet } from 'prosemirror-view';
5
+ import { IntlShape } from 'react-intl-next';
6
+ import { TableLayout } from '@atlaskit/adf-schema';
7
+ import { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
8
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
+ export declare const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
10
+ export declare type RowInsertPosition = 'TOP' | 'BOTTOM';
11
+ export declare type PermittedLayoutsDescriptor = TableLayout[] | 'all';
12
+ export declare type Cell = {
13
+ pos: number;
14
+ start: number;
15
+ node: PmNode;
16
+ };
17
+ export declare type CellTransform = (cell: Cell) => (tr: Transaction) => Transaction;
18
+ export interface InsertRowOptions {
19
+ index: number;
20
+ moveCursorToInsertedRow: boolean;
21
+ }
22
+ export declare type InsertRowMethods = INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
23
+ export interface PluginConfig {
24
+ advanced?: boolean;
25
+ allowBackgroundColor?: boolean;
26
+ allowColumnResizing?: boolean;
27
+ allowHeaderColumn?: boolean;
28
+ allowHeaderRow?: boolean;
29
+ allowMergeCells?: boolean;
30
+ allowNumberColumn?: boolean;
31
+ allowColumnSorting?: boolean;
32
+ allowAddColumnWithCustomStep?: boolean;
33
+ allowCollapse?: boolean;
34
+ isHeaderRowRequired?: boolean;
35
+ stickToolbarToBottom?: boolean;
36
+ permittedLayouts?: PermittedLayoutsDescriptor;
37
+ allowControls?: boolean;
38
+ stickyHeaders?: boolean;
39
+ allowCellOptionsInFloatingToolbar?: boolean;
40
+ tableCellOptimization?: boolean;
41
+ tableRenderOptimization?: boolean;
42
+ stickyHeadersOptimization?: boolean;
43
+ initialRenderOptimization?: boolean;
44
+ mouseMoveOptimization?: boolean;
45
+ tableOverflowShadowsOptimization?: boolean;
46
+ allowDistributeColumns?: boolean;
47
+ }
48
+ export interface ColumnResizingPluginState {
49
+ resizeHandlePos: number | null;
50
+ dragging: {
51
+ startX: number;
52
+ startWidth: number;
53
+ } | null;
54
+ lastClick: {
55
+ x: number;
56
+ y: number;
57
+ time: number;
58
+ } | null;
59
+ lastColumnResizable?: boolean;
60
+ }
61
+ export declare type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
62
+ export interface TablePluginState {
63
+ editorHasFocus?: boolean;
64
+ hoveredColumns: number[];
65
+ hoveredRows: number[];
66
+ pluginConfig: PluginConfig;
67
+ isHeaderColumnEnabled: boolean;
68
+ isHeaderRowEnabled: boolean;
69
+ isNumberColumnEnabled?: boolean;
70
+ targetCellPosition?: number;
71
+ tableNode?: PmNode;
72
+ tableRef?: HTMLTableElement;
73
+ tablePos?: number;
74
+ tableWrapperTarget?: HTMLElement;
75
+ isContextualMenuOpen?: boolean;
76
+ isInDanger?: boolean;
77
+ insertColumnButtonIndex?: number;
78
+ insertRowButtonIndex?: number;
79
+ isFullWidthModeEnabled?: boolean;
80
+ layout?: TableLayout;
81
+ ordering?: TableColumnOrdering;
82
+ resizeHandleColumnIndex?: number;
83
+ tableCellOptimization?: boolean;
84
+ isTableCollapsed?: boolean;
85
+ canCollapseTable?: boolean;
86
+ }
87
+ export declare type TablePluginAction = {
88
+ type: 'SET_EDITOR_FOCUS';
89
+ data: {
90
+ editorHasFocus: boolean;
91
+ };
92
+ } | {
93
+ type: 'TOGGLE_HEADER_ROW';
94
+ } | {
95
+ type: 'TOGGLE_HEADER_COLUMN';
96
+ } | {
97
+ type: 'SORT_TABLE';
98
+ data: {
99
+ ordering: TableColumnOrdering;
100
+ };
101
+ } | {
102
+ type: 'SET_TABLE_REF';
103
+ data: {
104
+ tableRef?: HTMLTableElement;
105
+ tableNode?: PmNode;
106
+ tableWrapperTarget?: HTMLElement;
107
+ layout: TableLayout;
108
+ isHeaderRowEnabled: boolean;
109
+ isHeaderColumnEnabled: boolean;
110
+ };
111
+ } | {
112
+ type: 'HOVER_ROWS';
113
+ data: {
114
+ decorationSet: DecorationSet;
115
+ hoveredRows: number[];
116
+ isInDanger?: boolean;
117
+ };
118
+ } | {
119
+ type: 'HOVER_CELLS';
120
+ data: {
121
+ decorationSet: DecorationSet;
122
+ };
123
+ } | {
124
+ type: 'HOVER_COLUMNS';
125
+ data: {
126
+ decorationSet: DecorationSet;
127
+ hoveredColumns: number[];
128
+ isInDanger?: boolean;
129
+ };
130
+ } | {
131
+ type: 'HOVER_TABLE';
132
+ data: {
133
+ decorationSet: DecorationSet;
134
+ hoveredRows: number[];
135
+ hoveredColumns: number[];
136
+ isInDanger?: boolean;
137
+ };
138
+ } | {
139
+ type: 'ADD_RESIZE_HANDLE_DECORATIONS';
140
+ data: {
141
+ decorationSet: DecorationSet;
142
+ resizeHandleColumnIndex: number;
143
+ };
144
+ } | {
145
+ type: 'CLEAR_HOVER_SELECTION';
146
+ data: {
147
+ decorationSet: DecorationSet;
148
+ };
149
+ } | {
150
+ type: 'SHOW_RESIZE_HANDLE_LINE';
151
+ data: {
152
+ decorationSet: DecorationSet;
153
+ };
154
+ } | {
155
+ type: 'HIDE_RESIZE_HANDLE_LINE';
156
+ data: {
157
+ decorationSet: DecorationSet;
158
+ };
159
+ } | {
160
+ type: 'SET_TARGET_CELL_POSITION';
161
+ data: {
162
+ targetCellPosition?: number;
163
+ };
164
+ } | {
165
+ type: 'SELECT_COLUMN';
166
+ data: {
167
+ targetCellPosition: number;
168
+ decorationSet: DecorationSet;
169
+ };
170
+ } | {
171
+ type: 'SET_TABLE_LAYOUT';
172
+ data: {
173
+ layout: TableLayout;
174
+ };
175
+ } | {
176
+ type: 'SHOW_INSERT_ROW_BUTTON';
177
+ data: {
178
+ insertRowButtonIndex: number;
179
+ };
180
+ } | {
181
+ type: 'SHOW_INSERT_COLUMN_BUTTON';
182
+ data: {
183
+ insertColumnButtonIndex: number;
184
+ };
185
+ } | {
186
+ type: 'HIDE_INSERT_COLUMN_OR_ROW_BUTTON';
187
+ } | {
188
+ type: 'TOGGLE_CONTEXTUAL_MENU';
189
+ };
190
+ export declare type ColumnResizingPluginAction = {
191
+ type: 'SET_RESIZE_HANDLE_POSITION';
192
+ data: {
193
+ resizeHandlePos: number | null;
194
+ };
195
+ } | {
196
+ type: 'STOP_RESIZING';
197
+ } | {
198
+ type: 'SET_DRAGGING';
199
+ data: {
200
+ dragging: {
201
+ startX: number;
202
+ startWidth: number;
203
+ } | null;
204
+ };
205
+ } | {
206
+ type: 'SET_LAST_CLICK';
207
+ data: {
208
+ lastClick: {
209
+ x: number;
210
+ y: number;
211
+ time: number;
212
+ } | null;
213
+ };
214
+ };
215
+ export declare enum TableDecorations {
216
+ ALL_CONTROLS_HOVER = "CONTROLS_HOVER",
217
+ ROW_CONTROLS_HOVER = "ROW_CONTROLS_HOVER",
218
+ COLUMN_CONTROLS_HOVER = "COLUMN_CONTROLS_HOVER",
219
+ TABLE_CONTROLS_HOVER = "TABLE_CONTROLS_HOVER",
220
+ CELL_CONTROLS_HOVER = "CELL_CONTROLS_HOVER",
221
+ COLUMN_CONTROLS_DECORATIONS = "COLUMN_CONTROLS_DECORATIONS",
222
+ COLUMN_SELECTED = "COLUMN_SELECTED",
223
+ COLUMN_RESIZING_HANDLE = "COLUMN_RESIZING_HANDLE",
224
+ COLUMN_RESIZING_HANDLE_LINE = "COLUMN_RESIZING_HANDLE_LINE",
225
+ LAST_CELL_ELEMENT = "LAST_CELL_ELEMENT"
226
+ }
227
+ export declare const TableCssClassName: {
228
+ COLUMN_CONTROLS: string;
229
+ COLUMN_CONTROLS_DECORATIONS: string;
230
+ COLUMN_SELECTED: string;
231
+ ROW_CONTROLS_WRAPPER: string;
232
+ ROW_CONTROLS: string;
233
+ ROW_CONTROLS_INNER: string;
234
+ ROW_CONTROLS_BUTTON_WRAP: string;
235
+ ROW_CONTROLS_BUTTON: string;
236
+ CONTROLS_BUTTON: string;
237
+ CONTROLS_BUTTON_ICON: string;
238
+ CONTROLS_INSERT_BUTTON: string;
239
+ CONTROLS_INSERT_BUTTON_INNER: string;
240
+ CONTROLS_INSERT_BUTTON_WRAP: string;
241
+ CONTROLS_INSERT_LINE: string;
242
+ CONTROLS_BUTTON_OVERLAY: string;
243
+ LAYOUT_BUTTON: string;
244
+ CONTROLS_INSERT_MARKER: string;
245
+ CONTROLS_INSERT_COLUMN: string;
246
+ CONTROLS_INSERT_ROW: string;
247
+ CONTROLS_DELETE_BUTTON_WRAP: string;
248
+ CONTROLS_DELETE_BUTTON: string;
249
+ CONTROLS_FLOATING_BUTTON_COLUMN: string;
250
+ CONTROLS_FLOATING_BUTTON_ROW: string;
251
+ CORNER_CONTROLS: string;
252
+ CORNER_CONTROLS_INSERT_ROW_MARKER: string;
253
+ CORNER_CONTROLS_INSERT_COLUMN_MARKER: string;
254
+ CONTROLS_CORNER_BUTTON: string;
255
+ NUMBERED_COLUMN: string;
256
+ NUMBERED_COLUMN_BUTTON: string;
257
+ HOVERED_COLUMN: string;
258
+ HOVERED_ROW: string;
259
+ HOVERED_TABLE: string;
260
+ HOVERED_CELL: string;
261
+ HOVERED_CELL_IN_DANGER: string;
262
+ HOVERED_CELL_ACTIVE: string;
263
+ HOVERED_CELL_WARNING: string;
264
+ HOVERED_DELETE_BUTTON: string;
265
+ WITH_CONTROLS: string;
266
+ RESIZING_PLUGIN: string;
267
+ RESIZE_CURSOR: string;
268
+ IS_RESIZING: string;
269
+ RESIZE_HANDLE: string;
270
+ RESIZE_HANDLE_DECORATION: string;
271
+ CONTEXTUAL_SUBMENU: string;
272
+ CONTEXTUAL_MENU_BUTTON_WRAP: string;
273
+ CONTEXTUAL_MENU_BUTTON: string;
274
+ CONTEXTUAL_MENU_ICON: string;
275
+ SELECTED_CELL: string;
276
+ NODEVIEW_WRAPPER: string;
277
+ TABLE_SELECTED: string;
278
+ TABLE_CELL: string;
279
+ TABLE_HEADER_CELL: string;
280
+ TABLE_STICKY: string;
281
+ TOP_LEFT_CELL: string;
282
+ LAST_ITEM_IN_CELL: string;
283
+ WITH_RESIZE_LINE: string;
284
+ TABLE_CONTAINER: string;
285
+ TABLE_NODE_WRAPPER: string;
286
+ TABLE_LEFT_SHADOW: string;
287
+ TABLE_RIGHT_SHADOW: string;
288
+ TABLE_STICKY_SHADOW: string;
289
+ TABLE_STICKY_WRAPPER: string;
290
+ TABLE_STICKY_SENTINEL_TOP: string;
291
+ TABLE_STICKY_SENTINEL_BOTTOM: string;
292
+ TABLE_CELL_NODEVIEW_CONTENT_DOM: string;
293
+ TABLE_CELL_WRAPPER: string;
294
+ TABLE_HEADER_CELL_WRAPPER: string;
295
+ TABLE_ROW_CONTROLS_WRAPPER: string;
296
+ TABLE_COLUMN_CONTROLS_DECORATIONS: string;
297
+ };
298
+ export interface ToolbarMenuConfig {
299
+ allowHeaderRow?: boolean;
300
+ allowHeaderColumn?: boolean;
301
+ allowNumberColumn?: boolean;
302
+ allowCollapse?: boolean;
303
+ }
304
+ export interface ToolbarMenuState {
305
+ isHeaderRowEnabled?: boolean;
306
+ isHeaderColumnEnabled?: boolean;
307
+ isNumberColumnEnabled?: boolean;
308
+ isTableCollapsed?: boolean;
309
+ canCollapseTable?: boolean;
310
+ }
311
+ export interface ToolbarMenuContext {
312
+ formatMessage: IntlShape['formatMessage'];
313
+ }
314
+ export declare type ElementContentRects = {
315
+ [key: string]: ResizeObserverEntry['contentRect'];
316
+ };
317
+ export declare enum ShadowEvent {
318
+ SHOW_BEFORE_SHADOW = "showBeforeShadow",
319
+ SHOW_AFTER_SHADOW = "showAfterShadow"
320
+ }
321
+ export declare type ReportInvalidNodeAttrs = (invalidNodeAttrs: InvalidNodeAttr) => void;
322
+ export declare type InvalidNodeAttr = {
323
+ nodeType: string;
324
+ attribute: string;
325
+ reason: string;
326
+ spanValue: number;
327
+ tableLocalId: string;
328
+ };
@@ -0,0 +1,29 @@
1
+ /** @jsx jsx */
2
+ import React from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ import { EditorView } from 'prosemirror-view';
5
+ import { WrappedComponentProps } from 'react-intl-next';
6
+ import { TableLayout } from '@atlaskit/adf-schema';
7
+ import { RowStickyState } from '../../pm-plugins/sticky-headers';
8
+ import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
9
+ import { Node as PMNode } from 'prosemirror-model';
10
+ export interface Props {
11
+ editorView: EditorView;
12
+ tableNode?: PMNode;
13
+ targetCellPosition: number;
14
+ isContextualMenuOpen?: boolean;
15
+ mountPoint?: HTMLElement;
16
+ boundariesElement?: HTMLElement;
17
+ scrollableElement?: HTMLElement;
18
+ layout?: TableLayout;
19
+ isNumberColumnEnabled?: boolean;
20
+ stickyHeader?: RowStickyState;
21
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
22
+ }
23
+ export declare class FloatingContextualButtonInner extends React.Component<Props & WrappedComponentProps, any> {
24
+ static displayName: string;
25
+ render(): jsx.JSX.Element | null;
26
+ shouldComponentUpdate(nextProps: Props): boolean;
27
+ private handleClick;
28
+ }
29
+ export default function (props: Props): jsx.JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const tableFloatingCellButtonStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,87 @@
1
+ /** @jsx jsx */
2
+ import { Component } from 'react';
3
+ import { jsx } from '@emotion/react';
4
+ import { Rect } from '@atlaskit/editor-tables/table-map';
5
+ import { EditorView } from 'prosemirror-view';
6
+ import { WrappedComponentProps } from 'react-intl-next';
7
+ import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
8
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
+ export declare const messages: {
10
+ cellBackground: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ description: string;
14
+ };
15
+ mergeCells: {
16
+ id: string;
17
+ defaultMessage: string;
18
+ description: string;
19
+ };
20
+ splitCell: {
21
+ id: string;
22
+ defaultMessage: string;
23
+ description: string;
24
+ };
25
+ clearCells: {
26
+ id: string;
27
+ defaultMessage: string;
28
+ description: string;
29
+ };
30
+ sortColumnASC: {
31
+ id: string;
32
+ defaultMessage: string;
33
+ description: string;
34
+ };
35
+ sortColumnDESC: {
36
+ id: string;
37
+ defaultMessage: string;
38
+ description: string;
39
+ };
40
+ canNotSortTable: {
41
+ id: string;
42
+ defaultMessage: string;
43
+ description: string;
44
+ };
45
+ distributeColumns: {
46
+ id: string;
47
+ defaultMessage: string;
48
+ description: string;
49
+ };
50
+ };
51
+ export interface Props {
52
+ editorView: EditorView;
53
+ isOpen: boolean;
54
+ selectionRect: Rect;
55
+ targetCellPosition?: number;
56
+ mountPoint?: HTMLElement;
57
+ allowMergeCells?: boolean;
58
+ allowColumnSorting?: boolean;
59
+ allowBackgroundColor?: boolean;
60
+ boundariesElement?: HTMLElement;
61
+ offset?: Array<number>;
62
+ editorAnalyticsAPI?: EditorAnalyticsAPI;
63
+ getEditorContainerWidth: GetEditorContainerWidth;
64
+ }
65
+ export interface State {
66
+ isSubmenuOpen: boolean;
67
+ }
68
+ export declare class ContextualMenu extends Component<Props & WrappedComponentProps, State> {
69
+ state: State;
70
+ static defaultProps: {
71
+ boundariesElement: HTMLElement;
72
+ };
73
+ render(): jsx.JSX.Element | null;
74
+ private handleSubMenuRef;
75
+ private createItems;
76
+ private onMenuItemActivated;
77
+ private toggleOpen;
78
+ private handleOpenChange;
79
+ private handleItemMouseEnter;
80
+ private handleItemMouseLeave;
81
+ private closeSubmenu;
82
+ private setColor;
83
+ }
84
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
85
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
86
+ };
87
+ export default _default;
@@ -0,0 +1,22 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ import { EditorView } from 'prosemirror-view';
4
+ import { PluginConfig } from '../../types';
5
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
+ import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
7
+ export interface Props {
8
+ editorView: EditorView;
9
+ isOpen: boolean;
10
+ getEditorContainerWidth: GetEditorContainerWidth;
11
+ targetCellPosition?: number;
12
+ mountPoint?: HTMLElement;
13
+ boundariesElement?: HTMLElement;
14
+ scrollableElement?: HTMLElement;
15
+ pluginConfig?: PluginConfig;
16
+ editorAnalyticsAPI?: EditorAnalyticsAPI;
17
+ }
18
+ declare const FloatingContextualMenu: {
19
+ ({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, }: Props): jsx.JSX.Element | null;
20
+ displayName: string;
21
+ };
22
+ export default FloatingContextualMenu;
@@ -0,0 +1,2 @@
1
+ export declare const cellColourPreviewStyles: (selectedColor: string) => import("@emotion/react").SerializedStyles;
2
+ export declare const tablePopupStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,14 @@
1
+ import React, { SyntheticEvent } from 'react';
2
+ import { WrappedComponentProps } from 'react-intl-next';
3
+ import { MessageDescriptor } from 'react-intl-next';
4
+ export interface ButtonProps {
5
+ removeLabel: MessageDescriptor;
6
+ style?: object;
7
+ onClick?: (event: SyntheticEvent) => void;
8
+ onMouseEnter?: (event: SyntheticEvent) => void;
9
+ onMouseLeave?: (event: SyntheticEvent) => void;
10
+ }
11
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps<"intl">>> & {
12
+ WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps<"intl">>;
13
+ };
14
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { PopupProps } from '@atlaskit/editor-common/ui';
2
+ import { CellSelectionType } from './types';
3
+ interface GetPopupOptions {
4
+ left: number;
5
+ top: number;
6
+ selectionType?: CellSelectionType;
7
+ tableWrapper: HTMLElement | null;
8
+ }
9
+ export default function getPopupOptions({ left, top, selectionType, tableWrapper, }: GetPopupOptions): Partial<PopupProps>;
10
+ export {};
@@ -0,0 +1,54 @@
1
+ import { Component } from 'react';
2
+ import { Selection } from 'prosemirror-state';
3
+ import { EditorView } from 'prosemirror-view';
4
+ import { RowStickyState } from '../../pm-plugins/sticky-headers';
5
+ import { CellSelectionType } from './types';
6
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
7
+ export interface Props {
8
+ editorView: EditorView;
9
+ selection: Selection;
10
+ tableRef?: HTMLTableElement;
11
+ mountPoint?: HTMLElement;
12
+ boundariesElement?: HTMLElement;
13
+ scrollableElement?: HTMLElement;
14
+ stickyHeaders?: RowStickyState;
15
+ isNumberColumnEnabled?: boolean;
16
+ editorAnalyticsAPI?: EditorAnalyticsAPI;
17
+ }
18
+ export interface State {
19
+ selectionType?: CellSelectionType;
20
+ left: number;
21
+ top: number;
22
+ indexes: number[];
23
+ position?: string;
24
+ scrollLeft: number;
25
+ }
26
+ export declare function getSelectionType(selection: Selection): 'column' | 'row' | undefined;
27
+ declare class FloatingDeleteButton extends Component<Props, State> {
28
+ static displayName: string;
29
+ wrapper: HTMLElement | null;
30
+ constructor(props: Props);
31
+ shouldComponentUpdate(_: Props, nextState: State): boolean;
32
+ componentDidMount(): void;
33
+ componentDidUpdate(): void;
34
+ updateWrapper: () => void;
35
+ componentWillUnmount(): void;
36
+ onWrapperScrolled: (e: Event) => void;
37
+ /**
38
+ * We derivate the button state from the properties passed.
39
+ * We do this in here because we need this information in different places
40
+ * and this prevent to do multiple width calculations in the same component.
41
+ */
42
+ static getDerivedStateFromProps(nextProps: Readonly<Props>, prevState: State): Partial<State> | null;
43
+ private handleMouseEnter;
44
+ private handleMouseLeave;
45
+ /**
46
+ *
47
+ *
48
+ * @private
49
+ * @memberof FloatingDeleteButton
50
+ */
51
+ private handleClick;
52
+ render(): JSX.Element | null;
53
+ }
54
+ export default FloatingDeleteButton;
@@ -0,0 +1 @@
1
+ export declare type CellSelectionType = 'column' | 'row' | undefined;
@@ -0,0 +1,12 @@
1
+ import React, { SyntheticEvent } from 'react';
2
+ import { WrappedComponentProps } from 'react-intl-next';
3
+ export interface ButtonProps {
4
+ type: 'row' | 'column';
5
+ tableRef: HTMLElement;
6
+ onMouseDown: (event: SyntheticEvent<HTMLButtonElement>) => void;
7
+ hasStickyHeaders: boolean;
8
+ }
9
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps<"intl">>> & {
10
+ WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps<"intl">>;
11
+ };
12
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { PopupProps } from '@atlaskit/editor-common/ui';
2
+ declare function getPopupOptions(type: 'column' | 'row', index: number, hasNumberedColumns: boolean, tableContainer: HTMLElement | null): Partial<PopupProps>;
3
+ export default getPopupOptions;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { Node as PmNode } from 'prosemirror-model';
3
+ import { EditorView } from 'prosemirror-view';
4
+ import { WrappedComponentProps } from 'react-intl-next';
5
+ import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
6
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
7
+ import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
8
+ export interface Props {
9
+ editorView: EditorView;
10
+ getEditorContainerWidth: GetEditorContainerWidth;
11
+ tableRef?: HTMLElement;
12
+ tableNode?: PmNode;
13
+ insertColumnButtonIndex?: number;
14
+ insertRowButtonIndex?: number;
15
+ isHeaderColumnEnabled?: boolean;
16
+ isHeaderRowEnabled?: boolean;
17
+ mountPoint?: HTMLElement;
18
+ boundariesElement?: HTMLElement;
19
+ scrollableElement?: HTMLElement;
20
+ hasStickyHeaders?: boolean;
21
+ dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
22
+ editorAnalyticsAPI?: EditorAnalyticsAPI;
23
+ }
24
+ export declare class FloatingInsertButton extends React.Component<Props & WrappedComponentProps, any> {
25
+ static displayName: string;
26
+ constructor(props: Props & WrappedComponentProps);
27
+ render(): JSX.Element | null;
28
+ private getCellPosition;
29
+ private insertRow;
30
+ private insertColumn;
31
+ }
32
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
33
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
34
+ };
35
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { EditorView } from 'prosemirror-view';
3
+ import { WrappedComponentProps } from 'react-intl-next';
4
+ import { TableLayout } from '@atlaskit/adf-schema';
5
+ import { RowStickyState } from '../../pm-plugins/sticky-headers';
6
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
7
+ export interface Props {
8
+ editorView: EditorView;
9
+ targetRef?: HTMLElement;
10
+ mountPoint?: HTMLElement;
11
+ boundariesElement?: HTMLElement;
12
+ scrollableElement?: HTMLElement;
13
+ isResizing?: boolean;
14
+ layout?: TableLayout;
15
+ stickyHeader?: RowStickyState;
16
+ editorAnalyticsAPI?: EditorAnalyticsAPI;
17
+ }
18
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
19
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
20
+ };
21
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { Component } from 'react';
2
+ import { EditorView } from 'prosemirror-view';
3
+ export interface Props {
4
+ editorView: EditorView;
5
+ tableRef?: HTMLTableElement;
6
+ isInDanger?: boolean;
7
+ isResizing?: boolean;
8
+ hoveredRows?: number[];
9
+ isHeaderColumnEnabled?: boolean;
10
+ isHeaderRowEnabled?: boolean;
11
+ stickyTop?: number;
12
+ }
13
+ export default class CornerControls extends Component<Props, any> {
14
+ render(): JSX.Element | null;
15
+ private isActive;
16
+ private clearHoverSelection;
17
+ private selectTable;
18
+ private hoverTable;
19
+ }
@@ -0,0 +1,21 @@
1
+ import { Component } from 'react';
2
+ import { EditorView } from 'prosemirror-view';
3
+ export interface Props {
4
+ editorView: EditorView;
5
+ tableRef: HTMLTableElement;
6
+ tableActive?: boolean;
7
+ hoverRows: (rows: number[], danger?: boolean) => void;
8
+ hoveredRows?: number[];
9
+ selectRow: (row: number, expand: boolean) => void;
10
+ hasHeaderRow?: boolean;
11
+ isInDanger?: boolean;
12
+ isResizing?: boolean;
13
+ stickyTop?: number;
14
+ }
15
+ export default class NumberColumn extends Component<Props, any> {
16
+ render(): JSX.Element;
17
+ private hoverRows;
18
+ private selectRow;
19
+ private clearHoverSelection;
20
+ private getClassNames;
21
+ }