@atlaskit/editor-plugin-alignment 1.4.0 → 1.4.2
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 +118 -103
- package/LICENSE.md +6 -8
- package/dist/cjs/pm-plugins/keymap.js +1 -2
- package/dist/cjs/ui/Alignment/index.js +4 -2
- package/dist/cjs/ui/Alignment/styles.js +1 -0
- package/dist/cjs/ui/ToolbarAlignment/index.js +6 -3
- package/dist/cjs/ui/ToolbarAlignment/styles.js +6 -0
- package/dist/es2019/pm-plugins/keymap.js +1 -2
- package/dist/es2019/ui/Alignment/index.js +4 -2
- package/dist/es2019/ui/Alignment/styles.js +1 -0
- package/dist/es2019/ui/ToolbarAlignment/index.js +6 -3
- package/dist/es2019/ui/ToolbarAlignment/styles.js +6 -0
- package/dist/esm/pm-plugins/keymap.js +1 -2
- package/dist/esm/ui/Alignment/index.js +4 -2
- package/dist/esm/ui/Alignment/styles.js +1 -0
- package/dist/esm/ui/ToolbarAlignment/index.js +6 -3
- package/dist/esm/ui/ToolbarAlignment/styles.js +6 -0
- 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 +79 -101
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,290 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#109764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109764)
|
|
8
|
+
[`0c87bddb30871`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c87bddb30871) -
|
|
9
|
+
ED-23659 - fix `Mod-Alt-E` allign text left shortcut
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.4.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.4.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
22
|
+
- [#101406](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101406)
|
|
23
|
+
[`6daffd65aec4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6daffd65aec4) -
|
|
24
|
+
[ED-23298] Extract primary toolbar components to editor plugin to allow for custom ordering
|
|
10
25
|
|
|
11
26
|
### Patch Changes
|
|
12
27
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
28
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
29
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
30
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
31
|
+
- Updated dependencies
|
|
17
32
|
|
|
18
33
|
## 1.3.1
|
|
19
34
|
|
|
20
35
|
### Patch Changes
|
|
21
36
|
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
37
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
38
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
39
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
25
40
|
|
|
26
41
|
## 1.3.0
|
|
27
42
|
|
|
28
43
|
### Minor Changes
|
|
29
44
|
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
45
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
46
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
47
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
33
48
|
|
|
34
49
|
### Patch Changes
|
|
35
50
|
|
|
36
|
-
-
|
|
51
|
+
- Updated dependencies
|
|
37
52
|
|
|
38
53
|
## 1.2.7
|
|
39
54
|
|
|
40
55
|
### Patch Changes
|
|
41
56
|
|
|
42
|
-
-
|
|
57
|
+
- Updated dependencies
|
|
43
58
|
|
|
44
59
|
## 1.2.6
|
|
45
60
|
|
|
46
61
|
### Patch Changes
|
|
47
62
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
63
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
64
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
65
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
51
66
|
|
|
52
67
|
## 1.2.5
|
|
53
68
|
|
|
54
69
|
### Patch Changes
|
|
55
70
|
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
71
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
72
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
73
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
74
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
75
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
61
76
|
|
|
62
77
|
## 1.2.4
|
|
63
78
|
|
|
64
79
|
### Patch Changes
|
|
65
80
|
|
|
66
|
-
-
|
|
81
|
+
- Updated dependencies
|
|
67
82
|
|
|
68
83
|
## 1.2.3
|
|
69
84
|
|
|
70
85
|
### Patch Changes
|
|
71
86
|
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
87
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
88
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
89
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
75
90
|
|
|
76
91
|
## 1.2.2
|
|
77
92
|
|
|
78
93
|
### Patch Changes
|
|
79
94
|
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
95
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
96
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
97
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
83
98
|
|
|
84
99
|
## 1.2.1
|
|
85
100
|
|
|
86
101
|
### Patch Changes
|
|
87
102
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
103
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
104
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
105
|
+
Updating adf-schema version to 35.10.0
|
|
91
106
|
|
|
92
107
|
## 1.2.0
|
|
93
108
|
|
|
94
109
|
### Minor Changes
|
|
95
110
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
111
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
112
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
113
|
+
bumped editor-prosemirror version to 4.0.0
|
|
99
114
|
|
|
100
115
|
### Patch Changes
|
|
101
116
|
|
|
102
|
-
-
|
|
117
|
+
- Updated dependencies
|
|
103
118
|
|
|
104
119
|
## 1.1.7
|
|
105
120
|
|
|
106
121
|
### Patch Changes
|
|
107
122
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
124
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
125
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
111
126
|
|
|
112
127
|
## 1.1.6
|
|
113
128
|
|
|
114
129
|
### Patch Changes
|
|
115
130
|
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
131
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
132
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
133
|
+
Bump ADF-schema package to version 35.0.0
|
|
134
|
+
- Updated dependencies
|
|
120
135
|
|
|
121
136
|
## 1.1.5
|
|
122
137
|
|
|
123
138
|
### Patch Changes
|
|
124
139
|
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
140
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
141
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
142
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
143
|
+
35.7.0 to 35.8.0
|
|
129
144
|
|
|
130
145
|
## 1.1.4
|
|
131
146
|
|
|
132
147
|
### Patch Changes
|
|
133
148
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
149
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
150
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
151
|
+
Bump adf-schema to 35.7.0
|
|
137
152
|
|
|
138
153
|
## 1.1.3
|
|
139
154
|
|
|
140
155
|
### Patch Changes
|
|
141
156
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
157
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
158
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
159
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
145
160
|
|
|
146
161
|
## 1.1.2
|
|
147
162
|
|
|
148
163
|
### Patch Changes
|
|
149
164
|
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
165
|
+
- [#80883](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80883)
|
|
166
|
+
[`5ecfa883d4ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ecfa883d4ba) -
|
|
167
|
+
React 18 types for alignment, annotation, avatar-group and blocktype plugins.
|
|
153
168
|
|
|
154
169
|
## 1.1.1
|
|
155
170
|
|
|
156
171
|
### Patch Changes
|
|
157
172
|
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
|
|
173
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
174
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
175
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
161
176
|
|
|
162
177
|
## 1.1.0
|
|
163
178
|
|
|
164
179
|
### Minor Changes
|
|
165
180
|
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
181
|
+
- [#77222](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77222)
|
|
182
|
+
[`b924ab2b79f3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b924ab2b79f3) -
|
|
183
|
+
[ux] Add keyboard shortcuts for center and right text alignment
|
|
169
184
|
|
|
170
185
|
### Patch Changes
|
|
171
186
|
|
|
172
|
-
-
|
|
187
|
+
- Updated dependencies
|
|
173
188
|
|
|
174
189
|
## 1.0.2
|
|
175
190
|
|
|
176
191
|
### Patch Changes
|
|
177
192
|
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
-
|
|
193
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
194
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
195
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
196
|
+
- Updated dependencies
|
|
182
197
|
|
|
183
198
|
## 1.0.1
|
|
184
199
|
|
|
185
200
|
### Patch Changes
|
|
186
201
|
|
|
187
|
-
-
|
|
202
|
+
- Updated dependencies
|
|
188
203
|
|
|
189
204
|
## 1.0.0
|
|
190
205
|
|
|
191
206
|
### Major Changes
|
|
192
207
|
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
208
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
209
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
210
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
211
|
+
is to address an issue with Jira plugin consumption.
|
|
197
212
|
|
|
198
213
|
## 0.2.3
|
|
199
214
|
|
|
200
215
|
### Patch Changes
|
|
201
216
|
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
|
|
217
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
218
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
219
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
205
220
|
|
|
206
221
|
## 0.2.2
|
|
207
222
|
|
|
208
223
|
### Patch Changes
|
|
209
224
|
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
-
|
|
225
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
226
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
227
|
+
Move all plugin translations to editor-common
|
|
228
|
+
- Updated dependencies
|
|
214
229
|
|
|
215
230
|
## 0.2.1
|
|
216
231
|
|
|
217
232
|
### Patch Changes
|
|
218
233
|
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
|
|
234
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
235
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
236
|
+
Updating adf-schema version to 35.5.1
|
|
222
237
|
|
|
223
238
|
## 0.2.0
|
|
224
239
|
|
|
225
240
|
### Minor Changes
|
|
226
241
|
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
|
|
242
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
243
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
244
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
230
245
|
|
|
231
|
-
|
|
246
|
+
Now when using the editor API with the universal preset
|
|
232
247
|
|
|
233
248
|
### Patch Changes
|
|
234
249
|
|
|
235
|
-
-
|
|
250
|
+
- Updated dependencies
|
|
236
251
|
|
|
237
252
|
## 0.1.5
|
|
238
253
|
|
|
239
254
|
### Patch Changes
|
|
240
255
|
|
|
241
|
-
-
|
|
256
|
+
- Updated dependencies
|
|
242
257
|
|
|
243
258
|
## 0.1.4
|
|
244
259
|
|
|
245
260
|
### Patch Changes
|
|
246
261
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
262
|
+
- [#67814](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67814)
|
|
263
|
+
[`b9ae9606c2e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b9ae9606c2e0) -
|
|
264
|
+
Migrate status and alignment plugins to use useSharedPluginState rather than WithPluginState
|
|
250
265
|
|
|
251
266
|
## 0.1.3
|
|
252
267
|
|
|
253
268
|
### Patch Changes
|
|
254
269
|
|
|
255
|
-
-
|
|
256
|
-
|
|
257
|
-
|
|
270
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
271
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
272
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
258
273
|
|
|
259
274
|
## 0.1.2
|
|
260
275
|
|
|
261
276
|
### Patch Changes
|
|
262
277
|
|
|
263
|
-
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
-
|
|
278
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
279
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
280
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
281
|
+
- Updated dependencies
|
|
267
282
|
|
|
268
283
|
## 0.1.1
|
|
269
284
|
|
|
270
285
|
### Patch Changes
|
|
271
286
|
|
|
272
|
-
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
287
|
+
- [#63608](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63608)
|
|
288
|
+
[`bfb98fe84eae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfb98fe84eae) -
|
|
289
|
+
[ux] EDF-93: Report and resolve existing duplicate i18n message descriptor keys/IDs in editor, as
|
|
290
|
+
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.
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.keymapPlugin = keymapPlugin;
|
|
7
7
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
8
|
-
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
9
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
9
|
var _commands = require("../commands");
|
|
11
10
|
function keymapPlugin() {
|
|
@@ -15,5 +14,5 @@ function keymapPlugin() {
|
|
|
15
14
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignCenter.common, (0, _commands.changeAlignment)('center'), list);
|
|
16
15
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignRight.common, (0, _commands.changeAlignment)('end'), list);
|
|
17
16
|
}
|
|
18
|
-
return (0,
|
|
17
|
+
return (0, _keymaps.keymap)(list);
|
|
19
18
|
}
|
|
@@ -41,9 +41,11 @@ function Alignment(_ref) {
|
|
|
41
41
|
intl = _ref.intl;
|
|
42
42
|
return (0, _react.jsx)("div", {
|
|
43
43
|
"data-testid": "alignment-buttons"
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
|
+
,
|
|
46
|
+
css: _styles.alignmentWrapper
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
45
48
|
,
|
|
46
|
-
css: _styles.alignmentWrapper,
|
|
47
49
|
className: className
|
|
48
50
|
}, alignmentOptions.map(function (alignment) {
|
|
49
51
|
var value = alignment.value,
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.alignmentWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var alignmentWrapper = exports.alignmentWrapper = (0, _react.css)({
|
|
9
10
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
10
11
|
display: 'flex',
|
|
@@ -94,7 +94,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
94
94
|
var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
95
95
|
var title = intl.formatMessage(_messages.alignmentMessages.alignment);
|
|
96
96
|
return (
|
|
97
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
98
98
|
(0, _react2.jsx)("span", {
|
|
99
99
|
css: _styles2.wrapper
|
|
100
100
|
}, (0, _react2.jsx)(_uiMenu.DropdownContainer, {
|
|
@@ -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,
|
|
@@ -129,7 +131,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
129
131
|
onClick: this.toggleOpen,
|
|
130
132
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
131
133
|
iconBefore:
|
|
132
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
134
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
133
135
|
(0, _react2.jsx)("div", {
|
|
134
136
|
css: _styles2.triggerWrapper
|
|
135
137
|
}, (0, _react2.jsx)(_iconMap.IconMap, {
|
|
@@ -147,6 +149,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
147
149
|
},
|
|
148
150
|
selectedAlignment: alignment
|
|
149
151
|
})), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
150
153
|
(0, _react2.jsx)("span", {
|
|
151
154
|
css: _styles.separatorStyles
|
|
152
155
|
}))
|
|
@@ -5,16 +5,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.wrapper = exports.triggerWrapper = exports.expandIconWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var triggerWrapper = exports.triggerWrapper = (0, _react.css)({
|
|
9
10
|
display: 'flex'
|
|
10
11
|
});
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
14
|
var wrapper = exports.wrapper = (0, _react.css)({
|
|
12
15
|
display: 'flex',
|
|
13
16
|
alignItems: 'center',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
18
|
div: {
|
|
15
19
|
display: 'flex'
|
|
16
20
|
}
|
|
17
21
|
});
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
18
24
|
var expandIconWrapper = exports.expandIconWrapper = (0, _react.css)({
|
|
19
25
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
20
26
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
1
|
+
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand, keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { changeAlignment } from '../commands';
|
|
5
4
|
export function keymapPlugin() {
|
|
@@ -34,9 +34,11 @@ function Alignment({
|
|
|
34
34
|
}) {
|
|
35
35
|
return jsx("div", {
|
|
36
36
|
"data-testid": "alignment-buttons"
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
38
|
+
,
|
|
39
|
+
css: alignmentWrapper
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
38
41
|
,
|
|
39
|
-
css: alignmentWrapper,
|
|
40
42
|
className: className
|
|
41
43
|
}, alignmentOptions.map(alignment => {
|
|
42
44
|
const {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export const alignmentWrapper = css({
|
|
3
4
|
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
4
5
|
display: 'flex',
|
|
@@ -72,7 +72,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
72
72
|
const alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
73
73
|
const title = intl.formatMessage(messages.alignment);
|
|
74
74
|
return (
|
|
75
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
76
76
|
jsx("span", {
|
|
77
77
|
css: wrapper
|
|
78
78
|
}, jsx(Dropdown, {
|
|
@@ -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,
|
|
@@ -107,7 +109,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
107
109
|
onClick: this.toggleOpen,
|
|
108
110
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
109
111
|
iconBefore:
|
|
110
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
112
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
111
113
|
jsx("div", {
|
|
112
114
|
css: triggerWrapper
|
|
113
115
|
}, jsx(IconMap, {
|
|
@@ -123,6 +125,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
123
125
|
onClick: align => this.changeAlignment(align, false),
|
|
124
126
|
selectedAlignment: alignment
|
|
125
127
|
})), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
126
129
|
jsx("span", {
|
|
127
130
|
css: separatorStyles
|
|
128
131
|
}))
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export const triggerWrapper = css({
|
|
3
4
|
display: 'flex'
|
|
4
5
|
});
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
8
|
export const wrapper = css({
|
|
6
9
|
display: 'flex',
|
|
7
10
|
alignItems: 'center',
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
12
|
div: {
|
|
9
13
|
display: 'flex'
|
|
10
14
|
}
|
|
11
15
|
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
18
|
export const expandIconWrapper = css({
|
|
13
19
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
14
20
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
1
|
+
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand, keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { changeAlignment } from '../commands';
|
|
5
4
|
export function keymapPlugin() {
|
|
@@ -33,9 +33,11 @@ function Alignment(_ref) {
|
|
|
33
33
|
intl = _ref.intl;
|
|
34
34
|
return jsx("div", {
|
|
35
35
|
"data-testid": "alignment-buttons"
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
|
+
,
|
|
38
|
+
css: alignmentWrapper
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
37
40
|
,
|
|
38
|
-
css: alignmentWrapper,
|
|
39
41
|
className: className
|
|
40
42
|
}, alignmentOptions.map(function (alignment) {
|
|
41
43
|
var value = alignment.value,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export var alignmentWrapper = css({
|
|
3
4
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
4
5
|
display: 'flex',
|
|
@@ -88,7 +88,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
88
88
|
var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
89
89
|
var title = intl.formatMessage(messages.alignment);
|
|
90
90
|
return (
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
92
|
jsx("span", {
|
|
93
93
|
css: wrapper
|
|
94
94
|
}, jsx(Dropdown, {
|
|
@@ -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,
|
|
@@ -123,7 +125,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
123
125
|
onClick: this.toggleOpen,
|
|
124
126
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
125
127
|
iconBefore:
|
|
126
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
128
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
127
129
|
jsx("div", {
|
|
128
130
|
css: triggerWrapper
|
|
129
131
|
}, jsx(IconMap, {
|
|
@@ -141,6 +143,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
141
143
|
},
|
|
142
144
|
selectedAlignment: alignment
|
|
143
145
|
})), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
144
147
|
jsx("span", {
|
|
145
148
|
css: separatorStyles
|
|
146
149
|
}))
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export var triggerWrapper = css({
|
|
3
4
|
display: 'flex'
|
|
4
5
|
});
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
8
|
export var wrapper = css({
|
|
6
9
|
display: 'flex',
|
|
7
10
|
alignItems: 'center',
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
12
|
div: {
|
|
9
13
|
display: 'flex'
|
|
10
14
|
}
|
|
11
15
|
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
18
|
export var expandIconWrapper = css({
|
|
13
19
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
14
20
|
});
|
|
@@ -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,102 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"typesVersions": {
|
|
86
|
-
">=4.5 <4.9": {
|
|
87
|
-
"*": [
|
|
88
|
-
"dist/types-ts4.5/*",
|
|
89
|
-
"dist/types-ts4.5/index.d.ts"
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"af:exports": {
|
|
94
|
-
".": "./src/index.ts"
|
|
95
|
-
},
|
|
96
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
97
|
-
"platform-feature-flags": {
|
|
98
|
-
"platform.editor.text-alignment-keyboard-shortcuts": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
+
"version": "1.4.2",
|
|
4
|
+
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.ts",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Editor: AI",
|
|
19
|
+
"releaseModel": "continuous",
|
|
20
|
+
"singleton": true,
|
|
21
|
+
"runReact18": false
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
25
|
+
"@atlaskit/editor-common": "^82.6.0",
|
|
26
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
|
27
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
28
|
+
"@atlaskit/editor-tables": "^2.7.0",
|
|
29
|
+
"@atlaskit/icon": "^22.3.0",
|
|
30
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
31
|
+
"@atlaskit/tokens": "^1.50.0",
|
|
32
|
+
"@babel/runtime": "^7.0.0",
|
|
33
|
+
"@emotion/react": "^11.7.1"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^16.8.0",
|
|
37
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@af/integration-testing": "*",
|
|
41
|
+
"@af/visual-regression": "*",
|
|
42
|
+
"@atlaskit/editor-plugin-list": "^3.3.0",
|
|
43
|
+
"@atlaskit/ssr": "*",
|
|
44
|
+
"@atlaskit/visual-regression": "*",
|
|
45
|
+
"@testing-library/react": "^12.1.5",
|
|
46
|
+
"@testing-library/user-event": "^14.4.3",
|
|
47
|
+
"react-dom": "^16.8.0",
|
|
48
|
+
"typescript": "~5.4.2",
|
|
49
|
+
"wait-for-expect": "^1.2.0"
|
|
50
|
+
},
|
|
51
|
+
"techstack": {
|
|
52
|
+
"@atlassian/frontend": {
|
|
53
|
+
"import-structure": ["atlassian-conventions"],
|
|
54
|
+
"circular-dependencies": ["file-and-folder-level"]
|
|
55
|
+
},
|
|
56
|
+
"@repo/internal": {
|
|
57
|
+
"dom-events": "use-bind-event-listener",
|
|
58
|
+
"analytics": ["analytics-next"],
|
|
59
|
+
"design-tokens": ["color"],
|
|
60
|
+
"theming": ["react-context"],
|
|
61
|
+
"ui-components": ["lite-mode"],
|
|
62
|
+
"deprecation": "no-deprecated-imports",
|
|
63
|
+
"styling": ["emotion", "emotion"],
|
|
64
|
+
"imports": ["import-no-extraneous-disable-for-examples-and-docs"]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"typesVersions": {
|
|
68
|
+
">=4.5 <4.9": {
|
|
69
|
+
"*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"af:exports": {
|
|
73
|
+
".": "./src/index.ts"
|
|
74
|
+
},
|
|
75
|
+
"platform-feature-flags": {
|
|
76
|
+
"platform.editor.text-alignment-keyboard-shortcuts": {
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|