@atlaskit/editor-plugin-block-controls 9.1.4 → 9.1.5
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
|
+
## 9.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1e1ca592da4fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e1ca592da4fd) -
|
|
8
|
+
Clean up feature gate editor_native_anchor_remove_decoration_in_apply (gate is true)
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 9.1.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -366,7 +366,7 @@ var _apply = exports.apply = function apply(api, formatMessage, tr, currentState
|
|
|
366
366
|
var isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged || (0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && hasJustFinishedResizing;
|
|
367
367
|
var shouldRedrawNodeDecs = !isResizerResizing && (isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging)) &&
|
|
368
368
|
// Skip expensive anchor node decoration recalculations when native anchor support is enabled
|
|
369
|
-
!(
|
|
369
|
+
!(0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
370
370
|
var isActiveNodeModified = false;
|
|
371
371
|
if (api && shouldRedrawNodeDecs) {
|
|
372
372
|
var oldNodeDecs = (0, _decorationsAnchor.findNodeDecs)(newState, decorations, from, to);
|
|
@@ -357,7 +357,7 @@ export const apply = (api, formatMessage, tr, currentState, newState, flags, nod
|
|
|
357
357
|
const isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged || editorExperiment('platform_editor_breakout_resizing', true) && hasJustFinishedResizing;
|
|
358
358
|
const shouldRedrawNodeDecs = !isResizerResizing && (isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging)) &&
|
|
359
359
|
// Skip expensive anchor node decoration recalculations when native anchor support is enabled
|
|
360
|
-
!
|
|
360
|
+
!expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
361
361
|
let isActiveNodeModified = false;
|
|
362
362
|
if (api && shouldRedrawNodeDecs) {
|
|
363
363
|
const oldNodeDecs = findNodeDecs(newState, decorations, from, to);
|
|
@@ -359,7 +359,7 @@ var _apply = function apply(api, formatMessage, tr, currentState, newState, flag
|
|
|
359
359
|
var isNodeDecsMissing = isDecSetEmpty || maybeNodeCountChanged || editorExperiment('platform_editor_breakout_resizing', true) && hasJustFinishedResizing;
|
|
360
360
|
var shouldRedrawNodeDecs = !isResizerResizing && (isNodeDecsMissing || (meta === null || meta === void 0 ? void 0 : meta.isDragging)) &&
|
|
361
361
|
// Skip expensive anchor node decoration recalculations when native anchor support is enabled
|
|
362
|
-
!
|
|
362
|
+
!expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true);
|
|
363
363
|
var isActiveNodeModified = false;
|
|
364
364
|
if (api && shouldRedrawNodeDecs) {
|
|
365
365
|
var oldNodeDecs = findNodeDecs(newState, decorations, from, to);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.5",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
57
57
|
"@atlaskit/primitives": "^18.1.0",
|
|
58
58
|
"@atlaskit/theme": "^23.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^55.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^55.1.0",
|
|
60
60
|
"@atlaskit/tokens": "^11.4.0",
|
|
61
61
|
"@atlaskit/tooltip": "^21.1.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
@@ -129,9 +129,6 @@
|
|
|
129
129
|
"platform_editor_fix_widget_destroy": {
|
|
130
130
|
"type": "boolean"
|
|
131
131
|
},
|
|
132
|
-
"editor_native_anchor_remove_decoration_in_apply": {
|
|
133
|
-
"type": "boolean"
|
|
134
|
-
},
|
|
135
132
|
"platform_editor_content_mode_button_mvp": {
|
|
136
133
|
"type": "boolean"
|
|
137
134
|
},
|