@atlaskit/editor-plugin-block-controls 7.2.1 → 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,13 @@
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
+
3
11
  ## 7.2.1
4
12
 
5
13
  ### Patch 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) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release')) {
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) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release')) {
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) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release')) {
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) && fg('platform_editor_breakout_resizing_hello_release')) {
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) && fg('platform_editor_breakout_resizing_hello_release')) {
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) && fg('platform_editor_breakout_resizing_hello_release')) {
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) && fg('platform_editor_breakout_resizing_hello_release')) {
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) && fg('platform_editor_breakout_resizing_hello_release')) {
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) && fg('platform_editor_breakout_resizing_hello_release')) {
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.1",
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",
@@ -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
  },