@atlaskit/editor-plugin-table 22.2.4 → 22.2.7

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 (171) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/nodeviews/TableComponent.js +3 -2
  3. package/dist/cjs/nodeviews/TableContainer.js +16 -7
  4. package/dist/cjs/nodeviews/TableResizer.js +30 -16
  5. package/dist/cjs/pm-plugins/analytics/commands.js +4 -0
  6. package/dist/cjs/pm-plugins/commands/hover.js +4 -0
  7. package/dist/cjs/pm-plugins/commands/referentiality.js +4 -0
  8. package/dist/cjs/pm-plugins/drag-and-drop/commands.js +4 -0
  9. package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +2 -0
  10. package/dist/cjs/pm-plugins/drag-and-drop/utils/autoscrollers.js +4 -0
  11. package/dist/cjs/pm-plugins/sticky-headers/commands.js +2 -0
  12. package/dist/cjs/pm-plugins/table-resizing/plugin-factory.js +5 -0
  13. package/dist/cjs/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  14. package/dist/cjs/pm-plugins/table-resizing/utils/consts.js +3 -2
  15. package/dist/cjs/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  16. package/dist/cjs/pm-plugins/utils/drag-menu.js +2 -2
  17. package/dist/cjs/ui/ColumnResizeWidget/index.js +1 -1
  18. package/dist/cjs/ui/DragHandle/index.js +2 -0
  19. package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
  20. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
  21. package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +4 -1
  22. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -1
  23. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +6 -1
  24. package/dist/cjs/ui/FloatingInsertButton/index.js +3 -2
  25. package/dist/cjs/ui/SizeSelector/index.js +1 -1
  26. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  27. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
  28. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  29. package/dist/cjs/ui/TableFloatingControls/index.js +1 -1
  30. package/dist/cjs/ui/global-styles.js +1 -1
  31. package/dist/es2019/nodeviews/TableComponent.js +4 -1
  32. package/dist/es2019/nodeviews/TableContainer.js +17 -8
  33. package/dist/es2019/nodeviews/TableResizer.js +31 -17
  34. package/dist/es2019/pm-plugins/analytics/commands.js +3 -0
  35. package/dist/es2019/pm-plugins/commands/hover.js +3 -0
  36. package/dist/es2019/pm-plugins/commands/referentiality.js +3 -0
  37. package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -0
  38. package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -0
  39. package/dist/es2019/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
  40. package/dist/es2019/pm-plugins/sticky-headers/commands.js +2 -0
  41. package/dist/es2019/pm-plugins/table-resizing/plugin-factory.js +5 -0
  42. package/dist/es2019/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  43. package/dist/es2019/pm-plugins/table-resizing/utils/consts.js +2 -1
  44. package/dist/es2019/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  45. package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -2
  46. package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
  47. package/dist/es2019/ui/DragHandle/index.js +2 -0
  48. package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
  49. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
  50. package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +4 -1
  51. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -1
  52. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +6 -1
  53. package/dist/es2019/ui/FloatingInsertButton/index.js +4 -1
  54. package/dist/es2019/ui/SizeSelector/index.js +1 -1
  55. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
  56. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
  57. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -0
  58. package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
  59. package/dist/es2019/ui/global-styles.js +2 -2
  60. package/dist/esm/nodeviews/TableComponent.js +3 -2
  61. package/dist/esm/nodeviews/TableContainer.js +17 -8
  62. package/dist/esm/nodeviews/TableResizer.js +31 -17
  63. package/dist/esm/pm-plugins/analytics/commands.js +3 -0
  64. package/dist/esm/pm-plugins/commands/hover.js +3 -0
  65. package/dist/esm/pm-plugins/commands/referentiality.js +3 -0
  66. package/dist/esm/pm-plugins/drag-and-drop/commands.js +4 -0
  67. package/dist/esm/pm-plugins/drag-and-drop/plugin.js +2 -0
  68. package/dist/esm/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
  69. package/dist/esm/pm-plugins/sticky-headers/commands.js +2 -0
  70. package/dist/esm/pm-plugins/table-resizing/plugin-factory.js +5 -0
  71. package/dist/esm/pm-plugins/table-resizing/utils/colgroup.js +6 -6
  72. package/dist/esm/pm-plugins/table-resizing/utils/consts.js +2 -1
  73. package/dist/esm/pm-plugins/table-resizing/utils/scale-table.js +4 -4
  74. package/dist/esm/pm-plugins/utils/drag-menu.js +2 -2
  75. package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
  76. package/dist/esm/ui/DragHandle/index.js +2 -0
  77. package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
  78. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
  79. package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +4 -1
  80. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -1
  81. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +6 -1
  82. package/dist/esm/ui/FloatingInsertButton/index.js +4 -1
  83. package/dist/esm/ui/SizeSelector/index.js +1 -1
  84. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  85. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
  86. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  87. package/dist/esm/ui/TableFloatingControls/index.js +2 -2
  88. package/dist/esm/ui/global-styles.js +2 -2
  89. package/dist/types/nodeviews/TableComponent.d.ts +3 -3
  90. package/dist/types/nodeviews/TableResizer.d.ts +2 -1
  91. package/dist/types/nodeviews/table-node-views.d.ts +3 -3
  92. package/dist/types/nodeviews/table.d.ts +2 -2
  93. package/dist/types/pm-plugins/analytics/commands.d.ts +2 -1
  94. package/dist/types/pm-plugins/analytics/plugin.d.ts +2 -1
  95. package/dist/types/pm-plugins/commands/hover.d.ts +10 -9
  96. package/dist/types/pm-plugins/commands/misc.d.ts +1 -1
  97. package/dist/types/pm-plugins/commands/referentiality.d.ts +2 -1
  98. package/dist/types/pm-plugins/commands/toggle.d.ts +1 -1
  99. package/dist/types/pm-plugins/decorations/plugin.d.ts +1 -1
  100. package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +6 -5
  101. package/dist/types/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
  102. package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
  103. package/dist/types/pm-plugins/main.d.ts +2 -2
  104. package/dist/types/pm-plugins/sticky-headers/commands.d.ts +3 -2
  105. package/dist/types/pm-plugins/sticky-headers/plugin.d.ts +2 -1
  106. package/dist/types/pm-plugins/sticky-headers/util.d.ts +2 -2
  107. package/dist/types/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
  108. package/dist/types/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
  109. package/dist/types/pm-plugins/table-resizing/utils/colgroup.d.ts +2 -2
  110. package/dist/types/pm-plugins/table-resizing/utils/consts.d.ts +1 -0
  111. package/dist/types/pm-plugins/table-resizing/utils/scale-table.d.ts +2 -2
  112. package/dist/types/pm-plugins/utils/create.d.ts +2 -2
  113. package/dist/types/pm-plugins/utils/sticky-header.d.ts +2 -1
  114. package/dist/types/types/index.d.ts +26 -26
  115. package/dist/types/ui/ColumnResizeWidget/index.d.ts +1 -1
  116. package/dist/types/ui/DragHandle/index.d.ts +2 -2
  117. package/dist/types/ui/FloatingContextualButton/styles.d.ts +3 -2
  118. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
  119. package/dist/types/ui/FloatingContextualMenu/styles.d.ts +3 -2
  120. package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
  121. package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
  122. package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
  123. package/dist/types/ui/FloatingInsertButton/index.d.ts +3 -3
  124. package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  125. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  126. package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  127. package/dist/types/ui/common-styles.d.ts +5 -4
  128. package/dist/types/ui/consts.d.ts +18 -18
  129. package/dist/types/ui/ui-styles.d.ts +21 -20
  130. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +3 -3
  131. package/dist/types-ts4.5/nodeviews/TableResizer.d.ts +2 -1
  132. package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +3 -3
  133. package/dist/types-ts4.5/nodeviews/table.d.ts +2 -2
  134. package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +2 -1
  135. package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +2 -1
  136. package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +10 -9
  137. package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +1 -1
  138. package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +2 -1
  139. package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +1 -1
  140. package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +1 -1
  141. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +6 -5
  142. package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
  143. package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
  144. package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
  145. package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +3 -2
  146. package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +2 -1
  147. package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +2 -2
  148. package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
  149. package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
  150. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/colgroup.d.ts +2 -2
  151. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/consts.d.ts +1 -0
  152. package/dist/types-ts4.5/pm-plugins/table-resizing/utils/scale-table.d.ts +2 -2
  153. package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +2 -2
  154. package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +2 -1
  155. package/dist/types-ts4.5/types/index.d.ts +26 -26
  156. package/dist/types-ts4.5/ui/ColumnResizeWidget/index.d.ts +1 -1
  157. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
  158. package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +3 -2
  159. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
  160. package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +3 -2
  161. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
  162. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
  163. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
  164. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +3 -3
  165. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  166. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  167. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  168. package/dist/types-ts4.5/ui/common-styles.d.ts +5 -4
  169. package/dist/types-ts4.5/ui/consts.d.ts +18 -18
  170. package/dist/types-ts4.5/ui/ui-styles.d.ts +21 -20
  171. package/package.json +4 -4
@@ -3,7 +3,7 @@ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
5
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
+ import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { PluginInjectionAPI } from '../types';
8
8
  import TableCell from './TableCell';
9
9
  import TableRow from './TableRow';
@@ -19,7 +19,7 @@ type TableViewOptions = {
19
19
  pluginInjectionApi?: PluginInjectionAPI;
20
20
  portalProviderAPI: PortalProviderAPI;
21
21
  };
22
- export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => import("prosemirror-view").NodeView;
22
+ export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => NodeView;
23
23
  type TableCellViewOptions = {
24
24
  eventDispatcher: EventDispatcher;
25
25
  isDragAndDropEnabled?: boolean;
@@ -27,5 +27,5 @@ type TableCellViewOptions = {
27
27
  };
28
28
  export declare const tableCellView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
29
29
  export declare const tableHeaderView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
30
- export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableRow | TableRowNativeStickyWithFallback;
30
+ export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableRowNativeStickyWithFallback | TableRow;
31
31
  export {};
@@ -7,7 +7,7 @@ import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, get
7
7
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
8
8
  import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
9
9
  import type { PluginInjectionAPI } from '../types';
10
- import type { Props } from './types';
10
+ import type { Props, TableOptions } from './types';
11
11
  type ForwardRef = (node: HTMLElement | null) => void;
12
12
  export default class TableView extends ReactNodeView<Props> {
13
13
  private table;
@@ -15,7 +15,7 @@ export default class TableView extends ReactNodeView<Props> {
15
15
  private resizeObserver?;
16
16
  eventDispatcher?: EventDispatcher;
17
17
  getPos: getPosHandlerNode;
18
- options: import("./types").TableOptions | undefined;
18
+ options: TableOptions | undefined;
19
19
  getEditorFeatureFlags: GetEditorFeatureFlags;
20
20
  constructor(props: Props);
21
21
  getContentDOM(): {
@@ -1,5 +1,6 @@
1
1
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { ActionType, RowOrColumnMovedState } from './types';
3
- export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => import("@atlaskit/editor-common/types").Command;
3
+ import type { Command } from '@atlaskit/editor-common/types';
4
+ export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => Command;
4
5
  export declare const resetRowOrColumnMovedTransform: () => (tr: Transaction) => Transaction;
5
6
  export declare const updateRowOrColumnMovedTransform: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => (state: EditorState, tr: Transaction) => Transaction;
@@ -1,4 +1,5 @@
1
1
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
2
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin<import("./types").AnalyticPluginState>;
4
+ import { type AnalyticPluginState } from './types';
5
+ export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin<AnalyticPluginState>;
@@ -1,10 +1,11 @@
1
1
  import type { CellColumnPositioning } from '../../types';
2
- export declare const hoverMergedCells: () => import("@atlaskit/editor-common/types").Command;
3
- export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => import("@atlaskit/editor-common/types").Command;
4
- export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => import("@atlaskit/editor-common/types").Command;
5
- export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => import("@atlaskit/editor-common/types").Command;
6
- export declare const clearHoverSelection: () => import("@atlaskit/editor-common/types").Command;
7
- export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => import("@atlaskit/editor-common/types").Command;
8
- export declare const hideResizeHandleLine: () => import("@atlaskit/editor-common/types").Command;
9
- export declare const setTableHovered: (hovered: boolean) => import("@atlaskit/editor-common/types").Command;
10
- export declare const hoverCell: (rowIndex?: number, colIndex?: number) => import("@atlaskit/editor-common/types").Command;
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
+ export declare const hoverMergedCells: () => Command;
4
+ export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => Command;
5
+ export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => Command;
6
+ export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => Command;
7
+ export declare const clearHoverSelection: () => Command;
8
+ export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => Command;
9
+ export declare const hideResizeHandleLine: () => Command;
10
+ export declare const setTableHovered: (hovered: boolean) => Command;
11
+ export declare const hoverCell: (rowIndex?: number, colIndex?: number) => Command;
@@ -22,7 +22,7 @@ export declare const deleteTable: Command;
22
22
  export declare const deleteTableIfSelected: Command;
23
23
  export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
24
24
  export declare const moveCursorBackward: Command;
25
- export declare const setMultipleCellAttrs: (attrs: Object, editorView?: EditorView | null) => Command;
25
+ export declare const setMultipleCellAttrs: (attrs: object, editorView?: EditorView | null) => Command;
26
26
  export declare const selectColumn: (column: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
27
27
  export declare const selectColumns: (columnIndexes: number[]) => Command;
28
28
  export declare const selectRow: (row: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
@@ -1,2 +1,3 @@
1
1
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- export declare const removeDescendantNodes: (sourceNode: PMNode) => import("@atlaskit/editor-common/types").Command;
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
+ export declare const removeDescendantNodes: (sourceNode: PMNode) => Command;
@@ -4,7 +4,7 @@ import type { Command } from '@atlaskit/editor-common/types';
4
4
  * Table layout toggle logic
5
5
  * default -> wide -> full-width -> default
6
6
  */
7
- export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "full-width" | "wide";
7
+ export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "wide" | "full-width";
8
8
  export declare const toggleHeaderRow: Command;
9
9
  export declare const toggleHeaderColumn: Command;
10
10
  export declare const toggleNumberColumn: Command;
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
- export declare const pluginKey: PluginKey<any>;
5
+ export declare const pluginKey: PluginKey;
6
6
  export declare const getDecorations: (state: EditorState) => DecorationSet;
7
7
  export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, decorationSet: DecorationSet, oldState: EditorState, newState: EditorState) => DecorationSet;
8
8
  export declare const createPlugin: () => SafePlugin<DecorationSet>;
@@ -2,8 +2,9 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { DraggableType, TableDirection } from '../../types';
3
3
  import { DropTargetType } from './consts';
4
4
  import type { TriggerType } from './types';
5
- export declare const setDropTarget: (type: DropTargetType, index: number, hasMergedCells: boolean, tr?: Transaction) => import("@atlaskit/editor-common/types").Command;
6
- export declare const clearDropTarget: (tr?: Transaction) => import("@atlaskit/editor-common/types").Command;
7
- export declare const moveSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, tr?: Transaction) => import("@atlaskit/editor-common/types").Command;
8
- export declare const toggleDragMenu: (isDragMenuOpen: boolean | undefined, direction?: TableDirection, index?: number, trigger?: TriggerType) => import("@atlaskit/editor-common/types").Command;
9
- export declare const cloneSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, targetDirection: "start" | "end", tr?: Transaction) => import("@atlaskit/editor-common/types").Command;
5
+ import type { Command } from '@atlaskit/editor-common/types';
6
+ export declare const setDropTarget: (type: DropTargetType, index: number, hasMergedCells: boolean, tr?: Transaction) => Command;
7
+ export declare const clearDropTarget: (tr?: Transaction) => Command;
8
+ export declare const moveSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, tr?: Transaction) => Command;
9
+ export declare const toggleDragMenu: (isDragMenuOpen: boolean | undefined, direction?: TableDirection, index?: number, trigger?: TriggerType) => Command;
10
+ export declare const cloneSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, targetDirection: "start" | "end", tr?: Transaction) => Command;
@@ -3,4 +3,5 @@ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
5
  import type { TablePlugin } from '../../tablePluginType';
6
- export declare const createPlugin: (dispatch: Dispatch, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean, api?: ExtractInjectionAPI<TablePlugin>) => SafePlugin<import("./types").DragAndDropPluginState>;
6
+ import type { DragAndDropPluginState } from './types';
7
+ export declare const createPlugin: (dispatch: Dispatch, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean, api?: ExtractInjectionAPI<TablePlugin>) => SafePlugin<DragAndDropPluginState>;
@@ -1,7 +1,8 @@
1
1
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
2
+ import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
2
3
  type AutoScrollerFactory = {
3
4
  getNode: () => PmNode;
4
5
  tableWrapper: HTMLElement;
5
6
  };
6
- export declare const autoScrollerFactory: ({ tableWrapper, getNode }: AutoScrollerFactory) => import("@atlaskit/pragmatic-drag-and-drop/types").CleanupFn[];
7
+ export declare const autoScrollerFactory: ({ tableWrapper, getNode, }: AutoScrollerFactory) => CleanupFn[];
7
8
  export {};
@@ -4,5 +4,5 @@ import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-di
4
4
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
5
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
7
- import type { PluginConfig, PluginInjectionAPI } from '../types';
8
- export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<import("../types").TablePluginState>;
7
+ import type { PluginConfig, PluginInjectionAPI, TablePluginState } from '../types';
8
+ export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<TablePluginState>;
@@ -1,3 +1,4 @@
1
+ import type { Command } from '@atlaskit/editor-common/types';
1
2
  import type { RowStickyState } from './types';
2
- export declare const updateStickyState: (rowState: RowStickyState) => import("@atlaskit/editor-common/types").Command;
3
- export declare const removeStickyState: (pos: number) => import("@atlaskit/editor-common/types").Command;
3
+ export declare const updateStickyState: (rowState: RowStickyState) => Command;
4
+ export declare const removeStickyState: (pos: number) => Command;
@@ -1,3 +1,4 @@
1
1
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- export declare const createPlugin: (dispatch: Dispatch, initialState?: () => never[]) => SafePlugin<import("./types").StickyPluginState>;
3
+ import type { StickyPluginState } from './types';
4
+ export declare const createPlugin: (dispatch: Dispatch, initialState?: () => never[]) => SafePlugin<StickyPluginState>;
@@ -1,2 +1,2 @@
1
- import type { StickyPluginState } from './types';
2
- export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) => import("./types").RowStickyState | undefined;
1
+ import type { RowStickyState, StickyPluginState } from './types';
2
+ export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) => RowStickyState | undefined;
@@ -1,5 +1,5 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
- export declare const pluginKey: PluginKey<any>;
4
+ export declare const pluginKey: PluginKey;
5
5
  export declare const createPlugin: () => SafePlugin<DecorationSet>;
@@ -1,4 +1,7 @@
1
- import type { ColumnResizingPluginState } from '../../types';
2
- export declare const createCommand: <A = import("../../types").ColumnResizingPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command;
3
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ColumnResizingPluginState | ((state: import("prosemirror-state").EditorState) => ColumnResizingPluginState)) => import("prosemirror-state").SafeStateField<ColumnResizingPluginState>;
4
- export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ColumnResizingPluginState;
1
+ import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
2
+ import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
3
+ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
4
+ import type { Command } from '@atlaskit/editor-common/types';
5
+ export declare const createCommand: <A = ColumnResizingPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
6
+ export declare const createPluginState: (dispatch: Dispatch, initialState: ColumnResizingPluginState | ((state: EditorState) => ColumnResizingPluginState)) => SafeStateField<ColumnResizingPluginState>;
7
+ export declare const getPluginState: (state: EditorState) => ColumnResizingPluginState;
@@ -10,8 +10,8 @@ type Col = Array<string | {
10
10
  */
11
11
  export declare const getColWidthFix: (colwidth: number, tableColumnCount: number) => number;
12
12
  export declare const generateColgroupFromNode: (table: PmNode, isCommentEditor?: boolean, isChromelessEditor?: boolean, isNested?: boolean, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => Col[];
13
- export declare const generateColgroup: (table: PmNode, tableRef?: HTMLElement, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => Col[];
14
- export declare const insertColgroupFromNode: (tableRef: HTMLTableElement | null, table: PmNode, isTableScalingEnabled?: boolean, shouldRemove?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => HTMLCollection;
13
+ export declare const generateColgroup: (table: PmNode, tableRef?: HTMLElement, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => Col[];
14
+ export declare const insertColgroupFromNode: (tableRef: HTMLTableElement | null, table: PmNode, isTableScalingEnabled?: boolean, shouldRemove?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => HTMLCollection;
15
15
  export declare const hasTableBeenResized: (table: PmNode) => boolean;
16
16
  export declare const hasTableColumnBeenResized: (table: PmNode) => boolean;
17
17
  /**
@@ -6,3 +6,4 @@ export declare const MAX_SCALING_PERCENT = 0.3;
6
6
  export declare const MAX_SCALING_PERCENT_TABLES_WITH_FIXED_COLUMN_WIDTHS_OPTION = 0.4;
7
7
  export declare const TABLE_EDITOR_MARGIN = 76;
8
8
  export declare const TABLE_OFFSET_IN_COMMENT_EDITOR: number;
9
+ export declare const RESIZE_HANDLE_SPACING = 12;
@@ -15,6 +15,6 @@ interface ScaleOptions {
15
15
  start: number;
16
16
  }
17
17
  export declare function scaleTableTo(state: ResizeState, maxSize: number): ResizeState;
18
- export declare const previewScaleTable: (tableRef: HTMLTableElement | null | undefined, options: ScaleOptions, domAtPos: DomAtPos, isTableScalingEnabled?: boolean, allowFixedColumnWidthOption?: boolean, isCommentEditor?: boolean) => void;
19
- export declare const scaleTable: (tableRef: HTMLTableElement | null | undefined, options: ScaleOptions, domAtPos: DomAtPos, api: PluginInjectionAPI | undefined | null, isTableScalingEnabledOnCurrentTable?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean) => (tr: Transaction) => Transaction;
18
+ export declare const previewScaleTable: (tableRef: HTMLTableElement | null | undefined, options: ScaleOptions, domAtPos: DomAtPos, isTableScalingEnabled?: boolean, allowFixedColumnWidthOption?: boolean, isCommentOrChromelessEditor?: boolean) => void;
19
+ export declare const scaleTable: (tableRef: HTMLTableElement | null | undefined, options: ScaleOptions, domAtPos: DomAtPos, api: PluginInjectionAPI | undefined | null, isTableScalingEnabledOnCurrentTable?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentOrChromelessEditor?: boolean) => (tr: Transaction) => Transaction;
20
20
  export {};
@@ -1,4 +1,4 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, isMaxWidthModeEnabled, isCommentEditor, isChromelessEditor, isTableResizingEnabled, isNestedTable, createTableProps, }: {
3
3
  createTableProps?: {
4
4
  colsCount?: number;
@@ -12,4 +12,4 @@ export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlig
12
12
  isTableAlignmentEnabled?: boolean;
13
13
  isTableResizingEnabled?: boolean;
14
14
  isTableScalingEnabled?: boolean;
15
- }) => (schema: Schema) => import("prosemirror-model").Node;
15
+ }) => (schema: Schema) => Node;
@@ -1,2 +1,3 @@
1
- export declare const isAnchorSupported: import("memoize-one").MemoizedFn<() => boolean>;
1
+ import { type MemoizedFn } from 'memoize-one';
2
+ export declare const isAnchorSupported: MemoizedFn<() => boolean>;
2
3
  export declare const isNativeStickySupported: () => boolean;
@@ -404,8 +404,8 @@ export declare const TableCssClassName: {
404
404
  SELECTED_CELL: string;
405
405
  NODEVIEW_WRAPPER: string;
406
406
  TABLE_SELECTED: string;
407
- TABLE_CELL: "pm-table-cell-content-wrap";
408
- TABLE_HEADER_CELL: "pm-table-header-content-wrap";
407
+ TABLE_CELL: 'pm-table-cell-content-wrap';
408
+ TABLE_HEADER_CELL: 'pm-table-header-content-wrap';
409
409
  TABLE_STICKY: string;
410
410
  TABLE_CHROMELESS: string;
411
411
  TOP_LEFT_CELL: string;
@@ -427,30 +427,30 @@ export declare const TableCssClassName: {
427
427
  NATIVE_STICKY: string;
428
428
  NATIVE_STICKY_ACTIVE: string;
429
429
  NO_OVERFLOW: string;
430
- TABLE_CELL_NODEVIEW_CONTENT_DOM: "pm-table-cell-nodeview-content-dom";
431
- TABLE_CELL_WRAPPER: "pm-table-cell-content-wrap";
432
- TABLE_COLUMN_CONTROLS_DECORATIONS: "pm-table-column-controls-decoration";
433
- TABLE_CONTAINER: "pm-table-container";
434
- TABLE_HEADER_CELL_WRAPPER: "pm-table-header-content-wrap";
435
- TABLE_LEFT_BORDER: "pm-table-left-border";
436
- TABLE_LEFT_SHADOW: "pm-table-with-left-shadow";
437
- TABLE_NODE_WRAPPER: "pm-table-wrapper";
438
- TABLE_NODE_WRAPPER_NO_OVERFLOW: "pm-table-wrapper-no-overflow";
439
- TABLE_RESIZER_CONTAINER: "pm-table-resizer-container";
440
- TABLE_RIGHT_BORDER: "pm-table-right-border";
441
- TABLE_RIGHT_SHADOW: "pm-table-with-right-shadow";
442
- TABLE_ROW_CONTROLS_WRAPPER: "pm-table-row-controls-wrapper";
443
- TABLE_SCROLL_INLINE_SHADOW: "pm-table-scroll-inline-shadow";
444
- TABLE_SHADOW_SENTINEL_LEFT: "pm-table-shadow-sentinel-left";
445
- TABLE_SHADOW_SENTINEL_RIGHT: "pm-table-shadow-sentinel-right";
446
- TABLE_STICKY_SCROLLBAR_CONTAINER: "pm-table-sticky-scrollbar-container";
447
- TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: "pm-table-sticky-scrollbar-sentinel-bottom";
448
- TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: "pm-table-sticky-scrollbar-sentinel-top";
449
- TABLE_STICKY_SENTINEL_BOTTOM: "pm-table-sticky-sentinel-bottom";
450
- TABLE_STICKY_SENTINEL_TOP: "pm-table-sticky-sentinel-top";
451
- TABLE_STICKY_SHADOW: "pm-table-sticky-shadow";
452
- TABLE_STICKY_WRAPPER: "pm-table-sticky-wrapper";
453
- TABLE_VIEW_CONTENT_WRAP: "tableView-content-wrap";
430
+ TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
431
+ TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
432
+ TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
433
+ TABLE_CONTAINER: 'pm-table-container';
434
+ TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
435
+ TABLE_LEFT_BORDER: 'pm-table-left-border';
436
+ TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
437
+ TABLE_NODE_WRAPPER: 'pm-table-wrapper';
438
+ TABLE_NODE_WRAPPER_NO_OVERFLOW: 'pm-table-wrapper-no-overflow';
439
+ TABLE_RESIZER_CONTAINER: 'pm-table-resizer-container';
440
+ TABLE_RIGHT_BORDER: 'pm-table-right-border';
441
+ TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
442
+ TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
443
+ TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
444
+ TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
445
+ TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
446
+ TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
447
+ TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
448
+ TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
449
+ TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
450
+ TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
451
+ TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
452
+ TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
453
+ TABLE_VIEW_CONTENT_WRAP: 'tableView-content-wrap';
454
454
  };
455
455
  export interface ToolbarMenuConfig {
456
456
  allowCollapse?: boolean;
@@ -8,5 +8,5 @@ type Props = {
8
8
  includeTooltip?: boolean;
9
9
  startIndex: number;
10
10
  };
11
- export declare const ColumnResizeWidget: ({ startIndex, endIndex, includeTooltip }: Props) => jsx.JSX.Element;
11
+ export declare const ColumnResizeWidget: ({ startIndex, endIndex, includeTooltip, }: Props) => jsx.JSX.Element;
12
12
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { MouseEventHandler, FocusEventHandler } from 'react';
2
2
  import React from 'react';
3
- import type { WrappedComponentProps } from 'react-intl';
3
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { TriggerType } from '../../pm-plugins/drag-and-drop/types';
6
6
  import type { CellHoverMeta, TableDirection } from '../../types';
@@ -23,7 +23,7 @@ type DragHandleProps = {
23
23
  tableLocalId: string;
24
24
  toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
25
25
  };
26
- export declare const DragHandle: React.FC<import("react-intl").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
26
+ export declare const DragHandle: React.FC<WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
27
27
  WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
28
28
  };
29
29
  export {};
@@ -1,2 +1,3 @@
1
- export declare const tableFloatingCellButtonStyles: () => import("@emotion/utils").SerializedStyles;
2
- export declare const tableFloatingCellButtonSelectedStyles: () => import("@emotion/utils").SerializedStyles;
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ export declare const tableFloatingCellButtonStyles: () => SerializedStyles;
3
+ export declare const tableFloatingCellButtonSelectedStyles: () => SerializedStyles;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React, { Component } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import type { WrappedComponentProps } from 'react-intl';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
8
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
9
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
10
10
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -64,7 +64,7 @@ export declare class ContextualMenu extends Component<Props & WrappedComponentPr
64
64
  private closeSubmenu;
65
65
  private setColor;
66
66
  }
67
- declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
67
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
68
68
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
69
69
  };
70
- export default _default;
70
+ export default _default_1;
@@ -1,2 +1,3 @@
1
- export declare const cellColourPreviewStyles: (selectedColor: string) => import("@emotion/utils").SerializedStyles;
2
- export declare const tablePopupStyles: (isDragAndDropEnabled: boolean | undefined) => import("@emotion/utils").SerializedStyles;
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ export declare const cellColourPreviewStyles: (selectedColor: string) => SerializedStyles;
3
+ export declare const tablePopupStyles: (isDragAndDropEnabled: boolean | undefined) => SerializedStyles;
@@ -1,6 +1,6 @@
1
1
  import type { SyntheticEvent } from 'react';
2
2
  import React from 'react';
3
- import type { MessageDescriptor, WrappedComponentProps } from 'react-intl';
3
+ import type { MessageDescriptor, WithIntlProps, WrappedComponentProps } from 'react-intl';
4
4
  interface ButtonProps {
5
5
  onClick?: (event: SyntheticEvent) => void;
6
6
  onMouseEnter?: (event: SyntheticEvent) => void;
@@ -8,7 +8,7 @@ interface ButtonProps {
8
8
  removeLabel: MessageDescriptor;
9
9
  style?: object;
10
10
  }
11
- declare const _default: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
11
+ declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
12
12
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
13
13
  };
14
- export default _default;
14
+ export default _default_1;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  /** @jsxFrag */
6
6
  import React from 'react';
7
- import type { WrappedComponentProps } from 'react-intl';
7
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
8
8
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
9
  import type { ExtractInjectionAPI, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
10
10
  import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
@@ -35,7 +35,7 @@ type DragMenuProps = {
35
35
  target?: Element;
36
36
  targetCellPosition?: number;
37
37
  };
38
- declare const _default: React.FC<import("react-intl").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
38
+ declare const _default_1: React.FC<WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
39
39
  WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
40
40
  };
41
- export default _default;
41
+ export default _default_1;
@@ -1,6 +1,6 @@
1
1
  import type { SyntheticEvent } from 'react';
2
2
  import React from 'react';
3
- import type { WrappedComponentProps } from 'react-intl';
3
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
4
4
  import type { TableDirection } from '../../types';
5
5
  interface ButtonProps {
6
6
  hasStickyHeaders: boolean;
@@ -9,10 +9,10 @@ interface ButtonProps {
9
9
  tableRef: HTMLElement;
10
10
  type: TableDirection;
11
11
  }
12
- export declare const DragAndDropInsertButton: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
12
+ export declare const DragAndDropInsertButton: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
13
13
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
14
14
  };
15
- declare const _default: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
15
+ declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
16
16
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
17
17
  };
18
- export default _default;
18
+ export default _default_1;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
5
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
@@ -35,7 +35,7 @@ export declare class FloatingInsertButton extends React.Component<Props & Wrappe
35
35
  private insertRow;
36
36
  private insertColumn;
37
37
  }
38
- declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
38
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
39
39
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
40
40
  };
41
- export default _default;
41
+ export default _default_1;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { CornerControlProps } from './types';
4
- export declare const CornerControls: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
4
+ export declare const CornerControls: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
5
5
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
6
6
  };
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { TablePlugin } from '../../../tablePluginType';
5
5
  import type { CornerControlProps } from './types';
6
- export declare const DragCornerControlsWithSelection: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps & {
6
+ export declare const DragCornerControlsWithSelection: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps & {
7
7
  api?: ExtractInjectionAPI<TablePlugin>;
8
8
  }>> & {
9
9
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps & {
10
10
  api?: ExtractInjectionAPI<TablePlugin>;
11
11
  }>;
12
12
  };
13
- export declare const DragCornerControls: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
13
+ export declare const DragCornerControls: React.FC<WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl';
2
+ import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  export interface Props {
@@ -14,6 +14,6 @@ export interface Props {
14
14
  stickyTop?: number;
15
15
  tableRef: HTMLTableElement;
16
16
  }
17
- export declare const RowControls: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
17
+ export declare const RowControls: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
18
18
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
19
19
  };
@@ -1,13 +1,14 @@
1
+ import { type SerializedStyles } from '@emotion/react';
1
2
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
2
3
  export declare const insertColumnButtonOffset: number;
3
4
  export declare const tableRowHeight = 44;
4
5
  export declare const baseTableStyles: (props: {
5
6
  featureFlags?: FeatureFlags;
6
7
  isDragAndDropEnabled?: boolean;
7
- }) => import("@emotion/utils").SerializedStyles;
8
+ }) => SerializedStyles;
8
9
  export declare const tableStyles: (props: {
9
10
  featureFlags?: FeatureFlags;
10
11
  isDragAndDropEnabled?: boolean;
11
- }) => import("@emotion/utils").SerializedStyles;
12
- export declare const tableFullPageEditorStyles: import("@emotion/utils").SerializedStyles;
13
- export declare const tableCommentEditorStyles: import("@emotion/utils").SerializedStyles;
12
+ }) => SerializedStyles;
13
+ export declare const tableFullPageEditorStyles: SerializedStyles;
14
+ export declare const tableCommentEditorStyles: SerializedStyles;
@@ -1,23 +1,23 @@
1
1
  /**
2
2
  * Basic colors added to prevent content overflow in table cells.
3
3
  */
4
- export declare const tableCellBackgroundColor: "var(--ds-surface)";
5
- export declare const tableHeaderCellBackgroundColor: "var(--ds-background-accent-gray-subtlest)";
6
- export declare const tableToolbarColor: "var(--ds-background-neutral-subtle)";
7
- export declare const tableTextColor: "var(--ds-text-subtlest)";
8
- export declare const tableBorderColor: "var(--ds-background-accent-gray-subtler)";
9
- export declare const tableFloatingControlsColor: "var(--ds-background-neutral)";
10
- export declare const tableCellSelectedColor: "var(--ds-blanket-selected)";
11
- export declare const tableHeaderCellSelectedColor: "var(--ds-background-selected-pressed)";
12
- export declare const tableToolbarSelectedColor: "var(--ds-background-selected-pressed)";
13
- export declare const tableBorderSelectedColor: "var(--ds-border-focused)";
14
- export declare const tableCellSelectedDeleteIconColor: "var(--ds-icon-subtle)";
15
- export declare const tableCellSelectedDeleteIconBackground: "var(--ds-background-accent-gray-subtlest)";
16
- export declare const tableCellDeleteColor: "var(--ds-blanket-danger)";
17
- export declare const tableBorderDeleteColor: "var(--ds-border-danger)";
18
- export declare const tableToolbarDeleteColor: "var(--ds-background-danger-pressed)";
19
- export declare const tableCellHoverDeleteIconColor: "var(--ds-icon-inverse)";
20
- export declare const tableCellHoverDeleteIconBackground: "var(--ds-background-danger-bold)";
4
+ export declare const tableCellBackgroundColor: 'var(--ds-surface)';
5
+ export declare const tableHeaderCellBackgroundColor: 'var(--ds-background-accent-gray-subtlest)';
6
+ export declare const tableToolbarColor: 'var(--ds-background-neutral-subtle)';
7
+ export declare const tableTextColor: 'var(--ds-text-subtlest)';
8
+ export declare const tableBorderColor: 'var(--ds-background-accent-gray-subtler)';
9
+ export declare const tableFloatingControlsColor: 'var(--ds-background-neutral)';
10
+ export declare const tableCellSelectedColor: 'var(--ds-blanket-selected)';
11
+ export declare const tableHeaderCellSelectedColor: 'var(--ds-background-selected-pressed)';
12
+ export declare const tableToolbarSelectedColor: 'var(--ds-background-selected-pressed)';
13
+ export declare const tableBorderSelectedColor: 'var(--ds-border-focused)';
14
+ export declare const tableCellSelectedDeleteIconColor: 'var(--ds-icon-subtle)';
15
+ export declare const tableCellSelectedDeleteIconBackground: 'var(--ds-background-accent-gray-subtlest)';
16
+ export declare const tableCellDeleteColor: 'var(--ds-blanket-danger)';
17
+ export declare const tableBorderDeleteColor: 'var(--ds-border-danger)';
18
+ export declare const tableToolbarDeleteColor: 'var(--ds-background-danger-pressed)';
19
+ export declare const tableCellHoverDeleteIconColor: 'var(--ds-icon-inverse)';
20
+ export declare const tableCellHoverDeleteIconBackground: 'var(--ds-background-danger-bold)';
21
21
  export declare const tableBorderRadiusSize = 3;
22
22
  export declare const tablePadding = 8;
23
23
  export declare const tableScrollbarOffset = 15;
@@ -25,7 +25,7 @@ export declare const tableMarginFullWidthMode = 2;
25
25
  export declare const tableInsertColumnButtonSize = 20;
26
26
  export declare const tableDeleteButtonSize = 16;
27
27
  export declare const tableDeleteButtonOffset = 6;
28
- export declare const tableToolbarSize = 11;
28
+ export declare const tableToolbarSize: 11;
29
29
  export declare const tableControlsSpacing: number;
30
30
  export declare const tableInsertColumnButtonOffset = 3;
31
31
  export declare const layoutButtonSize = 32;