@atlaskit/editor-plugin-block-controls 2.15.9 → 2.15.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 2.15.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#179607](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/179607)
|
|
8
|
+
[`9873ddf82bfe6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9873ddf82bfe6) -
|
|
9
|
+
Add check for tabel row, to stop nested elements in table cells from being draggable
|
|
10
|
+
|
|
3
11
|
## 2.15.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -43,12 +43,20 @@ var handleMouseOver = exports.handleMouseOver = function handleMouseOver(view, e
|
|
|
43
43
|
}
|
|
44
44
|
var parentElement = (_rootElement$parentEl = rootElement.parentElement) === null || _rootElement$parentEl === void 0 ? void 0 : _rootElement$parentEl.closest('[data-drag-handler-anchor-name]');
|
|
45
45
|
var parentElementType = parentElement === null || parentElement === void 0 ? void 0 : parentElement.getAttribute('data-drag-handler-node-type');
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
if ((0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _platformFeatureFlags.fg)('platform_editor_advanced_layouts_post_fix_patch_1')) {
|
|
47
|
+
// We want to exclude handles from showing for direct descendant of table nodes (i.e. nodes in cells)
|
|
48
|
+
if (parentElement && (parentElementType === 'table' || parentElementType === 'tableRow') && (0, _experiments.editorExperiment)('nested-dnd', true) && (0, _experiments.editorExperiment)('table-nested-dnd', false, {
|
|
49
|
+
exposure: true
|
|
50
|
+
})) {
|
|
51
|
+
rootElement = parentElement;
|
|
52
|
+
}
|
|
53
|
+
} else {
|
|
54
|
+
// We want to exclude handles from showing for direct descendant of table nodes (i.e. nodes in cells)
|
|
55
|
+
if (parentElement && parentElementType === 'table' && (0, _experiments.editorExperiment)('nested-dnd', true) && (0, _experiments.editorExperiment)('table-nested-dnd', false, {
|
|
56
|
+
exposure: true
|
|
57
|
+
})) {
|
|
58
|
+
rootElement = parentElement;
|
|
59
|
+
}
|
|
52
60
|
}
|
|
53
61
|
var anchorName = rootElement.getAttribute('data-drag-handler-anchor-name');
|
|
54
62
|
// No need to update handle position if its already there
|
|
@@ -38,12 +38,20 @@ export const handleMouseOver = (view, event, api) => {
|
|
|
38
38
|
}
|
|
39
39
|
const parentElement = (_rootElement$parentEl = rootElement.parentElement) === null || _rootElement$parentEl === void 0 ? void 0 : _rootElement$parentEl.closest('[data-drag-handler-anchor-name]');
|
|
40
40
|
const parentElementType = parentElement === null || parentElement === void 0 ? void 0 : parentElement.getAttribute('data-drag-handler-node-type');
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
if (editorExperiment('advanced_layouts', true) && fg('platform_editor_advanced_layouts_post_fix_patch_1')) {
|
|
42
|
+
// We want to exclude handles from showing for direct descendant of table nodes (i.e. nodes in cells)
|
|
43
|
+
if (parentElement && (parentElementType === 'table' || parentElementType === 'tableRow') && editorExperiment('nested-dnd', true) && editorExperiment('table-nested-dnd', false, {
|
|
44
|
+
exposure: true
|
|
45
|
+
})) {
|
|
46
|
+
rootElement = parentElement;
|
|
47
|
+
}
|
|
48
|
+
} else {
|
|
49
|
+
// We want to exclude handles from showing for direct descendant of table nodes (i.e. nodes in cells)
|
|
50
|
+
if (parentElement && parentElementType === 'table' && editorExperiment('nested-dnd', true) && editorExperiment('table-nested-dnd', false, {
|
|
51
|
+
exposure: true
|
|
52
|
+
})) {
|
|
53
|
+
rootElement = parentElement;
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
const anchorName = rootElement.getAttribute('data-drag-handler-anchor-name');
|
|
49
57
|
// No need to update handle position if its already there
|
|
@@ -37,12 +37,20 @@ export var handleMouseOver = function handleMouseOver(view, event, api) {
|
|
|
37
37
|
}
|
|
38
38
|
var parentElement = (_rootElement$parentEl = rootElement.parentElement) === null || _rootElement$parentEl === void 0 ? void 0 : _rootElement$parentEl.closest('[data-drag-handler-anchor-name]');
|
|
39
39
|
var parentElementType = parentElement === null || parentElement === void 0 ? void 0 : parentElement.getAttribute('data-drag-handler-node-type');
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
if (editorExperiment('advanced_layouts', true) && fg('platform_editor_advanced_layouts_post_fix_patch_1')) {
|
|
41
|
+
// We want to exclude handles from showing for direct descendant of table nodes (i.e. nodes in cells)
|
|
42
|
+
if (parentElement && (parentElementType === 'table' || parentElementType === 'tableRow') && editorExperiment('nested-dnd', true) && editorExperiment('table-nested-dnd', false, {
|
|
43
|
+
exposure: true
|
|
44
|
+
})) {
|
|
45
|
+
rootElement = parentElement;
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
// We want to exclude handles from showing for direct descendant of table nodes (i.e. nodes in cells)
|
|
49
|
+
if (parentElement && parentElementType === 'table' && editorExperiment('nested-dnd', true) && editorExperiment('table-nested-dnd', false, {
|
|
50
|
+
exposure: true
|
|
51
|
+
})) {
|
|
52
|
+
rootElement = parentElement;
|
|
53
|
+
}
|
|
46
54
|
}
|
|
47
55
|
var anchorName = rootElement.getAttribute('data-drag-handler-anchor-name');
|
|
48
56
|
// No need to update handle position if its already there
|