@atlaskit/editor-plugin-breakout 1.8.4 → 1.8.5
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 +8 -0
- package/dist/cjs/plugin.js +1 -1
- package/dist/es2019/plugin.js +1 -1
- package/dist/esm/plugin.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 1.8.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#156102](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156102)
|
|
8
|
+
[`05bfe209f2801`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/05bfe209f2801) -
|
|
9
|
+
Replace platform.editor.core.increase-full-page-guttering with new FG
|
|
10
|
+
|
|
3
11
|
## 1.8.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -45,7 +45,7 @@ var BreakoutViewOld = /*#__PURE__*/function () {
|
|
|
45
45
|
|
|
46
46
|
// when editor padding = 32px the breakout padding is calculated as 96px (32 * 3)
|
|
47
47
|
// the extra '32' ensures nodes with breakout applied default to line length its below default width
|
|
48
|
-
var padding = (0, _platformFeatureFlags.fg)('
|
|
48
|
+
var padding = (0, _platformFeatureFlags.fg)('platform_editor_core_increase_full_page_guttering') ? (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2 + 32 : undefined;
|
|
49
49
|
var breakoutWidthPx = (0, _utils.calcBreakoutWidthPx)(_this.mark.attrs.mode, widthState.width, padding);
|
|
50
50
|
if (widthState.lineLength) {
|
|
51
51
|
if (breakoutWidthPx < widthState.lineLength) {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -31,7 +31,7 @@ class BreakoutViewOld {
|
|
|
31
31
|
|
|
32
32
|
// when editor padding = 32px the breakout padding is calculated as 96px (32 * 3)
|
|
33
33
|
// the extra '32' ensures nodes with breakout applied default to line length its below default width
|
|
34
|
-
const padding = fg('
|
|
34
|
+
const padding = fg('platform_editor_core_increase_full_page_guttering') ? akEditorGutterPaddingDynamic() * 2 + 32 : undefined;
|
|
35
35
|
let breakoutWidthPx = calcBreakoutWidthPx(this.mark.attrs.mode, widthState.width, padding);
|
|
36
36
|
if (widthState.lineLength) {
|
|
37
37
|
if (breakoutWidthPx < widthState.lineLength) {
|
package/dist/esm/plugin.js
CHANGED
|
@@ -38,7 +38,7 @@ var BreakoutViewOld = /*#__PURE__*/function () {
|
|
|
38
38
|
|
|
39
39
|
// when editor padding = 32px the breakout padding is calculated as 96px (32 * 3)
|
|
40
40
|
// the extra '32' ensures nodes with breakout applied default to line length its below default width
|
|
41
|
-
var padding = fg('
|
|
41
|
+
var padding = fg('platform_editor_core_increase_full_page_guttering') ? akEditorGutterPaddingDynamic() * 2 + 32 : undefined;
|
|
42
42
|
var breakoutWidthPx = calcBreakoutWidthPx(_this.mark.attrs.mode, widthState.width, padding);
|
|
43
43
|
if (widthState.lineLength) {
|
|
44
44
|
if (breakoutWidthPx < widthState.lineLength) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^42.3.1",
|
|
35
|
-
"@atlaskit/editor-common": "^94.
|
|
35
|
+
"@atlaskit/editor-common": "^94.8.0",
|
|
36
36
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
39
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
39
|
+
"@atlaskit/editor-shared-styles": "^3.1.0",
|
|
40
40
|
"@atlaskit/icon": "^22.24.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
42
42
|
"@atlaskit/theme": "^14.0.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"platform.editor.single-player-expand": {
|
|
99
99
|
"type": "boolean"
|
|
100
100
|
},
|
|
101
|
-
"
|
|
101
|
+
"platform_editor_core_increase_full_page_guttering": {
|
|
102
102
|
"type": "boolean"
|
|
103
103
|
},
|
|
104
104
|
"editor_support_code_block_wrapping": {
|