@atlaskit/editor-plugin-breakout 14.0.5 → 14.0.6

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,12 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 14.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bb2e72aae0d58`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bb2e72aae0d58) -
8
+ [ux] [EDITOR-8433] fix the resizing guidelines for extension nodes behind resizing experiment
9
+
3
10
  ## 14.0.5
4
11
 
5
12
  ### Patch Changes
@@ -28,6 +28,7 @@ var GUIDELINE_KEYS = exports.GUIDELINE_KEYS = {
28
28
  maxWidthRight: 'max_width_right'
29
29
  };
30
30
  var SYNC_BLOCK_PADDING = 19;
31
+ var EXTENSION_WRAPPER_PADDING = 20;
31
32
  var AK_NESTED_DND_GUTTER_OFFSET = 8;
32
33
  var roundToNearest = function roundToNearest(value) {
33
34
  var interval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.5;
@@ -53,6 +54,11 @@ var getGuidelines = exports.getGuidelines = (0, _memoizeOne.default)(function (i
53
54
  innerPaddingOffset = SYNC_BLOCK_PADDING;
54
55
  }
55
56
  break;
57
+ case 'extension':
58
+ case 'multiBodiedExtension':
59
+ case 'bodiedExtension':
60
+ innerPaddingOffset = EXTENSION_WRAPPER_PADDING;
61
+ break;
56
62
  default:
57
63
  break;
58
64
  }
@@ -21,6 +21,7 @@ export const GUIDELINE_KEYS = {
21
21
  maxWidthRight: 'max_width_right'
22
22
  };
23
23
  const SYNC_BLOCK_PADDING = 19;
24
+ const EXTENSION_WRAPPER_PADDING = 20;
24
25
  const AK_NESTED_DND_GUTTER_OFFSET = 8;
25
26
  const roundToNearest = (value, interval = 0.5) => Math.round(value / interval) * interval;
26
27
  export const getGuidelines = memoizeOne((isResizing, newWidth, getEditorWidth, nodeType) => {
@@ -43,6 +44,11 @@ export const getGuidelines = memoizeOne((isResizing, newWidth, getEditorWidth, n
43
44
  innerPaddingOffset = SYNC_BLOCK_PADDING;
44
45
  }
45
46
  break;
47
+ case 'extension':
48
+ case 'multiBodiedExtension':
49
+ case 'bodiedExtension':
50
+ innerPaddingOffset = EXTENSION_WRAPPER_PADDING;
51
+ break;
46
52
  default:
47
53
  break;
48
54
  }
@@ -21,6 +21,7 @@ export var GUIDELINE_KEYS = {
21
21
  maxWidthRight: 'max_width_right'
22
22
  };
23
23
  var SYNC_BLOCK_PADDING = 19;
24
+ var EXTENSION_WRAPPER_PADDING = 20;
24
25
  var AK_NESTED_DND_GUTTER_OFFSET = 8;
25
26
  var roundToNearest = function roundToNearest(value) {
26
27
  var interval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.5;
@@ -46,6 +47,11 @@ export var getGuidelines = memoizeOne(function (isResizing, newWidth, getEditorW
46
47
  innerPaddingOffset = SYNC_BLOCK_PADDING;
47
48
  }
48
49
  break;
50
+ case 'extension':
51
+ case 'multiBodiedExtension':
52
+ case 'bodiedExtension':
53
+ innerPaddingOffset = EXTENSION_WRAPPER_PADDING;
54
+ break;
49
55
  default:
50
56
  break;
51
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "14.0.5",
3
+ "version": "14.0.6",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",