@atlaskit/editor-plugin-table 7.29.7 → 7.29.8
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 +9 -0
- package/afm-cc/tsconfig.json +1 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +1 -3
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +1 -3
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +1 -3
- package/package.json +2 -2
- package/src/ui/FloatingDragMenu/DragMenu.tsx +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.29.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#157905](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157905)
|
|
8
|
+
[`f02486a915690`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f02486a915690) -
|
|
9
|
+
NO-ISSUE Cleanup unused props and components
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 7.29.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -14,7 +14,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
14
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
16
16
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
17
|
-
var _ui = require("@atlaskit/editor-common/ui");
|
|
18
17
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
19
18
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
20
19
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -193,7 +192,6 @@ var convertToDropdownItems = function convertToDropdownItems(dragMenuConfig, for
|
|
|
193
192
|
menuCallback: menuCallback
|
|
194
193
|
};
|
|
195
194
|
};
|
|
196
|
-
var ColorPaletteWithListeners = (0, _ui.withOuterListeners)(_uiColor.ColorPalette);
|
|
197
195
|
var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
198
196
|
var _tableMap$hasMergedCe, _pluginConfig$allowBa;
|
|
199
197
|
var _ref$direction = _ref.direction,
|
|
@@ -311,7 +309,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
311
309
|
},
|
|
312
310
|
isPopupPositioned: true,
|
|
313
311
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
314
|
-
}, (0, _react2.jsx)(
|
|
312
|
+
}, (0, _react2.jsx)(_uiColor.ColorPalette, {
|
|
315
313
|
cols: _consts.colorPalletteColumns,
|
|
316
314
|
onClick: function onClick(color) {
|
|
317
315
|
setColor(color);
|
|
@@ -12,7 +12,6 @@ import { injectIntl } from 'react-intl-next';
|
|
|
12
12
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
14
14
|
import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
15
|
-
import { withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
16
15
|
import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
|
|
17
16
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
|
|
18
17
|
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
@@ -176,7 +175,6 @@ const convertToDropdownItems = (dragMenuConfig, formatMessage, tableSortColumnRe
|
|
|
176
175
|
menuCallback
|
|
177
176
|
};
|
|
178
177
|
};
|
|
179
|
-
const ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
180
178
|
const DragMenu = /*#__PURE__*/React.memo(({
|
|
181
179
|
direction = 'row',
|
|
182
180
|
index,
|
|
@@ -303,7 +301,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
303
301
|
},
|
|
304
302
|
isPopupPositioned: true,
|
|
305
303
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
306
|
-
}, jsx(
|
|
304
|
+
}, jsx(ColorPalette, {
|
|
307
305
|
cols: colorPalletteColumns,
|
|
308
306
|
onClick: color => {
|
|
309
307
|
setColor(color);
|
|
@@ -14,7 +14,6 @@ import { injectIntl } from 'react-intl-next';
|
|
|
14
14
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
16
|
import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
17
|
-
import { withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
18
17
|
import { backgroundPaletteTooltipMessages, cellBackgroundColorPalette, ColorPalette, getSelectedRowAndColumnFromPalette } from '@atlaskit/editor-common/ui-color';
|
|
19
18
|
import { ArrowKeyNavigationProvider, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
|
|
20
19
|
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
@@ -182,7 +181,6 @@ var convertToDropdownItems = function convertToDropdownItems(dragMenuConfig, for
|
|
|
182
181
|
menuCallback: menuCallback
|
|
183
182
|
};
|
|
184
183
|
};
|
|
185
|
-
var ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
186
184
|
var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
187
185
|
var _tableMap$hasMergedCe, _pluginConfig$allowBa;
|
|
188
186
|
var _ref$direction = _ref.direction,
|
|
@@ -300,7 +298,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
300
298
|
},
|
|
301
299
|
isPopupPositioned: true,
|
|
302
300
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
303
|
-
}, jsx(
|
|
301
|
+
}, jsx(ColorPalette, {
|
|
304
302
|
cols: colorPalletteColumns,
|
|
305
303
|
onClick: function onClick(color) {
|
|
306
304
|
setColor(color);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "7.29.
|
|
3
|
+
"version": "7.29.8",
|
|
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
|
"@atlaskit/adf-schema": "^42.3.1",
|
|
31
31
|
"@atlaskit/button": "^20.3.0",
|
|
32
32
|
"@atlaskit/custom-steps": "^0.8.0",
|
|
33
|
-
"@atlaskit/editor-common": "^94.
|
|
33
|
+
"@atlaskit/editor-common": "^94.8.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.3",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
@@ -16,7 +16,6 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
16
16
|
import { tableMessages as messages } from '@atlaskit/editor-common/messages';
|
|
17
17
|
import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
18
18
|
import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
19
|
-
import { withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
20
19
|
import {
|
|
21
20
|
backgroundPaletteTooltipMessages,
|
|
22
21
|
cellBackgroundColorPalette,
|
|
@@ -264,8 +263,6 @@ const convertToDropdownItems = (
|
|
|
264
263
|
return { menuItems, menuCallback };
|
|
265
264
|
};
|
|
266
265
|
|
|
267
|
-
const ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
268
|
-
|
|
269
266
|
const DragMenu = React.memo(
|
|
270
267
|
({
|
|
271
268
|
direction = 'row',
|
|
@@ -413,7 +410,7 @@ const DragMenu = React.memo(
|
|
|
413
410
|
isPopupPositioned={true}
|
|
414
411
|
isOpenedByKeyboard={isKeyboardModeActive}
|
|
415
412
|
>
|
|
416
|
-
<
|
|
413
|
+
<ColorPalette
|
|
417
414
|
cols={colorPalletteColumns}
|
|
418
415
|
onClick={(color) => {
|
|
419
416
|
setColor(color);
|