@atlaskit/editor-plugin-alignment 1.3.1 → 1.4.1

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,260 +1,281 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#101406](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101406)
14
+ [`6daffd65aec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6daffd65aec4) -
15
+ [ED-23298] Extract primary toolbar components to editor plugin to allow for custom ordering
16
+
17
+ ### Patch Changes
18
+
19
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
20
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
21
+ [ED-23332] Update adf-schema package to 36.10.1
22
+ - Updated dependencies
23
+
3
24
  ## 1.3.1
4
25
 
5
26
  ### Patch Changes
6
27
 
7
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
8
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
9
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
28
+ - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
29
+ [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
30
+ ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
10
31
 
11
32
  ## 1.3.0
12
33
 
13
34
  ### Minor Changes
14
35
 
15
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
16
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
17
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
36
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
37
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
38
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
18
39
 
19
40
  ### Patch Changes
20
41
 
21
- - Updated dependencies
42
+ - Updated dependencies
22
43
 
23
44
  ## 1.2.7
24
45
 
25
46
  ### Patch Changes
26
47
 
27
- - Updated dependencies
48
+ - Updated dependencies
28
49
 
29
50
  ## 1.2.6
30
51
 
31
52
  ### Patch Changes
32
53
 
33
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
34
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
35
- [ED-22282] Bump adf-schema to 36.1.0
54
+ - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
55
+ [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
56
+ [ED-22282] Bump adf-schema to 36.1.0
36
57
 
37
58
  ## 1.2.5
38
59
 
39
60
  ### Patch Changes
40
61
 
41
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
42
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
43
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
44
- language triggering composition on an empty line.This was fixed in a patch bump of
45
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
62
+ - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
63
+ [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
64
+ [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
65
+ language triggering composition on an empty line.This was fixed in a patch bump of
66
+ prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
46
67
 
47
68
  ## 1.2.4
48
69
 
49
70
  ### Patch Changes
50
71
 
51
- - Updated dependencies
72
+ - Updated dependencies
52
73
 
53
74
  ## 1.2.3
54
75
 
55
76
  ### Patch Changes
56
77
 
57
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
58
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
59
- [ED-23102] Bump ADF schema to version 35.12.2
78
+ - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
79
+ [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
80
+ [ED-23102] Bump ADF schema to version 35.12.2
60
81
 
61
82
  ## 1.2.2
62
83
 
63
84
  ### Patch Changes
64
85
 
65
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
66
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
67
- [ED-23097] Bump ADF schema to version 35.12.1
86
+ - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
87
+ [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
88
+ [ED-23097] Bump ADF schema to version 35.12.1
68
89
 
69
90
  ## 1.2.1
70
91
 
71
92
  ### Patch Changes
72
93
 
73
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
74
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
75
- Updating adf-schema version to 35.10.0
94
+ - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
95
+ [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
96
+ Updating adf-schema version to 35.10.0
76
97
 
77
98
  ## 1.2.0
78
99
 
79
100
  ### Minor Changes
80
101
 
81
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
82
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
83
- bumped editor-prosemirror version to 4.0.0
102
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
103
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
104
+ bumped editor-prosemirror version to 4.0.0
84
105
 
85
106
  ### Patch Changes
86
107
 
87
- - Updated dependencies
108
+ - Updated dependencies
88
109
 
89
110
  ## 1.1.7
90
111
 
91
112
  ### Patch Changes
92
113
 
93
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
94
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
95
- Bump adf-schema to 35.9.2 to support table alignment options
114
+ - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
115
+ [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
116
+ Bump adf-schema to 35.9.2 to support table alignment options
96
117
 
97
118
  ## 1.1.6
98
119
 
99
120
  ### Patch Changes
100
121
 
101
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
102
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
103
- Bump ADF-schema package to version 35.0.0
104
- - Updated dependencies
122
+ - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
123
+ [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
124
+ Bump ADF-schema package to version 35.0.0
125
+ - Updated dependencies
105
126
 
106
127
  ## 1.1.5
107
128
 
108
129
  ### Patch Changes
109
130
 
110
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
111
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
112
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
113
- 35.7.0 to 35.8.0
131
+ - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
132
+ [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
133
+ [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
134
+ 35.7.0 to 35.8.0
114
135
 
115
136
  ## 1.1.4
116
137
 
117
138
  ### Patch Changes
118
139
 
119
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
120
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
121
- Bump adf-schema to 35.7.0
140
+ - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
141
+ [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
142
+ Bump adf-schema to 35.7.0
122
143
 
123
144
  ## 1.1.3
124
145
 
125
146
  ### Patch Changes
126
147
 
127
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
128
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
129
- Upgrade Typescript from `4.9.5` to `5.4.2`
148
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
149
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
150
+ Upgrade Typescript from `4.9.5` to `5.4.2`
130
151
 
131
152
  ## 1.1.2
132
153
 
133
154
  ### Patch Changes
134
155
 
135
- - [#80883](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80883)
136
- [`5ecfa883d4ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ecfa883d4ba) -
137
- React 18 types for alignment, annotation, avatar-group and blocktype plugins.
156
+ - [#80883](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80883)
157
+ [`5ecfa883d4ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ecfa883d4ba) -
158
+ React 18 types for alignment, annotation, avatar-group and blocktype plugins.
138
159
 
139
160
  ## 1.1.1
140
161
 
141
162
  ### Patch Changes
142
163
 
143
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
144
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
145
- ED-22553 Updating adf-schema version to 35.6.0
164
+ - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
165
+ [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
166
+ ED-22553 Updating adf-schema version to 35.6.0
146
167
 
147
168
  ## 1.1.0
148
169
 
149
170
  ### Minor Changes
150
171
 
151
- - [#77222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77222)
152
- [`b924ab2b79f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b924ab2b79f3) -
153
- [ux] Add keyboard shortcuts for center and right text alignment
172
+ - [#77222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77222)
173
+ [`b924ab2b79f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b924ab2b79f3) -
174
+ [ux] Add keyboard shortcuts for center and right text alignment
154
175
 
155
176
  ### Patch Changes
156
177
 
157
- - Updated dependencies
178
+ - Updated dependencies
158
179
 
159
180
  ## 1.0.2
160
181
 
161
182
  ### Patch Changes
162
183
 
163
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
164
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
165
- ED-22219: adf-schema updated to 35.5.2
166
- - Updated dependencies
184
+ - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
185
+ [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
186
+ ED-22219: adf-schema updated to 35.5.2
187
+ - Updated dependencies
167
188
 
168
189
  ## 1.0.1
169
190
 
170
191
  ### Patch Changes
171
192
 
172
- - Updated dependencies
193
+ - Updated dependencies
173
194
 
174
195
  ## 1.0.0
175
196
 
176
197
  ### Major Changes
177
198
 
178
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
179
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
180
- This changeset exists to bump all editor plugins that currently don't have a major version. This
181
- is to address an issue with Jira plugin consumption.
199
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
200
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
201
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
202
+ is to address an issue with Jira plugin consumption.
182
203
 
183
204
  ## 0.2.3
184
205
 
185
206
  ### Patch Changes
186
207
 
187
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
188
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
189
- Upgrading @atlaskit/editor-prosemirror dependency
208
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
209
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
210
+ Upgrading @atlaskit/editor-prosemirror dependency
190
211
 
191
212
  ## 0.2.2
192
213
 
193
214
  ### Patch Changes
194
215
 
195
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
196
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
197
- Move all plugin translations to editor-common
198
- - Updated dependencies
216
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
217
+ [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
218
+ Move all plugin translations to editor-common
219
+ - Updated dependencies
199
220
 
200
221
  ## 0.2.1
201
222
 
202
223
  ### Patch Changes
203
224
 
204
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
205
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
206
- Updating adf-schema version to 35.5.1
225
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
226
+ [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
227
+ Updating adf-schema version to 35.5.1
207
228
 
208
229
  ## 0.2.0
209
230
 
210
231
  ### Minor Changes
211
232
 
212
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
213
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
214
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
233
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
234
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
235
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
215
236
 
216
- Now when using the editor API with the universal preset
237
+ Now when using the editor API with the universal preset
217
238
 
218
239
  ### Patch Changes
219
240
 
220
- - Updated dependencies
241
+ - Updated dependencies
221
242
 
222
243
  ## 0.1.5
223
244
 
224
245
  ### Patch Changes
225
246
 
226
- - Updated dependencies
247
+ - Updated dependencies
227
248
 
228
249
  ## 0.1.4
229
250
 
230
251
  ### Patch Changes
231
252
 
232
- - [#67814](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67814)
233
- [`b9ae9606c2e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9ae9606c2e0) -
234
- Migrate status and alignment plugins to use useSharedPluginState rather than WithPluginState
253
+ - [#67814](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67814)
254
+ [`b9ae9606c2e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9ae9606c2e0) -
255
+ Migrate status and alignment plugins to use useSharedPluginState rather than WithPluginState
235
256
 
236
257
  ## 0.1.3
237
258
 
238
259
  ### Patch Changes
239
260
 
240
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
241
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
242
- [ED-21835] Change EditorAPI type to always union with undefined
261
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
262
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
263
+ [ED-21835] Change EditorAPI type to always union with undefined
243
264
 
244
265
  ## 0.1.2
245
266
 
246
267
  ### Patch Changes
247
268
 
248
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
249
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
250
- ED-21609 Update adf-schema to 35.3.0
251
- - Updated dependencies
269
+ - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
270
+ [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
271
+ ED-21609 Update adf-schema to 35.3.0
272
+ - Updated dependencies
252
273
 
253
274
  ## 0.1.1
254
275
 
255
276
  ### Patch Changes
256
277
 
257
- - [#63608](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63608)
258
- [`bfb98fe84eae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfb98fe84eae) -
259
- [ux] EDF-93: Report and resolve existing duplicate i18n message descriptor keys/IDs in editor,
260
- as precursor work to adding CI check
278
+ - [#63608](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63608)
279
+ [`bfb98fe84eae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfb98fe84eae) -
280
+ [ux] EDF-93: Report and resolve existing duplicate i18n message descriptor keys/IDs in editor, as
281
+ precursor work to adding CI check
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,23 @@ var defaultConfig = exports.defaultConfig = {
15
15
  };
16
16
  var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
17
17
  var api = _ref.api;
18
+ var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
19
+ var editorView = _ref2.editorView,
20
+ popupsMountPoint = _ref2.popupsMountPoint,
21
+ popupsBoundariesElement = _ref2.popupsBoundariesElement,
22
+ popupsScrollableElement = _ref2.popupsScrollableElement,
23
+ disabled = _ref2.disabled,
24
+ isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
25
+ return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
26
+ api: api,
27
+ editorView: editorView,
28
+ disabled: disabled,
29
+ popupsMountPoint: popupsMountPoint,
30
+ popupsBoundariesElement: popupsBoundariesElement,
31
+ popupsScrollableElement: popupsScrollableElement,
32
+ isToolbarReducedSpacing: isToolbarReducedSpacing
33
+ });
34
+ };
18
35
  return {
19
36
  name: 'alignment',
20
37
  marks: function marks() {
@@ -36,8 +53,8 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
36
53
  pmPlugins: function pmPlugins() {
37
54
  return [{
38
55
  name: 'alignmentPlugin',
39
- plugin: function plugin(_ref2) {
40
- var dispatch = _ref2.dispatch;
56
+ plugin: function plugin(_ref3) {
57
+ var dispatch = _ref3.dispatch;
41
58
  return (0, _main.createPlugin)(dispatch, defaultConfig);
42
59
  }
43
60
  }, {
@@ -47,22 +64,13 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
47
64
  }
48
65
  }];
49
66
  },
50
- primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
51
- var editorView = _ref3.editorView,
52
- popupsMountPoint = _ref3.popupsMountPoint,
53
- popupsBoundariesElement = _ref3.popupsBoundariesElement,
54
- popupsScrollableElement = _ref3.popupsScrollableElement,
55
- disabled = _ref3.disabled,
56
- isToolbarReducedSpacing = _ref3.isToolbarReducedSpacing;
57
- return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
58
- api: api,
59
- editorView: editorView,
60
- disabled: disabled,
61
- popupsMountPoint: popupsMountPoint,
62
- popupsBoundariesElement: popupsBoundariesElement,
63
- popupsScrollableElement: popupsScrollableElement,
64
- isToolbarReducedSpacing: isToolbarReducedSpacing
65
- });
66
- }
67
+ usePluginHook: function usePluginHook() {
68
+ var _api$core, _api$primaryToolbar;
69
+ api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
70
+ name: 'alignment',
71
+ component: primaryToolbarComponent
72
+ }));
73
+ },
74
+ primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
67
75
  };
68
76
  };
@@ -43,7 +43,9 @@ function Alignment(_ref) {
43
43
  "data-testid": "alignment-buttons"
44
44
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
45
45
  ,
46
- css: _styles.alignmentWrapper,
46
+ css: _styles.alignmentWrapper
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
48
+ ,
47
49
  className: className
48
50
  }, alignmentOptions.map(function (alignment) {
49
51
  var value = alignment.value,
@@ -32,6 +32,7 @@ function PrimaryToolbarComponent(_ref) {
32
32
  disabled: disabled || !alignmentState.isEnabled,
33
33
  popupsMountPoint: popupsMountPoint,
34
34
  popupsBoundariesElement: popupsBoundariesElement,
35
- popupsScrollableElement: popupsScrollableElement
35
+ popupsScrollableElement: popupsScrollableElement,
36
+ api: api
36
37
  });
37
38
  }
@@ -89,7 +89,8 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
89
89
  isReducedSpacing = _this$props.isReducedSpacing,
90
90
  pluginState = _this$props.pluginState,
91
91
  disabled = _this$props.disabled,
92
- intl = _this$props.intl;
92
+ intl = _this$props.intl,
93
+ api = _this$props.api;
93
94
  var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
94
95
  var title = intl.formatMessage(_messages.alignmentMessages.alignment);
95
96
  return (
@@ -120,7 +121,9 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
120
121
  spacing: isReducedSpacing ? 'none' : 'default',
121
122
  disabled: disabled,
122
123
  selected: isOpen,
123
- title: title,
124
+ title: title
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
126
+ ,
124
127
  className: "align-btn",
125
128
  "aria-label": title,
126
129
  "aria-expanded": isOpen,
@@ -145,7 +148,8 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
145
148
  return _this2.changeAlignment(align, false);
146
149
  },
147
150
  selectedAlignment: alignment
148
- })), (0, _react2.jsx)("span", {
151
+ })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
152
+ (0, _react2.jsx)("span", {
149
153
  css: _styles.separatorStyles
150
154
  }))
151
155
  );
@@ -8,43 +8,15 @@ export const defaultConfig = {
8
8
  };
9
9
  export const alignmentPlugin = ({
10
10
  api
11
- }) => ({
12
- name: 'alignment',
13
- marks() {
14
- return [{
15
- name: 'alignment',
16
- mark: alignment
17
- }];
18
- },
19
- getSharedState(editorState) {
20
- if (!editorState) {
21
- return undefined;
22
- }
23
- const pluginState = pluginKey.getState(editorState);
24
- return pluginState ? {
25
- align: pluginState.align,
26
- isEnabled: pluginState.isEnabled
27
- } : undefined;
28
- },
29
- pmPlugins() {
30
- return [{
31
- name: 'alignmentPlugin',
32
- plugin: ({
33
- dispatch
34
- }) => createPlugin(dispatch, defaultConfig)
35
- }, {
36
- name: 'annotationKeymap',
37
- plugin: () => keymapPlugin()
38
- }];
39
- },
40
- primaryToolbarComponent({
11
+ }) => {
12
+ const primaryToolbarComponent = ({
41
13
  editorView,
42
14
  popupsMountPoint,
43
15
  popupsBoundariesElement,
44
16
  popupsScrollableElement,
45
17
  disabled,
46
18
  isToolbarReducedSpacing
47
- }) {
19
+ }) => {
48
20
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
49
21
  api: api,
50
22
  editorView: editorView,
@@ -54,5 +26,43 @@ export const alignmentPlugin = ({
54
26
  popupsScrollableElement: popupsScrollableElement,
55
27
  isToolbarReducedSpacing: isToolbarReducedSpacing
56
28
  });
57
- }
58
- });
29
+ };
30
+ return {
31
+ name: 'alignment',
32
+ marks() {
33
+ return [{
34
+ name: 'alignment',
35
+ mark: alignment
36
+ }];
37
+ },
38
+ getSharedState(editorState) {
39
+ if (!editorState) {
40
+ return undefined;
41
+ }
42
+ const pluginState = pluginKey.getState(editorState);
43
+ return pluginState ? {
44
+ align: pluginState.align,
45
+ isEnabled: pluginState.isEnabled
46
+ } : undefined;
47
+ },
48
+ pmPlugins() {
49
+ return [{
50
+ name: 'alignmentPlugin',
51
+ plugin: ({
52
+ dispatch
53
+ }) => createPlugin(dispatch, defaultConfig)
54
+ }, {
55
+ name: 'annotationKeymap',
56
+ plugin: () => keymapPlugin()
57
+ }];
58
+ },
59
+ usePluginHook: () => {
60
+ var _api$core, _api$primaryToolbar;
61
+ api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
62
+ name: 'alignment',
63
+ component: primaryToolbarComponent
64
+ }));
65
+ },
66
+ primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
67
+ };
68
+ };
@@ -36,7 +36,9 @@ function Alignment({
36
36
  "data-testid": "alignment-buttons"
37
37
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
38
38
  ,
39
- css: alignmentWrapper,
39
+ css: alignmentWrapper
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
41
+ ,
40
42
  className: className
41
43
  }, alignmentOptions.map(alignment => {
42
44
  const {
@@ -22,6 +22,7 @@ export function PrimaryToolbarComponent({
22
22
  disabled: disabled || !alignmentState.isEnabled,
23
23
  popupsMountPoint: popupsMountPoint,
24
24
  popupsBoundariesElement: popupsBoundariesElement,
25
- popupsScrollableElement: popupsScrollableElement
25
+ popupsScrollableElement: popupsScrollableElement,
26
+ api: api
26
27
  });
27
28
  }
@@ -66,7 +66,8 @@ export class AlignmentToolbar extends React.Component {
66
66
  isReducedSpacing,
67
67
  pluginState,
68
68
  disabled,
69
- intl
69
+ intl,
70
+ api
70
71
  } = this.props;
71
72
  const alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
72
73
  const title = intl.formatMessage(messages.alignment);
@@ -98,7 +99,9 @@ export class AlignmentToolbar extends React.Component {
98
99
  spacing: isReducedSpacing ? 'none' : 'default',
99
100
  disabled: disabled,
100
101
  selected: isOpen,
101
- title: title,
102
+ title: title
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
104
+ ,
102
105
  className: "align-btn",
103
106
  "aria-label": title,
104
107
  "aria-expanded": isOpen,
@@ -121,7 +124,8 @@ export class AlignmentToolbar extends React.Component {
121
124
  }, jsx(Alignment, {
122
125
  onClick: align => this.changeAlignment(align, false),
123
126
  selectedAlignment: alignment
124
- })), jsx("span", {
127
+ })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
128
+ jsx("span", {
125
129
  css: separatorStyles
126
130
  }))
127
131
  );
@@ -8,6 +8,23 @@ export var defaultConfig = {
8
8
  };
9
9
  export var alignmentPlugin = function alignmentPlugin(_ref) {
10
10
  var api = _ref.api;
11
+ var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
12
+ var editorView = _ref2.editorView,
13
+ popupsMountPoint = _ref2.popupsMountPoint,
14
+ popupsBoundariesElement = _ref2.popupsBoundariesElement,
15
+ popupsScrollableElement = _ref2.popupsScrollableElement,
16
+ disabled = _ref2.disabled,
17
+ isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
18
+ return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
19
+ api: api,
20
+ editorView: editorView,
21
+ disabled: disabled,
22
+ popupsMountPoint: popupsMountPoint,
23
+ popupsBoundariesElement: popupsBoundariesElement,
24
+ popupsScrollableElement: popupsScrollableElement,
25
+ isToolbarReducedSpacing: isToolbarReducedSpacing
26
+ });
27
+ };
11
28
  return {
12
29
  name: 'alignment',
13
30
  marks: function marks() {
@@ -29,8 +46,8 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
29
46
  pmPlugins: function pmPlugins() {
30
47
  return [{
31
48
  name: 'alignmentPlugin',
32
- plugin: function plugin(_ref2) {
33
- var dispatch = _ref2.dispatch;
49
+ plugin: function plugin(_ref3) {
50
+ var dispatch = _ref3.dispatch;
34
51
  return createPlugin(dispatch, defaultConfig);
35
52
  }
36
53
  }, {
@@ -40,22 +57,13 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
40
57
  }
41
58
  }];
42
59
  },
43
- primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
44
- var editorView = _ref3.editorView,
45
- popupsMountPoint = _ref3.popupsMountPoint,
46
- popupsBoundariesElement = _ref3.popupsBoundariesElement,
47
- popupsScrollableElement = _ref3.popupsScrollableElement,
48
- disabled = _ref3.disabled,
49
- isToolbarReducedSpacing = _ref3.isToolbarReducedSpacing;
50
- return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
51
- api: api,
52
- editorView: editorView,
53
- disabled: disabled,
54
- popupsMountPoint: popupsMountPoint,
55
- popupsBoundariesElement: popupsBoundariesElement,
56
- popupsScrollableElement: popupsScrollableElement,
57
- isToolbarReducedSpacing: isToolbarReducedSpacing
58
- });
59
- }
60
+ usePluginHook: function usePluginHook() {
61
+ var _api$core, _api$primaryToolbar;
62
+ api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
63
+ name: 'alignment',
64
+ component: primaryToolbarComponent
65
+ }));
66
+ },
67
+ primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
60
68
  };
61
69
  };
@@ -35,7 +35,9 @@ function Alignment(_ref) {
35
35
  "data-testid": "alignment-buttons"
36
36
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
37
37
  ,
38
- css: alignmentWrapper,
38
+ css: alignmentWrapper
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
40
+ ,
39
41
  className: className
40
42
  }, alignmentOptions.map(function (alignment) {
41
43
  var value = alignment.value,
@@ -22,6 +22,7 @@ export function PrimaryToolbarComponent(_ref) {
22
22
  disabled: disabled || !alignmentState.isEnabled,
23
23
  popupsMountPoint: popupsMountPoint,
24
24
  popupsBoundariesElement: popupsBoundariesElement,
25
- popupsScrollableElement: popupsScrollableElement
25
+ popupsScrollableElement: popupsScrollableElement,
26
+ api: api
26
27
  });
27
28
  }
@@ -83,7 +83,8 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
83
83
  isReducedSpacing = _this$props.isReducedSpacing,
84
84
  pluginState = _this$props.pluginState,
85
85
  disabled = _this$props.disabled,
86
- intl = _this$props.intl;
86
+ intl = _this$props.intl,
87
+ api = _this$props.api;
87
88
  var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
88
89
  var title = intl.formatMessage(messages.alignment);
89
90
  return (
@@ -114,7 +115,9 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
114
115
  spacing: isReducedSpacing ? 'none' : 'default',
115
116
  disabled: disabled,
116
117
  selected: isOpen,
117
- title: title,
118
+ title: title
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
120
+ ,
118
121
  className: "align-btn",
119
122
  "aria-label": title,
120
123
  "aria-expanded": isOpen,
@@ -139,7 +142,8 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
139
142
  return _this2.changeAlignment(align, false);
140
143
  },
141
144
  selectedAlignment: alignment
142
- })), jsx("span", {
145
+ })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
146
+ jsx("span", {
143
147
  css: separatorStyles
144
148
  }))
145
149
  );
@@ -1,7 +1,9 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
1
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
2
3
  import type { AlignmentPluginState } from './pm-plugins/types';
3
4
  export declare const defaultConfig: AlignmentPluginState;
4
5
  export type AlignmentPlugin = NextEditorPlugin<'alignment', {
5
6
  sharedState: AlignmentPluginState | undefined;
7
+ dependencies: [OptionalPlugin<PrimaryToolbarPlugin>];
6
8
  }>;
7
9
  export declare const alignmentPlugin: AlignmentPlugin;
@@ -9,5 +9,5 @@ export interface Props {
9
9
  content: React.ReactElement;
10
10
  shortcut?: Keymap;
11
11
  }
12
- declare function AlignmentButton({ label, isSelected, content, shortcut, onClick, value, }: Props): JSX.Element;
12
+ declare function AlignmentButton({ label, isSelected, content, shortcut, onClick, value }: Props): JSX.Element;
13
13
  export default AlignmentButton;
@@ -2,6 +2,8 @@
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { WrappedComponentProps } from 'react-intl-next';
5
+ import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
+ import type { AlignmentPlugin } from '../../plugin';
5
7
  import type { AlignmentPluginState, AlignmentState } from '../../pm-plugins/types';
6
8
  export interface State {
7
9
  isOpen: boolean;
@@ -14,6 +16,7 @@ export interface Props {
14
16
  popupsScrollableElement?: HTMLElement;
15
17
  isReducedSpacing?: boolean;
16
18
  disabled?: boolean;
19
+ api: ExtractInjectionAPI<AlignmentPlugin> | undefined;
17
20
  }
18
21
  export declare class AlignmentToolbar extends React.Component<Props & WrappedComponentProps, State> {
19
22
  static displayName: string;
@@ -1,7 +1,11 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
1
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
2
3
  import type { AlignmentPluginState } from './pm-plugins/types';
3
4
  export declare const defaultConfig: AlignmentPluginState;
4
5
  export type AlignmentPlugin = NextEditorPlugin<'alignment', {
5
6
  sharedState: AlignmentPluginState | undefined;
7
+ dependencies: [
8
+ OptionalPlugin<PrimaryToolbarPlugin>
9
+ ];
6
10
  }>;
7
11
  export declare const alignmentPlugin: AlignmentPlugin;
@@ -9,5 +9,5 @@ export interface Props {
9
9
  content: React.ReactElement;
10
10
  shortcut?: Keymap;
11
11
  }
12
- declare function AlignmentButton({ label, isSelected, content, shortcut, onClick, value, }: Props): JSX.Element;
12
+ declare function AlignmentButton({ label, isSelected, content, shortcut, onClick, value }: Props): JSX.Element;
13
13
  export default AlignmentButton;
@@ -2,6 +2,8 @@
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { WrappedComponentProps } from 'react-intl-next';
5
+ import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
6
+ import type { AlignmentPlugin } from '../../plugin';
5
7
  import type { AlignmentPluginState, AlignmentState } from '../../pm-plugins/types';
6
8
  export interface State {
7
9
  isOpen: boolean;
@@ -14,6 +16,7 @@ export interface Props {
14
16
  popupsScrollableElement?: HTMLElement;
15
17
  isReducedSpacing?: boolean;
16
18
  disabled?: boolean;
19
+ api: ExtractInjectionAPI<AlignmentPlugin> | undefined;
17
20
  }
18
21
  export declare class AlignmentToolbar extends React.Component<Props & WrappedComponentProps, State> {
19
22
  static displayName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,13 +21,14 @@
21
21
  "runReact18": false
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^36.8.0",
25
- "@atlaskit/editor-common": "^80.4.0",
24
+ "@atlaskit/adf-schema": "^36.10.7",
25
+ "@atlaskit/editor-common": "^82.0.0",
26
+ "@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
26
27
  "@atlaskit/editor-prosemirror": "4.0.1",
27
28
  "@atlaskit/editor-tables": "^2.7.0",
28
- "@atlaskit/icon": "^22.2.0",
29
+ "@atlaskit/icon": "^22.3.0",
29
30
  "@atlaskit/platform-feature-flags": "^0.2.0",
30
- "@atlaskit/tokens": "^1.48.0",
31
+ "@atlaskit/tokens": "^1.49.0",
31
32
  "@babel/runtime": "^7.0.0",
32
33
  "@emotion/react": "^11.7.1"
33
34
  },
@@ -41,7 +42,6 @@
41
42
  "@atlaskit/editor-plugin-list": "^3.3.0",
42
43
  "@atlaskit/ssr": "*",
43
44
  "@atlaskit/visual-regression": "*",
44
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
45
45
  "@testing-library/react": "^12.1.5",
46
46
  "@testing-library/user-event": "^14.4.3",
47
47
  "react-dom": "^16.8.0",
@@ -92,7 +92,6 @@
92
92
  "af:exports": {
93
93
  ".": "./src/index.ts"
94
94
  },
95
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
96
95
  "platform-feature-flags": {
97
96
  "platform.editor.text-alignment-keyboard-shortcuts": {
98
97
  "type": "boolean"