@atlaskit/editor-plugin-list 3.3.2 → 3.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 +12 -12
- package/CHANGELOG.md +293 -283
- package/LICENSE.md +6 -8
- package/dist/cjs/actions/outdent-list-items-selected.js +2 -1
- package/dist/es2019/actions/outdent-list-items-selected.js +5 -2
- package/dist/esm/actions/outdent-list-items-selected.js +5 -2
- package/dist/types/actions/merge-lists.d.ts +1 -1
- package/dist/types/pm-plugins/input-rules/create-list-input-rule.d.ts +1 -1
- package/dist/types/types.d.ts +1 -4
- package/dist/types-ts4.5/actions/merge-lists.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/input-rules/create-list-input-rule.d.ts +1 -1
- package/package.json +2 -4
- package/report.api.md +32 -37
package/.eslintrc.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
rules: {
|
|
3
|
+
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
4
|
+
'@typescript-eslint/no-explicit-any': 'error',
|
|
5
|
+
},
|
|
6
|
+
overrides: [
|
|
7
|
+
{
|
|
8
|
+
files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
|
|
9
|
+
rules: {
|
|
10
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
14
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,635 +1,645 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-list
|
|
2
2
|
|
|
3
|
+
## 3.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.3.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#104728](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104728)
|
|
14
|
+
[`cbeeba0c2bf3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cbeeba0c2bf3) -
|
|
15
|
+
[ux] HOT-109442: turn off processNestedTaskListsInSameLevel() to prevent data loss (but brings
|
|
16
|
+
back ED-21943)
|
|
17
|
+
|
|
3
18
|
## 3.3.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
22
|
+
- [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
|
|
23
|
+
[`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
|
|
24
|
+
[ED-23332] Update adf-schema package to 36.10.1
|
|
25
|
+
- Updated dependencies
|
|
11
26
|
|
|
12
27
|
## 3.3.1
|
|
13
28
|
|
|
14
29
|
### Patch Changes
|
|
15
30
|
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
- [#101524](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101524)
|
|
32
|
+
[`4821570088e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4821570088e6) -
|
|
33
|
+
ED-23362 Bump ADF schema to version 36.8.1 and add support for adf validation and transformation
|
|
19
34
|
|
|
20
35
|
## 3.3.0
|
|
21
36
|
|
|
22
37
|
### Minor Changes
|
|
23
38
|
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
39
|
+
- [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
|
|
40
|
+
[`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
|
|
41
|
+
Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
|
|
27
42
|
|
|
28
43
|
### Patch Changes
|
|
29
44
|
|
|
30
|
-
-
|
|
45
|
+
- Updated dependencies
|
|
31
46
|
|
|
32
47
|
## 3.2.7
|
|
33
48
|
|
|
34
49
|
### Patch Changes
|
|
35
50
|
|
|
36
|
-
-
|
|
51
|
+
- Updated dependencies
|
|
37
52
|
|
|
38
53
|
## 3.2.6
|
|
39
54
|
|
|
40
55
|
### Patch Changes
|
|
41
56
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
- [#97599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97599)
|
|
58
|
+
[`32c3130b08fe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c3130b08fe) -
|
|
59
|
+
[ED-22282] Bump adf-schema to 36.1.0
|
|
45
60
|
|
|
46
61
|
## 3.2.5
|
|
47
62
|
|
|
48
63
|
### Patch Changes
|
|
49
64
|
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
65
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
66
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
67
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
68
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
69
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
55
70
|
|
|
56
71
|
## 3.2.4
|
|
57
72
|
|
|
58
73
|
### Patch Changes
|
|
59
74
|
|
|
60
|
-
-
|
|
75
|
+
- Updated dependencies
|
|
61
76
|
|
|
62
77
|
## 3.2.3
|
|
63
78
|
|
|
64
79
|
### Patch Changes
|
|
65
80
|
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
81
|
+
- [#96237](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96237)
|
|
82
|
+
[`0401e7b5a88e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0401e7b5a88e) -
|
|
83
|
+
[ED-23102] Bump ADF schema to version 35.12.2
|
|
69
84
|
|
|
70
85
|
## 3.2.2
|
|
71
86
|
|
|
72
87
|
### Patch Changes
|
|
73
88
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
89
|
+
- [#94901](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94901)
|
|
90
|
+
[`da964fcdc828`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da964fcdc828) -
|
|
91
|
+
[ED-23097] Bump ADF schema to version 35.12.1
|
|
77
92
|
|
|
78
93
|
## 3.2.1
|
|
79
94
|
|
|
80
95
|
### Patch Changes
|
|
81
96
|
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689)
|
|
98
|
+
[`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) -
|
|
99
|
+
Updating adf-schema version to 35.10.0
|
|
85
100
|
|
|
86
101
|
## 3.2.0
|
|
87
102
|
|
|
88
103
|
### Minor Changes
|
|
89
104
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
105
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
106
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
107
|
+
bumped editor-prosemirror version to 4.0.0
|
|
93
108
|
|
|
94
109
|
### Patch Changes
|
|
95
110
|
|
|
96
|
-
-
|
|
111
|
+
- Updated dependencies
|
|
97
112
|
|
|
98
113
|
## 3.1.18
|
|
99
114
|
|
|
100
115
|
### Patch Changes
|
|
101
116
|
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
117
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426)
|
|
118
|
+
[`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) -
|
|
119
|
+
Bump adf-schema to 35.9.2 to support table alignment options
|
|
105
120
|
|
|
106
121
|
## 3.1.17
|
|
107
122
|
|
|
108
123
|
### Patch Changes
|
|
109
124
|
|
|
110
|
-
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
125
|
+
- [#91106](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91106)
|
|
126
|
+
[`b6ffa30186b9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6ffa30186b9) -
|
|
127
|
+
Bump ADF-schema package to version 35.0.0
|
|
128
|
+
- Updated dependencies
|
|
114
129
|
|
|
115
130
|
## 3.1.16
|
|
116
131
|
|
|
117
132
|
### Patch Changes
|
|
118
133
|
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
134
|
+
- [#86724](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86724)
|
|
135
|
+
[`718a9aa2424d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/718a9aa2424d) -
|
|
136
|
+
[ED-22607] Remove references to maxFrames for multi bodied extensions and bump adf-schema from
|
|
137
|
+
35.7.0 to 35.8.0
|
|
123
138
|
|
|
124
139
|
## 3.1.15
|
|
125
140
|
|
|
126
141
|
### Patch Changes
|
|
127
142
|
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
143
|
+
- [#81777](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81777)
|
|
144
|
+
[`c6d7a5378751`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c6d7a5378751) -
|
|
145
|
+
Bump adf-schema to 35.7.0
|
|
131
146
|
|
|
132
147
|
## 3.1.14
|
|
133
148
|
|
|
134
149
|
### Patch Changes
|
|
135
150
|
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
151
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
152
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
153
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
139
154
|
|
|
140
155
|
## 3.1.13
|
|
141
156
|
|
|
142
157
|
### Patch Changes
|
|
143
158
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
159
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679)
|
|
160
|
+
[`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) -
|
|
161
|
+
ED-22553 Updating adf-schema version to 35.6.0
|
|
147
162
|
|
|
148
163
|
## 3.1.12
|
|
149
164
|
|
|
150
165
|
### Patch Changes
|
|
151
166
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
167
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224)
|
|
168
|
+
[`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) -
|
|
169
|
+
ED-22219: adf-schema updated to 35.5.2
|
|
170
|
+
- Updated dependencies
|
|
156
171
|
|
|
157
172
|
## 3.1.11
|
|
158
173
|
|
|
159
174
|
### Patch Changes
|
|
160
175
|
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
176
|
+
- [#75482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75482)
|
|
177
|
+
[`18b5a6fb910a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/18b5a6fb910a) - #
|
|
178
|
+
MAJOR CHANGE to `@atlaskit/prosemirror-input-rules` package.
|
|
164
179
|
|
|
165
|
-
|
|
180
|
+
## WHY?
|
|
166
181
|
|
|
167
|
-
|
|
182
|
+
Removing editor-common dependencies from prosemirror-input-rules package.
|
|
168
183
|
|
|
169
|
-
|
|
184
|
+
This makes it easier for editor updates because it simplifies our dependency graph.
|
|
170
185
|
|
|
171
|
-
|
|
186
|
+
## WHAT and HOW?
|
|
172
187
|
|
|
173
|
-
|
|
174
|
-
|
|
188
|
+
These are no longer available via `@atlaskit/prosemirror-input-rules` but are available from
|
|
189
|
+
`@atlaskit/editor-common/types`:
|
|
175
190
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
191
|
+
- InputRuleWrapper
|
|
192
|
+
- InputRuleHandler
|
|
193
|
+
- OnHandlerApply
|
|
194
|
+
- createRule
|
|
180
195
|
|
|
181
|
-
|
|
182
|
-
|
|
196
|
+
These have changed from a `SafePlugin` to a `SafePluginSpec`. In order to update your code you
|
|
197
|
+
need to instantiate a `SafePlugin` (ie. `new SafePlugin(createPlugin( ... ))`).
|
|
183
198
|
|
|
184
|
-
|
|
199
|
+
`SafePlugin` exists in `@atlaskit/editor-common/safe-plugin`.
|
|
185
200
|
|
|
186
|
-
|
|
187
|
-
|
|
201
|
+
- createPlugin
|
|
202
|
+
- createInputRulePlugin
|
|
188
203
|
|
|
189
|
-
-
|
|
204
|
+
- Updated dependencies
|
|
190
205
|
|
|
191
206
|
## 3.1.10
|
|
192
207
|
|
|
193
208
|
### Patch Changes
|
|
194
209
|
|
|
195
|
-
-
|
|
210
|
+
- Updated dependencies
|
|
196
211
|
|
|
197
212
|
## 3.1.9
|
|
198
213
|
|
|
199
214
|
### Patch Changes
|
|
200
215
|
|
|
201
|
-
-
|
|
216
|
+
- Updated dependencies
|
|
202
217
|
|
|
203
218
|
## 3.1.8
|
|
204
219
|
|
|
205
220
|
### Patch Changes
|
|
206
221
|
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
222
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
223
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
224
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
210
225
|
|
|
211
226
|
## 3.1.7
|
|
212
227
|
|
|
213
228
|
### Patch Changes
|
|
214
229
|
|
|
215
|
-
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
230
|
+
- [#71503](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71503)
|
|
231
|
+
[`2e81432d605a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2e81432d605a) -
|
|
232
|
+
[ux] ED-21943 Fixed outdent behaviour when multiple lists at same level including TaskList, and
|
|
233
|
+
add relevant testcases.
|
|
219
234
|
|
|
220
235
|
## 3.1.6
|
|
221
236
|
|
|
222
237
|
### Patch Changes
|
|
223
238
|
|
|
224
|
-
-
|
|
225
|
-
|
|
226
|
-
|
|
239
|
+
- [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152)
|
|
240
|
+
[`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) -
|
|
241
|
+
Updating adf-schema version to 35.5.1
|
|
227
242
|
|
|
228
243
|
## 3.1.5
|
|
229
244
|
|
|
230
245
|
### Patch Changes
|
|
231
246
|
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
-
|
|
247
|
+
- [#67576](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67576)
|
|
248
|
+
[`c03238aac8d2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c03238aac8d2) -
|
|
249
|
+
Export some plugin types to allow fix the build type
|
|
250
|
+
- Updated dependencies
|
|
236
251
|
|
|
237
252
|
## 3.1.4
|
|
238
253
|
|
|
239
254
|
### Patch Changes
|
|
240
255
|
|
|
241
|
-
-
|
|
242
|
-
|
|
243
|
-
|
|
256
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
257
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
258
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
244
259
|
|
|
245
260
|
## 3.1.3
|
|
246
261
|
|
|
247
262
|
### Patch Changes
|
|
248
263
|
|
|
249
|
-
-
|
|
250
|
-
|
|
251
|
-
|
|
264
|
+
- [#66804](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66804)
|
|
265
|
+
[`107c6d15dda7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/107c6d15dda7) -
|
|
266
|
+
ED-21802 Disable insert inside nested task list through toolbar and keybinding.
|
|
252
267
|
|
|
253
268
|
## 3.1.2
|
|
254
269
|
|
|
255
270
|
### Patch Changes
|
|
256
271
|
|
|
257
|
-
-
|
|
258
|
-
|
|
259
|
-
|
|
272
|
+
- [#65603](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65603)
|
|
273
|
+
[`ac8d4b09e18e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ac8d4b09e18e) -
|
|
274
|
+
ED-21609 Node nesting: Use the new nodespec for list and panel when respective FF's are enabled
|
|
260
275
|
|
|
261
276
|
## 3.1.1
|
|
262
277
|
|
|
263
278
|
### Patch Changes
|
|
264
279
|
|
|
265
|
-
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
-
|
|
280
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031)
|
|
281
|
+
[`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) -
|
|
282
|
+
ED-21609 Update adf-schema to 35.3.0
|
|
283
|
+
- Updated dependencies
|
|
269
284
|
|
|
270
285
|
## 3.1.0
|
|
271
286
|
|
|
272
287
|
### Minor Changes
|
|
273
288
|
|
|
274
|
-
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
289
|
+
- [#63553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63553)
|
|
290
|
+
[`e022e5359b7a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e022e5359b7a) -
|
|
291
|
+
[ux] ED-21352: Support more edge cases for ordered list auto-join improvements. These improvements
|
|
292
|
+
are guarded behind platform.editor.ordered-list-auto-join-improvements_mrlv5.
|
|
278
293
|
|
|
279
294
|
### Patch Changes
|
|
280
295
|
|
|
281
|
-
-
|
|
296
|
+
- Updated dependencies
|
|
282
297
|
|
|
283
298
|
## 3.0.1
|
|
284
299
|
|
|
285
300
|
### Patch Changes
|
|
286
301
|
|
|
287
|
-
-
|
|
288
|
-
|
|
289
|
-
|
|
302
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165)
|
|
303
|
+
[`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) -
|
|
304
|
+
[ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
290
305
|
|
|
291
306
|
## 3.0.0
|
|
292
307
|
|
|
293
308
|
### Major Changes
|
|
294
309
|
|
|
295
|
-
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
310
|
+
- [#59319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59319)
|
|
311
|
+
[`d2e34e936bf2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2e34e936bf2) -
|
|
312
|
+
[ED-15859] Clean up restartNumberedLists feature flag and set this feature as the default
|
|
313
|
+
behaviour for ordered lists. Currently this feature is only rolled out in Confluence so this
|
|
314
|
+
change will roll it out to all other products which adopt this version.
|
|
300
315
|
|
|
301
316
|
## 2.0.0
|
|
302
317
|
|
|
303
318
|
### Major Changes
|
|
304
319
|
|
|
305
|
-
-
|
|
306
|
-
|
|
307
|
-
|
|
320
|
+
- [#61903](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61903)
|
|
321
|
+
[`fb2eb9474b05`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb2eb9474b05) -
|
|
322
|
+
WHAT? Removing `toggleList` from public exports.
|
|
308
323
|
|
|
309
|
-
|
|
324
|
+
WHY? It is an antipattern to export utilities from a plugin package.
|
|
310
325
|
|
|
311
|
-
|
|
326
|
+
The preferred approach is using the editor API.
|
|
312
327
|
|
|
313
|
-
|
|
314
|
-
|
|
328
|
+
HOW DO I WORKAROUND IT? This can be accessed via the commands of the list plugin using the editor
|
|
329
|
+
API.
|
|
315
330
|
|
|
316
|
-
|
|
331
|
+
Example to toggle bullet list:
|
|
317
332
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
);
|
|
322
|
-
```
|
|
333
|
+
```ts
|
|
334
|
+
editorAPI?.core.actions.execute(editorAPI?.list.commands.toggleBulletList(INPUT_METHOD.TOOLBAR));
|
|
335
|
+
```
|
|
323
336
|
|
|
324
|
-
|
|
337
|
+
Example to toggle ordered list:
|
|
325
338
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
);
|
|
330
|
-
```
|
|
339
|
+
```ts
|
|
340
|
+
editorAPI?.core.actions.execute(editorAPI?.list.commands.toggleOrderedList(INPUT_METHOD.TOOLBAR));
|
|
341
|
+
```
|
|
331
342
|
|
|
332
343
|
## 1.4.7
|
|
333
344
|
|
|
334
345
|
### Patch Changes
|
|
335
346
|
|
|
336
|
-
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
-
|
|
347
|
+
- [#60973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60973)
|
|
348
|
+
[`0d9d4d239318`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0d9d4d239318) -
|
|
349
|
+
[ux] [ED-21530] Fix bug in list styling where unordered and ordered lists have different left
|
|
350
|
+
padding when restart numbered lists feature flag is enabled
|
|
351
|
+
- Updated dependencies
|
|
341
352
|
|
|
342
353
|
## 1.4.6
|
|
343
354
|
|
|
344
355
|
### Patch Changes
|
|
345
356
|
|
|
346
|
-
-
|
|
347
|
-
|
|
348
|
-
|
|
357
|
+
- [#60808](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/60808)
|
|
358
|
+
[`f509a21be124`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f509a21be124) -
|
|
359
|
+
ED-21506: @atlaskit/adf-schema upgraded to 35.1.1 to support renderer for MBE
|
|
349
360
|
|
|
350
361
|
## 1.4.5
|
|
351
362
|
|
|
352
363
|
### Patch Changes
|
|
353
364
|
|
|
354
|
-
-
|
|
355
|
-
|
|
356
|
-
|
|
365
|
+
- [#58246](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58246)
|
|
366
|
+
[`a381b2599716`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a381b2599716) -
|
|
367
|
+
ED-21371 Update adf-schema to 35.1.0
|
|
357
368
|
|
|
358
369
|
## 1.4.4
|
|
359
370
|
|
|
360
371
|
### Patch Changes
|
|
361
372
|
|
|
362
|
-
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
373
|
+
- [#59963](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59963)
|
|
374
|
+
[`37ba1559975c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37ba1559975c) -
|
|
375
|
+
[ux] [ED-21459] Fix bug in restart numbered lists where additional list spacing for numbers above
|
|
376
|
+
100 is added to both ordered lists and unordered lists, where it should just apply to ordered
|
|
377
|
+
lists.
|
|
367
378
|
|
|
368
379
|
## 1.4.3
|
|
369
380
|
|
|
370
381
|
### Patch Changes
|
|
371
382
|
|
|
372
|
-
-
|
|
383
|
+
- Updated dependencies
|
|
373
384
|
|
|
374
385
|
## 1.4.2
|
|
375
386
|
|
|
376
387
|
### Patch Changes
|
|
377
388
|
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
389
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147)
|
|
390
|
+
[`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) -
|
|
391
|
+
Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
381
392
|
|
|
382
393
|
## 1.4.1
|
|
383
394
|
|
|
384
395
|
### Patch Changes
|
|
385
396
|
|
|
386
|
-
-
|
|
387
|
-
|
|
388
|
-
|
|
397
|
+
- [#58763](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58763)
|
|
398
|
+
[`0fdbd64522bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fdbd64522bf) -
|
|
399
|
+
update ADF schema
|
|
389
400
|
|
|
390
401
|
## 1.4.0
|
|
391
402
|
|
|
392
403
|
### Minor Changes
|
|
393
404
|
|
|
394
|
-
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
405
|
+
- [#56675](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/56675)
|
|
406
|
+
[`772ad8f687be`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/772ad8f687be) -
|
|
407
|
+
[ux] [ED-20249] If `platform.editor.ordered-list-auto-join-improvements_mrlv5`` is enabled only
|
|
408
|
+
auto-join lists together if the order numbers match up.
|
|
398
409
|
|
|
399
|
-
|
|
410
|
+
Eg.
|
|
400
411
|
|
|
401
|
-
|
|
412
|
+
1. A list item
|
|
402
413
|
|
|
403
|
-
|
|
414
|
+
-
|
|
404
415
|
|
|
405
|
-
|
|
416
|
+
50. Another list item
|
|
406
417
|
|
|
407
|
-
|
|
418
|
+
Should NOT auto join to be 1 & 2 in a single list however...
|
|
408
419
|
|
|
409
|
-
|
|
420
|
+
49. A list item
|
|
410
421
|
|
|
411
|
-
|
|
422
|
+
-
|
|
412
423
|
|
|
413
|
-
|
|
424
|
+
50. Another list item
|
|
414
425
|
|
|
415
|
-
|
|
426
|
+
Should join to be 49 & 50 in a single list.
|
|
416
427
|
|
|
417
|
-
|
|
428
|
+
This also only applies when the `restartNumberedLists` feature flag is enabled.
|
|
418
429
|
|
|
419
430
|
## 1.3.7
|
|
420
431
|
|
|
421
432
|
### Patch Changes
|
|
422
433
|
|
|
423
|
-
-
|
|
424
|
-
|
|
425
|
-
|
|
434
|
+
- [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790)
|
|
435
|
+
[`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) -
|
|
436
|
+
ED-21266: Updated @atlaskit/adf-schema to 34.0.1
|
|
426
437
|
|
|
427
438
|
## 1.3.6
|
|
428
439
|
|
|
429
440
|
### Patch Changes
|
|
430
441
|
|
|
431
|
-
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
442
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646)
|
|
443
|
+
[`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make
|
|
444
|
+
feature flags plugin optional in all plugins including:
|
|
445
|
+
|
|
446
|
+
- analytics
|
|
447
|
+
- base
|
|
448
|
+
- card
|
|
449
|
+
- code-block
|
|
450
|
+
- expand
|
|
451
|
+
- extension
|
|
452
|
+
- floating-toolbar
|
|
453
|
+
- hyperlink
|
|
454
|
+
- insert-block
|
|
455
|
+
- layout
|
|
456
|
+
- layout
|
|
457
|
+
- list
|
|
458
|
+
- media
|
|
459
|
+
- paste
|
|
460
|
+
- rule
|
|
461
|
+
- table
|
|
462
|
+
- tasks-and-decisions
|
|
463
|
+
|
|
464
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not
|
|
465
|
+
mandatory to be added to the preset.
|
|
455
466
|
|
|
456
467
|
## 1.3.5
|
|
457
468
|
|
|
458
469
|
### Patch Changes
|
|
459
470
|
|
|
460
|
-
-
|
|
461
|
-
|
|
462
|
-
|
|
471
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417)
|
|
472
|
+
[`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971
|
|
473
|
+
Upgrade adf-schema package to ^34.0.0
|
|
463
474
|
|
|
464
475
|
## 1.3.4
|
|
465
476
|
|
|
466
477
|
### Patch Changes
|
|
467
478
|
|
|
468
|
-
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
-
|
|
479
|
+
- [#43379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43379)
|
|
480
|
+
[`482c025520d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/482c025520d) - ED-20763
|
|
481
|
+
Upgrade ADF schema version to 33.2.3 for MBE nodes.
|
|
482
|
+
- Updated dependencies
|
|
472
483
|
|
|
473
484
|
## 1.3.3
|
|
474
485
|
|
|
475
486
|
### Patch Changes
|
|
476
487
|
|
|
477
|
-
-
|
|
488
|
+
- Updated dependencies
|
|
478
489
|
|
|
479
490
|
## 1.3.2
|
|
480
491
|
|
|
481
492
|
### Patch Changes
|
|
482
493
|
|
|
483
|
-
-
|
|
484
|
-
|
|
485
|
-
|
|
494
|
+
- [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
|
|
495
|
+
[`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
|
|
496
|
+
yarn changeset to packages, upgrade adf-schema
|
|
486
497
|
|
|
487
498
|
## 1.3.1
|
|
488
499
|
|
|
489
500
|
### Patch Changes
|
|
490
501
|
|
|
491
|
-
-
|
|
502
|
+
- Updated dependencies
|
|
492
503
|
|
|
493
504
|
## 1.3.0
|
|
494
505
|
|
|
495
506
|
### Minor Changes
|
|
496
507
|
|
|
497
|
-
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
508
|
+
- [#40238](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40238)
|
|
509
|
+
[`39ff0b0788c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/39ff0b0788c) - [ux]
|
|
510
|
+
[ED-19466] Solve bug where toggling off a bullet list when the list item contained text and a wrap
|
|
511
|
+
(left or right) media node left the media node behind in the list and then joining the paragraph
|
|
512
|
+
back to the list caused a position error.
|
|
502
513
|
|
|
503
|
-
|
|
514
|
+
Also export toggleList function so it can be used in external tests.
|
|
504
515
|
|
|
505
516
|
## 1.2.4
|
|
506
517
|
|
|
507
518
|
### Patch Changes
|
|
508
519
|
|
|
509
|
-
-
|
|
510
|
-
|
|
511
|
-
|
|
520
|
+
- [#39984](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39984)
|
|
521
|
+
[`37c62369dae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37c62369dae) - NO-ISSUE
|
|
522
|
+
Import doc builder types from editor-common
|
|
512
523
|
|
|
513
524
|
## 1.2.3
|
|
514
525
|
|
|
515
526
|
### Patch Changes
|
|
516
527
|
|
|
517
|
-
-
|
|
528
|
+
- Updated dependencies
|
|
518
529
|
|
|
519
530
|
## 1.2.2
|
|
520
531
|
|
|
521
532
|
### Patch Changes
|
|
522
533
|
|
|
523
|
-
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
-
|
|
527
|
-
|
|
534
|
+
- [#39481](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39481)
|
|
535
|
+
[`aeb5c9a01e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aeb5c9a01e8) - Delete
|
|
536
|
+
adf-schema from AFE and rely on npm package for adf-schema
|
|
537
|
+
- [`4b4dcfe0bba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b4dcfe0bba) - Delete
|
|
538
|
+
adf-schema, use published version
|
|
528
539
|
|
|
529
540
|
## 1.2.1
|
|
530
541
|
|
|
531
542
|
### Patch Changes
|
|
532
543
|
|
|
533
|
-
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
544
|
+
- [#39304](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39304)
|
|
545
|
+
[`6acf9830b36`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6acf9830b36) - Update
|
|
546
|
+
feature flags plugin (@atlaskit/editor-plugin-feature-flags) to use a named export rather than
|
|
547
|
+
default export to match other plugins.
|
|
537
548
|
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
549
|
+
```ts
|
|
550
|
+
// Before
|
|
551
|
+
import featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
541
552
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
553
|
+
// After
|
|
554
|
+
import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
555
|
+
```
|
|
545
556
|
|
|
546
|
-
-
|
|
557
|
+
- Updated dependencies
|
|
547
558
|
|
|
548
559
|
## 1.2.0
|
|
549
560
|
|
|
550
561
|
### Minor Changes
|
|
551
562
|
|
|
552
|
-
-
|
|
553
|
-
|
|
554
|
-
|
|
563
|
+
- [#39325](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39325)
|
|
564
|
+
[`ad3c5c21079`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad3c5c21079) - Updating
|
|
565
|
+
all plugins with minor version to correct issue with semver.
|
|
555
566
|
|
|
556
567
|
### Patch Changes
|
|
557
568
|
|
|
558
|
-
-
|
|
569
|
+
- Updated dependencies
|
|
559
570
|
|
|
560
571
|
## 1.1.3
|
|
561
572
|
|
|
562
573
|
### Patch Changes
|
|
563
574
|
|
|
564
|
-
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
`NextEditorPlugin`.
|
|
575
|
+
- [#39010](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39010)
|
|
576
|
+
[`8467bdcdf4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8467bdcdf4f) - Removing
|
|
577
|
+
`dependencies` prop from PluginInjectionAPI and changing signature of `NextEditorPlugin`.
|
|
568
578
|
|
|
569
|
-
|
|
579
|
+
Previously a `NextEditorPlugin` would be consumed as so:
|
|
570
580
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
581
|
+
```ts
|
|
582
|
+
const plugin: NextEditorPlugin< ... > = (config, api) => {
|
|
583
|
+
// Can use api like so:
|
|
584
|
+
api.dependencies.core.actions.execute( ... )
|
|
585
|
+
return { ... }
|
|
586
|
+
}
|
|
587
|
+
```
|
|
578
588
|
|
|
579
|
-
|
|
580
|
-
|
|
589
|
+
Now these have become named parameters like so and the `pluginInjectionAPI` is used without the
|
|
590
|
+
`dependencies` prop:
|
|
581
591
|
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
592
|
+
```ts
|
|
593
|
+
const plugin: NextEditorPlugin< ... > = ({ config, api }) => {
|
|
594
|
+
// Can use api like so:
|
|
595
|
+
api.core.actions.execute( ... )
|
|
596
|
+
return { ... }
|
|
597
|
+
}
|
|
598
|
+
```
|
|
589
599
|
|
|
590
|
-
-
|
|
600
|
+
- Updated dependencies
|
|
591
601
|
|
|
592
602
|
## 1.1.2
|
|
593
603
|
|
|
594
604
|
### Patch Changes
|
|
595
605
|
|
|
596
|
-
-
|
|
597
|
-
|
|
598
|
-
|
|
606
|
+
- [#39133](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39133)
|
|
607
|
+
[`67971a65d80`](https://bitbucket.org/atlassian/atlassian-frontend/commits/67971a65d80) - use
|
|
608
|
+
fixed version for adf-schema
|
|
599
609
|
|
|
600
610
|
## 1.1.1
|
|
601
611
|
|
|
602
612
|
### Patch Changes
|
|
603
613
|
|
|
604
|
-
-
|
|
605
|
-
|
|
606
|
-
|
|
614
|
+
- [#39177](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39177)
|
|
615
|
+
[`24e27147cbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/24e27147cbd) - Added
|
|
616
|
+
atlaskit docs to all existing plugins.
|
|
607
617
|
|
|
608
618
|
## 1.1.0
|
|
609
619
|
|
|
610
620
|
### Minor Changes
|
|
611
621
|
|
|
612
|
-
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
622
|
+
- [#39023](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39023)
|
|
623
|
+
[`4795a87a349`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4795a87a349) -
|
|
624
|
+
Migrating some actions of `editor-plugin-list` to commands. Adding sharedState for
|
|
625
|
+
`editor-plugin-text-formatting`.
|
|
616
626
|
|
|
617
627
|
## 1.0.0
|
|
618
628
|
|
|
619
629
|
### Major Changes
|
|
620
630
|
|
|
621
|
-
-
|
|
622
|
-
|
|
623
|
-
|
|
631
|
+
- [#38881](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38881)
|
|
632
|
+
[`8e9c21af71d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8e9c21af71d) -
|
|
633
|
+
Extracting list plugin code from editor-core to @atlaskit/editor-plugin-list.
|
|
624
634
|
|
|
625
635
|
### Patch Changes
|
|
626
636
|
|
|
627
|
-
-
|
|
637
|
+
- Updated dependencies
|
|
628
638
|
|
|
629
639
|
## 0.2.0
|
|
630
640
|
|
|
631
641
|
### Minor Changes
|
|
632
642
|
|
|
633
|
-
-
|
|
634
|
-
|
|
635
|
-
|
|
643
|
+
- [#38491](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38491)
|
|
644
|
+
[`5d6ec9ac49c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d6ec9ac49c) -
|
|
645
|
+
ED-19330 - decouple list plugin from editor-core
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
|
@@ -68,7 +68,8 @@ var outdentListItemsSelected = exports.outdentListItemsSelected = function outde
|
|
|
68
68
|
hasNormalizedFromPositionLiftedOut: hasNormalizedFromPositionLiftedOut
|
|
69
69
|
});
|
|
70
70
|
tr.setSelection(nextSelection);
|
|
71
|
-
|
|
71
|
+
|
|
72
|
+
// processNestedTaskListsInSameLevel(tr);
|
|
72
73
|
(0, _lists.joinSiblingLists)({
|
|
73
74
|
tr: tr,
|
|
74
75
|
direction: _lists.JoinDirection.RIGHT
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { OUTDENT_SCENARIOS } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { JoinDirection, joinSiblingLists, normalizeListItemsSelection
|
|
2
|
+
import { JoinDirection, joinSiblingLists, normalizeListItemsSelection
|
|
3
|
+
// processNestedTaskListsInSameLevel,
|
|
4
|
+
} from '@atlaskit/editor-common/lists';
|
|
3
5
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
4
6
|
import { getOrderFromOrderedListNode, isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
|
|
5
7
|
import { Fragment, NodeRange, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -60,7 +62,8 @@ export const outdentListItemsSelected = tr => {
|
|
|
60
62
|
hasNormalizedFromPositionLiftedOut
|
|
61
63
|
});
|
|
62
64
|
tr.setSelection(nextSelection);
|
|
63
|
-
|
|
65
|
+
|
|
66
|
+
// processNestedTaskListsInSameLevel(tr);
|
|
64
67
|
joinSiblingLists({
|
|
65
68
|
tr,
|
|
66
69
|
direction: JoinDirection.RIGHT
|
|
@@ -2,7 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { OUTDENT_SCENARIOS } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
import { JoinDirection, joinSiblingLists, normalizeListItemsSelection
|
|
5
|
+
import { JoinDirection, joinSiblingLists, normalizeListItemsSelection
|
|
6
|
+
// processNestedTaskListsInSameLevel,
|
|
7
|
+
} from '@atlaskit/editor-common/lists';
|
|
6
8
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
7
9
|
import { getOrderFromOrderedListNode, isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
|
|
8
10
|
import { Fragment, NodeRange, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -61,7 +63,8 @@ export var outdentListItemsSelected = function outdentListItemsSelected(tr) {
|
|
|
61
63
|
hasNormalizedFromPositionLiftedOut: hasNormalizedFromPositionLiftedOut
|
|
62
64
|
});
|
|
63
65
|
tr.setSelection(nextSelection);
|
|
64
|
-
|
|
66
|
+
|
|
67
|
+
// processNestedTaskListsInSameLevel(tr);
|
|
65
68
|
joinSiblingLists({
|
|
66
69
|
tr: tr,
|
|
67
70
|
direction: JoinDirection.RIGHT
|
|
@@ -3,5 +3,5 @@ type MergeNextListAtPositionProps = {
|
|
|
3
3
|
listPosition: number;
|
|
4
4
|
tr: Transaction;
|
|
5
5
|
};
|
|
6
|
-
export declare function mergeNextListAtPosition({ tr, listPosition
|
|
6
|
+
export declare function mergeNextListAtPosition({ tr, listPosition }: MergeNextListAtPositionProps): void;
|
|
7
7
|
export {};
|
|
@@ -5,5 +5,5 @@ type Props = {
|
|
|
5
5
|
expression: RegExp;
|
|
6
6
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
7
7
|
};
|
|
8
|
-
export declare function createRuleForListType({ listType, expression, editorAnalyticsApi
|
|
8
|
+
export declare function createRuleForListType({ listType, expression, editorAnalyticsApi }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
|
|
9
9
|
export {};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -21,10 +21,7 @@ export interface ListState {
|
|
|
21
21
|
decorationSet: DecorationSet;
|
|
22
22
|
}
|
|
23
23
|
export type ListPlugin = NextEditorPlugin<'list', {
|
|
24
|
-
dependencies: [
|
|
25
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
26
|
-
OptionalPlugin<AnalyticsPlugin>
|
|
27
|
-
];
|
|
24
|
+
dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
|
|
28
25
|
actions: {
|
|
29
26
|
isInsideListItem: IsInsideListItem;
|
|
30
27
|
findRootParentListNode: FindRootParentListNode;
|
|
@@ -3,5 +3,5 @@ type MergeNextListAtPositionProps = {
|
|
|
3
3
|
listPosition: number;
|
|
4
4
|
tr: Transaction;
|
|
5
5
|
};
|
|
6
|
-
export declare function mergeNextListAtPosition({ tr, listPosition
|
|
6
|
+
export declare function mergeNextListAtPosition({ tr, listPosition }: MergeNextListAtPositionProps): void;
|
|
7
7
|
export {};
|
|
@@ -5,5 +5,5 @@ type Props = {
|
|
|
5
5
|
expression: RegExp;
|
|
6
6
|
editorAnalyticsApi: EditorAnalyticsAPI | undefined;
|
|
7
7
|
};
|
|
8
|
-
export declare function createRuleForListType({ listType, expression, editorAnalyticsApi
|
|
8
|
+
export declare function createRuleForListType({ listType, expression, editorAnalyticsApi }: Props): import("@atlaskit/editor-common/types").InputRuleWrapper;
|
|
9
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-list",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "List plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^36.10.7",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
50
49
|
"typescript": "~5.4.2"
|
|
51
50
|
},
|
|
52
51
|
"techstack": {
|
|
@@ -82,7 +81,6 @@
|
|
|
82
81
|
]
|
|
83
82
|
}
|
|
84
83
|
},
|
|
85
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
86
84
|
"stricter": {
|
|
87
85
|
"no-unused-dependencies": {
|
|
88
86
|
"checkDevDependencies": true
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-list"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -44,25 +45,22 @@ type IsInsideListItem = (tr: Transaction) => boolean;
|
|
|
44
45
|
|
|
45
46
|
// @public (undocumented)
|
|
46
47
|
export type ListPlugin = NextEditorPlugin<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
};
|
|
64
|
-
sharedState: ListState | undefined;
|
|
65
|
-
}
|
|
48
|
+
'list',
|
|
49
|
+
{
|
|
50
|
+
pluginConfiguration: ListPluginOptions | undefined;
|
|
51
|
+
dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
|
|
52
|
+
actions: {
|
|
53
|
+
isInsideListItem: IsInsideListItem;
|
|
54
|
+
findRootParentListNode: FindRootParentListNode;
|
|
55
|
+
};
|
|
56
|
+
commands: {
|
|
57
|
+
indentList: IndentList;
|
|
58
|
+
outdentList: OutdentList;
|
|
59
|
+
toggleOrderedList: ToggleOrderedList;
|
|
60
|
+
toggleBulletList: ToggleBulletList;
|
|
61
|
+
};
|
|
62
|
+
sharedState: ListState | undefined;
|
|
63
|
+
}
|
|
66
64
|
>;
|
|
67
65
|
|
|
68
66
|
// @public
|
|
@@ -73,16 +71,16 @@ export type ListPluginOptions = Pick<FeatureFlags, 'restartNumberedLists'>;
|
|
|
73
71
|
|
|
74
72
|
// @public (undocumented)
|
|
75
73
|
export interface ListState {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
// (undocumented)
|
|
75
|
+
bulletListActive: boolean;
|
|
76
|
+
// (undocumented)
|
|
77
|
+
bulletListDisabled: boolean;
|
|
78
|
+
// (undocumented)
|
|
79
|
+
decorationSet: DecorationSet;
|
|
80
|
+
// (undocumented)
|
|
81
|
+
orderedListActive: boolean;
|
|
82
|
+
// (undocumented)
|
|
83
|
+
orderedListDisabled: boolean;
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
// @public (undocumented)
|
|
@@ -93,11 +91,8 @@ type ToggleBulletList = (inputMethod: InputMethod) => EditorCommand;
|
|
|
93
91
|
|
|
94
92
|
// @public (undocumented)
|
|
95
93
|
export const toggleList: (
|
|
96
|
-
|
|
97
|
-
) => (
|
|
98
|
-
inputMethod: InputMethod_2,
|
|
99
|
-
listType: 'bulletList' | 'orderedList',
|
|
100
|
-
) => EditorCommand;
|
|
94
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
95
|
+
) => (inputMethod: InputMethod_2, listType: 'bulletList' | 'orderedList') => EditorCommand;
|
|
101
96
|
|
|
102
97
|
// @public (undocumented)
|
|
103
98
|
type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
|
|
@@ -113,8 +108,8 @@ type ToggleOrderedList = (inputMethod: InputMethod) => EditorCommand;
|
|
|
113
108
|
|
|
114
109
|
```json
|
|
115
110
|
{
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
"react": "^16.8.0",
|
|
112
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
118
113
|
}
|
|
119
114
|
```
|
|
120
115
|
|