@atlaskit/editor-plugin-table 7.16.8 → 7.16.9

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 (121) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/nodeviews/ExternalDropTargets.js +4 -0
  3. package/dist/cjs/nodeviews/TableComponent.js +28 -5
  4. package/dist/cjs/nodeviews/TableContainer.js +32 -11
  5. package/dist/cjs/toolbar.js +17 -7
  6. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -0
  7. package/dist/cjs/ui/DragHandle/index.js +10 -3
  8. package/dist/cjs/ui/DragPreview/index.js +1 -0
  9. package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +12 -1
  10. package/dist/cjs/ui/FloatingContextualButton/index.js +3 -1
  11. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
  12. package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +7 -2
  13. package/dist/cjs/ui/FloatingDeleteButton/index.js +2 -0
  14. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +7 -2
  15. package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +61 -57
  16. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +36 -14
  17. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
  18. package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
  19. package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  20. package/dist/cjs/ui/TableFloatingColumnControls/index.js +3 -1
  21. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
  22. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
  23. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +13 -4
  24. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +50 -43
  25. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
  26. package/dist/cjs/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
  27. package/dist/cjs/ui/TableFloatingControls/index.js +80 -76
  28. package/dist/cjs/ui/icons/DragHandleDisabledIcon.js +3 -1
  29. package/dist/cjs/ui/icons/DragInMotionIcon.js +3 -1
  30. package/dist/cjs/ui/icons/MinimisedHandle.js +1 -0
  31. package/dist/es2019/nodeviews/ExternalDropTargets.js +4 -0
  32. package/dist/es2019/nodeviews/TableComponent.js +28 -5
  33. package/dist/es2019/nodeviews/TableContainer.js +32 -11
  34. package/dist/es2019/toolbar.js +13 -3
  35. package/dist/es2019/ui/ColumnResizeWidget/index.js +2 -0
  36. package/dist/es2019/ui/DragHandle/index.js +10 -3
  37. package/dist/es2019/ui/DragPreview/index.js +1 -0
  38. package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +12 -1
  39. package/dist/es2019/ui/FloatingContextualButton/index.js +3 -1
  40. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
  41. package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +7 -2
  42. package/dist/es2019/ui/FloatingDeleteButton/index.js +2 -0
  43. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +7 -2
  44. package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +56 -52
  45. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +36 -14
  46. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
  47. package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
  48. package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  49. package/dist/es2019/ui/TableFloatingColumnControls/index.js +3 -1
  50. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
  51. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
  52. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +13 -4
  53. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +47 -40
  54. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
  55. package/dist/es2019/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
  56. package/dist/es2019/ui/TableFloatingControls/index.js +78 -74
  57. package/dist/es2019/ui/icons/DragHandleDisabledIcon.js +3 -1
  58. package/dist/es2019/ui/icons/DragInMotionIcon.js +3 -1
  59. package/dist/es2019/ui/icons/MinimisedHandle.js +1 -0
  60. package/dist/esm/nodeviews/ExternalDropTargets.js +4 -0
  61. package/dist/esm/nodeviews/TableComponent.js +28 -5
  62. package/dist/esm/nodeviews/TableContainer.js +32 -11
  63. package/dist/esm/toolbar.js +16 -4
  64. package/dist/esm/ui/ColumnResizeWidget/index.js +2 -0
  65. package/dist/esm/ui/DragHandle/index.js +10 -3
  66. package/dist/esm/ui/DragPreview/index.js +1 -0
  67. package/dist/esm/ui/FloatingContextualButton/FixedButton.js +12 -1
  68. package/dist/esm/ui/FloatingContextualButton/index.js +3 -1
  69. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
  70. package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +7 -2
  71. package/dist/esm/ui/FloatingDeleteButton/index.js +2 -0
  72. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +7 -2
  73. package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +61 -57
  74. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +36 -14
  75. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
  76. package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
  77. package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  78. package/dist/esm/ui/TableFloatingColumnControls/index.js +3 -1
  79. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
  80. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
  81. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +13 -4
  82. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +50 -43
  83. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
  84. package/dist/esm/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
  85. package/dist/esm/ui/TableFloatingControls/index.js +80 -76
  86. package/dist/esm/ui/icons/DragHandleDisabledIcon.js +3 -1
  87. package/dist/esm/ui/icons/DragInMotionIcon.js +3 -1
  88. package/dist/esm/ui/icons/MinimisedHandle.js +1 -0
  89. package/dist/types/toolbar.d.ts +2 -1
  90. package/dist/types-ts4.5/toolbar.d.ts +2 -1
  91. package/docs/0-intro.tsx +1 -0
  92. package/package.json +1 -1
  93. package/src/nodeviews/ExternalDropTargets.tsx +4 -0
  94. package/src/nodeviews/TableComponent.tsx +18 -0
  95. package/src/nodeviews/TableContainer.tsx +12 -0
  96. package/src/toolbar.tsx +20 -1
  97. package/src/ui/ColumnResizeWidget/index.tsx +2 -0
  98. package/src/ui/DragHandle/index.tsx +3 -0
  99. package/src/ui/DragPreview/index.tsx +1 -0
  100. package/src/ui/FloatingContextualButton/FixedButton.tsx +10 -0
  101. package/src/ui/FloatingContextualButton/index.tsx +1 -0
  102. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +3 -0
  103. package/src/ui/FloatingDeleteButton/DeleteButton.tsx +4 -0
  104. package/src/ui/FloatingDeleteButton/index.tsx +2 -0
  105. package/src/ui/FloatingDragMenu/DragMenu.tsx +3 -0
  106. package/src/ui/FloatingDragMenu/DropdownMenu.tsx +3 -0
  107. package/src/ui/FloatingInsertButton/InsertButton.tsx +14 -0
  108. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +16 -1
  109. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.tsx +2 -0
  110. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/index.tsx +2 -0
  111. package/src/ui/TableFloatingColumnControls/index.tsx +1 -0
  112. package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +6 -0
  113. package/src/ui/TableFloatingControls/CornerControls/DragCornerControls.tsx +4 -0
  114. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +5 -0
  115. package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +5 -0
  116. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +15 -1
  117. package/src/ui/TableFloatingControls/RowDropTarget/index.tsx +1 -0
  118. package/src/ui/TableFloatingControls/index.tsx +1 -0
  119. package/src/ui/icons/DragHandleDisabledIcon.tsx +1 -0
  120. package/src/ui/icons/DragInMotionIcon.tsx +1 -0
  121. package/src/ui/icons/MinimisedHandle.tsx +1 -0
@@ -76,81 +76,85 @@ var TableFloatingControls = exports.TableFloatingControls = function TableFloati
76
76
  }
77
77
  var stickyTop = stickyHeader && stickyHeader.sticky && hasHeaderRow ? stickyHeader.top : undefined;
78
78
  var wrapperClassName = isDragAndDropEnabled ? _types.TableCssClassName.DRAG_ROW_CONTROLS_WRAPPER : _types.TableCssClassName.ROW_CONTROLS_WRAPPER;
79
- return /*#__PURE__*/_react.default.createElement("div", {
80
- className: wrapperClassName
81
- }, /*#__PURE__*/_react.default.createElement("div", {
82
- onMouseDown: function onMouseDown(e) {
83
- return !isDragAndDropEnabled && e.preventDefault();
84
- }
85
- }, isNumberColumnEnabled ? /*#__PURE__*/_react.default.createElement(_NumberColumn.default, {
86
- editorView: editorView,
87
- hoverRows: _hoverRows,
88
- tableRef: tableRef,
89
- tableActive: tableActive,
90
- hoveredRows: hoveredRows,
91
- hasHeaderRow: hasHeaderRow,
92
- isInDanger: isInDanger,
93
- isResizing: isResizing,
94
- selectRow: _selectRow,
95
- updateCellHoverLocation: updateCellHoverLocation,
96
- stickyTop: stickyTop,
97
- isDragAndDropEnabled: isDragAndDropEnabled
98
- }) : null, tableActive && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/_react.default.createElement(_CornerControls.DragCornerControlsWithSelection, {
99
- editorView: editorView,
100
- tableRef: tableRef,
101
- isInDanger: isInDanger,
102
- isResizing: isResizing,
103
- api: api
104
- }) : /*#__PURE__*/_react.default.createElement(_CornerControls.DragCornerControls, {
105
- editorView: editorView,
106
- tableRef: tableRef,
107
- isInDanger: isInDanger,
108
- isResizing: isResizing
109
- }), /*#__PURE__*/_react.default.createElement(_RowControls.DragControls, {
110
- tableRef: tableRef,
111
- tableNode: tableNode,
112
- hoveredCell: hoveredCell,
113
- isTableHovered: isTableHovered,
114
- editorView: editorView,
115
- tableActive: tableActive,
116
- isInDanger: isInDanger,
117
- isResizing: isResizing,
118
- tableWidth: tableWrapperWidth,
119
- hoverRows: _hoverRows,
120
- selectRow: _selectRow,
121
- selectRows: _selectRows,
122
- updateCellHoverLocation: updateCellHoverLocation
123
- })) : (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/_react.default.createElement(_FloatingControlsWithSelection.FloatingControlsWithSelection, {
124
- editorView: editorView,
125
- tableRef: tableRef,
126
- isInDanger: isInDanger,
127
- isResizing: isResizing,
128
- isHeaderRowEnabled: isHeaderRowEnabled,
129
- isHeaderColumnEnabled: isHeaderColumnEnabled,
130
- hoveredRows: hoveredRows,
131
- stickyTop: tableActive ? stickyTop : undefined,
132
- tableActive: tableActive,
133
- hoverRows: _hoverRows,
134
- selectRow: _selectRow,
135
- api: api
136
- }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CornerControls.CornerControls, {
137
- editorView: editorView,
138
- tableRef: tableRef,
139
- isInDanger: isInDanger,
140
- isResizing: isResizing,
141
- isHeaderRowEnabled: isHeaderRowEnabled,
142
- isHeaderColumnEnabled: isHeaderColumnEnabled,
143
- hoveredRows: hoveredRows,
144
- stickyTop: tableActive ? stickyTop : undefined
145
- }), /*#__PURE__*/_react.default.createElement(_RowControls.RowControls, {
146
- editorView: editorView,
147
- tableRef: tableRef,
148
- hoverRows: _hoverRows,
149
- hoveredRows: hoveredRows,
150
- isInDanger: isInDanger,
151
- isResizing: isResizing,
152
- selectRow: _selectRow,
153
- stickyTop: tableActive ? stickyTop : undefined
154
- })))));
79
+ return (
80
+ /*#__PURE__*/
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
82
+ _react.default.createElement("div", {
83
+ className: wrapperClassName
84
+ }, /*#__PURE__*/_react.default.createElement("div", {
85
+ onMouseDown: function onMouseDown(e) {
86
+ return !isDragAndDropEnabled && e.preventDefault();
87
+ }
88
+ }, isNumberColumnEnabled ? /*#__PURE__*/_react.default.createElement(_NumberColumn.default, {
89
+ editorView: editorView,
90
+ hoverRows: _hoverRows,
91
+ tableRef: tableRef,
92
+ tableActive: tableActive,
93
+ hoveredRows: hoveredRows,
94
+ hasHeaderRow: hasHeaderRow,
95
+ isInDanger: isInDanger,
96
+ isResizing: isResizing,
97
+ selectRow: _selectRow,
98
+ updateCellHoverLocation: updateCellHoverLocation,
99
+ stickyTop: stickyTop,
100
+ isDragAndDropEnabled: isDragAndDropEnabled
101
+ }) : null, tableActive && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/_react.default.createElement(_CornerControls.DragCornerControlsWithSelection, {
102
+ editorView: editorView,
103
+ tableRef: tableRef,
104
+ isInDanger: isInDanger,
105
+ isResizing: isResizing,
106
+ api: api
107
+ }) : /*#__PURE__*/_react.default.createElement(_CornerControls.DragCornerControls, {
108
+ editorView: editorView,
109
+ tableRef: tableRef,
110
+ isInDanger: isInDanger,
111
+ isResizing: isResizing
112
+ }), /*#__PURE__*/_react.default.createElement(_RowControls.DragControls, {
113
+ tableRef: tableRef,
114
+ tableNode: tableNode,
115
+ hoveredCell: hoveredCell,
116
+ isTableHovered: isTableHovered,
117
+ editorView: editorView,
118
+ tableActive: tableActive,
119
+ isInDanger: isInDanger,
120
+ isResizing: isResizing,
121
+ tableWidth: tableWrapperWidth,
122
+ hoverRows: _hoverRows,
123
+ selectRow: _selectRow,
124
+ selectRows: _selectRows,
125
+ updateCellHoverLocation: updateCellHoverLocation
126
+ })) : (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/_react.default.createElement(_FloatingControlsWithSelection.FloatingControlsWithSelection, {
127
+ editorView: editorView,
128
+ tableRef: tableRef,
129
+ isInDanger: isInDanger,
130
+ isResizing: isResizing,
131
+ isHeaderRowEnabled: isHeaderRowEnabled,
132
+ isHeaderColumnEnabled: isHeaderColumnEnabled,
133
+ hoveredRows: hoveredRows,
134
+ stickyTop: tableActive ? stickyTop : undefined,
135
+ tableActive: tableActive,
136
+ hoverRows: _hoverRows,
137
+ selectRow: _selectRow,
138
+ api: api
139
+ }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CornerControls.CornerControls, {
140
+ editorView: editorView,
141
+ tableRef: tableRef,
142
+ isInDanger: isInDanger,
143
+ isResizing: isResizing,
144
+ isHeaderRowEnabled: isHeaderRowEnabled,
145
+ isHeaderColumnEnabled: isHeaderColumnEnabled,
146
+ hoveredRows: hoveredRows,
147
+ stickyTop: tableActive ? stickyTop : undefined
148
+ }), /*#__PURE__*/_react.default.createElement(_RowControls.RowControls, {
149
+ editorView: editorView,
150
+ tableRef: tableRef,
151
+ hoverRows: _hoverRows,
152
+ hoveredRows: hoveredRows,
153
+ isInDanger: isInDanger,
154
+ isResizing: isResizing,
155
+ selectRow: _selectRow,
156
+ stickyTop: tableActive ? stickyTop : undefined
157
+ })))))
158
+ );
155
159
  };
156
160
  var _default = exports.default = TableFloatingControls;
@@ -13,7 +13,9 @@ var DragHandleDisabledIcon = exports.DragHandleDisabledIcon = function DragHandl
13
13
  height: "16",
14
14
  viewBox: "0 0 24 16",
15
15
  fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
18
+ ,
17
19
  style: style,
18
20
  "data-testid": "drag-icon-disabled"
19
21
  }, /*#__PURE__*/_react.default.createElement("rect", {
@@ -13,7 +13,9 @@ var DragInMotionIcon = exports.DragInMotionIcon = function DragInMotionIcon(_ref
13
13
  height: "20",
14
14
  viewBox: "0 0 28 20",
15
15
  fill: "none",
16
- xmlns: "http://www.w3.org/2000/svg",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
18
+ ,
17
19
  style: style
18
20
  }, /*#__PURE__*/_react.default.createElement("rect", {
19
21
  x: "1",
@@ -14,6 +14,7 @@ var MinimisedHandleIcon = exports.MinimisedHandleIcon = function MinimisedHandle
14
14
  height: "5",
15
15
  fill: "none"
16
16
  }, /*#__PURE__*/_react.default.createElement("rect", {
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
17
18
  className: _types.TableCssClassName.DRAG_HANDLE_MINIMISED,
18
19
  width: "24",
19
20
  height: "5",
@@ -39,16 +39,20 @@ export const ExternalDropTargets = ({
39
39
  return /*#__PURE__*/React.createElement("div", {
40
40
  style: {
41
41
  width: getTableWrapperWidth(),
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
42
43
  overflow: 'hidden',
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
43
45
  position: 'absolute',
44
46
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
45
47
  top: `-${dropTargetExtendedWidth - tableMarginTop}px`,
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
46
49
  pointerEvents: 'auto',
47
50
  zIndex: `${dropTargetsZIndex}`
48
51
  },
49
52
  "data-testid": "table-floating-column-extended-drop-targets"
50
53
  }, /*#__PURE__*/React.createElement("div", {
51
54
  style: {
55
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
52
56
  display: 'flex',
53
57
  // move drop targets based on table wrapper scroll
54
58
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
@@ -736,7 +736,9 @@ class TableComponent extends React.Component {
736
736
  const {
737
737
  stickyScrollbar
738
738
  } = getEditorFeatureFlags();
739
- return /*#__PURE__*/React.createElement(TableContainer, {
739
+ return /*#__PURE__*/React.createElement(TableContainer
740
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
741
+ , {
740
742
  className: classnames(ClassName.TABLE_CONTAINER, {
741
743
  [ClassName.WITH_CONTROLS]: allowControls && tableActive,
742
744
  [ClassName.TABLE_STICKY]: this.state.stickyHeader && hasHeaderRow,
@@ -757,9 +759,11 @@ class TableComponent extends React.Component {
757
759
  isWholeTableInDanger: isWholeTableInDanger,
758
760
  isTableAlignmentEnabled: isTableAlignmentEnabled
759
761
  }, /*#__PURE__*/React.createElement("div", {
762
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
760
763
  className: ClassName.TABLE_STICKY_SENTINEL_TOP,
761
764
  "data-testid": "sticky-sentinel-top"
762
765
  }), stickyScrollbar && /*#__PURE__*/React.createElement("div", {
766
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
763
767
  className: ClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP,
764
768
  "data-testid": "sticky-scrollbar-sentinel-top"
765
769
  }), allowControls && rowControls, isDragAndDropEnabled && /*#__PURE__*/React.createElement(ExternalDropTargets, {
@@ -774,10 +778,15 @@ class TableComponent extends React.Component {
774
778
  return ((_this$wrapper4 = this.wrapper) === null || _this$wrapper4 === void 0 ? void 0 : _this$wrapper4.clientWidth) || 760;
775
779
  }
776
780
  }), /*#__PURE__*/React.createElement("div", {
777
- contentEditable: false,
778
- style: shadowStyle(showBeforeShadow),
781
+ contentEditable: false
782
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
783
+ ,
784
+ style: shadowStyle(showBeforeShadow)
785
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
786
+ ,
779
787
  className: ClassName.TABLE_LEFT_SHADOW
780
788
  }), this.state.stickyHeader && /*#__PURE__*/React.createElement("div", {
789
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
781
790
  className: `${ClassName.TABLE_LEFT_SHADOW} ${ClassName.TABLE_STICKY_SHADOW}`,
782
791
  style: {
783
792
  visibility: showBeforeShadow && hasHeaderRow ? 'visible' : 'hidden',
@@ -785,6 +794,7 @@ class TableComponent extends React.Component {
785
794
  paddingBottom: `${isDragAndDropEnabled && "var(--ds-space-025, 2px)"}`
786
795
  }
787
796
  }), /*#__PURE__*/React.createElement("div", {
797
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
788
798
  className: classnames(ClassName.TABLE_NODE_WRAPPER),
789
799
  ref: elem => {
790
800
  this.wrapper = elem;
@@ -799,10 +809,13 @@ class TableComponent extends React.Component {
799
809
  }
800
810
  }
801
811
  }, allowControls && colControls), stickyScrollbar && /*#__PURE__*/React.createElement("div", {
812
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
802
813
  className: ClassName.TABLE_STICKY_SCROLLBAR_CONTAINER,
803
814
  style: {
815
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
804
816
  height: "var(--ds-space-250, 20px)",
805
817
  // MAX_BROWSER_SCROLLBAR_HEIGHT
818
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
806
819
  display: 'none',
807
820
  // prevent unwanted scroll during table resize without removing scrollbar container from the dom
808
821
  width: isResizing ? "var(--ds-space-0, 0px)" : '100%'
@@ -810,18 +823,26 @@ class TableComponent extends React.Component {
810
823
  }, /*#__PURE__*/React.createElement("div", {
811
824
  style: {
812
825
  width: tableRef === null || tableRef === void 0 ? void 0 : tableRef.clientWidth,
826
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
813
827
  height: '100%'
814
828
  }
815
829
  })), /*#__PURE__*/React.createElement("div", {
816
- contentEditable: false,
817
- style: shadowStyle(showAfterShadow),
830
+ contentEditable: false
831
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
832
+ ,
833
+ style: shadowStyle(showAfterShadow)
834
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
835
+ ,
818
836
  className: ClassName.TABLE_RIGHT_SHADOW
819
837
  }), this.state.stickyHeader && /*#__PURE__*/React.createElement("div", {
820
838
  style: {
839
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
821
840
  position: 'absolute',
841
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
822
842
  right: "var(--ds-space-400, 32px)" // tableOverflowShadowWidthWide
823
843
  }
824
844
  }, /*#__PURE__*/React.createElement("div", {
845
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
825
846
  className: `${ClassName.TABLE_RIGHT_SHADOW} ${ClassName.TABLE_STICKY_SHADOW}`,
826
847
  style: {
827
848
  visibility: showAfterShadow && hasHeaderRow ? 'visible' : 'hidden',
@@ -829,9 +850,11 @@ class TableComponent extends React.Component {
829
850
  paddingBottom: `${isDragAndDropEnabled && "var(--ds-space-025, 2px)"}`
830
851
  }
831
852
  })), /*#__PURE__*/React.createElement("div", {
853
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
832
854
  className: ClassName.TABLE_STICKY_SENTINEL_BOTTOM,
833
855
  "data-testid": "sticky-sentinel-bottom"
834
856
  }), stickyScrollbar && /*#__PURE__*/React.createElement("div", {
857
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
835
858
  className: ClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM,
836
859
  "data-testid": "sticky-scrollbar-sentinel-bottom"
837
860
  }));
@@ -13,8 +13,12 @@ export const InnerContainer = /*#__PURE__*/forwardRef(({
13
13
  children
14
14
  }, ref) => {
15
15
  return /*#__PURE__*/React.createElement("div", {
16
- ref: ref,
17
- style: style,
16
+ ref: ref
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
18
+ ,
19
+ style: style
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
21
+ ,
18
22
  className: className,
19
23
  "data-number-column": node.attrs.isNumberColumnEnabled,
20
24
  "data-layout": node.attrs.layout,
@@ -37,10 +41,14 @@ const AlignmentTableContainer = ({
37
41
  const style = useMemo(() => {
38
42
  return alignment === 'align-start' ? leftAlignStyle : centerAlignStyle;
39
43
  }, [alignment]);
40
- return /*#__PURE__*/React.createElement("div", {
41
- "data-testid": "table-alignment-container",
42
- style: style
43
- }, children);
44
+ return (
45
+ /*#__PURE__*/
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
47
+ React.createElement("div", {
48
+ "data-testid": "table-alignment-container",
49
+ style: style
50
+ }, children)
51
+ );
44
52
  };
45
53
  const AlignmentTableContainerWrapper = ({
46
54
  isTableAlignmentEnabled,
@@ -51,7 +59,9 @@ const AlignmentTableContainerWrapper = ({
51
59
  return /*#__PURE__*/React.createElement("div", {
52
60
  "data-testid": "table-alignment-container",
53
61
  style: {
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
54
63
  display: 'flex',
64
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
55
65
  justifyContent: 'center'
56
66
  }
57
67
  }, children);
@@ -172,12 +182,18 @@ export const ResizableTableContainer = /*#__PURE__*/React.memo(({
172
182
  width: tableWidthRef.current,
173
183
  height: resizing ? updateContainerHeight(tableWrapperHeight !== null && tableWrapperHeight !== void 0 ? tableWrapperHeight : 'auto') : 'auto',
174
184
  position: isLivePageViewMode ? 'relative' : 'unset'
175
- },
185
+ }
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
187
+ ,
176
188
  className: ClassName.TABLE_RESIZER_CONTAINER,
177
189
  ref: containerRef
178
- }, isLivePageViewMode ? /*#__PURE__*/React.createElement(InnerContainer, {
190
+ }, isLivePageViewMode ? /*#__PURE__*/React.createElement(InnerContainer
191
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
192
+ , {
179
193
  className: className,
180
- node: node,
194
+ node: node
195
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
196
+ ,
181
197
  style: {
182
198
  width: 'inherit'
183
199
  }
@@ -207,7 +223,9 @@ export const TableContainer = ({
207
223
  isTableAlignmentEnabled
208
224
  }) => {
209
225
  if (isTableResizingEnabled && !isNested) {
210
- return /*#__PURE__*/React.createElement(ResizableTableContainer, {
226
+ return /*#__PURE__*/React.createElement(ResizableTableContainer
227
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
228
+ , {
211
229
  className: className,
212
230
  node: node,
213
231
  containerWidth: editorWidth,
@@ -224,11 +242,14 @@ export const TableContainer = ({
224
242
  }, children);
225
243
  }
226
244
  return /*#__PURE__*/React.createElement(InnerContainer, {
227
- node: node,
245
+ node: node
246
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
247
+ ,
228
248
  className: classNames(className, {
229
249
  'less-padding': editorWidth < akEditorMobileBreakoutPoint && !isNested
230
250
  }),
231
251
  style: {
252
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
232
253
  width: 'inherit'
233
254
  }
234
255
  }, children);
@@ -317,7 +317,7 @@ export const getToolbarConfig = (getEditorContainerWidth, editorAnalyticsAPI, ge
317
317
  const menu = getToolbarMenuConfig(config, pluginState, intl, editorAnalyticsAPI);
318
318
  let alignmentMenu;
319
319
  const isNested = pluginState.tablePos && isTableNested(state, pluginState.tablePos);
320
- alignmentMenu = options !== null && options !== void 0 && options.isTableAlignmentEnabled && !isNested ? getAlignmentOptionsConfig(state, intl, editorAnalyticsAPI) : [];
320
+ alignmentMenu = options !== null && options !== void 0 && options.isTableAlignmentEnabled && !isNested ? getAlignmentOptionsConfig(state, intl, editorAnalyticsAPI, getEditorContainerWidth) : [];
321
321
  let cellItems;
322
322
  cellItems = pluginState.isDragAndDropEnabled ? [] : getCellItems(state, getEditorView(), intl, getEditorContainerWidth, editorAnalyticsAPI, options === null || options === void 0 ? void 0 : options.isTableScalingEnabled);
323
323
  let columnSettingsItems;
@@ -564,7 +564,7 @@ const highlightColumnsHandler = (state, dispatch) => {
564
564
  };
565
565
  export const getAlignmentOptionsConfig = (editorState, {
566
566
  formatMessage
567
- }, editorAnalyticsAPI) => {
567
+ }, editorAnalyticsAPI, getEditorContainerWidth) => {
568
568
  const tableObject = findTable(editorState.selection);
569
569
  if (!tableObject) {
570
570
  return [];
@@ -597,7 +597,10 @@ export const getAlignmentOptionsConfig = (editorState, {
597
597
  icon: icon,
598
598
  title: formatMessage(layoutToMessages[value]),
599
599
  selected: normaliseAlignment(currentLayout) === value,
600
- onClick: setTableAlignmentWithAnalytics(editorAnalyticsAPI)(value, currentLayout, INPUT_METHOD.FLOATING_TB)
600
+ onClick: setTableAlignmentWithAnalytics(editorAnalyticsAPI)(value, currentLayout, INPUT_METHOD.FLOATING_TB),
601
+ ...(isLayoutOptionDisabled(tableObject.node, getEditorContainerWidth) && {
602
+ disabled: value !== 'center'
603
+ })
601
604
  };
602
605
  });
603
606
  const alignmentItemOptions = {
@@ -623,4 +626,11 @@ export const getAlignmentOptionsConfig = (editorState, {
623
626
  export const getSelectedAlignmentIcon = (alignmentIcons, selectedNode) => {
624
627
  const selectedAlignment = selectedNode.attrs.layout;
625
628
  return alignmentIcons.find(icon => icon.value === normaliseAlignment(selectedAlignment));
629
+ };
630
+ export const isLayoutOptionDisabled = (selectedNode, getEditorContainerWidth) => {
631
+ const lineLength = getEditorContainerWidth().lineLength;
632
+ if (selectedNode && lineLength && selectedNode.attrs.width > lineLength) {
633
+ return true;
634
+ }
635
+ return false;
626
636
  };
@@ -16,6 +16,7 @@ export const ColumnResizeWidget = ({
16
16
  } = useIntl();
17
17
  if (!includeTooltip) {
18
18
  return jsx("div", {
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
19
20
  className: TableCssClassName.RESIZE_HANDLE_DECORATION,
20
21
  "data-start-index": startIndex,
21
22
  "data-end-index": endIndex
@@ -31,6 +32,7 @@ export const ColumnResizeWidget = ({
31
32
  position: "mouse",
32
33
  mousePosition: "auto-start"
33
34
  }, tooltipProps => jsx("div", _extends({
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
34
36
  className: TableCssClassName.RESIZE_HANDLE_DECORATION,
35
37
  "data-start-index": startIndex,
36
38
  "data-end-index": endIndex
@@ -148,7 +148,9 @@ const DragHandleComponent = ({
148
148
  }, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
149
149
  const showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
150
150
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
151
- type: "button",
151
+ type: "button"
152
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
153
+ ,
152
154
  className: ClassName.DRAG_HANDLE_BUTTON_CLICKABLE_ZONE,
153
155
  "data-testid": "table-drag-handle-clickable-zone-button",
154
156
  style: {
@@ -173,7 +175,9 @@ const DragHandleComponent = ({
173
175
  onClick: onClick
174
176
  }), /*#__PURE__*/React.createElement("button", {
175
177
  type: "button",
176
- id: isDragMenuTarget ? showDragMenuAnchorId : undefined,
178
+ id: isDragMenuTarget ? showDragMenuAnchorId : undefined
179
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
180
+ ,
177
181
  className: classnames(ClassName.DRAG_HANDLE_BUTTON_CONTAINER, appearance, {
178
182
  [ClassName.DRAG_HANDLE_DISABLED]: hasMergedCells
179
183
  }),
@@ -202,7 +206,10 @@ const DragHandleComponent = ({
202
206
  }
203
207
  }, appearance !== 'placeholder' ?
204
208
  // cannot block pointer events in Firefox as it breaks Dragging functionality
205
- browser.gecko ? /*#__PURE__*/React.createElement(HandleIconComponent, handleIconProps) : /*#__PURE__*/React.createElement("span", {
209
+ browser.gecko ? /*#__PURE__*/React.createElement(HandleIconComponent, handleIconProps) :
210
+ /*#__PURE__*/
211
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
212
+ React.createElement("span", {
206
213
  style: {
207
214
  pointerEvents: 'none'
208
215
  }
@@ -24,6 +24,7 @@ export const DragPreview = ({
24
24
  }
25
25
  }, /*#__PURE__*/React.createElement(DragInMotionIcon, {
26
26
  style: {
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
27
28
  position: 'absolute',
28
29
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
29
30
  marginLeft: `${marginLeft}px`,
@@ -93,19 +93,26 @@ export const FixedButton = ({
93
93
  React.createElement("div", {
94
94
  ref: observerTargetRef,
95
95
  style: {
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
96
97
  position: 'absolute',
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
97
99
  top: "var(--ds-space-0, 0px)",
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
98
101
  left: "var(--ds-space-0, 0px)",
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
99
103
  width: "var(--ds-space-250, 20px)",
100
104
  // BUTTON_WIDTH
105
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
101
106
  height: "var(--ds-space-250, 20px)" // BUTTON_WIDTH
102
107
  }
103
108
  }, /*#__PURE__*/React.createElement("div", {
104
109
  ref: fixedButtonRef,
105
110
  style: {
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
106
112
  position: 'fixed',
107
113
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
108
114
  top: stickyHeader.top + stickyHeader.padding + offset * 2,
115
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
109
116
  zIndex: akEditorTableCellOnStickyHeaderZIndex,
110
117
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
111
118
  left: calcLeftPos({
@@ -114,10 +121,14 @@ export const FixedButton = ({
114
121
  cellRefWidth: targetCellRef.clientWidth,
115
122
  offset
116
123
  }),
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
117
125
  width: "var(--ds-space-250, 20px)",
118
126
  // BUTTON_WIDTH
127
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
119
128
  height: "var(--ds-space-250, 20px)" // BUTTON_WIDTH
120
- },
129
+ }
130
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
131
+ ,
121
132
  className: ClassName.CONTEXTUAL_MENU_BUTTON_FIXED
122
133
  }, children)), mountTo);
123
134
  };
@@ -52,7 +52,9 @@ const FloatingContextualButtonInner = /*#__PURE__*/React.memo(props => {
52
52
  const labelCellOptions = formatMessage(messages.cellOptions);
53
53
  const button = jsx("div", {
54
54
  css: [tableFloatingCellButtonStyles(), isContextualMenuOpen && tableFloatingCellButtonSelectedStyles()]
55
- }, jsx(ToolbarButton, {
55
+ }, jsx(ToolbarButton
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
57
+ , {
56
58
  className: ClassName.CONTEXTUAL_MENU_BUTTON,
57
59
  selected: isContextualMenuOpen,
58
60
  title: labelCellOptions,
@@ -79,12 +79,17 @@ export class ContextualMenu extends Component {
79
79
  label: formatMessage(messages.backgroundColor),
80
80
  size: "medium"
81
81
  })) : undefined,
82
- elemAfter: jsx("div", {
82
+ elemAfter:
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
84
+ jsx("div", {
83
85
  className: DropdownMenuSharedCssClassName.SUBMENU
84
86
  }, jsx("div", {
85
- css: cellColourPreviewStyles(background),
87
+ css: cellColourPreviewStyles(background)
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
89
+ ,
86
90
  className: isDragAndDropEnabled ? ClassName.CONTEXTUAL_MENU_ICON_SMALL : ClassName.CONTEXTUAL_MENU_ICON
87
91
  }), isSubmenuOpen && jsx("div", {
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
88
93
  className: ClassName.CONTEXTUAL_SUBMENU,
89
94
  ref: this.handleSubMenuRef
90
95
  }, jsx(ColorPalette, {
@@ -11,7 +11,10 @@ const DeleteButton = ({
11
11
  formatMessage
12
12
  }
13
13
  }) => /*#__PURE__*/React.createElement("div", {
14
- className: ClassName.CONTROLS_DELETE_BUTTON_WRAP,
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
15
+ className: ClassName.CONTROLS_DELETE_BUTTON_WRAP
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
17
+ ,
15
18
  style: style,
16
19
  onMouseEnter: onMouseEnter,
17
20
  onMouseLeave: onMouseLeave
@@ -19,7 +22,9 @@ const DeleteButton = ({
19
22
  type: "button",
20
23
  "aria-label": formatMessage(removeLabel, {
21
24
  0: 1
22
- }),
25
+ })
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
27
+ ,
23
28
  className: ClassName.CONTROLS_DELETE_BUTTON,
24
29
  onMouseDown: onClick,
25
30
  onMouseMove: e => e.preventDefault()
@@ -250,9 +250,11 @@ class FloatingDeleteButton extends Component {
250
250
  });
251
251
  return /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("div", {
252
252
  style: {
253
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
253
254
  position: 'fixed',
254
255
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
255
256
  top: pos.top,
257
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
256
258
  zIndex: stickyRowZIndex,
257
259
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
258
260
  left: rect.left + (pos.left || 0) - (this.state.selectionType === 'column' ? this.state.scrollLeft : 0) - (this.props.isNumberColumnEnabled ? akEditorTableNumberColumnWidth : 0)