@atlaskit/editor-plugin-table 18.1.3 → 18.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/nodeviews/TableComponent.js +9 -3
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +4 -1
- package/dist/cjs/nodeviews/TableContainer.js +3 -1
- package/dist/cjs/nodeviews/TableResizer.js +3 -1
- package/dist/cjs/ui/ContentComponent.js +3 -1
- package/dist/cjs/ui/DragPreview/index.js +6 -2
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/cjs/ui/FloatingContextualButton/index.js +3 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
- package/dist/cjs/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +12 -4
- package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +15 -5
- package/dist/cjs/ui/SizeSelector/index.js +3 -1
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
- package/dist/cjs/ui/toolbar.js +6 -2
- package/dist/es2019/nodeviews/TableComponent.js +9 -3
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +4 -1
- package/dist/es2019/nodeviews/TableContainer.js +3 -1
- package/dist/es2019/nodeviews/TableResizer.js +3 -1
- package/dist/es2019/ui/ContentComponent.js +3 -1
- package/dist/es2019/ui/DragPreview/index.js +6 -2
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +3 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
- package/dist/es2019/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +12 -4
- package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +15 -5
- package/dist/es2019/ui/SizeSelector/index.js +3 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
- package/dist/es2019/ui/toolbar.js +6 -2
- package/dist/esm/nodeviews/TableComponent.js +9 -3
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +4 -1
- package/dist/esm/nodeviews/TableContainer.js +3 -1
- package/dist/esm/nodeviews/TableResizer.js +3 -1
- package/dist/esm/ui/ContentComponent.js +3 -1
- package/dist/esm/ui/DragPreview/index.js +6 -2
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +3 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
- package/dist/esm/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +12 -4
- package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +15 -5
- package/dist/esm/ui/SizeSelector/index.js +3 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
- package/dist/esm/ui/toolbar.js +6 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -843,7 +843,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
843
843
|
stickyHeader: !this.props.limitedMode ? this.state.stickyHeader : undefined,
|
|
844
844
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
845
845
|
tableContainerWidth: tableContainerWidth,
|
|
846
|
-
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
846
|
+
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
847
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
848
|
+
,
|
|
847
849
|
getScrollOffset: function getScrollOffset() {
|
|
848
850
|
var _this5$wrapper;
|
|
849
851
|
return ((_this5$wrapper = _this5.wrapper) === null || _this5$wrapper === void 0 ? void 0 : _this5$wrapper.scrollLeft) || 0;
|
|
@@ -905,11 +907,15 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
905
907
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
906
908
|
}), allowControls && rowControls, isDragAndDropEnabled && /*#__PURE__*/_react.default.createElement(_ExternalDropTargets.ExternalDropTargets, {
|
|
907
909
|
editorView: view,
|
|
908
|
-
node: node
|
|
910
|
+
node: node
|
|
911
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
912
|
+
,
|
|
909
913
|
getScrollOffset: function getScrollOffset() {
|
|
910
914
|
var _this5$wrapper2;
|
|
911
915
|
return ((_this5$wrapper2 = _this5.wrapper) === null || _this5$wrapper2 === void 0 ? void 0 : _this5$wrapper2.scrollLeft) || 0;
|
|
912
|
-
}
|
|
916
|
+
}
|
|
917
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
918
|
+
,
|
|
913
919
|
getTableWrapperWidth: function getTableWrapperWidth() {
|
|
914
920
|
var _this5$wrapper3;
|
|
915
921
|
return ((_this5$wrapper3 = _this5.wrapper) === null || _this5$wrapper3 === void 0 ? void 0 : _this5$wrapper3.clientWidth) || 760;
|
|
@@ -86,6 +86,7 @@ var TableComponentWithSharedState = exports.TableComponentWithSharedState = func
|
|
|
86
86
|
try {
|
|
87
87
|
currentTablePos = getPos ? getPos() : undefined;
|
|
88
88
|
} catch (e) {
|
|
89
|
+
// eslint-disable-line no-unused-vars
|
|
89
90
|
currentTablePos = undefined;
|
|
90
91
|
}
|
|
91
92
|
var selectedTable = (0, _editorTables.findTable)(view.state.selection);
|
|
@@ -109,7 +110,9 @@ var TableComponentWithSharedState = exports.TableComponentWithSharedState = func
|
|
|
109
110
|
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
110
111
|
ordering: ordering,
|
|
111
112
|
isResizing: isResizing,
|
|
112
|
-
getNode: getNode
|
|
113
|
+
getNode: getNode
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
|
+
,
|
|
113
116
|
containerWidth: {
|
|
114
117
|
width: width !== null && width !== void 0 ? width : 0,
|
|
115
118
|
lineLength: lineLength
|
|
@@ -407,7 +407,9 @@ var TableContainer = exports.TableContainer = function TableContainer(_ref5) {
|
|
|
407
407
|
className: (0, _classnames.default)(className, {
|
|
408
408
|
'less-padding': editorWidth < _editorSharedStyles.akEditorMobileBreakoutPoint && !isNested && !(isChromelessEditor && isDragAndDropEnabled)
|
|
409
409
|
}),
|
|
410
|
-
style:
|
|
410
|
+
style:
|
|
411
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
412
|
+
{
|
|
411
413
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
412
414
|
width: 'inherit',
|
|
413
415
|
marginLeft: isChromelessEditor ? 18 : undefined,
|
|
@@ -519,7 +519,9 @@ var TableResizer = exports.TableResizer = function TableResizer(_ref) {
|
|
|
519
519
|
isHandleVisible: isTableSelected,
|
|
520
520
|
needExtendedResizeZone: (0, _expValEquals.expValEquals)('platform_editor_table_resizer_extended_zone', 'isEnabled', true) ? true : !isTableSelected,
|
|
521
521
|
appearance: isTableSelected && isWholeTableInDanger ? 'danger' : undefined,
|
|
522
|
-
handleHighlight: "shadow"
|
|
522
|
+
handleHighlight: "shadow"
|
|
523
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
524
|
+
,
|
|
523
525
|
handleTooltipContent: function handleTooltipContent(_ref3) {
|
|
524
526
|
var update = _ref3.update;
|
|
525
527
|
updateTooltip.current = update;
|
|
@@ -188,7 +188,9 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
|
|
|
188
188
|
alignY: 'bottom',
|
|
189
189
|
stick: true,
|
|
190
190
|
forcePlacement: true,
|
|
191
|
-
zIndex: _editorSharedStyles.akEditorFloatingPanelZIndex
|
|
191
|
+
zIndex: _editorSharedStyles.akEditorFloatingPanelZIndex
|
|
192
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
193
|
+
,
|
|
192
194
|
offset: [0, 10]
|
|
193
195
|
}), isTableSelectorEnabled && isSizeSelectorOpen && /*#__PURE__*/_react.default.createElement(_SizeSelector.SizeSelector, {
|
|
194
196
|
api: api,
|
|
@@ -25,12 +25,16 @@ var DragPreview = exports.DragPreview = function DragPreview(_ref) {
|
|
|
25
25
|
var marginTop = direction === 'row' ? height / 2 - 14 : -10;
|
|
26
26
|
var transform = direction === 'row' ? 'rotate(90deg)' : 'none';
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
28
|
-
xcss: boxStyles
|
|
28
|
+
xcss: boxStyles
|
|
29
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
30
|
+
,
|
|
29
31
|
style: {
|
|
30
32
|
width: "".concat(width, "px"),
|
|
31
33
|
height: "".concat(height, "px")
|
|
32
34
|
}
|
|
33
|
-
}, /*#__PURE__*/_react.default.createElement(_DragInMotionIcon.DragInMotionIcon
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_DragInMotionIcon.DragInMotionIcon
|
|
36
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
37
|
+
, {
|
|
34
38
|
style: {
|
|
35
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
40
|
position: 'absolute',
|
|
@@ -49,7 +49,9 @@ var FloatingAlignmentButtons = exports.FloatingAlignmentButtons = function Float
|
|
|
49
49
|
}) : undefined,
|
|
50
50
|
title: item.title,
|
|
51
51
|
selected: item.selected,
|
|
52
|
-
disabled: item.disabled
|
|
52
|
+
disabled: item.disabled
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
,
|
|
53
55
|
onClick: function onClick() {
|
|
54
56
|
dispatchCommand(item.onClick);
|
|
55
57
|
},
|
|
@@ -165,7 +165,9 @@ var FloatingContextualButtonInner = /*#__PURE__*/_react.default.memo(function (p
|
|
|
165
165
|
target: targetCellRef,
|
|
166
166
|
mountTo: tableWrapper || mountPoint,
|
|
167
167
|
boundariesElement: targetCellRef,
|
|
168
|
-
scrollableElement: scrollableElement
|
|
168
|
+
scrollableElement: scrollableElement
|
|
169
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
170
|
+
,
|
|
169
171
|
offset: [BUTTON_OFFSET, -BUTTON_OFFSET],
|
|
170
172
|
forcePlacement: true,
|
|
171
173
|
allowOutOfBounds: true,
|
|
@@ -163,7 +163,9 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
163
163
|
}, (0, _react2.jsx)(_uiMenu.ArrowKeyNavigationProvider, {
|
|
164
164
|
type: _uiMenu.ArrowKeyNavigationType.COLOR,
|
|
165
165
|
selectedRowIndex: selectedRowIndex || 0,
|
|
166
|
-
selectedColumnIndex: selectedColumnIndex || 0
|
|
166
|
+
selectedColumnIndex: selectedColumnIndex || 0
|
|
167
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
168
|
+
,
|
|
167
169
|
handleClose: function handleClose() {
|
|
168
170
|
_this.setState({
|
|
169
171
|
isSubmenuOpen: false
|
|
@@ -183,7 +185,9 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
183
185
|
}, (0, _react2.jsx)(_uiColor.ColorPalette, {
|
|
184
186
|
cols: 7,
|
|
185
187
|
onClick: _this.setColor,
|
|
186
|
-
selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
188
|
+
selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
189
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
190
|
+
,
|
|
187
191
|
paletteOptions: {
|
|
188
192
|
palette: _uiColor.cellBackgroundColorPalette,
|
|
189
193
|
paletteColorTooltipMessages: _uiColor.backgroundPaletteTooltipMessages,
|
|
@@ -788,6 +792,7 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
788
792
|
}, (0, _react2.jsx)(_uiMenu.DropdownMenu
|
|
789
793
|
//This needs be removed when the a11y is completely handled
|
|
790
794
|
//Disabling key navigation now as it works only partially
|
|
795
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
791
796
|
, {
|
|
792
797
|
arrowKeyNavigationProviderOptions: {
|
|
793
798
|
type: _uiMenu.ArrowKeyNavigationType.MENU,
|
|
@@ -800,7 +805,9 @@ var ContextualMenu = exports.ContextualMenu = /*#__PURE__*/function (_Component)
|
|
|
800
805
|
onMouseEnter: this.handleItemMouseEnter,
|
|
801
806
|
onMouseLeave: this.handleItemMouseLeave,
|
|
802
807
|
fitHeight: 188,
|
|
803
|
-
fitWidth: isDragAndDropEnabled ? _consts.contextualMenuDropdownWidthDnD : _consts.contextualMenuDropdownWidth
|
|
808
|
+
fitWidth: isDragAndDropEnabled ? _consts.contextualMenuDropdownWidthDnD : _consts.contextualMenuDropdownWidth
|
|
809
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
810
|
+
,
|
|
804
811
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
805
812
|
return Boolean(isCellMenuOpenByKeyboard);
|
|
806
813
|
},
|
|
@@ -88,7 +88,9 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
88
88
|
// in table, but below floating dialogs like typeaheads, pickers, etc.
|
|
89
89
|
,
|
|
90
90
|
zIndex: parentSticky ? _editorSharedStyles.akEditorFloatingDialogZIndex : _editorSharedStyles.akEditorFloatingOverlapPanelZIndex,
|
|
91
|
-
forcePlacement: true
|
|
91
|
+
forcePlacement: true
|
|
92
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
93
|
+
,
|
|
92
94
|
offset: [-7, 0],
|
|
93
95
|
stick: true
|
|
94
96
|
}, (0, _react.jsx)("div", {
|
|
@@ -97,7 +99,9 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
97
99
|
// Remove ! during platform_editor_hydratable_ui cleanup
|
|
98
100
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
99
101
|
, {
|
|
100
|
-
editorView: editorView
|
|
102
|
+
editorView: editorView
|
|
103
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
104
|
+
,
|
|
101
105
|
offset: [_consts.contextualMenuTriggerSize / 2, -_consts.contextualMenuTriggerSize],
|
|
102
106
|
isOpen: isOpen,
|
|
103
107
|
targetCellPosition: targetCellPosition,
|
|
@@ -319,7 +319,9 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
319
319
|
}, (0, _react2.jsx)(_uiMenu.ArrowKeyNavigationProvider, {
|
|
320
320
|
type: _uiMenu.ArrowKeyNavigationType.COLOR,
|
|
321
321
|
selectedRowIndex: selectedRowIndex,
|
|
322
|
-
selectedColumnIndex: selectedColumnIndex
|
|
322
|
+
selectedColumnIndex: selectedColumnIndex
|
|
323
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
324
|
+
,
|
|
323
325
|
handleClose: function handleClose() {
|
|
324
326
|
var keyboardEvent = new KeyboardEvent('keydown', {
|
|
325
327
|
key: 'ArrowDown',
|
|
@@ -334,11 +336,15 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
334
336
|
isPopupPositioned: true,
|
|
335
337
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
336
338
|
}, (0, _react2.jsx)(_uiColor.ColorPalette, {
|
|
337
|
-
cols: _consts.colorPalletteColumns
|
|
339
|
+
cols: _consts.colorPalletteColumns
|
|
340
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
341
|
+
,
|
|
338
342
|
onClick: function onClick(color) {
|
|
339
343
|
setColor(color);
|
|
340
344
|
},
|
|
341
|
-
selectedColor: background
|
|
345
|
+
selectedColor: background
|
|
346
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
347
|
+
,
|
|
342
348
|
paletteOptions: {
|
|
343
349
|
palette: _uiColor.cellBackgroundColorPalette,
|
|
344
350
|
paletteColorTooltipMessages: _uiColor.backgroundPaletteTooltipMessages,
|
|
@@ -568,7 +574,9 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
568
574
|
api: api,
|
|
569
575
|
userIntent: "tableDragMenuPopupOpen"
|
|
570
576
|
}, (0, _react2.jsx)(_DropdownMenu.DropdownMenu, {
|
|
571
|
-
disableKeyboardHandling: isSubmenuOpen
|
|
577
|
+
disableKeyboardHandling: isSubmenuOpen
|
|
578
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
579
|
+
,
|
|
572
580
|
section: {
|
|
573
581
|
hasSeparator: true
|
|
574
582
|
},
|
|
@@ -60,15 +60,21 @@ var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
|
|
|
60
60
|
return /*#__PURE__*/_react.default.createElement(DropListWithOutsideListeners, {
|
|
61
61
|
isOpen: true,
|
|
62
62
|
shouldFitContainer: true,
|
|
63
|
-
position: popupPlacement.join(' ')
|
|
63
|
+
position: popupPlacement.join(' ')
|
|
64
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
65
|
+
,
|
|
64
66
|
handleClickOutside: function handleClickOutside() {
|
|
65
67
|
return handleClose('editor');
|
|
66
|
-
}
|
|
68
|
+
}
|
|
69
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
70
|
+
,
|
|
67
71
|
handleEscapeKeydown: function handleEscapeKeydown() {
|
|
68
72
|
if (!disableKeyboardHandling) {
|
|
69
73
|
handleClose('handle');
|
|
70
74
|
}
|
|
71
|
-
}
|
|
75
|
+
}
|
|
76
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
77
|
+
,
|
|
72
78
|
handleEnterKeydown: function handleEnterKeydown(e) {
|
|
73
79
|
if (!disableKeyboardHandling) {
|
|
74
80
|
e.preventDefault();
|
|
@@ -164,13 +170,17 @@ var DropdownMenu = exports.DropdownMenu = function DropdownMenu(_ref) {
|
|
|
164
170
|
target: targetRefDiv,
|
|
165
171
|
mountTo: mountPoint,
|
|
166
172
|
boundariesElement: boundariesElement,
|
|
167
|
-
scrollableElement: scrollableElement
|
|
173
|
+
scrollableElement: scrollableElement
|
|
174
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
175
|
+
,
|
|
168
176
|
onPlacementChanged: function onPlacementChanged(placement) {
|
|
169
177
|
setPopupPlacement(placement);
|
|
170
178
|
},
|
|
171
179
|
fitHeight: fitHeight,
|
|
172
180
|
fitWidth: fitWidth,
|
|
173
|
-
zIndex: _editorSharedStyles.akEditorFloatingPanelZIndex
|
|
181
|
+
zIndex: _editorSharedStyles.akEditorFloatingPanelZIndex
|
|
182
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
183
|
+
,
|
|
174
184
|
offset: [offsetX, offsetY],
|
|
175
185
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
176
186
|
}, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
|
|
@@ -47,7 +47,9 @@ var SizeSelector = exports.SizeSelector = function SizeSelector(_ref) {
|
|
|
47
47
|
var onUnmount = function onUnmount() {
|
|
48
48
|
api === null || api === void 0 || api.core.actions.focus();
|
|
49
49
|
};
|
|
50
|
-
return (0, _react2.jsx)(_ui.TableSelectorPopup
|
|
50
|
+
return (0, _react2.jsx)(_ui.TableSelectorPopup
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
, {
|
|
51
53
|
defaultSize: {
|
|
52
54
|
row: DEFAULT_TABLE_SELECTOR_ROWS,
|
|
53
55
|
col: DEFAULT_TABLE_SELECTOR_COLS
|
|
@@ -258,7 +258,9 @@ var DragControls = exports.DragControls = function DragControls(_ref) {
|
|
|
258
258
|
, {
|
|
259
259
|
key: "drop-target-".concat(index),
|
|
260
260
|
index: index,
|
|
261
|
-
localId: currentNodeLocalId
|
|
261
|
+
localId: currentNodeLocalId
|
|
262
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
263
|
+
,
|
|
262
264
|
style: {
|
|
263
265
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
264
266
|
gridColumn: '1 / span 3',
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -580,12 +580,16 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(getE
|
|
|
580
580
|
}
|
|
581
581
|
return (0, _react.jsx)(_floatingToolbar.DropdownMenuExtensionItems, {
|
|
582
582
|
node: tableObject.node,
|
|
583
|
-
editorView: editorView
|
|
583
|
+
editorView: editorView
|
|
584
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
585
|
+
,
|
|
584
586
|
extension: {
|
|
585
587
|
extensionProvider: extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? Promise.resolve(extensionState.extensionProvider) : undefined,
|
|
586
588
|
extensionApi: extensionApi
|
|
587
589
|
},
|
|
588
|
-
dropdownOptions: dropdownOptions
|
|
590
|
+
dropdownOptions: dropdownOptions
|
|
591
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
592
|
+
,
|
|
589
593
|
disabled: function disabled(key) {
|
|
590
594
|
return isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(key);
|
|
591
595
|
},
|
|
@@ -800,7 +800,9 @@ class TableComponent extends React.Component {
|
|
|
800
800
|
stickyHeader: !this.props.limitedMode ? this.state.stickyHeader : undefined,
|
|
801
801
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
802
802
|
tableContainerWidth: tableContainerWidth,
|
|
803
|
-
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
803
|
+
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
804
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
805
|
+
,
|
|
804
806
|
getScrollOffset: () => {
|
|
805
807
|
var _this$wrapper2;
|
|
806
808
|
return ((_this$wrapper2 = this.wrapper) === null || _this$wrapper2 === void 0 ? void 0 : _this$wrapper2.scrollLeft) || 0;
|
|
@@ -868,11 +870,15 @@ class TableComponent extends React.Component {
|
|
|
868
870
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
869
871
|
}), allowControls && rowControls, isDragAndDropEnabled && /*#__PURE__*/React.createElement(ExternalDropTargets, {
|
|
870
872
|
editorView: view,
|
|
871
|
-
node: node
|
|
873
|
+
node: node
|
|
874
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
875
|
+
,
|
|
872
876
|
getScrollOffset: () => {
|
|
873
877
|
var _this$wrapper3;
|
|
874
878
|
return ((_this$wrapper3 = this.wrapper) === null || _this$wrapper3 === void 0 ? void 0 : _this$wrapper3.scrollLeft) || 0;
|
|
875
|
-
}
|
|
879
|
+
}
|
|
880
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
881
|
+
,
|
|
876
882
|
getTableWrapperWidth: () => {
|
|
877
883
|
var _this$wrapper4;
|
|
878
884
|
return ((_this$wrapper4 = this.wrapper) === null || _this$wrapper4 === void 0 ? void 0 : _this$wrapper4.clientWidth) || 760;
|
|
@@ -82,6 +82,7 @@ export const TableComponentWithSharedState = ({
|
|
|
82
82
|
try {
|
|
83
83
|
currentTablePos = getPos ? getPos() : undefined;
|
|
84
84
|
} catch (e) {
|
|
85
|
+
// eslint-disable-line no-unused-vars
|
|
85
86
|
currentTablePos = undefined;
|
|
86
87
|
}
|
|
87
88
|
const selectedTable = findTable(view.state.selection);
|
|
@@ -105,7 +106,9 @@ export const TableComponentWithSharedState = ({
|
|
|
105
106
|
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
106
107
|
ordering: ordering,
|
|
107
108
|
isResizing: isResizing,
|
|
108
|
-
getNode: getNode
|
|
109
|
+
getNode: getNode
|
|
110
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
|
+
,
|
|
109
112
|
containerWidth: {
|
|
110
113
|
width: width !== null && width !== void 0 ? width : 0,
|
|
111
114
|
lineLength
|
|
@@ -404,7 +404,9 @@ export const TableContainer = ({
|
|
|
404
404
|
className: classNames(className, {
|
|
405
405
|
'less-padding': editorWidth < akEditorMobileBreakoutPoint && !isNested && !(isChromelessEditor && isDragAndDropEnabled)
|
|
406
406
|
}),
|
|
407
|
-
style:
|
|
407
|
+
style:
|
|
408
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
409
|
+
{
|
|
408
410
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
409
411
|
width: 'inherit',
|
|
410
412
|
marginLeft: isChromelessEditor ? 18 : undefined,
|
|
@@ -515,7 +515,9 @@ export const TableResizer = ({
|
|
|
515
515
|
isHandleVisible: isTableSelected,
|
|
516
516
|
needExtendedResizeZone: expValEquals('platform_editor_table_resizer_extended_zone', 'isEnabled', true) ? true : !isTableSelected,
|
|
517
517
|
appearance: isTableSelected && isWholeTableInDanger ? 'danger' : undefined,
|
|
518
|
-
handleHighlight: "shadow"
|
|
518
|
+
handleHighlight: "shadow"
|
|
519
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
520
|
+
,
|
|
519
521
|
handleTooltipContent: ({
|
|
520
522
|
update
|
|
521
523
|
}) => {
|
|
@@ -183,7 +183,9 @@ const ContentComponentInternal = ({
|
|
|
183
183
|
alignY: 'bottom',
|
|
184
184
|
stick: true,
|
|
185
185
|
forcePlacement: true,
|
|
186
|
-
zIndex: akEditorFloatingPanelZIndex
|
|
186
|
+
zIndex: akEditorFloatingPanelZIndex
|
|
187
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
188
|
+
,
|
|
187
189
|
offset: [0, 10]
|
|
188
190
|
}), isTableSelectorEnabled && isSizeSelectorOpen && /*#__PURE__*/React.createElement(SizeSelector, {
|
|
189
191
|
api: api,
|
|
@@ -19,12 +19,16 @@ export const DragPreview = ({
|
|
|
19
19
|
const marginTop = direction === 'row' ? height / 2 - 14 : -10;
|
|
20
20
|
const transform = direction === 'row' ? 'rotate(90deg)' : 'none';
|
|
21
21
|
return /*#__PURE__*/React.createElement(Box, {
|
|
22
|
-
xcss: boxStyles
|
|
22
|
+
xcss: boxStyles
|
|
23
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
24
|
+
,
|
|
23
25
|
style: {
|
|
24
26
|
width: `${width}px`,
|
|
25
27
|
height: `${height}px`
|
|
26
28
|
}
|
|
27
|
-
}, /*#__PURE__*/React.createElement(DragInMotionIcon
|
|
29
|
+
}, /*#__PURE__*/React.createElement(DragInMotionIcon
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
, {
|
|
28
32
|
style: {
|
|
29
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
34
|
position: 'absolute',
|
|
@@ -42,7 +42,9 @@ export const FloatingAlignmentButtons = ({
|
|
|
42
42
|
}) : undefined,
|
|
43
43
|
title: item.title,
|
|
44
44
|
selected: item.selected,
|
|
45
|
-
disabled: item.disabled
|
|
45
|
+
disabled: item.disabled
|
|
46
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
,
|
|
46
48
|
onClick: () => {
|
|
47
49
|
dispatchCommand(item.onClick);
|
|
48
50
|
},
|
|
@@ -163,7 +163,9 @@ const FloatingContextualButtonInner = /*#__PURE__*/React.memo(props => {
|
|
|
163
163
|
target: targetCellRef,
|
|
164
164
|
mountTo: tableWrapper || mountPoint,
|
|
165
165
|
boundariesElement: targetCellRef,
|
|
166
|
-
scrollableElement: scrollableElement
|
|
166
|
+
scrollableElement: scrollableElement
|
|
167
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
168
|
+
,
|
|
167
169
|
offset: [BUTTON_OFFSET, -BUTTON_OFFSET],
|
|
168
170
|
forcePlacement: true,
|
|
169
171
|
allowOutOfBounds: true,
|
|
@@ -150,7 +150,9 @@ export class ContextualMenu extends Component {
|
|
|
150
150
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
151
151
|
type: ArrowKeyNavigationType.COLOR,
|
|
152
152
|
selectedRowIndex: selectedRowIndex || 0,
|
|
153
|
-
selectedColumnIndex: selectedColumnIndex || 0
|
|
153
|
+
selectedColumnIndex: selectedColumnIndex || 0
|
|
154
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
155
|
+
,
|
|
154
156
|
handleClose: () => {
|
|
155
157
|
this.setState({
|
|
156
158
|
isSubmenuOpen: false
|
|
@@ -170,7 +172,9 @@ export class ContextualMenu extends Component {
|
|
|
170
172
|
}, jsx(ColorPalette, {
|
|
171
173
|
cols: 7,
|
|
172
174
|
onClick: this.setColor,
|
|
173
|
-
selectedColor: (node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
175
|
+
selectedColor: (node === null || node === void 0 ? void 0 : (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
176
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
177
|
+
,
|
|
174
178
|
paletteOptions: {
|
|
175
179
|
palette: cellBackgroundColorPalette,
|
|
176
180
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
|
|
@@ -844,6 +848,7 @@ export class ContextualMenu extends Component {
|
|
|
844
848
|
}, jsx(DropdownMenu
|
|
845
849
|
//This needs be removed when the a11y is completely handled
|
|
846
850
|
//Disabling key navigation now as it works only partially
|
|
851
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
847
852
|
, {
|
|
848
853
|
arrowKeyNavigationProviderOptions: {
|
|
849
854
|
type: ArrowKeyNavigationType.MENU,
|
|
@@ -856,7 +861,9 @@ export class ContextualMenu extends Component {
|
|
|
856
861
|
onMouseEnter: this.handleItemMouseEnter,
|
|
857
862
|
onMouseLeave: this.handleItemMouseLeave,
|
|
858
863
|
fitHeight: 188,
|
|
859
|
-
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
|
|
864
|
+
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
|
|
865
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
866
|
+
,
|
|
860
867
|
shouldFocusFirstItem: () => {
|
|
861
868
|
return Boolean(isCellMenuOpenByKeyboard);
|
|
862
869
|
},
|
|
@@ -84,7 +84,9 @@ const FloatingContextualMenu = ({
|
|
|
84
84
|
// in table, but below floating dialogs like typeaheads, pickers, etc.
|
|
85
85
|
,
|
|
86
86
|
zIndex: parentSticky ? akEditorFloatingDialogZIndex : akEditorFloatingOverlapPanelZIndex,
|
|
87
|
-
forcePlacement: true
|
|
87
|
+
forcePlacement: true
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
|
+
,
|
|
88
90
|
offset: [-7, 0],
|
|
89
91
|
stick: true
|
|
90
92
|
}, jsx("div", {
|
|
@@ -93,7 +95,9 @@ const FloatingContextualMenu = ({
|
|
|
93
95
|
// Remove ! during platform_editor_hydratable_ui cleanup
|
|
94
96
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
95
97
|
, {
|
|
96
|
-
editorView: editorView
|
|
98
|
+
editorView: editorView
|
|
99
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
100
|
+
,
|
|
97
101
|
offset: [contextualMenuTriggerSize / 2, -contextualMenuTriggerSize],
|
|
98
102
|
isOpen: isOpen,
|
|
99
103
|
targetCellPosition: targetCellPosition,
|
|
@@ -313,7 +313,9 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
313
313
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
314
314
|
type: ArrowKeyNavigationType.COLOR,
|
|
315
315
|
selectedRowIndex: selectedRowIndex,
|
|
316
|
-
selectedColumnIndex: selectedColumnIndex
|
|
316
|
+
selectedColumnIndex: selectedColumnIndex
|
|
317
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
318
|
+
,
|
|
317
319
|
handleClose: () => {
|
|
318
320
|
const keyboardEvent = new KeyboardEvent('keydown', {
|
|
319
321
|
key: 'ArrowDown',
|
|
@@ -328,11 +330,15 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
328
330
|
isPopupPositioned: true,
|
|
329
331
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
330
332
|
}, jsx(ColorPalette, {
|
|
331
|
-
cols: colorPalletteColumns
|
|
333
|
+
cols: colorPalletteColumns
|
|
334
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
335
|
+
,
|
|
332
336
|
onClick: color => {
|
|
333
337
|
setColor(color);
|
|
334
338
|
},
|
|
335
|
-
selectedColor: background
|
|
339
|
+
selectedColor: background
|
|
340
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
341
|
+
,
|
|
336
342
|
paletteOptions: {
|
|
337
343
|
palette: cellBackgroundColorPalette,
|
|
338
344
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
|
|
@@ -561,7 +567,9 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
561
567
|
api: api,
|
|
562
568
|
userIntent: "tableDragMenuPopupOpen"
|
|
563
569
|
}, jsx(DropdownMenu, {
|
|
564
|
-
disableKeyboardHandling: isSubmenuOpen
|
|
570
|
+
disableKeyboardHandling: isSubmenuOpen
|
|
571
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
572
|
+
,
|
|
565
573
|
section: {
|
|
566
574
|
hasSeparator: true
|
|
567
575
|
},
|
|
@@ -44,13 +44,19 @@ export const DropdownMenu = ({
|
|
|
44
44
|
return /*#__PURE__*/React.createElement(DropListWithOutsideListeners, {
|
|
45
45
|
isOpen: true,
|
|
46
46
|
shouldFitContainer: true,
|
|
47
|
-
position: popupPlacement.join(' ')
|
|
48
|
-
|
|
47
|
+
position: popupPlacement.join(' ')
|
|
48
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
49
|
+
,
|
|
50
|
+
handleClickOutside: () => handleClose('editor')
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
,
|
|
49
53
|
handleEscapeKeydown: () => {
|
|
50
54
|
if (!disableKeyboardHandling) {
|
|
51
55
|
handleClose('handle');
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
}
|
|
58
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
,
|
|
54
60
|
handleEnterKeydown: e => {
|
|
55
61
|
if (!disableKeyboardHandling) {
|
|
56
62
|
e.preventDefault();
|
|
@@ -140,13 +146,17 @@ export const DropdownMenu = ({
|
|
|
140
146
|
target: targetRefDiv,
|
|
141
147
|
mountTo: mountPoint,
|
|
142
148
|
boundariesElement: boundariesElement,
|
|
143
|
-
scrollableElement: scrollableElement
|
|
149
|
+
scrollableElement: scrollableElement
|
|
150
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
151
|
+
,
|
|
144
152
|
onPlacementChanged: placement => {
|
|
145
153
|
setPopupPlacement(placement);
|
|
146
154
|
},
|
|
147
155
|
fitHeight: fitHeight,
|
|
148
156
|
fitWidth: fitWidth,
|
|
149
|
-
zIndex: akEditorFloatingPanelZIndex
|
|
157
|
+
zIndex: akEditorFloatingPanelZIndex
|
|
158
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
159
|
+
,
|
|
150
160
|
offset: [offsetX, offsetY],
|
|
151
161
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
152
162
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
@@ -43,7 +43,9 @@ export const SizeSelector = ({
|
|
|
43
43
|
const onUnmount = () => {
|
|
44
44
|
api === null || api === void 0 ? void 0 : api.core.actions.focus();
|
|
45
45
|
};
|
|
46
|
-
return jsx(TableSelectorPopup
|
|
46
|
+
return jsx(TableSelectorPopup
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
, {
|
|
47
49
|
defaultSize: {
|
|
48
50
|
row: DEFAULT_TABLE_SELECTOR_ROWS,
|
|
49
51
|
col: DEFAULT_TABLE_SELECTOR_COLS
|
|
@@ -250,7 +250,9 @@ export const DragControls = ({
|
|
|
250
250
|
, {
|
|
251
251
|
key: `drop-target-${index}`,
|
|
252
252
|
index: index,
|
|
253
|
-
localId: currentNodeLocalId
|
|
253
|
+
localId: currentNodeLocalId
|
|
254
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
255
|
+
,
|
|
254
256
|
style: {
|
|
255
257
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
256
258
|
gridColumn: '1 / span 3',
|
|
@@ -548,12 +548,16 @@ export const getToolbarConfig = (getEditorContainerWidth, api, editorAnalyticsAP
|
|
|
548
548
|
}
|
|
549
549
|
return jsx(DropdownMenuExtensionItems, {
|
|
550
550
|
node: tableObject.node,
|
|
551
|
-
editorView: editorView
|
|
551
|
+
editorView: editorView
|
|
552
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
553
|
+
,
|
|
552
554
|
extension: {
|
|
553
555
|
extensionProvider: extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? Promise.resolve(extensionState.extensionProvider) : undefined,
|
|
554
556
|
extensionApi: extensionApi
|
|
555
557
|
},
|
|
556
|
-
dropdownOptions: dropdownOptions
|
|
558
|
+
dropdownOptions: dropdownOptions
|
|
559
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
560
|
+
,
|
|
557
561
|
disabled: key => {
|
|
558
562
|
return isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(key);
|
|
559
563
|
},
|
|
@@ -837,7 +837,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
837
837
|
stickyHeader: !this.props.limitedMode ? this.state.stickyHeader : undefined,
|
|
838
838
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
839
839
|
tableContainerWidth: tableContainerWidth,
|
|
840
|
-
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
840
|
+
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
841
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
842
|
+
,
|
|
841
843
|
getScrollOffset: function getScrollOffset() {
|
|
842
844
|
var _this5$wrapper;
|
|
843
845
|
return ((_this5$wrapper = _this5.wrapper) === null || _this5$wrapper === void 0 ? void 0 : _this5$wrapper.scrollLeft) || 0;
|
|
@@ -899,11 +901,15 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
899
901
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
900
902
|
}), allowControls && rowControls, isDragAndDropEnabled && /*#__PURE__*/React.createElement(ExternalDropTargets, {
|
|
901
903
|
editorView: view,
|
|
902
|
-
node: node
|
|
904
|
+
node: node
|
|
905
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
906
|
+
,
|
|
903
907
|
getScrollOffset: function getScrollOffset() {
|
|
904
908
|
var _this5$wrapper2;
|
|
905
909
|
return ((_this5$wrapper2 = _this5.wrapper) === null || _this5$wrapper2 === void 0 ? void 0 : _this5$wrapper2.scrollLeft) || 0;
|
|
906
|
-
}
|
|
910
|
+
}
|
|
911
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
912
|
+
,
|
|
907
913
|
getTableWrapperWidth: function getTableWrapperWidth() {
|
|
908
914
|
var _this5$wrapper3;
|
|
909
915
|
return ((_this5$wrapper3 = _this5.wrapper) === null || _this5$wrapper3 === void 0 ? void 0 : _this5$wrapper3.clientWidth) || 760;
|
|
@@ -80,6 +80,7 @@ export var TableComponentWithSharedState = function TableComponentWithSharedStat
|
|
|
80
80
|
try {
|
|
81
81
|
currentTablePos = getPos ? getPos() : undefined;
|
|
82
82
|
} catch (e) {
|
|
83
|
+
// eslint-disable-line no-unused-vars
|
|
83
84
|
currentTablePos = undefined;
|
|
84
85
|
}
|
|
85
86
|
var selectedTable = findTable(view.state.selection);
|
|
@@ -103,7 +104,9 @@ export var TableComponentWithSharedState = function TableComponentWithSharedStat
|
|
|
103
104
|
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
104
105
|
ordering: ordering,
|
|
105
106
|
isResizing: isResizing,
|
|
106
|
-
getNode: getNode
|
|
107
|
+
getNode: getNode
|
|
108
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
109
|
+
,
|
|
107
110
|
containerWidth: {
|
|
108
111
|
width: width !== null && width !== void 0 ? width : 0,
|
|
109
112
|
lineLength: lineLength
|
|
@@ -398,7 +398,9 @@ export var TableContainer = function TableContainer(_ref5) {
|
|
|
398
398
|
className: classNames(className, {
|
|
399
399
|
'less-padding': editorWidth < akEditorMobileBreakoutPoint && !isNested && !(isChromelessEditor && isDragAndDropEnabled)
|
|
400
400
|
}),
|
|
401
|
-
style:
|
|
401
|
+
style:
|
|
402
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
403
|
+
{
|
|
402
404
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
403
405
|
width: 'inherit',
|
|
404
406
|
marginLeft: isChromelessEditor ? 18 : undefined,
|
|
@@ -510,7 +510,9 @@ export var TableResizer = function TableResizer(_ref) {
|
|
|
510
510
|
isHandleVisible: isTableSelected,
|
|
511
511
|
needExtendedResizeZone: expValEquals('platform_editor_table_resizer_extended_zone', 'isEnabled', true) ? true : !isTableSelected,
|
|
512
512
|
appearance: isTableSelected && isWholeTableInDanger ? 'danger' : undefined,
|
|
513
|
-
handleHighlight: "shadow"
|
|
513
|
+
handleHighlight: "shadow"
|
|
514
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
515
|
+
,
|
|
514
516
|
handleTooltipContent: function handleTooltipContent(_ref3) {
|
|
515
517
|
var update = _ref3.update;
|
|
516
518
|
updateTooltip.current = update;
|
|
@@ -180,7 +180,9 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
|
|
|
180
180
|
alignY: 'bottom',
|
|
181
181
|
stick: true,
|
|
182
182
|
forcePlacement: true,
|
|
183
|
-
zIndex: akEditorFloatingPanelZIndex
|
|
183
|
+
zIndex: akEditorFloatingPanelZIndex
|
|
184
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
185
|
+
,
|
|
184
186
|
offset: [0, 10]
|
|
185
187
|
}), isTableSelectorEnabled && isSizeSelectorOpen && /*#__PURE__*/React.createElement(SizeSelector, {
|
|
186
188
|
api: api,
|
|
@@ -18,12 +18,16 @@ export var DragPreview = function DragPreview(_ref) {
|
|
|
18
18
|
var marginTop = direction === 'row' ? height / 2 - 14 : -10;
|
|
19
19
|
var transform = direction === 'row' ? 'rotate(90deg)' : 'none';
|
|
20
20
|
return /*#__PURE__*/React.createElement(Box, {
|
|
21
|
-
xcss: boxStyles
|
|
21
|
+
xcss: boxStyles
|
|
22
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
23
|
+
,
|
|
22
24
|
style: {
|
|
23
25
|
width: "".concat(width, "px"),
|
|
24
26
|
height: "".concat(height, "px")
|
|
25
27
|
}
|
|
26
|
-
}, /*#__PURE__*/React.createElement(DragInMotionIcon
|
|
28
|
+
}, /*#__PURE__*/React.createElement(DragInMotionIcon
|
|
29
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
30
|
+
, {
|
|
27
31
|
style: {
|
|
28
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
29
33
|
position: 'absolute',
|
|
@@ -41,7 +41,9 @@ export var FloatingAlignmentButtons = function FloatingAlignmentButtons(_ref) {
|
|
|
41
41
|
}) : undefined,
|
|
42
42
|
title: item.title,
|
|
43
43
|
selected: item.selected,
|
|
44
|
-
disabled: item.disabled
|
|
44
|
+
disabled: item.disabled
|
|
45
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
|
+
,
|
|
45
47
|
onClick: function onClick() {
|
|
46
48
|
dispatchCommand(item.onClick);
|
|
47
49
|
},
|
|
@@ -155,7 +155,9 @@ var FloatingContextualButtonInner = /*#__PURE__*/React.memo(function (props) {
|
|
|
155
155
|
target: targetCellRef,
|
|
156
156
|
mountTo: tableWrapper || mountPoint,
|
|
157
157
|
boundariesElement: targetCellRef,
|
|
158
|
-
scrollableElement: scrollableElement
|
|
158
|
+
scrollableElement: scrollableElement
|
|
159
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
160
|
+
,
|
|
159
161
|
offset: [BUTTON_OFFSET, -BUTTON_OFFSET],
|
|
160
162
|
forcePlacement: true,
|
|
161
163
|
allowOutOfBounds: true,
|
|
@@ -157,7 +157,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
158
158
|
type: ArrowKeyNavigationType.COLOR,
|
|
159
159
|
selectedRowIndex: selectedRowIndex || 0,
|
|
160
|
-
selectedColumnIndex: selectedColumnIndex || 0
|
|
160
|
+
selectedColumnIndex: selectedColumnIndex || 0
|
|
161
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
|
+
,
|
|
161
163
|
handleClose: function handleClose() {
|
|
162
164
|
_this.setState({
|
|
163
165
|
isSubmenuOpen: false
|
|
@@ -177,7 +179,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
177
179
|
}, jsx(ColorPalette, {
|
|
178
180
|
cols: 7,
|
|
179
181
|
onClick: _this.setColor,
|
|
180
|
-
selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
182
|
+
selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
183
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
|
+
,
|
|
181
185
|
paletteOptions: {
|
|
182
186
|
palette: cellBackgroundColorPalette,
|
|
183
187
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
|
|
@@ -782,6 +786,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
782
786
|
}, jsx(DropdownMenu
|
|
783
787
|
//This needs be removed when the a11y is completely handled
|
|
784
788
|
//Disabling key navigation now as it works only partially
|
|
789
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
785
790
|
, {
|
|
786
791
|
arrowKeyNavigationProviderOptions: {
|
|
787
792
|
type: ArrowKeyNavigationType.MENU,
|
|
@@ -794,7 +799,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
794
799
|
onMouseEnter: this.handleItemMouseEnter,
|
|
795
800
|
onMouseLeave: this.handleItemMouseLeave,
|
|
796
801
|
fitHeight: 188,
|
|
797
|
-
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
|
|
802
|
+
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
|
|
803
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
804
|
+
,
|
|
798
805
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
799
806
|
return Boolean(isCellMenuOpenByKeyboard);
|
|
800
807
|
},
|
|
@@ -80,7 +80,9 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
80
80
|
// in table, but below floating dialogs like typeaheads, pickers, etc.
|
|
81
81
|
,
|
|
82
82
|
zIndex: parentSticky ? akEditorFloatingDialogZIndex : akEditorFloatingOverlapPanelZIndex,
|
|
83
|
-
forcePlacement: true
|
|
83
|
+
forcePlacement: true
|
|
84
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
85
|
+
,
|
|
84
86
|
offset: [-7, 0],
|
|
85
87
|
stick: true
|
|
86
88
|
}, jsx("div", {
|
|
@@ -89,7 +91,9 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
89
91
|
// Remove ! during platform_editor_hydratable_ui cleanup
|
|
90
92
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
91
93
|
, {
|
|
92
|
-
editorView: editorView
|
|
94
|
+
editorView: editorView
|
|
95
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
,
|
|
93
97
|
offset: [contextualMenuTriggerSize / 2, -contextualMenuTriggerSize],
|
|
94
98
|
isOpen: isOpen,
|
|
95
99
|
targetCellPosition: targetCellPosition,
|
|
@@ -308,7 +308,9 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
308
308
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
309
309
|
type: ArrowKeyNavigationType.COLOR,
|
|
310
310
|
selectedRowIndex: selectedRowIndex,
|
|
311
|
-
selectedColumnIndex: selectedColumnIndex
|
|
311
|
+
selectedColumnIndex: selectedColumnIndex
|
|
312
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
313
|
+
,
|
|
312
314
|
handleClose: function handleClose() {
|
|
313
315
|
var keyboardEvent = new KeyboardEvent('keydown', {
|
|
314
316
|
key: 'ArrowDown',
|
|
@@ -323,11 +325,15 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
323
325
|
isPopupPositioned: true,
|
|
324
326
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
325
327
|
}, jsx(ColorPalette, {
|
|
326
|
-
cols: colorPalletteColumns
|
|
328
|
+
cols: colorPalletteColumns
|
|
329
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
330
|
+
,
|
|
327
331
|
onClick: function onClick(color) {
|
|
328
332
|
setColor(color);
|
|
329
333
|
},
|
|
330
|
-
selectedColor: background
|
|
334
|
+
selectedColor: background
|
|
335
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
336
|
+
,
|
|
331
337
|
paletteOptions: {
|
|
332
338
|
palette: cellBackgroundColorPalette,
|
|
333
339
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
|
|
@@ -557,7 +563,9 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
557
563
|
api: api,
|
|
558
564
|
userIntent: "tableDragMenuPopupOpen"
|
|
559
565
|
}, jsx(DropdownMenu, {
|
|
560
|
-
disableKeyboardHandling: isSubmenuOpen
|
|
566
|
+
disableKeyboardHandling: isSubmenuOpen
|
|
567
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
568
|
+
,
|
|
561
569
|
section: {
|
|
562
570
|
hasSeparator: true
|
|
563
571
|
},
|
|
@@ -50,15 +50,21 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
50
50
|
return /*#__PURE__*/React.createElement(DropListWithOutsideListeners, {
|
|
51
51
|
isOpen: true,
|
|
52
52
|
shouldFitContainer: true,
|
|
53
|
-
position: popupPlacement.join(' ')
|
|
53
|
+
position: popupPlacement.join(' ')
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
|
+
,
|
|
54
56
|
handleClickOutside: function handleClickOutside() {
|
|
55
57
|
return handleClose('editor');
|
|
56
|
-
}
|
|
58
|
+
}
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
|
+
,
|
|
57
61
|
handleEscapeKeydown: function handleEscapeKeydown() {
|
|
58
62
|
if (!disableKeyboardHandling) {
|
|
59
63
|
handleClose('handle');
|
|
60
64
|
}
|
|
61
|
-
}
|
|
65
|
+
}
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
67
|
+
,
|
|
62
68
|
handleEnterKeydown: function handleEnterKeydown(e) {
|
|
63
69
|
if (!disableKeyboardHandling) {
|
|
64
70
|
e.preventDefault();
|
|
@@ -154,13 +160,17 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
154
160
|
target: targetRefDiv,
|
|
155
161
|
mountTo: mountPoint,
|
|
156
162
|
boundariesElement: boundariesElement,
|
|
157
|
-
scrollableElement: scrollableElement
|
|
163
|
+
scrollableElement: scrollableElement
|
|
164
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
165
|
+
,
|
|
158
166
|
onPlacementChanged: function onPlacementChanged(placement) {
|
|
159
167
|
setPopupPlacement(placement);
|
|
160
168
|
},
|
|
161
169
|
fitHeight: fitHeight,
|
|
162
170
|
fitWidth: fitWidth,
|
|
163
|
-
zIndex: akEditorFloatingPanelZIndex
|
|
171
|
+
zIndex: akEditorFloatingPanelZIndex
|
|
172
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
173
|
+
,
|
|
164
174
|
offset: [offsetX, offsetY],
|
|
165
175
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
166
176
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
@@ -40,7 +40,9 @@ export var SizeSelector = function SizeSelector(_ref) {
|
|
|
40
40
|
var onUnmount = function onUnmount() {
|
|
41
41
|
api === null || api === void 0 || api.core.actions.focus();
|
|
42
42
|
};
|
|
43
|
-
return jsx(TableSelectorPopup
|
|
43
|
+
return jsx(TableSelectorPopup
|
|
44
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
45
|
+
, {
|
|
44
46
|
defaultSize: {
|
|
45
47
|
row: DEFAULT_TABLE_SELECTOR_ROWS,
|
|
46
48
|
col: DEFAULT_TABLE_SELECTOR_COLS
|
|
@@ -249,7 +249,9 @@ export var DragControls = function DragControls(_ref) {
|
|
|
249
249
|
, {
|
|
250
250
|
key: "drop-target-".concat(index),
|
|
251
251
|
index: index,
|
|
252
|
-
localId: currentNodeLocalId
|
|
252
|
+
localId: currentNodeLocalId
|
|
253
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
254
|
+
,
|
|
253
255
|
style: {
|
|
254
256
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
255
257
|
gridColumn: '1 / span 3',
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -573,12 +573,16 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
|
|
|
573
573
|
}
|
|
574
574
|
return jsx(DropdownMenuExtensionItems, {
|
|
575
575
|
node: tableObject.node,
|
|
576
|
-
editorView: editorView
|
|
576
|
+
editorView: editorView
|
|
577
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
578
|
+
,
|
|
577
579
|
extension: {
|
|
578
580
|
extensionProvider: extensionState !== null && extensionState !== void 0 && extensionState.extensionProvider ? Promise.resolve(extensionState.extensionProvider) : undefined,
|
|
579
581
|
extensionApi: extensionApi
|
|
580
582
|
},
|
|
581
|
-
dropdownOptions: dropdownOptions
|
|
583
|
+
dropdownOptions: dropdownOptions
|
|
584
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
585
|
+
,
|
|
582
586
|
disabled: function disabled(key) {
|
|
583
587
|
return isNestedTable && ['referentiality:connections', 'chart:insert-chart'].includes(key);
|
|
584
588
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.4",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^8.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-content-insertion": "^8.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
40
|
-
"@atlaskit/editor-plugin-extension": "11.0.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "11.0.12",
|
|
41
41
|
"@atlaskit/editor-plugin-guideline": "^8.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-interaction": "^15.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-limited-mode": "^5.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
58
58
|
"@atlaskit/primitives": "^18.0.0",
|
|
59
59
|
"@atlaskit/theme": "^22.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
60
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
61
61
|
"@atlaskit/toggle": "^15.2.0",
|
|
62
62
|
"@atlaskit/tokens": "^11.1.0",
|
|
63
63
|
"@atlaskit/tooltip": "^21.0.0",
|