@atlaskit/editor-plugin-block-controls 2.15.11 → 2.15.13
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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 2.15.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#178794](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178794)
|
|
8
|
+
[`a8c669da6eb60`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a8c669da6eb60) -
|
|
9
|
+
ED-25991 Cleaned up "platform_editor_element_drag_and_drop_ed_24304" feature gate
|
|
10
|
+
|
|
11
|
+
## 2.15.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#179556](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/179556)
|
|
16
|
+
[`4df21a6b0db31`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4df21a6b0db31) -
|
|
17
|
+
ED-25734 Add style overrides for extended hover zone debug flag is enabled and use in vr test to
|
|
18
|
+
check that nodes attached are above hover zone
|
|
19
|
+
|
|
3
20
|
## 2.15.11
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -491,7 +491,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, getIntl, no
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
// TODO: Review usage of posAtDOM here
|
|
494
|
-
var domPos =
|
|
494
|
+
var domPos = Math.max(view.posAtDOM(nodeElement, 0) - 1, 0);
|
|
495
495
|
var nodeTarget = state.doc.nodeAt(domPos);
|
|
496
496
|
var isSameNode = !!(nodeTarget && draggable !== null && draggable !== void 0 && draggable.eq(nodeTarget));
|
|
497
497
|
if (isSameNode) {
|
|
@@ -552,7 +552,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, getIntl, no
|
|
|
552
552
|
return true;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
if (event.shiftKey && event.ctrlKey
|
|
555
|
+
if (event.shiftKey && event.ctrlKey) {
|
|
556
556
|
//prevent holding down key combo from firing repeatedly
|
|
557
557
|
if (!event.repeat && (0, _keymap.boundKeydownHandler)(api, formatMessage)(view, event)) {
|
|
558
558
|
event.preventDefault();
|
|
@@ -468,7 +468,7 @@ export const createPlugin = (api, getIntl, nodeViewPortalProviderAPI) => {
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
// TODO: Review usage of posAtDOM here
|
|
471
|
-
const domPos =
|
|
471
|
+
const domPos = Math.max(view.posAtDOM(nodeElement, 0) - 1, 0);
|
|
472
472
|
const nodeTarget = state.doc.nodeAt(domPos);
|
|
473
473
|
const isSameNode = !!(nodeTarget && draggable !== null && draggable !== void 0 && draggable.eq(nodeTarget));
|
|
474
474
|
if (isSameNode) {
|
|
@@ -532,7 +532,7 @@ export const createPlugin = (api, getIntl, nodeViewPortalProviderAPI) => {
|
|
|
532
532
|
return true;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
if (event.shiftKey && event.ctrlKey
|
|
535
|
+
if (event.shiftKey && event.ctrlKey) {
|
|
536
536
|
//prevent holding down key combo from firing repeatedly
|
|
537
537
|
if (!event.repeat && boundKeydownHandler(api, formatMessage)(view, event)) {
|
|
538
538
|
event.preventDefault();
|
|
@@ -484,7 +484,7 @@ export var createPlugin = function createPlugin(api, getIntl, nodeViewPortalProv
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
// TODO: Review usage of posAtDOM here
|
|
487
|
-
var domPos =
|
|
487
|
+
var domPos = Math.max(view.posAtDOM(nodeElement, 0) - 1, 0);
|
|
488
488
|
var nodeTarget = state.doc.nodeAt(domPos);
|
|
489
489
|
var isSameNode = !!(nodeTarget && draggable !== null && draggable !== void 0 && draggable.eq(nodeTarget));
|
|
490
490
|
if (isSameNode) {
|
|
@@ -545,7 +545,7 @@ export var createPlugin = function createPlugin(api, getIntl, nodeViewPortalProv
|
|
|
545
545
|
return true;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
if (event.shiftKey && event.ctrlKey
|
|
548
|
+
if (event.shiftKey && event.ctrlKey) {
|
|
549
549
|
//prevent holding down key combo from firing repeatedly
|
|
550
550
|
if (!event.repeat && boundKeydownHandler(api, formatMessage)(view, event)) {
|
|
551
551
|
event.preventDefault();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.13",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
34
|
-
"@atlaskit/editor-common": "^96.
|
|
34
|
+
"@atlaskit/editor-common": "^96.6.0",
|
|
35
35
|
"@atlaskit/editor-plugin-accessibility-utils": "^1.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^13.3.0",
|
|
50
50
|
"@atlaskit/theme": "^14.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^2.28.0",
|
|
52
52
|
"@atlaskit/tokens": "^2.5.0",
|
|
53
53
|
"@atlaskit/tooltip": "^19.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -124,9 +124,6 @@
|
|
|
124
124
|
"platform_editor_element_drag_and_drop_ed_24227": {
|
|
125
125
|
"type": "boolean"
|
|
126
126
|
},
|
|
127
|
-
"platform_editor_element_drag_and_drop_ed_24304": {
|
|
128
|
-
"type": "boolean"
|
|
129
|
-
},
|
|
130
127
|
"platform_editor_element_drag_and_drop_debug": {
|
|
131
128
|
"type": "boolean"
|
|
132
129
|
},
|