@atlaskit/editor-plugin-insert-block 1.3.1 → 1.3.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 +194 -181
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +2 -1
- package/dist/cjs/ui/ToolbarInsertBlock/index.js +28 -16
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +2 -1
- package/dist/es2019/ui/ToolbarInsertBlock/index.js +28 -16
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +2 -1
- package/dist/esm/ui/ToolbarInsertBlock/index.js +28 -16
- package/package.json +24 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,485 +1,498 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 1.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#103091](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103091)
|
|
8
|
+
[`736512792df6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/736512792df6) -
|
|
9
|
+
Fix analytics inputMethod bug for inserting a macro
|
|
10
|
+
|
|
11
|
+
## 1.3.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.3.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
21
|
+
- Updated dependencies
|
|
8
22
|
|
|
9
23
|
## 1.3.0
|
|
10
24
|
|
|
11
25
|
### Minor Changes
|
|
12
26
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
27
|
+
- [#98283](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98283)
|
|
28
|
+
[`291c762e17a0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/291c762e17a0) -
|
|
29
|
+
[ED-22802] Introduce insertBlock.actions.toggleAdditionalMenu API
|
|
16
30
|
|
|
17
31
|
### Patch Changes
|
|
18
32
|
|
|
19
|
-
-
|
|
33
|
+
- Updated dependencies
|
|
20
34
|
|
|
21
35
|
## 1.2.5
|
|
22
36
|
|
|
23
37
|
### Patch Changes
|
|
24
38
|
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
39
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
40
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
41
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
42
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
43
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
44
|
+
- Updated dependencies
|
|
31
45
|
|
|
32
46
|
## 1.2.4
|
|
33
47
|
|
|
34
48
|
### Patch Changes
|
|
35
49
|
|
|
36
|
-
-
|
|
50
|
+
- Updated dependencies
|
|
37
51
|
|
|
38
52
|
## 1.2.3
|
|
39
53
|
|
|
40
54
|
### Patch Changes
|
|
41
55
|
|
|
42
|
-
-
|
|
56
|
+
- Updated dependencies
|
|
43
57
|
|
|
44
58
|
## 1.2.2
|
|
45
59
|
|
|
46
60
|
### Patch Changes
|
|
47
61
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
62
|
+
- [#92968](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92968)
|
|
63
|
+
[`f33e18f5cfa8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f33e18f5cfa8) -
|
|
64
|
+
[ux] [ED-22585] - Made sure that table buttons do not render if they are not visible
|
|
65
|
+
- Updated dependencies
|
|
52
66
|
|
|
53
67
|
## 1.2.1
|
|
54
68
|
|
|
55
69
|
### Patch Changes
|
|
56
70
|
|
|
57
|
-
-
|
|
58
|
-
|
|
59
|
-
|
|
71
|
+
- [#94316](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94316)
|
|
72
|
+
[`35fd5ed8e1d7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/35fd5ed8e1d7) -
|
|
73
|
+
Upgrading internal dependency `bind-event-listener` to `@^3.0.0`
|
|
60
74
|
|
|
61
75
|
## 1.2.0
|
|
62
76
|
|
|
63
77
|
### Minor Changes
|
|
64
78
|
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
79
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
80
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
81
|
+
bumped editor-prosemirror version to 4.0.0
|
|
68
82
|
|
|
69
83
|
### Patch Changes
|
|
70
84
|
|
|
71
|
-
-
|
|
85
|
+
- Updated dependencies
|
|
72
86
|
|
|
73
87
|
## 1.1.9
|
|
74
88
|
|
|
75
89
|
### Patch Changes
|
|
76
90
|
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
91
|
+
- [#85055](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85055)
|
|
92
|
+
[`0eb5901fd1e7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0eb5901fd1e7) -
|
|
93
|
+
Fix the editor not focusing after inserting an emoji from the toolbar.
|
|
80
94
|
|
|
81
95
|
## 1.1.8
|
|
82
96
|
|
|
83
97
|
### Patch Changes
|
|
84
98
|
|
|
85
|
-
-
|
|
86
|
-
|
|
87
|
-
|
|
99
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
100
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
101
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
88
102
|
|
|
89
103
|
## 1.1.7
|
|
90
104
|
|
|
91
105
|
### Patch Changes
|
|
92
106
|
|
|
93
|
-
-
|
|
107
|
+
- Updated dependencies
|
|
94
108
|
|
|
95
109
|
## 1.1.6
|
|
96
110
|
|
|
97
111
|
### Patch Changes
|
|
98
112
|
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
113
|
+
- [#81852](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81852)
|
|
114
|
+
[`c784155d4ad6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c784155d4ad6) -
|
|
115
|
+
React 18 types for editor-plugin-insert-block
|
|
102
116
|
|
|
103
117
|
## 1.1.5
|
|
104
118
|
|
|
105
119
|
### Patch Changes
|
|
106
120
|
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
121
|
+
- [#80518](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80518)
|
|
122
|
+
[`e0d5e8fd9495`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e0d5e8fd9495) -
|
|
123
|
+
Migrates some style calls to a slightly different object syntax and other minor cleanup around
|
|
124
|
+
eslint rules.
|
|
111
125
|
|
|
112
126
|
## 1.1.4
|
|
113
127
|
|
|
114
128
|
### Patch Changes
|
|
115
129
|
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
130
|
+
- [#76323](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76323)
|
|
131
|
+
[`5beb55a40496`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5beb55a40496) -
|
|
132
|
+
updated EXTRA_SPACE_EXCLUDING_ELEMENTLIST to fix single item scroll issue
|
|
133
|
+
- Updated dependencies
|
|
120
134
|
|
|
121
135
|
## 1.1.3
|
|
122
136
|
|
|
123
137
|
### Patch Changes
|
|
124
138
|
|
|
125
|
-
-
|
|
139
|
+
- Updated dependencies
|
|
126
140
|
|
|
127
141
|
## 1.1.2
|
|
128
142
|
|
|
129
143
|
### Patch Changes
|
|
130
144
|
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
145
|
+
- [#77599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/77599)
|
|
146
|
+
[`a7b1a6b762eb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7b1a6b762eb) -
|
|
147
|
+
[ux] Table picker popup displays text using column x rows pattern and table picker button uses
|
|
148
|
+
label column by row.
|
|
135
149
|
|
|
136
150
|
## 1.1.1
|
|
137
151
|
|
|
138
152
|
### Patch Changes
|
|
139
153
|
|
|
140
|
-
-
|
|
154
|
+
- Updated dependencies
|
|
141
155
|
|
|
142
156
|
## 1.1.0
|
|
143
157
|
|
|
144
158
|
### Minor Changes
|
|
145
159
|
|
|
146
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
160
|
+
- [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122)
|
|
161
|
+
[`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) -
|
|
162
|
+
Breaking change:
|
|
149
163
|
|
|
150
|
-
|
|
164
|
+
## WHAT?:
|
|
151
165
|
|
|
152
|
-
|
|
166
|
+
Removing feature flags:
|
|
153
167
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
168
|
+
- singleLayout
|
|
169
|
+
- newInsertionBehaviour
|
|
170
|
+
- interactiveExpand
|
|
171
|
+
- findReplace
|
|
172
|
+
- findReplaceMatchCase
|
|
173
|
+
- extendFloatingToolbar
|
|
160
174
|
|
|
161
|
-
|
|
175
|
+
## WHY?:
|
|
162
176
|
|
|
163
|
-
|
|
164
|
-
|
|
177
|
+
Because the flags and props are unused/by default active. Removing them will reduce our
|
|
178
|
+
maintenance burden
|
|
165
179
|
|
|
166
|
-
|
|
180
|
+
## HOW to update your code:
|
|
167
181
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
opted out of the behaviours. If you do have an issue please reach out to #help-editor.
|
|
182
|
+
- If you were using the feature flag - the behaviour is now default and you can remove the flags
|
|
183
|
+
- If you were not using the feature flag - the behaviour is now default.
|
|
184
|
+
- If you have opted out of using the feature flag - we have been careful to ensure no-one has
|
|
185
|
+
opted out of the behaviours. If you do have an issue please reach out to #help-editor.
|
|
173
186
|
|
|
174
187
|
### Patch Changes
|
|
175
188
|
|
|
176
|
-
-
|
|
189
|
+
- Updated dependencies
|
|
177
190
|
|
|
178
191
|
## 1.0.1
|
|
179
192
|
|
|
180
193
|
### Patch Changes
|
|
181
194
|
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
195
|
+
- [#72440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72440)
|
|
196
|
+
[`eee41a9f4bda`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eee41a9f4bda) -
|
|
197
|
+
[ux] Ensures that when a table is inserted via popup, the table has a blinking cursor.
|
|
185
198
|
|
|
186
199
|
## 1.0.0
|
|
187
200
|
|
|
188
201
|
### Major Changes
|
|
189
202
|
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
203
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
204
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
205
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
206
|
+
is to address an issue with Jira plugin consumption.
|
|
194
207
|
|
|
195
208
|
### Patch Changes
|
|
196
209
|
|
|
197
|
-
-
|
|
210
|
+
- Updated dependencies
|
|
198
211
|
|
|
199
212
|
## 0.3.6
|
|
200
213
|
|
|
201
214
|
### Patch Changes
|
|
202
215
|
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
|
|
216
|
+
- [#72081](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72081)
|
|
217
|
+
[`4487160917d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4487160917d2) -
|
|
218
|
+
[ux] ED-22052: adds button type attribute to non atlaskit button instances
|
|
206
219
|
|
|
207
220
|
## 0.3.5
|
|
208
221
|
|
|
209
222
|
### Patch Changes
|
|
210
223
|
|
|
211
|
-
-
|
|
212
|
-
|
|
213
|
-
|
|
224
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
225
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
226
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
214
227
|
|
|
215
228
|
## 0.3.4
|
|
216
229
|
|
|
217
230
|
### Patch Changes
|
|
218
231
|
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-
|
|
232
|
+
- [#71128](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71128)
|
|
233
|
+
[`d8b202a941c9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d8b202a941c9) -
|
|
234
|
+
[ux] When the Right Arrow is pressed and the selection reaches the last row of the default popup,
|
|
235
|
+
the grid should expand
|
|
236
|
+
- Updated dependencies
|
|
224
237
|
|
|
225
238
|
## 0.3.3
|
|
226
239
|
|
|
227
240
|
### Patch Changes
|
|
228
241
|
|
|
229
|
-
-
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
- [#70300](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70300)
|
|
243
|
+
[`9622d585a805`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9622d585a805) -
|
|
244
|
+
[ux] decreased popup size when wrapping selection with arrowRight
|
|
232
245
|
|
|
233
246
|
## 0.3.2
|
|
234
247
|
|
|
235
248
|
### Patch Changes
|
|
236
249
|
|
|
237
|
-
-
|
|
250
|
+
- Updated dependencies
|
|
238
251
|
|
|
239
252
|
## 0.3.1
|
|
240
253
|
|
|
241
254
|
### Patch Changes
|
|
242
255
|
|
|
243
|
-
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
-
|
|
256
|
+
- [#68670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68670)
|
|
257
|
+
[`801899ef02f2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/801899ef02f2) -
|
|
258
|
+
[ux] Added accessibility via keyboard for arrows left, right, up and down
|
|
259
|
+
- Updated dependencies
|
|
247
260
|
|
|
248
261
|
## 0.3.0
|
|
249
262
|
|
|
250
263
|
### Minor Changes
|
|
251
264
|
|
|
252
|
-
-
|
|
253
|
-
|
|
254
|
-
|
|
265
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
266
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
267
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
255
268
|
|
|
256
|
-
|
|
269
|
+
Now when using the editor API with the universal preset
|
|
257
270
|
|
|
258
271
|
### Patch Changes
|
|
259
272
|
|
|
260
|
-
-
|
|
273
|
+
- Updated dependencies
|
|
261
274
|
|
|
262
275
|
## 0.2.27
|
|
263
276
|
|
|
264
277
|
### Patch Changes
|
|
265
278
|
|
|
266
|
-
-
|
|
279
|
+
- Updated dependencies
|
|
267
280
|
|
|
268
281
|
## 0.2.26
|
|
269
282
|
|
|
270
283
|
### Patch Changes
|
|
271
284
|
|
|
272
|
-
-
|
|
273
|
-
|
|
274
|
-
|
|
285
|
+
- [#63634](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63634)
|
|
286
|
+
[`669b7038b354`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/669b7038b354) -
|
|
287
|
+
chenged aria-label text
|
|
275
288
|
|
|
276
289
|
## 0.2.25
|
|
277
290
|
|
|
278
291
|
### Patch Changes
|
|
279
292
|
|
|
280
|
-
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
-
|
|
293
|
+
- [#67703](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67703)
|
|
294
|
+
[`d5303cb0f0cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d5303cb0f0cb) -
|
|
295
|
+
When a table is inserted via the table selector popup, an analytics event should be sent with the
|
|
296
|
+
totalRowCount and totalColumnCount and the input method picker. Removed ASCII and TYPEAHEAD
|
|
297
|
+
inputMethod from table selector command.
|
|
298
|
+
- Updated dependencies
|
|
286
299
|
|
|
287
300
|
## 0.2.24
|
|
288
301
|
|
|
289
302
|
### Patch Changes
|
|
290
303
|
|
|
291
|
-
-
|
|
304
|
+
- Updated dependencies
|
|
292
305
|
|
|
293
306
|
## 0.2.23
|
|
294
307
|
|
|
295
308
|
### Patch Changes
|
|
296
309
|
|
|
297
|
-
-
|
|
310
|
+
- Updated dependencies
|
|
298
311
|
|
|
299
312
|
## 0.2.22
|
|
300
313
|
|
|
301
314
|
### Patch Changes
|
|
302
315
|
|
|
303
|
-
-
|
|
316
|
+
- Updated dependencies
|
|
304
317
|
|
|
305
318
|
## 0.2.21
|
|
306
319
|
|
|
307
320
|
### Patch Changes
|
|
308
321
|
|
|
309
|
-
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
-
|
|
322
|
+
- [#67051](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67051)
|
|
323
|
+
[`08b5bd90a149`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/08b5bd90a149) -
|
|
324
|
+
[ux] The table selector popup should gradually expand to 10 x 10 rows when hovered
|
|
325
|
+
- Updated dependencies
|
|
313
326
|
|
|
314
327
|
## 0.2.20
|
|
315
328
|
|
|
316
329
|
### Patch Changes
|
|
317
330
|
|
|
318
|
-
-
|
|
319
|
-
|
|
320
|
-
|
|
331
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
332
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
333
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
321
334
|
|
|
322
335
|
## 0.2.19
|
|
323
336
|
|
|
324
337
|
### Patch Changes
|
|
325
338
|
|
|
326
|
-
-
|
|
327
|
-
|
|
328
|
-
|
|
339
|
+
- [#65874](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65874)
|
|
340
|
+
[`282862992d2a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/282862992d2a) -
|
|
341
|
+
[ux] added popup to table selector button using mouse movement
|
|
329
342
|
|
|
330
343
|
## 0.2.18
|
|
331
344
|
|
|
332
345
|
### Patch Changes
|
|
333
346
|
|
|
334
|
-
-
|
|
347
|
+
- Updated dependencies
|
|
335
348
|
|
|
336
349
|
## 0.2.17
|
|
337
350
|
|
|
338
351
|
### Patch Changes
|
|
339
352
|
|
|
340
|
-
-
|
|
353
|
+
- Updated dependencies
|
|
341
354
|
|
|
342
355
|
## 0.2.16
|
|
343
356
|
|
|
344
357
|
### Patch Changes
|
|
345
358
|
|
|
346
|
-
-
|
|
359
|
+
- Updated dependencies
|
|
347
360
|
|
|
348
361
|
## 0.2.15
|
|
349
362
|
|
|
350
363
|
### Patch Changes
|
|
351
364
|
|
|
352
|
-
-
|
|
353
|
-
|
|
354
|
-
|
|
365
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
366
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
367
|
+
Ensure all editor plugins are marked as singletons
|
|
355
368
|
|
|
356
369
|
## 0.2.14
|
|
357
370
|
|
|
358
371
|
### Patch Changes
|
|
359
372
|
|
|
360
|
-
-
|
|
373
|
+
- Updated dependencies
|
|
361
374
|
|
|
362
375
|
## 0.2.13
|
|
363
376
|
|
|
364
377
|
### Patch Changes
|
|
365
378
|
|
|
366
|
-
-
|
|
379
|
+
- Updated dependencies
|
|
367
380
|
|
|
368
381
|
## 0.2.12
|
|
369
382
|
|
|
370
383
|
### Patch Changes
|
|
371
384
|
|
|
372
|
-
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
-
|
|
385
|
+
- [#64152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64152)
|
|
386
|
+
[`4bc51e1731ba`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4bc51e1731ba) -
|
|
387
|
+
[ux] Added a table selector button to the full page toolbar and button styles
|
|
388
|
+
- Updated dependencies
|
|
376
389
|
|
|
377
390
|
## 0.2.11
|
|
378
391
|
|
|
379
392
|
### Patch Changes
|
|
380
393
|
|
|
381
|
-
-
|
|
394
|
+
- Updated dependencies
|
|
382
395
|
|
|
383
396
|
## 0.2.10
|
|
384
397
|
|
|
385
398
|
### Patch Changes
|
|
386
399
|
|
|
387
|
-
-
|
|
400
|
+
- Updated dependencies
|
|
388
401
|
|
|
389
402
|
## 0.2.9
|
|
390
403
|
|
|
391
404
|
### Patch Changes
|
|
392
405
|
|
|
393
|
-
-
|
|
406
|
+
- Updated dependencies
|
|
394
407
|
|
|
395
408
|
## 0.2.8
|
|
396
409
|
|
|
397
410
|
### Patch Changes
|
|
398
411
|
|
|
399
|
-
-
|
|
412
|
+
- Updated dependencies
|
|
400
413
|
|
|
401
414
|
## 0.2.7
|
|
402
415
|
|
|
403
416
|
### Patch Changes
|
|
404
417
|
|
|
405
|
-
-
|
|
418
|
+
- Updated dependencies
|
|
406
419
|
|
|
407
420
|
## 0.2.6
|
|
408
421
|
|
|
409
422
|
### Patch Changes
|
|
410
423
|
|
|
411
|
-
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
-
|
|
424
|
+
- [#61337](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61337)
|
|
425
|
+
[`2d827c1d6c40`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2d827c1d6c40) -
|
|
426
|
+
Remove emojiProvider property from the sharedState of the emoji plugin. This avoids a performance
|
|
427
|
+
degradation if the provider is not memoised. It can still be retrieved via the provider factory if
|
|
428
|
+
required internally.
|
|
429
|
+
- Updated dependencies
|
|
417
430
|
|
|
418
431
|
## 0.2.5
|
|
419
432
|
|
|
420
433
|
### Patch Changes
|
|
421
434
|
|
|
422
|
-
-
|
|
423
|
-
|
|
424
|
-
|
|
435
|
+
- [#60612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60612)
|
|
436
|
+
[`7edc766361a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7edc766361a2) -
|
|
437
|
+
Created an EditorCommad on table plugin to insert a table of custom size
|
|
425
438
|
|
|
426
439
|
## 0.2.4
|
|
427
440
|
|
|
428
441
|
### Patch Changes
|
|
429
442
|
|
|
430
|
-
-
|
|
443
|
+
- Updated dependencies
|
|
431
444
|
|
|
432
445
|
## 0.2.3
|
|
433
446
|
|
|
434
447
|
### Patch Changes
|
|
435
448
|
|
|
436
|
-
-
|
|
449
|
+
- Updated dependencies
|
|
437
450
|
|
|
438
451
|
## 0.2.2
|
|
439
452
|
|
|
440
453
|
### Patch Changes
|
|
441
454
|
|
|
442
|
-
-
|
|
455
|
+
- Updated dependencies
|
|
443
456
|
|
|
444
457
|
## 0.2.1
|
|
445
458
|
|
|
446
459
|
### Patch Changes
|
|
447
460
|
|
|
448
|
-
-
|
|
461
|
+
- Updated dependencies
|
|
449
462
|
|
|
450
463
|
## 0.2.0
|
|
451
464
|
|
|
452
465
|
### Minor Changes
|
|
453
466
|
|
|
454
|
-
-
|
|
455
|
-
|
|
456
|
-
|
|
467
|
+
- [#43507](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43507)
|
|
468
|
+
[`a9695768de6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9695768de6) -
|
|
469
|
+
Extracted insert block plugin code from editor-core to @atlaskit/editor-plugin-insert-block
|
|
457
470
|
|
|
458
471
|
## 0.1.1
|
|
459
472
|
|
|
460
473
|
### Patch Changes
|
|
461
474
|
|
|
462
|
-
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
475
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
476
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
477
|
+
feature flags plugin optional in all plugins including:
|
|
478
|
+
|
|
479
|
+
- analytics
|
|
480
|
+
- base
|
|
481
|
+
- card
|
|
482
|
+
- code-block
|
|
483
|
+
- expand
|
|
484
|
+
- extension
|
|
485
|
+
- floating-toolbar
|
|
486
|
+
- hyperlink
|
|
487
|
+
- insert-block
|
|
488
|
+
- layout
|
|
489
|
+
- layout
|
|
490
|
+
- list
|
|
491
|
+
- media
|
|
492
|
+
- paste
|
|
493
|
+
- rule
|
|
494
|
+
- table
|
|
495
|
+
- tasks-and-decisions
|
|
496
|
+
|
|
497
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
498
|
+
mandatory to be added to the preset.
|
|
@@ -10,6 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
+
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
14
|
var _elementBrowser = require("@atlaskit/editor-common/element-browser");
|
|
14
15
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
15
16
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
@@ -63,7 +64,7 @@ var InsertMenu = function InsertMenu(_ref) {
|
|
|
63
64
|
if (!editorView.hasFocus()) {
|
|
64
65
|
editorView.focus();
|
|
65
66
|
}
|
|
66
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$q = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q === void 0 || _pluginInjectionApi$q.actions.insertItem(item)(editorView.state, editorView.dispatch);
|
|
67
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$q = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q === void 0 || _pluginInjectionApi$q.actions.insertItem(item, _analytics.INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
67
68
|
}, [editorView, toggleVisiblity, pluginInjectionApi]);
|
|
68
69
|
var getItems = (0, _react.useCallback)(function (query, category) {
|
|
69
70
|
var result;
|
|
@@ -242,27 +242,35 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
242
242
|
return Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m2 = pluginInjectionApi.mention) === null || _pluginInjectionApi$m2 === void 0 || (_pluginInjectionApi$m2 = _pluginInjectionApi$m2.actions) === null || _pluginInjectionApi$m2 === void 0 ? void 0 : _pluginInjectionApi$m2.openTypeAhead(inputMethod));
|
|
243
243
|
});
|
|
244
244
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertTable", function (inputMethod) {
|
|
245
|
-
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3, _pluginInjectionApi$t4;
|
|
246
245
|
var _this$props2 = _this.props,
|
|
247
246
|
pluginInjectionApi = _this$props2.pluginInjectionApi,
|
|
248
247
|
editorView = _this$props2.editorView;
|
|
249
248
|
var state = editorView.state,
|
|
250
249
|
dispatch = editorView.dispatch;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
250
|
+
|
|
251
|
+
// workaround to solve race condition where cursor is not placed correctly inside table
|
|
252
|
+
queueMicrotask(function () {
|
|
253
|
+
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3;
|
|
254
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t = pluginInjectionApi.table) === null || _pluginInjectionApi$t === void 0 || (_pluginInjectionApi$t2 = (_pluginInjectionApi$t3 = _pluginInjectionApi$t.actions).insertTable) === null || _pluginInjectionApi$t2 === void 0 || _pluginInjectionApi$t2.call(_pluginInjectionApi$t3, {
|
|
255
|
+
action: _analytics.ACTION.INSERTED,
|
|
256
|
+
actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
|
|
257
|
+
actionSubjectId: _analytics.ACTION_SUBJECT_ID.TABLE,
|
|
258
|
+
attributes: {
|
|
259
|
+
inputMethod: inputMethod
|
|
260
|
+
},
|
|
261
|
+
eventType: _analytics.EVENT_TYPE.TRACK
|
|
262
|
+
})(state, dispatch);
|
|
263
|
+
});
|
|
260
264
|
});
|
|
261
265
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertTableWithSize", function (inputMethod, rowsCount, colsCount) {
|
|
262
266
|
return function () {
|
|
263
|
-
var _pluginInjectionApi$c3, _pluginInjectionApi$t5;
|
|
264
267
|
var pluginInjectionApi = _this.props.pluginInjectionApi;
|
|
265
|
-
|
|
268
|
+
|
|
269
|
+
// workaround to solve race condition where cursor is not placed correctly inside table
|
|
270
|
+
queueMicrotask(function () {
|
|
271
|
+
var _pluginInjectionApi$c3, _pluginInjectionApi$t4;
|
|
272
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 || _pluginInjectionApi$c3.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t4 = pluginInjectionApi.table) === null || _pluginInjectionApi$t4 === void 0 ? void 0 : _pluginInjectionApi$t4.commands.insertTableWithSize(rowsCount, colsCount, _analytics.INPUT_METHOD.PICKER));
|
|
273
|
+
});
|
|
266
274
|
};
|
|
267
275
|
});
|
|
268
276
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createDate", function (inputMethod) {
|
|
@@ -318,14 +326,14 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
318
326
|
});
|
|
319
327
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertTaskDecision", function (name, inputMethod) {
|
|
320
328
|
return function () {
|
|
321
|
-
var _pluginInjectionApi$
|
|
329
|
+
var _pluginInjectionApi$t5, _pluginInjectionApi$t6;
|
|
322
330
|
var _this$props7 = _this.props,
|
|
323
331
|
_this$props7$editorVi = _this$props7.editorView,
|
|
324
332
|
state = _this$props7$editorVi.state,
|
|
325
333
|
dispatch = _this$props7$editorVi.dispatch,
|
|
326
334
|
pluginInjectionApi = _this$props7.pluginInjectionApi;
|
|
327
335
|
var listType = name === 'action' ? 'taskList' : 'decisionList';
|
|
328
|
-
return (_pluginInjectionApi$
|
|
336
|
+
return (_pluginInjectionApi$t5 = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t6 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t6 === void 0 ? void 0 : _pluginInjectionApi$t6.actions.insertTaskDecision(listType, inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$t5 !== void 0 ? _pluginInjectionApi$t5 : false;
|
|
329
337
|
};
|
|
330
338
|
});
|
|
331
339
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertHorizontalRule", function (inputMethod) {
|
|
@@ -667,7 +675,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
667
675
|
isTableSelectorOpen: isTableSelectorOpen,
|
|
668
676
|
isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
|
|
669
677
|
})
|
|
670
|
-
}, isTableButtonVisible && (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
678
|
+
}, isTableButtonVisible && (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
679
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
680
|
+
, {
|
|
671
681
|
className: "table-toolbar-btn",
|
|
672
682
|
item: tableButton,
|
|
673
683
|
ref: this.tableButtonRef,
|
|
@@ -682,7 +692,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
682
692
|
"aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
|
|
683
693
|
"aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
|
|
684
694
|
onItemClick: this.insertToolbarMenuItem
|
|
685
|
-
}), isTableButtonVisible && (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
695
|
+
}), isTableButtonVisible && (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
696
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
697
|
+
, {
|
|
686
698
|
className: "table-selector-toolbar-btn",
|
|
687
699
|
item: tableSelectorButton,
|
|
688
700
|
testId: String((_tableSelectorButton = tableSelectorButton) === null || _tableSelectorButton === void 0 ? void 0 : _tableSelectorButton.content),
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
|
|
4
4
|
import { useCallback, useState } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
import { ELEMENT_ITEM_HEIGHT, ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
7
8
|
import { IconCode, IconDate, IconDecision, IconDivider, IconExpand, IconPanel, IconQuote, IconStatus } from '@atlaskit/editor-common/quick-insert';
|
|
8
9
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
@@ -46,7 +47,7 @@ const InsertMenu = ({
|
|
|
46
47
|
if (!editorView.hasFocus()) {
|
|
47
48
|
editorView.focus();
|
|
48
49
|
}
|
|
49
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$q = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q === void 0 ? void 0 : _pluginInjectionApi$q.actions.insertItem(item)(editorView.state, editorView.dispatch);
|
|
50
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$q = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q === void 0 ? void 0 : _pluginInjectionApi$q.actions.insertItem(item, INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
50
51
|
}, [editorView, toggleVisiblity, pluginInjectionApi]);
|
|
51
52
|
const getItems = useCallback((query, category) => {
|
|
52
53
|
let result;
|
|
@@ -246,7 +246,6 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
246
246
|
return Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$m2 = pluginInjectionApi.mention) === null || _pluginInjectionApi$m2 === void 0 ? void 0 : (_pluginInjectionApi$m3 = _pluginInjectionApi$m2.actions) === null || _pluginInjectionApi$m3 === void 0 ? void 0 : _pluginInjectionApi$m3.openTypeAhead(inputMethod));
|
|
247
247
|
});
|
|
248
248
|
_defineProperty(this, "insertTable", inputMethod => {
|
|
249
|
-
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3, _pluginInjectionApi$t4;
|
|
250
249
|
const {
|
|
251
250
|
pluginInjectionApi,
|
|
252
251
|
editorView
|
|
@@ -255,22 +254,31 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
255
254
|
state,
|
|
256
255
|
dispatch
|
|
257
256
|
} = editorView;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
257
|
+
|
|
258
|
+
// workaround to solve race condition where cursor is not placed correctly inside table
|
|
259
|
+
queueMicrotask(() => {
|
|
260
|
+
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3;
|
|
261
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$t = pluginInjectionApi.table) === null || _pluginInjectionApi$t === void 0 ? void 0 : (_pluginInjectionApi$t2 = (_pluginInjectionApi$t3 = _pluginInjectionApi$t.actions).insertTable) === null || _pluginInjectionApi$t2 === void 0 ? void 0 : _pluginInjectionApi$t2.call(_pluginInjectionApi$t3, {
|
|
262
|
+
action: ACTION.INSERTED,
|
|
263
|
+
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
264
|
+
actionSubjectId: ACTION_SUBJECT_ID.TABLE,
|
|
265
|
+
attributes: {
|
|
266
|
+
inputMethod
|
|
267
|
+
},
|
|
268
|
+
eventType: EVENT_TYPE.TRACK
|
|
269
|
+
})(state, dispatch);
|
|
270
|
+
});
|
|
267
271
|
});
|
|
268
272
|
_defineProperty(this, "insertTableWithSize", (inputMethod, rowsCount, colsCount) => () => {
|
|
269
|
-
var _pluginInjectionApi$c3, _pluginInjectionApi$t5;
|
|
270
273
|
const {
|
|
271
274
|
pluginInjectionApi
|
|
272
275
|
} = this.props;
|
|
273
|
-
|
|
276
|
+
|
|
277
|
+
// workaround to solve race condition where cursor is not placed correctly inside table
|
|
278
|
+
queueMicrotask(() => {
|
|
279
|
+
var _pluginInjectionApi$c3, _pluginInjectionApi$t4;
|
|
280
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 ? void 0 : _pluginInjectionApi$c3.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$t4 = pluginInjectionApi.table) === null || _pluginInjectionApi$t4 === void 0 ? void 0 : _pluginInjectionApi$t4.commands.insertTableWithSize(rowsCount, colsCount, INPUT_METHOD.PICKER));
|
|
281
|
+
});
|
|
274
282
|
});
|
|
275
283
|
_defineProperty(this, "createDate", inputMethod => {
|
|
276
284
|
var _pluginInjectionApi$c4, _pluginInjectionApi$d, _pluginInjectionApi$d2;
|
|
@@ -330,7 +338,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
330
338
|
return true;
|
|
331
339
|
});
|
|
332
340
|
_defineProperty(this, "insertTaskDecision", (name, inputMethod) => () => {
|
|
333
|
-
var _pluginInjectionApi$
|
|
341
|
+
var _pluginInjectionApi$t5, _pluginInjectionApi$t6;
|
|
334
342
|
const {
|
|
335
343
|
editorView: {
|
|
336
344
|
state,
|
|
@@ -339,7 +347,7 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
339
347
|
pluginInjectionApi
|
|
340
348
|
} = this.props;
|
|
341
349
|
const listType = name === 'action' ? 'taskList' : 'decisionList';
|
|
342
|
-
return (_pluginInjectionApi$
|
|
350
|
+
return (_pluginInjectionApi$t5 = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$t6 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t6 === void 0 ? void 0 : _pluginInjectionApi$t6.actions.insertTaskDecision(listType, inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$t5 !== void 0 ? _pluginInjectionApi$t5 : false;
|
|
343
351
|
});
|
|
344
352
|
_defineProperty(this, "insertHorizontalRule", inputMethod => {
|
|
345
353
|
var _pluginInjectionApi$r, _pluginInjectionApi$r2;
|
|
@@ -702,7 +710,9 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
702
710
|
isTableSelectorOpen,
|
|
703
711
|
isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
|
|
704
712
|
})
|
|
705
|
-
}, isTableButtonVisible && jsx(ToolbarButton
|
|
713
|
+
}, isTableButtonVisible && jsx(ToolbarButton
|
|
714
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
715
|
+
, {
|
|
706
716
|
className: "table-toolbar-btn",
|
|
707
717
|
item: tableButton,
|
|
708
718
|
ref: this.tableButtonRef,
|
|
@@ -717,7 +727,9 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
717
727
|
"aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
|
|
718
728
|
"aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
|
|
719
729
|
onItemClick: this.insertToolbarMenuItem
|
|
720
|
-
}), isTableButtonVisible && jsx(ToolbarButton
|
|
730
|
+
}), isTableButtonVisible && jsx(ToolbarButton
|
|
731
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
732
|
+
, {
|
|
721
733
|
className: "table-selector-toolbar-btn",
|
|
722
734
|
item: tableSelectorButton,
|
|
723
735
|
testId: String((_tableSelectorButton = tableSelectorButton) === null || _tableSelectorButton === void 0 ? void 0 : _tableSelectorButton.content),
|
|
@@ -6,6 +6,7 @@ var _excluded = ["children"];
|
|
|
6
6
|
|
|
7
7
|
import { useCallback, useState } from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
10
|
import { ELEMENT_ITEM_HEIGHT, ElementBrowser } from '@atlaskit/editor-common/element-browser';
|
|
10
11
|
import { IconCode, IconDate, IconDecision, IconDivider, IconExpand, IconPanel, IconQuote, IconStatus } from '@atlaskit/editor-common/quick-insert';
|
|
11
12
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '@atlaskit/editor-common/ui-react';
|
|
@@ -57,7 +58,7 @@ var InsertMenu = function InsertMenu(_ref) {
|
|
|
57
58
|
if (!editorView.hasFocus()) {
|
|
58
59
|
editorView.focus();
|
|
59
60
|
}
|
|
60
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$q = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q === void 0 || _pluginInjectionApi$q.actions.insertItem(item)(editorView.state, editorView.dispatch);
|
|
61
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$q = pluginInjectionApi.quickInsert) === null || _pluginInjectionApi$q === void 0 || _pluginInjectionApi$q.actions.insertItem(item, INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
61
62
|
}, [editorView, toggleVisiblity, pluginInjectionApi]);
|
|
62
63
|
var getItems = useCallback(function (query, category) {
|
|
63
64
|
var result;
|
|
@@ -232,27 +232,35 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
232
232
|
return Boolean(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m2 = pluginInjectionApi.mention) === null || _pluginInjectionApi$m2 === void 0 || (_pluginInjectionApi$m2 = _pluginInjectionApi$m2.actions) === null || _pluginInjectionApi$m2 === void 0 ? void 0 : _pluginInjectionApi$m2.openTypeAhead(inputMethod));
|
|
233
233
|
});
|
|
234
234
|
_defineProperty(_assertThisInitialized(_this), "insertTable", function (inputMethod) {
|
|
235
|
-
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3, _pluginInjectionApi$t4;
|
|
236
235
|
var _this$props2 = _this.props,
|
|
237
236
|
pluginInjectionApi = _this$props2.pluginInjectionApi,
|
|
238
237
|
editorView = _this$props2.editorView;
|
|
239
238
|
var state = editorView.state,
|
|
240
239
|
dispatch = editorView.dispatch;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
240
|
+
|
|
241
|
+
// workaround to solve race condition where cursor is not placed correctly inside table
|
|
242
|
+
queueMicrotask(function () {
|
|
243
|
+
var _pluginInjectionApi$t, _pluginInjectionApi$t2, _pluginInjectionApi$t3;
|
|
244
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t = pluginInjectionApi.table) === null || _pluginInjectionApi$t === void 0 || (_pluginInjectionApi$t2 = (_pluginInjectionApi$t3 = _pluginInjectionApi$t.actions).insertTable) === null || _pluginInjectionApi$t2 === void 0 || _pluginInjectionApi$t2.call(_pluginInjectionApi$t3, {
|
|
245
|
+
action: ACTION.INSERTED,
|
|
246
|
+
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
247
|
+
actionSubjectId: ACTION_SUBJECT_ID.TABLE,
|
|
248
|
+
attributes: {
|
|
249
|
+
inputMethod: inputMethod
|
|
250
|
+
},
|
|
251
|
+
eventType: EVENT_TYPE.TRACK
|
|
252
|
+
})(state, dispatch);
|
|
253
|
+
});
|
|
250
254
|
});
|
|
251
255
|
_defineProperty(_assertThisInitialized(_this), "insertTableWithSize", function (inputMethod, rowsCount, colsCount) {
|
|
252
256
|
return function () {
|
|
253
|
-
var _pluginInjectionApi$c3, _pluginInjectionApi$t5;
|
|
254
257
|
var pluginInjectionApi = _this.props.pluginInjectionApi;
|
|
255
|
-
|
|
258
|
+
|
|
259
|
+
// workaround to solve race condition where cursor is not placed correctly inside table
|
|
260
|
+
queueMicrotask(function () {
|
|
261
|
+
var _pluginInjectionApi$c3, _pluginInjectionApi$t4;
|
|
262
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 || _pluginInjectionApi$c3.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t4 = pluginInjectionApi.table) === null || _pluginInjectionApi$t4 === void 0 ? void 0 : _pluginInjectionApi$t4.commands.insertTableWithSize(rowsCount, colsCount, INPUT_METHOD.PICKER));
|
|
263
|
+
});
|
|
256
264
|
};
|
|
257
265
|
});
|
|
258
266
|
_defineProperty(_assertThisInitialized(_this), "createDate", function (inputMethod) {
|
|
@@ -308,14 +316,14 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
308
316
|
});
|
|
309
317
|
_defineProperty(_assertThisInitialized(_this), "insertTaskDecision", function (name, inputMethod) {
|
|
310
318
|
return function () {
|
|
311
|
-
var _pluginInjectionApi$
|
|
319
|
+
var _pluginInjectionApi$t5, _pluginInjectionApi$t6;
|
|
312
320
|
var _this$props7 = _this.props,
|
|
313
321
|
_this$props7$editorVi = _this$props7.editorView,
|
|
314
322
|
state = _this$props7$editorVi.state,
|
|
315
323
|
dispatch = _this$props7$editorVi.dispatch,
|
|
316
324
|
pluginInjectionApi = _this$props7.pluginInjectionApi;
|
|
317
325
|
var listType = name === 'action' ? 'taskList' : 'decisionList';
|
|
318
|
-
return (_pluginInjectionApi$
|
|
326
|
+
return (_pluginInjectionApi$t5 = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$t6 = pluginInjectionApi.taskDecision) === null || _pluginInjectionApi$t6 === void 0 ? void 0 : _pluginInjectionApi$t6.actions.insertTaskDecision(listType, inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$t5 !== void 0 ? _pluginInjectionApi$t5 : false;
|
|
319
327
|
};
|
|
320
328
|
});
|
|
321
329
|
_defineProperty(_assertThisInitialized(_this), "insertHorizontalRule", function (inputMethod) {
|
|
@@ -657,7 +665,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
657
665
|
isTableSelectorOpen: isTableSelectorOpen,
|
|
658
666
|
isButtonDisabled: (_tableButton = tableButton) === null || _tableButton === void 0 ? void 0 : _tableButton.isDisabled
|
|
659
667
|
})
|
|
660
|
-
}, isTableButtonVisible && jsx(ToolbarButton
|
|
668
|
+
}, isTableButtonVisible && jsx(ToolbarButton
|
|
669
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
670
|
+
, {
|
|
661
671
|
className: "table-toolbar-btn",
|
|
662
672
|
item: tableButton,
|
|
663
673
|
ref: this.tableButtonRef,
|
|
@@ -672,7 +682,9 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
672
682
|
"aria-haspopup": tableButton ? tableButton['aria-haspopup'] : undefined,
|
|
673
683
|
"aria-keyshortcuts": tableButton ? tableButton['aria-keyshortcuts'] : undefined,
|
|
674
684
|
onItemClick: this.insertToolbarMenuItem
|
|
675
|
-
}), isTableButtonVisible && jsx(ToolbarButton
|
|
685
|
+
}), isTableButtonVisible && jsx(ToolbarButton
|
|
686
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
687
|
+
, {
|
|
676
688
|
className: "table-selector-toolbar-btn",
|
|
677
689
|
item: tableSelectorButton,
|
|
678
690
|
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.3.
|
|
3
|
+
"version": "1.3.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": "^
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
38
|
-
"@atlaskit/editor-plugin-block-type": "^3.
|
|
39
|
-
"@atlaskit/editor-plugin-code-block": "^1.
|
|
40
|
-
"@atlaskit/editor-plugin-date": "^1.
|
|
41
|
-
"@atlaskit/editor-plugin-emoji": "^1.
|
|
42
|
-
"@atlaskit/editor-plugin-expand": "^1.
|
|
43
|
-
"@atlaskit/editor-plugin-extension": "^1.
|
|
44
|
-
"@atlaskit/editor-plugin-hyperlink": "^1.
|
|
36
|
+
"@atlaskit/editor-common": "^81.1.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
38
|
+
"@atlaskit/editor-plugin-block-type": "^3.4.0",
|
|
39
|
+
"@atlaskit/editor-plugin-code-block": "^1.3.0",
|
|
40
|
+
"@atlaskit/editor-plugin-date": "^1.2.0",
|
|
41
|
+
"@atlaskit/editor-plugin-emoji": "^1.3.0",
|
|
42
|
+
"@atlaskit/editor-plugin-expand": "^1.7.0",
|
|
43
|
+
"@atlaskit/editor-plugin-extension": "^1.5.0",
|
|
44
|
+
"@atlaskit/editor-plugin-hyperlink": "^1.7.0",
|
|
45
45
|
"@atlaskit/editor-plugin-image-upload": "^1.1.0",
|
|
46
|
-
"@atlaskit/editor-plugin-layout": "^1.
|
|
47
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
48
|
-
"@atlaskit/editor-plugin-mentions": "^1.
|
|
49
|
-
"@atlaskit/editor-plugin-panel": "^1.
|
|
50
|
-
"@atlaskit/editor-plugin-placeholder-text": "^1.
|
|
46
|
+
"@atlaskit/editor-plugin-layout": "^1.2.0",
|
|
47
|
+
"@atlaskit/editor-plugin-media": "^1.20.0",
|
|
48
|
+
"@atlaskit/editor-plugin-mentions": "^1.5.0",
|
|
49
|
+
"@atlaskit/editor-plugin-panel": "^1.2.0",
|
|
50
|
+
"@atlaskit/editor-plugin-placeholder-text": "^1.2.0",
|
|
51
51
|
"@atlaskit/editor-plugin-quick-insert": "^1.1.0",
|
|
52
|
-
"@atlaskit/editor-plugin-rule": "^1.
|
|
53
|
-
"@atlaskit/editor-plugin-status": "^1.
|
|
54
|
-
"@atlaskit/editor-plugin-table": "^7.
|
|
55
|
-
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.
|
|
56
|
-
"@atlaskit/editor-plugin-type-ahead": "^1.
|
|
52
|
+
"@atlaskit/editor-plugin-rule": "^1.3.0",
|
|
53
|
+
"@atlaskit/editor-plugin-status": "^1.2.0",
|
|
54
|
+
"@atlaskit/editor-plugin-table": "^7.16.0",
|
|
55
|
+
"@atlaskit/editor-plugin-tasks-and-decisions": "^1.3.0",
|
|
56
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
57
57
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
58
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
58
|
+
"@atlaskit/editor-shared-styles": "^2.11.0",
|
|
59
59
|
"@atlaskit/emoji": "^67.6.0",
|
|
60
|
-
"@atlaskit/icon": "^22.
|
|
61
|
-
"@atlaskit/primitives": "^6.
|
|
60
|
+
"@atlaskit/icon": "^22.3.0",
|
|
61
|
+
"@atlaskit/primitives": "^6.3.0",
|
|
62
62
|
"@atlaskit/theme": "^12.8.0",
|
|
63
|
-
"@atlaskit/tokens": "^1.
|
|
63
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
64
64
|
"@babel/runtime": "^7.0.0",
|
|
65
65
|
"@emotion/react": "^11.7.1",
|
|
66
66
|
"bind-event-listener": "^3.0.0",
|