@atlaskit/editor-plugin-block-type 3.1.1 → 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 +171 -84
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,317 +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
|
+
|
|
11
|
+
## 3.1.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
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
|
|
18
|
+
|
|
3
19
|
## 3.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
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
|
|
8
26
|
|
|
9
27
|
## 3.1.0
|
|
10
28
|
|
|
11
29
|
### Minor Changes
|
|
12
30
|
|
|
13
|
-
-
|
|
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
|
|
14
34
|
|
|
15
35
|
### Patch Changes
|
|
16
36
|
|
|
17
|
-
-
|
|
37
|
+
- Updated dependencies
|
|
18
38
|
|
|
19
39
|
## 3.0.35
|
|
20
40
|
|
|
21
41
|
### Patch Changes
|
|
22
42
|
|
|
23
|
-
-
|
|
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
|
|
24
46
|
|
|
25
47
|
## 3.0.34
|
|
26
48
|
|
|
27
49
|
### Patch Changes
|
|
28
50
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
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
|
|
31
55
|
|
|
32
56
|
## 3.0.33
|
|
33
57
|
|
|
34
58
|
### Patch Changes
|
|
35
59
|
|
|
36
|
-
-
|
|
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
|
|
37
64
|
|
|
38
65
|
## 3.0.32
|
|
39
66
|
|
|
40
67
|
### Patch Changes
|
|
41
68
|
|
|
42
|
-
-
|
|
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
|
|
43
72
|
|
|
44
73
|
## 3.0.31
|
|
45
74
|
|
|
46
75
|
### Patch Changes
|
|
47
76
|
|
|
48
|
-
-
|
|
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`
|
|
49
80
|
|
|
50
81
|
## 3.0.30
|
|
51
82
|
|
|
52
83
|
### Patch Changes
|
|
53
84
|
|
|
54
|
-
-
|
|
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.
|
|
55
88
|
|
|
56
89
|
## 3.0.29
|
|
57
90
|
|
|
58
91
|
### Patch Changes
|
|
59
92
|
|
|
60
|
-
-
|
|
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
|
|
61
96
|
|
|
62
97
|
## 3.0.28
|
|
63
98
|
|
|
64
99
|
### Patch Changes
|
|
65
100
|
|
|
66
|
-
-
|
|
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.
|
|
67
105
|
|
|
68
106
|
## 3.0.27
|
|
69
107
|
|
|
70
108
|
### Patch Changes
|
|
71
109
|
|
|
72
|
-
-
|
|
73
|
-
-
|
|
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
|
|
74
114
|
|
|
75
115
|
## 3.0.26
|
|
76
116
|
|
|
77
117
|
### Patch Changes
|
|
78
118
|
|
|
79
|
-
-
|
|
80
|
-
-
|
|
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
|
|
81
123
|
|
|
82
124
|
## 3.0.25
|
|
83
125
|
|
|
84
126
|
### Patch Changes
|
|
85
127
|
|
|
86
|
-
-
|
|
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.
|
|
87
131
|
|
|
88
|
-
|
|
132
|
+
## WHY?
|
|
89
133
|
|
|
90
|
-
|
|
134
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
91
135
|
|
|
92
|
-
|
|
136
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
93
137
|
|
|
94
|
-
|
|
138
|
+
## WHAT and HOW?
|
|
95
139
|
|
|
96
|
-
|
|
140
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
141
|
+
`@atlaskit/editor-common/types`:
|
|
97
142
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
143
|
+
- InputRuleWrapper
|
|
144
|
+
- InputRuleHandler
|
|
145
|
+
- OnHandlerApply
|
|
146
|
+
- createRule
|
|
102
147
|
|
|
103
|
-
|
|
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( ... ))`).
|
|
104
150
|
|
|
105
|
-
|
|
151
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
106
152
|
|
|
107
|
-
|
|
108
|
-
|
|
153
|
+
- createPlugin
|
|
154
|
+
- createInputRulePlugin
|
|
109
155
|
|
|
110
|
-
-
|
|
156
|
+
- Updated dependencies
|
|
111
157
|
|
|
112
158
|
## 3.0.24
|
|
113
159
|
|
|
114
160
|
### Patch Changes
|
|
115
161
|
|
|
116
|
-
-
|
|
162
|
+
- Updated dependencies
|
|
117
163
|
|
|
118
164
|
## 3.0.23
|
|
119
165
|
|
|
120
166
|
### Patch Changes
|
|
121
167
|
|
|
122
|
-
-
|
|
168
|
+
- Updated dependencies
|
|
123
169
|
|
|
124
170
|
## 3.0.22
|
|
125
171
|
|
|
126
172
|
### Patch Changes
|
|
127
173
|
|
|
128
|
-
-
|
|
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
|
|
129
177
|
|
|
130
178
|
## 3.0.21
|
|
131
179
|
|
|
132
180
|
### Patch Changes
|
|
133
181
|
|
|
134
|
-
-
|
|
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
|
|
135
185
|
|
|
136
186
|
## 3.0.20
|
|
137
187
|
|
|
138
188
|
### Patch Changes
|
|
139
189
|
|
|
140
|
-
-
|
|
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.
|
|
141
193
|
|
|
142
194
|
## 3.0.19
|
|
143
195
|
|
|
144
196
|
### Patch Changes
|
|
145
197
|
|
|
146
|
-
-
|
|
198
|
+
- Updated dependencies
|
|
147
199
|
|
|
148
200
|
## 3.0.18
|
|
149
201
|
|
|
150
202
|
### Patch Changes
|
|
151
203
|
|
|
152
|
-
-
|
|
153
|
-
-
|
|
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
|
|
154
208
|
|
|
155
209
|
## 3.0.17
|
|
156
210
|
|
|
157
211
|
### Patch Changes
|
|
158
212
|
|
|
159
|
-
-
|
|
160
|
-
-
|
|
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
|
|
161
219
|
|
|
162
220
|
## 3.0.16
|
|
163
221
|
|
|
164
222
|
### Patch Changes
|
|
165
223
|
|
|
166
|
-
-
|
|
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
|
|
167
227
|
|
|
168
228
|
## 3.0.15
|
|
169
229
|
|
|
170
230
|
### Patch Changes
|
|
171
231
|
|
|
172
|
-
-
|
|
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
|
|
173
235
|
|
|
174
236
|
## 3.0.14
|
|
175
237
|
|
|
176
238
|
### Patch Changes
|
|
177
239
|
|
|
178
|
-
-
|
|
179
|
-
-
|
|
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
|
|
180
244
|
|
|
181
245
|
## 3.0.13
|
|
182
246
|
|
|
183
247
|
### Patch Changes
|
|
184
248
|
|
|
185
|
-
-
|
|
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.
|
|
186
253
|
|
|
187
254
|
## 3.0.12
|
|
188
255
|
|
|
189
256
|
### Patch Changes
|
|
190
257
|
|
|
191
|
-
-
|
|
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
|
|
192
261
|
|
|
193
262
|
## 3.0.11
|
|
194
263
|
|
|
195
264
|
### Patch Changes
|
|
196
265
|
|
|
197
|
-
-
|
|
198
|
-
-
|
|
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
|
|
199
270
|
|
|
200
271
|
## 3.0.10
|
|
201
272
|
|
|
202
273
|
### Patch Changes
|
|
203
274
|
|
|
204
|
-
-
|
|
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
|
|
205
278
|
|
|
206
279
|
## 3.0.9
|
|
207
280
|
|
|
208
281
|
### Patch Changes
|
|
209
282
|
|
|
210
|
-
-
|
|
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
|
|
211
286
|
|
|
212
287
|
## 3.0.8
|
|
213
288
|
|
|
214
289
|
### Patch Changes
|
|
215
290
|
|
|
216
|
-
-
|
|
291
|
+
- Updated dependencies
|
|
217
292
|
|
|
218
293
|
## 3.0.7
|
|
219
294
|
|
|
220
295
|
### Patch Changes
|
|
221
296
|
|
|
222
|
-
-
|
|
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).
|
|
223
300
|
|
|
224
301
|
## 3.0.6
|
|
225
302
|
|
|
226
303
|
### Patch Changes
|
|
227
304
|
|
|
228
|
-
-
|
|
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
|
|
229
308
|
|
|
230
309
|
## 3.0.5
|
|
231
310
|
|
|
232
311
|
### Patch Changes
|
|
233
312
|
|
|
234
|
-
-
|
|
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
|
|
235
316
|
|
|
236
317
|
## 3.0.4
|
|
237
318
|
|
|
238
319
|
### Patch Changes
|
|
239
320
|
|
|
240
|
-
-
|
|
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
|
|
241
324
|
|
|
242
325
|
## 3.0.3
|
|
243
326
|
|
|
244
327
|
### Patch Changes
|
|
245
328
|
|
|
246
|
-
-
|
|
329
|
+
- Updated dependencies
|
|
247
330
|
|
|
248
331
|
## 3.0.2
|
|
249
332
|
|
|
250
333
|
### Patch Changes
|
|
251
334
|
|
|
252
|
-
-
|
|
253
|
-
-
|
|
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
|
|
254
339
|
|
|
255
340
|
## 3.0.1
|
|
256
341
|
|
|
257
342
|
### Patch Changes
|
|
258
343
|
|
|
259
|
-
-
|
|
344
|
+
- Updated dependencies
|
|
260
345
|
|
|
261
346
|
## 3.0.0
|
|
262
347
|
|
|
263
348
|
### Major Changes
|
|
264
349
|
|
|
265
|
-
-
|
|
266
|
-
|
|
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.
|
|
267
353
|
|
|
268
|
-
|
|
269
|
-
|
|
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.
|
|
270
356
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
"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.)
|
|
275
360
|
|
|
276
|
-
|
|
277
|
-
|
|
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:
|
|
278
363
|
|
|
279
|
-
|
|
364
|
+
Before:
|
|
280
365
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
366
|
+
```ts
|
|
367
|
+
api?.blockType.actions.setBlockType(blockType, inputMethod)(state, dispatch);
|
|
368
|
+
```
|
|
284
369
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
);
|
|
289
|
-
```
|
|
370
|
+
```ts
|
|
371
|
+
api?.core.actions.execute(api?.blockType.commands.setTextLevel(blockType, inputMethod));
|
|
372
|
+
```
|
|
290
373
|
|
|
291
374
|
## 2.0.0
|
|
292
375
|
|
|
293
376
|
### Major Changes
|
|
294
377
|
|
|
295
|
-
-
|
|
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
|
|
296
381
|
|
|
297
382
|
### Patch Changes
|
|
298
383
|
|
|
299
|
-
-
|
|
384
|
+
- Updated dependencies
|
|
300
385
|
|
|
301
386
|
## 1.0.3
|
|
302
387
|
|
|
303
388
|
### Patch Changes
|
|
304
389
|
|
|
305
|
-
-
|
|
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
|
|
306
393
|
|
|
307
394
|
## 1.0.2
|
|
308
395
|
|
|
309
396
|
### Patch Changes
|
|
310
397
|
|
|
311
|
-
-
|
|
398
|
+
- Updated dependencies
|
|
312
399
|
|
|
313
400
|
## 1.0.1
|
|
314
401
|
|
|
315
402
|
### Patch Changes
|
|
316
403
|
|
|
317
|
-
-
|
|
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,17 +35,17 @@
|
|
|
35
35
|
"./styles": "./src/styles.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/adf-schema": "^35.
|
|
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
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^2.10.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
44
44
|
"@atlaskit/icon": "^22.1.0",
|
|
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
|
},
|