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