@atlaskit/editor-plugin-breakout 2.5.2 → 2.5.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
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 2.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167303](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167303)
|
|
8
|
+
[`da9bf8f3d80a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da9bf8f3d80a2) -
|
|
9
|
+
[ux] Prevents scroll after node was resized.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.5.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.setBreakoutWidth = setBreakoutWidth;
|
|
7
7
|
var _codeBlock = require("@atlaskit/editor-common/code-block");
|
|
8
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
9
|
var _singlePlayerExpand = require("../pm-plugins/utils/single-player-expand");
|
|
9
10
|
function setBreakoutWidth(width, mode, pos, isLivePage) {
|
|
10
11
|
return function (state, dispatch) {
|
|
@@ -30,6 +31,9 @@ function setBreakoutWidth(width, mode, pos, isLivePage) {
|
|
|
30
31
|
(0, _codeBlock.transferCodeBlockWrappedValue)(oldNode, newNode);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
34
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release')) {
|
|
35
|
+
tr.setMeta('scrollIntoView', false);
|
|
36
|
+
}
|
|
33
37
|
if (dispatch) {
|
|
34
38
|
dispatch(tr);
|
|
35
39
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { transferCodeBlockWrappedValue } from '@atlaskit/editor-common/code-block';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { updateExpandedStateNew } from '../pm-plugins/utils/single-player-expand';
|
|
3
4
|
export function setBreakoutWidth(width, mode, pos, isLivePage) {
|
|
4
5
|
return (state, dispatch) => {
|
|
@@ -24,6 +25,9 @@ export function setBreakoutWidth(width, mode, pos, isLivePage) {
|
|
|
24
25
|
transferCodeBlockWrappedValue(oldNode, newNode);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
if (fg('platform_editor_breakout_resizing_hello_release')) {
|
|
29
|
+
tr.setMeta('scrollIntoView', false);
|
|
30
|
+
}
|
|
27
31
|
if (dispatch) {
|
|
28
32
|
dispatch(tr);
|
|
29
33
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { transferCodeBlockWrappedValue } from '@atlaskit/editor-common/code-block';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
3
|
import { updateExpandedStateNew } from '../pm-plugins/utils/single-player-expand';
|
|
3
4
|
export function setBreakoutWidth(width, mode, pos, isLivePage) {
|
|
4
5
|
return function (state, dispatch) {
|
|
@@ -24,6 +25,9 @@ export function setBreakoutWidth(width, mode, pos, isLivePage) {
|
|
|
24
25
|
transferCodeBlockWrappedValue(oldNode, newNode);
|
|
25
26
|
}
|
|
26
27
|
}
|
|
28
|
+
if (fg('platform_editor_breakout_resizing_hello_release')) {
|
|
29
|
+
tr.setMeta('scrollIntoView', false);
|
|
30
|
+
}
|
|
27
31
|
if (dispatch) {
|
|
28
32
|
dispatch(tr);
|
|
29
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
50
50
|
"@atlaskit/theme": "^18.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
52
|
-
"@atlaskit/tokens": "^5.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^5.14.0",
|
|
52
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|
|
54
54
|
"@emotion/react": "^11.7.1",
|
|
55
55
|
"bind-event-listener": "^3.0.0",
|