@atlaskit/editor-plugin-tasks-and-decisions 1.3.2 → 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/.eslintrc.js +4 -4
- package/CHANGELOG.md +178 -172
- package/LICENSE.md +6 -8
- package/dist/cjs/pm-plugins/keymaps.js +14 -14
- package/dist/es2019/pm-plugins/keymaps.js +14 -14
- package/dist/esm/pm-plugins/keymaps.js +14 -14
- package/dist/types/nodeviews/hooks/use-show-placeholder.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/hooks/use-show-placeholder.d.ts +1 -1
- package/package.json +3 -5
- package/report.api.md +39 -46
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,412 +1,418 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 1.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 1.3.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
13
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
14
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
15
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
16
|
+
- Updated dependencies
|
|
11
17
|
|
|
12
18
|
## 1.3.1
|
|
13
19
|
|
|
14
20
|
### Patch Changes
|
|
15
21
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
23
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
24
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
25
|
|
|
20
26
|
## 1.3.0
|
|
21
27
|
|
|
22
28
|
### Minor Changes
|
|
23
29
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
31
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
32
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
33
|
|
|
28
34
|
### Patch Changes
|
|
29
35
|
|
|
30
|
-
-
|
|
36
|
+
- Updated dependencies
|
|
31
37
|
|
|
32
38
|
## 1.2.3
|
|
33
39
|
|
|
34
40
|
### Patch Changes
|
|
35
41
|
|
|
36
|
-
-
|
|
42
|
+
- Updated dependencies
|
|
37
43
|
|
|
38
44
|
## 1.2.2
|
|
39
45
|
|
|
40
46
|
### Patch Changes
|
|
41
47
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
49
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
50
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
45
51
|
|
|
46
52
|
## 1.2.1
|
|
47
53
|
|
|
48
54
|
### Patch Changes
|
|
49
55
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
57
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
58
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
59
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
60
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
55
61
|
|
|
56
62
|
## 1.2.0
|
|
57
63
|
|
|
58
64
|
### Minor Changes
|
|
59
65
|
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
- [#95168](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95168)
|
|
67
|
+
[`2091e194a817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2091e194a817) -
|
|
68
|
+
Introduced new PortalProviderAPI behind a FF
|
|
63
69
|
|
|
64
70
|
### Patch Changes
|
|
65
71
|
|
|
66
|
-
-
|
|
72
|
+
- Updated dependencies
|
|
67
73
|
|
|
68
74
|
## 1.1.3
|
|
69
75
|
|
|
70
76
|
### Patch Changes
|
|
71
77
|
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
79
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
80
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
75
81
|
|
|
76
82
|
## 1.1.2
|
|
77
83
|
|
|
78
84
|
### Patch Changes
|
|
79
85
|
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
87
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
88
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
83
89
|
|
|
84
90
|
## 1.1.1
|
|
85
91
|
|
|
86
92
|
### Patch Changes
|
|
87
93
|
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
|
|
94
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
95
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
96
|
+
Updating adf-schema version to 35.10.0
|
|
91
97
|
|
|
92
98
|
## 1.1.0
|
|
93
99
|
|
|
94
100
|
### Minor Changes
|
|
95
101
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
103
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
104
|
+
bumped editor-prosemirror version to 4.0.0
|
|
99
105
|
|
|
100
106
|
### Patch Changes
|
|
101
107
|
|
|
102
|
-
-
|
|
108
|
+
- Updated dependencies
|
|
103
109
|
|
|
104
110
|
## 1.0.9
|
|
105
111
|
|
|
106
112
|
### Patch Changes
|
|
107
113
|
|
|
108
|
-
-
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
115
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
116
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
111
117
|
|
|
112
118
|
## 1.0.8
|
|
113
119
|
|
|
114
120
|
### Patch Changes
|
|
115
121
|
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
122
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
123
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
124
|
+
Bump ADF-schema package to version 35.0.0
|
|
125
|
+
- Updated dependencies
|
|
120
126
|
|
|
121
127
|
## 1.0.7
|
|
122
128
|
|
|
123
129
|
### Patch Changes
|
|
124
130
|
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
132
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
133
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
134
|
+
35.7.0 to 35.8.0
|
|
129
135
|
|
|
130
136
|
## 1.0.6
|
|
131
137
|
|
|
132
138
|
### Patch Changes
|
|
133
139
|
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
141
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
142
|
+
Bump adf-schema to 35.7.0
|
|
137
143
|
|
|
138
144
|
## 1.0.5
|
|
139
145
|
|
|
140
146
|
### Patch Changes
|
|
141
147
|
|
|
142
|
-
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
149
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
150
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
145
151
|
|
|
146
152
|
## 1.0.4
|
|
147
153
|
|
|
148
154
|
### Patch Changes
|
|
149
155
|
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
156
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
157
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
158
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
153
159
|
|
|
154
160
|
## 1.0.3
|
|
155
161
|
|
|
156
162
|
### Patch Changes
|
|
157
163
|
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
-
|
|
164
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
165
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
166
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
167
|
+
- Updated dependencies
|
|
162
168
|
|
|
163
169
|
## 1.0.2
|
|
164
170
|
|
|
165
171
|
### Patch Changes
|
|
166
172
|
|
|
167
|
-
-
|
|
168
|
-
|
|
169
|
-
|
|
173
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
174
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
175
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
170
176
|
|
|
171
|
-
|
|
177
|
+
## WHY?
|
|
172
178
|
|
|
173
|
-
|
|
179
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
174
180
|
|
|
175
|
-
|
|
181
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
176
182
|
|
|
177
|
-
|
|
183
|
+
## WHAT and HOW?
|
|
178
184
|
|
|
179
|
-
|
|
180
|
-
|
|
185
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
186
|
+
`@atlaskit/editor-common/types`:
|
|
181
187
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
- InputRuleWrapper
|
|
189
|
+
- InputRuleHandler
|
|
190
|
+
- OnHandlerApply
|
|
191
|
+
- createRule
|
|
186
192
|
|
|
187
|
-
|
|
188
|
-
|
|
193
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
194
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
189
195
|
|
|
190
|
-
|
|
196
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
191
197
|
|
|
192
|
-
|
|
193
|
-
|
|
198
|
+
- createPlugin
|
|
199
|
+
- createInputRulePlugin
|
|
194
200
|
|
|
195
|
-
-
|
|
201
|
+
- Updated dependencies
|
|
196
202
|
|
|
197
203
|
## 1.0.1
|
|
198
204
|
|
|
199
205
|
### Patch Changes
|
|
200
206
|
|
|
201
|
-
-
|
|
207
|
+
- Updated dependencies
|
|
202
208
|
|
|
203
209
|
## 1.0.0
|
|
204
210
|
|
|
205
211
|
### Major Changes
|
|
206
212
|
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
213
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
214
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
215
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
216
|
+
is to address an issue with Jira plugin consumption.
|
|
211
217
|
|
|
212
218
|
### Patch Changes
|
|
213
219
|
|
|
214
|
-
-
|
|
220
|
+
- Updated dependencies
|
|
215
221
|
|
|
216
222
|
## 0.3.3
|
|
217
223
|
|
|
218
224
|
### Patch Changes
|
|
219
225
|
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
|
|
226
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
227
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
228
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
223
229
|
|
|
224
230
|
## 0.3.2
|
|
225
231
|
|
|
226
232
|
### Patch Changes
|
|
227
233
|
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
|
|
234
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
235
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
236
|
+
Updating adf-schema version to 35.5.1
|
|
231
237
|
|
|
232
238
|
## 0.3.1
|
|
233
239
|
|
|
234
240
|
### Patch Changes
|
|
235
241
|
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
-
|
|
242
|
+
- [#68640](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68640)
|
|
243
|
+
[`6a3ea210641a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a3ea210641a) -
|
|
244
|
+
Create new context identifier plugin which contains the provider.
|
|
245
|
+
- Updated dependencies
|
|
240
246
|
|
|
241
247
|
## 0.3.0
|
|
242
248
|
|
|
243
249
|
### Minor Changes
|
|
244
250
|
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
251
|
+
- [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
|
|
252
|
+
[`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
|
|
253
|
+
Support maybeAdd plugins in usePreset. Add typing support for universal preset.
|
|
248
254
|
|
|
249
|
-
|
|
255
|
+
Now when using the editor API with the universal preset
|
|
250
256
|
|
|
251
257
|
### Patch Changes
|
|
252
258
|
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
-
|
|
259
|
+
- [#69144](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69144)
|
|
260
|
+
[`10e7328aea8c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10e7328aea8c) -
|
|
261
|
+
[ux] ED-21844 Add fix for enter keybind behaviour for nested actions inside list and relevant
|
|
262
|
+
testcases
|
|
263
|
+
- Updated dependencies
|
|
258
264
|
|
|
259
265
|
## 0.2.16
|
|
260
266
|
|
|
261
267
|
### Patch Changes
|
|
262
268
|
|
|
263
|
-
-
|
|
269
|
+
- Updated dependencies
|
|
264
270
|
|
|
265
271
|
## 0.2.15
|
|
266
272
|
|
|
267
273
|
### Patch Changes
|
|
268
274
|
|
|
269
|
-
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
-
|
|
275
|
+
- [#66823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66823)
|
|
276
|
+
[`a190e988a6b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a190e988a6b1) -
|
|
277
|
+
[ux] ED-21614: Correctly create action list inside a listItem using keyboard shortcut '[] '
|
|
278
|
+
- Updated dependencies
|
|
273
279
|
|
|
274
280
|
## 0.2.14
|
|
275
281
|
|
|
276
282
|
### Patch Changes
|
|
277
283
|
|
|
278
|
-
-
|
|
279
|
-
|
|
280
|
-
|
|
284
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
285
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
286
|
+
Ensure all editor plugins are marked as singletons
|
|
281
287
|
|
|
282
288
|
## 0.2.13
|
|
283
289
|
|
|
284
290
|
### Patch Changes
|
|
285
291
|
|
|
286
|
-
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
-
|
|
292
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
293
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
294
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
295
|
+
- Updated dependencies
|
|
290
296
|
|
|
291
297
|
## 0.2.12
|
|
292
298
|
|
|
293
299
|
### Patch Changes
|
|
294
300
|
|
|
295
|
-
-
|
|
301
|
+
- Updated dependencies
|
|
296
302
|
|
|
297
303
|
## 0.2.11
|
|
298
304
|
|
|
299
305
|
### Patch Changes
|
|
300
306
|
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
|
|
307
|
+
- [#63286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63286)
|
|
308
|
+
[`8391b2f13d16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8391b2f13d16) -
|
|
309
|
+
ED-21644 Add action item outside blockquote on trying to insert action in a list inside quote
|
|
304
310
|
|
|
305
311
|
## 0.2.10
|
|
306
312
|
|
|
307
313
|
### Patch Changes
|
|
308
314
|
|
|
309
|
-
-
|
|
310
|
-
|
|
311
|
-
|
|
315
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
316
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
317
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
312
318
|
|
|
313
319
|
## 0.2.9
|
|
314
320
|
|
|
315
321
|
### Patch Changes
|
|
316
322
|
|
|
317
|
-
-
|
|
318
|
-
|
|
319
|
-
|
|
323
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
324
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
325
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
320
326
|
|
|
321
327
|
## 0.2.8
|
|
322
328
|
|
|
323
329
|
### Patch Changes
|
|
324
330
|
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
|
|
331
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
332
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
333
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
328
334
|
|
|
329
335
|
## 0.2.7
|
|
330
336
|
|
|
331
337
|
### Patch Changes
|
|
332
338
|
|
|
333
|
-
-
|
|
339
|
+
- Updated dependencies
|
|
334
340
|
|
|
335
341
|
## 0.2.6
|
|
336
342
|
|
|
337
343
|
### Patch Changes
|
|
338
344
|
|
|
339
|
-
-
|
|
345
|
+
- Updated dependencies
|
|
340
346
|
|
|
341
347
|
## 0.2.5
|
|
342
348
|
|
|
343
349
|
### Patch Changes
|
|
344
350
|
|
|
345
|
-
-
|
|
346
|
-
|
|
347
|
-
|
|
351
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
352
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
353
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
348
354
|
|
|
349
355
|
## 0.2.4
|
|
350
356
|
|
|
351
357
|
### Patch Changes
|
|
352
358
|
|
|
353
|
-
-
|
|
354
|
-
|
|
355
|
-
|
|
359
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
360
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
361
|
+
update ADF schema
|
|
356
362
|
|
|
357
363
|
## 0.2.3
|
|
358
364
|
|
|
359
365
|
### Patch Changes
|
|
360
366
|
|
|
361
|
-
-
|
|
362
|
-
|
|
363
|
-
|
|
367
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
368
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
369
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
364
370
|
|
|
365
371
|
## 0.2.2
|
|
366
372
|
|
|
367
373
|
### Patch Changes
|
|
368
374
|
|
|
369
|
-
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
375
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
376
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
377
|
+
feature flags plugin optional in all plugins including:
|
|
378
|
+
|
|
379
|
+
- analytics
|
|
380
|
+
- base
|
|
381
|
+
- card
|
|
382
|
+
- code-block
|
|
383
|
+
- expand
|
|
384
|
+
- extension
|
|
385
|
+
- floating-toolbar
|
|
386
|
+
- hyperlink
|
|
387
|
+
- insert-block
|
|
388
|
+
- layout
|
|
389
|
+
- layout
|
|
390
|
+
- list
|
|
391
|
+
- media
|
|
392
|
+
- paste
|
|
393
|
+
- rule
|
|
394
|
+
- table
|
|
395
|
+
- tasks-and-decisions
|
|
396
|
+
|
|
397
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
398
|
+
mandatory to be added to the preset.
|
|
393
399
|
|
|
394
400
|
## 0.2.1
|
|
395
401
|
|
|
396
402
|
### Patch Changes
|
|
397
403
|
|
|
398
|
-
-
|
|
399
|
-
|
|
400
|
-
|
|
404
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
405
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
406
|
+
Upgrade adf-schema package to ^34.0.0
|
|
401
407
|
|
|
402
408
|
## 0.2.0
|
|
403
409
|
|
|
404
410
|
### Minor Changes
|
|
405
411
|
|
|
406
|
-
-
|
|
407
|
-
|
|
408
|
-
|
|
412
|
+
- [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
|
|
413
|
+
[`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
|
|
414
|
+
Extracting tasks and decisions code from editor-core to new plugin package.
|
|
409
415
|
|
|
410
416
|
### Patch Changes
|
|
411
417
|
|
|
412
|
-
-
|
|
418
|
+
- 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.
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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 {};
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
39
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"@atlaskit/ssr": "*",
|
|
59
59
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
60
60
|
"@atlaskit/visual-regression": "*",
|
|
61
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
62
61
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
63
62
|
"@testing-library/react": "^12.1.5",
|
|
64
63
|
"react-dom": "^16.8.0",
|
|
@@ -97,6 +96,5 @@
|
|
|
97
96
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
98
97
|
]
|
|
99
98
|
}
|
|
100
|
-
}
|
|
101
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
99
|
+
}
|
|
102
100
|
}
|
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
|
|