@atlaskit/editor-plugin-block-controls 2.21.7 → 2.21.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 2.21.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#107795](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107795)
|
|
8
|
+
[`ccf90a27dfe6b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ccf90a27dfe6b) -
|
|
9
|
+
ED-26407 Cleaned-up FG platform_editor_element_drag_and_drop_ed_24321
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.21.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -52,7 +52,7 @@ var showDragHandleAtSelection = exports.showDragHandleAtSelection = function sho
|
|
|
52
52
|
var rootPos = $from.before(1);
|
|
53
53
|
var dom = view === null || view === void 0 ? void 0 : view.domAtPos(rootPos, 0);
|
|
54
54
|
var nodeElement = dom === null || dom === void 0 ? void 0 : dom.node.childNodes[dom === null || dom === void 0 ? void 0 : dom.offset];
|
|
55
|
-
var rootNode = nodeElement && !nodeElement.hasAttribute('data-drag-handler-anchor-name')
|
|
55
|
+
var rootNode = nodeElement && !nodeElement.hasAttribute('data-drag-handler-anchor-name') ? nodeElement.querySelector('[data-drag-handler-anchor-name]') : nodeElement;
|
|
56
56
|
if (rootNode) {
|
|
57
57
|
// Ignored via go/ees005
|
|
58
58
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -48,7 +48,7 @@ export const showDragHandleAtSelection = (api, shouldFocusParentNode) => (state,
|
|
|
48
48
|
const rootPos = $from.before(1);
|
|
49
49
|
const dom = view === null || view === void 0 ? void 0 : view.domAtPos(rootPos, 0);
|
|
50
50
|
const nodeElement = dom === null || dom === void 0 ? void 0 : dom.node.childNodes[dom === null || dom === void 0 ? void 0 : dom.offset];
|
|
51
|
-
const rootNode = nodeElement && !nodeElement.hasAttribute('data-drag-handler-anchor-name')
|
|
51
|
+
const rootNode = nodeElement && !nodeElement.hasAttribute('data-drag-handler-anchor-name') ? nodeElement.querySelector('[data-drag-handler-anchor-name]') : nodeElement;
|
|
52
52
|
if (rootNode) {
|
|
53
53
|
// Ignored via go/ees005
|
|
54
54
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -46,7 +46,7 @@ export var showDragHandleAtSelection = function showDragHandleAtSelection(api, s
|
|
|
46
46
|
var rootPos = $from.before(1);
|
|
47
47
|
var dom = view === null || view === void 0 ? void 0 : view.domAtPos(rootPos, 0);
|
|
48
48
|
var nodeElement = dom === null || dom === void 0 ? void 0 : dom.node.childNodes[dom === null || dom === void 0 ? void 0 : dom.offset];
|
|
49
|
-
var rootNode = nodeElement && !nodeElement.hasAttribute('data-drag-handler-anchor-name')
|
|
49
|
+
var rootNode = nodeElement && !nodeElement.hasAttribute('data-drag-handler-anchor-name') ? nodeElement.querySelector('[data-drag-handler-anchor-name]') : nodeElement;
|
|
50
50
|
if (rootNode) {
|
|
51
51
|
// Ignored via go/ees005
|
|
52
52
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.8",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
34
|
-
"@atlaskit/editor-common": "^99.
|
|
35
|
-
"@atlaskit/editor-plugin-accessibility-utils": "^1.
|
|
34
|
+
"@atlaskit/editor-common": "^99.7.0",
|
|
35
|
+
"@atlaskit/editor-plugin-accessibility-utils": "^1.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
37
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
37
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
39
|
-
"@atlaskit/editor-plugin-quick-insert": "^1.
|
|
39
|
+
"@atlaskit/editor-plugin-quick-insert": "^1.9.0",
|
|
40
40
|
"@atlaskit/editor-plugin-width": "^2.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
44
|
-
"@atlaskit/icon": "^23.
|
|
44
|
+
"@atlaskit/icon": "^23.5.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
|
-
"@atlaskit/pragmatic-drag-and-drop": "^1.
|
|
46
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.5.0",
|
|
47
47
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
48
|
-
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.
|
|
49
|
-
"@atlaskit/primitives": "^13.
|
|
50
|
-
"@atlaskit/theme": "^14.
|
|
48
|
+
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.2.0",
|
|
49
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
50
|
+
"@atlaskit/theme": "^14.1.0",
|
|
51
51
|
"@atlaskit/tmp-editor-statsig": "^2.41.0",
|
|
52
|
-
"@atlaskit/tokens": "^3.
|
|
53
|
-
"@atlaskit/tooltip": "^19.
|
|
52
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
53
|
+
"@atlaskit/tooltip": "^19.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@emotion/react": "^11.7.1",
|
|
56
56
|
"bind-event-listener": "^3.0.0",
|
|
@@ -112,9 +112,6 @@
|
|
|
112
112
|
"platform_editor_element_drag_and_drop_ed_23873": {
|
|
113
113
|
"type": "boolean"
|
|
114
114
|
},
|
|
115
|
-
"platform_editor_element_drag_and_drop_ed_24321": {
|
|
116
|
-
"type": "boolean"
|
|
117
|
-
},
|
|
118
115
|
"platform_editor_element_dnd_nested_fix_patch_6": {
|
|
119
116
|
"type": "boolean"
|
|
120
117
|
},
|