@atlaskit/editor-plugin-block-controls 2.13.7 → 2.13.8
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 2.13.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#161257](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/161257)
|
|
8
|
+
[`8272113e38746`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8272113e38746) -
|
|
9
|
+
Fix anchor name out of sync on edited node while dragging
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.13.7
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -139,7 +139,7 @@ var newApply = exports.newApply = function newApply(api, formatMessage, tr, curr
|
|
|
139
139
|
// Re-create node decorations
|
|
140
140
|
var isDecSetEmpty = decorations === _view2.DecorationSet.empty;
|
|
141
141
|
var isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged;
|
|
142
|
-
var shouldRedrawNodeDecs = !isResizerResizing && isNodeDecsMissing;
|
|
142
|
+
var shouldRedrawNodeDecs = !isResizerResizing && ((0, _platformFeatureFlags.fg)('platform_editor_advanced_layouts_redraw_on_drag') ? isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging) : isNodeDecsMissing);
|
|
143
143
|
var isActiveNodeModified = false;
|
|
144
144
|
if (api && shouldRedrawNodeDecs) {
|
|
145
145
|
var oldNodeDecs = (0, _decorationsAnchor.findNodeDecs)(decorations, from, to);
|
|
@@ -138,7 +138,7 @@ export const newApply = (api, formatMessage, tr, currentState, newState, flags,
|
|
|
138
138
|
// Re-create node decorations
|
|
139
139
|
const isDecSetEmpty = decorations === DecorationSet.empty;
|
|
140
140
|
const isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged;
|
|
141
|
-
const shouldRedrawNodeDecs = !isResizerResizing && isNodeDecsMissing;
|
|
141
|
+
const shouldRedrawNodeDecs = !isResizerResizing && (fg('platform_editor_advanced_layouts_redraw_on_drag') ? isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging) : isNodeDecsMissing);
|
|
142
142
|
let isActiveNodeModified = false;
|
|
143
143
|
if (api && shouldRedrawNodeDecs) {
|
|
144
144
|
const oldNodeDecs = findNodeDecs(decorations, from, to);
|
|
@@ -132,7 +132,7 @@ export var newApply = function newApply(api, formatMessage, tr, currentState, ne
|
|
|
132
132
|
// Re-create node decorations
|
|
133
133
|
var isDecSetEmpty = decorations === DecorationSet.empty;
|
|
134
134
|
var isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged;
|
|
135
|
-
var shouldRedrawNodeDecs = !isResizerResizing && isNodeDecsMissing;
|
|
135
|
+
var shouldRedrawNodeDecs = !isResizerResizing && (fg('platform_editor_advanced_layouts_redraw_on_drag') ? isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging) : isNodeDecsMissing);
|
|
136
136
|
var isActiveNodeModified = false;
|
|
137
137
|
if (api && shouldRedrawNodeDecs) {
|
|
138
138
|
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": "2.13.
|
|
3
|
+
"version": "2.13.8",
|
|
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": "^44.2.0",
|
|
34
|
-
"@atlaskit/editor-common": "^94.
|
|
34
|
+
"@atlaskit/editor-common": "^94.14.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",
|
|
@@ -159,6 +159,9 @@
|
|
|
159
159
|
},
|
|
160
160
|
"platform_editor_advanced_layouts_pre_release_2": {
|
|
161
161
|
"type": "boolean"
|
|
162
|
+
},
|
|
163
|
+
"platform_editor_advanced_layouts_redraw_on_drag": {
|
|
164
|
+
"type": "boolean"
|
|
162
165
|
}
|
|
163
166
|
}
|
|
164
167
|
}
|