@atlaskit/editor-plugin-block-type 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +172 -85
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,323 +1,410 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 3.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.1.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
14
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
15
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
16
|
+
|
|
3
17
|
## 3.1.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
21
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
22
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
23
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
8
24
|
|
|
9
25
|
## 3.1.1
|
|
10
26
|
|
|
11
27
|
### Patch Changes
|
|
12
28
|
|
|
13
|
-
-
|
|
29
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
30
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
31
|
+
Updating adf-schema version to 35.10.0
|
|
14
32
|
|
|
15
33
|
## 3.1.0
|
|
16
34
|
|
|
17
35
|
### Minor Changes
|
|
18
36
|
|
|
19
|
-
-
|
|
37
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
38
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
39
|
+
bumped editor-prosemirror version to 4.0.0
|
|
20
40
|
|
|
21
41
|
### Patch Changes
|
|
22
42
|
|
|
23
|
-
-
|
|
43
|
+
- Updated dependencies
|
|
24
44
|
|
|
25
45
|
## 3.0.35
|
|
26
46
|
|
|
27
47
|
### Patch Changes
|
|
28
48
|
|
|
29
|
-
-
|
|
49
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
50
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
51
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
30
52
|
|
|
31
53
|
## 3.0.34
|
|
32
54
|
|
|
33
55
|
### Patch Changes
|
|
34
56
|
|
|
35
|
-
-
|
|
36
|
-
-
|
|
57
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
58
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
59
|
+
Bump ADF-schema package to version 35.0.0
|
|
60
|
+
- Updated dependencies
|
|
37
61
|
|
|
38
62
|
## 3.0.33
|
|
39
63
|
|
|
40
64
|
### Patch Changes
|
|
41
65
|
|
|
42
|
-
-
|
|
66
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
67
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
68
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
69
|
+
35.7.0 to 35.8.0
|
|
43
70
|
|
|
44
71
|
## 3.0.32
|
|
45
72
|
|
|
46
73
|
### Patch Changes
|
|
47
74
|
|
|
48
|
-
-
|
|
75
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
76
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
77
|
+
Bump adf-schema to 35.7.0
|
|
49
78
|
|
|
50
79
|
## 3.0.31
|
|
51
80
|
|
|
52
81
|
### Patch Changes
|
|
53
82
|
|
|
54
|
-
-
|
|
83
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
84
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
85
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
55
86
|
|
|
56
87
|
## 3.0.30
|
|
57
88
|
|
|
58
89
|
### Patch Changes
|
|
59
90
|
|
|
60
|
-
-
|
|
91
|
+
- [#80883](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80883)
|
|
92
|
+
[`5ecfa883d4ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ecfa883d4ba) -
|
|
93
|
+
React 18 types for alignment, annotation, avatar-group and blocktype plugins.
|
|
61
94
|
|
|
62
95
|
## 3.0.29
|
|
63
96
|
|
|
64
97
|
### Patch Changes
|
|
65
98
|
|
|
66
|
-
-
|
|
99
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
100
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
101
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
67
102
|
|
|
68
103
|
## 3.0.28
|
|
69
104
|
|
|
70
105
|
### Patch Changes
|
|
71
106
|
|
|
72
|
-
-
|
|
107
|
+
- [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518)
|
|
108
|
+
[`e0d5e8fd9495`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0d5e8fd9495) -
|
|
109
|
+
Migrates some style calls to a slightly different object syntax and other minor cleanup around
|
|
110
|
+
eslint rules.
|
|
73
111
|
|
|
74
112
|
## 3.0.27
|
|
75
113
|
|
|
76
114
|
### Patch Changes
|
|
77
115
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
116
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
117
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
118
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
119
|
+
- Updated dependencies
|
|
80
120
|
|
|
81
121
|
## 3.0.26
|
|
82
122
|
|
|
83
123
|
### Patch Changes
|
|
84
124
|
|
|
85
|
-
-
|
|
86
|
-
-
|
|
125
|
+
- [#76093](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76093)
|
|
126
|
+
[`fc113e0c416f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc113e0c416f) -
|
|
127
|
+
ED-22243 handling of backspace for mediaGroup node nested in panel
|
|
128
|
+
- Updated dependencies
|
|
87
129
|
|
|
88
130
|
## 3.0.25
|
|
89
131
|
|
|
90
132
|
### Patch Changes
|
|
91
133
|
|
|
92
|
-
-
|
|
134
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
135
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
136
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
93
137
|
|
|
94
|
-
|
|
138
|
+
## WHY?
|
|
95
139
|
|
|
96
|
-
|
|
140
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
97
141
|
|
|
98
|
-
|
|
142
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
99
143
|
|
|
100
|
-
|
|
144
|
+
## WHAT and HOW?
|
|
101
145
|
|
|
102
|
-
|
|
146
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
147
|
+
`@atlaskit/editor-common/types`:
|
|
103
148
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
149
|
+
- InputRuleWrapper
|
|
150
|
+
- InputRuleHandler
|
|
151
|
+
- OnHandlerApply
|
|
152
|
+
- createRule
|
|
108
153
|
|
|
109
|
-
|
|
154
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
155
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
110
156
|
|
|
111
|
-
|
|
157
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
112
158
|
|
|
113
|
-
|
|
114
|
-
|
|
159
|
+
- createPlugin
|
|
160
|
+
- createInputRulePlugin
|
|
115
161
|
|
|
116
|
-
-
|
|
162
|
+
- Updated dependencies
|
|
117
163
|
|
|
118
164
|
## 3.0.24
|
|
119
165
|
|
|
120
166
|
### Patch Changes
|
|
121
167
|
|
|
122
|
-
-
|
|
168
|
+
- Updated dependencies
|
|
123
169
|
|
|
124
170
|
## 3.0.23
|
|
125
171
|
|
|
126
172
|
### Patch Changes
|
|
127
173
|
|
|
128
|
-
-
|
|
174
|
+
- Updated dependencies
|
|
129
175
|
|
|
130
176
|
## 3.0.22
|
|
131
177
|
|
|
132
178
|
### Patch Changes
|
|
133
179
|
|
|
134
|
-
-
|
|
180
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
181
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
182
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
135
183
|
|
|
136
184
|
## 3.0.21
|
|
137
185
|
|
|
138
186
|
### Patch Changes
|
|
139
187
|
|
|
140
|
-
-
|
|
188
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
189
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
190
|
+
Updating adf-schema version to 35.5.1
|
|
141
191
|
|
|
142
192
|
## 3.0.20
|
|
143
193
|
|
|
144
194
|
### Patch Changes
|
|
145
195
|
|
|
146
|
-
-
|
|
196
|
+
- [#68217](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68217)
|
|
197
|
+
[`bfd8d2ded4aa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bfd8d2ded4aa) -
|
|
198
|
+
[ux] correctly delete the decision list inside panel having only one decision item.
|
|
147
199
|
|
|
148
200
|
## 3.0.19
|
|
149
201
|
|
|
150
202
|
### Patch Changes
|
|
151
203
|
|
|
152
|
-
-
|
|
204
|
+
- Updated dependencies
|
|
153
205
|
|
|
154
206
|
## 3.0.18
|
|
155
207
|
|
|
156
208
|
### Patch Changes
|
|
157
209
|
|
|
158
|
-
-
|
|
159
|
-
-
|
|
210
|
+
- [#67857](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67857)
|
|
211
|
+
[`9f1035441959`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f1035441959) -
|
|
212
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
213
|
+
- Updated dependencies
|
|
160
214
|
|
|
161
215
|
## 3.0.17
|
|
162
216
|
|
|
163
217
|
### Patch Changes
|
|
164
218
|
|
|
165
|
-
-
|
|
166
|
-
-
|
|
219
|
+
- [#67557](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67557)
|
|
220
|
+
[`124d0c6d5286`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/124d0c6d5286) -
|
|
221
|
+
Migrating block-type, text-color, and text-formatting to use useSharedPluginState rather than
|
|
222
|
+
WithPluginState. Removing unused option on default preset. Adding formattingIsPresent prop to
|
|
223
|
+
TextFormattingState.
|
|
224
|
+
- Updated dependencies
|
|
167
225
|
|
|
168
226
|
## 3.0.16
|
|
169
227
|
|
|
170
228
|
### Patch Changes
|
|
171
229
|
|
|
172
|
-
-
|
|
230
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
231
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
232
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
173
233
|
|
|
174
234
|
## 3.0.15
|
|
175
235
|
|
|
176
236
|
### Patch Changes
|
|
177
237
|
|
|
178
|
-
-
|
|
238
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
239
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
240
|
+
Ensure all editor plugins are marked as singletons
|
|
179
241
|
|
|
180
242
|
## 3.0.14
|
|
181
243
|
|
|
182
244
|
### Patch Changes
|
|
183
245
|
|
|
184
|
-
-
|
|
185
|
-
-
|
|
246
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
247
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
248
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
249
|
+
- Updated dependencies
|
|
186
250
|
|
|
187
251
|
## 3.0.13
|
|
188
252
|
|
|
189
253
|
### Patch Changes
|
|
190
254
|
|
|
191
|
-
-
|
|
255
|
+
- [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923)
|
|
256
|
+
[`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) -
|
|
257
|
+
Remove legacy theming logic from all Editor plugin packages. Theming is still available via the
|
|
258
|
+
@atlaskit/tokens package.
|
|
192
259
|
|
|
193
260
|
## 3.0.12
|
|
194
261
|
|
|
195
262
|
### Patch Changes
|
|
196
263
|
|
|
197
|
-
-
|
|
264
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
265
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
266
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
198
267
|
|
|
199
268
|
## 3.0.11
|
|
200
269
|
|
|
201
270
|
### Patch Changes
|
|
202
271
|
|
|
203
|
-
-
|
|
204
|
-
-
|
|
272
|
+
- [#60534](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60534)
|
|
273
|
+
[`191a38f1ea23`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/191a38f1ea23) -
|
|
274
|
+
ED-20966 Use blockQuoteWithList PMNode when 'allow-list-in-blockquote' FF is enabled
|
|
275
|
+
- Updated dependencies
|
|
205
276
|
|
|
206
277
|
## 3.0.10
|
|
207
278
|
|
|
208
279
|
### Patch Changes
|
|
209
280
|
|
|
210
|
-
-
|
|
281
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
282
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
283
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
211
284
|
|
|
212
285
|
## 3.0.9
|
|
213
286
|
|
|
214
287
|
### Patch Changes
|
|
215
288
|
|
|
216
|
-
-
|
|
289
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
290
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
291
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
217
292
|
|
|
218
293
|
## 3.0.8
|
|
219
294
|
|
|
220
295
|
### Patch Changes
|
|
221
296
|
|
|
222
|
-
-
|
|
297
|
+
- Updated dependencies
|
|
223
298
|
|
|
224
299
|
## 3.0.7
|
|
225
300
|
|
|
226
301
|
### Patch Changes
|
|
227
302
|
|
|
228
|
-
-
|
|
303
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
304
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
305
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
229
306
|
|
|
230
307
|
## 3.0.6
|
|
231
308
|
|
|
232
309
|
### Patch Changes
|
|
233
310
|
|
|
234
|
-
-
|
|
311
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
312
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
313
|
+
update ADF schema
|
|
235
314
|
|
|
236
315
|
## 3.0.5
|
|
237
316
|
|
|
238
317
|
### Patch Changes
|
|
239
318
|
|
|
240
|
-
-
|
|
319
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
320
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
321
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
241
322
|
|
|
242
323
|
## 3.0.4
|
|
243
324
|
|
|
244
325
|
### Patch Changes
|
|
245
326
|
|
|
246
|
-
-
|
|
327
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
328
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
|
|
329
|
+
ED-20971 Upgrade adf-schema package to ^34.0.0
|
|
247
330
|
|
|
248
331
|
## 3.0.3
|
|
249
332
|
|
|
250
333
|
### Patch Changes
|
|
251
334
|
|
|
252
|
-
-
|
|
335
|
+
- Updated dependencies
|
|
253
336
|
|
|
254
337
|
## 3.0.2
|
|
255
338
|
|
|
256
339
|
### Patch Changes
|
|
257
340
|
|
|
258
|
-
-
|
|
259
|
-
-
|
|
341
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
342
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) -
|
|
343
|
+
ED-20763 Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
344
|
+
- Updated dependencies
|
|
260
345
|
|
|
261
346
|
## 3.0.1
|
|
262
347
|
|
|
263
348
|
### Patch Changes
|
|
264
349
|
|
|
265
|
-
-
|
|
350
|
+
- Updated dependencies
|
|
266
351
|
|
|
267
352
|
## 3.0.0
|
|
268
353
|
|
|
269
354
|
### Major Changes
|
|
270
355
|
|
|
271
|
-
-
|
|
272
|
-
|
|
356
|
+
- [#42090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42090)
|
|
357
|
+
[`dfea93d39c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfea93d39c9) -
|
|
358
|
+
Replacing setBlockType action on `editor-plugin-block-type` with setTextLevel command.
|
|
273
359
|
|
|
274
|
-
|
|
275
|
-
|
|
360
|
+
WHAT/WHY?: setBlockType is only for headings/text so the naming is not clear, it is also an
|
|
361
|
+
action which makes it difficult to use by external consumers.
|
|
276
362
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
"heading2" etc.)
|
|
363
|
+
This replacement can be easily used by external consumers (ie. for custom toolbars) and also has
|
|
364
|
+
more type safety (for setBlockType the name parameter is any string but setTextLevel only
|
|
365
|
+
accepts valid values including "normal", "heading1", "heading2" etc.)
|
|
281
366
|
|
|
282
|
-
|
|
283
|
-
|
|
367
|
+
HOW?: This API at this stage should be unused by consumers to the best of our knowledge. However
|
|
368
|
+
if you are using it you should change as so:
|
|
284
369
|
|
|
285
|
-
|
|
370
|
+
Before:
|
|
286
371
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
372
|
+
```ts
|
|
373
|
+
api?.blockType.actions.setBlockType(blockType, inputMethod)(state, dispatch);
|
|
374
|
+
```
|
|
290
375
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
);
|
|
295
|
-
```
|
|
376
|
+
```ts
|
|
377
|
+
api?.core.actions.execute(api?.blockType.commands.setTextLevel(blockType, inputMethod));
|
|
378
|
+
```
|
|
296
379
|
|
|
297
380
|
## 2.0.0
|
|
298
381
|
|
|
299
382
|
### Major Changes
|
|
300
383
|
|
|
301
|
-
-
|
|
384
|
+
- [#40850](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40850)
|
|
385
|
+
[`e7cead0f099`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7cead0f099) - Move
|
|
386
|
+
shared messages to editor-common
|
|
302
387
|
|
|
303
388
|
### Patch Changes
|
|
304
389
|
|
|
305
|
-
-
|
|
390
|
+
- Updated dependencies
|
|
306
391
|
|
|
307
392
|
## 1.0.3
|
|
308
393
|
|
|
309
394
|
### Patch Changes
|
|
310
395
|
|
|
311
|
-
-
|
|
396
|
+
- [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
|
|
397
|
+
[`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) -
|
|
398
|
+
Connect yarn changeset to packages, upgrade adf-schema
|
|
312
399
|
|
|
313
400
|
## 1.0.2
|
|
314
401
|
|
|
315
402
|
### Patch Changes
|
|
316
403
|
|
|
317
|
-
-
|
|
404
|
+
- Updated dependencies
|
|
318
405
|
|
|
319
406
|
## 1.0.1
|
|
320
407
|
|
|
321
408
|
### Patch Changes
|
|
322
409
|
|
|
323
|
-
-
|
|
410
|
+
- Updated dependencies
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"./styles": "./src/styles.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/adf-schema": "^35.12.
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
38
|
+
"@atlaskit/adf-schema": "^35.12.2",
|
|
39
|
+
"@atlaskit/editor-common": "^79.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^2.10.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
46
46
|
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
47
47
|
"@atlaskit/theme": "^12.7.0",
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1"
|
|
51
51
|
},
|