@atlaskit/editor-plugin-table 4.2.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/plugins/table/commands/selection.js +19 -22
  3. package/dist/cjs/plugins/table/index.js +1 -3
  4. package/dist/cjs/plugins/table/transforms/column-width.js +2 -2
  5. package/dist/es2019/plugins/table/commands/selection.js +14 -20
  6. package/dist/es2019/plugins/table/index.js +1 -4
  7. package/dist/es2019/plugins/table/transforms/column-width.js +2 -2
  8. package/dist/esm/plugins/table/commands/selection.js +19 -22
  9. package/dist/esm/plugins/table/index.js +1 -4
  10. package/dist/esm/plugins/table/transforms/column-width.js +2 -2
  11. package/dist/types/plugins/table/commands/selection.d.ts +4 -4
  12. package/dist/types/plugins/table/index.d.ts +3 -10
  13. package/dist/types/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -3
  14. package/package.json +3 -2
  15. package/src/__tests__/unit/analytics.ts +1 -1
  16. package/src/__tests__/unit/collab.ts +1 -1
  17. package/src/__tests__/unit/commands/go-to-next-cell.ts +1 -1
  18. package/src/__tests__/unit/commands/insert.ts +1 -1
  19. package/src/__tests__/unit/commands/misc.ts +1 -1
  20. package/src/__tests__/unit/commands/sort.ts +1 -1
  21. package/src/__tests__/unit/commands.ts +1 -1
  22. package/src/__tests__/unit/copy-paste.ts +1 -1
  23. package/src/__tests__/unit/event-handlers/index.ts +1 -1
  24. package/src/__tests__/unit/event-handlers.ts +1 -1
  25. package/src/__tests__/unit/fix-tables.ts +1 -1
  26. package/src/__tests__/unit/get-toolbar-config.ts +1 -1
  27. package/src/__tests__/unit/handlers.ts +1 -2
  28. package/src/__tests__/unit/hover-selection.ts +1 -2
  29. package/src/__tests__/unit/index.ts +1 -2
  30. package/src/__tests__/unit/layout.ts +1 -2
  31. package/src/__tests__/unit/nodeviews/cell.ts +1 -1
  32. package/src/__tests__/unit/nodeviews/table.ts +1 -1
  33. package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +1 -1
  34. package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +1 -1
  35. package/src/__tests__/unit/pm-plugins/main.ts +1 -1
  36. package/src/__tests__/unit/pm-plugins/safari-delete-composition-text-issue-workaround.ts +1 -1
  37. package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +1 -1
  38. package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +1 -1
  39. package/src/__tests__/unit/pm-plugins/table-width.ts +1 -1
  40. package/src/__tests__/unit/sort-column.ts +1 -1
  41. package/src/__tests__/unit/toolbar.ts +1 -1
  42. package/src/__tests__/unit/transforms/delete-columns.ts +1 -1
  43. package/src/__tests__/unit/transforms/delete-rows.ts +1 -1
  44. package/src/__tests__/unit/transforms/merging.ts +1 -1
  45. package/src/__tests__/unit/ui/ContextualMenu.tsx +1 -1
  46. package/src/__tests__/unit/ui/CornerControls.tsx +1 -1
  47. package/src/__tests__/unit/ui/FloatingContextualButton.tsx +1 -1
  48. package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +1 -1
  49. package/src/__tests__/unit/ui/RowControls.tsx +1 -1
  50. package/src/__tests__/unit/ui/TableFloatingControls.tsx +1 -1
  51. package/src/__tests__/unit/undo-redo.ts +1 -1
  52. package/src/__tests__/unit/utils/collapse.ts +1 -1
  53. package/src/__tests__/unit/utils/nodes.ts +1 -1
  54. package/src/__tests__/unit/utils/row-controls.ts +1 -1
  55. package/src/__tests__/unit/utils.ts +1 -1
  56. package/src/plugins/table/commands/selection.ts +101 -33
  57. package/src/plugins/table/index.tsx +3 -17
  58. package/src/plugins/table/pm-plugins/table-selection-keymap.ts +6 -3
  59. package/src/plugins/table/transforms/column-width.ts +8 -2
  60. package/tsconfig.app.json +3 -0
  61. package/tsconfig.dev.json +3 -0
  62. package/dist/types-ts4.5/i18n/cs.d.ts +0 -37
  63. package/dist/types-ts4.5/i18n/da.d.ts +0 -35
  64. package/dist/types-ts4.5/i18n/de.d.ts +0 -35
  65. package/dist/types-ts4.5/i18n/en.d.ts +0 -37
  66. package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -37
  67. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -37
  68. package/dist/types-ts4.5/i18n/es.d.ts +0 -35
  69. package/dist/types-ts4.5/i18n/fi.d.ts +0 -35
  70. package/dist/types-ts4.5/i18n/fr.d.ts +0 -37
  71. package/dist/types-ts4.5/i18n/hu.d.ts +0 -37
  72. package/dist/types-ts4.5/i18n/it.d.ts +0 -37
  73. package/dist/types-ts4.5/i18n/ja.d.ts +0 -37
  74. package/dist/types-ts4.5/i18n/ko.d.ts +0 -35
  75. package/dist/types-ts4.5/i18n/nb.d.ts +0 -35
  76. package/dist/types-ts4.5/i18n/nl.d.ts +0 -37
  77. package/dist/types-ts4.5/i18n/pl.d.ts +0 -37
  78. package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -37
  79. package/dist/types-ts4.5/i18n/ru.d.ts +0 -37
  80. package/dist/types-ts4.5/i18n/sv.d.ts +0 -35
  81. package/dist/types-ts4.5/i18n/th.d.ts +0 -35
  82. package/dist/types-ts4.5/i18n/tr.d.ts +0 -37
  83. package/dist/types-ts4.5/i18n/uk.d.ts +0 -37
  84. package/dist/types-ts4.5/i18n/vi.d.ts +0 -35
  85. package/dist/types-ts4.5/i18n/zh.d.ts +0 -37
  86. package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -37
  87. package/dist/types-ts4.5/index.d.ts +0 -2
  88. package/dist/types-ts4.5/plugins/table/commands/clear.d.ts +0 -3
  89. package/dist/types-ts4.5/plugins/table/commands/collapse.d.ts +0 -2
  90. package/dist/types-ts4.5/plugins/table/commands/delete.d.ts +0 -3
  91. package/dist/types-ts4.5/plugins/table/commands/go-to-next-cell.d.ts +0 -4
  92. package/dist/types-ts4.5/plugins/table/commands/hover.d.ts +0 -8
  93. package/dist/types-ts4.5/plugins/table/commands/index.d.ts +0 -8
  94. package/dist/types-ts4.5/plugins/table/commands/insert.d.ts +0 -9
  95. package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +0 -29
  96. package/dist/types-ts4.5/plugins/table/commands/referentiality.d.ts +0 -2
  97. package/dist/types-ts4.5/plugins/table/commands/selection.d.ts +0 -8
  98. package/dist/types-ts4.5/plugins/table/commands/sort.d.ts +0 -3
  99. package/dist/types-ts4.5/plugins/table/commands/split-cell.d.ts +0 -6
  100. package/dist/types-ts4.5/plugins/table/commands/toggle.d.ts +0 -12
  101. package/dist/types-ts4.5/plugins/table/commands-with-analytics.d.ts +0 -25
  102. package/dist/types-ts4.5/plugins/table/create-plugin-config.d.ts +0 -2
  103. package/dist/types-ts4.5/plugins/table/event-handlers.d.ts +0 -15
  104. package/dist/types-ts4.5/plugins/table/handlers.d.ts +0 -3
  105. package/dist/types-ts4.5/plugins/table/index.d.ts +0 -45
  106. package/dist/types-ts4.5/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +0 -24
  107. package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +0 -73
  108. package/dist/types-ts4.5/plugins/table/nodeviews/TableContainer.d.ts +0 -44
  109. package/dist/types-ts4.5/plugins/table/nodeviews/TableResizer.d.ts +0 -25
  110. package/dist/types-ts4.5/plugins/table/nodeviews/TableStickyScrollbar.d.ts +0 -24
  111. package/dist/types-ts4.5/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +0 -9
  112. package/dist/types-ts4.5/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +0 -9
  113. package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +0 -33
  114. package/dist/types-ts4.5/plugins/table/nodeviews/tableCell.d.ts +0 -17
  115. package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +0 -26
  116. package/dist/types-ts4.5/plugins/table/nodeviews/update-overflow-shadows.d.ts +0 -1
  117. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/plugin.d.ts +0 -7
  118. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +0 -3
  119. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +0 -4
  120. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +0 -2
  121. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/index.d.ts +0 -3
  122. package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/types.d.ts +0 -6
  123. package/dist/types-ts4.5/plugins/table/pm-plugins/default-table-selection.d.ts +0 -4
  124. package/dist/types-ts4.5/plugins/table/pm-plugins/keymap.d.ts +0 -5
  125. package/dist/types-ts4.5/plugins/table/pm-plugins/main.d.ts +0 -8
  126. package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-factory.d.ts +0 -1
  127. package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-key.d.ts +0 -3
  128. package/dist/types-ts4.5/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +0 -15
  129. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/commands.d.ts +0 -3
  130. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/index.d.ts +0 -6
  131. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +0 -6
  132. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +0 -73
  133. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +0 -3
  134. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +0 -3
  135. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +0 -4
  136. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/types.d.ts +0 -16
  137. package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/util.d.ts +0 -2
  138. package/dist/types-ts4.5/plugins/table/pm-plugins/table-analytics.d.ts +0 -23
  139. package/dist/types-ts4.5/plugins/table/pm-plugins/table-local-id.d.ts +0 -10
  140. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/commands.d.ts +0 -23
  141. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +0 -4
  142. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/index.d.ts +0 -3
  143. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +0 -4
  144. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +0 -3
  145. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin.d.ts +0 -6
  146. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/reducer.d.ts +0 -3
  147. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +0 -23
  148. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +0 -14
  149. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/consts.d.ts +0 -2
  150. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +0 -4
  151. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +0 -12
  152. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +0 -13
  153. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +0 -20
  154. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +0 -2
  155. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +0 -4
  156. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +0 -29
  157. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +0 -21
  158. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +0 -22
  159. package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +0 -1
  160. package/dist/types-ts4.5/plugins/table/pm-plugins/table-selection-keymap.d.ts +0 -4
  161. package/dist/types-ts4.5/plugins/table/pm-plugins/table-width.d.ts +0 -17
  162. package/dist/types-ts4.5/plugins/table/reducer.d.ts +0 -3
  163. package/dist/types-ts4.5/plugins/table/toolbar.d.ts +0 -36
  164. package/dist/types-ts4.5/plugins/table/transforms/column-width.d.ts +0 -37
  165. package/dist/types-ts4.5/plugins/table/transforms/delete-columns.d.ts +0 -4
  166. package/dist/types-ts4.5/plugins/table/transforms/delete-rows.d.ts +0 -3
  167. package/dist/types-ts4.5/plugins/table/transforms/fix-tables.d.ts +0 -9
  168. package/dist/types-ts4.5/plugins/table/transforms/index.d.ts +0 -6
  169. package/dist/types-ts4.5/plugins/table/transforms/merge.d.ts +0 -5
  170. package/dist/types-ts4.5/plugins/table/transforms/replace-table.d.ts +0 -5
  171. package/dist/types-ts4.5/plugins/table/transforms/split.d.ts +0 -9
  172. package/dist/types-ts4.5/plugins/table/types.d.ts +0 -342
  173. package/dist/types-ts4.5/plugins/table/ui/ColumnResizeWidget/index.d.ts +0 -9
  174. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/FixedButton.d.ts +0 -23
  175. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/index.d.ts +0 -21
  176. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/styles.d.ts +0 -3
  177. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +0 -87
  178. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/index.d.ts +0 -23
  179. package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/styles.d.ts +0 -2
  180. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +0 -13
  181. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +0 -10
  182. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/index.d.ts +0 -54
  183. package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/types.d.ts +0 -1
  184. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +0 -13
  185. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +0 -3
  186. package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/index.d.ts +0 -35
  187. package/dist/types-ts4.5/plugins/table/ui/LayoutButton/index.d.ts +0 -21
  188. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +0 -16
  189. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +0 -21
  190. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +0 -17
  191. package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/index.d.ts +0 -39
  192. package/dist/types-ts4.5/plugins/table/ui/common-styles.d.ts +0 -9
  193. package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +0 -50
  194. package/dist/types-ts4.5/plugins/table/ui/messages.d.ts +0 -63
  195. package/dist/types-ts4.5/plugins/table/ui/ui-styles.d.ts +0 -15
  196. package/dist/types-ts4.5/plugins/table/utils/analytics.d.ts +0 -45
  197. package/dist/types-ts4.5/plugins/table/utils/collapse.d.ts +0 -29
  198. package/dist/types-ts4.5/plugins/table/utils/column-controls.d.ts +0 -10
  199. package/dist/types-ts4.5/plugins/table/utils/decoration.d.ts +0 -19
  200. package/dist/types-ts4.5/plugins/table/utils/dom.d.ts +0 -20
  201. package/dist/types-ts4.5/plugins/table/utils/get-allow-add-column-custom-step.d.ts +0 -2
  202. package/dist/types-ts4.5/plugins/table/utils/guidelines.d.ts +0 -2
  203. package/dist/types-ts4.5/plugins/table/utils/index.d.ts +0 -11
  204. package/dist/types-ts4.5/plugins/table/utils/nodes.d.ts +0 -13
  205. package/dist/types-ts4.5/plugins/table/utils/paste.d.ts +0 -14
  206. package/dist/types-ts4.5/plugins/table/utils/row-controls.d.ts +0 -16
  207. package/dist/types-ts4.5/plugins/table/utils/selection.d.ts +0 -6
  208. package/dist/types-ts4.5/plugins/table/utils/snapping.d.ts +0 -10
  209. package/dist/types-ts4.5/plugins/table/utils/table.d.ts +0 -4
  210. package/dist/types-ts4.5/plugins/table/utils/update-plugin-state-decorations.d.ts +0 -4
  211. package/dist/types-ts4.5/plugins/table-plugin.d.ts +0 -2
  212. package/dist/types-ts4.5/types/i18n.d.ts +0 -5
  213. package/tmp/api-report-tmp.d.ts +0 -112
@@ -1,6 +0,0 @@
1
- export { fixTables, fixAutoSizedTable } from './fix-tables';
2
- export { mergeCells, canMergeCells, mergeEmptyColumns } 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,5 +0,0 @@
1
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export declare function mergeCells(tr: Transaction): Transaction;
4
- export declare function canMergeCells(tr: Transaction): boolean;
5
- export declare function mergeEmptyColumns(table: PMNode): PMNode | null;
@@ -1,5 +0,0 @@
1
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import { Slice } from '@atlaskit/editor-prosemirror/model';
4
- import { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
5
- export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
@@ -1,9 +0,0 @@
1
- import { Transaction } from '@atlaskit/editor-prosemirror/state';
2
- /**
3
- * Helper to split all the cells in a range of columns
4
- * @param tr
5
- * @param tablePos
6
- * @param columnStart - Start of the rect included (rect.left)
7
- * @param columnEnd - End of the rect not included (rect.right)
8
- */
9
- export declare function splitCellsInColumns(tr: Transaction, tablePos: number, columnStart: number, columnEnd: number): Transaction;
@@ -1,342 +0,0 @@
1
- import type { IntlShape } from 'react-intl-next';
2
- import type { TableLayout } from '@atlaskit/adf-schema';
3
- import type { TableColumnOrdering } from '@atlaskit/custom-steps';
4
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
- import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
7
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
8
- import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
9
- import type { Rect } from '@atlaskit/editor-tables/table-map';
10
- import type tablePlugin from './index';
11
- export declare const RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
12
- export type RowInsertPosition = 'TOP' | 'BOTTOM';
13
- export type PermittedLayoutsDescriptor = TableLayout[] | 'all';
14
- export type Cell = {
15
- pos: number;
16
- start: number;
17
- node: PmNode;
18
- };
19
- export type CellTransform = (cell: Cell) => (tr: Transaction) => Transaction;
20
- export interface InsertRowOptions {
21
- index: number;
22
- moveCursorToInsertedRow: boolean;
23
- }
24
- export type PluginInjectionAPI = ExtractInjectionAPI<typeof tablePlugin>;
25
- export type InsertRowMethods = INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
26
- export interface PluginConfig {
27
- advanced?: boolean;
28
- allowBackgroundColor?: boolean;
29
- allowColumnResizing?: boolean;
30
- allowHeaderColumn?: boolean;
31
- allowHeaderRow?: boolean;
32
- allowMergeCells?: boolean;
33
- allowNumberColumn?: boolean;
34
- allowColumnSorting?: boolean;
35
- allowAddColumnWithCustomStep?: boolean;
36
- allowCollapse?: boolean;
37
- isHeaderRowRequired?: boolean;
38
- permittedLayouts?: PermittedLayoutsDescriptor;
39
- allowControls?: boolean;
40
- stickyHeaders?: boolean;
41
- allowCellOptionsInFloatingToolbar?: boolean;
42
- allowDistributeColumns?: boolean;
43
- }
44
- export type { ColumnResizingPluginState } from '@atlaskit/editor-common/types';
45
- export type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
46
- export interface TablePluginState {
47
- editorHasFocus?: boolean;
48
- hoveredColumns: number[];
49
- hoveredRows: number[];
50
- pluginConfig: PluginConfig;
51
- isHeaderColumnEnabled: boolean;
52
- isHeaderRowEnabled: boolean;
53
- isNumberColumnEnabled?: boolean;
54
- targetCellPosition?: number;
55
- tableNode?: PmNode;
56
- tableRef?: HTMLTableElement;
57
- tablePos?: number;
58
- tableWrapperTarget?: HTMLElement;
59
- isContextualMenuOpen?: boolean;
60
- isInDanger?: boolean;
61
- insertColumnButtonIndex?: number;
62
- insertRowButtonIndex?: number;
63
- isFullWidthModeEnabled?: boolean;
64
- layout?: TableLayout;
65
- ordering?: TableColumnOrdering;
66
- isResizeHandleWidgetAdded?: boolean;
67
- resizeHandleRowIndex?: number;
68
- resizeHandleColumnIndex?: number;
69
- resizeHandleIncludeTooltip?: boolean;
70
- isTableCollapsed?: boolean;
71
- canCollapseTable?: boolean;
72
- getIntl: () => IntlShape;
73
- isBreakoutEnabled?: boolean;
74
- wasFullWidthModeEnabled?: boolean;
75
- isTableResizingEnabled?: boolean;
76
- }
77
- export type TablePluginAction = {
78
- type: 'SET_EDITOR_FOCUS';
79
- data: {
80
- editorHasFocus: boolean;
81
- };
82
- } | {
83
- type: 'TOGGLE_HEADER_ROW';
84
- } | {
85
- type: 'TOGGLE_HEADER_COLUMN';
86
- } | {
87
- type: 'SORT_TABLE';
88
- data: {
89
- ordering: TableColumnOrdering;
90
- };
91
- } | {
92
- type: 'SET_TABLE_REF';
93
- data: {
94
- tableRef?: HTMLTableElement;
95
- tableNode?: PmNode;
96
- tableWrapperTarget?: HTMLElement;
97
- layout: TableLayout;
98
- isHeaderRowEnabled: boolean;
99
- isHeaderColumnEnabled: boolean;
100
- };
101
- } | {
102
- type: 'HOVER_ROWS';
103
- data: {
104
- decorationSet: DecorationSet;
105
- hoveredRows: number[];
106
- isInDanger?: boolean;
107
- };
108
- } | {
109
- type: 'HOVER_CELLS';
110
- data: {
111
- decorationSet: DecorationSet;
112
- };
113
- } | {
114
- type: 'HOVER_COLUMNS';
115
- data: {
116
- decorationSet: DecorationSet;
117
- hoveredColumns: number[];
118
- isInDanger?: boolean;
119
- };
120
- } | {
121
- type: 'HOVER_TABLE';
122
- data: {
123
- decorationSet: DecorationSet;
124
- hoveredRows: number[];
125
- hoveredColumns: number[];
126
- isInDanger?: boolean;
127
- };
128
- } | {
129
- type: 'ADD_RESIZE_HANDLE_DECORATIONS';
130
- data: {
131
- decorationSet: DecorationSet;
132
- resizeHandleRowIndex: number;
133
- resizeHandleColumnIndex: number;
134
- resizeHandleIncludeTooltip: boolean;
135
- };
136
- } | {
137
- type: 'UPDATE_RESIZE_HANDLE_DECORATIONS';
138
- data: {
139
- decorationSet: DecorationSet;
140
- resizeHandleRowIndex: number | undefined;
141
- resizeHandleColumnIndex: number | undefined;
142
- resizeHandleIncludeTooltip: boolean | undefined;
143
- };
144
- } | {
145
- type: 'REMOVE_RESIZE_HANDLE_DECORATIONS';
146
- data: {
147
- decorationSet: DecorationSet;
148
- };
149
- } | {
150
- type: 'CLEAR_HOVER_SELECTION';
151
- data: {
152
- decorationSet: DecorationSet;
153
- };
154
- } | {
155
- type: 'SHOW_RESIZE_HANDLE_LINE';
156
- data: {
157
- decorationSet: DecorationSet;
158
- };
159
- } | {
160
- type: 'HIDE_RESIZE_HANDLE_LINE';
161
- data: {
162
- decorationSet: DecorationSet;
163
- };
164
- } | {
165
- type: 'SET_TARGET_CELL_POSITION';
166
- data: {
167
- targetCellPosition?: number;
168
- };
169
- } | {
170
- type: 'SELECT_COLUMN';
171
- data: {
172
- targetCellPosition: number;
173
- decorationSet: DecorationSet;
174
- };
175
- } | {
176
- type: 'SET_TABLE_LAYOUT';
177
- data: {
178
- layout: TableLayout;
179
- };
180
- } | {
181
- type: 'SHOW_INSERT_ROW_BUTTON';
182
- data: {
183
- insertRowButtonIndex: number;
184
- };
185
- } | {
186
- type: 'SHOW_INSERT_COLUMN_BUTTON';
187
- data: {
188
- insertColumnButtonIndex: number;
189
- };
190
- } | {
191
- type: 'HIDE_INSERT_COLUMN_OR_ROW_BUTTON';
192
- } | {
193
- type: 'TOGGLE_CONTEXTUAL_MENU';
194
- };
195
- export type ColumnResizingPluginAction = {
196
- type: 'SET_RESIZE_HANDLE_POSITION';
197
- data: {
198
- resizeHandlePos: number | null;
199
- };
200
- } | {
201
- type: 'STOP_RESIZING';
202
- } | {
203
- type: 'SET_DRAGGING';
204
- data: {
205
- dragging: {
206
- startX: number;
207
- startWidth: number;
208
- } | null;
209
- };
210
- } | {
211
- type: 'SET_LAST_CLICK';
212
- data: {
213
- lastClick: {
214
- x: number;
215
- y: number;
216
- time: number;
217
- } | null;
218
- };
219
- };
220
- export declare enum TableDecorations {
221
- ALL_CONTROLS_HOVER = "CONTROLS_HOVER",
222
- ROW_CONTROLS_HOVER = "ROW_CONTROLS_HOVER",
223
- COLUMN_CONTROLS_HOVER = "COLUMN_CONTROLS_HOVER",
224
- TABLE_CONTROLS_HOVER = "TABLE_CONTROLS_HOVER",
225
- CELL_CONTROLS_HOVER = "CELL_CONTROLS_HOVER",
226
- COLUMN_CONTROLS_DECORATIONS = "COLUMN_CONTROLS_DECORATIONS",
227
- COLUMN_SELECTED = "COLUMN_SELECTED",
228
- COLUMN_RESIZING_HANDLE = "COLUMN_RESIZING_HANDLE",
229
- COLUMN_RESIZING_HANDLE_WIDGET = "COLUMN_RESIZING_HANDLE_WIDGET",
230
- COLUMN_RESIZING_HANDLE_LINE = "COLUMN_RESIZING_HANDLE_LINE",
231
- LAST_CELL_ELEMENT = "LAST_CELL_ELEMENT"
232
- }
233
- export declare const TableCssClassName: {
234
- COLUMN_CONTROLS: string;
235
- COLUMN_CONTROLS_DECORATIONS: string;
236
- COLUMN_SELECTED: string;
237
- ROW_CONTROLS_WRAPPER: string;
238
- ROW_CONTROLS: string;
239
- ROW_CONTROLS_INNER: string;
240
- ROW_CONTROLS_BUTTON_WRAP: string;
241
- ROW_CONTROLS_BUTTON: string;
242
- CONTROLS_BUTTON: string;
243
- CONTROLS_BUTTON_ICON: string;
244
- CONTROLS_INSERT_BUTTON: string;
245
- CONTROLS_INSERT_BUTTON_INNER: string;
246
- CONTROLS_INSERT_BUTTON_WRAP: string;
247
- CONTROLS_INSERT_LINE: string;
248
- CONTROLS_BUTTON_OVERLAY: string;
249
- LAYOUT_BUTTON: string;
250
- CONTROLS_INSERT_MARKER: string;
251
- CONTROLS_INSERT_COLUMN: string;
252
- CONTROLS_INSERT_ROW: string;
253
- CONTROLS_DELETE_BUTTON_WRAP: string;
254
- CONTROLS_DELETE_BUTTON: string;
255
- CONTROLS_FLOATING_BUTTON_COLUMN: string;
256
- CONTROLS_FLOATING_BUTTON_ROW: string;
257
- CORNER_CONTROLS: string;
258
- CORNER_CONTROLS_INSERT_ROW_MARKER: string;
259
- CORNER_CONTROLS_INSERT_COLUMN_MARKER: string;
260
- CONTROLS_CORNER_BUTTON: string;
261
- NUMBERED_COLUMN: string;
262
- NUMBERED_COLUMN_BUTTON: string;
263
- HOVERED_COLUMN: string;
264
- HOVERED_ROW: string;
265
- HOVERED_TABLE: string;
266
- HOVERED_CELL: string;
267
- HOVERED_CELL_IN_DANGER: string;
268
- HOVERED_CELL_ACTIVE: string;
269
- HOVERED_CELL_WARNING: string;
270
- HOVERED_DELETE_BUTTON: string;
271
- WITH_CONTROLS: string;
272
- RESIZING_PLUGIN: string;
273
- RESIZE_CURSOR: string;
274
- IS_RESIZING: string;
275
- RESIZE_HANDLE: string;
276
- RESIZE_HANDLE_DECORATION: string;
277
- CONTEXTUAL_SUBMENU: string;
278
- CONTEXTUAL_MENU_BUTTON_WRAP: string;
279
- CONTEXTUAL_MENU_BUTTON: string;
280
- CONTEXTUAL_MENU_BUTTON_FIXED: string;
281
- CONTEXTUAL_MENU_ICON: string;
282
- SELECTED_CELL: string;
283
- NODEVIEW_WRAPPER: string;
284
- TABLE_SELECTED: string;
285
- TABLE_CELL: string;
286
- TABLE_HEADER_CELL: string;
287
- TABLE_STICKY: string;
288
- TOP_LEFT_CELL: string;
289
- LAST_ITEM_IN_CELL: string;
290
- WITH_RESIZE_LINE: string;
291
- WITH_RESIZE_LINE_LAST_COLUMN: string;
292
- TABLE_CONTAINER: string;
293
- TABLE_NODE_WRAPPER: string;
294
- TABLE_LEFT_SHADOW: string;
295
- TABLE_RIGHT_SHADOW: string;
296
- TABLE_STICKY_SHADOW: string;
297
- TABLE_STICKY_WRAPPER: string;
298
- TABLE_STICKY_SCROLLBAR_CONTAINER: string;
299
- TABLE_STICKY_SENTINEL_TOP: string;
300
- TABLE_STICKY_SENTINEL_BOTTOM: string;
301
- TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: string;
302
- TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: string;
303
- TABLE_SHADOW_SENTINEL_LEFT: string;
304
- TABLE_SHADOW_SENTINEL_RIGHT: string;
305
- TABLE_CELL_NODEVIEW_CONTENT_DOM: string;
306
- TABLE_CELL_WRAPPER: string;
307
- TABLE_HEADER_CELL_WRAPPER: string;
308
- TABLE_ROW_CONTROLS_WRAPPER: string;
309
- TABLE_COLUMN_CONTROLS_DECORATIONS: string;
310
- TABLE_RESIZER_CONTAINER: string;
311
- };
312
- export interface ToolbarMenuConfig {
313
- allowHeaderRow?: boolean;
314
- allowHeaderColumn?: boolean;
315
- allowNumberColumn?: boolean;
316
- allowCollapse?: boolean;
317
- }
318
- export interface ToolbarMenuState {
319
- isHeaderRowEnabled?: boolean;
320
- isHeaderColumnEnabled?: boolean;
321
- isNumberColumnEnabled?: boolean;
322
- isTableCollapsed?: boolean;
323
- canCollapseTable?: boolean;
324
- }
325
- export interface ToolbarMenuContext {
326
- formatMessage: IntlShape['formatMessage'];
327
- }
328
- export type ElementContentRects = {
329
- [key: string]: ResizeObserverEntry['contentRect'];
330
- };
331
- export declare enum ShadowEvent {
332
- SHOW_BEFORE_SHADOW = "showBeforeShadow",
333
- SHOW_AFTER_SHADOW = "showAfterShadow"
334
- }
335
- export type ReportInvalidNodeAttrs = (invalidNodeAttrs: InvalidNodeAttr) => void;
336
- export type InvalidNodeAttr = {
337
- nodeType: string;
338
- attribute: string;
339
- reason: string;
340
- spanValue: number;
341
- tableLocalId: string;
342
- };
@@ -1,9 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- type Props = {
4
- startIndex: number;
5
- endIndex: number;
6
- includeTooltip?: boolean;
7
- };
8
- export declare const ColumnResizeWidget: React.FC<Props>;
9
- export {};
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { RowStickyState } from '../../pm-plugins/sticky-headers';
3
- export declare const BUTTON_WIDTH = 20;
4
- export interface Props {
5
- children: React.ReactNode;
6
- mountTo: HTMLElement;
7
- offset: number;
8
- stickyHeader: RowStickyState;
9
- targetCellPosition: number;
10
- targetCellRef: HTMLElement;
11
- tableWrapper: HTMLElement;
12
- isContextualMenuOpen: boolean | undefined;
13
- }
14
- interface CalcLeftPosData {
15
- buttonWidth: number;
16
- cellRectLeft: number;
17
- cellRefWidth: number;
18
- offset: number;
19
- }
20
- export declare const calcLeftPos: ({ buttonWidth, cellRectLeft, cellRefWidth, offset, }: CalcLeftPosData) => number;
21
- export declare const calcObserverTargetMargin: (tableWrapper: HTMLElement, fixedButtonRefCurrent: HTMLElement) => number;
22
- export declare const FixedButton: ({ children, isContextualMenuOpen, mountTo, offset, stickyHeader, tableWrapper, targetCellPosition, targetCellRef, }: Props) => React.ReactPortal;
23
- export default FixedButton;
@@ -1,21 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import { TableLayout } from '@atlaskit/adf-schema';
3
- import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
4
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
5
- import { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import { RowStickyState } from '../../pm-plugins/sticky-headers';
7
- export interface Props {
8
- editorView: EditorView;
9
- tableWrapper?: HTMLElement;
10
- tableNode?: PMNode;
11
- targetCellPosition: number;
12
- isContextualMenuOpen?: boolean;
13
- mountPoint?: HTMLElement;
14
- boundariesElement?: HTMLElement;
15
- scrollableElement?: HTMLElement;
16
- layout?: TableLayout;
17
- isNumberColumnEnabled?: boolean;
18
- stickyHeader?: RowStickyState;
19
- dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
20
- }
21
- export default function (props: Props): jsx.JSX.Element;
@@ -1,3 +0,0 @@
1
- import { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const tableFloatingCellButtonStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
3
- export declare const tableFloatingCellButtonSelectedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
@@ -1,87 +0,0 @@
1
- /** @jsx jsx */
2
- import { Component } from 'react';
3
- import { jsx } from '@emotion/react';
4
- import type { WrappedComponentProps } from 'react-intl-next';
5
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
- import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
7
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import type { Rect } from '@atlaskit/editor-tables/table-map';
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 | undefined;
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;
@@ -1,23 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
- import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { PluginConfig } from '../../types';
7
- export interface Props {
8
- editorView: EditorView;
9
- isOpen: boolean;
10
- getEditorContainerWidth: GetEditorContainerWidth;
11
- getEditorFeatureFlags?: GetEditorFeatureFlags;
12
- targetCellPosition?: number;
13
- mountPoint?: HTMLElement;
14
- boundariesElement?: HTMLElement;
15
- scrollableElement?: HTMLElement;
16
- pluginConfig?: PluginConfig;
17
- editorAnalyticsAPI?: EditorAnalyticsAPI;
18
- }
19
- declare const FloatingContextualMenu: {
20
- ({ mountPoint, boundariesElement, scrollableElement, editorView, isOpen, pluginConfig, editorAnalyticsAPI, getEditorContainerWidth, }: Props): jsx.JSX.Element | null;
21
- displayName: string;
22
- };
23
- export default FloatingContextualMenu;
@@ -1,2 +0,0 @@
1
- export declare const cellColourPreviewStyles: (selectedColor: string) => import("@emotion/react").SerializedStyles;
2
- export declare const tablePopupStyles: import("@emotion/react").SerializedStyles;
@@ -1,13 +0,0 @@
1
- import React, { SyntheticEvent } from 'react';
2
- import { MessageDescriptor, WrappedComponentProps } from 'react-intl-next';
3
- export interface ButtonProps {
4
- removeLabel: MessageDescriptor;
5
- style?: object;
6
- onClick?: (event: SyntheticEvent) => void;
7
- onMouseEnter?: (event: SyntheticEvent) => void;
8
- onMouseLeave?: (event: SyntheticEvent) => void;
9
- }
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps<"intl">>;
12
- };
13
- export default _default;
@@ -1,10 +0,0 @@
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 {};
@@ -1,54 +0,0 @@
1
- import { Component } from 'react';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { RowStickyState } from '../../pm-plugins/sticky-headers';
6
- import type { CellSelectionType } from './types';
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;
@@ -1 +0,0 @@
1
- export type CellSelectionType = 'column' | 'row' | undefined;
@@ -1,13 +0,0 @@
1
- import type { SyntheticEvent } from 'react';
2
- import React from 'react';
3
- import type { WrappedComponentProps } from 'react-intl-next';
4
- export interface ButtonProps {
5
- type: 'row' | 'column';
6
- tableRef: HTMLElement;
7
- onMouseDown: (event: SyntheticEvent<HTMLButtonElement>) => void;
8
- hasStickyHeaders: boolean;
9
- }
10
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps<"intl">>> & {
11
- WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps<"intl">>;
12
- };
13
- export default _default;
@@ -1,3 +0,0 @@
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;