@atlaskit/editor-plugin-block-controls 1.4.6 → 1.4.7
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
|
+
## 1.4.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#105285](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105285)
|
|
8
|
+
[`30dbeeb70f1b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30dbeeb70f1b) -
|
|
9
|
+
Add drag and drop tests for block control plugin
|
|
10
|
+
|
|
3
11
|
## 1.4.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var _adapter = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
|
|
|
16
16
|
|
|
17
17
|
var styleDropTarget = (0, _react2.css)({
|
|
18
18
|
height: "var(--ds-space-100, 8px)",
|
|
19
|
-
marginTop: "
|
|
19
|
+
marginTop: "var(--ds-space-negative-100, -8px)",
|
|
20
20
|
position: 'relative'
|
|
21
21
|
});
|
|
22
22
|
var DropTarget = exports.DropTarget = function DropTarget(_ref) {
|
|
@@ -36,10 +36,7 @@ var DropTarget = exports.DropTarget = function DropTarget(_ref) {
|
|
|
36
36
|
var scrollable = document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
37
37
|
if (scrollable) {
|
|
38
38
|
combined.push((0, _element.autoScrollForElements)({
|
|
39
|
-
element: scrollable
|
|
40
|
-
canScroll: function canScroll() {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
39
|
+
element: scrollable
|
|
43
40
|
}));
|
|
44
41
|
}
|
|
45
42
|
combined.push((0, _adapter.dropTargetForElements)({
|
|
@@ -82,7 +79,8 @@ var DropTarget = exports.DropTarget = function DropTarget(_ref) {
|
|
|
82
79
|
// Note: Firefox has trouble with using a button element as the handle for drag and drop
|
|
83
80
|
(0, _react2.jsx)("div", {
|
|
84
81
|
css: styleDropTarget,
|
|
85
|
-
ref: ref
|
|
82
|
+
ref: ref,
|
|
83
|
+
"data-testid": "block-ctrl-drop-target"
|
|
86
84
|
},
|
|
87
85
|
//4px gap to clear expand node border
|
|
88
86
|
isDraggedOver && (0, _react2.jsx)(_box.DropIndicator, {
|
|
@@ -7,7 +7,7 @@ import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
|
7
7
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
8
8
|
const styleDropTarget = css({
|
|
9
9
|
height: "var(--ds-space-100, 8px)",
|
|
10
|
-
marginTop:
|
|
10
|
+
marginTop: "var(--ds-space-negative-100, -8px)",
|
|
11
11
|
position: 'relative'
|
|
12
12
|
});
|
|
13
13
|
export const DropTarget = ({
|
|
@@ -25,10 +25,7 @@ export const DropTarget = ({
|
|
|
25
25
|
const scrollable = document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
26
26
|
if (scrollable) {
|
|
27
27
|
combined.push(autoScrollForElements({
|
|
28
|
-
element: scrollable
|
|
29
|
-
canScroll: () => {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
28
|
+
element: scrollable
|
|
32
29
|
}));
|
|
33
30
|
}
|
|
34
31
|
combined.push(dropTargetForElements({
|
|
@@ -67,7 +64,8 @@ export const DropTarget = ({
|
|
|
67
64
|
// Note: Firefox has trouble with using a button element as the handle for drag and drop
|
|
68
65
|
jsx("div", {
|
|
69
66
|
css: styleDropTarget,
|
|
70
|
-
ref: ref
|
|
67
|
+
ref: ref,
|
|
68
|
+
"data-testid": "block-ctrl-drop-target"
|
|
71
69
|
},
|
|
72
70
|
//4px gap to clear expand node border
|
|
73
71
|
isDraggedOver && jsx(DropIndicator, {
|
|
@@ -8,7 +8,7 @@ import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
|
8
8
|
import { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
9
9
|
var styleDropTarget = css({
|
|
10
10
|
height: "var(--ds-space-100, 8px)",
|
|
11
|
-
marginTop: "
|
|
11
|
+
marginTop: "var(--ds-space-negative-100, -8px)",
|
|
12
12
|
position: 'relative'
|
|
13
13
|
});
|
|
14
14
|
export var DropTarget = function DropTarget(_ref) {
|
|
@@ -28,10 +28,7 @@ export var DropTarget = function DropTarget(_ref) {
|
|
|
28
28
|
var scrollable = document.querySelector('.fabric-editor-popup-scroll-parent');
|
|
29
29
|
if (scrollable) {
|
|
30
30
|
combined.push(autoScrollForElements({
|
|
31
|
-
element: scrollable
|
|
32
|
-
canScroll: function canScroll() {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
31
|
+
element: scrollable
|
|
35
32
|
}));
|
|
36
33
|
}
|
|
37
34
|
combined.push(dropTargetForElements({
|
|
@@ -74,7 +71,8 @@ export var DropTarget = function DropTarget(_ref) {
|
|
|
74
71
|
// Note: Firefox has trouble with using a button element as the handle for drag and drop
|
|
75
72
|
jsx("div", {
|
|
76
73
|
css: styleDropTarget,
|
|
77
|
-
ref: ref
|
|
74
|
+
ref: ref,
|
|
75
|
+
"data-testid": "block-ctrl-drop-target"
|
|
78
76
|
},
|
|
79
77
|
//4px gap to clear expand node border
|
|
80
78
|
isDraggedOver && jsx(DropIndicator, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,9 +45,6 @@
|
|
|
45
45
|
"react": "^16.8.0",
|
|
46
46
|
"react-dom": "^16.8.0"
|
|
47
47
|
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0"
|
|
50
|
-
},
|
|
51
48
|
"techstack": {
|
|
52
49
|
"@atlassian/frontend": {
|
|
53
50
|
"import-structure": [
|
|
@@ -83,7 +80,6 @@
|
|
|
83
80
|
]
|
|
84
81
|
}
|
|
85
82
|
},
|
|
86
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
87
83
|
"platform-feature-flags": {
|
|
88
84
|
"platform.editor.media.extended-resize-experience": {
|
|
89
85
|
"type": "boolean",
|