@atlaskit/editor-plugin-breakout 1.8.4 → 1.8.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,21 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 1.8.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#159176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159176)
8
+ [`8f1d77592a9dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8f1d77592a9dc) -
9
+ Bump adf-schema to 44.2.0
10
+
11
+ ## 1.8.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#156102](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/156102)
16
+ [`05bfe209f2801`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/05bfe209f2801) -
17
+ Replace platform.editor.core.increase-full-page-guttering with new FG
18
+
3
19
  ## 1.8.4
4
20
 
5
21
  ### Patch Changes
@@ -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)('platform.editor.core.increase-full-page-guttering') ? (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2 + 32 : undefined;
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) {
@@ -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('platform.editor.core.increase-full-page-guttering') ? akEditorGutterPaddingDynamic() * 2 + 32 : undefined;
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) {
@@ -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('platform.editor.core.increase-full-page-guttering') ? akEditorGutterPaddingDynamic() * 2 + 32 : undefined;
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.4",
3
+ "version": "1.8.6",
4
4
  "description": "Breakout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,12 +31,12 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^42.3.1",
35
- "@atlaskit/editor-common": "^94.2.0",
34
+ "@atlaskit/adf-schema": "^44.2.0",
35
+ "@atlaskit/editor-common": "^94.9.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.0.0",
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
- "platform.editor.core.increase-full-page-guttering": {
101
+ "platform_editor_core_increase_full_page_guttering": {
102
102
  "type": "boolean"
103
103
  },
104
104
  "editor_support_code_block_wrapping": {