@atlaskit/editor-plugin-tasks-and-decisions 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +4 -4
- package/CHANGELOG.md +188 -172
- package/LICENSE.md +6 -8
- package/dist/cjs/plugin.js +2 -1
- package/dist/cjs/pm-plugins/keymaps.js +14 -14
- package/dist/es2019/plugin.js +3 -2
- package/dist/es2019/pm-plugins/keymaps.js +14 -14
- package/dist/esm/plugin.js +2 -1
- package/dist/esm/pm-plugins/keymaps.js +14 -14
- package/dist/types/nodeviews/hooks/use-show-placeholder.d.ts +1 -1
- package/dist/types/types.d.ts +2 -1
- package/dist/types-ts4.5/nodeviews/hooks/use-show-placeholder.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +2 -1
- package/package.json +79 -101
- package/report.api.md +39 -46
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,412 +1,428 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 1.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
|
|
8
|
+
[`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
|
|
9
|
+
[ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
|
|
10
|
+
the fold (in the top 5 results)
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.3.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.3.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
6
22
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
23
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
24
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
25
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
26
|
+
- Updated dependencies
|
|
11
27
|
|
|
12
28
|
## 1.3.1
|
|
13
29
|
|
|
14
30
|
### Patch Changes
|
|
15
31
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
32
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
33
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
34
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
35
|
|
|
20
36
|
## 1.3.0
|
|
21
37
|
|
|
22
38
|
### Minor Changes
|
|
23
39
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
40
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
41
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
42
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
43
|
|
|
28
44
|
### Patch Changes
|
|
29
45
|
|
|
30
|
-
-
|
|
46
|
+
- Updated dependencies
|
|
31
47
|
|
|
32
48
|
## 1.2.3
|
|
33
49
|
|
|
34
50
|
### Patch Changes
|
|
35
51
|
|
|
36
|
-
-
|
|
52
|
+
- Updated dependencies
|
|
37
53
|
|
|
38
54
|
## 1.2.2
|
|
39
55
|
|
|
40
56
|
### Patch Changes
|
|
41
57
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
59
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
60
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
45
61
|
|
|
46
62
|
## 1.2.1
|
|
47
63
|
|
|
48
64
|
### Patch Changes
|
|
49
65
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
66
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
67
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
68
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
69
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
70
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
55
71
|
|
|
56
72
|
## 1.2.0
|
|
57
73
|
|
|
58
74
|
### Minor Changes
|
|
59
75
|
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
76
|
+
- [#95168](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95168)
|
|
77
|
+
[`2091e194a817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2091e194a817) -
|
|
78
|
+
Introduced new PortalProviderAPI behind a FF
|
|
63
79
|
|
|
64
80
|
### Patch Changes
|
|
65
81
|
|
|
66
|
-
-
|
|
82
|
+
- Updated dependencies
|
|
67
83
|
|
|
68
84
|
## 1.1.3
|
|
69
85
|
|
|
70
86
|
### Patch Changes
|
|
71
87
|
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
88
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
89
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
90
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
75
91
|
|
|
76
92
|
## 1.1.2
|
|
77
93
|
|
|
78
94
|
### Patch Changes
|
|
79
95
|
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
96
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
97
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
98
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
83
99
|
|
|
84
100
|
## 1.1.1
|
|
85
101
|
|
|
86
102
|
### Patch Changes
|
|
87
103
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
104
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
105
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
106
|
+
Updating adf-schema version to 35.10.0
|
|
91
107
|
|
|
92
108
|
## 1.1.0
|
|
93
109
|
|
|
94
110
|
### Minor Changes
|
|
95
111
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
112
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
113
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
114
|
+
bumped editor-prosemirror version to 4.0.0
|
|
99
115
|
|
|
100
116
|
### Patch Changes
|
|
101
117
|
|
|
102
|
-
-
|
|
118
|
+
- Updated dependencies
|
|
103
119
|
|
|
104
120
|
## 1.0.9
|
|
105
121
|
|
|
106
122
|
### Patch Changes
|
|
107
123
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
125
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
126
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
111
127
|
|
|
112
128
|
## 1.0.8
|
|
113
129
|
|
|
114
130
|
### Patch Changes
|
|
115
131
|
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
132
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
133
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
134
|
+
Bump ADF-schema package to version 35.0.0
|
|
135
|
+
- Updated dependencies
|
|
120
136
|
|
|
121
137
|
## 1.0.7
|
|
122
138
|
|
|
123
139
|
### Patch Changes
|
|
124
140
|
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
142
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
143
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
144
|
+
35.7.0 to 35.8.0
|
|
129
145
|
|
|
130
146
|
## 1.0.6
|
|
131
147
|
|
|
132
148
|
### Patch Changes
|
|
133
149
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
151
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
152
|
+
Bump adf-schema to 35.7.0
|
|
137
153
|
|
|
138
154
|
## 1.0.5
|
|
139
155
|
|
|
140
156
|
### Patch Changes
|
|
141
157
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
158
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
159
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
160
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
145
161
|
|
|
146
162
|
## 1.0.4
|
|
147
163
|
|
|
148
164
|
### Patch Changes
|
|
149
165
|
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
166
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
167
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
168
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
153
169
|
|
|
154
170
|
## 1.0.3
|
|
155
171
|
|
|
156
172
|
### Patch Changes
|
|
157
173
|
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
-
|
|
174
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
175
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
176
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
177
|
+
- Updated dependencies
|
|
162
178
|
|
|
163
179
|
## 1.0.2
|
|
164
180
|
|
|
165
181
|
### Patch Changes
|
|
166
182
|
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
|
|
183
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
184
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
185
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
170
186
|
|
|
171
|
-
|
|
187
|
+
## WHY?
|
|
172
188
|
|
|
173
|
-
|
|
189
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
174
190
|
|
|
175
|
-
|
|
191
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
176
192
|
|
|
177
|
-
|
|
193
|
+
## WHAT and HOW?
|
|
178
194
|
|
|
179
|
-
|
|
180
|
-
|
|
195
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
196
|
+
`@atlaskit/editor-common/types`:
|
|
181
197
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
198
|
+
- InputRuleWrapper
|
|
199
|
+
- InputRuleHandler
|
|
200
|
+
- OnHandlerApply
|
|
201
|
+
- createRule
|
|
186
202
|
|
|
187
|
-
|
|
188
|
-
|
|
203
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
204
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
189
205
|
|
|
190
|
-
|
|
206
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
191
207
|
|
|
192
|
-
|
|
193
|
-
|
|
208
|
+
- createPlugin
|
|
209
|
+
- createInputRulePlugin
|
|
194
210
|
|
|
195
|
-
-
|
|
211
|
+
- Updated dependencies
|
|
196
212
|
|
|
197
213
|
## 1.0.1
|
|
198
214
|
|
|
199
215
|
### Patch Changes
|
|
200
216
|
|
|
201
|
-
-
|
|
217
|
+
- Updated dependencies
|
|
202
218
|
|
|
203
219
|
## 1.0.0
|
|
204
220
|
|
|
205
221
|
### Major Changes
|
|
206
222
|
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
223
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
224
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
225
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
226
|
+
is to address an issue with Jira plugin consumption.
|
|
211
227
|
|
|
212
228
|
### Patch Changes
|
|
213
229
|
|
|
214
|
-
-
|
|
230
|
+
- Updated dependencies
|
|
215
231
|
|
|
216
232
|
## 0.3.3
|
|
217
233
|
|
|
218
234
|
### Patch Changes
|
|
219
235
|
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
|
|
236
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
237
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
238
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
223
239
|
|
|
224
240
|
## 0.3.2
|
|
225
241
|
|
|
226
242
|
### Patch Changes
|
|
227
243
|
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
|
|
244
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
245
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
246
|
+
Updating adf-schema version to 35.5.1
|
|
231
247
|
|
|
232
248
|
## 0.3.1
|
|
233
249
|
|
|
234
250
|
### Patch Changes
|
|
235
251
|
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
-
|
|
252
|
+
- [#68640](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68640)
|
|
253
|
+
[`6a3ea210641a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a3ea210641a) -
|
|
254
|
+
Create new context identifier plugin which contains the provider.
|
|
255
|
+
- Updated dependencies
|
|
240
256
|
|
|
241
257
|
## 0.3.0
|
|
242
258
|
|
|
243
259
|
### Minor Changes
|
|
244
260
|
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
262
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
263
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
248
264
|
|
|
249
|
-
|
|
265
|
+
Now when using the editor API with the universal preset
|
|
250
266
|
|
|
251
267
|
### Patch Changes
|
|
252
268
|
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
-
|
|
269
|
+
- [#69144](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69144)
|
|
270
|
+
[`10e7328aea8c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10e7328aea8c) -
|
|
271
|
+
[ux] ED-21844 Add fix for enter keybind behaviour for nested actions inside list and relevant
|
|
272
|
+
testcases
|
|
273
|
+
- Updated dependencies
|
|
258
274
|
|
|
259
275
|
## 0.2.16
|
|
260
276
|
|
|
261
277
|
### Patch Changes
|
|
262
278
|
|
|
263
|
-
-
|
|
279
|
+
- Updated dependencies
|
|
264
280
|
|
|
265
281
|
## 0.2.15
|
|
266
282
|
|
|
267
283
|
### Patch Changes
|
|
268
284
|
|
|
269
|
-
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
-
|
|
285
|
+
- [#66823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66823)
|
|
286
|
+
[`a190e988a6b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a190e988a6b1) -
|
|
287
|
+
[ux] ED-21614: Correctly create action list inside a listItem using keyboard shortcut '[] '
|
|
288
|
+
- Updated dependencies
|
|
273
289
|
|
|
274
290
|
## 0.2.14
|
|
275
291
|
|
|
276
292
|
### Patch Changes
|
|
277
293
|
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
294
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
295
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
296
|
+
Ensure all editor plugins are marked as singletons
|
|
281
297
|
|
|
282
298
|
## 0.2.13
|
|
283
299
|
|
|
284
300
|
### Patch Changes
|
|
285
301
|
|
|
286
|
-
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
-
|
|
302
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
303
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
304
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
305
|
+
- Updated dependencies
|
|
290
306
|
|
|
291
307
|
## 0.2.12
|
|
292
308
|
|
|
293
309
|
### Patch Changes
|
|
294
310
|
|
|
295
|
-
-
|
|
311
|
+
- Updated dependencies
|
|
296
312
|
|
|
297
313
|
## 0.2.11
|
|
298
314
|
|
|
299
315
|
### Patch Changes
|
|
300
316
|
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
|
|
317
|
+
- [#63286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63286)
|
|
318
|
+
[`8391b2f13d16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8391b2f13d16) -
|
|
319
|
+
ED-21644 Add action item outside blockquote on trying to insert action in a list inside quote
|
|
304
320
|
|
|
305
321
|
## 0.2.10
|
|
306
322
|
|
|
307
323
|
### Patch Changes
|
|
308
324
|
|
|
309
|
-
-
|
|
310
|
-
|
|
311
|
-
|
|
325
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
326
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
327
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
312
328
|
|
|
313
329
|
## 0.2.9
|
|
314
330
|
|
|
315
331
|
### Patch Changes
|
|
316
332
|
|
|
317
|
-
-
|
|
318
|
-
|
|
319
|
-
|
|
333
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
334
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
335
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
320
336
|
|
|
321
337
|
## 0.2.8
|
|
322
338
|
|
|
323
339
|
### Patch Changes
|
|
324
340
|
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
|
|
341
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
342
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
343
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
328
344
|
|
|
329
345
|
## 0.2.7
|
|
330
346
|
|
|
331
347
|
### Patch Changes
|
|
332
348
|
|
|
333
|
-
-
|
|
349
|
+
- Updated dependencies
|
|
334
350
|
|
|
335
351
|
## 0.2.6
|
|
336
352
|
|
|
337
353
|
### Patch Changes
|
|
338
354
|
|
|
339
|
-
-
|
|
355
|
+
- Updated dependencies
|
|
340
356
|
|
|
341
357
|
## 0.2.5
|
|
342
358
|
|
|
343
359
|
### Patch Changes
|
|
344
360
|
|
|
345
|
-
-
|
|
346
|
-
|
|
347
|
-
|
|
361
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
362
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
363
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
348
364
|
|
|
349
365
|
## 0.2.4
|
|
350
366
|
|
|
351
367
|
### Patch Changes
|
|
352
368
|
|
|
353
|
-
-
|
|
354
|
-
|
|
355
|
-
|
|
369
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
370
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
371
|
+
update ADF schema
|
|
356
372
|
|
|
357
373
|
## 0.2.3
|
|
358
374
|
|
|
359
375
|
### Patch Changes
|
|
360
376
|
|
|
361
|
-
-
|
|
362
|
-
|
|
363
|
-
|
|
377
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
378
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
379
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
364
380
|
|
|
365
381
|
## 0.2.2
|
|
366
382
|
|
|
367
383
|
### Patch Changes
|
|
368
384
|
|
|
369
|
-
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
385
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
386
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
387
|
+
feature flags plugin optional in all plugins including:
|
|
388
|
+
|
|
389
|
+
- analytics
|
|
390
|
+
- base
|
|
391
|
+
- card
|
|
392
|
+
- code-block
|
|
393
|
+
- expand
|
|
394
|
+
- extension
|
|
395
|
+
- floating-toolbar
|
|
396
|
+
- hyperlink
|
|
397
|
+
- insert-block
|
|
398
|
+
- layout
|
|
399
|
+
- layout
|
|
400
|
+
- list
|
|
401
|
+
- media
|
|
402
|
+
- paste
|
|
403
|
+
- rule
|
|
404
|
+
- table
|
|
405
|
+
- tasks-and-decisions
|
|
406
|
+
|
|
407
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
408
|
+
mandatory to be added to the preset.
|
|
393
409
|
|
|
394
410
|
## 0.2.1
|
|
395
411
|
|
|
396
412
|
### Patch Changes
|
|
397
413
|
|
|
398
|
-
-
|
|
399
|
-
|
|
400
|
-
|
|
414
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
415
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
416
|
+
Upgrade adf-schema package to ^34.0.0
|
|
401
417
|
|
|
402
418
|
## 0.2.0
|
|
403
419
|
|
|
404
420
|
### Minor Changes
|
|
405
421
|
|
|
406
|
-
-
|
|
407
|
-
|
|
408
|
-
|
|
422
|
+
- [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
|
|
423
|
+
[`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
|
|
424
|
+
Extracting tasks and decisions code from editor-core to new plugin package.
|
|
409
425
|
|
|
410
426
|
### Patch Changes
|
|
411
427
|
|
|
412
|
-
-
|
|
428
|
+
- Updated dependencies
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -48,6 +48,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
48
48
|
allowNestedTasks = _ref2$config2.allowNestedTasks,
|
|
49
49
|
consumeTabs = _ref2$config2.consumeTabs,
|
|
50
50
|
useLongPressSelection = _ref2$config2.useLongPressSelection,
|
|
51
|
+
getEditorFeatureFlags = _ref2$config2.getEditorFeatureFlags,
|
|
51
52
|
api = _ref2.api;
|
|
52
53
|
var getIdentifierProvider = function getIdentifierProvider() {
|
|
53
54
|
var _api$contextIdentifie;
|
|
@@ -140,7 +141,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
140
141
|
id: 'action',
|
|
141
142
|
title: formatMessage(_messages.toolbarInsertBlockMessages.action),
|
|
142
143
|
description: formatMessage(_messages.toolbarInsertBlockMessages.actionDescription),
|
|
143
|
-
priority: 100,
|
|
144
|
+
priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
|
|
144
145
|
keywords: ['checkbox', 'task', 'todo'],
|
|
145
146
|
keyshortcut: '[]',
|
|
146
147
|
icon: function icon() {
|
|
@@ -224,10 +224,10 @@ var unindentTaskOrUnwrapTaskDecisionFollowing = function unindentTaskOrUnwrapTas
|
|
|
224
224
|
var deleteForwards = (0, _commands.autoJoin)((0, _commands.chainCommands)((0, _utils.deleteEmptyParagraphAndMoveBlockUp)(_helpers.isActionOrDecisionList), joinTaskDecisionFollowing, unindentTaskOrUnwrapTaskDecisionFollowing), ['taskList', 'decisionList']);
|
|
225
225
|
var deleteExtraListItem = function deleteExtraListItem(tr, $from) {
|
|
226
226
|
/*
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
227
|
+
After we replace actionItem with empty list item if there's the anomaly of extra empty list item
|
|
228
|
+
the cursor moves inside the first taskItem of splitted taskList
|
|
229
|
+
so the extra list item present above the list item containing taskList & cursor
|
|
230
|
+
*/
|
|
231
231
|
|
|
232
232
|
var $currentFrom = tr.selection.$from;
|
|
233
233
|
var listItemContainingActionList = tr.doc.resolve($currentFrom.start($currentFrom.depth - 2));
|
|
@@ -241,9 +241,9 @@ var processNestedActionItem = function processNestedActionItem(tr, $from, previo
|
|
|
241
241
|
var currentChildCountOfList = currentParentListNode === null || currentParentListNode === void 0 ? void 0 : currentParentListNode.node.childCount;
|
|
242
242
|
|
|
243
243
|
/*
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
244
|
+
While replacing range with empty list item an extra list item gets created in some of the scenarios
|
|
245
|
+
After splitting only one extra listItem should be created else an extra listItem is created
|
|
246
|
+
*/
|
|
247
247
|
if (previousChildCountOfList && currentChildCountOfList && previousChildCountOfList + 1 !== currentChildCountOfList) {
|
|
248
248
|
deleteExtraListItem(tr, $from);
|
|
249
249
|
}
|
|
@@ -265,8 +265,8 @@ var splitListItemWith = function splitListItemWith(tr, content, $from, setSelect
|
|
|
265
265
|
var isNestedActionInsideLists = frag.childCount === 1 && ((_frag$firstChild = frag.firstChild) === null || _frag$firstChild === void 0 ? void 0 : _frag$firstChild.type.name) === 'listItem';
|
|
266
266
|
|
|
267
267
|
/* We don't split the list item if it's nested inside lists
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
to have consistent behaviour and their resolution.
|
|
269
|
+
*/
|
|
270
270
|
if (shouldSplit && !isNestedActionInsideLists) {
|
|
271
271
|
// this only splits a node to delete it, so we probably don't need a random uuid
|
|
272
272
|
// but generate one anyway for correctness
|
|
@@ -278,11 +278,11 @@ var splitListItemWith = function splitListItemWith(tr, content, $from, setSelect
|
|
|
278
278
|
}]);
|
|
279
279
|
}
|
|
280
280
|
/*
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
281
|
+
In case of nested action inside lists we explicitly set the cursor
|
|
282
|
+
We need to insert it relatively to previous doc structure
|
|
283
|
+
So we calculate the position of previous list item and save that position
|
|
284
|
+
(The cursor can be placed easily next to list item)
|
|
285
|
+
*/
|
|
286
286
|
var previousListItemPos = isNestedActionInsideLists ? $from.start($from.depth - 2) : 0;
|
|
287
287
|
|
|
288
288
|
// and delete the action at the current pos
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -34,7 +34,8 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
34
34
|
config: {
|
|
35
35
|
allowNestedTasks,
|
|
36
36
|
consumeTabs,
|
|
37
|
-
useLongPressSelection
|
|
37
|
+
useLongPressSelection,
|
|
38
|
+
getEditorFeatureFlags
|
|
38
39
|
} = {},
|
|
39
40
|
api
|
|
40
41
|
}) => {
|
|
@@ -132,7 +133,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
132
133
|
id: 'action',
|
|
133
134
|
title: formatMessage(insertBlockMessages.action),
|
|
134
135
|
description: formatMessage(insertBlockMessages.actionDescription),
|
|
135
|
-
priority: 100,
|
|
136
|
+
priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
|
|
136
137
|
keywords: ['checkbox', 'task', 'todo'],
|
|
137
138
|
keyshortcut: '[]',
|
|
138
139
|
icon: () => jsx(IconAction, null),
|
|
@@ -199,10 +199,10 @@ const unindentTaskOrUnwrapTaskDecisionFollowing = (state, dispatch) => {
|
|
|
199
199
|
const deleteForwards = autoJoin(chainCommands(deleteEmptyParagraphAndMoveBlockUp(isActionOrDecisionList), joinTaskDecisionFollowing, unindentTaskOrUnwrapTaskDecisionFollowing), ['taskList', 'decisionList']);
|
|
200
200
|
const deleteExtraListItem = (tr, $from) => {
|
|
201
201
|
/*
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
202
|
+
After we replace actionItem with empty list item if there's the anomaly of extra empty list item
|
|
203
|
+
the cursor moves inside the first taskItem of splitted taskList
|
|
204
|
+
so the extra list item present above the list item containing taskList & cursor
|
|
205
|
+
*/
|
|
206
206
|
|
|
207
207
|
const $currentFrom = tr.selection.$from;
|
|
208
208
|
const listItemContainingActionList = tr.doc.resolve($currentFrom.start($currentFrom.depth - 2));
|
|
@@ -216,9 +216,9 @@ const processNestedActionItem = (tr, $from, previousListItemPos) => {
|
|
|
216
216
|
const currentChildCountOfList = currentParentListNode === null || currentParentListNode === void 0 ? void 0 : currentParentListNode.node.childCount;
|
|
217
217
|
|
|
218
218
|
/*
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
219
|
+
While replacing range with empty list item an extra list item gets created in some of the scenarios
|
|
220
|
+
After splitting only one extra listItem should be created else an extra listItem is created
|
|
221
|
+
*/
|
|
222
222
|
if (previousChildCountOfList && currentChildCountOfList && previousChildCountOfList + 1 !== currentChildCountOfList) {
|
|
223
223
|
deleteExtraListItem(tr, $from);
|
|
224
224
|
}
|
|
@@ -240,8 +240,8 @@ const splitListItemWith = (tr, content, $from, setSelection) => {
|
|
|
240
240
|
const isNestedActionInsideLists = frag.childCount === 1 && ((_frag$firstChild = frag.firstChild) === null || _frag$firstChild === void 0 ? void 0 : _frag$firstChild.type.name) === 'listItem';
|
|
241
241
|
|
|
242
242
|
/* We don't split the list item if it's nested inside lists
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
to have consistent behaviour and their resolution.
|
|
244
|
+
*/
|
|
245
245
|
if (shouldSplit && !isNestedActionInsideLists) {
|
|
246
246
|
// this only splits a node to delete it, so we probably don't need a random uuid
|
|
247
247
|
// but generate one anyway for correctness
|
|
@@ -253,11 +253,11 @@ const splitListItemWith = (tr, content, $from, setSelection) => {
|
|
|
253
253
|
}]);
|
|
254
254
|
}
|
|
255
255
|
/*
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
In case of nested action inside lists we explicitly set the cursor
|
|
257
|
+
We need to insert it relatively to previous doc structure
|
|
258
|
+
So we calculate the position of previous list item and save that position
|
|
259
|
+
(The cursor can be placed easily next to list item)
|
|
260
|
+
*/
|
|
261
261
|
const previousListItemPos = isNestedActionInsideLists ? $from.start($from.depth - 2) : 0;
|
|
262
262
|
|
|
263
263
|
// and delete the action at the current pos
|
package/dist/esm/plugin.js
CHANGED
|
@@ -37,6 +37,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
37
37
|
allowNestedTasks = _ref2$config2.allowNestedTasks,
|
|
38
38
|
consumeTabs = _ref2$config2.consumeTabs,
|
|
39
39
|
useLongPressSelection = _ref2$config2.useLongPressSelection,
|
|
40
|
+
getEditorFeatureFlags = _ref2$config2.getEditorFeatureFlags,
|
|
40
41
|
api = _ref2.api;
|
|
41
42
|
var getIdentifierProvider = function getIdentifierProvider() {
|
|
42
43
|
var _api$contextIdentifie;
|
|
@@ -129,7 +130,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
129
130
|
id: 'action',
|
|
130
131
|
title: formatMessage(insertBlockMessages.action),
|
|
131
132
|
description: formatMessage(insertBlockMessages.actionDescription),
|
|
132
|
-
priority: 100,
|
|
133
|
+
priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
|
|
133
134
|
keywords: ['checkbox', 'task', 'todo'],
|
|
134
135
|
keyshortcut: '[]',
|
|
135
136
|
icon: function icon() {
|
|
@@ -216,10 +216,10 @@ var unindentTaskOrUnwrapTaskDecisionFollowing = function unindentTaskOrUnwrapTas
|
|
|
216
216
|
var deleteForwards = autoJoin(chainCommands(deleteEmptyParagraphAndMoveBlockUp(isActionOrDecisionList), joinTaskDecisionFollowing, unindentTaskOrUnwrapTaskDecisionFollowing), ['taskList', 'decisionList']);
|
|
217
217
|
var deleteExtraListItem = function deleteExtraListItem(tr, $from) {
|
|
218
218
|
/*
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
After we replace actionItem with empty list item if there's the anomaly of extra empty list item
|
|
220
|
+
the cursor moves inside the first taskItem of splitted taskList
|
|
221
|
+
so the extra list item present above the list item containing taskList & cursor
|
|
222
|
+
*/
|
|
223
223
|
|
|
224
224
|
var $currentFrom = tr.selection.$from;
|
|
225
225
|
var listItemContainingActionList = tr.doc.resolve($currentFrom.start($currentFrom.depth - 2));
|
|
@@ -233,9 +233,9 @@ var processNestedActionItem = function processNestedActionItem(tr, $from, previo
|
|
|
233
233
|
var currentChildCountOfList = currentParentListNode === null || currentParentListNode === void 0 ? void 0 : currentParentListNode.node.childCount;
|
|
234
234
|
|
|
235
235
|
/*
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
236
|
+
While replacing range with empty list item an extra list item gets created in some of the scenarios
|
|
237
|
+
After splitting only one extra listItem should be created else an extra listItem is created
|
|
238
|
+
*/
|
|
239
239
|
if (previousChildCountOfList && currentChildCountOfList && previousChildCountOfList + 1 !== currentChildCountOfList) {
|
|
240
240
|
deleteExtraListItem(tr, $from);
|
|
241
241
|
}
|
|
@@ -257,8 +257,8 @@ var splitListItemWith = function splitListItemWith(tr, content, $from, setSelect
|
|
|
257
257
|
var isNestedActionInsideLists = frag.childCount === 1 && ((_frag$firstChild = frag.firstChild) === null || _frag$firstChild === void 0 ? void 0 : _frag$firstChild.type.name) === 'listItem';
|
|
258
258
|
|
|
259
259
|
/* We don't split the list item if it's nested inside lists
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
to have consistent behaviour and their resolution.
|
|
261
|
+
*/
|
|
262
262
|
if (shouldSplit && !isNestedActionInsideLists) {
|
|
263
263
|
// this only splits a node to delete it, so we probably don't need a random uuid
|
|
264
264
|
// but generate one anyway for correctness
|
|
@@ -270,11 +270,11 @@ var splitListItemWith = function splitListItemWith(tr, content, $from, setSelect
|
|
|
270
270
|
}]);
|
|
271
271
|
}
|
|
272
272
|
/*
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
273
|
+
In case of nested action inside lists we explicitly set the cursor
|
|
274
|
+
We need to insert it relatively to previous doc structure
|
|
275
|
+
So we calculate the position of previous list item and save that position
|
|
276
|
+
(The cursor can be placed easily next to list item)
|
|
277
|
+
*/
|
|
278
278
|
var previousListItemPos = isNestedActionInsideLists ? $from.start($from.depth - 2) : 0;
|
|
279
279
|
|
|
280
280
|
// and delete the action at the current pos
|
|
@@ -7,5 +7,5 @@ type Props2 = {
|
|
|
7
7
|
getPos: () => number | undefined;
|
|
8
8
|
isContentNodeEmpty: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const useShowPlaceholder: ({ editorView, api, isContentNodeEmpty, getPos
|
|
10
|
+
export declare const useShowPlaceholder: ({ editorView, api, isContentNodeEmpty, getPos }: Props2) => boolean;
|
|
11
11
|
export {};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
|
|
7
7
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
@@ -29,6 +29,7 @@ export type AddItemTransactionCreator = (opts: {
|
|
|
29
29
|
export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
30
30
|
allowNestedTasks?: boolean;
|
|
31
31
|
consumeTabs?: boolean;
|
|
32
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
32
33
|
}
|
|
33
34
|
export type TaskAndDecisionsSharedState = {
|
|
34
35
|
focusedTaskItemLocalId: string | null;
|
|
@@ -7,5 +7,5 @@ type Props2 = {
|
|
|
7
7
|
getPos: () => number | undefined;
|
|
8
8
|
isContentNodeEmpty: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const useShowPlaceholder: ({ editorView, api, isContentNodeEmpty, getPos
|
|
10
|
+
export declare const useShowPlaceholder: ({ editorView, api, isContentNodeEmpty, getPos }: Props2) => boolean;
|
|
11
11
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
|
|
7
7
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
@@ -29,6 +29,7 @@ export type AddItemTransactionCreator = (opts: {
|
|
|
29
29
|
export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
30
30
|
allowNestedTasks?: boolean;
|
|
31
31
|
consumeTabs?: boolean;
|
|
32
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
32
33
|
}
|
|
33
34
|
export type TaskAndDecisionsSharedState = {
|
|
34
35
|
focusedTaskItemLocalId: string | null;
|
package/package.json
CHANGED
|
@@ -1,102 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
],
|
|
82
|
-
"design-tokens": [
|
|
83
|
-
"color"
|
|
84
|
-
],
|
|
85
|
-
"theming": [
|
|
86
|
-
"react-context"
|
|
87
|
-
],
|
|
88
|
-
"ui-components": [
|
|
89
|
-
"lite-mode"
|
|
90
|
-
],
|
|
91
|
-
"deprecation": "no-deprecated-imports",
|
|
92
|
-
"styling": [
|
|
93
|
-
"emotion",
|
|
94
|
-
"emotion"
|
|
95
|
-
],
|
|
96
|
-
"imports": [
|
|
97
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
102
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
+
"version": "1.3.4",
|
|
4
|
+
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: AI",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"inPublicMirror": false,
|
|
14
|
+
"releaseModel": "continuous",
|
|
15
|
+
"runReact18": false
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
|
+
"main": "dist/cjs/index.js",
|
|
19
|
+
"module": "dist/esm/index.js",
|
|
20
|
+
"module:es2019": "dist/es2019/index.js",
|
|
21
|
+
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"atlaskit:src": "src/index.ts",
|
|
29
|
+
"af:exports": {
|
|
30
|
+
".": "./src/index.ts"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
34
|
+
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
35
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
36
|
+
"@atlaskit/editor-common": "^82.6.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
38
|
+
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
39
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
40
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
41
|
+
"@atlaskit/icon": "^22.3.0",
|
|
42
|
+
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
43
|
+
"@atlaskit/task-decision": "^17.10.0",
|
|
44
|
+
"@babel/runtime": "^7.0.0",
|
|
45
|
+
"@emotion/react": "^11.7.1"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"react": "^16.8.0",
|
|
49
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@af/integration-testing": "*",
|
|
53
|
+
"@af/visual-regression": "*",
|
|
54
|
+
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
55
|
+
"@atlaskit/ssr": "*",
|
|
56
|
+
"@atlaskit/util-data-test": "^17.9.0",
|
|
57
|
+
"@atlaskit/visual-regression": "*",
|
|
58
|
+
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
59
|
+
"@testing-library/react": "^12.1.5",
|
|
60
|
+
"react-dom": "^16.8.0",
|
|
61
|
+
"typescript": "~5.4.2",
|
|
62
|
+
"wait-for-expect": "^1.2.0"
|
|
63
|
+
},
|
|
64
|
+
"techstack": {
|
|
65
|
+
"@atlassian/frontend": {
|
|
66
|
+
"import-structure": ["atlassian-conventions"],
|
|
67
|
+
"circular-dependencies": ["file-and-folder-level"]
|
|
68
|
+
},
|
|
69
|
+
"@repo/internal": {
|
|
70
|
+
"dom-events": "use-bind-event-listener",
|
|
71
|
+
"analytics": ["analytics-next"],
|
|
72
|
+
"design-tokens": ["color"],
|
|
73
|
+
"theming": ["react-context"],
|
|
74
|
+
"ui-components": ["lite-mode"],
|
|
75
|
+
"deprecation": "no-deprecated-imports",
|
|
76
|
+
"styling": ["emotion", "emotion"],
|
|
77
|
+
"imports": ["import-no-extraneous-disable-for-examples-and-docs"]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-tasks-and-decisions"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -31,29 +32,27 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
|
31
32
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
32
33
|
|
|
33
34
|
// @public (undocumented)
|
|
34
|
-
type AddItemAttrs =
|
|
35
|
-
| Partial<DecisionItemDefinition['attrs']>
|
|
36
|
-
| Partial<TaskItemDefinition['attrs']>;
|
|
35
|
+
type AddItemAttrs = Partial<DecisionItemDefinition['attrs']> | Partial<TaskItemDefinition['attrs']>;
|
|
37
36
|
|
|
38
37
|
// @public (undocumented)
|
|
39
38
|
type AddItemTransactionCreator = (opts: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
state: EditorState;
|
|
40
|
+
tr: Transaction;
|
|
41
|
+
list: NodeType;
|
|
42
|
+
item: NodeType;
|
|
43
|
+
listLocalId: string;
|
|
44
|
+
itemLocalId: string;
|
|
45
|
+
itemAttrs?: AddItemAttrs;
|
|
47
46
|
}) => Transaction | null;
|
|
48
47
|
|
|
49
48
|
// @public (undocumented)
|
|
50
49
|
const getIndentCommand: (
|
|
51
|
-
|
|
50
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
52
51
|
) => (inputMethod?: IndentationInputMethod) => Command;
|
|
53
52
|
|
|
54
53
|
// @public (undocumented)
|
|
55
54
|
const getUnindentCommand: (
|
|
56
|
-
|
|
55
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
57
56
|
) => (inputMethod?: IndentationInputMethod) => Command;
|
|
58
57
|
|
|
59
58
|
// @public (undocumented)
|
|
@@ -61,24 +60,21 @@ type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
|
61
60
|
|
|
62
61
|
// @public (undocumented)
|
|
63
62
|
const insertTaskDecisionCommand: (
|
|
64
|
-
|
|
63
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
65
64
|
) => (
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
addItem?: AddItemTransactionCreator,
|
|
72
|
-
listLocalId?: string,
|
|
73
|
-
itemLocalId?: string,
|
|
65
|
+
listType: TaskDecisionListType,
|
|
66
|
+
inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE,
|
|
67
|
+
addItem?: AddItemTransactionCreator,
|
|
68
|
+
listLocalId?: string,
|
|
69
|
+
itemLocalId?: string,
|
|
74
70
|
) => Command;
|
|
75
71
|
|
|
76
72
|
// @public (undocumented)
|
|
77
73
|
type TaskAndDecisionsSharedState = {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
focusedTaskItemLocalId: null | string;
|
|
75
|
+
indentDisabled: boolean;
|
|
76
|
+
outdentDisabled: boolean;
|
|
77
|
+
isInsideTask: boolean;
|
|
82
78
|
};
|
|
83
79
|
|
|
84
80
|
// @public (undocumented)
|
|
@@ -86,28 +82,25 @@ type TaskDecisionListType = 'decisionList' | 'taskList';
|
|
|
86
82
|
|
|
87
83
|
// @public (undocumented)
|
|
88
84
|
interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
// (undocumented)
|
|
86
|
+
allowNestedTasks?: boolean;
|
|
87
|
+
// (undocumented)
|
|
88
|
+
consumeTabs?: boolean;
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
// @public (undocumented)
|
|
96
92
|
export type TasksAndDecisionsPlugin = NextEditorPlugin<
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
outdentTaskList: ReturnType<typeof getUnindentCommand>;
|
|
109
|
-
};
|
|
110
|
-
}
|
|
93
|
+
'taskDecision',
|
|
94
|
+
{
|
|
95
|
+
pluginConfiguration: TaskDecisionPluginOptions | undefined;
|
|
96
|
+
sharedState: TaskAndDecisionsSharedState | undefined;
|
|
97
|
+
dependencies: [OptionalPlugin<TypeAheadPlugin>, OptionalPlugin<AnalyticsPlugin>];
|
|
98
|
+
actions: {
|
|
99
|
+
insertTaskDecision: ReturnType<typeof insertTaskDecisionCommand>;
|
|
100
|
+
indentTaskList: ReturnType<typeof getIndentCommand>;
|
|
101
|
+
outdentTaskList: ReturnType<typeof getUnindentCommand>;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
111
104
|
>;
|
|
112
105
|
|
|
113
106
|
// @public (undocumented)
|
|
@@ -124,8 +117,8 @@ export const tasksAndDecisionsPlugin: TasksAndDecisionsPlugin;
|
|
|
124
117
|
|
|
125
118
|
```json
|
|
126
119
|
{
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
"react": "^16.8.0",
|
|
121
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
129
122
|
}
|
|
130
123
|
```
|
|
131
124
|
|