@atlaskit/editor-plugin-table 8.2.1 → 8.2.2
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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 8.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#170442](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170442)
|
|
8
|
+
[`14b1ff1b28958`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14b1ff1b28958) -
|
|
9
|
+
ED-25803 Update to not pass mountPoint into dropdown menu popup so that dropdown menu will be
|
|
10
|
+
nested inside DragMenu pop up
|
|
11
|
+
|
|
3
12
|
## 8.2.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -23,6 +23,7 @@ var _tableMap = require("@atlaskit/editor-tables/table-map");
|
|
|
23
23
|
var _utils2 = require("@atlaskit/editor-tables/utils");
|
|
24
24
|
var _paintBucketEditorBackgroundColor = _interopRequireDefault(require("@atlaskit/icon/core/migration/paint-bucket--editor-background-color"));
|
|
25
25
|
var _paintBucket = _interopRequireDefault(require("@atlaskit/icon/core/paint-bucket"));
|
|
26
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
27
|
var _primitives = require("@atlaskit/primitives");
|
|
27
28
|
var _toggle = _interopRequireDefault(require("@atlaskit/toggle"));
|
|
28
29
|
var _commands = require("../../commands");
|
|
@@ -506,7 +507,7 @@ var DragMenu = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
506
507
|
fitHeight: fitHeight,
|
|
507
508
|
fitWidth: fitWidth,
|
|
508
509
|
direction: direction,
|
|
509
|
-
mountPoint: mountPoint,
|
|
510
|
+
mountPoint: (0, _platformFeatureFlags.fg)('platform_editor_table_drag_menu_mount_point_fix') ? undefined : mountPoint,
|
|
510
511
|
boundariesElement: boundariesElement,
|
|
511
512
|
scrollableElement: scrollableElement
|
|
512
513
|
});
|
|
@@ -21,6 +21,7 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
|
21
21
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
22
22
|
import EditorBackgroundColorIcon from '@atlaskit/icon/core/migration/paint-bucket--editor-background-color';
|
|
23
23
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
24
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
25
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
25
26
|
import Toggle from '@atlaskit/toggle';
|
|
26
27
|
import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
|
|
@@ -505,7 +506,7 @@ const DragMenu = /*#__PURE__*/React.memo(({
|
|
|
505
506
|
fitHeight: fitHeight,
|
|
506
507
|
fitWidth: fitWidth,
|
|
507
508
|
direction: direction,
|
|
508
|
-
mountPoint: mountPoint,
|
|
509
|
+
mountPoint: fg('platform_editor_table_drag_menu_mount_point_fix') ? undefined : mountPoint,
|
|
509
510
|
boundariesElement: boundariesElement,
|
|
510
511
|
scrollableElement: scrollableElement
|
|
511
512
|
});
|
|
@@ -23,6 +23,7 @@ import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
|
23
23
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
24
24
|
import EditorBackgroundColorIcon from '@atlaskit/icon/core/migration/paint-bucket--editor-background-color';
|
|
25
25
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
26
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
27
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
27
28
|
import Toggle from '@atlaskit/toggle';
|
|
28
29
|
import { clearHoverSelection, hoverColumns, hoverRows } from '../../commands';
|
|
@@ -495,7 +496,7 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
495
496
|
fitHeight: fitHeight,
|
|
496
497
|
fitWidth: fitWidth,
|
|
497
498
|
direction: direction,
|
|
498
|
-
mountPoint: mountPoint,
|
|
499
|
+
mountPoint: fg('platform_editor_table_drag_menu_mount_point_fix') ? undefined : mountPoint,
|
|
499
500
|
boundariesElement: boundariesElement,
|
|
500
501
|
scrollableElement: scrollableElement
|
|
501
502
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -127,6 +127,9 @@
|
|
|
127
127
|
},
|
|
128
128
|
"platform_editor_set_alignment_when_resized": {
|
|
129
129
|
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"platform_editor_table_drag_menu_mount_point_fix": {
|
|
132
|
+
"type": "boolean"
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
}
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
} from '@atlaskit/editor-tables/utils';
|
|
44
44
|
import EditorBackgroundColorIcon from '@atlaskit/icon/core/migration/paint-bucket--editor-background-color';
|
|
45
45
|
import PaintBucketIcon from '@atlaskit/icon/core/paint-bucket';
|
|
46
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
46
47
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
47
48
|
import Toggle from '@atlaskit/toggle';
|
|
48
49
|
|
|
@@ -628,7 +629,7 @@ const DragMenu = React.memo(
|
|
|
628
629
|
fitHeight={fitHeight}
|
|
629
630
|
fitWidth={fitWidth}
|
|
630
631
|
direction={direction}
|
|
631
|
-
mountPoint={mountPoint}
|
|
632
|
+
mountPoint={fg('platform_editor_table_drag_menu_mount_point_fix') ? undefined : mountPoint}
|
|
632
633
|
boundariesElement={boundariesElement}
|
|
633
634
|
scrollableElement={scrollableElement}
|
|
634
635
|
/>
|