@atlaskit/editor-plugin-insert-block 1.2.1 → 1.2.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 CHANGED
@@ -1,367 +1,450 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#92968](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92968)
14
+ [`f33e18f5cfa8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f33e18f5cfa8) -
15
+ [ux] [ED-22585] - Made sure that table buttons do not render if they are not visible
16
+ - Updated dependencies
17
+
3
18
  ## 1.2.1
4
19
 
5
20
  ### Patch Changes
6
21
 
7
- - [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316) [`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) - Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
22
+ - [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316)
23
+ [`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) -
24
+ Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
8
25
 
9
26
  ## 1.2.0
10
27
 
11
28
  ### Minor Changes
12
29
 
13
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
30
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
31
+ [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
32
+ bumped editor-prosemirror version to 4.0.0
14
33
 
15
34
  ### Patch Changes
16
35
 
17
- - Updated dependencies
36
+ - Updated dependencies
18
37
 
19
38
  ## 1.1.9
20
39
 
21
40
  ### Patch Changes
22
41
 
23
- - [#85055](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85055) [`0eb5901fd1e7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0eb5901fd1e7) - Fix the editor not focusing after inserting an emoji from the toolbar.
42
+ - [#85055](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85055)
43
+ [`0eb5901fd1e7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0eb5901fd1e7) -
44
+ Fix the editor not focusing after inserting an emoji from the toolbar.
24
45
 
25
46
  ## 1.1.8
26
47
 
27
48
  ### Patch Changes
28
49
 
29
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
50
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
51
+ [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
52
+ Upgrade Typescript from `4.9.5` to `5.4.2`
30
53
 
31
54
  ## 1.1.7
32
55
 
33
56
  ### Patch Changes
34
57
 
35
- - Updated dependencies
58
+ - Updated dependencies
36
59
 
37
60
  ## 1.1.6
38
61
 
39
62
  ### Patch Changes
40
63
 
41
- - [#81852](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81852) [`c784155d4ad6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c784155d4ad6) - React 18 types for editor-plugin-insert-block
64
+ - [#81852](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81852)
65
+ [`c784155d4ad6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c784155d4ad6) -
66
+ React 18 types for editor-plugin-insert-block
42
67
 
43
68
  ## 1.1.5
44
69
 
45
70
  ### Patch Changes
46
71
 
47
- - [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518) [`e0d5e8fd9495`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0d5e8fd9495) - Migrates some style calls to a slightly different object syntax and other minor cleanup around eslint rules.
72
+ - [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518)
73
+ [`e0d5e8fd9495`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0d5e8fd9495) -
74
+ Migrates some style calls to a slightly different object syntax and other minor cleanup around
75
+ eslint rules.
48
76
 
49
77
  ## 1.1.4
50
78
 
51
79
  ### Patch Changes
52
80
 
53
- - [#76323](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76323) [`5beb55a40496`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5beb55a40496) - updated EXTRA_SPACE_EXCLUDING_ELEMENTLIST to fix single item scroll issue
54
- - Updated dependencies
81
+ - [#76323](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76323)
82
+ [`5beb55a40496`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5beb55a40496) -
83
+ updated EXTRA_SPACE_EXCLUDING_ELEMENTLIST to fix single item scroll issue
84
+ - Updated dependencies
55
85
 
56
86
  ## 1.1.3
57
87
 
58
88
  ### Patch Changes
59
89
 
60
- - Updated dependencies
90
+ - Updated dependencies
61
91
 
62
92
  ## 1.1.2
63
93
 
64
94
  ### Patch Changes
65
95
 
66
- - [#77599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77599) [`a7b1a6b762eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7b1a6b762eb) - [ux] Table picker popup displays text using column x rows pattern and table picker button uses label column by row.
96
+ - [#77599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77599)
97
+ [`a7b1a6b762eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7b1a6b762eb) -
98
+ [ux] Table picker popup displays text using column x rows pattern and table picker button uses
99
+ label column by row.
67
100
 
68
101
  ## 1.1.1
69
102
 
70
103
  ### Patch Changes
71
104
 
72
- - Updated dependencies
105
+ - Updated dependencies
73
106
 
74
107
  ## 1.1.0
75
108
 
76
109
  ### Minor Changes
77
110
 
78
- - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122) [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) - Breaking change:
111
+ - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
112
+ [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
113
+ Breaking change:
79
114
 
80
- ## WHAT?:
115
+ ## WHAT?:
81
116
 
82
- Removing feature flags:
117
+ Removing feature flags:
83
118
 
84
- - singleLayout
85
- - newInsertionBehaviour
86
- - interactiveExpand
87
- - findReplace
88
- - findReplaceMatchCase
89
- - extendFloatingToolbar
119
+ - singleLayout
120
+ - newInsertionBehaviour
121
+ - interactiveExpand
122
+ - findReplace
123
+ - findReplaceMatchCase
124
+ - extendFloatingToolbar
90
125
 
91
- ## WHY?:
126
+ ## WHY?:
92
127
 
93
- Because the flags and props are unused/by default active. Removing them will reduce our maintenance burden
128
+ Because the flags and props are unused/by default active. Removing them will reduce our
129
+ maintenance burden
94
130
 
95
- ## HOW to update your code:
131
+ ## HOW to update your code:
96
132
 
97
- - If you were using the feature flag - the behaviour is now default and you can remove the flags
98
- - If you were not using the feature flag - the behaviour is now default.
99
- - If you have opted out of using the feature flag - we have been careful to ensure no-one has opted out of the behaviours. If you do have an issue please reach out to #help-editor.
133
+ - If you were using the feature flag - the behaviour is now default and you can remove the
134
+ flags
135
+ - If you were not using the feature flag - the behaviour is now default.
136
+ - If you have opted out of using the feature flag - we have been careful to ensure no-one has
137
+ opted out of the behaviours. If you do have an issue please reach out to #help-editor.
100
138
 
101
139
  ### Patch Changes
102
140
 
103
- - Updated dependencies
141
+ - Updated dependencies
104
142
 
105
143
  ## 1.0.1
106
144
 
107
145
  ### Patch Changes
108
146
 
109
- - [#72440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72440) [`eee41a9f4bda`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eee41a9f4bda) - [ux] Ensures that when a table is inserted via popup, the table has a blinking cursor.
147
+ - [#72440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72440)
148
+ [`eee41a9f4bda`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eee41a9f4bda) -
149
+ [ux] Ensures that when a table is inserted via popup, the table has a blinking cursor.
110
150
 
111
151
  ## 1.0.0
112
152
 
113
153
  ### Major Changes
114
154
 
115
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386) [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) - This changeset exists to bump all editor plugins that currently don't have a major version. This is to address an issue with Jira plugin consumption.
155
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
156
+ [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
157
+ This changeset exists to bump all editor plugins that currently don't have a major version. This
158
+ is to address an issue with Jira plugin consumption.
116
159
 
117
160
  ### Patch Changes
118
161
 
119
- - Updated dependencies
162
+ - Updated dependencies
120
163
 
121
164
  ## 0.3.6
122
165
 
123
166
  ### Patch Changes
124
167
 
125
- - [#72081](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72081) [`4487160917d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4487160917d2) - [ux] ED-22052: adds button type attribute to non atlaskit button instances
168
+ - [#72081](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72081)
169
+ [`4487160917d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4487160917d2) -
170
+ [ux] ED-22052: adds button type attribute to non atlaskit button instances
126
171
 
127
172
  ## 0.3.5
128
173
 
129
174
  ### Patch Changes
130
175
 
131
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
176
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
177
+ [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
178
+ Upgrading @atlaskit/editor-prosemirror dependency
132
179
 
133
180
  ## 0.3.4
134
181
 
135
182
  ### Patch Changes
136
183
 
137
- - [#71128](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71128) [`d8b202a941c9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d8b202a941c9) - [ux] When the Right Arrow is pressed and the selection reaches the last row of the default popup, the grid should expand
138
- - Updated dependencies
184
+ - [#71128](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71128)
185
+ [`d8b202a941c9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d8b202a941c9) -
186
+ [ux] When the Right Arrow is pressed and the selection reaches the last row of the default
187
+ popup, the grid should expand
188
+ - Updated dependencies
139
189
 
140
190
  ## 0.3.3
141
191
 
142
192
  ### Patch Changes
143
193
 
144
- - [#70300](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70300) [`9622d585a805`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9622d585a805) - [ux] decreased popup size when wrapping selection with arrowRight
194
+ - [#70300](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70300)
195
+ [`9622d585a805`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9622d585a805) -
196
+ [ux] decreased popup size when wrapping selection with arrowRight
145
197
 
146
198
  ## 0.3.2
147
199
 
148
200
  ### Patch Changes
149
201
 
150
- - Updated dependencies
202
+ - Updated dependencies
151
203
 
152
204
  ## 0.3.1
153
205
 
154
206
  ### Patch Changes
155
207
 
156
- - [#68670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68670) [`801899ef02f2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/801899ef02f2) - [ux] Added accessibility via keyboard for arrows left, right, up and down
157
- - Updated dependencies
208
+ - [#68670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68670)
209
+ [`801899ef02f2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/801899ef02f2) -
210
+ [ux] Added accessibility via keyboard for arrows left, right, up and down
211
+ - Updated dependencies
158
212
 
159
213
  ## 0.3.0
160
214
 
161
215
  ### Minor Changes
162
216
 
163
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790) [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) - Support maybeAdd plugins in usePreset. Add typing support for universal preset.
217
+ - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
218
+ [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
219
+ Support maybeAdd plugins in usePreset. Add typing support for universal preset.
164
220
 
165
- Now when using the editor API with the universal preset
221
+ Now when using the editor API with the universal preset
166
222
 
167
223
  ### Patch Changes
168
224
 
169
- - Updated dependencies
225
+ - Updated dependencies
170
226
 
171
227
  ## 0.2.27
172
228
 
173
229
  ### Patch Changes
174
230
 
175
- - Updated dependencies
231
+ - Updated dependencies
176
232
 
177
233
  ## 0.2.26
178
234
 
179
235
  ### Patch Changes
180
236
 
181
- - [#63634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63634) [`669b7038b354`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/669b7038b354) - chenged aria-label text
237
+ - [#63634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63634)
238
+ [`669b7038b354`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/669b7038b354) -
239
+ chenged aria-label text
182
240
 
183
241
  ## 0.2.25
184
242
 
185
243
  ### Patch Changes
186
244
 
187
- - [#67703](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67703) [`d5303cb0f0cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5303cb0f0cb) - When a table is inserted via the table selector popup, an analytics event should be sent with the totalRowCount and totalColumnCount and the input method picker. Removed ASCII and TYPEAHEAD inputMethod from table selector command.
188
- - Updated dependencies
245
+ - [#67703](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67703)
246
+ [`d5303cb0f0cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5303cb0f0cb) -
247
+ When a table is inserted via the table selector popup, an analytics event should be sent with
248
+ the totalRowCount and totalColumnCount and the input method picker. Removed ASCII and TYPEAHEAD
249
+ inputMethod from table selector command.
250
+ - Updated dependencies
189
251
 
190
252
  ## 0.2.24
191
253
 
192
254
  ### Patch Changes
193
255
 
194
- - Updated dependencies
256
+ - Updated dependencies
195
257
 
196
258
  ## 0.2.23
197
259
 
198
260
  ### Patch Changes
199
261
 
200
- - Updated dependencies
262
+ - Updated dependencies
201
263
 
202
264
  ## 0.2.22
203
265
 
204
266
  ### Patch Changes
205
267
 
206
- - Updated dependencies
268
+ - Updated dependencies
207
269
 
208
270
  ## 0.2.21
209
271
 
210
272
  ### Patch Changes
211
273
 
212
- - [#67051](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67051) [`08b5bd90a149`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08b5bd90a149) - [ux] The table selector popup should gradually expand to 10 x 10 rows when hovered
213
- - Updated dependencies
274
+ - [#67051](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67051)
275
+ [`08b5bd90a149`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08b5bd90a149) -
276
+ [ux] The table selector popup should gradually expand to 10 x 10 rows when hovered
277
+ - Updated dependencies
214
278
 
215
279
  ## 0.2.20
216
280
 
217
281
  ### Patch Changes
218
282
 
219
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
283
+ - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
284
+ [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
285
+ [ED-21835] Change EditorAPI type to always union with undefined
220
286
 
221
287
  ## 0.2.19
222
288
 
223
289
  ### Patch Changes
224
290
 
225
- - [#65874](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65874) [`282862992d2a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/282862992d2a) - [ux] added popup to table selector button using mouse movement
291
+ - [#65874](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65874)
292
+ [`282862992d2a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/282862992d2a) -
293
+ [ux] added popup to table selector button using mouse movement
226
294
 
227
295
  ## 0.2.18
228
296
 
229
297
  ### Patch Changes
230
298
 
231
- - Updated dependencies
299
+ - Updated dependencies
232
300
 
233
301
  ## 0.2.17
234
302
 
235
303
  ### Patch Changes
236
304
 
237
- - Updated dependencies
305
+ - Updated dependencies
238
306
 
239
307
  ## 0.2.16
240
308
 
241
309
  ### Patch Changes
242
310
 
243
- - Updated dependencies
311
+ - Updated dependencies
244
312
 
245
313
  ## 0.2.15
246
314
 
247
315
  ### Patch Changes
248
316
 
249
- - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802) [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) - Ensure all editor plugins are marked as singletons
317
+ - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
318
+ [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
319
+ Ensure all editor plugins are marked as singletons
250
320
 
251
321
  ## 0.2.14
252
322
 
253
323
  ### Patch Changes
254
324
 
255
- - Updated dependencies
325
+ - Updated dependencies
256
326
 
257
327
  ## 0.2.13
258
328
 
259
329
  ### Patch Changes
260
330
 
261
- - Updated dependencies
331
+ - Updated dependencies
262
332
 
263
333
  ## 0.2.12
264
334
 
265
335
  ### Patch Changes
266
336
 
267
- - [#64152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64152) [`4bc51e1731ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4bc51e1731ba) - [ux] Added a table selector button to the full page toolbar and button styles
268
- - Updated dependencies
337
+ - [#64152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64152)
338
+ [`4bc51e1731ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4bc51e1731ba) -
339
+ [ux] Added a table selector button to the full page toolbar and button styles
340
+ - Updated dependencies
269
341
 
270
342
  ## 0.2.11
271
343
 
272
344
  ### Patch Changes
273
345
 
274
- - Updated dependencies
346
+ - Updated dependencies
275
347
 
276
348
  ## 0.2.10
277
349
 
278
350
  ### Patch Changes
279
351
 
280
- - Updated dependencies
352
+ - Updated dependencies
281
353
 
282
354
  ## 0.2.9
283
355
 
284
356
  ### Patch Changes
285
357
 
286
- - Updated dependencies
358
+ - Updated dependencies
287
359
 
288
360
  ## 0.2.8
289
361
 
290
362
  ### Patch Changes
291
363
 
292
- - Updated dependencies
364
+ - Updated dependencies
293
365
 
294
366
  ## 0.2.7
295
367
 
296
368
  ### Patch Changes
297
369
 
298
- - Updated dependencies
370
+ - Updated dependencies
299
371
 
300
372
  ## 0.2.6
301
373
 
302
374
  ### Patch Changes
303
375
 
304
- - [#61337](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61337) [`2d827c1d6c40`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d827c1d6c40) - Remove emojiProvider property from the sharedState of the emoji plugin. This avoids a performance degradation if the provider is not memoised. It can still be retrieved via the provider factory if required internally.
305
- - Updated dependencies
376
+ - [#61337](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61337)
377
+ [`2d827c1d6c40`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d827c1d6c40) -
378
+ Remove emojiProvider property from the sharedState of the emoji plugin. This avoids a
379
+ performance degradation if the provider is not memoised. It can still be retrieved via the
380
+ provider factory if required internally.
381
+ - Updated dependencies
306
382
 
307
383
  ## 0.2.5
308
384
 
309
385
  ### Patch Changes
310
386
 
311
- - [#60612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60612) [`7edc766361a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7edc766361a2) - Created an EditorCommad on table plugin to insert a table of custom size
387
+ - [#60612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60612)
388
+ [`7edc766361a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7edc766361a2) -
389
+ Created an EditorCommad on table plugin to insert a table of custom size
312
390
 
313
391
  ## 0.2.4
314
392
 
315
393
  ### Patch Changes
316
394
 
317
- - Updated dependencies
395
+ - Updated dependencies
318
396
 
319
397
  ## 0.2.3
320
398
 
321
399
  ### Patch Changes
322
400
 
323
- - Updated dependencies
401
+ - Updated dependencies
324
402
 
325
403
  ## 0.2.2
326
404
 
327
405
  ### Patch Changes
328
406
 
329
- - Updated dependencies
407
+ - Updated dependencies
330
408
 
331
409
  ## 0.2.1
332
410
 
333
411
  ### Patch Changes
334
412
 
335
- - Updated dependencies
413
+ - Updated dependencies
336
414
 
337
415
  ## 0.2.0
338
416
 
339
417
  ### Minor Changes
340
418
 
341
- - [#43507](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43507) [`a9695768de6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9695768de6) - Extracted insert block plugin code from editor-core to @atlaskit/editor-plugin-insert-block
419
+ - [#43507](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43507)
420
+ [`a9695768de6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9695768de6) -
421
+ Extracted insert block plugin code from editor-core to @atlaskit/editor-plugin-insert-block
342
422
 
343
423
  ## 0.1.1
344
424
 
345
425
  ### Patch Changes
346
426
 
347
- - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
348
-
349
- - analytics
350
- - base
351
- - card
352
- - code-block
353
- - expand
354
- - extension
355
- - floating-toolbar
356
- - hyperlink
357
- - insert-block
358
- - layout
359
- - layout
360
- - list
361
- - media
362
- - paste
363
- - rule
364
- - table
365
- - tasks-and-decisions
366
-
367
- We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
427
+ - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
428
+ [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
429
+ feature flags plugin optional in all plugins including:
430
+
431
+ - analytics
432
+ - base
433
+ - card
434
+ - code-block
435
+ - expand
436
+ - extension
437
+ - floating-toolbar
438
+ - hyperlink
439
+ - insert-block
440
+ - layout
441
+ - layout
442
+ - list
443
+ - media
444
+ - paste
445
+ - rule
446
+ - table
447
+ - tasks-and-decisions
448
+
449
+ We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
450
+ mandatory to be added to the preset.
@@ -604,6 +604,14 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
604
604
  var _this$props14 = this.props,
605
605
  isDisabled = _this$props14.isDisabled,
606
606
  isReducedSpacing = _this$props14.isReducedSpacing;
607
+ var isTableButtonVisible = buttons.some(function (_ref6) {
608
+ var value = _ref6.value;
609
+ return value.name === 'table';
610
+ });
611
+ var isTableSizeVisible = buttons.some(function (_ref7) {
612
+ var value = _ref7.value;
613
+ return value.name === 'table selector';
614
+ });
607
615
  if (buttons.length === 0 && dropdownItems.length === 0) {
608
616
  return null;
609
617
  }
@@ -650,13 +658,13 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
650
658
  "aria-keyshortcuts": btn['aria-keyshortcuts'],
651
659
  onItemClick: _this3.insertToolbarMenuItem
652
660
  });
653
- }), this.props.tableSelectorSupported && (0, _react2.jsx)("div", {
661
+ }), this.props.tableSelectorSupported && (isTableButtonVisible || isTableSizeVisible) && (0, _react2.jsx)("div", {
654
662
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
655
663
  css: tableButtonWrapper({
656
664
  isTableSelectorOpen: isTableSelectorOpen,
657
665
  isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
658
666
  })
659
- }, (0, _react2.jsx)(_uiMenu.ToolbarButton, {
667
+ }, isTableButtonVisible && (0, _react2.jsx)(_uiMenu.ToolbarButton, {
660
668
  className: "table-toolbar-btn",
661
669
  item: tableButton,
662
670
  ref: this.tableButtonRef,
@@ -671,7 +679,7 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
671
679
  "aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
672
680
  "aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
673
681
  onItemClick: this.insertToolbarMenuItem
674
- }), (0, _react2.jsx)(_uiMenu.ToolbarButton, {
682
+ }), isTableButtonVisible && (0, _react2.jsx)(_uiMenu.ToolbarButton, {
675
683
  className: "table-selector-toolbar-btn",
676
684
  item: tableSelectorButton,
677
685
  testId: String((_tableSelectorButton = tableSelectorButton) === null || _tableSelectorButton === void 0 ? void 0 : _tableSelectorButton.content),
@@ -645,6 +645,12 @@ export class ToolbarInsertBlock extends React.PureComponent {
645
645
  isDisabled,
646
646
  isReducedSpacing
647
647
  } = this.props;
648
+ const isTableButtonVisible = buttons.some(({
649
+ value
650
+ }) => value.name === 'table');
651
+ const isTableSizeVisible = buttons.some(({
652
+ value
653
+ }) => value.name === 'table selector');
648
654
  if (buttons.length === 0 && dropdownItems.length === 0) {
649
655
  return null;
650
656
  }
@@ -682,13 +688,13 @@ export class ToolbarInsertBlock extends React.PureComponent {
682
688
  "aria-keyshortcuts": btn['aria-keyshortcuts'],
683
689
  onItemClick: this.insertToolbarMenuItem
684
690
  });
685
- }), this.props.tableSelectorSupported && jsx("div", {
691
+ }), this.props.tableSelectorSupported && (isTableButtonVisible || isTableSizeVisible) && jsx("div", {
686
692
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
687
693
  css: tableButtonWrapper({
688
694
  isTableSelectorOpen,
689
695
  isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
690
696
  })
691
- }, jsx(ToolbarButton, {
697
+ }, isTableButtonVisible && jsx(ToolbarButton, {
692
698
  className: "table-toolbar-btn",
693
699
  item: tableButton,
694
700
  ref: this.tableButtonRef,
@@ -703,7 +709,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
703
709
  "aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
704
710
  "aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
705
711
  onItemClick: this.insertToolbarMenuItem
706
- }), jsx(ToolbarButton, {
712
+ }), isTableButtonVisible && jsx(ToolbarButton, {
707
713
  className: "table-selector-toolbar-btn",
708
714
  item: tableSelectorButton,
709
715
  testId: String((_tableSelectorButton = tableSelectorButton) === null || _tableSelectorButton === void 0 ? void 0 : _tableSelectorButton.content),
@@ -594,6 +594,14 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
594
594
  var _this$props14 = this.props,
595
595
  isDisabled = _this$props14.isDisabled,
596
596
  isReducedSpacing = _this$props14.isReducedSpacing;
597
+ var isTableButtonVisible = buttons.some(function (_ref6) {
598
+ var value = _ref6.value;
599
+ return value.name === 'table';
600
+ });
601
+ var isTableSizeVisible = buttons.some(function (_ref7) {
602
+ var value = _ref7.value;
603
+ return value.name === 'table selector';
604
+ });
597
605
  if (buttons.length === 0 && dropdownItems.length === 0) {
598
606
  return null;
599
607
  }
@@ -640,13 +648,13 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
640
648
  "aria-keyshortcuts": btn['aria-keyshortcuts'],
641
649
  onItemClick: _this3.insertToolbarMenuItem
642
650
  });
643
- }), this.props.tableSelectorSupported && jsx("div", {
651
+ }), this.props.tableSelectorSupported && (isTableButtonVisible || isTableSizeVisible) && jsx("div", {
644
652
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
645
653
  css: tableButtonWrapper({
646
654
  isTableSelectorOpen: isTableSelectorOpen,
647
655
  isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
648
656
  })
649
- }, jsx(ToolbarButton, {
657
+ }, isTableButtonVisible && jsx(ToolbarButton, {
650
658
  className: "table-toolbar-btn",
651
659
  item: tableButton,
652
660
  ref: this.tableButtonRef,
@@ -661,7 +669,7 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
661
669
  "aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
662
670
  "aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
663
671
  onItemClick: this.insertToolbarMenuItem
664
- }), jsx(ToolbarButton, {
672
+ }), isTableButtonVisible && jsx(ToolbarButton, {
665
673
  className: "table-selector-toolbar-btn",
666
674
  item: tableSelectorButton,
667
675
  testId: String((_tableSelectorButton = tableSelectorButton) === null || _tableSelectorButton === void 0 ? void 0 : _tableSelectorButton.content),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,34 +33,34 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^78.33.0",
36
+ "@atlaskit/editor-common": "^79.0.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
38
38
  "@atlaskit/editor-plugin-block-type": "^3.1.0",
39
39
  "@atlaskit/editor-plugin-code-block": "^1.2.0",
40
40
  "@atlaskit/editor-plugin-date": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-emoji": "^1.2.0",
42
42
  "@atlaskit/editor-plugin-expand": "^1.6.0",
43
- "@atlaskit/editor-plugin-extension": "^1.3.0",
43
+ "@atlaskit/editor-plugin-extension": "^1.4.0",
44
44
  "@atlaskit/editor-plugin-hyperlink": "^1.6.0",
45
45
  "@atlaskit/editor-plugin-image-upload": "^1.1.0",
46
46
  "@atlaskit/editor-plugin-layout": "^1.1.0",
47
- "@atlaskit/editor-plugin-media": "^1.16.0",
47
+ "@atlaskit/editor-plugin-media": "^1.18.0",
48
48
  "@atlaskit/editor-plugin-mentions": "^1.1.0",
49
49
  "@atlaskit/editor-plugin-panel": "^1.1.0",
50
50
  "@atlaskit/editor-plugin-placeholder-text": "^1.1.0",
51
51
  "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
52
52
  "@atlaskit/editor-plugin-rule": "^1.2.0",
53
53
  "@atlaskit/editor-plugin-status": "^1.1.0",
54
- "@atlaskit/editor-plugin-table": "^7.10.0",
55
- "@atlaskit/editor-plugin-tasks-and-decisions": "^1.1.0",
54
+ "@atlaskit/editor-plugin-table": "^7.12.0",
55
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^1.2.0",
56
56
  "@atlaskit/editor-plugin-type-ahead": "^1.1.0",
57
57
  "@atlaskit/editor-prosemirror": "4.0.0",
58
58
  "@atlaskit/editor-shared-styles": "^2.10.0",
59
59
  "@atlaskit/emoji": "^67.6.0",
60
60
  "@atlaskit/icon": "^22.1.0",
61
- "@atlaskit/primitives": "^5.6.0",
61
+ "@atlaskit/primitives": "^5.7.0",
62
62
  "@atlaskit/theme": "^12.7.0",
63
- "@atlaskit/tokens": "^1.43.0",
63
+ "@atlaskit/tokens": "^1.45.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
66
66
  "bind-event-listener": "^3.0.0",