@atlaskit/editor-plugin-block-controls 1.6.0 → 1.6.1
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.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#121921](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121921)
|
|
8
|
+
[`f928fa58107c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f928fa58107c6) -
|
|
9
|
+
Fix jitter issue when hovering over chart and expand node
|
|
10
|
+
|
|
3
11
|
## 1.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -142,8 +142,9 @@ var mouseMoveWrapperDecorations = exports.mouseMoveWrapperDecorations = function
|
|
|
142
142
|
return decs;
|
|
143
143
|
};
|
|
144
144
|
var dragHandleDecoration = exports.dragHandleDecoration = function dragHandleDecoration(api, getIntl, pos, anchorName, nodeType, handleOptions) {
|
|
145
|
+
var elementType = (0, _platformFeatureFlags.fg)('platform_editor_element_drag_and_drop_ed_24150') ? 'span' : 'div';
|
|
145
146
|
return _view.Decoration.widget(pos, function (view, getPos) {
|
|
146
|
-
var element = document.createElement(
|
|
147
|
+
var element = document.createElement(elementType);
|
|
147
148
|
// Need to set it to inline to avoid text being split when merging two paragraphs
|
|
148
149
|
element.style.display = 'inline';
|
|
149
150
|
element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
|
|
@@ -136,8 +136,9 @@ export const mouseMoveWrapperDecorations = (newState, api) => {
|
|
|
136
136
|
return decs;
|
|
137
137
|
};
|
|
138
138
|
export const dragHandleDecoration = (api, getIntl, pos, anchorName, nodeType, handleOptions) => {
|
|
139
|
+
const elementType = fg('platform_editor_element_drag_and_drop_ed_24150') ? 'span' : 'div';
|
|
139
140
|
return Decoration.widget(pos, (view, getPos) => {
|
|
140
|
-
const element = document.createElement(
|
|
141
|
+
const element = document.createElement(elementType);
|
|
141
142
|
// Need to set it to inline to avoid text being split when merging two paragraphs
|
|
142
143
|
element.style.display = 'inline';
|
|
143
144
|
element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
|
|
@@ -135,8 +135,9 @@ export var mouseMoveWrapperDecorations = function mouseMoveWrapperDecorations(ne
|
|
|
135
135
|
return decs;
|
|
136
136
|
};
|
|
137
137
|
export var dragHandleDecoration = function dragHandleDecoration(api, getIntl, pos, anchorName, nodeType, handleOptions) {
|
|
138
|
+
var elementType = fg('platform_editor_element_drag_and_drop_ed_24150') ? 'span' : 'div';
|
|
138
139
|
return Decoration.widget(pos, function (view, getPos) {
|
|
139
|
-
var element = document.createElement(
|
|
140
|
+
var element = document.createElement(elementType);
|
|
140
141
|
// Need to set it to inline to avoid text being split when merging two paragraphs
|
|
141
142
|
element.style.display = 'inline';
|
|
142
143
|
element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -154,6 +154,9 @@
|
|
|
154
154
|
},
|
|
155
155
|
"platform_editor_drag_and_drop_target_gap_fix": {
|
|
156
156
|
"type": "boolean"
|
|
157
|
+
},
|
|
158
|
+
"platform_editor_element_drag_and_drop_ed_24150": {
|
|
159
|
+
"type": "boolean"
|
|
157
160
|
}
|
|
158
161
|
}
|
|
159
162
|
}
|