@atlaskit/editor-plugin-breakout 1.2.2 → 1.2.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/.eslintrc.js CHANGED
@@ -1,18 +1,18 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- '@typescript-eslint/ban-types': [
6
- 'error',
7
- {
8
- types: {
9
- 'React.FC':
10
- 'Please use types directly on props instead, and explicitly define children if required',
11
- 'React.FunctionalComponent':
12
- 'Please use types directly on props instead, and explicitly define children if required',
13
- },
14
- extendDefaults: false,
15
- },
16
- ],
17
- },
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ '@typescript-eslint/ban-types': [
6
+ 'error',
7
+ {
8
+ types: {
9
+ 'React.FC':
10
+ 'Please use types directly on props instead, and explicitly define children if required',
11
+ 'React.FunctionalComponent':
12
+ 'Please use types directly on props instead, and explicitly define children if required',
13
+ },
14
+ extendDefaults: false,
15
+ },
16
+ ],
17
+ },
18
18
  };
package/CHANGELOG.md CHANGED
@@ -1,241 +1,250 @@
1
1
  # @atlaskit/editor-plugin-breakout
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#106586](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106586)
8
+ [`a61ec7d27da8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a61ec7d27da8) -
9
+ Use editor padding changes in breakout mark
10
+ - Updated dependencies
11
+
3
12
  ## 1.2.2
4
13
 
5
14
  ### Patch Changes
6
15
 
7
- - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
8
- [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
9
- [ED-23332] Update adf-schema package to 36.10.1
10
- - Updated dependencies
16
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
17
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
18
+ [ED-23332] Update adf-schema package to 36.10.1
19
+ - Updated dependencies
11
20
 
12
21
  ## 1.2.1
13
22
 
14
23
  ### Patch Changes
15
24
 
16
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
17
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
18
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
25
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
26
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
27
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
19
28
 
20
29
  ## 1.2.0
21
30
 
22
31
  ### Minor Changes
23
32
 
24
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
25
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
26
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
33
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
34
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
35
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
27
36
 
28
37
  ### Patch Changes
29
38
 
30
- - Updated dependencies
39
+ - Updated dependencies
31
40
 
32
41
  ## 1.1.7
33
42
 
34
43
  ### Patch Changes
35
44
 
36
- - Updated dependencies
45
+ - Updated dependencies
37
46
 
38
47
  ## 1.1.6
39
48
 
40
49
  ### Patch Changes
41
50
 
42
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
43
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
44
- [ED-22282] Bump adf-schema to 36.1.0
51
+ - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
52
+ [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
53
+ [ED-22282] Bump adf-schema to 36.1.0
45
54
 
46
55
  ## 1.1.5
47
56
 
48
57
  ### Patch Changes
49
58
 
50
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
51
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
52
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
53
- language triggering composition on an empty line.This was fixed in a patch bump of
54
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
59
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
60
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
61
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
62
+ language triggering composition on an empty line.This was fixed in a patch bump of
63
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
55
64
 
56
65
  ## 1.1.4
57
66
 
58
67
  ### Patch Changes
59
68
 
60
- - Updated dependencies
69
+ - Updated dependencies
61
70
 
62
71
  ## 1.1.3
63
72
 
64
73
  ### Patch Changes
65
74
 
66
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
67
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
68
- [ED-23102] Bump ADF schema to version 35.12.2
75
+ - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
76
+ [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
77
+ [ED-23102] Bump ADF schema to version 35.12.2
69
78
 
70
79
  ## 1.1.2
71
80
 
72
81
  ### Patch Changes
73
82
 
74
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
75
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
76
- [ED-23097] Bump ADF schema to version 35.12.1
77
- - [#94398](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94398)
78
- [`4df808e35fda`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4df808e35fda) -
79
- [ux] [ED-23108] Solve bug where single player expands would lose their expanded state when
80
- adding breakout marks. Single player expands are only used when
81
- `platform.editor.single-player-expand` FF AND live page are both enabled.
83
+ - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
84
+ [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
85
+ [ED-23097] Bump ADF schema to version 35.12.1
86
+ - [#94398](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94398)
87
+ [`4df808e35fda`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4df808e35fda) -
88
+ [ux] [ED-23108] Solve bug where single player expands would lose their expanded state when adding
89
+ breakout marks. Single player expands are only used when `platform.editor.single-player-expand` FF
90
+ AND live page are both enabled.
82
91
 
83
92
  ## 1.1.1
84
93
 
85
94
  ### Patch Changes
86
95
 
87
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
88
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
89
- Updating adf-schema version to 35.10.0
96
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
97
+ [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
98
+ Updating adf-schema version to 35.10.0
90
99
 
91
100
  ## 1.1.0
92
101
 
93
102
  ### Minor Changes
94
103
 
95
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
96
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
97
- bumped editor-prosemirror version to 4.0.0
104
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
105
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
106
+ bumped editor-prosemirror version to 4.0.0
98
107
 
99
108
  ### Patch Changes
100
109
 
101
- - Updated dependencies
110
+ - Updated dependencies
102
111
 
103
112
  ## 1.0.9
104
113
 
105
114
  ### Patch Changes
106
115
 
107
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
108
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
109
- Bump adf-schema to 35.9.2 to support table alignment options
116
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
117
+ [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
118
+ Bump adf-schema to 35.9.2 to support table alignment options
110
119
 
111
120
  ## 1.0.8
112
121
 
113
122
  ### Patch Changes
114
123
 
115
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
116
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
117
- Bump ADF-schema package to version 35.0.0
118
- - Updated dependencies
124
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
125
+ [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
126
+ Bump ADF-schema package to version 35.0.0
127
+ - Updated dependencies
119
128
 
120
129
  ## 1.0.7
121
130
 
122
131
  ### Patch Changes
123
132
 
124
- - [#88938](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88938)
125
- [`db547827ee45`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db547827ee45) -
126
- [ux] Don't render LayoutButton when editor in 'view' mode
127
- - Updated dependencies
133
+ - [#88938](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88938)
134
+ [`db547827ee45`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db547827ee45) -
135
+ [ux] Don't render LayoutButton when editor in 'view' mode
136
+ - Updated dependencies
128
137
 
129
138
  ## 1.0.6
130
139
 
131
140
  ### Patch Changes
132
141
 
133
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
134
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
135
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
136
- 35.7.0 to 35.8.0
142
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
143
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
144
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
145
+ 35.7.0 to 35.8.0
137
146
 
138
147
  ## 1.0.5
139
148
 
140
149
  ### Patch Changes
141
150
 
142
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
143
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
144
- Bump adf-schema to 35.7.0
151
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
152
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
153
+ Bump adf-schema to 35.7.0
145
154
 
146
155
  ## 1.0.4
147
156
 
148
157
  ### Patch Changes
149
158
 
150
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
151
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
152
- Upgrade Typescript from `4.9.5` to `5.4.2`
159
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
160
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
161
+ Upgrade Typescript from `4.9.5` to `5.4.2`
153
162
 
154
163
  ## 1.0.3
155
164
 
156
165
  ### Patch Changes
157
166
 
158
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
159
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
160
- ED-22553 Updating adf-schema version to 35.6.0
167
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
168
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
169
+ ED-22553 Updating adf-schema version to 35.6.0
161
170
 
162
171
  ## 1.0.2
163
172
 
164
173
  ### Patch Changes
165
174
 
166
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
167
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
168
- ED-22219: adf-schema updated to 35.5.2
169
- - Updated dependencies
175
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
176
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
177
+ ED-22219: adf-schema updated to 35.5.2
178
+ - Updated dependencies
170
179
 
171
180
  ## 1.0.1
172
181
 
173
182
  ### Patch Changes
174
183
 
175
- - Updated dependencies
184
+ - Updated dependencies
176
185
 
177
186
  ## 1.0.0
178
187
 
179
188
  ### Major Changes
180
189
 
181
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
182
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
183
- This changeset exists to bump all editor plugins that currently don't have a major version. This
184
- is to address an issue with Jira plugin consumption.
190
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
191
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
192
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
193
+ is to address an issue with Jira plugin consumption.
185
194
 
186
195
  ### Patch Changes
187
196
 
188
- - Updated dependencies
197
+ - Updated dependencies
189
198
 
190
199
  ## 0.2.2
191
200
 
192
201
  ### Patch Changes
193
202
 
194
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
195
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
196
- Upgrading @atlaskit/editor-prosemirror dependency
203
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
204
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
205
+ Upgrading @atlaskit/editor-prosemirror dependency
197
206
 
198
207
  ## 0.2.1
199
208
 
200
209
  ### Patch Changes
201
210
 
202
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
203
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
204
- Updating adf-schema version to 35.5.1
211
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
212
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
213
+ Updating adf-schema version to 35.5.1
205
214
 
206
215
  ## 0.2.0
207
216
 
208
217
  ### Minor Changes
209
218
 
210
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
211
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
212
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
219
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
220
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
221
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
213
222
 
214
- Now when using the editor API with the universal preset
223
+ Now when using the editor API with the universal preset
215
224
 
216
225
  ### Patch Changes
217
226
 
218
- - Updated dependencies
227
+ - Updated dependencies
219
228
 
220
229
  ## 0.1.3
221
230
 
222
231
  ### Patch Changes
223
232
 
224
- - Updated dependencies
233
+ - Updated dependencies
225
234
 
226
235
  ## 0.1.2
227
236
 
228
237
  ### Patch Changes
229
238
 
230
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
231
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
232
- [ED-21835] Change EditorAPI type to always union with undefined
239
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
240
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
241
+ [ED-21835] Change EditorAPI type to always union with undefined
233
242
 
234
243
  ## 0.1.1
235
244
 
236
245
  ### Patch Changes
237
246
 
238
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
239
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
240
- ED-21609 Update adf-schema to 35.3.0
241
- - Updated dependencies
247
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
248
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
249
+ ED-21609 Update adf-schema to 35.3.0
250
+ - Updated dependencies
package/LICENSE.md CHANGED
@@ -1,13 +1,11 @@
1
1
  Copyright 2023 Atlassian Pty Ltd
2
2
 
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
6
5
 
7
6
  http://www.apache.org/licenses/LICENSE-2.0
8
7
 
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
@@ -15,6 +15,7 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
15
15
  var _styles = require("@atlaskit/editor-common/styles");
16
16
  var _utils = require("@atlaskit/editor-common/utils");
17
17
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _pluginKey = require("./plugin-key");
19
20
  var _LayoutButton = _interopRequireDefault(require("./ui/LayoutButton"));
20
21
  var _findBreakoutNode = require("./utils/find-breakout-node");
@@ -41,7 +42,11 @@ var BreakoutView = /*#__PURE__*/function () {
41
42
  }
42
43
  var containerStyle = "";
43
44
  var contentStyle = "";
44
- var breakoutWidthPx = (0, _utils.calcBreakoutWidthPx)(_this.mark.attrs.mode, widthState.width);
45
+
46
+ // when editor padding = 32px the breakout padding is calculated as 96px (32 * 3)
47
+ // the extra '32' ensures nodes with breakout applied default to line length its below default width
48
+ var padding = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.core.increase-full-page-guttering') ? (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2 + 32 : undefined;
49
+ var breakoutWidthPx = (0, _utils.calcBreakoutWidthPx)(_this.mark.attrs.mode, widthState.width, padding);
45
50
  if (widthState.lineLength) {
46
51
  if (breakoutWidthPx < widthState.lineLength) {
47
52
  breakoutWidthPx = widthState.lineLength;
@@ -5,7 +5,8 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
5
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import { BreakoutCssClassName } from '@atlaskit/editor-common/styles';
7
7
  import { calcBreakoutWidthPx } from '@atlaskit/editor-common/utils';
8
- import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
8
+ import { akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
9
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
10
  import { pluginKey } from './plugin-key';
10
11
  import LayoutButton from './ui/LayoutButton';
11
12
  import { findSupportedNodeForBreakout } from './utils/find-breakout-node';
@@ -27,7 +28,11 @@ class BreakoutView {
27
28
  }
28
29
  let containerStyle = ``;
29
30
  let contentStyle = ``;
30
- let breakoutWidthPx = calcBreakoutWidthPx(this.mark.attrs.mode, widthState.width);
31
+
32
+ // when editor padding = 32px the breakout padding is calculated as 96px (32 * 3)
33
+ // the extra '32' ensures nodes with breakout applied default to line length its below default width
34
+ const padding = getBooleanFF('platform.editor.core.increase-full-page-guttering') ? akEditorGutterPaddingDynamic() * 2 + 32 : undefined;
35
+ let breakoutWidthPx = calcBreakoutWidthPx(this.mark.attrs.mode, widthState.width, padding);
31
36
  if (widthState.lineLength) {
32
37
  if (breakoutWidthPx < widthState.lineLength) {
33
38
  breakoutWidthPx = widthState.lineLength;
@@ -9,7 +9,8 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
9
9
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
10
10
  import { BreakoutCssClassName } from '@atlaskit/editor-common/styles';
11
11
  import { calcBreakoutWidthPx } from '@atlaskit/editor-common/utils';
12
- import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
12
+ import { akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
13
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
13
14
  import { pluginKey } from './plugin-key';
14
15
  import LayoutButton from './ui/LayoutButton';
15
16
  import { findSupportedNodeForBreakout } from './utils/find-breakout-node';
@@ -34,7 +35,11 @@ var BreakoutView = /*#__PURE__*/function () {
34
35
  }
35
36
  var containerStyle = "";
36
37
  var contentStyle = "";
37
- var breakoutWidthPx = calcBreakoutWidthPx(_this.mark.attrs.mode, widthState.width);
38
+
39
+ // when editor padding = 32px the breakout padding is calculated as 96px (32 * 3)
40
+ // the extra '32' ensures nodes with breakout applied default to line length its below default width
41
+ var padding = getBooleanFF('platform.editor.core.increase-full-page-guttering') ? akEditorGutterPaddingDynamic() * 2 + 32 : undefined;
42
+ var breakoutWidthPx = calcBreakoutWidthPx(_this.mark.attrs.mode, widthState.width, padding);
38
43
  if (widthState.lineLength) {
39
44
  if (breakoutWidthPx < widthState.lineLength) {
40
45
  breakoutWidthPx = widthState.lineLength;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-breakout",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
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": "^36.10.7",
35
- "@atlaskit/editor-common": "^81.0.0",
35
+ "@atlaskit/editor-common": "^82.0.0",
36
36
  "@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
37
37
  "@atlaskit/editor-plugin-width": "^1.1.0",
38
38
  "@atlaskit/editor-prosemirror": "4.0.1",
39
- "@atlaskit/editor-shared-styles": "^2.11.0",
39
+ "@atlaskit/editor-shared-styles": "^2.12.0",
40
40
  "@atlaskit/icon": "^22.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^0.2.0",
42
42
  "@atlaskit/theme": "^12.8.0",
@@ -56,7 +56,6 @@
56
56
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
57
57
  "@atlaskit/ssr": "*",
58
58
  "@atlaskit/visual-regression": "*",
59
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
60
59
  "@testing-library/react": "^12.1.5",
61
60
  "react-dom": "^16.8.0",
62
61
  "typescript": "~5.4.2",
@@ -95,10 +94,12 @@
95
94
  ]
96
95
  }
97
96
  },
98
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
99
97
  "platform-feature-flags": {
100
98
  "platform.editor.single-player-expand": {
101
99
  "type": "boolean"
100
+ },
101
+ "platform.editor.core.increase-full-page-guttering": {
102
+ "type": "boolean"
102
103
  }
103
104
  }
104
105
  }