@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- },
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ },
6
6
  };
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
- - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
8
- [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
9
- [ED-23332] Update adf-schema package to 36.10.1
10
- - Updated dependencies
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
- - [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
17
- [`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
18
- ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
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
- - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
25
- [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
26
- Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
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
- - Updated dependencies
46
+ - Updated dependencies
31
47
 
32
48
  ## 1.2.3
33
49
 
34
50
  ### Patch Changes
35
51
 
36
- - Updated dependencies
52
+ - Updated dependencies
37
53
 
38
54
  ## 1.2.2
39
55
 
40
56
  ### Patch Changes
41
57
 
42
- - [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
43
- [`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
44
- [ED-22282] Bump adf-schema to 36.1.0
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
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
51
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
52
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
53
- language triggering composition on an empty line.This was fixed in a patch bump of
54
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
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
- - [#95168](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95168)
61
- [`2091e194a817`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2091e194a817) -
62
- Introduced new PortalProviderAPI behind a FF
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
- - Updated dependencies
82
+ - Updated dependencies
67
83
 
68
84
  ## 1.1.3
69
85
 
70
86
  ### Patch Changes
71
87
 
72
- - [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
73
- [`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
74
- [ED-23102] Bump ADF schema to version 35.12.2
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
- - [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
81
- [`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
82
- [ED-23097] Bump ADF schema to version 35.12.1
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
- - [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
89
- [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
90
- Updating adf-schema version to 35.10.0
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
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
97
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
98
- bumped editor-prosemirror version to 4.0.0
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
- - Updated dependencies
118
+ - Updated dependencies
103
119
 
104
120
  ## 1.0.9
105
121
 
106
122
  ### Patch Changes
107
123
 
108
- - [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
109
- [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
110
- Bump adf-schema to 35.9.2 to support table alignment options
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
- - [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
117
- [`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
118
- Bump ADF-schema package to version 35.0.0
119
- - Updated dependencies
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
- - [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
126
- [`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
127
- [ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
128
- 35.7.0 to 35.8.0
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
- - [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
135
- [`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
136
- Bump adf-schema to 35.7.0
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
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
143
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
144
- Upgrade Typescript from `4.9.5` to `5.4.2`
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
- - [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
151
- [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
152
- ED-22553 Updating adf-schema version to 35.6.0
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
- - [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
159
- [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
160
- ED-22219: adf-schema updated to 35.5.2
161
- - Updated dependencies
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
- - [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
168
- [`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
169
- MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
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
- ## WHY?
187
+ ## WHY?
172
188
 
173
- Removing editor-common dependencies from prosemirror-input-rules package.
189
+ Removing editor-common dependencies from prosemirror-input-rules package.
174
190
 
175
- This makes it easier for editor updates because it simplifies our dependency graph.
191
+ This makes it easier for editor updates because it simplifies our dependency graph.
176
192
 
177
- ## WHAT and HOW?
193
+ ## WHAT and HOW?
178
194
 
179
- These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
180
- `@atlaskit/editor-common/types`:
195
+ These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
196
+ `@atlaskit/editor-common/types`:
181
197
 
182
- - InputRuleWrapper
183
- - InputRuleHandler
184
- - OnHandlerApply
185
- - createRule
198
+ - InputRuleWrapper
199
+ - InputRuleHandler
200
+ - OnHandlerApply
201
+ - createRule
186
202
 
187
- These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
188
- need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
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
- `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
206
+ `SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
191
207
 
192
- - createPlugin
193
- - createInputRulePlugin
208
+ - createPlugin
209
+ - createInputRulePlugin
194
210
 
195
- - Updated dependencies
211
+ - Updated dependencies
196
212
 
197
213
  ## 1.0.1
198
214
 
199
215
  ### Patch Changes
200
216
 
201
- - Updated dependencies
217
+ - Updated dependencies
202
218
 
203
219
  ## 1.0.0
204
220
 
205
221
  ### Major Changes
206
222
 
207
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
208
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
209
- This changeset exists to bump all editor plugins that currently don't have a major version. This
210
- is to address an issue with Jira plugin consumption.
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
- - Updated dependencies
230
+ - Updated dependencies
215
231
 
216
232
  ## 0.3.3
217
233
 
218
234
  ### Patch Changes
219
235
 
220
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
221
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
222
- Upgrading @atlaskit/editor-prosemirror dependency
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
- - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
229
- [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
230
- Updating adf-schema version to 35.5.1
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
- - [#68640](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68640)
237
- [`6a3ea210641a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a3ea210641a) -
238
- Create new context identifier plugin which contains the provider.
239
- - Updated dependencies
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
- - [#68790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68790)
246
- [`c6d8affc52d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d8affc52d1) -
247
- Support maybeAdd plugins in usePreset. Add typing support for universal preset.
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
- Now when using the editor API with the universal preset
265
+ Now when using the editor API with the universal preset
250
266
 
251
267
  ### Patch Changes
252
268
 
253
- - [#69144](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69144)
254
- [`10e7328aea8c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10e7328aea8c) -
255
- [ux] ED-21844 Add fix for enter keybind behaviour for nested actions inside list and relevant
256
- testcases
257
- - Updated dependencies
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
- - Updated dependencies
279
+ - Updated dependencies
264
280
 
265
281
  ## 0.2.15
266
282
 
267
283
  ### Patch Changes
268
284
 
269
- - [#66823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66823)
270
- [`a190e988a6b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a190e988a6b1) -
271
- [ux] ED-21614: Correctly create action list inside a listItem using keyboard shortcut '[] '
272
- - Updated dependencies
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
- - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
279
- [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
280
- Ensure all editor plugins are marked as singletons
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
- - [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
287
- [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
288
- ED-21609 Update adf-schema to 35.3.0
289
- - Updated dependencies
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
- - Updated dependencies
311
+ - Updated dependencies
296
312
 
297
313
  ## 0.2.11
298
314
 
299
315
  ### Patch Changes
300
316
 
301
- - [#63286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63286)
302
- [`8391b2f13d16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8391b2f13d16) -
303
- ED-21644 Add action item outside blockquote on trying to insert action in a list inside quote
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
- - [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
310
- [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
311
- [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
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
- - [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
318
- [`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
319
- ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
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
- - [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
326
- [`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
327
- ED-21371 Update adf-schema to 35.1.0
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
- - Updated dependencies
349
+ - Updated dependencies
334
350
 
335
351
  ## 0.2.6
336
352
 
337
353
  ### Patch Changes
338
354
 
339
- - Updated dependencies
355
+ - Updated dependencies
340
356
 
341
357
  ## 0.2.5
342
358
 
343
359
  ### Patch Changes
344
360
 
345
- - [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
346
- [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
347
- Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
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
- - [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
354
- [`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
355
- update ADF schema
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
- - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
362
- [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
363
- ED-21266: Updated @atlaskit/adf-schema to 34.0.1
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
- - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
370
- [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
371
- feature flags plugin optional in all plugins including:
372
-
373
- - analytics
374
- - base
375
- - card
376
- - code-block
377
- - expand
378
- - extension
379
- - floating-toolbar
380
- - hyperlink
381
- - insert-block
382
- - layout
383
- - layout
384
- - list
385
- - media
386
- - paste
387
- - rule
388
- - table
389
- - tasks-and-decisions
390
-
391
- We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
392
- mandatory to be added to the preset.
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
- - [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
399
- [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) -
400
- ED-20971 Upgrade adf-schema package to ^34.0.0
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
- - [#43405](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43405)
407
- [`150827259db`](https://bitbucket.org/atlassian/atlassian-frontend/commits/150827259db) -
408
- Extracting tasks and decisions code from editor-core to new plugin package.
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
- - Updated dependencies
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
- you may not use this file except in compliance with the License.
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 under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
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.
@@ -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
- 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
- */
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
- 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
- */
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
- to have consistent behaviour and their resolution.
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
- 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
- */
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
@@ -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
- 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
- */
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
- 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
- */
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
- to have consistent behaviour and their resolution.
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
- 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
- */
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
@@ -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
- 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
- */
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
- 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
- */
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
- to have consistent behaviour and their resolution.
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
- 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
- */
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, }: Props2) => boolean;
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;
@@ -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, }: Props2) => boolean;
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
- "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "1.3.2",
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
- "*": [
25
- "dist/types-ts4.5/*",
26
- "dist/types-ts4.5/index.d.ts"
27
- ]
28
- }
29
- },
30
- "sideEffects": false,
31
- "atlaskit:src": "src/index.ts",
32
- "af:exports": {
33
- ".": "./src/index.ts"
34
- },
35
- "dependencies": {
36
- "@atlaskit/adf-schema": "^36.10.7",
37
- "@atlaskit/analytics-namespaced-context": "^6.9.0",
38
- "@atlaskit/analytics-next": "^9.3.0",
39
- "@atlaskit/editor-common": "^81.0.0",
40
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
41
- "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
42
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
43
- "@atlaskit/editor-prosemirror": "4.0.1",
44
- "@atlaskit/icon": "^22.3.0",
45
- "@atlaskit/prosemirror-input-rules": "^3.1.0",
46
- "@atlaskit/task-decision": "^17.10.0",
47
- "@babel/runtime": "^7.0.0",
48
- "@emotion/react": "^11.7.1"
49
- },
50
- "peerDependencies": {
51
- "react": "^16.8.0",
52
- "react-intl-next": "npm:react-intl@^5.18.1"
53
- },
54
- "devDependencies": {
55
- "@af/integration-testing": "*",
56
- "@af/visual-regression": "*",
57
- "@atlaskit/platform-feature-flags": "^0.2.5",
58
- "@atlaskit/ssr": "*",
59
- "@atlaskit/util-data-test": "^17.9.0",
60
- "@atlaskit/visual-regression": "*",
61
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
62
- "@atlassian/feature-flags-test-utils": "^0.2.0",
63
- "@testing-library/react": "^12.1.5",
64
- "react-dom": "^16.8.0",
65
- "typescript": "~5.4.2",
66
- "wait-for-expect": "^1.2.0"
67
- },
68
- "techstack": {
69
- "@atlassian/frontend": {
70
- "import-structure": [
71
- "atlassian-conventions"
72
- ],
73
- "circular-dependencies": [
74
- "file-and-folder-level"
75
- ]
76
- },
77
- "@repo/internal": {
78
- "dom-events": "use-bind-event-listener",
79
- "analytics": [
80
- "analytics-next"
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 [API Extractor](https://api-extractor.com/).
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
- state: EditorState;
41
- tr: Transaction;
42
- list: NodeType;
43
- item: NodeType;
44
- listLocalId: string;
45
- itemLocalId: string;
46
- itemAttrs?: AddItemAttrs;
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
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
50
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
52
51
  ) => (inputMethod?: IndentationInputMethod) => Command;
53
52
 
54
53
  // @public (undocumented)
55
54
  const getUnindentCommand: (
56
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
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
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
63
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
65
64
  ) => (
66
- listType: TaskDecisionListType,
67
- inputMethod?:
68
- | INPUT_METHOD.FORMATTING
69
- | INPUT_METHOD.QUICK_INSERT
70
- | TOOLBAR_MENU_TYPE,
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
- focusedTaskItemLocalId: null | string;
79
- indentDisabled: boolean;
80
- outdentDisabled: boolean;
81
- isInsideTask: boolean;
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
- // (undocumented)
90
- allowNestedTasks?: boolean;
91
- // (undocumented)
92
- consumeTabs?: boolean;
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
- 'taskDecision',
98
- {
99
- pluginConfiguration: TaskDecisionPluginOptions | undefined;
100
- sharedState: TaskAndDecisionsSharedState | undefined;
101
- dependencies: [
102
- OptionalPlugin<TypeAheadPlugin>,
103
- OptionalPlugin<AnalyticsPlugin>,
104
- ];
105
- actions: {
106
- insertTaskDecision: ReturnType<typeof insertTaskDecisionCommand>;
107
- indentTaskList: ReturnType<typeof getIndentCommand>;
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
- "react": "^16.8.0",
128
- "react-intl-next": "npm:react-intl@^5.18.1"
120
+ "react": "^16.8.0",
121
+ "react-intl-next": "npm:react-intl@^5.18.1"
129
122
  }
130
123
  ```
131
124