@atlaskit/editor-plugin-block-controls 3.11.2 → 3.12.0
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,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 3.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#141039](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/141039)
|
|
8
|
+
[`ac95ffeb54bda`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ac95ffeb54bda) -
|
|
9
|
+
ED-27226 clean up platform_editor_advanced_layouts_redraw_on_drag
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 3.11.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -281,7 +281,7 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
|
|
|
281
281
|
// Re-create node decorations
|
|
282
282
|
var isDecSetEmpty = decorations === _view2.DecorationSet.empty;
|
|
283
283
|
var isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged;
|
|
284
|
-
var shouldRedrawNodeDecs = !isResizerResizing && (
|
|
284
|
+
var shouldRedrawNodeDecs = !isResizerResizing && (isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging));
|
|
285
285
|
var isActiveNodeModified = false;
|
|
286
286
|
if (api && shouldRedrawNodeDecs) {
|
|
287
287
|
var oldNodeDecs = (0, _decorationsAnchor.findNodeDecs)(decorations, from, to);
|
|
@@ -281,7 +281,7 @@ export const apply = (api, formatMessage, tr, currentState, newState, flags, nod
|
|
|
281
281
|
// Re-create node decorations
|
|
282
282
|
const isDecSetEmpty = decorations === DecorationSet.empty;
|
|
283
283
|
const isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged;
|
|
284
|
-
const shouldRedrawNodeDecs = !isResizerResizing && (
|
|
284
|
+
const shouldRedrawNodeDecs = !isResizerResizing && (isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging));
|
|
285
285
|
let isActiveNodeModified = false;
|
|
286
286
|
if (api && shouldRedrawNodeDecs) {
|
|
287
287
|
const oldNodeDecs = findNodeDecs(decorations, from, to);
|
|
@@ -274,7 +274,7 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, flag
|
|
|
274
274
|
// Re-create node decorations
|
|
275
275
|
var isDecSetEmpty = decorations === DecorationSet.empty;
|
|
276
276
|
var isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged;
|
|
277
|
-
var shouldRedrawNodeDecs = !isResizerResizing && (
|
|
277
|
+
var shouldRedrawNodeDecs = !isResizerResizing && (isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging));
|
|
278
278
|
var isActiveNodeModified = false;
|
|
279
279
|
if (api && shouldRedrawNodeDecs) {
|
|
280
280
|
var oldNodeDecs = findNodeDecs(decorations, from, to);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
36
|
-
"@atlaskit/editor-common": "^103.
|
|
36
|
+
"@atlaskit/editor-common": "^103.19.0",
|
|
37
37
|
"@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
51
51
|
"@atlaskit/icon": "^25.6.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
|
-
"@atlaskit/pragmatic-drag-and-drop": "^1.
|
|
53
|
+
"@atlaskit/pragmatic-drag-and-drop": "^1.6.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.1.0",
|
|
56
56
|
"@atlaskit/primitives": "^14.4.0",
|
|
57
57
|
"@atlaskit/theme": "^18.0.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^4.15.0",
|
|
59
59
|
"@atlaskit/tokens": "^4.8.0",
|
|
60
60
|
"@atlaskit/tooltip": "^20.0.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
@@ -115,9 +115,6 @@
|
|
|
115
115
|
"platform_editor_element_dnd_nested_fix_patch_6": {
|
|
116
116
|
"type": "boolean"
|
|
117
117
|
},
|
|
118
|
-
"platform_editor_advanced_layouts_redraw_on_drag": {
|
|
119
|
-
"type": "boolean"
|
|
120
|
-
},
|
|
121
118
|
"platform_editor_use_nested_table_pm_nodes": {
|
|
122
119
|
"type": "boolean"
|
|
123
120
|
},
|