@atlaskit/editor-plugin-table 15.0.8 → 15.0.10
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.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/nodeviews/TableContainer.js +4 -46
- package/dist/cjs/nodeviews/TableResizer.js +1 -2
- package/dist/cjs/ui/DragHandle/index.js +2 -2
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +1 -1
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +4 -4
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +1 -1
- package/dist/es2019/nodeviews/TableContainer.js +4 -46
- package/dist/es2019/nodeviews/TableResizer.js +1 -2
- package/dist/es2019/ui/DragHandle/index.js +2 -2
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +1 -1
- package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -2
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -2
- package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +4 -4
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +1 -1
- package/dist/esm/nodeviews/TableContainer.js +4 -46
- package/dist/esm/nodeviews/TableResizer.js +1 -2
- package/dist/esm/ui/DragHandle/index.js +2 -2
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +1 -1
- package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -2
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -2
- package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +4 -4
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 15.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.0.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`8f55eb73e7b77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8f55eb73e7b77) -
|
|
14
|
+
Cleanup platform_editor_live_page_prevent_table_recreation
|
|
15
|
+
|
|
3
16
|
## 15.0.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -300,33 +300,12 @@ var ResizableTableContainerLegacy = /*#__PURE__*/_react.default.memo(function (_
|
|
|
300
300
|
,
|
|
301
301
|
className: _types.TableCssClassName.TABLE_RESIZER_CONTAINER,
|
|
302
302
|
ref: containerRef
|
|
303
|
-
}, (0,
|
|
304
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
305
|
-
, {
|
|
306
|
-
className: className,
|
|
307
|
-
node: node
|
|
308
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
309
|
-
,
|
|
310
|
-
style: {
|
|
311
|
-
width: 'inherit'
|
|
312
|
-
}
|
|
313
|
-
}, children) :
|
|
314
|
-
/*#__PURE__*/
|
|
315
|
-
// Ignored via go/ees005
|
|
316
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
317
|
-
_react.default.createElement(_TableResizer.TableResizer, tableResizerProps, /*#__PURE__*/_react.default.createElement(InnerContainer, {
|
|
318
|
-
className: className,
|
|
319
|
-
node: node
|
|
320
|
-
}, children)), (0, _platformFeatureFlags.fg)('platform_editor_live_page_prevent_table_recreation') ?
|
|
321
|
-
/*#__PURE__*/
|
|
322
|
-
// Ignored via go/ees005
|
|
323
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
324
|
-
_react.default.createElement(_TableResizer.TableResizer, (0, _extends2.default)({}, tableResizerProps, {
|
|
303
|
+
}, /*#__PURE__*/_react.default.createElement(_TableResizer.TableResizer, (0, _extends2.default)({}, tableResizerProps, {
|
|
325
304
|
disabled: isLivePageViewMode
|
|
326
305
|
}), /*#__PURE__*/_react.default.createElement(InnerContainer, {
|
|
327
306
|
className: className,
|
|
328
307
|
node: node
|
|
329
|
-
}, children))
|
|
308
|
+
}, children))));
|
|
330
309
|
});
|
|
331
310
|
var ResizableTableContainerNext = /*#__PURE__*/_react.default.memo(function (_ref5) {
|
|
332
311
|
var children = _ref5.children,
|
|
@@ -533,33 +512,12 @@ var ResizableTableContainerNext = /*#__PURE__*/_react.default.memo(function (_re
|
|
|
533
512
|
,
|
|
534
513
|
className: _types.TableCssClassName.TABLE_RESIZER_CONTAINER,
|
|
535
514
|
ref: containerRef
|
|
536
|
-
}, (0,
|
|
537
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
538
|
-
, {
|
|
539
|
-
className: className,
|
|
540
|
-
node: node
|
|
541
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
542
|
-
,
|
|
543
|
-
style: {
|
|
544
|
-
width: 'inherit'
|
|
545
|
-
}
|
|
546
|
-
}, children) :
|
|
547
|
-
/*#__PURE__*/
|
|
548
|
-
// Ignored via go/ees005
|
|
549
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
550
|
-
_react.default.createElement(_TableResizer.TableResizer, tableResizerProps, /*#__PURE__*/_react.default.createElement(InnerContainer, {
|
|
551
|
-
className: className,
|
|
552
|
-
node: node
|
|
553
|
-
}, children)), (0, _platformFeatureFlags.fg)('platform_editor_live_page_prevent_table_recreation') ?
|
|
554
|
-
/*#__PURE__*/
|
|
555
|
-
// Ignored via go/ees005
|
|
556
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
557
|
-
_react.default.createElement(_TableResizer.TableResizer, (0, _extends2.default)({}, tableResizerProps, {
|
|
515
|
+
}, /*#__PURE__*/_react.default.createElement(_TableResizer.TableResizer, (0, _extends2.default)({}, tableResizerProps, {
|
|
558
516
|
disabled: isLivePageViewMode
|
|
559
517
|
}), /*#__PURE__*/_react.default.createElement(InnerContainer, {
|
|
560
518
|
className: className,
|
|
561
519
|
node: node
|
|
562
|
-
}, children))
|
|
520
|
+
}, children))));
|
|
563
521
|
});
|
|
564
522
|
var ResizableTableContainer = exports.ResizableTableContainer = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
565
523
|
return (0, _expValEquals.expValEquals)('platform_editor_tables_scaling_css', 'isEnabled', true);
|
|
@@ -24,7 +24,6 @@ var _commands = require("@atlaskit/editor-prosemirror/commands");
|
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
25
|
var _utils = require("@atlaskit/editor-tables/utils");
|
|
26
26
|
var _insm = require("@atlaskit/insm");
|
|
27
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
28
27
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
29
28
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
30
29
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -514,7 +513,7 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
|
|
|
514
513
|
var resizeRatio = !isTableAlignmentEnabled || isTableAlignmentEnabled && (0, _alignment.normaliseAlignment)(node.attrs.layout) === _alignment.ALIGN_CENTER ? 2 : 1;
|
|
515
514
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_resizer.ResizerNext, {
|
|
516
515
|
ref: resizerRef,
|
|
517
|
-
enable:
|
|
516
|
+
enable: disabled ? {} : handles,
|
|
518
517
|
width: width,
|
|
519
518
|
handleAlignmentMethod: "sticky",
|
|
520
519
|
handleSize: handleSize,
|
|
@@ -218,7 +218,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
218
218
|
"aria-label": formatMessage(isRow ? _messages.tableMessages.rowDragHandle : _messages.tableMessages.columnDragHandle),
|
|
219
219
|
"aria-expanded": isDragMenuOpen && isDragMenuTarget ? 'true' : 'false',
|
|
220
220
|
"aria-haspopup": "menu"
|
|
221
|
-
// eslint-disable-next-line
|
|
221
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
222
222
|
,
|
|
223
223
|
onMouseOver: function onMouseOver(e) {
|
|
224
224
|
if ((0, _expValEquals.expValEquals)('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
|
|
@@ -226,7 +226,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
226
226
|
}
|
|
227
227
|
_onMouseOver && _onMouseOver(e);
|
|
228
228
|
}
|
|
229
|
-
// eslint-disable-next-line
|
|
229
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
230
230
|
,
|
|
231
231
|
onMouseOut: function onMouseOut(e) {
|
|
232
232
|
if ((0, _expValEquals.expValEquals)('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
|
|
@@ -730,7 +730,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
730
730
|
var isOpenAllowed = false;
|
|
731
731
|
isOpenAllowed = isCellMenuOpenByKeyboard ? this.state.isOpenAllowed : isOpen;
|
|
732
732
|
return (
|
|
733
|
-
// eslint-disable-next-line
|
|
733
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
734
734
|
(0, _react2.jsx)("div", {
|
|
735
735
|
"data-testid": "table-cell-contextual-menu"
|
|
736
736
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
@@ -17,7 +17,7 @@ var DeleteButton = function DeleteButton(_ref) {
|
|
|
17
17
|
formatMessage = _ref.intl.formatMessage;
|
|
18
18
|
return (
|
|
19
19
|
/*#__PURE__*/
|
|
20
|
-
// eslint-disable-next-line
|
|
20
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
21
21
|
_react.default.createElement("div", {
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
23
23
|
className: _types.TableCssClassName.CONTROLS_DELETE_BUTTON_WRAP
|
|
@@ -217,7 +217,7 @@ var ColumnControls = exports.ColumnControls = function ColumnControls(_ref) {
|
|
|
217
217
|
var containerWidth = isNumberColumnEnabled && tableContainerWidth ? tableContainerWidth - _editorSharedStyles.akEditorTableNumberColumnWidth : tableContainerWidth;
|
|
218
218
|
return (
|
|
219
219
|
/*#__PURE__*/
|
|
220
|
-
// eslint-disable-next-line
|
|
220
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
221
221
|
_react.default.createElement("div", {
|
|
222
222
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
223
223
|
className: _types.TableCssClassName.DRAG_COLUMN_CONTROLS,
|
|
@@ -99,10 +99,10 @@ var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
|
99
99
|
danger: isActive && isInDanger
|
|
100
100
|
}),
|
|
101
101
|
onClick: this.selectTable
|
|
102
|
-
// eslint-disable-next-line
|
|
102
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
103
103
|
,
|
|
104
104
|
onMouseOver: this.hoverTable
|
|
105
|
-
// eslint-disable-next-line
|
|
105
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
106
106
|
,
|
|
107
107
|
onMouseOut: this.clearHoverSelection
|
|
108
108
|
}), !isHeaderRowEnabled &&
|
|
@@ -50,7 +50,7 @@ var DragCornerControlsComponent = function DragCornerControlsComponent(_ref) {
|
|
|
50
50
|
"aria-label": formatMessage(_messages.tableMessages.cornerControl),
|
|
51
51
|
type: "button",
|
|
52
52
|
onClick: handleOnClick
|
|
53
|
-
// eslint-disable-next-line
|
|
53
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
54
54
|
,
|
|
55
55
|
onMouseOut: handleMouseOut,
|
|
56
56
|
contentEditable: false
|
|
@@ -103,7 +103,7 @@ var DragCornerControlsComponentWithSelection = function DragCornerControlsCompon
|
|
|
103
103
|
"aria-label": formatMessage(_messages.tableMessages.cornerControl),
|
|
104
104
|
type: "button",
|
|
105
105
|
onClick: handleOnClick
|
|
106
|
-
// eslint-disable-next-line
|
|
106
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
107
107
|
,
|
|
108
108
|
onMouseOut: handleMouseOut,
|
|
109
109
|
contentEditable: false
|
|
@@ -145,7 +145,7 @@ var NumberColumn = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
145
145
|
}, rowHeights.map(function (rowHeight, index) {
|
|
146
146
|
return isDragAndDropEnabled ?
|
|
147
147
|
/*#__PURE__*/
|
|
148
|
-
// eslint-disable-next-line
|
|
148
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
149
149
|
_react.default.createElement("div", {
|
|
150
150
|
// Ignored via go/ees005
|
|
151
151
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -157,7 +157,7 @@ var NumberColumn = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
158
158
|
,
|
|
159
159
|
style: _this2.getCellStyles(index, rowHeight)
|
|
160
|
-
// eslint-disable-next-line
|
|
160
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
161
161
|
,
|
|
162
162
|
onMouseOver: function onMouseOver() {
|
|
163
163
|
return updateCellHoverLocation(index);
|
|
@@ -179,12 +179,12 @@ var NumberColumn = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
179
179
|
onClick: function onClick(event) {
|
|
180
180
|
return _this2.selectRow(index, event);
|
|
181
181
|
}
|
|
182
|
-
// eslint-disable-next-line
|
|
182
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
183
183
|
,
|
|
184
184
|
onMouseOver: function onMouseOver() {
|
|
185
185
|
return _this2.hoverRows(index);
|
|
186
186
|
}
|
|
187
|
-
// eslint-disable-next-line
|
|
187
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
188
188
|
,
|
|
189
189
|
onMouseOut: _this2.clearHoverSelection
|
|
190
190
|
}, hasHeaderRow ? index > 0 ? index : null : index + 1);
|
|
@@ -106,12 +106,12 @@ var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
|
106
106
|
onClick: function onClick(event) {
|
|
107
107
|
return _this2.props.selectRow(startIndex, event.shiftKey);
|
|
108
108
|
}
|
|
109
|
-
// eslint-disable-next-line
|
|
109
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
110
110
|
,
|
|
111
111
|
onMouseOver: function onMouseOver() {
|
|
112
112
|
return _this2.props.hoverRows([startIndex]);
|
|
113
113
|
}
|
|
114
|
-
// eslint-disable-next-line
|
|
114
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
115
115
|
,
|
|
116
116
|
onMouseOut: _this2.clearHoverSelection,
|
|
117
117
|
"data-start-index": startIndex,
|
|
@@ -203,7 +203,7 @@ var DragControls = exports.DragControls = function DragControls(_ref) {
|
|
|
203
203
|
}
|
|
204
204
|
return (
|
|
205
205
|
/*#__PURE__*/
|
|
206
|
-
// eslint-disable-next-line
|
|
206
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
207
207
|
_react.default.createElement("div", {
|
|
208
208
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
209
209
|
className: _types.TableCssClassName.DRAG_ROW_CONTROLS,
|
|
@@ -293,33 +293,12 @@ const ResizableTableContainerLegacy = /*#__PURE__*/React.memo(({
|
|
|
293
293
|
,
|
|
294
294
|
className: ClassName.TABLE_RESIZER_CONTAINER,
|
|
295
295
|
ref: containerRef
|
|
296
|
-
},
|
|
297
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
298
|
-
, {
|
|
299
|
-
className: className,
|
|
300
|
-
node: node
|
|
301
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
302
|
-
,
|
|
303
|
-
style: {
|
|
304
|
-
width: 'inherit'
|
|
305
|
-
}
|
|
306
|
-
}, children) :
|
|
307
|
-
/*#__PURE__*/
|
|
308
|
-
// Ignored via go/ees005
|
|
309
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
310
|
-
React.createElement(TableResizer, tableResizerProps, /*#__PURE__*/React.createElement(InnerContainer, {
|
|
311
|
-
className: className,
|
|
312
|
-
node: node
|
|
313
|
-
}, children)), fg('platform_editor_live_page_prevent_table_recreation') ?
|
|
314
|
-
/*#__PURE__*/
|
|
315
|
-
// Ignored via go/ees005
|
|
316
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
317
|
-
React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
296
|
+
}, /*#__PURE__*/React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
318
297
|
disabled: isLivePageViewMode
|
|
319
298
|
}), /*#__PURE__*/React.createElement(InnerContainer, {
|
|
320
299
|
className: className,
|
|
321
300
|
node: node
|
|
322
|
-
}, children))
|
|
301
|
+
}, children))));
|
|
323
302
|
});
|
|
324
303
|
const ResizableTableContainerNext = /*#__PURE__*/React.memo(({
|
|
325
304
|
children,
|
|
@@ -526,33 +505,12 @@ const ResizableTableContainerNext = /*#__PURE__*/React.memo(({
|
|
|
526
505
|
,
|
|
527
506
|
className: ClassName.TABLE_RESIZER_CONTAINER,
|
|
528
507
|
ref: containerRef
|
|
529
|
-
},
|
|
530
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
531
|
-
, {
|
|
532
|
-
className: className,
|
|
533
|
-
node: node
|
|
534
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
535
|
-
,
|
|
536
|
-
style: {
|
|
537
|
-
width: 'inherit'
|
|
538
|
-
}
|
|
539
|
-
}, children) :
|
|
540
|
-
/*#__PURE__*/
|
|
541
|
-
// Ignored via go/ees005
|
|
542
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
543
|
-
React.createElement(TableResizer, tableResizerProps, /*#__PURE__*/React.createElement(InnerContainer, {
|
|
544
|
-
className: className,
|
|
545
|
-
node: node
|
|
546
|
-
}, children)), fg('platform_editor_live_page_prevent_table_recreation') ?
|
|
547
|
-
/*#__PURE__*/
|
|
548
|
-
// Ignored via go/ees005
|
|
549
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
550
|
-
React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
508
|
+
}, /*#__PURE__*/React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
551
509
|
disabled: isLivePageViewMode
|
|
552
510
|
}), /*#__PURE__*/React.createElement(InnerContainer, {
|
|
553
511
|
className: className,
|
|
554
512
|
node: node
|
|
555
|
-
}, children))
|
|
513
|
+
}, children))));
|
|
556
514
|
});
|
|
557
515
|
export const ResizableTableContainer = componentWithCondition(() => expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true), ResizableTableContainerNext, ResizableTableContainerLegacy);
|
|
558
516
|
export const TableContainer = ({
|
|
@@ -14,7 +14,6 @@ import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
|
14
14
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
16
16
|
import { insm } from '@atlaskit/insm';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
18
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
20
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -510,7 +509,7 @@ export const TableResizer = ({
|
|
|
510
509
|
const resizeRatio = !isTableAlignmentEnabled || isTableAlignmentEnabled && normaliseAlignment(node.attrs.layout) === ALIGN_CENTER ? 2 : 1;
|
|
511
510
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResizerNext, {
|
|
512
511
|
ref: resizerRef,
|
|
513
|
-
enable:
|
|
512
|
+
enable: disabled ? {} : handles,
|
|
514
513
|
width: width,
|
|
515
514
|
handleAlignmentMethod: "sticky",
|
|
516
515
|
handleSize: handleSize,
|
|
@@ -211,7 +211,7 @@ const DragHandleComponent = ({
|
|
|
211
211
|
"aria-label": formatMessage(isRow ? messages.rowDragHandle : messages.columnDragHandle),
|
|
212
212
|
"aria-expanded": isDragMenuOpen && isDragMenuTarget ? 'true' : 'false',
|
|
213
213
|
"aria-haspopup": "menu"
|
|
214
|
-
// eslint-disable-next-line
|
|
214
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
215
215
|
,
|
|
216
216
|
onMouseOver: e => {
|
|
217
217
|
if (expValEquals('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
|
|
@@ -219,7 +219,7 @@ const DragHandleComponent = ({
|
|
|
219
219
|
}
|
|
220
220
|
onMouseOver && onMouseOver(e);
|
|
221
221
|
}
|
|
222
|
-
// eslint-disable-next-line
|
|
222
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
223
223
|
,
|
|
224
224
|
onMouseOut: e => {
|
|
225
225
|
if (expValEquals('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
|
|
@@ -789,7 +789,7 @@ export class ContextualMenu extends Component {
|
|
|
789
789
|
let isOpenAllowed = false;
|
|
790
790
|
isOpenAllowed = isCellMenuOpenByKeyboard ? this.state.isOpenAllowed : isOpen;
|
|
791
791
|
return (
|
|
792
|
-
// eslint-disable-next-line
|
|
792
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
793
793
|
jsx("div", {
|
|
794
794
|
"data-testid": "table-cell-contextual-menu"
|
|
795
795
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
@@ -12,7 +12,7 @@ const DeleteButton = ({
|
|
|
12
12
|
}
|
|
13
13
|
}) =>
|
|
14
14
|
/*#__PURE__*/
|
|
15
|
-
// eslint-disable-next-line
|
|
15
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
16
16
|
React.createElement("div", {
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
18
18
|
className: ClassName.CONTROLS_DELETE_BUTTON_WRAP
|
|
@@ -214,7 +214,7 @@ export const ColumnControls = ({
|
|
|
214
214
|
const containerWidth = isNumberColumnEnabled && tableContainerWidth ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth;
|
|
215
215
|
return (
|
|
216
216
|
/*#__PURE__*/
|
|
217
|
-
// eslint-disable-next-line
|
|
217
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
218
218
|
React.createElement("div", {
|
|
219
219
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
220
220
|
className: ClassName.DRAG_COLUMN_CONTROLS,
|
|
@@ -83,10 +83,10 @@ class CornerControlComponent extends Component {
|
|
|
83
83
|
danger: isActive && isInDanger
|
|
84
84
|
}),
|
|
85
85
|
onClick: this.selectTable
|
|
86
|
-
// eslint-disable-next-line
|
|
86
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
87
87
|
,
|
|
88
88
|
onMouseOver: this.hoverTable
|
|
89
|
-
// eslint-disable-next-line
|
|
89
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
90
90
|
,
|
|
91
91
|
onMouseOut: this.clearHoverSelection
|
|
92
92
|
}), !isHeaderRowEnabled &&
|
|
@@ -50,7 +50,7 @@ const DragCornerControlsComponent = ({
|
|
|
50
50
|
"aria-label": formatMessage(messages.cornerControl),
|
|
51
51
|
type: "button",
|
|
52
52
|
onClick: handleOnClick
|
|
53
|
-
// eslint-disable-next-line
|
|
53
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
54
54
|
,
|
|
55
55
|
onMouseOut: handleMouseOut,
|
|
56
56
|
contentEditable: false
|
|
@@ -111,7 +111,7 @@ const DragCornerControlsComponentWithSelection = ({
|
|
|
111
111
|
"aria-label": formatMessage(messages.cornerControl),
|
|
112
112
|
type: "button",
|
|
113
113
|
onClick: handleOnClick
|
|
114
|
-
// eslint-disable-next-line
|
|
114
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
115
115
|
,
|
|
116
116
|
onMouseOut: handleMouseOut,
|
|
117
117
|
contentEditable: false
|
|
@@ -129,7 +129,7 @@ export default class NumberColumn extends Component {
|
|
|
129
129
|
contentEditable: false
|
|
130
130
|
}, rowHeights.map((rowHeight, index) => isDragAndDropEnabled ?
|
|
131
131
|
/*#__PURE__*/
|
|
132
|
-
// eslint-disable-next-line
|
|
132
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
133
133
|
React.createElement("div", {
|
|
134
134
|
// Ignored via go/ees005
|
|
135
135
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -141,7 +141,7 @@ export default class NumberColumn extends Component {
|
|
|
141
141
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
142
142
|
,
|
|
143
143
|
style: this.getCellStyles(index, rowHeight)
|
|
144
|
-
// eslint-disable-next-line
|
|
144
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
145
145
|
,
|
|
146
146
|
onMouseOver: () => updateCellHoverLocation(index)
|
|
147
147
|
}, hasHeaderRow ? index > 0 ? index : null : index + 1) :
|
|
@@ -159,10 +159,10 @@ export default class NumberColumn extends Component {
|
|
|
159
159
|
,
|
|
160
160
|
style: this.getCellStyles(index, rowHeight),
|
|
161
161
|
onClick: event => this.selectRow(index, event)
|
|
162
|
-
// eslint-disable-next-line
|
|
162
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
163
163
|
,
|
|
164
164
|
onMouseOver: () => this.hoverRows(index)
|
|
165
|
-
// eslint-disable-next-line
|
|
165
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
166
166
|
,
|
|
167
167
|
onMouseOut: this.clearHoverSelection
|
|
168
168
|
}, hasHeaderRow ? index > 0 ? index : null : index + 1)));
|
|
@@ -85,10 +85,10 @@ class RowControlsComponent extends Component {
|
|
|
85
85
|
,
|
|
86
86
|
className: `${ClassName.ROW_CONTROLS_BUTTON} ${ClassName.CONTROLS_BUTTON}`,
|
|
87
87
|
onClick: event => this.props.selectRow(startIndex, event.shiftKey)
|
|
88
|
-
// eslint-disable-next-line
|
|
88
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
89
89
|
,
|
|
90
90
|
onMouseOver: () => this.props.hoverRows([startIndex])
|
|
91
|
-
// eslint-disable-next-line
|
|
91
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
92
92
|
,
|
|
93
93
|
onMouseOut: this.clearHoverSelection,
|
|
94
94
|
"data-start-index": startIndex,
|
|
@@ -192,7 +192,7 @@ export const DragControls = ({
|
|
|
192
192
|
}
|
|
193
193
|
return (
|
|
194
194
|
/*#__PURE__*/
|
|
195
|
-
// eslint-disable-next-line
|
|
195
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
196
196
|
React.createElement("div", {
|
|
197
197
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
198
198
|
className: ClassName.DRAG_ROW_CONTROLS,
|
|
@@ -291,33 +291,12 @@ var ResizableTableContainerLegacy = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
291
291
|
,
|
|
292
292
|
className: ClassName.TABLE_RESIZER_CONTAINER,
|
|
293
293
|
ref: containerRef
|
|
294
|
-
},
|
|
295
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
296
|
-
, {
|
|
297
|
-
className: className,
|
|
298
|
-
node: node
|
|
299
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
300
|
-
,
|
|
301
|
-
style: {
|
|
302
|
-
width: 'inherit'
|
|
303
|
-
}
|
|
304
|
-
}, children) :
|
|
305
|
-
/*#__PURE__*/
|
|
306
|
-
// Ignored via go/ees005
|
|
307
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
308
|
-
React.createElement(TableResizer, tableResizerProps, /*#__PURE__*/React.createElement(InnerContainer, {
|
|
309
|
-
className: className,
|
|
310
|
-
node: node
|
|
311
|
-
}, children)), fg('platform_editor_live_page_prevent_table_recreation') ?
|
|
312
|
-
/*#__PURE__*/
|
|
313
|
-
// Ignored via go/ees005
|
|
314
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
315
|
-
React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
294
|
+
}, /*#__PURE__*/React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
316
295
|
disabled: isLivePageViewMode
|
|
317
296
|
}), /*#__PURE__*/React.createElement(InnerContainer, {
|
|
318
297
|
className: className,
|
|
319
298
|
node: node
|
|
320
|
-
}, children))
|
|
299
|
+
}, children))));
|
|
321
300
|
});
|
|
322
301
|
var ResizableTableContainerNext = /*#__PURE__*/React.memo(function (_ref5) {
|
|
323
302
|
var children = _ref5.children,
|
|
@@ -524,33 +503,12 @@ var ResizableTableContainerNext = /*#__PURE__*/React.memo(function (_ref5) {
|
|
|
524
503
|
,
|
|
525
504
|
className: ClassName.TABLE_RESIZER_CONTAINER,
|
|
526
505
|
ref: containerRef
|
|
527
|
-
},
|
|
528
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
529
|
-
, {
|
|
530
|
-
className: className,
|
|
531
|
-
node: node
|
|
532
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
533
|
-
,
|
|
534
|
-
style: {
|
|
535
|
-
width: 'inherit'
|
|
536
|
-
}
|
|
537
|
-
}, children) :
|
|
538
|
-
/*#__PURE__*/
|
|
539
|
-
// Ignored via go/ees005
|
|
540
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
541
|
-
React.createElement(TableResizer, tableResizerProps, /*#__PURE__*/React.createElement(InnerContainer, {
|
|
542
|
-
className: className,
|
|
543
|
-
node: node
|
|
544
|
-
}, children)), fg('platform_editor_live_page_prevent_table_recreation') ?
|
|
545
|
-
/*#__PURE__*/
|
|
546
|
-
// Ignored via go/ees005
|
|
547
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
548
|
-
React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
506
|
+
}, /*#__PURE__*/React.createElement(TableResizer, _extends({}, tableResizerProps, {
|
|
549
507
|
disabled: isLivePageViewMode
|
|
550
508
|
}), /*#__PURE__*/React.createElement(InnerContainer, {
|
|
551
509
|
className: className,
|
|
552
510
|
node: node
|
|
553
|
-
}, children))
|
|
511
|
+
}, children))));
|
|
554
512
|
});
|
|
555
513
|
export var ResizableTableContainer = componentWithCondition(function () {
|
|
556
514
|
return expValEquals('platform_editor_tables_scaling_css', 'isEnabled', true);
|
|
@@ -18,7 +18,6 @@ import { chainCommands } from '@atlaskit/editor-prosemirror/commands';
|
|
|
18
18
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
20
20
|
import { insm } from '@atlaskit/insm';
|
|
21
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
23
22
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
24
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -505,7 +504,7 @@ export var TableResizer = function TableResizer(_ref) {
|
|
|
505
504
|
var resizeRatio = !isTableAlignmentEnabled || isTableAlignmentEnabled && normaliseAlignment(node.attrs.layout) === ALIGN_CENTER ? 2 : 1;
|
|
506
505
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResizerNext, {
|
|
507
506
|
ref: resizerRef,
|
|
508
|
-
enable:
|
|
507
|
+
enable: disabled ? {} : handles,
|
|
509
508
|
width: width,
|
|
510
509
|
handleAlignmentMethod: "sticky",
|
|
511
510
|
handleSize: handleSize,
|
|
@@ -209,7 +209,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
209
209
|
"aria-label": formatMessage(isRow ? messages.rowDragHandle : messages.columnDragHandle),
|
|
210
210
|
"aria-expanded": isDragMenuOpen && isDragMenuTarget ? 'true' : 'false',
|
|
211
211
|
"aria-haspopup": "menu"
|
|
212
|
-
// eslint-disable-next-line
|
|
212
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
213
213
|
,
|
|
214
214
|
onMouseOver: function onMouseOver(e) {
|
|
215
215
|
if (expValEquals('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
|
|
@@ -217,7 +217,7 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
|
|
|
217
217
|
}
|
|
218
218
|
_onMouseOver && _onMouseOver(e);
|
|
219
219
|
}
|
|
220
|
-
// eslint-disable-next-line
|
|
220
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
221
221
|
,
|
|
222
222
|
onMouseOut: function onMouseOut(e) {
|
|
223
223
|
if (expValEquals('platform_editor_table_drag_handle_hover', 'isEnabled', true)) {
|
|
@@ -724,7 +724,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
724
724
|
var isOpenAllowed = false;
|
|
725
725
|
isOpenAllowed = isCellMenuOpenByKeyboard ? this.state.isOpenAllowed : isOpen;
|
|
726
726
|
return (
|
|
727
|
-
// eslint-disable-next-line
|
|
727
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
728
728
|
jsx("div", {
|
|
729
729
|
"data-testid": "table-cell-contextual-menu"
|
|
730
730
|
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
@@ -10,7 +10,7 @@ var DeleteButton = function DeleteButton(_ref) {
|
|
|
10
10
|
formatMessage = _ref.intl.formatMessage;
|
|
11
11
|
return (
|
|
12
12
|
/*#__PURE__*/
|
|
13
|
-
// eslint-disable-next-line
|
|
13
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
14
14
|
React.createElement("div", {
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
16
|
className: ClassName.CONTROLS_DELETE_BUTTON_WRAP
|
|
@@ -209,7 +209,7 @@ export var ColumnControls = function ColumnControls(_ref) {
|
|
|
209
209
|
var containerWidth = isNumberColumnEnabled && tableContainerWidth ? tableContainerWidth - akEditorTableNumberColumnWidth : tableContainerWidth;
|
|
210
210
|
return (
|
|
211
211
|
/*#__PURE__*/
|
|
212
|
-
// eslint-disable-next-line
|
|
212
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
213
213
|
React.createElement("div", {
|
|
214
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
215
215
|
className: ClassName.DRAG_COLUMN_CONTROLS,
|
|
@@ -90,10 +90,10 @@ var CornerControlComponent = /*#__PURE__*/function (_Component) {
|
|
|
90
90
|
danger: isActive && isInDanger
|
|
91
91
|
}),
|
|
92
92
|
onClick: this.selectTable
|
|
93
|
-
// eslint-disable-next-line
|
|
93
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
94
94
|
,
|
|
95
95
|
onMouseOver: this.hoverTable
|
|
96
|
-
// eslint-disable-next-line
|
|
96
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
97
97
|
,
|
|
98
98
|
onMouseOut: this.clearHoverSelection
|
|
99
99
|
}), !isHeaderRowEnabled &&
|
|
@@ -41,7 +41,7 @@ var DragCornerControlsComponent = function DragCornerControlsComponent(_ref) {
|
|
|
41
41
|
"aria-label": formatMessage(messages.cornerControl),
|
|
42
42
|
type: "button",
|
|
43
43
|
onClick: handleOnClick
|
|
44
|
-
// eslint-disable-next-line
|
|
44
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
45
45
|
,
|
|
46
46
|
onMouseOut: handleMouseOut,
|
|
47
47
|
contentEditable: false
|
|
@@ -94,7 +94,7 @@ var DragCornerControlsComponentWithSelection = function DragCornerControlsCompon
|
|
|
94
94
|
"aria-label": formatMessage(messages.cornerControl),
|
|
95
95
|
type: "button",
|
|
96
96
|
onClick: handleOnClick
|
|
97
|
-
// eslint-disable-next-line
|
|
97
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
98
98
|
,
|
|
99
99
|
onMouseOut: handleMouseOut,
|
|
100
100
|
contentEditable: false
|
|
@@ -136,7 +136,7 @@ var NumberColumn = /*#__PURE__*/function (_Component) {
|
|
|
136
136
|
}, rowHeights.map(function (rowHeight, index) {
|
|
137
137
|
return isDragAndDropEnabled ?
|
|
138
138
|
/*#__PURE__*/
|
|
139
|
-
// eslint-disable-next-line
|
|
139
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
140
140
|
React.createElement("div", {
|
|
141
141
|
// Ignored via go/ees005
|
|
142
142
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -148,7 +148,7 @@ var NumberColumn = /*#__PURE__*/function (_Component) {
|
|
|
148
148
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
149
149
|
,
|
|
150
150
|
style: _this2.getCellStyles(index, rowHeight)
|
|
151
|
-
// eslint-disable-next-line
|
|
151
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
152
152
|
,
|
|
153
153
|
onMouseOver: function onMouseOver() {
|
|
154
154
|
return updateCellHoverLocation(index);
|
|
@@ -170,12 +170,12 @@ var NumberColumn = /*#__PURE__*/function (_Component) {
|
|
|
170
170
|
onClick: function onClick(event) {
|
|
171
171
|
return _this2.selectRow(index, event);
|
|
172
172
|
}
|
|
173
|
-
// eslint-disable-next-line
|
|
173
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
174
174
|
,
|
|
175
175
|
onMouseOver: function onMouseOver() {
|
|
176
176
|
return _this2.hoverRows(index);
|
|
177
177
|
}
|
|
178
|
-
// eslint-disable-next-line
|
|
178
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
179
179
|
,
|
|
180
180
|
onMouseOut: _this2.clearHoverSelection
|
|
181
181
|
}, hasHeaderRow ? index > 0 ? index : null : index + 1);
|
|
@@ -97,12 +97,12 @@ var RowControlsComponent = /*#__PURE__*/function (_Component) {
|
|
|
97
97
|
onClick: function onClick(event) {
|
|
98
98
|
return _this2.props.selectRow(startIndex, event.shiftKey);
|
|
99
99
|
}
|
|
100
|
-
// eslint-disable-next-line
|
|
100
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
101
101
|
,
|
|
102
102
|
onMouseOver: function onMouseOver() {
|
|
103
103
|
return _this2.props.hoverRows([startIndex]);
|
|
104
104
|
}
|
|
105
|
-
// eslint-disable-next-line
|
|
105
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
106
106
|
,
|
|
107
107
|
onMouseOut: _this2.clearHoverSelection,
|
|
108
108
|
"data-start-index": startIndex,
|
|
@@ -194,7 +194,7 @@ export var DragControls = function DragControls(_ref) {
|
|
|
194
194
|
}
|
|
195
195
|
return (
|
|
196
196
|
/*#__PURE__*/
|
|
197
|
-
// eslint-disable-next-line
|
|
197
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
198
198
|
React.createElement("div", {
|
|
199
199
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
200
200
|
className: ClassName.DRAG_ROW_CONTROLS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.10",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^51.2.0",
|
|
32
32
|
"@atlaskit/button": "^23.5.0",
|
|
33
|
-
"@atlaskit/custom-steps": "^0.
|
|
33
|
+
"@atlaskit/custom-steps": "^0.15.0",
|
|
34
34
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^6.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^6.1.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^110.
|
|
75
|
+
"@atlaskit/editor-common": "^110.10.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-dom": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -115,9 +115,6 @@
|
|
|
115
115
|
"platform_editor_table_overflow_in_full_width_fix": {
|
|
116
116
|
"type": "boolean"
|
|
117
117
|
},
|
|
118
|
-
"platform_editor_live_page_prevent_table_recreation": {
|
|
119
|
-
"type": "boolean"
|
|
120
|
-
},
|
|
121
118
|
"platform_editor_nested_tables_sticky_header_bug": {
|
|
122
119
|
"type": "boolean"
|
|
123
120
|
},
|