@atlaskit/editor-plugin-block-controls 7.2.0 → 7.2.2
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-controls
|
|
2
2
|
|
|
3
|
+
## 7.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d24d26320c940`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d24d26320c940) -
|
|
8
|
+
FD-100510 clean up fg platform_editor_breakout_resizing_hello_release
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 7.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 7.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -189,7 +189,7 @@ var removeBreakoutMarks = function removeBreakoutMarks(tr, $from, to) {
|
|
|
189
189
|
if ((0, _experiments.editorExperiment)('platform_editor_element_drag_and_drop_multiselect', true)) {
|
|
190
190
|
tr.doc.nodesBetween($from.pos, to, function (node, pos, parent) {
|
|
191
191
|
// should never remove breakout from previous layoutSection
|
|
192
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
192
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
193
193
|
if (node.type.name === 'layoutSection') {
|
|
194
194
|
return false;
|
|
195
195
|
}
|
|
@@ -312,7 +312,7 @@ var moveToLayout = exports.moveToLayout = function moveToLayout(api) {
|
|
|
312
312
|
// if not found, get from source node,
|
|
313
313
|
var breakoutMode;
|
|
314
314
|
var breakoutWidth;
|
|
315
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
315
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
316
316
|
var _ref8 = getBreakoutModeAndWidth(toNode, breakout) || getBreakoutModeAndWidth(sourceContent, breakout) || {};
|
|
317
317
|
breakoutMode = _ref8.breakoutMode;
|
|
318
318
|
breakoutWidth = _ref8.breakoutWidth;
|
|
@@ -376,7 +376,7 @@ var moveToLayout = exports.moveToLayout = function moveToLayout(api) {
|
|
|
376
376
|
tr = (0, _removeFromSource.removeFromSource)(tr, $sourceFrom, sourceTo);
|
|
377
377
|
var mappedTo = tr.mapping.map(to);
|
|
378
378
|
tr.delete(mappedTo, mappedTo + toNodeWithoutBreakout.nodeSize).insert(mappedTo, newLayout);
|
|
379
|
-
if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
379
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
380
380
|
breakoutMode && tr.setNodeMarkup(mappedTo, newLayout.type, newLayout.attrs, [breakout.create({
|
|
381
381
|
mode: breakoutMode,
|
|
382
382
|
width: breakoutWidth
|
|
@@ -188,7 +188,7 @@ const removeBreakoutMarks = (tr, $from, to) => {
|
|
|
188
188
|
if (editorExperiment('platform_editor_element_drag_and_drop_multiselect', true)) {
|
|
189
189
|
tr.doc.nodesBetween($from.pos, to, (node, pos, parent) => {
|
|
190
190
|
// should never remove breakout from previous layoutSection
|
|
191
|
-
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
191
|
+
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
192
192
|
if (node.type.name === 'layoutSection') {
|
|
193
193
|
return false;
|
|
194
194
|
}
|
|
@@ -298,7 +298,7 @@ export const moveToLayout = api => (from, to, options) => ({
|
|
|
298
298
|
// if not found, get from source node,
|
|
299
299
|
let breakoutMode;
|
|
300
300
|
let breakoutWidth;
|
|
301
|
-
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
301
|
+
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
302
302
|
({
|
|
303
303
|
breakoutMode,
|
|
304
304
|
breakoutWidth
|
|
@@ -361,7 +361,7 @@ export const moveToLayout = api => (from, to, options) => ({
|
|
|
361
361
|
tr = removeFromSource(tr, $sourceFrom, sourceTo);
|
|
362
362
|
const mappedTo = tr.mapping.map(to);
|
|
363
363
|
tr.delete(mappedTo, mappedTo + toNodeWithoutBreakout.nodeSize).insert(mappedTo, newLayout);
|
|
364
|
-
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
364
|
+
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
365
365
|
breakoutMode && tr.setNodeMarkup(mappedTo, newLayout.type, newLayout.attrs, [breakout.create({
|
|
366
366
|
mode: breakoutMode,
|
|
367
367
|
width: breakoutWidth
|
|
@@ -183,7 +183,7 @@ var removeBreakoutMarks = function removeBreakoutMarks(tr, $from, to) {
|
|
|
183
183
|
if (editorExperiment('platform_editor_element_drag_and_drop_multiselect', true)) {
|
|
184
184
|
tr.doc.nodesBetween($from.pos, to, function (node, pos, parent) {
|
|
185
185
|
// should never remove breakout from previous layoutSection
|
|
186
|
-
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
186
|
+
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
187
187
|
if (node.type.name === 'layoutSection') {
|
|
188
188
|
return false;
|
|
189
189
|
}
|
|
@@ -306,7 +306,7 @@ export var moveToLayout = function moveToLayout(api) {
|
|
|
306
306
|
// if not found, get from source node,
|
|
307
307
|
var breakoutMode;
|
|
308
308
|
var breakoutWidth;
|
|
309
|
-
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
309
|
+
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
310
310
|
var _ref8 = getBreakoutModeAndWidth(toNode, breakout) || getBreakoutModeAndWidth(sourceContent, breakout) || {};
|
|
311
311
|
breakoutMode = _ref8.breakoutMode;
|
|
312
312
|
breakoutWidth = _ref8.breakoutWidth;
|
|
@@ -370,7 +370,7 @@ export var moveToLayout = function moveToLayout(api) {
|
|
|
370
370
|
tr = removeFromSource(tr, $sourceFrom, sourceTo);
|
|
371
371
|
var mappedTo = tr.mapping.map(to);
|
|
372
372
|
tr.delete(mappedTo, mappedTo + toNodeWithoutBreakout.nodeSize).insert(mappedTo, newLayout);
|
|
373
|
-
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
373
|
+
if (expValEquals('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
374
374
|
breakoutMode && tr.setNodeMarkup(mappedTo, newLayout.type, newLayout.attrs, [breakout.create({
|
|
375
375
|
mode: breakoutMode,
|
|
376
376
|
width: breakoutWidth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-controls",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.2",
|
|
4
4
|
"description": "Block controls plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
53
53
|
"@atlaskit/primitives": "^14.15.0",
|
|
54
54
|
"@atlaskit/theme": "^21.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^13.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^6.4.0",
|
|
57
57
|
"@atlaskit/tooltip": "^20.5.0",
|
|
58
58
|
"@babel/runtime": "^7.0.0",
|
|
@@ -153,9 +153,6 @@
|
|
|
153
153
|
"dst-a11y__replace-anchor-with-link__editor-jenga": {
|
|
154
154
|
"type": "boolean"
|
|
155
155
|
},
|
|
156
|
-
"platform_editor_breakout_resizing_hello_release": {
|
|
157
|
-
"type": "boolean"
|
|
158
|
-
},
|
|
159
156
|
"platform_editor_block_menu_patch_1": {
|
|
160
157
|
"type": "boolean"
|
|
161
158
|
},
|