@atlaskit/editor-plugin-alignment 1.4.0 → 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 +16 -16
- package/CHANGELOG.md +109 -103
- package/LICENSE.md +6 -8
- package/dist/cjs/ui/Alignment/index.js +3 -1
- package/dist/cjs/ui/ToolbarAlignment/index.js +3 -1
- package/dist/es2019/ui/Alignment/index.js +3 -1
- package/dist/es2019/ui/ToolbarAlignment/index.js +3 -1
- package/dist/esm/ui/Alignment/index.js +3 -1
- package/dist/esm/ui/ToolbarAlignment/index.js +3 -1
- package/dist/types/ui/Alignment/AlignmentButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Alignment/AlignmentButton/index.d.ts +1 -1
- package/package.json +2 -4
package/.eslintrc.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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,275 +1,281 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
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
|
|
17
23
|
|
|
18
24
|
## 1.3.1
|
|
19
25
|
|
|
20
26
|
### Patch Changes
|
|
21
27
|
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
25
31
|
|
|
26
32
|
## 1.3.0
|
|
27
33
|
|
|
28
34
|
### Minor Changes
|
|
29
35
|
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
|
33
39
|
|
|
34
40
|
### Patch Changes
|
|
35
41
|
|
|
36
|
-
-
|
|
42
|
+
- Updated dependencies
|
|
37
43
|
|
|
38
44
|
## 1.2.7
|
|
39
45
|
|
|
40
46
|
### Patch Changes
|
|
41
47
|
|
|
42
|
-
-
|
|
48
|
+
- Updated dependencies
|
|
43
49
|
|
|
44
50
|
## 1.2.6
|
|
45
51
|
|
|
46
52
|
### Patch Changes
|
|
47
53
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
|
51
57
|
|
|
52
58
|
## 1.2.5
|
|
53
59
|
|
|
54
60
|
### Patch Changes
|
|
55
61
|
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
|
61
67
|
|
|
62
68
|
## 1.2.4
|
|
63
69
|
|
|
64
70
|
### Patch Changes
|
|
65
71
|
|
|
66
|
-
-
|
|
72
|
+
- Updated dependencies
|
|
67
73
|
|
|
68
74
|
## 1.2.3
|
|
69
75
|
|
|
70
76
|
### Patch Changes
|
|
71
77
|
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|
75
81
|
|
|
76
82
|
## 1.2.2
|
|
77
83
|
|
|
78
84
|
### Patch Changes
|
|
79
85
|
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
|
83
89
|
|
|
84
90
|
## 1.2.1
|
|
85
91
|
|
|
86
92
|
### Patch Changes
|
|
87
93
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
|
91
97
|
|
|
92
98
|
## 1.2.0
|
|
93
99
|
|
|
94
100
|
### Minor Changes
|
|
95
101
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
|
99
105
|
|
|
100
106
|
### Patch Changes
|
|
101
107
|
|
|
102
|
-
-
|
|
108
|
+
- Updated dependencies
|
|
103
109
|
|
|
104
110
|
## 1.1.7
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
107
113
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
|
111
117
|
|
|
112
118
|
## 1.1.6
|
|
113
119
|
|
|
114
120
|
### Patch Changes
|
|
115
121
|
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
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
|
|
120
126
|
|
|
121
127
|
## 1.1.5
|
|
122
128
|
|
|
123
129
|
### Patch Changes
|
|
124
130
|
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
|
129
135
|
|
|
130
136
|
## 1.1.4
|
|
131
137
|
|
|
132
138
|
### Patch Changes
|
|
133
139
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
|
137
143
|
|
|
138
144
|
## 1.1.3
|
|
139
145
|
|
|
140
146
|
### Patch Changes
|
|
141
147
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
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`
|
|
145
151
|
|
|
146
152
|
## 1.1.2
|
|
147
153
|
|
|
148
154
|
### Patch Changes
|
|
149
155
|
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
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.
|
|
153
159
|
|
|
154
160
|
## 1.1.1
|
|
155
161
|
|
|
156
162
|
### Patch Changes
|
|
157
163
|
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
|
161
167
|
|
|
162
168
|
## 1.1.0
|
|
163
169
|
|
|
164
170
|
### Minor Changes
|
|
165
171
|
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
|
169
175
|
|
|
170
176
|
### Patch Changes
|
|
171
177
|
|
|
172
|
-
-
|
|
178
|
+
- Updated dependencies
|
|
173
179
|
|
|
174
180
|
## 1.0.2
|
|
175
181
|
|
|
176
182
|
### Patch Changes
|
|
177
183
|
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
-
|
|
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
|
|
182
188
|
|
|
183
189
|
## 1.0.1
|
|
184
190
|
|
|
185
191
|
### Patch Changes
|
|
186
192
|
|
|
187
|
-
-
|
|
193
|
+
- Updated dependencies
|
|
188
194
|
|
|
189
195
|
## 1.0.0
|
|
190
196
|
|
|
191
197
|
### Major Changes
|
|
192
198
|
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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.
|
|
197
203
|
|
|
198
204
|
## 0.2.3
|
|
199
205
|
|
|
200
206
|
### Patch Changes
|
|
201
207
|
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
|
|
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
|
|
205
211
|
|
|
206
212
|
## 0.2.2
|
|
207
213
|
|
|
208
214
|
### Patch Changes
|
|
209
215
|
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
-
|
|
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
|
|
214
220
|
|
|
215
221
|
## 0.2.1
|
|
216
222
|
|
|
217
223
|
### Patch Changes
|
|
218
224
|
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
|
222
228
|
|
|
223
229
|
## 0.2.0
|
|
224
230
|
|
|
225
231
|
### Minor Changes
|
|
226
232
|
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
|
|
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.
|
|
230
236
|
|
|
231
|
-
|
|
237
|
+
Now when using the editor API with the universal preset
|
|
232
238
|
|
|
233
239
|
### Patch Changes
|
|
234
240
|
|
|
235
|
-
-
|
|
241
|
+
- Updated dependencies
|
|
236
242
|
|
|
237
243
|
## 0.1.5
|
|
238
244
|
|
|
239
245
|
### Patch Changes
|
|
240
246
|
|
|
241
|
-
-
|
|
247
|
+
- Updated dependencies
|
|
242
248
|
|
|
243
249
|
## 0.1.4
|
|
244
250
|
|
|
245
251
|
### Patch Changes
|
|
246
252
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
|
250
256
|
|
|
251
257
|
## 0.1.3
|
|
252
258
|
|
|
253
259
|
### Patch Changes
|
|
254
260
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
|
258
264
|
|
|
259
265
|
## 0.1.2
|
|
260
266
|
|
|
261
267
|
### Patch Changes
|
|
262
268
|
|
|
263
|
-
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
-
|
|
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
|
|
267
273
|
|
|
268
274
|
## 0.1.1
|
|
269
275
|
|
|
270
276
|
### Patch Changes
|
|
271
277
|
|
|
272
|
-
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
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
|
|
11
|
-
|
|
12
|
-
|
|
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.
|
|
@@ -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,
|
|
@@ -121,7 +121,9 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
121
121
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
122
122
|
disabled: disabled,
|
|
123
123
|
selected: isOpen,
|
|
124
|
-
title: title
|
|
124
|
+
title: title
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
126
|
+
,
|
|
125
127
|
className: "align-btn",
|
|
126
128
|
"aria-label": title,
|
|
127
129
|
"aria-expanded": isOpen,
|
|
@@ -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 {
|
|
@@ -99,7 +99,9 @@ export class AlignmentToolbar extends React.Component {
|
|
|
99
99
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
100
100
|
disabled: disabled,
|
|
101
101
|
selected: isOpen,
|
|
102
|
-
title: title
|
|
102
|
+
title: title
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
104
|
+
,
|
|
103
105
|
className: "align-btn",
|
|
104
106
|
"aria-label": title,
|
|
105
107
|
"aria-expanded": isOpen,
|
|
@@ -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,
|
|
@@ -115,7 +115,9 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
115
115
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
116
116
|
disabled: disabled,
|
|
117
117
|
selected: isOpen,
|
|
118
|
-
title: title
|
|
118
|
+
title: title
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
120
|
+
,
|
|
119
121
|
className: "align-btn",
|
|
120
122
|
"aria-label": title,
|
|
121
123
|
"aria-expanded": isOpen,
|
|
@@ -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
|
|
12
|
+
declare function AlignmentButton({ label, isSelected, content, shortcut, onClick, value }: Props): JSX.Element;
|
|
13
13
|
export default AlignmentButton;
|
|
@@ -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
|
|
12
|
+
declare function AlignmentButton({ label, isSelected, content, shortcut, onClick, value }: Props): JSX.Element;
|
|
13
13
|
export default AlignmentButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
25
|
-
"@atlaskit/editor-common": "^
|
|
25
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
26
26
|
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
28
28
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-list": "^3.3.0",
|
|
43
43
|
"@atlaskit/ssr": "*",
|
|
44
44
|
"@atlaskit/visual-regression": "*",
|
|
45
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
46
45
|
"@testing-library/react": "^12.1.5",
|
|
47
46
|
"@testing-library/user-event": "^14.4.3",
|
|
48
47
|
"react-dom": "^16.8.0",
|
|
@@ -93,7 +92,6 @@
|
|
|
93
92
|
"af:exports": {
|
|
94
93
|
".": "./src/index.ts"
|
|
95
94
|
},
|
|
96
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
97
95
|
"platform-feature-flags": {
|
|
98
96
|
"platform.editor.text-alignment-keyboard-shortcuts": {
|
|
99
97
|
"type": "boolean"
|