@atlaskit/editor-plugin-block-controls 2.16.2 → 2.16.3
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
|
@@ -105,13 +105,13 @@ var newApply = exports.newApply = function newApply(api, formatMessage, tr, curr
|
|
|
105
105
|
var _meta$activeNode, _activeNode, _activeNode2, _meta$activeNode$hand, _meta$isDragging, _meta$isDragging2, _meta$editorHeight, _meta$editorWidthLeft, _meta$editorWidthRigh, _meta$isPMDragging;
|
|
106
106
|
var activeNode = currentState.activeNode,
|
|
107
107
|
decorations = currentState.decorations,
|
|
108
|
-
|
|
108
|
+
isResizerResizing = currentState.isResizerResizing;
|
|
109
|
+
var editorHeight = currentState.editorHeight,
|
|
109
110
|
editorWidthLeft = currentState.editorWidthLeft,
|
|
110
111
|
editorWidthRight = currentState.editorWidthRight,
|
|
111
112
|
isDragging = currentState.isDragging,
|
|
112
113
|
isMenuOpen = currentState.isMenuOpen,
|
|
113
|
-
isPMDragging = currentState.isPMDragging
|
|
114
|
-
isResizerResizing = currentState.isResizerResizing;
|
|
114
|
+
isPMDragging = currentState.isPMDragging;
|
|
115
115
|
var isActiveNodeDeleted = false;
|
|
116
116
|
|
|
117
117
|
// Remap existing decorations and activeNode when steps exist
|
|
@@ -239,14 +239,14 @@ var oldApply = exports.oldApply = function oldApply(api, formatMessage, tr, curr
|
|
|
239
239
|
var _meta$activeNode2, _meta$activeNode$hand2, _activeNodeWithNewNod, _meta$activeNode8, _meta$isDragging4, _meta$editorHeight2, _meta$editorWidthLeft2, _meta$editorWidthRigh2, _meta$isPMDragging2;
|
|
240
240
|
var isNestedEnabled = flags.isNestedEnabled;
|
|
241
241
|
var activeNode = currentState.activeNode,
|
|
242
|
-
decorations = currentState.decorations,
|
|
243
242
|
isMenuOpen = currentState.isMenuOpen,
|
|
244
243
|
editorHeight = currentState.editorHeight,
|
|
245
244
|
editorWidthLeft = currentState.editorWidthLeft,
|
|
246
245
|
editorWidthRight = currentState.editorWidthRight,
|
|
247
|
-
isResizerResizing = currentState.isResizerResizing,
|
|
248
246
|
isDragging = currentState.isDragging,
|
|
249
247
|
isPMDragging = currentState.isPMDragging;
|
|
248
|
+
var decorations = currentState.decorations,
|
|
249
|
+
isResizerResizing = currentState.isResizerResizing;
|
|
250
250
|
|
|
251
251
|
// Remap existing decorations when steps exist
|
|
252
252
|
if (tr.docChanged) {
|
|
@@ -6,7 +6,7 @@ import { moveNodeViaShortcut } from '../editor-commands/move-node';
|
|
|
6
6
|
import { showDragHandleAtSelection } from '../editor-commands/show-drag-handle';
|
|
7
7
|
import { DIRECTION } from './utils/consts';
|
|
8
8
|
function keymapList(api, formatMessage) {
|
|
9
|
-
|
|
9
|
+
const keymapList = {};
|
|
10
10
|
if (api && fg('platform_editor_element_drag_and_drop_ed_23873')) {
|
|
11
11
|
bindKeymapWithCommand(
|
|
12
12
|
// Ignored via go/ees005
|
|
@@ -100,15 +100,16 @@ export const newApply = (api, formatMessage, tr, currentState, newState, flags,
|
|
|
100
100
|
let {
|
|
101
101
|
activeNode,
|
|
102
102
|
decorations,
|
|
103
|
+
isResizerResizing
|
|
104
|
+
} = currentState;
|
|
105
|
+
const {
|
|
103
106
|
editorHeight,
|
|
104
107
|
editorWidthLeft,
|
|
105
108
|
editorWidthRight,
|
|
106
109
|
isDragging,
|
|
107
110
|
isMenuOpen,
|
|
108
111
|
// NOT USED
|
|
109
|
-
isPMDragging
|
|
110
|
-
// NOT USED
|
|
111
|
-
isResizerResizing
|
|
112
|
+
isPMDragging // NOT USED
|
|
112
113
|
} = currentState;
|
|
113
114
|
let isActiveNodeDeleted = false;
|
|
114
115
|
|
|
@@ -237,17 +238,19 @@ export const oldApply = (api, formatMessage, tr, currentState, oldState, newStat
|
|
|
237
238
|
const {
|
|
238
239
|
isNestedEnabled
|
|
239
240
|
} = flags;
|
|
240
|
-
|
|
241
|
+
const {
|
|
241
242
|
activeNode,
|
|
242
|
-
decorations,
|
|
243
243
|
isMenuOpen,
|
|
244
244
|
editorHeight,
|
|
245
245
|
editorWidthLeft,
|
|
246
246
|
editorWidthRight,
|
|
247
|
-
isResizerResizing,
|
|
248
247
|
isDragging,
|
|
249
248
|
isPMDragging
|
|
250
249
|
} = currentState;
|
|
250
|
+
let {
|
|
251
|
+
decorations,
|
|
252
|
+
isResizerResizing
|
|
253
|
+
} = currentState;
|
|
251
254
|
|
|
252
255
|
// Remap existing decorations when steps exist
|
|
253
256
|
if (tr.docChanged) {
|
|
@@ -98,13 +98,13 @@ export var newApply = function newApply(api, formatMessage, tr, currentState, ne
|
|
|
98
98
|
var _meta$activeNode, _activeNode, _activeNode2, _meta$activeNode$hand, _meta$isDragging, _meta$isDragging2, _meta$editorHeight, _meta$editorWidthLeft, _meta$editorWidthRigh, _meta$isPMDragging;
|
|
99
99
|
var activeNode = currentState.activeNode,
|
|
100
100
|
decorations = currentState.decorations,
|
|
101
|
-
|
|
101
|
+
isResizerResizing = currentState.isResizerResizing;
|
|
102
|
+
var editorHeight = currentState.editorHeight,
|
|
102
103
|
editorWidthLeft = currentState.editorWidthLeft,
|
|
103
104
|
editorWidthRight = currentState.editorWidthRight,
|
|
104
105
|
isDragging = currentState.isDragging,
|
|
105
106
|
isMenuOpen = currentState.isMenuOpen,
|
|
106
|
-
isPMDragging = currentState.isPMDragging
|
|
107
|
-
isResizerResizing = currentState.isResizerResizing;
|
|
107
|
+
isPMDragging = currentState.isPMDragging;
|
|
108
108
|
var isActiveNodeDeleted = false;
|
|
109
109
|
|
|
110
110
|
// Remap existing decorations and activeNode when steps exist
|
|
@@ -232,14 +232,14 @@ export var oldApply = function oldApply(api, formatMessage, tr, currentState, ol
|
|
|
232
232
|
var _meta$activeNode2, _meta$activeNode$hand2, _activeNodeWithNewNod, _meta$activeNode8, _meta$isDragging4, _meta$editorHeight2, _meta$editorWidthLeft2, _meta$editorWidthRigh2, _meta$isPMDragging2;
|
|
233
233
|
var isNestedEnabled = flags.isNestedEnabled;
|
|
234
234
|
var activeNode = currentState.activeNode,
|
|
235
|
-
decorations = currentState.decorations,
|
|
236
235
|
isMenuOpen = currentState.isMenuOpen,
|
|
237
236
|
editorHeight = currentState.editorHeight,
|
|
238
237
|
editorWidthLeft = currentState.editorWidthLeft,
|
|
239
238
|
editorWidthRight = currentState.editorWidthRight,
|
|
240
|
-
isResizerResizing = currentState.isResizerResizing,
|
|
241
239
|
isDragging = currentState.isDragging,
|
|
242
240
|
isPMDragging = currentState.isPMDragging;
|
|
241
|
+
var decorations = currentState.decorations,
|
|
242
|
+
isResizerResizing = currentState.isResizerResizing;
|
|
243
243
|
|
|
244
244
|
// Remap existing decorations when steps exist
|
|
245
245
|
if (tr.docChanged) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.3",
|
|
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": "^46.1.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^98.0.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",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^13.3.0",
|
|
50
50
|
"@atlaskit/theme": "^14.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^2.31.0",
|
|
52
52
|
"@atlaskit/tokens": "^2.5.0",
|
|
53
53
|
"@atlaskit/tooltip": "^19.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|