@atlaskit/editor-plugin-block-controls 1.4.5 → 1.4.6
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,184 +1,192 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 1.4.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#104497](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104497)
|
|
8
|
+
[`68c76374f675`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/68c76374f675) -
|
|
9
|
+
[ux] Adjust drag preview offset
|
|
10
|
+
|
|
3
11
|
## 1.4.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
6
14
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
- [#103935](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103935)
|
|
16
|
+
[`e9aa08ecec9b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9aa08ecec9b) -
|
|
17
|
+
Add block control plugin libra models and tests
|
|
10
18
|
|
|
11
19
|
## 1.4.4
|
|
12
20
|
|
|
13
21
|
### Patch Changes
|
|
14
22
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
- [#104094](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104094)
|
|
24
|
+
[`ae80ae898d90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ae80ae898d90) -
|
|
25
|
+
Refactor getSelection and add tests
|
|
18
26
|
|
|
19
27
|
## 1.4.3
|
|
20
28
|
|
|
21
29
|
### Patch Changes
|
|
22
30
|
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
- [#103721](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103721)
|
|
32
|
+
[`8c44ebf695aa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8c44ebf695aa) -
|
|
33
|
+
Adjust drag preview opacity
|
|
26
34
|
|
|
27
35
|
## 1.4.2
|
|
28
36
|
|
|
29
37
|
### Patch Changes
|
|
30
38
|
|
|
31
|
-
-
|
|
39
|
+
- Updated dependencies
|
|
32
40
|
|
|
33
41
|
## 1.4.1
|
|
34
42
|
|
|
35
43
|
### Patch Changes
|
|
36
44
|
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
45
|
+
- [#102680](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102680)
|
|
46
|
+
[`8b186c4a0475`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b186c4a0475) -
|
|
47
|
+
Show text controls on drag handle click
|
|
40
48
|
|
|
41
49
|
## 1.4.0
|
|
42
50
|
|
|
43
51
|
### Minor Changes
|
|
44
52
|
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
53
|
+
- [#101384](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101384)
|
|
54
|
+
[`649f601103e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/649f601103e0) -
|
|
55
|
+
[ux] Add autoscroller support to blocks plugin
|
|
48
56
|
|
|
49
57
|
## 1.3.12
|
|
50
58
|
|
|
51
59
|
### Patch Changes
|
|
52
60
|
|
|
53
|
-
-
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
- [#101305](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101305)
|
|
62
|
+
[`8df2f2cd6748`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8df2f2cd6748) -
|
|
63
|
+
Refactor drop target to use Pragmatic DnD indicator package
|
|
56
64
|
|
|
57
65
|
## 1.3.11
|
|
58
66
|
|
|
59
67
|
### Patch Changes
|
|
60
68
|
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
69
|
+
- [#100944](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100944)
|
|
70
|
+
[`236b42e205dd`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/236b42e205dd) -
|
|
71
|
+
Fix drag handle position on media node
|
|
72
|
+
- Updated dependencies
|
|
65
73
|
|
|
66
74
|
## 1.3.10
|
|
67
75
|
|
|
68
76
|
### Patch Changes
|
|
69
77
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
- [#100964](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100964)
|
|
79
|
+
[`d58e7d6f08e4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d58e7d6f08e4) -
|
|
80
|
+
[ux] Tweak CSS styles for drop targets
|
|
73
81
|
|
|
74
82
|
## 1.3.9
|
|
75
83
|
|
|
76
84
|
### Patch Changes
|
|
77
85
|
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
86
|
+
- [#100922](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100922)
|
|
87
|
+
[`d69797fc32b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d69797fc32b6) -
|
|
88
|
+
ED-22939 Fix drag handle not appearing for first node of document
|
|
81
89
|
|
|
82
90
|
## 1.3.8
|
|
83
91
|
|
|
84
92
|
### Patch Changes
|
|
85
93
|
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
- [#100787](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100787)
|
|
95
|
+
[`50f1093f6e70`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/50f1093f6e70) -
|
|
96
|
+
[ux] Fix node controls in incorrect pos when drag handle visible
|
|
89
97
|
|
|
90
98
|
## 1.3.7
|
|
91
99
|
|
|
92
100
|
### Patch Changes
|
|
93
101
|
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
-
|
|
102
|
+
- [#98222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98222)
|
|
103
|
+
[`d94cd00110eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d94cd00110eb) -
|
|
104
|
+
[ux] ED-23206 Set node selection when drag handle is clicked, dragged and content is dropped
|
|
105
|
+
- [#100193](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100193)
|
|
106
|
+
[`e9a08f4f88aa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9a08f4f88aa) -
|
|
107
|
+
[ux] Update drag handle position
|
|
108
|
+
- Updated dependencies
|
|
101
109
|
|
|
102
110
|
## 1.3.6
|
|
103
111
|
|
|
104
112
|
### Patch Changes
|
|
105
113
|
|
|
106
|
-
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
-
|
|
114
|
+
- [#100030](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100030)
|
|
115
|
+
[`f246ee5d3b7f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f246ee5d3b7f) -
|
|
116
|
+
[ux] Change drop target design, refactor styles
|
|
117
|
+
- Updated dependencies
|
|
110
118
|
|
|
111
119
|
## 1.3.5
|
|
112
120
|
|
|
113
121
|
### Patch Changes
|
|
114
122
|
|
|
115
|
-
-
|
|
123
|
+
- Updated dependencies
|
|
116
124
|
|
|
117
125
|
## 1.3.4
|
|
118
126
|
|
|
119
127
|
### Patch Changes
|
|
120
128
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
-
|
|
129
|
+
- [#99555](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99555)
|
|
130
|
+
[`703d23b83234`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/703d23b83234) -
|
|
131
|
+
[ux] Update drag handle style based on design
|
|
132
|
+
- Updated dependencies
|
|
125
133
|
|
|
126
134
|
## 1.3.3
|
|
127
135
|
|
|
128
136
|
### Patch Changes
|
|
129
137
|
|
|
130
|
-
-
|
|
131
|
-
|
|
132
|
-
|
|
138
|
+
- [#98101](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98101)
|
|
139
|
+
[`930a81c221d3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/930a81c221d3) -
|
|
140
|
+
Update example page to enable resizable table and media-single nodes
|
|
133
141
|
|
|
134
142
|
## 1.3.2
|
|
135
143
|
|
|
136
144
|
### Patch Changes
|
|
137
145
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
146
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
147
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
148
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
149
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
150
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
143
151
|
|
|
144
152
|
## 1.3.1
|
|
145
153
|
|
|
146
154
|
### Patch Changes
|
|
147
155
|
|
|
148
|
-
-
|
|
156
|
+
- Updated dependencies
|
|
149
157
|
|
|
150
158
|
## 1.3.0
|
|
151
159
|
|
|
152
160
|
### Minor Changes
|
|
153
161
|
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
162
|
+
- [#95811](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95811)
|
|
163
|
+
[`115361312a0e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/115361312a0e) -
|
|
164
|
+
move drag position data to plugin state and map positions for collab support
|
|
157
165
|
|
|
158
166
|
## 1.2.0
|
|
159
167
|
|
|
160
168
|
### Minor Changes
|
|
161
169
|
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
- [#93512](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93512)
|
|
171
|
+
[`15155cd6eb61`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15155cd6eb61) -
|
|
172
|
+
add basic dnd behaviour to block controls plugin
|
|
165
173
|
|
|
166
174
|
## 1.1.0
|
|
167
175
|
|
|
168
176
|
### Minor Changes
|
|
169
177
|
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
|
|
178
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
179
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
180
|
+
bumped editor-prosemirror version to 4.0.0
|
|
173
181
|
|
|
174
182
|
### Patch Changes
|
|
175
183
|
|
|
176
|
-
-
|
|
184
|
+
- Updated dependencies
|
|
177
185
|
|
|
178
186
|
## 1.0.0
|
|
179
187
|
|
|
180
188
|
### Major Changes
|
|
181
189
|
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
190
|
+
- [#91350](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91350)
|
|
191
|
+
[`f27c4b41ebed`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f27c4b41ebed) -
|
|
192
|
+
Adds new Editor Block Controls plugin
|
|
@@ -78,14 +78,6 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
|
|
|
78
78
|
onGenerateDragPreview: function onGenerateDragPreview(_ref3) {
|
|
79
79
|
var nativeSetDragImage = _ref3.nativeSetDragImage;
|
|
80
80
|
(0, _setCustomNativeDragPreview.setCustomNativeDragPreview)({
|
|
81
|
-
getOffset: function getOffset() {
|
|
82
|
-
var rect = domRef.current.getBoundingClientRect();
|
|
83
|
-
// Offset the drag preview to the center of the element
|
|
84
|
-
return {
|
|
85
|
-
x: 0,
|
|
86
|
-
y: rect.height / 2
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
81
|
render: function render(_ref4) {
|
|
90
82
|
var container = _ref4.container;
|
|
91
83
|
return (0, _dragPreview.dragPreview)(container, domRef);
|
|
@@ -69,14 +69,6 @@ export const DragHandle = ({
|
|
|
69
69
|
nativeSetDragImage
|
|
70
70
|
}) => {
|
|
71
71
|
setCustomNativeDragPreview({
|
|
72
|
-
getOffset: () => {
|
|
73
|
-
const rect = domRef.current.getBoundingClientRect();
|
|
74
|
-
// Offset the drag preview to the center of the element
|
|
75
|
-
return {
|
|
76
|
-
x: 0,
|
|
77
|
-
y: rect.height / 2
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
72
|
render: ({
|
|
81
73
|
container
|
|
82
74
|
}) => {
|
|
@@ -70,14 +70,6 @@ export var DragHandle = function DragHandle(_ref) {
|
|
|
70
70
|
onGenerateDragPreview: function onGenerateDragPreview(_ref3) {
|
|
71
71
|
var nativeSetDragImage = _ref3.nativeSetDragImage;
|
|
72
72
|
setCustomNativeDragPreview({
|
|
73
|
-
getOffset: function getOffset() {
|
|
74
|
-
var rect = domRef.current.getBoundingClientRect();
|
|
75
|
-
// Offset the drag preview to the center of the element
|
|
76
|
-
return {
|
|
77
|
-
x: 0,
|
|
78
|
-
y: rect.height / 2
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
73
|
render: function render(_ref4) {
|
|
82
74
|
var container = _ref4.container;
|
|
83
75
|
return dragPreview(container, domRef);
|