@atlaskit/editor-plugin-tasks-and-decisions 1.3.1 → 1.3.3

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